Computer ScienceChapter 1: Computer Systems
1.9.8 Packet Switching and Circuit Switching
Packet Switching:
Explanation level
This topic explains the two key technologies used for transmitting data over networks: Packet Switching and Circuit Switching, their characteristics, and their uses.
Definition
Packet Switching: Packet Switching divides data into small packets, which are sent independently through the network, potentially taking different routes. They are reassembled at the destination.
Circuit Switching: Circuit Switching establishes a dedicated communication path between two devices for the duration of the session, ensuring continuous data flow until the session ends.
Core Concept
Packet switching and circuit switching are like two different ways of sending a long letter. Circuit switching is like making a phone call—you establish a dedicated line from start to finish, and no one else can use it until you hang up. Packet switching is like sending a book page by page through the mail—each page (packet) can take a different route, arrive out of order, and be reassembled at the destination. Circuit switching guarantees a continuous path but wastes resources when idle; packet switching is more efficient but requires reassembly.
Detailed Explanation
Packet Switching
Packet Switching divides data into small packets, which are sent independently through the network, potentially taking different routes. They are reassembled at the destination.
- Data is broken into small packets.
- Each packet can take a different path.
- Packets are reassembled at the destination.
- More efficient use of network resources.
- No dedicated path is reserved.
- Used for most modern data communication.
Example: Email transmission over the internet, where data is split into packets that travel through various paths.
- Efficient use of bandwidth.
- Resilient to network failures (packets can be rerouted).
- Cost-effective for bursty traffic.
- Packets may arrive out of order.
- Requires reassembly at the destination.
- Can suffer from delays (latency) and jitter.
Analogy: Packet switching is like sending a book page by page through the mail—each page can take a different route, and the receiver puts them back in order.
Circuit Switching
Circuit Switching establishes a dedicated communication path between two devices for the duration of the session, ensuring continuous data flow until the session ends.
- A dedicated path is established before communication begins.
- The path remains reserved for the entire session.
- Guaranteed bandwidth and continuous data flow.
- Inefficient when no data is being transmitted.
- Used for traditional voice communication.
Example: Traditional phone calls, where a dedicated connection is maintained for the entire call.
- Guaranteed bandwidth and consistent performance.
- No delay or jitter after the connection is established.
- Suitable for real-time communication (voice, video).
- Inefficient use of resources when idle.
- Long setup time to establish the connection.
- If the connection fails, the call is dropped.
Analogy: Circuit switching is like making a phone call—a dedicated line is reserved for you until you hang up.
Comparison of Packet Switching and Circuit Switching
| Feature | Packet Switching | Circuit Switching |
|---|---|---|
| Path | No dedicated path | Dedicated path |
| Data Division | Divided into packets | Continuous stream |
| Resource Use | Efficient (shared) | Inefficient (reserved) |
| Setup Time | No setup required | Setup required |
| Reliability | Resilient to failures | Vulnerable to link failure |
| Order of Arrival | May arrive out of order | Arrives in order |
| Example | Internet, email | Traditional telephone |
| Cost | Lower | Higher |
Intermediate Level
Packet switching and circuit switching are two fundamental network technologies. Circuit switching establishes a dedicated path for the entire session, guaranteeing bandwidth and continuous flow—ideal for voice calls but inefficient when idle. Packet switching divides data into packets that travel independently and are reassembled at the destination—efficient, resilient, and used for most data communication (internet, email). Circuit switching is connection-oriented; packet switching is connectionless (or connection-oriented in some variants like TCP). The choice depends on the application: real-time voice/video prefers circuit switching; data communication prefers packet switching.
Important Points
- - Packet switching: data divided into packets, independent routes, reassembled at destination.
- - Circuit switching: dedicated path, continuous flow, reserved resources.
- - Packet switching is efficient; circuit switching guarantees bandwidth.
- - Packet switching used for internet and data; circuit switching for traditional phone calls.
- - Packet switching is resilient; circuit switching is vulnerable to link failure.
- - Packet switching may cause out-of-order arrival; circuit switching preserves order.
Remember
- - Packet Switching: Packets, independent routes, efficient, resilient.
- - Circuit Switching: Dedicated path, continuous, guaranteed bandwidth.
- - Packet = Internet/Email.
- - Circuit = Traditional Telephone.
- - Packet = out of order possible.
- - Circuit = in order guaranteed.
- - Packet = cheaper; Circuit = more expensive.
Common Mistakes
- - Confusing packet and circuit switching: Packet = divided data, no dedicated path; Circuit = dedicated path, continuous stream.
- - Thinking circuit switching is obsolete: It is still used in traditional telephony.
- - Assuming packet switching always delivers in order: Packets may arrive out of order; protocols like TCP reassemble them.
- - Forgetting that circuit switching reserves resources: Even when idle, the path remains reserved.
- - Mixing up reliability and efficiency: Circuit is reliable but inefficient; packet is efficient but requires reassembly.
Quick Revision
Packet switching divides data into packets that travel independently and are reassembled at the destination—efficient and resilient, used for the internet. Circuit switching establishes a dedicated path for the entire session—guarantees bandwidth, used for traditional phone calls. Packet switching is more efficient; circuit switching guarantees continuous flow. The choice depends on the application.
60-Second Revision
- Packet Switching: Packets, independent routes, reassembled at destination. Efficient, resilient. Example: Internet, Email.
- Circuit Switching: Dedicated path, continuous flow, reserved resources. Guaranteed bandwidth, inefficient when idle. Example: Traditional telephone.
- Key Point: Packet = efficient and flexible; Circuit = guaranteed and continuous.
Did you understand this topic?
Your answer is saved with your learning record. It does not mark the topic as mastered.
Quick revision
Revision Zone
Review the key facts, formulas and checks before you move on.1.9.8 Packet Switching and Circuit Switching
Sticky Notes · Quick Revision
Key Point 1
- Packet Switching: Packets, independent routes, reassembled.
Key Point 2
- Circuit Switching: Dedicated path, continuous flow.
Key Point 3
- Packet = Internet, Email.
Key Point 4
- Circuit = Traditional Telephone.
Key Point 5
- Packet = Efficient, Resilient.
Key Point 6
- Circuit = Guaranteed Bandwidth, Inefficient.
Same supplied content as this Notes page (shared canonical source).