1. Network hardware
IGCSE Computer Science (0478)
  • Chapter 6: Automated & Emerging Technologies
  • Data Representation
    • Introduction
    • Why computers use binary (how binary represents data)
    • Number system
      • Introduction
      • Number Conversions
      • Addition of Binary Numbers
      • Logical binary shifts (positive 8-bit integers)
      • Two’s Complement (Signed: Positive and Negative Numbers)
      • Use of the Hexadecimal System
    • Text, Sound and Image
      • Text, Sound and Images
      • File Types
    • Data storage and File compression
      • Measurement of the Size of Computer Memories
      • Lossless and Lossy File Compression
  • Hardware
    • Computer Architecture
      • The CPU & Microprocessors
      • Von Neumann Architecture
      • Fetch-Decode-Execute Cycle (FDE)
      • Characteristics of the CPU
      • CPU Instruction Sets
      • Embedded Systems
    • Input/output devices
      • Input devices
      • Output devices
      • Sensors
    • Data Storage
      • What is Primary Storage?
      • What is Secondary Storage?
      • What is Virtual Memory?
      • What is cloud storage?
    • Network hardware
      • What is a Network Interface Card(NIC)?
      • MAC Addresses & IP Addresses
      • What is a Router?
  1. Network hardware

MAC Addresses & IP Addresses

1. What is an Address in Networking?#

Every device on a network needs a way to be uniquely identified so that
data can be sent to the correct destination — just like a house needs a
postal address to receive letters.
There are two types of address used in networking:

2. MAC Address — Media Access Control Address#

What is a MAC Address?#

A MAC address is a unique, permanent hardware address assigned to
a Network Interface Card (NIC) by its manufacturer.
MAC Address = A unique 48-bit identifier permanently burned into
a NIC that identifies a device on a local network (LAN).
Every NIC in the world has a different MAC address.
It is sometimes called a physical address or hardware address.
It never changes — it is fixed at the point of manufacture.
Used to identify devices within a local network.

Format of a MAC Address#

A MAC address is 48 bits long.
Written as 6 pairs of hexadecimal digits.
Pairs are separated by colons ( : ) or hyphens ( - ).
Example:   A3 : B2 : C1 : D4 : E5 : F6
           ──────────────  ──────────────
           First 3 pairs   Last 3 pairs
           Manufacturer ID  Device ID
The first 3 pairs (OUI) identify the manufacturer
(e.g. Intel, Cisco, Apple).
The last 3 pairs identify the specific NIC made by that manufacturer.

How MAC Addresses are Used#

MAC addresses are used at the local network level to deliver data
between devices on the same network.
The switch maintains a MAC address table mapping each MAC address
to a physical port.
When a switch receives a data frame, it reads the destination MAC address
and forwards it to the correct device only.
This is more efficient than broadcasting to all devices.

MAC Address Filtering#

Network administrators can configure a router or access point to only
allow devices with specific MAC addresses to connect.
This is called MAC address filtering — a basic form of network security.
✅ Advantage❌ Disadvantage
Prevents unauthorised devices connectingMAC addresses can be spoofed (faked)
Easy to implementTime-consuming to manage on large networks

3. IP Address — Internet Protocol Address#

What is an IP Address?#

An IP address is a logical address assigned to a device on a network
so it can be identified and communicate across local and wide area networks,
including the internet.
IP Address = A numerical label assigned to every device on a network
used to identify and locate it for communication purposes.
Assigned by the network (usually by a router using DHCP).
Can change over time — it is not permanent like a MAC address.
Used to route data across different networks and the internet.

IPv4 — Internet Protocol Version 4#

The most widely used version of IP addressing.
An IPv4 address is 32 bits long.
Written as 4 groups of decimal numbers separated by full stops (dots).
Each group (called an octet) ranges from 0 to 255.
Example:   192  .  168  .   1   .   1
           ───────────────────────────
           32 bits total (4 × 8 bits)
Total possible IPv4 addresses: approximately 4.3 billion (2³²).
Due to the rapid growth of the internet, IPv4 addresses are running out —
this led to the development of IPv6.

IPv6 — Internet Protocol Version 6#

Developed to replace IPv4 due to address exhaustion.
An IPv6 address is 128 bits long.
Written as 8 groups of 4 hexadecimal digits separated by colons.
Example: 2001 : 0db8 : 85a3 : 0000 : 0000 : 8a2e : 0370 : 7334
Total possible IPv6 addresses: approximately 340 undecillion
(3.4 × 10³⁸) — essentially unlimited.

IPv4 vs IPv6 Comparison#

FeatureIPv4IPv6
Bit length32 bits128 bits
FormatDecimal, dotted (e.g. 192.168.1.1)Hexadecimal, colon-separated
Total addresses~4.3 billion~340 undecillion
Address exhaustion✅ Running out❌ Not an issue
Example192.168.1.12001:0db8:85a3::8a2e:0370:7334

Static vs Dynamic IP Addresses#

TypeDescriptionAssigned byChanges?
Static IPPermanently fixed addressManually by admin❌ Never
Dynamic IPTemporary address assigned each sessionRouter via DHCP✅ Can change
DHCP (Dynamic Host Configuration Protocol): A service run by the router
that automatically assigns IP addresses to devices when they join a network.
Static IPs are used for servers, printers, and devices that need a
consistent, known address.
Dynamic IPs are used for most end-user devices — more efficient
as addresses are reused.

4. How MAC and IP Addresses Work Together#

MAC and IP addresses serve different purposes and work at
different levels of the network:

Analogy#

Address TypeReal-World Equivalent
IP AddressThe postal address of a building (used to navigate to the right location)
MAC AddressThe name on the door of a specific flat inside that building

5. ARP — Address Resolution Protocol#

When a device knows the IP address of a destination but needs to find
its MAC address to deliver data on the local network, it uses ARP.
ARP = A protocol that maps a known IP address to its corresponding
MAC address on a local network.

6. Public vs Private IP Addresses#

TypeDescriptionExample Range
Private IPUsed within a local network (LAN) — not routable on the internet192.168.x.x / 10.x.x.x
Public IPAssigned by the ISP — used to identify the network on the internetVaries — assigned by ISP
All devices inside a home network share one public IP (the router's).
Each device has its own private IP within the home network.
The router uses NAT (Network Address Translation) to map private IPs
to the single public IP.

7. Full Comparison — MAC Address vs IP Address#

FeatureMAC AddressIP Address
Full nameMedia Access Control AddressInternet Protocol Address
PurposeIdentify device on local networkIdentify device across networks
Assigned byManufacturerNetwork / Router (DHCP)
Permanent?✅ Yes — fixed at manufacture❌ No — can change
Length48 bits32 bits (IPv4) / 128 bits (IPv6)
FormatHexadecimal pairs (AA:BB:CC:DD:EE:FF)Decimal dotted (192.168.1.1)
ScopeLocal network (LAN) onlyLocal and wide area (WAN/Internet)
LayerData Link LayerNetwork Layer
Used bySwitchRouter
Can be changed?❌ No (can be spoofed but not truly changed)✅ Yes
Unique globally?✅ Yes✅ Public IPs yes / Private IPs no

8. Summary — How Addressing Works End to End#


9. Key Vocabulary#

TermDefinition
MAC AddressA unique 48-bit permanent hardware address assigned to a NIC
IP AddressA logical address assigned to a device for network communication
IPv432-bit IP address format — approximately 4.3 billion addresses
IPv6128-bit IP address format — created due to IPv4 exhaustion
Static IPA fixed, manually assigned IP address that never changes
Dynamic IPAn IP address assigned automatically by DHCP that can change
DHCPDynamic Host Configuration Protocol — automatically assigns IP addresses
ARPAddress Resolution Protocol — maps an IP address to a MAC address
OUIOrganisationally Unique Identifier — first 3 pairs of a MAC address identifying the manufacturer
NATNetwork Address Translation — maps private IPs to a public IP
Private IPAn IP address used within a local network, not routable on the internet
Public IPAn IP address assigned by an ISP, used to identify a network on the internet
SwitchA network device that uses MAC addresses to forward data
RouterA network device that uses IP addresses to route data between networks

10. Exam Tips ✅#

Know the key difference between MAC and IP:
MAC is permanent and physical; IP is logical and can change.
A switch uses MAC addresses; a router uses IP addresses —
this distinction is very frequently tested.
MAC addresses are written in hexadecimal; IPv4 addresses in decimal
— know both formats.
For IPv6, know why it was introduced — IPv4 address exhaustion —
and that it is 128 bits (vs IPv4's 32 bits).
DHCP automatically assigns IP addresses — routers run a DHCP server
for home networks.
A common exam question: "Why does a device need both a MAC address
and an IP address?"

→ MAC is needed to deliver data within a local network;
IP is needed to route data across different networks and the internet.
Static IPs are used for servers and printers — devices that need to
always be found at the same address.
Know that private IP addresses are used inside a LAN and are not
directly accessible from the internet.

Cambridge (CIE) IGCSE Computer Science — 0478 / 0984
Modified at 2026-04-03 10:05:10
Previous
What is a Network Interface Card(NIC)?
Next
What is a Router?
Built with