CS331 Major I
CS331 · Major I · Chapters 1–4

Major I cheat sheet

Built around what the instructor said the exam looks like: no MCQs, but understanding and computation, drawing topologies, scenarios that ask for a definition, justification, advantages and disadvantages, and questions similar to the tutorials. Covers Chapter 1 parts 1–2, Chapter 2 parts 1–2, Chapter 3 parts 1–2 and Chapter 4.

Formula or key fact
Worked example
Common mistake
How to answer
EXAM PLAN

What the instructor said, and how to answer each type

Major I, 2:00–3:00 (60 minutes), no multiple choice. Every mark comes from a written answer, a drawing or a calculation.

A

Scenario questions

The instructor's own example: "definition, justification, advantage, disadvantage, like star topology". Answer in that order, every time:

  1. Name it. One line: "A star topology is the best choice."
  2. Define it. One sentence from the slides.
  3. Justify it. Point at the words in the scenario that led you there ("the office wants one central device…").
  4. Advantages that matter for this scenario.
  5. Disadvantages — at least one, honestly stated, plus how to live with it.
B

Computation questions

  1. Write the formula first, in words.
  2. Convert units before substituting: km → m, bytes → bits (× 8), ms → s.
  3. Substitute and show the arithmetic on one line.
  4. Give the answer with a unit, then convert to the unit asked for (Kbps, ms, μs).
  5. For parity, CRC and checksum: show the sender side and the receiver check, and state "accept" or "reject".
C

Drawing questions

  • Draw devices as labelled boxes or circles (A, B, C…) and links as straight lines.
  • Write the link count under the drawing and check it against the formula.
  • Mark the central device (hub/switch) clearly in a star, and the two terminators on a bus.
  • For a hybrid, name it: "star backbone with bus networks".
CheckMesh of N = 5 must show 10 lines; ring of N = 6 must show 6.

Scenario clue → answer

If the scenario says… Answer Chapter
All computers connect to one central device; easy to add users and manage Star topology 1.1
Maximum reliability, dedicated links, secure, no congestion, few devices Mesh topology 1.1
Cheapest, least cable, small temporary network on one cable Bus topology 1.1
Each device linked only to the two beside it; signal travels around Ring topology 1.1
Departments each on their own network, joined by a central backbone Hybrid (star backbone + bus/ring) 1.1
Offices in different countries / continents WAN (often mesh between sites) 1.1
A city-wide network (e.g. STC across a city) MAN 1.1
Machines talk directly, no central server, each both client and server Peer-to-peer model 1.1
Both sides talk at the same time (phone call) Full duplex 1.1
Take turns (walkie-talkie) Half duplex 1.1
One direction only (keyboard, monitor, TV, radio station) Simplex 1.1
Products from different vendors must work together Standards / protocols 1.1
Two systems with different character codes (EBCDIC vs ASCII) Presentation layer (translation) 1.2
Long download resumes after a crash Session layer (synchronization checkpoints) 1.2
Several departments' data over one high-capacity link Multiplexing 2
Hear another call faintly in the background Crosstalk (a type of noise) 2
Errors caused by nearby motors / electrical equipment Induced noise (EMI) — use STP or fiber 2
Lightning, power lines, short high spikes Impulse noise 2
Signal weaker after a long cable, wire gets warm Attenuation — amplifier (analog) / repeater (digital) 2
Signal shape changes, bits overlap Distortion 2
Long distance, immune to EMI, high bandwidth, secure Fiber-optic cable 2
Cheap and easy cabling inside an office, ≤ 100 m UTP 2
Wireless keyboard / remote control in one room Infrared 2
Cellular, satellite, wireless LAN, point-to-point between buildings Microwaves 2
AM/FM radio, TV broadcast Radio waves 2
Real-time video or wireless link with many errors; can't wait for resend Forward error correction (FEC) 3.1
Flag pattern appears inside the data Byte stuffing (ESC) / bit stuffing (0 after five 1s) 3.1
Every station must get a fair turn, no collisions Controlled access (reservation, polling, token passing) 3.2
One primary station asks each secondary in turn Centralized polling 3.2
Stations sense the shared medium before sending (Ethernet with a hub) CSMA/CD 3.2
Each station gets its own frequency band / time slot / code FDMA / TDMA / CDMA 3.2
Send and receive at once, double the throughput, no collisions Full-duplex switched Ethernet 4