Message speed limiting method based on token barrel
A token bucket and message technology, applied in digital transmission systems, electrical components, transmission systems, etc., can solve the problems that are not conducive to reducing message forwarding delay and low efficiency, so as to reduce forwarding delay time and improve accuracy Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0029] The method of the present invention will be described in detail below in conjunction with the accompanying drawings.
[0030] The method for limiting the speed of a message based on a token bucket in the present invention, specifically, every time a data segment of a fixed length in a message is received, an operation of filling a token is triggered, and a certain number of tokens are filled into the token bucket. token. Then judge whether the token in the token bucket exceeds the length of the message data segment, if the number of tokens is greater than or equal to the length of the data segment, then allow the data segment to pass, and subtract the length of the message data segment from the token bucket The corresponding number of tokens; if the number of tokens is less than the length of the message data segment, the data segment will be discarded, and the entire message to which the data segment belongs will be discarded, and the subsequent data segments of the me...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 