A network performance monitoring method, system and storage medium
By generating device port tables, topology tables and routing tables to monitor network performance, it solves the problem of being unable to test network topology and routing information in the existing technology, and achieves comprehensive monitoring of network quality and problem location.
Patent Information
- Application Number
- CN202111311829.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-08
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-11-08
AI Technical Summary
The existing technology cannot test network topology and routing information, and cannot monitor network performance in a real environment, resulting in the inability to comprehensively monitor network quality and locate problems.
By generating device port tables, topology tables and routing tables, the target port status is determined, port performance testing and anomaly detection are performed, and an exception record table is generated to achieve comprehensive monitoring of network device topology information.
It improves the ability to locate network problems, automatically locates problem locations, and comprehensively monitors network quality.
Smart Images

Figure CN116094951B
Abstract
Description
Technical Field
[0001] The present application relates to the field of network communication technology, and specifically to a network performance monitoring method, system and storage medium. Background Art
[0002] With the rapid development of network communication technology, higher requirements are put forward for communication quality. In addition to meeting the large load capacity, it is also necessary to ensure the stability and performance of the network to ensure the smooth operation of various user services. Therefore, testing network performance has become a research hotspot.
[0003] In the prior art, two network performance monitoring methods are proposed. One is that after the control device receives the test instruction sent by the management device, based on the test instruction, it controls each terminal to execute various services based on the network to be tested, and returns the service execution results of each terminal received to the management device to determine the network performance of the above-mentioned network to be tested. This solution cannot obtain the network topology and network routing status, and cannot monitor the status of the port. The second is to run a virtual machine and a network simulation platform in the test machine, and the management and monitoring server receives the inbound and outbound traffic reported by the network simulation platform, and calculates the network performance test results based on the inbound and outbound traffic and the network topology. This solution is tested through a virtual machine and a simulation platform, which is a simulation test, not a direct test of the real network environment. Summary of the invention
[0004] In view of this, the present application provides a network performance monitoring method, system and storage medium to help solve the problems in the prior art that network topology, routing information cannot be tested and the test is not in a real environment.
[0005] In a first aspect, an embodiment of the present application provides a network performance monitoring method, comprising: generating a device port table according to configuration information of a network device, wherein the device port table is used to record port information of the network device; generating a device topology table according to the device port table, wherein the device topology table is used to record topological relationship information between different network devices; generating a device routing table according to analysis of the network device topology table, wherein the device routing table is used to record routing information between different network devices; determining a target port, collecting a target port status according to the port information in the device port table, and generating a port performance table corresponding to the target port, wherein the port performance table is used to record performance parameters corresponding to the target port; testing a target port status according to the port information in the device port table, and generating a port test table corresponding to the target port, wherein the port test table is used to record test parameters corresponding to the target port.
[0006] In a possible implementation manner, the target port is a port recorded in the device port table.
[0007] In a possible implementation, the target port is a port corresponding to a path between the retrieved source IP address and the destination IP address.
[0008] In one possible implementation, determining the target port includes: receiving a source IP address and a destination IP address input by a user; searching for a starting port in the device routing table according to the source IP address; and searching for a path from the starting port to a destination port according to the routing table, the destination port being the port corresponding to the destination IP address.
[0009] In a possible implementation manner, anomaly detection is performed on the target port according to the performance parameters of the target port recorded in the port performance table and the test reference of the target port recorded in the port test table.
[0010] In a possible implementation, an abnormality record table is generated according to the abnormality detection result.
[0011] In a possible implementation, generating a device port table based on configuration information of a network device includes: reading the configuration information line by line, segmenting each line of the configuration information according to spaces to obtain configuration information fragments; and determining port information corresponding to the configuration information fragments based on keywords in the header of the configuration information fragments.
[0012] In a possible implementation, generating a network device topology table according to the device port table includes: traversing the device port table, and if the network addresses corresponding to any two ports are the same, establishing a topological relationship between the any two ports, and generating a network device topology table.
[0013] In a second aspect, an embodiment of the present application provides a network performance monitoring system, comprising: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the system, cause the system to perform any of the methods described in the first aspect.
[0014] In a third aspect, an embodiment of the present application provides a computer storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the methods described in the first aspect.
[0015] In the embodiment of the present application, the network quality of the target network is fully monitored, the network equipment topology information is obtained, the positioning capability after the network problem occurs is improved, and the problem location is automatically located. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0017] Figure 1 A schematic diagram of a network monitoring system module provided in an embodiment of the present application;
[0018] Figure 2 A schematic diagram of the logical layer of a network monitoring system provided in an embodiment of the present application;
[0019] Figure 3 A schematic diagram of a database in a network monitoring system provided in an embodiment of the present application;
[0020] Figure 4 A schematic diagram of a network monitoring method flow provided in an embodiment of the present application;
[0021] Figure 5 A schematic diagram of another network monitoring method flow provided in an embodiment of the present application;
[0022] Figure 6 A schematic diagram of a data collection structure provided in an embodiment of the present application;
[0023] Figure 7 A schematic diagram of an SNMP performance collection process provided in an embodiment of the present application;
[0024] Fig. 8A A schematic diagram of a device port table generation process provided in an embodiment of the present application;
[0025] Figure 8B A device port table provided in an embodiment of the present application;
[0026] Fig. 9A A schematic diagram of a device topology table generation process provided in an embodiment of the present application;
[0027] Fig. 9B A device topology table provided in an embodiment of the present application;
[0028] Fig.10 A schematic diagram of an address tracing process provided in an embodiment of the present application;
[0029] Fig.11 A schematic diagram of a device routing table generation process provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0031] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0032] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0033] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0034] See also Figure 1 , is a schematic diagram of a network monitoring system module provided in an embodiment of the present application. Figure 1 As shown, the system is divided into four modules, namely data acquisition module, topology discovery module, path discovery module and anomaly detection module.
[0035] The data collection module includes three parts: configuration and routing collection, performance data collection, and real-time network performance detection and statistical technology testing (Network Quality Analyzer, NQA).
[0036] In actual applications, configuration and routing collection refers to collecting the device configuration information and routing information of the device to be tested, such as the device model, device name, device port number, device topology information, and device routing path. Performance data collection refers to collecting the performance parameters of the device port, such as optical power and traffic utilization. NQA testing includes the NQA client constructing a message of the specified test type and sending it to the peer end; after receiving the test message, the peer end replies with a response message with a timestamp; the NQA client calculates parameters such as packet loss rate and latency based on whether the response message is received and the timestamp in the response message.
[0037] Among them, the topology discovery module includes three parts: device port analysis, device topology analysis and port performance log retention.
[0038] Device port analysis refers to generating a device port table from the data collected by the data collection module through data analysis and storing it in the database. Device topology analysis refers to generating a device topology table from the data collected by the data collection module through data analysis and storing it in the database. Port performance log retention refers to storing the performance information and NQA test information in the collection module as logs in the database.
[0039] Among them, the topology discovery module includes three parts: address tracing, path analysis and real-time collection of path performance.
[0040] Address tracing refers to finding the network structure of a device through its address information. Path analysis refers to generating a device routing table from the data collected by the data collection module through data analysis and storing it in a database. Real-time collection of path performance refers to retrieving the path between ports and collecting port parameters in real time for the ports passed through the path.
[0041] Among them, the anomaly detection module consists of two parts: threshold detection and anomaly log retention.
[0042] Threshold detection value sets a threshold value and compares the collected and tested port information with the threshold value to determine whether the port is abnormal. Abnormal log retention means storing the abnormal information generated in the abnormal test as a log in the database.
[0043] The system can be represented not only by modules but also by different logical layers.
[0044] See also Figure 2 , is a schematic diagram of a network monitoring system logic layer provided in an embodiment of the present application. Figure 2 As shown in Figure 1, the system consists of three logical layers: performance presentation layer, data processing layer, and acquisition communication layer. Figure 2 As shown in the figure, Simple Network Management Protocol (SNMP) data collection is performed in the communication layer to collect various parameter information of the port from the Management Information Base (MIB). Remote Terminal Protocol (Telecommunications Network, Telnet) configuration collection obtains the topology information and routing information of the device in the command prompt (Command, CMD).
[0045] The data processing layer performs data analysis on various types of information obtained during communication, generates device port tables, device topology tables, device routing tables, port performance tables, port test tables, etc., and stores the above tables in the database.
[0046] The performance presentation layer displays various information in the forms generated by the data processing layer based on the data analysis to the user. For example, path management includes generating device topology diagrams and device routing diagrams. Network performance management includes displaying relevant data of network performance, such as current optical power, traffic utilization, packet loss rate, and latency. Abnormal management includes displaying abnormalities in port A and abnormal packet loss rate of port A.
[0047] See also Figure 3 , is a schematic diagram of a database in a network monitoring system provided in an embodiment of the present application. In a possible implementation, see Figure 3 The database contains information about multiple ports in the router, each of which contains information about subnet, optical power, cyclic redundancy check (CRC), utilization, status, and IP address. The database also contains information about routing entries, routing attributes, next-hop ports, and next-hop addresses of different routers.
[0048] See also Figure 4 , is a flow chart of a network monitoring method provided by an embodiment of the present application. Figure 4 , the process includes a polling process and a retrieval process. Among them, the polling process includes the following steps:
[0049] Step 1: Read the device configuration, that is, read the device list table in the database and read various information about the device port.
[0050] Step 2: Analyze and generate a device port table, that is, generate a device port table based on the read port name, port IP address and other information through data analysis, and store the device port table in a database.
[0051] Step 3: Analyze and generate a device topology table, that is, generate a device topology table based on the device port table stored in the database, according to the port number, port IP address information and collected routing information through data analysis, and store it in the database.
[0052] Step 4: Analyze and generate the device routing table, that is, determine the next port through the router table query function, confirm the next route by querying the tray table, and recursively loop to find the routing path. After the search, analyze and record the data, generate the routing table, and record it in the database.
[0053] Step 5: Collect port status, that is, obtain MIB information of the device under test, such as optical power and traffic utilization, generate a port performance table through data analysis, and store it in the database.
[0054] Step 6: Test the port status, that is, perform SNMP test collection through NQA test instructions to obtain MIB information of the managed device, such as packet loss rate and latency, generate a port test table through data analysis, and store it in the database.
[0055] Step 7: Abnormal detection, that is, there are standard values of various port parameters preset in the data bureau. The data in the port performance table and port test table in the database are compared with the above preset standard values. If there is a deviation from the standard value, it is judged that the port is abnormal; if it is similar to the standard value, then the port status is normal.
[0056] The retrieval process includes the following steps:
[0057] Step 1: Enter the source IP address and destination IP address, that is, enter the IP addresses of the two ports.
[0058] Step 2: Find the starting port, that is, query the routing table to get the starting port corresponding to the source IP address.
[0059] Step 3: Find the path from the start port to the destination port, that is, find the path from the start port to the destination port by querying the device topology table and the device routing table.
[0060] Step 4: Traverse the entire path, that is, find all the ports from the starting port to the destination port.
[0061] Step 5: Collect the port status, that is, collect the performance information of all ports found in the above steps, and update it to the port performance table in the database.
[0062] Step 5: Test the port status, that is, test the test information of all ports found in the above steps and update it to the port test table in the database.
[0063] Step 6: Display port information, that is, display the port performance information collected in the above steps and the tested port test information. Users can view various parameters and status between the two ports.
[0064] According to the description of the embodiments of the present application, the system generates various forms through a polling process and records them in a database. Users can retrieve various logs in the database and view the status changes of the port over a period of time, which is conducive to anomaly detection.
[0065] See also Figure 5 , is a flow chart of another network monitoring method provided by an embodiment of the present application. Figure 5 As shown, this method indicates Figure 4 The middle part of the process includes the following steps:
[0066] Step S501: Generate a device port table according to the configuration information of the network device.
[0067] By reading Figure 4 The device list table in the network device list is used to obtain the configuration information of the network device, which includes the port number, the network device name and the IP address of the port. The obtained configuration information is analyzed to obtain the device port table, which is used to record the port information of the network device. The device port table is recorded in the database.
[0068] Step S502: Generate a device topology table according to the device port table.
[0069] All ports are determined through the device port table, and all ports are traversed. If the network addresses corresponding to any two ports are the same, a topological relationship between the two ports is established, a network device topology table is generated, and the device topology table is recorded in the database. For example, if the network addresses of port A and port B are the same, then there is a topological relationship between port A and port B, and port B is the next hop port of port A, then the topological relationship between port A and port B is recorded in the device topology table.
[0070] Step S503: Generate a device routing table based on the device topology table analysis.
[0071] Determine all ports through the device port table, traverse all ports, and find the starting port according to the topological relationship in the device topology table, and always find the next hop port of the port to determine the complete path of the port, record it in the device routing table through data analysis, and store it in the database.
[0072] Step S504: collecting the target port status and generating a port performance table corresponding to the target port.
[0073] Determine the target port according to the device port table. The target port can be any one or more ports in the device port table. Find the performance information of the port in the configuration information, such as optical power and traffic utilization. Generate a port performance table corresponding to the target port through data analysis and store it in the database.
[0074] Step S505: Test the state of the target port and generate a port test table corresponding to the target port.
[0075] Determine the target port according to the device port table. The target port can be any one or more ports in the device port table. Find the test information of the port in the configuration information, such as packet loss rate and latency. Generate a port performance table corresponding to the target port through data analysis and store it in the database.
[0076] In the embodiment of the present application, by generating various port-related forms, the network quality of the target network is comprehensively monitored, the network device topology information is obtained, the positioning capability after network problems occur is improved, and the problem location is automatically located.
[0077] See also Figure 6 , is a schematic diagram of a data collection structure provided by an embodiment of the present application. Figure 6 As shown, there are three types of data collection, including SNMP test collection, SNMP performance collection, and TELNET configuration collection.
[0078] Among them, SNMP test collection includes sending the NQA test command of the specified test type to the device under test. After receiving the command, the device under test obtains parameters such as packet loss rate and delay from the MIB in the device and stores them in the database.
[0079] SNMP performance collection includes obtaining port-related performance information from the MIB in the device under test, including information such as optical power and traffic utilization, and storing it in the database.
[0080] TELNET configuration collection includes obtaining the topology information and routing information of the device under test in the MIB and storing it in the database.
[0081] SNMP performance collection can be represented by the following process, see Figure 7 , is a schematic diagram of an SNMP performance collection process provided in an embodiment of the present application. The process includes the following steps:
[0082] Step S701: Receive the queried port IP address.
[0083] Receive the IP addresses of each port to be queried.
[0084] Step S702: Traverse the device ports and store a port list.
[0085] According to the IP address of the port, all ports of different devices are traversed, and the passed ports are stored in the port list.
[0086] Step S703: The traversal is completed.
[0087] If the traversal is completed, proceed to step S704; if the traversal is not completed, return to step S702.
[0088] Step S704: Generate a query parameter field.
[0089] The specific data of each parameter of each port is recorded in the field.
[0090] Step S705: query performance parameters.
[0091] Enter a parameter and query the value corresponding to the parameter in the parameter field.
[0092] Step S706: Feedback the query result.
[0093] Query the value corresponding to the parameter in the parameter field, find the corresponding value, and record it in the database.
[0094] See also Fig. 8A , is a schematic diagram of a device port table generation process provided in an embodiment of the present application. As shown in the figure, the process includes Figure 4 The process of generating the device port table in includes the following steps:
[0095] Step S801: Run and read the configuration file.
[0096] Read the device list table of the device to be tested, where the device list table includes the configuration file.
[0097] Step S802: Segment each line of configuration according to spaces.
[0098] The configuration file is separated by spaces into different configuration information segments, where each line has two configuration information segments.
[0099] Step S803: Analyze line by line.
[0100] First read the first line of the file, then loop through the remaining lines.
[0101] Step S804: The first word is interface.
[0102] Determine whether the keyword in the header of each configuration information fragment is interface.
[0103] Step S805: Record the first configuration information segment.
[0104] The first configuration information fragment, whether the keyword of the header is interface, is recorded in the device port table.
[0105] Step S806: The first word is interface.
[0106] Determine whether the keyword in the header of the configuration information fragment is interface.
[0107] Step S807: Record the second configuration information fragment.
[0108] The second configuration information fragment, whether the keyword of the header is interface, is recorded in the device port table.
[0109] like Figure 8B As shown, a device port table provided in an embodiment of the present application is shown. In the table, the first column of data is the device name, the second column of data is the port name, the third column of data is the port IP address, the fourth column of data is the port number, and the fifth column of data is whether the port type is a TRUNK type.
[0110] See also Fig. 9A , is a schematic diagram of a device topology table generation process provided in an embodiment of the present application. Fig. 9A As shown, the process includes Figure 4 The process of generating the device topology table in the example includes the following steps:
[0111] Step S901: Pointers X and Y point to the first row of ports.
[0112] Assign the two pointers X and Y so that they point to the first port at the same time.
[0113] Step S902: Read the IP address and mask corresponding to X.
[0114] Read the IP address and subnet mask corresponding to X.
[0115] Step S903: Calculate the network address corresponding to X.
[0116] Calculate the network address corresponding to X based on the IP address and subnet mask corresponding to X.
[0117] Step S904: Read the IP address and mask corresponding to pointer Y.
[0118] Read the IP address and subnet mask corresponding to pointer Y.
[0119] Step S905: Are the IP addresses of X and Y the same?
[0120] Determine whether the IP addresses of X and Y are the same, that is, whether X and Y correspond to the same port.
[0121] Step S906: Pointer Y points to the next row of ports.
[0122] If the IP addresses of X and Y are the same, pointer Y points to the next port.
[0123] Step S907: Calculate the network address corresponding to pointer Y.
[0124] If the IP addresses of X and Y are different, calculate the network address corresponding to Y based on the IP address and subnet mask of Y.
[0125] Step S908: Check whether the network addresses of X and Y are the same.
[0126] Determine whether the network addresses of X and Y are the same, that is, whether X and Y correspond to the same network segment.
[0127] Step S909: Store in the device topology table.
[0128] When the network addresses of X and Y are the same, the topological relationship between the two ports is recorded in the network device topology table.
[0129] Step S910: Check whether the pointer Y traverses all ports.
[0130] Pointer Y has not traversed all the ports.
[0131] Step S911: Pointer Y points to the first row port.
[0132] Pointer Y points to the first row port, that is, pointer Y is fixed at the first row port position.
[0133] Step S912: Pointer X points to the next row of ports.
[0134] Pointer X moves to the next port.
[0135] Step S913: Pointer X traverses all ports.
[0136] Pointer X completes the traversal.
[0137] like Fig. 9B As shown, a device topology table provided in an embodiment of the present application is shown. In the table, the first column of data is the name of the network device, the second column of data is the port type of the network device, the third column of data is the IP address of the port, the fourth column of data is the next hop IP address of the port, the fifth column is the port type of the next hop, and the sixth column is the name of the network device where the next hop port is located.
[0138] See also Fig.10 , is a schematic diagram of an address tracing process provided by an embodiment of the present application. Fig.10 As shown, the process includes Figure 4 The partial generation process of the device routing table in the example includes the following steps:
[0139] Step S1001: Read the routing table.
[0140] Read the routing tables of all network devices.
[0141] Step S1002: Input the IP address of the device.
[0142] Enter the IP address of one of the network devices.
[0143] Step S1003: Read the IP address in the routing table.
[0144] Read one of the IP addresses in the routing table.
[0145] Step S1004: extract the mask and calculate the input address.
[0146] Extract the subnet mask and calculate the network address of the input address.
[0147] Step S1005: Whether they are in the same network segment.
[0148] Determine whether the input IP address and the read IP address are in the same network segment.
[0149] Step S1006: Is the subnet the same?
[0150] If the above two addresses are in the same network segment, determine whether they are in the same subnet.
[0151] Step S1007: Record the device name and network information into the cache.
[0152] Regardless of whether the devices corresponding to the input IP address and the read IP address are in the same subnet, the device name, network segment, subnet, and other information corresponding to the input IP address and the read IP address are recorded in the cache.
[0153] Step S1008: Whether the traversal is completed.
[0154] If the traversal of all devices has not been completed, the process returns to step S903; if the traversal has been completed, the process executes step S909.
[0155] Step S1009: Save the information.
[0156] The above information recorded in the cache is stored in the device routing table.
[0157] See also Fig.11 , is a schematic diagram of a device routing table generation process provided in an embodiment of the present application. Fig.11 As shown, the process includes Figure 4 The partial generation process of the device routing table in the example includes the following steps:
[0158] Step S1101: Start from the starting port.
[0159] The port at the beginning of the path starts reading information.
[0160] Step S1102: Query the next hop port.
[0161] Query the next hop port of the port in the routing table query letter.
[0162] Step S1103: Query the next-hop network device.
[0163] Query the device topology table to find out which is the next-hop network device of the port.
[0164] Step S1104: Is there a next-hop device?
[0165] If there is a next-hop device, the process returns to step S1102; if there is no next-hop device, the process goes to step S1105.
[0166] Step S1105: Is there a next hop?
[0167] If there is a next hop, then return to step S1102; if there is no next hop, the path may reach the end point, for example, the base station, then execute step S1106.
[0168] Step S1106: When the port has no next hop, the read path and other related information are recorded into the device routing table to generate the device routing table.
[0169] In a specific implementation, an embodiment of the present application also provides a terminal, which includes one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, and when the instructions are executed by the terminal device, the terminal executes some or all of the steps in the above method embodiment.
[0170] In a specific implementation, the present application further provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment provided in the present application. The storage medium may be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
[0171] In a specific implementation, an embodiment of the present application further provides a computer program product, which includes executable instructions. When the executable instructions are executed on a computer, the computer executes some or all of the steps in the above method embodiment.
[0172] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0173] Those skilled in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented in a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.
[0174] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0175] In several embodiments provided by the present invention, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0176] The above is only a specific embodiment of the present invention. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. The protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A network performance monitoring method, characterized in that: include: Generate a device port table according to the configuration information of the network device, wherein the device port table is used to record the port information of the network device; Generate a device topology table according to the device port table, wherein the device topology table is used to record topological relationship information between different network devices; Generate a device routing table according to the device topology table, wherein the device routing table is used to record routing information between different network devices; Determine a target port, collect the target port status according to the port information in the device port table, and generate a port performance table corresponding to the target port, wherein the port performance table is used to record the performance parameters corresponding to the target port; According to the port information in the device port table, test the target port status and generate a port test table corresponding to the target port, wherein the port test table is used to record the test parameters corresponding to the target port; The generating of the device port table according to the configuration information of the network device comprises: Read the configuration information line by line, and perform word segmentation on each line of the configuration information according to spaces to obtain configuration information fragments; The port information corresponding to the configuration information fragment is determined according to the keyword in the header of the configuration information fragment.
2. The method according to claim 1, characterized in that: The target port is the port recorded in the device port table.
3. The method according to claim 1, characterized in that The target port is the port corresponding to the path between the retrieved source IP address and the destination IP address.
4. The method according to claim 3, characterized in that Determining the target port includes: Receive the source IP address and destination IP address entered by the user; Searching for a starting port in the device routing table according to the source IP address; According to the routing table, a path from the starting port to the destination port is searched, where the destination port is the port corresponding to the destination IP address.
5. The method according to any one of claims 1 to 4, characterized in that: Also includes: According to the performance parameters of the target port recorded in the port performance table and the test reference of the target port recorded in the port test table, an abnormality detection is performed on the target port.
6. The method according to claim 5, characterized in that Also includes: An abnormality record table is generated according to the abnormality detection result.
7. The method according to claim 1, characterized in that The generating a device topology table according to the device port table includes: The device port table is traversed, and if the network addresses corresponding to any two ports are the same, a topological relationship between the any two ports is established to generate a device topology table.
8. A network performance monitoring system, characterized in that: include: one or more processors; Memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the system, enable the system to perform the method according to any one of claims 1 to 7.
9. A computer storage medium, characterized in that The computer storage medium includes a stored program, wherein when the program is executed, the device where the computer storage medium is located is controlled to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
High-speed interconnection network topology discovery method and device, medium and high-performance computing system
CN111585821A
Method of communication control and system thereof
US20010032265A1
Node configuration method and apparatus, computer readable storage medium, and electronic device
WO2019232980A1
Network quality detection method and apparatus, network element device, computer device, and computer readable medium
WO2021093574A1
