Objectives

By the end of this lab, you should be able to:

  1. Define custom headers in a P4 program.

  2. Understand how the parser transitions between states and how it extracts the headers from the packets.

  3. Identifying header in a P4 program.

  4. Implement a simple parser in P4.