A network fault analysis method, apparatus, device, medium and program product

By constructing a knowledge question-and-answer database and calculating vector similarity, combined with vehicle network system log data and event association rules, the problem of low efficiency in vehicle network fault analysis in existing technologies is solved, enabling fast and accurate fault location and analysis, and improving the availability and stability of the system.

CN123145134APending Publication Date: 2026-11-20CHINA MOBILE SHANGHAI ICT CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510647810.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-20
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing technologies rely on manual log alignment and step-by-step troubleshooting in vehicle network fault analysis, which is inefficient, dependent on personal experience, ignores the correlation between nodes, and makes the analysis complex and time-consuming.

Method used

By constructing a knowledge question-and-answer database, using vector similarity calculation to match fault descriptions, generating a network fault rule model, and combining it with vehicle network system log data and event association rules for analysis, network fault analysis results are generated and a perception swimlane diagram is displayed.

Benefits of technology

It improves the efficiency and accuracy of vehicle network fault analysis, reduces human interference, shortens fault location time, and enhances system availability and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123145134A_ABST
    Figure CN123145134A_ABST
Patent Text Reader

Abstract

The application discloses a network fault analysis method, device, equipment, medium and program product, according to the vehicle networking network fault description input by a user, a target knowledge question and answer pair is matched in a preset knowledge question and answer pair database; according to the target knowledge question and answer pair and the fault occurrence time input by the user, a network fault rule model is generated, the network fault rule model includes a fault occurrence time range, a target node to be checked, a target event and a target event association rule; target log data of a vehicle networking system related to the fault occurrence time range, the target node and the target event is acquired; network fault analysis is performed according to the target log data and the target event association rule, and a network fault analysis result is generated. By the application, the correlation between each node and event in the vehicle networking system can be considered, and the vehicle networking network fault analysis efficiency and accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle networking technology, and in particular to a network fault analysis method, apparatus, equipment, medium, and program product. Background Technology

[0002] With the rapid increase in the popularity of intelligent connected vehicles, automakers are placing higher demands on the rapid location and resolution of end-to-end network faults in the vehicle-to-everything (V2X) network. During V2X communication, network faults depend on a variety of factors, including the vehicle's infotainment system, cloud applications, core network transmission, and fluctuations in the wireless environment. Sensing and analyzing end-to-end V2X log data has become a crucial foundation for quickly locating network faults.

[0003] Existing technologies for end-to-end log analysis and rapid fault location in vehicle-to-everything (V2X) networks primarily rely on collecting logs from dispersed nodes and analyzing the behavior of each node independently. When analyzing latency and network faults, network conditions are assessed by comparing timestamps from different nodes. When a problem is detected (such as slow response or excessive latency), each step is investigated progressively to pinpoint the issue.

[0004] However, the inventors discovered that existing technologies have at least the following problems: current log analysis methods mostly rely on manual log alignment and analysis, making the process of troubleshooting complex, time-consuming, and inefficient, and heavily reliant on personal experience, thus having significant limitations. Since the Internet of Vehicles involves multiple nodes including in-vehicle terminals, networks, and the cloud, traditional methods often focus on events at individual nodes while neglecting the correlation between events and the patterns of system state changes. Summary of the Invention

[0005] The purpose of this invention is to provide a network fault analysis method, apparatus, device, medium, and program product that can consider the correlation between nodes and events in the vehicle network system, thereby improving the efficiency and accuracy of vehicle network fault analysis.

[0006] To achieve the above objectives, embodiments of the present invention provide a network fault analysis method, comprising:

[0007] Obtain the user-input description of the vehicle network fault;

[0008] Based on the description of the vehicle network fault, a target knowledge question and answer pair is matched in a preset knowledge question and answer pair database; wherein, the knowledge question and answer pair includes a question part and an answer part, the question part is used to describe the network fault phenomenon of the vehicle network, and the answer part includes nodes, events and event association rules used to characterize the relationship between the nodes and the events;

[0009] Based on the target knowledge question-and-answer pair and the fault occurrence time input by the user, a network fault rule model is generated; wherein, the network fault rule model includes the fault occurrence time range, the target node to be investigated, the target event, and the target event association rules;

[0010] Acquire target log data of the vehicle-to-everything (V2X) system related to the time range of the fault occurrence, the target node, and the target event;

[0011] Network fault analysis is performed based on the target log data and the target event association rules to generate network fault analysis results.

[0012] As an improvement to the above solution, the method further includes:

[0013] A data structure for acquiring preset network fault knowledge Q&A information; wherein, the data structure includes knowledge Q&A number, network fault phenomenon description, root cause of the problem, delimitation suggestion, suggested troubleshooting node, event keywords and event association rules;

[0014] Based on the data structure of the network fault knowledge question and answer information, generate several knowledge question and answer pairs;

[0015] The knowledge question-answer pairs are vectorized and stored to construct a knowledge question-answer pair database; wherein, the knowledge question-answer pair database includes several processed knowledge question-answer pairs.

[0016] As an improvement to the above solution, the step of matching target knowledge question-answer pairs in a preset knowledge question-answer pair database based on the vehicle network fault description includes:

[0017] The vehicle network fault description is vectorized.

[0018] Using a vector similarity calculation method, a knowledge question and answer pair that matches the description of the vehicle network fault is queried in the preset knowledge question and answer pair database, and this pair is used as the target knowledge question and answer pair.

[0019] As an improvement to the above scheme, the method of using vector similarity calculation to query the preset knowledge question-answer pair database for knowledge question-answer pairs that match the description of the vehicle network fault, and using these as target knowledge question-answer pairs, includes:

[0020] Using a vector similarity calculation method, multiple knowledge question-answer pairs that match the vehicle network fault description are queried in the preset knowledge question-answer pair database and used as candidate knowledge question-answer pairs;

[0021] The system receives user input instructions to select and / or modify the candidate knowledge question-answer pairs, thereby obtaining the target knowledge question-answer pair.

[0022] As an improvement to the above solution, the method further includes:

[0023] Real-time collection of log data from each node in the vehicle networking system;

[0024] The step of acquiring target log data of the vehicle-to-everything (V2X) system related to the time range of the fault occurrence, the target node, and the target event includes:

[0025] Based on the time range of the fault occurrence, the target node, and the target event, the log data of all nodes is filtered to obtain relevant log data, which is then used as the target log data.

[0026] As an improvement to the above solution, the vehicle-to-everything (V2X) system includes a vehicle terminal, a network terminal, and a cloud terminal, and each node in the V2X system includes nodes in the vehicle terminal, the network terminal, and the cloud terminal.

[0027] As an improvement to the above solution, the step of performing network fault analysis based on the target log data and the target event association rules to generate network fault analysis results includes:

[0028] Based on the target event association rules in the network fault rule model, time-series analysis is performed on the selected target log data to determine whether the target events occur in accordance with the order and time constraints required by the target event association rules, so as to generate network fault analysis results.

[0029] As an improvement to the above solution, after acquiring the target log data of the vehicle-to-everything (V2X) system related to the fault occurrence time range, the target node, and the target event, the method further includes:

[0030] Based on the target log data and the target event association rules, a dataset that conforms to the perceptual swimlane display rules is generated;

[0031] Based on the dataset, a perceptual swimlane diagram is generated; wherein, the perceptual swimlane diagram is used to display the events corresponding to different nodes in the vehicle network system and the data flow between different nodes.

[0032] As an improvement to the above solution, the method further includes:

[0033] The network fault analysis results and the perception swimlane diagram are displayed.

[0034] This invention also provides a network fault analysis device, comprising:

[0035] The user input module is used to obtain the vehicle network fault description input by the user;

[0036] The knowledge question and answer matching module is used to match target knowledge question and answer pairs in a preset knowledge question and answer pair database according to the description of the vehicle network fault; wherein, the knowledge question and answer pair includes a question part and an answer part, the question part is used to describe the network fault phenomenon of the vehicle network, and the answer part includes nodes, events and event association rules used to characterize the relationship between the nodes and the events;

[0037] The network fault rule generation module is used to generate a network fault rule model based on the target knowledge question-and-answer pair and the fault occurrence time input by the user; wherein, the network fault rule model includes the fault occurrence time range, the target node to be investigated, the target event, and the target event association rules;

[0038] The log data acquisition module is used to acquire target log data of the vehicle network system related to the fault occurrence time range, the target node, and the target event;

[0039] The network fault analysis module is used to perform network fault analysis based on the target log data and the target event association rules, and generate network fault analysis results.

[0040] As an improvement to the above solution, the device further includes:

[0041] The perception swimlane graph generation module is used to generate a dataset that conforms to the perception swimlane display rules based on the target log data and the target event association rules; and to generate a perception swimlane graph based on the dataset; wherein the perception swimlane graph is used to display the events corresponding to different nodes in the vehicle network system and the data flow between different nodes.

[0042] This invention also provides a network fault analysis device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the network fault analysis method as described in any of the above embodiments.

[0043] This invention also provides a computer-readable storage medium, which includes a stored computer program, wherein the computer program, when running, controls the device where the computer-readable storage medium is located to execute the network fault analysis method as described in any of the above embodiments.

[0044] This invention also provides a computer program product, which includes a computer program or computer instructions. When the computer program or computer instructions are executed by a processor, they implement the network fault analysis method as described in any of the above embodiments.

[0045] Compared with existing technologies, the network fault analysis method, apparatus, equipment, medium, and program products disclosed in this invention utilize vector knowledge base retrieval to generate network fault rule models. By defining the necessary correlation of fault events from a priori network fault knowledge base, network fault analysis of vehicle-to-everything (V2X) systems can be achieved. This improves upon the inefficiency of traditional log analysis methods. By generating network fault rule models through an accumulated knowledge base, it no longer relies entirely on personal experience, thereby improving the efficiency and accuracy of V2X network fault analysis and enhancing the intelligence of fault location in network log analysis. Attached Figure Description

[0046] Figure 1 This is a flowchart illustrating a network fault analysis method provided in an embodiment of the present invention;

[0047] Figure 2 This is a schematic diagram of the network fault analysis platform and visualization platform in this embodiment of the invention;

[0048] Figure 3 This is a schematic diagram of the network fault rule model in an embodiment of the present invention;

[0049] Figure 4 This is a schematic diagram of a dataset that conforms to the perceptual swimlane display rules in an embodiment of the present invention;

[0050] Figure 5 This is a schematic diagram of the perceived lane map in an embodiment of the present invention;

[0051] Figure 6 This is a schematic diagram showing the perception swimlane diagram and network fault analysis results in an embodiment of the present invention;

[0052] Figure 7 This is a schematic diagram of the structure of a network fault analysis device provided in an embodiment of the present invention. Detailed Implementation

[0053] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0054] In the description of this application, it should be understood that the terms "center", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.

[0055] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, unless otherwise stated, "a plurality of" means two or more.

[0056] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection between two components. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.

[0057] See Figure 1 This is a flowchart illustrating a network fault analysis method provided in an embodiment of the present invention. The embodiment of the present invention provides a network fault analysis method, the method comprising steps S11 to S15:

[0058] S11. Obtain the user-input description of the vehicle network fault;

[0059] S12. Based on the vehicle network fault description, match the target knowledge question and answer pair in the preset knowledge question and answer pair database; wherein, the knowledge question and answer pair includes a question part and an answer part, the question part is used to describe the network fault phenomenon of the vehicle network, and the answer part includes nodes, events and event association rules used to characterize the relationship between the nodes and the events;

[0060] S13. Generate a network fault rule model based on the target knowledge question-and-answer pair and the fault occurrence time input by the user; wherein, the network fault rule model includes the fault occurrence time range, the target node to be investigated, the target event, and the target event association rules;

[0061] S14. Obtain target log data of the vehicle network system related to the fault occurrence time range, the target node, and the target event;

[0062] S15. Perform network fault analysis based on the target log data and the target event association rules, and generate network fault analysis results.

[0063] In this embodiment of the invention, the network fault analysis method is applied to a network fault analysis system. See [link / reference]. Figure 2 This is a schematic diagram of the network fault analysis platform and visualization platform in an embodiment of the present invention. The system includes a vehicle-to-everything (V2X) system, a network fault analysis platform, and a visualization platform. The V2X system is a complete end-to-end software and hardware integrated system, including a vehicle-side, a network-side, and a cloud-side. Each of the vehicle-side, network-side, and cloud-side includes at least one key node. For example, the vehicle-side includes a vehicle infotainment system, a T-Box, etc.; the network-side includes wireless base stations, core network equipment, etc.; and the cloud-side includes a V2X management platform, application servers, etc.

[0064] The network fault analysis platform includes data processing modules such as data collection, data cleaning, and data transformation, as well as modules such as a knowledge question-and-answer pair database (network fault vector knowledge base), a network fault rule model, and a data analysis engine. The network fault rule model refers to a multi-node event association model in vehicle-to-everything (V2X) network fault information. It retrieves knowledge question-and-answer pairs corresponding to user-inputted network fault questions from the knowledge question-and-answer pair database and transforms them into a model of multi-node event associations for network faults. This model is used to determine matching events for faults based on log data from multiple nodes. The data analysis engine is used to acquire log data from relevant nodes and perform matching and analysis according to the rules in the network fault rule model.

[0065] Specifically, the network fault analysis platform pre-constructs a knowledge question-and-answer pair database. This database includes several knowledge question-and-answer pairs, each consisting of a question and an answer. The question describes the network fault phenomenon in the vehicle-to-everything (V2X) network. The answer includes the root cause, delimitation suggestions, suggested nodes for investigation, events, and event association rules. The root cause refers to the most fundamental and initial reason for the fault or problem in V2X network fault scenarios, found through in-depth analysis of the problem phenomenon, combined with knowledge base experience and data association mining. The delimitation suggestions represent recommendations for delimiting the current network fault problem, and the event association rules characterize the relationship between nodes and events. For example, the event association rule {1-A, 2-D, 3-I, T<5S} associates the relationships between node 1 and event A, node 2 and event D, and node 3 and event I, representing the sequence of events occurring on different nodes during a session or connection process. For instance, establishing a connection between a vehicle-to-everything (V2X) application and a cloud-based TSP server requires passing through node 1 (event A), node 2 (event B), and node 3 (event I). If these three events occur consecutively and in sequence within T<5S, the connection is considered normal; otherwise, it is considered abnormal. Similarly, the event association rule [1-B, 2-E, 3-K, T<5S] indicates that node 1 (event B), node 2 (event E), and node 3 (event K) occur without any specific order within T<5S, used to determine the normality or abnormality of asynchronous events. This method is not limited to defining more event association rules using more symbols.

[0066] In practical applications, when a network failure occurs in the vehicle-to-everything (V2X) system, the V2X user inputs a description of the current network failure. The network failure analysis platform obtains this description and uses it as the question portion. It then matches a target knowledge question-and-answer pair with a pre-defined knowledge question-and-answer database. Furthermore, based on the target knowledge question-and-answer pair and the user-input time of the failure, a network failure rule model is generated, including the time range of the failure, suggested target nodes for investigation, target events, and association rules for those events.

[0067] Furthermore, the data acquisition module is pre-deployed at various nodes in the vehicle-to-everything (V2X) system to acquire log data from each node. The network fault analysis platform uses the data acquisition module to acquire target log data of the V2X system related to the fault occurrence time range, the target node, and the target event. Based on the target log data and the association rules of the target event, it performs network fault analysis and generates network fault analysis results.

[0068] The technical means employed in the embodiments of the present invention have the following beneficial effects:

[0069] By matching target knowledge question-answer pairs with a pre-set knowledge question-answer pair database, relevant fault information can be quickly found based on the fault description entered by the user, providing a basis for accurate fault analysis and helping to improve the efficiency and accuracy of fault location.

[0070] A network fault rule model is generated based on the fault occurrence time, which clarifies the time range of the fault occurrence, the target node to be investigated, the target event, and the association rules of the target event. This makes the subsequent log data more targeted, only acquiring target log data related to the fault, reducing the amount of data processing and improving analysis efficiency.

[0071] By utilizing log data and target event association rules from vehicle-to-everything (V2X) systems for network fault analysis, we can fully extract information from the data, determine the cause of the fault based on the data, avoid the potential bias that may occur when relying solely on experience, and improve the reliability of the fault analysis results.

[0072] Rapid and accurate fault location and reliable fault analysis results help maintenance personnel or technicians take timely and effective measures to resolve network faults, shorten fault handling time, reduce downtime of the vehicle network system due to faults, and improve the availability and stability of the vehicle network system.

[0073] The pre-set knowledge Q&A database can continuously accumulate and update relevant knowledge about vehicle network faults, forming a knowledge system that allows different personnel to query and refer to information when encountering similar faults. This enables knowledge sharing and inheritance, which is conducive to improving the fault management level of the entire vehicle network system.

[0074] As a preferred embodiment, the present invention further implements the above embodiments, and the method further includes:

[0075] By pre-deploying data collection modules at each node of the vehicle network system, log data of each node in the vehicle network system is collected in real time;

[0076] Preferably, the method further includes:

[0077] By using pre-deployed data cleaning and data conversion modules, the log data of each node in the real-time collected vehicle network system is cleaned and converted in format to obtain the processed log data of each node.

[0078] In an embodiment of the present invention, see Figure 2Network perception tools are deployed at each relevant node of the vehicle-to-everything (V2X) system to collect log data. During deployment, non-intrusive probes are used whenever possible, along with application performance analysis tools that require no modification to the application source code or have minimal impact on the application itself, and network performance monitoring and analysis tools that minimize the impact on network traffic. Furthermore, data cleaning and data transformation modules are deployed to clean and convert the collected log data.

[0079] The explanations for the data collection module, data transformation module, and data cleaning module are as follows:

[0080] Data collection module: Acquires real-time streaming or batch log source data from vehicles, networks, and the cloud using end-to-end network sensing tools. Understandably, the above-mentioned solution for acquiring streaming or batch log source data using end-to-end network sensing tools can refer to existing technical solutions.

[0081] Data Conversion Module: The text information in the original log files is parsed according to a predetermined format, the structure of each log record is identified, the timestamp format is standardized, and the log text data is converted into a timestamp-log text format for easier subsequent processing and analysis. Log text data format conversion methods can also employ existing technical solutions, such as using Python pandas libraries and regular expression matching for text timestamps.

[0082] The data cleaning module removes duplicate data, handles missing values, removes irrelevant information or noise from logs, and corrects data errors. Data cleaning also utilizes existing technologies such as Python Pandas and R, providing rich libraries and functions to perform complex cleaning tasks.

[0083] Specifically, the process of deploying the aforementioned data processing module in the vehicle networking system is explained:

[0084] On the vehicle side: By deploying a log collection agent on vehicle terminals (such as T-Box, in-vehicle infotainment system, etc.), log data generated during vehicle operation is collected in real time or periodically. These logs may contain interaction information from vehicle communication modules, abnormal sensor data records, etc. A self-developed network probe SDK can be used to export the DLT logs of the vehicle ECU to obtain diagnostic log information for ECU applications.

[0085] On the network side: Log collection devices are deployed at key nodes of the vehicle-to-everything (V2X) communication network (such as wireless base stations and core network equipment) to acquire network-layer logs, such as network connection establishment and release records, signal quality change logs, etc. The network side can extract corresponding service quality-related information through the DPI data of the N3 and N6 interfaces.

[0086] In the cloud: Application runtime logs, user operation logs, and interaction logs with vehicles and the network are collected on cloud servers (such as vehicle network management platforms and application servers). TCPDump is deployed on the relevant cloud servers to capture network packets. On the cloud application side, Skyworking tools are used to obtain application performance metrics and call chain information, as well as the cloud application's own logs.

[0087] Furthermore, the system performs cleaning and transformation operations such as format standardization and timestamp alignment. Logs from different data sources have varying formats; for example, vehicle-side logs may be in binary format, network-side logs are in text format with different field separators, and cloud-side logs are in JSON format. The system first parses the logs, extracts key information, and then reassembles them according to a predefined unified format. Taking CSV format as an example, each node's log is stored as a "node name.csv" file containing "timestamp - log payload text". Since timestamps from different data sources may have timezone differences and varying precision, timestamp standardization is necessary. All timestamps are converted to a unified timezone (e.g., UTC) and their precision is standardized (e.g., accurate to milliseconds) to ensure the accuracy of subsequent time-range-based data processing and analysis.

[0088] Based on this, step S14, namely obtaining the target log data of the vehicle network system related to the fault occurrence time range, the target node, and the target event, includes:

[0089] Based on the time range of the fault occurrence, the target node, and the target event, the log data of all nodes is filtered to obtain relevant log data, which is then used as the target log data.

[0090] By employing the technical means of this invention, data processing modules such as data collection, data cleaning, and data transformation are deployed at key nodes in the vehicle, network, and cloud, enabling timely and effective perception of log data from each node of the vehicle network system, thus laying a data foundation for subsequent vehicle network fault analysis.

[0091] As a preferred embodiment, the present invention is further implemented based on any of the above embodiments, and the method further includes: constructing a knowledge question-answering database.

[0092] Preferably, the construction of the knowledge question-answering pair database includes the following steps:

[0093] A data structure for acquiring preset network fault knowledge Q&A information; wherein, the data structure includes knowledge Q&A number, network fault phenomenon description, root cause of the problem, delimitation suggestion, suggested troubleshooting node, event keywords and event association rules;

[0094] Based on the data structure of the network fault knowledge question and answer information, generate several knowledge question and answer pairs;

[0095] The knowledge question-answer pairs are vectorized and stored to construct a knowledge question-answer pair database; wherein, the knowledge question-answer pair database includes several processed knowledge question-answer pairs.

[0096] Specifically, in this embodiment of the invention, the data structure of the network fault knowledge Q&A information originates from: common network problems and solutions for automotive companies obtained from the delivery team and technical team; and from the one-click order information from automotive company customers on the vehicle networking self-service platform, including problem descriptions, additional logs, and subsequent solutions from the customer network problem tracking system JIRA, etc., and is edited to generate a data structure format including knowledge Q&A number, network fault phenomenon description, root cause of the problem, boundary suggestions, suggested investigation nodes, event keywords, and event association rules, as shown in Table 1:

[0097] Table 1. Data Structure of Network Fault Knowledge Q&A Information

[0098]

[0099] In Table 1, fields 01 and 02 represent the knowledge question and answer number and the description of the current network fault, respectively; 03 - root cause of the knowledge problem: if the logs of each node match the event association rules given in 08, it is highly likely to match the root cause of the current problem description; 04 - current problem delimitation suggestion: representing the suggestion for delimiting the current problem. The nodes in this table represent the end-to-end nodes of the vehicle network, such as T-Box, vehicle infotainment system, wireless network, core network, UPF, cloud applications, etc.; 05, 06, and 07 suggest checking the nodes and the relevant event keywords in the logs of each node; 08 - event association rules: constituting the data structure for defining the knowledge question and answer information of the network problem.

[0100] Based on the network problem knowledge question-and-answer information data structure, knowledge question-and-answer pairs are generated. Following the rule of "01-02 as questions, 03-08 as reference answers," the collected information is organized into network problem knowledge question-and-answer pairs. For example, the question section describes the specific phenomenon of vehicle-to-everything (V2X) communication interruption, while the reference answer section includes information such as the root cause of the problem, boundary suggestions, troubleshooting nodes, event keywords, and event association rules.

[0101] Furthermore, an embedding model is used to vectorize and store all vehicle network fault knowledge question-and-answer pairs in a vector knowledge base. For example, the AutoTokenizer and AutoModel modules of the transformers library in Python are used to call the bge-large-zh Embedding model interface. This model can efficiently represent the semantics of Chinese text using vectorization. All vehicle network fault knowledge question-and-answer pairs are input into the bge-large-zh model to generate corresponding vectors. Elasticsearch is used as the vector database, and an index named "vehicle_network_issue" is created through the elasticsearch-py library in Python. The generated vectors and their corresponding original knowledge question-and-answer pairs are stored in this index, realizing the mapping between vectors and original data.

[0102] By employing the technical means of this invention, knowledge question-and-answer pairs are vectorized and stored, transforming text information into a vector form that is easily processed by computers, thus greatly improving the efficiency of knowledge retrieval. In practical applications, when it is necessary to match relevant knowledge question-and-answer pairs based on the fault description input by the user, the vector-based calculation and matching algorithm can quickly and accurately find the most similar knowledge question-and-answer pairs, providing timely and effective support for fault analysis.

[0103] In a preferred embodiment, step S12, namely, matching the target knowledge question-answer pair in a preset knowledge question-answer pair database based on the vehicle network fault description, includes steps S121 and S122:

[0104] S121. The vehicle network fault description is vectorized.

[0105] S122. Using a vector similarity calculation method, query the preset knowledge question and answer pair database to find the knowledge question and answer pair that matches the description of the vehicle network fault, and use it as the target knowledge question and answer pair.

[0106] In this embodiment of the invention, the vehicle network user inputs a description of the current vehicle network fault on the system interface, such as "The vehicle cannot connect to the cloud server normally, and the communication indicator light is flashing abnormally." The system vectorizes the user's input question text and calculates vector similarity to find the knowledge question-answer pair most similar to the current question, which is then used as the target knowledge question-answer pair. For example, under the "vehicle_network_issue" index in the ElasticSearch vector library, the KNN (K-Nearest Neighbors) algorithm is used to find the knowledge question-answer pair that is semantically closest to the user's input question text.

[0107] More preferably, step S122, namely, using the vector similarity calculation method to query the preset knowledge question-answer pair database for a knowledge question-answer pair that matches the description of the vehicle network fault, as the target knowledge question-answer pair, includes:

[0108] Using a vector similarity calculation method, multiple knowledge question-answer pairs that match the vehicle network fault description are queried in the preset knowledge question-answer pair database and used as candidate knowledge question-answer pairs;

[0109] The system receives user input instructions to select and / or modify the candidate knowledge question-answer pairs, thereby obtaining the target knowledge question-answer pair.

[0110] In this embodiment of the invention, vector similarity calculation is first used to find and display multiple knowledge question-answer pairs that are most similar to the current question. Then, based on relevant control commands input by the user, such as selection commands or modification commands, the final target knowledge question-answer pair is determined from the multiple knowledge question-answer pairs.

[0111] As an example, the KNN search algorithm is used to find the three knowledge question-answer pairs that are semantically closest to the user's input question text. The system interface displays information about these three closest network fault knowledge question-answer pairs, including the problem description, root cause, delimitation suggestions, troubleshooting nodes, event keywords, and event association rules, for the user's reference. The user selects the knowledge question-answer pair from the three displayed that best matches the current fault situation as the target knowledge question-answer pair. During this process, the user can use the default knowledge question-answer information data or edit the suggested troubleshooting nodes, event keywords, or event association rules according to the actual situation. For example, the user may believe that a certain node in the original suggested troubleshooting nodes is irrelevant to the current fault and can delete it; or add new event keywords to improve the accuracy of the troubleshooting, thus obtaining the final target knowledge question-answer pair.

[0112] Furthermore, the user inputs the time of the fault occurrence, accurate to the second or even millisecond level, such as "2024-10-09T14:22:02". The user submits the selected or edited target knowledge question-and-answer pair data and the fault occurrence time to the platform so that in subsequent step S13, the network fault analysis platform can generate a network fault rule model based on the target knowledge question-and-answer pair and the fault occurrence time input by the user.

[0113] As an example, Python is used to convert user-submitted Q&A data and fault occurrence times into a predefined JSON format. For instance, the fault report time is stored in the "timestamp" field, the log time range to be investigated (e.g., 20 seconds before and after the fault report) is stored in the "timescope" field, and event keywords and event association rules for suggested investigation nodes are stored in fields such as "suggested_question_locations". The generated JSON data forms a rule description of the corresponding network fault, which includes the fault occurrence time range, the nodes to be investigated and event keywords, and the timing requirements of the events. For example, the "order" field indicates that events in the UE and SMF nodes occur in sequence, and the "timeslot" field indicates that the event occurrence time is limited to 100ms, providing a clear basis for subsequent data analysis.

[0114] See Figure 3 This is a schematic diagram of a network fault rule model in an embodiment of the present invention. The network fault rule model includes information such as the fault occurrence time range, the target node to be investigated, the target event, and the target event association rules.

[0115] By employing the technical means of this invention, the description of vehicle network faults is vectorized, and then queried in a knowledge question-and-answer pair database using a vector similarity calculation method. This allows for the rapid and accurate identification of multiple knowledge question-and-answer pairs similar to the input fault description as candidates. The resulting pool of candidate knowledge question-and-answer pairs provides users with various possible fault solutions or analytical approaches. Users can compare and filter these candidate solutions based on their specific circumstances, selecting the knowledge question-and-answer pair that best suits the current fault scenario, thereby obtaining more comprehensive and practical fault handling suggestions. Furthermore, user modifications to candidate knowledge question-and-answer pairs can be fed back into the knowledge question-and-answer pair database for updating and optimizing the relevant knowledge. With continuous user use and feedback, the knowledge question-and-answer pair database gradually accumulates more practical cases and optimization information, making it more complete and accurate, thereby improving the performance and reliability of the entire fault analysis system.

[0116] As a preferred embodiment, the present invention further implements the above embodiments. Step S15, namely, performing network fault analysis based on the target log data and the target event association rules to generate network fault analysis results, includes:

[0117] Based on the target event association rules in the network fault rule model, time-series analysis is performed on the selected target log data to determine whether the target events occur in accordance with the order and time constraints required by the target event association rules, so as to generate network fault analysis results.

[0118] In this embodiment of the invention, the data analysis engine selectively filters log records related to fault analysis from massive log data based on the node and event keywords defined in the network fault rule model. Then, the acquired log data is matched and analyzed according to the rules in the network fault rule model. For each log record, it is checked whether it contains the event keywords defined in the rules, and whether the timing of the events conforms to the requirements of the event association rules. For example, for the rule {1-A, 2-D, 3-I, T<5S}, it is checked whether event A of node 1, event D of node 2, and event I of node 3 appear sequentially in the log, and whether the time interval between these three events is less than 5 seconds. Based on the results of the rule matching analysis, a structured network fault analysis result is generated. The successfully matched log records are organized according to a predetermined format, marking fault-related nodes, events, times, and other information, while also associating the root cause of the fault, delimitation suggestions, and other information with the log records.

[0119] As an example, the data analysis engine uses the Python pandas library to search the corresponding log CSV files based on the nodes specified in the network fault rule model (such as UE and SMF) and the fault occurrence time range (20 seconds before and after). For example, for UE logs, it searches for log records within 20 seconds before and after the time "2024-10-09T14:22:02"; for SMF logs, it similarly searches for log records containing specific keywords within this time range, such as "Update Bearer Request" and "Modify BearerCommand".

[0120] The extracted log records are subjected to keyword matching to filter out log entries containing specified event keywords. Based on the event association rules in the network fault rule model, time-series analysis is performed on the filtered log entries to determine whether the events occurred in the order and within the time limits required by the rules. For example, it determines whether the "Update BearerRequest" and "Modify Bearer Command" events of the SMF node and the "Insufficient Bearer Resource" event of the UE node occurred consecutively and sequentially within 100ms. Based on the log analysis results, network fault analysis results are generated, such as determining whether the fault conforms to a certain network fault rule in the knowledge base, as well as possible causes and suggested solutions.

[0121] By employing the technical means of this invention, and through time-series analysis of target log data, it rigorously determines whether target events occur in accordance with the order and time constraints required by the target event association rules. This allows for the precise identification of the specific causes of network failures, reducing interference from human factors. This invention can quickly and accurately generate network failure analysis results, helping technicians to rapidly locate problems and take effective solutions, thereby shortening fault handling time, reducing service interruptions in the vehicle-to-everything (V2X) system due to failures, and minimizing the impact on business operations.

[0122] As a preferred embodiment, the present invention further implements the above embodiments. After step S13, i.e., after obtaining the target log data of the vehicle network system related to the fault occurrence time range, the target node, and the target event, the method further includes step S16:

[0123] Based on the target log data and the target event association rules, a dataset conforming to the perceptual swimlane display rules is generated; based on the dataset, a perceptual swimlane graph is generated; wherein, the perceptual swimlane graph is used to display the events corresponding to different nodes in the vehicle network system and the data flow between different nodes.

[0124] In an embodiment of the present invention, see Figure 4 This diagram illustrates a dataset conforming to the perceptual swimlane display rules in an embodiment of the present invention. Log records conforming to the rules are organized and formatted to generate a dataset that conforms to the perceptual swimlane display rules. This dataset contains fault-related node information, event information, time information, etc., providing data support for subsequent visualization.

[0125] Furthermore, see Figure 5 This is a schematic diagram of the perceptual swimlane graph in an embodiment of the present invention. After generating a dataset that conforms to the perceptual swimlane display rules, a perceptual swimlane graph is generated based on the dataset.

[0126] The perception swimlane analysis method proposed in this invention, based on real-time network performance and data perception, displays the communication status, performance indicators, and data flow process of different nodes (such as vehicle-side, network-side, and cloud-side). Its purpose is to analyze the perception and processing capabilities of data and events at different nodes. Using a swimlane diagram to display the log data of each node at the vehicle-side, network-side, and cloud-side not only clearly shows the interaction and data flow between nodes but also helps analyze network faults in the vehicle-to-everything (V2X) network, clearly demonstrating data transmission delays and event correlations between these nodes.

[0127] By employing the technical means of this invention, the perceptual swimlane approach offers advantages such as faster problem localization from an integrated perspective and easier identification of latency and event timing issues across nodes. Analysts can view the global data flow in a single chart without having to search across multiple systems. This invention visualizes the correlation between events across multiple nodes through multi-swimlane visualization and provides network fault rule matching judgments based on a knowledge base. This allows for an intuitive view of whether a fault conforms to past knowledge base accumulation and provides conclusive recommendations. This reduces the complexity of multi-department coordination and improves the efficiency of fault localization.

[0128] In a preferred embodiment, the method further includes step S17:

[0129] S17. Display the network fault analysis results and the perception swimlane diagram.

[0130] In this embodiment of the invention, the network fault analysis platform also includes a sensing swimlane front-end and back-end, which are used for sensing swimlane services, responsible for visualizing logs, and providing back-end data to the front-end for display.

[0131] See Figure 6 This is a schematic diagram showing the perception swimlane diagram and network fault analysis results in this embodiment of the invention. For example, the perception swimlane backend imports a dataset generated by a data analysis engine. The event relationships between each node are displayed according to the network fault rule model, presenting the interaction and event sequence between different nodes during the fault occurrence process in an intuitive way. For example, the timing relationship between the "Update Bearer Request" and "Modify BearerCommand" events of the SMF node and the "Insufficient Bearer Resource" event of the UE node is displayed graphically. If the actual event occurrence conforms to the network fault rules in the knowledge base (e.g., the actual duration is 80ms, less than the 100ms specified in the rule), further investigation and confirmation are carried out according to the root cause given by the knowledge problem. For example, the system prompts "Inconsistent user IMS APN subscription rates in UDM cause process conflicts... Modification solution: Modify the subscription rates of 4 / 5G IMS APN in the subscription template to be consistent, the modification party is UDM." This guides maintenance personnel to troubleshoot and repair the fault according to the modification solution provided by the system, ensuring the vehicle network returns to normal operation.

[0132] Understandably, if valuable information cannot be obtained, the process returns to step S12 to re-edit or use other retrieved target knowledge question-and-answer pairs, and then re-edit and re-generate the network fault rule model for analysis.

[0133] This invention employs the technical means of a vector knowledge base to generate network fault rule models. It defines the necessary correlations between fault events from a priori network fault knowledge base, enabling network fault analysis in vehicle-to-everything (V2X) systems. This improves upon the inefficiency of traditional log analysis methods. By generating network fault rule models through an accumulated knowledge base, it no longer relies entirely on personal experience, thus enhancing the efficiency and accuracy of V2X network fault analysis and improving the intelligence of fault location in network log analysis. Furthermore, perceptual swimlanes enable visualization of log and fault analysis, laying the foundation for deterministic network optimization.

[0134] See Figure 7 This is a schematic diagram of a network fault analysis device provided in an embodiment of the present invention. The present invention also provides a network fault analysis device 10, comprising:

[0135] User input module 11 is used to obtain the vehicle network fault description input by the user;

[0136] The knowledge question and answer matching module 12 is used to match target knowledge question and answer pairs in a preset knowledge question and answer pair database according to the description of the vehicle network fault; wherein, the knowledge question and answer pair includes a question part and an answer part, the question part is used to describe the network fault phenomenon of the vehicle network, and the answer part includes nodes, events and event association rules used to characterize the relationship between the nodes and the events;

[0137] The network fault rule generation module 13 is used to generate a network fault rule model based on the target knowledge question-and-answer pair and the fault occurrence time input by the user; wherein, the network fault rule model includes the fault occurrence time range, the target node to be investigated, the target event, and the target event association rules;

[0138] Log data acquisition module 14 is used to acquire target log data of the vehicle network system related to the fault occurrence time range, the target node, and the target event;

[0139] The network fault analysis module 15 is used to perform network fault analysis based on the target log data and the target event association rules, and generate network fault analysis results.

[0140] Preferably, the device 10 further includes:

[0141] The perception swimlane graph generation module is used to generate a dataset that conforms to the perception swimlane display rules based on the target log data and the target event association rules; and to generate a perception swimlane graph based on the dataset; wherein the perception swimlane graph is used to display the events corresponding to different nodes in the vehicle network system and the data flow between different nodes.

[0142] It should be noted that the network fault analysis device provided in this embodiment of the invention is used to execute all the process steps of the network fault analysis method in the above embodiment. The working principle and beneficial effect of the two are one-to-one, so they will not be described again.

[0143] This invention also provides a network fault analysis device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the network fault analysis method as described in any of the above embodiments.

[0144] This invention also provides a computer-readable storage medium, which includes a stored computer program, wherein the computer program, when running, controls the device where the computer-readable storage medium is located to execute the network fault analysis method as described in any of the above embodiments.

[0145] This invention also provides a computer program product, which includes a computer program or computer instructions. When the computer program or computer instructions are executed by a processor, they implement the network fault analysis method as described in any of the above embodiments.

[0146] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0147] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A network fault analysis method, characterized in that, include: Obtain the user-input description of the vehicle network fault; Based on the description of the vehicle network fault, a target knowledge question and answer pair is matched in a preset knowledge question and answer pair database; wherein, the knowledge question and answer pair includes a question part and an answer part, the question part is used to describe the network fault phenomenon of the vehicle network, and the answer part includes nodes, events and event association rules used to characterize the relationship between the nodes and the events; Based on the target knowledge question-and-answer pair and the fault occurrence time input by the user, a network fault rule model is generated; wherein, the network fault rule model includes the fault occurrence time range, the target node to be investigated, the target event, and the target event association rules; Acquire target log data of the vehicle-to-everything (V2X) system related to the time range of the fault occurrence, the target node, and the target event; Network fault analysis is performed based on the target log data and the target event association rules to generate network fault analysis results.

2. The network fault analysis method as described in claim 1, characterized in that, The method further includes: A data structure for acquiring preset network fault knowledge Q&A information; wherein, the data structure includes knowledge Q&A number, network fault phenomenon description, root cause of the problem, delimitation suggestion, suggested troubleshooting node, event keywords and event association rules; Based on the data structure of the network fault knowledge question and answer information, generate several knowledge question and answer pairs; The knowledge question-answer pairs are vectorized and stored to construct a knowledge question-answer pair database; wherein, the knowledge question-answer pair database includes several processed knowledge question-answer pairs.

3. The network fault analysis method as described in claim 1, characterized in that, The step of matching target knowledge question-answer pairs in a preset knowledge question-answer pair database based on the vehicle network fault description includes: The vehicle network fault description is vectorized. Using a vector similarity calculation method, a knowledge question and answer pair that matches the description of the vehicle network fault is queried in the preset knowledge question and answer pair database, and this pair is used as the target knowledge question and answer pair.

4. The network fault analysis method as described in claim 3, characterized in that, The method employs vector similarity calculation to query a pre-defined knowledge question-answering database for knowledge question-answering pairs that match the description of the vehicle network fault, using these pairs as target knowledge question-answering pairs. Using a vector similarity calculation method, multiple knowledge question-answer pairs that match the vehicle network fault description are queried in the preset knowledge question-answer pair database and used as candidate knowledge question-answer pairs; The system receives user input instructions to select and / or modify the candidate knowledge question-answer pairs, thereby obtaining the target knowledge question-answer pair.

5. The network fault analysis method as described in claim 1, characterized in that, The method further includes: Real-time collection of log data from each node in the vehicle networking system; The step of acquiring target log data of the vehicle-to-everything (V2X) system related to the time range of the fault occurrence, the target node, and the target event includes: Based on the time range of the fault occurrence, the target node, and the target event, the log data of all nodes is filtered to obtain relevant log data, which is then used as the target log data.

6. The network fault analysis method as described in claim 5, characterized in that, The vehicle-to-everything (V2X) system includes a vehicle terminal, a network terminal, and a cloud terminal. Each node in the V2X system includes nodes in the vehicle terminal, the network terminal, and the cloud terminal.

7. The network fault analysis method as described in claim 1, characterized in that, The step of performing network fault analysis based on the target log data and the target event association rules to generate network fault analysis results includes: Based on the target event association rules in the network fault rule model, time-series analysis is performed on the selected target log data to determine whether the target events occur in accordance with the order and time constraints required by the target event association rules, so as to generate network fault analysis results.

8. The network fault analysis method according to any one of claims 1 to 7, characterized in that, After acquiring the target log data of the vehicle-to-everything (V2X) system related to the time range of the fault occurrence, the target node, and the target event, the method further includes: Based on the target log data and the target event association rules, a dataset that conforms to the perceptual swimlane display rules is generated; Based on the dataset, a perceptual swimlane diagram is generated; wherein, the perceptual swimlane diagram is used to display the events corresponding to different nodes in the vehicle network system and the data flow between different nodes.

9. The network fault analysis method as described in claim 8, characterized in that, The method further includes: The network fault analysis results and the perception swimlane diagram are displayed.

10. A network fault analysis device, characterized in that, include: The user input module is used to obtain the description of the vehicle network fault input by the user; The knowledge question and answer matching module is used to match target knowledge question and answer pairs in a preset knowledge question and answer pair database according to the description of the vehicle network fault; wherein, the knowledge question and answer pair includes a question part and an answer part, the question part is used to describe the network fault phenomenon of the vehicle network, and the answer part includes nodes, events and event association rules used to characterize the relationship between the nodes and the events; The network fault rule generation module is used to generate a network fault rule model based on the target knowledge question-and-answer pair and the fault occurrence time input by the user; wherein, the network fault rule model includes the fault occurrence time range, the target node to be investigated, the target event, and the target event association rules; The log data acquisition module is used to acquire target log data of the vehicle network system related to the fault occurrence time range, the target node, and the target event; The network fault analysis module is used to perform network fault analysis based on the target log data and the target event association rules, and generate network fault analysis results.

11. The network fault analysis device as described in claim 10, characterized in that, The device further includes: The perception swimlane graph generation module is used to generate a dataset that conforms to the perception swimlane display rules based on the target log data and the target event association rules; and to generate a perception swimlane graph based on the dataset; wherein the perception swimlane graph is used to display the events corresponding to different nodes in the vehicle network system and the data flow between different nodes.

12. A network fault analysis device, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor, when executing the computer program, implements the network fault analysis method as described in any one of claims 1 to 9.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program, wherein, when the computer program is executed, it controls the device on which the computer-readable storage medium is located to perform the network fault analysis method as described in any one of claims 1 to 9.

14. A computer program product, characterized in that, The computer program product includes a computer program or computer instructions, which, when executed by a processor, implement the network fault analysis method as described in any one of claims 1 to 9.