TCP/IP
🎬 This chapter has a 10:53 video: Network Protocols →A web page, an email, a video call — on the Internet, all of them travel the same way: cut into small packets, each with an address on it. The rules for that are TCP/IP, the protocols underneath every other protocol in this chapter.
1What TCP/IP is
IP gives every device an IP address and gets each packet to that address.
TCP breaks the message into packets, makes sure every packet arrives, and puts them back in order.
Play the story, then lose a packet on the way and play it again. Drag sideways to turn.
2Two protocols, two jobs
| TCP | IP | |
|---|---|---|
| Stands for | Transmission Control Protocol | Internet Protocol |
| Its job | Breaks the message into packets, numbers them, puts them back in order | Gives each device an IP address and routes each packet to it |
| Checks | That every packet arrived; asks again for a lost one | Nothing — it just delivers packets as best it can |
| Works at | The two ends: sender and receiver | Every router along the way |
IP is what holds the whole Internet together: every computer connected to it has an IP address, and every router uses those addresses to pass packets on. There are many paths between two computers, so two packets of the same message can take different routes and arrive out of order. That is exactly the packet switching you learnt earlier — TCP/IP is the set of rules that makes it work on the Internet.
Think of posting a book, chapter by chapter
3From the board papers
▶Show the answer
Transmission Control Protocol.
▶Show the answer
TCP breaks the data into packets at the sender, makes sure all of them reach the receiver, and puts them back in order there. IP gives each device an IP address and routes every packet across the network to the right address.
4Check yourself
Packets of one message reach the receiver in the order 2, 1, 4, 3. Which protocol puts them back in order?
Which part of TCP/IP makes sure each packet can find the right computer?