Machine Learning Based Model and Solution for Network Flow Attack Detection