AS Computer Science (CIE 9618)
Information Representation
3 lessons1.1 Data Representation
1.1 Data Representation
1.1.1 Binary Magnitudes — Binary vs Decimal Prefixes
Computers work in binary (base 2), so storage sizes use powers of 2. Humans prefer decimal (base 10). This causes a clash in prefixes:
Practice — Binary Magnitudes
A file is listed as 2 MiB on your computer. How many bytes does it actually contain?
🔍 Click to reveal answer
1.1.2 Number Systems — Binary & Denary
There are three main number bases you need to master, plus BCD and two's complement:
Denary
Base 10
Digits: 0–9
Binary
Base 2
Digits: 0, 1
Hexadecimal
Base 16
Digits: 0–9, A–F
Denary → Binary (Divide by 2 Method)
28 ÷ 2 = 14 r 0
14 ÷ 2 = 7 r 0
7 ÷ 2 = 3 r 1
3 ÷ 2 = 1 r 1
1 ÷ 2 = 0 r 1
Binary → Denary (Place Value Method)
| 2⁵ | 2⁴ | 2³ | 2² | 2¹ | 2⁰ |
| 1 | 1 | 1 | 0 | 0 | 1 |
| 32 | 16 | 8 | 0 | 0 | 1 |
Practice — Binary & Denary
(a) Convert 42₁₀ to binary.
(b) Convert 11010₂ to denary.
🔍 Click to reveal answer
(b) 16 + 8 + 0 + 2 + 0 = 26₁₀
1.1.3 Hexadecimal System
Hexadecimal (base 16) is used as a shorthand for binary. One hex digit represents exactly four binary bits, making it much easier for humans to read long binary strings.
Hex Digits and Their Values
Binary ↔ Hexadecimal Conversion
Binary → Hex
Hex → Binary
Applications of Hexadecimal
- Memory dumps — Compact display of binary memory contents (e.g.
0x4A 0x6F 0x68 0x6E) - Error codes — Windows stop codes like
0x80070570 - MAC addresses — e.g.
00:1A:2B:3C:4D:5E - Colour codes in HTML/CSS — e.g.
#FF6B35(each pair = R, G, B value) - Unicode character codes — e.g.
U+0041= 'A'
Practice — Hexadecimal
(a) Convert A3₁₆ to binary.
(b) Convert 11110110₂ to hexadecimal.
(c) Give two real-world uses of hexadecimal.
🔍 Click to reveal answer
(b) Split: 1111 0110 → F 6 → F6₁₆
(c) Any two: memory dumps, MAC addresses, HTML colour codes, error codes, Unicode
1.1.4 Binary Coded Decimal (BCD)
In BCD, each denary digit is converted to its own 4-bit binary representation. The whole number is the concatenation of these 4-bit groups.
How BCD Works
Each denary digit → 4 bits
Uses only as many bits as needed
Applications of BCD
- Calculator displays — each digit lights up independently, BCD makes it straightforward to drive 7-segment displays
- Financial transactions — decimal fractions like 0.10 can be represented exactly in BCD but not in normal binary (where 0.1 is a recurring fraction!)
- Digital clocks / timers — each decimal digit stored and displayed separately
Practice — BCD
(a) Convert 305₁₀ to BCD.
(b) Convert 1001 0110 (BCD) to denary.
(c) Explain why BCD is preferred over normal binary for financial systems.
🔍 Click to reveal answer
(b) 1001=9, 0110=6 → 96₁₀
(c) BCD can represent decimal fractions exactly (no rounding errors), while normal binary cannot represent values like 0.1 exactly.
1.1.5 Binary Addition & Overflow
Binary Addition Rules
Step-by-Step Example: 123 + 57
180 is within the 8-bit range (0–255 for unsigned)
Overflow
Overflow Example: 200 + 100 (8-bit unsigned)
300 requires 9 bits but only 8 bits are available. The 9th bit (carry) is lost, giving an incorrect result of 44!
Practice — Binary Addition
(a) Add 01101010 + 00011011 (8-bit binary). Show your working.
(b) Does the result overflow? Explain why.
🔍 Click to reveal answer
Carry → 0 1 1 0 0 0 0 0
01101010 (106)
+ 00011011 (27)
= 10000101 (133)
(b) No overflow — 133 fits within the 8-bit range (0–255).
1.1.6 Two's Complement (Negative Binary)
Two's complement is how computers represent negative integers. The most significant bit (MSB) acts as the sign bit: 0 = positive, 1 = negative.
8-bit Two's Complement Range
How to Negate a Number (42 → −42)
Binary Subtraction Using Two's Complement
Instead of subtracting directly, we add the two's complement of the number being subtracted.
Practice — Two's Complement
(a) Find the two's complement representation of −25 (use 8 bits).
(b) Calculate 50 − 18 using two's complement in 8-bit binary.
🔍 Click to reveal answer
(b) 50 = 0011 0010, 18 = 0001 0010 → −18 = 1110 1110
0011 0010 + 1110 1110 = 1 0010 0000 → discard carry → 0010 0000 = 32 ✓
1.1.7 Character Sets — ASCII & Unicode
🤔 The Problem: Computers Only Understand Numbers
A computer's processor can only store and manipulate binary numbers. But humans need to work with letters, digits, punctuation, and symbols. How do we bridge this gap?
01000001, it looks up the table and knows it should display 'A'.
ASCII — The First Universal Standard
ASCII (American Standard Code for Information Interchange) was developed in the 1960s. It uses 7 bits to represent 128 characters (0–127).
How ASCII Works — A Visual Story
Complete ASCII Table (0–127)
The table is divided into control characters (0–31, used for formatting/communication) and printable characters (32–127). You do not need to memorise codes, but you should understand the structure.
| Dec | Hex | Bin | Char | Dec | Hex | Bin | Char | Dec | Hex | Bin | Char | Dec | Hex | Bin | Char |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 00 | 0000000 | NUL | 1 | 01 | 0000001 | SOH | 2 | 02 | 0000010 | STX | 3 | 03 | 0000011 | ETX |
| 4 | 04 | 0000100 | EOT | 5 | 05 | 0000101 | ENQ | 6 | 06 | 0000110 | ACK | 7 | 07 | 0000111 | BEL |
| 8 | 08 | 0001000 | BS | 9 | 09 | 0001001 | TAB | 10 | 0A | 0001010 | LF | 11 | 0B | 0001011 | VT |
| 12 | 0C | 0001100 | FF | 13 | 0D | 0001101 | CR | 14 | 0E | 0001110 | SO | 15 | 0F | 0001111 | SI |
| 16 | 10 | 0010000 | DLE | 17 | 11 | 0010001 | DC1 | 18 | 12 | 0010010 | DC2 | 19 | 13 | 0010011 | DC3 |
| 20 | 14 | 0010100 | DC4 | 21 | 15 | 0010101 | NAK | 22 | 16 | 0010110 | SYN | 23 | 17 | 0010111 | ETB |
| 24 | 18 | 0011000 | CAN | 25 | 19 | 0011001 | EM | 26 | 1A | 0011010 | SUB | 27 | 1B | 0011011 | ESC |
| 28 | 1C | 0011100 | FS | 29 | 1D | 0011101 | GS | 30 | 1E | 0011110 | RS | 31 | 1F | 0011111 | US |
| 32 | 20 | 0100000 | SP | 33 | 21 | 0100001 | ! | 34 | 22 | 0100010 | " | 35 | 23 | 0100011 | # |
| 36 | 24 | 0100100 | $ | 37 | 25 | 0100101 | % | 38 | 26 | 0100110 | & | 39 | 27 | 0100111 | ' |
| 40 | 28 | 0101000 | ( | 41 | 29 | 0101001 | ) | 42 | 2A | 0101010 | * | 43 | 2B | 0101011 | + |
| 44 | 2C | 0101100 | , | 45 | 2D | 0101101 | - | 46 | 2E | 0101110 | . | 47 | 2F | 0101111 | / |
| 48 | 30 | 0110000 | 0 | 49 | 31 | 0110001 | 1 | 50 | 32 | 0110010 | 2 | 51 | 33 | 0110011 | 3 |
| 52 | 34 | 0110100 | 4 | 53 | 35 | 0110101 | 5 | 54 | 36 | 0110110 | 6 | 55 | 37 | 0110111 | 7 |
| 56 | 38 | 0111000 | 8 | 57 | 39 | 0111001 | 9 | 58 | 3A | 0111010 | : | 59 | 3B | 0111011 | ; |
| 60 | 3C | 0111100 | < | 61 | 3D | 0111101 | = | 62 | 3E | 0111110 | > | 63 | 3F | 0111111 | ? |
| 64 | 40 | 1000000 | @ | 65 | 41 | 1000001 | A | 66 | 42 | 1000010 | B | 67 | 43 | 1000011 | C |
| 68 | 44 | 1000100 | D | 69 | 45 | 1000101 | E | 70 | 46 | 1000110 | F | 71 | 47 | 1000111 | G |
| 72 | 48 | 1001000 | H | 73 | 49 | 1001001 | I | 74 | 4A | 1001010 | J | 75 | 4B | 1001011 | K |
| 76 | 4C | 1001100 | L | 77 | 4D | 1001101 | M | 78 | 4E | 1001110 | N | 79 | 4F | 1001111 | O |
| 80 | 50 | 1010000 | P | 81 | 51 | 1010001 | Q | 82 | 52 | 1010010 | R | 83 | 53 | 1010011 | S |
| 84 | 54 | 1010100 | T | 85 | 55 | 1010101 | U | 86 | 56 | 1010110 | V | 87 | 57 | 1010111 | W |
| 88 | 58 | 1011000 | X | 89 | 59 | 1011001 | Y | 90 | 5A | 1011010 | Z | 91 | 5B | 1011011 | [ |
| 92 | 5C | 1011100 | \ | 93 | 5D | 1011101 | ] | 94 | 5E | 1011110 | ^ | 95 | 5F | 1011111 | _ |
| 96 | 60 | 1100000 | ` | 97 | 61 | 1100001 | a | 98 | 62 | 1100010 | b | 99 | 63 | 1100011 | c |
| 100 | 64 | 1100100 | d | 101 | 65 | 1100101 | e | 102 | 66 | 1100110 | f | 103 | 67 | 1100111 | g |
| 104 | 68 | 1101000 | h | 105 | 69 | 1101001 | i | 106 | 6A | 1101010 | j | 107 | 6B | 1101011 | k |
| 108 | 6C | 1101100 | l | 109 | 6D | 1101101 | m | 110 | 6E | 1101110 | n | 111 | 6F | 1101111 | o |
| 112 | 70 | 1110000 | p | 113 | 71 | 1110001 | q | 114 | 72 | 1110010 | r | 115 | 73 | 1110011 | s |
| 116 | 74 | 1110100 | t | 117 | 75 | 1110101 | u | 118 | 76 | 1110110 | v | 119 | 77 | 1110111 | w |
| 120 | 78 | 1111000 | x | 121 | 79 | 1111001 | y | 122 | 7A | 1111010 | z | 123 | 7B | 1111011 | { |
| 124 | 7C | 1111100 | | | 125 | 7D | 1111101 | } | 126 | 7E | 1111110 | ~ | 127 | 7F | 1111111 | DEL |
Notable Patterns in ASCII
'B' = 66, 'C' = 67... Alphabet is consecutive!
Lowercase = Uppercase + 32. So 'a' − 'A' = 32 = 2⁵
'1' = 49, '2' = 50... Digits are also consecutive!
First printable character. DEL = 127 (all 7 bits = 1)
Limitations of ASCII — Why Unicode Was Born
ASCII's Problem
With only 7 bits, ASCII can represent just 128 characters. This was fine for 1960s America, but:
- ❌ No Chinese characters (需要几千个!)
- ❌ No Arabic (الحروف العربية)
- ❌ No Cyrillic (Привет) or Greek (Καλημέρα)
- ❌ No accents: é, ü, ñ, ç
- ❌ No emoji 😊 🎉 💻
- ❌ No math symbols: ∑, ∫, ∞, ≤
Unicode's Solution
Unicode uses 16, 24, or 32 bits — enough for over a million characters!
- ✅ World's writing systems: 中文, العربية, हिन्दी, 日本語
- ✅ Designed as superset of ASCII — first 128 codes are identical
- ✅ Standardised — same code = same character everywhere
- ✅ Supports emoji 😊, maths ∑, music ♫, arrows →
- ✅ Every character has a unique code point: U+XXXX
The Core Difference — Storage Space vs. Inclusivity
| Feature | ASCII | Unicode |
|---|---|---|
| Bits per character | 7 (or 8 for extended) | 16, 24, or 32 |
| Total characters | 128 (or 256 extended) | Over 1 million possible |
| Languages supported | English only | All world languages |
| File size for English text | Smaller | Larger (2-4×) |
| Standardisation | Extended ASCII (128-255) varies by system | Fully standardised globally |
| Year introduced | 1963 | 1991 |
Unicode in Practice — Sample Code Points
Unicode organises characters into blocks (ranges). Each character has a unique code point written as U+XXXX (hexadecimal).
Sample Unicode Blocks
Real-World Example — How "Hello" is Stored
Each character = 7 bits → packed into 1 byte
Each character = 16 bits = 2 bytes
ASCII has no Chinese characters
✏️ Quick Memory Aid — Why "A" = 65?
• 'A' (65) + 32 = 'a' (97)
• 'A' (65) + 25 = 'Z' (90)
This makes case conversion easy: just flip bit 5!
Practice — Character Sets
(a) Explain why character sets like ASCII are necessary for computers.
(b) State two limitations of ASCII that led to the development of Unicode.
(c) A file contains the word "Cat". Using ASCII codes (C=67, a=97, t=116), write the binary representation stored in memory (use 8 bits per character).
(d) Describe one advantage and one disadvantage of Unicode compared to ASCII.
🔍 Click to reveal answer
(b) (i) Only 128 characters — cannot represent many languages. (ii) Extended ASCII (128–255) is not standardised — different systems use different codes.
(c) C = 67 = 01000011, a = 97 = 01100001, t = 116 = 01110100 → 01000011 01100001 01110100
(d) Advantage: Can represent characters from all world languages / fully standardised. Disadvantage: Uses more bits per character → larger file size / more storage space needed.
📋 Chapter 1.1 Summary Checklist
Tick off each topic as you master it:
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!
1.2 Multimedia — Graphics & Sound
🎨 1.2 Multimedia — Graphics
1.2.1 Bitmap Image Encoding
A bitmap image is made up of a grid of tiny squares called pixels. Each pixel has one colour, and that colour is stored as a binary number.
How a Bitmap is Encoded
Key Bitmap Terms — Visual Memory Guide
1.2.2 Calculating Bitmap File Size
Step-by-Step Example
Practice — File Size Calculation
A bitmap image is 1024 × 768 pixels with a 16-bit colour depth. Calculate the raw file size in MiB.
🔍 Click to reveal answer
Bits = 786,432 × 16 = 12,582,912
Bytes = 12,582,912 ÷ 8 = 1,572,864
KB = 1,572,864 ÷ 1024 = 1,536 KB
MiB = 1,536 ÷ 1024 = 1.5 MiB
1.2.3 Effects of Changing Resolution & Colour Depth
Low Resolution
Pixelated when enlarged
High Resolution
Smooth when enlarged
Practice — Resolution & Colour Depth
Describe the effect on file size and image quality of: (a) Increasing colour depth (b) Increasing image resolution.
🔍 Click to reveal answer
(b) Higher resolution: File size increases (more pixels stored). Quality improves (sharper, less pixelated image).
1.2.4 Vector Graphics
Unlike bitmaps, vector graphics store images as a series of mathematical drawing objects (shapes, lines, curves) rather than individual pixels.
How Vector Images are Encoded
Vector Graphics Terms — Visual Memory Guide
1.2.5 Bitmap vs Vector — Choosing the Right Format
Practice — Bitmap vs Vector
A graphic designer needs to create a company logo that will be printed on billboards and business cards. Should they use a bitmap or vector format? Justify your answer.
🔍 Click to reveal answer
🔊 1.2 Multimedia — Sound
1.2.6 How Sound is Represented & Encoded
Sound is analogue — a continuous wave of changing air pressure. Computers are digital — they can only store discrete (separate) values. Sampling bridges this gap.
Analogue → Digital: The Sampling Process
Step 1: Sample
Amplitude measured at regular time intervals
Step 2: Encode
Each amplitude converted to a binary number
Step 3: Store
Binary numbers stored in sequence
Sound Terms — Visual Memory Guide
1.2.7 Impact of Changing Sampling Rate & Resolution
✅ Benefits of Higher Quality
- Smaller quantisation errors
- Crisper, more accurate sound quality
- Larger dynamic range (≈ 6 × bit depth)
- Digital waveform closer to the original
⚠️ Drawbacks of Higher Quality
- Much larger file size
- Longer to transmit / download
- Greater bandwidth required
- More processing power needed
Practice — Sampling Rate & Resolution
A music streaming service wants to reduce file sizes to save bandwidth. Should they decrease the sampling rate or the sampling resolution? State one advantage and one disadvantage of your choice.
🔍 Click to reveal answer
Decreasing sampling rate: Fewer samples per second → file size decreases. Disadvantage: Smaller time gaps → less accurate digital waveform → more quantisation error → lower quality.
Decreasing sampling resolution: Fewer bits per sample → file size decreases. Disadvantage: Narrower amplitude range → each binary value is less precise → more quantisation error.
📋 Section 1.2 Summary Checklist
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!
1.3 Compression
📦 1.3 Compression
1.3.1 The Need for Compression
Save Storage Space
Compressed files take up less space on storage devices → can store more files.
Faster Transmission
Smaller files can be downloaded / uploaded faster, using less bandwidth.
Email Attachments
Many email servers have size limits (e.g. 25 MB). Compression makes files fit.
Practice — Need for Compression
A website hosts high-resolution photographs. Give two reasons why the web developer should compress these images before uploading them to the server.
🔍 Click to reveal answer
(2) Images take up less storage space on the server — can store more images and have space for other files.
1.3.2 Lossy vs Lossless Compression
Lossy Compression
- Loses some original data permanently
- Original file cannot be recreated exactly
- Achieves much smaller file sizes (up to ~90% reduction)
- Examples: JPEG (images), MP3 (audio), MP4 (video)
- Technique: remove data that humans won't notice
Lossless Compression
- Preserves all original data
- Original file can be recreated exactly
- Maximum ~50% reduction (less than lossy)
- Examples: PNG (images), FLAC (audio), ZIP (files)
- Techniques: RLE, Huffman coding
Practice — Lossy vs Lossless
A video streaming service (e.g. YouTube) needs to compress its videos. Should it use lossy or lossless compression? Justify your answer.
🔍 Click to reveal answer
1.3.3 Run-Length Encoding (RLE)
RLE is a lossless compression method. It identifies consecutive repeated values (runs) and replaces them with: the count + the value.
RLE on Text
Data with many repeated runs, e.g. simple graphics, black-and-white images, files with lots of whitespace.
Data with few repeats, e.g. "RGBRGBRGB". RLE would make it larger (stores each value + count=1).
RLE on Bitmap Images
Practice — Run-Length Encoding
(a) Apply RLE to the string: AAAAABBBBCCCCD
(b) Explain why RLE may not reduce the file size for some types of data.
🔍 Click to reveal answer
(b) RLE stores each value plus its count. If the data has few consecutive repeated values (e.g. RGBRGBRGB), RLE would store each character with a count of 1, which adds data instead of reducing it.
1.3.4 Compression by File Type
❌ Why can't text use lossy?
Every single character matters. If even one bit changes, the meaning can be completely different (e.g. "pass" vs "pAss" vs "±ass"). Lossy compression would corrupt the file — none of the original data can be lost.
✅ Why images/sound can use lossy
The human eye and ear cannot perceive every detail. Removing subtle colour variations, high/low frequencies is often unnoticeable to the viewer/listener.
Summary Decision Flowchart
Practice — Compression by File Type
For each file type below, state whether lossy compression is suitable and explain why:
(a) A novel saved as a text file
(b) A holiday photograph
(c) A legal document
🔍 Click to reveal answer
(b) Yes — minor quality loss is usually unnoticeable to the human eye, and file size reduction is significant.
(c) No — legal documents must be exact. Even one wrong character could change the meaning completely.
📋 Section 1.3 Summary Checklist
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!
Communication
1 lesson2.1 Networks including the internet
2.1 Networks including the Internet
Two Students, One Problem
Alex and Jamie are working on a group project. Alex has written the introduction on his laptop. Jamie has the research data on hers. They need to combine their work.
How would you solve this? You're not allowed to use the internet or Wi-Fi. What options do they have?
🤔 What did you come up with?
Most people's first idea: USB stick — copy the file, walk to the other computer, paste. This is called a "sneakernet" (sneaker + network, because you walk in your sneakers to move data).
But what if:
- You need to share files every minute?
- There are 30 students, not just 2?
- You're in different countries?
The USB stick won't work. We need something better. We need a NETWORK.
Throughout this chapter, we will follow Alex and Jamie as they build a network from scratch — starting with just two computers, and growing all the way to connecting to the global Internet. At each step, you'll face the same problems they face. Try to solve each problem yourself before reading the answer.
2.1.1 Why Do We Need Networks? (The Problem Before the Solution)
Step 1: Two Computers, One Cable
Alex and Jamie start with the simplest possible setup: two laptops, one cable connecting them directly.
This works! Alex can send a file to Jamie directly. But now a third student, Sam, joins the project. Problem: With only one cable port on each laptop, how do you connect three computers?
🤔 What would YOU do? (Try before reading)
Three possible solutions:
- Daisy chain: Alex → Jamie → Sam. But if Jamie's computer is off, Sam and Alex can't communicate.
- Add more cables: Alex connects to both Jamie and Sam. But now Alex needs two cable ports.
- Use a central device: Everyone connects to a switch. Data goes to the switch, which forwards it to the right person.
Solution 3 is what real networks use. You've just invented the need for a network switch!
Step 2: The Sharing Problem Grows
Now there are 30 students in the class, each with a computer. They also have one printer. Before networking:
- ❌ To print, you save your file to a USB stick, walk to the printer's computer, and print from there
- ❌ To share a file with everyone, you email it 30 times or pass a USB stick around
- ❌ To update software, you visit each computer individually
- ❌ To back up files, you need 30 separate backup drives
What networking solves: A single network connects all 30 computers and the printer. Now anyone can print from anywhere. Files are shared instantly. Software is updated once from a central server.
🔍 Practice 1 — Why Network?
Question: A primary school has 20 computers in one lab and 1 printer. There is no network. List three problems this causes, and explain how networking solves each one.
Sample Answer:
1. Problem: Students must save work to a USB stick to print it. Solution: Networking allows all computers to access the printer directly.
2. Problem: The teacher must manually install software on each of 20 computers. Solution: Software can be installed once on a central server and distributed to all computers.
3. Problem: If a student's computer crashes, their unsaved work may be lost. Solution: Files can be saved centrally on a server with automatic backup.
2.1.2 How Should We Arrange the Connections? (Network Topologies)
🧠 Imagine this: You're the network architect for a new office. You have 10 computers, and you can buy as much cable as you need. How would you arrange the cables? Draw it in your head first — then see how the four standard topologies compare to your design.
The history of network topologies is a story of trade-offs. Every time engineers solved one problem (cost, collisions, reliability), a new problem appeared. Let's walk through this journey — one topology at a time, one problem at a time.
⏱️ Era: Late 1970s — Early 1980s
🔹 1. Bus Topology — "The Party Line"
🧠 Problem: It's 1978. You work at a university with 8 research computers. Each one cost $50,000 — the price of a house. You need to connect them so researchers can share files and a single expensive printer. But network cables cost $5 per metre, and switches don't exist yet (they would be $10,000+ each if they did).
Question: With a very limited budget, what is the absolute cheapest way to connect 8 computers with cable?
🤔 Think about it first, then click to see the solution
The cheapest way is to run one single cable past all the computers and tap into it. That's exactly what the inventors of Ethernet at Xerox PARC did in 1973 — they called it the "bus" because data travels along a shared pathway, like people on a city bus.
🛠️ Historical fact: The first Ethernet network used a thick coaxial cable (called "thicknet" or 10BASE5, 1979) that could run up to 500 metres. Later came "thinnet" (10BASE2, 1985) — thinner, cheaper, and easier to install.
🧠 Think about it: Bus topology was cheap and simple, but as networks grew, two serious problems emerged:
- Data collisions — if two computers transmit at the same time, the signals crash and both messages are destroyed. The more computers, the more collisions.
- One break = everyone down — a loose cable or damaged backbone took the entire network offline.
Engineers asked: "What if each computer had its own dedicated cable to a central device that manages traffic? No more collisions, no more shared-cable breakages."
⏱️ Era: 1990s — Today (The Modern Standard)
🔹 2. Star Topology — "The Hub-and-Spoke"
🧠 Problem: It's 1992. Your office has 30 computers on a bus network. The network keeps crashing because:
1️⃣ Two people send data → collision → everyone waits
2️⃣ Yesterday the cleaner bumped a cable → entire network down for 4 hours → $50,000 lost
Question: If every computer has its OWN cable that runs to a central device (a switch), and the switch forwards data only to the right destination, what shape does the network form?
🤔 Think about it first, then click to see the solution
You've just designed a star topology! The key innovation: a network switch (or earlier, a hub). Each device has its own dedicated cable to the switch. The switch reads the destination address on each data packet and forwards it only to the correct device.
This solves both bus problems at once:
✅ No collisions — the switch manages traffic, so no two signals crash
✅ Fault isolation — if PC 1's cable breaks, only PC 1 loses connection
🛠️ Historical fact: The 1990 IEEE 802.3i standard (10BASE-T) introduced Ethernet over twisted-pair cable, which naturally used a star topology. Combined with rapidly falling switch prices in the mid-1990s, star became the dominant topology. By 2000, nearly every new network used star.
🧠 Think about it: Star topology solved collisions and fault isolation, but it has one critical weakness: the central switch is a single point of failure. If the switch dies, everyone loses connection. For a school computer lab, that's annoying. But what if this network controls:
- 🚑 A hospital's emergency room communication system?
- ✈️ An airport's air traffic control network?
- 🏦 A bank's stock trading platform handling $1 billion per minute?
For these systems, "the network is down" is not an option. They need multiple pathways so that if any one path fails, data can take an alternative route. What kind of design gives you multiple paths between every pair of devices?
⏱️ Era: 1960s (military/ARPANET) — Modern (wireless mesh & critical infrastructure)
🔹 3. Mesh Topology — "The Spider's Web"
🧠 Problem: It's 1969. The US Department of Defense is building ARPANET — the network that would become the Internet. They need a network that can survive a nuclear attack. If a bomb destroys a switching centre in Kansas, data from New York to Los Angeles must automatically find an alternative route through Denver and Phoenix.
Question: If you need multiple alternative routes between every pair of devices, and the network must keep working even after multiple connections are destroyed, what shape does the network form?
🤔 Think about it first, then click to see the solution
You've designed a mesh topology! In a full mesh, every device is connected to every other device. If any one connection fails, data can take a completely different path. In practice, a partial mesh (only the most critical devices have redundant connections) is more common.
🛠️ Historical fact: The ARPANET (1969) used a partial mesh topology with Interface Message Processors (IMPs) as routers. This design concept — redundant paths and automatic rerouting — became the foundation of the modern Internet.
🧠 Think about it: Each topology has its strengths and weaknesses. But real companies don't start from scratch — they grow, merge, and have multiple departments. What happens when your Marketing department has its own switch forming a star network, Engineering has a separate switch for its devices, and your server room needs mesh-level redundancy? You can't use just one topology across the whole company — you need to connect them.
⏱️ Era: 2000s — Today (Real-world networks)
🔹 4. Hybrid Topology — "The Best of Both Worlds"
🧠 Problem: A company has two departments — Marketing and Engineering. Each floor has its own switch, its own devices, and its own local network (star topology). But employees in Marketing need to access the Engineering file server, and Engineering needs to send reports to the Marketing printer. How can two separate star networks talk to each other?
Question: What do you call a network that connects two star subnets together via switches, forming a larger network?
🤔 Think about it first, then click to see the solution
This is a hybrid topology — specifically an Extended Star (Tree Topology) — a combination of two or more star networks connected via switches. In the real world, almost every company network is a hybrid. Each department has its own switch forming a star, and those switches are connected together into a larger network.
🔎 Modern note: Bridges were once used to connect different network segments, but they are now obsolete. Modern networks use switches instead — a switch is essentially a multi-port, high-performance bridge that supports faster speeds (Gigabit / 10GbE) and smarter traffic management.
📊 Historical Timeline Summary
✏️ Practice 2 — Which Topology?
- A primary school has 5 computers and a very limited budget. They want to connect them to share one printer. Which topology would you recommend? State one advantage and one disadvantage.
- A stock exchange needs a network where no single failure can stop trading. Which topology is most suitable? Explain why.
- A company has 50 computers across 3 floors. Each floor is a star network with its own switch. All switches are connected to a central router. If the switch on Floor 2 fails:
a) Which floor(s) lose network access?
b) What topology does this overall design represent? - In a bus topology, what happens when two computers try to send data at the same time? What is this problem called?
- Exam-style question: A hospital needs a network connecting 4 departments: A&E (critical), Surgery (critical), Pharmacy, and Admin. The hospital requires:
- Maximum fault tolerance for A&E and Surgery
- Cost-effectiveness for Pharmacy and Admin
- Extension question: In a star topology, examine the animation above. Why does the data packet go to the switch before being forwarded to the printer? What would happen if every device could send directly to every other device (like in a mesh)? Compare the cost vs reliability trade-off between star and mesh.
🔍 Check your answers
- Bus topology. Advantage: Lowest cost (one cable, no switch). Disadvantage: If the backbone cable breaks, the entire network goes down / performance degrades with more devices.
- Mesh topology. Explanation: Multiple redundant paths mean no single point of failure. If one connection fails, data automatically reroutes through alternative paths.
- a) Only Floor 2 loses access. Floors 1 and 3 continue working because each floor has its own switch. b) Hybrid topology.
- A data collision occurs — the signals crash into each other and both messages are destroyed. Each computer must wait a random time and try again. This is called CSMA/CD (Carrier Sense Multiple Access / Collision Detection).
- Sample answer: Use a hybrid topology. A&E and Surgery should use a partial mesh for redundancy. Pharmacy and Admin can use star to save costs. Connect all via a central router. This balances fault tolerance with cost efficiency.
- The switch acts as a traffic manager — it receives the packet, reads the destination address, and forwards it only to the correct device. This prevents collisions and ensures only the intended recipient gets the data. In a full mesh, every device connects to every other — this gives maximum reliability (no single point of failure) but is very expensive (N(N-1)/2 cables). Star is a cost-effective trade-off: cheaper than mesh, but the switch is a single point of failure.
2.1.3 How Big Should the Network Be? (LAN and WAN)
🧠 Alex and Jamie's network now connects all 30 computers in their classroom. But their school has three buildings, and the school wants all buildings connected. Then the school wants to connect with a partner school in another country.
Your turn: Do you build the same kind of network for all these connections? What changes when the distance grows from 10 metres to 10,000 kilometres?
Networks are classified by their geographical scope. The two most important categories are LAN (Local Area Network) and WAN (Wide Area Network). The difference isn't just about distance — it affects who owns the infrastructure, how fast data travels, and what hardware you need.
🔍 Practice 3 — LAN vs WAN
Question: A multinational company has offices in London, Tokyo, and New York. Computers within the London office are connected. The three offices are also connected to each other. Explain whether each connection is a LAN or WAN and why.
Sample Answer:
London office network: LAN — all computers are in the same building (small area), using privately owned cables.
Connection between offices: WAN — offices are on different continents (large area), requiring leased infrastructure like undersea fibre-optic cables.
🔄 So far, we've built the "road map" of our network — how devices are arranged (topologies) and how big the network is (LAN/WAN).
But roads need vehicles, traffic lights, and drivers. What physical devices actually make the network work? That's our next question.
2.1.4 What Hardware Makes a Network Work?
🧠 Alex and Jamie have designed their network layout (star topology) and know it's a LAN. Now they need to buy equipment to actually build it. Their shopping list includes: cables, a switch, NICs, and a router.
Before reading on: They have 30 computers. Each computer has USB ports, HDMI ports, and a power socket. But to connect to a network, each computer needs something special. What is missing from each computer?
Every device on a network needs specific hardware to send and receive data. Each piece of hardware solves a specific problem:
🔹 Step 1: The NIC — How Does a Computer Even Connect?
WNIC (Wireless NIC): What if you don't want a cable? A WNIC does the same job but wirelessly:
- Acts as an antenna — receives analogue radio waves and converts them to digital/binary
- Takes digital input and converts it to analogue radio waves for transmission
- Checks incoming transmissions for the correct MAC/IP address
- Encrypts and decrypts data for secure wireless communication
🔹 Step 2: The Switch — How Do Many Devices Talk to Each Other?
🔹 Step 3: The Server — Where Do We Keep Shared Files?
🔹 Step 4: The WAP — What About Phones and Tablets?
🔹 Step 5: Extending the Network — Bridge and Repeater
🔹 The Router — Connecting Your Network to the World
Router Functions in Detail
- Receives packets from devices or the internet
- Reads the destination IP address in each packet
- Consults its routing table to find the most efficient path
- Forwards packets to the next hop on that path
- Assigns private IP addresses to devices on the LAN (using DHCP)
- Maintains a table of MAC and IP addresses for local devices
🔍 Practice 4 — LAN Hardware
Question 1: Distinguish between the role of a switch and the role of a router in a network.
Sample Answer:
A switch connects devices within a single LAN and forwards data to the specific device it is intended for using MAC addresses. A router connects two or more networks (e.g., a LAN to the Internet) and forwards data packets between them using IP addresses and a routing table.
Question 2: Explain why a repeater might be needed in a large office network.
Sample Answer:
Electrical signals in a cable weaken over distance (signal degradation). If the office is large and cables run over 100 metres, the data signal becomes too weak to read. A repeater restores and amplifies the signal so it can continue travelling to its destination.
2.1.5 How Should We Organise the Computers? (Client-Server vs P2P)
🧠 Alex's school network now has 30 computers connected via a switch, with a server for shared files, and a router for internet access. The IT teacher asks: "Who controls what? Should one computer be in charge, or should every computer be equal?"
Your turn: If you had 30 computers — some belong to students, one is the teacher's machine, one stores shared files — how would you organise who can access what?
🔹 Client-Server — "The Library"
Example — Downloading a file:
- Teacher saves a homework file on the school's file server
- Alex opens his browser (client software) and requests the file
- The server checks: "Is Alex authorised to access this file?" ✓
- The server sends the file to Alex's computer
Benefits: Centralised security, centralised backup, easier management, less powerful (cheaper) client computers needed.
🔹 Peer-to-Peer (P2P) — "The Potluck Dinner"
Benefits: No expensive server hardware (save money), easy to set up (just connect and share), resilient (if one peer goes offline, others still work).
Drawbacks: Reduced security (each computer manages its own, weakest link vulnerability), no central backup (data lost if computer fails), performance issues (peers slow down when accessed by others).
Thin-Client vs Thick-Client
In a client-server network, clients come in two flavours. The difference is how much work the client does vs how much the server does:
🔍 Practice 5 — Network Models
Question 1: A school needs a network where the IT department can control which websites students visit and ensure all files are backed up centrally. Should they use client-server or P2P? Justify.
Sample Answer:
Client-server. The server provides centralised management: IT can set internet filtering policies once on the server, all student files are stored on the server (enabling central backup), and students require usernames/passwords to access resources, improving security.
Question 2: A hospital installs thin-client computers at nurse stations. Give two characteristics of a thin-client that make this suitable.
Sample Answer:
1. Data is not stored on the client — patient records remain on the central server, improving security and privacy.
2. The client performs minimal processing — nurse stations can use cheap, low-power devices that only display the server's output.
2.1.6 To Cable or Not to Cable? (Wireless vs Wired)
🧠 The school's network is up and running with cables. But now students want to bring their own laptops and phones and connect from anywhere in the building. Teachers want to walk around the classroom while projecting from their tablet.
Your turn: What are the trade-offs between cables (wired) and radio signals (wireless)? When would you choose each one?
The choice between wired and wireless isn't about which is "better" — it's about which trade-offs matter for your situation.
Wired Transmission Media
Copper vs Fibre-Optic Comparison (Exam Focus):
- ✅ Fibre-optic: greater bandwidth (more data per second), longer distance without boosting, more secure (harder to tap), no electromagnetic interference, lighter weight
- ✅ Copper: cheaper, easier to install (more flexible), technology is more established/widespread, easier to make terminations
Wireless Transmission Media
Wired vs Wireless — The Key Trade-Offs
🔍 Practice 6 — Wired vs Wireless
Question: A hospital wants doctors to access patient records from portable tablets as they move between wards. However, patient data is highly sensitive. Advise whether the hospital should use wired or wireless networking, explaining the trade-offs.
Sample Answer:
The hospital should use wireless networking with strong encryption because the doctors need mobility to access records while moving between wards — wired connections would not allow this. The trade-off is reduced security (wireless signals can be intercepted), so the hospital must implement robust encryption (e.g., WPA3) and access controls to protect patient data. If absolute security were the only concern, wired would be better, but mobility is essential for patient care.
2.1.7 How Do We Avoid Traffic Jams? (Ethernet & CSMA/CD)
🧠 The school network is built. But now 30 students are sending files at the same time. In a bus topology, all data shares one cable. In a star topology, the switch helps, but what about the cables between devices and the switch?
Your turn: Imagine 30 people in one room, all trying to talk at once. Nobody can hear anything. How would you solve this? (This is exactly the problem Ethernet's CSMA/CD was created to solve.)
How CSMA/CD Works — Step by Step
Before transmitting, the device listens to the cable to check if another device is already transmitting.
If the channel is free, the device transmits its data. If busy, it waits and tries again.
If two devices transmit at the same time, a collision occurs. Both detect the collision immediately.
Both send a jamming signal (telling all devices "collision!"). Both wait a random amount of time, then try again from step 1.
Drawbacks of CSMA/CD
- ❌ Random waiting time increases each time — can lead to infinite waiting on a busy network
- ❌ Not scalable — more devices means exponentially more collisions
- ❌ Cannot prioritise certain devices (all are equal)
- ❌ Only suitable for short-distance networks
🔍 Practice 7 — CSMA/CD
Question: Describe what happens when two devices on an Ethernet network try to transmit data at exactly the same time.
Sample Answer:
1. Both devices sense the channel is free and begin transmitting simultaneously.
2. Their signals collide on the shared medium.
3. Both devices detect the collision and send a jamming signal to notify all devices.
4. Both devices wait a random amount of time before attempting to retransmit.
5. Because the wait times are random, one device will likely transmit before the other, avoiding another collision.
🔄 So far, we've built a local network from the ground up — chosen a topology, added hardware, organised the computers, and solved the collision problem.
Now it's time to connect this network to the rest of the world. How does data travel from a school in London to a server in Tokyo? What makes the Internet actually work?
2.1.8 Connecting to the World (The Internet and WWW)
🧠 Alex and Jamie's school network is now fully functional. But Jamie wants to show Alex a website she found:
www.cscompass.cn. Alex types it into his browser... and the page appears.
But what actually happened? How did Alex's browser know where to find the website? How did the data travel from a server to his screen? And — important exam question — is the Internet the same thing as the World Wide Web?
Hardware That Supports the Internet
🔍 Practice 8 — Internet vs WWW
Question: A student says "I use the Internet to check my email and browse the WWW." Explain why this statement is both correct and slightly inaccurate.
Sample Answer:
The statement is correct in everyday language, but inaccurate in technical terms. The Internet is the global network infrastructure (TCP/IP) that carries data. Email and the WWW are both services that run on the Internet. The WWW is specifically web pages accessed via HTTP, while email uses different protocols (SMTP, POP3, IMAP). Both use the Internet as their transport medium.
2.1.9 How Do We Find Anything on This Giant Network? (IP Addresses)
🧠 The Internet connects billions of devices. When Alex visits www.cscompass.cn, how does his request find the one specific server that hosts that website — out of billions of possibilities?
Your turn: Imagine sending a letter to someone in a city of 10 million people. What information do you need to put on the envelope? Now multiply that by the entire planet. How would you design an addressing system for every device on Earth?
IP Addresses — The Internet's Addressing System
Every device on a network needs a unique identifier. Just as your home has a unique postal address, every device on the Internet has a unique IP address (Internet Protocol address).
IPv4 vs IPv6
Public vs Private IP Addresses
Key insight: Your home router has one public IP address, but assigns private IPs (like 192.168.0.x) to all your devices. When you visit a website, the router uses NAT (Network Address Translation) to map your private IP to its public IP and back. This means 100 devices in your home only need 1 public IP address — conserving the limited IPv4 space.
Static vs Dynamic IP Addresses
Subnetting
Subnetting divides a large network into smaller, manageable subnetworks. Each subnetwork shares the same network ID but gives each device a unique host ID. Benefits include: reduced traffic (data stays within its subnet), improved security (compromised device doesn't expose the whole network), easier maintenance, and simpler expansion.
🔍 Practice 9 — IP Addresses
Question: A company uses private IP addresses for its internal network. Explain two reasons for this choice and how employees still access the Internet.
Sample Answer:
Security: Private IP addresses are not visible from the Internet, so external attackers cannot directly target internal devices. Address conservation: Only the router needs one public IP address for all employees, reducing the number of public IP addresses needed. Employees access the Internet through NAT (Network Address Translation) on the router, which translates private IPs to the router's public IP for outgoing traffic.
2.1.10 How Do We Remember All Those Numbers? (URLs and DNS)
🧠 Every website needs an IP address. The IP address of google.com is 142.250.80.4. But Alex doesn't type 142.250.80.4 — he types www.google.com.
Your turn: Imagine having to memorise a phone number for every website you visit. How many would you remember? Three? Five? Now there are billions of websites. How do we solve the problem of remembering IP addresses?
URL Structure
A URL (Uniform Resource Locator) is the full address of a resource on the web:
https://www.cscompass.cn/courses/python
Protocol Subdomain Domain name Path
| | | |
https:// www. cscompass.cn /courses/python
- Protocol: How to communicate (HTTP, HTTPS, FTP)
- Subdomain: A specific section of the domain (www, mail, etc.)
- Domain name: The human-readable name of the website
- Path: The specific page or resource within the website
How DNS Works — The Complete Journey
1. You type a URL
Alex types www.cscompass.cn into the browser.
2. Browser asks DNS
The browser sends the URL to the nearest DNS server.
3. DNS looks up the URL
Finds matching IP address in its database. If not found locally, forwards to a higher-level DNS.
4. DNS returns IP address
The IP is returned to the browser (and cached for future requests).
5. Browser requests the page
Using the IP address, the browser sends an HTTP request to the web server.
6. Web server responds
The server sends back the web page. The browser interprets it and displays it.
🔍 Practice 10 — DNS
Question: Describe the steps from a user typing www.example.com into a browser to the web page being displayed. Include the role of DNS.
Sample Answer:
1. The browser sends the URL to the nearest DNS server.
2. The DNS server looks up the domain name in its database and finds the matching IP address.
3. If not found, the request is forwarded to a higher-level DNS server until the IP is located.
4. The IP address is returned to the browser (and cached).
5. The browser sends an HTTP request to the web server using the IP address.
6. The web server retrieves the requested page and sends it back.
7. The browser interprets the HTML code and displays the web page.
2.1.11 Watching Video Without Downloading (Bit Streaming)
🧠 Jamie wants to watch a 2-hour movie. The file is 4 GB. She doesn't have enough free space on her laptop to download the whole file. But she can still watch it instantly!
Your turn: How can you watch a 4 GB movie without first downloading 4 GB to your computer? What technology makes this possible?
Bit streaming is the continuous transmission of data over a network so the recipient can process it as it arrives — without waiting for the entire file to download.
How Video Bit Streaming Works
- Video is compressed before transmission (reduces file size)
- The video is hosted on a media server
- The server sends the data continuously as a series of bits
- The client computer receives the data into a buffer (temporary storage)
- The user's media player reads from the buffer while the next data arrives
Real-Time vs On-Demand Streaming
Importance of Broadband Speed
Bit streaming requires a minimum broadband speed to work smoothly. If the connection is too slow, the buffer empties faster than data arrives, causing the video to stop and "buffer" (a spinning wheel). Higher bit rate = better quality, but also requires faster internet.
🔍 Practice 11 — Bit Streaming
Question: Distinguish between real-time bit streaming and on-demand bit streaming.
Sample Answer:
Real-time streaming broadcasts a live event as it happens (e.g., a football match), and the user cannot pause or rewind. On-demand streaming delivers pre-recorded content when the user requests it (e.g., Netflix), and the user can pause, rewind, or fast-forward at any time.
2.1.12 Storing Data Elsewhere (Cloud Computing)
🧠 Alex's school doesn't want to buy and maintain expensive servers. They want to use Google Drive for file storage, Gmail for email, and online tools for document editing. All their data is stored on Google's servers, not in their school building.
Your turn: What are the advantages and risks of storing your files on someone else's computer? When would you choose the cloud vs keeping everything local?
Benefits: Access from anywhere, no hardware to maintain, automatic backups, easy collaboration, scalable storage.
Drawbacks: Requires internet access, reliant on provider's security, potential privacy concerns, ongoing subscription costs.
Public vs Private Cloud
🔍 Practice 12 — Cloud Computing
Question: A hospital is deciding whether to use a public cloud or private cloud for storing patient records. Advise which option is more suitable and justify your answer.
Sample Answer:
A private cloud is more suitable. Patient records are highly sensitive and subject to strict privacy regulations. A private cloud gives the hospital greater control over security and privacy — they can decide exactly who has access, where data is stored, and how backups are managed. A public cloud would expose patient data to third-party infrastructure, increasing the risk of a data breach.
📚 Key Terms — Chapter 2
📋 Chapter 2 Summary Checklist
🌐 Did you follow the story?
The history of network topologies is a story of trade-offs. Every time engineers solved one problem (cost, collisions, reliability), a new problem appeared. Let's walk through this journey — one topology at a time, one problem at a time.
⏱️ Era: Late 1970s — Early 1980s
🔹 1. Bus Topology — "The Party Line"
🧠 Problem: It's 1978. You work at a university with 8 research computers. Each one cost $50,000 — the price of a house. You need to connect them so researchers can share files and a single expensive printer. But network cables cost $5 per metre, and switches don't exist yet (they would be $10,000+ each if they did).
Question: With a very limited budget, what is the absolute cheapest way to connect 8 computers with cable?
🤔 Think about it first, then click to see the solution
The cheapest way is to run one single cable past all the computers and tap into it. That's exactly what the inventors of Ethernet at Xerox PARC did in 1973 — they called it the "bus" because data travels along a shared pathway, like people on a city bus.
🛠️ Historical fact: The first Ethernet network used a thick coaxial cable (called "thicknet" or 10BASE5, 1979) that could run up to 500 metres. Later came "thinnet" (10BASE2, 1985) — thinner, cheaper, and easier to install.
🧠 Think about it: Bus topology was cheap and simple, but as networks grew, two serious problems emerged:
- Data collisions — if two computers transmit at the same time, the signals crash and both messages are destroyed. The more computers, the more collisions.
- One break = everyone down — a loose cable or damaged backbone took the entire network offline.
Engineers asked: "What if each computer had its own dedicated cable to a central device that manages traffic? No more collisions, no more shared-cable breakages."
⏱️ Era: 1990s — Today (The Modern Standard)
🔹 2. Star Topology — "The Hub-and-Spoke"
🧠 Problem: It's 1992. Your office has 30 computers on a bus network. The network keeps crashing because:
1️⃣ Two people send data → collision → everyone waits
2️⃣ Yesterday the cleaner bumped a cable → entire network down for 4 hours → $50,000 lost
Question: If every computer has its OWN cable that runs to a central device (a switch), and the switch forwards data only to the right destination, what shape does the network form?
🤔 Think about it first, then click to see the solution
You've just designed a star topology! The key innovation: a network switch (or earlier, a hub). Each device has its own dedicated cable to the switch. The switch reads the destination address on each data packet and forwards it only to the correct device.
This solves both bus problems at once:
✅ No collisions — the switch manages traffic, so no two signals crash
✅ Fault isolation — if PC 1's cable breaks, only PC 1 loses connection
🛠️ Historical fact: The 1990 IEEE 802.3i standard (10BASE-T) introduced Ethernet over twisted-pair cable, which naturally used a star topology. Combined with rapidly falling switch prices in the mid-1990s, star became the dominant topology. By 2000, nearly every new network used star.
🧠 Think about it: Star topology solved collisions and fault isolation, but it has one critical weakness: the central switch is a single point of failure. If the switch dies, everyone loses connection. For a school computer lab, that's annoying. But what if this network controls:
- 🚑 A hospital's emergency room communication system?
- ✈️ An airport's air traffic control network?
- 🏦 A bank's stock trading platform handling $1 billion per minute?
For these systems, "the network is down" is not an option. They need multiple pathways so that if any one path fails, data can take an alternative route. What kind of design gives you multiple paths between every pair of devices?
⏱️ Era: 1960s (military/ARPANET) — Modern (wireless mesh & critical infrastructure)
🔹 3. Mesh Topology — "The Spider's Web"
🧠 Problem: It's 1969. The US Department of Defense is building ARPANET — the network that would become the Internet. They need a network that can survive a nuclear attack. If a bomb destroys a switching centre in Kansas, data from New York to Los Angeles must automatically find an alternative route through Denver and Phoenix.
Question: If you need multiple alternative routes between every pair of devices, and the network must keep working even after multiple connections are destroyed, what shape does the network form?
🤔 Think about it first, then click to see the solution
You've designed a mesh topology! In a full mesh, every device is connected to every other device. If any one connection fails, data can take a completely different path. In practice, a partial mesh (only the most critical devices have redundant connections) is more common.
🛠️ Historical fact: The ARPANET (1969) used a partial mesh topology with Interface Message Processors (IMPs) as routers. This design concept — redundant paths and automatic rerouting — became the foundation of the modern Internet.
🧠 Think about it: Each topology has its strengths and weaknesses. But real companies don't start from scratch — they grow, merge, and inherit old networks. What happens when your Marketing department uses a star network, your Engineering lab still has an old bus network, and your server room needs mesh-level reliability? You can't use just one topology — you need a mix.
⏱️ Era: 2000s — Today (Real-world networks)
🔹 4. Hybrid Topology — "The Best of Both Worlds"
🧠 Problem: Your company has two offices: one uses a star network (new equipment in 2020), the other inherited an old bus network (from the 1990s). You can't afford to rip out and replace everything. And your critical server room needs mesh-level reliability. What do you do?
Question: What would you call a network that uses star in one department, bus in another, and mesh for the servers, all connected together?
🤔 Think about it first, then click to see the solution
This is a hybrid topology — a combination of two or more different topologies connected via bridges or routers. In the real world, almost every large network is a hybrid. Companies grow, merge, add new technology — they end up with a mixture.
📊 Historical Timeline Summary
✏️ Practice 2 — Which Topology?
- A primary school has 5 computers and a very limited budget. They want to connect them to share one printer. Which topology would you recommend? State one advantage and one disadvantage.
- A stock exchange needs a network where no single failure can stop trading. Which topology is most suitable? Explain why.
- A company has 50 computers across 3 floors. Each floor is a star network with its own switch. All switches are connected to a central router. If the switch on Floor 2 fails:
a) Which floor(s) lose network access?
b) What topology does this overall design represent? - In a bus topology, what happens when two computers try to send data at the same time? What is this problem called?
- Exam-style question: A hospital needs a network connecting 4 departments: A&E (critical), Surgery (critical), Pharmacy, and Admin. The hospital requires:
- Maximum fault tolerance for A&E and Surgery
- Cost-effectiveness for Pharmacy and Admin
- Extension question: In a star topology, examine the animation above. Why does the data packet go to the switch before being forwarded to the printer? What would happen if every device could send directly to every other device (like in a mesh)? Compare the cost vs reliability trade-off between star and mesh.
🔍 Check your answers
- Bus topology. Advantage: Lowest cost (one cable, no switch). Disadvantage: If the backbone cable breaks, the entire network goes down / performance degrades with more devices.
- Mesh topology. Explanation: Multiple redundant paths mean no single point of failure. If one connection fails, data automatically reroutes through alternative paths.
- a) Only Floor 2 loses access. Floors 1 and 3 continue working because each floor has its own switch. b) Hybrid topology.
- A data collision occurs — the signals crash into each other and both messages are destroyed. Each computer must wait a random time and try again. This is called CSMA/CD (Carrier Sense Multiple Access / Collision Detection).
- Sample answer: Use a hybrid topology. A&E and Surgery should use a partial mesh for redundancy. Pharmacy and Admin can use star to save costs. Connect all via a central router. This balances fault tolerance with cost efficiency.
- The switch acts as a traffic manager — it receives the packet, reads the destination address, and forwards it only to the correct device. This prevents collisions and ensures only the intended recipient gets the data. In a full mesh, every device connects to every other — this gives maximum reliability (no single point of failure) but is very expensive (N(N-1)/2 cables). Star is a cost-effective trade-off: cheaper than mesh, but the switch is a single point of failure.
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!
Hardware
2 lessons3.1 Computers and their Components
Content for 3.1 Computers and their Components coming soon.
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!
3.2 Logic Gates and Logic Circuits
Content for 3.2 Logic Gates and Logic Circuits coming soon.
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!
Processor Fundamentals
3 lessons4.1 Central Processing Unit (CPU) Architecture
Content for 4.1 Central Processing Unit (CPU) Architecture coming soon.
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!
4.2 Assembly Language
Content for 4.2 Assembly Language coming soon.
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!
4.3 Bit Manipulation
Content for 4.3 Bit Manipulation coming soon.
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!
System Software
2 lessons5.1 Operating Systems
Content for 5.1 Operating Systems coming soon.
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!
5.2 Language Translators
Content for 5.2 Language Translators coming soon.
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!
Security, Privacy and Data Integrity
2 lessons6.1 Data Security
Content for 6.1 Data Security coming soon.
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!
6.2 Data Integrity
Content for 6.2 Data Integrity coming soon.
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!
Ethics and Ownership
1 lesson7.1 Ethics and Ownership
Content for 7.1 Ethics and Ownership coming soon.
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!
Databases
3 lessons8.1 Database Concepts
Content for 8.1 Database Concepts coming soon.
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!
8.2 Database Management Systems (DBMS)
Content for 8.2 Database Management Systems (DBMS) coming soon.
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!
8.3 Data Definition Language (DDL) and Data Manipulation Language (DML)
Content for 8.3 Data Definition Language (DDL) and Data Manipulation Language (DML) coming soon.
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!
Algorithm Design and Problem-solving
2 lessons9.1 Computational Thinking Skills
Content for 9.1 Computational Thinking Skills coming soon.
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!
9.2 Algorithms
Content for 9.2 Algorithms coming soon.
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!
Data Types and Structures
4 lessons10.1 Data Types and Records
Content for 10.1 Data Types and Records coming soon.
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!
10.2 Arrays
Content for 10.2 Arrays coming soon.
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!
10.3 Files
Content for 10.3 Files coming soon.
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!
10.4 Introduction to Abstract Data Types (ADT)
Content for 10.4 Introduction to Abstract Data Types (ADT) coming soon.
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!
Programming
3 lessons11.1 Programming Basics
Content for 11.1 Programming Basics coming soon.
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!
11.2 Constructs
Content for 11.2 Constructs coming soon.
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!
11.3 Structured Programming
Content for 11.3 Structured Programming coming soon.
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!
Software Development
3 lessons12.1 Program Development Life Cycle
Content for 12.1 Program Development Life Cycle coming soon.
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!
12.2 Program Design
Content for 12.2 Program Design coming soon.
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!
12.3 Program Testing and Maintenance
Content for 12.3 Program Testing and Maintenance coming soon.
Homework Questions
Homework exercises for this lesson are being prepared. Check back soon!