Networking Essentials easy
Which protocol is ideal for real-time multiplayer gaming positions or Voice over IP (VoIP), and why?
- A TCP, because its segment-level retransmission mechanism ensures that every coordinate update is eventually delivered in the correct temporal sequence.
- B HTTP/2, because the header compression and stream multiplexing capabilities significantly reduce the processing overhead on mobile gaming devices.
- C UDP, because the lack of head-of-line blocking ensures that occasional packet loss does not cause a cascade of latency spikes for subsequent real-time updates.
- D FTP, because its dedicated control and data channels provide the highest possible throughput for sustained, high-bandwidth streaming of game assets.
Answer: C. UDP, because the lack of head-of-line blocking ensures that occasional packet loss does not cause a cascade of latency spikes for subsequent real-time updates.
Real-time systems like multiplayer games or VoIP prioritize 'timeliness' over 'perfect reliability'. If a packet carrying a player's coordinate is lost, TCP would pause all subsequent data (Head-of-Line blocking) to wait for a retransmission. By the time that old coordinate arrives, it is already obsolete. UDP allows the system to simply drop the lost packet and move on to the next one, ensuring the lowest possible latency and a smoother user experience at the cost of occasional 'glitches' or packet loss.
One system design question a day, with spaced repetition so the ones you miss come back.
Get the appRelated questions
- What is the downside of enabling 'Sticky Sessions' (Session Affinity) on a Load Balancer?
- In WebRTC (P2P Mesh), why is a STUN server required?
- What is the fundamental difference between a Network Switch and a Router?
- In Cloud Networking (AWS), what is the limitation of VPC Peering compared to a Transit Gateway?
- What is the purpose of the 'Time To Live' (TTL) field in an IP packet?
- In high-performance Data Center networks, what is 'Head-of-Line Blocking' (Switch level)?