Switching and performance
Start every numerical problem by marking the first bit sent and the last bit received. State whether the path streams bits or stores complete packets, whether links operate simultaneously, and what overhead is included.
2.1 Circuit, datagram and virtual-circuit switching
| Property | Circuit | Datagram packet | Virtual-circuit packet |
|---|---|---|---|
| Before data | Establish circuit | No path setup required | Establish logical path/state |
| Forwarding basis | Reserved circuit/channel | Destination address per packet | Incoming interface and local circuit label |
| Path during a connection | Established path | May differ between packets | Established logical path unless reconfigured |
| Resources | Reserved share | Statistical sharing | Reservation optional |
| Packet waiting | No packet queue in ideal reserved circuit | Possible | Possible |
| Reliability/order | Not guaranteed by reservation alone | Can lose/reorder packets | Same path helps ordering; loss is still possible |
Virtual-circuit labels can change at each hop. A virtual circuit is not necessarily a dedicated physical circuit. A TCP connection runs over IP datagrams; it does not establish an IP virtual circuit.
2.2 Transmission, propagation and nodal delay
Past papers · CS 2014–2026 (23 papers): 2 questions, 4 marks
A packet's first bit reaches the far end after ; its last bit reaches after . Increasing rate reduces transmission time, not propagation time. The bandwidth–delay product in Section 2.4 counts bits simultaneously in flight.
2.3 Store-and-forward pipelines
Past papers · CS 2014–2026 (23 papers): 3 questions, 6 marks
All links can transmit simultaneously. A router starts forwarding a packet only after receiving it completely unless the question specifies cut-through. A packet pipeline pays the full path delay for the first packet, then one bottleneck service time per additional equal packet.
For unequal packet lengths or a specified processing schedule, draw the timeline. The start on a link is the later of complete packet availability and that link becoming free. Do not use the equal-packet formula for a short last packet without checking the schedule.
2.4 Throughput, goodput and occupancy
Past papers · CS 2014–2026 (23 papers): 1 question, 1 mark
Throughput counts successfully delivered traffic at a stated layer per unit time. Goodput counts useful application data, excluding headers and retransmitted duplicates. Utilisation is the fraction of a resource's available service used; it is not automatically the same as payload efficiency.
Loss fraction is dropped packets divided by offered packets over the stated interval. Delay variation (“jitter”) has several definitions; compute the particular difference or statistic requested rather than assuming a universal formula.
2.5 Stop-and-wait and window utilisation
Past papers · CS 2014–2026 (23 papers): 8 questions, 14 marks
These timing results apply to the reliable-link models used in performance questions. Let be data-frame bits including its overhead, useful bits, ACK bits, forward and reverse bit rates. Define and .
2.6 Sequence space in reliable windows
Past papers · CS 2014–2026 (23 papers): 3 questions, 6 marks
Sequence numbers are reused modulo for a -bit field. A receiver must distinguish a delayed old frame from a new frame after wrap. These are window-sizing constraints, not a separate treatment of link ARQ protocols.
Last-minute recall
- Transmission time depends on packet length and rate; propagation depends on distance and signal speed.
- A reserved circuit pays setup once and streams the file.
- A virtual circuit can still queue and lose packets.
- Equal-packet pipelines pay one bottleneck transmission time for each packet after the first.
- Headers and short final packets matter when comparing packetisations.
- Goodput excludes overhead and retransmitted duplicates.
- Little's law requires matching system boundaries.
- Window utilisation cannot exceed one.
- Size the window first; then size its sequence field.
- Bytes, bits, decimal prefixes and binary prefixes are separate choices.