There's one interesting additional refinement in the lwn.net article that 
Steve linked.
Here's the quote:

"
TCP window scaling and broken routers

Posted Dec 14, 2006 0:15 UTC (Thu) by pcharlan (guest, #29128) [Link]

With kernel 2.6.17.13 or higher, you can also do:

THEIR_IP=1.2.3.4
MY_GATEWAY=5.6.7.8


ip route add $THEIR_IP/32 via $MY_GATEWAY window 65535


which only limits window scaling for that destination without interfering 
with your other connections.
"

Haven't actually tried this fix myself since I don't currently have this 
problem although I have had it in the past.

Looks like an even better solution to me if it works.

Jim


----- Original Message ----- 
From: "Steve Scaffidi" <[email protected]>
To: <[email protected]>; "Boston Perl Mongers" <[email protected]>
Sent: 12/08/2009 10:58 PM
Subject: Re: [Boston.pm] [Perladvent] mod_perlite... working!


BTW, I think I've found a solution to my SSH sessions freezing at "random"

It's discussed and explained in the thread here: http://bit.ly/5Kh2PE

Summary: tcp window scaling* freaks out various types of old or stupid
network equipment. To disable it on the offending system, issue the
following command:

sudo sysctl -w net.ipv4.tcp_window_scaling=0

I don't know exactly where the problem is occuring in my case, but
issuing that sysctl on my laptop fixed the issue with ssh lagging to
the systems behind the PIX at work... but ssh sessions to my linode
server weren't fixed until I did it on that host as well.

There's also an article on this issue here: http://lwn.net/Articles/92727/

* introduced in the linux kernel around 2004 but not turned on by
default until around 2006

-- 
-- Steve Scaffidi <[email protected]>

_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm 


_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to