コンテンツへスキップ
uencoder

DTLS Protocol リファレンス

リファレンス 用 Datagram TLS: TLS semantics 超 UDP 用 encrypted datagram communication.

DTLS Design

DTLS (RFC 9147) provides TLS security over UDP, preserving TLS handshake and record semantics. Since UDP is unreliable, DTLS adds retransmission timers and explicit sequence numbers (epoch + seq). Handshake messages include fragment offsets to support reassembly. The protocol handles reordering and loss via the epoch mechanism. DTLS 1.3 simplifies the handshake and removes ChangeCipherSpec. DTLS-SRTP profiles key derivation for WebRTC media.

retransmission
Handshake reliability
timer-based
epoch
Sequence numbering
per key change
fragmentation
Handshake reassembly
offset + length

Use Cases

WebRTC uses DTLS 1.3 for peer-to-peer media encryption (via DTLS-SRTP). CoAP uses DTLS for IoT security. DTLS avoids TCP head-of-line blocking, important for real-time media. Connection IDs (DTLS 1.3) enable connection migration across IP changes. Anti-replay windows discard duplicate packets. The protocol is stateful and requires session management. DTLS performance approaches TLS with proper implementation.

WebRTC
Media encryption
DTLS-SRTP
CoAP
IoT security
constrained devices
CID
Connection migration
DTLS 1.3

関連ツール

参考链接