Building a Software-Defined Network with OpenFlow
Advanced · 45 minutes · 100 points
In this advanced lab, you will build and configure a Software-Defined Network (SDN) using Open vSwitch (OVS) with OpenFlow protocol support. You will create virtual switches, define flow tables, manipulate packet forwarding rules, and simulate an SDN controller by manually injecting OpenFlow rules. This hands-on lab covers the core concepts of control plane separation, flow-based forwarding, and programmatic network management — foundational skills for any SDN engineer.
What you’ll learn
- Install and initialize Open vSwitch (OVS) and create a virtual OpenFlow-enabled bridge
- Create virtual network interfaces (veth pairs) and attach them to the OVS bridge as OpenFlow ports
- Inspect the default OpenFlow flow table and add custom flow entries to control packet forwarding
- Simulate SDN controller behavior by writing flow rules that drop, forward, and rewrite traffic
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
- Docker must be run with --privileged flag (already included in run_command)
- Basic familiarity with Linux networking and IP addressing
Topics: SDN, OpenFlow, Open vSwitch, OVS, networking, flow tables, virtual switch, veth, packet forwarding, network policy
Create a free account to start this lab.