[ndnSIM] ForwardStrategy in wifi-csma connection

Alex Afanasyev alexander.afanasyev at ucla.edu
Mon Aug 19 10:08:51 PDT 2013

Hi JackWee,

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:

  ndn::StackHelper ndnHelper;
  ndnHelper.SetForwardingStrategy ("ns3::ndn::fw::BestRoute");
  // ndnHelper.SetForwardingStrategy ("ns3::ndn::fw::Flooding");
  //ndnHelper.SetForwardingStrategy ("ns3::ndn::fw::SmartFlooding");
  ndnHelper.SetContentStore ("ns3::ndn::cs::Lru", "MaxSize", "1000");
  // ndnHelper.SetDefaultRoutes (true);
  ndnHelper.InstallAll ();

  ndn::GlobalRoutingHelper ndnGlobalRoutingHelper;
  ndnGlobalRoutingHelper.InstallAll ();

  ndnGlobalRoutingHelper.AddOrigins ("/prefix", lannode);
  ndn::GlobalRoutingHelper::CalculateRoutes ();

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
>                                                                                                                                                                                                                                                                        JackWee

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

More information about the ndnSIM mailing list