Week 13 · Unit 5: Network devices and websites · 3 lessons
3
How a page reaches you
Computing 5: Unit 5, pp. 58–69
GoalDescribe, in order, what happens from typing a URL to seeing a web page.
New words
request · a message that asks a server for something, such as a web pageresponse · what the server sends back after a requestbrowser · a program that finds web pages and shows them on the screenDNS · the internet’s address book; it finds the IP address that goes with a name
Explanation
When you type a URL and press Enter, your browser makes a request. The request goes out through your router. The name must be changed into an IP address, so a service called DNS looks it up, like a number in an address book. Then the request travels across the internet to the server that has that address. The server sends a copy of the web page back as its response. Your browser reads the copy and shows the page on your screen. Ordering food in a café is similar: you say the name of a dish, the waiter finds its number on the menu, and the kitchen sends the dish back to your table.
Worked examples
Step
What happens
1
You type the URL and press Enter.
2
The browser makes a request for the page.
3
The router sends the request out, and DNS finds the IP address.
4
The request travels across the internet to the server with that address.
5
The server sends a copy of the page back.
6
The browser shows the page.
Here are the six steps from typing to seeing a page.
Café
Web page
you say the name of a dish
you type a URL
the waiter finds the dish’s number on the menu
DNS finds the IP address
the order goes to the kitchen
the request travels to the server
the kitchen sends the dish to your table
the server sends a copy of the page to your browser
Asking for a web page is like ordering in a café where the kitchen works only with dish numbers.
Why
What to do
a letter in the URL is wrong
check the spelling and try again
there is no internet connection
wait, or ask an adult to look at the router
a strange page asks for secrets
close it and tell a trusted adult
A page may not open. Here are some reasons and what to do.
Class activity
Page delivery (5 or 6 players). Roles: user, browser, router, DNS, server. DNS holds a list on paper, for example ‘tiger-club = 10.5.1.2’, ‘kite-fun = 10.5.1.7’. The user writes a name on a card and hands it to the browser. The browser takes it to the router, who asks DNS for the number. The router sends a request card with the number to the server. The server draws a small page and sends it back the same way. Time how long it takes. Then ask for a name that DNS does not have. What happens? Write the steps in order.
Practice
1
True or false? (a) DNS stores the web page. (b) The server sends a copy of the page back to the browser. (c) The URL is changed into an IP address before the server is contacted.
(a) False. DNS only looks up addresses, and the server stores the page. (b) True. (c) True.
2
The browser asks for ‘chess-fun’. What IP address does DNS give? What happens if the browser asks for ‘dance-club’?
Name
IP address
paint-club
10.8.1.9
chess-fun
10.8.2.4
maths-tips
10.8.3.7
DNS gives 10.8.2.4. There is no entry for ‘dance-club’, so DNS cannot find an address and the browser shows an error.
3
Mia types a URL with one letter missing and sees an error. Why? What should she do?
DNS cannot find an address for the wrong name, or the name belongs to another site. She should check the spelling. If a strange page opens, she should close it and tell a trusted adult.
4
A small bakery has two wired tills and a receipt printer. The baker also carries a tablet around the shop, and the bakery needs the internet. Which device does each need? Give one advantage of joining them in a network.
A switch joins the two tills and the printer with cables. An access point lets the tablet join without a cable. A router joins the network to the internet. Advantage: for example, both tills can use the one printer and the one internet connection.