Skip to content

Easylovexjl/ndn

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1.	Set up Git and Download
Set up Git:http://siukwan.sinaapp.com/?p=563
git clone git@github.com:siukwan/ndn.git 

2.	preparation
gcc/g++ version should >= 4.8

boost libraries should be installed on the system:
For Ubuntu
	12.04
		sudo aptitude install libboost1.48-all-dev
	12.10, 13.04, and newer versions
		sudo aptitude install libboost-all-dev

For Fedora (for Fedora 18 and later only):
	sudo yum install boost-devel

For MacOS (macports):
	sudo port instal boost

3.	configuration

C++11 standard are required

firstly,enter the ns-3 directory:cd ndn/ns-3/

To use the ns3,please configure first:
	CXXFLAGS="-Wall -g -std=c++11" ./waf -d debug --enable-examples configure

If boost library needs to specify, try:
CXXFLAGS="-Wall -g -std=c++11" ./waf -d debug --enable-examples --boost-includes=/usr/local/include --boost-libs=/usr/local/lib configure
(Refer to http://ndnsim.net/2.0/faq.html#boost-libraries)

Then build the ns3 project with
	./waf 

At last you can enjoy the ns3,
	./waf --run <your progremma>

	example: ./waf --run nrndn_test

4.	Notes for Commands
4.1	To run scenario and see what is happening, use the following command:
	NS_LOG=ndn.Consumer:ndn.Producer ./waf --run=nrndn

4.2	Useful prefix:
	NS_LOG="ndn.nrndn.nrConsumer=level_debug|prefix_time|prefix_node|prefix_func:ndn.nrndn.nrProducer=level_debug|prefix_time|prefix_node|prefix_func" ./waf --run="nrndn --accidentNum=10"

4.3	To run the nrndn method, use
	NS_LOG="ndn.nrndn.nrConsumer=level_debug|prefix_time|prefix_node|prefix_func:ndn.nrndn.nrProducer=level_debug|prefix_time|prefix_node|prefix_func" ./waf --run="nrndn --accidentNum=10"

	To run the dist method, use
	NS_LOG="ndn.nrndn.tradConsumer=level_debug|prefix_time|prefix_node|prefix_func:ndn.nrndn.nrProducer=level_debug|prefix_time|prefix_node|prefix_func" ./waf --run="nrndn --accidentNum=10 --method=1"

	To run the CDS method, use
	NS_LOG="ndn.nrndn.tradConsumer=level_debug|prefix_time|prefix_node|prefix_func:ndn.nrndn.nrProducer=level_debug|prefix_time|prefix_node|prefix_func" ./waf --run="nrndn --accidentNum=10 --method=2"

any questions,contact:
	siukwan lee
	siukwan@foxmail.com
 
Good luck!

About

ndn simulation from ns3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 64.8%
  • C++ 33.6%
  • C 0.7%
  • Perl 0.5%
  • Shell 0.2%
  • Makefile 0.1%
  • Other 0.1%