📘 CodingMarble Learn

Computer Networks: Types, Devices and Topologies

A computer network is a group of devices connected to share data and resources. By area, networks are PAN, LAN, MAN and WAN. Devices do different jobs: a modem converts digital and analog signals, a repeater boosts a weak signal, a hub sends data to all ports, a switch sends it only to the right device, a router joins networks and chooses a path, and a gateway joins networks that use different protocols. Topology is the layout of connections: star, bus, tree and mesh, each with its own strengths and weaknesses.

🎬 Step-by-step story

  1. Networks by size: PAN, LAN, MAN and WAN.
  2. Modem converts, repeater boosts, hub copies to everyone.
  3. Switch sends to one, router picks a path, gateway translates.
  4. Topology is the shape: star, bus, tree and mesh.
  5. Break one cable: see which topology keeps working.
  6. Your turn: pick a topology, break a cable and count.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

What is the real difference between LAN and MAN?

Area and owner. A LAN covers a building or campus and is owned by one group. A MAN covers a city and often joins many LANs.

Why do we need a modem at all?

Computers speak in digital signals, but many lines carry analog signals. The modem converts one to the other at both ends.

Why is a hub called 'dumb'?

It does not read addresses. It just copies every packet to every port.

Router or switch: which do I need?

A switch joins devices inside one LAN. A router joins different networks, such as your LAN and the Internet.

Is a gateway the same as a router?

Not exactly. A router forwards packets between networks. A gateway also translates between different protocols. Home devices often do both.

Why is mesh reliable but costly?

Many direct links mean data can take another path when one fails, but every extra link is extra cable and ports.

Which topology fails completely if one cable breaks?

Bus, if the backbone breaks. Try it in step 6.

What is a computer network?

A computer network is two or more computers or devices joined by cables or wireless signals so they can share data, files, printers and the Internet. Each device on a network is called a node. Data travels in small pieces called packets.

Types of networks: PAN, LAN, MAN, WAN

TypeFull formAreaExample
PANPersonal Area Networkabout 10 m, around one personphone + smartwatch by Bluetooth
LANLocal Area Networka room, building or campus (up to about 1 km)school computer lab, office
MANMetropolitan Area Networka city (up to about 30–50 km)city cable TV network, city-wide Wi-Fi
WANWide Area Networkstates, countries, the worldthe Internet, a bank's network across India

As the area grows, the cost and the number of devices grow, and the speed of the full link usually falls. A LAN is usually owned by one organisation; a WAN often uses lines from many companies.

Network devices: modem, repeater, hub

Network devices: switch, router, gateway

Hub vs switch

HubSwitch
sends to all portssends only to the right port
does not read addressesreads MAC addresses
more traffic, less secureless traffic, more secure

Network topologies: star, bus, tree, mesh

Topology is the arrangement (layout) of nodes and the links between them.

Star

Every node has its own cable to a central hub or switch. Easy to add nodes and find faults; one broken cable affects only one node. But if the centre fails, everything stops, and it needs more cable than bus.

Bus

All nodes connect to one main cable called the backbone, with a terminator at each end. Cheap and uses little cable. But a break in the backbone stops the whole network, and faults are hard to find; only one node can send at a time.

Tree

Star networks joined to each other in levels, like the branches of a tree (a hierarchy). Easy to grow, good for large schools or offices. If a main branch or the root fails, everything below it is cut off.

Mesh

Nodes are linked directly to many (in a full mesh, all) other nodes. If one link fails, data takes another path, so it is very reliable. But it needs many cables: n nodes need n(n − 1)/2 links in a full mesh, so it is costly.

Try it: map your home network

Draw every device at home that uses Wi-Fi or Bluetooth. Mark the Wi-Fi box in the middle. Which topology does it look like? (Usually star.) Which devices form a PAN? Look at the Wi-Fi box's label: does it say modem, router or both? In the 3D, step 6, break a cable in each topology and count how many computers still work.

Key formulas and definitions

Worked examples

1. Name the network: (a) laptop + wireless mouse, (b) 40 PCs in a school lab, (c) branches of a bank across India.

(a) PAN, (b) LAN, (c) WAN.

2. A lab of 30 computers is slow because every packet reaches every computer. Which device should replace the hub, and why?

A switch. It sends each packet only to the computer it is meant for, so traffic drops.

3. Two buildings of a school are 180 m apart and the LAN signal becomes weak. What device helps?

A repeater placed in between, to regenerate (boost) the signal.

4. How many cables are needed for a full mesh of 6 computers?

6 × 5 ÷ 2 = 15 cables.

5. In a bus topology with 8 computers, the backbone breaks. How many computers can still talk to the others?

None across the break; the backbone is shared, so the network stops working (0 of 8 normal).

6. A company has 4 floors; each floor has a switch joined to a main switch. Which topology is this, and which device joins the office LAN to the Internet?

Tree topology (stars in levels). A router (with a modem/gateway) joins it to the Internet.

Common mistakes

Practice quiz

1. A network inside one school building is a:
2. Which device changes digital signals into analog?
3. Which device sends data only to the intended computer?
4. In which topology does one backbone break stop the whole network?
5. Which device joins networks that use different protocols?

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What are the types of computer networks in Class 12 IP?

PAN (personal), LAN (local), MAN (metropolitan) and WAN (wide area), based on the area covered.

What is the difference between a hub and a switch?

A hub copies incoming data to all ports; a switch reads the MAC address and sends data only to the correct port.

Which topology is best for a school lab?

Star topology with a switch, because a single cable fault affects only one computer and faults are easy to locate.

Where this is taught

CBSE (India)Class 12Introduction to Computer Networks
England (GCSE, A level)Year 113.5 Fundamentals of computer networks
Japan高校(専門学科)1〜3年Network Management
Russia10 классDigital literacy
China高一Comp.2 Ch.3 Infrastructure
China高二Sel.2 Network basics

Learn next

Related lessons

All Informatics Practices lessons