☰ Year plan · Communication Technology

Networks and the internet

Week 7 · Chapter 8 Networks: computer networks, IP addresses and domain names, protocols, how web pages and e-mail work, network transfer speed · 3 lessons
2

Addresses, names and shared rules

ICT Secondary 1 Term 1, Chapter 8: pp. 95–110
GoalRead an IPv4 address, explain what a domain name and DNS do, and name the roles of common protocols.
New words
IP address · a number that identifies a device on a networkdomain name · a name people can remember, such as school.exampleDNS · the service that turns a domain name into an IP addressprotocol · a set of agreed rules for communicating
Explanation

Every device on a network needs an address so that data can find it. An IPv4 address has four numbers separated by dots, and each number is a byte, from 0 to 255; together they have 32 bits. For example 192.0.2.15 is written in binary as 11000000.00000000.00000010.00001111. An address such as 192.0.2.256 is not valid, because 256 is above 255. IPv6 addresses are longer and give many more addresses. People remember names better than numbers, so a domain name such as school.example is used, and the DNS works like a phone book: it translates the name into the IP address. A protocol is a set of agreed rules, like the rules of a game that both players know. The internet uses layers, each with one job: the application layer holds the rules of services (HTTP for web pages, SMTP for sending mail, POP and IMAP for receiving mail); the transport layer splits data into packets and checks that they arrive; the internet layer adds addresses and finds the route; the link layer sends the bits over cable or radio. Because every layer does only one job, each can be improved without changing the others.

LayerJobExamples
applicationrules of a serviceHTTP, SMTP, POP, IMAP
transportsplit into packets, check arrivalTCP
internetaddresses and routesIP
linkbits over cable or radiocable, radio
Worked examples
AddressValid?Reason
10.0.0.5yesfour numbers, all 0–255
192.168.1.20yesfour numbers, all 0–255
192.168.1.256no256 is above 255
192.168.1noonly three numbers
Which of these are valid IPv4 addresses? 10.0.0.5 is valid. 192.168.1.20 is valid. 192.168.1.256 is not (256 is above 255). 192.168.1 is not (it has only three numbers).
When you type school.example, the DNS finds the address, like a phone book. Then the browser can reach the server.
Class activity

Invent a small network of five devices at home or school. Give each a valid IPv4 address (four numbers from 0 to 255) and write one domain name for the server using the ending .example. Then show which line of your list a DNS would look up.

Practice
1
What range of values can each number of an IPv4 address have?
2
Write 255, one number of an IPv4 address, in binary.
3
Which protocol is used for web pages?
4
Which layer adds addresses and finds the route?