DNS queries often use UDP instead of TCP. Why is UDP preferred for DNS?
Think about the size and speed of DNS requests and how UDP handles data.
UDP is faster because it does not establish a connection or check for delivery, which suits the small, quick DNS queries. DNS queries are usually small and can fit in one UDP packet, making UDP efficient.
Why do many live video streaming services use UDP instead of TCP?
Consider how delays affect live video and how UDP handles lost data.
UDP does not wait for lost packets to be resent, which reduces delay and keeps the video stream smooth. This is important for live streaming where speed matters more than perfect accuracy.
How does using UDP affect the experience of online multiplayer games?
Think about the importance of speed and responsiveness in games.
UDP reduces latency by sending data without waiting for confirmation, which is crucial for fast-paced games where delays can ruin the experience. Some lost data is acceptable to keep the game responsive.
Which of the following is NOT a typical reason to use UDP in applications like DNS, streaming, or gaming?
Consider what UDP does NOT provide compared to TCP.
UDP does not guarantee delivery or order of packets. Applications using UDP accept some data loss to gain speed and low latency.
You are designing a new real-time voice chat app. Which reason best justifies choosing UDP over TCP?
Think about what matters most in real-time voice communication: speed or perfect accuracy?
UDP is chosen because it sends data quickly without waiting for lost packets, which reduces delay and keeps conversations natural. Perfect delivery is less important than low latency.