<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Alex,<div><span class="Apple-tab-span" style="white-space:pre">      </span>Is the queueing delay the reason for the difference?  I found that if there were more interests is received at the same time, the transmission delay is larger (no drop packet happened).</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">      </span>Now I am quite curious on the queueing delay. But <a href="http://www.nsnam.org/docs/release/3.16/doxygen/classns3_1_1_drop_tail_queue.html#details">http://www.nsnam.org/docs/release/3.16/doxygen/classns3_1_1_drop_tail_queue.html#details</a> presents no parameter of delay.</div><div><br><div><div>
<div><div style="color: rgb(34, 34, 34); font-size: small; background-color: rgb(255, 255, 255); font-family: arial; "><font face="'comic sans ms', sans-serif">thanks</font><br><br><font face="garamond, serif"><font size="4">My Regards,</font><br></font></div><hr align="left" color="#b5c4df" size="1" style="color: rgb(34, 34, 34); font-size: small; font-family: arial; width: 210px; min-height: 1px; "><div style="color: rgb(34, 34, 34); font-size: small; background-color: rgb(255, 255, 255); font-family: arial; "><font face="garamond, serif"><div><span style="font-size: 10.5pt; ">Xiaoke Jiang (蒋小可)</span></div><div><span style="font-size: 10.5pt; "><br></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Ph.D Candidate,</font></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Dept. of Computer Science and Technology,</font></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Tsinghua University, P. R. China</font></span></div></font></div></div>
</div>
<br><div><div>On May 10, 2013, at 1:39 PM, Alex Afanasyev <<a href="mailto:alexander.afanasyev@ucla.edu">alexander.afanasyev@ucla.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=utf-8"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Xiaoke,</div><div><br></div><div>Propagation delay (time to transmit one bit from one end to another end of the link)  != transmission delay (time difference between putting the first and the last bit of the packet on the wire).  You zeroed the propagation delay, but there is also a finite bandwidth, could be a reason for some delay.  Though I'm not entirely sure why these delays are not equal...</div><div><br></div><div>---</div><div>Alex</div><div><br></div><div><div>On May 9, 2013, at 6:57 PM, Xiaoke Jiang <<a href="mailto:shock.jiang@gmail.com">shock.jiang@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=utf-8"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Alex, </div><div><span class="Apple-tab-span" style="white-space:pre"> </span>As you describe I install consumer and producer on the same node, and I get all the data back immediately. But if I install them on adjacent nodes, their is time gap between arrival of data.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">      </span><span style="font-family: Monaco; font-size: 11px; ">Config::SetDefault (</span><span style="color: rgb(57, 51, 255); font-family: Monaco; font-size: 11px; ">"ns3::PointToPointChannel::Delay"</span><span style="font-family: Monaco; font-size: 11px; ">, </span><span style="font-family: Monaco; font-size: 11px; color: rgb(0, 97, 65); ">StringValue</span><span style="font-family: Monaco; font-size: 11px; "> (</span><span style="color: rgb(57, 51, 255); font-family: Monaco; font-size: 11px; ">"0ms"</span><span style="font-family: Monaco; font-size: 11px; ">));</span></div><div><span style="font-family: Monaco; font-size: 11px; "><br></span></div><div><span class="Apple-tab-span" style="white-space:pre">   </span>I set propagation delay (transmitting on the wire) zero, thus the remained it queue delay. The result is showed in the following. (Interest of Seq 0,1,2,3 is received on the same time)</div><div><br></div><div><div>Time<span class="Apple-tab-span" style="white-space:pre">     </span>Node<span class="Apple-tab-span" style="white-space:pre">        </span>AppId<span class="Apple-tab-span" style="white-space:pre">       </span>SeqNo<span class="Apple-tab-span" style="white-space:pre">       </span>Type<span class="Apple-tab-span" style="white-space:pre">        </span>DelayS<span class="Apple-tab-span" style="white-space:pre">      </span>DelayUS<span class="Apple-tab-span" style="white-space:pre">     </span>RetxCount<span class="Apple-tab-span" style="white-space:pre">   </span>HopCount</div><div>0.008872<span class="Apple-tab-span" style="white-space:pre">     </span>0<span class="Apple-tab-span" style="white-space:pre">   </span>1<span class="Apple-tab-span" style="white-space:pre">   </span>0<span class="Apple-tab-span" style="white-space:pre">   </span>LastDelay<span class="Apple-tab-span" style="white-space:pre">   </span>0.008872<span class="Apple-tab-span" style="white-space:pre">    </span>8872<span class="Apple-tab-span" style="white-space:pre">        </span>1<span class="Apple-tab-span" style="white-space:pre">   </span>4</div><div>0.008872<span class="Apple-tab-span" style="white-space:pre">    </span>0<span class="Apple-tab-span" style="white-space:pre">   </span>1<span class="Apple-tab-span" style="white-space:pre">   </span>0<span class="Apple-tab-span" style="white-space:pre">   </span>FullDelay<span class="Apple-tab-span" style="white-space:pre">   </span>0.008872<span class="Apple-tab-span" style="white-space:pre">    </span>8872<span class="Apple-tab-span" style="white-space:pre">        </span>1<span class="Apple-tab-span" style="white-space:pre">   </span>4</div><div>0.017344<span class="Apple-tab-span" style="white-space:pre">    </span>0<span class="Apple-tab-span" style="white-space:pre">   </span>1<span class="Apple-tab-span" style="white-space:pre">   </span>1<span class="Apple-tab-span" style="white-space:pre">   </span>LastDelay<span class="Apple-tab-span" style="white-space:pre">   </span>0.017344<span class="Apple-tab-span" style="white-space:pre">    </span>17344<span class="Apple-tab-span" style="white-space:pre">       </span>1<span class="Apple-tab-span" style="white-space:pre">   </span>4</div><div>0.017344<span class="Apple-tab-span" style="white-space:pre">    </span>0<span class="Apple-tab-span" style="white-space:pre">   </span>1<span class="Apple-tab-span" style="white-space:pre">   </span>1<span class="Apple-tab-span" style="white-space:pre">   </span>FullDelay<span class="Apple-tab-span" style="white-space:pre">   </span>0.017344<span class="Apple-tab-span" style="white-space:pre">    </span>17344<span class="Apple-tab-span" style="white-space:pre">       </span>1<span class="Apple-tab-span" style="white-space:pre">   </span>4</div><div>0.025816<span class="Apple-tab-span" style="white-space:pre">    </span>0<span class="Apple-tab-span" style="white-space:pre">   </span>1<span class="Apple-tab-span" style="white-space:pre">   </span>2<span class="Apple-tab-span" style="white-space:pre">   </span>LastDelay<span class="Apple-tab-span" style="white-space:pre">   </span>0.025816<span class="Apple-tab-span" style="white-space:pre">    </span>25816<span class="Apple-tab-span" style="white-space:pre">       </span>1<span class="Apple-tab-span" style="white-space:pre">   </span>4</div><div>0.025816<span class="Apple-tab-span" style="white-space:pre">    </span>0<span class="Apple-tab-span" style="white-space:pre">   </span>1<span class="Apple-tab-span" style="white-space:pre">   </span>2<span class="Apple-tab-span" style="white-space:pre">   </span>FullDelay<span class="Apple-tab-span" style="white-space:pre">   </span>0.025816<span class="Apple-tab-span" style="white-space:pre">    </span>25816<span class="Apple-tab-span" style="white-space:pre">       </span>1<span class="Apple-tab-span" style="white-space:pre">   </span>4</div><div>0.034288<span class="Apple-tab-span" style="white-space:pre">    </span>0<span class="Apple-tab-span" style="white-space:pre">   </span>1<span class="Apple-tab-span" style="white-space:pre">   </span>3<span class="Apple-tab-span" style="white-space:pre">   </span>LastDelay<span class="Apple-tab-span" style="white-space:pre">   </span>0.034288<span class="Apple-tab-span" style="white-space:pre">    </span>34288<span class="Apple-tab-span" style="white-space:pre">       </span>1<span class="Apple-tab-span" style="white-space:pre">   </span>4</div><div>0.034288<span class="Apple-tab-span" style="white-space:pre">    </span>0<span class="Apple-tab-span" style="white-space:pre">   </span>1<span class="Apple-tab-span" style="white-space:pre">   </span>3<span class="Apple-tab-span" style="white-space:pre">   </span>FullDelay<span class="Apple-tab-span" style="white-space:pre">   </span>0.034288<span class="Apple-tab-span" style="white-space:pre">    </span>34288<span class="Apple-tab-span" style="white-space:pre">       </span>1<span class="Apple-tab-span" style="white-space:pre">   </span>4</div></div><div><br></div><div><br></div><div> But the bandwidth is enough is carry the traffic, why the queue delay is so large, up to 0.01s.</div><div><br></div><div>How to set the queue delay?</div><br><div apple-content-edited="true">
<div><div style="color: rgb(34, 34, 34); font-size: small; background-color: rgb(255, 255, 255); font-family: arial; position: static; z-index: auto; "><font face="'comic sans ms', sans-serif">thanks</font><br><br><font face="garamond, serif"><font size="4">My Regards,</font><br></font></div><hr align="left" size="1" style="color: rgb(34, 34, 34); font-size: small; font-family: arial; width: 210px; min-height: 1px; "><div style="color: rgb(34, 34, 34); font-size: small; background-color: rgb(255, 255, 255); font-family: arial; "><font face="garamond, serif"><div><span style="font-size: 10.5pt; ">Xiaoke Jiang (蒋小可)</span></div><div><span style="font-size: 10.5pt; "><br></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Ph.D Candidate,</font></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Dept. of Computer Science and Technology,</font></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Tsinghua University, P. R. China</font></span></div></font></div></div>
</div>
<br><div><div>On May 10, 2013, at 12:59 AM, Alex Afanasyev <<a href="mailto:alexander.afanasyev@ucla.edu">alexander.afanasyev@ucla.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div dir="auto"><div>If your producer is installed on the same node as the requester, then the requester will get data back "immediately" with 0 delay of simulation time (btw <span style="color: rgb(3, 38, 204); font-family: Monaco; font-size: 11px; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">m_transmittedContentObjects </span><br>is just for tracing purposes and doesn't simulate anything).</div><div><br></div><div>The only reason for consumer's observed delay is due to packet propagation between nodes. That is, time will move forward only when inter-node network operations kick in.</div><div><br>---<div>Alex</div></div><div><br>On May 9, 2013, at 9:23 AM, Xiaoke Jiang <<a href="mailto:shock.jiang@gmail.com">shock.jiang@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=utf-8">Hi Alex,<div><span class="Apple-tab-span" style="white-space:pre">       </span>My code as followings:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">      </span>Interests</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>for Interest in Interests {</div><div><span class="Apple-tab-span" style="white-space:pre">          </span>packet = CreateData(Interest)<span style="font-family: Monaco; font-size: 11px; "><span class="Apple-tab-span" style="white-space:pre">  </span> </span></div><div><span style="color: rgb(3, 38, 204); font-family: Monaco; font-size: 11px; "><span class="Apple-tab-span" style="white-space:pre">     </span>m_protocolHandler</span><span style="font-family: Monaco; font-size: 11px; "> (packet);</span></div><div style="margin: 0px; font-size: 11px; font-family: Monaco; min-height: 15px; "><br></div><div style="margin: 0px; font-size: 11px; font-family: Monaco; color: rgb(3, 38, 204); "><span style=""><span class="Apple-tab-span" style="white-space:pre">     </span></span>m_transmittedContentObjects<span style=""> (header, packet, </span><span style="color: #931a68">this</span><span style="">, </span>m_face<span style="">);</span></div><div style="margin: 0px; font-size: 11px; font-family: Monaco; color: rgb(3, 38, 204); "><span style=""><span class="Apple-tab-span" style="white-space:pre">  </span>etc ..</span></div><div><span class="Apple-tab-span" style="white-space:pre">  </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">    </span></div><div><span class="Apple-tab-span" style="white-space:pre">     </span>In the above code, the data packet is not answered on the same time, is it?   Since the m_protocolHandler and m_transmittedContentObjects functions will make the timeline forward.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">    </span>Is there a way to answer all the data packets on the same time?</div><div><br></div><div><div>
<div><div style="color: rgb(34, 34, 34); font-size: small; background-color: rgb(255, 255, 255); font-family: arial; "><font face="'comic sans ms', sans-serif">thanks</font><br><br><font face="garamond, serif"><font size="4">My Regards,</font><br></font></div><hr align="left" size="1" style="color: rgb(34, 34, 34); font-size: small; font-family: arial; width: 210px; min-height: 1px; "><div style="color: rgb(34, 34, 34); font-size: small; background-color: rgb(255, 255, 255); font-family: arial; "><font face="garamond, serif"><div><span style="font-size: 10.5pt; ">Xiaoke Jiang (蒋小可)</span></div><div><span style="font-size: 10.5pt; "><br></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Ph.D Candidate,</font></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Dept. of Computer Science and Technology,</font></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Tsinghua University, P. R. China</font></span></div></font></div></div>
</div>
<br><div><div>On May 10, 2013, at 12:18 AM, Alex Afanasyev <<a href="mailto:alexander.afanasyev@ucla.edu">alexander.afanasyev@ucla.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div dir="auto"><div>Propagation delay is just a link delay (the one you configure).</div><div>I forgot to mention the transmission delay which is also simulated by NS-3, and which includes queuing delay and delay placing packet bits on the wire.<br><br>---<div>Alex</div></div><div><br>On May 9, 2013, at 9:03 AM, Xiaoke Jiang <<a href="mailto:shock.jiang@gmail.com">shock.jiang@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=utf-8">Thank you Alex. But what does propagation delay include?<div><br><div><div>
<div><div style="color: rgb(34, 34, 34); font-size: small; background-color: rgb(255, 255, 255); font-family: arial; "><font face="'comic sans ms', sans-serif">thanks</font><br><br><font face="garamond, serif"><font size="4">My Regards,</font><br></font></div><hr align="left" size="1" style="color: rgb(34, 34, 34); font-size: small; font-family: arial; width: 210px; min-height: 1px; "><div style="color: rgb(34, 34, 34); font-size: small; background-color: rgb(255, 255, 255); font-family: arial; "><font face="garamond, serif"><div><span style="font-size: 10.5pt; ">Xiaoke Jiang (蒋小可)</span></div><div><span style="font-size: 10.5pt; "><br></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Ph.D Candidate,</font></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Dept. of Computer Science and Technology,</font></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Tsinghua University, P. R. China</font></span></div></font></div></div>
</div>
<br><div><div>On May 10, 2013, at 12:02 AM, Alex Afanasyev <<a href="mailto:alexander.afanasyev@ucla.edu">alexander.afanasyev@ucla.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div dir="auto"><div>Hi Xiaoke,</div><div><br></div><div>The delays that are observed by app-delay-tracer include everything you mentioned (queuing delay, propagation delay, which is related to packet size), except processing delay.  This exception comes from the fact that in NS-3 unless you specifically simulate processing delay (which requires additional models), each function call, no matter how complex, is running in zero simulation time.<br><br>---<div>Alex</div></div><div><br>On May 9, 2013, at 8:53 AM, Xiaoke Jiang <<a href="mailto:shock.jiang@gmail.com">shock.jiang@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=utf-8">What's more, I am not sure whether the delay includes the router processing time, such as creating PIT entry, Content Store look up , etc.<div><br><div>
<div><div style="color: rgb(34, 34, 34); font-size: small; background-color: rgb(255, 255, 255); font-family: arial; "><font face="'comic sans ms', sans-serif">thanks</font><br><br><font face="garamond, serif"><font size="4">My Regards,</font><br></font></div><hr align="left" size="1" style="color: rgb(34, 34, 34); font-size: small; font-family: arial; width: 210px; min-height: 1px; "><div style="color: rgb(34, 34, 34); font-size: small; background-color: rgb(255, 255, 255); font-family: arial; "><font face="garamond, serif"><div><span style="font-size: 10.5pt; ">Xiaoke Jiang (蒋小可)</span></div><div><span style="font-size: 10.5pt; "><br></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Ph.D Candidate,</font></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Dept. of Computer Science and Technology,</font></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Tsinghua University, P. R. China</font></span></div></font></div></div>
</div>
<br><div><div>On May 9, 2013, at 11:33 PM, Xiaoke Jiang <<a href="mailto:shock.jiang@gmail.com">shock.jiang@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=utf-8"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi all,<div><span class="Apple-tab-span" style="white-space:pre">    </span>I am trying to get the transmission delay with app tracer. But I am not sure what's concluded in the delay. For example, Queuing time on the router, transmitting time on the wire, etc.</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>Can anyone give me any hints? Thank you in advance.</div><div><span class="Apple-tab-span" style="white-space:pre">  </span></div><div>in my file:</div><div><div style="margin: 0px; font-size: 11px; font-family: Monaco; color: rgb(57, 51, 255); "><span style="">  Config::SetDefault (</span>"ns3::PointToPointNetDevice::DataRate"<span style="">, </span><span style="color: #006141">StringValue</span><span style=""> (</span>"10Mbps"<span style="">));</span></div><div style="margin: 0px; font-size: 11px; font-family: Monaco; color: rgb(57, 51, 255); "><span style="">  Config::SetDefault (</span>"ns3::PointToPointChannel::Delay"<span style="">, </span><span style="color: #006141">StringValue</span><span style=""> (</span>"1ms"<span style="">));</span></div></div><div style="margin: 0px; font-size: 11px; font-family: Monaco; color: rgb(57, 51, 255); "><span style=""><br></span></div><div style="margin: 0px; font-size: 11px; font-family: Monaco; color: rgb(57, 51, 255); "><span style=""><br></span></div><div style="margin: 0px; font-size: 11px; font-family: Monaco; color: rgb(57, 51, 255); "><span style="">And is the delay related to packet size?</span></div><div><br><div>
<div><div style="color: rgb(34, 34, 34); font-size: small; background-color: rgb(255, 255, 255); font-family: arial; "><font face="'comic sans ms', sans-serif">thanks</font><br><br><font face="garamond, serif"><font size="4">My Regards,</font><br></font></div><hr align="left" size="1" style="color: rgb(34, 34, 34); font-size: small; font-family: arial; width: 210px; min-height: 1px; "><div style="color: rgb(34, 34, 34); font-size: small; background-color: rgb(255, 255, 255); font-family: arial; "><font face="garamond, serif"><div><span style="font-size: 10.5pt; ">Xiaoke Jiang (蒋小可)</span></div><div><span style="font-size: 10.5pt; "><br></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Ph.D Candidate,</font></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Dept. of Computer Science and Technology,</font></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Tsinghua University, P. R. China</font></span></div></font></div></div>
</div>
<br></div></div></blockquote></div><br></div></blockquote><blockquote type="cite"><span>_______________________________________________</span><br><span>ndnSIM mailing list</span><br><span><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a></span><br><span><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a></span><br></blockquote></div></blockquote></div><br></div></div></blockquote><blockquote type="cite"><span>_______________________________________________</span><br><span>ndnSIM mailing list</span><br><span><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a></span><br><span><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a></span><br></blockquote></div></blockquote></div><br></div></blockquote><blockquote type="cite"><span>_______________________________________________</span><br><span>ndnSIM mailing list</span><br><span><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a></span><br><span><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a></span><br></blockquote></div></blockquote></div><br></div>_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br></blockquote></div><br></div></blockquote></div><br></div></div></body></html>