AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

From a URL to a page

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.

browserrouterinternetwebsite serverDNS
Worked examples
StepWhat happens
1You type the URL and press Enter.
2The browser makes a request for the page.
3The router sends the request out, and DNS finds the IP address.
4The request travels across the internet to the server with that address.
5The server sends a copy of the page back.
6The browser shows the page.
Here are the six steps from typing to seeing a page.
CaféWeb page
you say the name of a dishyou type a URL
the waiter finds the dish’s number on the menuDNS finds the IP address
the order goes to the kitchenthe request travels to the server
the kitchen sends the dish to your tablethe 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.
WhyWhat to do
a letter in the URL is wrongcheck the spelling and try again
there is no internet connectionwait, or ask an adult to look at the router
a strange page asks for secretsclose 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.
2
The browser asks for ‘chess-fun’. What IP address does DNS give? What happens if the browser asks for ‘dance-club’?
NameIP address
paint-club10.8.1.9
chess-fun10.8.2.4
maths-tips10.8.3.7
3
Mia types a URL with one letter missing and sees an error. Why? What should she do?
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.
2 wired tillsreceipt printertablet that movesinternet