SlideShare a Scribd company logo
What to do now you have a 
hole in the ice 
Tim Panton - Protocol Droid 
Westhawk Ltd
https://www.flickr.com/photos/dougbrown47/
Make a secure P2P media 
+ data connection? 
Use existing protocols: 
SRTP x2 - encrypted RTP for voice + video 
DTLS - secure set up 
SCTP - datagram protocol 
RTCP - channel stats and management
Multiplex all the things 
+----------------+ 
| 127 < B < 192 -+--> forward to RTP 
| | 
packet --> | 19 < B < 64 -+--> forward to DTLS 
| | 
| B < 2 -+--> forward to ICE 
+----------------+
Huh ? Why is ICE there ? 
Continuing consent to send: 
We are sending ~1mbit/s of video 
Imagine the user closes the receiving tab 
Signalling is gone 
ICE re-tests connection every 30s 
Can re-establish a session over different path
We know all about RTP 
Maybe not: 
SRTP - but uses DTLS to exchange the keys. 
Possibly multiple multiplexed streams 
RTCP too. 
Optional Headers (voice level etc)
DTLS - what is that? 
TLS (aka SSL) ’s UDP cousin: 
Uses Public key crypto to exchange session key 
Session key extracted and used for SRTP key 
Also carries datachannel messages 
Does not carry media
DTLS - not quite like SSL 
DTLS in webRTC has different requirements: 
Does not use PKI - no certs to buy 
Has heartbeat 
DTLS is client server 
Peers have to agree who is the client (rant)
Was all that worth it? 
Probably: 
Secure - selectable crypto suites 
No passwords 
No central authority 
Distributed system - but existing SRTP code used
You forgot STCP 
Oops: 
Originally designed to run alongside TCP 
webRTC uses it to provide Datachannel transport 
Run over DTLS (over UDP) 
Useful semantics - more flexible that TCP 
More widely used than you think (telcos)
A new layer? 
Perhaps: 
We have a modern set of secure peer to peer network 
protocols supported by > 1bn endpoints and counting. 
It runs well over the existing internet infrastructure 
Lets use it to build fun stuff.

More Related Content

PDF
Introduction to tcpdump
PPTX
Tcpdump
PDF
CNIT 50: 6. Command Line Packet Analysis Tools
PDF
Tcpdump
PPTX
Beyond TCP: The evolution of Internet transport protocols
PPTX
TCPLS presentation @ietf 109
PPTX
Part 6 : Internet applications
PPTX
Netcat - A Swiss Army Tool
Introduction to tcpdump
Tcpdump
CNIT 50: 6. Command Line Packet Analysis Tools
Tcpdump
Beyond TCP: The evolution of Internet transport protocols
TCPLS presentation @ietf 109
Part 6 : Internet applications
Netcat - A Swiss Army Tool

What's hot (20)

PPTX
PDF
Asfws2014 tproxy
PPTX
Protocols
PPTX
NetCat - the suiss army knife of network
PPT
Tomasz P from Poland
PDF
Netcat 101 by-mahesh-beema
PDF
Ultra fast DDoS Detection with FastNetMon at Coloclue (AS 8283)
PPTX
#KPC #CST #Protocols
PDF
Header compression and multiplexing in LISP
PDF
DPDK Support for New HW Offloads
PDF
TC Flower Offload
PDF
Colt sp sec2014_appsec-nf-vfinal
PPTX
Part 9 : Congestion control and IPv6
PPTX
Part 12 : Local Area Networks
PDF
LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecases
PPTX
Part 7 : HTTP/2, UDP and TCP
PPT
Tuning 17 march
PDF
PPTX
Dhcp Server Linux Server
Asfws2014 tproxy
Protocols
NetCat - the suiss army knife of network
Tomasz P from Poland
Netcat 101 by-mahesh-beema
Ultra fast DDoS Detection with FastNetMon at Coloclue (AS 8283)
#KPC #CST #Protocols
Header compression and multiplexing in LISP
DPDK Support for New HW Offloads
TC Flower Offload
Colt sp sec2014_appsec-nf-vfinal
Part 9 : Congestion control and IPv6
Part 12 : Local Area Networks
LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecases
Part 7 : HTTP/2, UDP and TCP
Tuning 17 march
Dhcp Server Linux Server
Ad

Similar to Ice with that sir? Or what webRTC does once it has a UDP connection (20)

PPTX
16.) layer 3 (basic tcp ip routing)
PDF
Demuxed 2020
PDF
Webrtc overview
PPTX
Abandon Decades-Old TCPdump for Modern Troubleshooting
PDF
class12_Networking2
PPTX
Introduction to VOIP
ODP
sshuttle VPN (2011-04)
PPTX
Reconsider TCPdump for Modern Troubleshooting
PPTX
Internet Internet Protocols.pptx( technology)
PPT
Jingle: Cutting Edge VoIP
PPT
Os Tucker
PPTX
Advancing IoT Communication Security with TLS and DTLS v1.3
ODP
Intro tcpip-part1
PPT
Training Day Slides
PPT
TCP/IP Basics
PDF
UAV Data Link Design for Dependable Real-Time Communications
PPTX
F5 tcpdump
DOCX
Assignment on data network
DOCX
Assignment on data network
PDF
TCP and UDP.pdf55555555555555555555555555555
16.) layer 3 (basic tcp ip routing)
Demuxed 2020
Webrtc overview
Abandon Decades-Old TCPdump for Modern Troubleshooting
class12_Networking2
Introduction to VOIP
sshuttle VPN (2011-04)
Reconsider TCPdump for Modern Troubleshooting
Internet Internet Protocols.pptx( technology)
Jingle: Cutting Edge VoIP
Os Tucker
Advancing IoT Communication Security with TLS and DTLS v1.3
Intro tcpip-part1
Training Day Slides
TCP/IP Basics
UAV Data Link Design for Dependable Real-Time Communications
F5 tcpdump
Assignment on data network
Assignment on data network
TCP and UDP.pdf55555555555555555555555555555
Ad

More from Tim Panton (8)

PDF
10 voipmistakes
PPTX
Putting the 'web' into webRTC
PPTX
Simple secure federated identity for webRTC (your new phone number)
PPTX
Kranky geek15 - securing IoT with webrtc
PPTX
Kranky geeklondon build an app
PDF
Yo pet - building a webRTC app in 20 mins
PPT
Westhawk integration
PPTX
WebRTC Standards overview.
10 voipmistakes
Putting the 'web' into webRTC
Simple secure federated identity for webRTC (your new phone number)
Kranky geek15 - securing IoT with webrtc
Kranky geeklondon build an app
Yo pet - building a webRTC app in 20 mins
Westhawk integration
WebRTC Standards overview.

Recently uploaded (20)

PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Spectroscopy.pptx food analysis technology
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Encapsulation theory and applications.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
sap open course for s4hana steps from ECC to s4
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
cuic standard and advanced reporting.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
PPT
Teaching material agriculture food technology
Dropbox Q2 2025 Financial Results & Investor Presentation
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Spectroscopy.pptx food analysis technology
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Per capita expenditure prediction using model stacking based on satellite ima...
Encapsulation theory and applications.pdf
Network Security Unit 5.pdf for BCA BBA.
sap open course for s4hana steps from ECC to s4
“AI and Expert System Decision Support & Business Intelligence Systems”
Unlocking AI with Model Context Protocol (MCP)
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
The AUB Centre for AI in Media Proposal.docx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
cuic standard and advanced reporting.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Digital-Transformation-Roadmap-for-Companies.pptx
Programs and apps: productivity, graphics, security and other tools
Teaching material agriculture food technology

Ice with that sir? Or what webRTC does once it has a UDP connection

  • 1. What to do now you have a hole in the ice Tim Panton - Protocol Droid Westhawk Ltd
  • 3. Make a secure P2P media + data connection? Use existing protocols: SRTP x2 - encrypted RTP for voice + video DTLS - secure set up SCTP - datagram protocol RTCP - channel stats and management
  • 4. Multiplex all the things +----------------+ | 127 < B < 192 -+--> forward to RTP | | packet --> | 19 < B < 64 -+--> forward to DTLS | | | B < 2 -+--> forward to ICE +----------------+
  • 5. Huh ? Why is ICE there ? Continuing consent to send: We are sending ~1mbit/s of video Imagine the user closes the receiving tab Signalling is gone ICE re-tests connection every 30s Can re-establish a session over different path
  • 6. We know all about RTP Maybe not: SRTP - but uses DTLS to exchange the keys. Possibly multiple multiplexed streams RTCP too. Optional Headers (voice level etc)
  • 7. DTLS - what is that? TLS (aka SSL) ’s UDP cousin: Uses Public key crypto to exchange session key Session key extracted and used for SRTP key Also carries datachannel messages Does not carry media
  • 8. DTLS - not quite like SSL DTLS in webRTC has different requirements: Does not use PKI - no certs to buy Has heartbeat DTLS is client server Peers have to agree who is the client (rant)
  • 9. Was all that worth it? Probably: Secure - selectable crypto suites No passwords No central authority Distributed system - but existing SRTP code used
  • 10. You forgot STCP Oops: Originally designed to run alongside TCP webRTC uses it to provide Datachannel transport Run over DTLS (over UDP) Useful semantics - more flexible that TCP More widely used than you think (telcos)
  • 11. A new layer? Perhaps: We have a modern set of secure peer to peer network protocols supported by > 1bn endpoints and counting. It runs well over the existing internet infrastructure Lets use it to build fun stuff.