CN114051002A - ECN (engineering-centric networking) waterline determining method and device and electronic equipment - Google Patents

ECN (engineering-centric networking) waterline determining method and device and electronic equipment Download PDF

Info

Publication number
CN114051002A
CN114051002A CN202111455474.1A CN202111455474A CN114051002A CN 114051002 A CN114051002 A CN 114051002A CN 202111455474 A CN202111455474 A CN 202111455474A CN 114051002 A CN114051002 A CN 114051002A
Authority
CN
China
Prior art keywords
roce
queue
bandwidth
ecn
occupied
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111455474.1A
Other languages
Chinese (zh)
Other versions
CN114051002B (en
Inventor
王明辉
谢江轩
敖襄桥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Big Data Technologies Co Ltd
Original Assignee
New H3C Big Data Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Big Data Technologies Co Ltd filed Critical New H3C Big Data Technologies Co Ltd
Priority to CN202111455474.1A priority Critical patent/CN114051002B/en
Publication of CN114051002A publication Critical patent/CN114051002A/en
Application granted granted Critical
Publication of CN114051002B publication Critical patent/CN114051002B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/11Identifying congestion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/52Queue scheduling by attributing bandwidth to queues

Abstract

The embodiment of the invention relates to a method and a device for determining an ECN (engineering-centered network) waterline and electronic equipment, wherein the method comprises the following steps: acquiring an average bandwidth occupied by a remote direct data access (ROCE) queue of a first converged Ethernet in a plurality of queues and an actual available bandwidth; determining a first bandwidth ratio between the average bandwidth and the actual available bandwidth; according to the first bandwidth ratio value, searching a second ROCE queue matched with the first ROCE queue from at least one ROCE queue of a pre-acquired known ECN (enhanced coupled network) waterline; and taking the ECN waterline corresponding to the second ROCE queue as the ECN waterline of the first ROCE queue. Through the method, even if the first ROCE queue and other queues jointly occupy the network bandwidth, the ECN waterline of the first ROCE queue can still be obtained. Moreover, the ECN waterline of the first ROCE queue is determined not only by considering the situation of the single-port ROCE queue, but also by considering the situation of network bandwidth occupied by other queues, and the ECN waterline in the ROCE queue determined naturally is more accurate.

Description

ECN (engineering-centric networking) waterline determining method and device and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method and a device for determining an ECN (engineering-centered network) waterline and electronic equipment.
Background
In a Remote Direct access (ROCE) network that merges with an Ethernet, we need to construct a lossless Ethernet to ensure that no packet is lost during network transmission. The key characteristics that need to be supported for constructing the lossless ethernet network include Priority-based Flow Control (PFC for short), display Congestion Notification (ECN for short), Data Center Bridging eXchange Protocol (DCBX for short), Enhanced Transmission Selection (ETS for short), and the like.
For the ECN technology, when the device is congested, the virtual switch resets the identifier of the ECN field in the IP header of the Packet and transmits the Packet to the Packet receiving end, and after receiving the Packet with the reset ECN identifier, the Packet receiving end generates a Congestion Notification Packet (CNP) for indicating a reduction in transmission rate and transmits the Packet to the transmitting end, so as to implement end-to-end Congestion management and reduce Congestion diffusion degradation.
Specifically, the switch determines whether the message has congestion according to the configured ECN threshold. The ECN threshold setting is required to balance the throughput and the delay of the traffic flow. The ECN threshold is set to be higher, the burst absorption capacity of the queue is strong, the throughput is beneficial, but the excessive queue depth and time delay are brought, and the control/protocol flow sensitive to the time delay is not beneficial. On the contrary, the ECN marking threshold is set to be lower, the depth of the queue is maintained to be lower, the queue delay is lower, and the ECN marking threshold is beneficial to the delay-sensitive service flow, but the burst absorption capability of the queue is weak, so that the ECN marking threshold is not beneficial to the service with high throughput requirement.
For several common scenarios, it is generally assumed that only a single port queue has traffic, so that only one rock queue needs to be considered, and then a preferred ECN pipeline configuration is obtained through a large number of tests. However, in practical applications, network networking usually includes multi-queue mixed traffic, including an ROCE queue and a non-ROCE queue, and due to mutual influence of these queue traffic, an ECN waterline corresponding to the ROCE queue cannot be accurately tested by using a commonly used testing method, and the whole process is time-consuming and labor-consuming and is more complicated.
Disclosure of Invention
The application provides a method and a device for determining an ECN (echo-coupled network) waterline and electronic equipment, and aims to solve the technical problem that the ECN waterline of an ROCE (rock control entity) queue cannot be defined in an application scene of multi-queue mixed flow in the prior art.
In a first aspect, the present application provides a method for determining an ECN waterline, including:
acquiring an average bandwidth occupied by a remote direct data access (ROCE) queue of a first converged Ethernet in a plurality of queues and an actual available bandwidth;
determining a first bandwidth ratio between the average bandwidth and the actual available bandwidth;
according to a first bandwidth ratio value, searching a second ROCE queue matched with the first ROCE queue from at least one pre-acquired ROCE queue of a known ECN (enhanced coupled network) waterline, wherein a second bandwidth ratio between the average bandwidth occupied by the second ROCE queue and the actual available bandwidth has a proportional relation with the first bandwidth ratio value;
and taking the ECN waterline corresponding to the second ROCE queue as the ECN waterline of the first ROCE queue.
In a second aspect, the present application provides an ECN waterline determining apparatus, comprising:
the system comprises an acquisition module, a receiving module and a processing module, wherein the acquisition module is used for acquiring an average bandwidth occupied by a remote direct data access (ROCE) queue of a first converged Ethernet in a plurality of queues and an actual available bandwidth;
a processing module for determining a first bandwidth ratio between the average bandwidth and the actual available bandwidth;
the searching module is used for searching a second ROCE queue matched with the first ROCE queue from at least one pre-acquired ROCE queue of a known ECN (enhanced coupled network) according to the first bandwidth ratio value, wherein a second bandwidth ratio between the average bandwidth occupied by the second ROCE queue and the actual available bandwidth has a proportional relation with the first bandwidth ratio value;
and the processing module is also used for taking the ECN waterline corresponding to the second ROCE queue as the ECN waterline of the first ROCE queue.
In a third aspect, an electronic device is provided, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor configured to implement the steps of the ECN watermark determining method according to any one of the embodiments of the first aspect when executing a program stored in the memory.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the ECN waterline determination method as defined in any one of the embodiments of the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
the method provided by the embodiment of the application obtains the average bandwidth occupied by the first ROCE queue in the multiple queues and the actual available bandwidth. Determining a first bandwidth ratio between the average bandwidth and the actual available bandwidth, searching a second ROCE queue matched with the first ROCE queue from at least one pre-acquired ROCE queue of the known ECN (extended channel over Ethernet) waterline according to the first bandwidth ratio, and then determining the recommended waterline of the first ROCE queue according to the ECN waterline corresponding to the second ROCE queue. When the second ROCE queue is searched, the ROCE queue corresponding to the second bandwidth ratio having a certain proportional relation with the first bandwidth ratio is searched. According to a large amount of data statistics, the bandwidth ratios of ROCE queues with a certain proportional relation are basically consistent in the corresponding ECN waterline performance curve shapes, so that the ECN waterlines can be the same. That is, the rock queues in the mixed flow multiple queues are normalized to have the same bandwidth ratio in the same application scenario, for example, the single-port queues having the same bandwidth ratio, and the ECN pipeline may also be directly configured to be the same as the ECN pipeline of the rock queue having the same bandwidth ratio. By the method, even if the first ROCE queue and other queues jointly occupy network bandwidth, the ECN waterline of the first ROCE queue can still be obtained. Moreover, the ECN waterline of the first ROCE queue is determined not only by considering the situation of the single-port ROCE queue, but also by considering the situation of network bandwidth occupied by other queues, and the ECN waterline in the ROCE queue determined naturally is more accurate. Moreover, through the mode of this application, confirm the mode of ECN waterline simpler, convenient, promote work efficiency greatly.
Drawings
Fig. 1 is a schematic flow chart of a method for determining an ECN waterline according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a field structure including an ECN field according to the present invention;
FIG. 3 is a schematic diagram of a curve for determining the probability of ECN marking according to the queue length according to the present invention;
FIG. 4 is a Kmax-Thrput curve diagram of the present invention, in which the total load of the 6-input port is 95G and the output port is 100G;
FIG. 5 is a Kmax-Thrput curve diagram of the present invention, in which the total load of the 6-input port is 66.5G and the output port is 70G;
FIG. 6 is a Kmax-Thrput curve diagram of total load at the input port of 6G and output port of 40G provided by the present invention;
fig. 7 is a schematic flow chart of a method for determining an actual available bandwidth according to the present invention;
FIG. 8 is a flow chart illustrating another method for determining an actual available bandwidth provided by the present invention;
FIG. 9 is a schematic structural diagram of an ECN pipeline determining apparatus according to the present invention;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
For the convenience of understanding of the embodiments of the present invention, the following description will be further explained with reference to specific embodiments, which are not to be construed as limiting the embodiments of the present invention.
To solve the technical problem mentioned in the background art, an embodiment of the present application provides a method for determining an ECN waterline, and specifically, as shown in fig. 1, fig. 1 is a schematic flow chart of the method for determining an ECN waterline provided by the embodiment of the present invention. Before describing the ECN waterline determining method provided by the embodiment of the present invention, an implementation basis of the method of the embodiment of the present application is first described.
First, a Data Center Quantized Congestion Notification (DCQCN) algorithm is introduced. The DCQCN algorithm relies on ECN labeling at the switch end. Two bits in the lookup service field in the packet IP header are used to indicate congestion. These two bits are set to "11" (CN) as soon as congestion occurs at the switch. Referring specifically to fig. 2, fig. 2 illustrates fields of the ECN flag bit, and corresponding field value configuration. Since the sub-fields in fig. 2 are all fields in the prior art, they are not described herein too much, and only the ECN field will be described in detail in this application. The ECN field in fig. 2 includes: binary [ bin ] Binary, Keyword. It should be noted that the field values configured in the corresponding fields in fig. 2 are only used to illustrate what values of the field values are valid for different fields, and the field values in fig. 2 are not configured in practical applications. The field value of the corresponding field is set according to the actual situation, and will not be described herein too much.
Specific field description: and the Not-ECT indicates that ECN setting is Not supported, and is effective when the field value is configured to be 00, and is used for indicating that ECN marking is Not supported in the current message. The valid binary value of ECT (1) configuration is 01 and the valid binary value of ECT (0) configuration is 10, and whichever of these two fields is valid is used to indicate that the message supports ECN marking. When the value of the configured field of the CN is 11, that is, it indicates that congestion occurs at the switch end, the message sending end needs to reduce the message sending rate; on the contrary, when the value of the configured field of the CN is 00, it indicates that the message is not marked by the marked ECN, the switch end does not have congestion, and the message sending end may continue or increase the message sending rate.
The flag congestion is a probability function of the queue length as shown in figure 3. Fig. 3 is a schematic diagram of a curve for determining ECN marking probability according to queue length, where the abscissa in fig. 3 is queue length and the ordinate is ECN marking probability.
ECN marking probability is determined based on queue length. In a specific example, two threshold values Kmin and Kmax may be set. When the queue length is below the threshold lower limit Kmin, the ECN bit is not set to 11. When the queue length exceeds the upper threshold value Kmax, all network packets transmitted from the queue will be marked by ECN, i.e. the ECN position is set to 11. When the queue length is between two thresholds, packets are ECN marked with a probability P that increases linearly with the queue length.
For example, kmin is 50, kmax is 100, and when the queue length is 60, the probability that the queue length is linear and normal is (100-50)/100 is 20%, that is, when the queue length exceeds 50, there will be one message configuration ECN mark at random every 5 messages. Or in a certain number of messages, 20% of the messages are randomly configured with ECN marks.
After the data packet with the ECN mark is transmitted to the receiver, the receiver creates a congestion notification message CNP according to the data packet with the ECN mark, and sends the congestion notification message CNP to the sender of the data packet marked by the ECN. The CNP packet includes information that is marked (QPAIR, abbreviated QP, used to identify the source of the message transmission). When the CNP is received by the sender, the transmission rate of the designated message is reduced, so as to solve the problem of queue congestion.
For ECN pipeline configuration, as introduced in the background, if the ECN pipeline configuration is too high, there may be queue depths and delays that are detrimental to delay-sensitive control/protocol flows. On the contrary, the ECN marking threshold is set to be low, which may result in weak burst absorption capability of the queue, thereby being unfavorable for the service with high throughput requirement. In the prior art, a single-port queue is considered only, the condition that other queues exist is ignored, and the configuration of an ECN (enhanced turbo over coax) waterline corresponding to the single-port queue as a waterline of an ROCE (rock over coax) queue of a mixed flow multi-queue is not accurate.
Therefore, the method provided by the embodiment of the application is used for realizing more accurate configuration of the ECN waterline of the ROCE queue in the mixed flow multiple queue. See in particular the following method steps:
step 110, obtaining an average bandwidth occupied by a remote direct data access (ROCE) queue of a first converged Ethernet in the multiple queues and an actual available bandwidth.
Specifically, the average bandwidth occupied by the rock queue can be obtained by the means of the prior art, and is not described in detail here. The actual occupied bandwidth needs to be determined according to the total bandwidth of the network and the average bandwidth occupied by the existing queues in the network. For example, only the first ROCE queue, and other non-ROCE queues, are included in the network. The sum of the average bandwidths occupied by the non-ROCE queues except the first ROCE queue is 60G, the total network bandwidth is 100G, and the actual occupied bandwidth of the first ROCE queue is 40G.
A first bandwidth ratio between the average bandwidth and the actual available bandwidth is determined, step 120.
And step 130, searching a second ROCE queue matched with the first ROCE queue from at least one ROCE queue of the pre-acquired known ECN (enhanced turbo over coax) waterline according to the first bandwidth ratio value.
And a second bandwidth ratio between the average bandwidth occupied by the second ROCE queue and the actual available bandwidth has a proportional relation with the first bandwidth ratio.
Specifically, after statistical analysis is performed on a large amount of test data, it can be determined that the performance curve of the ECN waterline configuration has equivalent flexibility. That is, in different (Kmin, Kmax) combinations under the same scene, when the ratio of the load of the output port (average bandwidth occupied by the rock queue) to the actually-occupied bandwidth is the same, the corresponding Kmax-throughput performance curves (ECN performance curves) are also very similar. See in particular fig. 4 to 6.
In fig. 4, the number of corresponding ingress ports is 6, the maximum bandwidth of each ingress port is 25G, and the maximum bandwidth of each egress port is 100G. Assume that the traffic bandwidth value (load) of 6 ingress ports is 95G, and the total egress port bandwidth is 100G. The corresponding bandwidth ratio is 95%; in fig. 5, the number of corresponding ingress ports is 6, the maximum bandwidth of each ingress port is 25G, and the maximum bandwidth of each egress port is 100G. The flow bandwidth (load) of 6 ingress ports is 66.5G (95 is multiplied by 0.7), the speed-limited bandwidth corresponding to an egress port is 70G (100 is multiplied by 0.7), and the corresponding bandwidth ratio is 95%; in fig. 6, the number of corresponding ingress ports is 6, the maximum bandwidth of each ingress port is 25G, and the maximum bandwidth of each egress port is 100G. The traffic bandwidth (load) of 6 ingress ports is 38G (95 times 0.4), the rate-limiting bandwidth corresponding to an egress port is 40G (100 times 0.4), and the corresponding bandwidth ratio is also 95%. The kmax-Thrput performance curve graphs in corresponding FIGS. 4-6 are substantially identical (there is equal scaling of Thrput values, so the figures look similar in shape, with some proportional scaling in size). That is, the proportional relationship between throughput Thrput corresponding to different (Kmin, Kmax) combinations is substantially consistent with the above mentioned speed limit ratio. Referring specifically to fig. 4 to 6, 10 different kmin values are set in fig. 4 to 6, respectively, and it can be seen from the curves with the same kmin values in fig. 4 to 6 that the proportional relationship between the throughput Thrput is substantially the same as the speed limit ratio mentioned above. That is, the reason for the configuration parameters (Kmin, Kmax, and Pmax are the same, i.e., Thrput is proportional when the ECN pipeline is the same) in the ECN pipeline is that their actual occupied bandwidths are different, but the ratio of the load of the egress port to the actual occupied bandwidth is the same. That is to say, in the embodiment of the present application, the condition of the multi-queue hybrid traffic may be normalized to the condition of one rock queue by calculating the ratio between the average bandwidth occupied by the rock queue and the actual bandwidth value of the rock queue, so that in each scenario, the ECN recommended configuration under the condition that only one rock queue exists in the network is applicable to the condition of the multi-queue hybrid traffic.
Therefore, in the present application, the ECN waterline of the unknown ROCE queue can be determined according to a bandwidth ratio relationship between the average bandwidth and the actual available bandwidth, and the ECN waterline of the known ROCE queue having a certain proportional relationship with the bandwidth ratio.
And 140, taking the ECN waterline corresponding to the second ROCE queue as the ECN waterline of the first ROCE queue.
In summary, it can be concluded that the ECN pipelines can be the same for the rock queues with different bandwidth ratios. Thus, the ECN pipeline corresponding to the second rock queue may be configured as the ECN pipeline of the first rock queue.
The ECN waterline determining method provided by the embodiment of the invention obtains the average bandwidth occupied by the first ROCE queue in the multi-queue and the actual available bandwidth. Determining a first bandwidth ratio between the average bandwidth and the actual available bandwidth, searching a second ROCE queue matched with the first ROCE queue from at least one pre-acquired ROCE queue of the known ECN (extended channel over Ethernet) waterline according to the first bandwidth ratio, and then determining the recommended waterline of the first ROCE queue according to the ECN waterline corresponding to the second ROCE queue. When the second ROCE queue is searched, the ROCE queue corresponding to the second bandwidth ratio having a certain proportional relation with the first bandwidth ratio is searched. According to a large amount of data statistics, the bandwidth ratios of ROCE queues with a certain proportional relation are basically consistent in the corresponding ECN waterline performance curve shapes, so that the ECN waterlines can be the same. That is, the rock queues in the mixed flow multiple queues are normalized to have the same bandwidth ratio in the same application scenario, for example, the single-port queues having the same bandwidth ratio, and the ECN pipeline may also be directly configured to be the same as the ECN pipeline of the rock queue having the same bandwidth ratio. By the method, even if the first ROCE queue and other queues jointly occupy network bandwidth, the ECN waterline of the first ROCE queue can still be obtained. Moreover, the ECN waterline of the first ROCE queue is determined not only by considering the situation of the single-port ROCE queue, but also by considering the situation of network bandwidth occupied by other queues, and the ECN waterline in the ROCE queue determined naturally is more accurate. Moreover, through the mode of this application, confirm the mode of ECN waterline simpler, convenient, promote work efficiency greatly.
Optionally, on the basis of the foregoing embodiment, another ECN waterline determining method is further provided in the embodiment of the present invention, and the same or similar contents are not described in detail herein. The following is merely an illustration of how an ECN pipeline may be obtained in a pre-obtained ROCE queue of a known ECN pipeline, and the second ROCE queue is taken as an example.
The ECN waterline of the second ROCE queue may be the ECN waterline determined when the network port has the second ROCE queue to transmit the message. The ECN pipeline of the second ROCE queue is configured for a preferred ECN pipeline obtained through a number of tests.
In another case, it is considered that the pre-acquired ROCE queues of the known ECN pipeline may not be matched to the ROCE queue listed in the above case immediately or accurately in a short time if the number of the ROCE queues is large (in the case where only a single ROCE queue of a network port transmits a message).
Then, in order to obtain the ECN waterline of the first ROCE queue more quickly and conveniently, the above-mentioned ECN waterline of the second ROCE queue may also be the ECN waterline determined by the ECN waterline of the third ROCE queue corresponding to the third bandwidth ratio having a proportional relationship with the second bandwidth ratio, instead of the ROCE queue corresponding to the situation where only a single ROCE queue transmits a message at a network port.
In one specific example, the ECN pipeline of the third rock queue may be an optimal ECN pipeline obtained by testing when only a single rock queue is included in the network. Of course, it may also be an ECN pipeline determined by a proportional relationship between bandwidth ratios.
Because the performance curves of the above-mentioned ECN pipeline configuration have equivalent scalability, this characteristic may also be utilized to obtain the ECN pipeline of the second ROCE queue when determining the ECN pipeline of the second ROCE queue.
And when the ECN waterline of the first ROCE queue is determined, the second ROCE queue which is just matched with the ECN waterline is selected from a large number of ROCE queues of the known ECN waterline. In fact, the ECN pipelines corresponding to the first, second, and third rock queues may be configured as the same ECN pipeline.
In summary, no matter how the ECN waterline of the second ROCE queue is obtained, the waterline of the first ROCE queue can be known only after the waterline of the second ROCE queue is obtained.
On the basis of any of the above embodiments, an embodiment of the present invention further provides another ECN waterline configuration method, and in this embodiment, the same or similar contents to those in any of the above embodiments are not described again here. Emphasis instead being placed on how to obtain the actual occupiable bandwidth value of the first rock queue under different circumstances. See specifically below:
in the first case, when the multiple queues include a first rock queue and at least one non-rock queue, acquiring the actual available bandwidth of the first rock queue specifically includes the following method steps, which are specifically shown in fig. 7.
Step 710, obtain the sum of the average bandwidths occupied by at least one non-ROCE queue and the total bandwidth of the network ports corresponding to the multiple queues.
Specifically, the sum of the average bandwidths occupied by the non-ROCE queues is, as the name implies, summarized and counted, and a sum value is calculated for the average bandwidths occupied by all the non-ROCE queues. Then, after the average bandwidth occupied by each non-ROCE queue is obtained, the sum of the average bandwidths occupied by at least one non-ROCE queue can be obtained naturally. And the total bandwidth of the network ports corresponding to the multiple queues is configured in advance.
And step 720, determining the actual available bandwidth of the first ROCE queue according to the total bandwidth of the network ports and the sum of the average bandwidth occupied by the at least one non-ROCE queue.
Specifically, after the sum of the total bandwidth of the network port and the average bandwidth occupied by at least one non-ROCE queue is obtained, the difference between the total bandwidth of the network port and the average bandwidth occupied by the non-ROCE queue is naturally the actual bandwidth occupied by the first ROCE queue.
In a specific example, it is assumed that the egress port bandwidth is 100G, and only 1 race queue of the port currently has traffic, the average bandwidth of the port is a, and the other queues are occupied by non-race queues. If the sum of the average bandwidths of the non-ROCE queues is B, the actual occupied bandwidth of the Roce queue is as follows: 100G-B.
In another case, when the multi-queue includes at least two first rock queues and at least one non-rock queue, acquiring the actual available bandwidth of the first rock queue specifically includes the following method steps, which are shown in fig. 8.
Step 810, determining the average bandwidth sum occupied by at least two first ROCE queues according to the average bandwidth occupied by each first ROCE queue.
Step 820, obtain the sum of the average bandwidths occupied by at least one non-ROCE queue and the total bandwidth of the network ports corresponding to the multiple queues.
For a specific obtaining method, see above, it is not described here.
Step 830, determining an actual available bandwidth corresponding to the ith first ROCE queue according to an average bandwidth occupied by the ith first ROCE queue, a sum of average bandwidths occupied by the at least two first ROCE queues, a sum of average bandwidths occupied by the at least one non-ROCE queue, and a total bandwidth of the network port, where i is a positive integer.
Specifically, the total actual available bandwidth of all the ROCE queues can be obtained according to the total bandwidth of the network ports and the average bandwidth sum occupied by at least one non-ROCE queue. The sum of the actual available bandwidths of all the ROCE queues needs to be allocated to at least two ROCE queues, and a specific allocation mode can be allocated according to a certain proportion, for example, the sum of the actual available bandwidths of all the ROCE queues is allocated according to the ratio of each ROCE queue to the sum of the average bandwidths occupied by at least two first ROCE queues, so as to determine the actual available bandwidth occupied by each ROCE queue.
In a specific example, it is assumed that both current two Roce queues of the port have traffic, and average bandwidths of the two Roce queues are A and B; the sum of the average bandwidths of the other non-Roce queues is C, and then the actual occupied bandwidths of the two Roce queues are respectively: (100G-C) A/(A + B), (100G-C) B/(A + B).
By means of the method, the actual available bandwidth of each ROCE queue can be determined, and then the first ratio is determined according to the actual available bandwidth and the average bandwidth occupied by the ROCE queues.
In the above, for several embodiments of the ECN watermark determining apparatus provided in the present application, an embodiment of the ECN watermark determining apparatus provided in the present application is described below, and specifically, refer to the following.
Fig. 9 is a diagram of an ECN watermark determining apparatus according to an embodiment of the present invention, where the apparatus includes: an acquisition module 901, a processing module 902 and a search module 903.
An obtaining module 901, configured to obtain an average bandwidth occupied by a remote direct data access rock queue of a first converged ethernet in multiple queues and an actual available bandwidth.
A processing module 902 is configured to determine a first bandwidth ratio between the average bandwidth and the actual available bandwidth.
And the searching module 903 is used for searching a second ROCE queue matched with the first ROCE queue from at least one pre-acquired ROCE queue of a known ECN (enhanced coupled node) according to the first bandwidth ratio value, wherein a second bandwidth ratio between the average bandwidth occupied by the second ROCE queue and the actual available bandwidth has a proportional relation with the first bandwidth ratio value.
The processing module 902 is further configured to use the ECN waterline corresponding to the second rock queue as the ECN waterline of the first rock queue.
Optionally, the ECN waterline corresponding to the second ROCE queue is the ECN waterline determined when the second ROCE queue in the network port transmits the message;
or the ECN waterline corresponding to the second ROCE queue is determined according to the ECN waterline of the third ROCE queue corresponding to the third bandwidth ratio which has a proportional relation with the second bandwidth ratio.
Optionally, when the multiple queues include a first ROCE queue and at least one non-ROCE queue, the obtaining module 901 is specifically configured to obtain a sum of average bandwidths occupied by the at least one non-ROCE queue and a total bandwidth of a network port corresponding to the multiple queues;
the processing module 902 is specifically configured to determine an actual available bandwidth of the first ROCE queue according to a sum of a total bandwidth of the network ports and an average bandwidth occupied by at least one non-ROCE queue.
Optionally, when the multi-queue includes at least two first ROCE queues and at least one non-ROCE queue, the obtaining module 901 is specifically configured to determine, according to an average bandwidth occupied by each first ROCE queue, an average bandwidth sum occupied by the at least two first ROCE queues;
acquiring the sum of average bandwidths occupied by at least one non-ROCE queue and the total bandwidth of a network port corresponding to a plurality of queues;
the processing module 902 is specifically configured to determine, according to an average bandwidth occupied by an ith first ROCE queue, a sum of average bandwidths occupied by at least two first ROCE queues, a sum of average bandwidths occupied by at least one non-ROCE queue, and a total bandwidth of a network port, an actually-occupiable bandwidth corresponding to the ith first ROCE queue, where i is a positive integer.
The functions executed by each component in the ECN pipeline determining apparatus provided in the embodiment of the present invention have been described in detail in any method embodiment, and therefore, are not described herein again.
The ECN waterline determining device provided by the embodiment of the invention can be used for acquiring the average bandwidth occupied by the first ROCE queue in the multiple queues and the actual available bandwidth. Determining a first bandwidth ratio between the average bandwidth and the actual available bandwidth, searching a second ROCE queue matched with the first ROCE queue from at least one pre-acquired ROCE queue of the known ECN (extended channel over Ethernet) waterline according to the first bandwidth ratio, and then determining the recommended waterline of the first ROCE queue according to the ECN waterline corresponding to the second ROCE queue. When the second ROCE queue is searched, the ROCE queue corresponding to the second bandwidth ratio having a certain proportional relation with the first bandwidth ratio is searched. According to a large amount of data statistics, the bandwidth ratios of ROCE queues with a certain proportional relation are basically consistent in the corresponding ECN waterline performance curve shapes, so that the ECN waterlines can be the same. That is, the rock queues in the mixed flow multiple queues are normalized to have the same bandwidth ratio in the same application scenario, for example, the single-port queues having the same bandwidth ratio, and the ECN pipeline may also be directly configured to be the same as the ECN pipeline of the rock queue having the same bandwidth ratio. By the method, even if the first ROCE queue and other queues jointly occupy network bandwidth, the ECN waterline of the first ROCE queue can still be obtained. Moreover, the ECN waterline of the first ROCE queue is determined not only by considering the situation of the single-port ROCE queue, but also by considering the situation of network bandwidth occupied by other queues, and the ECN waterline in the ROCE queue determined naturally is more accurate. Moreover, through the mode of this application, confirm the mode of ECN waterline simpler, convenient, promote work efficiency greatly.
As shown in fig. 10, an electronic device according to an embodiment of the present application includes a processor 111, a communication interface 112, a memory 113, and a communication bus 114, where the processor 111, the communication interface 112, and the memory 113 complete communication with each other through the communication bus 114.
A memory 113 for storing a computer program;
in an embodiment of the present application, when the processor 111 is configured to execute the program stored in the memory 123, the method for determining the ECN waterline provided in any one of the foregoing method embodiments is implemented, and includes:
acquiring an average bandwidth occupied by a remote direct data access (ROCE) queue of a first converged Ethernet in a plurality of queues and an actual available bandwidth;
determining a first bandwidth ratio between the average bandwidth and the actual available bandwidth;
according to a first bandwidth ratio value, searching a second ROCE queue matched with the first ROCE queue from at least one pre-acquired ROCE queue of a known ECN (enhanced coupled network) waterline, wherein a second bandwidth ratio between the average bandwidth occupied by the second ROCE queue and the actual available bandwidth has a proportional relation with the first bandwidth ratio value;
and taking the ECN waterline corresponding to the second ROCE queue as the ECN waterline of the first ROCE queue.
Optionally, the ECN waterline corresponding to the second ROCE queue is the ECN waterline determined when the second ROCE queue in the network port transmits the message;
or the ECN waterline corresponding to the second ROCE queue is determined according to the ECN waterline of the third ROCE queue corresponding to the third bandwidth ratio which has a proportional relation with the second bandwidth ratio.
Optionally, when the multiple queues include a first rock queue and at least one non-rock queue, acquiring an actual available bandwidth of the first rock queue specifically includes:
acquiring the sum of average bandwidths occupied by at least one non-ROCE queue and the total bandwidth of a network port corresponding to a plurality of queues;
and determining the actual available bandwidth of the first ROCE queue according to the total bandwidth of the network ports and the sum of the average bandwidth occupied by at least one non-ROCE queue.
Optionally, when the multiple queues include at least two first rock queues and at least one non-rock queue, acquiring the actual available bandwidth of the first rock queue specifically includes:
determining the average bandwidth sum occupied by at least two first ROCE queues according to the average bandwidth occupied by each first ROCE queue;
acquiring the sum of average bandwidths occupied by at least one non-ROCE queue and the total bandwidth of a network port corresponding to a plurality of queues;
and determining the actual occupied bandwidth corresponding to the ith first ROCE queue according to the average bandwidth occupied by the ith first ROCE queue, the sum of the average bandwidths occupied by the at least two first ROCE queues, the sum of the average bandwidths occupied by the at least one non-ROCE queue and the total bandwidth of the network port, wherein i is a positive integer.
The present application further provides a computer readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the ECN waterline determination method provided in any one of the foregoing method embodiments.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method of ECN waterline determination, the method comprising:
acquiring an average bandwidth occupied by a remote direct data access (ROCE) queue of a first converged Ethernet in a plurality of queues and an actual available bandwidth;
determining a first bandwidth ratio between the average bandwidth and an actual available bandwidth;
according to the first bandwidth ratio, searching a second ROCE queue matched with the first ROCE queue from at least one pre-acquired ROCE queue of a known ECN (enhanced random access network) waterline, wherein a second bandwidth ratio between the average bandwidth occupied by the second ROCE queue and the actual available bandwidth has a proportional relation with the first bandwidth ratio;
and taking the ECN waterline corresponding to the second ROCE queue as the ECN waterline of the first ROCE queue.
2. The method of claim 1, wherein the ECN waterline corresponding to the second ROCE queue is the ECN waterline determined when the second ROCE queue in the network port transmits the message;
or the ECN waterline corresponding to the second ROCE queue is determined according to the ECN waterline of a third ROCE queue corresponding to a third bandwidth ratio proportional to the second bandwidth ratio.
3. The method according to claim 1 or 2, wherein when the multiple queues include one first ROCE queue and at least one non-ROCE queue, the acquiring the actual available bandwidth of the first ROCE queue specifically includes:
acquiring the sum of average bandwidths occupied by at least one non-ROCE queue and the total bandwidth of network ports corresponding to the multiple queues;
and determining the actual available bandwidth of the first ROCE queue according to the sum of the total bandwidth of the network ports and the average bandwidth occupied by at least one non-ROCE queue.
4. The method according to claim 1 or 2, wherein when the multiple queues include at least two first ROCE queues and at least one non-ROCE queue, the obtaining the actual available bandwidth of the first ROCE queue specifically comprises:
determining the sum of the average bandwidths occupied by at least two first ROCE queues according to the average bandwidth occupied by each first ROCE queue;
acquiring the sum of average bandwidths occupied by at least one non-ROCE queue and the total bandwidth of a network port corresponding to the multiple queues;
and determining the actual occupied bandwidth corresponding to the ith first ROCE queue according to the average bandwidth occupied by the ith first ROCE queue, the sum of the average bandwidths occupied by the at least two first ROCE queues, the sum of the average bandwidths occupied by the at least one non-ROCE queue and the total bandwidth of a network port, wherein i is a positive integer.
5. An ECN waterline determination apparatus, the apparatus comprising:
the system comprises an acquisition module, a receiving module and a processing module, wherein the acquisition module is used for acquiring an average bandwidth occupied by a remote direct data access (ROCE) queue of a first converged Ethernet in a plurality of queues and an actual available bandwidth;
a processing module for determining a first bandwidth ratio between the average bandwidth and an actual available bandwidth;
the searching module is used for searching a second ROCE queue matched with the first ROCE queue from at least one pre-acquired ROCE queue of a known ECN (enhanced coupled network) waterline according to the first bandwidth ratio, wherein a second bandwidth ratio between the average bandwidth occupied by the second ROCE queue and the actual available bandwidth has a proportional relation with the first bandwidth ratio;
and the processing module is further used for determining the ECN waterline of the first ROCE queue according to the ECN waterline corresponding to the second ROCE queue.
6. The apparatus of claim 5, wherein the ECN pipeline corresponding to the second ROCE queue is the ECN pipeline determined when the second ROCE queue in the network port transmits the message;
or the ECN waterline corresponding to the second ROCE queue is determined according to the ECN waterline of a third ROCE queue corresponding to a third bandwidth ratio proportional to the second bandwidth ratio.
7. The apparatus according to claim 5 or 6, wherein when the multiple queues include one first ROCE queue and at least one non-ROCE queue, the obtaining module is specifically configured to obtain a sum of average bandwidths occupied by the at least one non-ROCE queue and a total bandwidth of a network port corresponding to the multiple queues;
the processing module is specifically configured to determine an actual available bandwidth of the first ROCE queue according to a sum of the total bandwidth of the network ports and an average bandwidth occupied by at least one non-ROCE queue.
8. The apparatus according to claim 5 or 6, wherein when the multi-queue includes at least two first ROCE queues and at least one non-ROCE queue, the obtaining module is specifically configured to determine, according to an average bandwidth occupied by each of the first ROCE queues, an average bandwidth sum occupied by the at least two first ROCE queues;
acquiring the sum of average bandwidths occupied by at least one non-ROCE queue and the total bandwidth of a network port corresponding to the multiple queues;
the processing module is specifically configured to determine an actual available bandwidth corresponding to an ith first ROCE queue according to an average bandwidth occupied by the ith first ROCE queue, a sum of average bandwidths occupied by at least two first ROCE queues, a sum of average bandwidths occupied by at least one non-ROCE queue, and a total bandwidth of a network port, where i is a positive integer.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the steps of the ECN waterline determination method of any one of claims 1-4 when executing a program stored on a memory.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the ECN waterline determination method as claimed in any one of claims 1-4.
CN202111455474.1A 2021-11-30 2021-11-30 ECN waterline determination method and device and electronic equipment Active CN114051002B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111455474.1A CN114051002B (en) 2021-11-30 2021-11-30 ECN waterline determination method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111455474.1A CN114051002B (en) 2021-11-30 2021-11-30 ECN waterline determination method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN114051002A true CN114051002A (en) 2022-02-15
CN114051002B CN114051002B (en) 2024-03-19

Family

ID=80211929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111455474.1A Active CN114051002B (en) 2021-11-30 2021-11-30 ECN waterline determination method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114051002B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123444A (en) * 2010-12-31 2011-07-13 华为技术有限公司 Method, equipment and system for sharing transmission bandwidth among different systems
EP2823610A1 (en) * 2012-03-09 2015-01-14 British Telecommunications Public Limited Company Signalling congestion
KR101992750B1 (en) * 2017-12-18 2019-06-25 울산과학기술원 Router device and congestion controlling method of the same
CN110061927A (en) * 2019-04-26 2019-07-26 东南大学 Congestion aware and labeling method towards micro- burst flow in a kind of more queuing data center environments
CN110278157A (en) * 2018-03-14 2019-09-24 华为技术有限公司 Jamming control method and the network equipment
CN112104562A (en) * 2019-06-17 2020-12-18 华为技术有限公司 Congestion control method and device, communication network and computer storage medium
US20210344601A1 (en) * 2020-04-29 2021-11-04 Huawei Technologies Co., Ltd. Congestion Control Method, Apparatus, and System, and Computer Storage Medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123444A (en) * 2010-12-31 2011-07-13 华为技术有限公司 Method, equipment and system for sharing transmission bandwidth among different systems
EP2823610A1 (en) * 2012-03-09 2015-01-14 British Telecommunications Public Limited Company Signalling congestion
KR101992750B1 (en) * 2017-12-18 2019-06-25 울산과학기술원 Router device and congestion controlling method of the same
CN110278157A (en) * 2018-03-14 2019-09-24 华为技术有限公司 Jamming control method and the network equipment
CN110061927A (en) * 2019-04-26 2019-07-26 东南大学 Congestion aware and labeling method towards micro- burst flow in a kind of more queuing data center environments
CN112104562A (en) * 2019-06-17 2020-12-18 华为技术有限公司 Congestion control method and device, communication network and computer storage medium
WO2020253488A1 (en) * 2019-06-17 2020-12-24 华为技术有限公司 Method and device for congestion control, communication network, and computer storage medium
US20210344601A1 (en) * 2020-04-29 2021-11-04 Huawei Technologies Co., Ltd. Congestion Control Method, Apparatus, and System, and Computer Storage Medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SIYU YAN等: "ACC:automatic ECN tuning for high-speed datacenter networks", 《PROCEEDINGS OF 2021 ACM SIGCOMM 2021 CONFERENCE》, 9 August 2021 (2021-08-09) *
赖峻;叶梧;冯穗力;: "基于拥塞预测门限的主动队列管理算法", 华南理工大学学报(自然科学版), no. 09, 15 September 2008 (2008-09-15) *

Also Published As

Publication number Publication date
CN114051002B (en) 2024-03-19

Similar Documents

Publication Publication Date Title
US9059916B2 (en) Apparatus and method for transmitting packets in a communication system
EP1417808B1 (en) Method and system for congestion control in a communications network
US7397813B2 (en) Allocating bandwidth using resilient packet ring (RPR) fairness mechanism
US20070183332A1 (en) System and method for backward congestion notification in network
US8817615B2 (en) Method for operating a wireless network and a wireless network
CN102263697A (en) Method and device for sharing aggregated link traffic
US7961607B2 (en) Marking determining device and related method
Liu et al. Improving explicit congestion notification with the mark-front strategy
CN112152863A (en) Distributed bandwidth allocation method and device
CN114051002A (en) ECN (engineering-centric networking) waterline determining method and device and electronic equipment
Rifquddin Performance of AOMDV routing protocol under rushing and flooding attacks in MANET
Lee et al. Avoiding collision with hidden nodes in IEEE 802.11 wireless networks
US20040158765A1 (en) Device and method for controlling data traffic in a tcp/ip data transmission network
JP4793198B2 (en) Multiple access communication method
WO2013151468A1 (en) Method and arrangement for queue management
US7536477B2 (en) Access mechanisms for efficient sharing in a network
CN114172848B (en) Communication method and device
Bisdikian The n‐ary stack algorithm for the wireless random access channel
CN116260773A (en) Congestion control method and related equipment
Li et al. Network fair bandwidth share using hash rate estimation
CN117319509A (en) Network data processing method, device and computer readable storage medium
Zhang et al. Efficient available bandwidth estimation in ad hoc networks
Ishizuka et al. Performance analysis of TCP over ABR in high-speed WAN environment
Ku et al. Improving end-to-end performance by active queue management
Kim A Simulation Study on Queueing Delay Performance of Slotted ALOHA under Time-Correlated Channels

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant