Re: [tcpm] About the SYN/ACK-timer

Jakob Heitz <jakob.heitz@ericsson.com> Wed, 02 January 2013 18:57 UTC

Return-Path: <jakob.heitz@ericsson.com>
X-Original-To: tcpm@ietfa.amsl.com
Delivered-To: tcpm@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CBBEF21F86A2 for <tcpm@ietfa.amsl.com>; Wed, 2 Jan 2013 10:57:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.448
X-Spam-Level:
X-Spam-Status: No, score=-6.448 tagged_above=-999 required=5 tests=[AWL=0.151, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hYyE4qp4Yv0m for <tcpm@ietfa.amsl.com>; Wed, 2 Jan 2013 10:57:28 -0800 (PST)
Received: from imr4.ericy.com (imr4.ericy.com [198.24.6.9]) by ietfa.amsl.com (Postfix) with ESMTP id 0C61521F86A1 for <tcpm@ietf.org>; Wed, 2 Jan 2013 10:57:27 -0800 (PST)
Received: from EUSAAHC007.ericsson.se ([147.117.188.93]) by imr4.ericy.com (8.14.3/8.14.3/Debian-9.1ubuntu1) with ESMTP id r02JB3et009348; Wed, 2 Jan 2013 13:11:04 -0600
Received: from EUSAAMB109.ericsson.se ([147.117.188.126]) by EUSAAHC007.ericsson.se ([147.117.188.93]) with mapi id 14.02.0318.004; Wed, 2 Jan 2013 13:57:17 -0500
From: Jakob Heitz <jakob.heitz@ericsson.com>
To: "Scharf, Michael (Michael)" <michael.scharf@alcatel-lucent.com>, Yoshifumi Nishida <nishida@sfc.wide.ad.jp>
Thread-Topic: [tcpm] About the SYN/ACK-timer
Thread-Index: AQHN6Kmen9PlwwSgXU2cX18Avy7He5g1+RIA///C3m2AAAWQIIAAm/sQ
Date: Wed, 02 Jan 2013 18:57:17 +0000
Message-ID: <2F3EBB88EC3A454AAB08915FBF0B8C7E14A253@eusaamb109.ericsson.se>
References: <1D1BEDF8-28D1-41CD-999C-5627E81D0537@ifi.uio.no> <20130102025350.AF22755A074@lawyers.icir.org> <2F3EBB88EC3A454AAB08915FBF0B8C7E148E68@eusaamb109.ericsson.se>, <CAO249ycPs-PqzbjqChzemCgHCr+NbJZuWQrxVR4aE4j-DFbKzQ@mail.gmail.com> <9DF82729-E83B-4515-8BCD-D33E4EBC3E39@ericsson.com> <2A886F9088894347A3BE0CC5B7A85F3E9AA0F0AE4F@FRMRSSXCHMBSE3.dc-m.alcatel-lucent.com>
In-Reply-To: <2A886F9088894347A3BE0CC5B7A85F3E9AA0F0AE4F@FRMRSSXCHMBSE3.dc-m.alcatel-lucent.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [147.117.188.134]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "tcpm (tcpm@ietf.org)" <tcpm@ietf.org>, "mallman@icir.org" <mallman@icir.org>, Michael Welzl <michawe@ifi.uio.no>, Marco Mellia <mellia@tlc.polito.it>, Joe Touch <touch@isi.edu>
Subject: Re: [tcpm] About the SYN/ACK-timer
X-BeenThere: tcpm@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: TCP Maintenance and Minor Extensions Working Group <tcpm.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tcpm>, <mailto:tcpm-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tcpm>
List-Post: <mailto:tcpm@ietf.org>
List-Help: <mailto:tcpm-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tcpm>, <mailto:tcpm-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 02 Jan 2013 18:57:28 -0000

On Wednesday, January 02, 2013 1:36 AM, Scharf, Michael (Michael) <> wrote:

>> -----Original Message-----
>> From: tcpm-bounces@ietf.org [mailto:tcpm-bounces@ietf.org] On Behalf
>> Of Jakob Heitz Sent: Wednesday, January 02, 2013 9:53 AM
>> To: Yoshifumi Nishida
>> Cc: Joe Touch; tcpm (tcpm@ietf.org); Marco Mellia; Michael Welzl;
>> mallman@icir.org Subject: Re: [tcpm] About the SYN/ACK-timer
>> 
>> The reason for the accelerated first retransmission:
>> The SYN with data may get dropped for 2 reasons.
>> 1. Middleboxes that consider it abnormal.
> 
> If there is such a middlebox, the best solution is to try to
> learn that and cache it, on order to avoid the use of SYN
> data at all.

Of course it is, but there is no need to standardize that.

> This is mostly orthogonal to the retransmission
> timer. Except for one detail: The smaller the gap between the
> two transmissions, the higher is the risk of reordering, i.
> e., that such heuristics break because the RTO is *too*
> small. Thus, accelerated first retranmission can indeed have
> drawbacks with middleboxes...

no.
It will pass the lone SYN (misordered, arrives first)
Then it will drop the SYN with data.
No harm done.

> And, with an initial RTO of 1s,
> the only penalty is the 1s timeout for the first connection.
> After that, the sender would hopefully not use SYN data any more.
> 
> So, what remains is the 1s RTO for the first connection to
> that destination. An initial timeout below one second to an
> unknown destination comes along with quite some risk of
> spuriour retransmission on narrow-band links. It might not be
> a too good idea because of that.
> 
>> 2. SYN flood protection at the server.
> 
> I might miss something fundamental, but if a server is in SYN
> flood protection mode, would it not be a good idea if the
> client backs off a bit?

During SYN flood protection, I'm assuming the server will
aggressively drop SYN with data, but accept SYN without data
more readily.
Therefore, retransmit the SYN without data, then back off
as normal.

> Using a 100ms timer is quite the
> opposite of that.
> 
> In summary, it is not clear to me what actual problem we discuss here.
> 
> For what it is worth, as already mentioned multiple times:
> There is a TCPM working group item draft-ietf-tcpm-fastopen,
> which has quite some related text, including the initial RTO.

I'm aware of it.
I don't like the cookie idea.
It was a great initial idea, but got complicated
and incomplete in a hurry.

I am not proposing an initial RTO of 100mS.
I am proposing a single retransmission of the SYN without data
at 100mS. There is a difference.

> 
> Michael
> 
> 
>> I expect SYN flood protection to be much more aggressive
>> towards SYN packets with data.
>> In the majority of cases, the SYN with data should get
>> through just fine. When it doesn't, the accelerated
>> retransmission without the data will recover.
>> 
>> Cheers,
>> Jakob.
>> 
>> On Jan 1, 2013, at 11:32 PM, "Yoshifumi Nishida"
>> <nishida@sfc.wide.ad.jp> wrote:
>> 
>> 
>> 
>> 	Hi Jakob,
>> 
>> 
>> 	On Tue, Jan 1, 2013 at 9:25 PM, Jakob Heitz
>> <jakob.heitz@ericsson.com> wrote:
>> 
>> 
>> 		On Tuesday, January 01, 2013 6:54 PM,
>> mallman@icir.org <mailto:mallman@icir.org>
>> <mailto:mallman@icir.org> wrote:
>> 
>> 		> I am confused.
>> 		>
>> 		>> Not sure about everyone else, but the way I
>> interpreted (and meant)
>> 		>> the 1s bit was to say "a new value, such as
>> 1s, as opposed to a
>> 		>> complex adaptive mechanism". It wasn't about
>> the exact value of 1s
>> 		>> per se.
>> 		>
>> 		> You say "a new value, such as 1s".  My point
>> is 1s is NOT a new value.
>> 		> It is the standardized value.  Before
>> proposing some new
>> 		> value, it'd at
>> 		> least be handy if folks understood the current value. 		>
>> 		>> About lowering the initial RTO further: I,
>> for one, hadn't thought of
>> 		>> that, and am not fully aware of all the
>> pro's and con's. But yeah, it
>> 		>> might be worth considering?
>> 		>
>> 		> Well, if you're not suggesting lowering the
>> initial RTO then what are
>> 		> you suggesting?  I have no idea what you are
>> saying here.  The initial
>> 		> RTO is the RTO that is used before an RTT
>> sample is taken.  So, just
>> 		> what are you suggesting here?
>> 		>
>> 		> allman
>> 
>> 
>> 		I am suggesting:
>> 		1st SYN contains data.
>> 		Retransmit that SYN without data after 100mS.
>> 		Make the next retransmit timer 1 second with
>> the normal power of 2 backoff after that. All SYN retransmits
>> 		without data. Do the same for the SYN/ACK.
>> 		No cookies.
>> 		The initial 100mS SYN retransmit timer MAY be
>> lengthened by application knowledge of conditions. For
>> example, satellite or wireless.
>> 
>> 
>> 	I think you consider 1 second SYN RTO is fine. But, you
>> want to accelerate the first retransmission.
>> 	This seems to be a bit inconsistent design to me.
>> 	Well, it might be useful if the SYNs are discarded
>> because of accidental packet drops or because of data payload.
>> 	But, I'm still wondering how practical these situations are.
>> 
>> 	Thanks,
>> 	--
>> 	Yoshifumi



-- 
Jakob Heitz. x25475. 510-566-2901