MPLS & Traffic Engineering: Building Label-Switched Paths
Advanced · 45 minutes · 100 points
Dive into Multi-Protocol Label Switching (MPLS) and Traffic Engineering concepts using Linux kernel MPLS support and the FRRouting (FRR) suite. You will configure MPLS label switching, simulate Label Distribution Protocol (LDP) behavior, build static Label Switched Paths (LSPs), and apply traffic engineering principles using iproute2 MPLS tools — all inside a single container with virtual network namespaces acting as routers. Needs a Docker engine whose kernel supports MPLS: Docker on Linux or Docker Desktop on a Mac. Docker Desktop on Windows runs the WSL 2 kernel, which has no MPLS support, so this lab cannot run there.
What you’ll learn
- Enable and verify Linux kernel MPLS support and configure MPLS input on network interfaces
- Build a simulated multi-hop MPLS topology using Linux network namespaces as routers
- Configure static Label Switched Paths (LSPs) with push, swap, and pop operations using iproute2
- Verify end-to-end MPLS label forwarding across the simulated topology and inspect label stacks
How this lab works
- Start the lab: One click starts a container on your computer with a real terminal: nothing to install by hand, nothing to clean up.
- Work through 4 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work runs each task’s checks in your container and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: A container on your computer, with a real terminal
- Image: ubuntu:22.04
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
- A kernel with MPLS support: Docker on Linux (4.3+ with the MPLS modules) or Docker Desktop on a Mac. Docker Desktop on Windows (WSL 2) has no MPLS and cannot run this lab.
- Run Docker with --privileged flag as shown in run_command
Topics: mpls, traffic-engineering, lsp, label-switching, network-namespaces, iproute2, ldp, te-tunnels, linux-networking, advanced-routing
Create a free account to start this lab.