Chapter 2

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

PropertyCircuitDatagram packetVirtual-circuit packet
Before dataEstablish circuitNo path setup requiredEstablish logical path/state
Forwarding basisReserved circuit/channelDestination address per packetIncoming interface and local circuit label
Path during a connectionEstablished pathMay differ between packetsEstablished logical path unless reconfigured
ResourcesReserved shareStatistical sharingReservation optional
Packet waitingNo packet queue in ideal reserved circuitPossiblePossible
Reliability/orderNot guaranteed by reservation aloneCan lose/reorder packetsSame 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 tpt_p; its last bit reaches after ttx+tpt_{\rm tx}+t_p. 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 LL be data-frame bits including its overhead, LuL_u useful bits, AA ACK bits, RbR_b forward and RaR_a reverse bit rates. Define ttx=L/Rbt_{\rm tx}=L/R_b and ta=A/Rat_a=A/R_a.

2.6 Sequence space in reliable windows

Past papers · CS 2014–2026 (23 papers): 3 questions, 6 marks

Sequence numbers are reused modulo 2k2^k for a kk-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.

Revise offline: the whole Computer Networks handbook as one PDF

47 pages · 2.1 MBFree to read online. Sign in to download the PDF.We save the handbook, version and request time in My downloads. Privacy policy

All chapters · Corrections