you have to modify kernel code ;) Add one field into sk_buff and initialize it with TSC at recieve. Then in global dequeue in sch_generic.c IIRC you can compute delay and either prinkt or average it directly in kernel. devik On Tue, 26 Feb 2002, Radhakrishnan Vijay wrote: > 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.