[ndnSIM] FIB entry

Alex Afanasyev alexander.afanasyev at ucla.edu
Mon Mar 4 10:08:34 PST 2013

If you're using AnnotatedTopologyReader from the example (http://ndnsim.net/examples.html#node-2-bottleneck-topology-with-custom-forwarding-strategy), then there you can use yet another version of AddRoute:

ndn::StackHelper::AddRoute ("src-node-name", "/prefix", "next-hop-node-name", metric); 

You can simply modify weights in the example scenario.


Regarding GlobalRouting controller.  The currently available method CalculateRoutes calculates only one route per destination.  I have an extended (and highly experimental) version of it that implements a simple heuristic to calculate alternative routes, but you should be very cautious using this method (it can be very time consuming).


On Mar 4, 2013, at 9:58 AM, Natalya Rozhnova <natalya.rozhnova at lip6.fr> wrote:

> Hi Alex,
> It was the first thing I tried to do... I'm a little bit confused with the face numeration. I'm trying the differents settings but the routes are not computed correctly. Probably it's my fault. I'd like to use something similar to the topology from your example here http://ndnsim.net/_images/aafig-64086469224a310d06aeda159c9fd70f5aebbe08.svg and use different metrics for shortest and longest paths at router 1. Does GlobalRouting allow compute this routes and their costs automatically?
> Thanks,
> Natalya
> 05.03.2013, 00:38, "Alex Afanasyev" <alexander.afanasyev at ucla.edu>:
> Hi Natalya,
> When you're using AddRoute, you can use just a numeric face number, instead of a face object.  This face number is based on device id on the Node, so you can just assume that first NetDevice on this Node will correspond to Face 0, next one to face number 1, etc.
> Would this work for you?
> --
> Alex
> On Mar 4, 2013, at 2:06 AM, Natalya Rozhnova <natalya.rozhnova at lip6.fr> wrote:
>  Hi Alex,
>  Could you tell me please how could I configure two or more faces per prefix in FIB entry? Should I use a manual route configuration?
>  I'm actually using the function AddRoute to manually configure FIB entries like ndn::StackHelper.AddRoute(node, prefix, face, metric). But I'm confused how to access to the face from ns3 script?
>  Thanks,
>  Natalya
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim

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

More information about the ndnSIM mailing list