4.1 Protocols: IP, TCP and UDPRules everyone agrees to follow

A protocol is an agreed-upon set of rules that specify the behavior of a system. Two devices can exchange data only if they follow the same rules about how addresses are written, how data is split into packets, and what to do when something goes wrong.
The protocols of the internet are open, which means nonproprietary: they are published for anyone to read and use, and no company owns them. That's what lets a phone from one company, a router from another and a server from a third work together. It also makes it easy to connect new devices, which is why open protocols help the internet scale.
?Wait, what does "proprietary" mean?
| Protocol | One-word job | What it does | Good fit |
|---|---|---|---|
| IP | Route | Gives every device an address; routers forward packets toward the destination | Every packet on the internet |
| TCP | Guarantee | Numbers packets, checks they all arrived, has lost ones resent, puts them in order | Files, email, web pages, bank data |
| UDP | Hurry | Sends packets with no delivery checks, so there is less delay but some may be lost | Live calls, live video, game updates |
| HTTP | Serve pages | How a browser asks for a web page and how the server sends it back | The World Wide Web |
IP, the Internet Protocol, handles addressing and routing. Every device on the internet gets an IP address, and routers forward each packet toward its destination address. IP on its own makes no promise that a packet arrives.
TCP and UDP run on top of IP and decide how carefully data is delivered. TCP, the Transmission Control Protocol, is the careful one. It numbers the packets, the receiver confirms what arrived, lost packets are sent again, and the packets are put back in order before the program sees them. UDP, the User Datagram Protocol, is the fast one. It just sends packets, with no checking and no resending, so there's less delay, but some packets may be lost or arrive out of order.
TCP: reliable
- Every packet arrives, or is sent again
- Put back in order before delivery
- Extra waiting when packets are lost
- Files, email, web pages, payments
UDP: fast
- No delivery checks, no resending
- Packets may be lost or out of order
- Low delay
- Live calls, live streams, game updates
?Wait, isn't reliable always better?
I thought about it. Show me
- Ask the same question every time: is it worse to lose a piece, or to wait for a piece?
Why?
This one question decides almost every TCP versus UDP item on the exam. - (a) An essay with missing pieces is broken. Losing is worse: TCP.
- (b) Live means now. Waiting for an old piece makes the stream stall. Waiting is worse: UDP.
- (c) A position from a moment ago is useless once a newer one arrives. Waiting is worse: UDP.
- (d) An app with one wrong byte might not run. Losing is worse: TCP.
Answer: TCP for (a) and (d), where every byte must arrive. UDP for (b) and (c), where delay hurts more than a small loss.
Stuck? Get a hint
- Is the data still useful if it arrives late?
- Would a single missing piece break the whole thing?
- Files and updates must be complete. Live streams and live positions must be fast.
- AThe tracker uses UDP, and UDP needs no rules
- BThe internet's protocols are open, so any device that follows them can connect
- CEach router company sells a private protocol license to device makers
- DA government office approves every new device first
Show the answer
B. Open, nonproprietary protocols are published for anyone to follow, so any device built to them can join. The first choice is wrong twice: UDP is itself a set of rules, and it still relies on IP.
- AHTTP
- BTCP
- CIP
- DUDP
Show the answer
C. IP routes. TCP and UDP decide how carefully packets are delivered, and HTTP is the Web's protocol for requesting pages. Giving routing to TCP is the most common mix-up.

Match each protocol to its one-word job: IP routes, TCP guarantees, UDP hurries, HTTP serves pages. Any answer choice that gives a protocol the wrong job, like "HTTP routes packets", can be crossed out on sight.
- A protocol is an agreed-upon set of rules. The internet's protocols are open (nonproprietary), so anyone can build devices that join.
- IP: addresses and routes packets. TCP: guarantees delivery and order, resending lost packets. UDP: sends with no checks, less delay, possible loss.
- Choose TCP when losing data is worse, UDP when waiting is worse.