haya.Learning made clear
Unit III · Data communication, networks and the internet
10 min readConcept sheetOften a 10-mark answer

Network types, topologies and switching

Networks are grouped by size (LAN, MAN, WAN), drawn by topology (bus, star, ring, mesh) and move data by circuit, message or packet switching.

By sizePAN, LAN, MAN, WAN
Most common LAN layoutStar, around a switch
The internet usesPacket switching
Full mesh linksn(n − 1) ÷ 2

Network types by area

TypeArea coveredExample
PAN (personal area network)A few metres around one personPhone linked to earbuds by Bluetooth
LAN (local area network)One building or campusAn office or university network
MAN (metropolitan area network)A cityA firm's offices linked across Colombo
WAN (wide area network)A country or the worldA bank's branch network across the island; the internet

Network topologies

TopologyLayoutAdvantagesDisadvantages
BusAll devices joined to one main cable (backbone)Cheap; little cableOne break in the backbone stops the network; slows as traffic grows; faults hard to find
StarEvery device joined to a central switch or hubEasy to add devices; a cable fault affects only one deviceIf the central device fails, all stop; more cable
RingEach device joined to two others in a closed loop; data goes roundOrderly flow, no data collisionsOne break can stop the ring; adding devices disturbs it
MeshDevices joined to many or all othersMany paths, so very reliableCostly; a lot of cabling
Tree / hybridStar networks joined in levels, or a mix of layoutsEasy to expand; suits large firmsDepends on the main backbone

Counting links in a full mesh

Problem

How many direct links are needed to join 5 branch offices in a full mesh?

Working
  1. Each office links to every other office: links = n(n − 1) ÷ 2
  2. = 5 × 4 ÷ 2
  3. = 20 ÷ 2 = 10
Answer

10 links. A star with one central switch would need only 5.

Switching types

TypeHow it worksExampleNote
Circuit switchingA dedicated path is set up for the whole sessionTraditional telephone callPath stays reserved even when no one speaks
Message switchingThe whole message is stored at each node, then passed on (store and forward)Early telegram and email systemsDelays at each node
Packet switchingData is split into small numbered packets that may take different routes and are put back in orderThe internet, email, web pagesShares lines efficiently; most used today

Packet switching

In Sri Lankan business

A Sri Lankan bank uses LANs inside each building and a WAN to link its branches across the island, so a deposit made in Jaffna can be seen at once in Matara; traffic over the internet travels by packet switching.

Exam angle

Short answer: “What is a LAN?” A local area network: computers linked within one building or campus, such as an office.

Structured question: “Distinguish between circuit switching and packet switching.” Circuit switching reserves one dedicated path for the whole session (phone call). Packet switching splits data into packets that share lines and may take different routes (internet).

Essay: “Explain the main network topologies with diagrams, giving their advantages and disadvantages.” Define topology, draw and explain bus, star, ring, mesh and hybrid, with one advantage and one disadvantage each.

Remember it

Sizes: P-L-M-W (Personal, Local, Metropolitan, Wide). Topologies: 'Big Stars Rarely Meet' = Bus, Star, Ring, Mesh.