<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"><base href="x-msg://126/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Mohammad,</div><div><br></div><div>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.</div><div><br></div><div>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 <a href="https://github.com/cawka/ndnSIM-examples">https://github.com/cawka/ndnSIM-examples</a>  that has a copy of all examples and will compile all necessary code automatically.</div><div><br></div><div>---</div><div>Alex</div><br><div><div>On May 2, 2013, at 6:40 AM, Hovaidi Ardestani Mohammad <<a href="mailto:mohammad.hovaidi.ardestani@aalto.fi">mohammad.hovaidi.ardestani@aalto.fi</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div ocsi="0" fpstyle="1" style="font-family: Monaco; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="direction: ltr; font-family: Tahoma; font-size: 10pt; "><font size="2">Hello everyone<font size="2">!<br><font size="2">I want to<span class="Apple-converted-space"> </span></font></font></font><span class="hll">configure FIB routes</span><span class="hll"><span class="c1"><span class="Apple-converted-space"> </span>manually,but when I<span class="Apple-converted-space"> </span></span></span><span class="hll"><span class="n">use "ndn</span><span class="o">::</span><span class="n">StackHelper</span><span class="o">::</span><span class="n">AddRoute</span></span><span class="hll"><span class="c1"></span></span><span class="hll"> </span><span class="hll"><span class="c1"></span></span>" it seems it has no effect on routing strategy and Flooding is used anyway.<br><br>I even tried to run the "<tt class="docutils literal">ndn-congestion-alt-topo-plugin.cc" to see how CustomStrategy works,but I got the following assert error.<br><br>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<br>terminate called without an active exception<br><br>Any help is appreciated in advance!<br>BR<br>-Mohammad<br></tt></div>_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br></div></blockquote></div><br></body></html>