A method and device for implementing token processing
A token and network processor technology, applied in transmission systems, electrical components, etc., can solve the problems of slow effective time, low adaptability, and difficulty in meeting user service quality, and achieve the effect of reducing errors
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
application example 1
[0153] Figure 5 It is the method flowchart of the first application example of the present invention, as Figure 5 shown, including:
[0154] Step 500, setting the format and sending cycle of the external message;
[0155] Step 501, determining a single token addition value according to the expected rate of service flow;
[0156] Wherein, the expected rate includes: Committed Information Rate (CIR).
[0157] Step 502, adding the value of one-time token addition to the preset external message;
[0158] Optionally, adding a single token value to the preset external message includes:
[0159] Add the one-time token addition value to the preset external message through the preset interactive interface.
[0160] Step 503, sending the external message to the network processor; in the embodiment of the present invention, the external message and the service message can be sent to the network processor at the same time, and the external message can be transmitted through a high-...
application example 2
[0173] The committed information rate of the business flow is Cir, and the unit is bit per second (bps), and the time interval for inputting external messages is agreed to be Clk, and the unit is s);
[0174] First, calculate a single token addition value, namely Cir / Clk, and configure the single token addition value and the maximum token depth Cbs with a preset interactive interface (for example, a command line interface);
[0175] In this application example, external messages can be used for updating the token, and regular messages generated inside the chip can also be used, both of which can be configured through the channel selection register. When selecting the user input path, it is necessary to agree on the message format. At the chip entrance, the format of the incoming message will be compared to identify the external message input by the user, and the message will be sent to the token update process; When timing packets, you need to control the packet sending interv...
application example 3
[0179] This application example applies to the scenario of allocating users' committed bandwidth and non-committed bandwidth.
[0180] Assuming two users, the committed bandwidth and uncommitted bandwidth of user 1 are CIR1 and EIR1 respectively, and the committed bandwidth and uncommitted bandwidth of user 2 are CIR2 and EIR2 respectively.
[0181] Figure 6 It is a schematic flow chart of the third application example of the present invention, such as Figure 6 As shown, the committed bandwidth token bucket of user 1 and the committed bandwidth token bucket of user 2 are updated through external messages; the uncommitted bandwidth token bucket of user 1 and the uncommitted bandwidth token bucket of user 2 are set through external The competitive decision of the token bucket to achieve token renewal; the service flow of user 1 and the service flow of user 2 are respectively colored through the corresponding committed bandwidth token bucket. When the color is green, the servi...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


