Computer Networks · TEE · papers

Q1(d) · Circuit versus packet switching

2024-02-06 · 2022-23

Actual paper; 100 marks attempted. Current-syllabus alignment is stated per question.

Q1(d). Distinguish between circuit switching and packet switching (Any 5 points for each) [5 marks]

Answer

Definition. Switching selects how data passes through intermediate network nodes from a source to a destination.

Simple meaning. Raasta reserve karna, poora message ruk-ruk ke bhejna, ya chhote packets bhejna—yeh teen ideas hain.

Swipe across the diagram to read its labels ↔
Three switching techniques: what is forwarded?
Diagram: Three switching techniques: what is forwarded?. Labels: Three switching techniques: what is forwarded? | Three switching techniques: what is forwarded? | 1. Circuit: reserve a path, then stream data | Setup → reserved capacity → data transfer → release. | 2. Message: store the entire message at each node | Large forwarding unit; no packet-level pipeline. | 3. Packet: divide, then forward packet by packet | Shared links can simultaneously carry different packets.
Circuit, message and packet switching

Understand it step by step

  1. Circuit switching: establish a circuit, reserve resources, transfer data, then release the circuit. Capacity is dedicated even during a silent period.
  2. Message switching: each intermediate node receives the entire message before forwarding it. Large messages require large buffers and can delay later messages.
  3. Packet switching: divide data into smaller packets. Nodes forward packets individually; different links can carry successive packets at the same time.
  4. The Internet uses packet switching. A traditional circuit-switched telephone call illustrates the circuit concept. Many current calls use packet-based networks, so do not label every phone call circuit-switched.
AspectCircuit switchingMessage switchingPacket switching
Unit handledContinuous stream on established circuitWhole messageSmall packets
Resource useCapacity reserved along a circuitShared; message stored at each intermediate nodeShared; each packet stored/forwarded in this model
SetupRequired before data transferNo circuit setup requiredDatagram: no connection setup; virtual circuit: setup
DelaySetup delay, then relatively predictable serviceLarge store-and-forward delay for long messagesVariable delay; packet pipeline can reduce completion time
Main limitationReserved capacity can be idleLarge buffers; unsuitable for tight delay needsHeaders, possible queueing/loss; datagrams may reorder

For ordinary bursty office data, packet switching is generally appropriate because resources are shared among active transfers. The design must still account for queueing, loss and the required service quality.

Yaad rakho: Circuit reserves; message waits whole; packets pipeline.

Two advantages and two disadvantages

MethodAdvantage 1Advantage 2Disadvantage 1Disadvantage 2
Message switchingShares link capacity without a permanently reserved circuitIntermediate storage lets a message wait for a currently busy outgoing linkThe entire message must arrive before forwarding, giving long delayLarge messages require large buffers and can hold up other messages
Packet switchingStatistical sharing suits bursty data from many usersPackets can be pipelined across successive links, reducing completion timeEvery packet needs header/control overheadQueueing, loss and (for datagrams) reordering need endpoint or network handling

A packet-switched network may use datagrams or virtual circuits. The possibility of independent routes and reordering refers to datagrams, not every packet-switching implementation.