Skip to the page
Year 10 · Computer Science · Spring 1 · Hardware

Network hardware and the exam questions

Exam practicePresent ▶

What this lesson covers

3.4 Network hardware

Cambridge IGCSE Computer Science 0478 · Topic 3: Hardware · Paper 1

You will learn to

  • State what a network interface card (NIC) does.
  • Describe a MAC address: 48 bits, written as 12 hex digits, set by the manufacturer.
  • Explain what an IP address is for, and compare static with dynamic, and IPv4 with IPv6.
  • Describe the role of a router.

Success criteria

  • I can split a MAC address into the manufacturer part and the serial number part.
  • I can say that IPv4 uses 32 bits and IPv6 uses 128 bits.
  • I can explain how a router uses IP addresses to forward packets.
The syllabus points for this section
  • State what a NIC does.
  • Describe a MAC address: when it is assigned, its format and its two parts.
  • Explain what an IP address is for, static vs dynamic, and IPv4 vs IPv6.
  • Describe the role of a router.

Key words

Say each word, then read what it means. Every one is in the glossary too.

Control unit
Manages the fetch–decode–execute cycle and sends control signals.
NIC
Network interface card: the hardware that connects a device to a network.
MAC address
A unique 48-bit address given to a NIC at manufacture, written in hex.
IP address
An address given to a device on a network so data can be sent to it.
Router
A device that forwards packets to their destination and connects a local network to the internet.

The explanation

Read it here, or open the study page below to go one step at a time with things to try.

NIC and MAC address

A network interface card (NIC) is the hardware that lets a device connect to a network, by cable or by Wi-Fi. Today it is usually built into the main board.

Every NIC has a MAC address (media access control address). It is assigned when the NIC is manufactured and is unique to that device.

A MAC address is 48 bits, written as 12 hexadecimal digits in 6 pairs, e.g. `00:1A:2B:3C:4D:5E`.

The first half is the manufacturer code (who made it). The second half is the serial code (which device it is).

e.g.Example
MAC address 00:1A:2B:3C:4D:5E Manufacturer code: 00:1A:2B Serial code: 3C:4D:5E 48 bits gives 2⁴⁸ = 281,474,976,710,656 possible addresses.
?Why?

Hex is used because 48 binary digits are too long for people to read. Each hex digit stands for 4 bits, so 12 hex digits = 48 bits.

IP address: IPv4 and IPv6

An IP address identifies a device on a network, and lets data be sent to the right place across the internet. It is given to the device by the network it joins, so it can change.

IPv4: 32 bits, written as four denary numbers from 0 to 255, separated by dots, e.g. `192.168.1.20`. This gives 2³² = 4,294,967,296 addresses.

IPv6: 128 bits, written as eight groups of four hex digits, separated by colons, e.g. `2001:0db8:85a3:0000:0000:8a2e:0370:7334`.

IPv6 was created because the world was running out of IPv4 addresses. Every phone, laptop and smart device needs one.

e.g.Example
IPv4 192.168.1.20 in binary, 8 bits per number: 11000000.10101000.00000001.00010100 IPv6 groups of zeros can be shortened with :: 2001:0db8:85a3:0000:0000:8a2e:0370:7334 → 2001:db8:85a3::8a2e:370:7334 Try it in the toy: type 192.168.1.20 in the IPv4 tab, and the long IPv6 address above in the IPv6 tab, to check both answers. Then open the MAC address tab and compare the parts.
!Watch out

A MAC address is fixed to the hardware. An IP address belongs to the connection and can change. A phone keeps its MAC address but gets a new IP address on school Wi-Fi.

There is something to try for this step in the IGCSE library.

Static and dynamic IP addresses

A static IP address is permanent. It does not change each time the device connects.

A dynamic IP address is assigned automatically each time the device connects, and can be different next time. It is given out by a server, often the router.

Static addresses are used for servers (such as a website or a school printer), so other devices can always find them. Dynamic addresses suit ordinary users.

StaticDynamic
Changes?NoCan change each time
Good forWeb servers, printers, remote access, CCTVPhones, laptops, home devices
AdvantagesAlways the same, so easy to find; reliable for hostingAutomatic; addresses are reused, so fewer are needed; usually cheaper
DisadvantagesMust be set up and managed; often costs more; easier to targetAddress can change, so not good for hosting a server

The router

A router sends data packets to their destination. It reads the destination IP address in each packet's header and forwards it on the best route.

It connects a local network to the internet, for example a home or school network to the Internet Service Provider.

It also assigns IP addresses (dynamic, private ones) to the devices on the local network.

e.g.Example
At home, your laptop gets 192.168.1.20 from the router. You visit a website. The router sends your packets out to the internet, and passes the replies back to your laptop and not to your sister's phone.
?Why?

This links back to topic 2: packet switching only works because routers read headers and choose routes.

Study it

Open the study page and go one step at a time.

The steps for this lesson

Try it

Check yourself

One question at a time. The reason shows after each answer.

Saved on this device.