Skip to contentSkip to conversation

measuring queueing delay using iproute2

LARTC Don Cohen 2 participants 3 messages Feb 27, 2002 – Feb 28, 2002

lore
Share & tools
lore

Don Cohen

author
#0 lore raw

How about this:
use tcpdump to record the packets of that class
match up the incoming and outgoing packets
take the difference in tcp timestamps

Quoted 4 lines

From: Radhakrishnan Vijay <[email protected]>
To: [email protected]
Subject: [LARTC] measuring queueing delay using iproute2

Quoted 11 lines

I am using the tc functionality provided by iproute2 to setup classes and queueing disciplines. I have a requirement to determine the queueing delay of each packet belonging to a particular class so that i can measure the average queueing delay over a time interval for a particular traffic class. I would be grateful if somebody could give me pointers on how i possibly can achieve this. I suspect that i would have to modify the source code of iproute2 , but am not too sure on what segment of the code i should be modifying.

It won't help to modify iproute2. It's not doing the forwarding. It only tells the kernel what you want the kernel to do.
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 5 lines · Don Cohen

How about this:
use tcpdump to record the packets of that class
match up the incoming and outgoing packets
take the difference in tcp timestamps

Won't work - tcpdump sits before the packet scheduler, and not after.

Regards,

bert

Signature · 6 lines
http://www.PowerDNS.com          Versatile DNS Software & Services
http://www.tk                              the dot in .tk
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
author
#2 lore raw
In reply to Don Cohen
Quoted 8 lines · bert hubert
Quoted 5 lines · Don Cohen

How about this:
use tcpdump to record the packets of that class
match up the incoming and outgoing packets
take the difference in tcp timestamps

Won't work - tcpdump sits before the packet scheduler, and not after.

No way. For instance, the packet scheduler can decide to drop the packet. In which case it better not show up in tcpdump! Tcpdump is after dequeue, just before giving the packet to the device.
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/