摘要 |
<p>A method and a device for detecting a packet are provided according to the embodiments of the present invention. The method includes: performing association recognition table matching between first match information in a received packet and first match information in an association recognition table, where the first match information of the association recognition table is obtained by extracting a content of a control packet used for creating a data channel, the first match information corresponds to a packet protocol, and the packet protocol is obtained by performing protocol recognition on the control packet; and when the association recognition table matching succeeds, outputting protocol information obtained after the association recognition table matching succeeds. In the embodiments of the present invention, when match information of the association recognition table is matched, since the match information of the association recognition table is obtained by extracting the content of the control packet used for creating the data channel and corresponds to the protocol obtained by performing the protocol recognition on the control packet, the protocol is recognized without detecting the packet content, thereby increasing a protocol recognition speed.</p> |