OCR H446, section 1.3.3 (d)
A network is built from several kinds of hardware. You need to know what each does, and how they differ.
Network interface card (NIC)
A NIC (network interface card, or network adapter) is the hardware inside a device that lets it connect to a network. It can be wired (an Ethernet port) or wireless (a WiFi adapter).
- Converts the device's data into signals that suit the network, and back.
- Has a unique MAC address, set by the manufacturer, which identifies it on the local network.
- Almost every computer, phone and printer has one built in.
Hub
A hub is a simple device that joins devices in a star network. When it receives data on one port, it copies it to every other port, whether or not they need it.
- Cheap and simple.
- Wastes bandwidth and causes collisions, because every device sees all the traffic.
- Less secure, since any device can read all the data.
- Now largely replaced by switches.
Switch
A switch also joins the devices in a star network, but it is intelligent. It learns the MAC address of each connected device, and sends data only to the port of the device it is meant for.
- Much more efficient than a hub: traffic goes only where it is needed, so several pairs of devices can talk at the same time.
- Fewer collisions, and better security.
- The central device of most LANs.
| Hub | Switch | |
|---|---|---|
| Sends data to | Every port | Only the correct port |
| Uses | Simple | MAC addresses |
| Efficiency | Low | High |
| Security | Poor | Better |
| Cost | Lowest | Slightly higher |
Router
A router connects different networks together and forwards data packets between them. It reads the destination IP address of each packet, and uses a routing table to decide the best next hop.
- Connects a LAN to the Internet (a home router does this).
- Often provides other functions: a firewall, DHCP (giving out IP addresses), NAT, and a built-in wireless access point and switch.
- Routers across the Internet pass packets on, one hop at a time.
Wireless access point (WAP)
A wireless access point lets wireless devices connect to a wired network. It sends and receives radio signals and links them to the wired network.
- In homes, it is usually built into the router.
- Large buildings use several access points to cover the area.
Modem
A modem (modulator-demodulator) converts between the digital signals of a computer and the signals used by the transmission line (for example the analogue signals on a telephone line, or the signals on a cable or fibre line). It is used to connect to an ISP. Many home routers have a modem built in.
Gateway
A gateway is a device at the edge of a network that connects it to a different network, which may use different protocols, and may translate between them. A default gateway is the address that a device sends traffic to when the destination is outside its local network. In a home, the router is the gateway.
Repeater and bridge
- A repeater regenerates and boosts a signal, so it can travel further along a cable or wireless link.
- A bridge joins two LANs into one network, forwarding traffic between them only when needed.
Transmission media
| Medium | Description | Notes |
|---|---|---|
| Twisted pair (Ethernet cable) | Pairs of copper wires twisted together, to reduce interference | Cheap and common in LANs, short range (about 100 m) |
| Coaxial cable | A copper core with an insulating layer and a metal shield | Better shielding, used for cable TV and broadband |
| Fibre optic | Pulses of light along glass or plastic strands | Very fast, long distance, immune to electrical interference, but more expensive |
| Wireless | Radio waves (WiFi, Bluetooth, mobile) | Convenient, but slower and less secure |
How the hardware fits together
Worked example
Task: a small office with 10 computers and a printer wants to share files and use the Internet, and have staff use their phones on a wireless network. Which hardware is needed?
- A NIC in each computer (wired) and phone (wireless).
- A switch to join the wired devices in a star network. It sends data only to the right device.
- A wireless access point so that phones and laptops can connect without cables.
- A router (with a modem) to connect the office network to the Internet, and act as the gateway and firewall.
- Twisted pair cables to link the wired devices to the switch.
Often a single "router" box does the routing, switching, modem and wireless access point functions.
Exam tip: know the job of each device and one difference between similar ones: a switch sends data to one device and a hub sends it to all, and a router connects networks while a switch connects devices in one network.
Check yourself
What is the difference between a hub and a switch?
A hub sends data to every port. A switch learns the MAC address of each device and sends data only to the port of the intended device.
What does a router do?
It connects different networks together and forwards data packets between them, using the destination IP address to choose the next hop.
What is the purpose of a network interface card?
To let a device connect to a network, by converting its data to and from the signals used on the network. It has a unique MAC address.
Give two advantages of fibre optic cable over copper cable
Any two of: much faster; works over longer distances; not affected by electrical interference.