Data transmission control method and device, storage medium and electronic device

By dynamically adjusting the routing parameters of the sending link port in the monitoring link group, the problem of congestion in the sending link port in the monitoring link group is solved, and the stability and resource utilization of the network are improved.

CN118413485BActive Publication Date: 2024-11-01INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410858383.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-11-01
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

The sending link ports in the monitoring link group are prone to congestion during data transmission, resulting in network performance degradation and resource waste. The existing technology has not effectively solved this problem.

Method used

By obtaining the port operation parameters of the sending link port, compute the congestion parameters, and dynamically adjust the routing parameters according to the degree of congestion, and redistribute traffic to alleviate congestion.

Benefits of technology

It effectively reduces the congestion probability of the sending link port, improves the stability and resource utilization of the network, and reduces network congestion and packet loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118413485B_ABST
    Figure CN118413485B_ABST
Patent Text Reader

Abstract

The present application discloses a data transmission control method and device, a storage medium and an electronic device, the method comprising: obtaining port operation parameters generated by each sending link port during the operation of a monitoring link group to obtain a port operation parameter set; generating corresponding congestion parameters for each sending link port according to the port operation parameter set; in the case where it is detected that there is a target sending link port in the monitoring link group whose current congestion parameter meets the target adjustment condition, allocating target routing parameters to each sending link port in the monitoring link group according to the congestion parameters corresponding to each sending link port to obtain a target routing parameter set; controlling each sending link port in the monitoring link group to send traffic data to a downstream device according to the corresponding target routing parameters in the target routing parameter set within a preset adjustment time, thereby solving the problem that the probability of congestion of the sending link port in the monitoring link group during data transmission is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computers, and more specifically, to a method and device for controlling data transmission, a storage medium, and an electronic device. Background Art

[0002] Monitor Link is a port linkage technology used for link management in Layer 2 networks. It automatically adjusts the status of downstream ports by monitoring the status changes of upstream ports to achieve high availability and redundancy of the network. In a network environment with multiple upstream ports, Monitor Link manages network traffic and link status by monitoring link groups (including upstream ports (i.e., sending link ports) and downstream ports (i.e., receiving link ports)) to ensure network stability and reliability.

[0003] However, although Monitor Link plays an important role in network management, its static nature and lack of dynamic adjustment capabilities limit the performance and stability of the network in the face of traffic fluctuations. Currently, in Monitor Link configurations with multiple transmit link ports, traffic may be unevenly distributed among different upstream ports, causing some ports to be overloaded while others are not fully utilized. Upstream ports with overloaded traffic may cause packet loss and transmission delays due to insufficient processing power, affecting network performance. Traffic concentration may cause network congestion, affecting the transmission efficiency and stability of the overall network. At the same time, due to uneven traffic distribution, the bandwidth resources of some upstream ports are not fully utilized, resulting in resource waste. In addition, the monitoring system may be overloaded when processing a large amount of unbalanced traffic, affecting its monitoring and adjustment capabilities.

[0004] In the related art, there is a high probability that a sending link port in a monitoring link group will be congested during data transmission, and no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present application provide a data transmission control method and device, a storage medium and an electronic device to at least solve the problem in the related art that the probability of congestion of the sending link port in the monitoring link group during data transmission is high.

[0006] According to an embodiment of the present application, a method for controlling data transmission is provided, wherein N sending link ports, M receiving link ports, a monitoring link group and a processor are deployed in a data transmission device, wherein the monitoring link group is used to control the corresponding receiving link port to switch to the closed state when the sending link port in the data transmission device is in the closed state, N is an integer greater than 1, M is an integer greater than or equal to 1, and the method is applied to the processor, and the method includes:

[0007] Acquire a port operation parameter generated by each of the N sending link ports during the operation of the monitoring link group to obtain a port operation parameter set, wherein the port operation parameter is used to indicate the current operation status of the corresponding sending link port among the N sending link ports;

[0008] Generate a corresponding congestion parameter for each of the sending link ports in the monitoring link group according to the port operation parameter set, wherein the congestion parameter is used to indicate the congestion degree of the corresponding sending link port currently sending traffic data, and the congestion parameter is positively correlated with the congestion degree;

[0009] In the case where it is detected that there is a target sending link port in the monitoring link group whose current congestion parameter meets the target adjustment condition, a target routing parameter is allocated to each sending link port in the monitoring link group according to the congestion parameter corresponding to each sending link port in the monitoring link group to obtain a target routing parameter set, wherein the target routing parameter is negatively correlated with the congestion parameter;

[0010] Control each of the sending link ports in the monitoring link group to send traffic data to the downstream device according to the corresponding target routing parameter in the target routing parameter set within a preset adjustment time, wherein the sending link port with a smaller target routing parameter will be assigned to send less traffic data to the downstream device.

[0011] Optionally, allocating a target routing parameter to each of the sending link ports in the monitoring link group according to the congestion parameter corresponding to each of the sending link ports in the monitoring link group includes:

[0012] Generate a current congestion impact parameter of each of the sending link ports in the monitoring link group according to the congestion parameter corresponding to each of the sending link ports in the monitoring link group, and obtain a congestion impact parameter set, wherein the congestion impact parameter is used to indicate the impact of the current congestion level of the corresponding sending link port on the sent traffic data;

[0013] According to the congestion impact parameter set, a target routing parameter is allocated to each of the sending link ports in the monitoring link group to obtain a target routing parameter set.

[0014] Optionally, generating a current congestion impact parameter of each sending link port in the monitoring link group according to the congestion parameter corresponding to each sending link port in the monitoring link group to obtain a congestion impact parameter set includes:

[0015] The i-th congestion impact parameter corresponding to the i-th transmission link port among the N transmission link ports is generated by the following steps, wherein i is an integer greater than or equal to 1 and less than or equal to N:

[0016] Obtaining a preset constant and the i-th congestion parameter corresponding to the i-th sending link port, wherein the preset constant is greater than or equal to a target value, and the target value is the maximum value allowed for the congestion parameter corresponding to each sending link port;

[0017] A subtraction operation is performed on the preset constant and the i-th congestion parameter to obtain the i-th congestion impact parameter.

[0018] Optionally, allocating a target routing parameter to each of the sending link ports in the monitoring link group according to the congestion impact parameter set to obtain a target routing parameter set includes:

[0019] Allocating an i-th target routing parameter to the i-th sending link port in the monitoring link group according to the congestion impact parameter set by the following steps, wherein i is an integer greater than or equal to 1 and less than or equal to N:

[0020] Extracting the i-th congestion impact parameter corresponding to the i-th sending link port from the congestion impact parameter set;

[0021] Performing an addition operation on the N congestion impact parameters in the congestion impact parameter set to obtain a target sum value;

[0022] A ratio of the i-th congestion impact parameter to the target sum value is determined as the i-th target routing parameter of the i-th sending link port.

[0023] Optionally, allocating a target routing parameter to each of the sending link ports in the monitoring link group according to the congestion parameter corresponding to each of the sending link ports in the monitoring link group includes:

[0024] The i-th target routing parameter allocated to the i-th sending link port in the monitoring link group is calculated according to the congestion parameter corresponding to each sending link port in the monitoring link group by the following formula, wherein i is an integer greater than or equal to 1 and less than or equal to N:

[0025] ,

[0026] in, represents the i-th target routing parameter, represents the congestion parameter corresponding to the i-th sending link port in the monitoring link group, is greater than or equal to 0 and less than or equal to 1, When the value is 0, it means that the current traffic data sent by the i-th sending link port is not congested. When the value is 1, it means that the congestion level of the current traffic data sent by the i-th sending link port is the most serious. It indicates the influence of the current congestion level of the i-th sending link port on the sent traffic data.

[0027] Optionally, controlling each of the sending link ports in the monitoring link group to send traffic data to a downstream device according to the target routing parameter corresponding to the target routing parameter set within a preset adjustment time period includes:

[0028] The i-th sending link port in the monitoring link group is controlled to send traffic data to the downstream device according to the i-th target routing parameter corresponding to the target routing parameter set within the preset adjustment time period through the following steps, wherein i is an integer greater than or equal to 1 and less than or equal to N:

[0029] Controlling the i-th sending link port to extract the corresponding i-th target routing parameter from the target routing parameter set;

[0030] Controlling the i-th sending link port to switch the routing parameter currently used by the i-th sending link port from the default routing parameter to the i-th target routing parameter, and detecting whether the current usage duration of the i-th target routing parameter is greater than or equal to the i-th preset adjustment duration;

[0031] When it is detected that the usage duration is greater than or equal to the i-th preset adjustment duration, the i-th sending link port is controlled to switch the routing parameter currently used by the i-th sending link port from the i-th target routing parameter to the default routing parameter.

[0032] Optionally, before detecting whether the current usage duration of the i-th target routing parameter is greater than or equal to the i-th preset adjustment duration, the method further includes:

[0033] Obtaining the i-th congestion parameter corresponding to the i-th sending link port;

[0034] Allocate the i-th preset adjustment time length to the i-th sending link port according to the i-th congestion parameter.

[0035] Optionally, allocating the i-th preset adjustment time length to the i-th sending link port according to the i-th congestion parameter includes:

[0036] The i-th preset adjustment time is allocated to the i-th sending link port according to the i-th congestion parameter by the following formula:

[0037] ,

[0038] in, The preset adjustment duration is i-th, is a coefficient greater than 0, represents the congestion parameter corresponding to the i-th sending link port, is greater than or equal to 0 and less than or equal to 1, When the value is 0, it means that the current traffic data sent by the i-th sending link port is not congested. When the value is 1, it means that the congestion level of the current traffic data sent by the i-th sending link port is the most serious. is a constant.

[0039] Optionally, allocating the i-th preset adjustment time length to the i-th sending link port according to the i-th congestion parameter includes:

[0040] Detecting a congestion parameter range that the i-th congestion parameter falls into, and obtaining a target congestion parameter range;

[0041] Matching a target adjustment duration corresponding to the target congestion parameter range from congestion parameter ranges and adjustment durations having a corresponding relationship;

[0042] The target adjustment duration is determined as the i-th preset adjustment duration.

[0043] Optionally, controlling each of the sending link ports in the monitoring link group to send traffic data to a downstream device according to the target routing parameter corresponding to the target routing parameter set within a preset adjustment time period includes:

[0044] In the case that the data transmission device currently has target flow data of a target data volume to be sent to the downstream device, the i-th sending link port in the monitoring link group is controlled to send flow data to the downstream device according to the i-th target routing parameter corresponding to the target routing parameter set within a preset adjustment time, through the following steps, wherein i is an integer greater than or equal to 1 and less than or equal to N:

[0045] Calculate the i-th reference data volume currently allowed to be sent by the i-th sending link port according to the i-th target routing parameter and the target data volume;

[0046] Allocate the i-th reference data volume of the target flow data to the i-th sending link port and send it to the downstream device.

[0047] Optionally, the calculating, according to the i-th target routing parameter and the target data volume, the i-th reference data volume that the i-th sending link port is currently allowed to send includes:

[0048] The product of the i-th target routing parameter and the target data volume is determined as the i-th reference data volume.

[0049] Optionally, after controlling each of the sending link ports in the monitoring link group to send traffic data to a downstream device according to the target routing parameter corresponding to the target routing parameter set within a preset adjustment time, the method further includes:

[0050] Detecting parameter change information of the congestion parameter corresponding to each of the sending link ports, wherein the parameter change information is used to indicate a change in the congestion parameter;

[0051] The preset adjustment duration is adjusted according to the parameter change information.

[0052] Optionally, the detecting parameter change information of the congestion parameter corresponding to each of the sending link ports includes:

[0053] Detecting a current value change direction of the congestion parameter corresponding to each of the sending link ports;

[0054] In the case where it is detected that the direction of the value change is used to indicate that the congestion parameter corresponding to the sending link port is decreasing, detecting whether the congestion parameter is less than or equal to a lower limit parameter;

[0055] In the case where it is detected that the direction of the value change is used to indicate that the congestion parameter corresponding to the sending link port increases, detecting whether the congestion parameter is greater than or equal to an upper limit parameter, wherein the upper limit parameter is greater than the lower limit parameter;

[0056] The adjusting the preset adjustment duration according to the parameter change information includes:

[0057] When it is detected that the parameter change information indicates that the congestion parameter is less than or equal to the lower limit parameter, reducing the preset adjustment time by a first preset time;

[0058] When it is detected that the parameter change information is used to indicate that the congestion parameter is greater than or equal to the lower limit parameter, the preset adjustment time length is increased by a second preset time length.

[0059] Optionally, the detecting parameter change information of the congestion parameter corresponding to each of the sending link ports includes:

[0060] Detecting a current value change rate of the congestion parameter corresponding to each of the sending link ports, wherein the value change rate is used to indicate a change in the corresponding congestion parameter per unit time;

[0061] In the case where it is detected that the value change rate is less than or equal to -P, detecting whether the duration of the value change rate being less than or equal to -P is greater than or equal to a first duration, wherein P is a positive number greater than R;

[0062] In the case where it is detected that the value change rate is greater than or equal to Q, detecting whether the duration of the value change rate being greater than or equal to Q is greater than or equal to a second duration, wherein Q is a positive number greater than R;

[0063] The adjusting the preset adjustment duration according to the parameter change information includes:

[0064] When it is detected that the parameter change information is used to indicate that the duration for which the value change rate is less than or equal to -P is greater than or equal to the first duration, reducing the preset adjustment duration by a third preset duration;

[0065] When it is detected that the parameter change information is used to indicate that the duration for which the value change rate is greater than or equal to Q is greater than or equal to the second duration, the preset adjustment duration is increased by a fourth preset duration.

[0066] Optionally, generating a corresponding congestion parameter for each of the sending link ports in the monitoring link group according to the port operation parameter set includes:

[0067] Generate a target prediction model, wherein the target prediction model is a model that allows the congestion parameter corresponding to each of the sending link ports to be predicted according to the port operation parameter of each of the sending link ports;

[0068] The port operation parameters corresponding to each of the sending link ports are input into the target prediction model to obtain the congestion parameters corresponding to each of the sending link ports.

[0069] Optionally, generating a target prediction model includes:

[0070] Acquire Y port operation parameter samples, wherein each of the port operation parameter samples is marked with a congestion parameter label, each of the port operation parameter samples is obtained by pre-collecting the port operation parameters on the sending link port sample, and the congestion parameter label is used to indicate the congestion degree of the corresponding sending link port sample in sending traffic data when collecting the port operation parameter sample;

[0071] The initial prediction model is trained for Y rounds using Y samples of the port operation parameters to obtain a target prediction model, wherein the degree of approximation between the predicted congestion parameters predicted by the target prediction model based on the port operation parameter samples and the congestion parameter labels marked by the port operation parameter samples is greater than or equal to the target approximation.

[0072] Optionally, the generating unit is further used for:

[0073] The j-th port operation parameter sample among the Y port operation parameter samples is used to perform the j-th round of training on the initial prediction model among the Y rounds of training to obtain the prediction model obtained by the j-th round of training, wherein j is an integer greater than or equal to 1 and less than or equal to Y:

[0074] Obtaining a prediction model to be used in the j-th round of training, wherein when j takes a value of 1, the prediction model to be used in the j-th round of training is the untrained initial prediction model;

[0075] Inputting the jth sample of the port operation parameter into the prediction model to be used in the jth round of training, and obtaining the jth predicted congestion parameter output by the prediction model to be used in the jth round of training;

[0076] Detecting the degree of similarity between the j-th predicted congestion parameter and the j-th congestion parameter label corresponding to the j-th port operation parameter sample;

[0077] In the case where it is detected that the approximation degree is less than the target approximation degree, adjusting the model parameters in the prediction model to be used in the j-th round of training to obtain the prediction model obtained in the j-th round of training, and determining the prediction model obtained in the j-th round of training as the prediction model to be used in the j+1-th round of training, wherein, in the case where j takes the value Y, the prediction model obtained in the j-th round of training is determined as the target prediction model, and the model parameters are used to indicate the linear relationship between the port operation parameter sample and the predicted congestion parameter;

[0078] When it is detected that the degree of approximation is greater than or equal to the target degree of approximation, the prediction model to be used in the j-th round of training is determined as the target prediction model.

[0079] Optionally, the obtaining of the port operation parameters generated by each of the N sending link ports during the operation of the monitoring link group includes:

[0080] Obtaining the flow rate parameter, packet loss rate parameter, delay parameter, queue length parameter and bandwidth utilization parameter generated by each of the N sending link ports in the monitoring link group during operation, wherein the flow rate parameter is used to indicate the rate at which the corresponding sending link port currently transmits flow data, the packet loss rate parameter is used to indicate the number of packet losses per unit time during the process of the corresponding sending link port currently transmitting flow data, the delay parameter is used to indicate the transmission delay of the corresponding sending link port currently transmitting flow data, the queue length parameter is used to indicate the length of the queue of the flow data to be currently transmitted by the corresponding sending link port, and the bandwidth utilization parameter is used to indicate the utilization of the bandwidth during the process of the corresponding sending link port currently transmitting flow data;

[0081] The traffic rate parameter, the packet loss rate parameter, the delay parameter, the queue length parameter and the bandwidth utilization parameter are determined as the port operation parameters.

[0082] According to another embodiment of the embodiment of the present application, a data transmission control device is further provided, wherein N sending link ports, M receiving link ports, a monitoring link group and a processor are deployed in the data transmission device, wherein the monitoring link group is used to control the corresponding receiving link port to switch to the closed state when the sending link port in the data transmission device is in a closed state, N is an integer greater than 1, M is an integer greater than or equal to 1, and the data transmission control device is applied to the processor, and the data transmission control device includes:

[0083] A first acquisition module is used to acquire a port operation parameter generated by each of the N sending link ports during the operation of the monitoring link group, and obtain a port operation parameter set, wherein the port operation parameter is used to indicate the current operation status of the corresponding sending link port among the N sending link ports;

[0084] A generating module, configured to generate a corresponding congestion parameter for each of the sending link ports in the monitoring link group according to the port operation parameter set, wherein the congestion parameter is used to indicate the congestion degree of the corresponding sending link port currently sending traffic data, and the congestion parameter is positively correlated with the congestion degree;

[0085] A first allocation module is used to allocate a target routing parameter to each of the sending link ports in the monitoring link group according to the congestion parameter corresponding to each of the sending link ports in the monitoring link group, to obtain a target routing parameter set, when it is detected that there is a target sending link port in the monitoring link group whose current congestion parameter meets the target adjustment condition, wherein the target routing parameter is negatively correlated with the congestion parameter;

[0086] A control module is used to control each of the sending link ports in the monitoring link group to send traffic data to the downstream device according to the corresponding target routing parameter in the target routing parameter set within a preset adjustment time, wherein the sending link port with a smaller target routing parameter will be assigned to send less traffic data to the downstream device.

[0087] According to another embodiment of the present application, a computer program product is provided, including a computer program, wherein the computer program is executed by a processor to perform the steps in any of the above method embodiments.

[0088] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.

[0089] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0090] In an embodiment of the present application, a method for controlling data transmission is proposed, wherein N sending link ports, M receiving link ports, a monitoring link group and a processor are deployed in a data transmission device, wherein the monitoring link group is used to control the corresponding receiving link port to switch to a closed state when the sending link port in the data transmission device is in a closed state, N is an integer greater than 1, M is an integer greater than or equal to 1, and the method is applied to the processor, and the method comprises: firstly obtaining a port operation parameter generated by each of the N sending link ports in the monitoring link group during operation, which is used to indicate the current operation status of the corresponding sending link port in the N sending link ports, and obtaining a port operation parameter set; then, generating a corresponding congestion parameter for each sending link port in the monitoring link group according to the port operation parameter set, wherein the congestion parameter is used to indicate the congestion degree of the current sending traffic data of the corresponding sending link port, and the congestion parameter is positively correlated with the congestion degree; and then, upon detecting that the monitoring link When there is a target transmission link port in the route group whose current congestion parameter meets the target adjustment condition, a target routing parameter can be allocated to each transmission link port in the monitoring link group according to the congestion parameter corresponding to each transmission link port in the monitoring link group, and a target routing parameter set is obtained, wherein the target routing parameter is negatively correlated with the congestion parameter; finally, each transmission link port in the monitoring link group is controlled to send flow data to the downstream device according to the corresponding target routing parameter in the target routing parameter set within the preset adjustment time, wherein the transmission link port with a smaller target routing parameter will be allocated to send less flow data to the downstream device, and the congestion parameter of the transmission link port can be automatically calculated according to the port operation parameter in the above manner, and then the target routing parameter can be reallocated to the transmission link port according to the congestion parameter, and a smaller target routing parameter can be allocated to the transmission link port with a larger congestion parameter, and then the flow data can be allocated according to the reallocated target routing parameter, so as to alleviate the congestion degree of the transmission link port. The above technical scheme is adopted to solve the problems in the related technology that the transmission link port in the monitoring link group has a high probability of congestion during data transmission, and achieve the technical effect of reducing the congestion of the transmission link port in the monitoring link group during data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0091] Figure 1 It is a hardware structure block diagram of a computer device of a data transmission control method according to an embodiment of the present application;

[0092] Figure 2 is a flow chart of a data transmission control method according to an embodiment of the present application;

[0093] Figure 3 is a schematic diagram of a data transmission device according to an embodiment of the present application;

[0094] Figure 4 is a schematic diagram of a routing parameter switching according to an embodiment of the present application;

[0095] Figure 5 is a structural block diagram of a data transmission control device according to an embodiment of the present application;

[0096] Figure 6 is a schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0097] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0098] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0099] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a computer device of a data transmission control method according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0100] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the control method of data transmission in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server 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.

[0101] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0102] In this embodiment, a method for controlling data transmission is provided. Figure 2 is a flow chart of a data transmission control method according to an embodiment of the present application. Figure 2 As shown, N sending link ports, M receiving link ports, a monitoring link group and a processor are deployed in the data transmission device, and the monitoring link group is used to control the corresponding receiving link port to switch to the closed state when the sending link port in the data transmission device is in the closed state, N is an integer greater than 1, M is an integer greater than or equal to 1, and the method is applied to the processor. The process includes the following steps:

[0103] Step S12, obtaining a port operation parameter generated by each of the N sending link ports during the operation of the monitoring link group, and obtaining a port operation parameter set, wherein the port operation parameter is used to indicate the current operation status of the corresponding sending link port among the N sending link ports;

[0104] Step S14, generating a corresponding congestion parameter for each of the sending link ports in the monitoring link group according to the port operation parameter set, wherein the congestion parameter is used to indicate the congestion degree of the corresponding sending link port currently sending traffic data, and the congestion parameter is positively correlated with the congestion degree;

[0105] Step S16, when it is detected that there is a target sending link port in the monitoring link group whose current congestion parameter meets the target adjustment condition, a target routing parameter is allocated to each sending link port in the monitoring link group according to the congestion parameter corresponding to each sending link port in the monitoring link group, to obtain a target routing parameter set, wherein the target routing parameter is negatively correlated with the congestion parameter;

[0106] Step S18, controlling each of the sending link ports in the monitoring link group to send traffic data to the downstream device according to the corresponding target routing parameter in the target routing parameter set within a preset adjustment time, wherein the sending link port with a smaller target routing parameter will be assigned to send less traffic data to the downstream device.

[0107] Optionally, in this embodiment, Figure 3 is a schematic diagram of a data transmission device according to an embodiment of the present application, such as Figure 3 As shown, data traffic is sent from the user network User Network to the core network Core Network, and needs to be forwarded by multiple data transmission devices (Deice A-Deice K) in the middle, wherein each data transmission device includes multiple transmission link ports (Uplink ports, uplink ports) and at least one receiving link port (Downlink port, downlink port). The receiving link port is used to receive traffic data from the upstream device of the data transmission device, and the sending link port is used to send traffic data to the downstream device of the data transmission device.

[0108] In this solution, the status of each link port can be detected and controlled through the monitor link group, but is not limited to it. In the setting of the monitor link group, each monitor link group is composed of multiple sending link ports (Uplink ports, uplink ports) and at least one receiving link port (Downlink port, downlink port). In a monitor link group, there can be multiple sending or receiving link ports, but each port can only belong to a specific monitor link group. For example, Figure 3As shown, ports Eth3 and Eth4 of data transmission device B are used as sending link ports, and port Eth2 is used as receiving link port, which together constitute a Monitor Link Group. There is a corresponding relationship between the sending link port and the receiving link port, and the monitoring link group is used to control the corresponding receiving link port to switch to the closed state when the sending link port in the data transmission device is in the closed state.

[0109] The role of the sending link port (Uplink port) is to serve as the monitored port in the Monitor Link Group. If no sending link port in the Monitor Link Group is in the up state, or all the sending link ports are in the down state, the entire Monitor Link Group will be in the down state. On the contrary, as long as at least one sending link port is in the up state, the Monitor Link Group will be in the up state. It is worth noting that if the uplink is part of a Smart Link group, the uplink is determined to be faulty only when both interfaces in the Smart Link group are in an inactive state (including the down state). Figure 3 In the figure, the Smart Link group serves as the uplink interface of the MonitorLink Group, which is indicated by a dotted line.

[0110] The receiving link port (Downlink port) serves as the monitoring port of the Monitor Link Group. Its working status is closely related to the status of the Monitor Link Group and keeps linkage. That is to say, when the status of the Monitor Link Group changes between up and down, the status of the receiving link port will also change accordingly to ensure synchronization with the status of the Monitor Link Group. This mechanism ensures that the network can dynamically adjust the traffic path according to the actual working status of the port to maintain the stability and reliability of the network.

[0111] The link where the sending link port is located is called the uplink, and the link where the receiving link port is located is called the downlink. The operating mechanism of the Monitor Link Group is to independently monitor the sending link port and link the receiving link port. When there is no sending link port in the Monitor Link Group or all sending link ports are down, the Monitor Link Group is in the down state and will force the status of all its receiving link ports to change to down. As long as one sending link port changes from down to up, the status of the Monitor Link Group will be restored to up, and the status of all its receiving link ports will be restored to up.

[0112] Based on the functions of the above-mentioned Monitor Link Group, this application will further monitor the congestion level of the sending link port in real time, and dynamically reduce the routing weight (routing parameters) of the sending link port according to the congestion level, while increasing the weights of other non-congested sending link ports. In this way, the traffic will be redistributed to other sending link ports to reduce the pressure on the congested ports. The weight adjustment timer will automatically adjust the duration of the weight adjustment according to the duration of congestion. If the congestion is alleviated, the system will gradually return to normal to ensure the continuous and stable operation of the network. In this way, the enterprise network can effectively cope with traffic peaks, reduce packet loss and delays, avoid network congestion, and improve overall network performance and stability.

[0113] As an optional solution, allocating a target routing parameter to each of the sending link ports in the monitoring link group according to the congestion parameter corresponding to each of the sending link ports in the monitoring link group includes:

[0114] S21, generating a current congestion impact parameter of each of the sending link ports in the monitoring link group according to the congestion parameter corresponding to each of the sending link ports in the monitoring link group, and obtaining a congestion impact parameter set, wherein the congestion impact parameter is used to indicate the impact of the current congestion level of the corresponding sending link port on the sent traffic data;

[0115] S22, allocating a target routing parameter to each of the sending link ports in the monitoring link group according to the congestion impact parameter set to obtain a target routing parameter set.

[0116] Optionally, in this embodiment, Figure 3For example, Device B, a data transmission device in the example, includes one receiving link port: Eth2, and two sending link ports: Eth3 and Eth4. Assume that the congestion parameter of the i-th sending link port in the monitoring link group is express, The value range is [0, 1], where 0 indicates no congestion and 1 indicates the most severe congestion. The congestion parameters of Eth3 and Eth4 are and According to the congestion parameter corresponding to each of the sending link ports in the monitoring link group, the current congestion impact parameter of each of the sending link ports in the monitoring link group is generated, and the congestion impact parameter of Eth3 is obtained as follows: , the congestion impact parameter of Eth4 is , and finally according to the congestion impact parameter set ( , ) assigns a target routing parameter to each of the sending link ports in the monitoring link group to obtain a target routing parameter set ( , ).

[0117] As an optional solution, a current congestion impact parameter of each sending link port in the monitoring link group is generated according to the congestion parameter corresponding to each sending link port in the monitoring link group to obtain a congestion impact parameter set, including:

[0118] The i-th congestion impact parameter corresponding to the i-th transmission link port among the N transmission link ports is generated by the following steps, wherein i is an integer greater than or equal to 1 and less than or equal to N:

[0119] S31, obtaining a preset constant and the i-th congestion parameter corresponding to the i-th sending link port, wherein the preset constant is greater than or equal to a target value, and the target value is the maximum value allowed for the congestion parameter corresponding to each sending link port;

[0120] S32: Perform a subtraction operation on the preset constant and the i-th congestion parameter to obtain the i-th congestion impact parameter.

[0121] Optionally, in this embodiment, the above mentioned congestion impact parameter of each sending link port in the monitoring link group can be generated according to the congestion parameter corresponding to each sending link port in the monitoring link group. For example, the congestion parameter corresponding to the sending link port Eth3 can be generated according to the congestion parameter corresponding to the sending link port Eth4. Calculate the current congestion impact parameters of the sending link port Eth3 The specific method is: ,in, is a preset constant. The congestion impact parameter corresponding to the sending link port Eth4 can be calculated in the same way: .

[0122] As an optional solution, a target routing parameter is allocated to each of the sending link ports in the monitoring link group according to the congestion impact parameter set to obtain a target routing parameter set, including:

[0123] Allocating an i-th target routing parameter to the i-th sending link port in the monitoring link group according to the congestion impact parameter set by the following steps, wherein i is an integer greater than or equal to 1 and less than or equal to N:

[0124] S41, extracting the i-th congestion impact parameter corresponding to the i-th sending link port from the congestion impact parameter set;

[0125] S42, performing an addition operation on the N congestion impact parameters in the congestion impact parameter set to obtain a target sum value;

[0126] S43: Determine the ratio of the i-th congestion impact parameter to the target sum value as the i-th target routing parameter of the i-th sending link port.

[0127] Optionally, in this embodiment, Figure 3 For example, Device B, a data transmission device in the example, includes one receiving link port: Eth2, and two sending link ports: Eth3 and Eth4. Assume that the congestion parameter of the i-th sending link port in the monitoring link group is Indicates that the congestion parameters of Eth3 and Eth4 are and Through the above steps S31-S32, the congestion impact parameters of Eth3 and Eth4 can be calculated. and .

[0128] Based on S42-S43, we can know that the target routing parameters of Eth3 ;

[0129] Eth4 target routing parameters ;

[0130] As an optional solution, allocating a target routing parameter to each of the sending link ports in the monitoring link group according to the congestion parameter corresponding to each of the sending link ports in the monitoring link group includes:

[0131] S51, according to the congestion parameter corresponding to each of the sending link ports in the monitoring link group, the i-th sending link port in the monitoring link group is assigned the i-th target routing parameter by the following formula, wherein i is an integer greater than or equal to 1 and less than or equal to N:

[0132] ,

[0133] in, represents the i-th target routing parameter, represents the congestion parameter corresponding to the i-th sending link port in the monitoring link group, is greater than or equal to 0 and less than or equal to 1, When the value is 0, it means that the current traffic data sent by the i-th sending link port is not congested. When the value is 1, it means that the congestion level of the current traffic data sent by the i-th sending link port is the most serious. It indicates the influence of the current congestion level of the i-th sending link port on the sent traffic data.

[0134] Optionally, in this embodiment, S51 calculates The formula can be regarded as, but not limited to, a special case where V takes the value 1 in S21-S41.

[0135] The destination routing parameters of all sending link ports in the monitoring link group should add up to 1. It shows the impact of congestion level on the current transmission link port traffic. When the congestion level is small, the impact of this item is small, and when the congestion level is When is larger, the impact of this item is greater. The routing weight can be adjusted dynamically according to the congestion level, so that the routing weight of the uplink port with more serious congestion is smaller, thereby reducing its traffic load.

[0136] As an optional solution, controlling each of the sending link ports in the monitoring link group to send traffic data to a downstream device according to the target routing parameter corresponding to the target routing parameter set within a preset adjustment time period includes:

[0137] The i-th sending link port in the monitoring link group is controlled to send traffic data to the downstream device according to the i-th target routing parameter corresponding to the target routing parameter set within the preset adjustment time period through the following steps, wherein i is an integer greater than or equal to 1 and less than or equal to N:

[0138] S61, controlling the i-th sending link port to extract the corresponding i-th target routing parameter from the target routing parameter set;

[0139] S62, controlling the i-th sending link port to switch the routing parameter currently used by the i-th sending link port from the default routing parameter to the i-th target routing parameter, and detecting whether the current usage duration of the i-th target routing parameter is greater than or equal to the i-th preset adjustment duration;

[0140] S63, when it is detected that the usage time is greater than or equal to the i-th preset adjustment time, controlling the i-th sending link port to switch the routing parameter currently used by the i-th sending link port from the i-th target routing parameter to the default routing parameter.

[0141] Optionally, in this embodiment, Figure 3 For example, Device B, a data transmission device in the example, includes one receiving link port: Eth2, and two sending link ports: Eth3 and Eth4. Assume that the congestion parameter of the i-th sending link port in the monitoring link group is Indicates that the congestion parameters of Eth3 and Eth4 are and Through the above steps S31-S32, the congestion impact parameters of Eth3 and Eth4 can be calculated. and . Eth3 target routing parameters: , Eth4 target routing parameters: .

[0142] Figure 4 is a schematic diagram of a routing parameter switching according to an embodiment of the present application, such as Figure 4 As shown in the figure, taking the sending link port Eth3 of the data transmission device Device B as an example, the default routing parameters of Eth3 are , after calculating the Eth3 target routing parameters After that, you can temporarily change the Eth3 routing parameters from the default routing parameters to Switch to target route parameters The switching duration is the preset adjustment duration corresponding to Eth3.

[0143] As an optional solution, before detecting whether the current usage duration of the i-th target routing parameter is greater than or equal to the i-th preset adjustment duration, the method further includes:

[0144] S71, obtaining the i-th congestion parameter corresponding to the i-th sending link port;

[0145] S72: Allocate the i-th preset adjustment time length to the i-th sending link port according to the i-th congestion parameter.

[0146] Optionally, in this embodiment, the above mentioned calculation of the target routing parameters of Eth3 After that, you can temporarily change the Eth3 routing parameters from the default routing parameters to Switch to target route parameters The switching duration is the preset adjustment duration corresponding to Eth3. The preset adjustment duration may be, but is not limited to, based on the congestion parameters of Eth3. Sure.

[0147] As an optional solution, allocating the i-th preset adjustment time length to the i-th sending link port according to the i-th congestion parameter includes:

[0148] S81, allocating the i-th preset adjustment time length to the i-th sending link port according to the i-th congestion parameter by using the following formula:

[0149] ,

[0150] in, The preset adjustment duration is i-th, The preset adjustment duration is i-th, is a coefficient greater than 0, represents the congestion parameter corresponding to the i-th sending link port, is greater than or equal to 0 and less than or equal to 1, When the value is 0, it means that the current traffic data sent by the i-th sending link port is not congested. When the value is 1, it means that the congestion level of the current traffic data sent by the i-th sending link port is the most serious. is a constant.

[0151] Optionally, in this embodiment, the preset adjustment time mentioned above may be, but is not limited to, based on the congestion parameter of Eth3. The specific The calculation formula is: is a coefficient greater than 0, that is and The more severe the congestion of the sending link port, the longer the corresponding preset adjustment time.

[0152] As an optional solution, allocating the i-th preset adjustment time length to the i-th sending link port according to the i-th congestion parameter includes:

[0153] S91, detecting a congestion parameter range into which the i-th congestion parameter falls, and obtaining a target congestion parameter range;

[0154] S92, matching a target adjustment duration corresponding to the target congestion parameter range from the congestion parameter ranges and adjustment durations having a corresponding relationship;

[0155] S93: Determine the target adjustment duration as the i-th preset adjustment duration.

[0156] Optionally, in this embodiment, in addition to the above The preset adjustment time length corresponding to each sending link port can be obtained by using a calculation formula, and the congestion parameter range into which the congestion parameter falls can be detected, thereby determining the congestion degree of the sending link port.

[0157] When the congestion parameter is mapped to a smaller range, such as between 0.1 and 0.3, it means that the congestion is relatively light, and the preset adjustment time can be 30 seconds;

[0158] When the congestion parameter is mapped to a medium range, such as between 0.3 and 0.7, it indicates that the congestion level is medium. In this case, the preset adjustment time is appropriately increased, which may be 60 seconds.

[0159] When the congestion parameter is mapped to a larger range, for example, between 0.7 and 1, it indicates that the congestion level is serious. In this case, the preset adjustment time can be further increased to 120 seconds.

[0160] In the above manner, the timer time is dynamically adjusted according to the congestion level. Generally speaking, the more severe the congestion level, the longer the timer time should be. This can be achieved by setting different congestion levels and corresponding timer times.

[0161] As an optional solution, controlling each of the sending link ports in the monitoring link group to send traffic data to a downstream device according to the target routing parameter corresponding to the target routing parameter set within a preset adjustment time period includes:

[0162] In the case where the data transmission device currently has target traffic data of a target data volume to be sent to the downstream device, the i-th sending link port in the monitoring link group is controlled to send traffic data to the downstream device according to the i-th target routing parameter corresponding to the target routing parameter set within a preset adjustment time, through the following steps, where i is an integer greater than or equal to 1 and less than or equal to N:

[0163] S101, calculating the i-th reference data volume currently allowed to be sent by the i-th sending link port according to the i-th target routing parameter and the target data volume;

[0164] S102: Allocate the i-th reference data volume of the target flow data to the i-th sending link port and send it to the downstream device.

[0165] Optionally, in this embodiment, sending the flow data to the downstream device according to the target routing parameter corresponding to the target routing parameter set may refer to, but is not limited to, allocating the flow data of the sending link port using the target routing parameter as the allocation ratio. Figure 3 Take the data transmission device Device B in the example, the target routing parameters corresponding to the two sending link ports of Device B: Eth3 and Eth4 are 0.2 and 0.8 respectively, then 20% of the traffic data will be sent through Eth3, and 80% of the traffic data will be sent through Eth4.

[0166] As an optional solution, calculating the i-th reference data amount currently allowed to be sent by the i-th sending link port according to the i-th target routing parameter and the target data amount includes:

[0167] S111 : Determine the product of the i th target routing parameter and the target data volume as the i th reference data volume.

[0168] Optionally, in this embodiment, assuming that the target routing parameters corresponding to Eth3 and Eth4 are 0.2 and 0.8 respectively, 20% of the traffic data will be sent through Eth3, and 80% of the traffic data will be sent through Eth4. Specifically, 0.2 can be multiplied by the target data volume to obtain the reference data volume of Eth3, and 0.8 can be multiplied by the target data volume to obtain the reference data volume of Eth4.

[0169] As an optional solution, after controlling each of the sending link ports in the monitoring link group to send traffic data to the downstream device according to the target routing parameter corresponding to the target routing parameter set within a preset adjustment time, the method further includes:

[0170] S121, detecting parameter change information of the congestion parameter corresponding to each of the sending link ports, wherein the parameter change information is used to indicate a change in the congestion parameter;

[0171] S122: Adjust the preset adjustment time according to the parameter change information.

[0172] Optionally, in this embodiment, this solution also involves a dynamic adjustment and feedback mechanism: if the congestion situation improves after the routing parameters are switched to the target routing parameters, the timer time can be appropriately reduced, for example, by 10 seconds. If the congestion situation continues to increase after the routing parameters are switched to the target routing parameters, the timer time should be appropriately increased, for example, by 10 seconds.

[0173] As an optional solution, detecting the parameter change information of the congestion parameter corresponding to each of the sending link ports further includes:

[0174] S131, detecting a current value change direction of the congestion parameter corresponding to each of the sending link ports;

[0175] S132, in a case where it is detected that the direction of the value change is used to indicate that the congestion parameter corresponding to the sending link port is decreasing, detecting whether the congestion parameter is less than or equal to a lower limit parameter;

[0176] S133, in the case where it is detected that the direction of the value change is used to indicate that the congestion parameter corresponding to the sending link port increases, detecting whether the congestion parameter is greater than or equal to an upper limit parameter, wherein the upper limit parameter is greater than the lower limit parameter;

[0177] The adjusting the preset adjustment duration according to the parameter change information includes:

[0178] S134, when it is detected that the parameter change information indicates that the congestion parameter is less than or equal to the lower limit parameter, reducing the preset adjustment time by a first preset time;

[0179] S135: When it is detected that the parameter change information indicates that the congestion parameter is greater than or equal to the lower limit parameter, increase the preset adjustment time by a second preset time.

[0180] Optionally, in this embodiment, the preset adjustment time mentioned above can be dynamically adjusted according to the change of the congestion parameter, wherein the change of the congestion parameter can be, but is not limited to, observing the direction of the value change, for example, if the congestion parameter decreases from 0.7 to 0.5, it means that the congestion situation has improved, and the timer time can be appropriately reduced, for example, 10 seconds (first preset time). If the congestion parameter increases from 0.3 to 0.5, it means that the congestion situation continues to worsen, and the timer time should be appropriately increased, for example, 15 seconds (second preset time).

[0181] As an optional solution, detecting parameter change information of the congestion parameter corresponding to each of the sending link ports includes:

[0182] S141, detecting a current value change rate of the congestion parameter corresponding to each of the sending link ports, wherein the value change rate is used to indicate a change in the corresponding congestion parameter per unit time;

[0183] S142, when it is detected that the value change rate is less than or equal to -P, detecting whether the duration of the value change rate being less than or equal to -P is greater than or equal to a first duration, wherein P is a positive number greater than R;

[0184] S143, when it is detected that the value change rate is greater than or equal to Q, detecting whether the duration of the value change rate being greater than or equal to Q is greater than or equal to a second duration, wherein Q is a positive number greater than R;

[0185] The adjusting the preset adjustment duration according to the parameter change information includes:

[0186] S144, when it is detected that the parameter change information is used to indicate that the duration of the value change rate being less than or equal to -P is greater than or equal to the first duration, reducing the preset adjustment duration by a third preset duration;

[0187] S145: When it is detected that the parameter change information is used to indicate that the duration of the numerical value change rate being greater than or equal to Q is greater than or equal to the second duration, the preset adjustment duration is increased by a fourth preset duration.

[0188] Optionally, in this embodiment, in addition to the above-mentioned numerical change direction that can reflect the change of the congestion parameter, the numerical change rate can also be observed. If it is detected that the numerical change rate is less than or equal to -P, and the duration is greater than or equal to the first duration, it means that the congestion parameter decreases rapidly and the congestion situation is improved, then the timer time can be appropriately reduced, for example, 20 seconds (third preset duration). If it is detected that the numerical change rate is greater than or equal to Q, and the duration is greater than or equal to the second duration, it means that the congestion parameter rises rapidly and the congestion situation continues to deteriorate, then the timer time can be appropriately increased, for example, 25 seconds (fourth preset duration). If it is detected that the numerical change rate is greater than -P, and the duration is greater than or equal to the first duration, it means that the congestion parameter decreases slowly, then the timer time can be appropriately increased, for example, 18 seconds.

[0189] As an optional solution, generating a corresponding congestion parameter for each of the sending link ports in the monitoring link group according to the port operation parameter set includes:

[0190] S151, generating a target prediction model, wherein the target prediction model is a model that allows the congestion parameter corresponding to each of the sending link ports to be predicted according to the port operation parameter of each of the sending link ports;

[0191] S152, inputting the port operation parameter corresponding to each of the sending link ports into the target prediction model to obtain the congestion parameter corresponding to each of the sending link ports.

[0192] Optionally, in this embodiment, a corresponding congestion parameter may be generated for each of the sending link ports in the monitoring link group according to the port operation parameter set by a pre-trained target prediction model, but is not limited to the pre-trained target prediction model.

[0193] As an optional solution, the generating the target prediction model further includes:

[0194] S161, obtaining Y port operation parameter samples, wherein each of the port operation parameter samples is marked with a congestion parameter label, each of the port operation parameter samples is obtained by pre-collecting the port operation parameters on the sending link port sample, and the congestion parameter label is used to indicate the congestion degree of the corresponding sending link port sample in sending traffic data when collecting the port operation parameter sample;

[0195] S162, using Y samples of the port operation parameters to perform Y rounds of training on the initial prediction model to obtain a target prediction model, wherein the degree of approximation between the predicted congestion parameters predicted by the target prediction model based on the port operation parameter samples and the congestion parameter labels marked by the port operation parameter samples is greater than or equal to the target approximation.

[0196] Optionally, in this embodiment, the initial prediction model can be trained for Y rounds using Y port operation parameter samples marked with congestion parameter labels to obtain a target prediction model, wherein, during the training phase, the congestion parameter labels can be, but are not limited to, manually labeled.

[0197] As an optional solution, Y rounds of training are performed on the initial prediction model using Y port operation parameter samples to obtain a target prediction model, including:

[0198] The j-th port operation parameter sample among the Y port operation parameter samples is used to perform the j-th round of training on the initial prediction model among the Y rounds of training to obtain the prediction model obtained by the j-th round of training, wherein j is an integer greater than or equal to 1 and less than or equal to Y:

[0199] S171, obtaining a prediction model to be used in the j-th round of training, wherein when j is 1, the prediction model to be used in the j-th round of training is the untrained initial prediction model;

[0200] S172, inputting the jth sample of the port operation parameter into the prediction model to be used in the jth round of training, and obtaining the jth predicted congestion parameter output by the prediction model to be used in the jth round of training;

[0201] S173, detecting a degree of similarity between the j-th predicted congestion parameter and the j-th congestion parameter label corresponding to the j-th port operation parameter sample;

[0202] S174, when it is detected that the approximation degree is less than the target approximation degree, adjusting the model parameters in the prediction model to be used in the j-th round of training to obtain the prediction model obtained in the j-th round of training, and determining the prediction model obtained in the j-th round of training as the prediction model to be used in the j+1-th round of training, wherein, when j takes the value Y, the prediction model obtained in the j-th round of training is determined as the target prediction model, and the model parameters are used to indicate the linear relationship between the port operation parameter sample and the predicted congestion parameter;

[0203] S175: When it is detected that the degree of approximation is greater than or equal to the target degree of approximation, the prediction model to be used in the j-th round of training is determined as the target prediction model.

[0204] Optionally, in this embodiment, the target prediction model may be, but is not limited to, a linear regression model. The port operation parameter samples may be, but are not limited to, those collected in advance, wherein the port operation parameter samples may include, but are not limited to, flow rate parameter samples, packet loss rate parameter samples, delay parameter samples, queue length parameter samples, and bandwidth utilization parameter samples. If X1, X2, X3, X4, and X5 are used to represent flow rate parameter samples, packet loss rate parameter samples, delay parameter samples, and queue length parameter samples, respectively, each parameter X presents a certain linear relationship with the congestion parameter C, and the target prediction model is a linear regression model that allows the congestion parameter C to be predicted according to the linear relationship between the parameter X and the congestion parameter C, assuming that the linear relationship is: ,in, to is a coefficient and is also a model parameter in step S174. As the error term, collect Monitor Link data for a period of time, including the values ​​of independent variables X1, X2, X3, X4, X5 and dependent variable Y. Then use these data to train a linear regression model and get the coefficients to , so that the difference between the predicted congestion parameter C predicted using the linear relationship and the actual congestion parameter is as small as possible.

[0205] As an optional solution, the obtaining of the port operation parameters generated by each of the N sending link ports during the operation of the monitoring link group further includes:

[0206] S181, obtaining the flow rate parameter, packet loss rate parameter, delay parameter, queue length parameter and bandwidth utilization parameter generated by each of the N sending link ports in the monitoring link group during operation, wherein the flow rate parameter is used to indicate the rate at which the corresponding sending link port currently transmits flow data, the packet loss rate parameter is used to indicate the number of packet losses per unit time during the process of the corresponding sending link port currently transmitting flow data, the delay parameter is used to indicate the transmission delay of the corresponding sending link port currently transmitting flow data, the queue length parameter is used to indicate the length of the queue of the flow data to be currently transmitted by the corresponding sending link port, and the bandwidth utilization parameter is used to indicate the utilization of the bandwidth during the process of the corresponding sending link port currently transmitting flow data;

[0207] S182: Determine the traffic rate parameter, the packet loss rate parameter, the delay parameter, the queue length parameter, and the bandwidth utilization parameter as the port operation parameters.

[0208] Optionally, in this embodiment, the port operation parameters may further include other parameters as needed.

[0209] It is worth noting that the data transmission control method proposed in this application is applicable to a Monitor Link Group with multiple transmission link ports. When traffic congestion occurs on a transmission link port in the Monitor Link Group, a timer can be automatically started to adjust the routing weight to redistribute traffic to other available transmission link ports to avoid traffic packet loss and network performance degradation. After the time set by the timer, the system automatically restores the routing weight (routing parameters) to its original state. If the congestion lasts for a long time, the system will gradually extend the routing weight adjustment time as needed.

[0210] This solution can automatically handle the traffic congestion problem of the Monitor Link Group's sending link port, improve the stability and performance of the network, and reduce the impact of network failures. The solution can dynamically adjust the routing weight and timer time according to the actual situation. The system has a certain degree of intelligence and flexibility and can adapt to different network environments and fault conditions. In turn, it reduces the dependence on network administrators, improves the level of network automation management, and reduces maintenance costs and manpower investment. Moreover, by evaluating and predicting the congestion of the Monitor Link Group, potential problems can be discovered and handled in advance, improving the availability and stability of the network. It can be widely used in network environments with Monitor Link, such as data centers, enterprise networks, and cloud services, providing effective solutions for networks of various sizes and types.

[0211] In addition, the data transmission control method proposed in this application can provide a high-availability and stable network for network operators and cloud service providers who often use Monitor Link Group. It can automatically handle traffic congestion problems on Monitor Link Group, optimize traffic distribution, and improve network performance. Large enterprise data centers usually use Monitor Link Group to build a high-availability network architecture. This system can be applied to enterprise-level data centers to automatically adjust routing weights and timer times according to the real-time traffic conditions of Monitor Link Group to ensure stable operation of the data center network. In the field of Internet of Things, monitoring connections are used for communication and data exchange between devices. This system can help Internet of Things device network managers automatically handle traffic congestion problems on Monitor Link Group, optimize communication between devices, and improve the overall efficiency of the Internet of Things system. By combining various application scenarios of Monitor Link Group, automatic traffic adjustment can be achieved to improve network availability and performance.

[0212] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0213] In this embodiment, a control device for data transmission is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for 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.

[0214] Figure 5 is a structural block diagram of a data transmission control device according to an embodiment of the present application; Figure 5 As shown, N sending link ports, M receiving link ports, a monitoring link group and a processor are deployed in the data transmission device, and the monitoring link group is used to control the corresponding receiving link port to switch to the closed state when the sending link port in the data transmission device is in the closed state, N is an integer greater than 1, M is an integer greater than or equal to 1, and the data transmission control device is applied to the processor, and the data transmission control device includes:

[0215] A first acquisition module 502 is used to acquire a port operation parameter generated by each of the N sending link ports during the operation of the monitoring link group, and obtain a port operation parameter set, wherein the port operation parameter is used to indicate the current operation status of the corresponding sending link port in the N sending link ports;

[0216] A generating module 504, configured to generate a corresponding congestion parameter for each of the sending link ports in the monitoring link group according to the port operation parameter set, wherein the congestion parameter is used to indicate the congestion degree of the corresponding sending link port currently sending traffic data, and the congestion parameter is positively correlated with the congestion degree;

[0217] A first allocation module 506 is used to allocate a target routing parameter to each of the sending link ports in the monitoring link group according to the congestion parameter corresponding to each of the sending link ports in the monitoring link group, when detecting that there is a target sending link port in the monitoring link group whose current congestion parameter meets the target adjustment condition, to obtain a target routing parameter set, wherein the target routing parameter is negatively correlated with the congestion parameter;

[0218] The control module 508 is used to control each of the sending link ports in the monitoring link group to send traffic data to the downstream device according to the corresponding target routing parameter in the target routing parameter set within a preset adjustment time, wherein the sending link port with a smaller target routing parameter will be assigned to send less traffic data to the downstream device.

[0219] In an exemplary embodiment, the first allocation module includes:

[0220] A generating unit, configured to generate a current congestion impact parameter of each of the sending link ports in the monitoring link group according to the congestion parameter corresponding to each of the sending link ports in the monitoring link group, and obtain a set of congestion impact parameters, wherein the congestion impact parameter is used to indicate the impact of the current congestion level of the corresponding sending link port on the sent traffic data;

[0221] The first allocation unit is used to allocate a target routing parameter to each of the sending link ports in the monitoring link group according to the congestion impact parameter set to obtain a target routing parameter set.

[0222] In an exemplary embodiment, the generating unit is used to:

[0223] The i-th congestion impact parameter corresponding to the i-th transmission link port among the N transmission link ports is generated by the following steps, wherein i is an integer greater than or equal to 1 and less than or equal to N:

[0224] Obtaining a preset constant and the i-th congestion parameter corresponding to the i-th sending link port, wherein the preset constant is greater than or equal to a target value, and the target value is the maximum value allowed for the congestion parameter corresponding to each sending link port;

[0225] A subtraction operation is performed on the preset constant and the i-th congestion parameter to obtain the i-th congestion impact parameter.

[0226] In an exemplary embodiment, the first allocation unit is used to:

[0227] Allocating an i-th target routing parameter to the i-th sending link port in the monitoring link group according to the congestion impact parameter set by the following steps, wherein i is an integer greater than or equal to 1 and less than or equal to N:

[0228] Extracting the i-th congestion impact parameter corresponding to the i-th sending link port from the congestion impact parameter set;

[0229] Performing an addition operation on the N congestion impact parameters in the congestion impact parameter set to obtain a target sum value;

[0230] A ratio of the i-th congestion impact parameter to the target sum value is determined as the i-th target routing parameter of the i-th sending link port.

[0231] In an exemplary embodiment, the first allocation module includes:

[0232] A calculation unit, configured to calculate the i-th target routing parameter allocated to the i-th sending link port in the monitoring link group according to the congestion parameter corresponding to each sending link port in the monitoring link group by the following formula, wherein i is an integer greater than or equal to 1 and less than or equal to N:

[0233] ,

[0234] in, represents the i-th target routing parameter, represents the congestion parameter corresponding to the i-th sending link port in the monitoring link group, is greater than or equal to 0 and less than or equal to 1, When the value is 0, it means that the current traffic data sent by the i-th sending link port is not congested. When the value is 1, it means that the congestion level of the current traffic data sent by the i-th sending link port is the most serious. It indicates the influence of the current congestion level of the i-th sending link port on the sent traffic data.

[0235] In an exemplary embodiment, the control module comprises:

[0236] A first control unit is configured to control the i-th sending link port in the monitoring link group to send traffic data to the downstream device according to the i-th target routing parameter corresponding to the target routing parameter set within the preset adjustment time period through the following steps, wherein i is an integer greater than or equal to 1 and less than or equal to N:

[0237] Controlling the i-th sending link port to extract the corresponding i-th target routing parameter from the target routing parameter set;

[0238] Controlling the i-th sending link port to switch the routing parameter currently used by the i-th sending link port from the default routing parameter to the i-th target routing parameter, and detecting whether the current usage duration of the i-th target routing parameter is greater than or equal to the i-th preset adjustment duration;

[0239] When it is detected that the usage duration is greater than or equal to the i-th preset adjustment duration, the i-th sending link port is controlled to switch the routing parameter currently used by the i-th sending link port from the i-th target routing parameter to the default routing parameter.

[0240] In an exemplary embodiment, the apparatus further comprises:

[0241] A second acquisition module, configured to acquire the i-th congestion parameter corresponding to the i-th sending link port before detecting whether the current usage duration of the i-th target routing parameter is greater than or equal to the i-th preset adjustment duration;

[0242] The second allocation module is used to allocate the i-th preset adjustment time length to the i-th sending link port according to the i-th congestion parameter.

[0243] In an exemplary embodiment, the second allocation module includes:

[0244] The second allocation unit is configured to allocate the i-th preset adjustment time length to the i-th sending link port according to the i-th congestion parameter by using the following formula:

[0245] ,

[0246] in, The preset adjustment duration is i-th, is a coefficient greater than 0, represents the congestion parameter corresponding to the i-th sending link port, is greater than or equal to 0 and less than or equal to 1, When the value is 0, it means that the current traffic data sent by the i-th sending link port is not congested. When the value is 1, it means that the congestion level of the current traffic data sent by the i-th sending link port is the most serious. is a constant.

[0247] In an exemplary embodiment, the second allocation unit is further configured to:

[0248] Detecting a congestion parameter range that the i-th congestion parameter falls into, and obtaining a target congestion parameter range;

[0249] Matching a target adjustment duration corresponding to the target congestion parameter range from congestion parameter ranges and adjustment durations having a corresponding relationship;

[0250] The target adjustment duration is determined as the i-th preset adjustment duration.

[0251] In an exemplary embodiment, the control module comprises:

[0252] A second control unit is configured to control the i-th sending link port in the monitoring link group to send the flow data to the downstream device according to the i-th target routing parameter corresponding to the target routing parameter set within a preset adjustment time period when the data transmission device currently has target flow data of a target data volume to be sent to the downstream device through the following steps, wherein i is an integer greater than or equal to 1 and less than or equal to N:

[0253] Calculate the i-th reference data volume currently allowed to be sent by the i-th sending link port according to the i-th target routing parameter and the target data volume;

[0254] Allocate the i-th reference data volume of the target flow data to the i-th sending link port and send it to the downstream device.

[0255] In an exemplary embodiment, the second control unit is further configured to:

[0256] The product of the i-th target routing parameter and the target data volume is determined as the i-th reference data volume.

[0257] In an exemplary embodiment, the apparatus further comprises:

[0258] A detection module, configured to detect parameter change information of the congestion parameter corresponding to each of the sending link ports after controlling each of the sending link ports in the monitoring link group to send traffic data to a downstream device according to the target routing parameter corresponding to the target routing parameter set within a preset adjustment time, wherein the parameter change information is used to indicate a change in the congestion parameter;

[0259] An adjustment module is used to adjust the preset adjustment duration according to the parameter change information.

[0260] In an exemplary embodiment, the detection module comprises:

[0261] A first detection unit, used to detect a current value change direction of the congestion parameter corresponding to each of the sending link ports;

[0262] A second detection unit, configured to detect whether the congestion parameter is less than or equal to a lower limit parameter when detecting that the direction of the value change indicates that the congestion parameter corresponding to the sending link port is decreasing;

[0263] A third detection unit is used to detect whether the congestion parameter is greater than or equal to an upper limit parameter when it is detected that the direction of the value change indicates that the congestion parameter corresponding to the sending link port increases, wherein the upper limit parameter is greater than the lower limit parameter;

[0264] The adjustment module comprises:

[0265] A first reducing unit, configured to reduce the preset adjustment duration by a first preset duration when detecting that the parameter change information indicates that the congestion parameter is less than or equal to the lower limit parameter;

[0266] The first increasing unit is configured to increase the preset adjustment duration by a second preset duration when it is detected that the parameter change information indicates that the congestion parameter is greater than or equal to the lower limit parameter.

[0267] In an exemplary embodiment, the detection module comprises:

[0268] A fourth detection unit, used to detect a current value change rate of the congestion parameter corresponding to each of the sending link ports, wherein the value change rate is used to indicate a change in the corresponding congestion parameter per unit time;

[0269] a fifth detection unit, configured to detect, when detecting that the value change rate is less than or equal to -P, whether a duration during which the value change rate is less than or equal to -P is greater than or equal to a first duration, wherein P is a positive number greater than R;

[0270] a sixth detection unit, configured to detect, when detecting that the value change rate is greater than or equal to Q, whether a duration during which the value change rate is greater than or equal to Q is greater than or equal to a second duration, wherein Q is a positive number greater than R;

[0271] The adjustment module comprises:

[0272] A second reducing unit is configured to reduce the preset adjustment duration by a third preset duration when it is detected that the parameter change information is used to indicate that the duration for which the value change rate is less than or equal to -P is greater than or equal to the first duration;

[0273] The second increasing unit is used to increase the preset adjustment duration by a fourth preset duration when it is detected that the parameter change information is used to indicate that the duration for which the numerical value change rate is greater than or equal to Q is greater than or equal to the second duration.

[0274] In an exemplary embodiment, the generating module comprises:

[0275] A generating unit, configured to generate a target prediction model, wherein the target prediction model is a model that allows the congestion parameter corresponding to each of the sending link ports to be predicted according to the port operation parameter of each of the sending link ports;

[0276] An input unit is used to input the port operation parameter corresponding to each of the sending link ports into the target prediction model to obtain the congestion parameter corresponding to each of the sending link ports.

[0277] In an exemplary embodiment, the generating unit is further configured to:

[0278] Acquire Y port operation parameter samples, wherein each of the port operation parameter samples is marked with a congestion parameter label, each of the port operation parameter samples is obtained by pre-collecting the port operation parameters on the sending link port sample, and the congestion parameter label is used to indicate the congestion degree of the corresponding sending link port sample in sending traffic data when collecting the port operation parameter sample;

[0279] The initial prediction model is trained for Y rounds using Y samples of the port operation parameters to obtain a target prediction model, wherein the degree of approximation between the predicted congestion parameters predicted by the target prediction model based on the port operation parameter samples and the congestion parameter labels marked by the port operation parameter samples is greater than or equal to the target approximation.

[0280] In an exemplary embodiment, the generating unit is further configured to:

[0281] The j-th port operation parameter sample among the Y port operation parameter samples is used to perform the j-th round of training on the initial prediction model among the Y rounds of training to obtain the prediction model obtained by the j-th round of training, wherein j is an integer greater than or equal to 1 and less than or equal to Y:

[0282] Obtaining a prediction model to be used in the j-th round of training, wherein when j takes a value of 1, the prediction model to be used in the j-th round of training is the untrained initial prediction model;

[0283] Inputting the jth sample of the port operation parameter into the prediction model to be used in the jth round of training, and obtaining the jth predicted congestion parameter output by the prediction model to be used in the jth round of training;

[0284] Detecting the degree of similarity between the j-th predicted congestion parameter and the j-th congestion parameter label corresponding to the j-th port operation parameter sample;

[0285] In the case where it is detected that the approximation degree is less than the target approximation degree, adjusting the model parameters in the prediction model to be used in the j-th round of training to obtain the prediction model obtained in the j-th round of training, and determining the prediction model obtained in the j-th round of training as the prediction model to be used in the j+1-th round of training, wherein, in the case where j takes the value Y, the prediction model obtained in the j-th round of training is determined as the target prediction model, and the model parameters are used to indicate the linear relationship between the port operation parameter sample and the predicted congestion parameter;

[0286] When it is detected that the degree of approximation is greater than or equal to the target degree of approximation, the prediction model to be used in the j-th round of training is determined as the target prediction model.

[0287] In an exemplary embodiment, the first acquisition module includes:

[0288] an acquisition unit, used for acquiring a flow rate parameter, a packet loss rate parameter, a delay parameter, a queue length parameter and a bandwidth utilization parameter generated by each of the N sending link ports of the monitoring link group during operation, wherein the flow rate parameter is used to indicate the rate at which the corresponding sending link port is currently transmitting flow data, the packet loss rate parameter is used to indicate the number of packet losses per unit time during the process of the corresponding sending link port currently transmitting flow data, the delay parameter is used to indicate the transmission delay of the corresponding sending link port currently transmitting flow data, the queue length parameter is used to indicate the length of the queue of the flow data to be currently transmitted by the corresponding sending link port, and the bandwidth utilization parameter is used to indicate the utilization of the bandwidth during the process of the corresponding sending link port currently transmitting flow data;

[0289] A determination unit is used to determine the traffic rate parameter, the packet loss rate parameter, the delay parameter, the queue length parameter and the bandwidth utilization parameter as the port operation parameter.

[0290] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0291] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the method described in each embodiment of the present application; the computer program product also includes a non-volatile computer-readable storage medium, which stores the computer program, and when executed by a processor, implements the steps of the method described in each embodiment of the present application.

[0292] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0293] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0294] An embodiment of the present application further provides an electronic device, Figure 6 is a schematic diagram of an electronic device according to an embodiment of the present application, such as Figure 6 As shown, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0295] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0296] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0297] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0298] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for controlling data transmission, characterized in that: N sending link ports, M receiving link ports, a monitoring link group and a processor are deployed in the data transmission device, and the monitoring link group is used to control the corresponding receiving link port to switch to the closed state when the sending link port in the data transmission device is in the closed state, N is an integer greater than 1, M is an integer greater than or equal to 1, and the method is applied to the processor, and the method includes: Acquire a port operation parameter generated by each of the N sending link ports during the operation of the monitoring link group to obtain a port operation parameter set, wherein the port operation parameter is used to indicate the current operation status of the corresponding sending link port among the N sending link ports; Generate a corresponding congestion parameter for each of the sending link ports in the monitoring link group according to the port operation parameter set, wherein the congestion parameter is used to indicate the congestion degree of the corresponding sending link port currently sending traffic data, and the congestion parameter is positively correlated with the congestion degree; In the case where it is detected that there is a target sending link port in the monitoring link group whose current congestion parameter meets the target adjustment condition, a target routing parameter is allocated to each sending link port in the monitoring link group according to the congestion parameter corresponding to each sending link port in the monitoring link group to obtain a target routing parameter set, wherein the target routing parameter is negatively correlated with the congestion parameter; Control each of the sending link ports in the monitoring link group to send traffic data to the downstream device according to the corresponding target routing parameter in the target routing parameter set within a preset adjustment time, wherein the sending link port with a smaller target routing parameter will be assigned to send less traffic data to the downstream device.

2. The method according to claim 1, characterized in that The allocating a target routing parameter to each of the sending link ports in the monitoring link group according to the congestion parameter corresponding to each of the sending link ports in the monitoring link group comprises: Generate a current congestion impact parameter of each of the sending link ports in the monitoring link group according to the congestion parameter corresponding to each of the sending link ports in the monitoring link group, and obtain a congestion impact parameter set, wherein the congestion impact parameter is used to indicate the impact of the current congestion level of the corresponding sending link port on the sent traffic data; According to the congestion impact parameter set, a target routing parameter is allocated to each of the sending link ports in the monitoring link group to obtain a target routing parameter set.

3. The method according to claim 2, characterized in that The step of generating a current congestion impact parameter of each of the sending link ports in the monitoring link group according to the congestion parameter corresponding to each of the sending link ports in the monitoring link group to obtain a congestion impact parameter set includes: The i-th congestion impact parameter corresponding to the i-th transmission link port among the N transmission link ports is generated by the following steps, wherein i is an integer greater than or equal to 1 and less than or equal to N: Obtaining a preset constant and the i-th congestion parameter corresponding to the i-th sending link port, wherein the preset constant is greater than or equal to a target value, and the target value is the maximum value allowed for the congestion parameter corresponding to each sending link port; A subtraction operation is performed on the preset constant and the i-th congestion parameter to obtain the i-th congestion impact parameter.

4. The method according to claim 2, characterized in that: The step of allocating a target routing parameter to each of the sending link ports in the monitoring link group according to the congestion impact parameter set to obtain a target routing parameter set includes: Allocating an i-th target routing parameter to the i-th sending link port in the monitoring link group according to the congestion impact parameter set by the following steps, wherein i is an integer greater than or equal to 1 and less than or equal to N: Extracting the i-th congestion impact parameter corresponding to the i-th sending link port from the congestion impact parameter set; Performing an addition operation on the N congestion impact parameters in the congestion impact parameter set to obtain a target sum value; A ratio of the i-th congestion impact parameter to the target sum value is determined as the i-th target routing parameter of the i-th sending link port.

5. The method according to claim 1, characterized in that The allocating a target routing parameter to each of the sending link ports in the monitoring link group according to the congestion parameter corresponding to each of the sending link ports in the monitoring link group comprises: The i-th target routing parameter allocated to the i-th sending link port in the monitoring link group is calculated according to the congestion parameter corresponding to each sending link port in the monitoring link group by the following formula, wherein i is an integer greater than or equal to 1 and less than or equal to N: , in, represents the i-th target routing parameter, represents the congestion parameter corresponding to the i-th sending link port in the monitoring link group, is greater than or equal to 0 and less than or equal to 1, When the value is 0, it means that the current traffic data sent by the i-th sending link port is not congested. When the value is 1, it means that the congestion level of the current traffic data sent by the i-th sending link port is the most serious. It indicates the influence of the current congestion level of the i-th sending link port on the sent traffic data.

6. The method according to claim 1, characterized in that The controlling each of the sending link ports in the monitoring link group to send traffic data to a downstream device according to the target routing parameter corresponding to the target routing parameter set within a preset adjustment time period includes: The i-th sending link port in the monitoring link group is controlled to send traffic data to the downstream device according to the i-th target routing parameter corresponding to the target routing parameter set within the preset adjustment time period through the following steps, wherein i is an integer greater than or equal to 1 and less than or equal to N: Controlling the i-th sending link port to extract the corresponding i-th target routing parameter from the target routing parameter set; Controlling the i-th sending link port to switch the routing parameter currently used by the i-th sending link port from the default routing parameter to the i-th target routing parameter, and detecting whether the current usage duration of the i-th target routing parameter is greater than or equal to the i-th preset adjustment duration; When it is detected that the usage duration is greater than or equal to the i-th preset adjustment duration, the i-th sending link port is controlled to switch the routing parameter currently used by the i-th sending link port from the i-th target routing parameter to the default routing parameter.

7. The method according to claim 6, characterized in that Before detecting whether the current usage duration of the i-th target routing parameter is greater than or equal to the i-th preset adjustment duration, the method further includes: Obtaining the i-th congestion parameter corresponding to the i-th sending link port; Allocate the i-th preset adjustment time length to the i-th sending link port according to the i-th congestion parameter.

8. The method according to claim 7, characterized in that The allocating the i-th preset adjustment time length to the i-th sending link port according to the i-th congestion parameter comprises: The i-th preset adjustment time is allocated to the i-th sending link port according to the i-th congestion parameter by the following formula: , in, The preset adjustment duration is i-th, is a coefficient greater than 0, represents the congestion parameter corresponding to the i-th sending link port, is greater than or equal to 0 and less than or equal to 1, When the value is 0, it means that the current traffic data sent by the i-th sending link port is not congested. When the value is 1, it means that the congestion level of the current traffic data sent by the i-th sending link port is the most serious. is a constant.

9. The method according to claim 7, characterized in that: The allocating the i-th preset adjustment time length to the i-th sending link port according to the i-th congestion parameter comprises: Detecting a congestion parameter range that the i-th congestion parameter falls into, and obtaining a target congestion parameter range; Matching a target adjustment duration corresponding to the target congestion parameter range from congestion parameter ranges and adjustment durations having a corresponding relationship; The target adjustment duration is determined as the i-th preset adjustment duration.

10. The method according to claim 1, characterized in that The controlling each of the sending link ports in the monitoring link group to send traffic data to a downstream device according to the target routing parameter corresponding to the target routing parameter set within a preset adjustment time period includes: In the case where the data transmission device currently has target traffic data of a target data volume to be sent to the downstream device, the i-th sending link port in the monitoring link group is controlled to send traffic data to the downstream device according to the i-th target routing parameter corresponding to the target routing parameter set within a preset adjustment time, through the following steps, where i is an integer greater than or equal to 1 and less than or equal to N: Calculate the i-th reference data volume currently allowed to be sent by the i-th sending link port according to the i-th target routing parameter and the target data volume; Allocate the i-th reference data volume of the target flow data to the i-th sending link port and send it to the downstream device.

11. The method according to claim 10, characterized in that The calculating, according to the i-th target routing parameter and the target data volume, the i-th reference data volume currently allowed to be sent by the i-th sending link port comprises: The product of the i-th target routing parameter and the target data volume is determined as the i-th reference data volume.

12. The method according to claim 1, characterized in that After controlling each of the sending link ports in the monitoring link group to send traffic data to a downstream device according to the target routing parameter corresponding to the target routing parameter set within a preset adjustment time, the method further includes: Detecting parameter change information of the congestion parameter corresponding to each of the sending link ports, wherein the parameter change information is used to indicate a change in the congestion parameter; The preset adjustment duration is adjusted according to the parameter change information.

13. The method according to claim 12, characterized in that The detecting parameter change information of the congestion parameter corresponding to each of the sending link ports includes: Detecting a current value change direction of the congestion parameter corresponding to each of the sending link ports; In the case where it is detected that the direction of the value change is used to indicate that the congestion parameter corresponding to the sending link port is decreasing, detecting whether the congestion parameter is less than or equal to a lower limit parameter; In the case where it is detected that the direction of the value change is used to indicate that the congestion parameter corresponding to the sending link port increases, detecting whether the congestion parameter is greater than or equal to an upper limit parameter, wherein the upper limit parameter is greater than the lower limit parameter; The adjusting the preset adjustment duration according to the parameter change information includes: When it is detected that the parameter change information indicates that the congestion parameter is less than or equal to the lower limit parameter, reducing the preset adjustment time by a first preset time; When it is detected that the parameter change information is used to indicate that the congestion parameter is greater than or equal to the lower limit parameter, the preset adjustment time length is increased by a second preset time length.

14. The method according to claim 12, characterized in that The detecting parameter change information of the congestion parameter corresponding to each of the sending link ports includes: Detecting a current value change rate of the congestion parameter corresponding to each of the sending link ports, wherein the value change rate is used to indicate a change in the corresponding congestion parameter per unit time; In the case where it is detected that the value change rate is less than or equal to -P, detecting whether the duration of the value change rate being less than or equal to -P is greater than or equal to a first duration, wherein P is a positive number greater than R; In the case where it is detected that the value change rate is greater than or equal to Q, detecting whether the duration of the value change rate being greater than or equal to Q is greater than or equal to a second duration, wherein Q is a positive number greater than R; The adjusting the preset adjustment duration according to the parameter change information includes: When it is detected that the parameter change information is used to indicate that the duration for which the value change rate is less than or equal to -P is greater than or equal to the first duration, reducing the preset adjustment duration by a third preset duration; When it is detected that the parameter change information is used to indicate that the duration for which the value change rate is greater than or equal to Q is greater than or equal to the second duration, the preset adjustment duration is increased by a fourth preset duration.

15. The method according to claim 1, characterized in that Generating a corresponding congestion parameter for each of the sending link ports in the monitoring link group according to the port operation parameter set includes: Generate a target prediction model, wherein the target prediction model is a model that allows the congestion parameter corresponding to each of the sending link ports to be predicted according to the port operation parameter of each of the sending link ports; The port operation parameters corresponding to each of the sending link ports are input into the target prediction model to obtain the congestion parameters corresponding to each of the sending link ports.

16. The method according to claim 15, characterized in that The generating of the target prediction model comprises: Acquire Y port operation parameter samples, wherein each of the port operation parameter samples is marked with a congestion parameter label, each of the port operation parameter samples is obtained by pre-collecting the port operation parameters on the sending link port sample, and the congestion parameter label is used to indicate the congestion degree of the corresponding sending link port sample in sending traffic data when collecting the port operation parameter sample; The initial prediction model is trained for Y rounds using Y samples of the port operation parameters to obtain a target prediction model, wherein the degree of approximation between the predicted congestion parameters predicted by the target prediction model based on the port operation parameter samples and the congestion parameter labels marked by the port operation parameter samples is greater than or equal to the target approximation.

17. The method according to claim 16, characterized in that The method of using Y port operation parameter samples to perform Y rounds of training on the initial prediction model to obtain a target prediction model includes: The j-th port operation parameter sample among the Y port operation parameter samples is used to perform the j-th round of training on the initial prediction model among the Y rounds of training to obtain the prediction model obtained by the j-th round of training, wherein j is an integer greater than or equal to 1 and less than or equal to Y: Obtaining a prediction model to be used in the j-th round of training, wherein when j takes a value of 1, the prediction model to be used in the j-th round of training is the untrained initial prediction model; Inputting the jth sample of the port operation parameter into the prediction model to be used in the jth round of training, and obtaining the jth predicted congestion parameter output by the prediction model to be used in the jth round of training; Detecting the degree of similarity between the j-th predicted congestion parameter and the j-th congestion parameter label corresponding to the j-th port operation parameter sample; In the case where it is detected that the approximation degree is less than the target approximation degree, adjusting the model parameters in the prediction model to be used in the j-th round of training to obtain the prediction model obtained in the j-th round of training, and determining the prediction model obtained in the j-th round of training as the prediction model to be used in the j+1-th round of training, wherein, in the case where j takes the value Y, the prediction model obtained in the j-th round of training is determined as the target prediction model, and the model parameters are used to indicate the linear relationship between the port operation parameter sample and the predicted congestion parameter; When it is detected that the degree of approximation is greater than or equal to the target degree of approximation, the prediction model to be used in the j-th round of training is determined as the target prediction model.

18. The method according to claim 1, characterized in that The obtaining of the port operation parameters generated by each of the N sending link ports during the operation of the monitoring link group includes: Obtaining the flow rate parameter, packet loss rate parameter, delay parameter, queue length parameter and bandwidth utilization parameter generated by each of the N sending link ports in the monitoring link group during operation, wherein the flow rate parameter is used to indicate the rate at which the corresponding sending link port currently transmits flow data, the packet loss rate parameter is used to indicate the number of packet losses per unit time during the process of the corresponding sending link port currently transmitting flow data, the delay parameter is used to indicate the transmission delay of the corresponding sending link port currently transmitting flow data, the queue length parameter is used to indicate the length of the queue of the flow data to be currently transmitted by the corresponding sending link port, and the bandwidth utilization parameter is used to indicate the utilization of the bandwidth during the process of the corresponding sending link port currently transmitting flow data; The traffic rate parameter, the packet loss rate parameter, the delay parameter, the queue length parameter and the bandwidth utilization parameter are determined as the port operation parameters.

19. A data transmission control device, characterized in that: The data transmission device is deployed with N sending link ports, M receiving link ports, a monitoring link group and a processor, wherein the monitoring link group is used to control the corresponding receiving link port to switch to the closed state when the sending link port in the data transmission device is in the closed state, N is an integer greater than 1, M is an integer greater than or equal to 1, and the data transmission control device is applied to the processor, and the data transmission control device includes: A first acquisition module is used to acquire a port operation parameter generated by each of the N sending link ports during the operation of the monitoring link group, and obtain a port operation parameter set, wherein the port operation parameter is used to indicate the current operation status of the corresponding sending link port among the N sending link ports; A generating module, configured to generate a corresponding congestion parameter for each of the sending link ports in the monitoring link group according to the port operation parameter set, wherein the congestion parameter is used to indicate the congestion degree of the corresponding sending link port currently sending traffic data, and the congestion parameter is positively correlated with the congestion degree; A first allocation module is used to allocate a target routing parameter to each of the sending link ports in the monitoring link group according to the congestion parameter corresponding to each of the sending link ports in the monitoring link group, to obtain a target routing parameter set, when it is detected that there is a target sending link port in the monitoring link group whose current congestion parameter meets the target adjustment condition, wherein the target routing parameter is negatively correlated with the congestion parameter; A control module is used to control each of the sending link ports in the monitoring link group to send traffic data to the downstream device according to the corresponding target routing parameter in the target routing parameter set within a preset adjustment time, wherein the sending link port with a smaller target routing parameter will be assigned to send less traffic data to the downstream device.

20. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 18 are implemented.

21. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 18 when executed by a processor.

22. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 18 are implemented.