For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > March 2008 > Delaying UDP packets









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Delaying UDP packets
jdthebigj@gmail.com

2008-03-16, 7:33 pm

I need to intercept a UDP packet stream and delay all the packets by
20ms. The requirement is that the recipient only receives the modified
packet stream with the additional 20ms delays incorporated. This needs
to be done as efficiently as possible. I know about libpcap but I read
somewhere that pcap only provides you with a copy of the packet. The
original packet still reaches the destination. I need my delay
inserting program to work in the man in the middle fashion without the
sender and receiver knowing it. Please help me out.
Gordon Burditt

2008-03-16, 7:33 pm

>I need to intercept a UDP packet stream and delay all the packets by
>20ms. The requirement is that the recipient only receives the modified
>packet stream with the additional 20ms delays incorporated. This needs
>to be done as efficiently as possible. I know about libpcap but I read
>somewhere that pcap only provides you with a copy of the packet. The
>original packet still reaches the destination. I need my delay
>inserting program to work in the man in the middle fashion without the
>sender and receiver knowing it. Please help me out.


FreeBSD's packet filter 'ipfw' also has traffic shaping functions that can
introduce delays, random packet drops, etc. on a portion or all of the traffic.
I believe Linux has this ability also in a slightly different form.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com