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.