<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; "><div>Hi Yifeng,</div><br><div><div>On Feb 27, 2013, at 8:56 AM, Yifeng Li <<a href="mailto:yifengl@email.arizona.edu">yifengl@email.arizona.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hello Alex,<br><br>Regarding using window limits, I want to update the current limit (e.g. increase window size or decrease by 1). In my forwarding strategy, when I'm reducing the limit, I'm using something like:<br>
<br>  Ptr<Limits> faceLimits = face->GetObject<Limits> ();<br>  double newLimit = std::max (0.0, faceLimits->GetCurrentLimit() - 1); //cannot be less than 0<br>  faceLimits->UpdateCurrentLimit(newLimit);<br>
  <br> But from the outputs I'm getting (pcap trace), it seems like the throughput gets reduced too much. What would be the equivalent of 1 window size?<br></blockquote><div><br></div><div>If you want to have minimum window 1, why don't you have this as part of you newLimit calculation?  For example,</div><div><br></div><div>    double newLimit = std::max (1.0, faceLimits->GetCurrentLimit() - 1); //cannot be less than 1  </div><div><br></div><div>If it is something undesirable, you have to have some what to increase window from 0 (which means that no Interests are allowed to be send out at all).</div><br><blockquote type="cite">Also, I'm printing the limits as they change, but I cannot see which node the limit belongs to. I'm using:<br>
<br>uint32_t nodeid = inFace->GetObject <Node>()->GetId();<br>std::cout << "current node: " << nodeid << std::endl;<br></blockquote><div><br></div><div>This is a little bit wrong.  Face is not aggregated to a Node object.  You need a little bit different syntax (see more here: <a href="http://ndnsim.net/doxygen/classns3_1_1ndn_1_1_net_device_face.html">http://ndnsim.net/doxygen/classns3_1_1ndn_1_1_net_device_face.html</a>) if you want to get node id:</div><div><br></div><div>uint32_t nodeId = inFace->GetNode ()->GetId ()</div><div>...</div><div><br></div><div>---</div><div>Alex</div><br><blockquote type="cite">Inside my forwarding strategy, but it will give a segfault. Can I not get the node id this way?<br>
<br>Yifeng<br></blockquote></div><br></body></html>