トランスポートプロトコル:ストリーミングにおけるUDPとTCP
リアルタイムストリーミングでTCPよりUDPが好まれる理由、遅延・ジッター・パケット損失がライブメディアに与える影響、WebRTCがUDP上で信頼性を実現する方法を理解します。
「トランスポートプロトコル:ストリーミングにおけるUDPとTCP」はCoddyKit上の無料Real-Time Streaming Systems (WebRTC + Live Data)レッスンです。 これはレッスン4/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはReal-Time Streaming Systems (WebRTC + Live Data)学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 Real-Time Streaming Systems (WebRTC + Live Data)コースには全4レッスンが含まれています。
このレッスンの一部はまだ翻訳されておらず、英語で表示されています。
Why Transport Matters
Before media can flow, it crosses the network - and the transport protocol shapes latency and quality. The two choices are TCP and UDP.
TCP in a Nutshell
TCP guarantees ordered, reliable delivery: a lost packet is resent before later data arrives. Great for files and pages, where correctness beats speed.
The Head-of-Line Problem
For live media, TCP's reliability backfires. One lost packet stalls everything behind it during the resend - head-of-line blocking - causing freezes.
UDP in a Nutshell
UDP is connectionless and fire-and-forget: no guaranteed order, no retransmits. Packets arrive fast or not at all - ideal for time-sensitive media.
Stale Data Is Useless
In a live call, a frame from two seconds ago is useless. Better to drop a lost frame and move on than wait for a resend - which is why streaming prefers UDP.
Latency, Jitter, Loss
Three metrics define real-time quality: latency (delay), jitter (arrival-timing variation), and packet loss. Keep all three low for a smooth call.
The Jitter Buffer
Since UDP packets arrive unevenly, the receiver uses a small jitter buffer to briefly hold and reorder them before playback - smoothing timing at the cost of tiny delay.
WebRTC Uses UDP
WebRTC sends media over UDP by default, layering RTP for sequencing and timestamps plus SRTP for encryption. It falls back to TCP only when UDP is blocked.
Coping With Loss
Instead of TCP-style retransmits, WebRTC fights loss smartly: FEC sends redundant data, NACK re-requests only critical packets, and concealment hides gaps.
Adapting to the Network
WebRTC constantly measures bandwidth. If the link degrades, congestion control lowers resolution or bitrate to keep the stream alive instead of stalling.
The Right Tool
Pick the right tool: TCP when every byte must arrive in order (downloads, APIs), UDP when timeliness wins (live audio and video) - just as WebRTC does.
Quick Check
Test your understanding of streaming transport.
Recap
Recap: streaming favors UDP because TCP's reliability causes freezes. WebRTC runs RTP/SRTP over UDP with a jitter buffer, FEC, NACK, and congestion control.
よくある質問
「トランスポートプロトコル:ストリーミングにおけるUDPとTCP」レッスンは無料ですか?
はい。「トランスポートプロトコル:ストリーミングにおけるUDPとTCP」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、Real-Time Streaming Systems (WebRTC + Live Data)コースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 Real-Time Streaming Systems (WebRTC + Live Data)コースには全4レッスンが含まれています。
「トランスポートプロトコル:ストリーミングにおけるUDPとTCP」で何を学びますか?
リアルタイムストリーミングでTCPよりUDPが好まれる理由、遅延・ジッター・パケット損失がライブメディアに与える影響、WebRTCがUDP上で信頼性を実現する方法を理解します。 ブラウザで直接実行するハンズオンコードでReal-Time Streaming Systems (WebRTC + Live Data)を演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。
Real-Time Streaming Systems (WebRTC + Live Data)を始めるのに経験は必要ですか?
事前経験は必要ありません。CoddyKitのReal-Time Streaming Systems (WebRTC + Live Data)は初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン4/4です。
「トランスポートプロトコル:ストリーミングにおけるUDPとTCP」レッスンにはどのくらい時間がかかりますか?
ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。
このReal-Time Streaming Systems (WebRTC + Live Data)レッスンでコードを書いて実行できますか?
はい。すべてのReal-Time Streaming Systems (WebRTC + Live Data)レッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。
このコースのすべてのレッスン
- リアルタイム通信とは
- WebRTC技術の概要
- WebRTCの主要コンポーネント
- トランスポートプロトコル:ストリーミングにおけるUDPとTCP