Bandwidth control method and apparatus, and device
AssigneeHuawei Technolgoies Co., Ltd.
InventorsXianyin Xin, Bo Zhao, Guilin Sun
Life of this patent
Estimating the term…
Abstract
A bandwidth control method, apparatus, and a device, in the field of computer technologies includes determining an upper bandwidth limit of the device when providing a service for registered clients, resetting an upper bandwidth limit of each client based on a working status of each client and the upper bandwidth limit of the device, and reallocating a bandwidth to each client based on the upper bandwidth limit of each client.
Claims17
A bandwidth control method, comprising:
- obtaining a first upper bandwidth limit of a network device, wherein the first upper bandwidth limit indicates a maximum data read/write amount of the network device per unit of time, and wherein the network device provides a service for a plurality of clients that have registered with the network device;
- resetting a second upper bandwidth limit of each of the plurality of clients based on the first upper bandwidth limit and a working status of each of the plurality of clients, wherein the working status comprises an offline state, an on-hook state, and a transmission state, wherein a client of the plurality of clients has not established a connection to the network device in the offline state, wherein a client of the plurality of clients has established the connection to the network device and a bandwidth is less than a preset threshold bandwidth in the on-hook state, and wherein a client of the plurality of clients has established the connection to the network device and the bandwidth is greater than the preset threshold bandwidth in the transmission state, wherein resetting the second upper bandwidth limit comprises:
- detecting a second bandwidth of each of the plurality of clients;
- obtaining, a level-2 bandwidth allocation value of each of the plurality of clients based on the first upper bandwidth limit, the working status, and the second bandwidth, wherein each of the plurality of clients comprises the level-2 bandwidth allocation value when bandwidth utilization of the network device is at a highest level, wherein the level-2 bandwidth allocation value is set to the second bandwidth when the second bandwidth is less than the second upper bandwidth limit of the client, and wherein the level-2 bandwidth allocation value is increased when the second bandwidth approximates the second upper bandwidth limit;
- and
- resetting the second upper bandwidth limit based on the level-2 bandwidth allocation value;
- and
- reallocating a first bandwidth to each of the plurality of clients based on the second upper bandwidth limit.
A network device, comprising:
- a memory configured to store data and a program;
- and
- a processor coupled to the memory and configured to invoke the program, wherein the program is configured to cause the processor to:
- provide a service for a plurality of clients that have registered with the network device;
- obtain a first upper bandwidth limit of the network device, wherein the first upper bandwidth limit indicates a maximum data read/write amount of the network device per unit of time;
- reset a second upper bandwidth limit of each of the plurality of clients based on the first upper bandwidth limit and a working status of each of the plurality of clients, wherein the working status comprises an offline state, an on-hook state, and a transmission state, wherein a client of the plurality of clients has not established a connection to the network device in the offline state, wherein a client of the plurality of clients has established the connection to the network device and a bandwidth is less than a preset threshold bandwidth in the on-hook state, and wherein a client of the plurality of clients has established the connection to the network device and the bandwidth is greater than the preset threshold bandwidth in the transmission state, wherein resetting the second upper bandwidth limit comprises:
- detecting a second bandwidth of each of the plurality of clients;
- obtaining a level-2 bandwidth allocation value of each of the plurality of clients based on the first upper bandwidth limit, the working status, and the second bandwidth, wherein each of the plurality of clients comprises the level-2 bandwidth allocation value when bandwidth utilization of the network device is at a highest level, wherein the level-2 bandwidth allocation value is set to the second bandwidth when the second bandwidth is less than the second upper bandwidth limit of the client, and wherein the level-2 bandwidth allocation value is increased when the second bandwidth approximates the second upper bandwidth limit;
- and
- resetting the second upper bandwidth limit based on the level-2 bandwidth allocation value;
- and
- reallocate a first bandwidth to each of the plurality of clients based on the second upper bandwidth limit.
A computer program product comprising computer-executable instructions for storage on a non-transitory computer-readable medium that, when executed by a processor of an apparatus, cause the apparatus to:
- obtain a first upper bandwidth limit of a network device, wherein the first upper bandwidth limit indicates a maximum data read/write amount of the network device per unit of time, and wherein the network device provides a service for a plurality of clients that have registered with the network device;
- reset a second upper bandwidth limit of each of the plurality of clients based on the first upper bandwidth limit and a working status of each of the plurality of clients, wherein the working status comprises an offline state, an on-hook state, and a transmission state, wherein a client of the plurality of clients has not established a connection to the network device in the offline state, wherein a client of the plurality of clients has established the connection to the network device and a bandwidth is less than a preset threshold bandwidth in the on-hook state, and wherein a client of the plurality of clients has established the connection to the network device and the bandwidth is greater than the preset threshold bandwidth in the transmission state, wherein resetting the second upper bandwidth limit comprises:
- detecting a second bandwidth of each of the plurality of clients;
- obtaining a level-2 bandwidth allocation value of each of the plurality of clients based on the first upper bandwidth limit, the working status, and the second bandwidth, wherein each of the plurality of clients comprises the level-2 bandwidth allocation value when bandwidth utilization of the network device is at a highest level, wherein the level-2 bandwidth allocation value is set to the second bandwidth when the second bandwidth is less than the second upper bandwidth limit of the client, and wherein the level-2 bandwidth allocation value is increased when the second bandwidth approximates the second upper bandwidth limit;
- and
- resetting the second upper bandwidth limit based on the level-2 bandwidth allocation value;
- and
- reallocate a first bandwidth to each of the plurality of clients based on the second upper bandwidth limit.
Dependencies are inferred from the claim text.