Cyber Attacks Detection and Mitigation in SDN Environments