2.6.7-mm1 - 2.6.7-mm4 weird http behavior
I am found an interesting (bug?) feature in kernels between 2.6.7-mm1 and 2.6.7-mm4
Some web pages eg.
http://www.hup.hu/
http://portal.fsn.hu/
http://wiki.hup.hu/
is unreachable with these kernels. If i try kernel versions <= 2.6.7 everything is O.K. above-mentioned all web pages works.
I try this web pages with some different operating systems like Windows, OpenBSD, FreeBSD, WinCe... and seems working fine for me.
Any idea?
Thanks.
Quoted 2 lines · Debi Janos
I am found an interesting (bug?) feature in kernels between 2.6.7-mm1 and 2.6.7-mm4
Without further looking at it, try checking if ECN is turned on. /proc/sys/net/ipv4/tcp_ecn if memory serves me well.
Signature · 2 lines
http://www.PowerDNS.com Open source, database driven DNS Software http://lartc.org Linux Advanced Routing & Traffic Control HOWTO
bert hubert <[email protected]> írta:
Quoted 5 lines · Debi Janos
Quoted 2 lines
I am found an interesting (bug?) feature in kernels between 2.6.7-mm1 and 2.6.7-mm4
Without further looking at it, try checking if ECN is
turned on.
Quoted 1 line
/proc/sys/net/ipv4/tcp_ecnif memory serves me well.
Hi!
Thanks. I have tried, but still have problem.
Another site which not working:
Quoted 1 line · Debi Janos
Run
tcpdump -i any -s 0 -w workingkernel host 198.63.211.232 and
tcpdump -i any -s 0 -w brokenkernel host 198.63.211.232
While trying to connect with both a workingkernel and a brokenkernel.
Then attach both these files in a message, either to me or to the list.
This will allow us to see what is going on.
Signature · 2 lines
http://www.PowerDNS.com Open source, database driven DNS Software http://lartc.org Linux Advanced Routing & Traffic Control HOWTO
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 10 lines · Debi Janos
bert hubert <[email protected]> ?rta:
.Quoted 2 lines
Then attach both these files in a message, either to me or
to the list.
Quoted 2 lines
This will allow us to see what is going on.
dumps attached. thanks.
There is almost no difference in the trace, and it is very puzzling. Your attachments will have been bounced by vger, so I suggest putting these traces online somewhere.
The weird thing is that the packages.gentoo.org appears to be at fault. It ignores your valid FIN packets, or at least, they appear to be valid to ethereal.
There are three differences between these traces:
1) The IP address of your computer
2) In the non-working trace, your Mozilla does not pass a 'Cache-Control' HTTP header
3) The broken trace has a timestamp wraparound on your side
Of note is that both gentoo and you set a non-standard MSS (I think).
Suggestions:
1) turn off timestamps (echo 0 > /proc/sys/net/ipv4/tcp_timestamps)
2) set your MTU to 1000 or so (ifconfig eth0 mtu 1000)
And try again.
Interesting case!
Signature · 2 lines
http://www.PowerDNS.com Open source, database driven DNS Software http://lartc.org Linux Advanced Routing & Traffic Control HOWTO
bert hubert <[email protected]> írta:
Quoted 5 lines · Debi Janos
Quoted 1 line
bert hubert <[email protected]> ?rta:
Suggestions:
1) turn off timestamps (echo 0 >
/proc/sys/net/ipv4/tcp_timestamps)
Quoted 5 lines
2) set your MTU to 1000 or so (ifconfig eth0 mtu 1000)
And try again.
Interesting case!
problem workarounded:
sysctl -w net.ipv4.tcp_moderate_rcvbuf=0
sysctl -w net.ipv4.tcp_default_win_scale=0
Thanks.
Quoted 11 lines
bert hubert <[email protected]> írta:
Quoted 5 lines · Debi Janos
Quoted 1 line
bert hubert <[email protected]> ?rta:
Suggestions:
1) turn off timestamps (echo 0 >
/proc/sys/net/ipv4/tcp_timestamps)Quoted 2 lines
2) set your MTU to 1000 or so (ifconfig eth0 mtu 1000)
Quoted 8 lines
Quoted 3 lines
And try again.
Interesting case!
problem workarounded:
sysctl -w net.ipv4.tcp_moderate_rcvbuf=0
sysctl -w net.ipv4.tcp_default_win_scale=0
yep, this solves packages.gentoo.org..
but lkml.org is still broken for me.. i'd really like to know what this is all about :>
Quoted 8 lines
Thanks.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Quoted 12 lines · Debi Janos
I am found an interesting (bug?) feature in kernels between 2.6.7-mm1 and 2.6.7-mm4
Some web pages eg.
http://www.hup.hu/
http://portal.fsn.hu/
http://wiki.hup.hu/is unreachable with these kernels. If i try kernel versions <= 2.6.7 everything is O.K. above-mentioned all web pages works.
I'm seeing the same thing after upgrading to 2.6.7-mm4, 2.6.7 vanilla does not exhibit the problem.
Also Azureus (Java Bittorrent client) crashes when it tries to open a network socket to begin downloading. Again problem does not exist with 2.6.7.
I'm going to try a few other kernel versions to see if I can find when this started.
Jesse
Signature · 1 line
Jesse Stockall <[email protected]>
Quoted 17 lines · Jesse Stockall
Quoted 12 lines · Debi Janos
I am found an interesting (bug?) feature in kernels between 2.6.7-mm1 and 2.6.7-mm4
Some web pages eg.
http://www.hup.hu/
http://portal.fsn.hu/
http://wiki.hup.hu/is unreachable with these kernels. If i try kernel versions <= 2.6.7 everything is O.K. above-mentioned all web pages works.
I'm seeing the same thing after upgrading to 2.6.7-mm4, 2.6.7 vanilla does not exhibit the problem.
Quoted 6 lines
Also Azureus (Java Bittorrent client) crashes when it tries to open a network socket to begin downloading. Again problem does not exist with 2.6.7.
I'm going to try a few other kernel versions to see if I can find when this started.
Same behaviour.
Here's an ipv4 diff (2.6.6 FE2 vs 2.6.7mm3)
ip_local_port_range|32768 61000
ip_nonlocal_bind|0 ip_no_pmtu_disc|0 +ip_queue_maxlen|1024 tcp_abort_on_overflow|0 tcp_adv_win_scale|2 tcp_app_win|31 -tcp_bic|0 +tcp_bic|1 tcp_bic_fast_convergence|1 tcp_bic_low_window|14 +tcp_default_win_scale|7 tcp_dsack|1 tcp_ecn|0 tcp_fack|1 tcp_max_orphans|8192 tcp_max_syn_backlog|1024 tcp_max_tw_buckets|180000 -tcp_mem|48128 48640 49152 +tcp_mem|24576 32768 49152 +tcp_moderate_rcvbuf|1 tcp_no_metrics_save|0 tcp_orphan_retries|0 tcp_reordering|3 tcp_sack|1 tcp_stdurg|0 tcp_synack_retries|5 -tcp_syncookies|0 tcp_syn_retries|5 tcp_timestamps|1 tcp_tw_recycle|0
Regards,
FabF
Quoted 2 lines
Jesse
Quoted 9 lines · On Tue, 29 Jun 2004 15:20:06 +0200 (CEST) Debi Janos <[email protected]>…
I am found an interesting (bug?) feature in kernels between 2.6.7-mm1 and 2.6.7-mm4
Some web pages eg.
Quoted 8 lines
is unreachable with these kernels. If i try kernel versions <= 2.6.7 everything is O.K. above-mentioned all web pages works.
I try this web pages with some different operating systems like Windows, OpenBSD, FreeBSD, WinCe... and seems working fine for me.
Any idea?
Dave enabled the receive buffer auto-tuning which uses TCP window scaling. It looks like all these sites are running FreeBSD, perhaps there is a bug in FreeBSD?
As suggested earlier please get a TCP dump of a failed connection.
To turn of receive buffer auto-tuning:
sysctl -w net.ipv4.tcp_moderate_rcvbuf=0 sysctl -w net.ipv4.tcp_default_win_scale=0
Thanks.
Quoted 3 lines · On Tue, 29 Jun 2004 11:22:56 -0700 Stephen Hemminger <[email protected]>…
To turn of receive buffer auto-tuning:
sysctl -w net.ipv4.tcp_moderate_rcvbuf=0 sysctl -w net.ipv4.tcp_default_win_scale=0
It may be just the window scaling that's causing the grief so people can try just setting tcp_default_win_scale to zero and leaving tcp_moderate_rcvbuf enabled.
That would be an important data-point.
David S. Miller <[email protected]> írta:
Quoted 7 lines
Quoted 3 lines · On Tue, 29 Jun 2004 11:22:56 -0700 Stephen Hemminger <[email protected]>…
To turn of receive buffer auto-tuning:
sysctl -w net.ipv4.tcp_moderate_rcvbuf=0 sysctl -w net.ipv4.tcp_default_win_scale=0
Quoted 5 lines
It may be just the window scaling that's causing the grief so people can try just setting
tcp_default_win_scaleto zero and leavingtcp_moderate_rcvbufenabled.That would be an important data-point.
Yes.
sysctl -w net.ipv4.tcp_default_win_scale=0
is enough.
(1.2GHz 55C) root@alderaan:/home/trey $ sysctl
net.ipv4.tcp_moderate_rcvbuf
net.ipv4.tcp_moderate_rcvbuf = 1
(1.2GHz 55C) root@alderaan:/home/trey $ sysctl
net.ipv4.tcp_default_win_scale
net.ipv4.tcp_default_win_scale = 0
(1.2GHz 54C) root@alderaan:/home/trey $
With this setting i have not problem, working everything is fine.
Quoted 11 lines · Stephen Hemminger
Dave enabled the receive buffer auto-tuning which uses TCP window scaling. It looks like all these sites are running FreeBSD, perhaps there is a bug in FreeBSD?
As suggested earlier please get a TCP dump of a failed connection.
To turn of receive buffer auto-tuning:
sysctl -w net.ipv4.tcp_moderate_rcvbuf=0 sysctl -w net.ipv4.tcp_default_win_scale=0
This works around the inaccessible websites, packages.gentoo.org (not a FreeBSD box) can now be reached.
This however does not resolve the java issue. The application dies when trying to connect to receive data.
Signature · 1 line
Jesse Stockall <[email protected]>
Here is the trace output for both cases run against 2.6.7 latest (not -mm)
failing case: packages.gentoo.org
12:37:04.654043 IP 172.20.1.73.32774 > 198.63.211.232.80: S 4165256157:4165256157(0) win 5840 <mss 1460,sackOK,timestamp 2448351 0,nop,wscale 7> 12:37:05.078029 IP 198.63.211.232.80 > 172.20.1.73.32774: S 3946717705:3946717705(0) ack 4165256158 win 5792 <mss 1460,sackOK,timestamp 678388344 2448351,nop,wscale 0> 12:37:05.078069 IP 172.20.1.73.32774 > 198.63.211.232.80: . ack 1 win 45 <nop,nop,timestamp 2448775 678388344>
12:37:05.079000 IP 172.20.1.73.32774 > 198.63.211.232.80: P 1:1340(1339) ack 1 win 45 <nop,nop,timestamp 2448776 678388344>
12:37:05.283359 IP 198.63.211.232.80 > 172.20.1.73.32774: . ack 1340 win 8034 <nop,nop,timestamp 678388392 2448776>
<hung>
12:37:07.960251 IP 172.20.1.73.32773 > 198.63.211.232.80: F 4127965887:4127965887(0) ack 3063226309 win 45 <nop,nop,timestamp 2451658 678381231> 12:37:12.921440 IP 172.20.1.73.32774 > 198.63.211.232.80: F 1340:1340(0) ack 1 win 45 <nop,nop,timestamp 2456620 678388392> 12:37:14.166886 IP 172.20.1.73.32774 > 198.63.211.232.80: F 1340:1340(0) ack 1 win 45 <nop,nop,timestamp 2457865 678388392>
And normal case: osdl.org
12:42:58.249167 IP 172.20.1.73.32777 > 65.172.181.4.80: S 231703769:231703769(0) win 5840 <mss 1460,sackOK,timestamp 2802000 0,nop,wscale 7> 12:42:58.249486 IP 65.172.181.4.80 > 172.20.1.73.32777: S 2426432811:2426432811(0) ack 231703770 win 5792 <mss 1460,sackOK,timestamp 2635537765 2802000,nop,wscale 0> 12:42:58.249511 IP 172.20.1.73.32777 > 65.172.181.4.80: . ack 1 win 45 <nop,nop,timestamp 2802000 2635537765>
12:42:58.251102 IP 172.20.1.73.32777 > 65.172.181.4.80: P 1:1329(1328) ack 1 win 45 <nop,nop,timestamp 2802002 2635537765>
12:42:58.252069 IP 65.172.181.4.80 > 172.20.1.73.32777: . ack 1329 win 7968 <nop,nop,timestamp 2635537768 2802002>
12:42:58.253020 IP 65.172.181.4.80 > 172.20.1.73.32777: P 1:273(272) ack 1329 win 7968 <nop,nop,timestamp 2635537768 2802002> 12:42:58.253037 IP 172.20.1.73.32777 > 65.172.181.4.80: . ack 273 win 45 <nop,nop,timestamp 2802004 2635537768>
12:42:58.253670 IP 65.172.181.4.80 > 172.20.1.73.32777: . 273:1721(1448) ack 1329 win 7968 <nop,nop,timestamp 2635537769 2802002> 12:42:58.253697 IP 172.20.1.73.32777 > 65.172.181.4.80: . ack 1721 win 45 <nop,nop,timestamp 2802004 2635537769>
12:42:58.253790 IP 65.172.181.4.80 > 172.20.1.73.32777: P 1721:3169(1448) ack 1329 win 7968 <nop,nop,timestamp 2635537769 2802002> 12:42:58.253799 IP 172.20.1.73.32777 > 65.172.181.4.80: . ack 3169 win 45 <nop,nop,timestamp 2802005 2635537769>
12:42:58.254041 IP 65.172.181.4.80 > 172.20.1.73.32777: . 3169:4617(1448) ack 1329 win 7968 <nop,nop,timestamp 2635537769 2802004>
<...>
12:42:58.258191 IP 65.172.181.4.80 > 172.20.1.73.32777: P 17649:19097(1448) ack 1329 win 7968 <nop,nop,timestamp 2635537773 2802008> 12:42:58.259106 IP 65.172.181.4.80 > 172.20.1.73.32777: . 19097:20545(1448) ack 1329 win 7968 <nop,nop,timestamp 2635537774 2802009> 12:42:58.259155 IP 172.20.1.73.32777 > 65.172.181.4.80: . ack 20545 win 45 <nop,nop,timestamp 2802010 2635537773>
12:42:58.259166 IP 65.172.181.4.80 > 172.20.1.73.32777: FP 20545:20689(144) ack 1329 win 7968 <nop,nop,timestamp 2635537774 2802009> 12:42:58.262096 IP 172.20.1.73.32777 > 65.172.181.4.80: F 1329:1329(0) ack 20690 win 45 <nop,nop,timestamp 2802013 2635537774> 12:42:58.262357 IP 65.172.181.4.80 > 172.20.1.73.32777: . ack 1330 win 7968 <nop,nop,timestamp 2635537778 2802013>
What's really amusing in those traces is that it is the sender that is doing the window scaling, not the receiver. The side doing the window interpretation for data packet sending is looking at a non-scaled window.
Boggle...
Quoted 7 lines · On Tue, 29 Jun 2004 12:54:01 -0700 "David S. Miller" <[email protected]> wrote:
What's really amusing in those traces is that it is the sender that is doing the window scaling, not the receiver. The side doing the window interpretation for data packet sending is looking at a non-scaled window.
Boggle...
FYI - gentoo works for window scale 0..2 and appears to fail for >3.
Also, the socket ends up with:
State Recv-Q Send-Q Local Address:Port Peer Address:Port
ESTAB 0 0 172.20.1.73:34452 198.63.211.232:http
ts sack wscale:0,3 rto:332 rtt:66.375/50.5 cwnd:3
Quoted 7 lines · On Tue, 29 Jun 2004 13:35:01 -0700 Stephen Hemminger <[email protected]>…
FYI - gentoo works for window scale 0..2 and appears to fail for >3.
Also, the socket ends up with:
State Recv-Q Send-Q Local Address:Port Peer Address:Port
ESTAB 0 0 172.20.1.73:34452 198.63.211.232:httpts sack wscale:0,3 rto:332 rtt:66.375/50.5 cwnd:3
Yes, I've seen this declared in other reports too.
It probably means just that for window scales of 0..2 the misinterpretation does not result in a too-small-to-send-data window.
But I'm still confused that the scaled window is being given to the receiver, and this makes the connection freeze. I wonder if there is a queer box doing NAT or similar in front of the gentoo machine which either:
1) Applies any window scaling to both directions
2) Applies window scaling to the wrong direction
and uses this to "help" with dropping of out-of-window TCP segments.
Quoted 21 lines · On Tue, 29 Jun 2004 13:59:22 -0700 "David S. Miller" <[email protected]> wrote:
Quoted 7 lines · On Tue, 29 Jun 2004 13:35:01 -0700 Stephen Hemminger <[email protected]>…
FYI - gentoo works for window scale 0..2 and appears to fail for >3.
Also, the socket ends up with:
State Recv-Q Send-Q Local Address:Port Peer Address:Port
ESTAB 0 0 172.20.1.73:34452 198.63.211.232:httpts sack wscale:0,3 rto:332 rtt:66.375/50.5 cwnd:3Yes, I've seen this declared in other reports too.
It probably means just that for window scales of 0..2 the misinterpretation does not result in a too-small-to-send-data window.
But I'm still confused that the scaled window is being given to the receiver, and this makes the connection freeze. I wonder if there is a queer box doing NAT or similar in front of the gentoo machine which either:
Quoted 4 lines
1) Applies any window scaling to both directions
2) Applies window scaling to the wrong directionand uses this to "help" with dropping of out-of-window TCP segments.
Unfortunately, this means the default probably means that window scale must be disabled. An interesting experiment would be to see if other implementations have the same problem with window scale enabled.
Quoted 24 lines · Stephen Hemminger
Quoted 21 lines · On Tue, 29 Jun 2004 13:59:22 -0700 "David S. Miller" <[email protected]> wrote:
Quoted 7 lines · On Tue, 29 Jun 2004 13:35:01 -0700 Stephen Hemminger <[email protected]>…
FYI - gentoo works for window scale 0..2 and appears to fail for >3.
Also, the socket ends up with:
State Recv-Q Send-Q Local Address:Port Peer Address:Port
ESTAB 0 0 172.20.1.73:34452 198.63.211.232:httpts sack wscale:0,3 rto:332 rtt:66.375/50.5 cwnd:3Yes, I've seen this declared in other reports too.
It probably means just that for window scales of 0..2 the misinterpretation does not result in a too-small-to-send-data window.
But I'm still confused that the scaled window is being given to the receiver, and this makes the connection freeze. I wonder if there is a queer box doing NAT or similar in front of the gentoo machine which either:
Quoted 8 lines
Quoted 4 lines
1) Applies any window scaling to both directions
2) Applies window scaling to the wrong directionand uses this to "help" with dropping of out-of-window TCP segments.
Unfortunately, this means the default probably means that window scale must be disabled. An interesting experiment would be to see if other implementations have the same problem with window scale enabled.
Sigh. I ran in to this problem a year or so ago and it was a broken firewall that was mangling the TCP window scale option. I think the firewall was an OpenBSD machine, and I was told the problem went away with an upgrade. I'm curious what they're running here.
The boundary 3 is special because it causes SWS avoidance to break.
-John
Quoted 6 lines · On Tue, 29 Jun 2004 17:36:45 -0400 (EDT) John Heffner <[email protected]> wrote:
Sigh. I ran in to this problem a year or so ago and it was a broken firewall that was mangling the TCP window scale option. I think the firewall was an OpenBSD machine, and I was told the problem went away with an upgrade. I'm curious what they're running here.
The boundary 3 is special because it causes SWS avoidance to break.
Interesting data-point, thanks John.
Can someone go figure out what packages.gentoo.org is using as a firewall/router?
Quoted 8 lines · David S. Miller
Quoted 5 lines · On Tue, 29 Jun 2004 17:36:45 -0400 (EDT) John Heffner <[email protected]> wrote:
Sigh. I ran in to this problem a year or so ago and it was a broken firewall that was mangling the TCP window scale option. I think the firewall was an OpenBSD machine, and I was told the problem went away with an upgrade. I'm curious what they're running here.
Quoted 6 lines
Quoted 1 line
The boundary 3 is special because it causes SWS avoidance to break.
Interesting data-point, thanks John.
Can someone go figure out what packages.gentoo.org is using as a firewall/router?
I forwarded one of the previous mails in the thread to Kurt Lieber who should know what is the setup there, or who to speak to.
Cheers,
Signature · 1 line
Martin Schlemmer
2004-06-29, k keltezéssel 23:36-kor John Heffner ezt írta:
Quoted 8 lines
Sigh. I ran in to this problem a year or so ago and it was a broken firewall that was mangling the TCP window scale option. I think the firewall was an OpenBSD machine, and I was told the problem went away with an upgrade. I'm curious what they're running here.
The boundary 3 is special because it causes SWS avoidance to break.
-John
hmm. interesting. my server sits behind an openbsd packet filter... , but the gentoo's machines uses iptables firewall...
2004-06-29, k keltezéssel 23:36-kor John Heffner ezt írta:
Quoted 8 lines
Sigh. I ran in to this problem a year or so ago and it was a broken firewall that was mangling the TCP window scale option. I think the firewall was an OpenBSD machine, and I was told the problem went away with an upgrade. I'm curious what they're running here.
The boundary 3 is special because it causes SWS avoidance to break.
-John
hmm. interesting. my server sits behind an openbsd packet filter... , but the gentoo's machines uses iptables firewall...
Quoted 7 lines · On Wed, 30 Jun 2004 10:04:52 +0200 Debi Janos <[email protected]> wrote:
2004-06-29, k keltezéssel 23:36-kor John Heffner ezt írta:
Quoted 5 lines
Sigh. I ran in to this problem a year or so ago and it was a broken firewall that was mangling the TCP window scale option. I think the firewall was an OpenBSD machine, and I was told the problem went away with an upgrade. I'm curious what they're running here.
Quoted 5 lines
Quoted 3 lines
The boundary 3 is special because it causes SWS avoidance to break.
-John
hmm. interesting. my server sits behind an openbsd packet filter... , but the gentoo's machines uses iptables firewall...
Sounds like the firewall at your end is what might be causing the problems.
Quoted 10 lines · David S. Miller
Quoted 7 lines · On Wed, 30 Jun 2004 10:04:52 +0200 Debi Janos <[email protected]> wrote:
2004-06-29, k keltez�ssel 23:36-kor John Heffner ezt �rta:
Quoted 5 lines
Sigh. I ran in to this problem a year or so ago and it was a broken firewall that was mangling the TCP window scale option. I think the firewall was an OpenBSD machine, and I was told the problem went away with an upgrade. I'm curious what they're running here.
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
The boundary 3 is special because it causes SWS avoidance to break.
-John
hmm. interesting. my server sits behind an openbsd packet filter... , but the gentoo's machines uses iptables firewall...
Sounds like the firewall at your end is what might be causing the problems.
I'm having the same problem connecting to gentoo's machines with no firewall on my end. This happens with new kernels with the default_win_scale set >3, or on old kernels with tcp_rmem[1] > ~700k.
-John