Re: [MMUSIC] ICE PRIORITY with multiple TURN servers

Justin Uberti <juberti@google.com> Fri, 06 June 2014 22:03 UTC

Return-Path: <juberti@google.com>
X-Original-To: mmusic@ietfa.amsl.com
Delivered-To: mmusic@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 81AF21A02AF for <mmusic@ietfa.amsl.com>; Fri, 6 Jun 2014 15:03:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.028
X-Spam-Level:
X-Spam-Status: No, score=-2.028 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, NORMAL_HTTP_TO_IP=0.001, RP_MATCHES_RCVD=-0.651, SPF_PASS=-0.001] autolearn=ham
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 Px17NcTIHJh5 for <mmusic@ietfa.amsl.com>; Fri, 6 Jun 2014 15:03:15 -0700 (PDT)
Received: from mail-ve0-x231.google.com (mail-ve0-x231.google.com [IPv6:2607:f8b0:400c:c01::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4EE011A0273 for <mmusic@ietf.org>; Fri, 6 Jun 2014 15:03:15 -0700 (PDT)
Received: by mail-ve0-f177.google.com with SMTP id db11so4062064veb.36 for <mmusic@ietf.org>; Fri, 06 Jun 2014 15:03:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=WaKC01/jd1XS5EzHV4BpUOk3WrDeMdudw0uKVi8i65A=; b=CzcRAq1lWvDSBeACkd54iWQ969Dzj8m+H+Rwm6AbyQKgT89GEcfx1CRouBVgKGlZR7 Z/le7x/CvZmydhjbJJyfMkxg7ErnfertYRP//tI38YxQxMW/Kv2kePvAThdD4aXdXRfJ 9vZqsBA9eR2A/zWq0/IwUbmQgtvm5IhNm8SS3AjUoLePEGrKxDgDzpy8/fDX1/BL1wBe WJZp4IMp4jiIpB22heceftgWGmBx2i7U+E+o6dYL6gWU7Y8glXOyldto3AFzoNsNVcgU knTz/Tzhr6MYuzRyIULzAHm1Wq66Yx/NRKkhvwbxN/ImTtRHWroiF2+Tl/8mA112/cWr AjiQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=WaKC01/jd1XS5EzHV4BpUOk3WrDeMdudw0uKVi8i65A=; b=VonEtIKsgCMNU9tEDFGcfciqVwM/tDMS96/dlDukP3kaTvdK4kn4ioCECU88NkUn8G WEsVJvhcDOh71bZy8r3ijI7BSXcPcBUVCVO0N4BbubLrAR71Q9qhnvkKewC8wfL67Uch 9S9zJi8bES4P6sY1sz1Mejvv9j1Y9mPFs3yD3IfVFW08LWfsO4ytNZVbLh91rLByCwz5 iiWMLvGxtGIc9IvYAtJkkUDzL7H3okCI8q6iAuHlsstjDzRDYad1+0QzTRilG09alw0+ tFBVyywU+7SyHyL1J8g1Gc4ftS9MbBr3H9VZql3IyEZyGg82wIRXRV1MejKF78UEdCVl h2oQ==
X-Gm-Message-State: ALoCoQlGuOtdyZGDhPDULZM+RnbDikMfAzbrGB5pfNIu78U4IoYAmjx+hu5sBzU0sDnO4uCfJqxf
X-Received: by 10.58.152.137 with SMTP id uy9mr7255072veb.54.1402092187942; Fri, 06 Jun 2014 15:03:07 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.52.27.139 with HTTP; Fri, 6 Jun 2014 15:02:47 -0700 (PDT)
In-Reply-To: <F81CEE99482EFE438DAE2A652361EE1217AAEB31@MCHP04MSX.global-ad.net>
References: <CAOJ7v-3osr-hMpTgVg7EwCJtBPdeaeUQ9ObPPZq-TqDnrjs+Kg@mail.gmail.com> <F81CEE99482EFE438DAE2A652361EE1217AAEB31@MCHP04MSX.global-ad.net>
From: Justin Uberti <juberti@google.com>
Date: Fri, 06 Jun 2014 15:02:47 -0700
Message-ID: <CAOJ7v-2rdkzm4+DWtqbjFtE1qOC_kDCZ4AWiuMAxxFqh-DWauQ@mail.gmail.com>
To: "Stach, Thomas" <thomas.stach@unify.com>
Content-Type: multipart/alternative; boundary="089e013a25d6ce1d6104fb3206da"
Archived-At: http://mailarchive.ietf.org/arch/msg/mmusic/4Au9FmMMdRXHY_kygciQIT4kO14
Cc: "mmusic@ietf.org" <mmusic@ietf.org>, Jiayang Liu <jiayl@google.com>
Subject: Re: [MMUSIC] ICE PRIORITY with multiple TURN servers
X-BeenThere: mmusic@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Multiparty Multimedia Session Control Working Group <mmusic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mmusic>, <mailto:mmusic-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/mmusic/>
List-Post: <mailto:mmusic@ietf.org>
List-Help: <mailto:mmusic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mmusic>, <mailto:mmusic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 06 Jun 2014 22:03:24 -0000

Thanks. I think this could be made clearer in 5245 S 4.1.2.2, and address
the multiple relay server case specifically; right now, it is all about
assigning a local preference based on the network interface.

Something to think about for -bis.


On Fri, Jun 6, 2014 at 12:11 AM, Stach, Thomas <thomas.stach@unify.com>
wrote:

>  Justin,
>
>
>
> *From:* mmusic [mailto:mmusic-bounces@ietf.org] *On Behalf Of *Justin
> Uberti
> *Sent:* Freitag, 6. Juni 2014 03:09
> *To:* mmusic@ietf.org; Mallinath Bareddy; Jiayang Liu; Eric Rescorla
> *Subject:* [MMUSIC] ICE PRIORITY with multiple TURN servers
>
>
>
> Consider the case where a single endpoint has 2 TURN servers, and
> allocates a relay candidate from both, from the same local IP. What should
> their PRIORITY values be?
>
>
>
> Quoth 5245, S 4.1.2:
>
>    Each candidate for a media stream MUST have a unique
>
>    priority that MUST be a positive integer between 1 and (2**31 - 1).
>
>
>
> OK, so they have to have different priorities, i.e. either their type
> preference or local preference must be different. But then, looking at S
> 4.1.2.1:
>
>    The type preference MUST be identical for all
>
>    candidates of the same type and MUST be different for candidates of
>
>    different types.
>
>
>
> Hmm, this means their local_preference must be different. But later in S
> 4.1.2.1:
>
>    The local preference MUST be an integer from 0 to 65535 inclusive.
>
>    It represents a preference for the particular IP address from which
>
>    the candidate was obtained, in cases where an agent is multihomed.
>
>
>
> Obviously, if they come from the same local IP, this cannot be satisfied.
> What to do?
>
> *[TS] Well, that paragraph continues:*
>
>
>
>   When there is only a single IP address, this value SHOULD be set to
>
>    65535.  More generally, if there are multiple candidates for a
>
>    particular component for a particular media stream that have the same
>
>    type, the local preference MUST be unique for each one.
>
>
>
> So the case of two TURN servers is covered.
>
> What you propose below is OK, but if desired you could  also rank A1, A2,
> B1, B2. It’s your freedom of choice.
>
> Regards
>
> Thomas
>
>
>
> It seems like the easiest solution would be to use some of the local
> preference to represent the ordering, so that both IP preference and server
> preference and represented, and therefore relay candidates from IPs 1 and 2
> and Turn Servers A and B would stack rank as
>
> A1
>
> B1
>
> A2
>
> B2
>