Multi-stage scheduling method and system supporting multiple time periods
A scheduling method and time cycle technology, applied in advanced technology, climate sustainability, sustainable communication technology, etc., can solve problems such as no implementation method, no multi-level cycle scheduling, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0038] The scheduling composition example of the present invention is such as figure 1 As shown, the queues Q1-Q7 are 7 queues, and each queue has a corresponding scheduling period T1-T7, in which Q1-Q4 forms a queue group G1, which is recorded as a virtual queue G-Q1, and the scheduling period is G-T1; Q5 -Q7 forms a queue group G2, which is denoted as a virtual queue G-Q2, and the scheduling period is G-T2. Each queue scheduled according to the time period, including the virtual queue, has a corresponding counter, C1-C7 corresponds to the actual queue Q1-Q7, C-G1 corresponds to the virtual queue G-Q1, and C-G2 corresponds to the virtual queue G-Q2 .
[0039] The scheduling of each queue is controlled by two flags, which are the flip flag R and the message flag E of the queue. Among them, R is set according to the increase or decrease of the counter, and E is set according to whether the corresponding queue is empty.
[0040] The parameters of each queue are shown in Table...
Embodiment 2
[0060] Internal queues such as figure 1 As shown, the parameters of each queue are as follows in Table 2 (the timer interval is 1us precision):
[0061] Table 2: Example 2 Q1-Q7 each queue parameter table
[0062]
[0063] The initial R=true and E=true of each queue; C is subtracted by one, and when C is 0, the R of the corresponding queue is set to true. For detailed workflow, see figure 2 .
[0064] 1. Start the device, and set the queue parameters according to the above table.
[0065] 2. Start the timer.
[0066] 3. The second-level queue is selected according to the weight of WRR, and G-Q1 is selected for scheduling. At this time, it is found that its R and E are both true and can be scheduled.
[0067] 4. Set the R bit of G-Q1 to false, and scan the first-level queue it contains.
[0068] 5. At this time, the packets in Q1 can be scheduled for 20 us, the messages in Q2 can be scheduled for 20 us, the messages in Q3 can be scheduled for 20 us, and the messages i...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


