๐Ÿ–ฅ๏ธ
๐Ÿ–ฅ๏ธ How Computers Work ยท CS-101 ยท Session 5 of 6

How Computers Talk to Each Other

The internet isn't a cloud โ€” it's real cables, agreed rules, and messages broken into little packets that hop across the world. The basics are simpler and more elegant than they sound.

โฑ 9 min read๐Ÿ“… Updated 2026-07-29๐Ÿ“Š Tables, charts & examples

When you load a page or send a message, your computer talks to another computer that might be on the other side of the planet. It feels instant and magical, but the underlying ideas are refreshingly concrete: real cables and radio, agreed rules (protocols), and data chopped into little packets that hop from machine to machine. This session demystifies the internet without the jargon.

Packets, addresses and rules

To send data across a network, computers break it into small packets, label each with a destination address, and follow shared protocols - rules both sides agree on - so the pieces arrive and reassemble correctly.

IdeaWhat it is
PacketA small chunk of the data, sent separately
IP addressA computer's number on the network
ProtocolAgreed rules for the conversation (e.g. HTTP)
DNSThe 'phone book' turning names into addresses

Your message is split into packets, each finds its own way across many machines to the destination, and they're reassembled at the other end. If some go missing, the rules say to resend them. It's a bit like mailing a book one page at a time in numbered envelopes.

Clients, servers, and the web

Most internet interactions follow a simple pattern: a client (your device) asks, and a server (another computer) answers.

๐ŸŽฏ
Loading a web page is a request and a response. Your browser (the client) sends a request - 'please give me this page' - to a server, using the web's protocol (HTTP). The server sends back the page's files (HTML, images...), and your browser assembles them into what you see. Behind the scenes, DNS first turned the human-friendly name (like larzos.com) into the server's numeric address. That request-response dance, repeated constantly, is most of what 'using the internet' actually is.

A network of agreements

What makes it all work is that everyone follows the same open agreements - which is exactly why any device can talk to any other.

When you...Roughly what happens
Type a web addressDNS finds the server's IP address
Hit enterYour browser sends an HTTP request
The page loadsThe server responds with the files
Send a messageIt's split into packets, routed, reassembled

No single company runs the internet; it works because of shared protocols anyone can use. That openness is why it grew to connect the whole world - and why you'll meet these same ideas (requests, responses, addresses) the moment you build anything online.

Cables, packets and agreements

  • Packets - data is split into small labelled chunks that travel independently.
  • Addresses & DNS - every computer has an IP address; DNS turns names into them.
  • Protocols - shared rules (like HTTP) let any device talk to any other.
  • Client-server - your device requests; a server responds. That's most of the web.

๐ŸŽฏ Key takeaways

  • The internet is real cables/radio plus shared rules - not a magic cloud.
  • Data is split into packets, each labelled with a destination address and routed independently.
  • Protocols (like HTTP) are agreed rules; DNS is the phone book turning names into IP addresses.
  • Most of the web is client-server: your device requests, a server responds.

Frequently asked

Why is data broken into 'packets' instead of just sent all at once?

Breaking data into packets makes networks far more robust, efficient and fair - it's one of the internet's foundational ideas. If you sent a whole large file as one unbroken stream, a single glitch anywhere along the way would ruin the entire transfer, and that one conversation would hog the connection while it ran. Splitting the data into many small packets solves both problems. Each packet can take its own route to the destination, so if one path is congested or broken, packets can go around it. If a packet gets lost or corrupted, only that small piece needs resending, not the whole file. And because everyone's packets are interleaved, many conversations share the same cables smoothly rather than one monopolising it - your download and someone else's video call take turns packet by packet. The packets carry numbering so the receiving computer can reassemble them in the right order even if they arrive jumbled or out of sequence. It's like mailing a book one numbered page at a time: more resilient (lose one page, resend just that page), more flexible (pages can travel different routes), and fairer (the post handles everyone's pages together). This packet-switching design is a big reason the internet scales to billions of devices.

What actually is a 'server' - is it a special kind of computer?

A server is less a special kind of machine and more a role a computer plays: it's a computer that waits for requests and responds to them, providing something to other computers (the clients) that ask. When you load a web page, a server somewhere is running software that listens for 'please send me this page' requests and answers them with the page's files. Physically, servers are often powerful computers in data centres - built to be reliable, always-on, and to handle many requests at once - but the defining thing is the role, not exotic hardware. In fact, an ordinary laptop can act as a server if it runs software that responds to requests (developers do this all the time to test their websites locally), and the same powerful machine could be a client when it, in turn, requests something from another server. So 'client' and 'server' describe who's asking and who's answering in a given interaction, not two separate species of computer. This client-server pattern - one side requests, the other responds - underlies most of what happens online, from web pages to apps to sending messages, and you'll work directly with it the moment you start building anything for the internet.

Session 5 of 6 complete

Next up: The Whole Stack: Transistor to App

Continue to Session 6 โ†’

Related lessons

More in this course

Course home → · Browse all courses →