Made with ScholarlyTurn your own files into documents like this
Shared by Aisha Attar
This DIT357 exam sheet covers computer communication and distributed systems, pairing protocol rules with calculations and comparison prompts (pp. 1–5). The most useful exam habit it emphasizes is to show units, formula, substitution, result, assumptions, and a sanity check for calculations, and to state ordered steps and costs when explaining algorithms (pp. 1, 5).
Layering and forwarding: A network consists of devices, routers, and links managed by an organization; edge hosts connect through a core of interconnected routers. Data moves down the stack as application messages → transport segments → network datagrams → link frames → physical bits, with headers added by encapsulation and removed by decapsulation. Routers operate at L3, switches at L2, and gateways translate (p. 1).
Delay, load, and pipelining: A packet’s nodal delay combines processing, queueing, transmission, and propagation. Transmission depends on packet length and link rate; propagation depends on distance and signal speed. Traffic intensity below 1 is stable, while above 1 the queue grows; the bottleneck limits path throughput. Pipelining multiple packets can improve link utilization over stop-and-wait, but requires buffering and sequence numbers (p. 1).
TCP behavior: TCP provides reliable, ordered, connection-oriented delivery; UDP is connectionless, best-effort, and lower-overhead. Neither guarantees throughput, delay, or security. TCP sequence numbers count bytes; ACKs report the next expected byte, and a gap can produce duplicate ACKs. Flow control uses rwnd, congestion control uses cwnd, and the sender is limited by the smaller window (pp. 1–2).
Distributed systems: A distributed system is “networked computers presenting a unified system.” Its listed goals are resource sharing, transparency, openness, scalability, and dependability. Transparency types include access, location, relocation, migration, replication, concurrency, failure, and persistence; scalability is considered by size, geography, and administration (p. 3).
Time and causality: The happens-before relation includes order within one process, send-before-receive, and transitive closure. Events are concurrent when neither happens before the other. Lamport clocks preserve causality but cannot detect concurrency; vector clocks can identify concurrency when vectors are incomparable (p. 4).
Consistency and coordination: Replication can improve performance, availability, and fault tolerance, but replicas must converge. Strong consistency gives the latest/global order; eventual consistency means replicas converge if updates stop. Under CAP, a system facing a partition cannot guarantee both consistency and availability. Mutual-exclusion methods differ in coordination cost and failure risks (pp. 4–5).
Pipelining across links: For equal-rate store-and-forward links, one packet over N links takes N·L/R. Sending P packets with pipelining takes (N + P − 1)·L/R. The sheet’s contrast is the exam-relevant result: after the pipeline fills, packets can advance through successive links rather than each packet waiting for the entire path (p. 1).
Traceroute readings: Probe TTL-limited hops and treat displayed times as cumulative RTTs. To estimate a particular link RTT, subtract the previous hop’s reading from the next hop’s reading; the last-hop entry is the end-to-end RTT (p. 2).
TCP timeout calculation: The timeout is EstimatedRTT + 4·DevRTT. Update EstimatedRTT using α = 0.125 and DevRTT using β = 0.25, with deviation based on the absolute difference between the sample and EstimatedRTT. In a calculation, show the measured sample, substitutions into both updates, resulting timeout, and units (p. 2).
Mutual exclusion trade-offs: Ricart–Agrawala multicasts a request and permits entry after replies from all peers; the stated cost is 2(N − 1) messages per entry. A token ring permits entry only when a process has the token, so token loss requires recovery. Voting uses a quorum greater than N/2 and may deadlock (p. 5).
Make from this