Computer Network
📂 Introduction to Computer Networks
· 1 of 3
57 min read
Computer Networks Explained
A visual, no-fluff tutorial on the two questions every network answers: how far does it reach, and how are devices wired together? Covers all five network types (PAN, LAN, WLAN, MAN, WAN) and all five topologies (bus, star, ring, mesh, hybrid) with 10 animated SVG diagrams, comparison tables, and real 2025 case studies — including the Red Sea undersea cable cuts and India's BharatNet fibre rollout.
Section 01
The Story That Explains Computer Networks
📖 Real World Analogy
The City, The Postal Van, and The Undersea Cable
Imagine your house. Inside it, family members shout across rooms — that's your
living-room-scale network. Step outside and you share the pincode with
your whole neighbourhood — that's your city-scale network.
Now zoom out: your WhatsApp message to a friend in Toronto crosses under the Atlantic
Ocean on a fibre thinner than a garden hose — that's a planet-scale network.
Same idea (moving information from A to B), just wildly different distances,
speeds, and owners. That is exactly what network types
(LAN, MAN, WAN, PAN, WLAN) classify — the geographical scale of the conversation.
And when we ask "how are these devices actually wired to each other?" — that's
what network topologies (bus, star, ring, mesh, hybrid) describe.
Every WhatsApp message, UPI payment, Google search, or Netflix stream you use is riding
on a stack of networks — one nested inside the next. This tutorial breaks down that
stack piece by piece, with animated diagrams, real examples, and headlines from the news.
📈
Two Questions Every Network Answers
1. How far? — that gives you the type: LAN, MAN, WAN, PAN, WLAN. 2. How connected? — that gives you the topology: bus, star,
ring, mesh, hybrid.
Learn both and you can look at any wiring closet, campus, or global data map and
say exactly what you're looking at.
Section 02
Network Types — The Five Scales at a Glance
Network type is decided almost entirely by distance.
A conversation between two devices sitting on the same desk needs completely different
hardware than a conversation between Mumbai and Frankfurt. Here are the five families
every networking student must know, ordered from smallest to largest.
📲
PAN — Personal Area Network
Range: ~10 metres
Your phone + smartwatch + earbuds + laptop, all around you. Typically
Bluetooth, USB, or NFC. Owned by one person; disappears when you walk away.
🏠
LAN — Local Area Network
Range: home / office / campus
Everything behind a single router: office PCs, printer, CCTV, servers. Uses Ethernet
cable or Wi-Fi. Owned by one household or organisation. Fastest of all — up to 10 Gbps.
📶
WLAN — Wireless LAN
Range: a room / a floor
A LAN whose wires have been replaced by radio (Wi-Fi 6/7). Same rules as LAN, but
devices join by password not by cable. This is what you use at home and in every café.
🏙️
MAN — Metropolitan Area Network
Range: a city (5–50 km)
Connects many LANs within one city. Think university campuses, city-wide CCTV,
cable TV, or all branches of one bank in Mumbai. Usually fibre backbone owned by
a telecom operator.
🌐
WAN — Wide Area Network
Range: country / continent / world
Connects LANs and MANs across huge distances — states, countries, oceans. The internet
itself is the largest WAN ever built. Uses fibre, satellite, and undersea cables.
🛡️
Others You'll Hear
CAN / SAN / VPN
CAN (Campus) — LANs of a college linked together. SAN
(Storage) — a network dedicated only to disk arrays. VPN — a private
"tunnel" carved out of a public WAN.
Section 03
PAN — Personal Area Network
A PAN is the smallest network you own. It travels with you. When you pair your
Bluetooth earbuds to your phone, you have just created a PAN. When you drop a photo
from your iPhone to your MacBook via AirDrop, that's a PAN. Range is typically under
10 metres — often less than the length of a small room.
Animated Diagram — A Personal Area Network
Rings pulse outward = Bluetooth advertising. Blue dots = data packets flowing to each paired device.
🔒 Everyday Examples of a PAN
Case 1
Boat AirDopes earbuds streaming a song from your Redmi phone (Bluetooth PAN).
Case 2
Apple Watch showing your WhatsApp notification from your iPhone in your pocket.
Case 3
Tapping a PhonePe QR at a shop — NFC on your phone talking to the terminal.
Case 4
USB cable from your laptop to a printer — a wired PAN.
Section 04
LAN — Local Area Network
A LAN connects devices inside a single building or campus. Your school computer lab,
a company office floor, or your home behind one router — all classic LANs. Two
defining traits: one owner (you, or your college, or the company), and
very high speed (100 Mbps to 10 Gbps is normal).
Animated Diagram — A Small Office LAN
Yellow dots = Ethernet packets. Every device talks to every other via the central switch. Typical speed: 1 Gbps.
⚡
Why LANs are so fast
Cables are short (a few metres to a few hundred), the owner controls every device,
and there are almost no other competitors on the wire. Result: microsecond-level
latency and multi-gigabit throughput. Nothing else in networking is this fast.
Real Example — A College Computer Lab
🎓 A Typical Punjab Engineering College Lab
Devices
40 desktops, 2 network printers, 1 file server, 1 projector — all inside one room.
Wiring
Each PC has a Cat-6 Ethernet cable running to a 48-port switch on the wall.
Speed
1 Gbps per port. All 40 students can pull the same
dataset from the server in seconds.
Owner
The college. Nobody outside the campus can touch this network directly.
Section 05
WLAN — Wireless Local Area Network
A WLAN is simply a LAN whose Ethernet cables have been replaced by radio waves —
what everyone in the world calls "Wi-Fi." Your home router is the classic example:
everything (phones, laptops, smart TV, Alexa, CCTV) joins it wirelessly, but from the
router onward it behaves exactly like a wired LAN.
Animated Diagram — Wi-Fi Router Broadcasting
Blue arcs = 2.4 & 5 GHz radio waves radiating from the router. Any device with the password can join.
💭
LAN vs WLAN — the only real difference
A LAN uses cables (Ethernet, Cat-6/Cat-7). A WLAN uses radio waves
(Wi-Fi standards: 802.11n / ac / ax / be). Everything else — IP addressing, routers,
subnets, DHCP — is identical. So a WLAN is technically a subset of LAN.
Section 06
MAN — Metropolitan Area Network
A MAN stitches together many LANs across an entire city. It is bigger than a LAN
but smaller than a WAN — usually 5 to 50 kilometres of reach. The backbone is almost
always optical fibre laid under roads, owned by a telecom operator or
a large institution.
Animated Diagram — A City-Wide MAN
Three branch LANs of one bank linked by fibre across Mumbai. Together they form a MAN.
📰 From the News
PM-WANI: India's City-Scale Public Wi-Fi (Feb 2026)
Under the Prime Minister Wi-Fi Access Network Interface programme,
4,09,111 public Wi-Fi hotspots have been deployed across the country, supported by 207 PDO Aggregators and 113 App Providers as of February 2026, to provide affordable, high-speed public internet connectivity, particularly in rural and remote areas.
When you connect many of these hotspots together with a fibre backbone across one city
— say Mumbai or Chandigarh — you have built a real, working MAN.
Each individual hotspot is a WLAN; the fibre that stitches them together is what
makes them a metropolitan network.
Section 07
WAN — Wide Area Network
A WAN connects LANs and MANs across enormous distances — cities, states, countries,
continents, even ocean beds. The internet itself is the biggest WAN humans have ever
built. WANs use every long-distance medium available: buried fibre, microwave towers,
satellite links, and — most famously — undersea cables carrying almost
all international traffic.
Animated Diagram — A Global WAN
Yellow & green dots = packets crossing oceans through submarine fibre cables. Purple = satellite backup link.
🚨 From the News
Red Sea Cable Cuts Slow Down Half the Planet's Internet (Sept 2025)
On the morning of September 6, 2025, a slow crisis began underwater.
Undersea cable cuts in the Red Sea disrupted internet access in parts of Asia and the Middle East,
the Associated Press reported. NetBlocks traced the damage to
the SMW4 and IMEWE cable systems near Jeddah, Saudi Arabia,
and warned that connectivity had degraded across India and Pakistan too.
Microsoft told its customers the Middle East
may experience increased latency due to undersea fiber cuts in the Red Sea.
Analysts at Kentik counted at least 10 nations in Africa, Asia and the Middle East had been affected by the cable cut,
including India, Pakistan and the UAE.
Why does one broken cable near Saudi Arabia slow down your Reels in Sirhind? Because
15 major cables passing through the Bab el-Mandeb Strait, carrying about 25% of global data traffic between Asia and Europe
all funnel through that narrow choke-point. It is the single most vivid, most
consequential story about how a WAN really works — and what happens when it breaks.
⚠️
The Fragility Hidden Under the Ocean
Roughly 95–97% of all international internet traffic travels through undersea
fibre-optic cables, not satellites. Fewer than 500 cables carry almost all of it.
The Red Sea 2025 incident, and the 2024 Rubymar anchor-drag that
disrupted nearly 25 percent of internet traffic between Asia, Europe, and the Middle East,
shows why redundancy — multiple routes — is not a luxury. It's survival.
India's Domestic WAN — BharatNet
🇦🇳 Real Case
BharatNet: The World's Largest Rural WAN (March 2026)
Not every WAN crosses oceans. India's own BharatNet is a country-scale
WAN whose sole purpose is to bring high-speed broadband to every gram panchayat.
As of early 2026, optical fibre deployment across the country increased from 19.35 lakh route kilometres in 2019 to 42.36 lakh route kilometres in 2025,
and more than 2.15 lakh Gram Panchayats are now connected under the BharatNet programme.
Every village panchayat's LAN, every PM-WANI hotspot's WLAN, every district's MAN —
they all plug into BharatNet, which then peers with the global internet. This is
the WAN layer you never see but use every day.
Section 08
Side-by-Side — All Five Types
Property
PAN
LAN
WLAN
MAN
WAN
Typical Range
1–10 m
up to 1 km
up to 100 m
5–50 km
100 km – global
Speed
<3 Mbps typical
1–10 Gbps
100 Mbps–10 Gbps
100 Mbps–10 Gbps
variable, often slower
Medium
Bluetooth, USB, NFC
Ethernet (Cat 6/7)
Wi-Fi radio
Fibre, microwave
Fibre, undersea cable, satellite
Owner
1 person
1 house / org
1 house / org
Telecom / large org
Many carriers & nations
Setup Cost
Almost zero
Low
Low
High
Very high
Example
Airpods + iPhone
Office Ethernet
Home Wi-Fi
Cable TV network
The Internet, BharatNet
Section 09
Network Topologies — The Second Question
We've answered "how far?" Now we answer "how are the devices wired
together?" This shape is called the topology of the network. The
choice of topology affects speed, cost, reliability, and how easy it is to add or
remove machines. There are five classic ones every student must know.
1
Bus — one wire, many taps
All devices share a single backbone cable, like passengers on a bus route.
2
Star — one hub in the middle
Every device gets its own dedicated cable to a central switch or router.
3
Ring — a closed loop
Data travels in one direction (or both) around a circle of devices.
4
Mesh — every path, everywhere
Multiple devices connect to multiple others, giving many redundant paths.
5
Hybrid — mix of the above
Real networks almost always combine several topologies — that's a hybrid.
Section 10
Bus Topology
In a bus network, a single long cable — the backbone — runs through
the office. Each computer taps into that cable with a short T-connector. Data placed on
the backbone travels in both directions; the intended recipient copies it, everyone else
ignores it. Both ends of the cable have a terminator to absorb the signal
so it doesn't echo.
Animated Diagram — Bus Topology
A single yellow backbone. Two packets ride it in opposite directions. Every PC "hears" everything but only the addressee keeps the packet.
✅ Advantages
Cheapest topology to install — one cable.
Very easy to extend for small networks.
Failure of one device does not affect others.
❌ Disadvantages
Backbone cable break = whole network down.
Only one device can transmit at a time (collisions).
Performance drops sharply as more machines are added.
🔨
Where you'd still see a bus
Pure bus wiring is largely retired for offices, but the idea lives on in
CAN bus (Controller Area Network) inside every modern car — where
the airbag ECU, engine ECU, ABS, and infotainment all share one wire pair.
Section 11
Star Topology
Star is the topology you use every single day. Every device on the network has its own
dedicated cable (or Wi-Fi connection) to a central hub, switch, or router.
All traffic flows through that central point. Your home Wi-Fi router is the star. Your
college lab's 48-port switch is the star.
Animated Diagram — Star Topology
Every packet routes through the central switch. Three simultaneous conversations happen without collisions.
✅ Advantages
If one cable fails, only that one device is affected.
Easy to add or remove devices — just plug in.
Modern switches allow full-duplex, near-zero collisions.
Fault isolation is trivial — check port lights.
❌ Disadvantages
If the central switch dies, the whole LAN is dead.
More cable needed than a bus — one per device.
Cost of the switch itself — not huge, but non-zero.
🔑
Why star won
Cables have become cheap. Switches have become smart. The only real risk — the
central hub failing — is solved by simply keeping a spare switch on hand. This is
why 99% of LANs on Earth today are stars, whether wired or wireless.
Section 12
Ring Topology
Devices are connected in a closed loop. Data travels around the ring, one hop at a
time. In the classical Token Ring design, a special "token" packet
circulates continuously; a device can only transmit when it is holding the token. This
prevents collisions completely but also means only one device talks at a time.
Animated Diagram — Ring Topology with a Token
A yellow "token" circles the ring. A node can transmit only when it is holding the token — guaranteed collision-free.
✅ Advantages
No collisions — deterministic access order.
Predictable performance under heavy load.
All devices have equal access to the medium.
❌ Disadvantages
A single device or cable failure can break the whole ring.
Adding or removing a device disrupts the network.
Latency grows with the number of hops.
🔆
Rings live on inside the internet
Classic office Token Ring is dead, but the idea of a fibre ring
is very much alive. Most metropolitan fibre backbones (including many BharatNet
districts) are built as SONET/SDH rings — where a break on one side
of the ring is instantly worked around by traffic flowing the other way. Rings gave
us self-healing networks decades before "cloud resilience" was a phrase.
Section 13
Mesh Topology
In a mesh, devices connect to many other devices, not just one central hub.
In a full mesh, every node has a direct link to every other node.
In a more common partial mesh, only the most important nodes are
fully interconnected while leaf devices connect via one or two paths. Meshes are
chosen when reliability matters more than cost.
High throughput — simultaneous conversations use different links.
Perfect for security and mission-critical work.
❌ Disadvantages
Cabling cost explodes: n(n−1)/2 links for n nodes.
Complex configuration and routing.
Not needed for most small offices.
🌐 Real Case — The Internet Itself
Why the Red Sea Cuts Didn't Kill the Internet
Remember the September 2025 cable break? Notice what the reports actually said:
"Nobody's completely offline, but each provider has lost a subset of their international transit".
Users saw slower speeds, not a blackout. Why? Because the global internet
is a partial mesh. As one analysis put it,
the internet, by design, is a "network of networks"... When a cable is cut, routing protocols like the Border Gateway Protocol (BGP) automatically reroute traffic through alternative paths.
Mesh topology, applied at planetary scale, is what saved 10 nations from going dark.
This is not academic — it's the reason your UPI payment still worked that Sunday.
Section 14
Hybrid Topology
A hybrid combines two or more of the previous topologies. In practice,
every real-world network is a hybrid. Your college has a fibre ring
connecting buildings (ring), each building has a switch feeding rooms (star), and the
internet uplink itself joins a mesh of ISP routers. Textbook topologies are pure ideas;
hybrids are what actually get built.
Animated Diagram — Hybrid: Star + Ring + Mesh
The internet is a mesh (top). A campus fibre ring hangs off it. Inside each building is a star. This "hybrid" pattern is what runs the real world.
🏆
Every real network is hybrid
Your college is a hybrid. Your bank's branch is a hybrid. The internet is a hybrid.
"Pure" bus / star / ring / mesh are teaching examples. When you deploy something in
production, you always mix. Hybrid is not a fifth flavor — it is the natural state
of networking.
Section 15
Topology Comparison Table
Property
Bus
Star
Ring
Mesh
Hybrid
Cable Cost
Lowest
Medium
Medium
Highest
Varies
Single Point of Failure?
Yes (backbone)
Yes (hub)
Yes (any node)
No
Depends
Ease of Adding Devices
Easy
Very Easy
Disruptive
Hard
Varies
Data Collisions
High
Minimal
None (token)
None
Depends
Fault Tolerance
Low
Medium
Low–Medium
Very High
High
Best For
Tiny, cheap setups
Homes & offices
Metro fibre backbones
Data centres, internet core
Real-world everything
Section 16
Putting It Together — What Runs a Modern Bank Branch?
Let's tie every concept in this tutorial to one everyday scene: an HDFC branch in
Sirhind, Punjab, letting a customer withdraw ₹10,000 from an ATM.
💳 The Packet Journey — from ATM tap to receipt
PAN
Customer's card is inserted; the chip talks to the ATM reader via short-range
electrical contact — a wired PAN.
LAN
Inside the branch, the ATM, teller PCs, CCTV, and printer all connect to a
switch. All wired Ethernet. A classic star LAN.
WLAN
The branch manager's iPad joins the same LAN via a Wi-Fi router in the corner.
That's the WLAN layer.
MAN
The branch's uplink joins a fibre ring that circles Ludhiana district,
connecting every HDFC branch in the region — a metro fibre ring MAN.
WAN
The MAN plugs into a national backbone which peers with global banking networks.
When your card is a Visa or Mastercard, the authorisation may fly across an undersea
cable to a US processing centre — the WAN.
Result
All five network types and at least three topologies (star + ring + mesh)
collaborate in under 2 seconds to say "yes, dispense
₹10,000." Every ATM withdrawal is a small miracle of layered networking.
Section 17
Choosing the Right Type & Topology
🏠
Home & Small Office
WLAN with star topology. One router covers all normal use, including
smart home devices, laptops, and streaming.
Wi-Fi 6 router / 100 Mbps FTTH
🎓
School / College Campus
LAN in each building (star), fibre ring or hybrid connecting
buildings. A campus network with a MAN feel.
1 Gbps switches / fibre backbone
🏭
City Bank / Chain Store
MAN linking many branch LANs across the city via leased fibre.
Star inside branches, ring between them for resilience.
SD-WAN / MPLS / fibre ring
💻
Multinational Company
WAN with partial mesh between country offices. VPN tunnels over
the public internet, plus dedicated leased lines for HQ traffic.
MPLS + IPSec VPN + SD-WAN
🏗️
Data Centre & Cloud
Full mesh (leaf-spine) fabric inside the data centre. Ultra-low
latency, redundant paths between every server rack.
40/100 Gbps fabric
🛠️
Industrial / IoT
Bus topology often survives here (CAN bus, Modbus, PROFIBUS)
where devices are simple and cable cost dominates.
CAN bus / Modbus RTU
Section 18
Golden Rules
🔒 Networking — Non-Negotiable Rules
1
Type is chosen by distance, topology by reliability & cost.
Confuse the two questions and every design conversation goes off the rails.
2
WLAN is a subset of LAN. All Wi-Fi networks are LANs;
not all LANs are Wi-Fi. Never treat them as opposing categories in an exam answer.
3
Star wins for endpoints; mesh wins for backbones.
Devices connect in a star; the backbones connecting stars use mesh or ring for
resilience. This pattern shows up in every real network on Earth.
4
Redundancy is not optional at WAN scale. The Red Sea 2025 event
proved it — one broken cable slows down 10 nations. Multiple paths, multiple
cables, multiple providers is the only defence.
5
A bus needs terminators; a ring needs a token; a star needs a healthy hub;
a mesh needs a routing protocol. If you can name the failure point of a
topology, you understand it.
6
Every production network is a hybrid. If someone insists their
design is "pure star" or "pure mesh," they are describing a diagram, not the
actual deployed reality.
7
Cost scales with cable, not with speed. Bandwidth is cheap today;
trenches, ducts, and undersea cable laying are the real expenses. This is why
redundancy at global scale is so precious — it took the industry decades
to build.