Welcome to the P4 Lab! We've prepared a set of exercises to help you get started with P4 programming:
- Week 1: Introduction and Language Basics
- Week 2: P4Runtime and the Control Plane
- Weel 3: Monitoring and Debugging
- Week 4: Advanced Behavior and Stateful Packet Processing
Presentation slides are available online and in the P4_tutorial.pdf in the p4lab directory.
A P4 Cheat Sheet is also available online and in the p4-cheat-sheet.pdf in the p4lab directory. This contains various examples that you can refer to.
You can use the VM that is provided to you on Canvas.
Use the VM as follows:
- Make sure you have VirtualBox installed.
- Download the VM from the link on Canvas.
- Within VirtualBox: File>Import Appliance
- Follow the steps
The account p4 (password p4) should be logged in when the
VM boots up by default, and is the one you are expected to use.