- linux environment for the scripts
- docker for compiling P4 and data plane
- p4c docker image for compiling P4
- p4runtime-shell for control plane
- nc: optional for logging,
apt install netcat-openbsd
See environment/README.md for more.
cd p4
make
cd experiments/02-slow-ddos
mn --custom mn_custom.py --topo ccsa-2s
Show logging message in the same terminal:
cd experiments/02-slow-ddos
./10_p4_control.py --topo topos/ccsa-2s.json each -s 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/ccsa-2s.json each -s 2 -l -a
Try 20-xxx scripts.