QueueDisc real packet size with all headers

24 views
Skip to first unread message

Steffen Lindner

unread,
May 17, 2017, 4:33:03 AM5/17/17
to ns-3-users
Hi guys,

i'm working on new AQM mechanisms and try to simulate a fifo queue within a new queue disc. Therefore i'm storing bytecounters (information about the actual bytes in the queue) and decrease them with the actual link rate R (e.g. 10 Mbps, i know those information may not be available but thats just for educational usage). To correctly decrease the counter i need information about the whole packet size, including all layers, because link rate R is a layer 2 rate. 

As far as i know, ns3 uses 40 Bytes for the Ethernet Header (i'm using a P2P network). Additional a PPP header with 16 bytes is used. To simulate a correct fifo i guess i just have to add 40 + 16 bytes to packet size (item->GetPacketSize() in enqueue) when i'm decreasing my counter with R * (now - last_update). Stil, i don't get the expected results. Or does the quota and/or net device transmission queue influence the correct sending behaviour?

Any input is appreciated!

Kind regard.


Tommaso Pecorella

unread,
May 17, 2017, 7:37:46 PM5/17/17
to ns-3-users
There's no Ethernet header in the P2P link, just a PPP header (2 bytes).

T.
Reply all
Reply to author
Forward
0 new messages