Re: [rtcweb] Question about ICE-Lite server

Eric Rescorla <ekr@rtfm.com> Sun, 06 July 2014 04:54 UTC

Return-Path: <ekr@rtfm.com>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 761CE1A01A9 for <rtcweb@ietfa.amsl.com>; Sat, 5 Jul 2014 21:54:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level:
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 PD68KMNl3gFw for <rtcweb@ietfa.amsl.com>; Sat, 5 Jul 2014 21:54:24 -0700 (PDT)
Received: from mail-we0-f175.google.com (mail-we0-f175.google.com [74.125.82.175]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3F2621A019A for <rtcweb@ietf.org>; Sat, 5 Jul 2014 21:54:24 -0700 (PDT)
Received: by mail-we0-f175.google.com with SMTP id k48so2972505wev.20 for <rtcweb@ietf.org>; Sat, 05 Jul 2014 21:54:22 -0700 (PDT)
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=bjTlGu56dkGfNDCHSyBnO84efN8lLqG14sNcXBt31KY=; b=RdjJHIJLCs6cB0quOMVl7EF9HCZo21Yig2bU4qBUtqFk0X5632Bba0RG9gjh9kBtXa HzUh/yg8wcYSglm8S0VbP3MEJzty65qoTlr4AmBdoC9648DOtLjHZFq4EyLV4frb8cCl pcNtBhO4Ypv2myuVS487bcKV59vyMAXiQLb10E4W/uDUkxgvOunba7yKBdwI2UTKWExS C54TfWhMgHXE8eIjV7hUR5MwDIdQdRQNNj0jMbHqsfSaSJiuLhw4FFHVsHevA6kUCwEF 7o+AGs5XcSo88Jq/8SWTEp8gyeKByBEzQeum/EPaFMOfeY/aRv8uKeFpS9RBAgXpeMw8 m/ig==
X-Gm-Message-State: ALoCoQnvyOLOx0LgxueFqiIdhJLuaAOFMphN0dNg7JVEIDsXKWla/5d0VCvGsIkLAWHP4E9IvrGv
X-Received: by 10.194.71.52 with SMTP id r20mr21562wju.113.1404622462830; Sat, 05 Jul 2014 21:54:22 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.216.57.202 with HTTP; Sat, 5 Jul 2014 21:53:42 -0700 (PDT)
X-Originating-IP: [74.95.2.168]
In-Reply-To: <CAD5OKxv8s5-FNR-kq0C01H_Ev39cyBs5P__Pd-0cmCXDFYy-YQ@mail.gmail.com>
References: <CALiegf=kLtiUKoue=ahXP4fUhLJNNd8vCaQTECQxjK5R7cjLTQ@mail.gmail.com> <CAD5OKxv8s5-FNR-kq0C01H_Ev39cyBs5P__Pd-0cmCXDFYy-YQ@mail.gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
Date: Sat, 05 Jul 2014 21:53:42 -0700
Message-ID: <CABcZeBPV_iVcSmi+ndDaYY6zX=F7TRoSDFqe5hzJP3-NjZ7Y1w@mail.gmail.com>
To: Roman Shpount <roman@telurix.com>
Content-Type: multipart/alternative; boundary="047d7bfcec50f0e3e304fd7f262a"
Archived-At: http://mailarchive.ietf.org/arch/msg/rtcweb/RDkyCN3tDi7AkmyC_cgPbJEH8TQ
Cc: "rtcweb@ietf.org" <rtcweb@ietf.org>
Subject: Re: [rtcweb] Question about ICE-Lite server
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.15
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: Sun, 06 Jul 2014 04:54:26 -0000

On Sat, Jul 5, 2014 at 9:18 PM, Roman Shpount <roman@telurix.com> wrote:

> According to RFC 5245: "If its peer has a lite implementation, an agent
> MUST use a regular nomination algorithm." So, this whole problem cannot
> occur.
>

Nice catch. That actually changes things, since Firefox always uses
aggressive nomination and for performance reasons, I'm not excited
about moving to regular nomination. This seems like an argument
for perhaps forbidding ICE-Lite.

I note that this section (8.1.1) actually requires regular nomination in
another situation:

   The controlling agent nominates pairs to be selected by ICE by using
   one of two techniques: regular nomination or aggressive nomination.
   If its peer has a lite implementation, an agent MUST use a regular
   nomination algorithm.  If its peer is using ICE options (present in
   an ice-options attribute from the peer) that the agent does not
   understand, the agent MUST use a regular nomination algorithm.

I note that this has the impact that in the role conflict scenarios
(see appendix B.11) offering half-trickle may throw the other side
into regular nomination (though only if the other side doesn't
support trickle). This is probably an edge case, but I thought I
would point it out.


-Ekr


>  _____________
> Roman Shpount
>
>
> On Fri, Jul 4, 2014 at 9:15 AM, Iñaki Baz Castillo <ibc@aliax.net> wrote:
>
>> Hi,
>>
>> In case of aggressive ICE the controlling agent (let's say: the
>> client), and assuming the client has IPv4 and IPv6 and the ICE-Lite
>> server as well, the server will receive multiple STUN Requests with
>> USE-CANDIDATE and will decide which one to select based on computed
>> candidate-pair priorities (so both the client and server select the
>> same as they follow the same algorithm).
>>
>> Now my question is: let's assume that the server is just provided with
>> local ICE username and password, but knows nothing about the fields in
>> ICE candidates (let's assume that the SDP is negotiated by other
>> entity which does not notify the media server about ICE candidate
>> parameters others than local username and password).
>>
>> So the media server just knows its local ICE username and password,
>> but it receives a ICE Request with USE-CANDIDATE on the IPv4 interface
>> and another on the IPv6 interface.
>>
>> Can the ICE server determine which pair to select (the IPv4 or the
>> IPv6) by just inspecting the PRIORITY attribute in both STUN Requests
>> and select the one with highest value?
>>
>> Or does the server need to assign priority, component and all the ICE
>> stuff to its interfaces and also be provided with the client's and its
>> own ICE candidates?
>>
>> Thanks a lot.
>>
>> --
>> Iñaki Baz Castillo
>> <ibc@aliax.net>
>>
>> _______________________________________________
>> rtcweb mailing list
>> rtcweb@ietf.org
>> https://www.ietf.org/mailman/listinfo/rtcweb
>>
>
>
> _______________________________________________
> rtcweb mailing list
> rtcweb@ietf.org
> https://www.ietf.org/mailman/listinfo/rtcweb
>
>