Data transmission method, device and system
AssigneeHuawei Technologies Co., Ltd.
InventorWumao Chen
Life of this patent
Estimating the term…
Abstract
A data transmission method is provided, which includes: obtaining a current queue length of a queue corresponding to an output port; when the current queue length meets a back-pressure requirement, determining a back-pressure priority corresponding to the current queue length according to the current queue length and a mapping relationship between a preset queue length and the back-pressure priority, and generating back-pressure information, where the back-pressure information inhibits a line card from sending data with a data priority less than or equal to the back-pressure priority to the output port; and sending the back-pressure information to a line card.
Claims11
A data transmission method, comprising:
- obtaining a current queue length of a queue corresponding to an output port;
- when the current queue length meets a back-pressure requirement, determining a back-pressure priority corresponding to the current queue length according to the current queue length and a mapping relationship between a preset queue length and the back-pressure priority, and generating back-pressure information, wherein the back-pressure information inhibits a line card to send data with a data priority less than or equal to the back-pressure priority to the output port;
- and
- sending the back-pressure information to a line card, so that the line card stops sending the data with the data priority less than or equal to the back-pressure priority to the output port after receiving the back-pressure information.
A data transmission device, comprising:
- a current queue length obtaining module, configured to obtain a current queue length of a queue corresponding to an output port;
- a back-pressure information generation module, configured to, when the current queue length meets a back-pressure requirement, determine a back-pressure priority corresponding to the current queue length according to the current queue length and a mapping relationship between a preset queue length and the back-pressure priority, and generate back-pressure information, wherein the back-pressure information inhibits a line card from sending data with a data priority less than or equal to the back-pressure priority to the output port;
- and
- a back-pressure information sending module, configured to send the back-pressure information to a line card, so that the line card stops sending the data with the data priority less than or equal to the back-pressure priority to the output port after receiving the back-pressure information.
A data transmission system, comprising:
- a line card and a data transmission device, wherein
- the line card is configured to send data to the data transmission device, and transmit data according to back-pressure information sent by the data transmission device;
- and
- the data transmission device is configured to obtain a current queue length of a queue corresponding to an output port;
- when the current queue length meets a back-pressure requirement, determine a back-pressure priority corresponding to the current queue length according to the current queue length and a mapping relationship between a preset queue length and the back-pressure priority, and generate back-pressure information, wherein the back-pressure information inhibits a line card from sending data with a data priority less than or equal to the back-pressure priority to the output port;
- and send the back-pressure information to a line card, so that the line card stops sending the data with the data priority less than or equal to the back-pressure priority to the output port after receiving the back-pressure information.
Dependencies are inferred from the claim text.