Protocols come together in the applications people use every day. Each application chooses protocols that suit its needs.

Web Browsing and Email

When a user opens a website, the browser resolves the name with DNS, opens a TCP connection (or QUIC), performs a TLS handshake, sends an HTTP request and renders the HTML, then fetches the CSS, JavaScript and images it refers to, often from content delivery networks (CDNs) with servers close to the user. Caching in browsers and proxies avoids downloading unchanged objects again. Email combines a user agent, SMTP for sending, DNS MX records to find servers, and IMAP or POP3 (or HTTPS webmail) for reading, with SPF, DKIM and DMARC checks against spam and forged senders.

Definition: Voice over IP. The delivery of voice calls over IP networks by digitising, compressing and sending speech in packets, usually using SIP for call setup and RTP over UDP for the media.

File Transfer and Sharing

Files move by FTP, SFTP, HTTP downloads, cloud storage services (over HTTPS) and peer-to-peer systems such as BitTorrent, where every downloader also uploads pieces to others, spreading the load.

Voice over IP (VoIP)

VoIP sends voice as packets. Speech is sampled, digitised and compressed by a codec: G.711 (64 kbps, toll quality), G.729 (8 kbps) or Opus (6–510 kbps, adaptive, used in WhatsApp and Zoom). SIP (Session Initiation Protocol) sets up, changes and ends calls; RTP (Real-time Transport Protocol) over UDP carries the audio with sequence numbers and timestamps, and RTCP reports quality. VoIP needs low delay (under about 150 ms one way), low jitter (smoothed by a jitter buffer) and little loss. Headers add overhead: a 20-byte voice payload carries 40 bytes of IP, UDP and RTP headers. QoS (DiffServ EF) and NAT traversal help.

Streaming

Video and audio streaming may be on demand (YouTube, Netflix) or live. Modern streaming uses HTTP adaptive streaming — DASH or Apple's HLS — in which the video is split into small segments (2 to 10 seconds) encoded at several bitrates. The player measures throughput and buffer level, and requests each segment at the best quality that the network can sustain, switching up or down smoothly. A buffer of a few seconds absorbs variation. Live and interactive streams use low-latency protocols such as WebRTC. Streaming relies heavily on CDNs.

Table 4.4: Applications and their protocols

Application Protocols Key need
Web browsing DNS, TCP/QUIC, TLS, HTTP Reliability, speed
Email SMTP, IMAP/POP3, DNS MX Reliability
File transfer FTP/SFTP, HTTPS, BitTorrent Reliability
VoIP SIP, RTP over UDP Low delay and jitter
Streaming HTTP DASH/HLS, CDNs Steady throughput

Example 4.4: VoIP bandwidth

Problem: A G.711 call (64 kbps) sends a packet every 20 ms. Each packet has 40 bytes of IP/UDP/RTP headers. Find the payload per packet and the total IP bandwidth of one direction of the call.

Solution:

  1. Packets per second = 1000 / 20 = 50.
  2. Payload = 64,000 / 8 / 50 = 160 bytes per packet.
  3. Packet size = 160 + 40 = 200 bytes = 1,600 bits.
  4. Bandwidth = 1,600 × 50 = 80,000 bits per second = 80 kbps.

Result: 160-byte payload; 80 kbps per direction, 25 percent more than the codec rate.

def voip(codec_kbps, interval_ms, header=40):
    pps = 1000 / interval_ms
    payload = codec_kbps * 1000 / 8 / pps
    total = (payload + header) * 8 * pps / 1000
    return pps, payload, total
for name, kbps in [("G.711", 64), ("G.729", 8)]:
    pps, pl, tot = voip(kbps, 20)
    print(f"{name}: {pps:.0f} pkt/s, payload {pl:.0f} B, "
          f"IP bandwidth {tot:.0f} kbps")
ladder = [(0.4, "240p"), (1.5, "480p"), (3, "720p"), (6, "1080p")]
for mbps in (1.0, 4.0, 8.0):
    q = [r for b, r in ladder if b <= mbps * 0.8][-1]
    print(f"throughput {mbps} Mbps -> stream {q}")

Output

G.711: 50 pkt/s, payload 160 B, IP bandwidth 80 kbps
G.729: 50 pkt/s, payload 20 B, IP bandwidth 24 kbps
throughput 1.0 Mbps -> stream 240p
throughput 4.0 Mbps -> stream 720p
throughput 8.0 Mbps -> stream 1080p

Common mistakes

  • Thinking VoIP uses TCP. Retransmitted voice would arrive too late; RTP runs over UDP.
  • Ignoring header overhead when sizing VoIP links.
  • Thinking adaptive streaming keeps one quality level. It changes per segment.

Key takeaways

  • Web browsing combines DNS, TCP or QUIC, TLS and HTTP, helped by caches and CDNs.
  • Email uses SMTP to send and IMAP or POP3 to read.
  • VoIP: codecs, SIP for signalling, RTP over UDP for media; needs low delay and jitter.
  • Streaming uses DASH or HLS with segments at several bitrates.

Practice questions

  1. Which protocol sets up VoIP calls?
  2. What is a jitter buffer?
  3. What is a CDN?

Answers to the practice questions

  1. SIP (Session Initiation Protocol).
  2. A buffer that holds incoming voice packets briefly to smooth out variations in delay.
  3. A content delivery network, servers placed near users that cache and deliver content.

Sources

  • Official BCA syllabus Computer Networks, course code 26BCA404DS02, Unit IV