* Re: [LARTC] Clamping tcp mss values to decrease latency
2002-02-25 5:13 [LARTC] Clamping tcp mss values to decrease latency Ross Skaliotis
@ 2002-02-25 6:55 ` Martin Devera
2002-02-25 9:00 ` bert hubert
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Martin Devera @ 2002-02-25 6:55 UTC (permalink / raw)
To: lartc
Hi,
MSS can be clamped per route. See ip tool and LARTC howto
for syntax. I'm using it with great success.
devik
> MSS-clamping. My pppoe client for linux can do mss clamping on every
> packet that goes out and come in. Not enough control. There is an option
> to do mss-clamping in iptables, however this only works in the forward
> table. I can't match and control outgoing web connections, just
> connections getting routed through the machine. Any ideas?
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [LARTC] Clamping tcp mss values to decrease latency
2002-02-25 5:13 [LARTC] Clamping tcp mss values to decrease latency Ross Skaliotis
2002-02-25 6:55 ` Martin Devera
@ 2002-02-25 9:00 ` bert hubert
2002-02-25 11:58 ` Martin Devera
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bert hubert @ 2002-02-25 9:00 UTC (permalink / raw)
To: lartc
On Mon, Feb 25, 2002 at 12:13:53AM -0500, Ross Skaliotis wrote:
> Hello,
>
> I have an interesting question. I can't find a solution anywhere to this
> problem.
>
> I have an adsl connection which is able to send a full data packet in
> about 150ms. I want to cut this time down to decrease latency while
> serving files, so I thought I'd try and reduce the packet size for the
> offending upload streams (my webserver). The trick is that I also want all
> other tcp connections to have the normal full packet size. Enter
> MSS-clamping. My pppoe client for linux can do mss clamping on every
> packet that goes out and come in. Not enough control. There is an option
> to do mss-clamping in iptables, however this only works in the forward
> table. I can't match and control outgoing web connections, just
Control and outgoing can be done with regular MTU settings. Just lower the
MTU size of your ppp interface and the kernel will set a lower MSS
automatically.
You can also set MTU per route.
Regards,
bert
--
http://www.PowerDNS.com Versatile DNS Software & Services
http://www.tk the dot in .tk
http://lartc.org Linux Advanced Routing & Traffic Control HOWTO
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [LARTC] Clamping tcp mss values to decrease latency
2002-02-25 5:13 [LARTC] Clamping tcp mss values to decrease latency Ross Skaliotis
2002-02-25 6:55 ` Martin Devera
2002-02-25 9:00 ` bert hubert
@ 2002-02-25 11:58 ` Martin Devera
2002-02-25 12:26 ` bert hubert
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Martin Devera @ 2002-02-25 11:58 UTC (permalink / raw)
To: lartc
> > other tcp connections to have the normal full packet size. Enter
> > MSS-clamping. My pppoe client for linux can do mss clamping on every
> > packet that goes out and come in. Not enough control. There is an option
> > to do mss-clamping in iptables, however this only works in the forward
> > table. I can't match and control outgoing web connections, just
>
> Control and outgoing can be done with regular MTU settings. Just lower the
> MTU size of your ppp interface and the kernel will set a lower MSS
> automatically.
Be VERY careful when doing it. There is too many websites blocking
MTU discovery protocol and you will be no longer able to reach them.
These system maintainers should be shot. :-\
Setting max MSS in route is better way ..
> You can also set MTU per route.
you probably wanted to say MSS here ?
devik
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [LARTC] Clamping tcp mss values to decrease latency
2002-02-25 5:13 [LARTC] Clamping tcp mss values to decrease latency Ross Skaliotis
` (2 preceding siblings ...)
2002-02-25 11:58 ` Martin Devera
@ 2002-02-25 12:26 ` bert hubert
2002-02-25 13:23 ` Martin Devera
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bert hubert @ 2002-02-25 12:26 UTC (permalink / raw)
To: lartc
On Mon, Feb 25, 2002 at 12:58:54PM +0100, Martin Devera wrote:
> > > other tcp connections to have the normal full packet size. Enter
> > > MSS-clamping. My pppoe client for linux can do mss clamping on every
> > > packet that goes out and come in. Not enough control. There is an option
> > > to do mss-clamping in iptables, however this only works in the forward
> > > table. I can't match and control outgoing web connections, just
> >
> > Control and outgoing can be done with regular MTU settings. Just lower the
> > MTU size of your ppp interface and the kernel will set a lower MSS
> > automatically.
>
> Be VERY careful when doing it. There is too many websites blocking
> MTU discovery protocol and you will be no longer able to reach them.
> These system maintainers should be shot. :-\
> Setting max MSS in route is better way ..
Not for locally generated packets - if you lower MTU, MSS will get set too.
Regards,
bert
--
http://www.PowerDNS.com Versatile DNS Software & Services
http://www.tk the dot in .tk
http://lartc.org Linux Advanced Routing & Traffic Control HOWTO
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [LARTC] Clamping tcp mss values to decrease latency
2002-02-25 5:13 [LARTC] Clamping tcp mss values to decrease latency Ross Skaliotis
` (3 preceding siblings ...)
2002-02-25 12:26 ` bert hubert
@ 2002-02-25 13:23 ` Martin Devera
2002-02-25 13:37 ` Ross Skaliotis
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Martin Devera @ 2002-02-25 13:23 UTC (permalink / raw)
To: lartc
> > Be VERY careful when doing it. There is too many websites blocking
> > MTU discovery protocol and you will be no longer able to reach them.
> > These system maintainers should be shot. :-\
> > Setting max MSS in route is better way ..
>
> Not for locally generated packets - if you lower MTU, MSS will get set too.
At my production server when I set MTU to 640 (I hoped in better link
utilization) I suddenly was not able to reach some webs from it. I
discovered that the are sending me 1500 byte packets with DF set and
they didn't pay atttention to my MTU. It is obvious problem in MTU
discovery.
You are roght that MSS is set to MTU but it is bad luck it you have
small MSS but you can't reach some hosts.
MSS setting for routes works well for me even for localy generated
flows. Is there some problem I don't see ?
regards, devik
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [LARTC] Clamping tcp mss values to decrease latency
2002-02-25 5:13 [LARTC] Clamping tcp mss values to decrease latency Ross Skaliotis
` (4 preceding siblings ...)
2002-02-25 13:23 ` Martin Devera
@ 2002-02-25 13:37 ` Ross Skaliotis
2002-02-25 13:44 ` Martin Devera
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Ross Skaliotis @ 2002-02-25 13:37 UTC (permalink / raw)
To: lartc
Yes, but is this able to sort streams by tcp port?
-Ross
On Mon, 25 Feb 2002, Martin Devera wrote:
> Hi,
>
> MSS can be clamped per route. See ip tool and LARTC howto
> for syntax. I'm using it with great success.
> devik
>
> > MSS-clamping. My pppoe client for linux can do mss clamping on every
> > packet that goes out and come in. Not enough control. There is an option
> > to do mss-clamping in iptables, however this only works in the forward
> > table. I can't match and control outgoing web connections, just
> > connections getting routed through the machine. Any ideas?
>
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [LARTC] Clamping tcp mss values to decrease latency
2002-02-25 5:13 [LARTC] Clamping tcp mss values to decrease latency Ross Skaliotis
` (5 preceding siblings ...)
2002-02-25 13:37 ` Ross Skaliotis
@ 2002-02-25 13:44 ` Martin Devera
2002-02-25 13:48 ` bert hubert
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Martin Devera @ 2002-02-25 13:44 UTC (permalink / raw)
To: lartc
Hmm .. IIRC the fwmark can be used as routing
key. It might do the trick. Am I right Bert ?
> Yes, but is this able to sort streams by tcp port?
>
> > MSS can be clamped per route. See ip tool and LARTC howto
> > for syntax. I'm using it with great success.
> > devik
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [LARTC] Clamping tcp mss values to decrease latency
2002-02-25 5:13 [LARTC] Clamping tcp mss values to decrease latency Ross Skaliotis
` (6 preceding siblings ...)
2002-02-25 13:44 ` Martin Devera
@ 2002-02-25 13:48 ` bert hubert
2002-02-25 13:54 ` Martin Devera
2002-02-28 9:05 ` bert hubert
9 siblings, 0 replies; 11+ messages in thread
From: bert hubert @ 2002-02-25 13:48 UTC (permalink / raw)
To: lartc
On Mon, Feb 25, 2002 at 02:23:48PM +0100, Martin Devera wrote:
> At my production server when I set MTU to 640 (I hoped in better link
> utilization) I suddenly was not able to reach some webs from it. I
> discovered that the are sending me 1500 byte packets with DF set and
> they didn't pay atttention to my MTU. It is obvious problem in MTU
> discovery.
>
> You are roght that MSS is set to MTU but it is bad luck it you have
> small MSS but you can't reach some hosts.
>
> MSS setting for routes works well for me even for localy generated
> flows. Is there some problem I don't see ?
No ;-)
--
http://www.PowerDNS.com Versatile DNS Software & Services
http://www.tk the dot in .tk
http://lartc.org Linux Advanced Routing & Traffic Control HOWTO
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [LARTC] Clamping tcp mss values to decrease latency
2002-02-25 5:13 [LARTC] Clamping tcp mss values to decrease latency Ross Skaliotis
` (7 preceding siblings ...)
2002-02-25 13:48 ` bert hubert
@ 2002-02-25 13:54 ` Martin Devera
2002-02-28 9:05 ` bert hubert
9 siblings, 0 replies; 11+ messages in thread
From: Martin Devera @ 2002-02-25 13:54 UTC (permalink / raw)
To: lartc
> > discovery.
> >
> > You are roght that MSS is set to MTU but it is bad luck it you have
> > small MSS but you can't reach some hosts.
> >
> > MSS setting for routes works well for me even for localy generated
> > flows. Is there some problem I don't see ?
>
> No ;-)
So short reply to my long mail ;-)) You are probably really short
of your tea ;)
By the way I finally read your man pages - good work. Once I finish
new htb I could write FIXME parts.
devik
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [LARTC] Clamping tcp mss values to decrease latency
2002-02-25 5:13 [LARTC] Clamping tcp mss values to decrease latency Ross Skaliotis
` (8 preceding siblings ...)
2002-02-25 13:54 ` Martin Devera
@ 2002-02-28 9:05 ` bert hubert
9 siblings, 0 replies; 11+ messages in thread
From: bert hubert @ 2002-02-28 9:05 UTC (permalink / raw)
To: lartc
On Mon, Feb 25, 2002 at 02:44:56PM +0100, Martin Devera wrote:
> Hmm .. IIRC the fwmark can be used as routing
> key. It might do the trick. Am I right Bert ?
I think it might!
--
http://www.PowerDNS.com Versatile DNS Software & Services
http://www.tk the dot in .tk
http://lartc.org Linux Advanced Routing & Traffic Control HOWTO
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 11+ messages in thread