0 · Exam Mapcourse.json · BRIEF
| Assessment | Weight |
|---|---|
| Two equally-weighted homework assignments | 10% |
| Networking Project 1 | 15% |
| Networking Project 2 | 15% |
| Written examination | 60% |
Permitted materials: not confirmed for this offering in the course materials we hold — check the exam instructions on the LMS.
Assessment and materials framing: course.json and BRIEF.md.
1 · Trace the StackC1 P1–3
Client initiates a service request; a server accepts it and constructs a reply. A packet is a formatted message carrying layer-appropriate control information and payload. Name the object at the layer before explaining its path.
At every hop ask what remains end-to-end and what is replaced locally. A changed first-hop technology does not change the application into a link-layer protocol.
Packet-trace ledger
| Boundary | Record |
|---|---|
| Application ↔ transport | Requested capability, local interface action, application message. |
| Transport ↔ network | Endpoint exchange, packet handed down, network-layer delivery identity. |
| Network ↔ link | Next hop, link frame, fields replaced on the current link. |
| Link ↔ physical | Frame bits represented as signal states on the medium. |
Trace request and reply separately. Client/server roles belong to the exchange, not permanently to a machine type. An IP address identifies a network interface for network-layer delivery; the application request remains conceptually distinct from that identifier.
Self-check → Label every arrow: upward capability, adjacent-layer access, peer coordination or physical/link movement. If one arrow silently does two jobs, split it.
2 · Scope ≠ TopologyC1 P1–2
| Question | Classification | Rule |
|---|---|---|
| Who can receive? | Broadcast | One shared channel; every attached station can receive, addressed recipient processes. |
| Point-to-point | Individual pairwise links; traffic is not automatically presented to all machines. | |
| Multicast | Delivery selects a subset. | |
| How arranged? | Mesh / bus / star / ring | Physical relationship only; does not determine access or forwarding protocol. |
Check → A bus creates a shared-medium coordination problem; a star identifies central attachment. State arrangement and behavioural rule separately.
3 · Three RelationsC1 P3
| Term | Ask | Where |
|---|---|---|
| Service | What capability is made available upward? | Layer to layer above |
| Interface | How is that service invoked? | Adjacent layers on one machine |
| Protocol | How do corresponding entities coordinate? | Peers across communication |
If two things are on the same machine, test for an interface. If they are corresponding entities across communication, test for a protocol. Service is the capability, not the message exchange that implements it.
Reference models: OSI supplies a seven-layer reference vocabulary; TCP/IP is tied to a deployed protocol suite; the subject’s hybrid view keeps physical and data-link functions distinct while following the Internet stack. Compare by mapping functions, not forcing identical layer counts.
Reference-model comparison
| Model | Use it to explain | Avoid |
|---|---|---|
| OSI | Principled seven-layer vocabulary and visible service boundaries. | Treating layer count as proof of deployed behaviour. |
Answer order
4 · Two Link ClocksC2 P1
L in bits; R in bit/s → seconds.
distance and signal speed in matching units → seconds.
Add processing or queueing only when inputs are supplied.
| Change | tₜₓ | tₚᵣₒₚ |
|---|---|---|
| L increases | increases | unchanged |
| R increases | decreases | unchanged |
| d increases | unchanged | increases |
| s increases | unchanged | decreases |
Bandwidth is a rate; delay is a time. Faster transmission cannot remove travel time over a long path. Audit every unit before interpreting.
Dimension ledger
| Input | Write before substitution | Check |
|---|---|---|
| Frame length L | bits | Convert bytes if the prompt supplies them; do not mix. |
| Rate R | bit/s | Keep the stated decimal prefix consistent. |
| Path d | km or m | Must match the distance unit in s. |
| Signal speed s | km/s or m/s | d/s must finish in seconds. |
| Final terms | one time unit | Only then add. |
Sensitivity: changing frame size affects serialisation; changing path length affects travel; changing rate cannot alter geography. If a question gives processing or queueing, keep those as separate time terms rather than hiding them inside either link clock.
Sanity check → Predict which term moves before calculating. A result far outside the estimate triggers a unit and assumption audit.
5 · Media ChoiceC2 P2
6 · Signal → CapacityC2 P3–4
A scheme with V levels carries log₂V bits per symbol. More levels encode more per symbol but place states closer together, demanding cleaner reception. Symbol rate and bit rate differ whenever one symbol carries more than one bit.
Needs bandwidth B and distinguishable levels V.
Needs bandwidth B and linear signal-to-noise ratio S/N.
These are ceilings, not guaranteed throughput. State the binding assumption and distinguish the selected signalling levels from the receiver’s noise-limited ability to tell them apart.
Capacity answer scaffold
- Identify B and its unit. Decide whether the premise gives V, S/N or both.
- Convert levels to bits per symbol with log₂V.
- Evaluate each applicable ceiling in bit/s.
- If both apply, compare in the same unit and select the lower.
- Conclude with the binding assumption; do not report the bound as achieved throughput.
| Evidence | Use | Reason |
|---|---|---|
| Noiseless + B + V | Nyquist | Limits symbol changes and information per symbol. |
| Noisy + B + S/N | Shannon | Limits reliable distinction at the receiver. |
| Both descriptions | Both, then minimum | Neither independent upper bound may be exceeded. |
Do not conflate: bandwidth may denote the rate in the link-delay model, while B in the capacity equations is the stated channel bandwidth. Follow the notation and units of the question rather than swapping terms casually.
7 · Direction & SharingC2 P5
| Concept | Rule |
|---|---|
| Simplex | One fixed direction. |
| Half-duplex | Both directions, not simultaneously. |
| Full-duplex | Both directions simultaneously, with separated paths/resources. |
8 · Frame BoundariesC3 P1
| Scheme | Sender | Failure / receiver |
|---|---|---|
| Character count | Length in header | Corrupted count can lose alignment across later frames. |
| Flag bytes | Reserve flag; escape a matching payload byte | Receiver recognises boundaries and reverses byte stuffing. |
| Bit flags | Reserve pattern; insert a zero where required | Receiver removes inserted bits without deleting genuine data. |
Framing solves boundary ambiguity. It does not itself prove that payload bits are correct or that delivery recovered from loss.
9 · Error GuaranteesC3 P2–3
| Method | Operation | What to say |
|---|---|---|
| Parity | Add one parity bit | Detects any odd number of flips; cannot locate the error. |
| Internet checksum | Fixed-width sum + end-around carry; complement | Arithmetic check over words. |
| CRC | Polynomial modulo-two division | Algebraic remainder; receiver divides by same generator. |
Guarantee correction of up to e errors if dₘᵢₙ ≥ 2e + 1.
Hamming distance is the minimum bit flips between valid codewords. Detection finds an invalid received word; correction identifies a valid word without retransmission. Use separate inequalities.
CRC send-and-check contract
- Let generator degree be r; append r zero bits to data.
- Divide the extended bits by the generator using XOR in place of subtraction.
- Replace appended zeros with the remainder; transmit.
- Receiver divides by the same generator; a valid word leaves zero remainder.
Method-selection audit
| Prompt asks about | Relevant method | Not enough by itself |
|---|---|---|
| Where a frame ends | count / byte flag / bit flag | Parity or CRC |
| Whether bits changed | parity / checksum / CRC | Boundary flag |
| Recover without resend | code with correction distance | Error detection alone |
10 · Reliable DeliveryC3 P4
| Observed problem | Mechanism | Purpose |
|---|---|---|
| Corruption | Parity / checksum / CRC | Detect implausible bits. |
| Frame or ACK disappears | Timeout + retransmission | Restore progress. |
| Retransmission duplicates | Sequence number | Distinguish new from repeated. |
| Fast sender, slow receiver | Flow control / window | Avoid receiver overflow. |
| Long-delay link idle | Several outstanding frames | Pipeline work across the path. |
| Protocol | Receiver / retransmission trade-off |
|---|---|
| Stop-and-Wait | One frame, then wait; simple, but a long-delay path sits idle. |
| Go-Back-N | Simpler receiver state; retransmits the missing frame and later outstanding frames. |
| Selective Repeat | Buffers acceptable out-of-order frames and retransmits missing frames selectively; more receiver memory. |
Choose → Prefer Selective Repeat when repeating correct frames is costly and buffering is affordable; prefer Go-Back-N when simpler receiver state dominates. Name delay, error rate and memory assumptions.
11 · Shared AccessC4 P1–2
| Family | When it helps | Cost |
|---|---|---|
| Static time/frequency | Predictable, regular demand | Idle allocations waste capacity under bursty load. |
| Pure / slotted ALOHA | Dynamic contention | Collisions; slotted starts require synchronisation. |
| Carrier sense / persistent CSMA | Listen before sending | Local silence may be incomplete evidence. |
| Collision detection | Abort failed attempt after noticing interference | Collision must be observable during transmission. |
| Reservation / limited contention | Reduce collision cost under load | Coordination overhead or idle reservations. |
12 · Wireless & EthernetC4 P2–3
Hidden: two senders cannot hear each other but share a receiver; each may sense idle and collide there. Exposed: a sender hears activity although different receivers might allow concurrency.
RTS/CTS: sender requests; receiver clears; stations near the receiver hear CTS and defer. This reduces hidden-terminal risk but adds control overhead and is not universal collision prevention.
| Ethernet element | Job |
|---|---|
| Synchronisation + start | Locate the frame start. |
| Destination/source addresses | Link delivery interfaces. |