Top Banner
COMPANY CONFIDENTIAL © COPYRIGHT 2013 DIALOGIC INC. ALL RIGHTS RESERVED. Peer-to-Server Media in WebRTC Chad Hart Enterprise Connect 2014
17

Peer-to-Server Media in WebRTC (Enterprise Connect 2014)

May 31, 2015

Download

Technology

Dialogic Inc.

WebRTC is designed to be a peer-to-peer technology where media go directly from one client to another. However, WebRTC does allow Peer-to-Server flows and many uses are in fact optimized by server-side media processing technology. This short presentation describes server-side WebRTC media processing uses cases, provides real-world WebRTC deployment examples, and discusses WebRTC gateway models.
Presented by Chad Hart at Enterprise Connect
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Peer-to-Server Media in WebRTC (Enterprise Connect 2014)

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

Peer-to-Server Media in WebRTC

Chad HartEnterprise Connect 2014

Page 2: Peer-to-Server Media in WebRTC (Enterprise Connect 2014)

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

Peer-to-Peer vs. Peer-to-Server

client client

signa

ling

signalingmedia

media

Media Server

Signaling Server

Peer-to-Server

Server

client client

signalin

gsignaling

media

Peer-to-Peer

Page 3: Peer-to-Server Media in WebRTC (Enterprise Connect 2014)

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

Design Trade-offs – Cost vs. Performance vs. Location

Application Performance

Server Performance

Client Performance

Higher infrastructure

costs

Battery lifeSpeed

Quality expectations

Page 4: Peer-to-Server Media in WebRTC (Enterprise Connect 2014)

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

When does server-side WebRTC make sense?

Limited bandwidth

Expensive bandwidth

Power limitations

Regulatory requirements

Page 5: Peer-to-Server Media in WebRTC (Enterprise Connect 2014)

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

PowerMedia™ XMS

Multi-party mixing InterworkingTranscoding

Stream processing Person-to-machineRecording

WebRTC Media Processing Use Cases

Page 6: Peer-to-Server Media in WebRTC (Enterprise Connect 2014)

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

Case Study – the Airline

6

Airline

Airline

TravelAgent

Page 7: Peer-to-Server Media in WebRTC (Enterprise Connect 2014)

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

Video-enabling a Contact Center

Web App Server

Media Control

WebRTC Signaling

HTTP/REST

Media Interface

SBC Media Server

SIP

RTP

Contact Center

WebRTC Signaling

SRTP

PSTN

PSTN Customers

Agents

ACD

Kiosk Customer

SRTP

RTP

SIPHTTP

HTTP/REST

Page 8: Peer-to-Server Media in WebRTC (Enterprise Connect 2014)

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

Case Study – the Airline

8

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 variable cloud latencies

Page 9: Peer-to-Server Media in WebRTC (Enterprise Connect 2014)

192.168.1.122Kindle Fire HDX

RFC5766-TURN-Server

ec2-54-227-235-160.compute-1.amazonaws.com

SBC?

na4.edge-gacd.amazon.com

Port 45563

Port 29548RTP - G.711u

Port 59522

Port 3478RTP Type -116, RTCP

RTP Type -100, RTCP

Web Signalin

g

Kconnect-us.amazon.com

Port 443

HTTPS

Port 46011

TLSPort 443

Port 40787

Port 29549RTCP

Amazon Kindle HDX Mayday button Wireshark trace

http://webrtchacks.com/mayday-trace/

Page 10: Peer-to-Server Media in WebRTC (Enterprise Connect 2014)

192.168.1.122Kindle Fire HDX

RFC5766-TURN-Server

ec2-54-227-235-160.compute-1.amazonaws.com

SBC?

na4.edge-gacd.amazon.com

Port 45563

Port 29548RTP - G.711u

Port 59522

Port 3478RTP Type -116, RTCP

RTP Type -100, RTCP

Web Signalin

g

Kconnect-us.amazon.com

Port 443

HTTPS

Port 46011

TLSPort 443

Port 40787

Port 29549RTCP

Amazon Kindle HDX Mayday button Wireshark trace

http://webrtchacks.com/mayday-trace/

Audio

Video

Page 11: Peer-to-Server Media in WebRTC (Enterprise Connect 2014)

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

PowerMedia XMS

Virtualized Cloud-ready

AudioVideo

WebRTC

Robust Developer APIs

Standardized Production Interfaces

real-time media processing platform

Page 12: Peer-to-Server Media in WebRTC (Enterprise Connect 2014)

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

SIP Web Java Speech

Audio Video WebRTC CPA

PowerMedia™ XMS

Media Platform for Developers & IT

RESTful

Java (JSR.309)

VXML

MSML

NETANN

MRCPv2

JavascriptPow

erfu

l Med

ia A

PIs

PowerMedia XMS

Diverse Developer Audiences

Extensive Capabilities

Page 13: Peer-to-Server Media in WebRTC (Enterprise Connect 2014)

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

WebRTC Gateways

Page 14: Peer-to-Server Media in WebRTC (Enterprise Connect 2014)

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

“Legacy” Telephony Gateway 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

Page 15: Peer-to-Server Media in WebRTC (Enterprise Connect 2014)

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

WebRTC Gateways Come in Many Packages

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

Page 16: Peer-to-Server Media in WebRTC (Enterprise Connect 2014)

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

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

Microsoft SIP

Application specific APIs work best SIP is sort-of standard

Page 17: Peer-to-Server Media in WebRTC (Enterprise Connect 2014)

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

Media Requirements More Uniform than H2S

H2S

Media GW

Transcoder

NetworkWebRTC Users Phone Users

Web Signaling

SRTP-DTLS

UDP/TCP

RTP/SRTP-SDES

UDP

OPUS/VP8 G.7XX/H.264

H2S

H2SSIP

H2S

Control Interfaces