Topic 3 · Hardware (network hardware)

IP addresses: IPv4, IPv6, static, dynamic and routers

Video lesson: 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

IPv4IPv6
Size32 bits128 bits
Format4 groups of denary numbers (0–255) separated by full stops8 groups of 4 hexadecimal digits separated by colons
Example192.168.0.12001: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

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?

Exam tips

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.