[ndnSIM] issues regarding consumer application and queuing delay

Klaus Schneider klaus at cs.arizona.edu
Fri Jun 1 18:28:24 PDT 2018

On 31/05/18 06:04, amulya amy wrote:
> Hello NDNSIM Folks!!
> I am a beginner to ndnsim... and currently analyzing default programs in 
> ndnsim... i have few issues that needs to be cleared...
> (1)How can we simulate the scenario where consumer is sending same 
> interest(same sequence number) instead of incremental sequenc > number(default behavior)? how to achieve this?

You can look for "seq++" or similar in the code and then comment out 
that line.

However, keep in mind that Interests with the same sequence numbers may 
be aggregated/dropped in the PIT, and you might run into other problems.

> (2)How can i trace queuing delay of a node in ndnsim?

You can get the queue size in bytes/packets from a pointToPointNetDevice:

>       Ptr<Queue> queue = ptpNetdev->GetQueue();
>       uint32_t nPackets = queue->GetNPackets();
>       uint32_t nBytes = queue->GetNBytes();

Best regards,

> //
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim

More information about the ndnSIM mailing list