lkml.org 
[lkml]   [2004]   [Feb]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: udp packet loss even with large socket buffer
Date
On Saturday 28 February 2004 03:09, johnny zhao wrote:
> Hi,
>
> I have a problem when trying to receive udp packets containing video data
> sent by Microsoft Windows Messenger. Here is a detailed description:
>
> Linux box:
> Linux-2.4.21-0.13mdksmp, P4 2.6G HT
> socket mode:
> blocked mode
> code used:
> while ( recvfrom(...) )
> socket buffer size:
> 8388608, set by using sysctl -w net.core.rmem_default and rmem_max
>
> I used ethereal(using libpcap) to monitor the network traffic. All the
> packets were transferred and captured by libpcap. But my program constantly
> suffers from packet loss. According to ethereal, the average time interval
> between 2 packets is 70-80ms, and the minimum interval can go down to
> ~1ms. Each packet is smaller than 1500 bytes (ethernet MTU).
>
> Can anybody help me? I googled and found a similar case that had been
> solved by increasing the socket buffer size. But it doesn't work for me. I
> think 8M is a crazily large size :(

Post a small program demonstrating your problem.
(I'd test udp receive with netcat too)
--
vda

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.051 / U:0.496 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site