Transmission rate adjustment method and network device
AssigneeHuawei Technologies Co., Ltd.
InventorQiwen Zhong
Life of this patent
Estimating the term…
Abstract
A transmission rate adjustment method and a network device, the method including obtaining, by a network device, a target data stream, where the target data stream includes a first data packet, and where the first data packet includes at least two non-idle units, and inserting or deleting a padding unit between two non-idle units of the at least two non-idle units, in response to bandwidth adjustment needing to be performed, and according to a value of the bandwidth adjustment that needs to be performed, where the padding unit provides adaption to a difference between a bandwidth of an upstream transmission channel of the network device and a bandwidth of a downstream transmission channel of the network device.
Claims20
A transmission rate adjustment method, comprising:
- obtaining, by a first by a first network device, from a second network device, a target data stream, wherein the target data stream comprises a first data packet, and wherein the first data packet comprises at least two non-idle units and at least one padding unit;
- determining, in response to obtaining the target data stream, whether to perform a bandwidth rate adjustment for the target data stream according to a difference between a first bandwidth rate of an upstream transmission channel of the first network device and a second bandwidth rate of a downstream transmission channel of the first network device;
- and
- performing, in response to determining to perform the bandwidth rate adjustment for the target data stream:
- inserting or deleting a padding unit between two non-idle units of the at least two non-idle units according the difference between the first bandwidth rate and the second bandwidth rate;
- wherein the inserting or deleting of the padding unit provides adaption to the difference between the first bandwidth rate and the second bandwidth rate;
- and
- wherein the first data packet, after the inserting or deleting, comprises at least two non-idle units and at least one padding unit.
A network device, comprising:
- a bus;
- a communications interface;
- a processor;
- and
- a non-transitory computer-readable storage medium,
- wherein the processor is connected to the non-transitory computer-readable storage medium and the communications interface by the bus, and
- wherein the non-transitory computer-readable storage medium stores a program to be executed by the processor, the program including instructions for:
- obtaining, from another network device, a target data stream, wherein the target data stream comprises a first data packet, and wherein the first data packet comprises at least two non-idle units and at least one padding unit;
- determining, in response to obtaining the target data stream, whether to perform a bandwidth rate adjustment for the target data stream according to a difference between a first bandwidth rate of an upstream transmission channel of the network device and a second bandwidth rate of a downstream transmission channel of the network device;
- and
- performing, in response to determining to perform the bandwidth rate adjustment for the target data stream:
- inserting or deleting a padding unit between two non-idle units of the at least two non-idle units according to the difference between the first bandwidth rate and the second bandwidth rate;
- wherein the inserting or deleting of the padding unit provides adaption to the difference between the first bandwidth rate and the second bandwidth rate,
- wherein the first data packet after the inserting or deleting comprises at least two non-idle units and at least one padding unit.
A non-transitory computer-readable storage medium storing a program comprising instructions which, when executed by a computer of a network device, cause the computer to perform:
- obtaining, from another network device, a target data stream, wherein the target data stream comprises a first data packet, and wherein the first data packet comprises at least two non-idle units and at least one padding unit;
- determining, in response to obtaining the target data stream, whether to perform a bandwidth rate adjustment for the target data stream based on a difference between a first bandwidth rate of an upstream transmission channel of the network device and a second bandwidth rate of a downstream transmission channel of the network device;
- performing, in response to determining to perform the bandwidth rate adjustment for the target data stream:
- inserting or deleting a padding unit between two non-idle units of the at least two non-idle units, according to the difference between the first bandwidth rate and the second bandwidth rate;
- wherein the inserting or deleting of the padding unit provides adaption to the difference between the first bandwidth rate and the second bandwidth rate;
- and
- wherein the first data packet after the inserting or deleting comprises at least two non-idle units and at least one padding unit.
Dependencies are inferred from the claim text.