<html><body><div style="color:#000; background-color:#fff; font-family:bookman old style, new york, times, serif;font-size:12pt"><div id="yiv4237797620"><div><div style="color:#000;background-color:#fff;font-family:bookman old style, new york, times, serif;font-size:12pt;"><div id="yiv4237797620yui_3_13_0_ym1_7_1386619158168_8"><span id="yiv4237797620yui_3_13_0_ym1_7_1386619158168_15">Thanks Alex,</span></div><div id="yiv4237797620yui_3_13_0_ym1_7_1386619158168_8" style="color:rgb(0, 0, 0);font-size:16px;font-family:'bookman old style', 'new york', times, serif;background-color:transparent;font-style:normal;"><span id="yiv4237797620yui_3_13_0_ym1_7_1386619158168_18">your answer resolves my problem..</span></div><div class="yiv4237797620yqt0090279946" id="yiv4237797620yqt69916"><div class="yiv4237797620yahoo_quoted" id="yiv4237797620yui_3_13_0_ym1_7_1386619158168_10" style="display: block;"> <br clear="none"> <br clear="none"> <div
 class="yiv4237797620yui_3_13_0_ym1_1_1386619158168_10687" style="font-family:bookman old style, new york, times, serif;font-size:12pt;"> <div class="yiv4237797620yui_3_13_0_ym1_1_1386619158168_10688" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt;"> <div dir="ltr"> <font face="Arial" size="2"> Le Lundi 9 décembre 2013 21h25, Alex Afanasyev <alexander.afanasyev@ucla.edu> a écrit :<br clear="none"> </font> </div>  <div class="yiv4237797620y_msg_container">Hi Narjes,<br clear="none"><br clear="none">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<br clear="none"><br clear="none">ndn::StackHelper ndnHelper;<br clear="none"><br clear="none">ndnHelper.SetForwardingStrategy("strategy1");<br clear="none">ndnHelper.Install(?node1?);<br clear="none"><br
 clear="none">ndnHelper.SetForwardingStrategy("strategy2");<br clear="none">ndnHelper.install(?node2?);<br clear="none"><br clear="none">2) What exactly do you mean by "distinguishing"?  What do you want to achieve?<br clear="none">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.<br clear="none"><br clear="none">---<br clear="none">Alex<br clear="none"><div class="yiv4237797620yqt8911052340" id="yiv4237797620yqtfd67022"><br clear="none">On Dec 9, 2013, at 12:10 PM, narjes aloulou <<a rel="nofollow" shape="rect" ymailto="mailto:aloulounarjes@yahoo.fr" target="_blank" href="mailto:aloulounarjes@yahoo.fr">aloulounarjes@yahoo.fr</a>> wrote:<br clear="none"><br clear="none">> <br clear="none">> <br clear="none">> Hi ndn-sim users,<br clear="none">> <br clear="none">> I have two questions:<br clear="none">> 1) I want to know if I can use different ForwardingStrategy in the same network?<br clear="none">> 2) How can I distinguish between node and consumer and provider in the strategy Layer?<br clear="none">> <br clear="none">> Thanks,<br clear="none">> <br clear="none">> Best Reagards<br
 clear="none">> <br clear="none">>
 _______________________________________________<br clear="none">> ndnSIM mailing list<br clear="none">> <a rel="nofollow" shape="rect" ymailto="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank" href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br clear="none">> <a rel="nofollow" shape="rect" target="_blank" href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br clear="none"></div><br clear="none"><br clear="none"></div>  </div> </div>  </div></div> </div></div></div></div></body></html>