Skip to content

← Grade 7

Networks and the Internet

Unit 6 · Networks and the internet

Hide the stories, facts, photos, activities and interactives, for revising before an exam
In this unit 10 sections
  1. A message in pieces: packets
  2. Addresses
  3. Routers: passing packets along
  4. Wi-Fi, mobile data and cables
  5. Why it keeps working
  6. Making a data pack last
  7. Sharing a connection: the hotspot
  8. Your home Wi-Fi router
  9. In short
  10. Exercise

Anisha is in Bhaktapur. Her cousin Sujan is in Pokhara, about 150 kilometers away as the crow flies, a full day’s bus ride on the winding road. Anisha types “Namaste from Bhaktapur!” and taps Send. Before she can put her phone down, Sujan’s phone buzzes. If her other cousin in New York had been the one, it would have taken hardly any longer.

In Grade 6 you learned that the internet is a network of networks, that your phone joins it through a Wi-Fi router or a mobile tower, and that servers keep the websites you visit. In this unit you will open up the middle of that picture. You will see a message cut into small pieces and sent across a network, find out what an address and a router really do, follow the cables and radio waves that bring the internet into Nepal, and break links on purpose to see why the internet keeps working. Then the practical part: what eats up a data pack and how to make it last, sharing your phone’s data with a hotspot, and making a home Wi-Fi router safe.

A message in pieces: packets

Suppose a shop in Bhaktapur sends a big order of books to a school in Pokhara. It doesn’t wait for one huge truck. It packs the books in six boxes, numbers them 1 of 6, 2 of 6, and so on, and writes the school’s address on every box. The boxes may travel on different buses, by different roads, and arrive in any order. At the school, someone checks the numbers: if box 4 is missing, they ring the shop and ask for box 4 again.

The internet sends everything the same way. Your message, a photo, a voice note, a video: each is cut into small pieces called packets. Each packet carries two things:

  • a header, the label: the address it is going to, the address it came from, and its number in the message;
  • the data: one piece of the message itself.
header: the label every router readsdata: one piece of the messageto: 198.51.100.7 (a phone in Pokhara)from: 203.0.113.25 (a phone in Bhaktapur)number: packet 3 of 6“from”a few dozen bytesup to about 1,460 bytes(not drawn to scale) header: the labelevery router readsto: 198.51.100.7(a phone in Pokhara)from: 203.0.113.25(a phone in Bhaktapur)number:packet 3 of 6a few dozen bytesdata: one pieceof the message“from”up to about 1,460 bytes(not drawn to scale)
Figure 6.1 One packet. The header is the label that every router reads; the data is the piece of the message it carries. The addresses are numbers, as the next section explains. Most packets carry at most about 1,500 bytes, so a photo of 2 megabytes travels as well over a thousand packets.

When the packets arrive, the receiving phone puts them back in order by their numbers and joins the pieces up again. This is called reassembling the message.

What if a packet is lost on the way? The routers can’t help: they keep no copies, so a lost packet is simply gone. The two ends put it right. The receiving phone keeps telling the sender which numbers have arrived, and the sender sends again any piece that hasn’t been confirmed.

Try it

Send a message in packets

Press Send. The message is cut into numbered packets, and each router passes each packet on, one step nearer Pokhara. Watch the packets take different ways, and look at the order they arrive in. Then type your own message (up to 32 characters) and send it.

BhaktapurPokharaEach circle is a router
Cut into packets
  1. 1Nama
  2. 2ste·
  3. 3from
  4. 4·Bha
  5. 5ktap
  6. 6ur!
Pokhara puts them in order
  1. 1 
  2. 2 
  3. 3 
  4. 4 
  5. 5 
  6. 6 
Packets sent
0
Arrived
0 of 6
Order they came in
–

The message is cut into 6 packets of 4 characters, each with its number. Press Send.

Why cut a message into pieces?

It seems like extra work. Why not send the whole message in one go? There are three good reasons.

  1. Sharing the line. A cable between two cities carries packets from millions of people at once, one after another, like vehicles taking turns on one road. If one person’s long video had to go in one piece, everyone else would wait behind it.
  2. Losing a little, not everything. If something goes wrong on the way, only one small packet is lost, and only that packet is sent again, not the whole video.
  3. Each piece can go its own way. If one road is busy or broken, the next packets can go by another. No one route has to work the whole time.

Why does every packet carry a number?

Pick an answer to see why.

A video call breaks for a moment and one packet is lost. What happens?

Pick an answer to see why.

Addresses

A box of books with no address can’t be delivered. A packet is the same. Every device on the internet has an address, so that packets can be sent to it.

These addresses are numbers, called IP addresses (IP stands for Internet Protocol, the rules that every device on the internet follows). The most common kind is four numbers with dots between them, like 203.0.113.25. Each of the four numbers is between 0 and 255. Why 255? Because each one is a byte, 8 bits (Unit 2), and 8 bits can count from 0 to 255. So the whole address is 4 bytes, 32 bits.

People find numbers hard to remember, so websites also have names, like moecdc.gov.np. Before your phone can send anything to a website, it looks up that name’s number, the way you look up a friend’s number in your phone’s contacts. (You will see how that lookup works in Grade 9.)

Addresses at home

Your home has many devices: phones, a laptop, maybe a TV. They don’t each get an address on the internet. The home’s Wi-Fi router gives each device a home address, used only inside the home, usually beginning 192.168. To the rest of the internet, the whole home has just one address: the router’s.

When your phone asks a website for a page, the router sends the request out with the home’s address on it, and it remembers which device asked. When the page comes back to the home’s address, the router hands it to the right device, like a hostel warden who takes in every parcel at the gate and knows whose room each one goes to.

phone192.168.1.5laptop192.168.1.8smart TV192.168.1.12radioWi-Fi routerhome side: 192.168.1.1internet side:203.0.113.25cablefiber boxelectric signals⇄ lightfiberinternetserviceproviderthe rest ofthe internetInside the home, each device hasits own home address; outside,the whole home has one address. phone192.168.1.5laptop192.168.1.8smart TV192.168.1.12radioWi-Fi routerhome side: 192.168.1.1internet side:203.0.113.25cablefiber boxelectric signals ⇄ lightfiberinternet serviceproviderthe rest of the internetInside the home, each device has itsown home address; outside, the wholehome has one address.
Figure 6.2 A home network. The devices reach the Wi-Fi router by radio, and the router gives each one a home address. A short cable joins the router to the fiber box, and a fiber cable runs to the internet service provider. In many homes in Nepal, the router and the fiber box are one box. The addresses here are examples.

What is an IP address?

Pick an answer to see why.

Three phones in one home are using the same Wi-Fi. How do they look to a website far away?

Pick an answer to see why.

Routers: passing packets along

How does a packet from Bhaktapur find its way to one phone in Pokhara, out of billions of devices? Nobody plans the whole route. Instead, at every step, a router decides only the next step.

A router is a device that joins networks together and passes packets between them. When a packet arrives, the router reads the address in its header, nothing else, and sends the packet out along the link that leads nearer to that address. The next router does the same, and the next, until the packet reaches the network its address belongs to.

It is like a parcel sent through the post. The post office in Bhaktapur doesn’t know the way to every house in Pokhara. It only knows that parcels for Pokhara go on the bus west. The office in Pokhara knows which part of the city, and the local postman knows the house. Each one needs to know only the next step.

How does a router know the next step? Each router keeps a list, its routing table, of which link leads towards which addresses. And routers keep talking to the routers next to them: “I can reach these addresses.” So when a new link opens or an old one breaks, the news spreads from router to router, and within seconds or minutes they all know the new ways.

A packet from your phone to a server in another country often passes through 10 to 20 routers, sometimes more. Each step from one router to the next is called a hop.

Who does which job

A network needs several kinds of devices, each with its own job. You have met most of them:

Device Its job
end devices: phones, computers, servers send and receive messages; a server keeps websites and files and sends them to anyone who asks
router reads each packet’s address and passes it on, one step nearer; joins networks
Wi-Fi (in the router, or a separate access point) carries data by radio between devices and the router, over a few rooms
switch joins many computers in one building by cable, as in a school’s computer lab
fiber box (an ONT) turns the electrical signals of a home or office into flashes of light in a fiber cable, and back
mobile tower carries data by radio between phones and the phone company’s network, over a few kilometers
cables copper cables carry electrical signals over short distances; optical fiber carries light for long ones

Try it

Which part does the job?

Each card describes a job. Tap the part of the network that does it.

reads the address on each packet and sends it one step nearer

Which part of the network does this job?

Tap a group above.

Card
1 of 8
Right the first time
0

How fast?

Signals in an optical fiber travel as light in glass, at about 200,000 kilometers per second (two-thirds of the speed of light in empty space).

Wi-Fi, mobile data and cables

Follow a message out of Anisha’s phone, all the way to the world.

The first step: radio

The first step is almost always by radio, invisible waves of the same family as light and the signals that FM radio stations send.

  • Wi-Fi carries data by radio between a device and a Wi-Fi router. It reaches a few rooms, tens of meters. Brick and concrete walls, and floors, weaken it, so a router high up in the middle of a home reaches more of it than one in a corner cupboard.
  • Mobile data carries data by radio between a phone and the nearest mobile tower, usually within a few kilometers. Each tower is joined to the phone company’s network by a fiber cable, or, in the hills, often by a radio link to another tower on the next ridge. Your SIM card tells the network which customer you are, so it knows whose data pack to count.

Cables in Nepal

From the router or the tower, the message goes by cable. Most new home connections in Nepal are fiber to the home: a thin optical fiber cable runs from the internet company’s equipment, along the poles in the street, right into the house, to a fiber box. There the flashes of light become electrical signals for the router.

A white Wi-Fi router with two antennas and a row of blue lights labeled Power, PON, Internet, WLAN and USB, with a thin yellow cable going into it
Figure 6.3 A home fiber router, the fiber box and the Wi-Fi router in one case. The thin yellow cable is the optical fiber. The lights say what is working: PON, the light link through the fiber; Internet, the connection to the internet company; WLAN, the Wi-Fi. On many such boxes a red light marked LOS means “loss of signal”: no light is coming through the fiber. Photo: Solijon Solayev, CC BY-SA 4.0
A wooden electricity pole in a Kathmandu street wrapped in a huge tangle of black wires and coiled cables, with shop signs below
Figure 6.4 Electricity, telephone, cable TV and internet cables on one pole in Kathmandu. Each internet company runs its own cables to its customers, so in a busy street the cables pile up. Photo: Subhashish Panigrahi, CC BY-SA 4.0

From the internet companies, bigger fiber cables run between cities, along the main roads. In the Kathmandu Valley the companies’ networks meet at an internet exchange, the Nepal Internet Exchange (npIX), where they pass each other’s packets directly. So when Anisha in Bhaktapur, with one company, sends a message to Sujan in Pokhara, with another, it can stay inside Nepal the whole way.

How the internet reaches Nepal

Most websites and apps are kept on servers in other countries. Nepal has no coast, so no cable from under the sea comes ashore here. Instead, fiber cables cross the border by land.

to China’s networksto India’s networks, and on to cables under the seaBiratnagarBirgunjBhairahawaRasuwagadhiTatopaniPokharaKathmandu: npIX,where Nepal’s internetcompanies meetCables drawn straight; the real ones follow the roads. to China’s networksRasuwagadhiTatopaniPokharaKathmanduBhairahawaBirgunjBiratnagarto India’s networks, and onto cables under the seaCables drawn straight; the real ones follow the roads.
Figure 6.5 Nepal’s links to the world. Fiber cables cross into India at several places in the Terai, such as Biratnagar, Birgunj and Bhairahawa, and into China over the mountains at Rasuwagadhi and Tatopani. From there, the packets go on through India’s and China’s networks, and from India’s coast through cables under the sea to the rest of the world.

Across oceans, almost all the world’s internet travels in cables lying on the sea bed, thousands of kilometers long. A few satellites carry some too, especially to places no cable reaches, but cables carry far more, far more cheaply.

Five short pieces of cable standing upright on a display, from a thick one wrapped in black armor and steel wires to a thin white one, with hair-thin glass fibers sticking out of the top of each, and a coin beside them for size
Figure 6.6 Pieces of cable made to lie on the sea bed, cut open to show their layers. The hair-thin glass fibers in the middle carry the data; everything around them is protection. Near the shore, where ships’ anchors and fishing nets could catch them, cables are thick and armored with steel wire (left); in the deep ocean, where little can reach them, they are thin (right). The coin is about 2.4 cm across. Photo: Lonnie Hagadorn, CC BY-SA 4.0

Your phone shows full Wi-Fi bars, but no website opens. What could be the reason?

Pick an answer to see why.

How does the internet reach Nepal from other countries?

Pick an answer to see why.

Why it keeps working

A tree falls on a line in Dhulikhel. A router in a Kathmandu data center breaks down. A landslide cuts a cable in the hills. Every day, links break somewhere, and almost nobody notices. Why?

Because the internet has no center. If every message went through one central place, that place breaking would stop everything. Instead, the internet is a mesh: each router is joined to several others, so between any two places there are usually many ways. When a link breaks:

  1. the packets that were on it at that moment are lost;
  2. the routers on each side notice, and tell their neighbors that this way is gone;
  3. the next packets go by another way;
  4. the two ends notice which numbers never arrived, and the sender sends those packets again.

This ability to keep working when parts fail is called resilience.

ABOne centerA mesh, like the internetThe hub fails: nobody can reach anybody.A link breaks: A still reaches B another way. ABOne centerThe hub fails: nobody can reach anybody.A mesh, like the internetA link breaks: A still reaches B another way.
Figure 6.7 On the left, every place is joined through one center: when it fails, nobody can reach anybody. On the right, the same places are joined as a mesh, like the internet: one link breaks, and a message from A to B simply goes round it. Paul Baran drew networks like these in 1964.

Try it

Break the network

Press Send, and while the packets are moving, tap a link to break it. Watch what happens to a packet on that link, and to the packets after it. Then try to stop the message completely. Which single link stops everything? What is the fewest links you must break inside the middle of the network to stop everything?

BhaktapurPokharaTap a link to break it, or to mend it
Cut into packets
  1. 1Nama
  2. 2ste·
  3. 3from
  4. 4·Bha
  5. 5ktap
  6. 6ur!
Pokhara puts them in order
  1. 1 
  2. 2 
  3. 3 
  4. 4 
  5. 5 
  6. 6 
Packets sent
0
Arrived
0 of 6
Order they came in
–

The message is cut into 6 packets of 4 characters, each with its number. Press Send.

Hint
Answer

The weak points are at the edges

The middle of the internet is a mesh, but the edges are not. Your home has one fiber cable; your phone reaches one tower at a time; a small town may be joined to the rest by one cable along one road. A break there cuts off everyone behind it, however many ways the middle has. That is why internet companies join important places by two cables along different roads, and why Nepal’s second way to the world, over the mountains to China, mattered so much: when a country has only one way out, one cut can silence it.

Copies in many places

There is one more reason the internet holds up: the things people use most are kept in many places at once. A big website or video app keeps copies of its pages and popular videos on servers in many countries, some even inside internet companies’ own networks. So a popular video often comes from a copy close to you, and if a link far away breaks, or a server fails, the nearest copy still answers. It is quicker for you, too.

Why does the internet keep working when one link breaks?

Pick an answer to see why.

Which break would cut off a whole village from the internet, while the rest of Nepal carries on?

Pick an answer to see why.

Making a data pack last

A data pack is an amount of mobile data you pay for, such as 1 GB to use within 7 days. Every packet your phone sends or receives over mobile data counts against it, whether you are looking at the screen or not.

What uses the most? Anything with video, by far. Text is tiny: a chat message is a few thousand bytes. A photo sent in a chat app is about a fifth of a megabyte, because the app shrinks it first. Sound needs more, but a voice call is still small. Video is a moving picture, many pictures a second, and its data adds up fast. And the higher the quality (the sharper the picture), the more data each minute takes.

Try it

What uses up a data pack?

Set a day of phone use for yourself, or for someone in your family, and see how much each thing uses. Then change the video quality.

Chat messages0.3 MBPhotos in chats2 MBVoice calls11 MBVideo calls60 MBWatching videos360 MBA day in all434 MB
Video quality:
In a day
434 MB
In 30 days
12.7 GB
A 1 GB pack lasts
2.4 days

Watching videos uses 83% of today’s data. Lower the video quality, or watch on Wi-Fi, and the pack lasts much longer.

Where the data goes without you

Some data is used when you aren’t even holding the phone:

  • App updates can be tens or hundreds of megabytes each.
  • Backups of photos and videos to the internet, which many phones do by themselves.
  • Autoplay: a video app starting the next video, or a feed playing videos as you scroll past them, even with the sound off.
  • Apps running in the background, checking for news, adverts and messages.

Ways to save data

  1. Big things on Wi-Fi. Set app updates and photo backups to “Wi-Fi only”. Download videos, films and maps at home on Wi-Fi, to watch or use later.
  2. Lower the video quality. On a phone’s small screen, medium quality looks almost as good as high, at a quarter of the data or less.
  3. Switch off autoplay in video and social media apps.
  4. Turn on data saver (it may be called low data mode): the phone stops most apps using data in the background.
  5. A voice call instead of a video call, when the picture isn’t needed.
  6. Check the list of apps by data each month, and stop the ones that take more than they are worth.

Which of these would use the most data in an hour?

Pick an answer to see why.

Try it

A lot of data, or very little?

For each thing someone does on a phone with mobile data, tap whether it uses a lot of data or very little.

watching a cricket match live for an hour

Does it use a lot of data, or very little?

Tap a group above.

Card
1 of 8
Right the first time
0

Sharing a connection: the hotspot

Sujan needs to send his project from a laptop, but the laptop has no internet. His phone has mobile data. He can turn on the phone’s hotspot: the phone becomes a small Wi-Fi router, and shares its mobile data with the laptop, or any other device that joins, through Wi-Fi.

Things to know about a hotspot:

  • Every device that joins uses your data pack. A laptop uses data faster than a phone: it updates programs, backs up files and loads full-size web pages. Watch the data left.
  • Set a strong password for the hotspot, like a Wi-Fi password (below), so that strangers nearby can’t join and use up your pack.
  • It uses the battery fast, and the phone may get warm. Keep the phone charging if you can.
  • Switch it off when you have finished.

Your home Wi-Fi router

A home Wi-Fi router does several jobs in one box: it is a router (joining the home’s network to the internet company’s), a Wi-Fi radio, often the fiber box too, and it gives out home addresses. Anyone who knows its Wi-Fi password can join the home network: they use the connection, can slow it down, and may be able to see the other devices on it. Anyone who gets into its settings can change everything, even lock you out.

So a home router needs two different passwords:

  • the Wi-Fi password, which people type to join the Wi-Fi;
  • the admin password, which opens the router’s settings page. A new router comes with a simple one, often printed on its label and the same on thousands of routers. It must be changed.

Making it safe

Do this with an adult at home; the router belongs to the whole family, and a wrong setting can cut everyone off.

  1. Find the label on the bottom or back of the router. It gives the address of the settings page (a number such as 192.168.1.1) and the first admin password.
  2. Open the settings page. On a phone or laptop joined to the router’s Wi-Fi, type that address into the browser, and log in. (Some internet companies give an app to do this instead.) Change only the settings below: if something else is changed by mistake and the internet stops, the internet company can put it right.
  3. Change the admin password to a long one. Write it down and keep it at home.
  4. Choose the Wi-Fi name (also called the SSID). Don’t use your family’s name or house number: the name can be seen by everyone nearby.
  5. Set a strong Wi-Fi password: three or four random words, as you learned in Grade 6, at least 12 characters. Choose the strongest security the router offers. Every device then drops off the Wi-Fi, the one you are using too, and must join again with the new password, so have it written down first.
  6. Look at the list of connected devices. Do you know every one? If not, change the Wi-Fi password, and all of them must join again with the new one.
  7. Restart it now and then, and let it install updates, which fix weaknesses.

Why should the admin password that comes with a new router be changed?

Pick an answer to see why.

In short

Exercise

What is a packet?

Pick an answer to see why.

What does a router read in each packet it passes on?

Pick an answer to see why.

Which of these could be an IP address?

Pick an answer to see why.

A packet from Kathmandu to a server abroad passes through 15 routers. What is each step from one router to the next called?

Pick an answer to see why.

Why did a second link to the world, through China, make Nepal’s internet more resilient?

Pick an answer to see why.

Rita’s 2 GB pack runs out in three days, though she mostly just chats. Which is the most likely reason?

Pick an answer to see why.

a.

Explain why a message is cut into packets before it is sent over the internet. Give three reasons.

Answer
b.

Draw a packet and label its parts. Then explain how the receiver puts a message back together when its packets arrive in the order 3, 1, 4, 2.

Answer
c.

What is the job of: i. a router, ii. a server, iii. a fiber box, iv. a mobile tower?

Answer
d.

Your home has three phones and a laptop on one Wi-Fi. How many addresses does the home have on the internet? How does the router know which device each incoming page belongs to?

Answer
e.

Light in optical fiber travels about 200,000 km a second. How long does it take to cross: i. a 30 km cable from Kathmandu to Dhulikhel and back? ii. a 9,000 km cable under the sea?

Answer
f.

Describe how the internet reaches a phone in Pokhara from a server in another country.

Answer
g.

“The internet has no center.” What does this mean, and why does it make the internet resilient? Where are its weak points?

Answer
h.

Use the figures in this unit (video calls about 6 MB a minute; medium-quality video 12 MB a minute; high quality 50 MB a minute). Kabita has a 3 GB pack for 30 days. She makes a 15-minute video call every day. How much data is left each day for videos? How many minutes of medium-quality video is that? And of high quality?

Answer
i.

Write five ways to make a mobile data pack last longer, and say why each one helps.

Answer
j.

Your friend wants to turn on her phone’s hotspot so that three classmates can use the internet on their laptops. What should she do, and what should she watch out for?

Answer
k.

List the steps to make a new home Wi-Fi router safe. Why must the admin password be changed even if the Wi-Fi password is strong?

Answer
l.

On a stormy evening, the fiber cable to Bimal’s home is cut by a falling branch. Which of these still work, and which don’t? Explain. i. Bimal’s phone on Wi-Fi; ii. Bimal’s phone on mobile data; iii. the internet in the rest of his town; iv. a message from Bimal’s sister in Kathmandu to their cousin in Pokhara.

Answer