01 / 20

LAN / WAN / VPN
Network Fundamentals

Understand the three core network types that power modern connectivity: from your home router to global infrastructure to encrypted tunnels.

Cyber Security

What Is a Network?

A computer network is a set of devices connected together to share resources and communicate. Every time you browse the web, send a message, or stream a video, you rely on networks.

What Is a LAN?

A Local Area Network (LAN) connects devices in a small, limited area: a home, classroom, or single office building. All devices typically share one internet gateway.

Router Switch Laptop Desktop Printer Phone LAN Boundary

What Is a WAN?

A Wide Area Network (WAN) spans large geographic distances: cities, countries, or the entire globe. The Internet is the largest WAN. WANs connect multiple LANs together.

LAN A LAN B WAN ISP ISP LAN C

What Is a VPN?

A Virtual Private Network (VPN) creates an encrypted tunnel over a public network (usually the Internet) so that data travels securely as if on a private network.

Your PC VPN Client Public Internet VPN Server Corp. LAN Encrypted Tunnel Attackers see only encrypted traffic

Why These Three Matter in Cyber Security

LAN Security
Attackers on the same LAN can sniff traffic, perform ARP spoofing, and exploit local services. Securing the LAN is your first line of defense.
WAN Threats
Data crossing the WAN travels through many routers you don't control. Man-in-the-middle attacks, BGP hijacking, and DDoS target WAN infrastructure.
VPN Protection
VPNs encrypt data end-to-end, protecting confidentiality on untrusted networks. Essential for remote work, public Wi-Fi, and bypassing censorship.

Core Concepts: Scope, Ownership, Security

1
Geographic Scope: LAN = single building; WAN = cities/countries; VPN = virtual overlay across any distance.
2
Ownership: LAN = privately owned hardware; WAN = ISP/carrier infrastructure; VPN = software layer on top of WAN.
3
Security Model: LAN = trust boundary (firewall at edge); WAN = untrusted public links; VPN = encrypted private channel over untrusted links.
4
Speed vs. Security: LAN offers the highest speed; WAN sacrifices speed for reach; VPN adds encryption overhead but gains confidentiality.

How They Relate to Each Other

WAN (Internet) VPN Tunnel (encrypted) Home LAN PC Phone Office LAN Server DB

Key Distinctions at a Glance

LAN WAN VPN
Scope Building / Campus City / Country / Global Virtual (any distance)
Speed 100 Mbps to 10 Gbps 1 Mbps to 1 Gbps Depends on WAN link
Ownership Private (you) ISP / Carrier Software overlay
Encryption Optional Not by default Always encrypted
Cost Low (one-time hardware) High (recurring lease) Low to medium
Threat Surface Internal threats Transit attacks Endpoint compromise

How to Identify a Network Type

1
Check the scope: Is it confined to a single building or campus? If yes, it is likely a LAN.
2
Check the distance: Does it span cities or countries using ISP links? That is a WAN.
3
Check for encryption: Is there an encrypted tunnel over a public network? That layer is a VPN.
4
Check ownership: Do you own all the infrastructure? LAN. Do you lease lines from a carrier? WAN. Do you use software to create privacy? VPN.
5
Remember: A VPN is not a separate physical network: it is a logical overlay that runs on top of a WAN or LAN.

Example 1: School Computer Lab

School Lab LAN Switch PC 1 PC 2 PC 3 Printer Server All devices share the same local network

Example 2: Company with Two Offices

NYC Office LAN London Office LAN WAN Link (leased line) R R Two LANs connected by a WAN ISP provides the link between cities

Example 3: Remote Worker on VPN

Coffee Shop (Public Wi-Fi) Laptop Internet (untrusted) Company HQ (Office LAN) Server VPN Encrypted Tunnel Data is encrypted even on public Wi-Fi Eavesdroppers see only gibberish

Common VPN Protocols

IPSec
Industry standard for site-to-site VPNs. Operates at the network layer. Supports both transport and tunnel modes.
OpenVPN
Open-source, highly configurable. Uses SSL/TLS for key exchange. Works on almost any platform. Port-flexible.
WireGuard
Modern, lightweight protocol with minimal code. Fast, efficient, uses state-of-the-art cryptography (ChaCha20, Curve25519).

Common Mistakes

✕ "VPN is a physical network"
A VPN is a virtual overlay: it uses existing WAN/LAN infrastructure. There are no separate VPN cables.
✕ "LAN means Wi-Fi"
LAN can be wired (Ethernet) or wireless (WLAN/Wi-Fi). Wi-Fi is one way to build a LAN, not the definition.
✕ "VPN makes you anonymous"
VPN hides traffic from the local network and ISP, but the VPN provider can still see your traffic. It is encryption, not full anonymity.

Summary Comparison

LAN WAN VPN
Full Name Local Area Network Wide Area Network Virtual Private Network
Physical? Yes (cables, switches) Yes (fiber, satellites) No (software tunnel)
Example Home Wi-Fi, school lab The Internet, MPLS links NordVPN, corporate IPSec
Main Cyber Risk ARP spoofing, rogue devices MITM, DDoS, BGP hijack Endpoint exploit, VPN leak
Primary Defense Firewalls, NAC, segmentation Encryption, IDS/IPS Strong protocols, kill switch

Question 1 of 5

A school has 30 computers in one classroom connected to a single switch. What type of network is this?

Question 2 of 5

Which of the following best describes the purpose of a VPN?

Question 3 of 5

A company connects its New York and Tokyo offices via an ISP-provided fiber link. What type of network connects the two offices?

Question 4 of 5

An employee at a coffee shop uses a VPN to access company files. Which layer is NOT involved in this scenario?

Question 5 of 5

Which statement about VPNs is a common misconception?