mwc barcelona webrtc meetup 2015 - scaling webrtc with media servers

19
COMPANY CONFIDENTIAL © COPYRIGHT 2015 DIALOGIC CORPORATION. ALL RIGHTS RESERVED. 1 COMPANY CONFIDENTIAL © COPYRIGHT 2015 DIALOGIC CORPORATION. ALL RIGHTS RESERVED. Barcelona Meetup 2015 Scaling WebRTC with Media Servers Vince Puglia Developer Advocate

Upload: dialogic-inc

Post on 17-Jul-2015

361 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: MWC Barcelona WebRTC Meetup 2015 - Scaling WebRTC with Media Servers

COMPANY CONFIDENTIAL © COPYRIGHT 2015 DIALOGIC CORPORATION. ALL RIGHTS RESERVED.1

COMPANY CONFIDENTIAL © COPYRIGHT 2015 DIALOGIC CORPORATION. ALL RIGHTS RESERVED.

Barcelona Meetup 2015Scaling WebRTC with

Media Servers

Vince Puglia

Developer Advocate

Page 2: MWC Barcelona WebRTC Meetup 2015 - Scaling WebRTC with Media Servers

COMPANY CONFIDENTIAL © COPYRIGHT 2015 DIALOGIC CORPORATION. ALL RIGHTS RESERVED.2

• Over 25 years connecting and adding value to Enterprise and Service Provider Networks

• US HQ (New Jersey) / 20+ Regional offices• Strong Ecosystem

• +3,000 application developers• 48 of top 50 mobile carriers • 80% of the Fortune 1000

• PowerMedia Media Server / IMS MRF / SR140• Millions of rich media mixing sessions deployed

worldwide

About Me

Vince PugliaDeveloper Advocate

[email protected]/in/vincentpuglia

http://www.slideshare.net/Dialogic@vfpuglia

Page 3: MWC Barcelona WebRTC Meetup 2015 - Scaling WebRTC with Media Servers

COMPANY CONFIDENTIAL © COPYRIGHT 2015 DIALOGIC CORPORATION. ALL RIGHTS RESERVED.3

The Scope of this Discussion

What we will discuss: Scaling media

What we will NOT discuss: Signaling User identification and

authentication Access control and security Push notifications Federation And many, many other

features your particular application might already have or need to be a real service

Page 4: MWC Barcelona WebRTC Meetup 2015 - Scaling WebRTC with Media Servers

COMPANY CONFIDENTIAL © COPYRIGHT 2015 DIALOGIC CORPORATION. ALL RIGHTS RESERVED.4

What is a media server?

Page 5: MWC Barcelona WebRTC Meetup 2015 - Scaling WebRTC with Media Servers

COMPANY CONFIDENTIAL © COPYRIGHT 2015 DIALOGIC CORPORATION. ALL RIGHTS RESERVED.5

What is scalability?

Page 6: MWC Barcelona WebRTC Meetup 2015 - Scaling WebRTC with Media Servers

COMPANY CONFIDENTIAL © COPYRIGHT 2015 DIALOGIC CORPORATION. ALL RIGHTS RESERVED.6

What is scalability?

Scalability is the ability of a real-time

communication application to reliably reliably

handle a growing amount of feature-richfeature-rich

work in a capable manner or its ability to be

elasticelastic to accommodate that growth

Page 7: MWC Barcelona WebRTC Meetup 2015 - Scaling WebRTC with Media Servers

COMPANY CONFIDENTIAL © COPYRIGHT 2015 DIALOGIC CORPORATION. ALL RIGHTS RESERVED.7

WHY SCALE?

Page 8: MWC Barcelona WebRTC Meetup 2015 - Scaling WebRTC with Media Servers

COMPANY CONFIDENTIAL © COPYRIGHT 2015 DIALOGIC CORPORATION. ALL RIGHTS RESERVED.8

WebRTC Services– P2P vs. P2S

Multi-party Conferencing

TranscodingBroadcasting

Recording

Augment reality Stream Processing

Page 9: MWC Barcelona WebRTC Meetup 2015 - Scaling WebRTC with Media Servers

COMPANY CONFIDENTIAL © COPYRIGHT 2015 DIALOGIC CORPORATION. ALL RIGHTS RESERVED.9

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

signaling signaling

mediaMedia Server

ServerServer

Peer-to-Server

ServerServer

client client

signalin

g signaling

media

Peer-to-Peer

client client

media

control

Page 10: MWC Barcelona WebRTC Meetup 2015 - Scaling WebRTC with Media Servers

COMPANY CONFIDENTIAL © COPYRIGHT 2015 DIALOGIC CORPORATION. ALL RIGHTS RESERVED.10

Multiparty WebRTC – FULL MESH

  MESH

Server Load N/AClient Load High (1:N)

Encoders 1Decorders N

Bandwidth High (N:N)Uplink N streamsDownlink N streams

Video layout Client decidesEnd-to-end latency Lowest

*Encodes cost more than decodes**Uplink bandwidth typically limited**Client processing is NOT unlimited*

Page 11: MWC Barcelona WebRTC Meetup 2015 - Scaling WebRTC with Media Servers

COMPANY CONFIDENTIAL © COPYRIGHT 2015 DIALOGIC CORPORATION. ALL RIGHTS RESERVED.11

Multiparty WebRTC - Selective Forwarding Unit (SFU)

  SFU

Server Load MediumClient Load Medium (1:N)

Encoders 1Decorders N

Bandwidth Medium (1:N)Uplink 1 streamDownlink N streams

Video layout Client decidesEnd-to-end latency Low

Multiparty WebRTC - Selective Forwarding Unit (SFU) with Simulcast

  SFU

Server Load MediumClient Load Medium (1:N)

Encoders 2Decorders N

Bandwidth Medium (1:N)Uplink 2 streamDownlink N streams

Video layout Client decidesEnd-to-end latency Low

Page 12: MWC Barcelona WebRTC Meetup 2015 - Scaling WebRTC with Media Servers

COMPANY CONFIDENTIAL © COPYRIGHT 2015 DIALOGIC CORPORATION. ALL RIGHTS RESERVED.12

Multiparty WebRTC - Multipoint Control Unit (MCU)

  MCU

Server Load HighClient Load Normal (1:1)

Encoders 1Decorders 1

Bandwidth Normal (1:1)Uplink 1 streamDownlink 1 stream

Video layout Server decides*End-to-end latency Acceptable

Page 13: MWC Barcelona WebRTC Meetup 2015 - Scaling WebRTC with Media Servers

COMPANY CONFIDENTIAL © COPYRIGHT 2015 DIALOGIC CORPORATION. ALL RIGHTS RESERVED.13

Multiparty WebRTC comparison

Clie

nt-s

ide

stre

ams

(upl

ink

+ do

wnl

ink)

  MESH SFU MCU

Server Load N/A Medium HighClient Load High (1:N) Medium (1:N) Normal (1:1)Bandwidth High (N:N) Medium (1:N) Normal (1:1)

Page 14: MWC Barcelona WebRTC Meetup 2015 - Scaling WebRTC with Media Servers

COMPANY CONFIDENTIAL © COPYRIGHT 2015 DIALOGIC CORPORATION. ALL RIGHTS RESERVED.14

Scaling Reliably – very subjective

Image source: webrtcHacks - https://webrtchacks.com/stun-helps-webrtc-traverse-nats/

Page 15: MWC Barcelona WebRTC Meetup 2015 - Scaling WebRTC with Media Servers

COMPANY CONFIDENTIAL © COPYRIGHT 2015 DIALOGIC CORPORATION. ALL RIGHTS RESERVED.15

MRBMRB

App Servers

Scaling Reliably – MRB

Media Resource Broker (MRB) Standards compliant – RFC 6917

& 3GPP TS 23.218 100% software based Media server failure detection Stateful call preservation

“Moves” established sessions Local and geographic

redundancy

Page 16: MWC Barcelona WebRTC Meetup 2015 - Scaling WebRTC with Media Servers

COMPANY CONFIDENTIAL © COPYRIGHT 2015 DIALOGIC CORPORATION. ALL RIGHTS RESERVED.16

Cloud IaaS / NFVI

Orc

hest

ratio

n

Elastic Scaling – horizontally

App Servers

A little help?!?A little help?!?

Okay!Okay!

I’m here for ya

I’m here for ya

Thanks All set!

Thanks All set!

MRB

MS-1 MS-2

ASAS

Page 17: MWC Barcelona WebRTC Meetup 2015 - Scaling WebRTC with Media Servers

COMPANY CONFIDENTIAL © COPYRIGHT 2015 DIALOGIC CORPORATION. ALL RIGHTS RESERVED.17

2-minute Scaling WebRTC w/ Media Server Review

Media Resource Broker

Media server

Application Server / Business Logic

ASASASASASASASAS ASASASAS

Feature-Rich Reliable Elastic

Orc

hest

ratio

n

Page 18: MWC Barcelona WebRTC Meetup 2015 - Scaling WebRTC with Media Servers

COMPANY CONFIDENTIAL © COPYRIGHT 2015 DIALOGIC CORPORATION. ALL RIGHTS RESERVED.18

PowerMedia XMSSoftware-based real-time media processing platform

Page 19: MWC Barcelona WebRTC Meetup 2015 - Scaling WebRTC with Media Servers

COMPANY CONFIDENTIAL © COPYRIGHT 2015 DIALOGIC CORPORATION. ALL RIGHTS RESERVED.19

Multi-party video summary comparison

http://networkfuel.dialogic.com/webrtc-whitepaper