[ndnSIM] [Ndn-interest] CalculateRoutes

Spyridon (Spyros) Mastorakis mastorakis at CS.UCLA.EDU
Thu Dec 10 15:32:19 PST 2015


Hi,

if you work with default routes, FIB entries containing the “/” prefix would be added for each created face.

The forwarding strategy module would still be used, but depending on the simulation scenario, it may not be effective.

Hope that this helps.

Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
Internet Research Laboratory
Computer Science Department
UCLA




> On Dec 3, 2015, at 3:13 AM, Nour El Houda Ben Youssef <NourElHouda.BenYoussef at oxia-group.com> wrote:
> 
> Dear Alex
>  
> I’m planning on comparing different forwarding strategies in a PLC topology built using the ns-3 PLC module
>  
> To do so I change the forwarding strategy in each scenario and then run the simulation and collect  delay using ndnSim application  tracers
>  
> If I work with defaultroutes does this mean that I’m not using the forwording starategy ?
>  
> I doubted this because I’m having the same results with all the forwarding strategies !
>  
> I tried to use calculate routes to populate the FIB’s but all the nodes are unreachable!!!
>  
> Does this mean that there is a problem with the PLC_channel ?!
>  
>  
> Please help
>  
>  
> De : Alexander Afanasyev [mailto:cawka1 at gmail.com <mailto:cawka1 at gmail.com>] De la part de Alex Afanasyev
> Envoyé : jeudi 17 juillet 2014 20:43
> À : Nour El Houda Ben Youssef
> Objet : Re: Using AddNetDeviceFaceCreateCallback
>  
> Somehow, plc network device or channel don't support working with multiple protocols.  If you check NetDeviceFace::Send, you'll see that Send operation specifies "L3Protocol::ETHERNET_FRAME_TYPE" as a protocol number.   During registering ndn protocol, NetDeviceFace::RegisterProtocolHandlers, the same protocol was specified.  Somehow, inside PLC module when packet arrives, it does not carry the proper protocol number and without the hack I suggested, NS-3 cannot properly dispatch packets to ndnSIM.
>  
> ---
> Alex
>  
> On Jul 17, 2014, at 12:56 AM, Nour El Houda Ben Youssef <NourElHouda.BenYoussef at oxia-group.com <mailto:NourElHouda.BenYoussef at oxia-group.com>> wrote:
> 
> 
> Dear Alex
> I’m really thankful, I don’t know by which miracle but the maneuver worked just fine
> I would like thought to understand what was the meaning of the changes that you recommended
>  
> Best regards
>  
>  
> De : Alexander Afanasyev [mailto:cawka1 at gmail.com <mailto:cawka1 at gmail.com>] De la part de Alex Afanasyev
> Envoyé : mercredi 16 juillet 2014 06:13
> À : Nour El Houda Ben Youssef
> Objet : Re: Using AddNetDeviceFaceCreateCallback
>  
> You can try to replace L3Protocol::ETHERNET_FRAME_TYPE with 0 in ndn-net-device-face.cc <http://ndn-net-device-face.cc/>  (you may also set promisc mode to false).
>  
> Two days ago I was observing a similar behavior as you described with lr-wpan module and the hack solved the problem.
>  
> ---
> Alex
>  
> On Jul 15, 2014, at 8:21 PM, Nour El Houda Ben Youssef <NourElHouda.BenYoussef at oxia-group.com <mailto:NourElHouda.BenYoussef at oxia-group.com>> wrote:
> 
> 
> 
> Well frankly it wasn’t without difficulties especially that I’m new with ns3,  but using this link was very helpful :https://github.com/jvaubourg/plc <https://github.com/jvaubourg/plc>
> There was also need to disable python bindings  before building the module and then I  regenerated, using the semi-automatic way, all python bindings for plc
>  
> Unfortunately I thought this was the hardest part but then I wasn’t able to deploy ndn over a PLC topology L
> After running few examples I noticed that interests are being sent then received at PLC_netdevice level but not reaching higher layers
> I think perhaps the problem is caused by PLC_mac
> I hope you build PLC module and then figure out the problem !
>  
> Best regards
>  
>  
> De : Alexander Afanasyev [mailto:cawka1 at gmail.com <mailto:cawka1 at gmail.com>] De la part de Alex Afanasyev
> Envoyé : mardi 15 juillet 2014 18:33
> À : Nour El Houda Ben Youssef
> Objet : Re: Using AddNetDeviceFaceCreateCallback
>  
> Ehm.. How did you manage to compile plc module in the first place? It seem to me that it works only with older version (ns-3.16), while the current ndnSIM was just rebased on top of ns-3.20...
>  
> Even after I fixed the problems with wscript, I still cannot build the code due to some errors...
>  
> ---
> Alex
>  
> On Jul 15, 2014, at 12:33 AM, Nour El Houda Ben Youssef <NourElHouda.BenYoussef at oxia-group.com <mailto:NourElHouda.BenYoussef at oxia-group.com>> wrote:
> 
> 
> 
> 
> Thank you for your quick answer
> Actually I do not need a particular initialization but ndn did not work over a PLC netdevice. I’m sure PLC netdevice works fine since I used it with Internet stack but when I try to deploy ndn stack over it interests are being sent but not received L So I guessed it should need a customized callback
> The PLC module that I’m using can be found in: https://github.com/ns3-plc-module <https://github.com/ns3-plc-module>
> You can also find attached my script deploying ndn avec PLC
>  
> Your help is really appreciated
> Best regards
>  
> De : Alexander Afanasyev [mailto:cawka1 at gmail.com <mailto:cawka1 at gmail.com>] De la part de Alex Afanasyev
> Envoyé : lundi 14 juillet 2014 18:39
> À : Nour El Houda Ben Youssef
> Objet : Re: Using AddNetDeviceFaceCreateCallback
>  
> Hi,
>  
> Technically, there is a default callback that should work with any class based on NetDevice.
>  
> The callback is needed when you need to do custom initialization of the face (=creating custom version of ndn::Face for the netdevice).  The example I have is here: https://github.com/cawka/ndnSIM-nom-rapid-car2car/blob/master/scenarios/car-relay.cc#L44 <https://github.com/cawka/ndnSIM-nom-rapid-car2car/blob/master/scenarios/car-relay.cc#L44>
>  
> ---
> Alex
>  
> On Jul 14, 2014, at 3:23 AM, Nour El Houda Ben Youssef <NourElHouda.BenYoussef at oxia-group.com <mailto:NourElHouda.BenYoussef at oxia-group.com>> wrote:
> 
> 
> 
> 
> 
> Dear Alexander
> I’m having trouble using ndnSim over a power line communication netdevice
>  
> I would like to ask if there is any example showing me how to define a new NetDeviceFace Callback
>  
> Best regards
>  
> Nour El Houda Ben Youssef Koubaa
> Doctorante Mobidoc - OXIA/SAGE
> Mastère nouvelle génération des systèmes d'informations - FST
> Ingénieur Génie Logiciel - INSAT
>  
> <ndnPLC.cc <http://ndnplc.cc/>>
>  
> _______________________________________________
> Ndn-interest mailing list
> Ndn-interest at lists.cs.ucla.edu <mailto:Ndn-interest at lists.cs.ucla.edu>
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest <http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20151210/2b7bb17a/attachment.html>


More information about the ndnSIM mailing list