[ndnSIM] ndn-conumer.cpp application

Spyridon (Spyros) Mastorakis mastorakis at CS.UCLA.EDU
Wed Dec 21 04:33:29 PST 2016


Hi,

the Consumer class is supposed to be used as the base class for derived consumer classes that actually control the Interest/Data sending rate. It is not supposed to be used directly in simulation scenarios.

You can create your own consumer class that derives from the base consumer class and implement your own logic.

Hope that this helps,

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

> On Dec 21, 2016, at 8:38 AM, MD TAUSHIF <md.taushif1614 at gmail.com> wrote:
> 
> Hi all,
> 
> I am new to ndnsim. I was working with the example ndn-tree-tracers.cpp. While running the simulation example (ndn-tree-tracers.cpp) I got some error which I am unable to resolve. I used different Consumer application instead of ConsumerCbr which resulted in following error.
> 
> /*
> Waf: Entering directory `/home/aa/ndnsim/ns-3/build'
> [1483/2861] Compiling src/ndnSIM/examples/new.cpp
> [2791/2861] Linking build/src/ndnSIM/examples/ns3-dev-new-debug
> Waf: Leaving directory `/home/aa/ndnsim/ns-3/build'
> Build commands will be stored in build/compile_commands.json
> 'build' finished successfully (10.496s)
> msg="Requested constructor for ns3::ndn::Consumer but it does not have one.", file=../src/core/model/type-id.cc, line=547
> terminate called without an active exception
> Command ['/home/aa/ndnsim/ns-3/build/src/ndnSIM/examples/ns3-dev-new-debug'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").
> */
> 
> 
> I replaced following line
> 
>  ndn::AppHelper consumerHelper("ns3::ndn::ConsumerCbr");
> With 
> ndn::AppHelper consumerHelper("ns3::ndn::Consumer");
> 
> Please guide me about how I can use the ndn-conumer.cpp as I wanted to make changes in Interest Packet and its following Data packet for it using this ndn-conumer.cpp?
> 
> Thanks & Regards,
> 
>    MD Taushif

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20161221/2b608c98/attachment.html>


More information about the ndnSIM mailing list