[ndnSIM] Control a producer in sending content by itself and neighbor router

Amin Karami amin at ac.upc.edu
Tue Oct 1 11:32:32 PDT 2013

Hi Alex,
About second question, I want a router just forward Interest packets to 
a specific Producer in a predefined time, e.g., between [2 5). When i 
ran the code, the interest forwarding continue after second 5. When you 
check my code, Does it work? I mean, after second 5, does router send 
any interest packet to producer or not send?

Best Regards,

On 10/01/2013 07:40 ب.ظ, Alex Afanasyev wrote:
> Hi Amin!
> On Sep 29, 2013, at 12:03 PM, Amin Karami <amin at ac.upc.edu> wrote:
>> Hi friends,
>> In ndnSIM,
>> (1) How a neighbor router connected to a producer can control the InData rate from a producer? How a router can decrease or increase the rate?
> Router should control the number of Interests it is sending out towards the producer.  This should be done somewhere in the forwarding strategy (custom forwarding strategy) on that router.
>> (2) Also, I am going to declare an application with start and stop time for a producer. I mean, controlling a OutData rate by a producer itself. I wrote a below code, but App does not work in defined starting/finishing time.
>>       ndn::AppHelper producerHelper ("ns3::ndn::Producer");
>>       producerHelper.SetAttribute ("PayloadSize", StringValue("1024"));
>>       producerHelper.SetAttribute ("Signature", StringValue("2"));
>>       ccnxGlobalRoutingHelper.AddOrigins ("/dst1");
>>       producerHelper.SetPrefix ("/dst1");
>>       producerHelper.Install ("P1");
>>       ApplicationContainer App = producerHelper.Install ("P1");
>>       App.Start(Seconds (2.0));
>>       App.Stop(Seconds (5.0));
> These code defined that producer app would respond to any incoming Interests under /dst1 prefix from [2,5) seconds of simulation time.  I checked the code and it should work as expected.
> This code, however, does not control what is cached in the content stores on the producer node and other routers.  Could it be the case that you're observing effect of caching?
> ---
> Alex
>> I looking forward to hear soon.
>> Best Regards,
>> Amin

More information about the ndnSIM mailing list