Re: [MMUSIC] ICE PRIORITY with multiple TURN servers

Ari Keränen <ari.keranen@ericsson.com> Wed, 25 June 2014 21:57 UTC

Return-Path: <ari.keranen@ericsson.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 0D88A1A854B for <mmusic@ietfa.amsl.com>; Wed, 25 Jun 2014 14:57:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.6
X-Spam-Level:
X-Spam-Status: No, score=-1.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, MIME_8BIT_HEADER=0.3, NORMAL_HTTP_TO_IP=0.001, SPF_PASS=-0.001] autolearn=no
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 h-S_VJOvmf90 for <mmusic@ietfa.amsl.com>; Wed, 25 Jun 2014 14:57:42 -0700 (PDT)
Received: from sessmg22.ericsson.net (sessmg22.ericsson.net [193.180.251.58]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 90F7D1B27A1 for <mmusic@ietf.org>; Wed, 25 Jun 2014 14:57:41 -0700 (PDT)
X-AuditID: c1b4fb3a-f79746d000006fe2-d3-53ab45d35569
Received: from ESESSHC024.ericsson.se (Unknown_Domain [153.88.253.124]) by sessmg22.ericsson.net (Symantec Mail Security) with SMTP id EC.C7.28642.3D54BA35; Wed, 25 Jun 2014 23:57:39 +0200 (CEST)
Received: from mail.lmf.ericsson.se (153.88.183.153) by smtp.internal.ericsson.com (153.88.183.92) with Microsoft SMTP Server id 14.3.174.1; Wed, 25 Jun 2014 23:57:38 +0200
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id 037D0110293; Thu, 26 Jun 2014 00:57:39 +0300 (EEST)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 88F915818B; Thu, 26 Jun 2014 00:58:07 +0300 (EEST)
Received: from As-MacBook-Air.local (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 0758457DB8; Thu, 26 Jun 2014 00:58:06 +0300 (EEST)
Message-ID: <53AB45CF.8030208@ericsson.com>
Date: Wed, 25 Jun 2014 23:57:35 +0200
From: Ari Keränen <ari.keranen@ericsson.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Thunderbird/24.5.0
MIME-Version: 1.0
To: Justin Uberti <juberti@google.com>, "Stach, Thomas" <thomas.stach@unify.com>
References: <CAOJ7v-3osr-hMpTgVg7EwCJtBPdeaeUQ9ObPPZq-TqDnrjs+Kg@mail.gmail.com> <F81CEE99482EFE438DAE2A652361EE1217AAEB31@MCHP04MSX.global-ad.net> <CAOJ7v-2rdkzm4+DWtqbjFtE1qOC_kDCZ4AWiuMAxxFqh-DWauQ@mail.gmail.com>
In-Reply-To: <CAOJ7v-2rdkzm4+DWtqbjFtE1qOC_kDCZ4AWiuMAxxFqh-DWauQ@mail.gmail.com>
Content-Type: text/plain; charset="windows-1252"; format="flowed"
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCLMWRmVeSWpSXmKPExsUyM+Jvje5l19XBBnPOqlis+ryJxWLrVCGL qcsfs1ic3LmN2YHFY8GmUo8lS34yeWzvecwSwBzFZZOSmpNZllqkb5fAldH2eCJbwUWtijOz 29gaGE/JdzFyckgImEhMmPmJDcIWk7hwbz2QzcUhJHCUUeLk+sPMEM4GRomDB6azQzh7GSWe nHvGAuGsY5T4vXc5I4SzglFi/dRFrCDDeAW0JV4/fsoIYrMIqEpMaznFDmKzCThK3H74EqxG VCBZYum6VWwQ9YISJ2c+YQGxRQSCJD4cWAJWwyzgLvFt/2dmEFtYwFZi4pJGsHohgRuMEmc3 WYPYnAKBEt/3bAeKcwDV20s82FoG0Sov0bx1NjPEb2oSV89tYoZoVZW4+u8V4wRG0VlINs9C 6J6FpHsBI/MqRtHi1OLi3HQjI73Uoszk4uL8PL281JJNjMBoObjlt9UOxoPPHQ8xCnAwKvHw KvCtDhZiTSwrrsw9xCjNwaIkzrvw3LxgIYH0xJLU7NTUgtSi+KLSnNTiQ4xMHJxSDYwGcxjf bRf2Nw95fGbptMf3NmXwJSxRTGMosT7heDxP5LJ9l+SSNzoPp736stzvy66ZnaaXr22ue8q8 4MVm5+J/Hx+aRPeoGe+o2+zOErdExmTPHIufpZ913tgxV8qsXhw41/3MgZO5kqfmy4Z9bpLb 1/4hYal2q9/l3viMvc8r9RIF+q7OTWtXYinOSDTUYi4qTgQAMJWV2HcCAAA=
Archived-At: http://mailarchive.ietf.org/arch/msg/mmusic/vg-y1XKrIew8POuLGlN0-Ib8HKA
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: Wed, 25 Jun 2014 21:57:44 -0000

Hi,

This sounds like a good and simple thing to fix in 5245bis.

I would suggest the following:

For section 4.1.2.1 
(http://tools.ietf.org/html/draft-ietf-mmusic-rfc5245bis-01#section-4.1.2.1):

OLD:
    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.
    65535 represents the highest preference, and a zero, the lowest.
    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.  In this
    specification, this only happens for multihomed hosts. [...]

NEW:
    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. 65535 represents the highest preference,
    and a zero, the lowest.  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.  In this specification, this only happens for multihomed hosts
    or if an agent is using multiple TURN servers. [...]


That is, removing first "(only) multihomed" comment and adding "multiple 
TURN servers" comment to the end.

For the following section (4.1.2.2.) we could add after the first paragraph:

    If multiple TURN servers are used, local priorities for the
    candidates obtained from the TURN servers are chosen in a similar
    fashion as for multihomed local candidates: the local preference
    value is used to indicate preference among different servers but the
    preference MUST be unique for each one.


Would that be OK?


Cheers,
Ari

On 6/7/14 12:02 AM, Justin Uberti wrote:
> 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
> <mailto:thomas.stach@unify.com>> wrote:
>
>     Justin,____
>
>     __ __
>
>     *From:*mmusic [mailto:mmusic-bounces@ietf.org
>     <mailto:mmusic-bounces@ietf.org>] *On Behalf Of *Justin Uberti
>     *Sent:* Freitag, 6. Juni 2014 03:09
>     *To:* mmusic@ietf.org <mailto: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 <http://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 <http://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____
>
>
>
>
> _______________________________________________
> mmusic mailing list
> mmusic@ietf.org
> https://www.ietf.org/mailman/listinfo/mmusic
>