Method, device, system and equipment for adjusting delay parameter of RGMII interface

Through network performance testing and adaptive PID algorithm, the delay parameters of the RGMII interface are automatically adjusted, which solves the problem of cumbersome manual adjustment and is susceptible to the environment, improves network stability and efficiency, and reduces maintenance costs.

CN119155176AInactive Publication Date: 2024-12-17ZHEJIANG CHINT INSTR & METER

Patent Information

Application Number
CN202411641273.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-18
Publication Date
2024-12-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, the signal delay parameters of the RGMII interface need to be manually adjusted, the process is cumbersome and susceptible to environmental changes, resulting in a decline in network performance and an increase in economic costs.

Method used

The network performance testing tool is used to obtain the network performance parameters of the RGMII interface, and the adaptive PID algorithm is used to calculate new delay parameters to realize automatic adjustment, adapt to changes in the network environment, and reduce the complexity of manual intervention and maintenance.

Benefits of technology

Improve the stability and efficiency of data transmission, reduce system maintenance costs, and promptly detect and adjust network performance problems caused by environmental changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119155176A_ABST
    Figure CN119155176A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication, in particular to a delay parameter adjusting method, device, system and equipment of an RGMII interface. The method comprises the following steps: based on an initial delay parameter of the RGMII interface, acquiring a network performance parameter of the RGMII interface by adopting a network performance test tool; judging whether the network performance parameters meet preset requirements or not; when the network performance parameter does not meet the preset requirement, calculating a new delay parameter as an adjusted delay parameter by adopting a self-adaptive PID (Proportion Integration Differentiation) algorithm; and when the network performance parameter meets a preset requirement, performing a network performance test according to a preset time interval. According to the invention, when the network performance parameter obtained through the network performance test does not meet the preset requirement, the self-adaptive PID algorithm is adopted to determine the adjusted delay parameter, so that self-adaptive parameter adjustment is realized, the need of manual intervention is reduced, and the complexity and cost of system maintenance are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a method, device, system and equipment for adjusting delay parameters of an RGMII interface. Background Art

[0002] In modern Ethernet communication systems, the RGMII (Reduced Gigabit Media Independent Interface) interface plays a vital role. It connects the MAC (Media Access Control) layer and the PHY (Physical Layer) device and is the key to achieving high-speed data transmission. By optimizing the number of signal lines, the RGMII interface not only reduces costs and design complexity, but also maintains a high data transmission rate.

[0003] However, the performance of the RGMII interface is extremely dependent on the precise adjustment of the signal transmission and reception delay parameters. The correct setting of the delay parameters is crucial for data synchronization. Any inaccurate delay setting may cause a serious degradation of network performance or even make the device completely unable to communicate. Therefore, the fine adjustment of the delay parameters is not only necessary, but also the key to ensure the stable operation of the Ethernet communication system. The importance of this point in Ethernet communication technology cannot be ignored, it is directly related to the reliability and efficiency of the network.

[0004] In practical applications, the signal delay parameters of the RGMII interface are usually adjusted manually. However, the manual adjustment method not only has high technical requirements, but also has a cumbersome process and is prone to errors due to improper human operation. At the same time, the manual adjustment method lacks flexibility and is difficult to respond to environmental changes such as temperature fluctuations and unstable power supply in a timely manner, thus affecting the reliability and stability of communication. In addition, when the hardware is updated or the network conditions change, manual adjustments need to be made repeatedly, which not only slows down the development progress, but also affects the time to market of the product. In addition, frequent manual adjustments increase human resource investment, especially in large-scale production and maintenance, the economic cost is significantly increased. It can be seen that the method of manually adjusting the signal delay parameters of the RGMII interface has problems such as technical barriers in the adjustment process, being easily affected by environmental factors, and leading to an extension of the development cycle and an increase in economic costs. Summary of the invention

[0005] In view of this, the present invention provides a method, device, system and equipment for adjusting delay parameters of an RGMII interface to solve one of the problems existing in the above-mentioned prior art.

[0006] In a first aspect, the present invention provides a delay parameter adjustment method for an RGMII interface, the method comprising: based on the initial delay parameters of the RGMII interface, using a network performance testing tool to obtain the network performance parameters of the RGMII interface; judging whether the network performance parameters meet preset requirements; when the network performance parameters do not meet the preset requirements, using an adaptive PID algorithm to calculate new delay parameters as adjusted delay parameters; when the network performance parameters meet the preset requirements, performing a network performance test at preset time intervals.

[0007] In the present invention, the network performance parameters of the RGMII interface are obtained by performing a network performance test under the initial delay parameters, and whether the delay parameters are adjusted is determined based on whether the network performance parameters meet the preset requirements. At the same time, when adjusting the delay parameters, an adaptive PID algorithm is used to determine the adjusted delay parameters, thereby realizing adaptive parameter adjustment, reducing the need for manual intervention, and reducing the complexity and cost of system maintenance. Moreover, since the method adjusts the delay parameters according to the results of the network performance test, the delay parameters can automatically adapt to changes in the network environment, thereby improving the stability and efficiency of data transmission. In addition, after the network performance parameters meet the preset requirements, a network performance test is performed at a preset time interval, thereby realizing regular self-inspection, thereby being able to timely discover and adjust network performance problems caused by environmental changes.

[0008] In an optional implementation, an adaptive PID algorithm is used to calculate a new delay parameter as the adjusted delay parameter, including: calculating an error in the network performance parameter based on a difference between the network performance parameter and a preset network performance parameter; using an adaptive algorithm to update the parameters of the PID algorithm based on the error; and calculating a new delay parameter based on the updated PID parameter and the error as the adjusted delay parameter.

[0009] In the present invention, the parameters of the PID algorithm are first adjusted according to the error of the network performance parameters, and then the delay parameters are adjusted according to the updated PID algorithm parameters. Thus, through the adaptive PID algorithm, the delay parameters can be dynamically adjusted according to the real-time network conditions, thereby optimizing the data transmission efficiency.

[0010] In an optional embodiment, based on the initial delay parameters of the RGMII interface, the network performance parameters adopt a network performance testing tool to obtain the network performance parameters of the RGMII interface, including: based on the initial delay parameters, controlling the RGMII interface to send and receive data packets a first preset number of times; based on the initial delay parameters, controlling the RGMII interface to perform a second preset number of network performance tests; obtaining the network performance parameters of each network performance test based on the second preset number of network performance tests; removing the highest and lowest values ​​in the network performance parameters, averaging the remaining network performance parameters to obtain an average value of the network performance parameters, and the average value of the network performance parameters is used as the network performance parameters to judge the preset requirements.

[0011] In the present invention, multiple data packet transmission and reception are performed before the network performance test, thereby avoiding environmental interference. The network performance test is performed after stable communication, thereby ensuring the accuracy and stability of the network performance parameters obtained by the test.

[0012] In an optional embodiment, the method also includes: performing a network performance test based on the adjusted delay parameters to obtain new network performance parameters of the RGMII interface; determining whether the new network performance parameters meet the preset requirements; when the new network performance parameters do not meet the preset requirements, repeating the delay parameter calculation process until the new network performance parameters obtained based on the adjusted delay parameters meet the preset requirements.

[0013] In the present invention, after determining the adjusted delay parameter, the network performance test is performed again to verify whether the adjusted delay parameter meets the data transmission requirement.

[0014] In an optional embodiment, when the network performance parameters meet the preset requirements, a network performance test is performed at a preset time interval, including: when the network performance parameters meet the preset requirements, the next network performance test is performed at a first preset time interval; when the new network performance parameters obtained based on the next network performance test meet the preset requirements, the next network performance test is performed at a second preset time interval; when the new network performance parameters obtained based on the next network performance test meet the preset requirements, the third network performance test is performed at a third preset time interval; when the new network performance parameters obtained based on the third network performance test meet the preset requirements, the network performance test is continuously performed at the third preset time interval, the first preset time interval being less than the second preset time interval, and the second preset time interval being less than the third preset time interval.

[0015] In the present invention, after the network performance parameters meet the preset requirements, the network performance test is performed at gradually increasing time intervals to avoid repeated testing in a short period of time and occupying the network bandwidth. At the same time, the network performance can be monitored without affecting the network port application.

[0016] In an optional implementation, the delay parameters include a receiving delay parameter and a sending delay parameter, the network performance parameters are parameters that characterize the transmission performance of the RGMII interface, and the network performance parameters include any one or more of bandwidth, network jitter, and packet loss rate.

[0017] In the second aspect, the present invention provides a delay parameter adjustment device for an RGMII interface, the device comprising: a testing module, used to obtain the network performance parameters of the RGMII interface based on the initial delay parameters of the RGMII interface using a network performance testing tool; a judgment module, used to judge whether the network performance parameters meet preset requirements; an adjustment module, used to calculate new delay parameters as adjusted delay parameters using an adaptive PID algorithm when the network performance parameters do not meet the preset requirements; when the network performance parameters meet the preset requirements, perform a network performance test at preset time intervals.

[0018] In the third aspect, the present invention provides a delay parameter adjustment system for an RGMII interface, the system comprising: a client, a switch and a server, the client and the switch are connected using the RGMII interface, and the network performance test is performed by forwarding data packets between the client and the server through the switch; the client is used to obtain the network performance parameters of the RGMII interface based on the initial delay parameters of the RGMII interface using a network performance testing tool; determine whether the network performance parameters meet preset requirements; when the network performance parameters do not meet the preset requirements, use an adaptive PID algorithm to calculate new delay parameters as adjusted delay parameters; when the network performance parameters meet the preset requirements, perform a network performance test at preset time intervals.

[0019] In a fourth aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the delay parameter adjustment method of the RGMII interface of the above-mentioned first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0020] In a fifth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the delay parameter adjustment method of the RGMII interface of the above-mentioned first aspect or any corresponding embodiment thereof.

[0021] In a sixth aspect, the present invention provides a computer program product, comprising computer instructions, wherein the computer instructions are used to enable a computer to execute the delay parameter adjustment method of the RGMII interface of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0023] Figure 1 is a schematic flow chart of a delay parameter adjustment method of an RGMII interface according to an embodiment of the present invention; Figure 2 is a flow chart of another method for adjusting delay parameters of an RGMII interface according to an embodiment of the present invention; Figure 3 is a flow chart of another method for adjusting delay parameters of an RGMII interface according to an embodiment of the present invention; Figure 4 is a flow chart of a delay parameter adjustment method of another RGMII interface according to an embodiment of the present invention; Figure 5 is a structural block diagram of a delay parameter adjustment system of an RGMII interface according to an embodiment of the present invention; Figure 6 is a structural block diagram of a delay parameter adjustment device for an RGMII interface according to an embodiment of the present invention; Figure 7 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0025] According to an embodiment of the present invention, an embodiment of a delay parameter adjustment method for an RGMII interface is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown here.

[0026] In this embodiment, a delay parameter adjustment method of an RGMII interface is provided. Figure 1 is a flow chart of a delay parameter adjustment method of an RGMII interface according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps: Step S101, based on the initial delay parameters of the RGMII interface, a network performance test tool is used to obtain the network performance parameters of the RGMII interface. Specifically, the RGMII interface can be an interface on a certain IoT device, for example, it can be an interface on a power collection terminal or other IoT devices. The network performance test can be implemented by sending and receiving data packets through the RGMII interface. Specifically, the network performance test can be performed through the iperf tool to obtain the network performance parameters.

[0027] For example, in actual applications, the power collection terminal can be used as the client, and the computer can be used as the server. The iperf software is installed on both the client and the server. The iperf software is run on the client and the server respectively for data transmission. The software can measure the corresponding network performance parameters during data transmission. The network performance parameters are parameters that characterize the transmission performance of the RGMII interface. The network performance parameters include one or more of the parameters such as Bitrate (transmission rate, i.e. bandwidth), Jitter (network jitter, i.e. the average value of the delay difference between consecutive data packets sent), and Lost / Total Datagrams (packet loss rate, the ratio of lost data packets to total data packets sent).

[0028] In addition, before data transmission, the initial delay parameters are pre-set. For example, the initial delay parameters can be pre-set in the configuration file. The delay parameters include the sending delay (tx_delay) and the receiving delay (tx_delay). After configuring the initial delay parameters, perform a network performance test and obtain the corresponding network performance parameters. The network performance parameters are used to determine whether the set initial delay parameters are appropriate and whether they need to be adjusted.

[0029] Step S102, determine whether the network performance parameters meet the preset requirements. Specifically, the preset requirements may be a preset network performance parameter threshold, for example, the network performance parameter threshold may be pre-set in a configuration file. After the network performance parameters are obtained, they are compared with the network performance parameter threshold to determine whether they are within the network performance parameter threshold range. Among them, the network performance parameters may be any one or more of the parameters obtained using iperf, and one or more network performance parameters may be selected for judgment based on the actual application scenario. For example, in a certain application scenario, if the bandwidth requirement is high, the bandwidth obtained by the network performance test may be compared with the bandwidth threshold. In other embodiments, if network jitter or packet loss rate is more concerned, the obtained network jitter or packet loss rate may also be judged. In this embodiment, the specific selection of network performance parameters is not limited.

[0030] Step S103, when the network performance parameters do not meet the preset requirements, an adaptive PID algorithm is used to calculate a new delay parameter as the adjusted delay parameter. Specifically, whether to adjust the delay parameter can be determined based on the judgment result of the network performance parameters. When the network performance parameters do not meet the preset requirements, it means that the initial delay parameters set in the test are inappropriate and need to be adjusted. For example, if the selected network performance parameter is bandwidth, the bandwidth obtained through the network performance test is 800M, and the bandwidth threshold range set in the preset requirements is 900M to 1100M, then the bandwidth does not meet the preset requirements, and the initial delay parameter needs to be adjusted. In addition, if the selected network performance parameters include multiple ones, it is necessary to compare each network performance parameter with the corresponding network performance parameter threshold. As long as one does not meet the preset requirements, the delay parameter needs to be adjusted.

[0031] When adjusting the delay parameter, this embodiment uses an adaptive PID algorithm to calculate a new delay parameter as the adjusted delay parameter. The adaptive PID algorithm is obtained by dynamically adjusting the parameters of the PID algorithm on the basis of the PID algorithm.

[0032] Step S104, when the network performance parameters meet the preset requirements, the network performance test is performed at the preset time interval. Specifically, when the network performance parameters obtained during the test meet the preset requirements, it means that the delay parameters set at this time do not need to be adjusted. At this time, a regular detection cycle can be entered, that is, the network performance test is performed at the preset time interval to achieve continuous monitoring and ensure the best network communication status.

[0033] The delay parameter adjustment method of the RGMII interface provided in the embodiment of the present invention obtains the network performance parameters of the RGMII interface by performing a network performance test under the initial delay parameters, and determines whether to adjust the delay parameters according to whether the network performance parameters meet the preset requirements. At the same time, when adjusting the delay parameters, an adaptive PID algorithm is used to determine the adjusted delay parameters, thereby realizing adaptive parameter adjustment, reducing the need for manual intervention, and reducing the complexity and cost of system maintenance. Moreover, since the method adjusts the delay parameters according to the results of the network performance test, the delay parameters can automatically adapt to changes in the network environment, thereby improving the stability and efficiency of data transmission. In addition, after the network performance parameters meet the preset requirements, a network performance test is performed at a preset time interval, thereby realizing regular self-inspection, thereby being able to timely discover and adjust network performance problems caused by environmental changes.

[0034] In this embodiment, a method for adjusting the delay parameters of an RGMII interface is provided. Figure 2 As shown, the process includes the following steps: Step S201: Based on the initial delay parameters of the RGMII interface, a network performance test tool is used to obtain the network performance parameters of the RGMII interface.

[0035] Specifically, the above step S201 includes: Step S2011, based on the initial delay parameter, control the RGMII interface to perform the first preset number of data packet transmission and reception; specifically, before performing the network performance test, the first preset number of data packet transmission and reception can be performed through the RGMII interface, so as to avoid environmental interference, that is, when the communication is unstable, the network performance test is not performed first, and only the data packet is transmitted and received, and the network performance test is performed after the communication is stable, thereby ensuring the accuracy and stability of the test results. For example, the RGMII interface can be used to transmit and receive 10 ping data packets, and then the network performance test can be performed. The first preset number can be determined according to the actual situation, and can be 10 times or 20 times, etc., and this embodiment does not make specific limitations on this.

[0036] Step S2012: Based on the initial delay parameter, control the RGMII interface to perform a second preset number of network performance tests.

[0037] Step S2013: obtaining network performance parameters of each network performance test based on a second preset number of network performance tests.

[0038] Specifically, after multiple data packet transmission and reception, the network performance test is performed using iperf software after the communication is stable. During the test, the network performance parameters in the process of RGMII interface data packet transmission and reception are obtained through iperf software. For example, when the second preset number of times is 50 times, 50 network performance parameters can be obtained through 50 data packet transmission and reception. The second preset number of times can also be determined according to actual conditions, for example, it can be 50 times, 60 times, etc.

[0039] Step S2014, remove the highest value and the lowest value in the network performance parameters, average the remaining network performance parameters, and obtain the average value of the network performance parameters. Specifically, for the multiple network performance parameters obtained, remove the highest value and the lowest value therein, and then average the remaining network performance parameters to obtain the average value of the network performance parameters. For example, when the bandwidth in the network performance parameters is selected for subsequent judgment, the highest value and the lowest value of the multiple bandwidths obtained can be removed and averaged to obtain the bandwidth average value. When the selected network performance parameters include multiple parameters, the highest value and the lowest value of each parameter can be removed respectively, and the average values ​​can be calculated respectively to obtain the average values ​​of the corresponding parameters. The average value of the network performance parameters is used as the network performance parameter for the judgment of the preset requirements.

[0040] Step S202, determine whether the network performance parameters meet the preset requirements. Specifically, when determining the network performance parameters, the calculated network performance parameter average value can be compared with the corresponding network performance parameter threshold value. For example, if the calculated bandwidth average value is compared with the bandwidth threshold value, it is determined whether it meets the range of the bandwidth threshold value.

[0041] Step S203, when the network performance parameter does not meet the preset requirements, an adaptive PID algorithm is used to calculate a new delay parameter as the adjusted delay parameter; Specifically, the above step S203 includes: Step S2031, calculate the error of the network performance parameter based on the difference between the network performance parameter and the preset network performance parameter; specifically, the preset network performance parameter can be determined based on the network performance parameter threshold. For example, when the network performance parameter is bandwidth, and the bandwidth threshold range is 900M to 1100M, the preset bandwidth can be determined to be 1000M based on the average value of the range. In addition, the preset network performance parameter can also be pre-configured according to actual conditions. The preset network performance parameter can be a network performance parameter expected to be achieved during data transmission. After the network performance parameter in the network performance test is obtained, it is subtracted from the preset network performance parameter to obtain the corresponding error. Among them, when the obtained network performance parameters include multiple ones, the average value of the network performance parameter obtained in step S2014 can be used to subtract from the preset network performance parameter to obtain the error.

[0042] Step S2032, using an adaptive algorithm to update the parameters of the PID algorithm based on the error; wherein the adaptive algorithm may adopt an adaptive algorithm in the related art, for example, a fuzzy logic control algorithm or a machine learning algorithm such as a neural network, etc. When the adaptive algorithm is adopted, the calculated error may be used as input to calculate the corresponding PID algorithm parameters.

[0043] The following uses fuzzy logic control as an example to illustrate the parameter update process of the PID algorithm: 1. The fuzzy controller takes the error (e) and the error change rate (ec) as input, performs fuzzy processing on (e) and (ec) to obtain the corresponding membership degree. The membership degree indicates the degree to which the input error belongs to different fuzzy sets (such as: negative large, negative small, zero, positive small, positive large, etc.).

[0044] 2. According to the fuzzy rule table, fuzzy reasoning is performed using the input membership degree. The reasoning result is the PID parameters ( K p ),( K i ),( K d ) adjustment amount ( ),( ),( )’s fuzzy value.

[0045] 3. Convert the fuzzy inference results into accurate control parameter adjustment quantities. Usually, the centroid method is used to solve the fuzziness and obtain ( ),( ),( ) specific value.

[0046] 4. Update PID parameters ( K p ),( K i ),( K d ).

[0047] It should be noted that before updating the parameters of the PID algorithm, it is necessary to first obtain the PID parameters after the last update, so as to obtain the updated parameters according to the adjustment amount in step 3 and the last parameters. When the parameters of the PID algorithm are updated for the first time, the initial values ​​of the PID parameters can be set in advance, and the parameters of the PID algorithm are updated according to the adjustment amount in step 3 and the initial values.

[0048] Step S2033, based on the updated PID parameter and the error, a new delay parameter is calculated as the adjusted delay parameter. When calculating the new delay parameter, a single-input dual-output PID algorithm can be used, that is, the error is used as input and the two delay parameters are used as output. Specifically, the new delay parameter calculation can be implemented using the following formula:

[0049]

[0050] In the formula, Indicates the receiving delay in the delay parameters; Indicates the receiving delay in the delay parameters; Indicates error; , as well as Indicates the PID parameters for calculating the receiving delay; , as well as Indicates the PID parameters for calculating the receiving delay.

[0051] Step S204: When the network performance parameters meet the preset requirements, the network performance test is performed at the preset time interval. Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.

[0052] In this embodiment, a method for adjusting the delay parameters of an RGMII interface is provided. Figure 3 As shown, the method comprises the following steps: Step S301: Based on the initial delay parameters of the RGMII interface, a network performance test tool is used to obtain the network performance parameters of the RGMII interface; see Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.

[0053] Step S302: determine whether the network performance parameters meet the preset requirements; see Figure 1 Step S102 of the illustrated embodiment will not be described in detail here.

[0054] Step S303: When the network performance parameters do not meet the preset requirements, an adaptive PID algorithm is used to calculate new delay parameters as adjusted delay parameters; see Figure 1 Step S103 of the illustrated embodiment will not be described in detail here.

[0055] Step S304: Perform a network performance test based on the adjusted delay parameters to obtain new network performance parameters of the RGMII interface.

[0056] Step S305, determining whether the new network performance parameters meet the preset requirements.

[0057] Step S306: When the new network performance parameter does not meet the preset requirement, the calculation process of the delay parameter is repeated until the new network performance parameter obtained based on the adjusted delay parameter meets the preset requirement.

[0058] Specifically, after the adjusted delay parameter is calculated by the adaptive PID algorithm, it is necessary to verify whether the delay parameter can make the network performance parameter meet the preset requirements. That is, after determining the adjusted delay parameter, the network performance test can be performed with the delay parameter to determine whether the network performance parameter obtained by the test meets the requirements. If it does not meet the requirements, the delay parameter needs to be adjusted until the network performance parameter meets the preset requirements when the network performance test is performed with the adjusted delay parameter.

[0059] Step S307, when the network performance parameters or new network performance parameters meet the preset requirements, the network performance test is performed at the preset time interval. Specifically, when the network performance parameters obtained during the test or verification meet the preset requirements, it means that the delay parameters set at this time do not need to be adjusted. At this time, a regular detection cycle can be entered, that is, the network performance test is performed at the preset time interval to achieve continuous monitoring and ensure the best network communication status.

[0060] Specifically, the above step S307 includes: Step S3071, when the network performance parameters or new network performance parameters meet the preset requirements, the next network performance test is performed at a first preset time interval; specifically, the first preset time interval can be determined according to actual conditions, for example, it can be ten minutes, that is, when the network performance parameters meet the preset requirements at the current moment, the next network performance test is performed ten minutes later (that is, the first network performance test after the transmission meets the requirements) to determine whether the current network performance parameters meet the preset requirements.

[0061] Step S3072, when the new network performance parameters obtained based on the next network performance test meet the preset requirements, perform another network performance test at a second preset time interval; specifically, when the network performance parameters obtained during the first network performance test meet the requirements, the time interval can be increased, and perform another network performance test at a second preset time interval (i.e., the second network performance test after the transmission meets the requirements).

[0062] Step S3073, when the new network performance parameters obtained based on the next network performance test meet the preset requirements, a third network performance test is performed at a third preset time interval; specifically, when the network performance parameters obtained during the second network performance test meet the requirements, the time interval can be further increased, and the next network performance test is performed at the third preset time interval (i.e., the third network performance test after the transmission meets the requirements).

[0063] Step S3074, when the new network performance parameters obtained based on the third network performance test meet the preset requirements, the network performance test is continuously performed at the third preset time interval, the first preset time interval is less than the second preset time interval, and the second preset time interval is less than the third preset time interval. Specifically, since the third preset time interval has reached a longer time interval, after the third network performance test meets the requirements, the network performance test can be continuously performed at the third preset time interval. Among them, the first preset time interval, the second preset time interval, and the third preset time interval increase in sequence, which can ensure the best communication state under the premise of minimizing the network port application. For example, the first preset time interval can be 10 minutes, the second preset time interval can be 30 minutes, and the third preset time interval can be 60 minutes. In actual application, the three time intervals can determine specific values ​​according to actual conditions.

[0064] In addition, it should be noted that if the network performance parameters obtained during a certain test process do not meet the preset requirements, it is necessary to return to step S306 to readjust the delay parameters.

[0065] As a specific application example of the embodiment of the present invention, Figure 4As shown, the delay parameter adjustment method of the RGMII interface can be implemented by the following process: Step S401, initialization: Setting network performance parameter thresholds such as bandwidth thresholds, initial delay parameters (rx_delay and tx_delay) and PID parameter initial values ​​through a parameter configuration file.

[0066] Step S402, performance evaluation. Use the iperf tool to test the network performance parameters such as bandwidth in real time in combination with the server PC, and obtain the average bandwidth value through repeated tests. Determine whether the bandwidth is stable based on the average bandwidth value and the bandwidth threshold. If the bandwidth is stable, directly execute step S406; if the bandwidth is unstable, execute step S403.

[0067] Step S403, parameter update. Calculate the error based on the bandwidth average value and the expected bandwidth output. Use an adaptive algorithm to update the PID algorithm parameters based on the error. For example, use the error and error change rate as inputs to fuzzy control and output new PID parameters.

[0068] Step S404, delay parameter calculation: calculate new delay parameters according to the updated PID parameters and errors.

[0069] Step S405: Feedback adjustment: Return to step S402 according to the new delay parameter until the bandwidth is stable.

[0070] Step S406, regular detection cycle. After the bandwidth is stable, re-evaluate the performance at a certain interval. When the performance evaluation meets the requirements, that is, the bandwidth is stable, increase the interval and re-evaluate the performance. If the performance evaluation does not meet the requirements, return to step S402 until the performance evaluation meets the requirements.

[0071] The delay parameter adjustment method of the RGMII interface provided in this embodiment can automatically adjust the delay parameters of the RGMII interface, such as rx_delay and tx_delay parameters, to adapt to different network conditions and hardware configurations. This self-adjustment method should be able to monitor network performance indicators in real time, such as network performance parameters such as bandwidth and bit error rate, and dynamically adjust the delay settings based on these indicators to achieve optimal data transmission efficiency and stability. By implementing this self-adjustment method, the need for manual adjustment can be significantly reduced, development costs can be reduced, development efficiency can be improved, and it can be ensured that the communication system can maintain optimal performance under various conditions.

[0072] In this embodiment, a delay parameter adjustment system for an RGMII interface is also provided, and the system includes: a client, a switch, and a server, wherein the client and the switch are connected using an RGMII interface, and network performance testing is performed by forwarding data packets between the client and the server through the switch; the client is used to obtain network performance parameters of the RGMII interface based on initial delay parameters of the RGMII interface using a network performance testing tool; determine whether the network performance parameters meet preset requirements; when the network performance parameters do not meet the preset requirements, use an adaptive PID algorithm to calculate new delay parameters as adjusted delay parameters; when the network performance parameters meet the preset requirements, perform network performance testing at preset time intervals.

[0073] Specifically, Figure 5 As shown in the figure, the client includes a CPU using the RK3568 chip, Ethernet port ETH1, Gigabit Media Access Control (GMAC0) and an iperf client. Among them, GMAC0 is connected to the switch through the RGMII interface. The RGMII interface is the core communication interface of the system and contains several signal lines such as RXC, RX_CTL, RXD[3:0], TXC, TX_CTL and TXD[3:0]. It is responsible for processing the reception and transmission of data packets and transmitting data with other devices.

[0074] The switch is built with YT9215SC chip, which has rich network ports and efficient data processing capabilities. The switch has 7 GMACs and 5 Phys. Among them, GMAC4 is connected to the CPU (RK3568) through the RGMII interface. The remaining GMACs are matched with PHY to form network ports. GMAC8 and GMAC9 are connected to external fiber modules (such as LEDs indicating status) as fiber communication interfaces. At the same time, the switch also has a management interface (Switch Management Interface, SMI), and is connected to the client through the SMI interface, which facilitates the configuration of the switch through the client.

[0075] The server is a high-performance computer PC equipped with Ethernet function. At the same time, the server runs iperf server software and provides a stable network environment to ensure the continuity and reliability of the iperf test.

[0076] When the system is working, the client runs the self-adjustment algorithm for the transmission and reception delay, that is, the delay parameter adjustment method of the RGMII interface mentioned above. The adaptive adjustment algorithm reads the initial rx_delay and tx_delay values ​​in the configuration file and adjusts them according to the set network performance parameter thresholds such as the average bandwidth and the average packet loss rate thresholds. Through the iperf test, the system continuously monitors the network performance, and when the obtained network performance parameters such as the average bandwidth and the average packet loss rate do not meet the threshold requirements, the adaptive PID algorithm is used to adjust the rx_delay and tx_delay values ​​until the threshold requirements are met.

[0077] Moreover, the system can adapt to different network environments. For example, in a network environment where the network condition is stable and the bandwidth and packet loss rate change little, the system can quickly adjust to the optimal rx_delay and tx_delay values ​​through an adaptive PID algorithm, and maintain these values ​​in subsequent periodic detection cycles, thereby ensuring the communication quality. In a network environment where the network condition is unstable and the bandwidth and packet loss rate change greatly, the system can effectively cope with the fluctuation of the network condition and maintain the stability and efficiency of communication through continuous adaptive adjustment. As a result, this embodiment can realize high-speed data transmission and delay self-adjustment for Ethernet communication, analyze network performance, monitor and optimize network status, improve communication efficiency and data transmission quality of equipment. Improve the operating efficiency and stability of Ethernet communication systems.

[0078] In this embodiment, a delay parameter adjustment device for an RGMII interface is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated hereafter. As used below, the term "module" may be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0079] This embodiment provides a delay parameter adjustment device for an RGMII interface, such as Figure 6 As shown, including: The testing module 61 is used to obtain the network performance parameters of the RGMII interface using a network performance testing tool based on the initial delay parameters of the RGMII interface; A determination module 62 is used to determine whether the network performance parameters meet the preset requirements; The adjustment module 63 is used to calculate a new delay parameter as an adjusted delay parameter by using an adaptive PID algorithm when the network performance parameter does not meet the preset requirement.

[0080] The interval testing module 64 is used to perform network performance testing at preset time intervals when the network performance parameters meet preset requirements.

[0081] In an optional implementation, the adjustment module is specifically used to: calculate the error of the network performance parameter based on the difference between the network performance parameter and the preset network performance parameter; use an adaptive algorithm to update the parameters of the PID algorithm based on the error; calculate a new delay parameter based on the updated PID parameter and the error as the adjusted delay parameter.

[0082] In an optional embodiment, the test module is specifically used to: based on the initial delay parameters, control the RGMII interface to send and receive data packets a first preset number of times; based on the initial delay parameters, control the RGMII interface to perform a second preset number of network performance tests; based on the second preset number of network performance tests, obtain network performance parameters for each network performance test; remove the highest and lowest values ​​in the network performance parameters, and average the remaining network performance parameters to obtain an average value of the network performance parameters, which is used as the network performance parameters to determine the preset requirements.

[0083] In an optional embodiment, the device also includes: a retest adjustment module, which is used to perform a network performance test based on the adjusted delay parameters to obtain new network performance parameters of the RGMII interface; determine whether the new network performance parameters meet the preset requirements; when the new network performance parameters do not meet the preset requirements, repeat the calculation process of the delay parameters until the new network performance parameters obtained based on the adjusted delay parameters meet the preset requirements.

[0084] In an optional embodiment, the interval testing module is specifically used to: when the network performance parameters meet the preset requirements, perform the next network performance test at a first preset time interval; when the new network performance parameters obtained based on the next network performance test meet the preset requirements, perform the next network performance test at a second preset time interval; when the new network performance parameters obtained based on the next network performance test meet the preset requirements, perform the third network performance test at a third preset time interval; when the new network performance parameters obtained based on the third network performance test meet the preset requirements, continue to perform the network performance test at the third preset time interval, the first preset time interval is less than the second preset time interval, and the second preset time interval is less than the third preset time interval.

[0085] In an optional implementation, the delay parameters include a receiving delay parameter and a sending delay parameter, the network performance parameters are parameters that characterize the transmission performance of the RGMII interface, and the network performance parameters include any one or more of bandwidth, network jitter, and packet loss rate.

[0086] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0087] The embodiment of the present invention also provides a computer device having the above Figure 6 The delay parameter adjustment device of the RGMII interface is shown.

[0088] See also Figure 7 , Figure 7 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 7 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.

[0089] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0090] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0091] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of a computer device based on the presentation of a small program landing page, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0092] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0093] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0094] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0095] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0096] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for adjusting delay parameters of an RGMII interface, characterized in that: The method comprises: Based on the initial delay parameters of the RGMII interface, a network performance test tool is used to obtain the network performance parameters of the RGMII interface; Determining whether the network performance parameters meet preset requirements; When the network performance parameter does not meet the preset requirements, an adaptive PID algorithm is used to calculate a new delay parameter as the adjusted delay parameter; When the network performance parameters meet the preset requirements, the network performance test is performed at preset time intervals.

2. The method according to claim 1, characterized in that Adopting the adaptive PID algorithm to calculate the new delay parameter as the adjusted delay parameter, including: Calculating an error of the network performance parameter based on a difference between the network performance parameter and a preset network performance parameter; Adopting an adaptive algorithm to update the parameters of the PID algorithm based on the error; A new delay parameter is calculated based on the updated PID parameter and the error as the adjusted delay parameter.

3. The method according to claim 1, characterized in that Based on the initial delay parameters of the RGMII interface, the network performance parameters are obtained using a network performance test tool, including: Based on the initial delay parameter, controlling the RGMII interface to send and receive data packets a first preset number of times; Based on the initial delay parameter, controlling the RGMII interface to perform a second preset number of network performance tests; Acquiring network performance parameters of each network performance test based on a second preset number of network performance tests; The highest value and the lowest value of the network performance parameters are removed, and the remaining network performance parameters are averaged to obtain an average value of the network performance parameters. The average value of the network performance parameters is used as a network performance parameter to determine the preset requirements.

4. The method according to claim 1, characterized in that: The method further comprises: Perform network performance test based on the adjusted delay parameters to obtain new network performance parameters of the RGMII interface; Determine whether the new network performance parameters meet the preset requirements; When the new network performance parameters do not meet the preset requirements, the calculation process of the delay parameters is repeated until the new network performance parameters obtained based on the adjusted delay parameters meet the preset requirements.

5. The method according to claim 1, characterized in that When the network performance parameters meet the preset requirements, a network performance test is performed at a preset time interval, including: When the network performance parameter meets the preset requirement, performing the next network performance test at a first preset time interval; When the new network performance parameters obtained based on the next network performance test meet the preset requirements, perform the next network performance test at a second preset time interval; When the new network performance parameters obtained based on the next network performance test meet the preset requirements, performing a third network performance test at a third preset time interval; When the new network performance parameters obtained based on the third network performance test meet the preset requirements, the network performance test is continuously performed at a third preset time interval, wherein the first preset time interval is smaller than the second preset time interval, and the second preset time interval is smaller than the third preset time interval.

6. The method according to claim 1, characterized in that The delay parameters include a receiving delay parameter and a sending delay parameter. The network performance parameters are parameters that characterize the transmission performance of the RGMII interface. The network performance parameters include any one or more of bandwidth, network jitter, and packet loss rate.

7. A delay parameter adjustment device for an RGMII interface, characterized in that: The device comprises: The test module is used to obtain the network performance parameters of the RGMII interface based on the initial delay parameters of the RGMII interface using a network performance test tool; A judgment module, used to judge whether the network performance parameters meet the preset requirements; An adjustment module, used for calculating a new delay parameter as an adjusted delay parameter by using an adaptive PID algorithm when the network performance parameter does not meet the preset requirements; The interval test module is used to perform network performance test at preset time intervals when the network performance parameters meet preset requirements.

8. A delay parameter adjustment system for an RGMII interface, characterized in that: The system comprises: a client, a switch and a server, wherein the client and the switch are connected by an RGMII interface, and the client and the server forward data packets through the switch to perform network performance testing; The client is used to obtain the network performance parameters of the RGMII interface based on the initial delay parameters of the RGMII interface using a network performance testing tool; determine whether the network performance parameters meet the preset requirements; when the network performance parameters do not meet the preset requirements, use an adaptive PID algorithm to calculate new delay parameters as adjusted delay parameters; when the network performance parameters meet the preset requirements, perform a network performance test at preset time intervals.

9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the delay parameter adjustment method of the RGMII interface according to any one of claims 1 to 6 by executing the computer instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the delay parameter adjustment method of the RGMII interface according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Network code stream recovery method and system, medium and FPGA chip

    CN117615166A

  • Network analysis method and device and storage medium

    CN117750420A

  • Transparent flexible mesh circuit system with PID (Proportion Integration Differentiation) control

    CN118426297A

  • Network signal debugging method, device and equipment, and storage medium

    CN118590198A

  • Method and system for network communications via a configurable multi-use ethernet phy

    US20100322105A1

Cited By

  • Parameter configuration method and system of interface link, storage medium and program product

    CN120750747A