Message forwarding method and device based on token bucket

A packet forwarding and token bucket technology, applied in the field of communication, can solve the problems of allocation, implementation trouble, and poor definition of the speed limit threshold, and achieve the effect of infinite scalability, low complexity and high efficiency.

Active Publication Date: 2009-10-14
NEW H3C TECH CO LTD
View PDF0 Cites 26 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] One way is to set a token bucket for low-priority common services, high-priority services do not need to consume tokens, so as to control the forwarding speed of low-priority common services within a certain threshold range to ensure high-priority The bandwidth requirements of the business, the defect of this method is that the speed limit threshold is not well defined, if it is too high, the bandwidth utilization rate will be low, and if it is too low, it will not be able to guarantee the bandwidth requirements of high-priority services;
[0005] Another way is to set token buckets for both normal priority and high priority service packets. When the number of tokens in the token bucket is less than the number of tokens required by the data packets to be forwarded, the Whether the packet is a high-priority data packet is processed accordingly. If it is, it is forwarded and the number of tokens that can be used in the token bucket is counted as a negative value. Otherwise, the pending data packet is discarded. Although the method can reduce the line bandwidth occupied by ordinary priority services as a whole, thereby ensuring the bandwidth requirements of high priority services, it also sacrifices bandwidth utilization, especially when the bandwidth is tight, and cannot guarantee high Bandwidth requirements for priority services;
[0006] Another way is to periodically monitor the actual bandwidth used by high-priority services to adjust the update rate of token buckets for ordinary priority services. The sum of the bandwidths of high-priority and low-priority token buckets is the total available bandwidth. In essence, it improves the bandwidth of high-priority services by limiting the bandwidth of ordinary priority services. Compared with the above two methods, there is not much improvement in improving bandwidth utilization and ensuring the bandwidth of high-priority services. It is troublesome to monitor high-priority bandwidth
[0007] To sum up, the existing methods for managing packet bandwidth requirements have the disadvantages of being unable to allocate bandwidth reasonably, having low bandwidth utilization, and being unable to effectively guarantee the bandwidth requirements of high-priority services.

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
  • Message forwarding method and device based on token bucket
  • Message forwarding method and device based on token bucket
  • Message forwarding method and device based on token bucket

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] Specific embodiments of the present invention will be described in detail below. It should be noted that the embodiments described here are for illustration only, and are not intended to limit the present invention.

[0043] The idea of ​​the present invention is to forward the message by globally setting and updating the token bucket on the basis of message classification, so as to maximize bandwidth utilization and ensure high-priority bandwidth requirements.

[0044]Specifically, the present invention sets token buckets based on priorities, and respectively sets token buckets of different priorities according to the priority level. The initial capacity of token buckets of each priority level is all available bandwidth, that is to say, in In the initial stage, no matter which priority packet arrives, it will have all the available bandwidth.

[0045] When a message of a certain priority arrives, it passes through the token bucket of the corresponding priority to chec...

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 invention relates to a message forwarding method and a device thereof based on a token bucket. The method comprises the following steps: token buckets are set based on priority level; the initial capacity of each token bucket of a different priority level is the total available bandwidth; and when receiving a message of certain priority level, the device searches the token bucket matched with the message to forward the message. If the token number of the token bucket of the priority level meets the requirements for the message forwarding, the device then forwards the message; simultaneously the capacities of the token bucket of the priority level and the token bucket of a lower priority level are updated, which equal to the current capacities thereof minus the number of the token used for the message forwarding, and then the capacities thereof after updating are regarded as the current capacities. The message forwarding method and the device thereof realize the low complication and high efficiency and are easy to expand the priority level.

Description

technical field [0001] The invention relates to the communication field, in particular to a token bucket-based message forwarding method and device. Background technique [0002] In a communication network, different real-time services are usually divided into different priority services for forwarding, so as to ensure high-priority bandwidth requirements. In the prior art, two methods are mainly used to realize the above-mentioned bandwidth management and priority management of different services, one is CBQ (Class Based Queuing, class-based queue) technology, which mainly uses different priority queues according to the usage Different scheduling and detection ensure that high-priority packets can be forwarded quickly, while low-priority packets can also have controllable delay. However, because the above method is implemented through queues, a large amount of messages need to be cached, so it takes up a large amount of memory. For some small products such as wireless acce...

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
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/56H04L47/22
Inventor 傅嘉嘉董君
Owner NEW H3C 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