[ndnSIM] scenario template in ndnSim 2.0

Klaus Schneider klaus.schneider at uni-bamberg.de
Thu Feb 26 09:11:53 PST 2015


Yeah I can do that as an alternative. I just thought it would be cleaner
to have the code separated (for backups of my code or ndnSim updates).

I guess that is why you recommend it in your guide:

> While it is possible to write simulations directly inside NS-3 (in
> scratch/ folder) or ndnSIM (in examples/), the recommended way is to
> write your simulation scenarios, as well as any custom extensions,
> separately from the NS-3 or ndnSIM core.
>

Best regards
Klaus

On 26.02.2015 17:54, Spyridon (Spyros) Mastorakis wrote:
> Hello,
>
> why do not you compile NS3 with examples and place your scenario
> under the examples directory of ndnSIM?
>
> -- Spyridon (Spyros) Mastorakis Personal Website:
> http://cs.ucla.edu/~mastorakis/ Internet Research Laboratory PhD
> Computer Science UCLA
>
>
>
>
>> On Feb 26, 2015, at 7:34 AM, Klaus Schneider
>> <klaus.schneider at uni-bamberg.de> wrote:
>>
>> Hi,
>>
>> I am running Ubuntu 14.04 with boost libraries 1.54 and
>> successfully installed ndn-cxx and ns3-dev.
>>
>> When I follow the instructions
>> (http://ndnsim.net/2.0/getting-started.html) to use the scenario
>> template (http://github.com/cawka/ndnSIM-scenario-template) I get
>> the following error (I put the ndn-simple.cc example into the
>> scenarios folder):
>>
>>> klaus at laptop:~/CCN/ndnSim/ownstrategy$ sudo ./waf --verbose Waf:
>>> Entering directory `/home/klaus/CCN/ndnSim/ownstrategy/build'
>>> [1/2] cxx: scenarios/ndn-simple.cc ->
>>> build/scenarios/ndn-simple.cc.2.o 16:31:55 runner
>>> ['/usr/bin/g++', '-std=c++0x', '-O0', '-g', '-pthread',
>>> '-pthread', '-pthread', '-pthread', '-pthread', '-pthread',
>>> '-pthread', '-pthread', '-pthread', '-pthread', '-pthread',
>>> '-pthread', '-pthread', '-pthread', '-pthread', '-pthread',
>>> '-pthread', '-pthread', '-pthread', '-pthread', '-pthread',
>>> '-pthread', '-pthread', '-pthread', '-pthread', '-pthread',
>>> '-pthread', '-pthread', '-pthread', '-pthread', '-pthread',
>>> '-pthread', '-pthread', '-pthread', '-pthread', '-pthread',
>>> '-Iextensions', '-I../extensions', '-I/usr/include',
>>> '-I/usr/local/include/ns3-dev', '-I/usr/include/gtk-2.0',
>>> '-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include',
>>> '-I/usr/include/atk-1.0', '-I/usr/include/cairo',
>>> '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/pango-1.0',
>>> '-I/usr/include/gio-unix-2.0', '-I/usr/include/freetype2',
>>> '-I/usr/include/glib-2.0',
>>> '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include',
>>> '-I/usr/include/pixman-1', '-I/usr/include/libpng12',
>>> '-I/usr/include/harfbuzz', '-I/usr/include/libxml2',
>>> '-DHAVE_NS3_CORE=1', '-DHAVE_NS3_NETWORK=1',
>>> '-DHAVE_NS3_POINT_TO_POINT=1', '-DHAVE_NS3_APPLICATIONS=1',
>>> '-DHAVE_NS3_MOBILITY=1', '-DHAVE_NS3_NDNSIM=1',
>>> '-DHAVE_NS3_ANTENNA=1', '-DHAVE_NS3_AODV=1',
>>> '-DHAVE_NS3_BRIDGE=1', '-DHAVE_NS3_BUILDINGS=1',
>>> '-DHAVE_NS3_CONFIG_STORE=1', '-DHAVE_NS3_CSMA=1',
>>> '-DHAVE_NS3_CSMA_LAYOUT=1', '-DHAVE_NS3_DSDV=1',
>>> '-DHAVE_NS3_DSR=1', '-DHAVE_NS3_EMU=1', '-DHAVE_NS3_ENERGY=1',
>>> '-DHAVE_NS3_FD_NET_DEVICE=1', '-DHAVE_NS3_FLOW_MONITOR=1',
>>> '-DHAVE_NS3_INTERNET=1', '-DHAVE_NS3_LTE=1',
>>> '-DHAVE_NS3_MESH=1', '-DHAVE_NS3_MPI=1', '-DHAVE_NS3_NETANIM=1',
>>> '-DHAVE_NS3_NIX_VECTOR_ROUTING=1', '-DHAVE_NS3_OLSR=1',
>>> '-DHAVE_NS3_POINT_TO_POINT_LAYOUT=1',
>>> '-DHAVE_NS3_PROPAGATION=1', '-DHAVE_NS3_SPECTRUM=1',
>>> '-DHAVE_NS3_STATS=1', '-DHAVE_NS3_TAP_BRIDGE=1',
>>> '-DHAVE_NS3_TOPOLOGY_READ=1', '-DHAVE_NS3_UAN=1',
>>> '-DHAVE_NS3_VIRTUAL_NET_DEVICE=1', '-DHAVE_NS3_VISUALIZER=1',
>>> '-DHAVE_NS3_WIFI=1', '-DHAVE_NS3_WIMAX=1', '-DNS3_LOG_ENABLE=1',
>>> '-DNS3_ASSERT_ENABLE=1', '../scenarios/ndn-simple.cc', '-c',
>>> '-o', 'scenarios/ndn-simple.cc.2.o'] In file included from
>>> /usr/local/include/ns3-dev/ns3/ndnSIM/model/ndn-face.hpp:23:0,
>>> from
>>> /usr/local/include/ns3-dev/ns3/ndnSIM/helper/ndn-face-container.hpp:30,
>>>
>>>
>>
>>>
from /usr/local/include/ns3-dev/ns3/ndnSIM/helper/ndn-stack-helper.hpp:30,
>>> from /usr/local/include/ns3-dev/ns3/ndn-all.hpp:23, from
>>> /usr/local/include/ns3-dev/ns3/ndnSIM-module.h:10, from
>>> ../scenarios/ndn-simple.cc:24:
>>> /usr/local/include/ns3-dev/ns3/ndnSIM/NFD/daemon/face/face.hpp:29:22:
>>>
>>>
fatal error: common.hpp: Datei oder Verzeichnis nicht gefunden
>>> #include "common.hpp" ^ compilation terminated. Waf: Leaving
>>> directory `/home/klaus/CCN/ndnSim/ownstrategy/build' Build failed
>>> -> task in 'ndn-simple' failed (exit status 1): {task
>>> 140713978797072: cxx ndn-simple.cc -> ndn-simple.cc.2.o}
>>> ['/usr/bin/g++', '-std=c++0x', '-O0', '-g', '-pthread',
>>> '-pthread', '-pthread', '-pthread', '-pthread', '-pthread',
>>> '-pthread', '-pthread', '-pthread', '-pthread', '-pthread',
>>> '-pthread', '-pthread', '-pthread', '-pthread', '-pthread',
>>> '-pthread', '-pthread', '-pthread', '-pthread', '-pthread',
>>> '-pthread', '-pthread', '-pthread', '-pthread', '-pthread',
>>> '-pthread', '-pthread', '-pthread', '-pthread', '-pthread',
>>> '-pthread', '-pthread', '-pthread', '-pthread', '-pthread',
>>> '-Iextensions', '-I../extensions', '-I/usr/include',
>>> '-I/usr/local/include/ns3-dev', '-I/usr/include/gtk-2.0',
>>> '-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include',
>>> '-I/usr/include/atk-1.0', '-I/usr/include/cairo',
>>> '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/pango-1.0',
>>> '-I/usr/include/gio-unix-2.0', '-I/usr/include/freetype2',
>>> '-I/usr/include/glib-2.0',
>>> '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include',
>>> '-I/usr/include/pixman-1', '-I/usr/include/libpng12',
>>> '-I/usr/include/harfbuzz', '-I/usr/include/libxml2',
>>> '-DHAVE_NS3_CORE=1', '-DHAVE_NS3_NETWORK=1',
>>> '-DHAVE_NS3_POINT_TO_POINT=1', '-DHAVE_NS3_APPLICATIONS=1',
>>> '-DHAVE_NS3_MOBILITY=1', '-DHAVE_NS3_NDNSIM=1',
>>> '-DHAVE_NS3_ANTENNA=1', '-DHAVE_NS3_AODV=1',
>>> '-DHAVE_NS3_BRIDGE=1', '-DHAVE_NS3_BUILDINGS=1',
>>> '-DHAVE_NS3_CONFIG_STORE=1', '-DHAVE_NS3_CSMA=1',
>>> '-DHAVE_NS3_CSMA_LAYOUT=1', '-DHAVE_NS3_DSDV=1',
>>> '-DHAVE_NS3_DSR=1', '-DHAVE_NS3_EMU=1', '-DHAVE_NS3_ENERGY=1',
>>> '-DHAVE_NS3_FD_NET_DEVICE=1', '-DHAVE_NS3_FLOW_MONITOR=1',
>>> '-DHAVE_NS3_INTERNET=1', '-DHAVE_NS3_LTE=1',
>>> '-DHAVE_NS3_MESH=1', '-DHAVE_NS3_MPI=1', '-DHAVE_NS3_NETANIM=1',
>>> '-DHAVE_NS3_NIX_VECTOR_ROUTING=1', '-DHAVE_NS3_OLSR=1',
>>> '-DHAVE_NS3_POINT_TO_POINT_LAYOUT=1',
>>> '-DHAVE_NS3_PROPAGATION=1', '-DHAVE_NS3_SPECTRUM=1',
>>> '-DHAVE_NS3_STATS=1', '-DHAVE_NS3_TAP_BRIDGE=1',
>>> '-DHAVE_NS3_TOPOLOGY_READ=1', '-DHAVE_NS3_UAN=1',
>>> '-DHAVE_NS3_VIRTUAL_NET_DEVICE=1', '-DHAVE_NS3_VISUALIZER=1',
>>> '-DHAVE_NS3_WIFI=1', '-DHAVE_NS3_WIMAX=1', '-DNS3_LOG_ENABLE=1',
>>> '-DNS3_ASSERT_ENABLE=1', '../scenarios/ndn-simple.cc', '-c',
>>> '-o', 'scenarios/ndn-simple.cc.2.o']
>>
>> Can you help me out?
>>
>> Thanks a lot.
>>
>> Klaus
>>
>> -- Klaus Schneider
>>
>> Mail: klaus.schneider at uni-bamberg.de LinkedIn:
>> https://www.linkedin.com/in/schneiderklaus
>> _______________________________________________ ndnSIM mailing
>> list ndnSIM at lists.cs.ucla.edu
>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim

-- 
Klaus Schneider

Mail: klaus.schneider at uni-bamberg.de
LinkedIn: https://www.linkedin.com/in/schneiderklaus



More information about the ndnSIM mailing list