@inproceedings{ding2019estimating,
title={Estimating Logarithmic and Exponential Functions to Track Network Traffic Entropy in P4},
author={Ding, Damu and Savi, Marco and Siracusa, Domenico},
booktitle={IEEE/IFIP Network Operations and Management Symposium (NOMS)},
year={2020}
}
-
Install docker if you don't already have it.
-
Clone the repository to local
git clone https://github.com/DINGDAMU/P4Log_and_P4Exp.git
-
cd P4Log_and_P4Exp
-
If you want, put the
p4app
script somewhere in your path. For example:cp p4app /usr/local/bin
I have already modified the default docker image to dingdamu/p4app-ddos:nwhhd, so
p4app
script can be used directly.
-
After this step you'll see the terminal of mininet
./p4app run log.p4app
- Forwarding some packets in mininet
pingall
- Enter log.p4app folder
cd log.p4app
- Check the result by reading the register
./read_registers1.sh
-
Register[0]
is the input value andRegister[1]
is the result oflog2(Register[0])
amplified$2^{10}$ times
-
After this step you'll see the terminal of mininet
./p4app run exp.p4app
- Forwarding some packets in mininet
pingall
- Enter exp.p4app folder
cd exp.p4app
- Check the result by reading the register
./read_registers1.sh
Register[0]
is the base andRegister[1]
is the exponent, the exponential-function result is inRegister[2]