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

Alex Afanasyev alexander.afanasyev at ucla.edu
Tue Oct 1 10:40:57 PDT 2013


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