[ndnSIM] About NotifyNewAggregate
Spyridon (Spyros) Mastorakis
spiros.mastorakis at gmail.com
Fri Apr 10 09:22:06 PDT 2015
Hello Marco,
I am not sure that I understand your exact goal (as the NotifyNewAggregate performs more than one things..), but I will try to elaborate on this a little bit. In ndnSIM 2.0, the forwarding is performed by NFD. Each forwarding instance (class Forwarder) has various attributes. One of them is the so called “StrategyChoice”. This is actually a table where the forwarding strategy per name prefix is stored. Using the API of the StrategyChoice class, you can find the forwarding strategy for each name prefix as it is installed on each node.
For the attributes of the “Forwarder” class, you can take a look here:
https://github.com/NDN-Routing/ndnSIM/blob/master/NFD/daemon/fw/forwarder.cpp#L42
For the “StrategyChoice” class and its “findEffectingStrategy” method, you can take a look here:
https://github.com/NDN-Routing/ndnSIM/blob/963621b3fcabbf03484817c434c58792e331928b/NFD/daemon/table/strategy-choice.cpp#L166
Hope that this helps.
--
Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/
Internet Research Laboratory
PhD Computer Science
UCLA
> On Apr 10, 2015, at 3:13 AM, marco.ulgelmo at aol.com wrote:
>
> Hello,
>
> I need to achieve the same functionality of NotifyNewAggregate method in my custom strategy. In ndnsim v1 the method was part of the class but in v2 it's not anymore. Any suggestions?
>
> Thanks,
> Marco
> _______________________________________________
> 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