This use case is an extension of the Packet Limiter
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 FSM and load the file EFSM_class_rate_limiter.json
. Then 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).
Topology:
h1--s1--h2
|
h10 <--iperf server
Start Mininet by running:
make start-mn
Load the switch config:
make s1-load-config
Run the iperf
test:
make h1-iperf-test-udp
make h2-iperf-test-udp
The bandwidth shown by iperf
should be around 1Mbps for the first test and around 2Mbps for the second one.
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
.
make stop-gui
make stop-mn