[ndnSIM] Forwarding Strategy

narjes aloulou aloulounarjes at yahoo.fr
Tue Dec 10 01:25:43 PST 2013


Thanks Alex,
your answer resolves my problem..



Le Lundi 9 décembre 2013 21h25, Alex Afanasyev <alexander.afanasyev at ucla.edu> a écrit :
 
Hi Narjes,

1) Yes, you can use different strategies on different nodes.  You just need to do a little bit more work to set up you simulation scenario.  Something like this

ndn::StackHelper ndnHelper;

ndnHelper.SetForwardingStrategy("strategy1");
ndnHelper.Install(?node1?);

ndnHelper.SetForwardingStrategy("strategy2");
ndnHelper.install(?node2?);

2) What exactly do you mean by "distinguishing"?  What do you want to achieve?
At the strategy layer you're dealing with Interests and Data, which have names.  Name (or prefix) is basically the only thing you have. 
 Consumers by definition are sending Interests and producers are generating and publishing data.

---
Alex


On Dec 9, 2013, at 12:10 PM, narjes aloulou <aloulounarjes at yahoo.fr> wrote:

> 
> 
> Hi ndn-sim users,
> 
> I have two questions:
> 1) I want to know if I can use different ForwardingStrategy in the same network?
> 2) How can I distinguish between node and consumer and provider in the strategy Layer?
> 
> Thanks,
> 
> Best Reagards
> 
>
 _______________________________________________
> 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/20131210/223cdb05/attachment.html>


More information about the ndnSIM mailing list