Virtual Private Networks, Cloud Computing and Network Design

IB Computer Science · Networks

Why a VPN exists. A worker in a café needs to reach the company's file server as if sitting in the office, but the path runs over the public internet, where any intermediate node can read unencrypted traffic. A virtual private network builds a tunnel: the original packet is encrypted, then wrapped inside a new packet addressed to the VPN server at the edge of the company network (encapsulation). An eavesdropper sees only that traffic is flowing between the laptop and the VPN server. At the far end the outer packet is stripped, the inner packet decrypted and delivered inside the private network. Three technologies make this work: tunnelling (encapsulation), encryption of the payload, and authentication of both ends so that the server accepts only genuine users and the client cannot be lured to a fake server. Companies also use VPNs to join branch offices into one private network over public lines instead of leasing dedicated circuits.

What a VPN does not do. It protects the path, not the endpoints: a laptop infected with malware carries the malware into the company network through a perfectly secure tunnel, which is why VPN access is usually combined with endpoint checks. It adds latency and processing overhead, and a consumer VPN merely moves the point of trust from the café's network to the VPN provider.

Cloud computing. Instead of owning servers, an organisation rents computing from a provider over the internet. A public cloud shares the provider's infrastructure among many customers: pay per use, instant scaling, no upfront purchase or maintenance, but data lives in the provider's data centres, possibly in another country, under the provider's security. A private cloud applies the same virtualisation and automatic provisioning to servers the organisation owns: full control and easier legal compliance, but capital cost and scaling limited by the hardware already bought. A hybrid cloud keeps sensitive data private and lets peak load overflow to the public cloud — a retailer's product pages on the public cloud at holiday peaks, its customer records private — at the price of the most complex operation and security. Evaluation always turns on four questions: what data, what law, how variable the load, and whether the organisation has technical staff.

Designing a network. A design question gives an organisation and asks for hardware, media, topology and security with justification. Work from constraints: distances decide copper versus fibre; mobility decides wireless; the number of devices and traffic pattern decide switch layout and where bandwidth must be highest; the boundary with the internet decides where the router and firewall go; separate subnets or VLANs keep student traffic away from servers; and redundancy — two links, a second switch — is justified where downtime costs more than the extra hardware. A justified design with a diagram scores; a list of expensive equipment does not.

VPN: A TUNNEL ACROSS A PUBLIC NETWORK · CLOUD: WHO HOLDS THE SERVERS REMOTE MACHINE café, home COMPANY NETWORK VPN server at the edge PUBLIC INTERNET — anyone can listen ENCRYPTED packet wrapped in a new packet → an eavesdropper sees only: there is traffic from A to B encapsulation (wrap the original packet in an outer packet) + encryption + authentication of both ends = tunnel a VPN protects the PATH, not the machine: an infected machine still carries malware into the company network PUBLIC CLOUD rent the provider's servers infrastructure shared with other customers pay per use · instant scaling no upfront purchase · no maintenance where is the data? who can see it? PRIVATE CLOUD the organization's own servers but virtualized, automatically provisioned full control · legal compliance upfront purchase · self-maintained scaling limited by the hardware bought HYBRID CLOUD sensitive data kept private demand spikes burst into the public cloud holiday-season web store: public customer records: private the most complex to operate and secure the evaluation question is always: which data, which laws, does the load fluctuate, and does the organization have a technical team
The top half of the figure shows a virtual private network: a machine in a café or at home connects to the company network over the public internet, where anyone along the path can listen in. The blue tunnel is how a VPN solves this: the original packet is encrypted and then wrapped in a new packet carrying the address of the VPN server at the edge of the company network, so an eavesdropper sees only that there is traffic from A to B without knowing the content or the real destination. The three components of the tunnel are encapsulation, encryption and authentication of both ends. The red line is the limitation that is often forgotten: a VPN protects the path but not the machine — an infected machine still carries malware into the company network through that very secure tunnel. The bottom half compares three cloud models. Public cloud means renting the provider's servers, shared with other customers, paying by usage, with instant scaling, no upfront purchase and no maintenance, but you must ask where the data is and who can see it. Private cloud means the organization's own servers but virtualized and automatically provisioned, with full control and easy legal compliance, but it requires upfront purchase and scaling is limited by the hardware already owned. Hybrid cloud keeps sensitive data private and lets demand spikes burst into the public cloud — the holiday-season store page in public, customer records in private — and is the most complex model to operate and secure. The last line gives the four questions of every evaluation: which data, which laws, does the load fluctuate, and does the organization have a technical team.

Worked example: Example 1 — does a VPN solve a company's problem

A consulting company of 200 employees works remotely over public Wi-Fi. After a data leak, the director proposes: everyone must use the company VPN, and that will solve security. Evaluate this.

Solution

A VPN solves exactly one problem — and solves it well. On public Wi-Fi, anyone on the same network can intercept unencrypted traffic, and a rogue access point can sit in the middle. A VPN encrypts all traffic from the laptop to the company's VPN server and authenticates the server, so eavesdropping along the path and rogue access points are both neutralized. If the leak came from interception along the path, a VPN is the right answer.

But three weaknesses remain. One, the endpoint: a laptop infected with malware, or lost without disk encryption, carries full access into the company network through that very secure tunnel; a VPN does not check whether the machine is clean. Two, user authentication: if the VPN needs only a password and the password is phished by email, the attacker walks straight into the private network as an employee. Three, inside the network: once in, VPN users usually see every server, so one compromised account exposes everything instead of a part.

The full proposal. A mandatory VPN plus two-factor authentication, disk encryption and software that checks the machine before admitting it to the tunnel, and network segmentation so each group sees only the servers it needs. Conclusion: the claim security will be solved is wrong because it mistakes one layer of protection for the whole; security is many layers, and a VPN is only the transmission layer.

Worked example: Example 2 — choosing a cloud model for a hospital

A hospital needs to store medical records (the law requires in-country storage and strict security), run an appointment booking portal for the public whose traffic increases tenfold in the epidemic season, and has a technical team of 8 people. Propose a model and justify it.

Solution

Step 1 — classify by data and law. Medical records are legally required to be stored in-country and are the most sensitive data; the booking portal holds less sensitive data (name, appointment time) and faces the public. The two have opposing requirements, so they should not use the same model.

Step 2 — medical records: private cloud. The law immediately rules out a foreign public cloud; even with a domestic provider, the hospital would still have to prove full control to the regulator. The hospital's own servers, virtualized for flexible provisioning, with a team of 8 sufficient to operate them. The load of the medical records is stable, with no need for sudden scaling, so the main drawback of a private cloud is not a problem.

Step 3 — booking portal: public cloud. A tenfold seasonal load is exactly the scenario for pay-per-use scaling: buying servers big enough for the peak would mean they sit idle 90% of the time; renting from the public cloud costs only for the time needed. A public-facing portal also benefits from a large provider's infrastructure for defending against denial-of-service attacks. The booking data needs only a name and a time; the real records never leave the private cloud.

Step 4 — connecting the two parts: a hybrid cloud, and its price. The public portal must ask the private cloud whether there are appointment slots available, so a tightly controlled connection is needed — only one service is allowed to ask, over an encrypted channel, with no permission to read records. This is exactly where complexity and risk concentrate: a flaw in this interface exposes the private cloud to the public. The team of 8 must dedicate people to this. Conclusion: a hybrid model, with the boundary drawn by law and by how much the load fluctuates, and with the interface between the two sides as the point that most needs protecting.

Common mistake

Trap 1 — saying a VPN solves security. A VPN protects the path; an infected machine and a phished password still pass through the tunnel.
Trap 2 — listing cloud advantages without asking where the data is. Laws about where data is stored rule out options before cost gets a say.
Trap 3 — designing a network by listing devices. Each choice must be tied to a constraint: distance, mobility, the internet boundary, the cost of downtime.

Key takeaway

Lesson 4 wrap-up. Four things to take into the exam room. One, a VPN is encapsulation plus encryption plus authentication, protecting the path, not the machine. Two, the three cloud models and the questions: which data, which laws, which load, which team. Three, hybrid draws the boundary by law and by fluctuation, and the interface between the two sides is the weak point. Four, design the network from constraints, with redundancy only when downtime costs more than the hardware.

← Network Hardware, Packets and Error Detection · All IB Computer Science lessons · Practice IB Computer Science questions (free, instant scoring) · Computational Thinking, Algorithm Design and Tracing →