Network traffic application type identification based on gravitational clustering