CN108989235B - Message forwarding control method and device - Google Patents

Message forwarding control method and device Download PDF

Info

Publication number
CN108989235B
CN108989235B CN201810990731.3A CN201810990731A CN108989235B CN 108989235 B CN108989235 B CN 108989235B CN 201810990731 A CN201810990731 A CN 201810990731A CN 108989235 B CN108989235 B CN 108989235B
Authority
CN
China
Prior art keywords
target
preset threshold
target queue
output port
ecn
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.)
Active
Application number
CN201810990731.3A
Other languages
Chinese (zh)
Other versions
CN108989235A (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 Technologies Co Ltd
Original Assignee
New H3C 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 Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201810990731.3A priority Critical patent/CN108989235B/en
Publication of CN108989235A publication Critical patent/CN108989235A/en
Application granted granted Critical
Publication of CN108989235B publication Critical patent/CN108989235B/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

Abstract

The invention provides a message forwarding control method and a device, wherein the method comprises the following steps: when the length of a target queue of a target output port exceeds a first preset threshold, carrying out Explicit Congestion Notification (ECN) processing on a message of the target queue; and performing PFC (power factor correction) processing on the target queue if the target queue length of the target output port meets the PFC triggering condition of the flow control based on the priority after the ECN processing. By applying the embodiment of the invention, the ECN is ensured to be triggered preferentially under the condition of simultaneously enabling the ECN and the PFC, and the utilization rate of the bandwidth is ensured while the flow control is carried out; meanwhile, the occurrence of packet loss can be reduced through PFC.

Description

Message forwarding control method and device
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a method and an apparatus for controlling packet forwarding.
Background
In an RDMA (Remote Direct Memory Access) network, a large amount of retransmission is caused by the loss of any message, and the data transmission performance is seriously affected. Therefore, the network side needs to support lossless ethernet, and the key characteristics constituting the lossless ethernet are PFC (Priority-based Flow Control) and ECN (Explicit Congestion Notification).
The PFC is based on the queues with different priorities to perform back pressure, when hop-by-hop forwarding is performed, when a priority queue at a certain output port is congested, a feedback mechanism is established, and a pause frame is used for informing a previous hop device to pause sending the priority message, so that a packet loss prevention mechanism is realized.
ECN is when congestion happens to the output port queue of the device, a specific mark is marked on the ECN bit of a message forwarded by the queue, and a request for reducing the sending rate is sent to a sending end node of the message when a receiving end node receives the message carrying the specific ECN mark, so that end-to-end congestion management is realized.
When both PFCs and ECNs are used in a network, PFCs will generally take effect before ECNs because ECNs take effect for a longer time. And the PFC performs a hop-by-hop backpressure on the basis of ports on the upstream equipment, which may cause other traffic of the same priority to be affected.
Taking networking shown in fig. 1 as an example, when switching device S2 sends a pause frame to switching device S1 due to congestion of an egress port queue of traffic a for back pressure, switching device S1 may reduce sending rates of traffic a and traffic B (assuming that priority of traffic a is the same as priority of traffic B), so that the egress port queue of traffic B is not congested and is still subjected to speed reduction processing.
Disclosure of Invention
The invention provides a message forwarding control method and a message forwarding control device, which aim to solve the problem of low bandwidth utilization rate in a lossless Ethernet implementation scheme.
According to a first aspect of the embodiments of the present invention, a method for controlling packet forwarding is provided, including:
when the length of a target queue of a target output port exceeds a first preset threshold, ECN processing is carried out on the message of the target queue;
and if the length of the target queue at the target output port meets the PFC triggering condition after the ECN is processed, performing PFC processing on the target queue.
According to a second aspect of the embodiments of the present invention, there is provided a packet forwarding control apparatus, including:
the detection unit is used for detecting whether the length of a target queue at a target output port exceeds a first preset threshold or not;
the processing unit is used for carrying out ECN processing on the message of the target queue when the detection unit detects that the length of the target queue at the target output port exceeds a first preset threshold;
the detection unit is further configured to detect whether a target queue length of the target output port meets a PFC trigger condition after the ECN processing;
the processing unit is further configured to perform PFC processing on the target queue if the target queue length of the target output port meets a PFC trigger condition.
By applying the technical scheme disclosed by the invention, when the length of the target queue of the target output port exceeds a first preset threshold is detected, ECN processing is carried out on the message of the target queue; if the length of a target queue at a target output port meets a PFC triggering condition after ECN processing, PFC processing is carried out on the target queue, the ECN is guaranteed to be triggered preferentially under the condition that the ECN and the PFC are enabled simultaneously, and the utilization rate of bandwidth is guaranteed while flow control is carried out; meanwhile, the occurrence of packet loss can be reduced through PFC.
Drawings
FIG. 1 is a schematic diagram of a networking architecture;
fig. 2 is a schematic flowchart of a message forwarding control method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an architecture of a specific application scenario according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a message forwarding control method in the application scenario shown in fig. 3 according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of another packet forwarding control method in the application scenario shown in fig. 3 according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a message forwarding control apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another packet forwarding control apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions in the embodiments of the present invention better understood and make the above objects, features and advantages of the embodiments of the present invention more comprehensible, the technical solutions in the embodiments of the present invention are described in further detail below with reference to the accompanying drawings.
Referring to fig. 2, a schematic flow chart of a message forwarding control method according to an embodiment of the present invention is provided, where the message forwarding control method is applied to any switching device (e.g., a switch) in a network that supports PFC and ECN, and as shown in fig. 2, the message forwarding control method may include the following steps:
for convenience of description and understanding, the execution subject of steps 201 to 202 is taken as an example of a switch hereinafter.
Step 201, when it is detected that the length of the target queue at the target egress port exceeds a first preset threshold, performing ECN processing on the message of the target queue.
In the embodiment of the invention, the target output port does not refer to a fixed port, but refers to any port used for message forwarding on the switch; the target queue does not refer to a fixed queue, but may refer to a queue of any priority of the target egress port, and the following description of the embodiment of the present invention is not repeated.
In the embodiment of the present invention, the switch may detect the length of each queue at each egress port in a timed manner or in real time, and when the switch detects that the length of the target queue at the target egress port exceeds a first preset threshold (which may be set according to an actual scenario), the switch may determine that ECN processing needs to be triggered currently, and at this time, the switch may perform ECN processing on a message of the target queue.
The specific implementation of the switch performing ECN processing on the message of the target queue may refer to related descriptions in the existing ECN processing flow, and details of the embodiment of the present invention are not described herein.
In one example, to ensure ECN priority triggering, the first preset threshold may be set as a lowest threshold that the chip queue can set; the lowest threshold can be determined according to a cache value required by normal line speed forwarding of the chip, and the lowest threshold is greater than or equal to the cache value required by normal line speed forwarding of the chip.
For example, assuming that a chip needs to buffer 10 messages in a target queue (i.e. the buffer value is 10) during normal line-speed forwarding, the first preset threshold may be set to 10, that is, when the target queue length of a target egress port exceeds 10 (i.e. the number of buffered messages exceeds 10), ECN processing is performed on the messages passing through the target queue.
It should be noted that, in the embodiment of the present invention, the first preset thresholds corresponding to different queues of the same egress port may be the same or different, and the embodiment of the present invention does not limit this.
In addition, in the embodiment of the present invention, unless otherwise specified, all the queues performing PFC processing refer to queues that enable PFC; the messages processed by the ECN all refer to messages (such as IP messages) carrying the ECN domain, and the embodiment of the present invention will not be described again in the following.
Step 202, performing PFC processing on the target queue if it is detected that the target queue length of the target output port satisfies the PFC trigger condition after the ECN processing.
In the embodiment of the invention, the ECN realizes the end-to-end flow speed reduction based on the flow (namely, the message of the appointed source IP address and the appointed destination IP address), and when the network topology is larger, the ECN takes effect more slowly; in addition, because the ECN processing is for forwarding control of a packet carrying an ECN domain, the ECN processing may not solve the problem of traffic congestion, and therefore, in order to solve the problem of traffic congestion because the ECN is not in effect or the ECN is in effect, a PFC trigger condition may be preset, and when the switch determines that the length of the target queue at the target output port meets the PFC trigger condition, the switch may perform PFC processing on the target queue to reduce occurrence of packet loss.
In order to ensure that the ECN processing is triggered before the PFC processing, for any queue of any port, the ECN triggering condition (the queue length exceeds the first preset threshold) is easier to be satisfied than the FPC triggering condition, that is, after the switch detects that the queue length satisfies the ECN triggering condition, it further detects whether the queue length satisfies the PFC triggering condition.
Correspondingly, in the embodiment of the present invention, after the switch performs ECN processing on the message forwarded by the target output port, it may further detect whether the target queue length of the target output port meets the PFC trigger condition, and perform PFC processing on the target queue when the target queue length of the target output port meets the PFC trigger condition.
The specific implementation of the switch for performing the PFC processing on the target queue may refer to related descriptions in the existing PFC processing flow, and details of the embodiment of the present invention are not described herein.
It can be seen that, in the flow of the method shown in fig. 2, by setting a first preset threshold, and when the length of the target queue at the target output port exceeds the first preset threshold, performing ECN processing on the message of the target queue, on this basis, further detecting whether the length of the target queue at the target output port meets a PFC trigger condition, and when the PFC trigger condition is met, performing PFC processing on the target queue, under the condition that the ECN and the PFC are enabled at the same time, ensuring that the ECN is triggered preferentially, and while controlling the flow, ensuring the utilization rate of the bandwidth; meanwhile, the occurrence of packet loss can be reduced through PFC.
In an embodiment of the present invention, the detecting that the target queue length of the target egress port satisfies the PFC trigger condition after the ECN processing may include:
after ECN processing, if the length of the target queue of the detected target output port exceeds a second preset threshold, determining that the length of the target queue of the detected target output port meets a PFC (power factor correction) triggering condition; and the second preset threshold is larger than the first preset threshold.
In this embodiment, in order to avoid that congestion of the target queue at the target egress port is increased and packet loss is further caused before ECN takes effect after ECN processing is triggered, or that congestion of the target queue is still increased after ECN takes effect and packet loss is further caused because the target queue at the target egress port does not carry too many messages in the ECN domain, another threshold (referred to as a second preset threshold herein) greater than the first preset threshold may be set in the switch, and PFC triggering is performed based on the second preset threshold.
In this embodiment, when the switch detects that the length of the target queue at the target egress port exceeds the first preset threshold, and performs ECN processing on the packet of the target queue, it may further detect whether the length of the target queue at the target egress port exceeds the second preset threshold.
When the switch detects that the length of the target queue at the target output port exceeds the second preset threshold, the switch may perform PFC processing on the target queue to reduce occurrence of packet loss.
In an example, considering that after the PFC processing is triggered, the switch needs to send a pause frame to the previous-hop device to notify the previous-hop device to suspend sending of the priority packet, and in this process, the previous-hop device will continue to send the priority packet to the switch, so to ensure that the PFC is valid and no packet is lost, the second preset threshold for triggering the PFC processing needs to ensure that the remaining buffer value of the target queue can buffer at least the number of packets equal to "the line transmission time of one hop 2 × the maximum packet receiving rate", and accordingly, the second preset threshold may be less than or equal to the buffer value of the target queue minus "the line transmission time of one hop 2 × the maximum packet receiving rate".
In another embodiment of the present application, the detecting that the target queue length of the target egress port satisfies the PFC trigger condition after the ECN process includes:
and if the time for ECN processing reaches the preset time and the target queue length of the target output port exceeds the first preset threshold, determining that the target queue length of the target output port meets the PFC triggering condition.
In this embodiment, in order to optimize the effect of flow control, the switch may wait for a certain time (referred to as a preset time herein) when triggering the ECN process, and after the preset time, after detecting whether the target queue length of the target egress port meets the PFC triggering condition, it is ensured that the ECN takes effect before the PFC as much as possible.
In an example, after ECN processing is triggered, the switch needs to send a message with the value of the ECN field set as the value for identifying congestion occurrence to a message receiving end device (a device corresponding to a destination IP address) first, and when the message receiving end device receives the message and determines congestion occurrence according to the value of the ECN field, the message receiving end device needs to send a request for reducing a sending rate to a message sending end device (a device corresponding to a source IP address), and the message sending end device reduces the sending rate, and then the message with the reduced sending rate reaches the switch to relieve the congestion of the message, so that the ECN effective time may be determined as "transmission time of a forwarding line between the sending end device and the receiving end device × 2", and the preset time may be greater than or equal to the ECN effective time.
In this embodiment, when the time for the switch to perform ECN processing reaches the preset time, the switch may determine that the ECN is in effect, and at this time, if the switch still detects that the target queue length of the target output port exceeds the first preset threshold, the switch may determine that the ECN speed reduction cannot meet the requirement of not dropping packets, and at this time, the switch may determine that the target queue length of the target output port meets the PFC trigger condition, and perform PFC processing on the target queue.
Further, in this embodiment, considering that the length of the target queue may still be increased after the ECN processing is triggered, at this time, if the length of the target queue exceeds the second preset threshold, it may be determined that the ECN speed reduction cannot meet the requirement of no packet loss, and therefore, the switch may directly determine that the length of the target queue at the target output port meets the PFC trigger condition when the length of the target queue exceeds the second preset threshold, and perform PFC processing on the target queue without waiting for the ECN processing time to reach the preset time, so as to avoid the occurrence of packet loss.
In order to enable those skilled in the art to better understand the technical solution provided by the embodiment of the present invention, the technical solution provided by the embodiment of the present invention is described below with reference to a specific application scenario.
Referring to fig. 3, which is a schematic diagram of a specific application scenario provided in an embodiment of the present invention, as shown in fig. 3, in the application scenario, a packet sent by a server 310 sequentially passes through a switch 320, a switch 330, and a switch 340 to be forwarded, and then reaches a server 350; switch 320 is connected to server 310 through port 321 and to switch 330 through port 322; switch 330 is connected to switch 320 through port 331 and to switch 340 through port 332; switch 340 is connected to switch 330 through port 341 and to server 350 through port 342.
It is assumed that messages transmitted from the server 310 to the server 350 are all messages with the same priority, and a queue corresponding to the message is a target queue.
The following description will take the packet forwarding control processing flow of the switch 330 as an example.
Example one
As shown in fig. 4, in this embodiment, the packet forwarding control processing flow of the switch 320 may include the following steps:
in step 401, the switch 330 detects the target queue length of the port 332. If the length of the target queue exceeds the first preset threshold, go to step 402; otherwise, go to step 401.
The first preset threshold is a maximum cache value required for forwarding at a normal line speed by the switch chip of the switch 330.
Step 402, the switch 330 performs ECN processing on the message of the target queue.
In this embodiment, when the switch 330 detects that the target queue length of the port 332 exceeds the first preset threshold, the switch 330 may perform ECN processing on the packet of the target queue to relieve congestion.
Step 403, the switch 330 detects the length of the target queue of the port 332, and if the length does not exceed a first preset threshold, the step 401 is switched to; if the first preset threshold is exceeded but the second preset threshold is not exceeded, go to step 402; if the second predetermined threshold is exceeded, go to step 404.
The second preset threshold is the cache value of the target queue minus one-hop line transmission time 2 × maximum packet receiving rate.
In this embodiment, after the switch 330 ECN processes the message of the target queue, the switch 330 may continue to check the target queue length of the port 332 to determine whether the congestion is relieved or increased.
In this embodiment, when the switch 330 detects that the length of the target queue does not exceed the first preset threshold after performing ECN processing on the packet in the target queue of the port 332, it may determine that the congestion is relieved, and at this time, the switch 330 may not perform ECN processing on the packet in the target queue of the port 332 any more.
When the switch 330 detects that the length of the target queue exceeds the first preset threshold but does not exceed the second preset threshold after performing ECN processing on the packet in the target queue of the port 332, the switch 330 may continue performing ECN processing on the packet in the target queue of the port 332.
Step 404, performing PFC processing on the target queue of port 332.
In this embodiment, after the switch 330 performs ECN processing on the packet in the target queue of the port 332, when it is detected that the length of the target queue exceeds the second preset threshold, the switch 330 may determine that the ECN slowdown cannot meet a requirement of not dropping the packet, and at this time, the switch 330 may perform PFC processing on the target queue of the port 332 to avoid the occurrence of packet dropping.
Example two
As shown in fig. 5, in this embodiment, the packet forwarding control processing flow of the switch 320 may include the following steps:
in step 501, the switch 330 detects the target queue length of the port 332. If the length of the target queue exceeds the first preset threshold, go to step 402; otherwise, go to step 401.
The first preset threshold is a maximum cache value required for forwarding at a normal line speed by the switch chip of the switch 330.
Step 502, the switch 330 starts a delay timer, and the timing duration is a preset time.
The preset time is "forwarding line transmission time from server 310 to server 350 × 2".
Step 503, the switch 330 performs ECN processing on the message of the target queue.
In this embodiment, when the switch 330 detects that the target queue length of the port 332 exceeds the first preset threshold, the switch 330 may start a delay timer on the one hand to ensure that the PFC processing trigger is after the ECN is in effect; on the other hand, ECN processing may be performed on the packets of the target queue to alleviate congestion.
In step 504, switch 330 detects the target queue length of port 332. If the length of the target queue does not exceed the first preset threshold before the delay timer is overtime, the delay timer is cancelled, and the process goes to step 501; if the length of the target queue exceeds the first preset threshold and does not exceed the second preset threshold before the delay timer is overtime, go to step 503; if the target queue length exceeds the second preset threshold before the delay timer is overtime, go to step 505; if the delay timer is over time and the target queue length exceeds the first predetermined threshold, go to step 505.
In this embodiment, when the target queue length of the port 332 drops to a value that does not exceed the first preset threshold before the delay timer expires, the switch 330 may determine congestion release, and at this time, the switch 330 may cancel the delay timer and no longer perform ECN processing on the packet of the target queue of the port 332.
When the length of the target queue of the port 332 is kept between the first preset threshold (greater than the first preset threshold) and the second preset threshold (less than or equal to the second preset threshold) before the delay timer expires, the switch 330 may continue to perform ECN processing on the packet of the target queue of the port 332.
Step 505, PFC processing is performed on the target queue of port 332.
In this embodiment, when the target queue length of the port 332 rises to exceed the second preset threshold before the delay timer expires, the switch 330 may determine that the ECN speed reduction cannot meet the requirement of no packet loss, and at this time, the switch 330 may perform PFC processing on the target queue of the port 332 to avoid occurrence of packet loss.
When the length of the target queue of the port 332 still exceeds the first preset threshold when the delay timer is overtime, the switch 330 may determine that the ECN speed reduction cannot meet the requirement of no packet loss, and at this time, the switch 330 may perform PFC processing on the target queue of the port 332 to avoid occurrence of packet loss.
As can be seen from the above description, in the technical solution provided in the embodiment of the present invention, when it is detected that the length of the target queue at the target egress port exceeds the first preset threshold, ECN processing is performed on the message of the target queue; if the length of the target queue at the target output port meets the PFC triggering condition after ECN processing, PFC processing is carried out on the target queue, the ECN is guaranteed to be triggered preferentially under the condition that the ECN and the PFC are enabled at the same time, and the utilization rate of bandwidth is guaranteed while flow control is carried out; meanwhile, the occurrence of packet loss can be reduced through PFC.
Referring to fig. 6, a schematic structural diagram of a message forwarding control apparatus according to an embodiment of the present invention is provided, where the apparatus may be applied to a target access device in the foregoing method embodiment, and as shown in fig. 7, the apparatus may include:
a detecting unit 610, configured to detect whether a target queue length of a target egress port exceeds a first preset threshold;
a processing unit 620, configured to perform ECN processing on a packet in a target queue when the detection unit 610 detects that the length of the target queue at the target output port exceeds a first preset threshold;
the detecting unit 610 is further configured to detect whether a target queue length at the target output port meets a PFC trigger condition after the ECN processing;
the processing unit 620 is further configured to perform PFC processing on the target queue if the target queue length of the target output port meets the PFC trigger condition.
In an optional embodiment, the detecting unit 610 is specifically configured to, after the ECN processing, determine that the target queue length of the detected target output port satisfies the PFC trigger condition if it is detected that the target queue length of the target output port exceeds a second preset threshold; and the second preset threshold is larger than the first preset threshold.
In an optional embodiment, the detecting unit 610 is specifically configured to determine that the target queue length of the detected target output port meets the PFC trigger condition if the time for performing the ECN processing reaches the preset time and it is detected that the target queue length of the target output port exceeds a first preset threshold.
In an optional embodiment, the detecting unit 610 is further configured to determine that the target queue length of the target output port meets the PFC trigger condition if it is detected that the target queue length of the target output port exceeds a second preset threshold before the time for performing the ECN processing reaches the preset time; and the second preset threshold is greater than the first preset threshold.
Referring to fig. 7 together, which is a schematic structural diagram of another message forwarding apparatus provided in the embodiment of the present invention, as shown in fig. 7, on the basis of the message forwarding apparatus shown in fig. 6, the message forwarding apparatus shown in fig. 7 may further include:
a timer unit 630, configured to start a delay timer when the detection unit 610 detects that the target queue length of the target output port exceeds a first preset threshold, where a timing duration of the delay timer is a preset time;
the timer unit 630 is further configured to cancel the delay timer if the detection unit 610 detects that the target queue length of the target egress port does not exceed the first preset threshold before the delay timer expires.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the invention. One of ordinary skill in the art can understand and implement it without inventive effort.
As can be seen from the above embodiments, when it is detected that the length of the target queue at the target egress port exceeds the first preset threshold, ECN processing is performed on the message of the target queue; if the length of a target queue at a target output port meets a PFC triggering condition after ECN processing, PFC processing is carried out on the target queue, the ECN is guaranteed to be triggered preferentially under the condition that the ECN and the PFC are enabled simultaneously, and the utilization rate of bandwidth is guaranteed while flow control is carried out; meanwhile, the occurrence of packet loss can be reduced through PFC.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (6)

1. A message forwarding control method is characterized by comprising the following steps:
when the length of a target queue of a target output port exceeds a first preset threshold, carrying out Explicit Congestion Notification (ECN) processing on a message of the target queue;
if the length of the target queue at the target output port meets the flow control PFC triggering condition based on the priority after the ECN is processed, performing PFC processing on the target queue;
wherein, after the ECN processing, detecting that the target queue length at the target output port meets a PFC trigger condition includes:
after the ECN processing, if the target queue length of the target output port is detected to exceed a second preset threshold, determining that the target queue length of the target output port meets a PFC triggering condition; wherein the second preset threshold is greater than the first preset threshold;
or the like, or, alternatively,
and if the time for carrying out the ECN processing reaches the preset time and the target queue length of the target output port exceeds the first preset threshold, determining that the target queue length of the target output port meets the PFC triggering condition.
2. The method of claim 1, further comprising:
if the target queue length of the target output port exceeds a second preset threshold before the ECN processing time reaches the preset time, determining that the target queue length of the target output port meets PFC triggering conditions; wherein the second preset threshold is greater than the first preset threshold.
3. The method of claim 1, wherein when it is detected that a target queue length of a target egress port exceeds a first preset threshold, the method further comprises:
starting a delay timer, wherein the timing duration of the delay timer is the preset time;
the method further comprises the following steps:
and if the target queue length of the target exit port does not exceed a first preset threshold before the delay timer is overtime, canceling the delay timer.
4. A message forwarding control apparatus, comprising:
the detection unit is used for detecting whether the length of a target queue at a target output port exceeds a first preset threshold or not;
the processing unit is used for performing Explicit Congestion Notification (ECN) processing on the message of the target queue when the detection unit detects that the length of the target queue at the target output port exceeds a first preset threshold;
the detection unit is further configured to detect whether a target queue length of the target output port meets a priority-based flow control PFC trigger condition after the ECN processing;
the processing unit is further configured to perform PFC processing on the target queue if the target queue length at the target output port meets a PFC trigger condition;
the detection unit is specifically configured to determine that the target queue length of the target output port satisfies a PFC trigger condition if it is detected that the target queue length of the target output port exceeds a second preset threshold after the ECN processing; wherein the second preset threshold is greater than the first preset threshold; or, if the time for performing the ECN processing reaches a preset time and it is detected that the target queue length of the target output port exceeds the first preset threshold, it is determined that the target queue length of the target output port satisfies a PFC trigger condition.
5. The apparatus of claim 4,
the detection unit is further configured to determine that the detected target queue length of the target output port meets a PFC trigger condition if it is detected that the target queue length of the target output port exceeds a second preset threshold before the time for performing the ECN processing reaches the preset time; wherein the second preset threshold is greater than the first preset threshold.
6. The apparatus of claim 4, further comprising:
the timer unit starts a delay timer when the detection unit detects that the length of the target queue at the target output port exceeds a first preset threshold, wherein the timing duration of the delay timer is the preset time;
the timer unit is further configured to cancel the delay timer if the detection unit detects that the target queue length of the target egress port does not exceed a first preset threshold before the delay timer expires.
CN201810990731.3A 2018-08-28 2018-08-28 Message forwarding control method and device Active CN108989235B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810990731.3A CN108989235B (en) 2018-08-28 2018-08-28 Message forwarding control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810990731.3A CN108989235B (en) 2018-08-28 2018-08-28 Message forwarding control method and device

Publications (2)

Publication Number Publication Date
CN108989235A CN108989235A (en) 2018-12-11
CN108989235B true CN108989235B (en) 2022-11-01

Family

ID=64547409

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810990731.3A Active CN108989235B (en) 2018-08-28 2018-08-28 Message forwarding control method and device

Country Status (1)

Country Link
CN (1) CN108989235B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110048957B (en) * 2019-04-25 2022-08-26 新华三技术有限公司 Flow control method, flow control device and virtual extended access system
CN112104562B (en) 2019-06-17 2023-04-18 华为技术有限公司 Congestion control method and device, communication network and computer storage medium
CN110784415B (en) * 2019-11-04 2022-08-26 苏州盛科通信股份有限公司 ECN quick response method and device
CN111404826B (en) * 2020-03-23 2022-04-22 苏州盛科通信股份有限公司 Flow planning method and device based on output port feedback
CN111526097B (en) * 2020-07-03 2020-10-30 新华三半导体技术有限公司 Message scheduling method, device and network chip
CN113900972A (en) * 2020-07-06 2022-01-07 华为技术有限公司 Data transmission method, chip and equipment
CN112787951B (en) * 2020-08-07 2024-02-27 中兴通讯股份有限公司 Congestion control method, apparatus, device and computer readable storage medium
CN112491736B (en) * 2020-11-13 2022-11-11 锐捷网络股份有限公司 Congestion control method and device, electronic equipment and storage medium
CN112887218B (en) * 2020-12-22 2022-10-21 新华三技术有限公司 Message forwarding method and device
CN115550264A (en) * 2021-06-30 2022-12-30 中兴通讯股份有限公司 Message processing method and device, electronic equipment and computer readable medium
CN113872885B (en) * 2021-09-30 2024-02-09 新华三信息安全技术有限公司 Method and equipment for controlling message forwarding

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1695337A (en) * 2002-11-18 2005-11-09 艾利森电话股份有限公司 Data unit sender and method of controlling the same
CN101170488A (en) * 2006-10-25 2008-04-30 华为技术有限公司 Service network congestion control method and device
WO2012068864A1 (en) * 2010-11-26 2012-05-31 中兴通讯股份有限公司 Method and apparatus for ethernet congestion control
CN107948103A (en) * 2017-11-29 2018-04-20 南京大学 A kind of interchanger PFC control methods and control system based on prediction

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9356868B2 (en) * 2013-08-23 2016-05-31 Broadcom Corporation Congestion detection and management at congestion-tree roots
US9674090B2 (en) * 2015-06-26 2017-06-06 Microsoft Technology Licensing, Llc In-line network accelerator
US10516620B2 (en) * 2016-05-18 2019-12-24 Marvell Israel (M.I.S.L) Ltd. Congestion avoidance in a network device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1695337A (en) * 2002-11-18 2005-11-09 艾利森电话股份有限公司 Data unit sender and method of controlling the same
CN101170488A (en) * 2006-10-25 2008-04-30 华为技术有限公司 Service network congestion control method and device
WO2012068864A1 (en) * 2010-11-26 2012-05-31 中兴通讯股份有限公司 Method and apparatus for ethernet congestion control
CN107948103A (en) * 2017-11-29 2018-04-20 南京大学 A kind of interchanger PFC control methods and control system based on prediction

Also Published As

Publication number Publication date
CN108989235A (en) 2018-12-11

Similar Documents

Publication Publication Date Title
CN108989235B (en) Message forwarding control method and device
US11916782B2 (en) System and method for facilitating global fairness in a network
JP3970138B2 (en) Congestion control device in Ethernet switch
US11070481B2 (en) Predictive management of a network buffer
JP5967090B2 (en) COMMUNICATION SYSTEM, CONTROL DEVICE, NODE CONTROL METHOD, AND PROGRAM
US20060203730A1 (en) Method and system for reducing end station latency in response to network congestion
TWI543568B (en) Reducing headroom
JP7212441B2 (en) Flow management in networks
CN112104562B (en) Congestion control method and device, communication network and computer storage medium
Zhang et al. Modeling and solving TCP incast problem in data center networks
US6771601B1 (en) Network switch having source port queuing and methods, systems and computer program products for flow level congestion control suitable for use with a network switch having source port queuing
WO2021083160A1 (en) Data transmission method and apparatus
JP2008118281A (en) Communication device
JP4382830B2 (en) Packet transfer device
CN108243117B (en) Flow monitoring method and device and electronic equipment
JP4890285B2 (en) Network relay device
CN113114578B (en) Traffic congestion isolation method, device and system
JP4838739B2 (en) Router buffer management method and router using the management method
JP4946902B2 (en) COMMUNICATION CONTROL DEVICE, COMMUNICATION CONTROL METHOD, COMMUNICATION CONTROL PROGRAM
JP4259349B2 (en) Traffic shaping method and traffic shaping device
JP5617625B2 (en) Data relay apparatus and communication priority control method
JP6192056B2 (en) Congestion control system and method
JP2008294520A (en) Frame distribution system
JP2005354514A (en) Packet relay device in ring type transmission device
CN116436863A (en) Message scheduling method, network device, storage medium and computer program product

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