Preprint
Article

This version is not peer-reviewed.

Joint Scheduling and Resource Allocation in Heterogeneous Queuing Systems with Bursty Traffic: A Constrained Soft Actor-Critic Approach

Submitted:

14 July 2026

Posted:

16 July 2026

You are already at the latest version

Abstract
Joint scheduling and resource allocation are investigated in heterogeneous queuing systems—where multiple queues have distinct priorities and share a single output link—with the aim of maximizing throughput utility under per-queue delay constraints. The primary challenge arises from stochastic packet arrivals and the time-varying capacity of the shared link. To address this challenge, conventional heuristic methods and unconstrained learning-based methods exhibit inherent limitations, particularly when handling bursty traffic with stringent delay requirements. The former lack real-time reactivity to system dynamics; the latter, which encode delay constraints into the reward, may sacrifice deadline compliance for higher cumulative rewards. To this end, this paper proposes a constrained soft actor-critic (CSAC) approach with two key designs. First, we decouple the delay constraint of the queue with a stringent delay requirement from the reward, treating it as a standalone violation budget. Second, we introduce a two-stage mapping mechanism that transforms continuous policy logits into integer transmission quotas. We compare the proposed approach with an unconstrained soft actor-critic (SAC) baseline and several heuristic baselines under heterogeneous traffic conditions. The experimental setup comprises one Markov-modulated Poisson process (MMPP) highest-priority queue with a maximum allowable queuing delay violation rate of 1%, along with two independent Poisson process lower-priority queues with distinct priorities, each with a best-effort queuing delay requirement. Results demonstrate that the proposed approach reduces the highest-priority queue’s delay violation rate to 0.05%±0.09%, compared to 7.87%±5.98% for unconstrained SAC and 18.38% and 34.28% for the two heuristic baselines, while maintaining comparable throughput, lower-priority delays, and overflow packet counts.
Keywords: 
;  ;  ;  ;  

1. Introduction

Joint scheduling and resource allocation in heterogeneous queuing systems—where multiple queues with distinct priorities and queuing delay requirements contend for a single output link—is critical for providing differentiated quality of service (QoS). It underpins a wide range of communication and network systems, ranging from the output-port scheduling of routers and switches under heterogeneous QoS classes, to per-class service sharing within a 5G network slice at the base station [1], and to resource allocation at edge-gateway nodes in industrial internet of things (IoT) deployments where alarm, control, and best-effort traffic coexist [2].
However, maintaining the queuing delay requirement of high-priority traffic while maximizing system throughput utility presents a fundamental challenge in these systems. This tension lies at the core of any joint scheduling and resource allocation problem. Specifically, biasing transmission service toward the high-priority queue reduces its waiting time but increases that of others, whereas throughput-oriented scheduling keeps the link highly utilized but risks allowing some high-priority packets to exceed their maximum allowable delay. This inherent difficulty is further compounded by the stochastic nature of both arrivals and link capacity. Arrivals are rarely stationary—high-priority traffic may alternate between normal and burst modes, while low-priority traffic can persistently consume a large share of the bandwidth. Meanwhile, the usable link capacity is often not fixed but fluctuates dynamically with the operating environment, further perturbing delay evolution.
Under the combined effect of these stochastic factors—bursty arrivals and dynamic link capacity—conventional heuristic scheduling rules exhibit intrinsic limitations. That is, fixed-weight and backlog-driven policies cannot react to abrupt arrival-mode transitions or to head-of-line packets nearing their deadlines; and deadline-driven rules lack an explicit trade-off in the joint “throughput + delay + drop” setting. Additionally, unconstrained learning policies that encode delay requirements into a scalar reward may accept queuing delay violations in exchange for higher aggregate rewards. Consequently, queuing delay depends not only on current queue length, but also on link capacity fluctuations and the history of past scheduling decisions, making it particularly difficult to control and predict as a key performance indicator [3,4]. These observations motivate treating the queuing delay violation budget as a standalone constraint, separate from the throughput-maximization objective, rather than as an ordinary cost that high rewards can offset.
To this end, this paper proposes a joint scheduling and resource allocation approach for heterogeneous queuing systems based on constrained soft actor-critic (CSAC). In this approach, the scheduler takes actions generated by a neural-network agent that dynamically selects queues and allocates the link capacity among active queues, according to real-time queue states, recent violation feedback, and link-capacity history. The main contributions of this paper are enumerated as follows.
  • CSAC-based Network Architecture for Heterogeneous Queuing: We model the high-priority queue’s delay violation as an independent episodic constraint, explicitly decoupled from the throughput objective, such that the binary “violation-or-not” semantics are embedded in the constraint term rather than in hand-tuned reward weights. Building upon this formulation, we develop a CSAC-based solver that integrates this constrained objective into the actor-critic learning process, ensuring stable and reliable policy optimization under stringent queuing delay constraints.
  • Continuous-to-Discrete Action Mapping under Per-Time-Slot Link Capacity Constraints: We design a two-stage mapping that transforms the continuous policy logits into integer transmission quotas that are non-negative, do not exceed each queue’s backlog, and sum to the effective capacity available to backlogged queues, so they can be executed directly without post-processing.
  • Comprehensive Experimental Validation under Heterogeneous Traffic: We systematically compare the proposed approach against an unconstrained soft actor-critic (SAC) baseline and simplified heuristic baselines under heterogeneous traffic conditions. The experimental scenarios include one queue following a Markov-modulated Poisson process (MMPP) with the highest priority and a stringent queuing delay requirement, as well as two queues following independent Poisson arrivals with lower priorities and best-effort queuing delay requirements. Results verify its advantages in throughput, queuing delay, and overflow packet count behavior.

3. System Model

We consider a heterogeneous queuing system with D queues sharing a common output link, as illustrated in Figure 1. Queue 0 follows an MMPP, whose state switches between a “normal” mode and a “burst” mode, each with a distinct arrival rate. The other queues follow independent Poisson arrival processes. Each queue has a finite buffer capacity B, measured in packets, and overflow packets are dropped.
The timeline is divided into time slots of duration T ep , with the tth slot spanning from time t T ep to time ( t + 1 ) T ep for t = 0 , 1 , 2 , . In time slot t, the link capacity K t is defined as the maximum number of packets that can be transmitted on the output link. We assume that K t is drawn independently from the discrete uniform distribution on { K min , K min + 1 , , K max } , and is independent of the arrival processes. Within each time slot, when at least one queue is nonempty, the link capacity is allocated to backlogged queues according to scheduling weights determined by the agent. The joint scheduling and resource allocation objective is to maximize the system throughput utility—defined as the weighted sum of per-queue throughputs with priority-dependent weights—while respecting each queue’s delay requirement, where higher-priority queues are subject to tighter delay bounds. Queue i has higher priority than queue ( i + 1 ) , i = 0 , 1 , , D 2 . For queue 0 carrying bursty traffic, the average queuing delay δ 0 , t of packets departing in time slot t (considering only non-empty slots) is subject to a long-term violation constraint. Specifically, the queuing delay violation rate is defined as the fraction of non-empty time slots within a given observation window where δ 0 , t exceeds the maximum allowable delay Δ 0 , and this fraction must remain below the tolerance ε 0 (e.g., ε 0 = 0.01 ). For queue i ( i > 0 ) carrying best-effort traffic, the average queuing delay δ i , t of packets departing in time slot t (considering only non-empty slots) is expected to remain within the maximum allowable value Δ i ; nevertheless, violations are tolerable under resource scarcity, provided that lower-priority queues are prevented from experiencing starvation. δ i , t is defined by Equation (1).
δ i , t = 1 | D i , t | p D i , t δ p , | D i , t | > 0 , 0 , | D i , t | = 0 .
D i , t denotes the set of packets that have departed from queue i in time slot t. δ p denotes the queuing time of packet p in D i , t .
Let Q i , t be the number of packets in queue i at the start of time slot t (i.e., at time t T ep ). The events within time slot t occur in the following order.
1.
The agent observes system state s t , selects a continuous action a t based on s t and past actions, and maps a t to integer transmission quotas n i , t for queue i, i = 0 D 1 n i , t K t , 0 n i , t Q i , t .
2.
The n i , t HoL packets in queue i are transmitted in first-in, first-out (FIFO) order.
3.
A i , t new packets arrive at queue i, and the length of queue i evolves as
Q i , t + 1 = min Q i , t n i , t + A i , t , B ,
where the min operator accounts for the dropping of overflow packets.
4.
The reward r t is obtained, along with the queuing delay violation cost c t of the highest-priority queue 0.
5.
The system state is updated for time slot ( t + 1 ) , denoted s t + 1 .

4. The Proposed Constrained Soft Actor-Critic Approach

This section presents the proposed approach for joint scheduling and resource allocation in heterogeneous queuing systems based on CSAC (abbreviated as CSAC-HQS), in six parts: basic architecture, state space, action space, reward and queuing delay violation cost, parameter update, and approach execution.

4.1. Basic Architecture

The CSAC-HQS approach comprises three main functional modules: the heterogeneous queuing system (as the environment), the actor-critic agent (consisting of an actor network, twin reward critics with their target networks, and a constraint critic with its target network), and an experience replay buffer. These modules interact with each other (see Figure 2) to perform experience collection and parameter update.

4.1.1. Experience Collection

In each time slot t, the actor π ϕ observes the system state s t from the heterogeneous queuing system and outputs a continuous action a t . Through the masked-softmax mapping rule, a t is converted into per-queue transmission weight, according to which the queuing system allocates executable integer transmission quotas among the backlogged queues. After execution, the queuing system returns the transition tuple ( s t , a t , r t , c t , s t + 1 , done t ) , which is stored as one experience record in the replay buffer. Here, done t indicates whether the current state is a terminal state. The meanings of the remaining symbols are given in Section 3. This interaction cycle of observing, mapping, executing, and storing repeats at every time slot, so that experience is continuously collected to support the subsequent parameter update.

4.1.2. Parameter Update

Parameter updates are driven by mini-batches of transitions sampled from the replay buffer. At each update step, the twin reward critics Q θ 1 , Q θ 2 are updated by minimizing the Bellman residual with respect to the reward target. These critics estimate the expected cumulative reward, which jointly accounts for the system throughput utility and the queuing delay violations of queues 1 to ( D 1 ) . Meanwhile, the constraint critic Q ψ C is updated by minimizing the Bellman residual with respect to the constraint target. This critic estimates the expected queuing delay violation for queue 0 and enforces its stringent delay constraint. The actor π ϕ integrates the evaluations from both the reward critics and the constraint critic, and is updated by minimizing the policy loss, where the constraint critic’s contribution is weighted by the Lagrange multiplier λ . λ is not a fixed hyperparameter but is dynamically adjusted and bounded at the end of each episode based on the total violation cost of queue 0 accumulated over the current episode, ensuring that the constraint penalty intensifies as violations increase while maintaining training stability.
Remark 1.
The interaction between the actor and the heterogeneous queuing system is modeled as a Markov Decision Process (MDP) with fixed-length episodes, each of which lasts for H time slots. At the end of every episode, the queuing system is reset. However, this reset is implemented as a time truncation rather than a true MDP termination. The bootstrap term of the parameter update process is weighted by ( 1 done ) , where done is the terminal indicator of the underlying MDP. Since our MDP has no natural absorbing state, done remains 0 at the episode truncation boundary, so the bootstrap target is not forced to zero at the end of each episode.

4.2. State Space

In time slot t, the system state s t is defined as
s t = [ b t , v t , h t ] .
The three components of s t capture the queuing dynamics over the last τ W time slots, providing the policy with sufficient temporal context to anticipate burst transients and capacity fluctuations. b t is the queue occupancy history, v t is the past violation feedback, and h t is the link capacity history.

4.2.1. Queue Occupancy History

For each queue i { 0 , 1 , , D 1 } in time slot t, the normalized backlog over the last τ W time slots (including the current slot) is aggregated as
b t ( i ) = Q i , t τ W + 1 B , Q i , t τ W + 2 B , , Q i , t B [ 0 , 1 ] τ W .
The vectors b t ( i ) are concatenated as b t = [ b t ( 0 ) , b t ( 1 ) , , b t ( D 1 ) ] [ 0 , 1 ] D · τ W . b t allows the policy to identify which queues are accumulating backlog.

4.2.2. Past Violation Feedback

For each queue i { 0 , 1 , , D 1 } in time slot t, the pieces of past violation feedback are aggregated as
v t ( i ) = c ^ i , t τ W , c ^ i , t τ W + 1 , , c ^ i , t 1 { 0 , 1 } τ W .
c ^ i , t denotes the queuing delay violation cost of queue i in time slot t , and it is defined as
c ^ i , t 1 { δ ¯ i , t > Δ i } ,
where t { t τ W , t τ W + 1 , , t 1 } .
δ ¯ i , t = 1 | D i , t | p D i , t δ p , | D i , t | > 0 , W i , t end , | D i , t | = 0 , Q i , t + 1 > 0 , 0 , | D i , t | = 0 , Q i , t + 1 = 0 .
W i , t end is the HoL packet’s queuing time in queue i at the end of time slot t, given no departure occurs in that slot and Q i , t + 1 packets remain buffered. This prevents the scheduler from being able to “hide” the accumulated wait of a starved queue by simply not serving it. The vectors v t ( i ) are concatenated as v t = [ v t ( 0 ) , v t ( 1 ) , , v t ( D 1 ) ] { 0 , 1 } D · τ W . v t allows the policy to recognize that a queue has recently crossed its delay requirement, providing the policy with explicit feedback on past violation events independent of the current backlog level.

4.2.3. Link Capacity History

The link capacities over the last τ W time slots (including the current slot) are aggregated as:
h t = K t τ W + 1 K max , K t τ W + 2 K max , , K t K max [ 0 , 1 ] τ W .
K t denotes the link capacity in time slot t , t { t τ W + 1 , t τ W + 2 , , t } . K max is the upper bound of the link capacity defined in Section 3. h t captures the recent fluctuation of the shared output link and helps the policy adapt to capacity variations.

4.3. Action Space

A continuous action space is designed to implement fine-grained, adaptive link capacity allocation in two stages.
Stage 1: From continuous logits to normalized allocation weights. In each time slot t, the actor network outputs a vector u t R D , using the reparameterization trick
u t = μ ϕ ( s t ) + σ ϕ ( s t ) ϵ t , ϵ t N ( 0 , I ) ,
where ⊙ denotes the Hadamard (element-wise) product, and 0 , I are the zero vector and the identity matrix of appropriate dimensions. u t is squashed to yield the action vector a t = tanh ( u t ) ( 1 , 1 ) D , composed of continuous actions. The action vector a t is then sharpened by the sharpening factor β > 1 to form the softmax logit
z t = β a t ( β , β ) D .
Then z t is normalized to an allocation weight vector w t = ( w 0 , t , w 1 , t , , w D 1 , t ) on the simplex through a masked softmax:
w i , t = m i , t exp ( z i , t ) j = 0 D 1 m j , t exp ( z j , t ) , i { 0 , 1 , , D 1 } ,
where z i , t is the ith component of z t , and m i , t = 1 { Q i , t > 0 } is an empty-queue mask. If all queues are empty, w i , t = 0 for any i, namely, no transmission occurs in this time slot. The sharpening factor β enlarges the effective ratio between the largest and smallest weights and therefore allows the scheduler to rapidly prioritize the highest-priority queue 0 during transient overload.
Stage 2: From normalized allocation weights to integer transmission quotas. In each time slot t, given the allocated capacity K ¯ t = min K t , i = 0 D 1 Q i , t , the allocation weight vector w t is converted into an integer transmission quota vector n t = ( n 0 , t , n 1 , t , , n D 1 , t ) as follows.
1.
Compute the ideal allocation n ˜ i , t = w i , t K ¯ t for i = 0 , 1 , , D 1 .
2.
Floor to n i , t ( 0 ) = n ˜ i , t for i = 0 , 1 , , D 1 .
3.
The residual capacity ρ t = K ¯ t i n i , t ( 0 ) is distributed to ρ t queues with the largest remainders n ˜ i , t n i , t ( 0 ) , each receiving one extra unit. For queues with the same remainder, allocation is performed in order of priority from highest to lowest.
The above basic steps do not yet account for the per-queue backlog upper bound. If any queue i would receive more than its backlog (i.e., n i , t ( 0 ) > Q i , t ), the surplus is handled recursively: (a) clip the quota of that queue to n i , t Q i , t and reclaim the surplus into the residual capacity; (b) redistribute the residual capacity, using the same largest-remainder rule, among the remaining nonempty queues that have not yet reached their backlog limit; (c) repeat until every queue’s quota does not exceed its backlog or until the residual capacity is zero. The transmission quota ultimately obtained by queue i is n i , t . The quotas satisfy
0 n i , t Q i , t , i = 0 D 1 n i , t = K ¯ t .
So the masked-softmax mapping always produces executable integer transmission quotas. If i = 0 D 1 Q i , t K t , the allocation result of the above process is n i , t = Q i , t .

4.4. Reward and Queuing Delay Violation Cost

4.4.1. Throughput-Oriented Reward

The reward encourages useful transmission across all queues, penalizes queuing delay violations for queues 1 to D 1 , and discourages packet drops in all queues. At time slot t, the reward is defined as
r t = α scale i = 0 D 1 κ i C 1 n i , t C 2 χ i min { v i , t , k 0 Δ i } C 3 ξ i , t .
α scale is a reward-scaling coefficient. κ i is the priority weight of queue i. C 1 , C 2 , C 3 , and k 0 are throughput utility coefficient, queuing delay violation penalty coefficient, drop penalty coefficient, and queuing delay violation penalty clip multiplier. χ i is the queuing delay violation penalty indicator of queue i, where χ 0 = 0 and χ i = 1 for i = 1 , 2 , , D 1 . v i , t denotes delay violation magnitude, and is calculated as
v i , t = max { 0 , δ ¯ i , t Δ i } .
ξ i , t is the number of packets that are dropped, and it is calculated as
ξ i , t = max { 0 , Q i , t n i , t + A i , t B } .

4.4.2. Queuing Delay Violation Cost for Highest-Priority Queue 0

The highest-priority queue 0 carries bursty traffic with stringent delay requirements. To enforce its delay constraint, we treat its queuing delay violation cost c ^ 0 , t in time slot t as a constraint signal. For brevity, c ^ 0 , t is abbreviated as c t . The policy is then required to satisfy J C ep = t = 0 H 1 c t d c , where d c is a predefined violation budget.

4.5. Parameter Update

At each update step, a mini-batch of transitions ( s , a , r , c , s , done ) is sampled from the replay buffer B . The per-step updates are performed as follows.
Reward Critic Update. Each reward critic minimizes the squared Bellman residual,
L Q ( θ i ) = E ( s , a , r , s ) B Q θ i ( s , a ) y R 2 , i { 1 , 2 } ,
with target value
y R = r + γ ( 1 done ) min i = 1 , 2 Q θ ¯ i ( s , a ) α log π ϕ ( a s ) .
Here, γ ( 0 , 1 ) is the discount factor. a π ϕ ( · s ) is the next action sampled from the current policy. α is the entropy temperature.
Constraint Critic Update. The constraint critic minimizes the squared Bellman residual,
L Q C ( ψ ) = E ( s , a , c , s ) B Q ψ C ( s , a ) y C 2 ,
with target value
y C = c + γ ( 1 done ) Q ψ ¯ C ( s , a ) .
Here, a is the same next action sampled from π ϕ ( · s ) used in Equation (17). Crucially, we deliberately omit the entropy bonus in the constraint target, ensuring that Q ψ C remains a pure estimate of the long-term cumulative violation risk, rather than a maximum-entropy value.
Actor Update. The actor is updated by minimizing the Lagrangian SAC loss,
L π ( ϕ ) = E s B , a ˜ π ϕ α log π ϕ ( a ˜ | s ) + λ Q ψ C ( s , a ˜ ) min i = 1 , 2 Q θ i ( s , a ˜ ) .
The first term encourages exploration. The second—weighted by the Lagrange multiplier λ —steers the policy away from actions predicted to increase the queuing delay violation cost of the highest-priority queue 0. The third pushes the policy toward high-reward actions. a ˜ is the output of the actor network π ϕ with input s , i.e., a ˜ π ϕ ( · s ) .
The Lagrange multiplier λ is updated as Equation (21). To prevent unbounded growth and improve stability, λ is projected onto [ 0 , λ max ] and updated separately at episode boundaries.
λ Π [ 0 , λ max ] λ + α λ J C ep d c ,
where Π [ 0 , λ max ] ( · ) is defined as Equation (22), α λ is the multiplier learning rate, and λ max is the upper bound of the multiplier.
Π [ 0 , λ max ] ( x ) = 0 , x < 0 , x , 0 x λ max , λ max , x > λ max .
Entropy Temperature Update. The entropy temperature α is auto-tuned to track a target entropy H ¯ = dim ( A ) , as shown in Equation (23), where dim ( A ) denotes the dimension of the action space A and equals D.
α α α α α E s B , a ˜ π ϕ α log π ϕ ( a ˜ | s ) + H ¯ ,
where α α is the temperature learning rate. This auto-tuning eliminates the need to manually search for an entropy temperature that suits the action space dimensionality.
Target Network Update. At each gradient step, the target critic parameters track the online parameters via Polyak averaging:
θ ¯ i τ θ i + ( 1 τ ) θ ¯ i , i { 1 , 2 } , ψ ¯ τ ψ + ( 1 τ ) ψ ¯ ,
where τ ( 0 , 1 ) is a soft-update coefficient. This mechanism keeps bootstrap targets stable while still tracking the learning progress of the online networks.
Remark 2.
The actor, critics (including the constraint critic), and entropy temperature are updated at every gradient step on the inner timescale, whereas λ is updated only at episode boundaries (i.e., every H time slots). This two-timescale separation aligns the constraint signal that drives λ with the form in which d c is declared (a per-episode budget).

4.6. Approach Execution

The execution process of CSAC-HQS is formally summarized in Algorithm 1.
Algorithm 1 CSAC-HQS
1:
Initialization: actor π ϕ , reward critics Q θ 1 , Q θ 2 , constraint critic Q ψ C ; target networks θ ¯ 1 θ 1 , θ ¯ 2 θ 2 , ψ ¯ ψ ; replay buffer B ; Lagrange multiplier λ 0 ; entropy temperature α 0.2 ; step counter k 0
2:
Parameters: episode length H, update interval G, mini-batch size N, soft-update coefficient τ , discount factor γ , per-episode queuing delay violation budget d c , sharpening factor β , warm-up steps T warm , Lagrange multiplier learning rate α λ , Lagrange multiplier upper bound λ max , temperature learning rate α α , target entropy H ¯ = dim ( A )
3:
for each episode do
4:
   Reset environment to obtain s 0 ; set J C ep 0
5:
   for each time slot t = 0 , 1 , , H 1 within the current episode do
6:
     Observe current state s t = [ b t , v t , h t ]
7:
     Sample u t = μ ϕ ( s t ) + σ ϕ ( s t ) ϵ t , ϵ t N ( 0 , I ) ; a t = tanh ( u t ) ; z t = β a t
8:
     Apply masked softmax to z t to obtain allocation weight vector w t as Stage 1 in Section 4.3
9:
     The weight vector w t is converted into integer transmission quota vector n t as Stage 2 in Section 4.3
10:
     Execute transmission according to n t ; observe r t , c t , s t + 1 , done t
11:
     Store ( s t , a t , r t , c t , s t + 1 , done t ) in B
12:
      J C ep J C ep + c t ; k k + 1
13:
     if  | B | N and k T warm and k mod G = 0  then
14:
        Sample a random mini-batch of N transitions from B
15:
        Update reward critics Q θ 1 , Q θ 2 by minimizing L Q ( θ i ) as Equations (16) and (17)
16:
        Update constraint critic Q ψ C by minimizing L Q C ( ψ ) as Equations (18) and (19)
17:
        Update actor π ϕ by minimizing L π ( ϕ ) as Equation (20)
18:
        Update entropy temperature α as Equation (23)
19:
        Soft-update targets as Equation (24)
20:
     end if
21:
   end for
22:
   Update the Lagrange multiplier λ as Equation (21)
23:
end for

5. Evaluation

This section evaluates the proposed CSAC-HQS via experiments, using the parameters summarized in Table 1 and the following baseline methods.
1) Static: As a simple heuristic baseline, we employ a round-robin-like policy with fixed proportional weights. The raw weights for queues 0, 1, and 2 are set to 1,2,3, respectively, which are normalized by their sum to obtain the transmission shares ( 1 / 6 , 2 / 6 , 3 / 6 ) . To make these shares physically realizable, we apply the integer quota mapping described in Section 4.3, which translates the shares into per-slot transmission counts while strictly adhering to the capacity and backlog constraints.
2) Dynamic: As another simplified heuristic baseline, this policy allocates resources proportionally to instantaneous queue lengths, i.e., w i Q i , t . Specifically, the raw weights are normalized by their sum to obtain the effective transmission shares w i = Q i , t / j Q j , t . The integer quota mapping from Section 4.3 is subsequently applied to translate these shares into feasible per-slot transmission counts.
3) SAC: As a learning-based baseline without explicit delay constraints, we adopt the standard SAC [25] with the same state space, action space, network architecture, and training settings as CSAC-HQS, but omit the constraint critic and the Lagrangian multiplier (i.e., λ = 0 ). For action generation, it employs the basic masked-softmax mapping, corresponding to a fixed sharpening factor β = 1 . Since no explicit constraint is enforced, the queuing delay violation penalties of all queues are incorporated into the reward as a linearly scalarized combination of throughput (positive reward) and packet-loss (negative penalty terms), with hand-tuned coefficients. This formulation aligns with recent SAC-based multi-queue schedulers, e.g., the WFQ continual-DRL framework of Mawlood and Mahmood [19]. We summarize the key distinctions between SAC and CSAC-HQS in Table 2.
All experiments are implemented in Python using a Gymnasium-style environment interface and PyTorch [26]. For non-learning baselines (Static and Dynamic)—which are deterministic—each is evaluated over 100 test episodes, and we report the average performance across these episodes. The performance per episode is quantified by the following metrics: (i) the queuing delay violation rate for queue 0 (which carries bursty traffic with a stringent delay constraint), 1 H t = 0 H 1 1 { δ 0 , t > Δ 0 } ; (ii) the average queuing delay for each best-effort queue (queues i = 1 , 2 ), 1 H t = 0 H 1 δ i , t ; (iii) the throughput (packets per time slot) for each queue; and (iv) the per-episode total overflow packet count for each queue. For each learning-based method—including SAC, CSAC-HQS ( β = 1 ), and CSAC-HQS ( β = 5 )—we perform 5 independent training runs with different random seeds, yielding 5 trained policies. For each of these policies, we compute four average performance metrics over 100 test episodes following the same procedure described above. Then we report the mean and standard deviation for each of these four average metrics across the 5 policies.

5.1. Queuing Delay Violation Rate for Queue 0

For queue 0, the maximum allowable queuing delay violation rate is set to 1.0%, corresponding to a per-episode delay budget of d c = 2 time slots over an episode length of H = 200 (i.e., d c / H ). As shown in Figure 3, the violation rates for the Static and Dynamic baselines are 18.38% and 34.28%, respectively, both far exceeding this budget line. The Dynamic method exhibits a higher violation rate than the Static method. This is because the Dynamic method allocates resource in proportion to instantaneous backlog and therefore reacts to accumulated queue length rather than the imminent deadline risk of packets; this strategy frequently causes queue 0 to exceed Δ 0 . Among the three learning-based methods, CSAC-HQS ( β = 1 ) and CSAC-HQS ( β = 5 ) achieve violation rates of 0.91 % ± 1.30 % and 0.05 % ± 0.09 % , respectively, while the unconstrained SAC reaches 7.87 % ± 5.98 % . In terms of mean values, both CSAC-HQS variants fall below the 1.0% budget line. However, when requiring that the upper bound of the standard deviation also remains under the threshold, only CSAC-HQS ( β = 5 ) qualifies (i.e., mean + std < 1.0%). This underscores the effectiveness of action sharpening in not only enforcing the delay constraint but also stabilizing performance across different random seeds.

5.2. Average Queuing Delay per Best-Effort Queue

As shown in Figure 4, for the Static method, the average queuing delay of queue 1 exceeds the 20 ms threshold, while queue 2 falls below the 30 ms threshold. Dynamic, SAC, and the two CSAC-HQS variants maintain the average queuing delays of queue 1 and 2 within their respective thresholds. Although the Dynamic method achieves the lowest average queuing delays on both queues, this comes at the cost of a higher queuing delay violation rate for queue 0, see Figure 3. Among the learning-based methods, the unconstrained SAC yields the highest average queuing delay on both best-effort queues ( 12.4 ± 3.1 ms on queue 1 and 18.9 ± 4.1 ms on queue 2); the two CSAC-HQS variants attain lower average queuing delays than SAC, with CSAC-HQS ( β = 5 ) achieving the lowest. Overall, these results demonstrate that the standalone constraint mechanism, together with action sharpening, effectively enforces the delay requirement of queue 0 without starving the best-effort queues.

5.3. Throughput and Overflow Packet Count per Queue

As shown in Figure 5, all learning-based methods deliver nearly identical throughputs for queues 0–2. For instance, CSAC-HQS ( β = 5 ) achieves throughputs of 37 ± 0 , 148 ± 0 , and 196 ± 0 packets/time slot on queues 0, 1, and 2, respectively, which are comparable to the best throughput performance observed among the baselines; SAC and CSAC-HQS ( β = 1 ) attain closely matching throughputs, with 192 ± 5 and 195 ± 1 packets/time slot on queue 2, respectively.
The overflow packet count results further differentiate these methods. Under its fixed transmission rate, the Static method keeps queue 1’s buffer near capacity and incurs a severe overflow loss, with 15.61 packets/time slot dropped on queue 1. The learning-based methods differ mainly on queue 2. The unconstrained SAC incurs an overflow packet count of 4.31 ± 4.16 packets/time slot on queue 2; CSAC-HQS ( β = 1 ) reduces this to 1.98 ± 0.54 , and CSAC-HQS ( β = 5 ) further lowers it to 1.59 ± 0.18 . Although the Dynamic method achieves an even lower overflow count on queue 2 (0.48 packets/time slot), this comes at the cost of the worst violation rate for queue 0 (cf. Figure 3). Moreover, SAC’s standard deviation on queue 2 ( ± 4.16 ) is substantially larger than those of the two constrained variants ( ± 0.54 and ± 0.18 ), further confirming the enhanced cross-seed stability provided by the standalone constraint mechanism and action sharpening.

6. Conclusions

This paper proposes a CSAC approach for joint scheduling and resource allocation in a heterogeneous queuing system, aiming to maximize throughput utility subject to per-queue delay constraints. The system consists of multiple priority queues sharing a single output link: one high-priority queue carries bursty traffic with a stringent delay constraint, while the remaining lower-priority queues are best-effort with distinct delay requirements. Compared with conventional heuristics and an unconstrained SAC baseline, the proposed approach effectively satisfies the delay constraint of the highest-priority queue, while achieving comparable or superior performance in terms of throughput, lower-priority queuing delays, and overflow packet count. These improvements stem from two key components: (i) decoupling the delay constraint from the reward, which we treat as a standalone violation budget, and (ii) a two-stage mapping mechanism that transforms continuous policy logits into integer transmission quotas. Together, these components ensure stringent QoS guarantees without sacrificing best-effort performance.
In future work, we plan to extend our approach to more complex scenarios involving multiple priority queues, each carrying bursty traffic with distinct delay constraints, and to further investigate joint scheduling, resource allocation, and admission control in such settings.

Author Contributions

Conceptualization, A.F. and J.C.; methodology, A.F.; software, A.F.; validation, A.F. and W.Q.; formal analysis, A.F.; investigation, A.F. and W.Q.; writing—original draft preparation, A.F.; writing—review and editing, J.C.; supervision, J.C.; funding acquisition, J.C. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported in part by the National Natural Science Foundation of China under Grant 62361017, in part by Natural Science Foundation of Guangxi under Grant 2023GXNSFBA026212, and in part by the Innovation Project of GUET Graduate Education 2026YCXS063.

Data Availability Statement

The original contributions presented in the study are included in the article, and further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
CoDel Controlled Delay
CRL Constrained Reinforcement Learning
CSAC Constrained Soft Actor-Critic
CSAC-HQS Constrained Soft Actor-Critic for Heterogeneous Queuing Systems
CVaR Conditional Value at Risk
DRL Deep Reinforcement Learning
DRR Deficit Round Robin
EDF Earliest-Deadline-First
FIFO First-In, First-Out
HoL Head-of-Line
IoT Internet of Things
MDP Markov Decision Process
MMPP Markov-Modulated Poisson Process
QoS Quality of Service
QADRA QoS-Aware Deep Reinforcement learning Agent
RSD4 Recurrent Softmax Delayed Deep Double Deterministic policy gradient
SAC Soft Actor-Critic
SAC-FSO Soft Actor-Critic-based Flow Scheduling Optimization
TSN Time-Sensitive Networking
WCSAC Worst-Case Soft Actor-Critic
WFQ Weighted Fair Queuing

References

  1. Foukas, X.; Patounas, G.; Elmokashfi, A.; Marina, M.K. Network slicing in 5G: Survey and challenges. IEEE Commun. Mag. 2017, 55, 94–100. [Google Scholar] [CrossRef]
  2. Lu, Y.; Yang, L.; Yang, S.X.; Hua, Q.; Sangaiah, A.K.; Guo, T.; Yu, K. An intelligent deterministic scheduling method for ultra-low latency communication in edge enabled industrial internet of things. IEEE Trans. Ind. Inform. 2023, 19, 1756–1767. [Google Scholar] [CrossRef]
  3. Mohammadpour, E.; Stai, E.; Le Boudec, J.Y. Improved network-calculus nodal delay-bounds in time-sensitive networks. IEEE/ACM Trans. Netw. 2023, 31, 2902–2917. [Google Scholar] [CrossRef]
  4. Giambene, G. Queuing Theory and Telecommunications: Networks and Applications, 3rd ed.; Springer: Cham, Switzerland, 2021. [Google Scholar] [CrossRef]
  5. Zhang, X.; Lu, Y. Asynchronous channel-aware and queue-aware deficit round robin scheduling strategy for different TSN traffics in the TSN-5G network. Electron. Lett. 2025, 61, e70418. [Google Scholar] [CrossRef]
  6. Mou, S.; Maguluri, S.T. Heavy-traffic queue length behavior in a switch under Markovian arrivals. Adv. Appl. Probab. 2024, 56, 1106–1152. [Google Scholar] [CrossRef]
  7. Li, Z.; Gurushankar, K.; Harchol-Balter, M.; Scheller-Wolf, A. Improving upon the generalized rule: A Whittle approach. ACM SIGMETRICS Perform. Eval. Rev. 2025, 53, 122–124. [Google Scholar] [CrossRef]
  8. Deng, L.; Zeng, G.; Kurachi, R.; Takada, H.; Xiao, X.; Li, R.; Xie, G. Enhanced real-time scheduling of AVB flows in time-sensitive networking. ACM Trans. Des. Autom. Electron. Syst. 2024, 29, 33:1–33:26. [Google Scholar] [CrossRef]
  9. Chen, W.; Tian, Y.; Yu, X.; Zheng, B.; Zhang, X. Enhancing fairness for approximate weighted fair queueing with a single queue. IEEE/ACM Trans. Netw. 2024, 32, 3901–3915. [Google Scholar] [CrossRef]
  10. Bouillard, A.; Boyer, M.; Le Corronc, E. Deterministic Network Calculus: From Theory to Practical Implementation; Wiley-ISTE: Hoboken, NJ, USA, 2018. [Google Scholar] [CrossRef]
  11. Tabatabaee, S.M.; Le Boudec, J.Y. Deficit round-robin: A second network calculus analysis. In Proceedings of the 2021 IEEE 27th Real-Time and Embedded Technology and Applications Symposium (RTAS); IEEE, 2021; pp. 171–183. [Google Scholar] [CrossRef]
  12. Hu, W.; Sun, L.; Wang, J.; Chen, W.; Li, W. Upper-bound latency analysis for TSN with improved network calculus-based model. Electron. Lett. 2025, 61, e70302. [Google Scholar] [CrossRef]
  13. Yang, Q.; Jiang, X.; Liu, R.; Li, T.; Yang, H.; Quan, W.; Sun, Z. A performance-balanced scheduling algorithm for diverse real-world TSN scenarios. IEEE Trans. Parallel Distrib. Syst. 2025, 36, 2469–2481. [Google Scholar] [CrossRef]
  14. Xu, Z.; Tang, J.; Meng, J.; Zhang, W.; Wang, Y.; Liu, C.H.; Yang, D. Experience-driven networking: A deep reinforcement learning based approach. In Proceedings of the IEEE INFOCOM 2018 - IEEE Conference on Computer Communications. IEEE, 2018; pp. 1871–1879. [Google Scholar] [CrossRef]
  15. Mao, H.; Alizadeh, M.; Menache, I.; Kandula, S. Resource management with deep reinforcement learning. In Proceedings of the Proceedings of the 15th ACM Workshop on Hot Topics in Networks (HotNets), 2016; ACM; pp. 50–56. [Google Scholar] [CrossRef]
  16. Stigenberg, J.; Saxena, V.; Tayamon, S.; Ghadimi, E. QoS-aware scheduling in new radio using deep reinforcement learning. In Proceedings of the 2021 IEEE 32nd Annual International Symposium on Personal, Indoor and Mobile Radio Communications (PIMRC); IEEE, 2021; pp. 991–997. [Google Scholar] [CrossRef]
  17. Forero, P.A.; Zhang, P.; Radosevic, D. Active queue-management policies for undersea networking via deep reinforcement learning. In Proceedings of the OCEANS 2021: San Diego–Porto; IEEE, 2021; pp. 1–8. [Google Scholar] [CrossRef]
  18. Wang, X.; Zhang, J.; Lu, X.; Li, F.; Chen, C.; Guan, X. Towards wireless time-sensitive networking: Multi-link deterministic scheduling via deep reinforcement learning. Comput. Netw. 2025, 261, 111119. [Google Scholar] [CrossRef]
  19. Mawlood, M.A.; Mahmood, D.A. Optimizing weighted fair queuing with deep reinforcement learning for dynamic bandwidth allocation. Telecom 2025, 6, 46. [Google Scholar] [CrossRef]
  20. Yang, Q.; Simão, T.D.; Tindemans, S.H.; Spaan, M.T.J. WCSAC: Worst-case soft actor-critic for safety-constrained reinforcement learning. Proc. Proc. AAAI Conf. Artif. Intell. 2021, Vol. 35, 10639–10646. [Google Scholar] [CrossRef]
  21. Zhang, Q.; Leng, S.; Ma, X.; Liu, Q.; Wang, X.; Liang, B.; Liu, Y.; Yang, J. CVaR-constrained policy optimization for safe reinforcement learning. IEEE Trans. Neural Netw. Learn. Syst. 2025, 36, 830–841. [Google Scholar] [CrossRef] [PubMed]
  22. Liu, Y.; Ding, J.; Zhang, Z.L.; Liu, X. CLARA: A constrained reinforcement learning based resource allocation framework for network slicing. In Proceedings of the 2021 IEEE International Conference on Big Data (Big Data). IEEE, 2021; pp. 1427–1437. [Google Scholar] [CrossRef]
  23. Hu, P.; Chen, Y.; Pan, L.; Fang, Z.; Xiao, F.; Huang, L. Multi-user delay-constrained scheduling with deep recurrent reinforcement learning. IEEE/ACM Trans. Netw. 2024, 32, 2344–2359. [Google Scholar] [CrossRef]
  24. Alvi, N.M.; Alvi, W.M.; Zhou, X.; Li, J.; Wei, Y. Constrained soft actor-critic for joint computation offloading and resource allocation in UAV-assisted edge computing. Sensors 2026, 26, 1149. [Google Scholar] [CrossRef] [PubMed]
  25. Haarnoja, T.; Zhou, A.; Abbeel, P.; Levine, S. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. Proc. Proc. Int. Conf. Mach. Learn. (ICML) 2018, Vol. 80, 1861–1870. [Google Scholar] [CrossRef]
  26. Paszke, A.; Gross, S.; Massa, F.; Lerer, A.; Bradbury, J.; Chanan, G.; Killeen, T.; Lin, Z.; Gimelshein, N.; Antiga, L.; et al. PyTorch: An imperative style, high-performance deep learning library. Proc. Adv. Neural Inf. Process. Syst. (NeurIPS) 2019, Vol. 32, 8024–8035. [Google Scholar]
Figure 1. Heterogeneous queuing system model.
Figure 1. Heterogeneous queuing system model.
Preprints 223293 g001
Figure 2. Basic architecture of CSAC-HQS.
Figure 2. Basic architecture of CSAC-HQS.
Preprints 223293 g002
Figure 3. Queuing delay violation rate of queue 0 with a maximum allowable queuing delay of 10 ms (2 time slots).
Figure 3. Queuing delay violation rate of queue 0 with a maximum allowable queuing delay of 10 ms (2 time slots).
Preprints 223293 g003
Figure 4. Average queuing delay of the best-effort queues (queues 1 and 2), with maximum allowable queuing delays of 20 ms and 30 ms, respectively.
Figure 4. Average queuing delay of the best-effort queues (queues 1 and 2), with maximum allowable queuing delays of 20 ms and 30 ms, respectively.
Preprints 223293 g004
Figure 5. Throughput and overflow packet count per queue.
Figure 5. Throughput and overflow packet count per queue.
Preprints 223293 g005
Table 1. Queuing system configurations and CSAC-HQS hyperparameters.
Table 1. Queuing system configurations and CSAC-HQS hyperparameters.
Category Parameter Value
Queuing System Number of queues (D) 3
Buffer capacity (B) 1000 packets
Time slot duration ( T ep ) 5 ms
Episode length (H) 200 time slots
Link capacity lower bound ( K min ) 338 packets
Link capacity upper bound ( K max ) 438 packets
Maximum allowable queuing delays for queue 0, 1, 2 ( Δ 0 , Δ 1 , Δ 2 ) 10, 20, 30 ms
MMPP transition probabilities of queue 0 ( p 01 , p 10 ) 1 0.05 , 0.25
MMPP normal and burst arrival rates 5, 20 packets/ms
Arrival rates of queue 1, 2 30, 40 packets/ms
CSAC-HQS Optimizer Adam
Optimizer learning rate 3 × 10 4
Discount factor ( γ ) 0.99
Replay buffer size 10 6
Mini-batch size (N) 256
Soft-update coefficient ( τ ) 0.005
Entropy temperature ( α ) auto-tuned, initialized at 0.2
Total training steps 5 × 10 5
Actor hidden layers [64, 64, 64, 64]
Critic hidden layers [128, 128, 128, 128]
Sharpening factor ( β ) 1, 5
History window of the link capacity ( τ W ) 10 time slots
Warm-up steps ( T warm ) 1000 time slots
Update interval (G) 10 time slots
Gradient steps per update 1
Per-episode queuing delay violation budget ( d c ) 2
Multiplier learning rate ( α λ ) 3 × 10 3
Entropy temperature learning rate ( α α ) 3 × 10 4
Maximum multiplier ( λ max ) 5
Reward-scaling coefficient ( α scale ) 0.01
Priority weights ( κ 0 , κ 1 , κ 2 ) ( 3 , 2 , 1 )
Throughput utility coefficient ( C 1 ) 1.0
Queuing delay violation penalty coefficient ( C 2 ) 1.0
Drop penalty coefficient ( C 3 ) 0.5
Queuing delay violation penalty clip multiplier ( k 0 ) 10
1 p 01 is the transition probability from state 0 to state 1 and p 10 is the reverse, where states 0 and 1 denote normal and burst modes, respectively.
Table 2. Configurations of the learning-based methods.
Table 2. Configurations of the learning-based methods.
SAC CSAC-HQS
Sharpening factor β 1 1, 5
Masked-softmax yes yes
Queuing delay violation penalty indicator of queue 0 ( χ 0 ) 1 0
Queuing delay violation penalty indicator of queue 1 ( χ 1 ) 1 1
Queuing delay violation penalty indicator of queue 2 ( χ 2 ) 1 1
Constraint critic Q ψ C yes
Lagrangian update on λ yes
Warm-up steps T warm 1000 1000
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

© 2026 MDPI (Basel, Switzerland) unless otherwise stated

Accessibility

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings