Skip to content

Latest commit

 

History

History

packet_limiter

PACKET LIMITER

Run the GUI

Start the gui:

make start-gui

It will first compile the P4 program (the output is in ./p4build) and then start the GUI.

Then click on LOAD SAMPLE FSM 2, and click on GENERATE SWITCH CONFIG. This will trigger the download of a switch configuration. Now, you can override the file flowblaze_config.cli with the just downloaded file (make sure to keep the same name).

Run Mininet

Topology: h1 <--> s1 <--> h2

Start Mininet by running:

make start-mn

Load the switch config:

make s1-load-config

Run the ping test:

make h1-test

The ping should fail after 10 successful pings.

You can start the switch log with: make s1-log and interact with the BMv2 Thrift CLI with make s1-CLI.

You can find more make target to interact with the dockerized mininet in the Makefile.

Teardown

make stop-gui
make stop-mn