(P2P has developed rapidly in recent years with its common technical advantages, and its use has been increasing. According to statistics, the use of P2P has accounted for 60% to 80% of the total ISP business, and has suddenly become the largest consumer of network bandwidth. Coupled with the increasing importance of the Internet and the increasingly cluttered network structure, the security, manageability of the network and the usability of traditional use have been challenged. There is a growing awareness of the need to monitor P2P traffic and network behavior)