Iot message processing method, electronic device, storage medium and computer program product

By generating a configuration page to obtain the protocol parsing information configured by the user, the problem of parsing private fields in IoT terminal management is solved, enabling configurable communication protocol processing for IoT devices and improving management efficiency and security.

CN119342070BActive Publication Date: 2025-12-12BEIJING TOPSEC NETWORK SECURITY TECH +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411501284.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-25
Publication Date
2025-12-12
Estimated Expiration
2044-10-25

AI Technical Summary

Technical Problem

Existing IoT terminal management tools cannot effectively parse the private fields of IoT terminals, making it difficult for IoT gateways to identify and audit them during centralized management, which increases operation and maintenance costs and security risks.

Method used

The system obtains the protocol parsing configuration information configured by the user through a configuration page, parses the messages of IoT devices based on this information, extracts IoT device information, and processes it. It supports configurable processing of multiple communication protocols.

Benefits of technology

It enables configurable communication protocol processing for IoT devices without recoding, improving versatility and maintainability, and simplifying the management and security auditing of IoT terminals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119342070B_ABST
    Figure CN119342070B_ABST
Patent Text Reader

Abstract

The application provides an Internet of Things message processing method, an electronic device, a storage medium and a computer program product, wherein the Internet of Things message processing method comprises: generating and displaying a configuration page, obtaining protocol analysis configuration information configured by a user based on the configuration page through the configuration page, and saving the protocol analysis configuration information, wherein the protocol analysis configuration information; analyzing the message of an Internet of Things device based on the protocol analysis configuration information, extracting first Internet of Things device information from the message of the Internet of Things device; and processing the Internet of Things device based on the first Internet of Things device information. The application can process Internet of Things messages through the protocol analysis configuration information configured by the user based on the configuration page, and further realize configurable communication protocol processing of the message of the Internet of Things device. Compared with the prior art, the application does not need to be re-coded, and has better universality and maintainability.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of message processing, in particular to a method for processing Internet of Things messages, an electronic device, a storage medium and a computer program product. BACKGROUND

[0002] With the development of Internet of Things network technology, the types of Internet of Things terminals that can access the network are increasing, and the increase in the number of Internet of Things terminals increases the difficulty of maintaining the Internet of Things terminals, resulting in increasing operation and maintenance costs, and the security problems that arise cannot be ignored. Therefore, Internet of Things gateway devices are generated to manage Internet of Things terminals.

[0003] Different types of Internet of Things devices also use different communication protocols, such as http, ftp, smtp, imap, dcerpc, nfs, tftp, dhcp, sip, mqtt, netbios, dicom, etc. When managing Internet of Things terminals centrally, Internet of Things terminal identification and Internet of Things terminal audit functions require the use of protocol parsed content, such as http.uri, http.header, http.body, ftp.user, ftp.file.name, netbios.ns.questions, dicom.devicename. Existing protocol parsing tools can only parse general and commonly used fields, and some Internet of Things terminal private fields cannot be parsed, which is not conducive to the centralized management of Internet of Things gateways for Internet of Things terminals. SUMMARY

[0004] The purpose of the embodiments of the present application is to provide a method for processing Internet of Things messages, an electronic device, a storage medium and a computer program product, which processes Internet of Things messages based on protocol parsing configuration information configured by a user based on a configuration page, and further implements configurable communication protocol processing of messages of Internet of Things devices. Compared with the prior art, the present application does not need to be re-coded, and has better versatility and maintainability.

[0005] In a first aspect, the present application provides a method for processing Internet of Things messages, the method comprising:

[0006] generating and displaying a configuration page to obtain protocol parsing configuration information configured by a user based on the configuration page, and saving the protocol parsing configuration information, wherein the protocol parsing configuration information comprises:

[0007] parsing messages of an Internet of Things device based on the protocol parsing configuration information to extract first Internet of Things device information from the messages of the Internet of Things device;

[0008] processing the Internet of Things device based on the first Internet of Things device information.

[0009] The method of the first aspect of the present application can generate and display a configuration page, and then obtain protocol parsing configuration information configured by a user based on the configuration page through the configuration page, and save the protocol parsing configuration information. The protocol parsing configuration information can be used to parse a message of an Internet of Things device based on the protocol parsing configuration information, to extract first Internet of Things device information from the message of the Internet of Things device, so as to process the Internet of Things device based on the first Internet of Things device information, and finally realize configurable communication protocol processing of the message of the Internet of Things device. Compared with the prior art, the present application does not need to be re-coded, and has better versatility and maintainability.

[0010] In an optional embodiment, the protocol parsing configuration information includes a target message type, a target field position, and a target field content format.

[0011] The message of the Internet of Things device is parsed based on the protocol parsing configuration information to extract first Internet of Things device information from the message of the Internet of Things device, including:

[0012] The first Internet of Things device information is extracted from the message of the Internet of Things device based on the target message type, the target field position, and the target field content format.

[0013] The optional embodiment can extract the first Internet of Things device information from the message of the Internet of Things device based on the target message type, the target field position, and the target field content format.

[0014] In an optional embodiment, the method further includes:

[0015] The message of the Internet of Things device is parsed based on the general field information to extract second Internet of Things device information from the message of the Internet of Things device.

[0016] The processing of the Internet of Things device based on the first Internet of Things device information includes:

[0017] The first Internet of Things device information and the second Internet of Things device information are summarized to obtain summary information, and the Internet of Things device is processed based on the summary information.

[0018] The optional embodiment can parse the message of the Internet of Things device based on the general field information to extract second Internet of Things device information from the message of the Internet of Things device. On the other hand, the first Internet of Things device information and the second Internet of Things device information can be summarized to obtain summary information, and the Internet of Things device is processed based on the summary information.

[0019] In an optional embodiment, the processing the Internet of Things device based on the summary information comprises:

[0020] auditing the Internet of Things device based on the summary information to obtain an auditing result.

[0021] The optional embodiment audits the Internet of Things device based on the summary information to obtain an auditing result.

[0022] In an optional embodiment, the processing the Internet of Things device based on the summary information comprises:

[0023] identifying the Internet of Things device based on the summary information to obtain an identification result.

[0024] The optional embodiment can identify the Internet of Things device based on the summary information to obtain an identification result.

[0025] In an optional embodiment, the target message type comprises an http protocol type, an ftp protocol type, an smtp protocol type, an imap protocol type, a dcerpc protocol type, an nfs protocol type, a tftp protocol type, a dhcp protocol type, a sip protocol type, a mqtt protocol type, a netbios protocol type, and a dicom protocol type.

[0026] The optional embodiment can extract the first Internet of Things device information based on any one of the http protocol type, the ftp protocol type, the smtp protocol type, the imap protocol type, the dcerpc protocol type, the nfs protocol type, the tftp protocol type, the dhcp protocol type, the sip protocol type, the mqtt protocol type, the netbios protocol type, and the dicom protocol type.

[0027] In an optional embodiment, the target field content format comprises a json format, an xml format, and a yaml format.

[0028] The optional embodiment can perform format matching based on the json format, the xml format, and the yaml format.

[0029] In a second aspect, the present application provides an electronic device, comprising:

[0030] a processor; and

[0031] a memory configured to store machine-readable instructions, which, when executed by the processor, perform the method according to any one of the preceding embodiments.

[0032] The electronic device of the second aspect of the present application can generate and display a configuration page by executing the method of the present application, and further can obtain protocol analysis configuration information configured by a user based on the configuration page through the configuration page and save the protocol analysis configuration information, wherein the protocol analysis configuration information, and further can parse a message of an Internet of Things device based on the protocol analysis configuration information to extract first Internet of Things device information from the message of the Internet of Things device, so as to process the Internet of Things device based on the first Internet of Things device information, and finally realize configurable communication protocol processing on the message of the Internet of Things device. Compared with the prior art, the present application does not need to be re-coded, and has better universality and maintainability.

[0033] In a second aspect, the present application provides an Internet of Things message processing device, which comprises:

[0034] a generating module configured to generate and display a configuration page to obtain protocol analysis configuration information configured by a user based on the configuration page through the configuration page and save the protocol analysis configuration information, wherein the protocol analysis configuration information;

[0035] a parsing module configured to parse a message of an Internet of Things device based on the protocol analysis configuration information to extract first Internet of Things device information from the message of the Internet of Things device;

[0036] a processing module configured to process the Internet of Things device based on the first Internet of Things device information.

[0037] The device of the present application can generate and display a configuration page by executing the method of the present application, and further can obtain protocol analysis configuration information configured by a user based on the configuration page through the configuration page and save the protocol analysis configuration information, wherein the protocol analysis configuration information, and further can parse a message of an Internet of Things device based on the protocol analysis configuration information to extract first Internet of Things device information from the message of the Internet of Things device, so as to process the Internet of Things device based on the first Internet of Things device information, and finally realize configurable communication protocol processing on the message of the Internet of Things device. Compared with the prior art, the present application does not need to be re-coded, and has better universality and maintainability.

[0038] In a fourth aspect, the present application provides a storage medium, which stores a computer program, and the computer program is executed by a processor to execute the method of any one of the preceding embodiments.

[0039] The storage medium of the application can generate and display a configuration page by executing the method of the application, and further can obtain protocol analysis configuration information configured by a user based on the configuration page through the configuration page, and save the protocol analysis configuration information, wherein the protocol analysis configuration information, and further can analyze the message of the Internet of Things device based on the protocol analysis configuration information, to extract first Internet of Things device information from the message of the Internet of Things device, so as to process the Internet of Things device based on the first Internet of Things device information, and finally realize configurable communication protocol processing of the message of the Internet of Things device. Compared with the prior art, the application does not need to be re-coded, and has better universality and maintainability.

[0040] In a fifth aspect, the application provides a computer program product, which comprises a computer program, and the computer program, when executed by a processor, implements the method in any one of the preceding embodiments.

[0041] The computer product of the application can generate and display a configuration page by executing the method of the application, and further can obtain protocol analysis configuration information configured by a user based on the configuration page through the configuration page, and save the protocol analysis configuration information, wherein the protocol analysis configuration information, and further can analyze the message of the Internet of Things device based on the protocol analysis configuration information, to extract first Internet of Things device information from the message of the Internet of Things device, so as to process the Internet of Things device based on the first Internet of Things device information, and finally realize configurable communication protocol processing of the message of the Internet of Things device. Compared with the prior art, the application does not need to be re-coded, and has better universality and maintainability. BRIEF DESCRIPTION OF DRAWINGS

[0042] In order to more clearly illustrate the technical solutions of the embodiments of the application, the following will briefly introduce the drawings needed to be used in the embodiments of the application. It should be understood that the following drawings only show some embodiments of the application, and therefore should not be regarded as a limitation on the scope, and for those skilled in the art, other related drawings can also be obtained without creative labor.

[0043] Figure 1 is a flowchart of a method for processing messages of the Internet of Things disclosed by the embodiments of the application;

[0044] Figure 2 is a flowchart of another method for processing messages of the Internet of Things disclosed by the embodiments of the application;

[0045] Figure 3 is a structural diagram of a configurable Internet of Things protocol analysis device;

[0046] Figure 4 is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0047] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.

[0048] Embodiment one

[0049] Please refer to Figure 1 , Figure 1 is a flowchart of a method for processing Internet of Things messages disclosed in an embodiment of the present application, as shown in Figure 1 , the method of the present application comprises the following steps:

[0050] 101. Generating and displaying a configuration page to obtain protocol analysis configuration information configured by a user based on the configuration page through the configuration page, and saving the protocol analysis configuration information, wherein the protocol analysis configuration information;

[0051] 102. Analyzing the message of the Internet of Things device based on the protocol analysis configuration information to extract first Internet of Things device information from the message of the Internet of Things device;

[0052] 103. Processing the Internet of Things device based on the first Internet of Things device information.

[0053] The method of the present application can generate and display a configuration page, and then obtain protocol analysis configuration information configured by a user based on the configuration page through the configuration page, and save the protocol analysis configuration information, wherein the protocol analysis configuration information, and then analyze the message of the Internet of Things device based on the protocol analysis configuration information to extract first Internet of Things device information from the message of the Internet of Things device, so as to process the Internet of Things device based on the first Internet of Things device information, and finally realize configurable communication protocol processing of the message of the Internet of Things device. Compared with the prior art, the present application does not need to be re-coded, and has better universality and maintainability.

[0054] In the embodiment of the present application, for step 101, the generated configuration page includes protocol type and to-be-analyzed field, wherein the to-be-analyzed field is associated with the protocol type, indicating that when the Internet of Things message using the protocol type is obtained, the to-be-analyzed field needs to be identified from the Internet of Things message and the field value associated with the to-be-analyzed field needs to be extracted.

[0055] In the embodiment of the present application, for step 101, the configuration page can be a Web page, wherein the Web page can be displayed through a client terminal.

[0056] In the embodiment of the present application, for step 101, the protocol analysis configuration information can be stored on the server, and when the Internet of Things message is obtained, the protocol analysis configuration information can be read from the server to process the Internet of Things message based on the protocol analysis configuration information.

[0057] In the embodiment of the present application, the protocol analysis configuration information is configuration information required for analyzing the Internet of Things message.

[0058] In the embodiment of the present application, the result obtained by analyzing the Internet of Things message can include a field associated with a general field in the Internet of Things message and a field associated with a custom field in the Internet of Things message, wherein the protocol analysis configuration information sets includes the custom field, based on which, the content extracted based on the protocol analysis configuration information is the first Internet of Things device information, and the content extracted based on the general field is the second Internet of Things device information.

[0059] In the embodiment of the present application, as an optional implementation, the protocol analysis configuration information includes a target message type, a target field position, and a target field content format, and the message of the Internet of Things device is analyzed based on the protocol analysis configuration information to extract the first Internet of Things device information from the message of the Internet of Things device, including the following sub-steps:

[0060] The first Internet of Things device information is extracted from the message of the Internet of Things device based on the target message type, the target field position, and the target field content format.

[0061] This optional implementation can extract the first Internet of Things device information from the message of the Internet of Things device based on the target message type, the target field position, and the target field content format.

[0062] In the embodiment of the present application, as an optional implementation, the method of the embodiment of the present application further includes the following sub-steps:

[0063] The message of the Internet of Things device is analyzed based on the general field information to extract the second Internet of Things device information from the message of the Internet of Things device;

[0064] And the Internet of Things device is processed based on the first Internet of Things device information, including the following sub-steps:

[0065] The first Internet of Things device information and the second Internet of Things device information are summarized to obtain summary information, and the Internet of Things device is processed based on the summary information.

[0066] This optional implementation can analyze the message of the Internet of Things device based on the general field information to extract the second Internet of Things device information from the message of the Internet of Things device. On the other hand, the first Internet of Things device information and the second Internet of Things device information can be summarized to obtain summary information, and the Internet of Things device is processed based on the summary information.

[0067] In the embodiment of the application, as an optional implementation, the Internet of Things device is processed based on the summary information, including the following sub-steps:

[0068] The Internet of Things device is audited based on the summary information, and an audit result is obtained.

[0069] The optional implementation audits the Internet of Things device based on the summary information, and an audit result is obtained.

[0070] In the embodiment of the application, as an optional implementation, the Internet of Things device is processed based on the summary information, including:

[0071] The Internet of Things device is identified based on the summary information, and an identification result is obtained.

[0072] The optional implementation can identify the Internet of Things device based on the summary information, and an identification result is obtained.

[0073] In the optional implementation, the target message type includes an http protocol type, an ftp protocol type, an smtp protocol type, an imap protocol type, a dcerpc protocol type, an nfs protocol type, a tftp protocol type, a dhcp protocol type, a sip protocol type, a mqtt protocol type, a netbios protocol type, and a dicom protocol type.

[0074] The optional implementation can extract the first Internet of Things device information based on any one of the http protocol type, the ftp protocol type, the smtp protocol type, the imap protocol type, the dcerpc protocol type, the nfs protocol type, the tftp protocol type, the dhcp protocol type, the sip protocol type, the mqtt protocol type, the netbios protocol type, and the dicom protocol type.

[0075] In the embodiment of the application, as an optional implementation, the target field content format includes a json format, an xml format, and a yaml format.

[0076] The optional implementation can perform format matching based on the json format, the xml format, and the yaml format.

[0077] For the embodiment of the application, as an example, refer to Figure 2 , Figure 2 is a flow diagram of another Internet of Things message processing method disclosed in the embodiment of the application. As shown in Figure 2 , the Internet of Things terminal centralized management gateway is deployed in a network environment, and receives traffic reported by an Internet of Things terminal.

[0078] Further, the Internet of Things protocol general field identification module is used for parsing the protocol and general field of the message, and the message meeting the self-defined field protocol is sent to the Internet of Things protocol configurable field identification module.

[0079] Further, the Internet of Things protocol configurable field identification module is used for screening the message meeting the condition according to the protocol type (http, ftp, smtp, imap, dcerpc, nfs, tftp, dhcp, sip, mqtt, netbios, dicom, etc.), the field position (http.uri, http.header, http.body, ftp.user, ftp.file.name, smtp.field.id.username, field.content, dcerpc.stub.data, nfs.field.extra.body, tftp.file.content, sip.uri.headers, netbios.ns.questions, dicom.devicename, etc.) configured by the configurable field identification module.

[0080] Further, the field content format (regular fuzzy extraction, expression format, json format, xml format, yaml format, etc.) configured by the configurable field identification module is used for completing the field content detail analysis. For example, the http.header in the Internet of Things device interaction contains the private field private: {“manufacturer”:”manufacturer name”,”devicetype”:”Internet of Things terminal type”}, the protocol analysis method can be configured for the data interaction content, the protocol type is http, the field position is http.header, the field name is private, the content format is json, the analysis structure is {manufacturer string, devicetype string}, the Internet of Things terminal manufacturer and terminal type are parsed out, and the centralized management of the Internet of Things gateway is facilitated. For another example, the sip.body in the Internet of Things video monitoring device interaction contains the private content <?xml version="1.0" encoding="UTF-8"?> <cmdtype> 01< / cmdtype> ……, the protocol analysis method can be configured for the data interaction content, the protocol type is sip, the field position is sip.body, the field name is null, the content format is xml, the analysis structure is {cmdtype int}, the Internet of Things video monitoring device type 01 is parsed out, and the signaling audit of the camera can be realized.

[0081] Further, the analysis result record aggregation module is used to aggregate the analysis results of the Internet of Things protocol general field identification module and the Internet of Things protocol configurable field identification module. The result data is provided for the Internet of Things terminal identification module and the Internet of Things terminal audit module.

[0082] Further, the Internet of Things terminal identification uses the aggregated information as the fingerprint of the Internet of Things terminal, and realizes the identification of the type of the Internet of Things terminal.

[0083] Further, the Internet of Things terminal audit audits the aggregated information, realizes the audit function of the Internet of Things terminal, and records alarm information and blocking processing of a failed message.

[0084] In addition, the embodiment of the application further discloses a configurable Internet of Things protocol analysis device, Figure 3 is a structural diagram of a configurable Internet of Things protocol analysis device. As Figure 3 indicated, the configurable Internet of Things protocol analysis device comprises an Internet of Things server and an Internet of Things gateway. The Internet of Things server is used to receive and store Internet of Things data uploaded by an Internet of Things terminal. The Internet of Things gateway is used to centrally manage the Internet of Things terminal. Further, as Figure 3 indicated, the Internet of Things gateway has the following functional modules:

[0085] Web configuration and display module: related configurations of functions are performed through web access to the system, including configuration of custom protocol fields and management of the Internet of Things terminal.

[0086] Configurable protocol field storage: records custom protocol fields configured by a user, and ensures that the system can normally operate without reconfiguration after a restart.

[0087] Internet of Things protocol general field identification: message data uploaded by the Internet of Things terminal is analyzed to identify general fields in the message.

[0088] Internet of Things protocol configurable field identification: on the basis of the Internet of Things protocol general field identification, custom fields configured by a user are further analyzed.

[0089] Internet of Things terminal identification: the content analyzed by the two modules of the Internet of Things protocol general field identification and the Internet of Things protocol configurable field identification is used as a terminal fingerprint. According to the difference of the terminal fingerprint, the classification of the Internet of Things terminal is realized.

[0090] Internet of Things terminal audit: the content analyzed by the two modules of the Internet of Things protocol general field identification and the Internet of Things protocol configurable field identification is aggregated. According to the aggregated content, the audit function of the Internet of Things terminal is realized.

[0091] The analysis result record module: some terminal information is distributed in multiple interaction processes, and multiple interaction processes need to be analyzed and field information is summarized, and the Internet of Things terminal identification and Internet of Things terminal audit functions are realized according to the summarized information.

[0092] The Internet of Things terminal: the Internet of Things device such as face recognition, license plate recognition, fire identification installed in the monitoring site in the Internet of Things system.

[0093] Embodiment two

[0094] The embodiment of the application provides a kind of Internet of Things message processing device, which comprises the following functional modules:

[0095] Generation module, for generating and showing configuration page, to obtain the protocol analysis configuration information configured by user based on the configuration page through the configuration page, and save the protocol analysis configuration information, wherein the protocol analysis configuration information;

[0096] Analysis module, for analyzing the message of Internet of Things device based on the protocol analysis configuration information, to extract first Internet of Things device information from the message of the Internet of Things device;

[0097] Processing module, for processing the Internet of Things device based on the first Internet of Things device information.

[0098] The device of the embodiment of the application can generate and show configuration page by executing the method of the application, and then can obtain the protocol analysis configuration information configured by user based on the configuration page through the configuration page, and save the protocol analysis configuration information, wherein the protocol analysis configuration information, and then can analyze the message of Internet of Things device based on the protocol analysis configuration information, to extract first Internet of Things device information from the message of the Internet of Things device, so as to process the Internet of Things device based on the first Internet of Things device information, finally realize configurable communication protocol processing for the message of Internet of Things device. Compared with prior art, the application does not need to re-code, has better versatility and maintainability.

[0099] Embodiment three

[0100] Please refer to Figure 4 , Figure 4 is a structural schematic diagram of an electronic device disclosed by the embodiment of the application, as Figure 4 shown, the electronic device of the embodiment of the application comprises:

[0101] Processor 301; and

[0102] Memory 302, configured to store machine readable instructions, instructions when executed by processor 301, execute the method of any one of the preceding embodiments.

[0103] The electronic device of the embodiments of the present application can generate and display a configuration page by executing the method of the present application, and further can obtain protocol analysis configuration information configured by a user based on the configuration page through the configuration page and save the protocol analysis configuration information, wherein the protocol analysis configuration information, and further can analyze a message of an Internet of Things device based on the protocol analysis configuration information to extract first Internet of Things device information from the message of the Internet of Things device, so as to process the Internet of Things device based on the first Internet of Things device information, and finally realize configurable communication protocol processing on the message of the Internet of Things device. Compared with the prior art, the present application does not need to be re-coded, has better versatility and maintainability.

[0104] Embodiment Four

[0105] The embodiments of the present application provide a storage medium, which stores a computer program. The computer program is executed by a processor to implement the method of any one of the preceding embodiments.

[0106] The storage medium of the embodiments of the present application can generate and display a configuration page by executing the method of the present application, and further can obtain protocol analysis configuration information configured by a user based on the configuration page through the configuration page and save the protocol analysis configuration information, wherein the protocol analysis configuration information, and further can analyze a message of an Internet of Things device based on the protocol analysis configuration information to extract first Internet of Things device information from the message of the Internet of Things device, so as to process the Internet of Things device based on the first Internet of Things device information, and finally realize configurable communication protocol processing on the message of the Internet of Things device. Compared with the prior art, the present application does not need to be re-coded, has better versatility and maintainability.

[0107] Embodiment Five

[0108] The embodiments of the present application provide a computer program product, which includes a computer program. The computer program is executed by a processor to implement the method of any one of the preceding embodiments.

[0109] The computer program product of the embodiments of the present application can generate and display a configuration page by executing the method of the present application, and further can obtain protocol analysis configuration information configured by a user based on the configuration page through the configuration page and save the protocol analysis configuration information, wherein the protocol analysis configuration information, and further can analyze a message of an Internet of Things device based on the protocol analysis configuration information to extract first Internet of Things device information from the message of the Internet of Things device, so as to process the Internet of Things device based on the first Internet of Things device information, and finally realize configurable communication protocol processing on the message of the Internet of Things device. Compared with the prior art, the present application does not need to be re-coded, has better versatility and maintainability.

[0110] In the embodiments of the present application, it should be understood that the disclosed apparatus and method can be implemented in other manners. The embodiments described above are merely exemplary, for example, the division of the units is only a logical function division, and there can be another division manner in actual implementation; for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms.

[0111] In addition, the units described as separate components can or can not be physically separate, and the components displayed as units can or can not be physical units, i.e., can be located in one place, or can be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purposes of the embodiments of the present application.

[0112] In addition, the functional modules in the various embodiments of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0113] It should be noted that if the functions are realized in the form of software function modules and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application essentially or the parts that make contributions to the prior art or parts of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the various embodiments of the method of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various other media that can store program codes.

[0114] In this document, the terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations.

[0115] The above merely provides an example of the present application, and is not used to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims

1. An Internet of Things packet processing method, characterized in that, The method: generates and displays a configuration page to obtain protocol parsing configuration information configured by a user based on the configuration page through the configuration page, and saves the protocol parsing configuration information, wherein the protocol parsing configuration information; based on the protocol parsing configuration information, the message of the Internet of Things device is parsed to extract first Internet of Things device information from the message of the Internet of Things device; based on the first Internet of Things device information, the Internet of Things device is processed; and the protocol parsing configuration information includes target message type, target field position and target field content format; and based on the protocol parsing configuration information, the message of the Internet of Things device is parsed to extract first Internet of Things device information from the message of the Internet of Things device, comprising: based on the target message type, the target field position and the target field content format, the first Internet of Things device information is extracted from the message of the Internet of Things device; and the method further comprises: based on the general field information, the message of the Internet of Things device is parsed to extract second Internet of Things device information from the message of the Internet of Things device; and the processing of the Internet of Things device based on the first Internet of Things device information comprises: the first Internet of Things device information and the second Internet of Things device information are summarized to obtain summary information, and the Internet of Things device is processed based on the summary information; and the processing of the Internet of Things device based on the summary information comprises: based on the summary information, the Internet of Things device is audited to obtain an audit result; and the processing of the Internet of Things device based on the summary information comprises: based on the summary information, the Internet of Things device is identified to obtain an identification result.

2. The method of claim 1, wherein, The target message type includes http protocol type, ftp protocol type, smtp protocol type, imap protocol type, dcerpc protocol type, nfs protocol type, tftp protocol type, dhcp protocol type, sip protocol type, mqtt protocol type, netbios protocol type and dicom protocol type.

3. The method of claim 1, wherein, The target field content format includes json format, xml format and yaml format.

4. An electronic device, comprising: including: a processor; and a memory configured to store machine-readable instructions, which, when executed by the processor, perform the method of any one of claims 1-3.

5. A storage medium, characterized by The storage medium stores a computer program, and the computer program is executed by the processor to perform the method of any one of claims 1-3.

6. A computer program product, characterised in that, The computer program product comprises a computer program, which is executed by the processor to implement the method of any one of claims 1-3.

Citation Information

Patent Citations

  • Custom industrial protocol deep analysis method and system and electronic equipment

    CN116455740A

  • Data access method and system of data integration platform

    CN117527568A