Wirebook

Wirebook › Bonus lesson

How does a text message find its way to someone's phone?

Bonus lesson · about 8 minutes · hands-on · nothing you type leaves your browser

You press send and, a second later, your friend's phone buzzes on the other side of town. How did the words get there? Picture the message as a frog. It hops onto a lily pad (a phone tower), and you might guess it keeps hopping from tower to tower all the way across town. But here's the surprise: the frog only hops twice. Once onto a lily pad near you, and once off a lily pad near your friend. Everything in between happens in pipes under the pond.

Send the frog

Pick a plain text or a chat app, choose where your friend is, break some lily pads or switch their phone off, then press Send. Read the story underneath to follow the frog. Nothing is really sent: it's a pretend pond.

Kind of message
Your friend is
Break a lily pad (tower):

–your screen shows
–where the frog is
–radio hops done

    The frog only hops twice

    Phone towers are good at one job: talking by radio to the phones near them, a few hundred metres to a few kilometres away. They don't throw your message from tower to tower across the country. Instead, each tower is plugged into the phone company's network, mostly through fibre-optic cables underground (some towers use a dish that beams to a nearby tower with a cable). So a text goes by radio from your phone to the nearest tower, through cables to the middle of the network, through more cables to the tower near your friend, and by radio onto their phone. Two hops, however far apart you are. That's also why a text to someone in another country still takes about a second.

    The post office in the middle

    For plain texts (SMS, short message service), the middle is a computer called the message centre. It works like a post office: it takes the message, keeps a copy and tells your phone Sent. Then it has a problem: where is your friend's phone right now? Phones move around, so the network keeps an address book, called the home register, that each phone updates whenever it moves near a new tower. The message centre looks your friend up, sends the message to the right tower, and that tower calls out to the phone, which engineers call paging. The phone answers, the message hops on, and a little note travels back saying it arrived. If you've switched on delivery reports, that's when you see Delivered.

    Keeping a copy and passing it on when the next step is ready is called store and forward. It's the reason texts don't just vanish when something goes wrong.

    What if a lily pad is missing?

    There are three places the frog can get stuck, and each one looks different on your screen:

    Plain texts and chat apps

    Chat apps (the kind with ticks) work the same way, frog and all, with a different middle. The message rides as ordinary internet data, over mobile data or Wi-Fi, to the app company's server. Your friend's phone keeps a quiet line open to that server, so it can push the message down straight away. One tick usually means the server has it; two ticks mean it reached their phone. Because they use the internet, chat apps also work over home Wi-Fi with no phone signal at all, which plain texts can't. Many chat apps also lock the message so that only the two phones can read it (end-to-end encryption), so the server is a post office that carries sealed envelopes. Plain texts aren't sealed that way, which is why banks warn you never to share a code that arrives by text.

    How many frogs does a long message need?

    Plain texts were squeezed into the spare room the network had for its own little signals, so each one carries only 140 bytes. Type a message and see how many texts it really needs. One emoji changes everything.

    –texts needed
    –room left in the last one
    –slots used
    –alphabet

    The plain-text alphabet (called GSM-7) uses 7 bits per letter, so 160 letters fit in 140 bytes. It has ordinary letters, numbers, some accents and symbols, but not emoji or curly quotes. Put just one of those in and the whole message switches to a bigger alphabet where every letter takes 16 bits, so only 70 fit, and most emoji take two slots. Long messages are split into parts, and each part gives up a few slots for a label like "part 2 of 3", which is why the limit per part drops to 153 (or 67). Your phone glues the parts back together so you see one message. Want to know how emoji get their numbers in the first place? See why emojis turn into boxes.

    Your turn: where is the frog now?

    Read what's happening, then say where the message is right now. Frogs found: 0

    Related lessons: why a video call freezes when you walk to the kitchen · how a phone knows where it is · how apps get told about new messages · how big files travel in numbered pieces.

    Grown-up twin: Tooltern's help pages on Wi-Fi calling not working and what flight mode turns off, plus an SMS length counter and what Sent but not Delivered means.

    Words from this lesson

    Earn a bonus badge

    Get all 4 right to collect the Frog on lily pads bonus badge. Bonus badges are extra: they don't change your stamp count or rank. Wrong answers are fine: just try again.

    1. How many radio hops does a text make between two phones in different towns?

    2. Your text says Sent, but your friend's phone is switched off. Where is the message?

    3. The tower nearest you breaks. What usually happens to your text?

    4. Why can adding one emoji turn a one-text message into two?

    Try another lesson

    1. 3Can a website get tired?7 min · interactive
    2. 12How does a game remember where you got to?6 min · interactive
    3. 1What happens when you open a web page?6 min · interactive