Networks and Network Security
Local and wide area networks, topologies, wired against wireless, protocols and layers, and every threat and defence Edexcel expects you to name.
Networks and topologies
A network is two or more computers connected so they can share data and resources.
A LAN covers a small area on one site, with hardware the organisation owns. A WAN covers a large geographical area, connecting sites using infrastructure hired from a provider. The internet is the largest WAN.
Network hardware
- A network interface card provides the physical connection and the MAC address.
- A switch joins devices on a LAN and sends each frame only to its destination.
- A router joins networks together and directs packets between them.
- A wireless access point allows devices to join without a cable.
Topologies
Star. Every device has its own cable to a central switch. Fast, because connections are dedicated; reliable, because one broken cable affects one device; easy to extend. More expensive, and the switch is a single point of failure.
Mesh. Every device connects to several or all others, so there are many possible routes. Extremely resilient, because traffic reroutes around a failure, and it scales well for wireless. Expensive and complex to cable in full.
A star concentrates risk at the switch and saves cable. A full mesh removes the single point of failure and pays for it in cabling. Almost every topology question is that trade off.
Wired and wireless
Wired is faster, more consistent and more secure, because interception needs physical access to the cable. It is expensive to install and the devices cannot move.
Wireless is cheap and quick to install and lets devices move freely. It is slower, degrades with distance and obstacles, is subject to interference and, by default, less secure because the signal travels through the air where anyone in range can receive it.
- Star: every device has its own cable to a central switch.
- If one cable fails, only that one device drops off.
- Mesh: every device connects to every other, with no centre at all.
- Any one link can fail and the data simply goes a different way.
- Bus: one shared backbone, and every device taps into it.
Protocols and layers
A protocol is a set of rules governing communication. Both ends must follow the same rules for anything to be understood.
| Protocol | Purpose |
|---|---|
| Ethernet | Wired local area networking |
| Wi-Fi | Wireless local area networking |
| TCP | Splits data into packets, checks delivery and reassembles them in order |
| IP | Addresses packets and routes them between networks |
| HTTP | Requests and delivers web pages |
| HTTPS | The same, encrypted so intercepted traffic cannot be read |
| FTP | Transfers files between computers |
| SMTP | Sends email |
| IMAP | Retrieves email, leaving it on the server |
Layers
Protocols are organised into layers, each handling one part of the job and passing its result to the next.
| Layer | Job |
|---|---|
| Application | Services for the user's software: HTTP, FTP, SMTP, IMAP |
| Transport | Splitting into packets and managing the connection: TCP |
| Network | Addressing and routing: IP |
| Link | Sending over the physical medium: Ethernet, Wi-Fi |
Layering divides a huge problem into manageable parts, and lets any one layer be replaced without disturbing the others. Moving a laptop from Ethernet to Wi-Fi changes the link layer only: HTTP, TCP and IP carry on unchanged and no application has to be rewritten.
They make it manageable, interoperable and independently changeable, and that is what the mark scheme rewards.
- Your message starts at the top, in the application.
- Transport splits it into segments and adds a port number.
- Internet wraps each segment in a packet and adds IP addresses.
- Link turns the packet into a frame with MAC addresses, and it goes out.
- At the other end the same four layers run in reverse, unwrapping it.
- The MAC address belongs to the hardware, so it stays the same wherever the laptop goes.
- The IP address is given by the network, so the same laptop has a different one at home and at school.
- MAC: manufacturer, never changes, local delivery. IP: network, changes, routing between networks.
- SMTP sends email, from the sender to their server and between mail servers.
- POP downloads mail and normally deletes it from the server, so it lives on one device.
- IMAP keeps mail on the server, so a phone and a laptop both show the same mailbox.
Threats and protection
Threats
Malware. Viruses attach to files and spread when those files are shared. Worms spread across a network by themselves. Trojans pretend to be legitimate software. Ransomware encrypts files and demands payment. Spyware records activity such as keystrokes.
Social engineering. Manipulating people rather than technology. Phishing sends messages impersonating a legitimate organisation to obtain details. Pretexting invents a scenario to persuade someone to hand over information. Shouldering means watching someone type a password.
Brute force attacks. Trying every possible password until one works, which is why length matters far more than complexity.
Denial of service. Flooding a server with requests so it cannot serve legitimate users.
Data interception. Capturing data as it travels across a network, which is trivial on unencrypted wireless.
SQL injection. Entering SQL into an input box that the site passes straight to its database, allowing an attacker to read or destroy data.
Protection
| Measure | What it achieves |
|---|---|
| Firewall | Inspects traffic entering and leaving and blocks what is not permitted |
| Anti-malware | Detects and removes known malicious software |
| Encryption | Makes intercepted or stolen data unreadable without the key |
| Strong passwords and authentication | Makes guessing and brute force impractical |
| User access levels | Limit what one compromised account can reach |
| Validation of inputs | Prevents SQL injection by rejecting or escaping what is entered |
| Penetration testing | Authorised simulated attacks that find weaknesses first |
| Physical security | Stops somebody simply walking in and taking a machine |
| Software updates | Close known weaknesses before they are exploited |
Encryption does not stop data being stolen, it stops stolen data being read. A firewall does not remove malware, it blocks traffic. That precision is where the marks are.
- Malware: virus, worm, trojan, ransomware and spyware.
- Social engineering: phishing, blagging and shouldering trick people instead of computers.
- Brute force: try every combination until one works.
- Denial of service: flood a server so real users cannot get in.
- SQL injection: database code typed into an input box.
- Interception: reading data as it travels, for example on public Wi-Fi.
- No single defence is enough, so several layers are used. An attacker has to get past all of them.
- Match each threat to the defence that answers it. This pairing is asked in the exam.
- A common word is cracked at once, however long it feels to type.
- Eight random characters from 95 symbols: about 6.6 quadrillion possibilities.
- Five random words from a list: far more possibilities, and easier to remember.
Key terms you must be able to define
- LAN
- Local area network, covering one site with hardware the organisation owns.
- WAN
- Wide area network, spanning sites using hired infrastructure.
- Switch
- A device joining computers on a LAN and forwarding each frame only to its destination.
- Router
- A device joining networks together and directing packets between them.
- Star topology
- A layout in which every device has its own cable to a central switch.
- Mesh topology
- A layout in which devices connect to several or all others, giving many routes.
- Protocol
- A set of rules governing how devices communicate.
- Layer
- One level of a networking model, handling one part of the communication task.
- Phishing
- Sending messages that appear legitimate in order to obtain confidential details.
- Brute force attack
- Trying every possible password until the correct one is found.
- Denial of service
- Flooding a server with requests so that it cannot serve legitimate users.
- SQL injection
- Entering SQL into an input field so that it is executed by the site's database.
Flashcards
Say the definition out loud before you flip the card. Retrieving it from memory is what builds recall, reading it again is not.
Reach the top grade on this topic
Network questions reward causal reasoning and precise vocabulary.
Name the threat exactly. Phishing, pretexting, brute force, denial of service and SQL injection are distinct named threats, and the exam expects the right word for the scenario.
Match the defence to the threat in the question. A stolen laptop needs encryption and physical security. Staff clicking links needs training and filtering. An input box needs validation. Listing every measure you know earns fewer marks than choosing two and justifying them.
Explain layering with an example of change. Swapping Wi-Fi for Ethernet changes the link layer and nothing above it, so no application needs rewriting. That single example demonstrates the whole idea.
Mistakes that cost marks here
- Calling every attack 'hacking' rather than naming the specific threat.
- Swapping SMTP and IMAP. SMTP sends, IMAP retrieves.
- Saying encryption prevents data being stolen. It prevents stolen data being read.
- Saying layering makes a network faster.
- Confusing a switch with a router.
The first message ever sent over the network that became the internet was meant to be the word LOGIN. The system crashed after two characters, so the first thing ever transmitted was LO.
Knowledge check
Exam-style questions
Five written questions in the style of the real paper. Write a full answer, then let the marker check it against the mark scheme.
- LNames a switch
- LDescribes it as joining devices on a LAN and sending frames to their destination
- LNames a router
- LDescribes it as joining networks and directing packets between them
A switch joins the devices on a local area network together and forwards each frame only to the device it is addressed to, which keeps traffic off the rest of the network. A router joins separate networks together and directs packets between them, deciding which route each packet should take, which is what connects a local network to the internet.
- LEach layer handles one part of the communication task
- LSo a very complex problem is broken into manageable pieces
- LA layer can be changed without affecting the layers above and below it
- LGives an example such as swapping Ethernet for Wi-Fi
Layering divides the problem of network communication into parts, each of which handles one aspect and interacts only with the layer directly above and below it. That means nobody has to understand the whole of networking at once, and different specialists can work on different layers. It also gives independence: because each layer only depends on the interface the next presents, one can be replaced entirely without disturbing the others. Moving a laptop from an Ethernet cable to Wi-Fi replaces the link layer completely, yet IP, TCP and HTTP carry on exactly as before and no application has to be rewritten.
- LNames SQL injection
- LExplains that text entered by the user is being executed as part of a database query
- LPrevention by validating or sanitising input
- LOr by using parameterised queries, and limiting the database account's permissions
This is SQL injection. It happens because whatever the user types into the search box is being joined directly into an SQL query and sent to the database, so an attacker can type SQL of their own and have the database execute it, returning data the page was never meant to show. The primary prevention is to stop user input ever being treated as code: use parameterised queries, so the database is told in advance which part of the statement is a value and which is an instruction. Alongside that, input should be validated against what a search term is actually allowed to contain, and the account the website uses to reach the database should have only the permissions the site genuinely needs, so that even a successful injection cannot read the whole customer table.
- LA star gives each device a dedicated connection to a central switch
- LSo it is fast and one cable failure affects only one device
- LBut the switch is a single point of failure for the whole network
- LA mesh provides multiple routes between devices
- LSo it is very resilient, but expensive and complex to cable in full
- LReaches a justified recommendation for this situation
A star topology gives every device its own cable running to a central switch. Nothing is shared, so devices do not compete for the medium and performance stays consistent as machines are added, and a damaged cable disconnects only the one device on it. Extending the network means running one more cable. Its weakness is concentration of risk: everything passes through the switch, so if the switch fails the entire network stops until it is replaced. A mesh topology connects devices to several or all of the others, so there are multiple routes between any two points and traffic can be rerouted automatically around a broken link or a failed device. That resilience is genuine, but a full wired mesh needs an enormous amount of cable, which becomes impractical very quickly: ten devices would need forty five separate links. For a school building the recommendation is a star, and for two reasons specific to the situation. The cost and complexity of a wired mesh cannot be justified for classroom machines where a short outage is inconvenient rather than dangerous, and the failure the school is most likely to experience is a damaged patch lead, which a star already handles. The single point of failure should be managed rather than designed out: keep a spare switch on site, and if the school later adds wireless coverage across the building, a wireless mesh of access points is a sensible way to get resilience where cabling would be difficult.