Application type identification of Internet flows based on medium mathematics