Method and device for refreshing token bucket in flow limiting technology

A traffic limitation and token bucket technology, applied in the field of data communication, can solve the problems of consuming large random storage space, token overflow, affecting the realization of logical functions, etc., to avoid excessive traffic bursts and avoid bandwidth loss.

Active Publication Date: 2007-07-25
HUAWEI TECH CO LTD
View PDF0 Cites 45 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0013] First, the time interval for refreshing the tokens in the token buckets corresponding to the same queue is too long; because each refresh in the prior art refreshes the tokens in the token buckets corresponding to all queues once, so that the same queue is refreshed twice The time interval corresponding to the token in the token bucket is at least the total number of queues multiplied by the system clock cycle;
[0014] Second, since the number of tokens to be filled is proportional to the refresh time interval, too long a refresh time interval will inevitably result in too many tokens to be filled each time, thus requiring that the bucket depth of the token bucket must be large enough, that is, the token The bucket capacity must be large enough, but if the token bucket capacity is too large, it will consume a large amount of random storage space (RAM), resulting in a waste of system resources;
[0015] Third, too many tokens need to be filled each time. If the capacity of the token bucket is not enough, it is easy to cause the token bucket to be unable to hold these tokens, resulting in token overflow and bandwidth loss.
[0016] To illustrate the above problems, for example, the total number of queues is 64K, the system clock frequency is

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for refreshing token bucket in flow limiting technology
  • Method and device for refreshing token bucket in flow limiting technology
  • Method and device for refreshing token bucket in flow limiting technology

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0041] The embodiments of the present invention provide a method and device for refreshing a token in a traffic restriction, the core idea of ​​which is as follows: in the process of data packet queuing and scheduling, the queue number of the queue is obtained as the premise of triggering the token bucket refresh process each time , which solves the problem that the refresh time interval of the same token bucket is too long in the prior art.

[0042] The main idea of ​​the method provided by the embodiments of the present invention has been briefly introduced above, and the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments.

[0043] Embodiment 1 of the present invention provides a method for refreshing a token bucket applied in a data packet queuing and scheduling process. The method flow is shown in FIG. 3 , including:

[0044] Step 301: Obtain the queue number of the queue;

[...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The method is used in the process of packet queuing and scheduling, and comprises: getting the queue number; according to queue number, getting the amount of current tokens and the amount of tokens to be filled up, both corresponds to the token-bucket; according to the amount of current tokens and the amount of token to be filled up, getting the amount of renewing tokens; renewing the amount of current tokens corresponding to the token bucket into the amount of renewing tokens. The invention also reveals an apparatus thereof.

Description

technical field [0001] The invention relates to the technical field of data communication, in particular to a method and a device for refreshing a token bucket in flow limitation technology. Background technique [0002] At present, traffic limiting technology (Shaping) is generally used in the communication field to limit the bandwidth of queue egress and make the egress traffic more uniform. The basic principle of Shaping is shown in Figure 1. Tokens are filled into the token bucket 101 at the speed set by the user. The token bucket is a very good tool for controlling data flow. The user can set the capacity of the token bucket. When the number of tokens in the bucket exceeds the capacity of the bucket, tokens are no longer filled. In Shaping technology, if there are data packets in the queue, the data packets in the queue will be dispatched out of the queue according to a certain period. If there are enough tokens in the token bucket to dispatch data packets out of the ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L12/56H04L12/801
Inventor 杜文华林郁崔靖杰施雪峰林涛
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products