[ndnSIM] List all Installed Prefix on a Node from App

Spyridon (Spyros) Mastorakis spiros.mastorakis at gmail.com
Wed Feb 25 17:48:19 PST 2015


Hello Hitesh,

I suggested this particular solution, because you stated that you wanted to get the prefixes on the application layer. However, if this is not a restriction, Alex’s solution is probably more convenient. But again, this is up to you to decide. :)

But for sure, I agree with Alex that there are multiple ways for the thing that you want to do. 

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


> On Feb 25, 2015, at 5:31 PM, Hitesh Wadekar <wadekahn at clarkson.edu> wrote:
> 
> Thank you Spyridon.
> 
> Yes, I was planning to implement custom function at AppHelper, eventually, I will go for it. but I was checking if there any other options available. However, Alex has suggested iterate over FIB which is also a good option. But, I will prefer better to store configured prefix information on node with application pointer/indexed.  So, there could be a scenario where many applications can be installed on same node. 
> 
> I will let you know more once I implement it.
> 
> Cheer,
> Hitesh 
> 
> 
> 
> On Wed, Feb 25, 2015 at 1:23 PM, Spyridon (Spyros) Mastorakis <spiros.mastorakis at gmail.com> wrote:
> Hello Hitesh,
> 
> good question… I think that you can do using the AppHelper class defined in /helper/ndn-app-helper.cpp. You will have to create a “getPrefix” method to extract the prefix from the object instance of NS3. Then, you can simply aggregate this object with the node object and call the “getPrefix" method, whenever you want, in order to extract the prefix. I think that this applies both to producers and consumers. :)
> 
> Hope this helps.
> 
> --
> Spyridon (Spyros) Mastorakis
> Personal Website: http://cs.ucla.edu/~mastorakis/
> Internet Research Laboratory
> PhD Computer Science
> UCLA
> 
> 





More information about the ndnSIM mailing list