- linux environment for the scripts
- docker for compiling P4 and data plane
- p4runtime-shell for control plane
- nc: optional for logging,
apt install netcat-openbsd
See environment/README.md for more.
cd p4
make
cd experiments/01-ja3
mn --custom mn_custom.py --topo netcfg
Show logging message in the same terminal:
cd experiments/01-ja3
./10_p4_control.py --topo topos/netcfg.json each -s 1 2 -l -a
To show log in a separate terminal, use the following commands:
# window 1
nc -klvp 3000
# window 2
./10_p4_control.py --log tcp:localhost:3000 --topo topos/netcfg.json each -s 1 2 -l -a