1.3.2 Wired and wireless networks, protocols and layers
Devices can join a network with a cable or without one. Once they are joined, they need agreed rules so that they understand each other. This topic covers the ways of connecting, how data is kept secret, how devices are identified, and the rules used to move data.
Wired and wireless connections
Ethernet (wired)
Ethernet is the standard way of connecting devices to a network with a cable. A cable plugs into the NIC of the device and into a switch or router.Wi-Fi (wireless)
Wi-Fi connects devices to a network using radio waves. Devices connect to a wireless access point or router. It is used in homes, schools, cafes and offices.Bluetooth (wireless)
Bluetooth connects devices wirelessly over a short distance. It is used for headphones, speakers, game controllers and sharing files between nearby phones.You do not need to know how these three work inside. You need to compare them and choose the best one for a situation.
| Ethernet | Wi-Fi | Bluetooth | |
|---|---|---|---|
| Connection | Cable | Radio waves | Radio waves |
| Range | Length of the cable | Whole house or building | Short (a few metres) |
| Speed | Usually the fastest | Fast, but usually slower than Ethernet | Slowest of the three |
| Reliability | Very reliable, little interference | Can be affected by walls and other signals | Can be affected by other signals |
| Security | Harder to intercept, as someone needs to reach the cable | Signal travels through the air, so it must be encrypted | Short range, but data can still be intercepted |
| Convenience | Devices cannot move far from the socket | Devices can move around | Devices can move around |
| Typical use | Desktop PC, servers, games consoles needing speed | Laptops, phones, tablets | Headphones, speakers, a mouse or keyboard |
| Wired (Ethernet) | Wireless (Wi-Fi, Bluetooth) |
|---|---|
| Faster and more stable | Devices can move around |
| More secure | No cables to buy or fit |
| Not slowed by walls | Easy to add new devices |
| Cables are needed, which cost money and can be a trip hazard | Slower, and signal can be weakened by walls and other devices |
- A school server room that must run fast all day with no breaks: Ethernet, because it is fast, stable and secure.
- Students using tablets as they walk around a classroom: Wi-Fi, because it covers the whole room and the devices can move.
- Wireless headphones connected to a phone: Bluetooth, because the devices are close together and it needs little set-up.
Encryption
Data on a network can be intercepted. This is easy on wireless networks, because the signal travels through the air and anyone nearby can pick it up.
The principle:
- 1.The sender's device uses an encryption algorithm and a key to turn the plaintext into ciphertext.
- 2.The ciphertext is sent across the network.
- 3.The receiver uses the key to turn the ciphertext back into plaintext.
Addressing
Every device on a network needs a way to be identified so that data reaches the right place. There are two kinds of address.
IP address
There are two formats.
IPv4 uses 32 bits. It is written as four numbers separated by dots. Each number is a denary value from 0 to 255 (one byte). Example:192.168.0.25.IPv6 uses 128 bits. It is written as eight groups of four hexadecimal digits, separated by colons. Example: 2001:0db8:85a3:0000:0000:8a2e:0370:7334.| IPv4 | IPv6 | |
|---|---|---|
| Length | 32 bits | 128 bits |
| Written as | 4 numbers (0 to 255) separated by dots | 8 groups of 4 hex digits separated by colons |
| Number of addresses | About 4 billion | A vastly bigger number |
IPv6 was created because the world was running out of IPv4 addresses. There are now billions of devices, such as phones, tablets and smart TVs, that all need an address.
MAC address
- •It is assigned to the device by the manufacturer. It is built into the NIC.
- •It is made of 48 bits, written as 12 hexadecimal digits, usually in pairs separated by colons or hyphens. Example:
3C:52:82:1A:9F:0D. - •The first half identifies the manufacturer, and the second half identifies the device.
- •It is used to identify a device on a local network. A switch uses MAC addresses to send data to the correct device.
Standards
Without standards, a laptop from one company might not connect to a router from another, and a web page might look different in each browser. Standards mean that devices from different makers can be bought and used together, and make the market bigger. You do not need to learn any individual standards.
Protocols
Both devices must use the same protocol, or they cannot understand each other.
TCP/IP
TCP/IP is the set of rules the Internet is built on. TCP (Transmission Control Protocol) sets up the connection, splits the data into pieces and puts the pieces back together in the right order at the other end. IP (Internet Protocol) gives the addresses and makes sure each piece is sent towards the right destination.HTTP and HTTPS
HTTP (Hypertext Transfer Protocol) is used to request web pages and send them to the browser. A web browser uses HTTP to ask a web server for a page.HTTPS is HTTP with encryption. The data sent between the browser and the server is encrypted, so it cannot be read if it is intercepted. It is used for shopping, banking and logging in. The address starts with https and the browser shows a padlock.FTP
FTP (File Transfer Protocol) is used to transfer files between computers over a network. It is used to upload files to a web server, or to download large files.Email protocols
Three protocols are used for email:
| Protocol | Name | Used for |
|---|---|---|
| SMTP | Simple Mail Transfer Protocol | Sending email, from your device to the mail server and between mail servers |
| POP | Post Office Protocol | Receiving email. It downloads email to your device, and usually removes it from the server |
| IMAP | Internet Message Access Protocol | Receiving email. It keeps email on the server, so you can read the same mail on several devices |
IMAP. The email stays on the mail server, so both devices show the same inbox. If she deletes an email on her phone, it disappears on her laptop too. POP would download the email to one device, and the other device would not see it.
She would use SMTP to send her replies.
| Protocol | Purpose |
|---|---|
| TCP/IP | The rules of the Internet: splitting data, addressing and delivering it |
| HTTP | Requesting and sending web pages |
| HTTPS | Requesting and sending web pages securely, using encryption |
| FTP | Transferring files |
| SMTP | Sending email |
| POP | Receiving email (downloads to the device) |
| IMAP | Receiving email (kept on the server) |
Layers
Network software is split into layers. Each layer does one job, and passes its result to the layer above or below it. You do not need to name the layers or know what each does. You need to know what layering is and why it helps.
An everyday example is posting a parcel. You pack the parcel, a postal worker sorts it, a lorry delivers it. Each person does one job and does not need to know how the others do theirs.
Benefits of layers
- •Each layer has one clear job, so the problem is broken into smaller parts that are easier to understand and design.
- •A layer can be changed or improved without changing the other layers, as long as it still connects to the layers next to it.
- •It is easier to find and fix faults, because a problem can be traced to one layer.
- •Layers set out clear rules between them, which supports standards, so that different companies can each make products for one layer and they will still work together.
Exam technique
- •State and give: a short fact, one mark each. "State one protocol used to send email" is SMTP.
- •Describe: say what a thing is or does. For encryption, give the steps: plaintext, key, ciphertext, key again to get plaintext.
- •Explain: give a reason. "HTTPS is better because the data is encrypted, so it cannot be read if it is intercepted."
- •Compare (Ethernet, Wi-Fi, Bluetooth): write about both sides in the same sentence, using words such as "whereas" and "but".
- •Recommend or justify: choose one, then give a reason that uses the scenario.
- •Discuss (8 marks): give both sides, apply them to the scenario, and end with a conclusion that picks one and says why.
- •For IPv4 and IPv6, give the number of bits and the format. For a MAC address, say it is assigned to the device, 48 bits and hexadecimal.
- •Do not mix up POP and IMAP, or HTTP and HTTPS.