[ndnSIM] CustomStrategy

Alex Afanasyev alexander.afanasyev at ucla.edu
Thu May 2 12:47:53 PDT 2013

Hi Mohammad,

First of all, configuring routes has nothing to do with forwarding strategy selection. FIB is used as input data for the forwarding strategy, and you need to select the strategy that is appropriate for you using ndn::StackHelper::SetForwardingStrategy method.

As for the error.  Did you copied ndn-congestion-alt-topo-plugin.cc into scratch/ folder and tried to run it?  If yes, then the error should happen, since CustomStrategy is defined in another file that also needs to be compiled.  You can directly use examples in examples/ folder, if you configured NS-3 with --enable-examples flag.   Or you can use this repo https://github.com/cawka/ndnSIM-examples  that has a copy of all examples and will compile all necessary code automatically.


On May 2, 2013, at 6:40 AM, Hovaidi Ardestani Mohammad <mohammad.hovaidi.ardestani at aalto.fi> wrote:

> Hello everyone!
> I want to configure FIB routes manually,but when I use "ndn::StackHelper::AddRoute " it seems it has no effect on routing strategy and Flooding is used anyway.
> I even tried to run the "ndn-congestion-alt-topo-plugin.cc" to see how CustomStrategy works,but I got the following assert error.
> assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: ns3::ndn::fw::CustomStrategy not found" , file=../src/core/model/type-id.cc, line=419
> terminate called without an active exception
> Any help is appreciated in advance!
> BR
> -Mohammad
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim

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

More information about the ndnSIM mailing list