<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Tun,<div><br></div><div>For the ConsumerWindow you have to specify how much data the consumer wants to request.  By default, this value is 0, so it doesn't do anything at all...</div><div><br></div><div>You have two options to specify size:</div><div>Option 1:  Specify the number of pieces that consumer wants to request</div><div><br></div><div><div>      ndn::AppHelper consumerHelper ("ns3::ndn::ConsumerWindow");</div><div>      consumerHelper.SetAttribute ("Window", StringValue ("1")); // Window size default 1</div><div>      consumerHelper.SetAttribute ("MaxSeq", UintegerValue (100));</div><div><br></div><div>Options 2:  Specify expected payload size (as you did) and specify size of the requested "file" in megabytes:</div><div><br></div><div><div>      ndn::AppHelper consumerHelper ("ns3::ndn::ConsumerWindow");</div><div>      consumerHelper.SetAttribute ("Window", StringValue ("1")); // Window size default 1</div><div>      consumerHelper.SetAttribute ("PayloadSize", UintegerValue (1040)); // PayloadSize default 1040</div></div><div><div>      consumerHelper.SetAttribute ("Size", DoubleValue (1));</div></div><div><br></div><div>---</div><div>Alex</div><div><br></div><div><div>On Jul 2, 2013, at 11:51 PM, Tun Tun Oo <<a href="mailto:htunhtunu@gmail.com">htunhtunu@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><div>Dear All,<br><br></div>Now I am just start to study about how ndn Interest congestion control work.<br></div><div>Using the <a href="http://ndnsim.net/">ndnsim.net</a>'s "ndn-tree-tracers.cc" and topo-tree.txt, I tested as follows.<br>
</div><div>1. Reduce the link speed of leaf-1 and leaf-3 to 1 Mbps<br></div><div>2. Change the apphelper as <br>      ndn::AppHelper consumerHelper ("ns3::ndn::ConsumerWindow");<br>      consumerHelper.SetAttribute ("Window", StringValue ("1")); // Window size default 1<br>
      consumerHelper.SetAttribute ("PayloadSize", UintegerValue (1040)); // PayloadSize default 1040<br></div><div>3. Run with ./waf run=ndn-tree-tracers, it has no error but I didn't found any data output in rate-trace.txt<br>
<br></div><div>My expected result is data rate in the graph should be changed for leaf-1 and leaf-3 according to the link speed.<br></div><div>Pls guide me, what I am missing or misunderstanding.I am using the lastest version of ndnSIM.<br>
</div><div>Thanks in advance.<br><br></div><div>Best regards<br><br></div><div>Tun Tun Oo<br></div><div><br><br></div></div>
_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br></blockquote></div><br></div></body></html>