Detection for Software Defined Networking with Machine Learning