Transmission Performance, Wireless and Network Security

IB Computer Science · Networks

Three different measurements. Bandwidth is the maximum capacity of a link in bits per second. Latency is the delay before data begins to arrive, determined largely by distance and by the number of hops. Throughput is the rate actually achieved, which is lower than bandwidth because of protocol overhead, congestion and retransmission. A satellite link can have high bandwidth and high latency at the same time: it transfers a large file well but makes an interactive video call unpleasant. Confusing these three is the single most common error in this topic.

What limits real performance. The medium — fibre, copper or radio — sets an upper bound. Congestion reduces throughput when many users share a link. Distance and the number of intermediate devices add latency. Interference and obstacles degrade wireless links. Protocol overhead consumes part of the capacity, since every packet carries headers. Compression raises effective throughput by sending fewer bits: lossless compression removes redundancy and can be reversed exactly, and must be used for code and documents; lossy compression discards information that human perception will not miss and achieves far higher ratios, which is why it is used for media.

Wireless. Radio brings mobility, cheap installation with no cabling, and easy addition of devices. Its costs are shared bandwidth among all devices on the same channel, degradation with distance and obstacles, interference from other transmitters, and above all the fact that the signal propagates beyond the walls of the building, so anyone within range can receive it. That last point is why wireless security is a different problem, not merely a harder one.

Security measures and what each actually achieves. Encryption protects confidentiality: an intercepted message is unreadable. Authentication establishes who a party is, through passwords, tokens or biometrics, and is strongest when two independent factors are combined. A firewall filters traffic by rules and controls what may cross the network boundary. A VPN encrypts traffic across a public network so that remote work is as safe as being on site. MAC address filtering is weak, because MAC addresses are transmitted in clear and can be copied. WEP is broken and must not be used; WPA2 and WPA3 are the current standards. Two principles hold generally: security is a stack of independent layers rather than one measure, and the human being is usually the weakest layer, which is why social engineering succeeds against technically strong systems.

SYMMETRIC VERSUS ASYMMETRIC — AND WHY PRACTICE USES BOTH SYMMETRIC — ONE shared key A B KHOÁ K FAST — suited to large blocks of data Problem: over what channel can key K be sent safely? ASYMMETRIC — a key PAIR A B encrypt with B's PUBLIC key decrypt with B's PRIVATE key Solves the key distribution problem hundreds of times SLOWER HYBRID MODEL — what every secure connection actually uses 1. Use ASYMMETRIC to exchange a session key 2. Use SYMMETRIC with the session key for all the data Result: safe when exchanging keys AND fast when transmitting With n people: symmetric needs n(n-1)/2 keys · asymmetric needs only 2n keys With 50 people: 1,225 symmetric keys, against 100 asymmetric keys — this is the key distribution problem
The central idea of the whole figure: the two kinds of encryption do not compete but solve two different problems, so real systems use both. Symmetric encryption uses a single key for both encryption and decryption. It is very fast, so it is suited to encrypting large blocks of data. But it has one problem it cannot solve by itself: how to send the key to the other party safely. If there is already a safe channel to send the key, there is already a safe channel to send the data itself. The problem gets worse with scale: for n people who want private communication between each pair, you need n times (n minus one), divided by two keys — with 50 people that is 1,225 keys to generate, distribute and safeguard. Asymmetric encryption uses a PAIR of keys linked mathematically: whatever is encrypted with the public key can be decrypted only with the corresponding private key. Because the public key does not need to be kept secret, it can be published freely — the key distribution problem disappears, and each person needs just one pair, which is 2n keys for the whole system. The price is speed: asymmetric operations are hundreds of times slower. The hybrid model in the blue strip is the practical answer, and stating it is a sign of a high-scoring answer. Every secure connection on the web works in two steps: it uses asymmetric encryption once at the start of the session only to exchange a random symmetric key called the session key, then uses that session key with symmetric encryption for all the remaining data. This gives the system the safety of asymmetric key exchange and the speed of symmetric encryption, without suffering the drawbacks of both. Another use of the key pair needs to be clearly distinguished: if the PRIVATE key is used to encrypt a digest of the message, anyone can verify it with the public key — that is a digital signature, and it guarantees authenticity and integrity, but does NOT guarantee confidentiality.

Worked example: Bandwidth, latency and throughput — three quantities that cannot substitute for one another

A school switches from a 100 Mb/s cable link with 10 ms latency to a 500 Mb/s satellite link with 600 ms latency. Users report that large file downloads are much faster but online meetings and working with applications on the server are clearly worse. Explain, and state how to handle it.

Solution

Why the large file downloads faster. For a large file, transfer time is dominated by bandwidth. A latency of 600 ms only affects when the first byte arrives; after that, data flows continuously at the line speed. For a 500 MB file, the portion of time caused by latency is less than one second out of a total of many seconds, so it is almost negligible compared with a fivefold increase in bandwidth.

Why online meetings are worse. Real-time conversation is dominated by latency, not bandwidth. A round trip of 1.2 seconds means the pause between one person finishing and the other reacting is longer than a second, so the two sides keep talking over each other. No amount of bandwidth fixes this, because the cause is the physical distance the signal must travel via the satellite.

Why server-based applications are much worse than predicted. This is the subtle part and where the marks are earned. Many applications make a long series of small back-and-forth exchanges: each user action can trigger dozens of request-response turns between client and server. Each turn costs one round trip, so 30 exchanges multiplied by 1.2 seconds is 36 seconds for an action that should take less than a second over the cable. The problem lies in the number of exchanges, not the amount of data.

Throughput is the third quantity and it is affected too. TCP adjusts its sending rate based on the acknowledgments it receives. With very high latency, the sender must wait a long time to learn that data has arrived, so if the sending window is not large enough, the actual throughput is far lower than the nominal bandwidth even though the line is completely idle.

The solution. Keep the satellite link for bulk downloads, backups and updates, which tolerate latency. Keep or lease a low-latency cable link, even with smaller bandwidth, for online meetings and for applications with many exchanges, and route traffic by type. For those applications themselves, reduce the number of exchanges by combining several requests into one and caching data on the client side. The principle to take away: increasing bandwidth solves a volume problem, not a latency problem, and only redesigning the application can reduce the number of exchanges.

Worked example: Designing layered security for a school wireless network

A school has Wi-Fi covering the whole campus, shared by teachers, students and guests. Propose layered security measures, and state clearly what each measure protects against and what it does NOT protect against.

Solution

Layer 1 — encrypt the link with WPA3, or at minimum WPA2. Protects: the confidentiality of traffic over the air, so someone sitting outside the school gate capturing the signal cannot read the content. Does not protect: anything once the user is connected. WEP must never be used because it has been completely broken and can be cracked in minutes.

Layer 2 — separate the network using virtual LANs. Split into three separate logical networks: teachers, students and guests. Protects: it limits the damage — a student's machine infected with malware cannot attack the grades server in the teacher network, and the guest network cannot reach internal resources at all. This is the most cost-effective measure in this situation. Does not protect: a stolen teacher account still has full teacher privileges.

Layer 3 — authenticate each user instead of using one shared Wi-Fi password. Protects: it allows tracing who did what, allows revoking one person's access without changing the password for the whole school, and prevents a shared password from spreading outside. For teacher accounts, two-factor authentication should be enabled, because these are high-privilege accounts. Does not protect: users who voluntarily give their password to a scammer.

Layer 4 — firewall and content filtering at the network boundary. Protects: it controls inbound and outbound traffic by rules, blocking unneeded ports and known malicious addresses. Does not protect: traffic between two machines inside the same network, because it does not cross the boundary.

Layer 5 — virtual private network for remote access. Protects: teachers working from home or on public Wi-Fi still have an encrypted tunnel to the school. Does not protect: an infected personal computer, because a VPN only protects the transmission and does not inspect the end device.

Why MAC address filtering should not count as a real layer. The MAC address is transmitted unencrypted in every frame, so anyone eavesdropping can read a valid address and set their own machine's address to it. It creates a false sense of security while costing a lot of effort to manage a very large list.

The final layer, and the weakest — people. Most successful intrusions do not break the encryption but persuade a person to hand over their login details. So phishing-awareness training, a clear rule that the IT department never asks for passwords, and a simple procedure for reporting suspicious incidents are measures as valuable as the technical layers above.

Common mistake

Trap 1 — confusing bandwidth, latency and throughput. Bandwidth is the maximum capacity; latency is the wait before data starts to arrive; throughput is the actual speed achieved. A link can have both high bandwidth and high latency, and increasing bandwidth never fixes a latency problem.
Trap 2 — treating MAC address filtering as a real security measure. MAC addresses are transmitted unencrypted so they are easily copied; it only creates a false sense of security.
Trap 3 — saying asymmetric encryption is more secure so it should be used for everything. It is hundreds of times slower. Real systems use a HYBRID model: asymmetric only to exchange the session key, then symmetric for all the data.

Key takeaway

Lesson 2 wrap-up. Four things to take into the exam room. One, the three performance quantities and the key line that increasing bandwidth does not fix a latency problem; for applications with many exchanges, the number of exchanges is the deciding variable. Two, the symmetric vs asymmetric table and the hybrid model, with the formula for the number of keys, n times n minus one divided by two, versus 2n. Three, what makes wireless security fundamentally different: the signal spreads beyond the walls so anyone within coverage can receive it. Four, security is a stack of layers; for each layer you must state what it protects against and what it does NOT protect against, and people are always the weakest layer.

← Network Types, Layers and Protocols · All IB Computer Science lessons · Practice IB Computer Science questions (free, instant scoring) · Network Hardware, Packets and Error Detection →