Re: [rtcweb] URI schemes for TURN and STUN

"Dan Wing" <dwing@cisco.com> Fri, 04 November 2011 16:53 UTC

Return-Path: <dwing@cisco.com>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BAF8121F8B84; Fri, 4 Nov 2011 09:53:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.614
X-Spam-Level:
X-Spam-Status: No, score=-105.614 tagged_above=-999 required=5 tests=[AWL=0.985, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6ukHfcYv5LD5; Fri, 4 Nov 2011 09:53:44 -0700 (PDT)
Received: from mtv-iport-1.cisco.com (mtv-iport-1.cisco.com [173.36.130.12]) by ietfa.amsl.com (Postfix) with ESMTP id 04FF721F8B7A; Fri, 4 Nov 2011 09:53:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=dwing@cisco.com; l=2605; q=dns/txt; s=iport; t=1320425623; x=1321635223; h=from:to:cc:references:in-reply-to:subject:date: message-id:mime-version:content-transfer-encoding; bh=keQN27SFU7jMNb+nq99Nz52/d2Dm5ac/t1hImCdFXEk=; b=Thc+xil7v7PXBxtTIHX0fojyJzYtF+Dt4nUgV1Bgpe5pAVZWq9+fEScJ RKAsK5wgjNS4cA1vMK+ZGasSQ8nCZcBE9lzm+5rKCrWuxfyDdhOoFNGCA ZNKCVGA3T5HfI6U2shJuPhXdVl6k6yVS0Bey3WEuy2IWfgSumaPe0udRT Y=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AskAAPEXtE6rRDoI/2dsb2JhbABEmhCBa4xogSCBBYFyAQEBAwEICgEXTwwBAwIJDgECBAEBAScHGSMKCQgBAQQTCxeHYAiXIwGeU4krBIdZMZ4Y
X-IronPort-AV: E=Sophos;i="4.69,456,1315180800"; d="scan'208";a="10977601"
Received: from mtv-core-3.cisco.com ([171.68.58.8]) by mtv-iport-1.cisco.com with ESMTP; 04 Nov 2011 16:53:43 +0000
Received: from dwingWS ([10.32.240.194]) by mtv-core-3.cisco.com (8.14.3/8.14.3) with ESMTP id pA4GrfBK011647; Fri, 4 Nov 2011 16:53:42 GMT
From: Dan Wing <dwing@cisco.com>
To: 'Eric Rescorla' <ekr@rtfm.com>
References: <4EAC6BF4.2000604@alvestrand.no> <CALiegf=f4kFzyDLWK+Y5vbuCEJFXX590+VuZ4bbnHZnvX0CoBA@mail.gmail.com> <4EAC8AE0.3020307@acm.org> <4EACD558.1050003@alvestrand.no> <4EAE157F.5020901@it.aoyama.ac.jp> <4EAEB76B.9090304@acm.org> <8B0C4061-D362-4DFE-9677-7E64515A6E1C@network-heretics.com> <4EAF9391.5040209@it.aoyama.ac.jp> <4EB05A23.3060101@alvestrand.no> <01O80L7NM7N000RCTX@mauve.mrochek.com> <CABcZeBPCGcUcEDNJ5T3+LowrdTz-NAka3Q33CA8mvdwb0=+aZg@mail.gmail.com> <02a901cc9b0b$a9638940$fc2a9bc0$@com> <CABcZeBPV9QezYVXPD9XXNTuM1OEnOn9CDw8N9kMvWJyH7FB75g@mail.gmail.com>
In-Reply-To: <CABcZeBPV9QezYVXPD9XXNTuM1OEnOn9CDw8N9kMvWJyH7FB75g@mail.gmail.com>
Date: Fri, 04 Nov 2011 09:53:41 -0700
Message-ID: <02d801cc9b12$4ef4bb80$ecde3280$@com>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: AcybENwFGD02H39KSmeHmaD54VpzsgAAKUXg
Content-Language: en-us
Cc: 'Keith Moore' <moore@cs.utk.edu>, 'Ned Freed' <ned.freed@mrochek.com>, 'Keith Moore' <moore@network-heretics.com>, 'Behave WG' <behave@ietf.org>, rtcweb@ietf.org
Subject: Re: [rtcweb] URI schemes for TURN and STUN
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Real-Time Communication in WEB-browsers working group list <rtcweb.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/rtcweb>
List-Post: <mailto:rtcweb@ietf.org>
List-Help: <mailto:rtcweb-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 04 Nov 2011 16:53:44 -0000

> -----Original Message-----
> From: Eric Rescorla [mailto:ekr@rtfm.com]
> Sent: Friday, November 04, 2011 9:43 AM
> To: Dan Wing
> Cc: Ned Freed; Keith Moore; Keith Moore; Behave WG; rtcweb@ietf.org
> Subject: Re: [rtcweb] URI schemes for TURN and STUN
> 
> On Fri, Nov 4, 2011 at 9:06 AM, Dan Wing <dwing@cisco.com> wrote:
> >> -----Original Message-----
> >> From: rtcweb-bounces@ietf.org [mailto:rtcweb-bounces@ietf.org] On
> >> Behalf Of Eric Rescorla
> >> Sent: Friday, November 04, 2011 8:56 AM
> >> To: Ned Freed
> >> Cc: Keith Moore; Keith Moore; Behave WG; rtcweb@ietf.org
> >> Subject: Re: [rtcweb] URI schemes for TURN and STUN
> >>
> >> On Fri, Nov 4, 2011 at 8:31 AM, Ned Freed <ned.freed@mrochek.com>
> >> wrote:
> >> >> Top-posting a general principle, detailed comment at the
> bottom....
> >> >
> >> >> For all URI schemes, I think the URI needs to contain all the
> >> >> information you need in order to make contact with the service;
> you	
> >> >> can't negotiate until you've made contact.
> >> >> (the process may involve things like "resolve through a
> resolution
> >> >> mechanism like DNS" or "get authorization tokens from somewhere
> >> else").
> >> >
> >> >> In the case of TURN, you need to distinguish between TCP, UDP and
> >> TLS,
> >> >> and you need to make that determination before you send the first
> >> >> packet. That means the distinguishing information between those
> >> three
> >> >> things belongs in the URL; I don't think the scheme is a good
> place
> >> to
> >> >> encode it.
> >> >
> >> > I'm in complete agreement with Harald on all of these points. And
> >> while it
> >> > would have been nice if URL syntax was less messy and more
> general,
> >> making
> >> > it easier to do these sorts of things in a consistent way, it
> quite
> >> simply
> >> > isn't and we have to make do with what we have.
> >>
> >> I don't have any commitment to the scheme. What's the best place?
> >
> > http://tools.ietf.org/html/draft-petithuguenin-behave-turn-uri-bis-05
> > uses "?transport=", for example:
> >
> >  turn://example.com?transport=tcp
> >  turns://example.com?transport=udp
> 
> I'm confused. I thought the idea was to distinguish TLS from non-TLS,
> but you seem to be doing that in the scheme.

Harald said:

  URI needs to contain all the
  information you need in order to make contact with the service;
  you can't negotiate until you've made contact.

Keith has never liked using "S" in HTTPS (or other URIs).  *shrug*.
I think that ship sailed.

-d