jsep update
play

JSEP Update Justin Uberti IETF 83.5 Topics Activity since IETF - PowerPoint PPT Presentation

JSEP Update Justin Uberti IETF 83.5 Topics Activity since IETF 83 Implementation Status Issues Raised Recap from IETF 83 Offer/answer state machine specified PRANSWER's only meaning is "allow additional future


  1. JSEP Update Justin Uberti IETF 83.5

  2. Topics ● Activity since IETF 83 ● Implementation Status ● Issues Raised

  3. Recap from IETF 83 ● Offer/answer state machine specified ● PRANSWER's only meaning is "allow additional future answers" ● Media transmission controlled by SDP direction attribute ● Consensus on Serial forking ● Description of SDP attributes changeable by the application

  4. Activity since IETF 83 ● JSEP support landed in Chrome 20 ○ Based on draft-ietf-rtcweb-jsep-00 ○ Seems to be well understood ● Long discussion about JSEP in API spec ○ Mostly syntactical/ease-of-use ● Several issues raised on list ○ Parallel forking ○ "Special" offer creation ● draft-ietf-rtcweb-jsep-01 published ○ API spec moved to Appendix ○ Document will focus on semantics and SDP layer

  5. Implementation Status ● Chrome 20 has JSEP ○ Suffixed API: webkitPeerConnection00 ● Concepts mostly understood by developers ○ Many developers using JSEP API, features like trickle candidates ○ JSEP->ROAP, JSEP->SIP, JSEP->Jingle JS libs all created ● Some confusion on timing of startIce vs setLocalDescription

  6. W3C Status ● Resolved issues ○ Async offer/answer generation ○ Semantics of startIce ● TBD issues ○ SessionDescription.type field ○ SDP auto-stringify/unstringify ○ Flags for PRANSWER/restartIce ○ OnRenegotiateNeeded

  7. Issues Raised ● Serial vs Parallel forking ○ PeerConnection Cloning ● Special offer creation ● Rehydration, revisited

  8. Serial Forking Voicemail Person OFFER ANSWER #1 (200) ANSWER #2 (200) setRemoteDescription(PRANSWER) setRemoteDescription(ANSWER) A

  9. Serial Forking + Trickle ● Callee's trickle candidates are no longer valid when a new PRANSWER arrives ● Browser needs to discard any existing candidates when PRANSWER/ANSWER is set with different ICE credentials ● Unlikely to be a real-world problem ○ Only SIP forks ○ Only Jingle trickles

  10. Problematic Call Flow B C OFFER 1. ANSWER (200) 2. OFFER (UPDATE) 1. setRemoteDescription(PRANSWER) 2. ??? A

  11. Solutions ● Do nothing ○ App applies previous PRANSWER as final ANSWER, then handles new OFFER as usual ○ Any future ANSWERs from other remote endpoints must be discarded ● Clone PeerConnection ○ Original PeerConnection follows steps above ○ Cloned PeerConnection stays open for ANSWERs from other remote endpoints ○ Everyone is happy (except implementors, perhaps)

  12. Cloning B C OFFER 1. ANSWER (200) 1. ANSWER (200) 2. OFFER (UPDATE) 1. clone = pc.clone() 1. clone.setRemoteDescription(ANSWER, incoming_desc3) 2. pc.setRemoteDescription(PRANSWER, incoming_desc1) 3. pc.setRemoteDescription(ANSWER, pc.remoteDescription) 4. pc.setRemoteDescription(OFFER, incoming_desc2) A A'

  13. Cloning, in-depth (Thanks to Richard Ejzak) PeerConnection.clone creates a new PeerConnection from an existing 1. PeerConnection The parent PC must have a valid localDescription, but cannot have a final 2. remoteDescription (i.e. must be in OFFER or PRANSWER state) Cloned PC object will inherit the local streams, local ICE candidates, and 3. local description of the PC, but not the remoteDescription. The state of the cloned PC will be OFFER. 4. Cloning will fail if the resources needed by the second localDescription 5. cannot be allocated.

  14. Questions We already support serial forking, and multiple independent PeerConnections. How important is cloning/parallel forking? ● In scope for v1? ● In scope at all?

  15. Special Offer Creation ● Get capabilities ○ SIP OPTIONS, essentially ○ Return SDP of everything supported, even if not typically used ● "Full" offer ○ Want to generate a new complete offer in an existing session ● ICE restart ○ Want to generate an offer with a new ufrag/pwd ● Can we do this with offer constraints?

  16. Rehydration ● Added section in draft to discuss this in more detail ● Basically this becomes ○ save localDescription ○ kill PeerConnection ○ create new PeerConnection ○ change ICE ufrag/pwd in saved description ○ setLocalDescription(OFFER, munged_desc) ○ ICE restarts, new remote desc received ○ setRemoteDescription(ANSWER, remote_desc) ○ call continues

  17. Next steps ● Decide on whether we want to proceed with cloning ● Start referencing draft-ietf-rtcweb-rtp-usage- 03 ○ Specify what SDP created by createOffer/Answer should look like

  18. Questions

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend