Re: [MMUSIC] RFC 5245 Section 4.1.2.1, ice-happy-eyeballs and ICE bis

"Tirumaleswar Reddy (tireddy)" <tireddy@cisco.com> Fri, 02 August 2013 15:11 UTC

Return-Path: <tireddy@cisco.com>
X-Original-To: mmusic@ietfa.amsl.com
Delivered-To: mmusic@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0A7D311E80C5 for <mmusic@ietfa.amsl.com>; Fri, 2 Aug 2013 08:11:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.448
X-Spam-Level:
X-Spam-Status: No, score=-10.448 tagged_above=-999 required=5 tests=[AWL=-0.151, BAYES_00=-2.599, MIME_8BIT_HEADER=0.3, OBSCURED_EMAIL=0.001, RCVD_IN_DNSWL_HI=-8]
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 fLE3+p6dFA9y for <mmusic@ietfa.amsl.com>; Fri, 2 Aug 2013 08:11:17 -0700 (PDT)
Received: from rcdn-iport-4.cisco.com (rcdn-iport-4.cisco.com [173.37.86.75]) by ietfa.amsl.com (Postfix) with ESMTP id 8A3FC11E80F4 for <mmusic@ietf.org>; Fri, 2 Aug 2013 08:11:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3556; q=dns/txt; s=iport; t=1375456277; x=1376665877; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=iGxm0/SuD5Qp3Ayh5dFo4rBrtXecIS6h8GnwCvuMOVM=; b=IVmhrDD2nRpSGfkn37r68rc4QHENeTvaQadCkU/lS/TTi8UyGK2aBNG+ 4h4L0oN/ly0hHhiPPUkCbMzV5CpBmygALoSs4YKgwR771MSLEZo87WlIy /kdWpEPVLk5ebiOBzjEN9p/kcbAnQAbRd0LAUFgMFEuZ/2VFg3jpx2sg1 E=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AisFAO/K+1GtJXHA/2dsb2JhbABagwY1UL5WgR0WdIIkAQEBBHkMBAIBCBEEAQEBCh0HMhQJCAIEAQ0FCIgIDLlVj2cxBwaDE3QDiHKQF5AkgxeCKg
X-IronPort-AV: E=Sophos;i="4.89,802,1367971200"; d="scan'208";a="242866421"
Received: from rcdn-core2-5.cisco.com ([173.37.113.192]) by rcdn-iport-4.cisco.com with ESMTP; 02 Aug 2013 15:11:17 +0000
Received: from xhc-aln-x10.cisco.com (xhc-aln-x10.cisco.com [173.36.12.84]) by rcdn-core2-5.cisco.com (8.14.5/8.14.5) with ESMTP id r72FBGDf024558 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 2 Aug 2013 15:11:16 GMT
Received: from xmb-rcd-x10.cisco.com ([169.254.15.159]) by xhc-aln-x10.cisco.com ([173.36.12.84]) with mapi id 14.02.0318.004; Fri, 2 Aug 2013 10:11:16 -0500
From: "Tirumaleswar Reddy (tireddy)" <tireddy@cisco.com>
To: Ari Keränen <ari.keranen@ericsson.com>, Jonathan Lennox <jonathan@vidyo.com>
Thread-Topic: [MMUSIC] RFC 5245 Section 4.1.2.1, ice-happy-eyeballs and ICE bis
Thread-Index: AQHOjc8e11SEQQIfXUy0NUn1kHVbfZl+uC4wgAB5HwCAABPqAIAAwV2Q
Date: Fri, 02 Aug 2013 15:11:16 +0000
Message-ID: <913383AAA69FF945B8F946018B75898A1900AB72@xmb-rcd-x10.cisco.com>
References: <CABkgnnVEzTABa4-YZWgBwiEBt6DXCr5ugHY0KOfkw-x5Y91Lyw@mail.gmail.com> <BLU169-W25092106DE55365B8C883893570@phx.gbl> <51F8D6B6.6080109@ericsson.com> <913383AAA69FF945B8F946018B75898A19008F0E@xmb-rcd-x10.cisco.com> <04179E80-2AF6-4150-B083-01289438BC0A@vidyo.com> <51F933A8.2060504@ericsson.com>
In-Reply-To: <51F933A8.2060504@ericsson.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.65.71.227]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "mmusic@ietf.org" <mmusic@ietf.org>
Subject: Re: [MMUSIC] RFC 5245 Section 4.1.2.1, ice-happy-eyeballs and ICE bis
X-BeenThere: mmusic@ietf.org
X-Mailman-Version: 2.1.12
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, 02 Aug 2013 15:11:23 -0000

> -----Original Message-----
> From: Ari Keränen [mailto:ari.keranen@ericsson.com]
> Sent: Wednesday, July 31, 2013 9:26 PM
> To: Jonathan Lennox
> Cc: Tirumaleswar Reddy (tireddy); mmusic@ietf.org; Martin Thomson
> Subject: Re: [MMUSIC] RFC 5245 Section 4.1.2.1, ice-happy-eyeballs and ICE bis
> 
> On 7/31/13 4:45 PM, Jonathan Lennox wrote:
> >
> > On Jul 31, 2013, at 4:13 PM, "Tirumaleswar Reddy (tireddy)"
> <tireddy@cisco.com> wrote:
> >>
> >> Using the formula in RFC 5245
> >>
> >>    priority = (2^24)*(type preference) +
> >>               (2^8)*(local preference) +
> >>               (2^0)*(256 - component ID)
> >>
> >> Type preference of
> >>   Host candidates > Server-reflexive candidates > Relayed candidates
> >>
> >> (For example host candidate is 126, server-reflexive 105)
> >>
> >> that causes the problem that when candidate pair priority is calculated
> (priority = 2^32*MIN(G,D) + 2*MAX(G,D) + (G>D?1:0))
> >> The candidate pair IPv4 (host, server-reflexive) will only be tested only
> after all IPv6 host candidate-pairs, IPv4 host candidate pairs.
> >>
> >> Even if policy table RFC 6724 is changed so that IPv4 addresses have higher
> precedence that does not solve the problem, It will still result in IPv4
> (host, server-reflexive) to be tested only after all IPv4 host candidate
> pairs, IPv6 host candidate-pairs.
> >>
> >> Hence during the WG session, I had explained that by tweaking the candidate
> priority will not solve the problem, but the candidate pair priority has to be
> adjusted after offer/exchange such that after NNN number of preferred IPv6
> candidate pairs the highest-priority IPv4 candidate-pair is tested and the
> above adjustment continued until all candidate pairs of the preferred address
> family are exhausted.
> >
> > The first formula you quote is the one that RFC 5245 defines as recommended,
> not mandatory.  What we're suggesting be changed is not the "local preference"
> field, but actually the calculated 32-bit "priority" field for the candidate.
> You can set your priorities such that some server-reflexive candidates have
> higher priority than some host candidates, and the calculation of the pair's
> 64-bit priority will still work.
> >
> > We need to be pretty careful when defining a new formula for how these
> priorities are set, though.
> 
> If it's only about updating that formula, this indeed looks like a good
> way forward.
> 
> Just need to think how to get all we want to express (and what do we
> actually want to express) in a priority formula that isn't overly
> complex. Expressing things like "some IPv4 host-srvrflx should be
> prioritized over (some) IPv6 host-host but v4 host-host below (some) v6
> host-host" etc may get a bit messy.

How about using the existing recommended formula in RFC 5245 and after the local candidates are prioritized do the following additional steps :
 
a.  If the first 'N' candidates are of the same IP address family, then the highest-priority candidate of the other address family is promoted to position 'N' in the list.

b.  Step b is repeated for rest of candidates. This is continued until all candidates with the preferred address family are exhausted.

This would work even when policy table is modified such that IPv4 addresses have higher precedence than IPv6 using DHCP http://tools.ietf.org/html/draft-ietf-6man-addr-select-opt-10. 

--Tiru.
> 
> 
> Cheers,
> Ari