Computer Networks – IP addresses and binary Week
Starter – complete the introduction by matching the words with the numbered gaps, write the number & word on your whiteboard 1010 IP binary (use twice) on electrical off data electricity Computers can only represent ………(1)…….. using 1s and 0s. This number system is called ………(2)……….. This is because they are ………(3)……………. devices and ………(4)..…………..is either …(5)….(=1) or …(6)…. (=0). All devices connected to a network need an …(7)….. address which to us would look something like………………(8)………………………. However, a computer can only recognise this when it is converted to………(9)………… so that’s what we’re doing today!
In today’s lesson: Success Criteria ALL: Successfully convert smaller numbers to/from binary. Understand that each device connected to a network needs an IP address. MOST: Successfully convert IP addresses to and from binary. Be able to explain why a device needs an IP address to connect to a network. SOME: Be able to explain why a new system of IP addresses has to be used. Be able to convert to/from binary numbers and write an IP address as a binary number Understand why devices need an IP address Understand the issue with the current format of IP addresses Lesson Objectives 1010
Literacy -Today’s key words IP address Binary Denary IPv4 IPv6 1010
Can you remember what an IP address looks like? An IP address is a 32-bit numeric address written as four bytes separated by full stops (these are called octets). Each number can be 0 to 255. For example, could be an IP address. Within your home network, your devices could be assigned IP addresses at random as long as each one is unique. However, connecting your home network or a server to the Internet via your ISP requires using registered IP addresses (called Internet addresses) to avoid duplicates. Some combinations such as or are restricted 1010
IP addresses and binary As computers only use binary, an IP address must be stored as a binary number for the computer/network’s use, but can is written as numbers that we recognise for human users. For example: Byte 1 (the network) Byte 2 Byte 3 Byte 4 (the device)
You might need a refresher on binary so here we go: We use Base 10 so everything goes up in 10s and we can use all the numbers from 0 to 9 = (0 x 10000) + (1 x 100) + (6 x 10) + (1 x 8) = 168 Binary uses Base 2 so everything goes up in 2s and only uses 1 or 0. =(1 x 128) + (0 x 64) + (1 x 32) + (1 x 16) + (0 x 8) + ( 0 X 4) ( 1 X 2) + ( 0 x 1) =
8 An Example The value of binary is decimal 105. This is worked out below: X 1= 1 0 X 2 = 0 0 X 4 = 0 1 X 8 = 8 0 X 16 = 0 1 X 32 = 32 1 X 64 = 64 0 X 128 = Total them to get the Answer: 105
9 Another example The value of binary is decimal 156. This is worked out below: X 1= 0 0 X 2 = 0 1 X 4 = 4 1 X 8 = 8 1 X 16 = 16 0 X 32 = 0 0 X 64 = 0 1 X 128 = Total them to get the Answer: 156
Binary Conversions Learning Check …Easy…. On your whiteboard, convert these numbers from binary to denary:
Binary Conversions Learning Check …Harder …. On your whiteboard, convert these numbers from binary to denary:
Binary Conversions Learning Check …Hardest …. On your whiteboard, convert these numbers from binary to denary:
Binary Conversions Learning Check …Easy-ish…. On your whiteboard, convert these numbers from denary to binary:
Binary Conversions Learning Check …Harder …. On your whiteboard, convert these numbers from binary to denary:
So how does this work with IP addresses? 1010
How many IP addresses are there? This 32-bit IP address system is also known as IPv4. It allows for 2 32 or around 4 billion unique addresses. But …… There are currently billions of devices connected to the Internet. This number is set to grow with the increase in internet capable smart devices and machines (e.g. televisions, air conditioners, washing machines, lights, cars etc.). All will have to connect and communicate through some form of IP Address. 1010
There’s an IP Address shortage While nearly 4 billion unique combinations might sound like a lot, the huge growth in internet connected devices means we have nearly run out of available IPv4 addresses. Most devices are “loaned” a dynamic IP address for a period of time, apart from servers which get a static IP address that doesn’t change. So, IPv6 is now coming into use. IPv6 uses 16 bits for each section of the address, creating a 128-bit address. This allows for a MASSIVE number of IP addresses – in fact, almost 80 octillion or a thousand quadrillion or unique IP addresses. 1010
What do IPv6 IP addresses look like? IPv6 addresses are 128-bit IP address written in hexadecimal and separated by colons. An example IPv6 address could be written like this: 3ffe:1900:4545:3:200:f8ff:fe21:67cf As an extension task, you can find out more about hexadecimal numbers, we’re not covering them today!!! 1010
What to do now Make sure you have a folder in your work area called Computer Networks Log into Moodle Go to ICT & Computing > Year 8 > Digital Networks > Week 4 Download to your documents the worksheet called IP Addresses and Binary (not to downloads, put it in your correct folder!) Open it and complete it. Print by end of lesson! 1010
Q6 answers = Vodafone, Germany 2.Microsoft 3.Amazon (actually it’s for intu the Trafford Centre, whose website is hosted by them at that IP address) = McDonalds, America Because websites are often on shared servers, a search to find information about the IP address doesn’t necessarily give you the name of each company, it gives you the name of the hosting company. Also, an IP address may change, so it could be that an IP address won’t work Not all IP addresses are listed in the databases used by the “lookup” tools online
Plenary – how well have you done today? Which Success Criteria have you met? Can you……? ALL: Successfully convert smaller numbers to/from binary. Understand that each device connected to a network needs an IP address. MOST: Successfully convert IP addresses to and from binary. Be able to explain why a device needs an IP address to connect to a network. SOME: Be able to explain why a new system of IP addresses has to be used. 1010