[ndnSIM] ForwardStrategy in wifi-csma connection
alexander.afanasyev at ucla.edu
Mon Aug 19 10:08:51 PDT 2013
To make BestRoute strategy work, you may want to manually set up proper FIB content (or use global routing controller for that). While the default routes may be "acceptable" for the flooding, since it simply forwards a copy of the interest to all faces, it is not a good thing for BestRoute strategy. BestRoute tries just one way, which in this particular case happens to be not the right one.
Here is extract from a modified version of your scenario:
// ndnHelper.SetForwardingStrategy ("ns3::ndn::fw::Flooding");
ndnHelper.SetContentStore ("ns3::ndn::cs::Lru", "MaxSize", "1000");
// ndnHelper.SetDefaultRoutes (true);
ndnGlobalRoutingHelper.AddOrigins ("/prefix", lannode);
I have commented out configuring default routes and added configuration of the global routing controller that pre-calculates routing tables. After I did so, the scenario seems to work as expected.
On Aug 17, 2013, at 4:47 AM, JackWee <jackwee_yao at 163.com> wrote:
> HI Alax
> I try to implement a csma-wifi-wifi connection scenario with ndnsim,in which csma node as producer,one wifi node as backnode which connect to the other wifi node which act the role of consumer.
> Here is the problem:if the ForwardStrategy I choose is Flooding or SmartFlooding, it runs as I wish.But when I choose BestRoute as ForwardStrategy,the backbone does not work.
> Does it means that BestRoute is not suitable for wifi-csma connection?
> Or there is something wrong in my codes?
> Here is a file 'csma-wifi-wifi.cc' in attachments.
> Any suggestion?
> Looking forward for your reply.Thanks a lot!!!
> your sincerely
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM