4.3.7 · D1Computer Networks

Foundations — Switching — circuit, packet, virtual circuit

1,881 words9 min readBack to topic

Before you can appreciate those three answers, you need to be fluent in the small alphabet of symbols and pictures the parent note throws at you. This page builds every single one of them from nothing, in an order where each idea leans on the one before it.


0. The picture the whole topic lives on

Everything happens on a graph: dots joined by lines.

Figure — Switching — circuit, packet, virtual circuit

Why do we even need switches? Look at the next figure.


1. Why not just wire everyone to everyone?

Figure — Switching — circuit, packet, virtual circuit

Let us read every symbol in that tiny formula, because it is the reader's first taste of the notation style used everywhere below.


2. Bits, and the size of a message:

Computers speak in bits — the smallest piece of information, a single 0 or 1.


3. How fast a wire pushes bits:


4. The two delays every switch fights: transmission and propagation

This is the most important pair of pictures on the page. The parent note's entire delay algebra is built from just these two ideas, and beginners constantly confuse them.

Figure — Switching — circuit, packet, virtual circuit

4a. Transmission delay

4b. Propagation delay


5. Counting the road: hops

Now we can see why multiplies some terms and not others:

  • Propagation total is always — the front of the train must physically cross every segment.
  • Transmission total depends on the switching style — that difference is the whole topic (see §7).

6. Store-and-forward: the reason sometimes multiplies

Figure — Switching — circuit, packet, virtual circuit
Recall Quick check: why does circuit switching escape the

? Because after the circuit is built the path is a continuous pipe — no switch buffers the whole message, so bits stream through and is paid only once.


7. Setup time , and per-connection "state"

Two last ideas the parent leans on for circuit and virtual-circuit switching.


When circuit switching "reserves a channel," it does so by slicing the wire. That slicing is multiplexing, covered in Multiplexing — TDM, FDM.


Prerequisite map

Graph: nodes and links

Switch forwards in to out

Wire count n times n minus 1 over 2

L bits: message size

Transmission delay L over R

R bits per second: link rate

Propagation delay t_p

Total delay adds up

d hops: number of links

Store and forward

Setup time S

Circuit and virtual circuit

Multiplexing TDM FDM

Per connection state table

Switching: three answers


Equipment checklist

Cover the right side and answer out loud. If any line stumps you, re-read its section above before starting the main topic.

Why can't we give every pair of nodes its own wire?
It costs wires, which grows roughly like — impossible for large .
What is a switch's one job?
Take bits arriving on one link and forward them out an appropriate link toward the destination.
What does mean and in what unit?
The message size, measured in bits.
What does mean and in what unit?
The link rate (bandwidth), in bits per second.
What is transmission delay and its formula?
Time to push all bits onto the wire, , units seconds.
What is propagation delay ?
Time for one bit to travel the length of one wire; depends on distance, not on .
How do transmission and propagation differ?
= loading the train (size & wire speed); = the journey (distance). They add, never merge.
What does count?
The number of links (hops) along the path.
What is store-and-forward and why does it matter?
A switch fully receives a packet before forwarding, so each hop costs again — total .
Why does circuit switching not multiply by ?
After setup the path is a continuous pipe with no buffering, so is paid once.
What is and who pays it?
Setup time to build a path; circuit and virtual-circuit switching pay it, datagram does not.
What is "per-connection state"?
A table a switch remembers, mapping an incoming connection to an outgoing link.
What are TDM and FDM?
Ways to slice one wire — TDM by time slots, FDM by frequency bands.
Recall Ready to continue?

If you nailed all thirteen, head back to Switching — circuit, packet, virtual circuit — the three formulas will now read like plain English.