Data center network congestion control algorithm performance evaluation method and device
By establishing mathematical models of servers and switches in the data center network, simulating traffic and congestion conditions, and calculating the confidence interval of the congestion control algorithm, the problem of low accuracy in the evaluation of data center network congestion control algorithms in the existing technology is solved, and the evaluation is improved. accuracy and credibility.
Patent Information
- Application Number
- CN202410374174.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-29
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-03-29
AI Technical Summary
In the existing technology, the virtual network built using a network simulation simulator has low accuracy in performance evaluation of the data center network congestion control algorithm, the variance of the experimental results is large, and the conclusions are unreliable.
Establish a mathematical model of servers and switches in the data center network, simulate traffic sending and receiving, and adjust the traffic sending rate and discard data packets when congestion occurs. Calculate the confidence interval of the performance evaluation results of the network congestion control algorithm through simulation to improve the evaluation accuracy.
By establishing mathematical models and simulation calculations, the confidence interval of the performance evaluation results of the network congestion control algorithm is determined, which significantly improves the accuracy of the evaluation and reduces the uncertainty of the experimental results.
Smart Images

Figure CN118041798B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of algorithm evaluation, and in particular to a method and device for evaluating the performance of a data center network congestion control algorithm. Background Art
[0002] Data center networks carry a large amount of traffic generated by applications and services, such as search traffic, machine learning traffic, storage service traffic, etc. When too much traffic is injected into the network, network congestion occurs. Since severe network congestion can greatly affect the communication performance of applications, researchers have proposed a large number of congestion control algorithms to alleviate network congestion when data center networks carry too much network traffic.
[0003] In related technologies, a network simulation simulator is used to build a virtual network, and different types of traffic are sent and received in the virtual network to evaluate the proposed congestion control algorithm. The advantages and disadvantages of each algorithm are mainly determined from indicators such as flow completion time, throughput, and queue length. However, this method lacks theoretical support, the variance of the experimental results is large, and the experimental conclusions are unreliable. Summary of the invention
[0004] The present invention provides a data center network congestion control algorithm performance evaluation method, device, electronic device, storage medium and program product to solve the problem of low accuracy in performance evaluation of congestion control algorithms using virtual networks built with network simulation simulators in related technologies.
[0005] The first aspect of the present invention provides a method for evaluating the performance of a data center network congestion control algorithm, comprising the following steps: establishing a first mathematical model of a server in a data center network, wherein the first mathematical model is used to simulate traffic sending and receiving, and adjust the traffic sending rate according to a received congestion signal; establishing a second mathematical model of a switch in a data center network, wherein the second mathematical model is used to simulate traffic forwarding, and discard one or more data packets and send a congestion signal when congestion occurs; simulating the network congestion control algorithm of the data center network according to the first mathematical model and the second mathematical model, and calculating the confidence interval of the simulator simulation experiment results; determining the performance evaluation result of the network congestion control algorithm according to the confidence interval of the simulator simulation experiment results.
[0006] Optionally, the first mathematical model of the server in the data center network is established by: modeling the interval time of traffic arrival as a continuous random variable distribution; modeling the amount of data contained in a single traffic as a discrete random variable distribution; modeling the size of the last data packet in a single traffic as a bounded continuous random variable distribution; and generating the first mathematical model based on the continuous random variable distribution, the discrete random variable distribution and the bounded continuous random variable distribution.
[0007] Optionally, the first mathematical model also includes: a time congestion control window and a slow start threshold, a size of a data packet sent by the storage server, a sending time, and a status of whether the data packet is notified of receipt.
[0008] Optionally, establishing a second mathematical model of the switch in the data center network includes: modeling the randomness of the switch to obtain a randomness modeling result, wherein the randomness modeling result includes discarding a just received data packet with a preset probability when congestion occurs; modeling the state contained in the switch to obtain a state modeling result, wherein the state modeling result includes: the number of data packets received by the switch within a time, the queue length of the current switch, the data packets received by each switch, the saved arrival time and whether the received status is informed; generating the second mathematical model according to the randomness modeling result and the state modeling result of the switch.
[0009] Optionally, calculating the confidence interval of the simulator simulation experiment results includes: obtaining the continuous random variable distribution of the interval time of traffic arrival and the discrete random variable distribution of the amount of data contained in a single traffic; calculating the similarity ratio based on the continuous random variable distribution and the discrete random variable distribution, obtaining a new random variable distribution based on importance sampling based on the similarity ratio, and calculating the confidence interval of the simulation experiment results based on the new random variable distribution based on importance sampling.
[0010] Optionally, the calculation formula of the similarity ratio is:
[0011]
[0012] Among them, U n It is expressed as the interval time when the nth data packet flow arrives. represents the inter-arrival time of the flow used in the experiment, f u It is represented as the continuous random variable distribution function formed by modeling the interval between traffic arrivals, Expressed as using the cross entropy algorithm to solve f u New random variable distribution function under importance sampling, V n Expressed as the amount of data contained in the nth stream, It is expressed as the amount of data contained in the flow used in the experiment, f v represents the distribution function of a discrete random variable that models the amount of data contained in a single flow, Expressed as using the cross entropy algorithm to solve f v New random variable distribution functions under importance sampling, G and Yes u and The complementary cumulative distribution function is It is expressed as the age of arrival, where t represents time and A(t) represents the number of all arrival events up to time t.
[0013] The second aspect of the present invention provides a data center network congestion control algorithm performance evaluation device, including: a first establishment module, used to establish a first mathematical model of a server in a data center network, wherein the first mathematical model is used to simulate traffic sending and receiving, and adjust the traffic sending rate according to a received congestion signal; a second establishment module, used to establish a second mathematical model of a switch in the data center network, wherein the second mathematical model is used to simulate traffic forwarding, and discard one or more data packets and send a congestion signal when congestion occurs; a simulation calculation module, used to simulate the network congestion control algorithm of the data center network according to the first mathematical model and the second mathematical model, and calculate the confidence interval of the simulator experiment results; a determination module, used to determine the performance evaluation result of the network congestion control algorithm according to the confidence interval of the simulator simulation experiment results.
[0014] Optionally, the first establishment module is further used to: model the interval time of traffic arrival as a continuous random variable distribution; model the amount of data contained in a single traffic as a discrete random variable distribution; model the size of the last data packet in a single traffic as a bounded continuous random variable distribution; and generate the first mathematical model based on the continuous random variable distribution, the discrete random variable distribution and the bounded continuous random variable distribution.
[0015] Optionally, the first mathematical model also includes: a time congestion control window and a slow start threshold, a size of a data packet sent by the storage server, a sending time, and a status of whether the data packet is notified of receipt.
[0016] Optionally, the second establishing module is further used to: model the randomness of the switch to obtain a randomness modeling result, wherein the randomness modeling result includes discarding a just received data packet with a preset probability when congestion occurs; model the state contained in the switch to obtain a state modeling result, wherein the state modeling result includes: the number of data packets received by the switch within a time, the queue length of the current switch, the data packets received by each switch, the saved arrival time and whether the received status is informed; generate the second mathematical model according to the randomness modeling result and the state modeling result of the switch.
[0017] Optionally, the setting module is further used to: obtain the continuous random variable distribution of the interval time of traffic arrival and the discrete random variable distribution of the amount of data contained in a single traffic; calculate the similarity ratio based on the continuous random variable distribution and the discrete random variable distribution, obtain a new random variable distribution based on importance sampling based on the similarity ratio, and calculate the confidence interval of the simulation experiment results based on the new random variable distribution based on importance sampling.
[0018] Optionally, the calculation formula of the similarity ratio is:
[0019]
[0020] Among them, U n It is expressed as the interval time when the nth data packet flow arrives. represents the inter-arrival time of the flow used in the experiment, f u It is represented as the continuous random variable distribution function formed by modeling the interval between traffic arrivals, Expressed as using the cross entropy algorithm to solve f u New random variable distribution function under importance sampling, V n Expressed as the amount of data contained in the nth stream, It is expressed as the amount of data contained in the flow used in the experiment, f v represents the distribution function of a discrete random variable that models the amount of data contained in a single flow, Expressed as using the cross entropy algorithm to solve f v New random variable distribution functions under importance sampling, G and Yes u and The complementary cumulative distribution function is It is represented as the age of arrival, where t represents time and A(t) represents the number of all arrival events up to time t.
[0021] A third aspect of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the data center network congestion control algorithm performance evaluation method as described in the above embodiment.
[0022] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, the program being executed by a processor to implement the data center network congestion control algorithm performance evaluation method as described in the above embodiment.
[0023] A fifth aspect of the present invention provides a computer program product, which, when executed, is used to implement the data center network congestion control algorithm performance evaluation method as described in the above embodiment.
[0024] Therefore, the present invention has at least the following beneficial effects:
[0025] An embodiment of the present invention establishes a first mathematical model of a server in a data center network and a second data model of a switch in the data center network, and sets a confidence interval for sampling network congestion events. The network congestion control algorithm of the data center network is simulated using the first mathematical model and the second mathematical model, and the confidence interval of the simulation result is calculated. The performance evaluation result of the network congestion control algorithm is determined based on the confidence interval, thereby improving the accuracy of the evaluation.
[0026] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0028] Figure 1 A flowchart of a data center network congestion control algorithm performance evaluation method provided according to an embodiment of the present invention;
[0029] Figure 2 A schematic diagram of an experimental result confidence interval estimation algorithm provided according to an embodiment of the present invention;
[0030] Figure 3 A block diagram of a data center network congestion control algorithm performance evaluation device according to an embodiment of the present invention;
[0031] Figure 4 FIG. 4 is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0032] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0033] The following describes the data center network congestion control algorithm performance evaluation method, device, electronic device, storage medium and program product of the embodiment of the present invention with reference to the accompanying drawings. In view of the problem of low accuracy in the performance evaluation of the congestion control algorithm using a virtual network built by a network simulation simulator in the related art mentioned in the above background technology, the present invention provides a data center network congestion control algorithm performance evaluation method, in which a first mathematical model of the server in the data center network and a second data model of the switch in the data center network are established, and the network congestion control algorithm of the data center network is simulated using the first mathematical model and the second mathematical model, and the confidence interval of the simulation result is calculated, and the performance evaluation result of the network congestion control algorithm is determined based on the confidence interval, thereby improving the accuracy of the evaluation. As a result, the problem of low accuracy in the performance evaluation of the congestion control algorithm using a virtual network built by a network simulation simulator in the related art is solved.
[0034] Specifically, Figure 1 A schematic diagram of a flow chart of a data center network congestion control algorithm performance evaluation method provided by an embodiment of the present invention.
[0035] like Figure 1 As shown, the data center network congestion control algorithm performance evaluation method includes the following steps:
[0036] In step S101, a first mathematical model of a server in a data center network is established, wherein the first mathematical model is used to simulate traffic sending and receiving, and to adjust the traffic sending rate according to a received congestion signal.
[0037] It can be understood that an embodiment of the present invention can establish a first mathematical model of a server in a data center network to simulate traffic sending and receiving, and adjust the traffic sending rate according to the received congestion signal, so as to facilitate the subsequent use of the first mathematical model to simulate the network congestion control algorithm of the data center network.
[0038] In an embodiment of the present invention, a first mathematical model of a server in a data center network is established: the interval time of traffic arrival is modeled as a continuous random variable distribution; the amount of data contained in a single traffic is modeled as a discrete random variable distribution; the size of the last data packet in a single traffic is modeled as a bounded continuous random variable distribution; and the first mathematical model is generated based on the continuous random variable distribution, the discrete random variable distribution and the bounded continuous random variable distribution.
[0039] It can be understood that the embodiments of the present invention can use the interval time of traffic arrival to model as a continuous random variable distribution, the amount of data contained in a single traffic flow to model as a discrete random variable distribution, and the size of the last data packet in a single traffic flow to model as a bounded continuous random variable distribution to generate a first mathematical model with steady-state characteristics, so as to facilitate the subsequent simulation of the network congestion control algorithm of the data center network using the first mathematical model.
[0040] It should be noted that the interval between traffic arrivals is a set of continuous random variables U1, U2, ... U n , fit these random variables and get the probability density function f u ; The amount of data contained in a single flow is a set of discrete random variables V1, V2, … V n , fit these random variables and get the probability density function f v ; The size of the last packet in a single flow is a set of bounded continuous random variables V1′, V2′, … V n ′, fit these random variables and get the probability density function f v′ .
[0041] In the embodiment of the present invention, the first mathematical model also includes: a time congestion control window and a slow start threshold, a size of a data packet sent by the storage server, a sending time, and a status of whether the data packet is notified of receipt.
[0042] It should be noted that the state of whether a data packet is notified of receipt includes three sub-states: nr indicates that the data packet has no ACK and has not been returned, ib indicates that the data packet is blocked and discarded, and it indicates that the data packet ACK has been returned; the congestion control window and slow start threshold at time t are two states that need to maintain the congestion control algorithm.
[0043] Specifically, the congestion control window is a mechanism that combines the "congestion avoidance" algorithm and the "slow start" algorithm at the sending end. The "congestion window" is the "congestion avoidance" window. It is a sliding window installed at the sending end, and the size of the window is not larger than the window of the confirmation notification at the receiving end. "Slow start" is to control the window to increase by one segment value every time a confirmation is received from the receiving end after the connection is established. When the window value reaches the limit of "slow start", slow start stops working to avoid network congestion.
[0044] In step S102, a second mathematical model of a switch in a data center network is established, wherein the second mathematical model is used to simulate traffic forwarding, and to discard one or more data packets and send a congestion signal when congestion occurs.
[0045] It can be understood that the embodiment of the present invention can establish a second mathematical model of the switch in the data center network, simulate traffic forwarding, and discard one or more data packets and send a congestion signal when congestion occurs, so as to facilitate the subsequent simulation of the network congestion control algorithm of the data center network.
[0046] In an embodiment of the present invention, a second mathematical model of a switch in a data center network is established, including: modeling the randomness of the switch to obtain a randomness modeling result, wherein the randomness modeling result includes discarding a just received data packet with a preset probability when congestion occurs; modeling the state contained in the switch to obtain a state modeling result, wherein the state modeling result includes: the number of data packets received by the switch within a time, the queue length of the current switch, the data packets received by each switch, the saved arrival time and whether the received state is informed; and generating a second mathematical model based on the randomness modeling result and the state modeling result of the switch.
[0047] Among them, the preset probability can be set according to actual conditions without specific limitation.
[0048] It is understandable that the embodiment of the present invention can generate a second mathematical model with steady-state characteristics based on the randomness modeling results and state modeling results of the switch to facilitate subsequent simulation of the network congestion control algorithm of the data center network.
[0049] It should be noted that the newly received data packet is discarded or marked with a probability of B(t). When the queue length Q(t) is less than a given threshold K, B(t)=0; when the queue length is greater than or equal to the given threshold K, B(t)=(Q(t)-K) / (LK), where Q(t) is the queue length at time t, and L is the maximum length of the queue; both the first mathematical model and the second mathematical model are mathematical modeling based on the Markov model.
[0050] Specifically, the number of packets received by the switch at time t is A q (t), the queue length of the current switch Among them, A q (t) is the number of packets received by the switch at time t, M a,n Is the status of whether to be informed of the receipt, where M a,n It contains three sub-states: nr means that the data packet has no ACK and has not been returned, ib means that the data packet is blocked and discarded, and it means that the data packet ACK has been returned.
[0051] In step S103, the network congestion control algorithm of the data center network is simulated according to the first mathematical model and the second mathematical model, and the confidence interval of the simulator simulation experiment result is calculated.
[0052] It can be understood that the embodiment of the present invention can generate a confidence interval of the flow completion time, simulate the network congestion control algorithm of the data center network according to the first mathematical model and the second mathematical model, and after the simulation process is completed, collect the simulation results, and determine the performance evaluation results of the network congestion control algorithm according to the batch method and the central limit theorem and the mathematical model established above.
[0053] It should be noted that the network congestion control algorithm may include TCP Taheo, TCP Reno, DCTCP, DCQCN and other algorithms, without specific limitation.
[0054] In an embodiment of the present invention, the confidence interval of the simulation experiment results of the simulator is calculated, including: obtaining the continuous random variable distribution of the interval time of the traffic arrival and the discrete random variable distribution of the amount of data contained in a single traffic; calculating the similarity ratio according to the continuous random variable distribution and the discrete random variable distribution, obtaining a new random variable distribution based on importance sampling according to the similarity ratio, and calculating the confidence interval of the simulation experiment results according to the new random variable distribution based on importance sampling.
[0055] The calculation formula of similarity ratio is:
[0056]
[0057] Among them, U n It is expressed as the interval time when the nth data packet flow arrives. represents the inter-arrival time of the flow used in the experiment, f u It is represented as the continuous random variable distribution function formed by modeling the interval between traffic arrivals, Expressed as using the cross entropy algorithm to solve f u New random variable distribution function under importance sampling, V n Expressed as the amount of data contained in the nth stream, It is expressed as the amount of data contained in the flow used in the experiment, f v represents the distribution function of a discrete random variable that models the amount of data contained in a single flow, Expressed as using the cross entropy algorithm to solve f v New random variable distribution functions under importance sampling, G and Yes u and The complementary cumulative distribution function is It is represented as the age of arrival, where t represents time and A(t) represents the number of all arrival events up to time t.
[0058] It can be understood that the embodiments of the present invention can use the calculated similarity ratio to obtain a new random variable distribution based on importance sampling, and calculate the confidence interval of the simulation experiment results based on the new random variable distribution based on importance sampling, so as to facilitate the subsequent determination of the performance evaluation results of the network congestion control algorithm based on the confidence interval of the simulator simulation experiment results.
[0059] In step S104, the performance evaluation result of the network congestion control algorithm is determined according to the confidence interval of the simulator simulation experiment result.
[0060] It is understandable that the embodiment of the present invention can determine the performance evaluation result of the network congestion control algorithm according to the confidence interval of the simulator simulation experiment result, thereby improving the accuracy of the evaluation result.
[0061] According to the data center network congestion control algorithm performance evaluation method proposed in an embodiment of the present invention, a first mathematical model of servers in the data center network and a second data model of switches in the data center network are established, and a confidence interval for sampling network congestion events is set. The network congestion control algorithm of the data center network is simulated using the first mathematical model and the second mathematical model, and the confidence interval of the simulation result is calculated. The performance evaluation result of the network congestion control algorithm is determined based on the confidence interval, thereby improving the accuracy of the evaluation.
[0062] The following will be combined Figure 2 The data center network congestion control algorithm performance evaluation method of the present invention is described in detail as follows:
[0063] 1. Model the server
[0064] The server is responsible for sending and receiving traffic, and adjusts the traffic sending rate according to the received congestion signal. The following probability density function is constructed to model the randomness of the server:
[0065] (1) The interval between traffic arrivals is a set of continuous random variables U1, U2, …U n . Fitting these random variables, we get the probability density function f u .
[0066] (2) The amount of data contained in a single flow is a set of discrete random variables V1, V2, … V n . Fitting these random variables, we get the probability density function f v .
[0067] (3) The size of the last packet in a single flow is a set of bounded continuous random variables V1′, V2′, … V n ′. According to the existing historical statistical data, these random variables are fitted to obtain the probability density function f v′ .
[0068] To model network congestion, using the queuing theory model, the server contains the following states:
[0069] (1) The remaining arrival time at time slot t is R(t);
[0070] (2) The number of all arrival events up to time t: A(t) = inf{n:U_1+U_2+…+U_n≥t};
[0071] Where n is the number of the arriving flow, and U_n is the interval time between the nth flow and the previous flow.
[0072] (3) The amount of data that has arrived until time t:
[0073] Among them, MSS represents the upper limit of the data volume of a single data packet, V n ' represents the data size of the last data packet of the flow.
[0074] (4) The number of all packets arriving until time t:
[0075] The server maintains the following information for each data packet:
[0076] (1) The subscript n of each data packet
[0077] (2) Packet size: PS
[0078] (3) Data packet sending time: T s,n
[0079] (4) Data packet status: M s,n ,This state contains three sub-states: nr means that the data packet has no ACK and has not been returned, ib means that the data packet is blocked and discarded, and it means that the data packet ACK has been returned.
[0080] Since the server also runs the congestion control algorithm, the server also needs to maintain two states of the congestion control algorithm. The existing widely used congestion control algorithms (such as DCTCP, DCQCN, HPCC, etc.) all control the sending rate of the sender through these two states, which are universal:
[0081] (1) Congestion control window Cwnd(t) at time t
[0082] (2) Slow start threshold Ssthresh(t) at time t
[0083] 2. Modeling of switches
[0084] The switch is responsible for traffic forwarding and, when congestion occurs, discards or marks the just-received data packet with a probability of B(t). When the queue length Q(t) is less than a given threshold K, B(t) = 0; when the queue length is greater than or equal to the given threshold K, B(t) = (Q(t)-K) / (LK), where Q(t) is the queue length at time t and L is the maximum length of the queue.
[0085] According to the queuing theory model, the switch contains the following states:
[0086] 1) The number of packets received by the switch at time t A q (t),
[0087] 2) And the queue length of the current switch
[0088] Each switch receives a data packet and saves the following status:
[0089] 1) The subscript n of each data packet
[0090] 2) Arrival time T a,n
[0091] 3) Whether to be informed of the received status M a,n This state contains three sub-states: nr means that the data packet has no ACK and has not been returned, ib means that the data packet is blocked and discarded, and it means that the data packet ACK has been returned.
[0092] The above states are transferred according to the congestion control algorithm on the switch side.
[0093] 3. Confidence interval estimation algorithm for experimental results
[0094] The present invention designs a confidence interval estimation algorithm based on the above mathematical model, and the algorithm is used to estimate the confidence interval of the p percentile experimental results, wherein p is approximately equal to 100 and can be set without specific limitation.
[0095] The main idea of this algorithm is to convert the confidence interval of the p percentile experimental results into an estimate of the probability distribution of the experimental results (i.e., the response time in the mathematical model of queuing theory).
[0096] Since the simulation structure of the mathematical model established above has the characteristics of steady state, the present invention first uses the regeneration simulation method to estimate the probability distribution of the experimental results. According to the update reward theorem, the probability of response time γ>0 can be obtained as:
[0097]
[0098] Among them, α is the number of events completed in one regeneration cycle, γ is the value of the specific response time, and R∞ It is the response time in the infinite case, and E[] is the response time for {R n >γ} is the expected probability of the event.
[0099] When α is large, The term contains the calculation of an event with extremely low probability. In order to improve the estimation of extremely low probability events, a new importance distribution is designed to improve the event {R n >γ} occurs.
[0100] In importance adoption, the cross entropy algorithm is used to search for new random variables and probability distribution Then introduce the following similarity ratio formula:
[0101]
[0102] Among them, U n It is expressed as the interval time when the nth data packet flow arrives. represents the inter-arrival time of the flow used in the experiment, f u It is represented as the continuous random variable distribution function formed by modeling the interval between traffic arrivals, Expressed as using the cross entropy algorithm to solve f u New random variable distribution function under importance sampling, V n Expressed as the amount of data contained in the nth stream, It is expressed as the amount of data contained in the flow used in the experiment, f v represents the distribution function of a discrete random variable that models the amount of data contained in a single flow, Expressed as using the cross entropy algorithm to solve f v New random variable distribution functions under importance sampling, G and Yes u and The complementary cumulative distribution function is It is represented as the age of arrival, where t represents time and A(t) represents the number of all arrival events up to time t.
[0103] Finally, the range of experimental results within 95% confidence interval was obtained based on batch method and central limit theorem.
[0104] In summary, the embodiment of the present invention establishes a mathematical model based on the Markov model for the two main parts of traffic transmission (server and switch). The mathematical model of the server includes states such as the remaining arrival time, the number of all arrival events, the amount of all arrival data, and the number of all arrival data packets, and fits the probability distribution of the traffic arrival interval and the traffic data volume distribution. The mathematical model of the switch includes states such as the number of received data packets and the current queue length, and determines the probability distribution of the random packet loss process of the switch. Then, based on the above mathematical model, the present invention proposes an estimation algorithm for the confidence interval of the experimental results, which further improves the operating efficiency of the estimation algorithm by introducing importance sampling.
[0105] Next, a data center network congestion control algorithm performance evaluation device proposed in an embodiment of the present invention is described with reference to the accompanying drawings.
[0106] Figure 3 It is a block diagram of a data center network congestion control algorithm performance evaluation device according to an embodiment of the present invention.
[0107] like Figure 3 As shown, the data center network congestion control algorithm performance evaluation device 10 includes: a first establishment module 100, a second establishment module 200, a simulation calculation module 300 and a determination module 400.
[0108] Among them, the first establishment module 100 is used to establish a first mathematical model of the server in the data center network, wherein the first mathematical model is used to simulate traffic sending and receiving, and adjust the traffic sending rate according to the received congestion signal; the second establishment module 200 is used to establish a second mathematical model of the switch in the data center network, wherein the second mathematical model is used to simulate traffic forwarding, and discard one or more data packets and send a congestion signal when congestion occurs; the simulation calculation module 300 is used to simulate the network congestion control algorithm of the data center network according to the first mathematical model and the second mathematical model, and calculate the confidence interval of the simulator simulation experiment results; the determination module 400 is used to determine the performance evaluation result of the network congestion control algorithm according to the confidence interval of the simulator simulation experiment results.
[0109] In an embodiment of the present invention, the first establishment module 100 is further used to: model the interval time of traffic arrival as a continuous random variable distribution; model the amount of data contained in a single traffic as a discrete random variable distribution; model the size of the last data packet in a single traffic as a bounded continuous random variable distribution; generate a first mathematical model based on the continuous random variable distribution, the discrete random variable distribution and the bounded continuous random variable distribution.
[0110] In the embodiment of the present invention, the first mathematical model also includes: a time congestion control window and a slow start threshold, a size of a data packet sent by the storage server, a sending time, and a status of whether the data packet is notified of receipt.
[0111] In an embodiment of the present invention, the second establishing module 200 is further used to: model the randomness of the switch to obtain a randomness modeling result, wherein the randomness modeling result includes discarding the just received data packet with a preset probability when congestion occurs; model the state contained in the switch to obtain a state modeling result, wherein the state modeling result includes: the number of data packets received by the switch within a time, the queue length of the current switch, the data packets received by each switch, the saved arrival time and whether the received state is informed; generate a second mathematical model based on the randomness modeling result and the state modeling result of the switch.
[0112] In an embodiment of the present invention, the simulation calculation module 300 is further used to: obtain the continuous random variable distribution of the interval time of traffic arrival and the discrete random variable distribution of the amount of data contained in a single traffic; calculate the similarity ratio based on the continuous random variable distribution and the discrete random variable distribution, obtain a new random variable distribution based on importance sampling based on the similarity ratio, and calculate the confidence interval of the simulation experiment results based on the new random variable distribution based on importance sampling.
[0113] In the embodiment of the present invention, the calculation formula of the similarity ratio is:
[0114]
[0115] Among them, U n It is expressed as the interval time when the nth data packet flow arrives. represents the inter-arrival time of the flow used in the experiment, f u It is represented as the continuous random variable distribution function formed by modeling the interval between traffic arrivals, Expressed as using the cross entropy algorithm to solve f u New random variable distribution function under importance sampling, V n Expressed as the amount of data contained in the nth stream, It is expressed as the amount of data contained in the flow used in the experiment, f v represents the distribution function of a discrete random variable that models the amount of data contained in a single flow, Expressed as using the cross entropy algorithm to solve f v New random variable distribution functions under importance sampling, G and Yes u and The complementary cumulative distribution function is It is represented as the age of arrival, where t represents time and A(t) represents the number of all arrival events up to time t.
[0116] It should be noted that the aforementioned explanation of the data center network congestion control algorithm performance evaluation method embodiment is also applicable to the data center network congestion control algorithm performance evaluation device of this embodiment, and will not be repeated here.
[0117] According to the data center network congestion control algorithm performance evaluation device proposed in an embodiment of the present invention, a first mathematical model of a server in a data center network and a second data model of a switch in a data center network are established, and a confidence interval for sampling network congestion events is set. The network congestion control algorithm of the data center network is simulated using the first mathematical model and the second mathematical model, and the confidence interval of the simulation result is calculated. The performance evaluation result of the network congestion control algorithm is determined based on the confidence interval, thereby improving the accuracy of the evaluation.
[0118] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. The electronic device may include:
[0119] Memory 401 , processor 402 , and a computer program stored in the memory 401 and executable on the processor 402 .
[0120] When the processor 402 executes the program, the data center network congestion control algorithm performance evaluation method provided in the above embodiment is implemented.
[0121] Furthermore, the electronic device further comprises:
[0122] The communication interface 403 is used for communication between the memory 401 and the processor 402 .
[0123] The memory 401 is used to store computer programs that can be executed on the processor 402 .
[0124] The memory 401 may include a high-speed RAM (Random Access Memory) memory, and may also include a non-volatile memory, such as at least one disk memory.
[0125] If the memory 401, the processor 402 and the communication interface 403 are implemented independently, the communication interface 403, the memory 401 and the processor 402 can be connected to each other through a bus and communicate with each other. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0126] Optionally, in a specific implementation, if the memory 401, the processor 402 and the communication interface 403 are integrated on a chip, the memory 401, the processor 402 and the communication interface 403 can communicate with each other through an internal interface.
[0127] The processor 402 may be a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present invention.
[0128] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned data center network congestion control algorithm performance evaluation method.
[0129] The present invention also provides a computer program product, which, when executed, is used to implement the data center network congestion control algorithm performance evaluation method as described in the above embodiment.
[0130] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0131] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "N" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0132] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.
[0133] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array, a field programmable gate array, etc.
[0134] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0135] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A data center network congestion control algorithm performance evaluation method, characterized in that: The following steps are involved: Establishing a first mathematical model of a server in a data center network, wherein the first mathematical model is used to simulate traffic sending and receiving, and to adjust a traffic sending rate according to a received congestion signal; Establishing a second mathematical model of a switch in a data center network, wherein the second mathematical model is used to simulate traffic forwarding, and to drop one or more data packets and send a congestion signal when congestion occurs; Simulating a network congestion control algorithm of a data center network according to the first mathematical model and the second mathematical model, and calculating a confidence interval of a simulation experiment result of the simulator; Determining a performance evaluation result of a network congestion control algorithm based on the batch method, the central limit theorem and the confidence interval; Among them, calculating the confidence interval of the simulation experiment results of the simulator includes: obtaining the continuous random variable distribution of the interval time of traffic arrival and the discrete random variable distribution of the amount of data contained in a single traffic; calculating the similarity ratio according to the continuous random variable distribution and the discrete random variable distribution, obtaining a new random variable distribution based on importance sampling according to the similarity ratio, and calculating the confidence interval of the simulation experiment results according to the new random variable distribution based on importance sampling; the calculation formula of the similarity ratio is: Among them, U n It is expressed as the interval time when the nth data packet flow arrives. represents the inter-arrival time of the flow used in the experiment, f u It is represented as the continuous random variable distribution function formed by modeling the interval between traffic arrivals, Expressed as using the cross entropy algorithm to solve f u New random variable distribution function under importance sampling, V n Expressed as the amount of data contained in the nth stream, It is expressed as the amount of data contained in the flow used in the experiment, f v represents the distribution function of a discrete random variable that models the amount of data contained in a single flow, Expressed as using the cross entropy algorithm to solve f v New random variable distribution functions under importance sampling, G and Yes u and The complementary cumulative distribution function is It is expressed as the age of arrival, where t represents time and A(t) represents the number of all arrival events up to time t.
2. The data center network congestion control algorithm performance evaluation method according to claim 1 is characterized in that: The first mathematical model of the server in the data center network is established: Model the traffic arrival interval as a continuous random variable distribution; Model the amount of data contained in a single flow as a discrete random variable distribution; Model the size of the last packet in a single flow as a bounded continuous random variable distribution; The first mathematical model is generated according to the continuous random variable distribution, the discrete random variable distribution and the bounded continuous random variable distribution.
3. The data center network congestion control algorithm performance evaluation method according to claim 1 is characterized in that: The first mathematical model also includes: a time congestion control window and a slow start threshold, the size of the data packet sent by the storage server, the sending time, and the status of whether the data packet is notified of receipt.
4. The data center network congestion control algorithm performance evaluation method according to claim 1, characterized in that: The establishing of a second mathematical model of a switch in a data center network comprises: Modeling the randomness of the switch to obtain a randomness modeling result, wherein the randomness modeling result includes discarding a just received data packet with a preset probability when congestion occurs; Modeling the state of the switch to obtain a state modeling result, wherein the state modeling result includes: the number of data packets received by the switch within a time, the queue length of the current switch, the data packets received by each switch, the saved arrival time, and whether the received state is informed; The second mathematical model is generated according to the randomness modeling result and the state modeling result of the switch.
5. A data center network congestion control algorithm performance evaluation device, characterized in that: include: A first establishing module, used to establish a first mathematical model of a server in a data center network, wherein the first mathematical model is used to simulate traffic sending and receiving, and to adjust a traffic sending rate according to a received congestion signal; A second establishing module, used to establish a second mathematical model of a switch in a data center network, wherein the second mathematical model is used to simulate traffic forwarding, and to drop one or more data packets and send a congestion signal when congestion occurs; A simulation calculation module, used to simulate the network congestion control algorithm of the data center network according to the first mathematical model and the second mathematical model, and calculate the confidence interval of the simulator experiment result; A determination module, used to determine a performance evaluation result of a network congestion control algorithm according to a batch method, a central limit theorem and the confidence interval; Among them, calculating the confidence interval of the simulation experiment results of the simulator includes: obtaining the continuous random variable distribution of the interval time of traffic arrival and the discrete random variable distribution of the amount of data contained in a single traffic; calculating the similarity ratio according to the continuous random variable distribution and the discrete random variable distribution, obtaining a new random variable distribution based on importance sampling according to the similarity ratio, and calculating the confidence interval of the simulation experiment results according to the new random variable distribution based on importance sampling; the calculation formula of the similarity ratio is: Among them, U n It is expressed as the interval time when the nth data packet flow arrives. represents the inter-arrival time of the flow used in the experiment, f u It is represented as the continuous random variable distribution function formed by modeling the interval between traffic arrivals, Expressed as using the cross entropy algorithm to solve f u New random variable distribution function under importance sampling, V n Expressed as the amount of data contained in the nth stream, It is expressed as the amount of data contained in the flow used in the experiment, f v represents the distribution function of a discrete random variable that models the amount of data contained in a single flow, Expressed as using the cross entropy algorithm to solve f v New random variable distribution functions under importance sampling, G and Yes u and The complementary cumulative distribution function is It is expressed as the age of arrival, where t represents time and A(t) represents the number of all arrival events up to time t.
6. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the data center network congestion control algorithm performance evaluation method as described in any one of claims 1 to 4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the data center network congestion control algorithm performance evaluation method as described in any one of claims 1 to 4.
8. A computer program product, characterized in that When the computer program is executed, it is used to implement the data center network congestion control algorithm performance evaluation method described in any one of claims 1-4.
Citation Information
Patent Citations
Data center network congestion control method and device, equipment and storage medium
CN116915706A
Cross-data center RDMA network congestion control method and device based on near-end control
CN117135117A
