Congestion control method, electronic device, storage medium and program product

By acquiring and integrating switch status characteristics in the data center network, predicting the probability of explicit congestion notification marking and marking packets, the problem of switch egress port congestion in the data center network is solved, network performance and efficiency are improved, and computing resources are reduced. need.

CN118214718BActive Publication Date: 2024-08-30INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410635003.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-08-30
Estimated Expiration
2044-05-22

AI Technical Summary

Technical Problem

Existing technologies are difficult to effectively solve the network congestion problem on switch outgoing ports in data center networks, resulting in reduced packet transmission delays and throughput, and the DCQCN algorithm requires a lot of manpower and material resources.

Method used

By obtaining the status characteristics of the switch, integrating the status characteristics of other switches based on the graph message passing network, inputting the parameter prediction model to predict the probability of explicit congestion notification marking, and marking the data packets with explicit congestion notification based on the prediction results, using the branch prediction network Reduce the calculation amount of optimal parameters for ECN configuration.

Benefits of technology

It effectively reduces the calculation amount for determining the optimal parameters of ECN configuration, improves the efficiency and accuracy of congestion control, and reduces the investment of manpower and material resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118214718B
    Figure CN118214718B
Patent Text Reader

Abstract

The present disclosure relates to a congestion control method, electronic device, storage medium and program product, which relates to the field of communication technology and aims to improve the efficiency of congestion control. The method includes: obtaining the state characteristics of a switch in a data center network; inputting the state characteristics of the switch into a feature extraction module of a parameter prediction model to obtain a sharable feature; inputting the sharable feature into the multiple branch prediction networks respectively to obtain the target parameters predicted by each branch prediction network; determining the explicit congestion notification marking probability of the switch according to the multiple target parameters; and performing explicit congestion notification marking on the data packets in the congestion queue of the switch according to the explicit congestion notification marking probability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a congestion control method, electronic device, storage medium and program product. Background Art

[0002] In the digital and networked information age, data center networks carry a massive amount of data exchange and transmission tasks; with the increase in high-concurrency, low-latency services, the outbound ports of switches in data center networks are prone to network congestion, affecting network performance such as message transmission delay and throughput. The DCQCN (Data Center Quantized Congestion Notification) algorithm can solve the problem of network congestion, but the DCQCN algorithm requires a lot of manpower and material resources. Summary of the invention

[0003] In order to overcome the problems existing in the related art, the present disclosure provides a congestion control method, an electronic device, a storage medium and a program product. The technical solution of the present disclosure is as follows:

[0004] According to a first aspect of an embodiment of the present disclosure, a congestion control method is provided, including:

[0005] Acquire state characteristics of a switch in a data center network; wherein the state characteristics of the switch are integrated with state characteristics of other switches in the data center network based on a graph message passing network;

[0006] Inputting the state feature of the switch into the feature extraction module of the parameter prediction model to obtain a shareable feature; the shareable feature is a feature that has an impact on multiple target parameters; the parameter prediction model includes multiple branch prediction networks that predict different target parameters; the combination of the target parameters is the optimal parameter for the explicit congestion notification configuration;

[0007] Inputting the sharable features into the multiple branch prediction networks respectively to obtain target parameters predicted by each of the branch prediction networks;

[0008] Determining an explicit congestion notification marking probability of the switch according to a plurality of the target parameters;

[0009] According to the explicit congestion notification marking probability, explicit congestion notification marking is performed on the data packets in the congestion queue of the switch.

[0010] Optionally, determining the explicit congestion notification marking probability of the switch according to the plurality of target parameters includes:

[0011] Combining a plurality of the target parameters into optimal parameters for configuring the explicit congestion notification;

[0012] According to the optimal parameters of the explicit congestion notification configuration, an explicit congestion notification marking probability of the switch is determined.

[0013] Optionally, the parameter prediction model is obtained by training an initial parameter prediction model, wherein the initial parameter prediction model comprises: an initial feature extraction module and a plurality of initial branch prediction networks for predicting different target parameter samples; the training steps of the parameter prediction model at least comprise:

[0014] Acquire a state feature sample of a switch sample, wherein the state feature sample is fused with state feature samples of other switch samples based on a graph message passing network;

[0015] Inputting the state feature sample of the switch sample into the initial feature extraction module to obtain a shareable feature sample;

[0016] Based on the sharable feature samples, reinforcement learning is performed on each of the initial branch prediction networks to obtain a branch loss function of each of the initial branch prediction networks;

[0017] Determining a total loss function of the initial parameter prediction model according to a branch loss function of each of the initial branch prediction networks;

[0018] The initial parameter prediction model is trained according to the total loss function to obtain the trained parameter prediction model.

[0019] Optionally, the performing reinforcement learning on each of the initial branch prediction networks based on the sharable feature samples to obtain a branch loss function of each of the initial branch prediction networks includes:

[0020] For each of the initial branch prediction networks, the sharable feature sample is input into the initial branch prediction network to obtain a state value and a reward value corresponding to the switch sample; the state value and the reward value corresponding to the switch sample are: when the target parameter sample is a target value, the state value and the reward value of the target parameter sample, and the target value is the value of the target parameter sample predicted by the initial branch prediction network;

[0021] Obtaining a sharable feature sample of the switch sample at the next moment;

[0022] Inputting the shareable feature sample at the next moment into the initial branch prediction network to obtain the state value at the next moment corresponding to the switch sample;

[0023] The branch loss function of the initial branch prediction network is determined according to the state value and reward value corresponding to the switch sample and the state value at the next moment corresponding to the switch sample.

[0024] Optionally, determining the branch loss function of the initial branch prediction network according to the state value and reward value corresponding to the switch sample and the state value at the next moment corresponding to the switch sample includes:

[0025] The branch loss function of the initial branch prediction network is determined according to the following formula:

[0026] ;

[0027] in, A branch loss function characterizing the initial branch prediction network; Characterizes the mean square error, Characterize the state value corresponding to the switch sample, characterizes the reward value, is the discount factor, Characterizes the state value of the switch sample at the next moment.

[0028] Optionally, obtaining the state characteristics of a switch in the data center network includes:

[0029] Acquire initial state characteristics of each of the switches in the data center network;

[0030] Based on the graph message passing network, transmitting the initial state characteristics of each of the switches to the downstream switches of the switch;

[0031] Aggregating the state characteristics transmitted by the upstream switch of each of the switches to obtain the aggregated state characteristics of each of the switches;

[0032] According to the aggregated state characteristics of the switches, the initial state characteristics of the switches are updated to obtain the state characteristics of each of the switches.

[0033] Optionally, the transmitting the initial state characteristics of each of the switches to a downstream switch of the switch based on the graph message passing network includes:

[0034] Acquire a topological structure of the data center network; the nodes of the topological structure include servers and switches, and the topological structure also includes links between the nodes of the topological structure;

[0035] Generate graph data according to the topological structure of the data center network; the nodes of the graph data are the nodes of the topological structure, the edges of the graph data represent the links between the nodes of the topological structure, and the node features of the switch are the initial state features of the switch;

[0036] Based on the graph message passing network, the node characteristics of each switch in the graph data are transmitted to the downstream switch of the switch.

[0037] Optionally, the acquiring the initial state characteristics of each switch in the data center network includes:

[0038] Acquire status information collected by each switch in the data center network; the status information includes at least one or more of the following: a packet sending rate of a switch output port, a congestion queue length of the switch, and an explicit congestion notification marking rate of the switch;

[0039] Extracting features from the state information collected by each of the switches to obtain hidden features corresponding to each of the switches;

[0040] The hidden features corresponding to each of the switches are initialized to obtain the initial state features of each of the switches; the dimension of the initial state features is greater than the dimension of the hidden features.

[0041] Optionally, the state information collected by each of the switches includes state information at multiple moments, and the multiple moments include historical moments and current moments;

[0042] Initializing the hidden features corresponding to each of the switches to obtain the initial state features of each of the switches includes:

[0043] For each of the switches, the state information collected by the switch at the multiple moments is input into a long short-term memory network to obtain the initial state features of the switch corresponding to the current moment; the initial state features corresponding to the current moment include the state information at the historical moments.

[0044] Optionally, after the initial state characteristics of the switch are updated according to the aggregated state characteristics of the switch to obtain the state characteristics of each switch, the method further includes:

[0045] Determine the state characteristics of the switch as the initial state characteristics of the switch, and perform the steps of: transmitting the initial state characteristics of each switch to a downstream switch of the switch based on the graph message passing network;

[0046] When the number of updates of the initial state characteristics of the switch reaches a preset number, the transmission of the initial state characteristics is stopped, and the final state characteristics of the switch are obtained; wherein the preset number of times is determined according to the number of layers of the data center network.

[0047] Optionally, the transmitting the initial state characteristics of each of the switches to a downstream switch of the switch based on the graph message passing network includes:

[0048] The initial state characteristics are transferred according to the following formula:

[0049] ;

[0050] in, Characterize the effect of switch i on switch j, Characterize the message passing function, Characterize the initial state characteristics of switch i, Characterize the initial state characteristics of switch j.

[0051] Optionally, aggregating the state features transmitted by the upstream switch of each of the switches to obtain the aggregated state features of each of the switches includes:

[0052] The initial state features are aggregated according to the following formula:

[0053] ;

[0054] in, is the aggregation state feature, Characterize the effect of switch i on switch j, Characterize the effect of switch k on switch j, Characterizes aggregate functions.

[0055] Optionally, updating the initial state characteristics of the switches according to the aggregated state characteristics of the switches to obtain the state characteristics of each of the switches includes:

[0056] Update the initial state characteristics according to the following formula:

[0057] ;

[0058] in, is the state characteristic of the switch, is the update function, is the aggregation state feature, Characterize the initial state characteristics of switch j.

[0059] Optionally, the transmitting the initial state characteristics of each of the switches to a downstream switch of the switch includes:

[0060] The initial state characteristics of each of the switches are transmitted to the downstream switches of the switch through out-of-band communication.

[0061] Optionally, the acquiring the status information collected by each switch in the data center network includes:

[0062] Acquire status information of each switch in the data center network collected periodically at multiple times;

[0063] The state information at the multiple moments is saved.

[0064] Optionally, determining the explicit congestion notification marking probability of the switch according to the plurality of target parameters includes:

[0065] The explicit congestion notification marking probability of the switch is determined according to the following formula:

[0066] ;

[0067] in, is the explicit congestion notification marking probability of the switch, is the length of the congestion queue of the switch, is the maximum marking probability of explicit congestion notification, is the maximum threshold of explicit congestion notification, It is the minimum threshold of explicit congestion notification.

[0068] Optionally, performing explicit congestion notification marking on the data packets in the congestion queue of the switch according to the explicit congestion notification marking probability includes:

[0069] Obtaining the number of data packets in the congestion queue of the switch;

[0070] Determining the number of data packets to be marked according to the explicit congestion notification marking probability and the number of data packets in the congestion queue of the switch;

[0071] According to the number of the data packets to be marked, the data packets in the congestion queue of the switch are marked.

[0072] Optionally, after the explicit congestion notification marking is performed on the data packets in the congestion queue of the switch, the method further includes:

[0073] A congestion notification message is sent to a sending end server that sends a target data packet; the target data packet is a data packet marked with an explicit congestion notification, and the congestion notification message is used to notify the sending end server to reduce the speed.

[0074] According to a second aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the congestion control method described in the first aspect.

[0075] According to a third aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the congestion control method described in the first aspect are implemented.

[0076] According to a fourth aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the steps of the congestion control method described in the first aspect are implemented.

[0077] In the disclosed embodiment, the optimal parameters of ECN (Explicit Congestion Notification) configuration are divided into multiple target parameters, and a target parameter is predicted based on each branch prediction network. The combination of multiple target parameters is the optimal parameters of ECN configuration, which greatly reduces the amount of calculation for determining the optimal parameters of ECN configuration. When the optimal parameters of ECN configuration are composed of three target parameters and each target parameter has n possibilities, the related technology directly determines the amount of calculation for determining the optimal parameters of ECN configuration as n. 3 , the total amount of calculation for determining the three target parameters in the present disclosure is 3n. Therefore, the technical solution of the embodiment of the present disclosure greatly reduces the amount of calculation for determining the optimal parameters of the ECN configuration, thereby improving the efficiency of subsequent operations such as determining the ECN marking probability and performing congestion control. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the description of the embodiments of the present disclosure will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0079] Figure 1 is a topological diagram of a data center network in an embodiment of the present disclosure;

[0080] Figure 2 is a flowchart of the steps of a congestion control method in an embodiment of the present disclosure;

[0081] Figure 3 is a schematic diagram of a process for determining optimal parameters for configuring an explicit congestion notification in an embodiment of the present disclosure;

[0082] Figure 4 is a schematic diagram of using a long short-term memory network to perform feature initialization in an embodiment of the present disclosure;

[0083] Figure 5 is a detailed schematic diagram of feature initialization using a long short-term memory unit in an embodiment of the present disclosure;

[0084] Figure 6 is a schematic diagram of the process of model training in an embodiment of the present disclosure;

[0085] Figure 7 is a flow chart of a congestion control method in an embodiment of the present disclosure;

[0086] Figure 8 It is a schematic diagram of an electronic device shown in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0087] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0088] In the related technology, switches and terminals are regarded as nodes, and links in the data center network are links between nodes. The state information of switches is collected, and the features of multiple timestamps are integrated and spliced. The features are initialized by filling 0, and then the graph message passing network is used to realize the information transmission between switches and make corresponding state updates. Then, deep reinforcement learning is used to realize the dynamic update of the optimal parameters of explicit congestion notification configuration. The ECN parameter configuration performed by the deep reinforcement learning model is a three-dimensional vector space: ,in Characterize the optimal parameters of ECN configuration, is the maximum marking probability of ECN, is the maximum ECN threshold, is the minimum ECN threshold, when , and When there are n selection methods, the total number of preset selection methods for ECN parameter configuration is close to n. 3When the selection range is increased and the parameter granularity is refined, n will increase, and the total number of ECN parameter configuration types will also increase dramatically, seriously affecting the convergence performance of the deep reinforcement learning model. First, the required training data set is exponentially explosive, and the corresponding training time is also exponentially explosive; second, the deep reinforcement learning model is extremely difficult to converge, and even if it converges, it is difficult to converge to the global optimum; finally, the explosive growth of the output dimension will cause the complexity of the entire ECN intelligent configuration model to explode, making it difficult to achieve the purpose of real-time and flexible configuration of ECN parameters.

[0089] In order to solve the above technical problems, the embodiment of the present disclosure proposes a solution, which introduces a branch prediction network by means of ECN segmentation. Each branch prediction network only needs to select one method from n selection methods, so n 3 When n=10, the dimension of strategy selection can be reduced by 99% through the parallel operation of branch prediction network, which optimizes the convergence performance of deep reinforcement learning model and reduces the operation complexity of neural network, so that the intelligent ECN configuration model can flexibly update the ECN parameters in real time.

[0090] Figure 1 It is a topological structure diagram of the data center network in the embodiment of the present disclosure, in which the circle represents the server, and servers No. 0, 1, 2, and 3 are directly connected to leaf switch No. 8; servers No. 4, 5, 6, and 7 are directly connected to leaf switch No. 9; each leaf switch is connected to the upper spine switch by two links. The switch export link with switch No. 8 as the source address and server No. 0 as the terminal destination address is analyzed as an intelligent agent, and its upstream neighbors are composed of two links from switch No. 10 to switch No. 8 and two links from switch No. 11 to switch No. 8. Each switch can have a congestion queue, and the length of the congestion queue is determined by the number of data packets in the congestion queue. Each switch can perform congestion control on the data packets in its own congestion queue.

[0091] Figure 2 is a schematic diagram of the steps of a congestion control method shown in an embodiment of the present disclosure, such as Figure 2 As shown, it includes steps S11 to S15.

[0092] In step S11, the status characteristics of switches in the data center network are obtained.

[0093] The data center network includes switches and servers, and the simple interconnection between the switches and the servers can realize the unimpeded flow of information. The state characteristics of the switch are determined based on the state information collected by the switch, and the state information collected by the switch includes at least one or more of the following: the packet sending rate of the switch output port within a period of time, the congestion queue length of the switch at the current moment, and the explicit congestion notification marking rate of the switch. In the technical solution of the embodiment of the present disclosure, the state characteristics of each switch also integrate the state characteristics of other switches in the data center network based on the graph message passing network. The method of integrating the state characteristics of other switches will be described in detail later.

[0094] In step S12, the state features of the switch are input into a feature extraction module of a parameter prediction model to obtain shareable features.

[0095] In the embodiment of the present disclosure, the optimal parameters for configuring explicit congestion notification are divided into multiple target parameters, and the multiple target parameters include: ECN maximum marking probability , ECN maximum threshold and ECN minimum threshold For the sake of convenience, the optimal parameters of explicit congestion notification configuration are as follows: , and The combination of three target parameters is used as an example for explanation.

[0096] The parameter prediction model includes multiple branch prediction networks, each of which is used to predict a target parameter. The parameter prediction model also includes a feature extraction module shared by multiple branch prediction networks, and the feature extraction module is used to extract sharable features from the input of the parameter prediction model. The sharable features are features that have an impact on multiple target parameters. Conventional feature extraction is obtained by passing the input information through multiple fully connected layers. The sharable features extracted in the embodiment of the present disclosure are extracted from the hidden layer. It can be understood that the feature extraction module can also be independent of the parameter prediction model.

[0097] The training method of the parameter prediction model will be described in detail later. In one embodiment, the parameter prediction model is constructed based on the reinforcement model, and the sharable features can speed up the training speed and performance of the reinforcement learning model, improve the efficiency and accuracy of decision-making, and better generalize to new tasks and environments.

[0098] In step S13, the sharable features are respectively input into the multiple branch prediction networks to obtain target parameters predicted by each branch prediction network.

[0099] like Figure 3As shown, the sharable features are copied into three copies, and each sharable feature is input into a branch prediction network to obtain the target parameter predicted by the branch prediction network. Each branch prediction network includes a decision fully connected layer for selecting the target parameter, and the combination of the target parameters predicted by each branch prediction network configures the optimal parameters for explicit congestion notification.

[0100] In step S14, the explicit congestion notification marking probability of the switch is determined according to the plurality of target parameters.

[0101] After obtaining a plurality of target parameters, the plurality of target parameters are combined into the optimal parameters for configuring the explicit congestion notification; and the explicit congestion notification marking probability of the switch is determined according to the optimal parameters for configuring the explicit congestion notification.

[0102] The explicit congestion notification marking probability of a switch refers to the probability that a packet in the congestion queue of the switch will be marked with ECN. For example, if there are 10 packets in the congestion queue and the explicit congestion notification marking probability of the switch is 1 / 10, then one packet in the congestion queue will be marked with ECN.

[0103] Optionally, the explicit congestion notification marking probability of the switch may be determined according to the following formula:

[0104] ;

[0105] in, is the explicit congestion notification marking probability of the switch, is the length of the congestion queue of the switch, is the maximum marking probability of explicit congestion notification, is the maximum threshold of explicit congestion notification, It is the minimum threshold of explicit congestion notification.

[0106] The explicit congestion notification technology specifically relies on the explicit congestion notification threshold. The explicit congestion notification threshold includes the explicit congestion notification maximum threshold and the explicit congestion notification minimum threshold. The two threshold values ​​of the explicit congestion notification define the marking probability. When the congestion queue length of the switch is lower than the explicit congestion notification minimum threshold, no explicit congestion notification marking will be performed. When the congestion queue length of the switch is higher than the explicit congestion notification maximum threshold, all data packets transmitted from the queue will be marked with explicit congestion notification with the maximum marking probability. When the queue length is between the upper threshold and the lower threshold, the data packets will be marked with explicit congestion notification with a probability that increases linearly with the queue length.

[0107] In this way, the explicit congestion notification marking probability of the switch can be directly determined based on multiple target parameters, and the determination of multiple target parameters requires fewer computing resources. Compared with directly determining the optimal configuration parameters of the explicit congestion notification and then determining the explicit congestion notification marking probability of the switch based on the optimal configuration parameters of the explicit congestion notification, computing resources can be greatly saved.

[0108] In step S15, explicit congestion notification marking is performed on the data packets in the congestion queue of the switch according to the explicit congestion notification marking probability.

[0109] According to the explicit congestion notification marking probability, data packets in the congestion queue of the switch may be explicitly marked with congestion notifications, so that the ratio of data packets in the congestion queue of the switch that are explicitly marked with congestion notifications to the total number of data packets in the congestion queue is equal to the explicit congestion notification marking probability.

[0110] Optionally, the number of data packets in the congestion queue of the switch can be obtained; the number of data packets to be marked is determined according to the explicit congestion notification marking probability and the number of data packets in the congestion queue of the switch; and the data packets in the congestion queue of the switch are marked according to the number of data packets to be marked.

[0111] The number of packets in the congestion queue of the switch is equal to the length of the congestion queue of the switch. The product of the number of packets in the congestion queue of the switch and the actual probability of congestion notification marking is determined as the number of packets to be marked in the congestion queue. When the number is not an integer, it can be rounded up or down according to actual needs. After the number of packets to be marked is determined, the number of packets can be randomly selected from the congestion queue of the switch for marking; or the packets in the congestion queue of the switch can be simply arbitrated according to preset rules to select the packets that need to be ECN marked.

[0112] After explicitly marking the data packets in the congestion queue of the switch with congestion notifications, a congestion notification message can be sent to the sending server that sends the target data packet; the target data packet is a data packet marked with explicit congestion notifications, and the congestion notification message is used to notify the sending server to reduce the speed.

[0113] When the switch detects congestion, it will ECN mark the data packet. When the receiving end receives the data packet, it will check its ECN mark. If the receiving end receives a data packet with an ECN mark, it will send a CNP (Congestion Notification Packet) to the sending end to notify the sending end to control the flow rate. When the sending end receives the CNP, it will reduce the flow rate to achieve congestion control.

[0114] By adopting the technical solution of the embodiment of the present disclosure, the optimal parameters of the ECN configuration are divided into multiple target parameters, and a target parameter is predicted based on each branch prediction network. The combination of multiple target parameters is the optimal parameters of the ECN configuration, which greatly reduces the amount of calculation for determining the optimal parameters of the ECN configuration. When the optimal parameters of the ECN configuration are composed of three target parameters and each target parameter has n possibilities, the related technology directly determines the amount of calculation for the optimal parameters of the ECN configuration as n. 3 , the total amount of calculation for determining the three target parameters in the present disclosure is 3n. Therefore, the technical solution of the embodiment of the present disclosure greatly reduces the amount of calculation for determining the optimal parameters of the ECN configuration, thereby improving the efficiency of subsequent operations such as determining the ECN marking probability and performing congestion control.

[0115] The following introduces a method for obtaining the status characteristics of switches in a data center network. The method for obtaining the status characteristics of switches in a data center network may include: obtaining the initial status characteristics of each switch in the data center network; based on the graph message passing network, transmitting the initial status characteristics of each switch to the downstream switch of the switch; aggregating the initial status characteristics transmitted by the upstream switch to obtain the aggregated status characteristics of each switch; and updating the initial status characteristics of the switch according to the aggregated status characteristics of the switch to obtain the status characteristics of each switch.

[0116] The state characteristics of switches in a data center network are integrated with the state characteristics of other switches based on a graph message passing network. Since the graph message passing network processes graph data, graph data needs to be generated in order to transmit state characteristics based on the graph message passing network.

[0117] Optionally, the topological structure of the data center network can be obtained; the nodes of the topological structure include servers and switches, and the topological structure also includes links between the nodes of the topological structure; graph data is generated according to the topological structure of the data center network; the nodes of the graph data are the nodes of the topological structure, the edges of the graph data represent the links between the nodes of the topological structure, and the node characteristics of the switch are the initial state characteristics of the switch.

[0118] The switch can periodically collect state information, and the state information includes at least one or more of the following: the packet sending rate of the switch output port, the congestion queue length of the switch, and the explicit congestion notification marking rate of the switch. After each state information is collected, the state information and the timestamp of the collected state information are correspondingly saved.

[0119] The initial state feature of the switch is a feature obtained after feature extraction and feature initialization of the state information collected by the switch. Specifically, the state information collected by each switch in the data center network is obtained; feature extraction is performed on the state information collected by each switch to obtain the hidden features corresponding to each switch; feature initialization is performed on the hidden features corresponding to each switch to obtain the initial state feature of each switch; the dimension of the initial state feature is greater than the dimension of the hidden feature.

[0120] Because in the actual data center network, the connection between switches is relatively complex, not all switches that affect each other are directly connected. There may be switch 5 as the upstream neighbor of switch 3, which affects switch 1 through switch 3. Therefore, in the process of graph message transmission, it cannot be transmitted only once, and multiple rounds of iterations are required. This requires that the dimension of the state feature after the state information is updated must be consistent with the dimension of the state feature after feature aggregation. When the state information is updated in the last step, the input feature dimension is large, so if the dimension is not expanded, it is easy to lose useful information of the switch. In order to solve this problem, it is necessary to initialize the features in the state initialization link to achieve dimension expansion of the features.

[0121] Specifically, the hidden features of the state information collected by the switch can first be extracted through a convolutional neural network or a recurrent neural network, etc. Then, the hidden features are initialized so that the dimensions of the initial state features after feature initialization are expanded to meet subsequent requirements and avoid information loss.

[0122] Optionally, the hidden features may be initialized by padding them with 0. The method of initializing the features by padding with 0 is relatively simple, but it is easy to generate redundant data and does not take into account the order relationship between multiple timestamp information.

[0123] In the disclosed embodiment, a method for implementing feature initialization based on LSTM (Long Short-Term Memory) is also proposed. For each switch, the state information collected by the switch at multiple moments is input into the long short-term memory network to obtain the initial state feature corresponding to the switch at the current moment; the initial state feature corresponding to the current moment includes the state information at the historical moment.

[0124] The current moment refers to the moment corresponding to the explicit congestion notification marking probability that needs to be determined. The initial state characteristics corresponding to the current moment are determined based on the state information of multiple moments. The initial state characteristics corresponding to the current moment can be determined based on the state information of the current moment and a fixed number of historical moments before the current moment. The fixed number can be set according to actual needs. For the convenience of description in the disclosed embodiment, the current moment is determined to be t2, and the initial state characteristics corresponding to the current moment t2 are determined based on the state information of the last two moments t0, the state information of the last moment t1, and the state information of the current moment t2.

[0125] Figure 4 It is a schematic diagram of using a long short-term memory network for feature initialization. A long short-term memory network includes multiple long short-term memory units. Each long short-term memory unit determines the hidden state of the output at the corresponding moment based on the state information of the input at the corresponding moment. The input of the subsequent long short-term memory unit also includes the hidden state output by the previous long short-term memory unit. The hidden state output by the last long short-term memory unit is the initial state feature corresponding to the switch at the current moment.

[0126] Figure 5 This is a detailed schematic diagram of feature initialization using a long short-term memory unit. The figure shows a method for a long short-term memory unit to process the state information at time t1. The long short-term memory unit includes a forget gate, an input gate, and an output gate. The input of the forget gate includes the state information at time t1 and the hidden state at time t0, and the output is a value from 0 to 1. The value from 0 to 1 is the retention ratio from the hidden state at time t0 to the hidden state at time t1 determined by the activation function σ, which controls whether the information in the long short-term memory unit at the previous moment should be forgotten or retained. The input of the input gate includes the hidden state at time t0 and the state information at time t1, and the output is a value from 0 to 1. The value from 0 to 1 indicates the proportion of information to be updated. The input gate can determine which information will be added to the long short-term memory unit at the current moment. The input of the output gate is the state information at time t1 and the hidden state at time t0, as well as the state of the long short-term memory unit, and the output is a value from 0 to 1. The value from 0 to 1 indicates how the information in the long short-term memory unit should be output to the hidden state.

[0127] Long short-term memory networks can store and read historical information, which helps the network remember and use previous information. Therefore, the initial state characteristics of the switch output at the current moment contain useful information about the state information at multiple historical moments.

[0128] After the initial state characteristics of the switch are obtained, the initial state characteristics of each switch can be transmitted to the downstream switch of the switch based on the graph message passing network. The method of transmitting the initial state characteristics based on the graph message passing network can refer to the relevant technology.

[0129] Optionally, the initial state characteristics can be transferred according to the following formula:

[0130] ;

[0131] in, Characterizes the effect of switch i on switch j, that is, the state characteristics transmitted by switch i to switch j, Characterize the message passing function, Characterize the initial state characteristics of switch i, Characterize the initial state characteristics of switch j.

[0132] After passing the initial state features of each switch to the downstream switch, each switch can use the aggregation function to aggregate the initial state features received from the upstream switch with its own original initial state features. The initial state features are aggregated according to the following formula:

[0133] ;

[0134] in, is the aggregation state feature, Characterize the effect of switch i on switch j, Characterize the effect of switch k on switch j, Characterization aggregation function. This formula only shows the effect of switch i and switch k on switch j, but if a switch has multiple upstream switches, it will be affected by multiple switches, receive state features transmitted by multiple upstream switches, and aggregate the state features transmitted by multiple upstream switches.

[0135] After aggregating the state features transmitted by the upstream switches of each switch to obtain the aggregated state features, the aggregated state features can be used to update the state features of the switch itself. The initial state features can be updated according to the following formula:

[0136] ;

[0137] in, is the state characteristic of the switch, is the update function, is the aggregation state feature, Characterize the initial state characteristics of switch j.

[0138] One message passing may not be able to pass the state characteristics of each switch in the data center network to a certain switch. Therefore, in order to ensure that the state characteristics of the switch integrate the state characteristics of other switches in the data center network based on the graph message passing network, multiple message passing can be performed. On the basis of the above technical solution, after the initial state characteristics of the switch are updated according to the aggregated state characteristics of the switch to obtain the state characteristics of each switch, the state characteristics of the switch can also be determined as the initial state characteristics of the switch, and the steps are performed: based on the graph message passing network, the initial state characteristics of each switch are passed to the downstream switch of the switch, and the state characteristics transmitted by the upstream switch of each switch are aggregated to obtain the aggregated state characteristics of each switch; according to the aggregated state characteristics of the switch, the initial state characteristics of the switch are updated to obtain the state characteristics of each switch.

[0139] When the number of updates of the initial state characteristics of the switch reaches a preset number, the transmission of the initial state characteristics is stopped, and the final state characteristics of the switch are obtained; wherein the preset number is determined according to the number of layers of the data center network. In the case of a three-layer data center network, two updates can achieve the fusion of global state characteristics, so the preset number in this case can be two.

[0140] On the basis of the above technical solution, in order to quickly and effectively transmit the initial state characteristics of the switch to the adjacent downstream switch and avoid delay in state information transmission when blocking occurs, out-of-band communication can be used to transmit the initial state characteristics.

[0141] The following introduces the training steps of the parameter prediction model. Figure 6: This is a flow chart of model training in the embodiment of the present disclosure. A sample subset is selected from a large amount of training data for forward propagation. This process is the basis of model learning, which enables the model to gradually extract features from the data. These features are the key to the model's understanding and prediction of new data. Through forward propagation, the model calculates the shared features of all samples, laying the foundation for subsequent processing. The model replicates the calculated shared features to meet the needs of different numbers of samples in each batch. This step ensures that the model can maintain consistency when processing data from different batches, thereby improving the stability and efficiency of training. Subsequently, the model enters the loss calculation phase. The loss function is an important indicator for measuring the gap between the model's predicted results and the actual results. After obtaining the loss value, the model begins to perform gradient backpropagation. The gradient is the derivative of the loss value with respect to the model weight, which indicates how the weight should be adjusted to minimize the loss. Through the backpropagation algorithm, the model converts the loss value into a gradient and applies these gradients to the model's weights for updating. This process is the core of model optimization, which enables the model to gradually adjust its own parameters to adapt to the inherent laws and patterns of the data. Finally, the model will repeat the above process and continue to iterate until it reaches the predetermined number of learning times or meets the convergence condition. In each iteration, the model will adjust its weights according to the new data samples and loss values ​​to optimize its performance. As the number of iterations increases, the performance of the model will usually gradually improve until it reaches a relatively stable state.

[0142] Specifically, a state feature sample of a switch sample is obtained, and the state feature sample is integrated with state feature samples of other switch samples based on a graph message passing network; the state feature sample of the switch sample is input into an initial parameter prediction model to obtain a shareable feature sample; the initial parameter prediction model includes multiple initial branch prediction networks that predict different target parameter samples; based on the shareable feature sample, reinforcement learning is performed on each of the initial branch prediction networks to obtain a branch loss function of each of the initial branch prediction networks; based on the branch loss function of each of the initial branch prediction networks, a total loss function of the initial parameter prediction model is determined; based on the total loss function, the initial parameter prediction model is trained to obtain the trained parameter prediction model.

[0143] The method for obtaining the state feature samples of the switch samples can refer to the method for obtaining the state features of the switch in the previous text, which will not be repeated here; the method for inputting the state feature samples of the switch samples into the initial parameter prediction model to obtain the sharable feature samples can refer to the method for obtaining the sharable features in the previous text, which will not be repeated here. It can be understood that the initial parameter prediction model is a parameter prediction model to be trained, and the initial parameter prediction model also includes multiple initial branch prediction networks.

[0144] By inputting the shareable feature sample into the initial branch prediction network, the state value and reward value corresponding to the switch sample can be obtained; the state value and reward value corresponding to the switch sample are: when the target parameter sample is the target value, the state value and reward value of the target parameter sample, and the target value is the value of the target parameter sample predicted by the initial branch prediction network. The initial branch prediction network is equivalent to an action selection network including reinforcement learning. After the action selection network selects a target value of the target parameter sample, the state value and reward value corresponding to the target value can be calculated later.

[0145] The sharable feature sample of the switch sample at the next moment is obtained by inputting the state feature sample of the switch sample at the next moment into the initial parameter prediction model. According to the sharable feature sample of the switch sample at the next moment, the state value of the switch sample at the next moment can be obtained. According to the state value and reward value corresponding to the switch sample, and the state value of the switch sample at the next moment, the branch loss function of the initial branch prediction network can be determined.

[0146] After determining the branch loss function of each initial branch prediction network, the average value of multiple initial branch prediction networks can be determined as the total loss function of the initial parameter prediction model. The initial parameter prediction model is trained based on the total loss function of the initial parameter prediction model. When the initial parameter prediction model converges or reaches a preset number of training times, the training is stopped to obtain a trained parameter prediction model.

[0147] Optionally, the branch loss function of the initial branch prediction network may be determined according to the following formula:

[0148] ;

[0149] in, A branch loss function characterizing the initial branch prediction network; Characterizes the mean square error, Characterize the state value corresponding to the switch sample, characterizes the reward value, is the discount factor, Characterizes the state value of the switch sample at the next moment.

[0150] It is understandable that only one parameter for prediction is shown here. The calculation formula of the branch loss function of the initial branch prediction network is, Essentially a prediction parameter The branch loss function of the initial branch prediction network is, Essentially a prediction parameter The state value corresponding to the switch sample corresponding to the initial branch prediction network, Essentially a prediction parameter The state value of the switch sample corresponding to the initial branch prediction network at the next moment. The calculation formula of the branch loss function of other initial branch prediction networks is similar to the calculation formula of the branch loss function of the initial branch prediction network, as follows:

[0151] ;

[0152] in, Characterizing prediction parameters A branch loss function of the initial branch prediction network; Characterizing prediction parameters A branch loss function of the initial branch prediction network; Characterizes the mean square error, characterizes the reward value, is the discount factor; is the prediction parameter The state value corresponding to the switch sample corresponding to the initial branch prediction network, is the prediction parameter The state value of the next moment corresponding to the switch sample corresponding to the initial branch prediction network; is the prediction parameter The state value corresponding to the switch sample corresponding to the initial branch prediction network, is the prediction parameter The initial branch prediction network corresponds to the state value of the switch sample at the next moment.

[0153] Figure 7It is a flow chart of a congestion control method in an embodiment of the present disclosure. In step 1, the switch collects state information, including setting a fixed clock frequency for each port, and then regularly collecting the state information of each port according to this frequency, and saving the state information to ensure that the relevant information at the previous two moments can be obtained each time the state information is collected. In step 2, feature initialization is performed, and LSTM can be used for feature initialization. By setting the dimension of the output data of LSTM, the dimension expansion of the feature is realized. In step 3, the initialization feature is transmitted, and each switch port transmits its own initialization state feature to the downstream switch port. In order to quickly and effectively transmit the initialization state feature of the switch to the adjacent downstream port and avoid delay in state information transmission when blocking occurs, out-of-band communication can be used to transmit these features. In step 4, the received state features are aggregated. Since the congestion status of the switch port depends not only on its own state, but also on the state features of the upstream port, it is necessary to integrate this information. In step 5, the aggregated state feature is used to update the own state feature, and the state feature of the switch port is updated according to the state feature of the current switch port and the aggregated state feature obtained in the previous step. In step 6, iterate steps 3 to 5. The reason for iterating steps 3, 4, and 5 is that, taking a three-layer data center network as an example, the end-to-end hop count is 2-3 hops. Therefore, it can be assumed that after two iterations, the switch port can obtain the data traffic situation in the entire data center. In step 7, extract the shareable features, use the fully connected neural network to extract the shareable features, and extract the high-dimensional shareable features of the state features finally updated by the switch port through the fully connected neural network. In step 8, copy multiple copies of the shareable features, and the number of shareable features is determined according to the number of branch prediction networks. In step 9, the shareable features are input into the branch prediction networks respectively, and the shareable features copied in the above steps are input into the three trained branch prediction networks to make corresponding parameter decisions. In step 10, the target parameter combination is used to deploy the switch.

[0154] The technical solution of the disclosed embodiment provides a more complete switch intelligent ECN parameter configuration algorithm, which effectively processes information on time steps by introducing LSTM units, initializes hidden states by using the correlation between time series, and then extracts and replicates high-dimensional sharable features of the states through message passing and state updates based on a graph model. Then, three branch neural networks are used in parallel to select Pmax, Kmin and Kmax in the switch ECN configuration parameters, and finally the ECN parameters in the switch are reorganized and reconfigured.

[0155] It should be noted that, for the method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present disclosure are not limited by the order of the actions described, because according to the embodiments of the present disclosure, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present disclosure.

[0156] The embodiment of the present disclosure also provides a congestion control device, which includes an acquisition module, an input module, a feature input module, a determination module and a marking module.

[0157] An acquisition module, used to acquire the state characteristics of a switch in a data center network; wherein the state characteristics of the switch are integrated with the state characteristics of other switches in the data center network based on a graph message passing network;

[0158] An input module is used to input the state characteristics of the switch into a feature extraction module of a parameter prediction model to obtain a shareable feature; the shareable feature is a feature that has an impact on multiple target parameters; the parameter prediction model includes multiple branch prediction networks that predict different target parameters; the combination of the target parameters is an optimal parameter for configuring an explicit congestion notification;

[0159] A feature input module, used to input the sharable features into the multiple branch prediction networks respectively to obtain target parameters predicted by each of the branch prediction networks;

[0160] A determination module, configured to determine an explicit congestion notification marking probability of the switch according to a plurality of the target parameters;

[0161] The marking module is used to perform explicit congestion notification marking on the data packets in the congestion queue of the switch according to the explicit congestion notification marking probability.

[0162] Optionally, the determining module is specifically configured to execute:

[0163] Combining a plurality of the target parameters into optimal parameters for configuring the explicit congestion notification;

[0164] According to the optimal parameters of the explicit congestion notification configuration, an explicit congestion notification marking probability of the switch is determined.

[0165] Optionally, the parameter prediction model is obtained by training an initial parameter prediction model, wherein the initial parameter prediction model comprises: an initial feature extraction module and a plurality of initial branch prediction networks for predicting different target parameter samples; the training steps of the parameter prediction model at least comprise:

[0166] Acquire a state feature sample of a switch sample, wherein the state feature sample is fused with state feature samples of other switch samples based on a graph message passing network;

[0167] Inputting the state feature samples of the switch samples into the initial feature extraction module to obtain sharable feature samples; the initial parameter prediction model includes a plurality of initial branch prediction networks for predicting different target parameter samples;

[0168] Based on the sharable feature samples, reinforcement learning is performed on each of the initial branch prediction networks to obtain a branch loss function of each of the initial branch prediction networks;

[0169] Determining a total loss function of the initial parameter prediction model according to a branch loss function of each of the initial branch prediction networks;

[0170] The initial parameter prediction model is trained according to the total loss function to obtain the trained parameter prediction model.

[0171] Optionally, the performing reinforcement learning on each of the initial branch prediction networks based on the sharable feature samples to obtain a branch loss function of each of the initial branch prediction networks includes:

[0172] For each of the initial branch prediction networks, the sharable feature sample is input into the initial branch prediction network to obtain a state value and a reward value corresponding to the switch sample; the state value and the reward value corresponding to the switch sample are: when the target parameter sample is a target value, the state value and the reward value of the target parameter sample, and the target value is the value of the target parameter sample predicted by the initial branch prediction network;

[0173] Obtaining a sharable feature sample of the switch sample at the next moment;

[0174] Inputting the shareable feature sample at the next moment into the initial branch prediction network to obtain the state value at the next moment corresponding to the switch sample;

[0175] The branch loss function of the initial branch prediction network is determined according to the state value and reward value corresponding to the switch sample and the state value at the next moment corresponding to the switch sample.

[0176] Optionally, determining the branch loss function of the initial branch prediction network according to the state value and reward value corresponding to the switch sample and the state value at the next moment corresponding to the switch sample includes:

[0177] The branch loss function of the initial branch prediction network is determined according to the following formula:

[0178] ;

[0179] in, A branch loss function characterizing the initial branch prediction network; Characterizes the mean square error, Characterize the state value corresponding to the switch sample, characterizes the reward value, is the discount factor, Characterizes the state value of the switch sample at the next moment.

[0180] Optionally, the acquisition module is specifically used to execute:

[0181] Acquire initial state characteristics of each of the switches in the data center network;

[0182] Based on the graph message passing network, transmitting the initial state characteristics of each of the switches to the downstream switches of the switch;

[0183] Aggregating the state characteristics transmitted by the upstream switch of each of the switches to obtain the aggregated state characteristics of each of the switches;

[0184] According to the aggregated state characteristics of the switches, the initial state characteristics of the switches are updated to obtain the state characteristics of each of the switches.

[0185] Optionally, the transmitting the initial state characteristics of each of the switches to a downstream switch of the switch based on the graph message passing network includes:

[0186] Acquire a topological structure of the data center network; the nodes of the topological structure include servers and switches, and the topological structure also includes links between the nodes of the topological structure;

[0187] Generate graph data according to the topological structure of the data center network; the nodes of the graph data are the nodes of the topological structure, the edges of the graph data represent the links between the nodes of the topological structure, and the node features of the switch are the initial state features of the switch;

[0188] Based on the graph message passing network, the node characteristics of each switch in the graph data are transmitted to the downstream switch of the switch.

[0189] Optionally, the acquiring the initial state characteristics of each switch in the data center network includes:

[0190] Acquire status information collected by each switch in the data center network; the status information includes at least one or more of the following: a packet sending rate of a switch output port, a congestion queue length of the switch, and an explicit congestion notification marking rate of the switch;

[0191] Extracting features from the state information collected by each of the switches to obtain hidden features corresponding to each of the switches;

[0192] The hidden features corresponding to each of the switches are initialized to obtain the initial state features of each of the switches; the dimension of the initial state features is greater than the dimension of the hidden features.

[0193] Optionally, the state information collected by each of the switches includes state information at multiple moments, and the multiple moments include historical moments and current moments;

[0194] Initializing the hidden features corresponding to each of the switches to obtain the initial state features of each of the switches includes:

[0195] For each of the switches, the state information collected by the switch at the multiple moments is input into a long short-term memory network to obtain the initial state features of the switch corresponding to the current moment; the initial state features corresponding to the current moment include the state information at the historical moments.

[0196] Optionally, after the initial state characteristics of the switch are updated according to the aggregated state characteristics of the switch to obtain the state characteristics of each switch, the method further includes:

[0197] Determine the state characteristics of the switch as the initial state characteristics of the switch, and perform the steps of: transmitting the initial state characteristics of each switch to a downstream switch of the switch based on the graph message passing network;

[0198] When the number of updates of the initial state characteristics of the switch reaches a preset number, the transmission of the initial state characteristics is stopped, and the final state characteristics of the switch are obtained; wherein the preset number of times is determined according to the number of layers of the data center network.

[0199] Optionally, the transmitting the initial state characteristics of each of the switches to a downstream switch of the switch based on the graph message passing network includes:

[0200] The initial state characteristics are transferred according to the following formula:

[0201] ;

[0202] in, Characterize the effect of switch i on switch j, Characterize the message passing function, Characterize the initial state characteristics of switch i, Characterize the initial state characteristics of switch j.

[0203] Optionally, aggregating the state features transmitted by the upstream switch of each of the switches to obtain the aggregated state features of each of the switches includes:

[0204] The initial state features are aggregated according to the following formula:

[0205] ;

[0206] in, is the aggregation state feature, Characterize the effect of switch i on switch j, Characterize the effect of switch k on switch j, Characterizes aggregate functions.

[0207] Optionally, updating the initial state characteristics of the switches according to the aggregated state characteristics of the switches to obtain the state characteristics of each of the switches includes:

[0208] Update the initial state characteristics according to the following formula:

[0209] ;

[0210] in, is the state characteristic of the switch, is the update function, is the aggregation state feature, Characterize the initial state characteristics of switch j.

[0211] Optionally, the transmitting the initial state characteristics of each of the switches to a downstream switch of the switch includes:

[0212] The initial state characteristics of each of the switches are transmitted to the downstream switches of the switch through out-of-band communication.

[0213] Optionally, the acquiring the status information collected by each switch in the data center network includes:

[0214] Acquire status information of each switch in the data center network collected periodically at multiple times;

[0215] The state information at the multiple moments is saved.

[0216] Optionally, determining the explicit congestion notification marking probability of the switch according to the plurality of target parameters includes:

[0217] The explicit congestion notification marking probability of the switch is determined according to the following formula:

[0218] ;

[0219] in, is the explicit congestion notification marking probability of the switch, is the length of the congestion queue of the switch, is the maximum marking probability of explicit congestion notification, is the maximum threshold of explicit congestion notification, It is the minimum threshold of explicit congestion notification.

[0220] Optionally, the marking module is specifically used to execute:

[0221] Obtaining the number of data packets in the congestion queue of the switch;

[0222] Determining the number of data packets to be marked according to the explicit congestion notification marking probability and the number of data packets in the congestion queue of the switch;

[0223] According to the number of the data packets to be marked, the data packets in the congestion queue of the switch are marked.

[0224] Optionally, after the explicit congestion notification marking is performed on the data packets in the congestion queue of the switch, the method further includes:

[0225] The message sending module is used to send a congestion notification message to a sending end server that sends a target data packet; the target data packet is a data packet with an explicit congestion notification mark, and the congestion notification message is used to notify the sending end server to reduce the speed.

[0226] It should be noted that the device embodiment is similar to the method embodiment, so the description is relatively simple, and the relevant parts can be referred to the method embodiment.

[0227] The present disclosure also provides an electronic device, referring to Figure 8 , Figure 8 Schematic diagram of an electronic device shown in an embodiment of the present disclosure. Figure 8 As shown, the electronic device 100 includes: a memory 110 and a processor 120. The memory 110 and the processor 120 are connected via a bus communication. A computer program is stored in the memory 110. The computer program can be run on the processor 120 to implement the steps in the congestion control method disclosed in the embodiment of the present disclosure.

[0228] The embodiment of the present disclosure also provides a computer-readable storage medium. When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute the steps in the congestion control method disclosed in the embodiment of the present disclosure.

[0229] The embodiments of the present disclosure also provide a computer program product, including a computer program. When the computer program is executed by a processor of an electronic device, the computer program can execute the steps in the congestion control method disclosed in the embodiments of the present disclosure.

[0230] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0231] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, devices or computer program products. Therefore, the embodiments of the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0232] The embodiments of the present disclosure are described with reference to the flowcharts and / or block diagrams of the methods, apparatuses, electronic devices, and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0233] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0234] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0235] Although some embodiments of the present disclosure have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiment and all changes and modifications that fall within the scope of the present disclosure.

[0236] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0237] The congestion control method, electronic device, storage medium and program product provided by the present disclosure are introduced in detail above. The principles and implementation methods of the present disclosure are explained in this article using specific examples. The description of the above embodiments is only used to help understand the method of the present disclosure and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present disclosure, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present disclosure.

Claims

1. A congestion control method, characterized in that: include: Acquire state characteristics of a switch in a data center network; wherein the state characteristics of the switch are integrated with state characteristics of other switches in the data center network based on a graph message passing network; Inputting the state feature of the switch into the feature extraction module of the parameter prediction model to obtain a shareable feature; the shareable feature is a feature that has an impact on multiple target parameters; the parameter prediction model includes multiple branch prediction networks that predict different target parameters; the combination of the target parameters is the optimal parameter for the explicit congestion notification configuration; Inputting the sharable features into the multiple branch prediction networks respectively to obtain target parameters predicted by each of the branch prediction networks; Determining an explicit congestion notification marking probability of the switch according to a plurality of the target parameters; According to the explicit congestion notification marking probability, performing explicit congestion notification marking on the data packets in the congestion queue of the switch; The parameter prediction model is obtained by training an initial parameter prediction model, wherein the initial parameter prediction model includes: an initial feature extraction module and a plurality of initial branch prediction networks for predicting different target parameter samples; the training steps of the parameter prediction model include at least: Acquire a state feature sample of a switch sample, wherein the state feature sample is fused with state feature samples of other switch samples based on a graph message passing network; Inputting the state feature sample of the switch sample into the initial feature extraction module to obtain a shareable feature sample; Based on the sharable feature samples, reinforcement learning is performed on each of the initial branch prediction networks to obtain a branch loss function of each of the initial branch prediction networks; Determining a total loss function of the initial parameter prediction model according to a branch loss function of each of the initial branch prediction networks; The initial parameter prediction model is trained according to the total loss function to obtain the trained parameter prediction model.

2. The congestion control method according to claim 1, characterized in that: Determining the explicit congestion notification marking probability of the switch according to the plurality of target parameters includes: Combining a plurality of the target parameters into optimal parameters for configuring the explicit congestion notification; According to the optimal parameters of the explicit congestion notification configuration, an explicit congestion notification marking probability of the switch is determined.

3. The congestion control method according to claim 2, characterized in that: The step of performing reinforcement learning on each of the initial branch prediction networks based on the sharable feature samples to obtain a branch loss function of each of the initial branch prediction networks includes: For each of the initial branch prediction networks, the sharable feature sample is input into the initial branch prediction network to obtain a state value and a reward value corresponding to the switch sample; the state value and the reward value corresponding to the switch sample are: when the target parameter sample is a target value, the state value and the reward value of the target parameter sample, and the target value is the value of the target parameter sample predicted by the initial branch prediction network; Obtaining a sharable feature sample of the switch sample at the next moment; Inputting the shareable feature sample at the next moment into the initial branch prediction network to obtain the state value at the next moment corresponding to the switch sample; The branch loss function of the initial branch prediction network is determined according to the state value and reward value corresponding to the switch sample and the state value at the next moment corresponding to the switch sample.

4. The congestion control method according to claim 3, characterized in that: Determining the branch loss function of the initial branch prediction network according to the state value and reward value corresponding to the switch sample and the state value at the next moment corresponding to the switch sample includes: The branch loss function of the initial branch prediction network is determined according to the following formula: ; in, A branch loss function characterizing the initial branch prediction network; Characterizes the mean square error, Characterize the state value corresponding to the switch sample, characterizes the reward value, is the discount factor, Characterizes the state value of the switch sample at the next moment.

5. The congestion control method according to claim 1, characterized in that: The obtaining of the state characteristics of the switch in the data center network includes: Acquire initial state characteristics of each of the switches in the data center network; Based on the graph message passing network, transmitting the initial state characteristics of each of the switches to the downstream switches of the switch; Aggregating the state characteristics transmitted by the upstream switch of each of the switches to obtain the aggregated state characteristics of each of the switches; According to the aggregated state characteristics of the switches, the initial state characteristics of the switches are updated to obtain the state characteristics of each of the switches.

6. The congestion control method according to claim 5, characterized in that: The method of transmitting the initial state characteristics of each switch to a downstream switch of the switch based on the graph message passing network includes: Acquire a topological structure of the data center network; the nodes of the topological structure include servers and switches, and the topological structure also includes links between the nodes of the topological structure; Generate graph data according to the topological structure of the data center network; the nodes of the graph data are the nodes of the topological structure, the edges of the graph data represent the links between the nodes of the topological structure, and the node features of the switch are the initial state features of the switch; Based on the graph message passing network, the node characteristics of each switch in the graph data are transmitted to the downstream switch of the switch.

7. The congestion control method according to claim 5, characterized in that: The obtaining of the initial state characteristics of each switch in the data center network includes: Acquire status information collected by each switch in the data center network; the status information includes at least one or more of the following: a packet sending rate of a switch output port, a congestion queue length of the switch, and an explicit congestion notification marking rate of the switch; Extracting features from the state information collected by each of the switches to obtain hidden features corresponding to each of the switches; The hidden features corresponding to each of the switches are initialized to obtain the initial state features of each of the switches; the dimension of the initial state features is greater than the dimension of the hidden features.

8. The congestion control method according to claim 7, characterized in that: The state information collected by each of the switches includes state information at multiple times, and the multiple times include historical times and current times; Initializing the hidden features corresponding to each of the switches to obtain the initial state features of each of the switches includes: For each of the switches, the state information collected by the switch at the multiple moments is input into a long short-term memory network to obtain the initial state features of the switch corresponding to the current moment; the initial state features corresponding to the current moment include the state information at the historical moments.

9. The congestion control method according to claim 5, characterized in that: After the initial state characteristics of the switches are updated according to the aggregated state characteristics of the switches to obtain the state characteristics of each switch, the method further includes: Determine the state characteristics of the switch as the initial state characteristics of the switch, and perform the steps of: transmitting the initial state characteristics of each switch to a downstream switch of the switch based on the graph message passing network; When the number of updates of the initial state characteristics of the switch reaches a preset number, the transmission of the initial state characteristics is stopped, and the final state characteristics of the switch are obtained; wherein the preset number of times is determined according to the number of layers of the data center network.

10. The congestion control method according to claim 5, characterized in that: The method of transmitting the initial state characteristics of each switch to a downstream switch of the switch based on the graph message passing network includes: The initial state characteristics are transferred according to the following formula: ; in, Characterize the effect of switch i on switch j, Characterize the message passing function, Characterize the initial state characteristics of switch i, Characterize the initial state characteristics of switch j.

11. The congestion control method according to claim 5, characterized in that: The step of aggregating the state characteristics transmitted by the upstream switch of each switch to obtain the aggregated state characteristics of each switch includes: The initial state features are aggregated according to the following formula: ; in, is the aggregation state feature, Characterize the effect of switch i on switch j, Characterize the effect of switch k on switch j, Characterizes aggregate functions.

12. The congestion control method according to claim 5, characterized in that: The updating of the initial state characteristics of the switches according to the aggregated state characteristics of the switches to obtain the state characteristics of each of the switches includes: Update the initial state characteristics according to the following formula: ; in, is the state characteristic of the switch, is the update function, is the aggregation state feature, Characterize the initial state characteristics of switch j.

13. The congestion control method according to claim 5, characterized in that: The step of transmitting the initial state characteristics of each of the switches to the downstream switches of the switches includes: The initial state characteristics of each of the switches are transmitted to the downstream switches of the switch through out-of-band communication.

14. The congestion control method according to claim 7, characterized in that: The obtaining of status information collected by each switch in the data center network includes: Acquire status information of each switch in the data center network collected periodically at multiple times; The state information at the multiple moments is saved.

15. The congestion control method according to claim 1, characterized in that: Determining the explicit congestion notification marking probability of the switch according to the plurality of target parameters includes: The explicit congestion notification marking probability of the switch is determined according to the following formula: ; in, is the explicit congestion notification marking probability of the switch, is the length of the congestion queue of the switch, is the maximum marking probability of explicit congestion notification, is the maximum threshold of explicit congestion notification, It is the minimum threshold of explicit congestion notification.

16. The congestion control method according to claim 1, characterized in that: The step of performing explicit congestion notification marking on the data packets in the congestion queue of the switch according to the explicit congestion notification marking probability includes: Obtaining the number of data packets in the congestion queue of the switch; Determining the number of data packets to be marked according to the explicit congestion notification marking probability and the number of data packets in the congestion queue of the switch; According to the number of the data packets to be marked, the data packets in the congestion queue of the switch are marked.

17. The congestion control method according to any one of claims 1 to 16, characterized in that: After the data packets in the congestion queue of the switch are explicitly marked with congestion notification, the method further includes: A congestion notification message is sent to a sending end server that sends a target data packet; the target data packet is a data packet marked with an explicit congestion notification, and the congestion notification message is used to notify the sending end server to reduce the speed.

18. An electronic device, characterized in that: include: A memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the congestion control method according to any one of claims 1 to 17.

19. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the congestion control method according to any one of claims 1 to 17 are implemented.

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 congestion control method according to any one of claims 1 to 17 are implemented.

Citation Information

Patent Citations

  • Method for processing network congestion, method for updating model and related device

    CN112511448A

  • Network parameter configuration method and device, computer equipment and storage medium

    CN112532409A