Network Working Group J. Uberti
Internet-Draft Google
Intended status: Standards Track C. Jennings
Expires: August 29, 2013 Cisco
February 25, 2013
Javascript Session Establishment Protocol
draft-ietf-rtcweb-jsep-03
Abstract
This document describes the mechanisms for allowing a Javascript
application to fully control the signaling plane of a multimedia
session via the interface specified in the W3C RTCPeerConnection API,
and discusses how this relates to existing signaling protocols.
Status of this Memo
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 http://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 August 29, 2013.
Copyright Notice
Copyright (c) 2013 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
(http://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.
Uberti & Jennings Expires August 29, 2013 [Page 1]
Internet-Draft JSEP February 2013
Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.1. General Design of JSEP . . . . . . . . . . . . . . . . . . 4
1.2. Other Approaches Considered . . . . . . . . . . . . . . . 6
2. Terminology . . . . . . . . . . . . . . . . . . . . . . . . . 6
3. Semantics and Syntax . . . . . . . . . . . . . . . . . . . . . 7
3.1. Signaling Model . . . . . . . . . . . . . . . . . . . . . 7
3.2. Session Descriptions and State Machine . . . . . . . . . . 7
3.3. Session Description Format . . . . . . . . . . . . . . . . 10
3.4. ICE . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.4.1. ICE Candidate Trickling . . . . . . . . . . . . . . . 10
3.4.1.1. ICE Candidate Format . . . . . . . . . . . . . . . 11
3.5. Interactions With Forking . . . . . . . . . . . . . . . . 11
3.5.1. Sequential Forking . . . . . . . . . . . . . . . . . . 12
3.5.2. Parallel Forking . . . . . . . . . . . . . . . . . . . 12
3.6. Session Rehydration . . . . . . . . . . . . . . . . . . . 13
4. Interface . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.1. SDP Requirements . . . . . . . . . . . . . . . . . . . . . 14
4.2. Methods . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.2.1. createOffer . . . . . . . . . . . . . . . . . . . . . 15
4.2.2. createAnswer . . . . . . . . . . . . . . . . . . . . . 16
4.2.3. SessionDescriptionType . . . . . . . . . . . . . . . . 17
4.2.3.1. Use of Provisional Answers . . . . . . . . . . . . 18
4.2.3.2. Rollback . . . . . . . . . . . . . . . . . . . . . 18
4.2.4. setLocalDescription . . . . . . . . . . . . . . . . . 19
4.2.5. setRemoteDescription . . . . . . . . . . . . . . . . . 19
4.2.6. localDescription . . . . . . . . . . . . . . . . . . . 20
4.2.7. remoteDescription . . . . . . . . . . . . . . . . . . 20
4.2.8. updateIce . . . . . . . . . . . . . . . . . . . . . . 20
4.2.9. addIceCandidate . . . . . . . . . . . . . . . . . . . 21
5. SDP Interaction Procedures . . . . . . . . . . . . . . . . . . 21
5.1. Constructing an Offer . . . . . . . . . . . . . . . . . . 21
5.2. Generating an Answer . . . . . . . . . . . . . . . . . . . 21
5.3. Parsing an Offer . . . . . . . . . . . . . . . . . . . . . 21
5.4. Parsing an Answer . . . . . . . . . . . . . . . . . . . . 21
5.5. Applying a Local Description . . . . . . . . . . . . . . . 21