[ndnSIM] [EXT] Help with outgoing queues of nodes.

Spyridon Mastorakis smastorakis at unomaha.edu
Mon Jun 14 07:41:27 PDT 2021


Use the scheduleEvent method of the ns-3 scheduler:

https://ndnsim.net/2.1/doxygen/classndn_1_1util_1_1scheduler_1_1Scheduler.html

Thanks,

Spyridon (Spyros) Mastorakis, Ph.D.
Assistant Professor
Computer Science Department
University of Nebraska, Omaha
Peter Kiewit Institute Room 175A
Associate Editor, IEEE Internet of Things Journal
Website: https://sites.google.com/site/spyridonmastorakis

On Jun 14, 2021, at 5:39 PM, Prajjwal Singh <csb17053 at tezu.ac.in> wrote:

Non-NU Email
________________________________

Thank you very much. Junxio.
I am actually looking for ways to delay the sending of some interests (as per some custom field).
How can I achieve this?

On Mon, 14 Jun 2021, 19:09 Junxiao Shi, <shijunxiao at email.arizona.edu<mailto:shijunxiao at email.arizona.edu>> wrote:
Hi Prajjwal

Congestion control algorithm accesses TX queue length via Transport::getSendQueueLength function.
The implementation relevant to ns-3 is here:
https://github.com/named-data-ndnSIM/ndnSIM/blob/28da73c868ad7444dba7a754fb77a41f6ca7cb07/model/ndn-net-device-transport.cpp#L85-L96<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=>

You cannot introduce delays in a queue.
Instead:
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.
If you want to create a delay between transmitting a packet and its receipt, set a link delay on PointToPointChannel/Delay attribute.

Yours, Junxiao

On Fri, Jun 11, 2021 at 12:47 PM Prajjwal Singh <csb17053 at tezu.ac.in<mailto:csb17053 at tezu.ac.in>> wrote:

External Email

Hello everybody,
I have read in the NFD's developers guide, under the Congestion Control section, that each NFD face monitors its outgoing queue for congestion.

Please refer me to the code implementation of these outgoing Queues.
Also, how can one introduce delays for outgoing interest packets from these queues.

Thanking you in advance
Prajjwal Singh

_______________________________________________
ndnSIM mailing list
ndnSIM at lists.cs.ucla.edu
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=

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20210614/50f4401b/attachment.html>


More information about the ndnSIM mailing list