Skip to content

Latest commit

 

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

P4 Examples

Compilation of different P4 examples. In overall, these examples cover almost all the simple switch features (with some exceptions). Thus, they can perfectly be used as a guide or cheat sheet.

To run the examples without any modification you have to first install p4-utils. P4-utils its a set of tools built on top of mininet that help with the developement and testing of p4 networks.

Examples

Examples are classified in different categories depending on which is the feature they exhibit the most.

Basic Examples

Registers, Counters, Meters

Clone, Recirculate, Resubmit

Monitoring Switch State

Communicating with the Control Plane

Misc