Cambridge IGCSE · Topic 3.4
IGCSE Computer Science 0478 / Topic 3 / IGCSE

Getting connected.

To join a network a computer needs the right hardware and two kinds of address. The MAC address is fixed into the network card when it is made; the IP address is given by the network. A router uses them to get data to the right place.

The key idea

A computer needs a network interface card (NIC) to access a network. Each NIC is given a unique MAC address at the point of manufacture: 48 bits, usually written as 12 hexadecimal digits, made of the manufacturer code and the serial code. An IP address is allocated by the network to identify a device on it; it can be static (stays the same) or dynamic (can change each time the device connects), and is either IPv4 (32 bits) or IPv6 (128 bits). A router sends data to a specific destination on a network, can assign IP addresses, and can connect a local network to the internet.

laptop NIC router assigns IP addresses internet LAN 00-1A-2B 3C-4D-5E manufacturer codeserial code MAC address: 48 bits, 12 hex digits MAC: fixed in the NIC when made • IP: given by the network, can change
Fig. 1: a laptop's NIC connects to a router; its MAC address is made of a manufacturer code and a serial code
Section 01

The NIC and the MAC address.

In the lab, look at a device's MAC address and IP address, and see what changes when it joins a different network. The MAC address stays the same; the IP address does not.

Examiner trap

The MAC address belongs to the NIC and is set when it is made. It is not given by the network or the router: that is the IP address.

Section 02

IP addresses.

An IP (internet protocol) address identifies a device on a network so that data can be sent to it. Unlike a MAC address, it is allocated by the network the device joins.

IPv4IPv6
Size32 bits128 bits
Written as4 denary numbers (each 0 to 255) separated by full stops8 groups of 4 hex digits separated by colons
Example192.168.1.152001:0db8:85a3:0000:0000:8a2e:0370:7334
Number of addresses232, about 4.3 billion: not enough for every device2128: far more than will ever be needed
Worked example Valid or not?
Is 192.168.300.4 a valid IPv4 address?
  1. IPv4 has 4 numbers, each stored in 8 bits.
  2. 8 bits can only hold 0 to 255.
  3. 300 is greater than 255.
Answer: Not valid
Your turn
Why was IPv6 introduced?
Stage 1 · Learn

Check what the sim just showed you

Four quick checks. Each correct answer earns XP and records this skill on your profile.

Quick check+10 XP

What hardware does a computer need to access a network?

Quick check+10 XP

In the lab, what happens to a device's MAC address when it joins a different network?

Quick check+10 XP

Which two parts make up a MAC address?

Quick check+10 XP

How many bits are in an IPv6 address?

Section 03

The router.

A home router sits between the devices in the house and the internet. Its jobs are the three in the syllabus.

MAC addressIP address
Given byThe manufacturer, at the point of manufactureThe network (for example the router)
Can it change?No, it is fixed to the NICYes if dynamic; no if static
Written as12 hex digits (48 bits)IPv4: 4 denary numbers; IPv6: 8 hex groups
Examiner trap

A router does more than "connect to the internet". For full marks, give its specific roles: forwarding data to a destination using IP addresses and assigning IP addresses.

Stage 2 · Exam

Exam-style questions

Unlocks once the four checks above are done. Worth more XP, written to IGCSE Paper 1 standard.

Finish the four checks above to unlock the exam questions
Exam style+20 XP

Which is a valid IPv4 address?

Exam style+20 XP

What is a dynamic IP address?

Exam style+20 XP

Which is a role of a router?

Exam style+20 XP

Why are MAC addresses usually written in hexadecimal?

Skill unlocked

Network hardware, mastered.

This skill is now recorded on your profile. Keep the chain going.

-Rank -Level -Score -Topics
Go deeper · practice
Six original Cambridge-style questions
The NIC, MAC address structure, IP addresses (static, dynamic, IPv4 and IPv6) and the role of a router.