Re: [rtcweb] Proposal to break the ICE impasse

Roman Shpount <roman@telurix.com> Tue, 29 January 2019 19:28 UTC

Return-Path: <roman@telurix.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 E2772130FE9 for <rtcweb@ietfa.amsl.com>; Tue, 29 Jan 2019 11:28:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.031
X-Spam-Level:
X-Spam-Status: No, score=-2.031 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.142, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_SPF_PERMERROR=0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=telurix-com.20150623.gappssmtp.com
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 wRpcSwBSesnl for <rtcweb@ietfa.amsl.com>; Tue, 29 Jan 2019 11:28:24 -0800 (PST)
Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2B973130FE6 for <rtcweb@ietf.org>; Tue, 29 Jan 2019 11:28:24 -0800 (PST)
Received: by mail-pl1-x629.google.com with SMTP id a14so9774302plm.12 for <rtcweb@ietf.org>; Tue, 29 Jan 2019 11:28:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telurix-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VIqeXymov9x6jzez3TF/KJisP08yk1vRQFcSCu9uIYw=; b=zDKgbyW4oW04V21+li4wOoUYhQ+0GmOfthIWWWBWuFmzlHPvRolz/FcyZzZf/Rwzpg jUsS3p9l4GqM6Z4R9g+U4uImsb14fEp1LdyCxOPrF4zvJvjL5vfHPWJSihX3jHWVkBkU EYJyk18bPsfqMqb+DzDX8rvqm8v0Nix8E7tYHFy9a2iFLI0/NGT8q8/xjt5b86c40SfD Z6ptGQtj6BgCrmIa+n71yMWbknanQ3kYAx/EV1UG0wiJVDDA7EGsVh8oMw4cRqPQKW+T IoW0nUunwRHgEZ8I2J4xdIibxkPG75P3v8Uh0lODW6rn10csYOp0UOVyYup+/LuuNJv8 MOOA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VIqeXymov9x6jzez3TF/KJisP08yk1vRQFcSCu9uIYw=; b=U3CyYeDzMqPMxiiWVEN4a9HS6ZonML53Hkrc+WuupCf9ix7yM14/t8cPkyOOphHcmR VDoraFteeDB0dkxKEhIbSuZpEXZ9Vh5ZRQQvesGJt5Rpqt1vQ/szrvWM614/HLw3vSNt wThZh/c9pg5VHcyT/8JX3B9SzhUPkueJHgJH/vwgtiEPCBMRp71e39iyumzF8TeD9j62 +XnxTSqQY559QYiKcXrjWAARV9E3IcjcVpVX6DFH1aPJYgKk5+EqtxvmfTwKQkitA8Dr g4U8SndeRJHOT6v87dVxBcJwh+necpId0hRNDy8R6fyj395TRFsE7uQulDTlkm/KB9qn 2KBQ==
X-Gm-Message-State: AJcUukfS0dj8qWdCYjQXKcf9VsM8yP6NCV9s1Zuh8VX7UGzxyGT2+AiJ ygyF+M5DYeO/Fq3M/hfMrHHRqV80BRc=
X-Google-Smtp-Source: ALg8bN51vDVWJY+BJf0KkPJVZ3OERdBVe4poCZyty3NOyx3hE0bswq/D7OlB/BNq1R1XqhELvKDCqQ==
X-Received: by 2002:a17:902:142:: with SMTP id 60mr28136992plb.330.1548790103593; Tue, 29 Jan 2019 11:28:23 -0800 (PST)
Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com. [209.85.214.179]) by smtp.gmail.com with ESMTPSA id q199sm69403136pfc.97.2019.01.29.11.28.22 for <rtcweb@ietf.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Jan 2019 11:28:22 -0800 (PST)
Received: by mail-pl1-f179.google.com with SMTP id p8so9794339plo.2 for <rtcweb@ietf.org>; Tue, 29 Jan 2019 11:28:22 -0800 (PST)
X-Received: by 2002:a17:902:6909:: with SMTP id j9mr26459856plk.196.1548790102402; Tue, 29 Jan 2019 11:28:22 -0800 (PST)
MIME-Version: 1.0
References: <97ed2641-8a7e-19a9-be38-a3458ca9212e@nostrum.com> <CABcZeBP9t0SgsHAuENo99D6ffKd7Mw0Xs1vzUCOzSS=WJN5z8A@mail.gmail.com> <HE1PR07MB3161B0F1D2B5AC9DA72DDFAD93950@HE1PR07MB3161.eurprd07.prod.outlook.com> <CAOJ7v-3KHi0TUDsQvG6qq-qeNGBsqLxg+NC1c+Nxvgy0ks0d0g@mail.gmail.com> <CABcZeBNL=sWFfh=zwiuib80HPsno=GzF18gU+z3DrCZTK_PquA@mail.gmail.com> <CA+9kkMDh56CeXRGNSk_r-HrLkDNT5DnYc_FguXOdeccfq=LEMA@mail.gmail.com> <CABcZeBPboLf0bLUDTyJArxsPYSnUrULArmsZ9YshQCX+rEvexA@mail.gmail.com> <CA+9kkMCwCBHWEEADxVHT2ZbvWEi=bUBJ22icKHpA2p8Kg1fF9A@mail.gmail.com> <CALiegfnpj+Pu0Hg05iqHXCwhTefxn_Em7gTnzOXK897fzcyuwg@mail.gmail.com> <CAD5OKxvmQHT3TAt_=xCd_JKnPzXfnc=Mej-mr6KMsaKVoBkuSg@mail.gmail.com> <CALiegfm_jtv1bV3Ok6j20hkim8e6QxMYPrbbHejqoHnCHjMXpA@mail.gmail.com> <CAD5OKxsMWEE39O6hSc+UFjwTAa=z1A+XD5X2BY=Q7PEUdYE4UA@mail.gmail.com> <961E55AE-2072-4145-8BCF-62D67C6D150F@mozilla.com> <CAD5OKxuwhmAPvonV1rX1rN6yi08-4NPH1BOzVuJPUMEntnpRkw@mail.gmail.com> <CALiegfmZ_DSe7EFw48C6HoQ+bUReom4r0TTMf4wRG6UyAbgX2w@mail.gmail.com> <CAD5OKxvm_U=Tgvmxfi8hqiR=8tB_ueQtUSJJV5NLcVL8dBdHtw@mail.gmail.com> <CALiegfm1y_p3wDoXeckSw2BQ61gGYh4c9A7a=p0vi=BnWGoU4A@mail.gmail.com>
In-Reply-To: <CALiegfm1y_p3wDoXeckSw2BQ61gGYh4c9A7a=p0vi=BnWGoU4A@mail.gmail.com>
From: Roman Shpount <roman@telurix.com>
Date: Tue, 29 Jan 2019 14:28:11 -0500
X-Gmail-Original-Message-ID: <CAD5OKxvyDNm68_A1WVEyvsU52Jua+vHbrMpZJ0v0s7reP00OLQ@mail.gmail.com>
Message-ID: <CAD5OKxvyDNm68_A1WVEyvsU52Jua+vHbrMpZJ0v0s7reP00OLQ@mail.gmail.com>
To: =?UTF-8?Q?I=C3=B1aki_Baz_Castillo?= <ibc@aliax.net>
Cc: Nils Ohlmeier <nohlmeier@mozilla.com>, RTCWeb IETF <rtcweb@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000e2ace305809dcb42"
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtcweb/L6SVX-WUcPoT-L58OlhsGFcxEXc>
Subject: Re: [rtcweb] Proposal to break the ICE impasse
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.29
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: <https://mailarchive.ietf.org/arch/browse/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: Tue, 29 Jan 2019 19:28:26 -0000

On Tue, Jan 29, 2019 at 2:05 PM Iñaki Baz Castillo <ibc@aliax.net> wrote:

> I understand your point. But still I don't understand the purpose of the
> new draft (set TCP/DTLS/etc in proto line if there are just TCP candidates
> in the offer).
>

The purpose is standard compliance. If nominated candidate is UDP, proto
line should be UDP. If nominated candidate is TCP, proto line should be
TCP. If you do not care about the c= and m= line, put the dummy values and
UDP there, but this breaks legacy interop by causing ICE mismatch. Putting
UDP proto and address from TCP candidate breaks legacy interop as well, but
it is typically localized to provider managed server, so it is possible to
patch around this either in JS client or on the server to treat WebRTC
clients differently. Alternatively, WebRTC clients can add a couple lines
of code and become compliant with the RFC they decided to implement and
remove the need for patching.

Of course, if browser follow the ICE spec and set the selected candidate in
> the c/m lines, they must also indicate whether that is over UDP or TCP. The
> problem here is what such a proto line is intended to mean when there is
> ICE candidates of UDP and TCP. But ok, let's assume that browser do update
> c/m lines in the trigger with the selected candidate, and they JUST change
> the proto line to TCP/DTLS if there are just TCP candidates. Now thing
> about this scenario:
>
> 1) Client initial offer with UDP and TCP candidates.
>
> 2) Server answers with both UDP and TCP candidates.
>
> 3.1) UDP is selected. Re-offer is created with just UDP candidates (as per
> spec).
>
> 3.2) or TCP is selected. Re-offer is created with just TCP candidates (as
> per specs).
>
> In both 3.1 and 3.2 the "monitoring Node" doesn't need to inspect the
> proto line. It can just check the protocol (UDP or TCP) of *any* candidate
> in the offer to know whether UDP or TCP was selected.
>
> Am I wrong?
>

You are correct. Checking c= and m= line is simply to avoid checking and
parsing ICE candidates. If monitoring client would handle ICE candidates,
then the monitoring client would still need to figure out which candidate
is default to record client media IP. Keeping c= and m= line in sync with
default candidate on the client seemed to cause the least amount of
problems which is why it was left in ice-sip-sdp.

Regards,
_____________
Roman Shpount