CIE AS & A Level Computer Science, section 2.1 (Networks including the internet)
Hardware used in a LAN
| Device | Purpose |
|---|---|
| Network Interface Card (NIC) | Connects a computer to a wired network and gives it a MAC address |
| Wireless NIC (WNIC) | Lets a device connect to a wireless network |
| Switch | Connects devices in a LAN and sends data only to the device it is meant for |
| Wireless Access Point (WAP) | Lets wireless devices connect to the wired network |
| Cables | Carry signals (copper or fibre) |
| Server | Provides services such as file storage to the network |
| Bridge | Joins two LANs (or segments) and passes only the data meant for the other side |
| Repeater | Regenerates a weakening signal so it can travel further |
The router
A router connects different networks together, such as a LAN to the internet.
- It reads the destination IP address of each packet and uses a routing table to send it towards the correct network along the best route.
- It joins a LAN to the internet (via the ISP) and often includes a firewall and a DHCP server that gives devices IP addresses.
- A home "router" often combines a router, a switch and a wireless access point in one box.
Switch and router compared
| Switch | Router | |
|---|---|---|
| Connects | devices within one network | different networks |
| Uses | MAC addresses | IP addresses |
| Example | links the computers in a classroom | links the school LAN to the internet |
Common mistake: mixing up a switch and a router. A switch connects devices inside a LAN using MAC addresses. A router connects separate networks using IP addresses. Also, a repeater just boosts the signal, it does not choose where data goes.
Exam tip: give the purpose of each device in a sentence ("a NIC connects a computer to a network and holds its MAC address"). For a router, mention IP addresses, networks and the routing table.
Check yourself
What does a repeater do?
It regenerates a weak signal so that it can travel further.
What does a router use to decide where to send a packet?
The destination IP address, with a routing table.
What is the purpose of a wireless access point?
To let wireless devices connect to a wired network.