[ndnSIM] About NotifyNewAggregate

marco.ulgelmo at aol.com marco.ulgelmo at aol.com
Wed Apr 15 02:09:33 PDT 2015


Thanks, for the reply, to make it short I need to port some code which was intended for ndnsim v1 to v2. Inside the NotifyNewAggregate method body there's a call to another method. So where can I put this method call in version 2 so that I can achieve the same result?

Marco Ulgelmo

> Il giorno 10/apr/2015, alle ore 18:22, Spyridon (Spyros) Mastorakis <spiros.mastorakis at gmail.com> ha scritto:
> 
> 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