Network analysis method and system for communication abnormity, storage medium and computer equipment
By capturing and converting physical layer data into dump data for structured analysis, the method enhances the reliability and efficiency of network analysis, addressing the limitations of current methods in handling diverse SIM cards and operating systems.
Patent Information
- Application Number
- CN202411382434.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2024-12-31
AI Technical Summary
Current network analysis methods for communication anomalies lack universality and reliability due to the diversity of SIM cards and terminal operating systems, leading to inefficiencies in configuring wireless communication modules.
Capture physical layer data between the data terminal module and wireless communication module through a communication port, convert it into dump data, and input it into preset network packet analysis software for structured analysis, ensuring data integrity and reliability.
Guarantees reliable data capture and analysis, improving the efficiency and accuracy of network analysis by using graphical and structured methods to identify and resolve communication anomalies.
Smart Images

Figure CN119232607A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a network analysis method and system for communication anomalies, a storage medium, and a computer device. Background Art
[0002] The wireless communication module is connected to the terminal device (such as personal computer (PC), mobile phone, shared bicycle, shared power bank, remote meter reading terminal, etc.) through the Universal Serial Bus (USB) or Universal Asynchronous Receiver / Transmitter (UART), so as to provide the terminal with a network and a backend server for communication. Some important parameters, such as access point name (APN), user name, password, authentication method, protocol stack compatibility, backend address, port number, etc., need to be correctly configured for normal communication. However, due to the diversity of subscriber identity module (SIM) cards, operator configurations, and terminal operating systems, wireless communication modules often do not have a universal configuration and need to be adjusted according to actual conditions. At this time, an efficient and reliable network analysis method is needed. Summary of the invention
[0003] The present application mainly provides a network analysis method and system for communication anomalies, a storage medium and a computer device to solve the problem that the current network analysis method is not universal and reliable enough.
[0004] In order to solve the above technical problems, a technical solution adopted by the present application is: to provide a network analysis method and system for communication anomalies, a storage medium and a computer device. The network analysis method of the wireless communication module includes: in response to the communication anomaly between the data terminal module and the wireless communication module, capturing the physical layer data exchanged between the data terminal module and the wireless communication module through the communication port; converting the physical layer data into dump data; inputting the dump data into a preset network packet analysis software to convert the data format of the dump data into a general data format capable of structured network analysis to form data to be analyzed; and performing network analysis on the data to be analyzed.
[0005] By capturing the physical layer data interacting between the data terminal module and the wireless communication module through the communication port, without being processed by the debugging system of the terminal or module, the reliability of the data is guaranteed, that is, there is no dispute about the problem points between the sender and the receiver. The physical layer data is converted into dump data for further analysis, and then the dump data is input into the preset network packet analysis software, so that the dump data is converted into data that the user can use the network packet analysis software for structured analysis, thereby improving the efficiency and reliability of network analysis.
[0006] In some embodiments, the network analysis method for communication anomalies further includes: converting the physical layer data into dump data, including: inputting the physical layer data into a preset data processing application for processing to generate dump data in a preset base.
[0007] By inputting the physical layer data into a preset data processing application for processing, further analysis or processing can be facilitated, thereby improving the efficiency and accuracy of data processing.
[0008] In some embodiments, the network analysis method for communication anomalies further includes: the processing of the physical layer data by the preset data processing application includes: automatically adding or processing timestamps, fixed offsets, packet headers and escape characters.
[0009] By automatically adding or processing timestamps, fixed offsets, headers, and escape characters in basic data and converting them into the dump data, the application can ensure the accuracy, completeness, and consistency of the data during the conversion process, providing a reliable basis for subsequent data analysis and problem diagnosis.
[0010] In some embodiments, the network analysis method for communication anomalies further includes: the dump data is hexadecimal dump data.
[0011] The dump data is in hexadecimal format, which is convenient for debugging and analysis. Network packet analysis software can easily import and analyze hexadecimal dump data.
[0012] In some embodiments, the network analysis method for communication anomalies further includes: performing network analysis on the data to be analyzed, including: using the network packet analysis software to graphically analyze the data to be analyzed to locate abnormal data points that cause the communication anomaly.
[0013] By using network packet analysis software to graphically analyze the data to be analyzed, it is helpful to identify abnormal patterns in data packet transmission, helping technicians to effectively identify and locate the causes of communication anomalies, thereby improving the stability and security of the network.
[0014] In some embodiments, the network analysis method for communication anomalies further includes: the universal data format is a data packet capture format.
[0015] Using data in packet capture format can provide powerful support for network management and analysis, helping technicians better understand and optimize the network environment.
[0016] In some embodiments, the network analysis method for communication anomalies further includes: the data terminal module and the wireless communication module are connected and communicated via an asynchronous receiving / transmitting device or a universal serial bus.
[0017] The terminal and the wireless communication module can communicate efficiently, reliably and conveniently by using an asynchronous receiving / transmitting device or a universal serial bus connection, and also supports a wide range of application scenarios.
[0018] To solve the above technical problem, another technical solution adopted by the present application is to provide a storage medium having program data stored thereon, and the program data, when executed by a processor, implements the steps of the above method for automatically backfilling test data.
[0019] To solve the above technical problem, another technical solution adopted by the present application is to provide a computer device. The computer device includes a processor and a memory connected to each other, the memory stores a computer program, and when the processor executes the computer program, the steps of the method for automatic backfilling of test data as described above are implemented.
[0020] To solve the above technical problems, another technical solution adopted by the present application is to provide a network analysis system. The network analysis system includes a terminal device and a computer device, the terminal device includes a data terminal module and a wireless communication module that communicate with each other, and the computer device is in communication connection with the terminal device.
[0021] The beneficial effects of the present application are as follows: Different from the prior art, the present application discloses a network analysis method and system for communication anomalies, a storage medium and a computer device. By capturing the physical layer data interacting between the data terminal module and the wireless communication module through the communication port, without being processed by the debugging system of the terminal or module, the reliability of the data is guaranteed, that is, there is no dispute about the problem points between the sender and the receiver, and the physical layer data is converted into dump data to facilitate further analysis, and then the dump data is input into the preset network packet analysis software, so that the dump data is converted into data that the user can use the network packet analysis software for structured analysis, thereby improving the efficiency and reliability of network analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work, among which:
[0023] Figure 1 is a system schematic diagram of an embodiment of a network analysis system provided by the present application;
[0024] Figure 2 It is a flowchart of an embodiment of a network analysis method for communication anomalies provided by the present application;
[0025] Figure 3 It is a structural schematic diagram of an embodiment of the storage medium provided by the present application;
[0026] Figure 4 It is a structural schematic diagram of an embodiment of a computer device provided by the present application. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0028] The terms "first", "second", "third" in the embodiments of the present application are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first", "second", "third" can expressly or implicitly include at least one of the features. In the description of the present application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.
[0029] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0030] See also Figure 1 , Figure 1 It is a system diagram of an embodiment of a network analysis system provided by the present application.
[0031] The network analysis system includes a terminal device 100 and a computer device 200. The terminal device 100 includes a data terminal module 110 and a wireless communication module 120 that communicate with each other. The computer device 200 is connected to the terminal device 100 for communication. The computer device 200 is used to execute a network analysis method for communication anomalies.
[0032] The data terminal module 110 is used to input and output data, and the wireless communication module 120 realizes wireless data transmission and communication connection between the terminal device 100 and the backend server 300. The terminal device 100 and the backend server 300 interact with each other: the data of the terminal device 100 is initiated by the data terminal module 110 and forwarded to the backend server 300 via the wireless communication module 120 through the cellular network; the data of the backend server 300 is forwarded to the data terminal module 110 via the wireless communication module 120 through the cellular network for reception and processing.
[0033] The terminal device 100 can be a mobile phone, a tablet or a personal computer, etc., and the computer device 200 can also be a mobile phone, a tablet or a personal computer, etc. The computer device 200 is used to capture the physical layer data of the port interaction between each other when a communication anomaly occurs between the data terminal module 110 and the wireless communication module 120 of the terminal device 100, and locate the abnormal data points by analyzing the physical layer data for easy repair, thereby solving the communication anomaly between the data terminal module 110 and the wireless communication module 120.
[0034] Specifically, the present application provides a network analysis method for communication anomalies, see Figure 2 , Figure 2 1 is a flow chart of an embodiment of a network analysis method for communication anomalies provided by the present application. The network analysis method for communication anomalies includes:
[0035] Step 10: In response to the communication anomaly between the data terminal module and the wireless communication module, capture the physical layer data exchanged between the data terminal module and the wireless communication module through the communication port.
[0036] The data terminal module 110 provides a command line interface (CLI) or a graphical user interface (GUI) for users to interact with the system, providing users with a stable, efficient and secure operating environment, while hiding the complexity of the underlying hardware so that users can easily run applications and perform tasks.
[0037] This solution is applicable to terminal devices of all operating systems for network analysis, making it convenient for users using different operating systems to perform network analysis.
[0038] The wireless communication module 120 is a device for realizing wireless data transmission, and has the advantages of high flexibility, fast transmission speed, strong anti-interference ability and low cost.
[0039] The data terminal module 110 and the wireless communication module 120 communicate via an asynchronous receiving / transmitting device or a universal serial bus to achieve efficient, reliable and convenient communication, while also supporting a wide range of application scenarios.
[0040] Communication anomalies occur between the data terminal module 110 and the wireless communication module 120. Common communication anomalies include: the protocol stacks of the data terminal module 110 and the wireless communication module 120 are incompatible; the network parameters of the wireless communication module 120, such as the access point name, user name, password, and authentication method, are configured incorrectly; the server address and port configured in the data terminal module 110 are incorrect.
[0041] In response to the abnormal communication between the data terminal module 110 and the wireless communication module 120 , the computer device 200 captures the physical layer data exchanged between the data terminal module 110 and the wireless communication module 120 through the communication port.
[0042] Physical layer data is original protocol data that has not been tampered with in any way. The data source is reliable, but it is difficult to be directly used by currently commonly used network analysis methods to determine the cause of communication anomalies.
[0043] Generally, the physical layer data exchanged through the communication port is data initiated by the data terminal module 110 and forwarded to the background server 300 via the wireless communication module 120 through the cellular network, and data forwarded by the background server 300 to the data terminal module 110 for reception and processing via the wireless communication module 120 through the cellular network.
[0044] By using a data capture tool to capture the physical layer data interacting between the data terminal module 110 and the wireless communication module 120 through the communication port, the reliability of the data source is guaranteed, the problem that the currently commonly used network analysis methods are difficult to directly use physical layer data is solved, and the versatility of network analysis is improved.
[0045] Step 20: Convert the physical layer data into dump data.
[0046] Dumping data is to input the physical layer data into a preset data processing application for processing, and generate data in a preset base to facilitate subsequent analysis and processing.
[0047] Optionally, the format of the dumped data is a hexadecimal format in which a preset data processing application converts data in text format, and the data is more compact, readable and easy to process.
[0048] Optionally, the format of the dumped data is a binary format in which a preset data processing application converts data in text format.
[0049] Optionally, the format of the dumped data is an octal format converted by a preset data processing application program from data in text format.
[0050] Optionally, the format of the dumped data is a decimal format in which a preset data processing application converts data in text format.
[0051] The preset data processing application automatically adds or processes time stamps, fixed offsets, packet headers and escape characters to the physical layer data and converts them into dump data for further analysis or processing.
[0052] For example, the user inputs the parameters into a preset data processing application, the preset data processing application parses the parameters and obtains the timestamp length, flag length, original data file path, hexadecimal dump data file path, and then removes invalid data such as pure space lines and blank lines, skips the timestamp, adds an offset flag, restores the escaped data frame, removes the point-to-point protocol fixed format data and protocol header flag, and completes the conversion of the physical layer data into dump data.
[0053] By converting physical layer data into dump data, data integrity and consistency are ensured and data reliability is improved.
[0054] Step 30: Input the dumped data into a preset network packet analysis software to convert the data format of the dumped data into a common data format capable of performing structured network analysis, so as to form data to be analyzed.
[0055] The default network packet analysis software is mainly used to capture the interactive physical layer data, analyze and decode the dump data in the network.
[0056] The common data format is the packet capture format, which ensures that the captured packets have good compatibility and usability among different tools and platforms.
[0057] The data to be analyzed can be used by users for structured network analysis with the help of preset network packet analysis software, which makes it convenient for users to perform network analysis data and improves the efficiency of network analysis.
[0058] By inputting the dump data into the preset network packet analysis software through the universal serial bus or universal asynchronous receiver / transmitter interface, the data format of the dump data can be converted into a universal data format that can perform structured network analysis to form data to be analyzed, thereby improving the reliability of network analysis, facilitating users' analysis of data, and improving the efficiency of network analysis.
[0059] Step 40: Perform network analysis on the data to be analyzed.
[0060] In this method, network packet analysis software is used to graphically analyze the data to be analyzed so as to locate the abnormal data points that cause communication abnormalities.
[0061] Graphical analysis refers to the use of graphics and visual elements to represent data and analysis results. It is intuitive and has advantages such as easy comparison and flexibility. During the analysis process, the use of graphical analysis makes it easier for the computer device 200 to locate abnormal data points that cause communication anomalies, thereby improving the reliability of network analysis.
[0062] Specifically, with the data to be analyzed in this solution, users can perform network analysis on all operating systems, which greatly improves the versatility of network analysis for users.
[0063] See also Figure 3 , Figure 3 It is a structural diagram of an embodiment of the storage medium provided by the present application.
[0064] The storage medium 50 stores program data 51. When the program data 51 is executed by the processor, the following is achieved: Figure 1 The steps of the network analysis method for communication anomalies are described.
[0065] The program data 51 is stored in a storage medium 50, and includes a number of instructions for enabling a network device (such as a router, a personal computer, a server, or other network device) or a processor to execute all or part of the steps of the method described in each embodiment of the present application.
[0066] Optionally, the storage medium 50 can be a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, or other media that can store the program data 51.
[0067] See also Figure 4 , Figure 4The computer device 200 includes a processor 220 and a memory 210 connected to each other, the memory 210 stores a computer program, and when the processor 220 executes the computer program, the steps of the network analysis method for communication anomalies are implemented.
[0068] Different from the prior art, the present application discloses a network analysis method and system for communication anomalies, a storage medium and a computer device. By capturing the physical layer data interacting between the data terminal module and the wireless communication module through the communication port, without being processed by the debugging system of the terminal or module, the reliability of the data is guaranteed, that is, there is no dispute about the problem points of the sender and the receiver, and the physical layer data is converted into dump data for further analysis, and then the dump data is input into the preset network packet analysis software, so that the dump data is converted into data that the user can use the network packet analysis software for structured analysis, thereby improving the efficiency and reliability of network analysis.
[0069] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the storage medium embodiment and the electronic device embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0070] The present application can be used in many general or special computing system environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc.
[0071] In the several embodiments provided in this application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only illustrative, for example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0072] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0073] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0074] The above descriptions are merely embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A network analysis method for communication anomalies, characterized in that: The network analysis method of the wireless communication module comprises: In response to a communication anomaly between the data terminal module and the wireless communication module, capturing physical layer data exchanged between the data terminal module and the wireless communication module through a communication port; Converting the physical layer data into dump data; Inputting the dump data into a preset network packet analysis software to convert the data format of the dump data into a common data format capable of performing structured network analysis, so as to form data to be analyzed; Performing network analysis on the data to be analyzed.
2. The network analysis method for communication anomalies according to claim 1, characterized in that: The converting the physical layer data into dump data comprises: The physical layer data is input into a preset data processing application for processing to generate dump data in a preset base.
3. The network analysis method for communication anomalies according to claim 2, characterized in that: The preset data processing application program processes the physical layer data including: automatically adding or processing a timestamp, a fixed offset, a packet header, and an escape character.
4. The network analysis method for communication anomalies according to claim 2, characterized in that: The dump data is hexadecimal dump data.
5. The network analysis method for communication anomalies according to claim 1, characterized in that: The performing network analysis on the data to be analyzed includes: The network packet analysis software is used to graphically analyze the data to be analyzed to locate the abnormal data point that causes the communication abnormality.
6. The network analysis method for communication anomalies according to claim 1, characterized in that: The common data format is a data packet capture format.
7. The network analysis method for communication anomalies according to claim 1, characterized in that: The data terminal module communicates with the wireless communication module via an asynchronous receiving / transmitting device or a universal serial bus.
8. A storage medium having program data stored thereon, characterized in that: When the program data is executed by a processor, the steps of the network analysis method for communication anomalies as described in any one of claims 1 to 7 are implemented.
9. A computer device, characterized in that: The method comprises a processor and a memory connected to each other, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the network analysis method for communication anomalies according to any one of claims 1 to 7 are implemented.
10. A network analysis system, characterized in that: The network analysis system comprises a terminal device and a computer device as claimed in claim 9, wherein the terminal device comprises a data terminal module and a wireless communication module that communicate with each other, and the computer device is in communication connection with the terminal device.
