Internet-Draft | WebRTC URI | September 2020 |
DuBois | Expires 29 March 2021 | [Page] |
This document describes a Uniform Resource Identifier (URI) that establishes a WebRTC session. This URI serves two purposes. First it will identify a remote a WebRTC agent. Second it will configure the local WebRTC agent.¶
This provides an alternative to the SDP Offer/Answer exchange [I-D.ietf-mmusic-sdp-offer-answer]. The Offer/Answer is exchanged via a signaling plane that is controlled by the user [I-D.ietf-rtcweb-jsep].¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 29 March 2021.¶
Copyright (c) 2020 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.¶
The WebRTC framework specifies protocol support for direct interactive rich communication using audio, video, and data between two peers. WebRTC was originally designed with the browser in mind. Usage of WebRTC has extended far beyond that. This WebRTC URI is designed for users outside of the browser. In the browser these behaviors could be achieved with ORTC interfaces.¶
The flexibility of WebRTC's signaling plane has made adoption difficult for some use cases. The signaling plane also presents challenges around security, privacy and operational burden. However WebRTC's media plane is unambiguous. Once two WebRTC Agents have enough details from signaling it is easy to establish rich communication.¶
The signaling plane is only necessary when two clients don't have enough information to establish a session. In some cases signaling is not necessary. If the two WebRTC agents agree on some basic details signaling is not required. The greatest difficulty comes with establishing connectivity between two ICE Agents. [I-D.ietf-ice-rfc5245bis] If these two ICE Agents use mDNS [I-D.cheshire-dnsext-multicastdns] and are in the same network you can establish a Zeroconf session. If one ICE Agent is World Routable connectivity is also easily possible. The WebRTC URI format does not allow connectivity between two ICE Agents that would require STUN or TURN.¶
Multiple sessions can be established using the same set of WebRTC URIs. This document describes a URI that contains these details.¶
Discussion of this work is encouraged to happen on the MMUSIC IETF mailing list mmusic@ietf.org or on the GitHub repository which contains the draft: https://github.com/sean-der/webrtc-uri.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
Please note that this section is informational only.¶
The WebRTC URI takes two possible forms. The only difference is how the authority is handled.¶
Zeroconf is used for connecting two WebRTC Agents in the same network. These agents don't need to know a address/port ahead of time since the discovery is done via mDNS.¶
webrtc://<ice-user-fragment>:<ice-password>@<mDNS name>?<parameters>¶
World Routable URIs are used to connect to a host that is listening on a Address/Port. The Agent with the URI needs to know the Address/Port ahead of time.¶
webrtc://<ice-user-fragment>:<ice-password>@<Address/Port>?<parameters>¶
The following parameters are recognized, more will need to be added.¶
The following two URIs would allow two WebRTC Agents in the same network to connect and have
bi-directional text communication. The first agent would assume the mDNS name alice.local
and
the second would be bob.local
.¶
webrtc://eu6k:cae6@alice.local?local-ice-ufrag=adu3&local-ice-pwd=eew4&datachannel&ice-controlling&dtls-client webrtc://adu3:eew4@bob.local?local-ice-ufrag=eu6k&local-ice-pwd=cae6&datachannel¶
The following URI allows a WebRTC Agent to connect to a World Routable agent.¶
webrtc://eu6k:cae6@example.org:5001?local-ice-ufrag=adu3&local-ice-pwd=eew4&datachannel&ice-controlling&dtls-client¶
Without the WebRTC URI a signaling plane is required to establish a WebRTC session.¶
If an attacker is able to modify messages in the signaling plane they could MITM a WebRTC Session. The attacker could replace the candidates and certificate fingerprint with their own. They could then route all traffic through a host they control. The two users would connect to each other and not realize that anything is wrong.¶
If an attacker is able to observe messages they can extract valuable information around a session. The attacker is able to determine when a call is taking place. They are also able to determine how many media tracks are being exchanged.¶
Many times two WebRTC agents are in the same LAN. The signaling plane is usually run on a World Routable server. The WebRTC Agents may have direct connectivity with each other, but not be able to connect to the signaling plane.¶
A WebRTC URI can be parsed and used by a WebRTC implementation that doesn't support URIs. The values in the URI could be expanded to be a SetLocalDescription and SetRemoteDescription. These options could also be handled by a ORTC Implementation.¶
Given the following URI¶
webrtc://eu6k:cae6@example.org:5001?local-ice-ufrag=adu3&local-ice-pwd=eew4&datachannel&ice-controlling&dtls-client¶
You get this Local Description¶
v=0 o=- 0 1 IN IP4 127.0.0.1 s=- t=0 0 m=application 9 DTLS/SCTP 5000 c=IN IP4 127.0.0.1 a=ice-ufrag:adu3 a=ice-pwd:eew4 a=setup:actpass a=mid:0 a=sctpmap:5000 webrtc-datachannel 1024 a=fingerprint:tbd¶
And this Remote Description¶
v=0 r=- 0 2 IN IP4 127.0.0.1 s=- t=0 0 m=application 9 DTLS/SCTP 5000 c=IN IP4 127.0.0.1 a=candidate:1966762134 1 udp 2122260223 example.org 5001 typ host a=ice-ufrag:eu6k a=ice-pwd:cae6 a=setup:passive a=mid:0 a=sctpmap:5000 webrtc-datachannel 1024 a=fingerprint:tbd¶