Re: [tram] Happy Turnballs

"Tirumaleswar Reddy (tireddy)" <tireddy@cisco.com> Tue, 18 April 2017 02:09 UTC

Return-Path: <tireddy@cisco.com>
X-Original-To: tram@ietfa.amsl.com
Delivered-To: tram@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9B8051293F2 for <tram@ietfa.amsl.com>; Mon, 17 Apr 2017 19:09:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.523
X-Spam-Level:
X-Spam-Status: No, score=-14.523 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5eHpk9snSRPO for <tram@ietfa.amsl.com>; Mon, 17 Apr 2017 19:08:59 -0700 (PDT)
Received: from rcdn-iport-3.cisco.com (rcdn-iport-3.cisco.com [173.37.86.74]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D36CF1277BB for <tram@ietf.org>; Mon, 17 Apr 2017 19:08:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3930; q=dns/txt; s=iport; t=1492481338; x=1493690938; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=6h5iFtQnUmMcTwE6lVuX5xeK+SLOADeVJz287hDDaD8=; b=JSvPEd73+UC/wbDnHNomQeqChkgveJGi8bQzi9f6g5D8lG9SxM5us+ht Od2KVTygutuuno8FtXUzdLWCHc7EOiiSvo23HibcaYt97io6R4X7trwBF 3/zWcQqrqPCF4dv/OCWVHJJWYyoQ+kt4Q0xFfV4xenNaiVKxHzQ3KxEDS Q=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0AMAgBkdPVY/4UNJK1cGQEBAQEBAQEBAQEBBwEBAQEBg1NhgQsHg1+KFZFflV+CDyyFeAIag2s/GAECAQEBAQEBAWsohRUBAQEBAyMRNw4MBAIBCBEEAQEBAgIjAwICAjAUAQgIAgQOBQiKDw6qboImiyEBAQEBAQEBAQEBAQEBAQEBAQEBAQEYBYELhUeBXYMYhEGDHIJfBY93hjuGaQGHA3+KWYIIj0eUCQEfOIEFYxWFKhyBY3UBhl0HgSmBDQEBAQ
X-IronPort-AV: E=Sophos;i="5.37,217,1488844800"; d="scan'208";a="223713652"
Received: from alln-core-11.cisco.com ([173.36.13.133]) by rcdn-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 18 Apr 2017 02:08:57 +0000
Received: from XCH-RCD-020.cisco.com (xch-rcd-020.cisco.com [173.37.102.30]) by alln-core-11.cisco.com (8.14.5/8.14.5) with ESMTP id v3I28vS5012022 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Tue, 18 Apr 2017 02:08:57 GMT
Received: from xch-rcd-017.cisco.com (173.37.102.27) by XCH-RCD-020.cisco.com (173.37.102.30) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Mon, 17 Apr 2017 21:08:57 -0500
Received: from xch-rcd-017.cisco.com ([173.37.102.27]) by XCH-RCD-017.cisco.com ([173.37.102.27]) with mapi id 15.00.1210.000; Mon, 17 Apr 2017 21:08:57 -0500
From: "Tirumaleswar Reddy (tireddy)" <tireddy@cisco.com>
To: Jonathan Lennox <jonathan@vidyo.com>
CC: "tram@ietf.org" <tram@ietf.org>
Thread-Topic: Happy Turnballs
Thread-Index: AQHSqEGEXZGdNc4iZES8BGujtDsYBqHI8r2wgAE5gICAAFDkYA==
Date: Tue, 18 Apr 2017 02:08:57 +0000
Message-ID: <a5109eef59684a87ac02d0468f31bd60@XCH-RCD-017.cisco.com>
References: <28057480-A193-4B8F-9953-78A21949483C@vidyo.com> <7d80f647761b46d48f05c36df7ad170f@XCH-RCD-017.cisco.com> <28A2B048-D2B0-477D-BD21-14440C94C477@vidyo.com>
In-Reply-To: <28A2B048-D2B0-477D-BD21-14440C94C477@vidyo.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.65.44.27]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/tram/KuDaH5Xupu7kx62Px-81qrcbffU>
Subject: Re: [tram] Happy Turnballs
X-BeenThere: tram@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Discussing the creation of a Turn Revised And Modernized \(TRAM\) WG, which goal is to consolidate the various initiatives to update TURN and STUN." <tram.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tram>, <mailto:tram-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tram/>
List-Post: <mailto:tram@ietf.org>
List-Help: <mailto:tram-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tram>, <mailto:tram-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 18 Apr 2017 02:09:00 -0000

> -----Original Message-----
> From: Jonathan Lennox [mailto:jonathan@vidyo.com]
> Sent: Monday, April 17, 2017 9:36 PM
> To: Tirumaleswar Reddy (tireddy) <tireddy@cisco.com>
> Cc: tram@ietf.org
> Subject: Re: Happy Turnballs
> 
> 
> > On Apr 17, 2017, at 6:25 AM, Tirumaleswar Reddy (tireddy)
> <tireddy@cisco.com> wrote:
> >
> >> -----Original Message-----
> >> From: tram [mailto:tram-bounces@ietf.org] On Behalf Of Jonathan
> >> Lennox
> >> Sent: Wednesday, March 29, 2017 9:34 AM
> >> To: tram@ietf.org
> >> Subject: [tram] Happy Turnballs
> >>
> >> So I was asked to write up my comments on Happy Eyeballs for TURN.
> >> Here’re my thoughts.
> >>
> >> As always with Happy Eyeballs, when connecting to a TURN server
> >> specified by a DNS name, do a DNS query for both IPv6 and IPv4, and
> >> then (with appropriate timing based on expected success), attempt to
> >> connect to both the returned IPv6 and IPv4 addresses, in parallel.
> >
> > As per https://tools.ietf.org/html/rfc6555, by default IPv6 should have slight
> preference (or head-start) over IPv4 unless the client address preference
> policy is modified giving preference to IPv4 over IPv6.
> 
> Right — I was eliding that part, but my intention was that all the timing and
> policy would follow the recommendations in 6555.

Okay.

> 
> >> If the server is not using stateless cookies, it will instead send
> >> back a ServerHello message (and associated messages in that flight).
> >> In this case, the client should gracefully tear down the dispreffered
> >> association to avoid lingering server state: it should send a
> >> user_canceled alert, followed by a close_notify alert.
> >
> > user_cancelled alert is typically triggered when initiated by a user,
> > close_notify alert is sufficient to inform the recipient that the sender will not
> send any more messages on this connection.
> 
> As I said, this section needs a DTLS expert.
> 
> Is there usually any server behavioral difference between the two alert types?

Yes, user_cancelled is a warning; close_notify needs to be exchanged (see https://tools.ietf.org/html/rfc6012#section-5.5) 

> 
> >> 3. For UDP, send TURN Allocate requests to both addresses, without
> >> authentication information.  If the TURN server is requiring
> >> authentication (as it normally will), it will send back 401
> >> Unauthenticated responses.  This does not create server state, so the
> >> dispreferred allocation attempt can be silently discarded.
> >
> > TURN server would have to remember the Nonce value !
> 
> It shouldn’t — normally, Nonce values can be encoded in a way that’s stateless
> for the server (e.g., timestamp plus an HMAC), and this is usually considered
> good practice so as to avoid state-exhaustion attacks on the server.

Got it, Thanks.

-Tiru