Hi,
I need to send UDP packets at a particular bit rate over an Ether Lan.
I use a simple loop [ see sudo code below ] to achieve this ...
for ( i=0; i < NoOfPackets_ ; i++ )
{
Send(DatagramPacket_) ;
// DelaySeconds_ = SizeofDatagramPacket in bits /BitRate
wait(DelaySeconds_) ;
}
The code seems to work fine most of the cases but on certain instances a
tcpdump capture of the packets show that there is a burst of packets ( all
with the same tcpdump timestamp). During such cases there is a heavy packet
loss on the receiving end and only about 6% of the packets reach through to
the destination (source and destination are one hop away ).
Iam at loss to explain this behavior and can only guess that it could be any
of the Linux sched , UDP buffers , destination UDP buffers or the MAC layer
buffers.Has anyone else seen a similar behavior ....??
Do my expected behavior and the code match ??
Any good sources for linux sched behavior especially the timeslice that each
process gets etc., would be helpful ?
What criterion does the UDP layer use to discard UDP packets [apart from CRC
errors ] ? Is there a way to configure routers to drop UDP packets beyond a
certain threshold rate ?
>From delusion lead me to Truth.
>From Darkness lead me to Light.
-Brihad Aranyaka Upanishad
_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]