Link aggregation control protocol function test method and device, equipment and storage medium

Through automated testing and multi-dimensional performance evaluation, dynamic test messages are generated and comprehensively analyzed, which solves the problems of low efficiency and insufficient accuracy in LACP protocol function testing and realizes comprehensive performance evaluation and optimization suggestions for the LACP protocol.

CN120658653APending Publication Date: 2025-09-16SHENZHEN FENGRUNDA TECH CO LTD

Patent Information

Application Number
CN202510901708.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-01
Publication Date
2025-09-16

AI Technical Summary

Technical Problem

Existing LACP protocol function testing methods are inefficient, easily affected by human factors, lack multi-dimensional performance evaluation capabilities, and have difficulty simulating complex network scenarios, resulting in inaccurate and one-sided test results.

Method used

Through automated testing, network status data is acquired, dynamic test messages are generated, and multi-dimensional performance data testing is performed, including physical layer parameters, dynamic performance data, and network performance indicators. Comprehensive analysis is then performed based on preset evaluation strategies to generate performance reports and optimization recommendations.

Benefits of technology

It achieves comprehensive testing of the Link Aggregation Control Protocol function, improves the accuracy and reliability of the test, and can comprehensively evaluate the performance of the LACP protocol in different network scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120658653A_ABST
    Figure CN120658653A_ABST
Patent Text Reader

Abstract

The invention discloses a link aggregation control protocol function test method and device, equipment and a storage medium, and relates to the technical field of network communication, and the method comprises the steps: obtaining network state data; generating a dynamic test message according to the network state data; performing a function test according to the dynamic test message to obtain multi-dimensional performance data, the multi-dimensional performance data including physical layer parameters, dynamic performance data and network performance indexes; and comprehensively analyzing the multi-dimensional performance data according to a preset evaluation strategy. Through automatic testing and multi-dimensional performance evaluation, comprehensive testing of the link aggregation control protocol function is completed, the technical problem that an existing testing method is low in accuracy and efficiency is solved, and reliability and comprehensiveness of link aggregation control protocol function testing are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of network communications, and in particular to a method, apparatus, device, and storage medium for testing link aggregation control protocol functions. Background Art

[0002] In today's rapidly developing network communications landscape, LACP (Link Aggregation Control Protocol) is a key technology widely used to improve network bandwidth and reliability. By aggregating multiple physical ports into a single logical port, LACP not only increases network transmission bandwidth but also improves redundancy and resilience. However, the continuous evolution and sophistication of network technology has placed higher demands on testing LACP functionality.

[0003] Currently, various technical approaches exist for testing LACP protocol functionality, but all have limitations. Some testing still relies on manual operations, requiring testers to individually configure physical interface parameters, send test packets, and manually record test results. This testing approach is not only inefficient but also susceptible to human error, such as configuration errors and recording errors. This leads to inaccurate test results and fails to fully reflect the performance of LACP in real-world network environments. Furthermore, while some automated testing tools exist on the market, these tools often offer limited functionality, performing only specific testing scenarios and lacking the ability to comprehensively evaluate the multi-dimensional performance of LACP. Most of these tools focus solely on port connectivity or simple traffic forwarding, failing to incorporate a wider range of network performance metrics for comprehensive analysis, resulting in biased test results. Furthermore, traditional testing methods also suffer from a lack of flexibility and targetedness. These methods struggle to automatically adjust test parameters based on network conditions and load, and are unable to simulate complex real-world network scenarios, leading to discrepancies between test results and actual application scenarios.

[0004] Therefore, how to conduct a comprehensive performance evaluation when testing the LACP protocol function is an issue that needs to be solved urgently. Summary of the Invention

[0005] The main purpose of this application is to provide a test method, device, equipment and storage medium for the link aggregation control protocol function, aiming to solve the technical problem of how to perform a comprehensive performance evaluation when performing LACP protocol function testing.

[0006] To achieve the above objectives, the present application proposes a method for testing link aggregation control protocol functions, the method comprising:

[0007] Get network status data;

[0008] generating a dynamic test message according to the network status data;

[0009] Performing a functional test based on the dynamic test message to obtain multi-dimensional performance data, the multi-dimensional performance data including physical layer parameters, dynamic performance data, and network performance indicators;

[0010] Perform a comprehensive analysis of the multi-dimensional performance data based on the preset evaluation strategy to generate a performance report and optimization suggestions.

[0011] In one embodiment, the step of generating a dynamic test message according to the network status data includes:

[0012] Obtaining bandwidth utilization and error frame rate according to the network status data;

[0013] Adjusting test traffic parameters based on the bandwidth utilization, the error frame rate, and preset traffic parameter adjustment rules, wherein the test traffic parameters include traffic type, traffic sending frequency, and traffic size;

[0014] Generate dynamic test packets based on the adjusted test traffic parameters.

[0015] In one embodiment, the step of performing a functional test according to the dynamic test message to obtain multi-dimensional performance data includes:

[0016] Perform port testing according to the dynamic test message to obtain physical layer parameters, wherein the physical layer parameters include port rate, port working mode and number of active ports;

[0017] Performing a dynamic performance test according to the dynamic test message to obtain dynamic performance data, wherein the dynamic performance data includes port switching delay and load balancing deviation rate;

[0018] A network performance test is performed based on the dynamic test message to obtain network performance indicators, which include network delay, packet loss rate and throughput.

[0019] In one embodiment, the step of performing a dynamic performance test according to the dynamic test message to obtain dynamic performance data includes:

[0020] When performing a port switching test according to the dynamic test message, recording the start time and end time of the port switching operation;

[0021] When performing port traffic testing according to the dynamic test message, collecting traffic load data of each port;

[0022] Obtaining a port switching delay according to a time difference between the end time and the start time;

[0023] The load balancing deviation rate between the ports is calculated based on the traffic load data.

[0024] In one embodiment, after the step of performing a functional test according to the dynamic test message to obtain multi-dimensional performance data, the method further includes:

[0025] During the test, the physical layer state machine log, traffic load distribution time series data, and network performance indicator time series data are synchronously recorded;

[0026] Aligning unified timestamps of the physical layer state machine log, the traffic load distribution time series data, and the network performance indicator time series data to obtain time series log data;

[0027] A correlation relationship table of multi-dimensional performance abnormal events is established based on the time series log data.

[0028] In one embodiment, the step of comprehensively analyzing the multi-dimensional performance data according to a preset evaluation strategy to generate a performance report and optimization suggestions includes:

[0029] Obtain physical layer weight, dynamic performance weight and network performance weight according to the preset evaluation strategy;

[0030] Constructing a multidimensional evaluation matrix corresponding to the multidimensional performance data according to the physical layer weight, the dynamic performance weight, and the network performance weight;

[0031] The multidimensional performance data is comprehensively analyzed based on the multidimensional evaluation matrix to generate a performance report and optimization suggestions.

[0032] In one embodiment, the step of comprehensively analyzing the multidimensional performance data based on the multidimensional evaluation matrix to generate a performance report and optimization suggestions includes:

[0033] Obtain a correlation table of multi-dimensional performance abnormal events;

[0034] Calculate the performance index score of each performance indicator in the multidimensional performance data according to the multidimensional evaluation matrix, wherein the performance index score includes a physical layer stability score, a dynamic performance score, and a network index score;

[0035] A performance abnormality event is determined based on the performance indicator score, and the performance abnormality event is matched and analyzed with the association relationship table to obtain a performance report and optimization suggestions.

[0036] In addition, to achieve the above-mentioned purpose, the present application also proposes a test device for link aggregation control protocol functions, the device comprising:

[0037] Data acquisition module, used to obtain network status data;

[0038] A message construction module, configured to generate a dynamic test message according to the network status data;

[0039] a functional testing module, configured to perform a functional test based on the dynamic test message to obtain multi-dimensional performance data, wherein the multi-dimensional performance data includes physical layer parameters, dynamic performance data, and network performance indicators;

[0040] The performance evaluation module is used to conduct a comprehensive analysis of the multi-dimensional performance data according to a preset evaluation strategy and generate a performance report and optimization suggestions.

[0041] In addition, to achieve the above-mentioned purpose, the present application also proposes a testing device for the link aggregation control protocol function, which includes: a memory, a processor, and a computer program stored on the memory and runnable on the processor, and the computer program is configured to implement the steps of the testing method for the link aggregation control protocol function as described above.

[0042] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the test method of the link aggregation control protocol function as described above are implemented.

[0043] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the steps of the test method of the link aggregation control protocol function as described above.

[0044] The present application provides a method for testing the link aggregation control protocol function, and the method of the present application includes: obtaining network status data; generating a dynamic test message based on the network status data; performing a functional test based on the dynamic test message to obtain multi-dimensional performance data, wherein the multi-dimensional performance data includes physical layer parameters, dynamic performance data, and network performance indicators; and performing a comprehensive analysis of the multi-dimensional performance data according to a preset evaluation strategy. In summary, the present application completes a comprehensive test of the link aggregation control protocol function through automated testing and multi-dimensional performance evaluation, solves the technical problems of low accuracy and efficiency of existing testing methods, and improves the reliability and comprehensiveness of the link aggregation control protocol function test. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0046] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0047] Figure 1 A flowchart illustrating a first embodiment of a method for testing link aggregation control protocol functions of the present application is provided;

[0048] Figure 2 A schematic diagram of the system architecture of the test method for the link aggregation control protocol function of this application;

[0049] Figure 3 A flowchart illustrating a second embodiment of a method for testing link aggregation control protocol functions of the present application is provided;

[0050] Figure 4 A flowchart of the third embodiment of the method for testing the link aggregation control protocol function of the present application is provided;

[0051] Figure 5 This is a schematic diagram of the module structure of a test device for the link aggregation control protocol function according to an embodiment of the present application;

[0052] Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the testing method of the link aggregation control protocol function in the embodiment of the present application.

[0053] The purpose, features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0054] It should be understood that the specific embodiments described herein are merely used to explain the technical solutions of the present application and are not intended to limit the present application.

[0055] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0056] The main solution of the embodiment of the present application is: obtaining network status data; generating dynamic test messages based on the network status data; performing functional testing based on the dynamic test messages to obtain multi-dimensional performance data, wherein the multi-dimensional performance data includes physical layer parameters, dynamic performance data and network performance indicators; performing a comprehensive analysis of the multi-dimensional performance data according to a preset evaluation strategy to generate a performance report and optimization suggestions.

[0057] In today's rapidly developing network communications landscape, LACP (Link Aggregation Control Protocol) is a key technology widely used to improve network bandwidth and reliability. By aggregating multiple physical ports into a single logical port, LACP not only increases network transmission bandwidth but also improves redundancy and resilience. However, the continuous evolution and sophistication of network technology has placed higher demands on testing LACP functionality.

[0058] Currently, various technical approaches exist for testing LACP protocol functionality, but each has limitations. Some testing still relies on manual operations, requiring testers to individually configure physical interface parameters, send test packets, and manually record test results. This testing approach is not only inefficient but also susceptible to human error, such as configuration errors and recording errors. This leads to inaccurate test results and fails to fully reflect the performance of the LACP protocol in real-world network environments. Furthermore, while some automated testing tools exist on the market, these tools often offer relatively limited functionality, only performing testing tasks in specific scenarios and lacking the ability to comprehensively evaluate the multi-dimensional performance of the LACP protocol. Most of these tools focus solely on port connectivity or simple traffic forwarding, failing to incorporate more comprehensive network performance metrics for comprehensive analysis, resulting in biased test results. Furthermore, traditional testing methods also suffer from a lack of flexibility and targetedness. These methods struggle to automatically adjust test parameters based on network status and load, and are unable to simulate complex real-world network scenarios, resulting in test results that deviate from actual application scenarios. Therefore, achieving a comprehensive performance evaluation during LACP protocol functional testing is an urgent issue that needs to be addressed.

[0059] This application completes the comprehensive testing of the link aggregation control protocol function through automated testing and multi-dimensional performance evaluation, solves the technical problems of low accuracy and efficiency of existing testing methods, and improves the reliability and comprehensiveness of the link aggregation control protocol function testing.

[0060] It should be noted that the execution subject of this embodiment can be a test system for the link aggregation control protocol function, a computing service device with data processing, network communication, and program execution functions, such as a tablet computer or personal computer, or an electronic device capable of performing the test function of the link aggregation control protocol function, etc. This embodiment is not specifically limited to this. The following uses a test system for the link aggregation control protocol function as an example to illustrate this embodiment and the following embodiments.

[0061] Based on this, the embodiment of the present application provides a method for testing the link aggregation control protocol function, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the method for testing the link aggregation control protocol function of the present application.

[0062] In this embodiment, the method for testing the link aggregation control protocol function includes steps S10 to S40:

[0063] Step S10: Acquire network status data.

[0064] It should be noted that in this embodiment, network status data is obtained by monitoring the network status in real time through an automated test program. Specifically, the automated test program communicates with switches, test instruments, and other devices in the network to collect status information sent by these devices, including but not limited to bandwidth utilization, error frame rate, and port status.

[0065] It is understandable that the role of this step is to provide basic data for subsequent tests, ensuring that the tests can be dynamically adjusted according to the actual network status, thereby improving the accuracy and pertinence of the tests.

[0066] Step S20: Generate a dynamic test message according to the network status data.

[0067] It should be noted that in this step, the automated test program generates dynamic test messages based on the acquired network status data. Dynamic test messages can be dynamically adjusted based on network status (such as bandwidth utilization and error frame rate) and test requirements (such as testing the load balancing capability of the LACP protocol), including message type, frequency, and data volume.

[0068] It is understandable that the purpose of this step is to simulate traffic in a real network environment so as to more accurately test the performance of the LACP protocol in different scenarios.

[0069] In a feasible implementation manner, the step S20 specifically includes:

[0070] Step S201: Obtain bandwidth utilization and error frame rate according to the network status data.

[0071] It should be noted that bandwidth utilization refers to the proportion of network bandwidth actually used, usually expressed as a percentage. The error frame rate refers to the frequency of packet errors during network transmission, usually expressed as the number of error frames per second or the error frame rate percentage. Specifically, in this step, the system will first parse the network status data collected from network devices (such as switches) and extract the two indicators of bandwidth utilization and error frame rate. Bandwidth utilization reflects the current network bandwidth usage, while the error frame rate reflects the frequency of packet errors during network transmission.

[0072] Step S202: Based on the bandwidth utilization, the error frame rate and preset traffic parameter adjustment rules, adjust the test traffic parameters, the test traffic parameters including traffic type, traffic sending frequency and traffic size.

[0073] It should be noted that the preset traffic parameter adjustment rules refer to pre-set rules and policies for adjusting test traffic parameters according to different network conditions. These rules are set based on different network characteristics or requirements. In this step, the system will dynamically adjust the test traffic parameters based on bandwidth utilization and error frame rate, combined with the preset traffic parameter adjustment rules. These test traffic parameters include traffic type (such as TCP traffic, UDP traffic), traffic sending frequency (such as the number of messages sent per second), and traffic size (such as the amount of data per message).

[0074] It is understandable that the purpose of this step is to simulate test scenarios under different network loads and transmission conditions to ensure that the test can fully cover various actual situations.

[0075] Step S203: Generate a dynamic test message according to the adjusted test traffic parameters.

[0076] It should be noted that in this step, the automated test program generates dynamic test packets based on the adjusted test traffic parameters. These packets will be used in subsequent functional testing to verify the performance of the LACP protocol under different network loads and transmission conditions. For example, the adjusted test traffic parameters are: traffic type is TCP traffic, traffic frequency is 1000 packets per second, and traffic size is 1500 bytes. The system generates the corresponding TCP packets based on these parameters and sends them to the switch through the first network interface card for testing.

[0077] Step S30: Perform a functional test according to the dynamic test message to obtain multi-dimensional performance data, which includes physical layer parameters, dynamic performance data, and network performance indicators.

[0078] It should be noted that multi-dimensional performance data refers to a variety of performance data including physical layer parameters, dynamic performance data and network performance indicators. These data can fully reflect the performance of the LACP protocol in different scenarios and provide a basis for subsequent performance evaluation and optimization. Specifically, Figure 2As shown, in this step, based on the generated dynamic test messages, the automated test program controls the first network interface card to send these messages to the switch and receive feedback from the switch and the test instrument. Simultaneously, the test instrument dynamically manipulates physical layer parameters and monitors protocol behavior, collecting multi-dimensional performance data including physical layer parameters (such as port speed and duplex mode), dynamic performance data (such as convergence time and load balancing deviation rate), and network performance indicators (such as latency, packet loss rate, and throughput).

[0079] Step S40: Perform a comprehensive analysis on the multi-dimensional performance data according to a preset evaluation strategy to generate a performance report and optimization suggestions.

[0080] It's important to note that the system conducts a comprehensive analysis of the collected multi-dimensional performance data based on pre-defined evaluation strategies (such as constructing an evaluation matrix based on performance dimensions). For example, during the evaluation process, if a performance anomaly caused by data anomalies is discovered, analysis will determine that an abnormal event (such as a sudden increase in packet loss) has occurred. The system will then locate and attribute the fault based on the fault data and provide corresponding optimization recommendations.

[0081] This step comprehensively evaluates LACP performance and generates a detailed performance report and optimization recommendations. The performance report includes visual comparisons of metrics (such as a trend chart showing fault convergence time), while optimization recommendations automatically recommend configuration adjustments based on different test results (such as adjusting the hash algorithm based on load balancing deviations).

[0082] This embodiment provides a method for testing the link aggregation control protocol function, which includes: obtaining network status data; generating dynamic test messages based on the network status data; performing functional testing based on the dynamic test messages to obtain multi-dimensional performance data, wherein the multi-dimensional performance data includes physical layer parameters, dynamic performance data, and network performance indicators; and performing a comprehensive analysis of the multi-dimensional performance data based on a preset evaluation strategy. In summary, this embodiment completes a comprehensive test of the link aggregation control protocol function through automated testing and multi-dimensional performance evaluation, solves the technical problems of low accuracy and efficiency of existing testing methods, and improves the reliability and comprehensiveness of link aggregation control protocol function testing.

[0083] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above embodiment 1 can be referred to the above introduction and will not be described in detail later. Figure 3 , Figure 3 This is a flow chart of the second embodiment of the method for testing the link aggregation control protocol function of the present application, wherein step S30 specifically includes:

[0084] Step S301: Perform port testing according to the dynamic test message to obtain physical layer parameters, which include port rate, port working mode, and number of active ports.

[0085] It should be noted that if Figure 2 As shown, port testing refers to testing of the physical ports of network devices (such as switches) to verify their connectivity, configuration, and performance. Physical layer parameters refer to parameters that describe physical layer connections and configurations, including but not limited to port speed, port operating mode, and the number of active ports. Specifically, in this step, the test instrument in the system (or the software part of the integrated test tool) will perform detailed physical layer tests on the switch ports based on dynamic test messages. These tests include but are not limited to measuring the actual speed of the port (whether it is consistent with the configuration), checking the operating mode of the port (full-duplex operating mode or half-duplex operating mode), and counting the number of active ports currently participating in link aggregation.

[0086] Step S302: Perform a dynamic performance test according to the dynamic test message to obtain dynamic performance data, wherein the dynamic performance data includes port switching delay and load balancing deviation rate.

[0087] It should be noted that dynamic performance testing refers to testing conducted in a simulated dynamic network environment (such as network failures, traffic changes, etc.) to verify the performance and stability of network equipment. Dynamic performance data refers to data that describes the performance of network equipment in a dynamic network environment, including but not limited to port switching delays and load balancing deviation rates. For example, suppose that a dynamic test message contains instructions to simulate a port failure. The automated test program will control the test instrument to trigger a port DOWN event and record dynamic performance data from the time the event occurs to when the port comes back up.

[0088] In a feasible implementation manner, the step S302 specifically includes:

[0089] Step A10: When performing a port switching test according to the dynamic test message, the start time and the end time of the port switching operation are recorded.

[0090] It should be noted that in this step, the automated test program in the system simulates a port failure in the network (such as triggering a port DOWN event through a test instrument) and starts a timer to record the start time of the port switching operation. The automated test program then continues to monitor the port status until the port is back up and normal connection is restored, at which point the end time of the port switching operation is recorded. It can be understood that the purpose of this step is to accurately capture the time required for the port to restore connection from the occurrence of the failure, that is, the port switching delay.

[0091] Step A20: When performing port traffic testing according to the dynamic test message, collecting traffic load data of each port.

[0092] It should be noted that during this step, the system's automated testing program sends a large number of dynamic test packets to the network and uses test equipment to monitor the traffic flow at each port. The test equipment collects real-time statistics on the traffic load of each port, including but not limited to the amount of data received and sent by each port, and the traffic rate.

[0093] Step A30: Obtain a port switching delay according to the time difference between the end time and the start time.

[0094] It's important to note that in this step, the automated test program calculates the time difference between the recorded port switching operation's end and start times. This time difference is the port switching latency. It's understood that this step converts the recorded time points into actual latency values ​​for subsequent performance evaluation and comparison.

[0095] Step A40: Calculate the load balancing deviation rate between the ports based on the traffic load data.

[0096] It should be noted that the load balancing deviation rate refers to the degree of deviation between the traffic load of each port and the average traffic load, and is used to evaluate the load balancing effect of link aggregation. The smaller the deviation rate, the better the load balancing effect; the larger the deviation rate, the worse the load balancing effect. In this step, the automated test program will calculate the load balancing deviation rate between each port based on the statistical traffic load data of each port. Specifically, the automated test program will first calculate the average traffic load of all ports, and then calculate the deviation between the traffic load of each port and the average traffic load, and normalize these deviations to obtain the load balancing deviation rate. It can be understood that the purpose of this step is to evaluate the load balancing effect of link aggregation.

[0097] Step S303: Perform a network performance test according to the dynamic test message to obtain network performance indicators, which include network delay, packet loss rate and throughput.

[0098] It should be noted that network performance metrics refer to network performance data, including but not limited to network latency, packet loss rate, and throughput. In this step, the system's automated testing program sends a large number of dynamic test packets to the network and monitors the transmission of these packets. Network latency is calculated by calculating the time it takes for a packet to be sent and received; packet loss rate is calculated by counting lost packets; and throughput is calculated by measuring the amount of data successfully transmitted per unit time. This step is intended to assess network performance under varying load and transmission conditions.

[0099] In a feasible implementation manner, after step S30, the method further includes:

[0100] Step B10: During the test, the physical layer state machine log, traffic load distribution time series data, and network performance indicator time series data are synchronously recorded.

[0101] It should be noted that during the test, the system automatically and synchronously records the physical layer state machine log, traffic load distribution time series data, and network performance indicator time series data. The physical layer state machine log records the state changes of the physical layer devices, such as port up / down events, port speed, and duplex mode switching. The traffic load distribution time series data records the changes in traffic load on each port over time during the test. The network performance indicator time series data records the changes in network performance indicators such as latency, packet loss rate, and throughput over time.

[0102] Step B20: aligning the unified timestamps of the physical layer state machine log, the traffic load distribution time series data, and the network performance indicator time series data to obtain time series log data.

[0103] It should be noted that in this step, the system aligns the unified timestamps of the physical layer state machine log, traffic load distribution time series data, and network performance indicator time series data to obtain time series log data. This time series log data refers to the data obtained after the timestamps of the physical layer state machine log, traffic load distribution time series data, and network performance indicator time series data are aligned. This data maintains temporal consistency, facilitating subsequent comprehensive analysis and troubleshooting.

[0104] Step B30: Establish a correlation table of multi-dimensional performance abnormality events based on the time series log data.

[0105] It should be noted that in this step, the system will create a multi-dimensional performance anomaly event correlation table based on the time series log data. This correlation table records the correlations between anomaly events across different performance indicators. These correlations help system and management personnel locate the root cause of the problem more quickly.

[0106] This embodiment achieves comprehensive automated testing and comprehensive evaluation of link aggregation control protocol functionality by acquiring physical layer parameters, dynamic performance data, and network performance indicators, synchronously recording and processing test time series data, and establishing a correlation table for multi-dimensional performance anomaly events. This addresses the issues of low accuracy and reliability, lack of comprehensive evaluation, and insufficient flexibility and specificity in traditional testing methods, thereby improving testing efficiency and accuracy.

[0107] Based on the first and second embodiments of the present application, in the third embodiment of the present application, the same or similar contents as those in the first and second embodiments can be referred to above and will not be described in detail. Figure 4 , Figure 4 This is a flow chart of the third embodiment of the method for testing the link aggregation control protocol function of the present application, wherein step S40 specifically includes:

[0108] Step S401: Obtain the physical layer weight, dynamic performance weight, and network performance weight according to a preset evaluation strategy.

[0109] It should be noted that in this step, the system will determine the weights of physical layer parameters, dynamic performance data, and network performance indicators in the overall evaluation based on the preset evaluation strategy. The physical layer weight reflects the importance of physical layer parameters (such as port speed, operating mode, and number of active ports) in the evaluation; the dynamic performance weight reflects the impact of dynamic performance data (such as port switching delay and load balancing deviation rate) on the evaluation results; and the network performance weight measures the proportion of network performance indicators (such as latency, packet loss rate, and throughput) in the evaluation.

[0110] Step S402: constructing a multidimensional evaluation matrix corresponding to the multidimensional performance data according to the physical layer weight, the dynamic performance weight, and the network performance weight.

[0111] It's important to note that the system constructs a multidimensional evaluation matrix corresponding to the multidimensional performance data based on the obtained physical layer weights, dynamic performance weights, and network performance weights. This matrix integrates the physical layer parameters, dynamic performance data, and network performance indicators according to their weights, forming a comprehensive evaluation system. This step provides a structured evaluation framework for subsequent comprehensive analysis, ensuring a systematic and comprehensive evaluation process. Assume that, according to the evaluation strategy, the physical layer weight is 40%, the dynamic performance weight is 30%, and the network performance weight is 30%. When constructing the multidimensional evaluation matrix, the physical layer parameters, dynamic performance data, and network performance indicators can be used as rows or columns of the matrix, and values ​​can be assigned according to their weights.

[0112] Step S403: Perform a comprehensive analysis on the multi-dimensional performance data based on the multi-dimensional evaluation matrix to generate a performance report and optimization suggestions.

[0113] It's important to note that in this step, the system conducts a comprehensive analysis of multi-dimensional performance data based on a constructed multi-dimensional evaluation matrix. This analysis combines physical layer parameters, dynamic performance data, and network performance indicators according to their weights, resulting in a comprehensive evaluation score. Based on this score, a performance report is generated, highlighting the network's performance in various areas and providing optimization recommendations for any issues.

[0114] In a feasible implementation manner, step S403 specifically includes:

[0115] Step C10: Obtain a correlation table of multi-dimensional performance abnormality events.

[0116] It should be noted that, in this step, the system will obtain the abnormal event correlation relationships between different performance indicators obtained in step B30, and organize them into a table form, that is, a correlation relationship table of multi-dimensional performance abnormal events.

[0117] Step C20: Calculating the scores of various performance indicators in the multi-dimensional performance data according to the multi-dimensional evaluation matrix, wherein the performance indicator scores include a physical layer stability score, a dynamic performance score, and a network indicator score.

[0118] It's important to note that in this step, the system scores each performance indicator in the multidimensional performance data based on a multidimensional evaluation matrix. During this scoring process, the actual values ​​of physical layer parameters, dynamic performance data, and network performance indicators are compared with preset standard values ​​or thresholds. A weighted sum is then calculated based on the weights in the multidimensional evaluation matrix to determine a score for each performance indicator. A higher score indicates better performance for that performance indicator; a lower score indicates a problem or needs optimization.

[0119] Step C30: determining a performance abnormality event based on the performance indicator score, performing matching analysis on the performance abnormality event and the association relationship table, and obtaining a performance report and optimization suggestions.

[0120] It should be noted that in this step, the system will determine which performance indicators are abnormal or require optimization based on the performance indicator scores. It will then match and analyze the current performance anomaly event with the correlation table of multi-dimensional performance anomaly events to identify the time and location of the performance anomaly event. Finally, based on the matching analysis results, a performance report and optimization recommendations are generated. For example, the scores for physical layer stability, dynamic performance, and network indicators are determined. The system will match and analyze these performance anomaly events with the correlation table of multi-dimensional performance anomaly events and discover that low network indicator scores are associated with increased packet loss rates on a certain port. Therefore, the generated performance report will indicate the packet loss rate issue for that port and recommend optimization suggestions such as checking the port's physical connection, adjusting the load balancing algorithm, or optimizing the network configuration.

[0121] In this embodiment, a multi-dimensional evaluation matrix is ​​constructed through a preset weight strategy, and an automated comprehensive analysis of physical layer stability, dynamic performance, and network performance indicators is performed based on the matrix, thereby achieving a multi-dimensional comprehensive evaluation and root cause location of LACP protocol performance, solving the problem of lack of systematic performance quantification in traditional testing, and improving fault diagnosis efficiency and the accuracy of optimization suggestions.

[0122] This application also provides a test device for link aggregation control protocol function, please refer to Figure 5 , the link aggregation control protocol function testing device includes:

[0123] The data acquisition module 10 is used to obtain network status data.

[0124] The message construction module 20 is configured to generate a dynamic test message according to the network status data.

[0125] The functional testing module 30 is configured to perform a functional test according to the dynamic test message to obtain multi-dimensional performance data, wherein the multi-dimensional performance data includes physical layer parameters, dynamic performance data, and network performance indicators.

[0126] The performance evaluation module 40 is used to perform a comprehensive analysis on the multi-dimensional performance data according to a preset evaluation strategy and generate a performance report and optimization suggestions.

[0127] The link aggregation control protocol function testing device provided in this application, which employs the link aggregation control protocol function testing method described in the aforementioned embodiment, can solve the technical problem of how to conduct a comprehensive performance evaluation when testing LACP protocol functions. Compared to the prior art, the link aggregation control protocol function testing device provided in this application has the same beneficial effects as the link aggregation control protocol function testing method described in the aforementioned embodiment. Other technical features of the link aggregation control protocol function testing device described in this application are the same as those disclosed in the aforementioned embodiment method and are not further elaborated upon here.

[0128] In one embodiment, the message construction module 20 is further used to obtain bandwidth utilization and error frame rate based on the network status data; adjust test traffic parameters based on the bandwidth utilization, the error frame rate and preset traffic parameter adjustment rules, and the test traffic parameters include traffic type, traffic sending frequency and traffic size; generate dynamic test messages according to the adjusted test traffic parameters.

[0129] In one embodiment, the functional testing module 30 is further used to perform port testing based on the dynamic test message to obtain physical layer parameters, which include port rate, port working mode and number of active ports; perform dynamic performance testing based on the dynamic test message to obtain dynamic performance data, which includes port switching delay and load balancing deviation rate; perform network performance testing based on the dynamic test message to obtain network performance indicators, which include network delay, packet loss rate and throughput.

[0130] In one embodiment, the functional testing module 30 is further used to record the start time and end time of the port switching operation when performing a port switching test according to the dynamic test message; to count the traffic load data of each port when performing a port traffic test according to the dynamic test message; to obtain the port switching delay based on the time difference between the end time and the start time; and to calculate the load balancing deviation rate between each port based on the traffic load data.

[0131] In one embodiment, the functional testing module 30 is also used to synchronously record the physical layer state machine log, traffic load distribution timing data and network performance indicator timing data during the test process; align the unified timestamps of the physical layer state machine log, the traffic load distribution timing data and the network performance indicator timing data to obtain timing log data; and establish a correlation relationship table of multi-dimensional performance abnormality events based on the timing log data.

[0132] In one embodiment, the performance evaluation module 40 is also used to obtain physical layer weights, dynamic performance weights, and network performance weights according to a preset evaluation strategy; construct a multidimensional evaluation matrix corresponding to the multidimensional performance data based on the physical layer weights, the dynamic performance weights, and the network performance weights; and perform a comprehensive analysis of the multidimensional performance data based on the multidimensional evaluation matrix to generate a performance report and optimization recommendations.

[0133] In one embodiment, the performance evaluation module 40 is also used to obtain a correlation table of multi-dimensional performance abnormal events; calculate the scores of each performance indicator in the multi-dimensional performance data based on the multi-dimensional evaluation matrix, and the performance indicator scores include physical layer stability scores, dynamic performance scores, and network indicator scores; determine performance abnormal events based on the performance indicator scores, match and analyze the performance abnormal events with the correlation table, and obtain performance reports and optimization suggestions.

[0134] The present application provides a test device for link aggregation control protocol functions, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the test method for the link aggregation control protocol function in the above-mentioned embodiment 1.

[0135] Reference below Figure 6 , which shows a schematic diagram of the structure of a test device suitable for implementing the link aggregation control protocol function of an embodiment of the present application. The test device for the link aggregation control protocol function in the embodiment of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), in-vehicle terminals (such as in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 6 The test equipment for the link aggregation control protocol function shown is merely an example and should not limit the functions and scope of use of the embodiments of the present application.

[0136] like Figure 6As shown, the test equipment for the link aggregation control protocol function may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a ROM (Read Only Memory) 1002 or a program loaded from a storage device 1003 into a RAM (Random Access Memory) 1004. Various programs and data required for the operation of the test equipment for the link aggregation control protocol function are also stored in the RAM 1004. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input device 1007 including, for example, a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output device 1008 including, for example, an LCD (Liquid Crystal Display), speaker, vibrator, etc.; storage device 1003 including, for example, a magnetic tape, hard disk, etc.; and communication device 1009. Communication device 1009 can allow the link aggregation control protocol function test device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a link aggregation control protocol function test device with various systems, it should be understood that it is not required to implement or have all of the systems shown. More or fewer systems may be implemented or have instead.

[0137] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0138] The link aggregation control protocol function testing device provided in this application, using the link aggregation control protocol function testing method described in the above-mentioned embodiment, can solve the technical problem of how to conduct a comprehensive performance evaluation when testing LACP protocol functions. Compared with the prior art, the link aggregation control protocol function testing device provided in this application has the same beneficial effects as the link aggregation control protocol function testing method described in the above-mentioned embodiment. Other technical features of the link aggregation control protocol function testing device provided in this application are the same as those disclosed in the method described in the above-mentioned embodiment and are not further described here.

[0139] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0140] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

[0141] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, a computer program) stored thereon, wherein the computer-readable program instructions are used to execute the method for testing the link aggregation control protocol function in the above-mentioned embodiment.

[0142] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, RAM (Random Access Memory), ROM (Read Only Memory), EPROM (Erasable Programmable Read Only Memory or Flash memory), optical fiber, CD-ROM (CD-Read Only Memory, portable compact disk read-only memory), optical storage device, magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0143] The computer-readable storage medium may be included in the link aggregation control protocol function test device; or may exist independently without being assembled into the link aggregation control protocol function test device.

[0144] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the test equipment of the link aggregation control protocol function, the test equipment of the link aggregation control protocol function: obtains network status data; generates dynamic test messages based on the network status data; performs functional testing based on the dynamic test messages to obtain multi-dimensional performance data, and the multi-dimensional performance data includes physical layer parameters, dynamic performance data and network performance indicators; and performs comprehensive analysis on the multi-dimensional performance data according to a preset evaluation strategy.

[0145] The computer program code for performing the operations of the present application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user's computer through any type of network, including a LAN (Local Area Network) or a WAN (Wide Area Network), or can be connected to an external computer (e.g., using an Internet service provider to connect via the Internet).

[0146] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.

[0147] The modules described in the embodiments of the present application may be implemented in software or hardware, wherein the name of a module does not necessarily limit the unit itself.

[0148] The computer-readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the aforementioned Link Aggregation Control Protocol function testing method. This computer-readable storage medium can address the technical problem of conducting a comprehensive performance evaluation when testing LACP protocol functions. Compared to the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the Link Aggregation Control Protocol function testing method provided in the aforementioned embodiment, and are not further elaborated here.

[0149] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned method for testing the link aggregation control protocol function when executed by a processor.

[0150] The computer program product provided in this application can solve the technical problem of how to conduct a comprehensive performance evaluation when testing LACP protocol functions. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the Link Aggregation Control Protocol function testing method provided in the above embodiment, and will not be elaborated here.

[0151] The above description is only part of the embodiments of the present application and does not limit the patent scope of the present application. All equivalent structural transformations made by using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A method for testing link aggregation control protocol functions, characterized in that: The method comprises: Get network status data; generating a dynamic test message according to the network status data; Performing a functional test based on the dynamic test message to obtain multi-dimensional performance data, the multi-dimensional performance data including physical layer parameters, dynamic performance data, and network performance indicators; Perform a comprehensive analysis of the multi-dimensional performance data based on the preset evaluation strategy to generate a performance report and optimization suggestions.

2. The method according to claim 1, wherein The step of generating a dynamic test message according to the network status data includes: Obtaining bandwidth utilization and error frame rate according to the network status data; Adjusting test traffic parameters based on the bandwidth utilization, the error frame rate, and preset traffic parameter adjustment rules, wherein the test traffic parameters include traffic type, traffic sending frequency, and traffic size; Generate dynamic test packets based on the adjusted test traffic parameters.

3. The method according to claim 1, wherein The step of performing a functional test according to the dynamic test message to obtain multi-dimensional performance data includes: Perform port testing according to the dynamic test message to obtain physical layer parameters, wherein the physical layer parameters include port rate, port working mode and number of active ports; Performing a dynamic performance test according to the dynamic test message to obtain dynamic performance data, wherein the dynamic performance data includes port switching delay and load balancing deviation rate; A network performance test is performed based on the dynamic test message to obtain network performance indicators, which include network delay, packet loss rate and throughput.

4. The method according to claim 3, wherein The step of performing a dynamic performance test according to the dynamic test message to obtain dynamic performance data includes: When performing a port switching test according to the dynamic test message, recording the start time and end time of the port switching operation; When performing port traffic testing according to the dynamic test message, collecting traffic load data of each port; Obtaining a port switching delay according to a time difference between the end time and the start time; The load balancing deviation rate between the ports is calculated based on the traffic load data.

5. The method according to claim 1, wherein After the step of performing a functional test according to the dynamic test message to obtain multi-dimensional performance data, the method further includes: During the test, the physical layer state machine log, traffic load distribution time series data, and network performance indicator time series data are synchronously recorded; Aligning unified timestamps of the physical layer state machine log, the traffic load distribution time series data, and the network performance indicator time series data to obtain time series log data; A correlation relationship table of multi-dimensional performance abnormal events is established based on the time series log data.

6. The method according to claim 1, wherein The step of comprehensively analyzing the multi-dimensional performance data according to a preset evaluation strategy to generate a performance report and optimization suggestions includes: Obtain physical layer weight, dynamic performance weight and network performance weight according to the preset evaluation strategy; Constructing a multidimensional evaluation matrix corresponding to the multidimensional performance data according to the physical layer weight, the dynamic performance weight, and the network performance weight; The multidimensional performance data is comprehensively analyzed based on the multidimensional evaluation matrix to generate a performance report and optimization suggestions.

7. The method according to claim 6, wherein The step of comprehensively analyzing the multidimensional performance data based on the multidimensional evaluation matrix to generate a performance report and optimization suggestions includes: Obtain a correlation table of multi-dimensional performance abnormal events; Calculate the performance index score of each performance indicator in the multidimensional performance data according to the multidimensional evaluation matrix, wherein the performance index score includes a physical layer stability score, a dynamic performance score, and a network index score; A performance abnormality event is determined based on the performance indicator score, and the performance abnormality event is matched and analyzed with the association relationship table to obtain a performance report and optimization suggestions.

8. A test device for link aggregation control protocol function, characterized in that: The device comprises: Data acquisition module, used to obtain network status data; A message construction module, configured to generate a dynamic test message according to the network status data; a functional testing module, configured to perform a functional test based on the dynamic test message to obtain multi-dimensional performance data, wherein the multi-dimensional performance data includes physical layer parameters, dynamic performance data, and network performance indicators; The performance evaluation module is used to conduct a comprehensive analysis of the multi-dimensional performance data according to a preset evaluation strategy and generate a performance report and optimization suggestions.

9. A test device for link aggregation control protocol function, characterized in that: The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the method for testing the link aggregation control protocol function according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the method for testing the link aggregation control protocol function according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Link aggregation control protocol (LACP) load balancing method and system

    CN105490958A

  • LACP load balancing method, device and system

    CN110838986A

  • Method and device for dynamically calculating delay required for switching paths of link aggregation group

    CN111193663A

  • Link convergence performance test method and system

    CN115277488A

  • Aggregated link load balancing method and device

    CN117255059A

Cited By

  • Network fault management method and device, equipment, storage medium and program product

    CN121357046A