Uses a counting bloom filter to block flows for which the switch has observed more than a certain number of packets (default 1000).
Run the topology:
sudo p4run
or
sudo python network.py
Run the receiver and the sending scripts in h2
and h1
respectively:
mx h2
python receive.py
Send any number of packets from h1
to h2
.
mx h1
python send.py 10.0.2.2 "number_of_packet"
Only the first 1000 packets will be received at the receiver's end (h2 side)