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…AnswerChapter
All computers connect to one central device; easy to add users and manageStar topology1.1
Maximum reliability, dedicated links, secure, no congestion, few devicesMesh topology1.1
Cheapest, least cable, small temporary network on one cableBus topology1.1
Each device linked only to the two beside it; signal travels aroundRing topology1.1
Departments each on their own network, joined by a central backboneHybrid (star backbone + bus/ring)1.1
Offices in different countries / continentsWAN (often mesh between sites)1.1
A city-wide network (e.g. STC across a city)MAN1.1
Machines talk directly, no central server, each both client and serverPeer-to-peer model1.1
Both sides talk at the same time (phone call)Full duplex1.1
Take turns (walkie-talkie)Half duplex1.1
One direction only (keyboard, monitor, TV, radio station)Simplex1.1
Products from different vendors must work togetherStandards / protocols1.1
Two systems with different character codes (EBCDIC vs ASCII)Presentation layer (translation)1.2
Long download resumes after a crashSession layer (synchronization checkpoints)1.2
Several departments' data over one high-capacity linkMultiplexing2
Hear another call faintly in the backgroundCrosstalk (a type of noise)2
Errors caused by nearby motors / electrical equipmentInduced noise (EMI) — use STP or fiber2
Lightning, power lines, short high spikesImpulse noise2
Signal weaker after a long cable, wire gets warmAttenuation — amplifier (analog) / repeater (digital)2
Signal shape changes, bits overlapDistortion2
Long distance, immune to EMI, high bandwidth, secureFiber-optic cable2
Cheap and easy cabling inside an office, ≤ 100 mUTP2
Wireless keyboard / remote control in one roomInfrared2
Cellular, satellite, wireless LAN, point-to-point between buildingsMicrowaves2
AM/FM radio, TV broadcastRadio waves2
Real-time video or wireless link with many errors; can't wait for resendForward error correction (FEC)3.1
Flag pattern appears inside the dataByte stuffing (ESC) / bit stuffing (0 after five 1s)3.1
Every station must get a fair turn, no collisionsControlled access (reservation, polling, token passing)3.2
One primary station asks each secondary in turnCentralized polling3.2
Stations sense the shared medium before sending (Ethernet with a hub)CSMA/CD3.2
Each station gets its own frequency band / time slot / codeFDMA / TDMA / CDMA3.2
Send and receive at once, double the throughput, no collisionsFull-duplex switched Ethernet4