online posts 15
networking 101: how computers talk

lesson 1.1 · chapter 1 of 5: the pieces · 20 min

What's a host?

objective

Know what a host is, spot the hosts in a network, and find your own computer’s MAC address: the name its network card was born with.

1 explain

Start here: passing notes

This whole course starts from nothing. Every word gets explained before we use it, starting with the everyday ones.

Passing a note in class

Imagine you want to tell a friend on the other side of the classroom something. You write it on a scrap of paper, fold it, write their name on the outside, and pass it along the row. Each person in between looks at the name and passes it on, until your friend gets it, opens it and reads it.

That’s everything a computer network does. The rest of this course is just the details.

in one sentence Sending something over a network is like passing a named note across a classroom.

Data and messages

Data is any information a computer keeps or sends: words, photos, songs, videos, the moves in a game. Inside the computer, all of it is stored as numbers.

A message is some data sent from one place to another, like your note.

in one sentence Data is information; a message is some data on its way somewhere.

What’s a network?

A network is a group of things joined together so they can send each other messages. The classroom is a network: people who write notes, and a way of passing them along.

Computers join up in two ways:

  • with a cable: a wire with a plug on each end. Electricity travels along it, carrying the message. The usual network cable is called an Ethernet cable. Ethernet is just the name of the most common kind of wired network; the plug looks like a chunky phone plug.
  • with Wi-Fi: the same idea, but using radio waves, invisible signals through the air, like a walkie-talkie. No cable needed.

Two laptops joined by one cable are a network. So is the whole internet: millions of networks all joined together, all over the world.

in one sentence A network is things joined by cables or Wi-Fi so they can send each other messages.

Hosts: the ones writing and reading

In the classroom, some people write and read notes: you and your friend. Others just pass them along.

On a network, the things that send and receive their own messages are called hosts. Your laptop is a host. So is a phone, a games console, a smart TV, a printer, and the big computers far away that send you videos and web pages.

The boxes in between that only pass messages along are called network devices. You’ll meet them in chapter 2.

in one sentence A host is anything that sends or receives its own messages, like a laptop or a phone.

Addresses: who is it for?

On the classroom note, you wrote your friend’s name on the outside so everyone knew who it was for. On an envelope you write an address. An address is just the thing that says who, or where, a message is going to.

Every host on a network needs one too, or nobody would know who a message is for.

in one sentence An address says who a message is for, like the name on the outside of a note.

The network card and its MAC address

The part of a host that actually sends and receives messages is its network card. It’s the bit the cable plugs into, or the little radio that does Wi-Fi. (People also call it a NIC, short for network interface card: interface means the place where two things meet, here the computer and the network.) A laptop usually has two: one for Wi-Fi, one for a cable.

Every network card is given a name at the factory, and it keeps it for life. That name is its MAC address. (MAC stands for Media Access Control, a technical way of saying the card’s own address on the network. It’s nothing to do with Apple Mac computers: every network card has one.) It looks like this:

AA:AA:AA:11:11:11
3C:22:FB:9A:04:7E

Six pairs of characters, with colons between them. They use hexadecimal (hex for short), a way of counting with sixteen digits instead of ten: 0 to 9, then A to F, so A means ten and F means fifteen. Don’t worry about the maths: just know it’s a name made of numbers and letters. The first half usually says which company made the card; the second half is that card’s own number.

in one sentence Every network card has a MAC address: a name it got at the factory, like AA:AA:AA:11:11:11.

Packets: lots of small notes

What if your note is really long, like a whole story? You might tear it into numbered postcards and send them one at a time. Then other people can pass their notes in between, and if one postcard gets lost, you only rewrite that one.

Computers do exactly this. They chop a big message into small pieces called packets. Every packet has a to address and a from address written on it, like an envelope.

in one sentence Big messages are chopped into small packets, and each packet carries a to and a from address.

2 show

Spot the hosts

Here’s a home network, drawn as a picture. Each little drawing is a device, and the lines are how they’re joined: solid lines are cables, dotted lines are Wi-Fi. In the middle is a Wi-Fi router, the box most homes have that does the Wi-Fi and joins the house to the internet.

Press Play (or the → button) and each step lights something up and says what it is.

in one sentence Laptops, phones, consoles, TVs, printers and far-away servers are all hosts; the router in the middle just passes messages along.

3 follow along

Send something to the printer

Now let’s watch one host send a message to another, up close. Two hosts, one cable, each with its MAC address. Step through it and watch the envelope box under the picture: that’s what’s written on each packet.

Try it on your own computer (optional)

Find your own MAC address. You’ll see a different one for Wi-Fi and for Ethernet: they’re different cards.

  • Windows: open Command Prompt (press the Windows key, type cmd, press Enter) and type getmac /v. The Physical Address column is the MAC address, with dashes instead of colons.
  • Mac: open System Settings → Wi-Fi, click Details… next to your network, and look for MAC address. Or in Terminal: ifconfig en0 | grep ether.
  • iPhone or Android: look in Settings for Wi-Fi address (iPhone: tap the ⓘ next to your Wi-Fi network).

Phones often use a private Wi-Fi address: a made-up MAC address, different for every Wi-Fi network, so shops and cafés can’t follow the phone around by its real one. Clever.

in one sentence A host writes to and from MAC addresses on every packet, and the host the to address belongs to keeps it.

4 challenge

Host or not?

Sort these into hosts and not hosts. For each one, ask: does it start or finish conversations of its own, or does it just carry or pass along other people’s messages?

  1. A school Chromebook
  2. A network cable
  3. A smart speaker that plays music when you ask it
  4. A switch
  5. The server that runs a game’s online multiplayer
  6. A Wi-Fi signal
  7. A doorbell camera that sends video to your phone
hint

Things that carry messages, like cables and radio waves, are the road, not the people travelling on it.

hint

If it has its own conversations (play this song, someone’s at the door), it’s a host, however small it is.

show the solution
Host?Why
School Chromebook✅ hostsends and receives its own messages
Network cable❌carries signals, has no conversations
Smart speaker✅ hostasks a server for the song, gets the music back
Switch❌ network devicepasses frames between hosts (lesson 2.1)
Game server✅ hosta server is a host whose job is to answer
Wi-Fi signal❌radio waves: the road, like the cable
Doorbell camera✅ hostsends its own video to your phone

Anything you’d call smart (speakers, bulbs, doorbells, fridges) is a host. People call them the Internet of Things.

5 check: test yourself

Pick an answer for each question. You'll see straight away whether it's right, and why. Questions marked what happens next? are about the animations.

  1. Which of these is a host?

  2. What’s a MAC address?

  3. Why does a long message get chopped into packets?

  4. what happens next?In the animation, the printer receives a packet that says to: BB:BB:BB:22:22:22. That’s the printer’s own MAC address. What does it do?

  5. Wi-Fi does the same job as a cable. What does it use instead of a wire?