netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Linux UDP Implementation
@ 2006-08-31  5:56 Gary Chan
       [not found] ` <44F715B5.5070905@hp.com>
  2006-09-02 11:42 ` Andi Kleen
  0 siblings, 2 replies; 3+ messages in thread
From: Gary Chan @ 2006-08-31  5:56 UTC (permalink / raw)
  To: netdev

According to the function call udp_sendmsg() in the source file 
net/ipv4/udp.c (Linux Kernel 2.6.17.11), when an error value is returned 
from the function ip_append_data() due to local device congestion, say 
interface queue overflow,  pending packets in the queue sk->sk_write_queue 
are simply flushed (udp_flush_pending_frames() is invoked) without caching 
for future retransmission.

I called a network API function sendto() to transmit UDP packets in a 
blocking I/O mode at a rate of 100Mbps over the 802.11b wireless ad hoc 
network, the network was overloaded as the maximum transfer rate for 802.11b 
was just 11Mbps. Therefore, the outgoing interface queue must be full and 
UDP packets will be dropped eventually. However, I checked that there was no 
packet loss at the receiver side, i.e. the number of packets sent from the 
sender is equal to that received.

It seems that the implementation (at code level) does not match with the 
actual behaviour. I would like to seek expertise on clarifying my 
understanding in UDP implementation so that this phenomenon can be 
explained.

Thank you. 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-09-02 11:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-31  5:56 Linux UDP Implementation Gary Chan
     [not found] ` <44F715B5.5070905@hp.com>
2006-09-02  6:27   ` Gary Chan
2006-09-02 11:42 ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).