CS FundamentalsModerateProduct-company interview pattern
A video-calling app sends small voice packets every 20 ms. Why do such apps usually prefer UDP over TCP for the media stream?
- A. A late packet is useless, and TCP’s retransmission with in-order delivery would hold back newer packets behind a lost one
- B. UDP encrypts packets, while TCP does not
- C. TCP cannot carry packets smaller than 1 KB
- D. UDP guarantees delivery faster than TCP
Correct answer: A. A late packet is useless, and TCP’s retransmission with in-order delivery would hold back newer packets behind a lost one
For real-time audio, a retransmitted packet arrives too late to be played, and TCP would also block all later data until the gap is filled (head-of-line blocking). UDP lets the app skip losses. UDP guarantees nothing, and neither protocol encrypts by itself.
More Computer Networks questions
- What is the broadcast address of the subnet containing 10.20.30.40/13?
- Which address is in the same subnet as 172.16.8.1/21?
- A sender transmits bytes 1–4000 as four 1000-byte TCP segments. Segment 2 (bytes 1001–2000) is lost; segments 1, 3 and 4 arrive in order…
- A 1 MB file (take 1 MB = 10⁶ bytes) is sent in one burst over an 8 Mbps link with a one-way propagation delay of 20 ms. How long after the…
- An organisation owns 172.20.0.0/16 and needs equal-sized subnets, each with at least 1000 usable host addresses. What is the maximum…
- An access-control list needs the wildcard mask that corresponds to the subnet mask 255.255.248.0. What is it?