Watch on Instagram

Network Bytes · Episode 106 · CCNA 6.3

"Overlay, underlay and fabric"

The underlay is the physical network of switches, cables and routing. The overlay is a set of virtual networks, like staff and guests, that ride on top of it through tunnels. Underlay plus overlay, managed together, is a fabric, such as Cisco SD-Access.

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

The underlay: the real network

The underlay is the physical network you could walk up and touch: the switches, the cables between them, and the IP routing (for example OSPF or IS-IS) that lets every switch reach every other switch. Its only job is to move packets from one switch to another, quickly and reliably. It does not need to know anything about who the users are or which group they belong to.

The overlay: virtual networks on top

The overlay is a set of virtual networks built on top of the underlay. A campus might have one virtual network for staff and another for guests. To the people using them, each one feels like its own private network, even though they all share the same switches and cables underneath. You can add, change or remove a virtual network without rewiring anything.

Tunnels: an envelope inside an envelope

How does a staff packet cross the shared underlay without mixing with guest traffic? With a tunnel. The first switch (an edge switch) takes the original packet and puts it inside a second envelope: a new outer header addressed to the edge switch at the far end. This is called encapsulation.

The switches in the middle only read the outer envelope. They route it like any other packet. At the far end, the edge switch opens the outer envelope (decapsulation) and the original packet carries on to its destination, a staff laptop, for example.

In Cisco SD-Access the tunnels use VXLAN (RFC 7348). The outer headers add bytes to every packet, which is why fabrics often raise the MTU of the underlay links.

The fabric: both layers, managed together

Put the underlay and the overlay together, and manage them as one system, usually from a controller, and you have a fabric. Cisco SD-Access is one example: the controller (Catalyst Center) builds the underlay, defines the virtual networks and tells the edge switches how to tunnel traffic. In SD-Access the data plane uses VXLAN and the control plane uses LISP.

Try it yourself

Draw it on paper. Sketch four switches in a row joined by cables, and label that layer "underlay". Above it, draw two laptops on the left edge switch and two on the right, one pair labelled "staff" and one "guests", and join each pair with a dashed line: that is your overlay. Now follow a staff packet from left to right: write down which switch adds the outer envelope, what address is written on it, which switches only read the outside, and where it is opened. Then ask yourself: what would change in the underlay if you added a third virtual network for printers? (Nothing: that is the point of an overlay.)

Good to know

  • CCNA 6.3 lists overlay, underlay and fabric as part of comparing traditional networks with controller-based networking.
  • The underlay is the physical network of devices and links plus the IP routing (for example IS-IS or OSPF) that gives every device reachability.
  • The overlay is a set of virtual networks built on top of the underlay with tunnels.
  • The fabric is the combined underlay and overlay, usually managed by a controller.
  • In Cisco SD-Access, the data plane uses VXLAN encapsulation and the control plane uses LISP.
  • Encapsulation adds outer headers. For VXLAN over IPv4 the overhead is 50 bytes (outer Ethernet 14, outer IPv4 20, UDP 8, VXLAN 8), which is why fabrics often raise the underlay MTU.
  • "Envelope inside an envelope" is an analogy for encapsulation. The comment question treats the 1,400 bytes as the original frame and simply adds the overhead.

For CCNA learners

CCNA exam topic 6.3 asks you to compare traditional networks with controller-based networking. Know that the underlay is the physical network and its routing, the overlay is the virtual networks tunnelled across it, and the fabric is both managed together, as in Cisco SD-Access.

Answer to the comment question

1,450 bytes. The original packet is 1,400 bytes. The tunnel wraps it in a 50-byte outer header, so what crosses the underlay is 1,400 + 50 = 1,450 bytes. The middle switches only read that outer header; at the far end it is removed and the original 1,400-byte packet carries on. Those extra bytes on every packet are why fabric underlays often use a larger MTU.

Test your knowledge

Quick quiz: "Overlay, underlay and fabric"

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

1What is the underlay?
2In an overlay, what does the first edge switch do with a packet that must reach the far end?
3What do the switches in the middle of the underlay read?
4What is a network fabric?

Sources

Video transcript

How can one physical network carry many separate virtual networks?

Start with the underlay: the real switches, cables and routing that move packets from one switch to another.

On top sits the overlay: virtual networks, like one for staff and one for guests, that ride across it.

How? Tunnels. The first switch puts the packet inside a second envelope, addressed to the switch at the far end.

The underlay only reads the outer envelope. At the far end, it's opened, and the packet carries on.

Underlay plus overlay, managed together, is called a fabric. Cisco's SD-Access is one example.

A packet is 1,400 bytes. The tunnel adds a 50-byte outer header. How many bytes cross the underlay? Comment your answer below!

That's your byte.

More from Network Bytes

All Network Bytes lessons