LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-16-2007, 05:38 AM   #16
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57

Go on with what unSpawn said.

But meanwhile, I have one very quick question:

Did you try the mtu stuff? It takes about 20seconds to test!
Check it's correctly applied by typing ifconfig and verifying the mtu has changed.

There has been bad interactions between recent Linux kernels and not standard webservers.

Kernel bug maybe.
Router bug ?
Webserver bug?
Chair-keyboard Interface bug? ;p

Seriously, at this step, you have no information at all to make any conclusion.
 
Old 12-16-2007, 06:11 AM   #17
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by nx5000 View Post
There has been bad interactions between recent Linux kernels and not standard webservers.
Any specific things you got pointers to?
 
Old 12-16-2007, 06:36 AM   #18
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Oh my, this will give me work for the whole day grepping changelogs and mailinglists.
I'll edit the post when I find it. I think it was around 2.6.20-2.6.22

Here's an example of broken routers (but it's not the one I was looking for)
http://kerneltrap.org/node/6723

Last edited by nx5000; 12-16-2007 at 06:57 AM.
 
Old 12-16-2007, 11:24 AM   #19
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by nx5000 View Post
this will give me work for the whole day grepping changelogs and mailinglists
Thanks for the URI. Not really necessary to grep all sorts of stuff though, I thought maybe you had some stuff jotted down somewhere.
 
Old 12-16-2007, 02:49 PM   #20
debuser123
Member
 
Registered: Nov 2006
Distribution: Ubuntu Hardy
Posts: 69

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by nx5000 View Post
Here's an example of broken routers (but it's not the one I was looking for)
http://kerneltrap.org/node/6723
But it was EXACTLY what I was looking for! TCP window scaling was the problem! Clicking through links from the page you directed I came across a pretty concise description of the problem (TCP window scaling and broken routers[corbet]). As soon as I disabled window scaling (echo 0 > /proc/sys/net/ipv4/tcp_window_scaling, I was instantly able to view the web page).

This is what is happening when window scaling is enabled:
me: (syn) window=5840, scale: 5
them: (syn-ack) window=16384, scale: 0
me: (ack) window=5856 (scaled)
me: (psh-ack) -http_get- window=5856 (scaled)
me(retry): (psh-ack) -http_get- window=5856 (scaled)
them: (ack) window=65084 [previous seg lost]
15 seconds...
them: (rst)

and from that article:
Quote:
[...] some routers on the net are rewriting the window scale TCP option on SYN packets as they pass through. In particular, they seem to be setting the scale factor to zero, but leaving the option in place. The receiving side sees the option, and responds with a window scale factor of its own. At this point, the initiating system believes that its scale factor has been accepted, and scales its windows accordingly. The other end, however, believes that the scale factor is zero. [...] In many cases, the small window can cause no packets to be transmitted at all, breaking TCP between the two affected systems entirely.
So the consensus is...there's a bad router.....somewhere. Just having to remember to disable window scaling for this site (or any sites where I can connect and the browser's status is stuck at "waiting for server.com..." until it the connection gets ultimately reset) is something I can live with.

(Rebooting, wanna see what a pcap looks like under Windows)
Edit: Windows does not use scaling. Packets I initiated had a window of 64K and packets received, a window of 16K. When I disabled scaling under 2.6, all my packets had a window of 5840 while the remote host, 16K).

Thanks you guys, really appreciate it.

and PS: I did try that MTU fix but that problem still arose.

Last edited by debuser123; 12-16-2007 at 03:10 PM.
 
Old 12-16-2007, 02:55 PM   #21
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Well done nx5000 :-]
 
Old 12-16-2007, 03:28 PM   #22
debuser123
Member
 
Registered: Nov 2006
Distribution: Ubuntu Hardy
Posts: 69

Original Poster
Rep: Reputation: 15
See nx5000, your advice wasn't crap! I can now view this porn site thanks to you & unSpawn!JUST KIDDING!
 
Old 12-16-2007, 04:34 PM   #23
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by debuser123 View Post
See nx5000, your advice wasn't crap! I can now view this porn site thanks to you & unSpawn!JUST KIDDING!
Great for you :]

I'll play loto tomorrow.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Increasing TCP initial window to 3 segments (rfc 2414 or 3390) nenderle Linux - Networking 1 06-08-2009 04:16 AM
Bridging the Wired Segment (Ethernet) & Wireless Segments (Access Point) Paris Heng Linux - Wireless Networking 0 07-14-2007 08:38 AM
ack retransmission jackandking Linux - Networking 5 07-05-2007 06:04 AM
Strange network problem with two segments cwwilson721 Linux - Networking 19 02-02-2006 04:07 PM
TCP retransmission and duplicated ack enjoyzj Linux - Networking 0 06-05-2004 06:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration