[ndnSIM] Fib

Alex Afanasyev alexander.afanasyev at UCLA.EDU
Fri May 15 15:42:31 PDT 2015


Hi ALexander,

Metric is just an arbitrary “cost” value that you would like to associate with the specific link.  The value is really up to you.  The only logic in ndnSIM/NFD is that strategy may prefer a next hop that has lower metric value.

—
Alex

> On May 5, 2015, at 10:09 PM, Alexander Ni <alexni1992 at gmail.com> wrote:
> 
> Hello,
> 
> Thanks for your answer. I tried to use the FibHelper but have some trouble with metric variable. I don't really understand how to use it with AddRoute function. Can you please help me,
> 
> Best Regards,
> Alexander Ni
> 
> On Wed, May 6, 2015 at 12:24 AM, Spyridon (Spyros) Mastorakis <spiros.mastorakis at gmail.com <mailto:spiros.mastorakis at gmail.com>> wrote:
> Hi,
> 
> you could either use the FibHelper:
> 
> http://ndnsim.net/2.0/helpers.html#manually-routes-fib-helper <http://ndnsim.net/2.0/helpers.html#manually-routes-fib-helper>
> 
> or (this is a more informal and dirty way to do it) use directly the API of NFD’s FIB:
> 
> http://ndnsim.net/2.0/doxygen/classnfd_1_1Fib.html#a1ed3dd88fe19112ce99be346e87cecbf <http://ndnsim.net/2.0/doxygen/classnfd_1_1Fib.html#a1ed3dd88fe19112ce99be346e87cecbf>
> 
> Hope that this helps.
> 
> --
> Spyridon (Spyros) Mastorakis
> Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
> Internet Research Laboratory
> PhD Computer Science
> UCLA
> 
> 
> 
> 
> > On May 4, 2015, at 6:36 PM, Alexander Ni <alexni1992 at gmail.com <mailto:alexni1992 at gmail.com>> wrote:
> >
> > Hi everyone,
> >
> > I work with ndnSIM 2.0 and I still not so close with ns-3 and ndnSIM.
> > Can somebody help me? I want to make Fib modification in runtime and don't really know how I should bettter do this. Also I want to implement some additional message types but don't know from where I should better start.
> >
> > --
> > Sincerely,
> > Alexander Ni
> > _______________________________________________
> > ndnSIM mailing list
> > ndnSIM at lists.cs.ucla.edu <mailto:ndnSIM at lists.cs.ucla.edu>
> > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim <http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim>
> 
> 
> 
> 
> --
> Sincerely,
> Alexander Ni
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu <mailto:ndnSIM at lists.cs.ucla.edu>
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim <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/20150515/2947ff97/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20150515/2947ff97/attachment.bin>


More information about the ndnSIM mailing list