Abstract:
A deep packet inspection method and device, and a coprocessor. The deep packet inspection method includes receiving, by a transceiver module of the coprocessor, an original data packet sent by a general processor, and sending the original data packet to a processor core of the coprocessor; invoking, by the processor core, a sub-coprocessor of the coprocessor to perform application layer parsing on the original data packet so as to obtain an application layer parsing result; and sending, by the processor core, the parsing result to the general processor so that the general processor processes the original data packet according to the parsing result. The deep packet inspection method and device provided by the embodiments of the present disclosure reduce resource occupation of a general processor and increase a running speed.
Abstract:
A method for generating a plurality of indexed data fields based on a pattern set comprising a plurality of patterns, the method comprising detecting for each pattern from the pattern set a pattern offset; creating for each pattern offset in the pattern set an indexed pattern group, wherein the index of the indexed pattern group corresponds to the pattern offset; adding each pattern in the pattern set having the same pattern offset to the indexed pattern group having an index corresponding to the pattern offset; adding each pattern having no specific pattern offset to each of the indexed pattern groups; and compiling each indexed pattern group into an indexed data field.
Abstract:
A method for generating a plurality of indexed data fields based on a pattern set comprising a plurality of patterns, the method comprising detecting for each pattern from the pattern set a pattern offset; creating for each pattern offset in the pattern set an indexed pattern group, wherein the index of the indexed pattern group corresponds to the pattern offset; adding each pattern in the pattern set having the same pattern offset to the indexed pattern group having an index corresponding to the pattern offset; adding each pattern having no specific pattern offset to each of the indexed pattern groups; and compiling each indexed pattern group into an indexed data field.