When you connect your laptop to Wi-Fi at home, stream a video from a server thousands of kilometers away, or pair your smartwatch with your phone over Bluetooth, you are using a computer network. But not all networks are the same size, shape, or purpose. Networks are classified based on their geographical span, ownership, and the technology used to connect devices.
In this article, we will explore the five major types of computer networks — LAN, MAN, WAN, PAN, and CAN — from first principles. We will explain what each one is, how it works, where it is used, and how they differ from one another, with practical Linux, Cisco, and Python examples along the way.
Table of Contents
- What Is a Computer Network?
- Why Do We Classify Networks by Size?
- PAN (Personal Area Network)
- LAN (Local Area Network)
- CAN (Campus Area Network)
- MAN (Metropolitan Area Network)
- WAN (Wide Area Network)
- Comparison Table of All Network Types
- Real-World Examples
- Linux Examples
- Cisco Examples
- Python Example: Simulating Network Ranges
- Best Practices
- Troubleshooting Common Issues
- Conclusion
1. What Is a Computer Network?
A computer network is simply a collection of two or more devices (computers, servers, printers, phones, IoT sensors, etc.) connected together so they can share resources and exchange data. The connection can be wired (Ethernet, fiber optic) or wireless (Wi-Fi, Bluetooth, cellular).
At the most basic level, every network needs three things:
- Nodes — the devices that send and receive data (computers, routers, switches, phones).
- Links — the physical or wireless medium that carries the data (cables, radio waves, fiber).
- Protocols — the rules that govern how data is formatted, addressed, and transmitted (TCP/IP, Ethernet, Wi-Fi standards).
Once you understand that a network is just “nodes talking to each other over links using protocols,” the next logical question is: how far apart can these nodes be, and how does distance change the way we design and manage the network? That is exactly what the LAN/MAN/WAN/PAN/CAN classification answers.
2. Why Do We Classify Networks by Size?
Imagine trying to connect two laptops sitting on the same desk versus connecting a bank’s headquarters in New York to its branch office in Tokyo. The physical distance completely changes:
- The type of cabling or wireless technology you can use.
- The cost of setting up and maintaining the connection.
- The speed and latency you can realistically achieve.
- Who owns and manages the infrastructure (you, an ISP, or a telecom carrier).
- The security risks involved (a cable in your office is very different from data crossing the public internet).
Because of these differences, network engineers group networks into categories based on their geographical scope. This makes it easier to select the right technology, plan a budget, and design a security model. The five most common categories, ordered from smallest to largest, are: PAN → LAN → CAN → MAN → WAN.
3. PAN (Personal Area Network)
A Personal Area Network (PAN) is the smallest type of network, typically covering a range of a few centimeters to about 10 meters. It connects personal devices belonging to a single user.
Characteristics of PAN
- Range: Usually within 10 meters (about 33 feet).
- Ownership: Owned and controlled by an individual.
- Technology: Bluetooth, Infrared (IR), USB, Zigbee, Near Field Communication (NFC).
- Devices: Smartphones, laptops, tablets, wireless headphones, smartwatches, fitness bands, wireless keyboards and mice.
How PAN Works
When you pair your phone with a wireless earbud, both devices use a short-range radio protocol (typically Bluetooth Low Energy) to discover each other, exchange a security key, and establish a private communication channel. No router, switch, or ISP is involved — the two devices talk directly.
Example Scenario
You are sitting on a train with your laptop tethered to your phone’s hotspot, your smartwatch syncing steps to your phone, and your wireless earbuds streaming music — all of that combined is a PAN centered around you.
4. LAN (Local Area Network)
A Local Area Network (LAN) connects devices within a limited geographical area such as a single building, home, office floor, or school. LANs are the most common type of network that ordinary people interact with daily.
Characteristics of LAN
- Range: Typically up to 1 kilometer (a single building or floor).
- Ownership: Owned by a single organization or individual (home Wi-Fi router, office network).
- Technology: Ethernet (IEEE 802.3), Wi-Fi (IEEE 802.11).
- Speed: Very high — 100 Mbps to 10 Gbps or more, since distances are short and infrastructure is privately controlled.
- Devices: Switches, access points, routers, desktops, printers, IP cameras.
How LAN Works
In a typical office LAN, all computers connect to a central switch using Ethernet cables. The switch forwards data frames to the correct device based on MAC addresses. If the LAN needs to reach the internet, a router connects the switch to the ISP’s network, translating private IP addresses to a public one using NAT (Network Address Translation).
graph TD
A[PC 1] --- S[Switch]
B[PC 2] --- S
C[Printer] --- S
D[Wi-Fi Access Point] --- S
S --- R[Router]
R --- I[Internet / ISP]Example Scenario
A small business office with 20 employees, each with a desktop connected to a switch, sharing one internet connection and one network printer, is a classic LAN.
5. CAN (Campus Area Network)
A Campus Area Network (CAN) connects multiple LANs within a limited geographical area such as a university campus, corporate campus, or military base. It is larger than a LAN but smaller than a MAN.
Characteristics of CAN
- Range: A few kilometers — usually confined to one campus or a cluster of adjacent buildings.
- Ownership: Owned by a single organization (university, corporation).
- Technology: Fiber optic backbone connecting multiple building LANs, high-speed switches, and sometimes wireless bridges between buildings.
- Speed: High — often 1 Gbps to 100 Gbps on the backbone.
How CAN Works
Each building on a campus has its own LAN. These LANs are interconnected through a high-speed fiber backbone, usually running through a central data center that houses core switches and routers. A CAN allows a student to log in with the same credentials and access the same resources whether they are in the library, the dormitory, or the engineering building.
Example Scenario
A university with a Computer Science building, a Library, and a Student Hostel, each having its own LAN, all interconnected via fiber to a central data center, forms a CAN.
6. MAN (Metropolitan Area Network)
A Metropolitan Area Network (MAN) spans a city or a large metropolitan area, connecting multiple LANs and CANs that are geographically dispersed across that city.
Characteristics of MAN
- Range: Typically 5 km to 50 km — covering a city or metro region.
- Ownership: Usually owned by a telecom company, ISP, cable provider, or municipal government, though large enterprises with multiple offices in one city sometimes build their own.
- Technology: Fiber optic cables, microwave links, and metro Ethernet.
- Speed: Moderate to high, but generally lower and more expensive per unit distance than a LAN because it depends on public or leased infrastructure.
How MAN Works
A cable TV or internet provider running fiber lines across a city to connect homes, offices, and businesses to a central hub is a MAN. Similarly, a bank with 15 branches in the same city, all connected via leased fiber lines to a central data center, is running a MAN.
graph LR
B1[Branch Office 1] --- H[City Data Hub]
B2[Branch Office 2] --- H
B3[Branch Office 3] --- H
H --- ISP[ISP Backbone / WAN]Example Scenario
City-wide public Wi-Fi networks, cable television networks, and metro Ethernet services connecting multiple corporate offices within the same city are all examples of MANs.
7. WAN (Wide Area Network)
A Wide Area Network (WAN) is the largest type of network, spanning countries, continents, or even the entire globe. The internet itself is the largest and most well-known WAN.
Characteristics of WAN
- Range: Unlimited — can span cities, countries, or continents.
- Ownership: Usually a combination of telecom carriers, ISPs, and sometimes private organizations (for dedicated corporate WANs).
- Technology: Leased lines, MPLS, satellite links, submarine fiber optic cables, VPNs over the public internet.
- Speed: Varies widely, generally lower and more variable than LAN speeds due to long distances and shared infrastructure, though modern backbone links can reach terabit speeds.
How WAN Works
A WAN connects multiple LANs and MANs that are geographically far apart using routers that communicate over long-distance links. Data traveling across a WAN often passes through multiple Autonomous Systems (AS), each managed by a different ISP, using routing protocols like BGP (Border Gateway Protocol) to find the best path.
graph LR
L1[Office LAN - New York] --- R1[Router]
L2[Office LAN - London] --- R2[Router]
L3[Office LAN - Tokyo] --- R3[Router]
R1 --- WAN((WAN / Internet Backbone))
R2 --- WAN
R3 --- WANExample Scenario
A multinational company with offices in New York, London, and Tokyo, connected using MPLS links or site-to-site VPNs, is running a corporate WAN. The public internet, which connects billions of devices worldwide, is the largest WAN in existence.
8. Comparison Table of All Network Types
| Feature | PAN | LAN | CAN | MAN | WAN |
|---|---|---|---|---|---|
| Full Form | Personal Area Network | Local Area Network | Campus Area Network | Metropolitan Area Network | Wide Area Network |
| Range | Up to 10 meters | Up to 1 km | A few kilometers | 5–50 km | Unlimited (global) |
| Ownership | Individual | Organization/individual | Single organization | ISP/telecom/enterprise | Multiple ISPs/carriers |
| Technology | Bluetooth, NFC, IR | Ethernet, Wi-Fi | Fiber backbone | Metro fiber, microwave | Leased lines, MPLS, satellite |
| Speed | Low to moderate | Very high | High | Moderate to high | Variable |
| Cost | Very low | Low | Moderate | High | Very high |
| Example | Phone + earbuds | Office network | University network | City cable network | The Internet |
9. Real-World Examples
- PAN: Connecting a smartphone to a smartwatch and wireless earbuds simultaneously.
- LAN: A home network with a router connecting a laptop, smart TV, and gaming console.
- CAN: A hospital campus with separate buildings for radiology, surgery, and administration, all linked via a fiber backbone.
- MAN: A city government network connecting traffic control systems, public libraries, and municipal offices.
- WAN: An airline’s global reservation system connecting ticket counters in every country to a central database.
10. Linux Examples
You can inspect and configure network interfaces on Linux to understand which “layer” of network you’re connected to.
Check your LAN IP address and interface:
ip addr showCheck your default gateway (the door out of your LAN toward the WAN):
ip route show defaultTrace the path your packets take from your LAN out to a WAN destination:
traceroute google.comThe output of traceroute is a great visual demonstration of the PAN → LAN → MAN → WAN journey: the first hop is usually your home router (LAN boundary), the next few hops belong to your ISP’s metro network (MAN), and the later hops cross the public internet backbone (WAN).
Simulate a simple PAN-like Bluetooth scan on Linux:
bluetoothctl scan on11. Cisco Examples
Network engineers configuring Cisco devices often need to define VLANs (Virtual LANs) to logically separate a physical LAN into smaller broadcast domains — useful within a CAN or large LAN.
Creating a VLAN on a Cisco switch (LAN segmentation):
Switch> enable
Switch# configure terminal
Switch(config)# vlan 10
Switch(config-vlan)# name Sales
Switch(config-vlan)# exit
Switch(config)# interface fastEthernet 0/1
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 10
Switch(config-if)# exitConfiguring a WAN link using a serial interface (connecting two distant sites):
Router> enable
Router# configure terminal
Router(config)# interface serial 0/0/0
Router(config-if)# ip address 203.0.113.1 255.255.255.252
Router(config-if)# encapsulation ppp
Router(config-if)# no shutdownThis kind of serial or leased-line configuration is typical when connecting two branch offices across a city (MAN) or across countries (WAN).
12. Python Example: Simulating Network Ranges
Here is a simple Python script that classifies a network based on its approximate range in meters — useful as a teaching tool to reinforce the concept.
def classify_network(range_in_meters):
if range_in_meters <= 10:
return "PAN (Personal Area Network)"
elif range_in_meters <= 1000:
return "LAN (Local Area Network)"
elif range_in_meters <= 5000:
return "CAN (Campus Area Network)"
elif range_in_meters <= 50000:
return "MAN (Metropolitan Area Network)"
else:
return "WAN (Wide Area Network)"
test_ranges = [5, 500, 3000, 25000, 500000]
for r in test_ranges:
print(f"Range: {r} meters -> {classify_network(r)}")
Output:
Range: 5 meters -> PAN (Personal Area Network)
Range: 500 meters -> LAN (Local Area Network)
Range: 3000 meters -> CAN (Campus Area Network)
Range: 25000 meters -> MAN (Metropolitan Area Network)
Range: 500000 meters -> WAN (Wide Area Network)This simplified logic mirrors how network architects mentally categorize a deployment before choosing hardware and protocols.
13. Best Practices
- Segment your LAN with VLANs to isolate traffic (guest Wi-Fi vs. internal staff network) and reduce broadcast domain size.
- Use fiber optic backbones for CAN and MAN deployments to future-proof bandwidth needs.
- Encrypt WAN traffic using VPNs (IPsec or WireGuard) since WAN links often traverse public or shared infrastructure.
- Document your network topology at every scale — PAN devices, LAN switches, CAN backbones, and WAN links — so troubleshooting is faster.
- Apply the principle of least privilege on PAN and LAN devices; disable Bluetooth discoverability and unused switch ports.
- Monitor latency and packet loss separately for LAN, MAN, and WAN segments since acceptable thresholds differ drastically (sub-millisecond for LAN vs. 100+ ms acceptable for WAN).
14. Troubleshooting Common Issues
| Symptom | Likely Layer | Troubleshooting Steps |
|---|---|---|
| Bluetooth device won’t pair | PAN | Restart Bluetooth service, clear pairing cache, check device proximity |
| Two PCs in the same office can’t see each other | LAN | Check switch port status, verify same subnet/VLAN, check firewall |
| Devices in one building can reach another building’s server but slowly | CAN | Check fiber backbone utilization, inspect inter-building switch uplinks |
| Branch offices in the same city experience outages | MAN | Contact metro fiber/ISP provider, check redundant links |
| Remote office VPN keeps dropping | WAN | Check ISP WAN link stability, MTU settings, VPN tunnel keepalive settings |
General troubleshooting command sequence on Linux:
ping 127.0.0.1 # Test local loopback (device itself)
ping <gateway_ip> # Test LAN connectivity
ping 8.8.8.8 # Test WAN/internet connectivity
traceroute 8.8.8.8 # Identify exactly where the failure occurs15. Advanced Concepts: Hybrid and Overlapping Networks
In practice, real-world networks rarely fit neatly into a single category. Most organizations run a hybrid of several network types simultaneously, layered on top of each other. Understanding how these layers interact helps explain why network design is as much about hierarchy as it is about raw distance.
SD-WAN: Reinventing the WAN
Software-Defined WAN (SD-WAN) is a modern approach to building WANs that uses software to intelligently route traffic across multiple types of connections — broadband internet, MPLS, and LTE — instead of relying on a single expensive leased line. SD-WAN controllers dynamically choose the best path based on real-time conditions like latency, jitter, and packet loss, which is a major improvement over traditional static WAN routing.
graph TD
Branch[Branch Office] -->|Broadband| SDWAN[SD-WAN Controller]
Branch -->|LTE Backup| SDWAN
Branch -->|MPLS| SDWAN
SDWAN --> HQ[Headquarters Data Center]
SDWAN --> Cloud[Cloud Applications]WLAN: The Wireless Variant of LAN
A WLAN (Wireless Local Area Network) is simply a LAN implemented using Wi-Fi instead of Ethernet cables. It follows the exact same range and ownership rules as a LAN but uses radio waves (IEEE 802.11 a/b/g/n/ac/ax) instead of copper or fiber cabling. Most modern homes and offices actually run a hybrid LAN/WLAN, with some devices wired directly to a switch and others connecting wirelessly through an access point.
VPN: Extending a LAN Across a WAN
A Virtual Private Network (VPN) allows a remote device — potentially thousands of kilometers away — to behave as though it is part of a local LAN, by creating an encrypted tunnel across the WAN (typically the public internet). This is how remote employees can access internal company file servers and printers as if they were sitting in the office, even though the physical traffic is crossing a WAN.
16. How Network Size Affects Design Decisions
The category a network falls into has direct, practical consequences on how it should be designed:
- Redundancy needs increase with size. A LAN might tolerate a single switch failure with minor disruption, but a WAN connecting multiple continents needs multiple redundant paths (multi-homed ISP connections, satellite backup links) since an outage affects far more users and business operations.
- Latency budgets shrink as distance decreases. Applications like real-time multiplayer gaming or VoIP calls are latency-sensitive and perform best on a LAN (sub-millisecond latency) but must tolerate 50-150ms of latency when running over a WAN.
- Address planning becomes more complex at scale. A LAN might use a single private subnet like
192.168.1.0/24. A CAN or MAN typically requires careful subnetting and VLAN planning to avoid IP address conflicts and to control broadcast traffic. A WAN, especially the public internet, relies on globally coordinated address allocation via IANA and Regional Internet Registries (RIRs). - Security perimeters change shape. On a LAN, a single firewall at the internet gateway may be sufficient. On a MAN or WAN, security must be distributed across multiple sites, often layered with VPNs, intrusion detection systems, and per-branch firewalls.
17. Frequently Asked Questions
Is the internet a single WAN, or many WANs combined?
The internet is technically a network of networks — thousands of individually managed Autonomous Systems (ASes), each of which may itself be a WAN, all interconnected using BGP. Colloquially, though, “the internet” is described as the largest WAN in existence because from an end user’s perspective, it behaves as one giant, borderless network.
Can a LAN exist without internet access?
Yes. A LAN only requires devices to be connected to each other, typically via a switch or access point. Internet access is a separate service, usually provided through a router that bridges the LAN to a WAN (the ISP’s network). A completely isolated LAN, sometimes called an “air-gapped network,” is common in high-security environments like industrial control systems.
What’s the practical difference between a CAN and a MAN?
The key distinguishing factor is ownership and geographic scope. A CAN is confined to a single organization’s contiguous property (a university campus, a corporate park) and is typically owned entirely by that organization. A MAN spans a whole city and often relies on infrastructure owned by a third-party telecom or cable provider, even if a single company is the primary user of that infrastructure.
18. Conclusion
Understanding LAN, MAN, WAN, PAN, and CAN is fundamental to designing, deploying, and troubleshooting any computer network. Each type exists because of a practical trade-off between distance, cost, speed, and ownership. A PAN connects your personal gadgets, a LAN connects devices in one building, a CAN links multiple buildings on one campus, a MAN connects an entire city, and a WAN — the largest of them all — connects the entire globe.
Once you internalize this hierarchy, concepts like routing, VLANs, NAT, and VPNs start to make a lot more sense, because you can immediately picture where in the network hierarchy a given problem or configuration applies.