Packet tracking method, device and equipment based on ARM embedded kernel, and medium
Patent Information
- Application Number
- CN202311582096.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-24
- Publication Date
- 2026-09-29
- Estimated Expiration
- 2043-11-24
AI Technical Summary
因为问题的偶然性,而且设备在用户家中,所以无法持续的添加调试信息进行追踪
[0026]上述本申请提供的基于ARM嵌入内核的报文追踪方法,通过将网关从正常模式切换至调试模式,配置调试参数;调试参数包括多个调试等级和多个报文匹配条件;ARM嵌入内核对多个特定节点分别抓取所有报文进行分析,得到报文分析结果;根据各报文匹配条件从报文分析结果中,确定在预设时间内是否抓取到目标报文,生成对应的目标抓取记录;基于调试范围从多个调试等级确定目标调试等级;将网关设置为目标调试等级,并获取目标调试等级对应的调试信息,将调试信息和目标抓取记录发送至云端服务器;云端服务器分析调试信息和目标抓取记录,生成各特定节点的问题分析报告,在家庭网关出现问题时,可以做到对用户影响最小的方式进行排查。
Smart Images

Figure CN117615048B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of network communication, and in particular to a message tracking method and device based on an ARM embedded kernel, equipment and a medium. BACKGROUND
[0002] Most of the problems of the home gateway are occasional, such as, a certain DNS (Domain Name System) request fails to be parsed, a ping (Packet Internet Grope) packet is lost, a video is stuck, and the like. Because the problems are occasional, and the device is in the user's home, it is impossible to continuously add debugging information for tracking. At present, the message tracking is mainly performed by using an intrusion prevention table iptables (netfilter / iptables), but this method can only locate part of the firewall, and there is a problem that the driver program, the virtual local area network, and the upper space data packet cannot be tracked. SUMMARY
[0003] In order to solve the above technical problems, the present application provides a message tracking method and device based on an ARM embedded kernel, equipment and a medium.
[0004] In a first aspect, the present application provides a message tracking method based on an ARM embedded kernel, which comprises the following steps.
[0005] Switching a gateway from a normal mode to a debugging mode, and configuring a debugging parameter; the debugging parameter comprises a plurality of debugging levels and a plurality of message matching conditions; an ARM embedded kernel respectively captures all messages of a plurality of specific nodes for analysis, and obtains a message analysis result; according to each message matching condition, it is determined from the message analysis result whether a target message is captured within a preset time, and a corresponding target capture record is generated; a target debugging level is determined from the plurality of debugging levels based on a debugging range; the gateway is set to the target debugging level, and debugging information corresponding to the target debugging level is obtained; the debugging information and the target capture record are sent to a cloud server; the cloud server analyzes the debugging information and the target capture record, and generates a problem analysis report of each specific node.
[0006] In an embodiment, the step of determining whether a target message is captured within a preset time and generating a corresponding target capture record comprises the following steps.
[0007] If the target message is captured within the preset time, a success record is generated, and the success record is saved to a flash memory;
[0008] If the target message is not successfully captured within the preset time, a failure record is generated, and the failure record is saved to the flash memory.
[0009] In one embodiment, after generating a success record if the target message is captured within the preset time, the method further includes:
[0010] Once the target message is captured, it is transmitted sequentially according to the communication connection order of the multiple specific nodes.
[0011] In one embodiment, the cloud server analyzes the debugging information and the target capture records to generate a problem analysis report for each specific node, including:
[0012] The cloud server performs data preprocessing on the debugging information and the target capture records to obtain preprocessed data, analyzes the preprocessed data, and generates a message transmission diagram and a network anomaly report.
[0013] In one embodiment, the cloud server performs data preprocessing on the debugging information and the target capture records, including:
[0014] The cloud server performs data parsing and data cleaning on the debugging information and the target capture records.
[0015] In one embodiment, the plurality of specific nodes include: a switch driver, an SFP driver, a wireless driver, a VLAN driver, a kernel protocol stack, a routing and forwarding module, and an upper-layer application.
[0016] In one embodiment, the debugging levels include: a first level, a second level, and a third level; according to the first level, debugging information for all the nodes is output; according to the second level, debugging information for a portion of the specified nodes is output; and according to the third level, partial debugging information for the specified nodes is output.
[0017] Secondly, embodiments of this application provide a packet tracing device based on an ARM embedded kernel, the packet tracing device based on an ARM embedded kernel comprising:
[0018] The first debugging module is used to switch the gateway from normal mode to debugging mode and configure debugging parameters; the debugging parameters include multiple debugging levels and multiple packet matching conditions.
[0019] The analysis module is used by the ARM embedded kernel to capture and analyze all packets from multiple specific nodes to obtain packet analysis results.
[0020] The recording module is used to determine whether the target message has been captured within a preset time period from the message analysis results based on the message matching conditions, and to generate the corresponding target capture record.
[0021] The second debugging module is used to determine a target debugging level from multiple debugging levels based on the debugging range;
[0022] The sending module is used to set the gateway to the target debugging level, obtain the debugging information corresponding to the target debugging level, and send the debugging information and the target capture record to the cloud server;
[0023] The generation module is used by the cloud server to analyze the debugging information and the target capture records to generate problem analysis reports for each specific node.
[0024] Thirdly, embodiments of this application provide an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the computer program executes the message tracing method based on the ARM embedded kernel provided in the first aspect when the processor is running.
[0025] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when run on a processor, executes the message tracing method based on an ARM embedded kernel provided in the first aspect.
[0026] The packet tracing method based on an ARM embedded kernel provided in this application involves switching the gateway from normal mode to debug mode and configuring debug parameters. These parameters include multiple debug levels and multiple packet matching conditions. The ARM embedded kernel captures and analyzes all packets from multiple specific nodes to obtain packet analysis results. Based on each packet matching condition, it determines whether a target packet was captured within a preset time from the packet analysis results, generating a corresponding target capture record. A target debug level is determined from multiple debug levels based on the debug range. The gateway is set to the target debug level, and the debug information corresponding to the target debug level is obtained. The debug information and the target capture record are sent to a cloud server. The cloud server analyzes the debug information and the target capture record, generating a problem analysis report for each specific node. This method allows for troubleshooting with minimal impact on users when a problem occurs with the home gateway. Attached Figure Description
[0027] To more clearly illustrate the technical solutions of this application, the accompanying drawings used in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of this application and should not be considered as a limitation on the scope of protection of this application. In the various drawings, similar components are numbered similarly.
[0028] Figure 1 A flowchart illustrating a message tracing method based on an ARM embedded kernel provided in an embodiment of this application is shown.
[0029] Figure 2This illustration shows another flowchart of the message tracing method based on an ARM embedded kernel provided in an embodiment of this application;
[0030] Figure 3 A schematic diagram of the structure of a packet tracing device based on an ARM embedded kernel provided in an embodiment of this application is shown;
[0031] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of this application is shown.
[0032] Icons: 300 - Message tracing device based on ARM embedded kernel; 301 - First debugging module; 302 - Analysis module; 303 - Recording module; 304 - Second debugging module; 305 - Transmitting module; 306 - Generating module; 400 - Electronic device; 401 - Transceiver; 402 - Processor; 403 - Memory. Detailed Implementation
[0033] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.
[0034] The components of the embodiments of this application described and illustrated in the accompanying drawings can be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of this application provided in the drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0035] In the following, the terms “comprising,” “having,” and their cognates, which may be used in various embodiments of this application, are intended only to indicate a particular feature, number, step, operation, element, component, or combination thereof, and should not be construed as excluding, firstly, the presence of one or more other features, numbers, steps, operations, elements, components, or combinations thereof, or adding the possibility of one or more features, numbers, steps, operations, elements, components, or combinations thereof.
[0036] Furthermore, the terms "first," "second," and "third" are used only to distinguish descriptions and should not be interpreted as indicating or implying relative importance.
[0037] Unless otherwise specified, all terms used herein (including technical and scientific terms) shall have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of this application pertain. Terms (such as those defined in commonly used dictionaries) shall be interpreted as having the same meaning as in their contextual meaning in the relevant technical field and shall not be construed as having an idealized or overly formal meaning, unless clearly defined in the various embodiments of this application.
[0038] Example 1
[0039] This application provides a message tracing method based on an ARM embedded kernel.
[0040] See Figure 1 The packet tracing method based on the ARM embedded kernel includes steps S101-S106:
[0041] Step S101: Switch the gateway from normal mode to debug mode and configure debug parameters; the debug parameters include multiple debug levels and multiple packet matching conditions.
[0042] In this embodiment, switching the gateway from normal mode to debug mode can be done by entering a command line, a webpage, or TR069. For example, using the SSH or telnet command-line tool to connect to the gateway device, after connecting, enter administrator mode or superuser mode. In administrator mode, find the debugging-related options or commands, and enable debug mode according to the device's documentation or guide. Alternatively, you can obtain the IP address and port of TR069, open a browser (such as Internet Explorer, Chrome, etc.), enter the IP address and port number of TR069 to connect to TR069, enter the administrator's username and password, and after successful login, enter debug mode and enable debug mode.
[0043] In step S102, the ARM embedded kernel captures and analyzes all packets from multiple specific nodes to obtain packet analysis results.
[0044] In this embodiment, an Advanced Reduced Instruction Set Architecture (ARM) processor is used. After obtaining the analysis results, the analysis results are saved to the NAND flash memory. The basis for analyzing the packets can be the destination MAC or source MAC, destination IP or source IP, port, protocol, or VLAN ID.
[0045] Step S103: Based on the message matching conditions, determine from the message analysis results whether the target message has been captured within a preset time, and generate the corresponding target capture record.
[0046] In this embodiment, the message matching conditions are the destination MAC or source MAC, destination IP or source IP, port and protocol 5-tuple, matching VLAN information and information in any specific field in the message, such as domain name information in a DNS message; the preset time can be 5 seconds.
[0047] Step S104: Determine the target debugging level from the multiple debugging levels based on the debugging range.
[0048] In this embodiment, the debugging scope is the range of outputting debugging information of all nodes, a portion of the debugging information of a specified node, or a portion of the debugging information of a specified node by the technician; there are three debugging levels: the first debugging level means outputting debugging information of all nodes, the second debugging level means outputting debugging information of a portion of the specified nodes, and the third debugging level means outputting a portion of the debugging information of the specified nodes; the target debugging level is determined by selecting from multiple debugging levels.
[0049] Step S105: Set the gateway to the target debugging level, obtain the debugging information corresponding to the target debugging level, and send the debugging information and the target capture record to the cloud server.
[0050] In this embodiment, for example, the first level is determined as the target debugging level, and the debugging information of all nodes and the target capture record are sent to the cloud server.
[0051] In step S106, the cloud server analyzes the debugging information and the target capture record to generate a problem analysis report for each specific node.
[0052] In this embodiment, after the debugging information log and target capture record log are uploaded to the cloud server, the cloud server automatically and intelligently analyzes the logs and generates problem analysis reports for each specific node, which are then sent to the R&D personnel.
[0053] See Figure 2 Step S103 includes steps S1031-S1032:
[0054] Step S1031: If the target message is captured within the preset time, a success record is generated and the success record is saved to flash memory.
[0055] In this embodiment, if the target packet is captured within 5 seconds, a success record is generated and saved to the flash memory. The target packet is the destination MAC or source MAC, destination IP or source IP, port, protocol or VLAN ID, such as the port number of the HTTP service is 80, and the communication protocol used by the network packet is TCP, UDP, etc.
[0056] Step S1032: If the target message is not successfully captured within the preset time, a failure record is generated and the failure record is saved to the flash memory.
[0057] In this embodiment, the failure record can be: capture target: capture a specific type of HTTP message, preset time: 5 seconds; failure record content: capture time: March 15, 2023, 9:30 am.
[0058] In one embodiment, once the target message is captured, it is transmitted sequentially according to the communication connection order of the multiple specific nodes.
[0059] In this embodiment, the communication connection sequence of a specific node is, for example, from switch driver - SFP driver - wireless driver - VLAN driver - kernel protocol stack - routing forwarding node - Dynamic Host Configuration Protocol server (DHCP Server).
[0060] In one embodiment, the cloud server performs data preprocessing on the debugging information and the target capture record to obtain preprocessed data, analyzes the preprocessed data, and generates a message transmission diagram and a network anomaly report.
[0061] In this embodiment, the preprocessed data is analyzed, for example, a data flow diagram is generated based on the keywords of the preprocessed data: such as a flow diagram like sfp driver->vlan driver->kernel. If a specific node fails to capture the target packet, some error information is marked on the flow diagram.
[0062] In one embodiment, the cloud server performs data parsing and data cleaning on the debugging information and the target capture records.
[0063] In this embodiment, data parsing, for example, for structured debugging information and target capture records, the cloud server can use regular expressions or a text-based parser to extract the required fields and information; data cleaning, for example, the cloud server can delete duplicate data records, convert data types, remove noisy data, etc.
[0064] In one embodiment, the plurality of specific nodes include: a switch driver, an SFP driver, a wireless driver, a VLAN driver, a kernel protocol stack, a routing and forwarding module, and an upper-layer application.
[0065] In this embodiment, the upper-layer application is such as a DHCP server, DNS proxy, IGMP proxy, etc.
[0066] In one embodiment, the debugging levels include: a first level, a second level, and a third level; according to the first level, debugging information for all the nodes is output; according to the second level, debugging information for a portion of the specified nodes is output; and according to the third level, partial debugging information for the specified nodes is output.
[0067] In this embodiment, the output of some debugging information for a specified node includes: the current debugging time, whether the target message was successfully captured, whether the target message was not captured within the specified time, whether the message was discarded because it did not meet the specifications, or whether the message was returned because it did not meet the specifications.
[0068] The packet tracing method based on an ARM embedded kernel provided in this embodiment switches the gateway from normal mode to debug mode and configures debug parameters. These debug parameters include multiple debug levels and multiple packet matching conditions. The ARM embedded kernel captures and analyzes all packets from multiple specific nodes to obtain packet analysis results. Based on each packet matching condition, it determines whether a target packet was captured within a preset time from the packet analysis results, generating a corresponding target capture record. A target debug level is determined from multiple debug levels based on the debug range. The gateway is set to the target debug level, and the debug information corresponding to the target debug level is obtained. The debug information and target capture record are sent to a cloud server. The cloud server analyzes the debug information and target capture record, generating a problem analysis report for each specific node. When a problem occurs with the home gateway, it eliminates the need for on-site service from the operator's technicians; debugging can be performed remotely, minimizing the impact on users.
[0069] Example 2
[0070] Furthermore, embodiments of this application provide a message tracing device based on an ARM embedded kernel, applicable to electronic devices.
[0071] like Figure 3 As shown, the packet tracing device 300 based on an ARM embedded kernel includes:
[0072] The first debugging module 301 is used to switch the gateway from normal mode to debugging mode and configure debugging parameters; the debugging parameters include multiple debugging levels and multiple packet matching conditions.
[0073] Analysis module 302 is used by the ARM embedded kernel to capture and analyze all packets from multiple specific nodes to obtain packet analysis results;
[0074] The recording module 303 is used to determine whether the target message has been captured within a preset time period from the message analysis results according to the message matching conditions, and to generate a corresponding target capture record.
[0075] The second debugging module 304 is used to determine a target debugging level from multiple debugging levels based on the debugging range;
[0076] The sending module 305 is used to set the gateway to the target debugging level, obtain the debugging information corresponding to the target debugging level, and send the debugging information and the target capture record to the cloud server;
[0077] The generation module 306 is used by the cloud server to analyze the debugging information and the target capture record to generate a problem analysis report for each specific node.
[0078] The ARM-based embedded kernel-based packet tracing device 300 provided in this embodiment can implement the ARM-based embedded kernel-based packet tracing method provided in Embodiment 1. To avoid repetition, it will not be described again here.
[0079] The packet tracing device based on an ARM embedded kernel provided in this embodiment switches the gateway from normal mode to debug mode and configures debug parameters. These debug parameters include multiple debug levels and multiple packet matching conditions. The ARM embedded kernel captures and analyzes all packets from multiple specific nodes to obtain packet analysis results. Based on each packet matching condition, it determines whether a target packet was captured within a preset time from the packet analysis results and generates a corresponding target capture record. A target debug level is determined from multiple debug levels based on the debug range. The gateway is set to the target debug level, and the debug information corresponding to the target debug level is obtained. The debug information and target capture record are sent to a cloud server. The cloud server analyzes the debug information and target capture record to generate a problem analysis report for each specific node. When a problem occurs with the home gateway, it eliminates the need for on-site service from the operator's technicians; debugging can be performed remotely, minimizing the impact on users.
[0080] Example 3
[0081] Furthermore, this application provides an electronic device, including a memory and a processor. The memory stores a computer program, which executes the message tracing method based on an ARM embedded kernel provided in Embodiment 1 when the computer program is run on the processor.
[0082] For details, see Figure 4 The electronic device 400 includes: a transceiver 401, a bus interface, and a processor 402. The processor 402 is used to: switch the gateway from normal mode to debug mode and configure debug parameters; the debug parameters include multiple debug levels and multiple message matching conditions.
[0083] The ARM embedded kernel captures and analyzes all packets from multiple specific nodes to obtain packet analysis results.
[0084] Based on the message matching conditions, determine from the message analysis results whether the target message was captured within a preset time and generate the corresponding target capture record.
[0085] The target debugging level is determined from multiple debugging levels based on the debugging range;
[0086] Set the gateway to the target debugging level, obtain the debugging information corresponding to the target debugging level, and send the debugging information and the target capture record to the cloud server;
[0087] The cloud server analyzes the debugging information and the target capture records to generate a problem analysis report for each specific node.
[0088] In one embodiment, the processor 402 is further configured to: if the target message is captured within the preset time, generate a success record and save the success record to flash memory;
[0089] If the target message is not successfully captured within the preset time, a failure record is generated and saved to the flash memory.
[0090] In one embodiment, the processor 402 is further configured to: capture the target message and transmit the target message sequentially according to the communication connection order of the plurality of specific nodes.
[0091] In one embodiment, the processor 402 is further configured to: the cloud server perform data preprocessing on the debugging information and the target capture record to obtain preprocessed data, analyze the preprocessed data, and generate a message transmission diagram and a network anomaly report.
[0092] In one embodiment, the processor 402 is further configured to: perform data parsing and data cleaning on the debugging information and the target capture records by the cloud server.
[0093] In this embodiment of the application, the electronic device 400 further includes a memory 403. Figure 4In this context, the bus architecture can include any number of interconnected buses and bridges, specifically linking various circuits together, represented by one or more processors (processor 402) and memory (memory 403). The bus architecture can also link together various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides an interface. The transceiver 401 can be multiple elements, including transmitters and receivers, providing a unit for communicating with various other devices over a transmission medium. The processor 402 is responsible for managing the bus architecture and general processing, and the memory 403 can store data used by the processor 402 during operation.
[0094] The electronic device 400 provided in this application embodiment can execute the steps of the message tracing method based on ARM embedded kernel provided in the above method embodiment 1. To avoid repetition, it will not be described again here.
[0095] The electronic device provided in this embodiment switches the gateway from normal mode to debug mode and configures debug parameters. The debug parameters include multiple debug levels and multiple packet matching conditions. The ARM embedded kernel captures and analyzes all packets from multiple specific nodes to obtain packet analysis results. Based on each packet matching condition, it determines from the packet analysis results whether the target packet was captured within a preset time and generates a corresponding target capture record. Based on the debug range, it determines the target debug level from multiple debug levels. The gateway is set to the target debug level, and the debug information corresponding to the target debug level is obtained. The debug information and the target capture record are sent to the cloud server. The cloud server analyzes the debug information and the target capture record to generate a problem analysis report for each specific node. When a problem occurs in the home gateway, it can be troubleshooted in a way that minimizes the impact on the user.
[0096] Example 4
[0097] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the message tracing method based on an ARM embedded kernel provided in Embodiment 1.
[0098] In this embodiment, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.
[0099] The computer-readable storage medium provided in this embodiment can implement the message tracing method based on the ARM embedded kernel provided in Embodiment 1. To avoid repetition, it will not be described again here.
[0100] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal that includes that element.
[0101] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0102] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A packet tracing method based on an ARM embedded kernel, characterized in that, The method includes: Switch the gateway from normal mode to debug mode and configure debug parameters; the debug parameters include multiple debug levels and multiple packet matching conditions. The ARM embedded kernel captures and analyzes all packets from multiple specific nodes to obtain packet analysis results; the multiple specific nodes include: switch driver, SFP driver, wireless driver, VLAN driver, kernel protocol stack, and routing forwarding module; Based on the message matching conditions, determine from the message analysis results whether the target message was captured within a preset time and generate the corresponding target capture record. The target debugging level is determined from multiple debugging levels based on the debugging range; Set the gateway to the target debugging level, obtain the debugging information corresponding to the target debugging level, and send the debugging information and the target capture record to the cloud server; The cloud server analyzes the debugging information and the target capture records to generate a problem analysis report for each specific node. The step of determining whether the target message is captured within a preset time and generating a corresponding target capture record includes: if the target message is captured within the preset time, a success record is generated and the success record is saved to flash memory; if the target message is not captured within the preset time, a failure record is generated and the failure record is saved to flash memory. The cloud server analyzes the debugging information and the target capture records to generate a problem analysis report for each specific node, including: the cloud server performs data preprocessing on the debugging information and the target capture records to obtain preprocessed data, analyzes the preprocessed data, and generates a message transmission diagram and a network anomaly report; The debugging levels include: Level 1, Level 2, and Level 3; Based on the first level, output the debugging information for all the nodes; Based on the second level, the output section specifies the debugging information for the node; Based on the third level, output partial debugging information for the specified node.
2. The packet tracing method based on an ARM embedded kernel according to claim 1, characterized in that, After generating a success record if the target message is captured within the preset time, the method further includes: Once the target message is captured, it is transmitted sequentially according to the communication connection order of the multiple specific nodes.
3. The packet tracing method based on an ARM embedded kernel according to claim 1, characterized in that, The cloud server performs data preprocessing on the debugging information and the target capture records, including: The cloud server performs data parsing and data cleaning on the debugging information and the target capture records.
4. A packet tracing device based on an ARM embedded kernel, characterized in that, The device includes: The first debugging module is used to switch the gateway from normal mode to debugging mode and configure debugging parameters; the debugging parameters include multiple debugging levels and multiple packet matching conditions. The analysis module is used by the ARM embedded kernel to capture and analyze all packets from multiple specific nodes to obtain packet analysis results; the multiple specific nodes include: switch driver, SFP driver, wireless driver, VLAN driver, kernel protocol stack and routing forwarding module; The recording module is used to determine whether the target message has been captured within a preset time period from the message analysis results based on the message matching conditions, and to generate the corresponding target capture record. The second debugging module is used to determine a target debugging level from multiple debugging levels based on the debugging range; The sending module is used to set the gateway to the target debugging level, obtain the debugging information corresponding to the target debugging level, and send the debugging information and the target capture record to the cloud server; The generation module is used by the cloud server to analyze the debugging information and the target capture records to generate problem analysis reports for each specific node; The step of determining whether the target message is captured within a preset time and generating a corresponding target capture record includes: if the target message is captured within the preset time, a success record is generated and the success record is saved to flash memory; if the target message is not captured within the preset time, a failure record is generated and the failure record is saved to flash memory. The cloud server analyzes the debugging information and the target capture records to generate a problem analysis report for each specific node, including: the cloud server performs data preprocessing on the debugging information and the target capture records to obtain preprocessed data, analyzes the preprocessed data, and generates a message transmission diagram and a network anomaly report; The debugging levels include: Level 1, Level 2, and Level 3; Based on the first level, output the debugging information for all the nodes; Based on the second level, the output section specifies the debugging information for the node; Based on the third level, output partial debugging information for the specified node.
5. An electronic device, characterized in that, The device includes a memory and a processor, wherein the memory stores a computer program that executes the message tracing method based on an ARM embedded kernel as described in any one of claims 1 to 3 when the processor is running.
6. A computer-readable storage medium, characterized in that, It stores a computer program that, when run on a processor, executes the message tracing method based on an ARM embedded kernel as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Processing method and device for debugging information
CN106776303A
Message analysis method and device, electronic equipment and storage medium
CN112165494A