Topic 3 · Hardware (network hardware)
IP addresses: IPv4, IPv6, static, dynamic and routers
▶ Watch the video lessonShort, exam-focused explanation of this topic on the CS with Aamir YouTube channel.Every device that connects to a network or the internet needs an IP (Internet Protocol) address, so that data can be sent to the right place. You need to know the two versions of IP address, the difference between static and dynamic addresses, and what a router does.
IPv4 and IPv6
| IPv4 | IPv6 | |
|---|---|---|
| Size | 32 bits | 128 bits |
| Format | 4 groups of denary numbers (0–255) separated by full stops | 8 groups of 4 hexadecimal digits separated by colons |
| Example | 192.168.0.1 | 2001:0db8:85a3:0000:0000:8a2e:0370:7334 |
IPv6 was introduced because the world was running out of IPv4 addresses. With 128 bits there are far more possible addresses, enough for every device for the foreseeable future.
Static and dynamic IP addresses
- A static IP address is permanently assigned to a device and does not change. It is useful for devices that must always be found at the same address, such as web servers and printers. It can cost more, and because it never changes it can be easier for hackers to target.
- A dynamic IP address is assigned each time a device connects to the network and can change. It is normally given automatically by the internet service provider or router. It is cheaper and makes more efficient use of the available addresses, as they can be reused.
IP address and MAC address
A MAC address is a unique 48-bit address set by the manufacturer on a device's network interface card. It identifies the device itself and does not normally change. An IP address identifies a device's location on a network and can change, for example when you connect to a different Wi-Fi network.
What does a router do?
- It connects a local area network (such as your home network) to the internet.
- It receives data packets and uses the destination IP address to forward each packet towards the correct network or device.
- It can assign IP addresses to the devices on its local network.
- It stores information about where to send data, in a routing table.
Exam tips
- Learn one example of each IP address format – examiners often ask you to identify IPv4 or IPv6.
- When comparing static and dynamic addresses, give one benefit and one drawback of each.
- Don't confuse a MAC address (identifies the device) with an IP address (identifies its location on the network).
Want the full topic notes, slides and worksheets? See Notes & Slides, practise with the free CS with Aamir Quiz App, or order the O Level Computer Science Study Guide.