20
COMPANY CONFIDENTIAL © COPYRIGHT 2013 DIALOGIC INC. ALL RIGHTS RESERVED. WebRTC Best Practices Chad Hart

WebRTC Best Practices - WebRTC Paris 2013 - Chad Hart - Dialogic

Embed Size (px)

Citation preview

COMPANY CONFIDENTIAL © COPYRIGHT 2013 DIALOGIC INC. ALL RIGHTS RESERVED.

WebRTC Best Practices

Chad Hart

COMPANY CONFIDENTIAL © COPYRIGHT 2013 DIALOGIC INC. ALL RIGHTS RESERVED. 2

PowerMedia™ XMS

Multi-party mixing InterworkingTranscoding

Stream processing Person-to-machineRecording

Current & Emerging WebRTC Media Processing Needs

COMPANY CONFIDENTIAL © COPYRIGHT 2013 DIALOGIC INC. ALL RIGHTS RESERVED. 3

PowerMedia™ XMS

Back-end Web Developers

Telephony Developers

Enterprise Developers

Standard Media ServerInterfaces

RESTful APIs

API’s and Interfaces for Media Developers

COMPANY CONFIDENTIAL © COPYRIGHT 2013 DIALOGIC INC. ALL RIGHTS RESERVED. 4

We help with traditional media processing too

Mixing/MCURecording/Playback

Call Progress AnalysisText-to-Speech

Automatic Speech RecognitionWhisper mode

High Availability…

COMPANY CONFIDENTIAL © COPYRIGHT 2013 DIALOGIC INC. ALL RIGHTS RESERVED. 5

Agenda

Interoperability & InterworkingGatewaysReal WebRTC networksTough choicesCase study - WebRTC solves real problems todayWhat you should really be working on

COMPANY CONFIDENTIAL © COPYRIGHT 2013 DIALOGIC INC. ALL RIGHTS RESERVED. 6

Interoperability – Browser to Browser

Instigators

• Version differences• Vendor implementation timelines• Homebuilt implementations• New browser introductions

(hopefully!)

API’s• Need: Medium• Difficulty: Low to High• Resolution: JS Shim, use Chrome

Media• Need: Low• Difficulty: High• Resolution: use Chrome

COMPANY CONFIDENTIAL © COPYRIGHT 2013 DIALOGIC INC. ALL RIGHTS RESERVED. 7

Interoperability – Browser to Phone

Instigators• SIP complexity• Lack of standards to do this (of

course they are coming)

Signaling• Need: Low to High• Difficulty: Medium to High• Resolution: H2S Gateway, Telco

SHIM APIs

Media• Need: Low to High• Difficulty: Low to High• Resolution: Media GW,

Transcoding

COMPANY CONFIDENTIAL © COPYRIGHT 2013 DIALOGIC INC. ALL RIGHTS RESERVED. 8

“Legacy” Telephony Interworking Functions

HTTP-to-SIP(H2S)

Media GW

Transcoder

NetworkWebRTC Users Phone User

User-defined Signaling

WS/COMET/BOSH

SRTP-DTLS

UDP/TCP

SIP

RTP/SRTP-SDES

UDP

OPUS/VP8 G.7XX/H.264

COMPANY CONFIDENTIAL © COPYRIGHT 2013 DIALOGIC INC. ALL RIGHTS RESERVED. 9

Many Packaging Options

HTTP-to-SIP(H2S)

Media GW

Transcoder

HTTP-to-SIP(H2S)

Media GW

Transcoder

HTTP-to-SIP(H2S)

Media GW

Transcoder

HTTP-to-SIP(H2S)

Media GW

Transcoder

COMPANY CONFIDENTIAL © COPYRIGHT 2013 DIALOGIC INC. ALL RIGHTS RESERVED. 10

Will One H2S Gateway be Sufficient?

Retail Click-to-Call

Enterprise Click-to-Call

Residential Web Phone

RCS Web Client

Developer API exposure

Remote Agent

Remote Worker

HTTP-to-SIP(H2S)

IMS/RCS

RFC3261 SIP

Enterprise SIP

Application specific APIs work best SIP is not really that standard

COMPANY CONFIDENTIAL © COPYRIGHT 2013 DIALOGIC INC. ALL RIGHTS RESERVED. 11

HTTP-to-SIP (H2S) Requirements are not Uniform

H2S

Media GW

Transcoder

NetworkWebRTC Users Phone User

Web Signaling

SRTP-DTLS

UDP/TCP

RTP/SRTP-SDES

UDP

OPUS/VP8 G.7XX/H.264

H2S

H2SSIP

H2S

Control Interfaces

COMPANY CONFIDENTIAL © COPYRIGHT 2013 DIALOGIC INC. ALL RIGHTS RESERVED. 12

Scope All Traffic APIs VoIP Traffic

Identifier Address:Port API Key Phone #, URI

Controls Bandwidth, Address, Ports

API Calls VoIP Messages, Bandwidth, Ports

Topology Hiding

No N/A Yes

Security Functions

API Management

Session Border ControlFirewalls

COMPANY CONFIDENTIAL © COPYRIGHT 2013 DIALOGIC INC. ALL RIGHTS RESERVED. 13

Basic, Telco-Centric Model

Web server

SBC

SIP/IMS Network

SIP

Javascript App

H2S

Signaling

WebMG

SRTP

RTP

SIP

RTP

Firewall

COMPANY CONFIDENTIAL © COPYRIGHT 2013 DIALOGIC INC. ALL RIGHTS RESERVED. 14

Mature, Web-Centric Model

Web server

SIP/IMS Network

SIP

JS App

Signaling

WebMG

SRTP RTP

Firewall

API M

anag

er

API Calls

H2S Server

Identity Server

App Server

App Server

WSS server

STUN/ TURN

Internal REST APIs

COMPANY CONFIDENTIAL © COPYRIGHT 2013 DIALOGIC INC. ALL RIGHTS RESERVED. 15

Design Trade-offs

Application Performance

Server Performance

Client Performance

COMPANY CONFIDENTIAL © COPYRIGHT 2013 DIALOGIC INC. ALL RIGHTS RESERVED. 16

When does media control matter?

When there is limited bandwidth

When the user is paying per GB

When battery usage is a factor

COMPANY CONFIDENTIAL © COPYRIGHT 2013 DIALOGIC INC. ALL RIGHTS RESERVED. 17

Case Study – the Airline

17

TravelAgent

TravelAgent

TravelAgent

COMPANY CONFIDENTIAL © COPYRIGHT 2013 DIALOGIC INC. ALL RIGHTS RESERVED. 18

Case Study – the Airline

18

TravelAgent

TravelAgent

TravelAgent

Lessons Learned:• Applications are viable today when you have

end-to-end control• Leveraging existing infrastructure shortens

time-to-market• Assume you will have poor connectivity• Be careful with the cloud

COMPANY CONFIDENTIAL © COPYRIGHT 2013 DIALOGIC INC. ALL RIGHTS RESERVED. 19

What Smarter People Are Doing

COMPANY CONFIDENTIAL © COPYRIGHT 2013 DIALOGIC INC. ALL RIGHTS RESERVED. 20

Contact me

Chad Hartlinkedin.com/in/[email protected]@chadwallacehart

webrtcHacks.com@webrtcHacks