The congestion control method comprises the following steps: a first device determines that
network congestion occurs when a first
data stream is forwarded at an output port of the first device; in response to
network congestion occurring in forwarding the first
data stream at the output port, the first device sends a first message to a second device, the first message is used for requesting the second device to execute congestion control
processing for the first
data stream, and the second device is an upstream device of the first device in a transmission path of the first data
stream. According to the scheme, the flow control of the data flow
granularity is realized through the first message, the
fineness of congestion control is improved, and the flow control in a
wide area network scene becomes possible. And the problems of wire end blockage,
deadlock, congestion
diffusion and the like brought to the network by the traditional PFC technology are avoided. According to the embodiment of the invention, the congestion control
processing is performed on the first data
stream instead of performing the sending stop
processing on the data of the whole
queue, so that the network under-
throughput can be effectively avoided, the association degree of the congestion control and the service is also improved, and the user experience is effectively improved.