The invention relates to the technical field of security communication protocols of
the Internet of Things, in particular to an automatic protocol identification method used in an environment of
the Internet of Things, which comprises the following steps of: acquiring a difference value between a message index and frequency, aggregating a field section to generate a group number, matching a structure offset to calculate a fluctuation quantity, and identifying a period hopping field to output an identification result. According to the method, the distribution characteristics and the structure change trend of
byte sections can be effectively described by performing
difference analysis on repetition frequency and
density change of each
byte position in a communication message and establishing a field aggregation relationship, and the structure stability and drift fields in the message are extracted and the offset amplitude of the fields is quantized, so that the communication efficiency is improved. A
message structure consistency judgment mechanism is established, a comprehensive evaluation mode of periodic change and structure stability is formed in combination with analysis of a periodic field
byte change range and frequency hopping frequency, and field position mapping and periodic characteristics of a newly received message are subjected to matching judgment, so that a
message structure consistency judgment result is obtained. Accurate classification and efficient identification of the dynamic change communication data are realized.