CS Atlas GATE 2027
Computer Networks course
0 / 90 complete

Computer Networks/Phase 0 · Foundations

Lesson 0.1.2 · Item 2 of 90

Nodes, links, topologies, LAN/WAN and the boxes in the middle

Read at your own pace. Try the questions before opening the answers.

On this page

Recall warm-up

  1. What is a host, in one line?
    Stuck? Peek at 0.1.1 Why networks exist: hosts, links and sending data
    • Network = devices + links that exchange data.
    • Host = where a message starts or ends (laptop, phone, server).
    • Link = physical path: copper (voltage), fibre (light), wireless (radio).
    • All content → bits → signals → bits → content; meaning comes from an agreed encoding.
    • One link per pair of n hosts: n(n − 1)/2 links — too many, so links are shared.

    Read lesson 0.1.1

  2. How many private cables do 7 hosts need if every pair gets its own?
    Stuck? Peek at 0.1.1 Why networks exist: hosts, links and sending data
    • Network = devices + links that exchange data.
    • Host = where a message starts or ends (laptop, phone, server).
    • Link = physical path: copper (voltage), fibre (light), wireless (radio).
    • All content → bits → signals → bits → content; meaning comes from an agreed encoding.
    • One link per pair of n hosts: n(n − 1)/2 links — too many, so links are shared.

    Read lesson 0.1.1

  3. Name the three families of link and what each uses to carry bits.
    Stuck? Peek at 0.1.1 Why networks exist: hosts, links and sending data
    • Network = devices + links that exchange data.
    • Host = where a message starts or ends (laptop, phone, server).
    • Link = physical path: copper (voltage), fibre (light), wireless (radio).
    • All content → bits → signals → bits → content; meaning comes from an agreed encoding.
    • One link per pair of n hosts: n(n − 1)/2 links — too many, so links are shared.

    Read lesson 0.1.1

The Hook

Think of a city's roads. Some roads join exactly two houses (a private driveway). Others are a busy street shared by every house along it. Junctions in the middle decide where traffic goes. A network has the same three ingredients: private links, shared links, and boxes in the middle that pass data along. Today we name them and learn the standard shapes.

Predict First

Twenty people sit in one classroom and anyone may speak to the whole room. Fifty such classrooms in different cities are joined together. Guess: is "the classroom" and "the set of classrooms" the same kind of network, or two different kinds?

,

Two different kinds. One classroom is a small network in one building — a LAN. The joined classrooms spread over cities form a WAN, and networks of networks joined world-wide form the Internet. The classroom where everyone hears everyone is a broadcast link.

Core Concept

Nodes and links

Any device attached to the network is a node. Hosts are nodes; so are the boxes in the middle that pass data along. A link joins nodes.

Node: any device on the network (host or in-between box). Link: the physical connection between nodes.
Host
node at the edge
box
node in the middle
box
node in the middle
Host
node at the edge
Every device is a node; only the ends are hosts.

Point-to-point vs broadcast links

  • Point-to-point link: exactly two nodes, one at each end. What one sends, only the other receives. (A private driveway.)
  • Broadcast (shared) link: many nodes on the same link. What one sends, every node on it receives. (A classroom where everyone hears the speaker.)

On a broadcast link, if two nodes talk at once, their signals mix and both are spoiled. Who may speak when on a shared link is a whole chapter of Phase 2.

Point-to-point
2 nodes · no one else hears · no clash possible
Broadcast
many nodes · everyone hears everything · two speakers at once spoil each other
The two kinds of link.

Direction: simplex, half-duplex, full-duplex

  • Simplex: bits flow one way only (a TV broadcast tower to your TV).
  • Half-duplex: both directions, but only one at a time (a walkie-talkie: "over").
  • Full-duplex: both directions at the same time (a phone call).
ModeDirectionsBoth at once?Everyday example
Simplexone—TV tower → TV
Half-duplextwono, take turnswalkie-talkie
Full-duplextwoyesphone call
Remember these three words; Phase 2 uses half- vs full-duplex.

Topologies: the shapes

The topology is the layout of nodes and links. For n nodes:

TopologyShapeLinks neededIf one link breaks…
Mesh (full)every pair directly linkedn(n − 1)/2only that pair is affected; reroute through others
Starevery node linked to one central boxnonly that node is cut off; if the centre fails, everyone is
Busall nodes tap one shared backbone cable1 backbone (+ n short taps)a backbone break splits the network
Ringeach node linked to its two neighbours in a circlena single break can stop a one-way ring
Treestars joined in levelsn − 1 between n nodesa branch is cut off below the break
Standard topologies. Mesh is the most reliable and most expensive; star is the modern office layout.

LAN, WAN, the Internet

  • LAN (Local Area Network): nodes in one room, floor or building, owned by one organisation. Short links, high speed.
  • WAN (Wide Area Network): links that span cities or countries, often rented from a telecom company.
  • internet (small i): any network of networks. The Internet (capital I): the single world-wide network of networks we all use.
The Internet networks of networks, world-wide
WAN joins sites across cities
LAN one building
Scope grows outward: LANs are joined by WANs into the Internet.

Hosts vs hubs vs switches vs routers (plain words)

The boxes in the middle, in plain words for now (each gets its precise layer in Lesson 1.1.3):

  • Hub: repeats every signal it receives out of all its other cables. Dumb and noisy — it turns a star of cables into one big broadcast link.
  • Switch: joins hosts inside one LAN and sends data only out of the cable that leads to the right host.
  • Router: joins different networks and chooses which way data should go next on its trip across networks.

A laptop is a host, not a box in the middle: it starts and ends messages. Your home "Wi-Fi router" is really several boxes in one case (a router, a switch and a wireless access point).

Hub
repeats to everyone
Switch
delivers inside one LAN to the right host
Router
chooses the next network to go through
Three boxes in the middle — three levels of cleverness.

Putting it together

  • Nodes are all devices; hosts are the ends. Links are point-to-point (two nodes) or broadcast (everyone hears).
  • Topologies trade cost against reliability: mesh n(n − 1)/2 links, star/ring n, tree n − 1.
  • Switches deliver inside a LAN; routers choose paths between networks; LANs joined by WANs make the Internet.

Visual

WAN linkL1L2S1R1R2S2Sv
Two LANs (left: laptops L1, L2 and switch S1; right: switch S2 and server Sv) joined by routers R1 and R2 across a WAN link. The message from L1 to Sv crosses every link in this picture.

Worked Examples

Easy

8 hosts are connected in a full mesh. How many links are there, and how many link connections does each host need?

Show the full solution

Links = 8 × 7 / 2 = 28. Each host links to every other host: 7 connections per host.

Medium

An office of 12 hosts uses a star around one switch. How many links? What happens if the switch fails? What if one host's cable fails?

Show the full solution

Star needs one link per host: 12 links. If the switch fails, every host loses the network (single point of failure). If one cable fails, only that one host is cut off.

GATE

A company has a core of 5 routers connected as a full mesh. Three more hosts are each connected by one link to one router (a star hanging off the core). Count the links. Which single failure disconnects the most hosts?

Show the full solution

Mesh part: 5 × 4 / 2 = 10 links. Star part: 3 links. Total 13.

No single link failure in the mesh disconnects anyone (traffic goes round). The worst single failure is a router that has hosts hanging off it: all hosts attached to it are cut off. A host's own link failing cuts off only that host.

GATE Traps

  • "Wi-Fi router" at home is a router + switch + wireless access point in one case. In questions, judge a box by its job, not its marketing name.
  • Star: if the centre fails, everyone is disconnected — the centre is a single point of failure.
  • A hub does not make a star private: a hub repeats to everyone, so the star behaves like one shared broadcast link.
  • Mesh link count is n(n − 1)/2, not n(n − 1) — each link serves two nodes.

Memory Hook

Hub = loudspeaker (everyone hears). Switch = receptionist (walks the message to the right desk in the building). Router = travel agent (picks the next city).

Connect the Dots

From 0.1.1 we knew what travels (bits) and between whom (hosts). Now we know along what shapes and through which boxes. Next (0.2.1): bits are counted and sent at some speed — how do we measure "how many bits" and "how many bits per second" without falling into the most common unit trap in GATE?

Self-Test

  1. NAT

    How many links does a full mesh of 9 nodes need?

    Write your answer before opening the key.

  2. MCQ

    Which box joins different networks and chooses where data goes next?

    1. Hub
    2. Switch
    3. Router
    4. Host
  3. MSQ

    Which statements are true?

    1. On a broadcast link every attached node receives what one node sends.
    2. A point-to-point link joins exactly two nodes.
    3. Half-duplex allows both directions at the same time.
    4. In a star, failure of the centre disconnects all nodes.
  4. MCQ

    A ring of 10 nodes and a star of 10 outer nodes need how many links respectively?

    1. 10 and 10
    2. 10 and 9
    3. 45 and 10
    4. 9 and 10
  5. MCQ

    Five hosts are connected to a hub. Which description is correct?

    1. Each host has a private point-to-point path to every other host.
    2. The hub sends each signal only to the intended host.
    3. Physically a star, but it behaves like one shared broadcast link.
    4. It is a WAN.

Rule Card

  • Node = any device; host = node where messages start/end.
  • Point-to-point (2 nodes) vs broadcast (all hear all).
  • Simplex (one way) · half-duplex (two ways, one at a time) · full-duplex (both at once).
  • Links: mesh n(n−1)/2, star n, ring n, tree n−1, bus 1 backbone.
  • LAN (building) ⊂ WAN (cities) ⊂ the Internet (network of networks).
  • Hub repeats to all · switch delivers within a LAN · router picks the next network.

Concept Ledger

  • node
  • point-to-point link
  • broadcast (shared) link
  • simplex / half-duplex / full-duplex
  • topology (mesh, star, bus, ring, tree)
  • LAN
  • WAN
  • internet / the Internet
  • hub
  • switch
  • router

Answer Vault

Try the questions first. Open when you are ready to check.

Warm-up answers

  1. A device at the edge of the network where a message starts or ends (laptop, phone, server).
  2. 7 × 6 / 2 = 21.
  3. Copper (voltage), optical fibre (light), wireless (radio waves).

Self-test answers

  1. 36 — 9 × 8 / 2 = 36.
  2. C — A router connects networks and picks the next way to send data.
    • A: A hub just repeats signals to everyone.
    • B: A switch delivers inside one LAN.
    • D: A host is where messages start or end, not a box in the middle.
  3. ABD — Broadcast = everyone hears; point-to-point = two ends; star centre is a single point of failure.
    • C: Half-duplex allows both directions but only one at a time; both at once is full-duplex.
  4. A — A ring of n nodes has n links; a star with n outer nodes has n links to the centre.
    • B: A star with 10 outer nodes needs 10 links, one per node.
    • C: 45 is a full mesh of 10.
    • D: n − 1 links is a tree / chain, not a ring (a ring closes the circle).
  5. C — Cables form a star, but a hub repeats everything to everyone, so all hosts share one broadcast link.
    • A: Nothing is private through a hub.
    • B: That is what a switch does, not a hub.
    • D: Five hosts on a hub in one place form a LAN.

Flashcards

  1. Links in a full mesh of n nodes?
    Reveal answern(n − 1)/2.
  2. Hub vs switch vs router?
    Reveal answerHub repeats to everyone; switch delivers to the right host inside a LAN; router chooses the next network.
  3. Half-duplex vs full-duplex?
    Reveal answerHalf: both directions, one at a time. Full: both directions simultaneously.
  4. Single point of failure of a star?
    Reveal answerThe central box.
  5. LAN vs WAN?
    Reveal answerLAN: one building, one owner. WAN: spans cities or countries.

Exam shortcuts

  • Links by topology: mesh n(n − 1)/2 · star n · ring n · tree n − 1 · bus 1 backbone. — n nodes, simple (one link per connected pair) layouts. For a star, n counts the outer nodes, not the centre.
  • Who decides inside vs between networks: switch inside one LAN, router between networks. — classifying the plain-word role of a box; the precise layer view comes in 1.1.3.

Ready for the next idea?

Mark this item complete when you’ve finished reading and working through it.