Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The goal of this tutorial is to teach you the basics of P4, P4Runtime, and ONOS. It includes also is targetted to beginners who have little or no knowledge of the P4 language and would like to learn more using ONOS as the control plane. It includes hands-on exercises that you can run on a tutorial VM. In the exercises, you where you will learn how to create an emulated network of P4 devices using Mininet and BMv2 (the reference P4 software switch) controlled by ONOS via P4Runtime, while using a custom simple P4 program implementing a custom tunneling protocol named "MyTunnel".

Info
titleAdvanced ONOS+P4 Tutorial

If you already have intermediate knowledge of the P4 language and you would like to learn more about using ONOS for more realistic networking applications, we suggest you use this tutorial:

Advanced ONOS+P4 Tutorial: Building an SRv6-enabled fabric with P4 and ONOS


Download the tutorial VM

While you go through the slides, it is a good idea to start downloading the VM (~4 GB):

...

  • Basic ONOS Tutorial: learn more about ONOS
  • Official P4 language tutorials: learn more about the P4 language
  • TrellisAdvanced ONOS+P4 tutorialTutorial: Use use ONOS and P4 for more realistic networking applications while building an SRv6-enabled leaf-fabric from scratch
  • Trellis+P4 tutorial: use Trellis, the built-in set of fabric apps in ONOS, with an existing P4 program (fabric.p4) and learn more about advanced-use cases such as in leaf-spine data center fabric (includes exercises on P4-based VNF offloading of mobile S/PGW)