Bug 11439 - TCP Socket set with 256K SO_SNDBUF & 1460 TCP_MAXSEG using setsockopt was sending 10% of the TCP packets of length < 1460 to other End
Summary: TCP Socket set with 256K SO_SNDBUF & 1460 TCP_MAXSEG using setsockopt was sen...
Status: RESOLVED INVALID
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.4
: P2 critical
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-29 07:43 UTC by Venkata Mahesh
Modified: 2014-06-30 18:21 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments
TCP Dump collected on RH5 Dell R710 (8.89 KB, application/octet-stream)
2010-03-29 07:51 UTC, Venkata Mahesh
Details
TCP Dump collected on RH4 Dell R710 (16.87 KB, application/octet-stream)
2010-03-29 07:52 UTC, Venkata Mahesh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Venkata Mahesh 2010-03-29 07:43:37 UTC
GCC Version : 4.1.2
OS Version  : Red Hat Enterprise Linux Server release 5.4
Machine     : Dell R710 & Dell 2950

On above specified machine & gcc.. I have built an server application which 
has TCP socket set 
with 256K SNDBUF & 1460 TCP_MAXSEG and sends data to other End in multiples of 
packets of size 
4096 bytes each. I have set these flag values before listen & accept. But my 
application still 
sending 10% of TCP packets of length < 1460 to other End, which I observed in 
collected tcpdump. 
Collected multiple tcpdumps and found that starting SYN & SYN ACK packets 
exchanged MSS with 
1460 but still seeing the issue on Redhat Linux 5.

Didn't seen the above issue on Redhat Linux 4.

Observing the above issue only on Redhat Linux 5 for large objects ( > 200KB ).

Collected tcpdumps for both RH4 & RH5. If required.. I will provide to you.

Rechecked sysctl configuration on both RH4 & RH5 for below params and found 
correct -

net.ipv4.tcp_rmem = 4096        87380   4194304
net.ipv4.tcp_wmem = 4096        65536   4194304
net.ipv4.tcp_mem = 1310720      1310720 1310720
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_window_scaling = 1

Please let me know, if any information needed or anything I need to further 
recheck etc.
Comment 1 Venkata Mahesh 2010-03-29 07:51:00 UTC
Created attachment 4686 [details]
TCP Dump collected on RH5 Dell R710

TCP dump collected on RH5 Dell R710
Comment 2 Venkata Mahesh 2010-03-29 07:52:01 UTC
Created attachment 4687 [details]
TCP Dump collected on RH4 Dell R710

TCP Dump collected on RH4 Dell R710
Comment 3 Ulrich Drepper 2010-03-29 11:08:04 UTC
This has nothing to do with the C library.  Talk to the kernel people.