Patent ID: 8553708

Claim:
A bandwidth allocation method, comprising: obtaining traffic of a member port belonging to a binding link; and allocating corresponding bandwidth to the member port according to total bandwidth of a centralized scheduler and the traffic of the member port; establishing the centralized scheduler according to a bandwidth limit value of the binding link wherein the total bandwidth of the centralized scheduler is the bandwidth limit value of the binding link and generating by the centralized scheduler a first number of tokens corresponding to the total bandwidth; wherein the allocating the corresponding bandwidth to the member port according to the total bandwidth of the centralized scheduler and the traffic of the member port comprises: storing, by the centralized scheduler, first identification information of the member port, and if traffic of a member port polled by the centralized scheduler according to the first identification information does not exceed the total bandwidth, allocating, by the centralized scheduler, a second number of tokens corresponding to the traffic of the polled member port to the polled member port; and if the traffic of the member port polled by the centralized scheduler according to the first identification information exceeds the total bandwidth, allocating, by the centralized scheduler, the first number of tokens to the polled member port, wherein traffic of non-polled member ports is stored in their respective buffers to wait for polling; or storing, by the member port, second identification information of the centralized scheduler, and sending a scheduling request message to the centralized scheduler corresponding to the second identification information, and if traffic of a member port requesting scheduling does not exceed second bandwidth currently allowed by the centralized scheduler, allocating, by the centralized scheduler, the second number of tokens corresponding to the traffic of the member port requesting scheduling to the member port requesting scheduling; and if the traffic of the member port requesting scheduling exceeds the second bandwidth currently allowed by the centralized scheduler, allocating, by the centralized scheduler, a third number of tokens corresponding to the second bandwidth to the member port requesting scheduling.