Ever wondered how your phone talks to your friend's phone across the city? Or how your school's 40 computers all share ONE internet connection? Welcome to the world of **Computer Networks** β where machines learn to talk to each other! ππ
> [!TIP]
> **How to use these notes:** This chapter has lots of pictures in your head to imagine β topologies are basically "shapes" of how computers connect. Draw each topology as you read! Focus on **Star vs Bus vs Mesh topology comparisons** and **Hub vs Switch vs Router** β these are the most-loved board exam questions! π―
---
## 9.1 π Introduction
Before smartphones, before WiFi, before the internet β computers used to work ALONE, like isolated islands. ποΈ If you wanted to share a file, you'd literally carry it on a floppy disk to another computer!
```mermaid
graph LR
OLD["π’ OLD WAY\nEach computer\nworks ALONE\n(Sneakernet β walking\nwith a floppy disk!)"]
NEW["π NEW WAY\nComputers CONNECTED\n= Computer Network\nInstant sharing!"]
OLD -->|"Networks\ninvented!"| NEW
style OLD fill:#F44336,color:#fff
style NEW fill:#4CAF50,color:#fff
```
A **Computer Network** is simply: **Two or more computers connected together to share data, resources, and communicate.**
> **Real Analogy:** Think of a computer network like a **school WhatsApp group**. Before the group existed, you'd have to call each classmate separately. Once the group is created, EVERYONE can talk, share, and help each other instantly. That's exactly what a network does for computers!
---
## 9.2 π Computer Networks β An Introduction
**Why do we even need networks?** Let's see the benefits:
::: grid
::: card π€ | Resource Sharing | Share ONE printer among 20 computers | No need to buy 20 separate printers!
::: card π¬ | Communication | Send emails, messages, video calls | WhatsApp, Zoom, Email
::: card πΎ | Data Sharing | Share files instantly between computers | Google Drive, shared folders
::: card π° | Cost Saving | One internet connection for the whole office | Instead of separate connections per computer
:::
```mermaid
graph TD
NET["π Computer Network"]
N1["π€ Resource Sharing\n(Printers, Scanners)"]
N2["π¬ Communication\n(Email, Chat, Video Call)"]
N3["πΎ Data Sharing\n(Files, Folders)"]
N4["π° Cost Reduction\n(Shared Internet)"]
NET --> N1
NET --> N2
NET --> N3
NET --> N4
style NET fill:#2196F3,color:#fff
```
---
### 9.2.1 Components of a Computer Network π§©
Every network needs these basic building blocks β like ingredients in a recipe! π¨βπ³
::: grid
::: card π» | Nodes/Hosts | The devices connected TO the network | Computers, laptops, printers, phones
::: card π | Server | A powerful computer that PROVIDES services/resources | Stores files, hosts websites
::: card π» | Client | A computer that REQUESTS services from a server | Your laptop asking for a webpage
::: card π | Transmission Medium | The PATH data travels through | Cables (wired) or Air (wireless)
::: card π | NIC (Network Interface Card) | The hardware that connects a device to the network | Every device's "network passport"
:::
```mermaid
graph LR
SERVER["π₯οΈ Server\n(Provides resources)"]
CLIENT1["π» Client 1\n(Requests data)"]
CLIENT2["π» Client 2\n(Requests data)"]
MEDIUM["π Transmission Medium\n(Cable / WiFi)"]
CLIENT1 -->|"Request"| MEDIUM
CLIENT2 -->|"Request"| MEDIUM
MEDIUM -->|"Response"| SERVER
style SERVER fill:#F44336,color:#fff
style MEDIUM fill:#FF9800,color:#fff
```
> **Analogy:** Think of a **Server** like a restaurant kitchen (makes the food/provides service), and **Clients** like customers at tables (order/request food). The **Transmission Medium** is the waiter walking back and forth carrying orders and dishes!
> [!IMPORTANT]
> **Board Exam Tip**
> "What are the basic components required to set up a computer network?" β **2-3 mark** question!
> Answer: Nodes (computers/devices), a Server (to provide resources), a Transmission Medium (cable/wireless), and NIC (Network Interface Card) on each device to enable connectivity.
---
## 9.3 π Types of Networks
### 9.3.1 Types of Networks based on Geographical Spread πΊοΈ
Networks come in different SIZES based on how much area they cover β from your bedroom to across the WHOLE COUNTRY!
```mermaid
graph LR
PAN["π± PAN\nPersonal Area Network\n(A few METERS)"]
LAN["π LAN\nLocal Area Network\n(One BUILDING)"]
MAN["ποΈ MAN\nMetropolitan Area Network\n(One CITY)"]
WAN["π WAN\nWide Area Network\n(Country/World)"]
PAN --> LAN --> MAN --> WAN
style PAN fill:#4CAF50,color:#fff
style LAN fill:#2196F3,color:#fff
style MAN fill:#FF9800,color:#fff
style WAN fill:#F44336,color:#fff
```
::: grid
::: card π± | PAN | Personal Area Network β SMALLEST, just around ONE person | Your phone connected to earbuds via Bluetooth
::: card π | LAN | Local Area Network β within ONE building/campus | Your school's computer lab network
::: card ποΈ | MAN | Metropolitan Area Network β covers ONE city | Cable TV network across Delhi
::: card π | WAN | Wide Area Network β covers COUNTRIES/CONTINENTS | The INTERNET itself!
:::
**Quick Comparison Table:**
| Network | Full Form | Coverage Area | Real Example |
| :--- | :--- | :--- | :--- |
| **PAN** | Personal Area Network | A few meters (one room) | Bluetooth headphones + phone |
| **LAN** | Local Area Network | One building/campus | School computer lab, office network |
| **MAN** | Metropolitan Area Network | One city | Cable TV, city-wide WiFi |
| **WAN** | Wide Area Network | Countries/Worldwide | The Internet |
> **Memory Trick! π΅** Think of it as **rings expanding outward**: PAN (you) β LAN (your building) β MAN (your city) β WAN (the whole world)!
> [!IMPORTANT]
> **Board Exam Tip**
> "Differentiate between LAN and WAN." β **2-mark** question, asked EVERY year!
> Answer: **LAN** covers a SMALL area like a single building/campus, is FASTER, and OWNED by a single organisation. **WAN** covers a LARGE area like countries/continents, is comparatively SLOWER, and usually involves MULTIPLE organisations/service providers (like the Internet).
---
## 9.4 πΊ Network Topologies
**Topology** = the SHAPE or LAYOUT of how computers are physically/logically connected. Think of it as the "floor plan" of a network!
```mermaid
graph TD
TOPO["πΊ NETWORK TOPOLOGIES"]
T1["π Point-to-Point"]
T2["β Star"]
T3["π Bus/Linear"]
T4["β Ring/Circular"]
T5["π³ Tree"]
T6["πΈοΈ Mesh"]
T7["π Fully Connected"]
TOPO --> T1
TOPO --> T2
TOPO --> T3
TOPO --> T4
TOPO --> T5
TOPO --> T6
TOPO --> T7
style TOPO fill:#9C27B0,color:#fff
```
---
### 9.4.1 Point-to-Point Link π
The SIMPLEST connection β just TWO devices connected DIRECTLY to each other, nothing else in between!
```
Computer A βββββββββββββββ Computer B
```
::: grid
::: card β
| Advantage | Simple, dedicated connection, no sharing needed | Fast and reliable
::: card β | Disadvantage | Only connects 2 devices β cannot scale to more | Not useful for a whole school!
:::
> **Analogy:** Like a private phone line between just YOU and your best friend β nobody else can join in!
---
### 9.4.2 The Star Topology β
All computers connect to ONE CENTRAL device (like a Hub or Switch) β like spokes of a bicycle wheel!
```mermaid
graph TD
HUB["π Central Hub/Switch"]
C1["π» Computer 1"]
C2["π» Computer 2"]
C3["π» Computer 3"]
C4["π» Computer 4"]
HUB --- C1
HUB --- C2
HUB --- C3
HUB --- C4
style HUB fill:#FF9800,color:#fff
```
::: grid
::: card β
| Advantages | Easy to install; if ONE cable fails, only that computer is affected | Most POPULAR topology today!
::: card β | Disadvantages | If the CENTRAL device fails, the ENTIRE network goes down! | Central hub = single point of failure
:::
> **Analogy:** Like a school where EVERY student reports to ONE principal's office. If one student is absent, class continues fine. But if the principal's office (central hub) shuts down, NOBODY can communicate!
> [!IMPORTANT]
> **Board Exam Tip**
> "What is the biggest disadvantage of Star Topology?" β **1-mark** question!
> Answer: If the CENTRAL device (hub/switch) fails, the ENTIRE network stops working β this is called a "single point of failure."
---
### 9.4.3 The Bus or Linear Topology π
All computers connect to ONE single main cable (called the "backbone") β like beads on a single string!
```mermaid
graph LR
BUS["βββββββββββββββ Main Backbone Cable βββββββββββββββ"]
C1["π» PC1"]
C2["π» PC2"]
C3["π» PC3"]
C4["π» PC4"]
C1 --- BUS
C2 --- BUS
C3 --- BUS
C4 --- BUS
style BUS fill:#9E9E9E,color:#fff
```
::: grid
::: card β
| Advantages | Uses LESS cable (cheap!); easy to set up for small networks | Simple and economical
::: card β | Disadvantages | If the MAIN cable breaks, WHOLE network fails; hard to find faults; slows down with more computers | Rarely used today
:::
> **Analogy:** Like a single clothesline with clothes (computers) hanging on it. If someone cuts the clothesline in the middle, EVERYTHING falls β the whole network breaks!
---
### 9.4.4 The Ring or Circular Topology β
Computers are connected in a CLOSED LOOP β like holding hands in a circle! Data travels around the ring in ONE direction.
```mermaid
graph LR
C1["π» PC1"] --> C2["π» PC2"]
C2 --> C3["π» PC3"]
C3 --> C4["π» PC4"]
C4 --> C1
style C1 fill:#4CAF50,color:#fff
style C2 fill:#2196F3,color:#fff
style C3 fill:#FF9800,color:#fff
style C4 fill:#F44336,color:#fff
```
::: grid
::: card β
| Advantages | Data flows in an orderly, predictable manner; no collisions | Good for equal data distribution
::: card β | Disadvantages | If ONE computer/cable fails, the ENTIRE ring breaks (unless dual-ring backup exists) | Adding/removing a computer disrupts the network
:::
> **Analogy:** Like passing a note around a circle of friends sitting in a ring β if one friend suddenly leaves, the note can't complete its journey around the circle!
---
### 9.4.5 The Tree Topology π³
A COMBINATION of Star topologies, connected in a HIERARCHY β like an organisation chart, or an actual tree with branches!
```mermaid
graph TD
ROOT["π³ Root Hub"]
B1["π Branch Hub 1"]
B2["π Branch Hub 2"]
C1["π» PC1"]
C2["π» PC2"]
C3["π» PC3"]
C4["π» PC4"]
ROOT --- B1
ROOT --- B2
B1 --- C1
B1 --- C2
B2 --- C3
B2 --- C4
style ROOT fill:#4CAF50,color:#fff
```
::: grid
::: card β
| Advantages | Easy to expand (add new branches); faults in one branch don't affect others | Great for large organisations with departments
::: card β | Disadvantages | If the ROOT (main hub) fails, everything below it fails too | Needs a LOT of cabling
:::
> **Analogy:** Like your school's structure β Principal (root) β Department Heads (branches) β Teachers (leaves). Perfectly matches how BIG organisations are structured with multiple floors/departments!
---
### 9.4.6 Mesh Topology πΈοΈ
Every device is connected to MULTIPLE other devices (not necessarily ALL) β creating a web-like, spider-net pattern!
```mermaid
graph TD
C1["π» PC1"]
C2["π» PC2"]
C3["π» PC3"]
C4["π» PC4"]
C1 --- C2
C1 --- C3
C2 --- C4
C3 --- C4
C1 --- C4
style C1 fill:#4CAF50,color:#fff
style C2 fill:#2196F3,color:#fff
style C3 fill:#FF9800,color:#fff
style C4 fill:#F44336,color:#fff
```
::: grid
::: card β
| Advantages | Very RELIABLE β multiple paths mean network survives even if one link fails | Used for critical systems (military, banking)
::: card β | Disadvantages | Needs A LOT of cabling β expensive and complex to set up | Not practical for large networks
:::
> **Analogy:** Like a spider's web β if one strand breaks, the spider can still move around using other connected paths!
---
### 9.4.7 Fully Connected Topology π
The EXTREME version of Mesh β where EVERY single device is connected to EVERY OTHER device directly!
```mermaid
graph TD
C1["π» PC1"]
C2["π» PC2"]
C3["π» PC3"]
C4["π» PC4"]
C1 --- C2
C1 --- C3
C1 --- C4
C2 --- C3
C2 --- C4
C3 --- C4
style C1 fill:#4CAF50,color:#fff
style C2 fill:#2196F3,color:#fff
style C3 fill:#FF9800,color:#fff
style C4 fill:#F44336,color:#fff
```
**The Math Behind It β How many cables needed?**
```
Formula: n(n-1)/2 cables needed for n computers
For 4 computers: 4Γ(4-1)/2 = 4Γ3/2 = 6 cables
For 10 computers: 10Γ9/2 = 45 cables!! π±
```
::: grid
::: card β
| Advantages | MAXIMUM reliability β a direct path always exists between any two devices | Zero traffic bottleneck
::: card β | Disadvantages | EXTREMELY expensive β cable count grows very fast as devices increase | Practically impossible for large networks
:::
> [!IMPORTANT]
> **Board Exam Tip**
> "How many cables are required to connect 6 computers in a fully connected mesh topology?" β **2-mark** calculation question!
> Answer: Using formula n(n-1)/2 = 6Γ5/2 = **15 cables**
---
### 9.4.8 Factors to Consider for Topology Selection π€
Before choosing a topology for a real network, you must think about:
::: grid
::: card π° | Cost | How much cabling/hardware is affordable? | Bus is cheap; Mesh is expensive
::: card π | Size | How many devices need to connect? | Star works well for growing networks
::: card π‘οΈ | Reliability Needed | Can the network afford downtime? | Mesh for critical systems (banks, hospitals)
::: card π§ | Ease of Maintenance | How easy is it to find and fix faults? | Star is easiest to troubleshoot
::: card π | Scalability | Will more computers be added later? | Tree/Star topology expands easily
:::
**All Topologies β One-Look Comparison Table:**
| Topology | Shape | Reliability | Cost | Best For |
| :--- | :--- | :--- | :--- | :--- |
| **Point-to-Point** | Direct line | High (for 2 devices) | Very Low | Just 2 devices |
| **Star** | Hub in center | Medium (hub = risk) | Medium | Most common β offices, schools |
| **Bus** | Single line | Low (one break = all fail) | Very Low | Small, temporary networks |
| **Ring** | Circular loop | Medium | Low | Orderly data flow needs |
| **Tree** | Hierarchy | Medium-High | Medium-High | Large organisations |
| **Mesh** | Web-like | Very High | High | Critical systems |
| **Fully Connected** | Everyone-to-everyone | Highest | Very High | Extremely critical, small networks only |
> [!IMPORTANT]
> **Board Exam Tip**
> "Which topology is most commonly used in schools/offices and why?" β **2-mark** question!
> Answer: **Star Topology** β because it's easy to install, easy to add new computers, and a cable fault in one computer doesn't affect others (though the central hub remains a single point of failure).
---
## 9.5 π Network Devices
Now let's meet the HARDWARE β the actual physical devices that make a network work!
```mermaid
graph TD
L1["β‘ Layer 1 (Physical)\nModem, Hub, Repeater"]
L2["π Layer 2 (Data Link)\nSwitch, Bridge"]
L3["π Layer 3 (Network)\nRouter"]
L4["π Layer 4+ (Higher)\nGateway"]
style L1 fill:#4CAF50,color:#fff
style L2 fill:#2196F3,color:#fff
style L3 fill:#FF9800,color:#fff
style L4 fill:#F44336,color:#fff
```
---
### 9.5.1 Modem π‘
**Modem = MOdulator + DEModulator.** It converts DIGITAL signals (from your computer) into ANALOG signals (for telephone lines) and back!
```mermaid
graph LR
PC["π» Your PC\nDigital: 0s and 1s"]
MOD["π‘ MODEM"]
LINE["π Phone/Cable Line\nAnalog Signal"]
PC -->|"Modulates"| MOD --> LINE
LINE -->|"Demodulates"| MOD --> PC
style MOD fill:#9C27B0,color:#fff
```
> **Analogy:** Like a translator at the UN β your computer speaks "Digital", the phone line speaks "Analog", and the Modem TRANSLATES between them!
---
### 9.5.2 Hub π΅
The SIMPLEST connecting device β receives data and BROADCASTS it to ALL connected computers (no intelligence at all!).
```mermaid
graph TD
HUB["π΅ HUB\n(Dumb β broadcasts to everyone!)"]
PC1["π» PC1"]
PC2["π» PC2"]
PC3["π» PC3"]
HUB -->|"Same data\nsent to ALL"| PC1
HUB -->|"Same data\nsent to ALL"| PC2
HUB -->|"Same data\nsent to ALL"| PC3
style HUB fill:#9E9E9E,color:#fff
```
> **Analogy:** Like SHOUTING an announcement in a classroom β EVERYONE hears it, even if the message was meant for just one person!
---
### 9.5.3 Switch π
The SMART upgrade to a Hub! It LEARNS which computer is on which port and sends data ONLY to the intended recipient.
```mermaid
graph TD
SW["π SWITCH\n(Smart β knows WHO to send to!)"]
PC1["π» PC1"]
PC2["π» PC2 β Data goes HERE only!"]
PC3["π» PC3"]
SW -.->|"skipped"| PC1
SW -->|"Data sent\nONLY here"| PC2
SW -.->|"skipped"| PC3
style SW fill:#2196F3,color:#fff
style PC2 fill:#4CAF50,color:#fff
```
> **Analogy:** Like a smart postman who KNOWS exactly which house to deliver each letter to β unlike a Hub, which is like shouting mail contents to the WHOLE street!
**Hub vs Switch β Quick Comparison:**
| Feature | Hub | Switch |
| :--- | :--- | :--- |
| **Intelligence** | None β dumb device | Smart β uses MAC addresses |
| **Sends data to** | ALL connected devices | ONLY the intended device |
| **Speed** | Slower (shared bandwidth) | Faster (dedicated bandwidth) |
| **Used today?** | Rarely (obsolete) | Yes β standard in networks |
> [!IMPORTANT]
> **Board Exam Tip**
> "Differentiate between Hub and Switch." β **2-mark** question, asked CONSTANTLY!
> Answer: A **Hub** broadcasts data to ALL connected devices with no intelligence. A **Switch** is smarter β it learns device addresses and sends data ONLY to the intended recipient, making it faster and more secure.
---
### 9.5.4 Repeater πΆ
A device that BOOSTS a weak/fading signal so it can travel further without losing quality.
```mermaid
graph LR
SRC["π‘ Strong Signal"]
WEAK["γ°οΈ Weak Signal\n(traveled far)"]
REP["π REPEATER\n(Boosts it!)"]
STRONG["π‘ Strong Signal Again!"]
SRC --> WEAK --> REP --> STRONG
style REP fill:#FF9800,color:#fff
```
> **Analogy:** Like a relay race! Runner 1 gets tired after running far, so Runner 2 (Repeater) takes the baton and runs with FULL energy again!
---
### 9.5.5 Bridge π
Connects TWO LAN segments together and FILTERS traffic between them β deciding what should cross over and what shouldn't.
```mermaid
graph LR
SEG_A["π’ Segment A\n(PC1, PC2)"]
BRIDGE["π BRIDGE\n(Filters traffic)"]
SEG_B["π’ Segment B\n(PC3, PC4)"]
SEG_A --- BRIDGE --- SEG_B
style BRIDGE fill:#9C27B0,color:#fff
```
> **Analogy:** Like a security guard at a bridge connecting two neighbourhoods β only lets through the people/traffic that actually NEEDS to cross!
---
### 9.5.6 Router πΊοΈ
The device that connects DIFFERENT NETWORKS together (like your home network to the Internet) and finds the BEST PATH for data to travel.
```mermaid
graph LR
HOME["π Home Network\n(192.168.1.x)"]
ROUTER["πΊοΈ ROUTER\n(Finds best path,\nconnects networks)"]
INTERNET["π The Internet"]
HOME <--> ROUTER <--> INTERNET
style ROUTER fill:#F44336,color:#fff
```
> **Analogy:** Like a GPS navigation system for data β it looks at all possible roads (networks) and picks the BEST route for your data packets to reach their destination!
---
### 9.5.7 Gateway πͺ
The MOST POWERFUL device β connects TWO COMPLETELY DIFFERENT types of networks (different protocols/languages) by TRANSLATING between them.
```mermaid
graph LR
NET1["π’ Network A\n(Uses Protocol X)"]
GW["πͺ GATEWAY\n(Full Translation)"]
NET2["π Network B\n(Uses Protocol Y)"]
NET1 <--> GW <--> NET2
style GW fill:#F44336,color:#fff
```
> **Analogy:** Like an international translator at an airport β helps two people who speak COMPLETELY different languages (protocols) understand each other!
**All Network Devices β Quick Reference:**
| Device | Job | Intelligence Level |
| :--- | :--- | :--- |
| **Modem** | Digital β Analog conversion | None |
| **Hub** | Broadcasts to everyone | None |
| **Switch** | Sends to correct device only | Medium |
| **Repeater** | Boosts weak signals | None |
| **Bridge** | Connects 2 LAN segments, filters traffic | Medium |
| **Router** | Connects different networks, finds best path | High |
| **Gateway** | Connects totally different protocol networks | Highest |
```mermaid
graph LR
L["Least Smart"]
A["Hub/Repeater"]
B["Switch/Bridge"]
C["Router"]
D["Gateway"]
M["Most Smart"]
L --> A --> B --> C --> D --> M
style A fill:#9E9E9E,color:#fff
style B fill:#2196F3,color:#fff
style C fill:#FF9800,color:#fff
style D fill:#F44336,color:#fff
```
> [!IMPORTANT]
> **Board Exam Tip**
> "Rank the following devices from least to most intelligent: Router, Hub, Switch, Gateway." β **2-mark** question!
> Answer: **Hub β Switch β Router β Gateway** (increasing intelligence)
---
## β οΈ Common Errors and Misconceptions
| Mistake | What's Wrong | Correct Understanding |
| :--- | :--- | :--- |
| β Hub and Switch are the same thing | Hub broadcasts to everyone; Switch is smart | β
Switch sends data ONLY to the correct destination |
| β Modem and Router are the same | Different jobs entirely | β
Modem converts signal types; Router connects networks and finds paths |
| β LAN and WAN differ only in speed | Size/coverage area is the KEY difference | β
LAN = small area (building); WAN = large area (countries) |
| β Mesh topology is always the best choice | It's the most EXPENSIVE and complex | β
Star is usually the practical, most-used choice for real networks |
| β Bus topology fails only where the break happens | ONE cable break kills the WHOLE bus network | β
Bus topology has a single point of failure β the main backbone cable |
| β Bridge and Router do the same job | Bridge connects SEGMENTS of the SAME network type | β
Router connects DIFFERENT networks; Gateway connects DIFFERENT protocols |
---
## π Quick Revision β Exam Ready!
**Network Types by Size β Smallest to Largest:**
```
PAN (a room) β LAN (a building) β MAN (a city) β WAN (the world)
```
**Topologies β One-Line Summary:**
| Topology | Key Feature |
| :--- | :--- |
| Point-to-Point | Just 2 devices, direct link |
| Star | Central hub; hub failure = total failure |
| Bus | Single backbone cable; cable break = total failure |
| Ring | Circular, one-directional flow |
| Tree | Hierarchical, star-of-stars |
| Mesh | Multiple redundant paths; very reliable, expensive |
| Fully Connected | n(n-1)/2 cables; maximum reliability, maximum cost |
**Network Devices β One-Line Summary:**
| Device | Job |
| :--- | :--- |
| Modem | Digital β Analog conversion |
| Hub | Dumb broadcaster |
| Switch | Smart β sends to correct device |
| Repeater | Boosts weak signals |
| Bridge | Connects 2 LAN segments |
| Router | Connects networks, finds best path |
| Gateway | Connects different protocol networks |
---
## π― Sample Board Exam Questions
### Q1: Very Short Answer [1 mark each]
a) What does LAN stand for?
**β Local Area Network**
b) Which network device broadcasts data to all connected devices?
**β Hub**
c) What is the formula to calculate cables needed in a fully connected mesh topology of n computers?
**β n(n-1)/2**
d) Name the topology where all computers connect to a single central device.
**β Star Topology**
e) Which device connects two different networks and finds the best path for data?
**β Router**
---
### Q2: Short Answer [2 marks]
**Q: Differentiate between Star Topology and Bus Topology.**
**Star Topology** connects all computers to a CENTRAL device (hub/switch); if one cable fails, only that computer is affected, but if the central device fails, the ENTIRE network fails.
**Bus Topology** connects all computers to a SINGLE backbone cable; if the main cable breaks anywhere, the ENTIRE network fails, and there's no central point of control.
---
### Q3: Short Answer [2 marks]
**Q: What is the difference between a Router and a Gateway?**
A **Router** connects networks that use the SAME protocol/language and finds the best path for data (e.g., connecting your home LAN to the Internet).
A **Gateway** connects networks that use COMPLETELY DIFFERENT protocols, performing full translation between them (e.g., connecting an email system to a different messaging system).
---
### Q4: Calculation [2 marks]
**Q: How many cables are needed to fully connect 8 computers in a mesh topology?**
Using the formula n(n-1)/2:
= 8 Γ (8-1) / 2
= 8 Γ 7 / 2
= 56 / 2
= **28 cables**
---
### Q5: Short Answer [3 marks]
**Q: List the components required to set up a computer network.**
1. **Nodes/Hosts** β the computers/devices being connected
2. **Server** β provides resources/services to clients
3. **Transmission Medium** β cables or wireless signals carrying the data
4. **NIC (Network Interface Card)** β hardware enabling each device to connect to the network
5. **Network Devices** β Hub, Switch, Router etc. to manage the connections
---
## βοΈ Practice Problems
1. Draw and label a Star Topology connecting 5 computers to a central hub.
2. A school wants to set up a network in a lab with 20 computers, sharing one printer and one internet connection. Which topology would you recommend and why?
3. Differentiate between MAN and WAN with real-world examples.
4. Calculate the number of cables needed for a Fully Connected topology with 12 computers.
5. Explain why the failure of the central device in a Star Topology brings down the ENTIRE network.
6. Compare Ring Topology and Bus Topology in terms of how data travels and what happens if a connection fails.
7. A company has its Head Office and 3 Branch Offices connected in a hierarchy, with the Head Office managing all branches. Which topology best represents this β Star, Tree, or Mesh? Justify your answer.
8. List two advantages and two disadvantages of Mesh Topology.
9. Explain the role of a Modem in connecting a home computer to the Internet via a telephone line.
10. A hospital needs an EXTREMELY reliable network where NO single failure can disconnect any department. Which topology would you suggest, and what is the main drawback of your choice?
Back to List
Calculating...
UNIT 3 : CH 9
Jul 18, 2026
π§ Introduction to Computer Networks
Found this helpful?