CH 6 · NETWORKS & TOPOLOGIES
Unit 2 · Computer Networks

Chapter 6
Networks, Devices
and Topologies

Unit 1 was one machine talking to itself. Unit 2 is two machines, a thousand kilometres apart, agreeing on how to talk.

1.1 Where we have got to

Unit 1

Data in memory, then data on a disk. Every byte stayed inside one computer.

The new question

Chapter 4 wrote marks.csv. How does that file get from the school office to the board's server 800 km away — reliably, in seconds, over cables and air owned by dozens of different companies?

The answer takes two chapters

Chapter 6 — the hardware: what is connected, how it is wired, and which box sits where.
Chapter 7 — the rules: the protocols the two ends agree on.

Definition

Computer network — a collection of two or more independent computing devices connected through a transmission medium, so that they can exchange data and share resources.

How this unit is examined

Almost entirely by drawing and naming. "Draw the star topology." "Name the device." "Suggest a suitable topology and justify." A word list scores nothing; a labelled diagram scores full marks. Every diagram in this deck is one you should be able to reproduce.

1.2 How this chapter runs

Five stops

  1. Evolution — ARPANET to the Internet, and why it matters
  2. Types of network — PAN, LAN, MAN, WAN
  3. Network devices — NIC, modem, repeater, hub, switch, router, gateway
  4. Topologies — bus, star, tree, mesh
  5. Transmission media — guided and unguided

The four things a network needs

ComponentIn this chapter
Nodes — the devices§2, §3
Medium — what carries the signal§6
Layout — how they are joined§5
Protocol — the agreed rulesChapter 7
Advantages of a network — the 4-mark list

Resource sharing (one printer, many users) · File sharing · Communication (email, chat, VoIP) · Centralised data and backup · Cost saving · Reliability — a copy exists elsewhere.

2.1 How the Internet actually happened

1969 ARPANET 4 universities, USA 1982 TCP/IP adopted one common language 1986 NSFNET backbone links many networks 1990 World Wide Web Tim Berners-Lee, CERN 1995 commercial Internet A research project for four computers became a network of billions — because every step added a way for different networks to interconnect.
ARPANET → NSFNET → Internet. The Web arrives last, and runs on top of the Internet.
The distinction the paper tests

The Internet is the global network of networks — the wires, routers and addresses. The World Wide Web is one service that runs on it, made of linked pages served over HTTP.

Email, FTP and VoIP also run on the Internet and are not part of the Web. The Internet is the road; the Web is one kind of traffic on it.

2.2 The vocabulary to get right

Definition

ARPANET — Advanced Research Projects Agency Network, 1969. The first packet-switched network, funded by the US Department of Defense, connecting four university computers. The ancestor of the Internet.

Definition

NSFNET — National Science Foundation Network, 1986. A high-speed backbone that linked regional networks together and opened the network beyond defence research.

Definition

Internet — the worldwide interconnection of networks using the TCP/IP protocol suite.

Definition

World Wide Web (WWW) — a collection of interlinked hypertext documents accessed over the Internet using HTTP, proposed by Tim Berners-Lee in 1989–90 at CERN.

Definition

Interspace — a client/server software environment that allows users to communicate using multiple media — text, video, audio — in a dynamic three-dimensional environment, in real time.

Interspace is a one-mark definition

It appears in the syllabus and almost nowhere else in life. Learn the wording above; you will not need to reason about it.

3.1 Four sizes, drawn to scale

WAN — country to worldwide MAN — a city, up to ~50 km LAN — a room, building or campus PAN — ~10 m Each one contains the smaller. The only thing that changes is geographical spread — and everything else follows from it.
PAN ⊂ LAN ⊂ MAN ⊂ WAN. A WAN is built by joining LANs and MANs together.
TypeFull formSpreadOwned byExample
PANPersonal Area Networkup to ~10 mone personphone + earbuds over Bluetooth
LANLocal Area Networkup to ~1 kmone organisationa school computer lab
MANMetropolitan Area Networkup to ~50 kmshared / a providerall branches of a bank in a city; cable TV
WANWide Area Networkunlimitedmany organisationsthe Internet
The distances are indicative, not exact. What matters is the order of magnitude.

3.2 Why size changes everything else

 LANMANWAN
Data transfer speedVery highModerateLower
Error rateLowestModerateHighest
Cost to set upLowHighVery high
Ownershipprivateprivate or publicusually public
Typical mediumtwisted pair, Wi-Fioptical fibrefibre, satellite, leased lines
Maintained bythe ownera providermany providers
The reason, in one sentence

Signals weaken and take time over distance. A LAN's cables are short, so the signal is strong, fast and rarely corrupted. A WAN's path crosses continents, so it is slower, more error-prone, and needs equipment at every hop — which is exactly why it costs more.

Question 1

Classify each: (a) two laptops sharing files over Bluetooth in one room · (b) the computers of one college campus with three buildings · (c) the branches of a bank across Delhi · (d) a company with offices in Mumbai, London and Tokyo.

Are you ready for the answer? 🤔
Answer

(a) PAN  ·  (b) LAN — a campus network is still a LAN  ·  (c) MAN — one city  ·  (d) WAN.

(b) is the one people get wrong. Several buildings on one campus, owned by one organisation, is a LAN — sometimes called a CAN, Campus Area Network. It becomes a MAN only when it spreads across a city on someone else's infrastructure.

4.1 Where each device sits

Computer + NIC Switch joins the LAN Router picks the path Modem digital ⇄ analog Internet inside the LAN the edge — LAN meets the world A repeater would sit on any one of these links, if the cable were too long.
Learn the order, not just the names. Questions ask "which device goes here?"
The one-line answer for each

NIC — lets a computer join a network at all. Repeater — makes a weak signal strong again. Hub — joins devices, shouts to everyone. Switch — joins devices, speaks to one. Router — joins networks and chooses the route. Gateway — joins networks that speak different protocols. Modem — converts digital to analog and back.

4.2 NIC, repeater and modem

NIC

Network Interface Card — the hardware that physically connects a computer to a network. Every NIC carries a permanent, globally unique MAC address burnt into it by the manufacturer.

MAC address

48 bits, written as six hex pairs — 00:1B:44:11:3A:B7. It identifies the device; an IP address identifies its position on the network. Also called the physical or Ethernet address.

Repeater

Repeater — a device that receives a weakened (attenuated) signal, regenerates it to its original strength, and retransmits it, so the network can span a longer distance.

R weakening restored
Modem

ModemModulator–Demodulator. It converts the computer's digital signal into an analog signal for transmission over a telephone or cable line, and converts incoming analog signals back to digital.

M digital analog
Why a modem is needed at all

Telephone lines were built to carry the analog waveform of a human voice. A computer produces digital square pulses, which such a line cannot carry faithfully. The modem translates in both directions — which is why there is one at each end.

4.3 Hub versus switch — the drawn difference

Hub — broadcasts to everyone

HUB A B C D B, C and D all receive it

A hub has no idea who is who. It copies whatever arrives to every other port. C and D must inspect the data and discard it.

Switch — sends only to the target

SWITCH A B C D only B receives it

A switch keeps a table of which MAC address is on which port, so it forwards to one port only.

 HubSwitch
Sends data toevery portonly the destination port
Uses addresses?NoYes — MAC addresses
Bandwidthshared by allfull, per port
Collisionsfrequentavoided
Securitypoor — all can see the databetter
Costcheapermore expensive
"Suggest a device to connect the computers in a lab" → switch, and say why: it avoids collisions and wasted bandwidth.

4.4 Router and gateway

Router

Router — a device that connects two or more networks and determines the best path along which to forward a data packet towards its destination, using the IP address in the packet.

Gateway

Gateway — a device that connects two networks that use different protocols or architectures, translating between them so that they can communicate. It is the entry and exit point of a network.

LAN 1 LAN 2 ROUTER same protocol — TCP/IP both sides TCP/IP other GATEWAY different protocols — it translates
Router vs gateway, in one sentence

A router joins networks that already speak the same language and just need directions. A gateway joins networks that speak different languages and need a translator. Every gateway does routing; not every router is a gateway.

The box in your home

What people call "the router" at home is usually a modem, router, switch and wireless access point in one case. In the exam, name the function being asked about, not the box.

4.5 The device table, and a worked question

DeviceJobWorks usingConnects
NICattaches a computer to a networkMAC addressone computer → the medium
Repeaterregenerates a weakened signalnothing — pure signaltwo lengths of cable
Hubjoins devices, broadcastsnothing — no addressesdevices in one LAN
Switchjoins devices, forwards preciselyMAC addressdevices in one LAN
Routerchooses the path between networksIP addressnetwork ↔ network
Gatewaytranslates between protocolsprotocol conversiondissimilar networks
Modemdigital ⇄ analog conversionmodulationcomputer ↔ phone/cable line
Question 2

Name the device for each: (a) the lab's 30 computers must be connected so that data reaches only the intended machine · (b) a cable run of 150 m has a signal too weak at the far end · (c) the school LAN must be connected to the Internet · (d) a computer has no way to connect to a network at all.

Are you ready for the answer? 🤔
Answer

(a) Switch — "only the intended machine" rules out a hub.
(b) Repeater — the problem is signal strength over distance, nothing else.
(c) Router — it joins two different networks and picks the path. (A modem is also needed if the link is over a telephone or cable line.)
(d) NIC — without it the machine cannot join any network.

Technique: the question always contains the keyword. "only the intended" → switch · "weak / long distance" → repeater · "two networks" → router · "different protocols" → gateway.

5.1 What a topology is

Definition

Network topology — the arrangement or layout in which the nodes of a network are physically or logically connected to one another.

Judge every topology on four things
  1. Cable required — how much wire must be bought and laid
  2. Cost — cable plus devices
  3. Fault tolerance — what happens when one link or node fails
  4. Ease of adding a node — is the network disturbed?

Every advantage and disadvantage in this section is one of these four. Learn the four questions and you can derive the answers.

How this is examined

Three ways, and you need all three:

Draw it — a labelled diagram, four to six nodes.
Two advantages and two disadvantages.
Choose one for a described situation and justify the choice.

Drawing tip

Always label the nodes and the central device. An unlabelled sketch of circles and lines is worth nothing, and the labels take four seconds.

5.2 Bus topology

T T A B C D one backbone cable · T = terminator
Every node taps into one shared cable. Terminators at both ends absorb the signal.
Definition

Bus topology — all nodes are connected to a single common backbone cable through drop lines. A signal placed on the bus travels to every node; only the addressed node accepts it.

Advantages

Uses the least cable of any topology, so it is the cheapest.
Easy to install for a small network laid out in a line.
Failure of one node does not affect the others.

Disadvantages

If the backbone breaks, the whole network fails — a single point of failure.
A fault is hard to locate — you must test the whole cable.
All nodes share the bandwidth, and collisions rise sharply as nodes are added.

5.3 Star topology

SWITCH A B C D E
Every node has its own dedicated cable to a central hub or switch.
Definition

Star topology — every node is connected by a separate point-to-point link to a central device (a hub or switch). All communication passes through that centre.

Advantages

Failure of one node or one cable affects only that node.
Faults are easy to locate — the problem is on one link.
Adding or removing a node does not disturb the rest.
With a switch, no collisions and full bandwidth per node.

Disadvantages

If the central device fails, the whole network fails.
Needs more cable than a bus — one run per node.
Cost of the central hub or switch.

The default answer

If a question asks which topology to use inside a building or lab and gives no special constraint, star is the expected answer — and "easy fault isolation, one node's failure does not affect others" is the justification.

5.4 Tree topology

ROOT SW 1 SW 2 A B C D stars, joined to a backbone — a hierarchy
Several star networks connected to a central backbone. Also called a hierarchical topology.
Definition

Tree topology — a hierarchical arrangement combining the features of bus and star: groups of star-configured nodes are connected to a linear backbone, forming levels like the branches of a tree.

Advantages

Scales well — new branches are added without redesigning the network.
A fault in one branch does not affect the others.
Natural fit where the organisation itself is hierarchical.

Disadvantages

If the root or the backbone fails, the whole network fails.
Uses a lot of cable and is harder to configure.
More devices needed, so higher cost.

The situation that calls for it

A campus or a multi-storey building: one switch per floor or per block, all joined back to a central one. That is exactly the shape of the case-study question in §7.5.

5.5 Mesh topology

A B C D E 5 nodes → 10 links
Every node is connected to every other node directly.
Definition

Mesh topology — every node has a dedicated point-to-point link to every other node. For n nodes the number of links is n(n − 1) / 2, and each node needs n − 1 ports.

links = n(n − 1)2  →  for n = 5: 5 × 4 / 2 = 10
Advantages

Most reliable — if one link fails, data takes another route.
No traffic congestion; each link carries only its own pair's data.
Best security and privacy — data does not pass through other nodes.

Disadvantages

Enormous cabling — the count grows roughly as n².
Highest cost of all topologies.
Very difficult to install and reconfigure.

Quick calculation

How many cables does a full mesh of 8 nodes need? And how many ports on each node?

Answer

8 × 7 / 2 = 28 cables, and 7 ports on every node. Adding a ninth node would need 8 more cables and a new port on all eight existing nodes — which is exactly why mesh is never used for an office LAN.

5.6 The four topologies, compared

 BusStarTreeMesh
Cable neededLeastModerateHighMost
CostLowestModerateHighHighest
One node failsothers fineothers fineothers fineothers fine
Single point of failurethe backbonethe central devicethe rootnone
Fault detectionDifficultEasyModerateEasy
Adding a nodeEasyEasy, no disturbanceEasyVery difficult
ReliabilityLowModerateModerateHighest
Best used forsmall, cheap, lineara lab or officea campus or multi-floor sitecritical backbones
Read the two "single point of failure" and "cost" rows together — they are the trade-off the whole section is about.
The trade-off, in one sentence

Reliability costs cable. Bus is cheapest and most fragile; mesh is most reliable and most expensive; star and tree sit in between, which is why almost every real network is one of those two.

6.1 Guided and unguided

Definition

Transmission medium — the physical path along which a signal travels from sender to receiver.
Guided (wired) — the signal is confined within a solid medium: twisted pair, coaxial cable, optical fibre.
Unguided (wireless) — the signal travels through air or space: radio waves, microwaves, infrared, satellite.

Twisted pair two copper wires, twisted

Cheapest, easiest to install, used for almost every LAN (the RJ-45 Ethernet cable). Twisting cancels interference. Lowest bandwidth and shortest range of the three — about 100 m per run.

Coaxial jacket shield core

A core conductor inside a braided shield. Better bandwidth and far less interference than twisted pair; carries a signal further. Thicker, costlier, harder to install. Used for cable TV and older LANs.

Optical fibre light, reflected along a glass core

Carries light, not electricity. Highest bandwidth, longest distance, immune to electrical interference, and the most secure — it cannot be tapped without detection. Most expensive; needs skilled installation.

6.2 Unguided media

MediumHow it travelsRangeUsed forLimitation
Radio wavesomni-directional; passes through wallslongWi-Fi, FM radio, cordless phonesinsecure — anyone in range receives it
Microwavesline of sight, tower to towerup to ~50 km per hopmobile networks, long-distance linksneeds unobstructed line of sight; rain fade
Infraredvery short range, line of sighta few metresTV remotes, some device pairingcannot pass through walls
Satelliteup to a satellite and back downglobalremote areas, TV broadcast, GPSvery costly; noticeable delay
satellite earth station earth station uplink downlink
Uplink and downlink. The signal travels roughly 72,000 km — hence the delay.
Choosing a medium — the three deciding questions
  1. How far? Under 100 m → twisted pair. Kilometres → optical fibre. Across a country or to a remote site → satellite.
  2. How much interference? Near heavy machinery or high-voltage cables → optical fibre, because it is immune to it.
  3. Can you dig? If a road, a river or a heritage building is in the way, wired is impossible → microwave or radio link.
The exam answer that earns the mark

Never write just "optical fibre". Write "optical fibre, because the distance exceeds 100 m and it offers the highest bandwidth with no electromagnetic interference". The justification is where the mark is.

7.1 Everything on one screen

Evolution

ARPANET 1969 NSFNET 1986 Internet = network of networks WWW = a service on it, Berners-Lee Interspace

Types

PAN ~10 m LAN — building or campus MAN — a city, ~50 km WAN — the Internet bigger → slower, costlier, more errors

Devices

NIC — MAC address Repeater — regenerates the signal Hub — broadcasts Switch — sends to one Router — path between networks, IP Gateway — different protocols Modem — digital ⇄ analog

Topologies and media

Bus — least cable, backbone fails = all fail Star — easy faults, centre fails = all fail Tree — stars on a backbone Mesh — n(n−1)/2 links, most reliable twisted pair · coaxial · optical fibre radio · microwave · infrared · satellite

7.2 Exam question 1 — name and justify

4 marks
  1. Differentiate between a hub and a switch.
  2. Differentiate between a router and a gateway.
Are you ready for the answer? 🤔
Answer 1

A hub is a non-intelligent device: it broadcasts incoming data to every connected port, so all nodes share the bandwidth, collisions are common and any node can see all traffic.

A switch is intelligent: it maintains a table of MAC addresses and forwards data only to the destination port. This gives full bandwidth per port, avoids collisions and is more secure.

Answer 2

A router connects two or more networks that use the same protocol and selects the best path for a packet using its IP address.

A gateway connects two networks that use different protocols or architectures and performs the necessary protocol translation. It acts as the entry and exit point of a network.

7.3 Exam question 2 — the case study

5 marks — the standard networking question

Sunrise Public School is setting up its campus network in Pune, with four blocks and one branch office in Nagpur.

ADMIN 150 computers ACADEMIC 80 computers LIBRARY 25 computers HOSTEL 12 computers 60 m 45 m 120 m 75 m NAGPUR branch office 700 km
Distances between blocks, and the number of computers in each.

(i) Suggest the most suitable place to install the server, with reason.
(ii) Suggest a suitable cable layout for connecting the blocks.
(iii) Where should a switch/hub be placed, and why?
(iv) Which device is needed to connect the campus to the Nagpur office?
(v) Which medium would you use between Academic and Hostel, and why?

Answer all five before you look. 🤔
Answer

(i) Admin block. It has the largest number of computers (150), so placing the server there minimises total network traffic across the blocks and gives the most users the fastest access.

(ii) Star topology, with all three other blocks cabled back to the Admin block. It gives easy fault isolation — a break in one cable affects only that block — and the distances are all short enough for a single run.

(iii) A switch in every block. Each block has multiple computers that must be interconnected, and a switch forwards data only to the intended machine, avoiding collisions and wasted bandwidth.

(iv) A router, since the two sites are separate networks and the packets must be routed between them. A modem is also required at each end if the link uses a telephone or cable line.

(v) Optical fibre. The distance is 120 m, beyond the ~100 m limit of twisted pair, and fibre offers the highest bandwidth with no electromagnetic interference.

How to answer any case study

Server → the block with the most computers.
Layoutstar, centred on the server block, unless told otherwise.
Switch → in every block, because each has several computers.
Remote siterouter (plus a modem if over a phone/cable line).
Medium → check the distance: under 100 m twisted pair, over 100 m optical fibre, and wireless where cabling is impossible.
Always give the reason — the reason is the mark.

7.4 Exam question 3 — draw and compare

3 + 2 marks
  1. Draw the bus and star topologies for four nodes, labelling all parts. State one advantage of each.
  2. A network of 6 nodes is to be built as a full mesh. How many cables are needed, and how many ports on each node?
Are you ready for the answer? 🤔
Answer 1

Bus — one backbone cable with terminators at both ends and four nodes connected by drop lines. Advantage: it uses the least cable, so it is the cheapest to install.

Star — four nodes each connected by its own cable to a central switch. Advantage: failure of one node or cable does not affect the others, and faults are easy to locate.

Marks are for the labels: "backbone", "terminator", "switch", and the node names.

Answer 2
n(n − 1)2 = 6 × 52 = 15 cables

Each node connects to every other node, so each needs n − 1 = 5 ports.

End of Chapter 6

Next: Applications
and Protocols

You now know what is connected and how. Chapter 7 is the other half: the rules the two ends agree on — HTTP, FTP, TCP/IP, SMTP, POP3 — and how a name like ncert.nic.in becomes a machine you can actually reach.

Carry these three forward

A router uses the IP address — Chapter 7 explains what one actually looks like.
A switch uses the MAC address; keep the two apart, because the paper tests exactly that confusion.
The Internet is the network, the Web is a service on it — and Chapter 7 is about the services.