[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1414762333.499.16.camel@edumazet-glaptop2.roam.corp.google.com>
Date: Fri, 31 Oct 2014 06:32:13 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Florian Westphal <fw@...len.de>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH -next v2 1/2] syncookies: remove ecn_ok validation when
decoding option timestamp
On Fri, 2014-10-31 at 13:13 +0100, Florian Westphal wrote:
> Won't work anymore when tcp_ecn=0 and RTAX_FEATURES route attribute did
> allow ecn.
>
> Just turn on ecn if the client ts says so.
>
> This means that while syn cookies are in use clients can turn on ecn
> even if it is off on the server.
>
> However, there seems to be no harm in permitting this.
>
> Alternatively one can extend the test to also perform route lookup and
> check RTAX_FEATURES, but it simply doesn't appear to be worth the effort.
>
> Signed-off-by: Florian Westphal <fw@...len.de>
> ---
> Changes since v1:
> - reword commit message
Sorry.
Google chose to disable ecn on their GFE, so we set sysctl_tcp_ecn to 0
If I understand your patch, if a synflood is going on, some innocent
connections could get ECN enabled, while we do not want this to ever
happen. ECN really hurts our customers, this is a known fact.
You cannot change this like that, it would force us (and maybe others)
to either revert this patch, or add a knob.
If sysctl_tcp_ecn = 0, there is no way a connection should have ECN
enabled. This was documented years ago.
For the record :
vi +247 Documentation/networking/ip-sysctl.txt
tcp_ecn - INTEGER
Control use of Explicit Congestion Notification (ECN) by TCP.
ECN is used only when both ends of the TCP connection indicate
support for it. This feature is useful in avoiding losses due
to congestion by allowing supporting routers to signal
congestion before having to drop packets.
Possible values are:
0 Disable ECN. Neither initiate nor accept ECN.
1 Enable ECN when requested by incoming connections and
also request ECN on outgoing connection attempts.
2 Enable ECN when requested by incoming connections
but do not request ECN on outgoing connections.
Default: 2
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists