Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 2

Circuit Switching vs. Packet Switching

Recommended resources

Hello! Welcome back to our course on the history and workings of the internet.

In our last lesson, we explored the significant challenges of the 1960s that made long-distance computer communication so difficult. We saw that the existing telephone network was expensive and inefficient for data, incompatible computer systems couldn't talk to each other, and there was a military need for a communication network that could survive damage. These problems demanded a completely new approach.

Today, we'll dive into the elegant and powerful solution that emerged: packet switching. This lesson directly addresses the learning outcome: Explain the difference between circuit switching and packet switching. Understanding this distinction is crucial because packet switching is the foundational technology that makes the entire internet possible.

Let's start by examining the "old way" of doing things, which was inherited from the telephone network.

Circuit Switching: The Dedicated Path

Before the internet, the dominant model for network communication was circuit switching. The classic example is the traditional telephone system. When you made a call, the network established a dedicated, physical connection—a "circuit"—between you and the person you were calling. This entire circuit was reserved for your conversation for its entire duration, whether you were speaking or not.

To get a clear, animated explanation of how this works, please watch the following short video clip.

Circuit Switching vs Packet Switching

This video from PowerCert Animated Videos clearly illustrates the concept of a connection-oriented, dedicated channel used in circuit switching.

Please watch from the beginning of the video until 1:30. Focus on the key characteristics described: it's 'connection-oriented,' uses a 'dedicated circuit,' and the data follows a single, unchanging path.

As the video showed, circuit switching has a few defining traits:

  • Dedicated Path: A single, end-to-end path is established and reserved for one communication session.
  • Guaranteed Resources: Because the path is dedicated, you have a guaranteed amount of bandwidth. This results in consistent quality and very low, predictable latency, which is excellent for real-time voice calls.
  • Inefficiency: The biggest drawback is that these dedicated resources are wasted. During the pauses in a phone conversation, the line sits idle, but no one else can use it. Computer data is often "bursty"—sent in short, intense bursts with periods of silence. Dedicating a full-time circuit for this is highly inefficient and expensive.
Circuit Switching vs. Packet Switching Networks
This diagram visually contrasts the two methods. The top portion illustrates circuit switching, where a single, dedicated route is reserved for the entire communication. The bottom portion, which we will discuss next, shows packet switching's more flexible approach.

The limitations of circuit switching for computer communication were a major hurdle. A new method was needed that could handle bursty data traffic efficiently and be more resilient to network failures.


Packet Switching: The Revolutionary Idea

The solution came from a radically different way of thinking about data. Instead of sending a continuous stream of information over a dedicated line, what if you broke the data into small, discrete chunks?

This is the core idea of packet switching. A message (like an email, an image, or a part of a webpage) is divided into smaller pieces called packets. Each packet is like a small envelope containing a piece of the data, along with a "mailing label" (the header) that has the destination address.

These packets are then sent out into the network independently. They can travel along different paths, get routed around congested areas or broken links, and arrive at the destination out of order. The receiving computer then uses the information in the packet headers to reassemble them into the original message.

Let's watch another segment from the same animated video to see this in action.

Circuit Switching vs Packet Switching

This clip visualizes how packet switching breaks data down and sends it across the network.

Please watch from 1:30 to 2:25. Notice how the data is broken into independent packets that can take different routes and are reassembled at the end.

This approach directly addressed the problems of circuit switching.

  • Efficiency: Network lines are shared. Packets from many different users can be interleaved on the same line, making much better use of available bandwidth. There are no "idle" lines.
  • Resilience: If one path fails, routers can simply send the packets along a different route. The network can survive the loss of some of its links, which was a key requirement for the ARPANET project.

This idea wasn't just a technical tweak; it was a fundamental paradigm shift driven by the need for a "survivable communication network," as pioneer Paul Baran called it. To understand the historical and conceptual origins of this idea, the following video provides excellent context.

23. A brief history of the Internet

This lecture from MIT OpenCourseWare explains the historical motivation behind packet switching, crediting pioneers like Paul Baran and Donald Davies.

Please watch from 3:14 to 8:08. Focus on two main points: How Paul Baran's goal of building a 'survivable' network led him away from the centralized, vulnerable model of the telephone system. The core concept of using digital technology to build a reliable system from unreliable parts by breaking messages into pieces (later named 'packets') that could be sent in different directions.


Head-to-Head Comparison

Now that we've defined both methods, let's put them side-by-side. The best way to grasp the differences is to look at a structured comparison.

Difference between Circuit Switching and Packet Switching - upGrad

The article 'Difference between Circuit Switching and Packet Switching' from upGrad provides a very detailed and clear comparison table. It's an excellent reference for cementing your understanding.

Please read the comparison table in the section titled 'Difference Between Circuit Switching and Packet Switching.' Pay close attention to the rows for Path, Resource allocation, Efficiency and bandwidth utilization, and Reliability and error handling.

As you can see from the table, there's a clear trade-off. Circuit switching offers predictable performance at the cost of inefficiency. Packet switching offers efficiency and resilience at the cost of some unpredictability (variable latency, the need for more complex protocols).

For the bursty, diverse, and unpredictable nature of computer data, the choice was clear. The ARPANET, and the internet that grew from it, was built on packet switching.

This choice had profound implications. By creating a simple, flexible network that didn't make assumptions about what it would be used for, the internet's designers built a system that could adapt to anything. It was, as the following clip explains, "good enough for everything, but optimal for nothing."

23. A brief history of the Internet

We return to the MIT lecture to hear about the architectural philosophy behind the internet and why the minimalist design of packet switching was so successful.

Watch from 33:33 to 35:57. The key insight here is that by not optimizing for any single application (like voice or TV), the internet's packet-switched design was flexible enough to support all of them, including applications that hadn't been invented yet, like the World Wide Web.

This principle is a powerful lesson in system design that resonates strongly with computer science: designing for flexibility often yields a more robust and long-lived system than designing for narrow, short-term performance goals.


Conclusion

In this lesson, we dissected the two fundamental approaches to network switching.

Key Takeaways:

  • Circuit Switching creates a dedicated, end-to-end circuit for a communication session. It guarantees performance but is inefficient for bursty computer data. It was the model of the old telephone network.
  • Packet Switching breaks data into small packets that travel independently over a shared network and are reassembled at the destination. It is highly efficient and resilient.
  • The internet is built on packet switching because its flexibility, efficiency, and robustness were perfectly suited to the needs of computer networking. This design choice allowed it to evolve and support an incredible variety of applications over time.

Preview of the Next Lesson:

Now that we understand the technological foundation of packet switching, our next lesson will focus on its first major implementation: the ARPANET. We will explore its creation, its purpose, and how it laid the groundwork for the global internet we use today.