A PD-CBWFQ queue scheduling system and method based on a star token chain
By using a PD-CBWFQ queue scheduling system based on a star token chain, the queue scheduling module in a secure router is debound from the network interface, solving the problem that the queue scheduling module cannot perceive the interface bandwidth. This improves channel resource utilization and the processing efficiency of the encryption/decryption module, ensuring reliable forwarding of high-priority services.
Patent Information
- Application Number
- CN202611628287.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-21
- Publication Date
- 2026-11-20
AI Technical Summary
In the existing secure router architecture, the queue scheduling module has no direct business interface with the network interface, and cannot detect the interface bandwidth usage in real time, resulting in interface congestion and untimely forwarding of high-priority packets. In addition, the encryption and decryption module does not handle the data properly, resulting in invalid business processing and the dropping of critical business packets.
The system employs a star-topology token chain-based PD-CBWFQ queue scheduling system, which includes a classifier, a buffer queue module, a star-topology token chain, an encryption/decryption module, and an interface module. It uses two-level queue scheduling and plane isolation, combined with bandwidth configuration and backpressure signal control to manage message transmission.
The direct binding between the queue scheduling module and the network interface was removed, which solved the problems of interface congestion and untimely forwarding of high-priority packets, improved channel resource utilization, reduced the processing overhead of the encryption and decryption module, and ensured the QoS performance of high-priority services.
Smart Images

Figure CN123145221A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of computer network communication technology, specifically relating to a PD-CBWFQ queue scheduling system and method based on a star token chain. Background Technology
[0002] With the rapid development of network technology, network security threats such as network attacks and message eavesdropping are becoming increasingly frequent. Attackers can intercept messages through router network interfaces, parse and obtain user communication content, and also carry out message tampering and replay attacks, seriously threatening the communication security of ordinary users and critical industries. To address this, secure routers with integrated encryption capabilities have been developed. These routers can achieve end-to-end message encryption, greatly increasing the difficulty of message eavesdropping and tampering attacks, and ensuring the security of communication messages.
[0003] like Figure 1 The diagram illustrates an existing secure router scheduling system. It embeds an encryption / decryption module into a traditional router, splitting the functionality of the original interface line cards. The interface line cards now only handle line interface functions, while the packet queue scheduling module independently implements packet transmission and reception scheduling and QoS (Quality of Service) assurance functions. This architecture requires the packet queue scheduling module to handle multiple interfaces and various packet types, posing new challenges to QoS assurance design.
[0004] Compared to ordinary routers, secure routers embed encryption / decryption modules in the packet data flow path, decoupling the direct coupling between the queue scheduling module and network interfaces. The queue scheduling module interfaces with the encryption / decryption module, which in turn interfaces with various network interfaces. However, this architecture introduces new queue scheduling challenges: First, the queue scheduling module has no direct service interface with the network interfaces, making it impossible to perceive interface bandwidth occupancy in real time. Forwarding packets from high-speed interfaces to low-speed interfaces can easily cause congestion on the low-speed interfaces, resulting in untimely forwarding of low-latency, high-priority packets. Second, during network congestion, the loss of any fragment of a fragmented packet renders the entire packet invalid. Improper scheduling can lead to the channel being filled with invalid fragmented packets, resulting in low channel resource utilization and increasing the processing burden on the encryption / decryption module. Third, the encryption / decryption module is an independent functional unit with a packet processing rate limit. If scheduling is not combined with the outgoing interface attributes and the processing capabilities of the encryption / decryption module for reasonable scheduling, a large amount of invalid service processing will occur, and critical service packets may be dropped. Therefore, a suitable queue scheduling solution needs to be proposed for this architecture. Summary of the Invention
[0005] To address the aforementioned problems in the prior art, the present invention is achieved through the following technical solution: In a first aspect, the present invention provides a PD-CBWFQ queue scheduling system based on a star token chain, comprising: a classifier, a buffer queue module, a star token chain, an encryption / decryption module, and an interface module connected in sequence; The classifier is used to receive and identify packets, distinguishing the packet's plane type and output interface based on the packet's ToS, CoS values, and IP 5-tuple, and then distributing the packet to the buffer queue module. The buffer queue module includes a protocol plane queue, a management plane queue, and a service plane queue; the service plane queue has a built-in CBWFQ scheduling queue; the buffer queue module is used to buffer packets according to different plane types and output the packets from each plane queue to the star token chain; The star token chain is used to receive messages from each plane queue, and outputs the messages to the encryption / decryption module after two-level queue scheduling; the star token chain is also connected to a processor, which is used to distribute bandwidth configuration parameters for each plane. The encryption / decryption module is used to perform encryption processing on the messages output by the star token chain; The interface module is used to send the encrypted and decrypted messages to the external network.
[0006] A star token chain consists of multiple child token nodes, buffers, and a central token node; The input terminals of multiple sub-token nodes correspond to the output terminals of each queue of the buffer queue module; the output terminal of each sub-token node is connected to the input terminal of the buffer, the output terminal of the buffer is connected to the input terminal of the central token node, and the output terminal of the central token node is connected to the encryption / decryption module. The messages output by the buffer queue module enter each sub-token node to complete the first-level queue scheduling. The scheduled messages are sent to the buffer, the buffer outputs messages to the central token node to complete the second-level queue scheduling, and the messages after the two-level queue scheduling are output by the central token node to the encryption / decryption module.
[0007] The sub-token node has a built-in token bucket unit, which includes a token issuance speed calculation module, a token bucket, and a message queue. The token issuance speed calculation module receives the bandwidth configuration parameters of each plane from the processor, obtains the token issuance speed, and issues tokens to the token bucket. Messages are input into the message queue for enqueueing. When there are available tokens in the token bucket, the message queue performs dequeueing and outputs messages. When the message token consumption rate is greater than the token issuance speed and there are no available tokens in the token bucket, message output is paused. After the token bucket accumulates available tokens again, message output resumes, and the child token node outputs messages into the buffer, completing the first-level queue scheduling.
[0008] The buffer is a FIFO buffer; when the buffer is full, it generates a back pressure signal R1 and outputs it to all child token nodes, controlling the child token nodes to stop inputting messages into the buffer; when the buffer receives the back pressure signal R2 output by the central token node, it stops outputting messages to the central token node.
[0009] The central token node is used to receive the interface module rate limit y and the reverse pressure signal R3 output by the encryption / decryption module from the processor; When the message traffic x input to the encryption / decryption module exceeds the interface module's rate limit y, or when a backpressure signal R3 is received, the central token node sends a backpressure signal R2 to the buffer, causing the buffer to pause message output; otherwise, the central token node outputs messages to the encryption / decryption module, completing the second-level queue scheduling.
[0010] In a second aspect, the present invention provides a PD-CBWFQ queue scheduling method based on a star token chain, the method comprising: Feature identification is performed on incoming messages, and the plane type and output interface corresponding to the message are distinguished based on the message's ToS, CoS values, and IP 5-tuple; Packets are classified and cached according to three plane types: protocol plane, management plane, and business plane. Obtain the bandwidth configuration parameters for each plane and perform two-level queue scheduling processing on the buffered packets; Encrypt the message that completes the two-level queue scheduling; The encrypted message is sent to the external network to complete the overall queue scheduling.
[0011] Two-level queue scheduling includes: Receive the packets output from each plane buffer, obtain the externally configured bandwidth configuration parameters for each plane, perform first-level queue scheduling on each plane packet, then perform second-level queue scheduling on the scheduled packets, and finally output the scheduled packets.
[0012] Level 1 queue scheduling includes: The matching token issuance rate is calculated based on the bandwidth configuration parameters of each plane, and tokens are continuously issued according to the token issuance rate. The scheduling messages are uniformly enqueued and buffered. When there are available tokens, the message is dequeued and output normally. When the rate at which the message consumes tokens is greater than the token issuance rate and there are no available tokens, the message output is paused. After enough tokens are accumulated again, the message output is resumed, and the first-level queue scheduling is completed.
[0013] Second-level queue scheduling includes: Obtain the preset interface rate limit y, and simultaneously receive the external feedback backpressure signal R3 in real time; when the real-time packet traffic x is greater than the interface rate limit y, or when the backpressure signal R3 is detected to be valid, send the backpressure signal R2 and suspend packet transmission; if there is no traffic over-limit or valid backpressure signal, output the packet normally and complete the second-level queue scheduling.
[0014] Two-level queue scheduling also includes: The multi-plane messages output by the first-level scheduling are combined and buffered using a FIFO method. When the buffer space is full, a backpressure signal R1 is generated and fed back to stop the upstream messages from continuing to be input. When the backpressure signal R2 is received from the downstream, the output of buffered messages is paused.
[0015] Compared with the prior art, the beneficial effects of the present invention are as follows: 1. The direct binding between the queue scheduling module and the network interface has been removed, resolving the issues of interface congestion and untimely forwarding of high-priority, low-latency packets caused by the scheduling module's inability to perceive interface bandwidth.
[0016] 2. By implementing planar isolation and traffic constraints, invalid fragmented packet transmission is reduced, channel resource utilization is improved, and the processing overhead of the encryption / decryption module is lowered. Simultaneously, the processing rate limit of the encryption / decryption module is considered, avoiding invalid service processing and discarding critical service packets, thus achieving multi-plane traffic isolation for protocols, management, and services.
[0017] 3. Ensure the QoS performance of high-priority services such as RTP and LLQ, and meet the reliable scheduling requirements for bandwidth management and encrypted packet forwarding in multi-service mixed scenarios.
[0018] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description
[0019] Figure 1 This is a schematic diagram of an existing secure router scheduling system provided by the present invention; Figure 2 This is a schematic diagram of a PD-CBWFQ queue scheduling system based on a star token chain provided by the present invention; Figure 3 This is a schematic diagram of a token bucket unit structure provided by the present invention. Detailed Implementation
[0020] To further illustrate the technical means and effects adopted by the present invention to achieve the intended purpose, the following detailed description of the solution according to the present invention is provided in conjunction with the accompanying drawings and specific embodiments.
[0021] The foregoing and other technical contents, features, and effects of the present invention will be clearly presented in the following detailed description of specific embodiments in conjunction with the accompanying drawings. Through the description of the specific embodiments, a more in-depth and concrete understanding can be gained of the technical means and effects adopted by the present invention to achieve its intended purpose. However, the accompanying drawings are for reference and illustration only and are not intended to limit the technical solutions of the present invention.
[0022] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations are intended to cover non-exclusive inclusion, such that an article or apparatus comprising a list of elements includes not only those elements but also other elements not expressly listed. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the article or apparatus that includes said element.
[0023] Example 1: like Figure 2 The diagram shows a PD-CBWFQ queue scheduling system based on a star token chain provided by the present invention. The system includes: a classifier, a buffer queue module, a star token chain, an encryption / decryption module, and an interface module connected in sequence. The classifier receives and identifies packets, distinguishes the packet's plane type and output interface based on the packet's ToS (Type of Service), CoS (Class of Service), and IP 5-tuple information, and distributes the packets to the buffer queue module.
[0024] After a message enters the security router, it first reaches the classifier. The classifier extracts the ToS, CoS and IP 5-tuple information from the message header to identify which plane the message belongs to, whether it is the protocol plane, management plane or service plane. At the same time, it identifies the output interface corresponding to the message and distributes the message to the queue of the corresponding plane in the buffer queue module according to the identification results.
[0025] Specifically, the buffer queue module includes a protocol plane queue, a management plane queue, and a service plane queue; the service plane queue has a built-in CBWFQ scheduling queue; the buffer queue module buffers packets according to different plane types and outputs the packets from each plane queue to the star token chain.
[0026] After receiving packets distributed by the classifier, the buffer queue module places protocol plane packets into the protocol plane queue buffer, management plane packets into the management plane queue buffer, and service plane packets into the service plane queue. The service plane queue's CBWFQ scheduling queue contains one RTP real-time queue, one LLQ low-latency queue, 64 BQ bandwidth-guaranteed queues, and one FIFO queue. Packets are queued according to priority, with the RTP real-time queue having the highest priority, followed by the LLQ low-latency queue, and the BQ bandwidth-guaranteed queue having the lowest priority. The FIFO queue uses remaining bandwidth for best-effort forwarding. After each plane queue has completed buffering, the packets are output to the downstream star token chain.
[0027] The star token chain includes multiple sub-token nodes, buffers, and a central token node, which are used to receive messages from each plane queue, and output the messages to the encryption / decryption module after two-level queue scheduling. The star token chain is also connected to a processor, which is used to receive the bandwidth configuration parameters corresponding to each plane issued by the processor.
[0028] The processor is pre-configured to send bandwidth configuration parameters for each plane to the star token chain. Specifically, it sends bandwidth configuration parameters for three planes: protocol plane bandwidth A, management plane bandwidth B, and service plane bandwidth C. The bandwidth parameters configured by the processor satisfy W≥A+B+C, where W is the total bandwidth of the central token node. This ensures that the total traffic of the three planes will not exceed the total processing bandwidth, thus avoiding unnecessary packet dropping.
[0029] The star-shaped token link receives messages from various planes from the buffer queue module, completes two-level queue scheduling, and then sends the output messages to the encryption / decryption module. The inputs of multiple sub-token nodes correspond to the outputs of each queue in the buffer queue module; the output of each sub-token node is connected to the input of a buffer, the output of the buffer is connected to the input of the central token node, and the output of the central token node is connected to the encryption / decryption module. This embodiment sets up three sub-token nodes, each connecting to the outputs of the protocol plane queue, management plane queue, and service plane queue. Messages output from the buffer queue module enter their respective sub-token nodes, completing the first-level queue scheduling. The scheduled messages are then sent to a buffer, which outputs messages to the central token node for the second-level queue scheduling. Finally, the messages after two levels of queue scheduling are output from the central token node to the encryption / decryption module.
[0030] The sub-token node has a built-in token bucket unit, which includes a token issuance speed calculation module, a token bucket, and a message queue, such as... Figure 3 The diagram shown is a schematic of a token bucket unit structure provided by the present invention, including a token issuance speed calculation module, a token bucket, and a message queue.
[0031] The token issuance speed calculation module receives the local plane bandwidth configuration parameters from the processor, converts them into the commitment information rate (CIR) as the token issuance speed, and continuously adds tokens to the token bucket. The token bucket uses CBS to represent the commitment burst size, which is greater than 0. CBS is set according to the network interface type and bandwidth size configured by the user, and is greater than or equal to the maximum packet length. In this embodiment, the maximum packet length is 1514 bytes. Tc represents the number of tokens in the bucket. Tc is initialized to equal to CBS and is updated every second according to the CIR frequency. Tc = CIR × Tg, where Tg is the time interval for token replenishment. Tc updates follow these rules: if Tc < CBS, Tc increases; otherwise, Tc does not increase. When the number of tokens in the bucket reaches the maximum capacity CBS, excess tokens are discarded.
[0032] Messages from upstream are enqueued into the message queue inside the sub-token node. For incoming messages of size B, if Tc-B≥0, it means there are still available tokens in the token bucket, and the message queue can dequeue and output the message downwards, while Tc decreases by B. When the rate at which messages consume tokens exceeds the token issuance rate, a situation occurs where Tc-B<0 and the token bucket is exhausted. In this case, message output is paused, and the message remains in the message queue without token deduction. As tokens continue to be generated and accumulated, message output resumes once Tc has enough available tokens to send messages again in the next issuance cycle. Under the aforementioned rate-limiting constraints of the token bucket, the sub-token node corresponding to the service plane, in conjunction with the CBWFQ scheduling queue of the buffer queue module, prioritizes scheduling RTP and LLQ messages to achieve service QoS. The protocol and management planes rely on the rate limiting of the sub-token nodes to achieve traffic isolation between planes.
[0033] The buffer is a FIFO buffer; when the buffer is full, it generates a back pressure signal R1 and outputs it to all child token nodes, controlling the child token nodes to stop inputting messages into the buffer; when the buffer receives the back pressure signal R2 output by the central token node, it stops outputting messages to the central token node.
[0034] The buffer can realize multi-plane message combining and service burst message buffering functions. When a large number of burst messages flood in and the FIFO buffer storage space is full, a backpressure signal R1 is immediately generated and sent to all upstream sub-token nodes, so that the sub-token nodes stop sending messages to prevent message overflow and loss. If the buffer receives a backpressure signal R2 from the downstream central token node, the buffer itself stops sending messages to the central token node, realizing closed-loop backpressure control of upstream and downstream traffic.
[0035] The central token node receives the interface module rate limit y from the processor and the backpressure signal R3 output by the encryption / decryption module. The processor sends the interface module rate limit y to the central token node; the encryption / decryption module monitors its own processing load in real time, and when the load is saturated, it outputs a valid backpressure signal R3 to the central token node. The central token node counts the packet traffic x entering the encryption / decryption module in real time; once x > y, or a valid backpressure signal R3 is received, it outputs a backpressure signal R2 to the buffer, causing the buffer to suspend packet transmission; if there is no limit exceedance or the backpressure signal R3 is invalid, it receives the packets sent by the buffer and outputs them to the encryption / decryption module, completing the second-level queue scheduling, so that the scheduling process is no longer directly constrained by the interface module bandwidth status.
[0036] The encryption / decryption module is used to encrypt the received messages from the central token node, while simultaneously monitoring its own processing load status in real time and generating a backpressure signal R3 to feed back to the central token node.
[0037] The interface module is the hardware unit for sending and receiving external messages on the security router. It supports multiple types of communication interfaces, including Ethernet, POS, and E1 interfaces. Ethernet interfaces support 1G, 10G, and 100G speeds, while POS interfaces support 155M, 622M, 2.5G, and 10G speeds. The interface module is primarily responsible for converting encrypted messages into the corresponding physical signals for the interface and sending them to the external network. It also receives incoming messages from the external network. Encrypted messages are sent to the interface module, which then outputs them to the external network.
[0038] Example 2: When a security router receives an incoming packet, it first extracts the packet's ToS (Type of Service), CoS (Class of Service), and IP 5-tuple information. The IP 5-tuple includes the source IP address, destination IP address, source port number, destination port number, and protocol number. Using these three types of information, the router identifies whether the packet belongs to the protocol plane, management plane, or service plane, and its corresponding output interface. After identification, the packet is sent to the protocol plane queue, management plane queue, and service plane queue for classification and caching. Packets within the service plane continue to queue in the various sub-queues of the CBWFQ. The router reads the bandwidth configuration parameters for each plane issued by the processor and performs two-level queue scheduling on the cached packets. The packets output from the two-level scheduling are encrypted. After encryption, the packets are sent to the external network.
[0039] Specifically, the two-level queue scheduling includes: receiving packets output from each plane buffer, obtaining the externally configured bandwidth configuration parameters for each plane, performing first-level queue scheduling on each plane packet, performing second-level queue scheduling on the scheduled packets, and finally outputting the scheduled packets.
[0040] The first-level queue scheduling includes: calculating the token issuance rate based on the local plane bandwidth configuration and continuously issuing tokens; enqueuing and buffering messages to be scheduled; dequeuing and outputting messages when there are available tokens in the token bucket; pausing message output when the message's token consumption rate exceeds the token issuance rate and tokens are exhausted; and resuming message output after tokens have accumulated again, thus completing the first-level scheduling. Based on this, the service plane prioritizes scheduling high-priority service messages according to CBWFQ rules, while the protocol and management planes rely on the token bucket for rate limiting and isolation.
[0041] The second-level queue scheduling includes: obtaining the preset interface rate limit y, and simultaneously receiving the external feedback backpressure signal R3 in real time; when the real-time packet traffic x is greater than the interface rate limit y, or when the backpressure signal R3 is detected to be valid, sending the backpressure signal R2 and pausing packet transmission; if there is no traffic over-limit or valid backpressure signal, the packet is output normally, completing the second-level queue scheduling.
[0042] The two-level queue scheduling also includes: using FIFO to combine and buffer the multi-plane messages output by the first-level scheduling; when the buffer space is full, generating a backpressure signal R1 and feeding it back to stop the upstream messages from continuing to be input; when the backpressure signal R2 is received from the downstream, pausing the output of buffered messages.
[0043] This design method is applicable to the CBWFQ queue scheduling method and can also be ported and modified to other types of queue scheduling methods, such as PQ (priority queue) scheduling mechanism and WFQ (weighted fair queue) scheduling mechanism. The same function can be achieved by replacing the buffer queue and queue scheduling module. At the same time, the number of sub-token nodes can be flexibly configured to suit various business scenarios.
[0044] This invention provides a PD-CBWFQ queue scheduling system based on a star token chain under a secure router, which consists of a classifier, a buffer queue module, a star token chain, an encryption / decryption module, and an interface module connected in sequence. The star token chain includes sub-token nodes, a FIFO buffer, and a central token node. The processor issues bandwidth configuration parameters for each plane and interface rate limit parameters. The sub-token nodes complete the first-level rate limiting isolation of the protocol, management, and service planes. The buffer implements multi-plane packet combining and buffering and R1 / R2 backpressure control. The central token node combines the interface rate limit and the backpressure signal R3 fed back by the encryption / decryption module to complete the second-level traffic shaping and scheduling.
[0045] This invention decouples the queue scheduling module from the network interface, resolving congestion and untimely forwarding of high-priority, low-latency packets caused by the inability to perceive interface bandwidth. It reduces invalid fragmented packet transmission and improves channel utilization by relying on planar isolation and flow constraints. Simultaneously, it considers the processing capabilities of the encryption / decryption module, avoiding invalid service processing and the dropping of critical service packets. This solution has broad application prospects in the fields of security routers and IP network gateway devices, and can meet the reliable scheduling requirements for bandwidth management and encrypted packet forwarding in multi-service mixed scenarios.
[0046] The above description, in conjunction with specific preferred embodiments, provides a further detailed explanation of the present invention. It should not be construed that the specific implementation of the present invention is limited to these descriptions. For those skilled in the art, various simple deductions or substitutions can be made without departing from the concept of the present invention, and all such modifications and substitutions should be considered within the scope of protection of the present invention.
Claims
1. A PD-CBWFQ queue scheduling system based on a star token chain, characterized in that, The system includes: a classifier, a buffer queue module, a star token chain, an encryption / decryption module, and an interface module connected in sequence; The classifier is used to receive and identify messages, distinguish the plane type and output interface of the message based on the message's ToS, CoS values and IP 5-tuple, and distribute the message to the buffer queue module. The buffer queue module includes a protocol plane queue, a management plane queue, and a service plane queue; the service plane queue has a built-in CBWFQ scheduling queue; the buffer queue module is used to buffer packets according to different plane types and output the packets of each plane queue to the star token chain; The star token chain is used to receive messages from each plane queue, and outputs the messages to the encryption / decryption module after two-level queue scheduling; the star token chain is also connected to a processor, which is used to issue bandwidth configuration parameters for each plane. The encryption / decryption module is used to perform encryption processing on the messages output by the star token chain; The interface module is used to send the encrypted and decrypted messages to an external network.
2. The PD-CBWFQ queue scheduling system based on a star token chain according to claim 1, characterized in that, The star-shaped token chain includes multiple sub-token nodes, buffers, and a central token node; The input terminals of the multiple sub-token nodes correspond to the output terminals of each queue of the buffer queue module; the output terminal of each sub-token node is connected to the input terminal of the buffer, the output terminal of the buffer is connected to the input terminal of the central token node, and the output terminal of the central token node is connected to the encryption / decryption module. The messages output by the buffer queue module enter each sub-token node to complete the first-level queue scheduling. The scheduled messages are sent to the buffer, the buffer outputs messages to the central token node to complete the second-level queue scheduling, and the messages after the two-level queue scheduling are output by the central token node to the encryption / decryption module.
3. The PD-CBWFQ queue scheduling system based on a star token chain according to claim 1, characterized in that, The sub-token node has a built-in token bucket unit, which includes a token issuance speed calculation module, a token bucket, and a message queue. The token issuance speed calculation module is used to receive the bandwidth configuration parameters of each plane sent by the processor, obtain the token issuance speed, and issue tokens to the token bucket; The message is entered and enqueued into the message queue; When there are available tokens in the token bucket, the message queue performs dequeue output of messages; When the rate at which messages consume tokens exceeds the rate at which tokens are issued, and there are no available tokens in the token bucket, the output of messages is suspended. Once the token bucket has accumulated usable tokens again, message output resumes. The child token node outputs messages into the buffer, completing the first-level queue scheduling.
4. The PD-CBWFQ queue scheduling system based on a star token chain according to claim 2, characterized in that, The buffer is a FIFO buffer; when the buffer is full, a back pressure signal R1 is generated and output to all sub-token nodes, controlling the sub-token nodes to stop inputting messages to the buffer; when the buffer receives the back pressure signal R2 output by the central token node, it stops outputting messages to the central token node.
5. The PD-CBWFQ queue scheduling system based on a star token chain according to claim 2, characterized in that, The central token node is used to receive the interface module rate limit y and the reverse pressure signal R3 output by the encryption / decryption module from the processor. When the message traffic x input to the encryption / decryption module exceeds the interface module's rate limit y, or when a backpressure signal R3 is received, the central token node sends a backpressure signal R2 to the buffer, causing the buffer to pause message output; otherwise, the central token node outputs messages to the encryption / decryption module, completing the second-level queue scheduling.
6. A PD-CBWFQ queue scheduling method based on a star token chain, applied to the PD-CBWFQ queue scheduling system based on a star token chain as described in any one of claims 1-5, characterized in that, The method includes: Feature identification is performed on incoming messages, and the plane type and output interface corresponding to the message are distinguished based on the message's ToS, CoS values, and IP 5-tuple; Packets are classified and cached according to three plane types: protocol plane, management plane, and business plane. Obtain the bandwidth configuration parameters for each plane and perform two-level queue scheduling processing on the buffered packets; Encrypt the message that completes the two-level queue scheduling; The encrypted message is sent to the external network to complete the overall queue scheduling.
7. The PD-CBWFQ queue scheduling method based on a star token chain according to claim 6, characterized in that, The two-level queue scheduling includes: Receive the packets output from each plane buffer, obtain the externally configured bandwidth configuration parameters for each plane, perform first-level queue scheduling on each plane packet, then perform second-level queue scheduling on the scheduled packets, and finally output the scheduled packets.
8. The PD-CBWFQ queue scheduling method based on a star token chain according to claim 7, characterized in that, The first-level queue scheduling includes: The matching token issuance rate is calculated based on the bandwidth configuration parameters of each plane, and tokens are continuously issued according to the token issuance rate. The scheduling messages are uniformly enqueued and buffered. When there are available tokens, the message is dequeued and output normally. When the rate at which the message consumes tokens is greater than the token issuance rate and there are no available tokens, the message output is paused. After enough tokens are accumulated again, the message output is resumed, and the first-level queue scheduling is completed.
9. The PD-CBWFQ queue scheduling method based on a star token chain according to claim 7, characterized in that, The second-level queue scheduling includes: Obtain the preset interface rate limit y, and simultaneously receive the external feedback backpressure signal R3 in real time; when the real-time packet traffic x is greater than the interface rate limit y, or when the backpressure signal R3 is detected to be valid, send the backpressure signal R2 and suspend packet transmission; if there is no traffic over-limit or valid backpressure signal, output the packet normally and complete the second-level queue scheduling.
10. The PD-CBWFQ queue scheduling method based on a star token chain according to claim 7, characterized in that, The two-level queue scheduling also includes: The multi-plane messages output by the first-level scheduling are combined and buffered using a FIFO method. When the buffer space is full, a backpressure signal R1 is generated and fed back to stop the upstream messages from continuing to be input. When the backpressure signal R2 is received from the downstream, the output of buffered messages is paused.
