[111871] in North American Network Operators' Group

home help back first fref pref prev next nref lref last post

Re: Linux Router: TCP slow, UDP fast

daemon@ATHENA.MIT.EDU (Allen Smith)
Sat Feb 14 15:43:36 2009

Date: Sat, 14 Feb 2009 12:43:15 -0800
From: Allen Smith <lazlor@lotaris.org>
To: Chris <chris@ghostbusters.co.uk>
In-Reply-To: <c8a7026b0902141107v398bc0f0hc425d435a15333aa@mail.gmail.com>
Cc: nanog list <nanog@nanog.org>
Errors-To: nanog-bounces@nanog.org

If this router is not doing some kind of proxying, tuning tcp related 
kernel bits will not impact "long fat pipe" or "long fat network" issues.

The place that needs to be tuned for larger window sizes/scaling is the 
web server.

http://www.psc.edu/networking/projects/tcptune/#Linux

or search for "Linux TCP tuning" or "large fat pipes"

Also make sure your firewall isn't "helping" you out by "cleaning up" 
the TCP SYN/ACK sequence and fiddling with the window scaling stuff.

Also if you have load balancers, they might break this stuff as well.

Good luck,
-Allen


Chris wrote:
> Thanks for all the answers. I'm currently going down the path of looking at
> IPtables' conntrack slowing the forwarding rate.
>
> If I can't find any more docs then I'll boot the router with a kernel
> without any IPtables built-in and see if that's it.
>
> As Lee said "rollback" ! That's the last change to the box. If I can rule
> out the logging of traffic from conntrack is slowing down
> the forwarding then I can look into hardware further ;-)
>
> Chris
>   



home help back first fref pref prev next nref lref last post