[ndnSIM] Multiple consumers require same one interest

Spyridon (Spyros) Mastorakis mastorakis at cs.ucla.edu
Mon Apr 2 08:48:07 PDT 2018


Sobia,

What do you mean by the “same one interest”? In your simulation scenario, you can specify a prefix and then the consumer app will send Interests for this prefix plus a sequence number.

If you want to do more than that, you will need to modify the consumer app code.

I would suggest that you create a separate consumer helper instance for each new consumer application.

Thanks,

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

> On Apr 1, 2018, at 2:09 AM, sobia Mirza <sobia.mirza88 at yahoo.com> wrote:
> 
> Hi 
> I need to compile a scenario when multiple consumers need same one interest through  SetPrefix("...").
> Which followimg way is the best way to organize texts? 1 or 2?
> 1.
> ConsumerHelper.SetPrefix("...");
> ConsumerHelper.SetAttribute(....);
> ConsumerHelper.Install(nodes.Get(0));
> ConsumerHelper.Install(nodes.Get(1));
> ConsumerHelper.Install(nodes.Get(2));
> ConsumerHelper.Install(nodes.Get(3));
> ....//for node 4
> 
> 2.
> ConsumerHelper.SetPrefix("...");
> ConsumerHelper.SetAttribute(....);
> ConsumerHelper.Install(nodes.Get(0));
> 
> ConsumerHelper.SetPrefix("...");
> ConsumerHelper.SetAttribute(....);
> ConsumerHelper.Install(nodes.Get(1));
> 
> ConsumerHelper.SetPrefix("...");
> ConsumerHelper.SetAttribute(....);
> ConsumerHelper.Install(nodes.Get(2));
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180402/e7e7edd0/attachment.html>


More information about the ndnSIM mailing list