What are Circuit & Packet Switching?
Circuit and packet switching, told as a story about choosing between reserving a whole road for a call, or splitting an envelope into pieces to share the road.
While they talk, the whole road is reserved just for the two of them.Even when the two fall silent, their reserved road stays empty.
More people pushes the dedicated-road method to its limit.The roads are limited, but the number of users keeps growing.
Packet switching = splitting the envelope into pieces, then reassembling them.Packet switching lets no one hog a road, so many people share it at once.
Circuit switching holds a road for steady quality; packet switching shares roads for better efficiency.Circuit switching keeps call quality steady; packet switching shares roads efficiently.
Packet switching can have pieces arrive out of order.Registered mail (TCP) runs on packet switching and puts pieces back in order.
Circuit switching = reserving one whole road for the duration of a call. Packet switching = splitting into pieces, sending them separately, and reassembling them.
Circuit switching dedicates a line exclusively until the session ends — stable quality, but wasteful of resources (the classic phone network). Packet switching splits data into packets, sends them over a shared line, and reassembles them in order at the destination (the classic internet). It uses resources efficiently, but can suffer congestion, delay, and out-of-order arrival.
When grown-ups say it
- Circuit Switching
- The dedicated road reserved for the whole call. The classic telephone-network method.
- Packet Switching
- Splitting the envelope into pieces to send separately. The basic method of today's internet.
- Packet
- Each individual piece of the split envelope. TCP numbers these so they can be put back in order at the destination.
- Transport Layer (TCP/UDP)
- The stage that decides registered mail or plain. Handles order and reliability on top of packet switching. → the stage that splits ports and picks reliability
- OSI 7 Layers
- The whole delivery process split into 7 stages. Circuit and packet switching belong mainly to the lower stages (layers 1-3). → the delivery process split into 7 stages
- Modbus
- A simple note rule used on factory floors. Modbus TCP notes ride on packet switching. → the note rule where the clerk asks one at a time
- Ad-hoc Routing
- How carriers find the way among themselves, with no fixed post office. An extreme case of packets finding a fresh path each time. → how carriers find the way among themselves
- 5G Network Slicing
- The technology that splits the road into situational lanes. Carves out dedicated lanes, echoing circuit switching's idea. → the network with a lane for every need