I want to calculate the delay experienced by a packet in the downstream node at each node.
I would like to queue the arriving packets according to this delay.
I know that the delay.h file within NS2 contains the LinkDelay class which contains ,delay_ , which is the propagation delay, and the function txtime(p), which returns the transmission time of the packet.
Can I make use of this??
If so how can I calculate the delay experienced in the downstream nodes??
Also what about the time spent in the queue of the downstream node??