Week 12 · Unit 5: Network devices and websites · 3 lessons
3
Every device has an address
Computing 5: Unit 5, pp. 58–69
GoalExplain what an IP address is and why each device on a network needs its own.
New words
IP address · four numbers separated by full stops that name one device on a networkunique · belonging to one thing only, so that no other thing has the samedestination · the device that data is going todata · facts, messages, pictures and sounds that a computer stores or sends
Explanation
Data must reach the right device, so every device on a network has an IP address. It is four numbers separated by full stops, such as 10.4.2.17. Each number is from 0 to 255. An IP address works like a house number in a street: it tells the network where to deliver the data. No two devices on the same network may have the same address. If they did, data could go to the wrong device. A router gives each device its address when it joins. IP stands for Internet Protocol.
Part of an IP address
Example
four numbers
10 . 4 . 2 . 17
each number is from
0 to 255
numbers are separated by
full stops
Worked examples
Device
IP address
laptop
10.4.2.11
printer
10.4.2.12
tablet
10.4.2.13
server
10.4.2.14
This table shows a club hall network. Each device has its own address. On a small network the first three numbers are often the same, and only the last number is different.
The laptop wants to print. It sends the data to the address 10.4.2.12. Only the device that has this address accepts the data, so the page comes out of the printer.
Written as
Possible?
Why
10.4.2.17
yes
four numbers, each from 0 to 255
10.4.2
no
only three numbers
10.4.2.300
no
300 is more than 255
10.4.2.17.5
no
five numbers
10 4 2 17
no
the numbers are not separated by full stops
Not every set of numbers is an IP address. Look at these five. Each address needs exactly four numbers, and each number must be from 0 to 255.
Class activity
Street game (4 to 8 players). Write an address such as 10.1.1.1, 10.1.1.2, 10.1.1.3 and so on, on a card for each player, and stand in a row. One player is the router and holds the notes. Every note has a destination address. The router reads the address and delivers the note to the right player. Then give two players the same address and deliver three notes to it. What goes wrong? How can the router fix the problem?
Practice
1
Which of these can be an IP address: 172.16.0.9, 172.16.0, 172.16.0.256 or 172.16.0.9.4?
Only 172.16.0.9. It has four numbers from 0 to 255 with full stops. The others have three numbers, a number above 255 and five numbers.
2
Look at the table of a classroom network. Which two devices have a problem? How can it be fixed?
Device
IP address
Desk 1
10.6.3.21
Desk 2
10.6.3.22
Desk 3
10.6.3.21
Teacher
10.6.3.23
Desk 1 and Desk 3 have the same address, 10.6.3.21. Data for one of them could go to the other. Give one of them a new address that nobody uses, such as 10.6.3.24.
3
Tell a friend why each device needs a different IP address. Use the idea of a street.
Each house in a street has its own number so that post goes to the right house. Each device has its own IP address so that data goes to the right device. If two houses had the same number, the post could go to the wrong one.
4
The router has given 10.2.0.1, 10.2.0.2 and 10.2.0.3 to three devices. A new phone joins the network. Write an address that the router could give to the phone.
Any address that starts 10.2.0 and ends with a number that is not used yet, for example 10.2.0.4 or 10.2.0.10. It must not be 10.2.0.1, 10.2.0.2 or 10.2.0.3.