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.
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.