Method and device for adding token in traffic shaping
A technology of traffic shaping and token, applied in digital transmission system, data exchange network, mixed transportation, etc., can solve the problem of insufficient quantity and achieve the effect of improving utilization rate
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0029] The embodiment of the present invention provides a method for adding tokens in traffic shaping, such as figure 1 As shown, the method includes:
[0030] Step 101: Configure the weight of each data flow, and add each data flow to a corresponding token scheduler according to the weight of each data flow.
[0031] Step 102: Add each token scheduler to a corresponding token scheduler group sequentially according to the weight of each token scheduler, and aggregate all token scheduler groups into a token scheduler for the total data flow.
[0032] Step 103: Add the token scheduler of the total data flow to the top-level token scheduler.
[0033] Step 104: Allocate tokens to the token scheduler of the total data flow in the top-level token scheduler according to a preset cycle, and the top-level token scheduler issues the allocated tokens to each token scheduler group, or issue tokens to individual data streams.
[0034] Wherein, the configuring the weight of each data flo...
Embodiment 2
[0066] image 3 It is a flowchart of a method for distributing shaping tokens to each data stream in the present invention, wherein the main implementation process is:
[0067] Step 300: Initialize the WFQ of each layer, and set the weight of each WFQ and the total data flow to 0.
[0068] Step 301: Configure the shaping rate of the spare flow as the maximum value, and after converting the shaping rate of the spare flow into a weight, add the spare flow to the top-level token scheduler.
[0069] Step 302: Judging whether all current data streams have been configured, if so, go to step 307; otherwise, go to step 303.
[0070] Step 303: Select any data stream from the data streams with unconfigured shaping rates as the current data stream, configure the shaping rate of the current data stream, and convert the shaping rate of the current data stream into the shaping rate of the current data stream Weights.
[0071] Step 304: According to the weight of the current data flow, ad...
Embodiment 3
[0094] Corresponding to the method described in Embodiment 2, the embodiment of the present invention further proposes a device for implementing traffic shaping tokens, such as Figure 4 As shown, the device includes: a configuration module 401, a bandwidth allocation module 402, a distribution module 403, and an information storage module 404; wherein,
[0095] The configuration module 401 is configured to configure the weight of each data flow, and add each data flow to a corresponding token scheduler according to the weight of each data flow; Each token scheduler described above is added to the corresponding token scheduler group, and all token scheduler groups are aggregated into the token scheduler of the total data flow; the token scheduler of the total data flow is added to the top-level token a scheduler; and saving the weights of the respective data streams to the information storage module 404;
[0096]The bandwidth allocation module 402 is configured to allocate to...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


