Edexcel International Advanced Level Computer Science, point 3.1.1
A network is two or more devices connected so that they can share data and resources. Each item below has a specific job, and you need to be able to complete a diagram of a network using them.
a. Network interface card (NIC)
- Definition: the hardware that connects a device to a network. It may be a wired (Ethernet) port or a wireless adapter, and is usually built into the motherboard.
- Function: it sends and receives data over the network, converting between the device's data and the signals on the medium.
- Characteristics: every NIC has a unique MAC address (3.1.3) fixed by the manufacturer.
- Why needed: without one, a computer can't join a network.
Servers
Not one of the lettered spec points, but the book describes them, and they appear in network diagrams.
- Definition: a computer that provides a service to other devices (the clients) on the network.
- Examples: a file server stores shared files; a web server sends web pages when browsers ask for them; a print server manages the queue of jobs for shared printers.
- Why needed: services and data are kept in one place, so they can be shared, managed and backed up centrally.
b. Switch
- Definition: a device that connects several devices in a local area network (LAN) and forwards data only to the device it is intended for.
- Function: it reads the destination MAC address of each frame, and sends it only out of the port where that device is connected, using its MAC address table (a list of which MAC address is connected to which port, learnt from the frames it has seen).
- Benefits: less traffic than a hub, since data isn't sent to everyone, so it is faster and more secure. Each connection gets its own bandwidth.
- Drawbacks: costs more than a hub, and links devices within a network: it doesn't connect different networks.
c. Home router
- Definition: a device that connects a home network to the Internet and directs data between networks.
- Function: it forwards packets using IP addresses (3.1.3). A typical home router combines several roles:
- Router (to the Internet).
- Switch (several wired ports).
- Wireless access point (Wi-Fi).
- DHCP server: gives out private IP addresses to devices.
- NAT: shares one public IP address among the devices at home.
- Firewall: basic filtering of traffic.
- Why needed: to connect the home to the Internet and let many devices share one connection.
d. Modem
- Definition: a modulator/demodulator: a device that converts the digital signals of a computer into the form used by the telephone, cable or fibre line, and back again.
- Function: it links the home to the Internet service provider (ISP). Often it's built into the router.
- Why needed: the line to the ISP carries a different kind of signal from the one the network uses.
e. Wireless access point (WAP)
- Definition: a device that lets wireless devices connect to a wired network using Wi-Fi.
- Function: it transmits and receives radio signals, and connects them to the wired network (usually through a switch or router).
- Benefits: no cables for devices, mobility, and easy to add users. Extra WAPs extend coverage.
- Drawbacks: slower and less reliable than wired, interference and limited range, and more open to eavesdropping, so encryption (WPA) is needed.
f. Transmission media
The physical or wireless path that data travels along.
| Medium | How it works | Benefits | Drawbacks |
|---|---|---|---|
| Copper (twisted pair, such as Ethernet cable; coaxial) | Electrical signals along metal wires | Cheap, easy to install, fast enough for most LANs (about 100 Mbps to 10 Gbps, depending on the cable type and length) | Limited distance (about 100 m for Ethernet), electrical interference, signals fade (attenuation) |
| Fibre optic | Pulses of light along glass or plastic strands | Very high bandwidth (about 1 Gbps to 100 Gbps or more), long distances, immune to electrical interference, hard to tap | Expensive, harder to install and fragile, needs conversion equipment |
| Wireless (Wi-Fi, Bluetooth, cellular) | Radio waves (or microwaves) through the air | No cables, mobile devices, easy to set up; Wi-Fi gives about 600 Mbps to 9.6 Gbps, depending on the Wi-Fi standard | Slower and less reliable, interference, limited range, easier to intercept, so needs encryption |
g. Firewall
- Definition: a security system that monitors incoming and outgoing network traffic and allows or blocks it using a set of rules.
- Function: it filters traffic by IP address, port number or protocol, to block unauthorised access and stop malicious traffic.
- Types:
- Hardware firewall: a separate device (or one built into the router) at the boundary of the network, protecting every device behind it.
- Software firewall: a program on a single computer, which can control individual applications.
| Hardware firewall | Software firewall | |
|---|---|---|
| Protects | The whole network | One device |
| Cost | Higher | Often free (built into the OS) |
| Performance | Doesn't use the device's own processing power | Uses the device's resources |
| Control | Network level | Can control per application |
| Mobile devices | Protects only inside the network | Goes with a laptop |
Using both gives better protection (layered security).
A home network diagram
Worked example
Task: a small office wants wired PCs and a printer, plus Wi-Fi for visitors, all with Internet access, and protected from attack. Say which components are needed and why.
| Component | Why needed |
|---|---|
| NIC in every PC and the printer | To connect each device to the network (each has its own MAC address) |
| Switch | To link the wired PCs and printer, sending data only to the right device |
| Copper (Ethernet) cable | Cheap, and fast enough over office distances |
| Wireless access point | To give visitors Wi-Fi without cables |
| Router | To connect the office network to the Internet, and give out IP addresses |
| Modem | To connect to the ISP's line (often built into the router) |
| Hardware firewall (in the router) | To filter traffic for all devices |
| Software firewalls on the PCs | An extra layer that controls individual applications |
Possible improvement: put the visitors' Wi-Fi on a separate network so they can't reach the office PCs.
Exam tip: for each component give what it does and how it differs from similar ones: a switch forwards to one device in a network (by MAC address), but a router connects different networks (by IP address). You may be asked to complete a network diagram, so practise placing the modem, router, switch and WAP in order.
Check yourself
What does a NIC do?
It connects a device to a network, sending and receiving data and giving the device a unique MAC address.
What is the difference between a switch and a router?
A switch connects devices within one network and forwards data using MAC addresses. A router connects different networks (such as a home network to the Internet) and forwards data using IP addresses.
Give one advantage and one disadvantage of fibre optic cable compared with copper
Advantage: much higher bandwidth, over longer distances, and no electrical interference. Disadvantage: it is more expensive and harder to install.
What is the difference between a hardware and a software firewall?
A hardware firewall is a separate device (or part of the router) that protects the whole network. A software firewall is a program on one computer that protects that device and can control individual applications.
Why does a wireless network need encryption?
Radio signals can be picked up by anyone in range, so the data must be encrypted to stop it being read or misused.