SlideShare uma empresa Scribd logo
1 de 25
Baixar para ler offline
COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 
WebRTCMedia in the Cloud 
Chad Hart 
IIT RTC Conference 2014
COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 
2 
Why do you need a media server? 
Multi-party conferencing 
Interworking 
Transcoding 
Stream processing 
Person-to-machine 
Recording
COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 
3 
What do you care more about?
COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 
4 
Bandwidth is not always ubiquitous or free 
Client-side 
Server-side
COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 
5 
CPU & processing power is expensive 
Client view 
Provider View
COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 
6 
Image source: http://thewrestlinglifeupdate.tumblr.com/
COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 
7 
Image source: http://thewrestlinglifeupdate.tumblr.com/ 
Multi-PARTY! Video Conferencing
COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 
8 
Easy & cheap approach to multi-party: Mesh 
8 
Full Mesh 
Works for a few parties 
No server cost 
Lowest latency
COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 
9 
Mesh does not scale for many video conferees 
9 
Full Mesh 
Clients get overloaded 
Encode costs more than decode 
Limited uplink bandwidth 
Inconsistent performance across participants
COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 
10 
Traditional Telephony Approach: MCU 
10 
Multipoint Control Unit (MCU) 
Good at manipulating all media 
Transcoding 
Transizing 
Transrating 
Interworking 
Server-side CPU intensive 
Client can request different conference mixes 
Usually client friendly 
Downsizing & mixing can reduce bandwidth 
Fewer client streams to process 
MCU
COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 
11 
Video UX: Traditional method –mixed screen 
MCU 
1 
2 
3 
4 
Mixed stream 
1 
2 
3 
4 
3G Device
COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 
12 
Video UX: Traditional method –active talker 
MCU 
1 
2 
3 
4 
Mixed stream 
1 
2 
3 
3G Device 
Active Talker 
Media Server Chooses Layout
COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 
13 
Client app 
App Server 
Modern UX with MCU mixing, HTML5 & JavaScript 
Browser 
MCU 
1 
2 
3 
4 
HTML5 Canvas 
Javascript 
Mixed stream 
Layout 
"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 14 
App Server Client app 
2 
Modern UX with MCU mixing, HTML5 & JavaScript 
Browser 
MCU 
1 2 
3 4 
HTML5 Canvas 
Javascript 
Layout Mixed stream 
"Lorem ipsum dolor sit 
amet, consectetur 
adipisicing elit, sed do 
eiusmod tempor 
incididunt ut labore et 
dolore magna aliqua. Ut 
enim ad minim veniam, 
quis nostrud 
exercitation ullamco 
laboris nisi ut aliquip ex 
ea commodo 
consequat. Duis aute 
irure dolor in 
reprehenderit in 
voluptate velit esse 
cillum dolore eu fugiat 
nulla pariatur. 
Excepteur sint occaecat 
cupidatat non proident, 
sunt in culpa qui officia 
deserunt mollit anim id 
est laborum."
COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 15 
App Server Client app 
2 
Modern UX with MCU mixing, HTML5 & JavaScript 
Browser 
MCU 
1 2 
3 4 
HTML5 Canvas 
Javascript 
Mixed stream 
Application-defined UX 
Layout 
"Lorem ipsum dolor sit 
amet, consectetur 
adipisicing elit, sed do 
eiusmod tempor 
incididunt ut labore et 
dolore magna aliqua. Ut 
enim ad minim veniam, 
quis nostrud 
exercitation ullamco 
laboris nisi ut aliquip ex 
ea commodo 
consequat. Duis aute 
irure dolor in 
reprehenderit in 
voluptate velit esse 
cillum dolore eu fugiat 
nulla pariatur. 
Excepteur sint occaecat 
cupidatat non proident, 
sunt in culpa qui officia 
deserunt mollit anim id 
est laborum." 
Benefits: 
Application defined UX 
User specific & customizable layout 
Lower client BW & CPU vs. mesh
COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 
16 
Newer approach: SFU 
16 
SFU 
Selective Forwarding Unit (SFU) routing 
Clients send one & receive many 
Client can instruct SFU which streams to send 
High throughput 
Can be lots of downlink bandwidth 
Low latency
COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 
17 
Newer approach: SFU 
17 
SFU 
Selective Forwarding Unit (SFU) routing 
Clients send one & receive many 
Client can instruct SFU which streams to send 
High throughput 
Can be lots of downlink bandwidth 
Low latency
COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 
18 
New WebRTC approach: Simulcast 
18 
SFU 
High bitrate 
Low bitrate 
Selective Forwarding Unit (SFU) with Simulcast 
Clients send multiple streams to SFU 
one high-bit rate 
one or more lower-bit 
Client directs SFU which streams to receive 
Reduces bandwidth vs. SFU 
Simulcast in WebRTCcoming
COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 
19 
Future Approach with VP9 –SVC? 
19 
SFU 
Medium 
High 
Low 
Layered bitrates: 
Selective Forwarding Unit (SFU) with SVC 
Clients send layered stream to SFU 
Varying bitrates –time, size, quality 
SFU directs who gets what 
Coming to WebRTC eventually
COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 
20 
Typical media server network model 
Load Balancer 
Load Balancer 
Client 
Client 
Client 
Client 
Client 
Client 
App Server 
App Server 
App Server 
Media Server 
Media Server 
Media Server
COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 
21 
Pseudo Call-flow with a media server 
AS 
LB 
MS1 
MS2 
Client 
Call signaling 
Media control 
MS1 status 
MS2 status 
Media control 
Media
COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 
22 
Pseudo Call-flow –traditional fail-over with RE-INVITE 
AS 
LB 
MS1 
MS2 
Client 
Call signaling –REINVITE with new addresses 
Media control 
MS1 status 
MS2 status 
Media control + call states 
Media
COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 
23 
Pseudo Call-flow –fail-over the cloud way 
AS 
LB 
MS1 
MS2 
Client 
Media control 
MS1 status 
MS2 status 
New container 
Media 
Memcache & Virtual IP Address
COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 
24 
When you are serious about scale 
Declarative 
Concurrency 
Soft real-time 
Robustness 
Distribution 
Hot code loading 
External interfaces 
Portability
COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 
25 
ICE, STUN, and TURN save the day 
Use of Public IP’s mitigates need for TURN servers 
Open source TURN servers do reasonably well 
Running the TURN server co- resident with the media server works well when you need it 
Image source: webrtcHacks-http://webrtchacks.com/an-intro-to-webrtcs- natfirewall-problem/

Mais conteúdo relacionado

Mais procurados

Web rtc infrastructure the hard parts v4
Web rtc infrastructure the hard parts v4Web rtc infrastructure the hard parts v4
Web rtc infrastructure the hard parts v4
Dialogic Inc.
 

Mais procurados (20)

WebRTC Infrastructure the Hard Parts: Media
WebRTC Infrastructure the Hard Parts: MediaWebRTC Infrastructure the Hard Parts: Media
WebRTC Infrastructure the Hard Parts: Media
 
WebRTC Media Challenges
WebRTC Media Challenges WebRTC Media Challenges
WebRTC Media Challenges
 
MediaInteractive - Born for the New World
MediaInteractive - Born for the New WorldMediaInteractive - Born for the New World
MediaInteractive - Born for the New World
 
Video Codecs and the Future by Vince Puglia
Video Codecs and the Future by Vince PugliaVideo Codecs and the Future by Vince Puglia
Video Codecs and the Future by Vince Puglia
 
Web rtc infrastructure the hard parts v4
Web rtc infrastructure the hard parts v4Web rtc infrastructure the hard parts v4
Web rtc infrastructure the hard parts v4
 
Integrated Media Gateway and the Transition to IP
Integrated Media Gateway and the Transition to IPIntegrated Media Gateway and the Transition to IP
Integrated Media Gateway and the Transition to IP
 
Moving Multimedia Applications to the Cloud
Moving Multimedia Applications to the CloudMoving Multimedia Applications to the Cloud
Moving Multimedia Applications to the Cloud
 
Monetizing the 4G Investment (Mobile Data, and VoLTE Roaming and Interworking)
Monetizing the 4G Investment (Mobile Data, and VoLTE Roaming and Interworking)Monetizing the 4G Investment (Mobile Data, and VoLTE Roaming and Interworking)
Monetizing the 4G Investment (Mobile Data, and VoLTE Roaming and Interworking)
 
To Build or Not to Build Your WebRTC Infrastructure
To Build or Not to Build Your WebRTC InfrastructureTo Build or Not to Build Your WebRTC Infrastructure
To Build or Not to Build Your WebRTC Infrastructure
 
MWC Barcelona WebRTC Meetup 2015 - Scaling WebRTC with Media Servers
MWC Barcelona WebRTC Meetup 2015 - Scaling WebRTC with Media ServersMWC Barcelona WebRTC Meetup 2015 - Scaling WebRTC with Media Servers
MWC Barcelona WebRTC Meetup 2015 - Scaling WebRTC with Media Servers
 
Achieving real time voice and video virtualized network functionality in nfv
Achieving real time voice and video virtualized network functionality in nfvAchieving real time voice and video virtualized network functionality in nfv
Achieving real time voice and video virtualized network functionality in nfv
 
How IBM and Dialogic Are Making Conferencing Smarter with AI
How IBM and Dialogic Are Making Conferencing Smarter with AIHow IBM and Dialogic Are Making Conferencing Smarter with AI
How IBM and Dialogic Are Making Conferencing Smarter with AI
 
NAGRA_WhitePaper_OPTV5_Low
NAGRA_WhitePaper_OPTV5_LowNAGRA_WhitePaper_OPTV5_Low
NAGRA_WhitePaper_OPTV5_Low
 
ARM Mali "Egil" technical preview
ARM Mali "Egil" technical previewARM Mali "Egil" technical preview
ARM Mali "Egil" technical preview
 
Gadgeon profile
Gadgeon profileGadgeon profile
Gadgeon profile
 
WebRTC presentation
WebRTC presentationWebRTC presentation
WebRTC presentation
 
Nagra OpenTV 5 solution
Nagra OpenTV 5 solutionNagra OpenTV 5 solution
Nagra OpenTV 5 solution
 
WebRTC: A front-end perspective
WebRTC: A front-end perspectiveWebRTC: A front-end perspective
WebRTC: A front-end perspective
 
WebRTC for Telco: Informa's WebRTC Global Summit Preconference
WebRTC for Telco: Informa's WebRTC Global Summit PreconferenceWebRTC for Telco: Informa's WebRTC Global Summit Preconference
WebRTC for Telco: Informa's WebRTC Global Summit Preconference
 
The Fundamentals of Internet of Everything Connectivity
The Fundamentals of Internet of Everything ConnectivityThe Fundamentals of Internet of Everything Connectivity
The Fundamentals of Internet of Everything Connectivity
 

Semelhante a Putting WebRTC Media in the Cloud

WebRTC Expo V keynote by Jim Machi
WebRTC Expo V keynote by Jim MachiWebRTC Expo V keynote by Jim Machi
WebRTC Expo V keynote by Jim Machi
Robin Carley
 
Web rtc expo v keynote final3
Web rtc expo v keynote final3Web rtc expo v keynote final3
Web rtc expo v keynote final3
Robin Carley
 

Semelhante a Putting WebRTC Media in the Cloud (20)

WebRTC Challenges in Contact Centers
WebRTC Challenges in Contact CentersWebRTC Challenges in Contact Centers
WebRTC Challenges in Contact Centers
 
Unlocking the Power of IoT: A comprehensive approach to real-time insights
Unlocking the Power of IoT: A comprehensive approach to real-time insightsUnlocking the Power of IoT: A comprehensive approach to real-time insights
Unlocking the Power of IoT: A comprehensive approach to real-time insights
 
CA - Entrega Continua
CA - Entrega ContinuaCA - Entrega Continua
CA - Entrega Continua
 
Application patterns
Application patternsApplication patterns
Application patterns
 
Using OpenContrail with Kubernetes
Using OpenContrail with KubernetesUsing OpenContrail with Kubernetes
Using OpenContrail with Kubernetes
 
Case Study: Datalink—Manage IT monitoring the MSP way
Case Study: Datalink—Manage IT monitoring the MSP wayCase Study: Datalink—Manage IT monitoring the MSP way
Case Study: Datalink—Manage IT monitoring the MSP way
 
WebRTC Expo V keynote by Jim Machi
WebRTC Expo V keynote by Jim MachiWebRTC Expo V keynote by Jim Machi
WebRTC Expo V keynote by Jim Machi
 
Web rtc expo v keynote final3
Web rtc expo v keynote final3Web rtc expo v keynote final3
Web rtc expo v keynote final3
 
WebRTC Expo V keynote by Jim Machi
WebRTC Expo V keynote by Jim MachiWebRTC Expo V keynote by Jim Machi
WebRTC Expo V keynote by Jim Machi
 
IMS WebRTC Workshop Oracle
IMS WebRTC Workshop OracleIMS WebRTC Workshop Oracle
IMS WebRTC Workshop Oracle
 
Getting Started With ThousandEyes Proof of Concepts: End User Digital Experience
Getting Started With ThousandEyes Proof of Concepts: End User Digital ExperienceGetting Started With ThousandEyes Proof of Concepts: End User Digital Experience
Getting Started With ThousandEyes Proof of Concepts: End User Digital Experience
 
Citi Tech Talk: Messaging Modernization
Citi Tech Talk: Messaging ModernizationCiti Tech Talk: Messaging Modernization
Citi Tech Talk: Messaging Modernization
 
Pivotal cf for_devops_mkim_20141209
Pivotal cf for_devops_mkim_20141209Pivotal cf for_devops_mkim_20141209
Pivotal cf for_devops_mkim_20141209
 
IBM MQ Light @ Capitalware's MQTC 2.0.1.4 conference
IBM MQ Light @ Capitalware's MQTC 2.0.1.4 conferenceIBM MQ Light @ Capitalware's MQTC 2.0.1.4 conference
IBM MQ Light @ Capitalware's MQTC 2.0.1.4 conference
 
Value Added Services and WebRTC
Value Added Services and WebRTCValue Added Services and WebRTC
Value Added Services and WebRTC
 
Unified Access from Application Chaos to Application Fluency
Unified Access from Application Chaos to Application FluencyUnified Access from Application Chaos to Application Fluency
Unified Access from Application Chaos to Application Fluency
 
Technology Primer: Building Applications the New-Fashioned Way
Technology Primer: Building Applications the New-Fashioned WayTechnology Primer: Building Applications the New-Fashioned Way
Technology Primer: Building Applications the New-Fashioned Way
 
Supercharging Optimizely Performance by Moving Decisions to the Edge
Supercharging Optimizely Performance by Moving Decisions to the EdgeSupercharging Optimizely Performance by Moving Decisions to the Edge
Supercharging Optimizely Performance by Moving Decisions to the Edge
 
Confluent Partner Tech Talk with SVA
Confluent Partner Tech Talk with SVAConfluent Partner Tech Talk with SVA
Confluent Partner Tech Talk with SVA
 
Enabling the Multi-Device Universe
Enabling the Multi-Device UniverseEnabling the Multi-Device Universe
Enabling the Multi-Device Universe
 

Mais de Dialogic Inc.

PowerMedia XMS at Mobile World Congress 2014
PowerMedia XMS at Mobile World Congress 2014PowerMedia XMS at Mobile World Congress 2014
PowerMedia XMS at Mobile World Congress 2014
Dialogic Inc.
 

Mais de Dialogic Inc. (6)

Helping Service Providers to Empower, Engage, Excite
Helping Service Providers to Empower, Engage, ExciteHelping Service Providers to Empower, Engage, Excite
Helping Service Providers to Empower, Engage, Excite
 
Real-time Communications Catching the Next Wave
Real-time Communications Catching the Next WaveReal-time Communications Catching the Next Wave
Real-time Communications Catching the Next Wave
 
Get Ready for the Next Generation Diameter Signaling Controller (DSC)
Get Ready for the Next Generation Diameter Signaling Controller (DSC)Get Ready for the Next Generation Diameter Signaling Controller (DSC)
Get Ready for the Next Generation Diameter Signaling Controller (DSC)
 
LTE Asia 2014 - Remain Relevant - The Next Generation Diameter Signaling Cont...
LTE Asia 2014 - Remain Relevant - The Next Generation Diameter Signaling Cont...LTE Asia 2014 - Remain Relevant - The Next Generation Diameter Signaling Cont...
LTE Asia 2014 - Remain Relevant - The Next Generation Diameter Signaling Cont...
 
LTE World Summit - The Next Generation of Diameter Signaling Controllers
LTE World Summit - The Next Generation of Diameter Signaling ControllersLTE World Summit - The Next Generation of Diameter Signaling Controllers
LTE World Summit - The Next Generation of Diameter Signaling Controllers
 
PowerMedia XMS at Mobile World Congress 2014
PowerMedia XMS at Mobile World Congress 2014PowerMedia XMS at Mobile World Congress 2014
PowerMedia XMS at Mobile World Congress 2014
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Último (20)

Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 

Putting WebRTC Media in the Cloud

  • 1. COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. WebRTCMedia in the Cloud Chad Hart IIT RTC Conference 2014
  • 2. COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 2 Why do you need a media server? Multi-party conferencing Interworking Transcoding Stream processing Person-to-machine Recording
  • 3. COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 3 What do you care more about?
  • 4. COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 4 Bandwidth is not always ubiquitous or free Client-side Server-side
  • 5. COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 5 CPU & processing power is expensive Client view Provider View
  • 6. COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 6 Image source: http://thewrestlinglifeupdate.tumblr.com/
  • 7. COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 7 Image source: http://thewrestlinglifeupdate.tumblr.com/ Multi-PARTY! Video Conferencing
  • 8. COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 8 Easy & cheap approach to multi-party: Mesh 8 Full Mesh Works for a few parties No server cost Lowest latency
  • 9. COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 9 Mesh does not scale for many video conferees 9 Full Mesh Clients get overloaded Encode costs more than decode Limited uplink bandwidth Inconsistent performance across participants
  • 10. COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 10 Traditional Telephony Approach: MCU 10 Multipoint Control Unit (MCU) Good at manipulating all media Transcoding Transizing Transrating Interworking Server-side CPU intensive Client can request different conference mixes Usually client friendly Downsizing & mixing can reduce bandwidth Fewer client streams to process MCU
  • 11. COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 11 Video UX: Traditional method –mixed screen MCU 1 2 3 4 Mixed stream 1 2 3 4 3G Device
  • 12. COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 12 Video UX: Traditional method –active talker MCU 1 2 3 4 Mixed stream 1 2 3 3G Device Active Talker Media Server Chooses Layout
  • 13. COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 13 Client app App Server Modern UX with MCU mixing, HTML5 & JavaScript Browser MCU 1 2 3 4 HTML5 Canvas Javascript Mixed stream Layout "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
  • 14. COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 14 App Server Client app 2 Modern UX with MCU mixing, HTML5 & JavaScript Browser MCU 1 2 3 4 HTML5 Canvas Javascript Layout Mixed stream "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
  • 15. COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 15 App Server Client app 2 Modern UX with MCU mixing, HTML5 & JavaScript Browser MCU 1 2 3 4 HTML5 Canvas Javascript Mixed stream Application-defined UX Layout "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." Benefits: Application defined UX User specific & customizable layout Lower client BW & CPU vs. mesh
  • 16. COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 16 Newer approach: SFU 16 SFU Selective Forwarding Unit (SFU) routing Clients send one & receive many Client can instruct SFU which streams to send High throughput Can be lots of downlink bandwidth Low latency
  • 17. COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 17 Newer approach: SFU 17 SFU Selective Forwarding Unit (SFU) routing Clients send one & receive many Client can instruct SFU which streams to send High throughput Can be lots of downlink bandwidth Low latency
  • 18. COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 18 New WebRTC approach: Simulcast 18 SFU High bitrate Low bitrate Selective Forwarding Unit (SFU) with Simulcast Clients send multiple streams to SFU one high-bit rate one or more lower-bit Client directs SFU which streams to receive Reduces bandwidth vs. SFU Simulcast in WebRTCcoming
  • 19. COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 19 Future Approach with VP9 –SVC? 19 SFU Medium High Low Layered bitrates: Selective Forwarding Unit (SFU) with SVC Clients send layered stream to SFU Varying bitrates –time, size, quality SFU directs who gets what Coming to WebRTC eventually
  • 20. COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 20 Typical media server network model Load Balancer Load Balancer Client Client Client Client Client Client App Server App Server App Server Media Server Media Server Media Server
  • 21. COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 21 Pseudo Call-flow with a media server AS LB MS1 MS2 Client Call signaling Media control MS1 status MS2 status Media control Media
  • 22. COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 22 Pseudo Call-flow –traditional fail-over with RE-INVITE AS LB MS1 MS2 Client Call signaling –REINVITE with new addresses Media control MS1 status MS2 status Media control + call states Media
  • 23. COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 23 Pseudo Call-flow –fail-over the cloud way AS LB MS1 MS2 Client Media control MS1 status MS2 status New container Media Memcache & Virtual IP Address
  • 24. COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 24 When you are serious about scale Declarative Concurrency Soft real-time Robustness Distribution Hot code loading External interfaces Portability
  • 25. COMPANY CONFIDENTIAL © COPYRIGHT 2014 DIALOGIC INC. ALL RIGHTS RESERVED. 25 ICE, STUN, and TURN save the day Use of Public IP’s mitigates need for TURN servers Open source TURN servers do reasonably well Running the TURN server co- resident with the media server works well when you need it Image source: webrtcHacks-http://webrtchacks.com/an-intro-to-webrtcs- natfirewall-problem/

Notas do Editor

  1. In most WebRTC design is additional bi-directional stream is added for each party. Each end-point must fully encode and decode the stream for each party.
  2. The better approach is to centralize and mix all the media in an MCU and send a single or subset of streams to the each device.
  3. The better approach is to centralize and mix all the media in an MCU and send a single or subset of streams to the each device.
  4. The better approach is to centralize and mix all the media in an MCU and send a single or subset of streams to the each device.
  5. The better approach is to centralize and mix all the media in an MCU and send a single or subset of streams to the each device.
  6. Some server cost Reduced bandwidth Reduced client processing Requires specialized clients
  7. Fine for a few calls Run into CPS problems with many