<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Use the scheduleEvent method of the ns-3 scheduler:
<div class=""><br class="">
</div>
<div class=""><a href="https://ndnsim.net/2.1/doxygen/classndn_1_1util_1_1scheduler_1_1Scheduler.html" class="">https://ndnsim.net/2.1/doxygen/classndn_1_1util_1_1scheduler_1_1Scheduler.html</a><br class="">
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class="">
<div class=""><br class="">
</div>
<div class="">
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div>Spyridon (Spyros) Mastorakis, Ph.D.<br class="">
Assistant Professor<br class="">
Computer Science Department<br class="">
University of Nebraska, Omaha<br class="">
Peter Kiewit Institute Room 175A<br class="">
Associate Editor, IEEE Internet of Things Journal<br class="">
Website: https://sites.google.com/site/spyridonmastorakis</div>
</div>
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Jun 14, 2021, at 5:39 PM, Prajjwal Singh <csb17053@tezu.ac.in> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class=""><font face="sans-serif" color="#FF6347" class="">Non-NU Email</font>
<hr class="">
 </div>
<div dir="auto" class="">Thank you very much. Junxio.
<div dir="auto" class="">I am actually looking for ways to delay the sending of some interests (as per some custom field).</div>
<div dir="auto" class="">How can I achieve this? </div>
</div>
<br class="">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, 14 Jun 2021, 19:09 Junxiao Shi, <<a href="mailto:shijunxiao@email.arizona.edu" class="">shijunxiao@email.arizona.edu</a>> wrote:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" class="">
<div dir="ltr" class="">Hi Prajjwal
<div class=""><br class="">
</div>
<div class="">Congestion control algorithm accesses TX queue length via Transport::getSendQueueLength function.</div>
<div class="">The implementation relevant to ns-3 is here:</div>
<div class=""><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_named-2Ddata-2DndnSIM_ndnSIM_blob_28da73c868ad7444dba7a754fb77a41f6ca7cb07_model_ndn-2Dnet-2Ddevice-2Dtransport.cpp-23L85-2DL96&d=DwMFaQ&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=eI5Bh74ovG-uIXQ5ksQETSPgRFzmJXjIZXneCqw580E&m=GehPQRpCJBlTe0EVxVxLSCNciGMlYdGFIjhdqNB5Q2U&s=GmwOh1jV6B_gTw9AqoZtcGOOTNiLkTdVh5Txhus51g8&e=" target="_blank" rel="noreferrer" class="">https://github.com/named-data-ndnSIM/ndnSIM/blob/28da73c868ad7444dba7a754fb77a41f6ca7cb07/model/ndn-net-device-transport.cpp#L85-L96</a><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">You cannot introduce delays in a queue.</div>
<div class="">Instead:</div>
<div class="">If you want to create an interval between transmitting two packets, set the PointToPointNetDevice/DataRate attribute. This enforces a packet sending speed, such that the NetDevice would not dequeue faster than that.</div>
<div class="">If you want to create a delay between transmitting a packet and its receipt, set a link delay on PointToPointChannel/Delay attribute.</div>
<div class=""><br class="">
</div>
<div class="">Yours, Junxiao</div>
</div>
<br class="">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Jun 11, 2021 at 12:47 PM Prajjwal Singh <<a href="mailto:csb17053@tezu.ac.in" target="_blank" rel="noreferrer" class="">csb17053@tezu.ac.in</a>> wrote:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<p style="text-align:center" class=""><font color="red" class=""><strong class="">External Email</strong><br class="">
</font></p>
<div dir="ltr" class="">
<div class="">Hello everybody,</div>
<div class="">I have read in the NFD's developers guide, under the Congestion Control section, that each NFD face monitors its outgoing queue for congestion.</div>
<div class=""><br class="">
</div>
<div class="">Please refer me to the code implementation of these outgoing Queues.</div>
<div class="">Also, how can one introduce delays for outgoing interest packets from these queues.</div>
<div class=""><br class="">
</div>
<div class="">Thanking you in advance</div>
<div class="">Prajjwal Singh<br class="">
</div>
</div>
<br class="">
</blockquote>
</div>
</div>
</blockquote>
</div>
_______________________________________________<br class="">
ndnSIM mailing list<br class="">
ndnSIM@lists.cs.ucla.edu<br class="">
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.lists.cs.ucla.edu_mailman_listinfo_ndnsim&d=DwICAg&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=eI5Bh74ovG-uIXQ5ksQETSPgRFzmJXjIZXneCqw580E&m=GehPQRpCJBlTe0EVxVxLSCNciGMlYdGFIjhdqNB5Q2U&s=vHFfFPh5lkWM8ducMM5XQ84cDe_e6nDh9dVQGGAOyf0&e=
<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</body>
</html>