Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why do my school's servers hate my box?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
celloandy
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2003
Posts: 113
Location: Washington, DC

PostPosted: Sat Sep 11, 2004 11:03 pm    Post subject: Why do my school's servers hate my box? Reply with quote

I'm a student at George Washington, and have been having problems accessing the School of Engineering's servers, and was wondering if anyone here might have any insight... whenever I try to ssh there terminal box, or access the student webserver (by http, in a browser), the program (ssh or firefox) just hangs. I can't get either of these servers to answer. I don't think my copies of firefox or ssh are broken, because I can ssh to other boxes, and browse to other sites. Also, my box is a dual-boot, and these things work under windows. They also work if I try them from a Gnoppix cd. The only difference I can see between these environments and my main Gentoo one is that the Gentoo install is amd64, but my friend has an amd64 box running suse, and it works fine. Why do you thing the school servers hate me?

Andrew

(btw, the ssh server is hobbes.seas,gwu,edu, and the webserver is student.seas.gwu.edu... they're both Solaris boxes)
Back to top
View user's profile Send private message
r00tzz
Apprentice
Apprentice


Joined: 09 Apr 2004
Posts: 203
Location: Sao Paulo, Brasil

PostPosted: Sun Sep 12, 2004 1:19 am    Post subject: Reply with quote

Works fine here, i tried access from Brazil.

Did you tried to access the sites from another network (another ISP)?
or try cheking your hosts file to see if there is some invalid entries...

just a guess...


EDIT: Sorry for the wrong guess... :(


Last edited by r00tzz on Sun Sep 12, 2004 2:57 am; edited 1 time in total
Back to top
View user's profile Send private message
asiobob
Veteran
Veteran


Joined: 29 Oct 2003
Posts: 1375
Location: Bamboo Creek

PostPosted: Sun Sep 12, 2004 1:46 am    Post subject: Reply with quote

potentially a TCP/IP window resizing issue, are you using kernel 2.6.7 or later? The server or a router in front of those services you say may be broken.

To go back to the default window size
Code:
   
 echo 0 > /proc/sys/net/ipv4/tcp_default_win_scale

or by adding a line like:
Code:
   
    net.ipv4.tcp_default_win_scale = 0

to /etc/sysctl.conf.
Back to top
View user's profile Send private message
celloandy
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2003
Posts: 113
Location: Washington, DC

PostPosted: Sun Sep 12, 2004 2:16 am    Post subject: Reply with quote

I'm running 2.6.8, and that tcp default window scale thing did it. Just out of curiousity, though, what did I actually do? Will the change have any negative effects on anything?

Andrew
Back to top
View user's profile Send private message
allucid
Veteran
Veteran


Joined: 02 Nov 2002
Posts: 1314
Location: atlanta

PostPosted: Sun Sep 12, 2004 2:35 am    Post subject: Reply with quote

That also fixed a problem I was having with accessing my university servers from off-campus. I am also interested in more information on the topic. I am familiar with the window resizing you are talking about (sliding window?) but I don't understand why this is causing problems.

Last edited by allucid on Sun Sep 12, 2004 2:37 am; edited 1 time in total
Back to top
View user's profile Send private message
asiobob
Veteran
Veteran


Joined: 29 Oct 2003
Posts: 1375
Location: Bamboo Creek

PostPosted: Sun Sep 12, 2004 2:37 am    Post subject: Reply with quote

it shouldn't have any negative effect unless you are on a really fast low latency network and are planning to constant move large amounts of data, in which case the default window scaling( what tcp/ip protocol orginially defined) is to small and you won't be able to achieve "maximum" data transfer, so it will still work but not to its full potential.
What you just did by the command is bring it back to line as is with the other distro's you tried probably because they are not running 2.6.7 or greater


IIRC the window field is only 16 bits wide, which meants a max window size of 64kb. Back when this was designed it was MORE than enough. Today its not the case with faster networks.

The solution is "window scaling." In theory it allows for bigger windows, allowing more "in flight" data, it should be backwards compatible as well, but some routers between you and the destination are broken in that they drop such packets.

EDIT: There was a patch which was submitted to the kernel devs, but IIRC would mean you wouldn't have to adjusting the scaling yourself, however it was rejected, and rightfully so (no offence to the author of the code) since workarounds due to buggy routers shouldn't be in the kernel itself -- it promotes router manufacturers from not releasing updated firmware.

if you want more info LWN had an article about window scaling as well, prolly have to google that
Back to top
View user's profile Send private message
allucid
Veteran
Veteran


Joined: 02 Nov 2002
Posts: 1314
Location: atlanta

PostPosted: Sun Sep 12, 2004 2:52 am    Post subject: Reply with quote

ASIO_BOB wrote:
if you want more info LWN had an article about window scaling as well, prolly have to google that
thanks for the info. also found the article.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum