2. Video streaming limits
8 Millions simultaneous viewers
Huge traffic peak managed by Google and Akamai
QoS issues
2
3. It is time to re-decentralize the Web
4K is coming
The global traffic is growing quickly
More Mobile users
75%
50%
2013
2014
2015
P2P advantages
• Relieve the network’s bottlenecks
• Manage traffic peaks with millions of users
• Improve the user experience
3
4. WebRTC
New IETF protocol that facilitates web real time
communications :
• Peer-To-Peer Connections
• Very low Latencies
• Video, Audio and Data !
Open-Source C++ lib :
• iOS, Android
• Smart TVs
• Set Top Boxes…
In-Browser JS API standard
=
60%
Of browsers
60
NO PLUGIN !
1 000 000 000
Compatible clients
4
5. WebRTC Datachannel API
WebRTC DataChannel
Enables raw data transmissions directly between peers
•
•
•
•
Simple JavaScript API (similar to WebSockets)
Low latencies
Communications encrypted by default (DTLS)
Can work in « TCP » or « UDP » mode
BUT : doesn’t manage the “peers signaling”
(you need a signaling server)
5
6. WebRTC Datachannel API : Applications
An infinite number of applications !
•
•
•
•
•
•
Chat / private Messaging service
Multi-player video game with low latencies (FPS)
P2P file sharing
Distributed Computing
CDN for static data
BitTorrent in the browser
BananaBread
ShareFest.me
PeerServer
PeerCDN
WebTorrent
• LIVE & VOD Peer Assisted Streaming
(Video et Audio)
6
10. How does it work : 1) Initialization
Server
/ CDN
CDN initiates
the streaming
The user initiates the streaming from the CDN
10
11. How does it work : 2) Connection to the tracker
Server
/ CDN
Tracker
Connection to the
tracker
He automatically connects to the StreamRoot tracker
11
12. How does it work : 3) Signalization & Connection
Server
/ CDN
Tracker
Peer pool
Peer matching
The tracker establishes the connection with
the most useful peers
12
13. How does it work : 4) Peer-to-Peer streaming
Server
/ CDN
Tracker
Peer pool
P2P download
The user downloads most of the stream
from the other peers
13
14. StreamRoot Player JavaScript lib
Adaptive Streaming :
MPEG-DASH
Bitrate auto-switch
Playback intelligence :
Smart Buffering (P2P First, CDN if P2P is too weak)
HTML5 Fallbacks and Flash non compatible browsers
Transparent user experience
Optimized for high definition: HD and 4K
14
15. StreamRoot Tracker
Primary function : Signaling server
• lists and manages Peers
• Smart signaling : (GeoIP, ISP, available bandwidth…)
• Dynamically analyses each peer performances
More features:
• Analytics and Push Server
• Centralized service : peers and content integrity validation
• Not blocking : if the server is down, the user can still watch the video
• Scalable
15
17. Feedbacks : VOD deployment
1 video
1h30
1000 Kbps bitrate
400 simultaneous viewers
Very scattered population
45%
Of bandwidth reduction
Total
P2P
Other results :
Some « super-seeders » ( Ratio Up/Down > 3 )
The peer connection is not optimized for long videos
Very low transfer latencies between peers (<1s)
17
18. Live Streaming Demo
LIVE STREAMING DEMO :
World premiere
Workflow :
RTMP Live
MPEG-DASH Transcoding
HTML5 player
in Chrome
18