Quiz 2

Multimedia Networking — VoIP, Streaming, CDN

471 words
2 min read
Python Week 1: the first filter for runtime behavior
Visual companion
Python
Type and operator map

Python Week 1: the first filter for runtime behavior

View
Revision summary

What this note is really saying

Short form

# Multimedia Networking — VoIP, Streaming, CDN ## 🎯 Learning Objectives - Explain SIP and RTP protocol operation - Describe video streaming and adaptive bitrate - Analyze CDN architecture and routing - Understand QoS requirements for multimedia * * * ## 1. VoIP Protocols ### 1.1 SIP (Session Initiation Protocol) *(...

Multimedia Networking — VoIP, Streaming, CDN

🎯 Learning Objectives

  • Explain SIP and RTP protocol operation
  • Describe video streaming and adaptive bitrate
  • Analyze CDN architecture and routing
  • Understand QoS requirements for multimedia

1. VoIP Protocols

1.1 SIP (Session Initiation Protocol)

(Diagram)

1.2 RTP (Real-time Transport Protocol)

  • Header: Version, sequence number, timestamp, SSRC
  • Runs over UDP (ports 16384-32767)
  • RTCP provides feedback (packet loss, jitter)

2. Video Streaming

2.1 Adaptive Bitrate (ABR)

Client switches between quality levels based on bandwidth.
QualityBitrateResolutionBuffer Time
4K25 Mbps3840×216010s buffer
1080p5 Mbps1920×108010s buffer
720p2.5 Mbps1280×72010s buffer
480p1 Mbps854×48010s buffer
Protocols: HLS (Apple), DASH (MPEG), Smooth Streaming (Microsoft)

3. CDN (Content Delivery Network)

Architecture:
  • Edge servers cache content near users
  • Origin server holds master content
  • DNS routes users to nearest edge (Diagram)

3.1 CDN Routing

  • DNS-based: User resolves name → CDN DNS → returns nearest edge IP
  • Anycast: Same IP advertised from multiple locations → BGP routes to nearest
  • HTTP redirect: Edge returns 302 to better edge

4. Common Pitfalls

Pitfall: Confusing SIP with RTP

The mistake: Thinking SIP carries media. Correct approach: SIP sets up and tears down sessions (control plane). RTP carries the actual audio/video data (data plane). They use different ports and protocols.

5. Key Concepts Reference

ProtocolPortFunction
SIP5060/5061 (TLS)Session setup/teardown
RTP16384-32767Media transport
RTCPRTP+1Quality feedback
HLS80/443Adaptive streaming
DASH80/443Adaptive streaming

6. 📝 Practice Questions

Q1: How does adaptive bitrate streaming prevent buffering?
Answer: The client monitors download speed and buffer occupancy. If buffer drops below threshold, client requests lower bitrate segment (e.g., 1080p→720p). If bandwidth increases, client upgrades. This prevents buffer underrun at the cost of temporary quality reduction. YouTube uses this: you'll notice quality drops when network degrades. Q2: Why does RTP use UDP instead of TCP?
Answer: Real-time applications prefer timeliness over reliability. TCP retransmissions cause delay and head-of-line blocking — a lost packet retransmitted 100ms later is useless for real-time audio. UDP accepts some packet loss (concealed by codecs) for lower latency. RTP runs over UDP; quality feedback is sent via RTCP. Q3: How does a CDN know which edge server is "nearest" to a user?
Answer: Multiple techniques: (1) DNS geolocation — query resolver's IP to estimate user location. (2) Anycast — BGP routing automatically chooses closest edge. (3) Latency probing — measure RTT to possible edges. (4) Client IP subnet — /24 or /32 granularity. Cloudflare uses anycast; Akamai uses DNS-based routing with detailed maps.

7. 🔗 Cross-References

Document outline

Keep your place and jump directly to a heading.

Table of Contents
System Normal // Awaiting Context

Intelligence Hub

Navigate the knowledge graph to generate context. The Hub adapts dynamically to surface backlinks, related notes, and metadata insights.