[ndnSIM] simple simulation

Alex Afanasyev alexander.afanasyev at ucla.edu
Fri Nov 1 14:50:01 PDT 2013

Hi Kyushu,

I'm not sure what do you mean by "state of art" forwarding.  Depending on what you are trying to achieve, there are different forwarding strategies, which require FIB as input.  You have to configure both to get the correct behavior.

In particular, if you want both consumers to receive Interests, you should
1) select Flooding forwarding strategy (this is actually default, but it may change eventually)
2) configure routes to both consumers

Considering defaults, the following may give you the desired behavior:

ndn::StackHelper ndnHelper;
  ndnHelper.SetDefaultRoutes (true);
  ndnHelper.InstallAll ();
  ndnHelper.Install (nodes);

(SetDefaultRoutes(true) automatically configures '/'-route for all available faces)


On Oct 28, 2013, at 10:58 PM, nor masri sahri <masri.sahri at gmail.com> wrote:

> hi, im new to ndnsim and ns3. 
> i want to simulate 4 nodes, 1 as Consumer, 2 node as internediate router and 1 node as Producer.
> State of art of NDN is to forward the Interest to every connected node with the Consumer
> Do I have to set manually route or just concern about forwarding strategy?
> FYI, i manage to connect Consumer node to the 2 intermediate node but when i run the simulation, the traffic goes to only one node.
> ndn::StackHelper ndnHelper;
>   ndnHelper.SetDefaultRoutes (false);
>   ndnHelper.InstallAll ();
>   ndnHelper.Install (nodes);
> thank you (really interested to explore more on ndnsim)
> -- 
> Regards,
> masri.sahri
> Phd Student, 
> Kyushu University, Japan
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim

More information about the ndnSIM mailing list