Skip to content

Chapter 1: How Devices Talk

Every connection is a door.

When you send a photo to Grandma, it seems to fly through the air and land on her phone a second later. When you open a game, it somehow knows your score from yesterday. How do devices do that?

They talk to each other. Your tablet, your school laptop, the smart speaker in the kitchen, and giant computers far away are all passing messages back and forth, all day long. That talking is what makes technology so useful. It is also why we need cybersecurity, the job of protecting devices and information from harm.

Here is the big idea of this whole book: every connection is like a door. Doors are great. They let your friends in! But a cyber defender always knows where the doors are and who is allowed to walk through them. In this chapter, we will find those doors.


A networknetwork: Two or more devices connected so they can share information. is two or more devices connected so they can share information. Your classroom has a network. Your home probably has one too. The biggest network of all is the internet, which is really millions of smaller networks all linked together.

When you send a picture to a friend, your device does not send it in one giant lump. It chops the picture into tiny pieces called packets. Each packet has a label, a little bit like an envelope, that says where it came from and where it is going. The packets travel across the network, sometimes by different paths, and the receiving device puts them back together in the right order.

Think of it like mailing a big puzzle to a friend, a few pieces in each envelope. Every envelope has your friend’s address on it. When they all arrive, your friend puts the puzzle together again.

A network needs some helpers. These are called network components, and each one has a job:

Component Its Job
📶 RouterRouter: A device that directs messages between networks, like a mail carrier choosing the right street. Sends packets toward the right place, like a mail carrier choosing the right street. Your home Wi-Fi box is usually a router.
🔀 Switch Connects many devices in one building, like a hallway with lots of classroom doors.
📡 Wi-Fi access point Lets devices join the network using radio waves instead of cables.
🔌 Cables Carry information as electricity or light. Many are faster and steadier than Wi-Fi.
🖥️ Server A powerful computer that stores things and answers requests, like sending you a web page.

When you ask a website for a page, your request goes from your device, to the access point, to the router, out across the internet to a server, and then the answer comes all the way back. That trip usually takes less than a second!

Here is the cyber defender part. Every device you connect to a network becomes a new door. A tablet with an old password, a printer nobody updates, or a smart toy with no lock at all can give a stranger a way in. Connecting devices is useful, but every new connection brings new risks. Defenders keep a list of what is connected so no door is forgotten.


1.2 — Rules for the Road: Protocols and Code 🚦

Section titled “1.2 — Rules for the Road: Protocols and Code 🚦”

Imagine a busy road with no rules. Nobody stops at red lights, and cars drive on both sides. It would be chaos! The internet would be chaos too, without rules.

A protocolprotocol: A set of rules that devices follow so they can understand each other and complete a task. is a set of rules that devices agree to follow so they can understand each other. Every online service uses protocols to get its job done:

  • Web pages follow rules called HTTP. Your browser asks for a page in a certain way, and the server answers in a certain way.
  • HTTPS is the safer version. The S stands for secure. It scrambles the messages so nobody along the way can read them.
  • Email follows its own rules for sending and picking up messages, so an email from one company’s app can reach a different company’s app.
  • Video calls follow rules for sending sound and pictures quickly, so your friend’s face doesn’t freeze every few seconds.

Because everyone follows the same rules, a phone made by one company can open a website made by another company, on a server in another country. Protocols are like a shared language.

Web pages and apps are built from code, which is written instructions a computer follows. Here is something that surprises a lot of people: a tiny change in code can make a big change on the screen.

A web page might have a line of code that says the title color is blue. If a programmer changes one word, from blue to red, every visitor now sees a red title. Change a number, and a button gets bigger. Change one sentence, and the page says something new.

This is what makes code so powerful. Programmers fix problems and add new features with small adjustments. But it also teaches a defender lesson: if someone who should not be allowed changes the code, they could change what a page says or does. That is why companies guard who can edit their code, and why they check every change before it goes live.

Write a “code card” for a classmate: Draw a square. Color it blue. Write your name under it. Now change just one word on the card, like square to circle. Same instructions, small change, different result. That is how code works!


1.3 — Clouds, Backups, and Lost Files ☁️

Section titled “1.3 — Clouds, Backups, and Lost Files ☁️”

Have you ever heard someone say, “It’s saved in the cloud”? There are no files floating in the sky. The cloud is just other people’s computers.

Cloud computingCloud computing: Storing and using files and programs on powerful computers far away, reached over the internet. means storing and using files and programs on powerful servers in big buildings called data centers, reached over the internet. When your class writes a story in an online document, the story lives on a server, not just on your laptop. That is why you can start writing at school and keep going at home.

The cloud is great for:

  • Sharing. Five classmates can work on the same slideshow at once.
  • Getting to your stuff anywhere. Log in on a different device, and your files are there.
  • Keeping things safe. If your laptop breaks, your cloud files are still waiting for you.

Because the cloud is reached over the internet, it needs protecting like any other door. Smart cloud users:

  1. Share with only the people who need it. Choose specific classmates instead of “anyone with the link.”
  2. Choose “can view” instead of “can edit” when people only need to look.
  3. Log out on shared computers, like the ones in a library or computer lab.
  4. Never share the login for a cloud account, even with a best friend.

Files can disappear. A laptop can fall in a puddle. Someone can click “delete” by mistake. A program can crash right before you save. This is called data loss, and it happens to everyone eventually.

A backupbackup: An extra copy of important files, kept in a different place, so you can get them back if the original is lost. is an extra copy of your important files, kept in a different place. If the original is lost, you get the backup and keep going. Many families and schools copy files to the cloud automatically, and some also use an external drive.

Backups are also one of the best defenses against attacks. Some bad programs lock up people’s files and refuse to give them back. If you have a recent backup stored somewhere else, you can restore your files and the attacker’s trick doesn’t work.


Every device that connects to a network has layers inside it. Knowing these layers helps you protect them.

The operating systemoperating system: The main program that runs a device, manages its parts, and lets other apps work. (OS) is the main program that runs a device. It manages the memory, the screen, the battery, and the connections, and it lets all your other apps work. Different devices use different operating systems:

Device Common Operating Systems What It Has to Handle
💻 Laptop or desktop Windows, macOS, ChromeOS, Linux Many apps at once, files, printers
📱 Phone or tablet iOS, iPadOS, Android Touch screens, cameras, saving battery
📺 Smart TV or game console Their own special systems Video, games, remote controls
🚗 Car or smartwatch Small built-in systems Just a few jobs, done quickly

A laptop’s OS juggles dozens of jobs. A smartwatch’s OS does a few small jobs well. But they all have the same important role: they are the boss of the device.

Apps are programs that run on top of the operating system: games, browsers, drawing tools. Here is a truth every defender knows: every app can have weak spots. People write apps, and people make mistakes. A weak spot that someone could use to cause harm is called a vulnerabilityvulnerability: A weak spot in a device, app, or plan that someone could use to cause harm.. Even apps from huge, careful companies have them. That is not a reason to panic. It is a reason to keep apps updated and to install only the apps you really need.

Lots of everyday objects now connect to the internet: doorbells with cameras, thermostats, watches that count your steps, even refrigerators. Together they are called the Internet of Things (IoT)Internet of Things (IoT): Everyday objects, like doorbells, watches, and speakers, that connect to the internet to collect and share information.. These things collect data (a fitness watch counts steps, a doorbell records video) and share it with an app or a company’s servers. That can be helpful, but it means a lot of information about your family is traveling around. Smart things need strong passwords and updates too.

When a company finds a vulnerability, it fixes it and sends out a software updatesoftware update: A new version of a program that fixes problems, closes security weak spots, and sometimes adds features.. If you skip updates, the weak spot stays open, and attackers often know exactly which old versions to look for. Skipping updates is like knowing your window lock is broken and never fixing it. With a grown-up’s OK, say yes to updates.

Scientists are building a new kind of machine called a quantum computer. It works in a very different way from your laptop. For most jobs, like games or homework, it would not help. But for some special problems it may be much faster. One example: figuring out how tiny molecules behave, which could help scientists design new medicines. We will see in Chapter 2 why defenders are paying close attention to quantum computers too.


Your Mission: Every connection is a door. You are going to map all the doors in one place and decide how to protect them.

On a big sheet of paper, draw your classroom or one room at home. Draw a small box for every device that connects to a network: laptops, tablets, the smart board, the printer, the TV, the smart speaker. Draw the router in the middle and connect every device to it with a line. Each line is a door.

Next to each device, write two things: its operating system if you know it (ask a teacher or grown-up), and one piece of data it collects or stores. Put a star next to any device that you think gets updates. Put a question mark next to any device you are not sure about.

Pick three devices with a question mark. For each one, write one protection step from this chapter: update it, back up its files, share with fewer people, or log out. Share your Door Map with a partner. Did they find a door you missed?


  • I can explain what a network is and how packets travel
  • I can name four network components and what each one does
  • I know a protocol is a set of rules that online services follow
  • I know a padlock means a scrambled connection, not an honest website
  • I can explain how a small change in code changes a web page
  • I can describe how the cloud stores and shares information, and three safe cloud habits
  • I can explain why backups matter
  • I can compare operating systems on different devices
  • I know every app can have vulnerabilities and updates help close them
  • I can explain how the Internet of Things collects and shares data
  • I can name one task a quantum computer may solve faster