Port numbers make this easier to understand
Both TCP and UDP use port numbers to identify which service a packet belongs to. Learning the common port numbers for everyday services β 80 and 443 for web traffic, 53 for DNS, and so on β makes the TCP/UDP distinction click much faster.
Curious about call quality on UDP-based services?
Internet calling (VoIP) is one of the best-known UDP-based services. Looking into how its SIP and RTP protocols actually operate is a good next step for understanding why VoIP tolerates some packet loss but not high latency.
Frequently Asked Questions
Is a DNS lookup TCP or UDP?
It uses UDP by default for speed. But it can fall back to TCP when the response is too large for a single UDP packet, or in situations like zone transfers where reliability matters more than speed.
Why do most online games use UDP?
Because real-time responsiveness matters more than anything else. Waiting for a lost packet to be retransmitted would make character movement feel even more unnatural, so games accept some packet loss in exchange for always pushing the latest state through as fast as possible.