Network Hardware
The network interface card, the two addresses that identify a device (MAC and IP), and the router that sends data on to its destination.
WATCH IT EXPLAINED
EXPLORE IT IN 3D
One laptop, two networks
A home router, a school's network rack, and a laptop with no network card. Fit its NIC, read its MAC address, carry it to school for a new IP address — then be the school's router.
The network interface card
A computer needs a network interface card (NIC) to join a network.
A NIC (network interface card) is the hardware that connects a computer to a network. Without one, the computer cannot access a network.
It connects in one of two ways:
- by a cable, plugged into an Ethernet port
- without wires, by Wi-Fi
Today the NIC is often built into the motherboard, not a separate card. We still call it a NIC.
Remember:Every NIC gets a MAC address at the point of manufacture, when it is made in the factory.
MAC address: what it is for
A MAC address names one piece of network hardware, and it never changes.
A MAC address (media access control address) is a unique number. It identifies a device's network interface card (NIC).
- The manufacturer sets it when the NIC is made.
- It does not change.
- So it identifies that hardware wherever it goes: at home, at school or anywhere else.
The network uses it to identify the device, so data reaches the right device.
Example:A laptop has Wi-Fi and an Ethernet port. That is two NICs, so the laptop has two MAC addresses.
MAC address structure
A MAC address is 48 bits, written as 12 hex digits: the maker's code, then the device's serial code.
A MAC address is usually written in hexadecimal (hex): 12 hex digits in 6 pairs, like 00-1A-2B-3C-4D-5E. Colons can be used instead of dashes.
| Part | Example | What it tells you |
|---|---|---|
| First half: manufacturer code | 00-1A-2B | the company that made the NIC |
| Second half: serial code | 3C-4D-5E | one particular device from that maker |
Each hex digit stands for 4 bits. So 12 hex digits × 4 bits = 48 bits.
Remember:Hex is used for people. It is a much shorter way to write 48 binary digits, so it is easier to read.
IP address: what it is for
An IP address tells the network where to send data, and the network gives it, so it can change.
An IP address (internet protocol address) identifies a device on a network, so data can be sent to it. Each packet's header carries the IP address of its destination.
The network that the device joins allocates the IP address. So it can change.
| MAC address | IP address | |
|---|---|---|
| Who gives it | the manufacturer | the network the device joins |
| Can it change? | no | yes |
Example:Your laptop gets one IP address at home and a different one at school. Its MAC address stays the same.
IPv4
An IPv4 address is 32 bits: four numbers from 0 to 255, separated by dots.
An IPv4 address is 32 bits long. We write it as four denary numbers with dots between them, like 192.168.1.10.
- Each number is stored in one byte (8 bits).
- So each number must be between 0 and 255.
- 4 numbers × 8 bits = 32 bits.
Watch out:192.168.1.300 is not a valid address. 300 does not fit in 8 bits.
32 bits allow 2³² different addresses. That is about 4.3 billion. It is not enough for every device in the world.
192.168.1.10 =
11000000.10101000.00000001.00001010
4 numbers x 8 bits = 32 bitsIPv6
IPv6 has 128-bit addresses, because the world was running out of IPv4 addresses.
The world was running out of IPv4 addresses, so IPv6 was introduced.
| IPv4 | IPv6 | |
|---|---|---|
| Length | 32 bits | 128 bits |
| Written as | four denary numbers, with dots | eight groups of four hex digits, with colons |
| Number of addresses | about 4.3 billion | about 3.4 × 10³⁸ |
You can shorten an IPv6 address in two ways:
- Drop the leading zeros in a group:
0db8becomesdb8. - Replace one run of all-zero groups with a double colon (
::).
Watch out:Use :: only once in an address. With two, nobody could tell how many zero groups each :: stands for.
2001:0db8:0000:0000:0000:ff00:0042:8329
drop the leading zeros:
2001:db8:0:0:0:ff00:42:8329
one :: for the run of zero groups:
2001:db8::ff00:42:8329Static and dynamic IP addresses
A static IP address never changes; a dynamic one is given each time a device connects.
| Static IP address | Dynamic IP address | |
|---|---|---|
| How it is given | assigned to the device permanently | allocated automatically each time the device connects to a network |
| Does it change? | no | it may be different next time |
| Used for | servers, such as a web server, that must always be found at the same address | most phones and laptops |
Who allocates a dynamic address? Usually the router, using a service called DHCP.
Dynamic addresses help the network. When a device leaves, the network can reuse its address for another device.
The router
A router reads where each packet is going and sends it on, like a post office.
A router is like a post office. It reads the address on each packet and picks the next road. It has three roles:
- It sends data to a specific destination on a network. It reads the destination IP address in each packet's header. Then it forwards the packet towards it.
- It connects the local network to the internet, in a home or a school. Data for a device on the local network goes to that device. Anything else goes out to the internet.
- It can assign IP addresses to the devices that join its network.
Match each description to the device it describes. The switch and the hub are beyond the IGCSE syllabus.
PICK ONE, THEN PICK ITS GROUP
- empty
- empty
- empty
- empty
KEY TERMS
CHECK YOURSELF
1.Which address is fixed by the manufacturer and does not change?
2.Why was IPv6 introduced?
3.What does a router do?
4.The MAC address 00-1A-2B-3C-4D-5E is split into two halves. What does the first half, 00-1A-2B, identify?
5.Which of these is a correctly shortened IPv6 address?
6.A school's web server must always be found at the same address. Which type of IP address should it have?