Token bucket management method and device
The invention provides a token bucket management method and device. The method comprises the following steps of: receiving an operation command of configuring a token addition rate triggered by a user; analyzing the token addition rate configured by the user from the operation command, and determini...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention provides a token bucket management method and device. The method comprises the following steps of: receiving an operation command of configuring a token addition rate triggered by a user; analyzing the token addition rate configured by the user from the operation command, and determining the analyzed token addition rate as a first addition rate CIR; according to the first addition rate CIR, determining a second addition rate CIR_new; and, according to the second addition rate CIR_new, adding tokens into a preset number of token buckets, such that the number of the tokens in the token buckets corresponding to a message is modified without concurrent lock protection when CPU_C processors forward the message. According to the token bucket management method and device disclosed by the invention, by means of the method of changing the token addition rate and analyzing the token buckets, the token buckets are correspondingly processed; and thus, the plurality of processors can simultaneously access a |
---|