[ndnSIM] How to run simple example in ndnSIM2.0?

Spyridon (Spyros) Mastorakis spiros.mastorakis at gmail.com
Mon Feb 2 13:39:14 PST 2015


You can just move your scenarios under the “examples" folder and then cd to "ndnSIM2.0/ns-3” and simulate them. This should work:

cd ndnSIM2.0/ns-3
./waf --run=ndn-simple

--
Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/
Internet Research Laboratory
PhD Computer Science
UCLA




> On Feb 2, 2015, at 12:54 PM, 최원준 <wonjunchoi001 at gmail.com> wrote:
> 
> Hello.
> 
> I am little confusing about how to run simple example.
> I have been using scratch folder but the source is changed from .cc to .cpp. 
> so ./waf --run scratch/ndn-simple didn't work.
> I copied ndn-simple.cpp to scratch and compiled it by ./waf and then ./waf --run scratch/ndn-simple. 
> 
> ./waf --run=ndn-simple
> 
> Waf: Entering directory `ndnSIM2.0/ns-3/build'
> 
> program 'ndn-simple' not found; available programs are: ['scratch-simulator', 'scratch/scratch-simulator', 'subdir', 'scratch/subdir/subdir', 'test-runner', 'utils/test-runner', 'bench-simulator', 'utils/bench-simulator', 'bench-packets', 'utils/bench-packets', 'print-introspected-doxygen', 'utils/print-introspected-doxygen']
> 
> 
> 
> The recommended way is also I don't know how to do it. 
> 
> I did below steps. by the way, where should I put my scenario? in the scenario/build ?
> 
> git clone git://github.com/cawka/ndnSIM-scenario-template.git
>  scenario
> 
> cd 
> scenario
> 
> export PKG_CONFIG_PATH=
> /usr/local/lib/pkgconfig
> 
> export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
> 
> 
> ./waf configure
> 
> ./waf --run <scenario>
> 
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim





More information about the ndnSIM mailing list