Flow classification for network security using P4-based Programmable Data Plane switches