Watch on Instagram

Network Bytes · Episode 63 · CCNA 6.2

"Control plane vs data plane"

Every router and switch does two jobs. The control plane thinks, learning routes and building the tables; the data plane lifts, using those tables to forward every packet out the right port, fast.

Posted · About a 1 minute watch, 3 minute read · Take the quiz

Two jobs in every box

A router or switch has to do two very different kinds of work. One is slow, careful thinking: figuring out where networks are and how to reach them. The other is fast, repetitive lifting: taking each packet that arrives and sending it on its way. Networking texts call these two jobs planes, and keeping them straight is the first step toward understanding controller-based networking.

The control plane: the brain

The control plane is everything a device does to build its forwarding information. Routing protocols such as OSPF exchange messages with neighbor routers, learn routes and fill in the routing table. Other control plane processes include STP, which decides which switch links stay open, and ARP, which learns which MAC address belongs to which IP address. This work happens in software on the device's CPU, and it does not have to be lightning fast; it has to be right.

The data plane: the muscle

The data plane (also called the forwarding plane) handles the traffic itself. For every packet that arrives, it looks up the destination in the table the control plane built, then pushes the packet out the right port. Because this happens for every single packet, it has to be extremely fast: on switches and many routers it runs in special hardware chips called ASICs, and can reach millions of packets a second. That number is typical of hardware forwarding, not a fixed rule.

Brain decides, muscle follows

The control plane decides the rules; the data plane follows them. In a traditional network, each device has its own brain and its own muscle in the same box. Once you see them as separate jobs, a new idea appears: pull the brain out into one central controller, and let it steer the muscles of many devices at once. That is the heart of controller-based networking and SDN, the topic of the next episode.

Try it yourself

Look at your own computer's routing table. On Windows, open Command Prompt and type route print; on macOS or Linux, open a terminal and type netstat -rn. Each line is a route your computer learned or was given, such as the default route (0.0.0.0) that points to your home router. A router's routing table looks much the same, just with many more networks.

Good to know

  • Control plane: routing protocols (OSPF and others), STP, ARP and similar processes that build the tables.
  • Data plane (forwarding plane): per-packet or per-frame forwarding using those tables (the routing/CEF table, the MAC table), usually in hardware (ASICs) on switches and many routers.
  • There is also a management plane (SSH, SNMP, the CLI), left out of the video to keep one idea per short; some texts fold it into the control plane.
  • "Millions of times a second" is typical of hardware forwarding, not a fixed number.
  • CCNA 6.2 compares traditional and controller-based networking, and 6.3 covers separating the control and data planes, which the next episode picks up.

For CCNA learners

This lines up with CCNA 200-301 exam topic 6.2, describe characteristics of controller-based, software-defined architecture, and sets up 6.3, separation of control plane and data plane: know which tasks build the tables (control plane) and which tasks use them to move traffic (data plane).

Answer to the comment question

The data plane. Looking up a MAC address in the MAC table and forwarding a frame out a port is per-frame forwarding work, so it is the data plane (the muscle), usually done in the switch's hardware chips. The control plane's part is the deciding, for example STP choosing which ports may forward; the data plane then uses the MAC table for every frame.

Test your knowledge

Quick quiz: "Control plane vs data plane"

4 multiple-choice questions. Pick one answer for each, then check how you did.

1Which job belongs to the control plane?
2Why does the data plane usually run in special hardware chips?
3What does the data plane use to decide where a packet goes?
4What becomes possible when the control and data planes are kept apart?

Sources

Video transcript

What's the difference between a router's brain and its muscle?

Every router and switch does two jobs. One job thinks. The other job lifts.

The brain is the control plane. It talks to other routers, learns routes, and builds the routing table. It's careful work.

The muscle is the data plane. For every packet that arrives, it checks the table and pushes the packet out the right port, millions of times a second, often in special chips.

The brain decides the rules. The muscle follows them, fast. Keep them apart, and one central brain could steer the muscles of many devices at once.

A switch looks up a MAC address and forwards a frame out a port. Which plane is doing that? Comment your answer below!

That's your byte.

More from Network Bytes

All Network Bytes lessons