Fast network congestion detection and avoidance using P4