Method and system for detecting P2P (peer-to-peer) traffic based on multi-dimensional analysis and decision tree

The invention discloses a method and a system for detecting P2P (peer-to-peer) traffic based on a multi-dimensional analysis and a decision tree. The method is characterized in that the wavelet multi-dimensional analysis is combined with a decision tree algorithm in machine learning to detect the P2P traffic; the traffic is subject to multi-dimensional analysis by the wavelet analysis technology so as to extract the suspected P2P traffic, and then the traffic is classified by the decision tree algorithm. The method has the advantages that the encrypted and unknown P2P traffic can be detected, the accuracy and detection efficiency are higher, the effectivity of classification and detection is improved, and the good safety detection effect is realized.