Diagnosis visualization method, device and equipment for packet loss of network switching chip
By generating visual charts of the message forwarding process of the network switching chip and judging the reasons for packet loss, the problems of low diagnostic efficiency and insufficient reliability in the prior art are solved, and efficient and accurate packet loss diagnosis is achieved.
Patent Information
- Application Number
- CN202510026328.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-08
- Publication Date
- 2025-04-22
AI Technical Summary
The prior art is inefficient and insecure in diagnosing packet loss of network switching chips, making it difficult to locate problems in a short time, especially when the data volume is huge.
By obtaining the message forwarding log file of the network switching chip, extracting the flow relationship between the table and the fields of the table, and between the fields of the table and the fields of the table, generating a visual chart reflecting the message forwarding process, and determining the reason for packet loss based on key information, and displaying the reason for packet loss and visual charts in association.
It realizes visual diagnosis of packet loss of network switching chips, improves diagnostic efficiency and accuracy, can locate problems in a short time, and improves chip design and debugging efficiency.
Smart Images

Figure CN119865447A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information technology, and in particular to a method, device and equipment for visualizing diagnosis of packet loss in a network switching chip. Background Art
[0002] In modern networks, switch chips are core components of the communication infrastructure. As data traffic increases, packet loss becomes a major factor affecting network performance. Packet loss can be caused by a variety of reasons, such as hardware failure, network congestion, or configuration errors. Existing diagnostic methods usually rely on manual analysis of documents, which has the following defects:
[0003] 1. Inefficiency
[0004] Log information cannot intuitively display the forwarding process between different tables, which means that manual analysis of documents usually takes a long time and it is difficult to locate problems in a short time, especially when the amount of data is huge.
[0005] 2. Lack of reliability
[0006] Human judgment is easily influenced by subjective factors, which may lead to misjudgment or omission, making it impossible to accurately find the root cause of the problem. Summary of the invention
[0007] In view of this, an object of the present invention is to provide a method, device and equipment for diagnosing and visualizing packet loss in a network switching chip, so as to improve the above-mentioned problem.
[0008] The present invention provides a visual diagnosis method for packet loss of a network switching chip, which comprises:
[0009] Obtaining a message forwarding log file of the network switching chip;
[0010] Extracting the flow relationship of data between tables, between fields in tables, and between fields in tables according to the message forwarding log file;
[0011] Generating a visual diagram reflecting the message forwarding process of the network switching chip according to the flow relationship;
[0012] Determine the packet loss cause of the network switching chip according to the key information in the message forwarding log file;
[0013] The packet loss cause is associated with the visual chart for display, thereby achieving a visual diagnosis of packet loss of the network switching chip.
[0014] Furthermore, before obtaining the message forwarding log file of the network switching chip, the method further includes:
[0015] A chip designer prepares a document recording table items and fixed connection relationships in the network switching chip;
[0016] The document is processed and the fixed connection relationship is stored in a graph database.
[0017] Further, extracting the flow relationship of data between tables, between fields in tables, and between fields in tables according to the message forwarding log file includes:
[0018] Reading table entry information from the message forwarding log file;
[0019] Acquire a fixed connection relationship from the graph database;
[0020] Dynamically generate non-fixed connection relationships through preset processing logic;
[0021] The flow direction relationship is determined according to the table entry information, the fixed connection relationship and the non-fixed connection relationship.
[0022] Furthermore, generating a visualization chart reflecting the message forwarding process of the network switch chip according to the flow relationship is specifically:
[0023] Based on the antv G6 graph visualization engine, using dagre's left-to-right hierarchical layout method, the node level and position are automatically calculated according to the direction of the edge in the graph database, and a visualization chart reflecting the message forwarding process of the network switching chip is generated.
[0024] Furthermore, the antv G6 graph visualization engine uses dagre's left-to-right hierarchical layout method to automatically calculate the level and position of the node according to the direction of the edge in the graph database, and generates a visualization chart reflecting the message forwarding process of the network switching chip, specifically including:
[0025] Processing nodes: Filter out nodes without connection relationships, and add a transparent connection for every N nodes, and display them at the end;
[0026] Set the anchor points in the table: according to the number of fields to be displayed in the visualization chart, set the table title and the anchor numbers on the left and right sides of each field in the table;
[0027] Processing edges: insert anchor points into the connection information based on the connections between tables, between fields in tables, and between fields returned by the backend;
[0028] Process annotation information: For the data returned by the backend, if the connection line has annotation information, draw it above the connection line;
[0029] To handle the connection between different modules: draw a connection with only input / output, and display the name of the destination module / source module and the name of the input / output field / table above the connection.
[0030] Further, judging the packet loss cause of the network switching chip according to the key information in the message forwarding log file includes:
[0031] Obtain the preset packet loss cause knowledge base;
[0032] The key information is matched with the packet loss cause knowledge base to obtain the packet loss cause and corresponding diagnosis suggestions.
[0033] Furthermore, the displaying of associating the packet loss cause with the visual chart includes:
[0034] Display diagnostic information: Display the diagnostic code and diagnostic suggestions returned by the backend above the chart.
[0035] The embodiment of the present invention further provides a visual diagnosis device for packet loss of a network switching chip, which includes:
[0036] A message forwarding log file acquisition unit, used to acquire the message forwarding log file of the network switching chip;
[0037] A flow direction relationship extraction unit, used for extracting the flow direction relationship of data between tables, between fields of tables, and between fields of tables according to the message forwarding log file;
[0038] A visualization chart generating unit, configured to generate a visualization chart reflecting the message forwarding process of the network switching chip according to the flow relationship;
[0039] A packet loss cause determination unit, configured to determine the packet loss cause of the network switching chip according to key information in the message forwarding log file;
[0040] The visual diagnosis unit is used to associate the packet loss cause with the visual chart for display, so as to realize the visual diagnosis of the packet loss of the network switching chip.
[0041] An embodiment of the present invention also provides a visual diagnosis device for packet loss in a network switching chip, which includes a memory and a processor. The memory stores a computer program, and the computer program can be executed by the processor to implement the visual diagnosis method for packet loss in a network switching chip as described above.
[0042] The technical solution provided by the embodiment of the present invention may have the following beneficial effects:
[0043] The present invention processes the Excel document prepared by the chip designer, stores the connection relationship in the graph database, and analyzes it in combination with the chip type selected by the user and the message forwarding log file. The back-end processing logic dynamically generates an unfixed connection relationship, which is combined with the fixed connection relationship obtained from the graph database to form a complete data flow relationship. The front end uses the AntVG6 graph visualization engine and adopts the dagre hierarchical layout method from left to right to automatically calculate the node level and position and generate a visual chart. The present invention realizes the intuitive display of chip data flow by optimizing the node layout, setting the anchor point in the table, processing the edge and annotation information, and processing the connection between different modules. At the same time, the diagnostic code and suggestions are displayed above the chart to provide users with comprehensive chip data flow analysis and diagnostic functions, effectively improving the efficiency of chip design and debugging. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 A flowchart of a method for visualizing packet loss diagnosis of a network switching chip provided in the first embodiment of the present invention.
[0045] Figure 2 A schematic diagram of a visualization chart.
[0046] Figure 3 This is a structural diagram of a device for visualizing packet loss diagnosis of a network switching chip provided in a second embodiment of the present invention. DETAILED DESCRIPTION
[0047] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.
[0048] See also Figure 1 The first embodiment of the present invention provides a visual diagnosis method for packet loss of a network switching chip, which can be performed by a visual diagnosis device for packet loss of a network switching chip (hereinafter referred to as a diagnostic device), and in particular, is performed by one or more processors in the diagnostic device to implement the following steps:
[0049] S101, obtaining a message forwarding log file of the network switching chip.
[0050] Specifically, in this implementation, first in the preparation stage, an Excel document prepared by chip design related personnel is obtained, and the Excel document is used to record the table items and most fixed connection relationships in the chip. The data in the Excel document is processed and the connection relationships are stored in a graph database.
[0051] For example, in a possible implementation, an Excel document prepared by chip design personnel is obtained, which records the table items and most fixed connection relationships in the chip. The Excel document is parsed to obtain table item information and connection relationship data. According to the table item information obtained by parsing, a corresponding table item node is created in the graph database, and the node attribute includes the name, type and other information of the table item. The connection relationship data obtained by parsing is traversed to determine whether the starting table item and the target table item of each connection relationship already have corresponding nodes in the graph database. If so, a directed edge is created between the two nodes to represent the connection relationship. If there is a starting table item or a target table item in the connection relationship data that does not have a corresponding node in the current graph database, a new node is created according to the table item information and then a directed edge is created. In the case of incomplete attribute information in the connection relationship data, the attribute information of the existing connection relationship is analyzed, and the missing attribute information is supplemented by data filling or machine learning algorithm to ensure the integrity of the connection relationship data. The out-degree and in-degree of each table item node are queried in the graph database, the importance of the node is determined according to the set threshold, and the attribute information of the node is updated. The traversal algorithm of the graph database is used to check the connectivity of the entire chip design diagram to determine whether there is an independent subgraph. If so, the designer is prompted to check the rationality of the design. Based on the feedback from the designers, the nodes and connection relationships in the graph database are added, deleted, and modified, and each modification is recorded through the version control mechanism to trace the history of design changes. The graph database is persistently stored, and the table item information and connection relationships are saved in the form of a graph to the disk or distributed storage system for subsequent process calls.
[0052] In this embodiment, the message forwarding log file is generated based on information generated during the message forwarding process.
[0053] S102: Extracting data flow relations between tables, between fields in tables, and between fields in tables according to the message forwarding log file.
[0054] S103: Generate a visualization chart reflecting the message forwarding process of the network switch chip according to the flow direction relationship.
[0055] Specifically, in this embodiment:
[0056] First, according to the chip type and the message forwarding log file, the entry information in the message forwarding log file is obtained to obtain the entry data.
[0057] Then, a pre-built graph database is used to obtain fixed connection relationships between table items and obtain fixed connection relationship data.
[0058] Next, by analyzing the flow information in the message forwarding log file, the unfixed connection relationship between the table entries is dynamically generated to obtain the unfixed connection relationship data.
[0059] Next, the fixed connection relationship data and the non-fixed connection relationship data are merged to construct complete table entry connection relationship data.
[0060] Finally, a data flow relationship diagram is drawn based on the table entry data and the table entry connection relationship data to intuitively display the data flow direction during the message forwarding process.
[0061] In particular, based on the antv G6 graph visualization engine, using the dagre left-to-right hierarchical layout method, the level and position of the node can be automatically calculated according to the direction of the edge in the graph database to generate a visualization chart reflecting the message forwarding process of the network switching chip. Specifically, it includes:
[0062] Processing nodes: Filter out nodes without connection relationships and add a transparent connection for every N nodes.
[0063] Among them, the node and edge data model of the visualization chart is constructed according to the connection information between tables, fields in tables, and fields returned by the backend. Traverse all nodes in the chart, filter out isolated nodes without any connection relationship, and save them in a separate array. The filtered isolated node array is grouped, with 6 nodes as a group, and a transparent virtual line is created between the nodes in the group. When creating a virtual line, the starting and ending coordinates of the line are reasonably set according to the position of the node in the chart to avoid overlap with other nodes and lines. The created virtual line is added to the edge data model of the chart, and its style is set to transparent to distinguish it from the real line. When laying out the chart, the drawing priority of the real line is set higher than the virtual line to ensure that the real line will not be blocked by the virtual line. By adjusting the layout parameters of the chart, such as node spacing, line curvature, etc., the entire picture after the introduction of the virtual line is made more compact and beautiful. For the problem of node and line overlap that may occur after layout, a certain avoidance strategy is adopted, such as fine-tuning the node position or line direction, to optimize the visual effect. Finally, the processed node and line data are passed to the chart drawing component to render the final visual chart and present it to the user for interaction and analysis.
[0064] Among them, transparent lines are displayed last. This is to manually construct the hierarchical relationship and make the whole picture more compact.
[0065] Set anchor points in the table: According to the number of fields to be displayed in the visualization chart, set the table title and the anchor numbers on the left and right sides of each field in the table.
[0066] Among them, the field information to be displayed in the table is obtained, and the title of the table and the number of anchor points on the left and right sides of the fields in each table are determined according to the number of fields. Using visualization technology, a table is drawn in a chart, and the table title is set according to the information obtained in step S101. By analyzing the positional relationship of the fields in the table, a corresponding number of anchor points are generated on the left and right sides of the table, and a unique digital identifier is assigned. According to the digital identifier of the anchor point, a mapping relationship between the anchor point and the field in the table is established, and the anchor point position is associated with the field in the table. The connection information between different tables, between tables and fields, and between fields and fields is obtained, and the starting and ending anchor point positions of the connection are determined according to the mapping relationship. Using graphic drawing technology, a connection line is drawn in the chart according to the anchor point position information to realize the visual display of the relationship between tables, tables and fields, and fields and fields.
[0067] Process edges: Insert the anchor point position into the connection information based on the connections between tables, fields in tables, and fields returned by the backend.
[0068] Among them, the source node and target node identifiers are obtained based on the connection information between tables, between fields in tables, and between fields returned by the backend. The corresponding anchor position (sourceAnchor, targetAnchor) is determined based on the types of the source node and target node using the preset anchor position mapping rules. By inserting sourceAnchor and targetAnchor into the connection information, a complete edge data structure is obtained.
[0069] Process annotation information: For the data returned by the backend, if the line has annotation information, draw it above the line.
[0070] Among them, according to the connection information in the data returned by the backend, it is determined whether each connection has annotation information. If it has annotation information, the annotation information is obtained. The graphics drawing algorithm is used to draw the connection on the canvas, and the starting and ending coordinates of the connection are calculated according to the position of the node. The annotation information is drawn above the connection through the text drawing function, and the position of the annotation text is calculated according to the midpoint coordinates of the connection. The length of the annotation text is determined. If it exceeds a certain threshold, the text line wrapping algorithm is used to divide the annotation text into multiple lines for display to avoid blocking other graphic elements. According to the number of lines of the annotation text, the vertical position of the annotation text is dynamically adjusted to ensure that the annotation text is always above the connection and does not overlap with the connection. Different font styles and colors are used to draw the annotation text to distinguish different types of annotation information and improve readability. When drawing the annotation text, the collision detection algorithm is used to determine whether the annotation text overlaps with other graphic elements. If it overlaps, the position of the annotation text is automatically adjusted to avoid blocking. According to the scaling ratio of the graphic, the font size of the annotation text is dynamically adjusted to ensure that the annotation text always maintains an appropriate size when the graphic is scaled, and will not be too large or too small to affect the appearance. The completed graphics are rendered and the complete graphics including the connection lines and annotation text are displayed on the interface for users to view and analyze, so as to quickly locate and diagnose problems.
[0071] To handle the connection between different modules: draw a connection with only input / output, and display the name of the destination module / source module and the name of the input / output field / table above the connection.
[0072] Specifically, according to the connection information in the data returned by the backend, it is determined whether the starting point and the end point of the connection belong to different modules. If so, the connection is determined to be an inter-module connection. For inter-module connections, the starting point module name and the starting point field / table name are obtained as the source module information of the connection; the end point module name and the end point field / table name are obtained as the destination module information of the connection. According to the source module information and the destination module information, a connection line with only the endpoints is drawn to represent the output of the source module; and at the same time, a connection line with only the input endpoints is drawn to represent the input of the destination module. Above the output connection line of the source module, the source module name and the indicated field / table name are displayed; above the input connection line of the destination module, the destination module name and the input field / table name are displayed. For the output connection line of the source module, the direction and length of the connection line are calculated according to the starting point coordinates and the end point coordinates of the connection line, and the display position and direction of the text above the connection line are adjusted accordingly. For the input connection line of the destination module, the direction and length of the connection line are calculated according to the starting point coordinates and the end point coordinates of the connection line, and the display position and direction of the text above the connection line are adjusted accordingly. If a module has multiple output lines, the spacing and angles between the output lines are automatically adjusted according to the starting position of the lines to avoid overlapping and crossing between the lines. If a module has multiple input lines, the spacing and angles between the input lines are automatically adjusted according to the end position of the lines to avoid overlapping and crossing between the lines. After drawing the inter-module lines and their annotation information, add the drawing results of all inter-module lines to the line layer in the visualization chart, and update the display of the chart to reflect the data flow relationship between the modules.
[0073] S104: Determine the packet loss cause of the network switching chip according to the key information in the message forwarding log file.
[0074] Specifically, the packet forwarding log data is analyzed in depth, and whether there is packet loss is determined through keyword matching, knowledge base, and pattern recognition technologies. If packet loss is found, the packet loss location is located and a diagnostic result is generated based on the table status and forwarding rules when the packet loss occurred, such as "the packet is discarded during the forwarding process from table entry C to table entry D because the matching condition of table entry D is not met."
[0075] S105, the packet loss cause is associated with the visual chart for display, so as to achieve a visual diagnosis of the packet loss of the network switching chip.
[0076] Specifically, for example, the diagnostic code and diagnostic suggestion data returned by the backend can be obtained, and the specific content of the diagnostic code and diagnostic suggestion can be parsed according to the preset data format. According to the parsed diagnostic code and diagnostic suggestion content, the specific position coordinates of the diagnostic information displayed above the visual chart are determined. A rectangular box is drawn using the graphics drawing library, and the width of the rectangular box is adaptively adjusted according to the text length of the diagnostic code and diagnostic suggestion, and the height of the rectangular box is adaptively adjusted according to the number of text lines. In the drawn rectangular box, the text drawing function is used to draw the text content of the diagnostic code and diagnostic suggestion in the rectangular box. The diagnostic code and diagnostic suggestion are displayed in separate lines, with the diagnostic code on the top and the diagnostic suggestion on the bottom. By calculating the text length of the diagnostic code and diagnostic suggestion, the width of the rectangular box is dynamically adjusted so that it can fully display all the text content to avoid incomplete text display. The size data of the entire visual chart is obtained, and the upper limit of the width of the diagnostic information rectangular box is calculated according to the chart size and the reserved margin. When the text content of the diagnostic code and diagnostic suggestion exceeds the upper limit of the width, it is automatically wrapped and displayed. If the text content height of the diagnosis code and diagnosis suggestion exceeds the height of a single rectangular box, the number of rectangular boxes will be dynamically increased according to the content height, and the position of each rectangular box will be automatically adjusted so that it can fully display all the diagnosis information. Beautify the drawn diagnosis information rectangular box, set the fill color, border style, and rounded corners of the rectangular box to enhance the visual effect. The text of the diagnosis code and diagnosis suggestion uses different colors to distinguish them. After the diagnosis information is drawn, dynamically adjust the spacing between the chart and the diagnosis information according to the overall layout requirements to ensure the beauty and readability of the chart and provide users with a good interactive experience, such as Figure 2 shown.
[0077] This embodiment processes the Excel document prepared by the chip designer, stores the connection relationship in the graph database, and analyzes it in combination with the chip type selected by the user and the message forwarding log file. The back-end processing logic dynamically generates an unfixed connection relationship, which is combined with the fixed connection relationship obtained from the graph database to form a complete data flow relationship. The front end uses the AntV G6 graph visualization engine and adopts the dagre hierarchical layout method from left to right to automatically calculate the node level and position and generate a visual chart. The present invention realizes the intuitive display of chip data flow by optimizing the node layout, setting the anchor point in the table, processing the edge and annotation information, and processing the connection between different modules. At the same time, the diagnostic code and suggestions are displayed above the chart to provide users with comprehensive chip data flow analysis and diagnostic functions, effectively improving the efficiency of chip design and debugging.
[0078] The second embodiment of the present invention further provides a visual diagnosis device for packet loss in a network switching chip, which includes:
[0079] The message forwarding log file acquisition unit 210 is used to acquire the message forwarding log file of the network switching chip;
[0080] A flow direction relationship extraction unit 220, configured to extract the flow direction relationship of data between tables, between fields of tables, and between fields of tables according to the message forwarding log file;
[0081] A visualization chart generating unit 230, configured to generate a visualization chart reflecting the message forwarding process of the network switching chip according to the flow relationship;
[0082] The packet loss cause determination unit 240 is used to determine the packet loss cause of the network switching chip according to the key information in the message forwarding log file;
[0083] The visual diagnosis unit 250 is used to associate the packet loss cause with the visual chart for display, so as to realize visual diagnosis of the packet loss of the network switching chip.
[0084] The third embodiment of the present invention further provides a visual diagnosis device for packet loss in a network switching chip, which includes a memory and a processor. The memory stores a computer program, and the computer program can be executed by the processor to implement the visual diagnosis method for packet loss in a network switching chip as described above.
[0085] The above embodiment is only one of the preferred implementation modes of the present invention and should not be used to limit the protection scope of the present invention. Any changes or modifications that are made to the main design concept and spirit of the present invention and have no substantive significance, and the technical problems they solve are still consistent with the present invention, should be included in the protection scope of the present invention.
Claims
1. A visual diagnosis method for packet loss in a network switching chip, characterized in that: include: Obtaining a message forwarding log file of the network switching chip; Extracting the flow relationship of data between tables, between fields in tables, and between fields in tables according to the message forwarding log file; Generating a visual diagram reflecting the message forwarding process of the network switching chip according to the flow relationship; Determine the packet loss cause of the network switching chip according to the key information in the message forwarding log file; The packet loss cause is associated with the visual chart for display, thereby achieving a visual diagnosis of packet loss of the network switching chip.
2. The visual diagnosis method for packet loss of a network switching chip according to claim 1, characterized in that: Before obtaining the message forwarding log file of the network switching chip, the method further includes: A chip designer prepares a document recording table items and fixed connection relationships in the network switching chip; The document is processed and the fixed connection relationship is stored in a graph database.
3. The visual diagnosis method for packet loss of a network switching chip according to claim 1, characterized in that: The extracting, according to the message forwarding log file, the flow relationship of data between tables, between fields of tables, and between fields of tables, comprises: Reading table entry information from the message forwarding log file; Acquire a fixed connection relationship from the graph database; Dynamically generate non-fixed connection relationships through preset processing logic; The flow direction relationship is determined according to the table entry information, the fixed connection relationship and the non-fixed connection relationship.
4. The visual diagnosis method for packet loss of a network switching chip according to claim 1, characterized in that: The generating, according to the flow direction relationship, a visualization chart reflecting the message forwarding process of the network switching chip is specifically: Based on the antv G6 graph visualization engine, using the dagre left-to-right hierarchical layout method, the node level and position are automatically calculated according to the direction of the edge in the graph database, and a visualization chart reflecting the message forwarding process of the network switching chip is generated.
5. The visual diagnosis method for packet loss of a network switching chip according to claim 4, characterized in that: The antv G6 graph visualization engine uses dagre's left-to-right hierarchical layout method to automatically calculate the level and position of the node according to the direction of the edge in the graph database, and generate a visualization chart reflecting the message forwarding process of the network switching chip, specifically including: Processing nodes: Filter out nodes without connection relationships, and add a transparent connection for every N nodes, and display them at the end; Set the anchor points in the table: according to the number of fields to be displayed in the visualization chart, set the table title and the anchor numbers on the left and right sides of each field in the table; Processing edges: insert anchor points into the connection information based on the connections between tables, between fields in tables, and between fields returned by the backend; Process annotation information: For the data returned by the backend, if the connection line has annotation information, draw it above the connection line; To handle the connection between different modules: draw a connection with only input / output, and display the name of the destination module / source module and the name of the input / output field / table above the connection.
6. The visual diagnosis method for packet loss of a network switching chip according to claim 1, characterized in that: The determining the packet loss cause of the network switching chip according to the key information in the message forwarding log file includes: Obtain the preset packet loss cause knowledge base; The key information is matched with the packet loss cause knowledge base to obtain the packet loss cause and corresponding diagnosis suggestions.
7. The visual diagnosis method for packet loss of a network switching chip according to claim 5, characterized in that: The displaying of associating the packet loss cause with the visual chart includes: Display diagnostic information: Display the diagnostic code and diagnostic suggestions returned by the backend above the chart.
8. A visual diagnostic device for packet loss in a network switching chip, characterized in that: include: A message forwarding log file acquisition unit, used to acquire the message forwarding log file of the network switching chip; A flow direction relationship extraction unit, used for extracting the flow direction relationship of data between tables, between fields of tables, and between fields of tables according to the message forwarding log file; A visualization chart generating unit, configured to generate a visualization chart reflecting the message forwarding process of the network switching chip according to the flow relationship; A packet loss cause determination unit, configured to determine the packet loss cause of the network switching chip according to key information in the message forwarding log file; The visual diagnosis unit is used to associate the packet loss cause with the visual chart for display, so as to realize the visual diagnosis of the packet loss of the network switching chip.
9. A visual diagnostic device for packet loss in a network switching chip, characterized in that: It comprises a memory and a processor, wherein the memory stores a computer program, and the computer program can be executed by the processor to implement the visual diagnosis method for packet loss of a network switching chip as described in any one of claims 1 to 7.