Weighted fair queue dispatching method and device based on category
A weighted fairness and queue scheduling technology, applied in the field of data transmission, can solve problems such as frequent polling operations and system performance degradation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0032] In the class-based weighted fair queue scheduling method provided by Embodiment 1 of the present invention, its flow is as follows figure 2 As shown, the execution steps are as follows:
[0033] Step S101: Classify the received message.
[0034] After receiving the message sent by other network devices, it first classifies the message according to the rules defined by the user, determines the classification number of the message, and performs classification identification.
[0035] Among them, the packets that meet the user-defined classification rules are classified into the corresponding categories according to the user-defined classification rules, and the packets that do not meet the user-defined classification rules are classified into the corresponding categories according to the default classification rules of the weighted fair queue, and sent to the receiving Add classification identifiers to received packets.
[0036] Step S102: Allocate a class token repres...
Embodiment 2
[0056] The class-based weighted fair queue scheduling method provided by Embodiment 2 of the present invention is described by taking two message sending queues as an example. The implementation process is as follows image 3 As shown, the execution steps are as follows:
[0057] Step S201: Classify the received packets.
[0058] The specific division method is the same as step S101.
[0059] For example: a message received by a network device may contain N categories.
[0060] Step S202: Allocate a grade token representing the sending grade of the message to the classified received message.
[0061] The specific allocation process is the same as step S102.
[0062] The distribution structure of classification tokens can be as follows Figure 4 shown. The total number of tokens that can be allocated is determined according to the interface bandwidth, that is, according to the capacity of the interface token bucket. Then assign tokens to each message category to obtain th...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 