<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>Dear ndnSIM Geeks,<br>
</span>
<div><br>
</div>
<div>I am simulating a mobility scenario with consumer batches application. I am facing an issue.
<br>
</div>
<div><br>
</div>
<div>I set consumer batches as follows <br>
</div>
<div><br>
</div>
<div><b>consumerHelper.SetAttribute("Batches", StringValue("1s 30 22s 30"));<br>
</b></div>
<div><b>consumerHelper.Install(consumers[2]);</b><br>
</div>
<div><br>
</div>
<div>My understanding is, the mobile consumer node 2 will forward 30 Interests packets towards wireless access point (WAP) after<br>
</div>
<div>1 second and 30 Interest packets after 22 seconds (please correct me if i am wrong).<br>
</div>
<div><br>
</div>
<div>However, it's not working as i described above because the function <b>ConsumerBatches::ScheduleNextPacket()</b><br>
</div>
<div>(ndn-consumer-batches.cpp lines 86-97) delay the Next packet transmission based on the rtt value (<b>m_rtt->RetransmitTimeout()</b>) to avoid packet drop (Alex mentioned this in following link).<br>
</div>
<div><br>
</div>
<div><a href="https://www.lists.cs.ucla.edu/pipermail/ndnsim/2013-September/000862.html" id="LPlnk663761">https://www.lists.cs.ucla.edu/pipermail/ndnsim/2013-September/000862.html</a> <br>
</div>
<div><br>
</div>
<div>I printed rtt delay values and i found some values are 13s, 5s, and 6s. <br>
</div>
<div><br>
</div>
<div>It seems this delay is affecting my scenario because my consumer node is mobile, and it is connected with WAP at time 0-5s and 20s-25s<br>
</div>
<div>(that's why i scheduled consumer batch at 1s and 22s to send the packets when it is connected). I am assuming that my mobile node is connected with WAP for 5 seconds and during this time it will send 30 interest packets, but due to rtt delay it is sending
 around 14 or 15 interest packets only and reaming packet scheduled to send after 13s, 5s or 6s  but until then my mobile node got disconnected and it is now useless to forward those packets. </div>
<div><br>
</div>
<div>I am sorry if i explained too much. <br>
</div>
<div><br>
</div>
<div>Any suggestions how can i solve this issue ? <br>
</div>
<div><br>
</div>
<div>Thank you so much. <br>
</div>
<span> </span></div>
<div id="signature">
<div><span style="font-style:normal; font-weight:400; font-size:small; line-height:21.3px; font-family:Verdana; color:rgb(0,0,0)"><b><span style="font-size:12pt; font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont">Regards </span></b></span></div>
<b style="font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)"></b><span style="font-style:normal; font-weight:400; font-size:small; line-height:21.3px; font-family:Verdana; color:rgb(0,0,0)"><b><span style="font-size:12pt; font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont">Atif
 Rehman</span></b><span style="font-size:12pt; font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont"> </span></span><span style="font-style:normal; font-weight:400; font-size:12pt; line-height:21.3px; font-family:"Malgun Gothic","맑은 고딕",AppleGothic,sans-serif,serif,EmojiFont; color:rgb(0,0,0)"><b><span style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont">(Ph.D.
 Student)</span></b></span><br>
<div id="geom_inter_1528795240701_98_20"><span style="font-style:normal; font-weight:400; font-size:small; line-height:21.3px; font-family:Verdana; color:rgb(0,0,0)"><span style="font-family:"Malgun Gothic","맑은 고딕",AppleGothic,sans-serif,serif,EmojiFont"><b> </b></span></span></div>
</div>
</body>
</html>