arXiv:2610.24621cs.NIOct 2026

Manuscript Offprint

arXiv:2610.24621

A mechanism for TCP-aware Active Queue Management in packet-forwarding devices

Swarnarup Bhunia, Somit Gond, Vayun Goel, Sreelakshmi Manjunath, Padmanabhan Rajan

Swarnarup Bhunia*, Somit Gond*, Vayun Goel, Sreelakshmi Manjunath† and Padmanabhan Rajan School of Computing and Electrical Engineering, Indian Institute of Technology Mandi, HP, India {swarnarupbhunia2003, somitgond2}@gmail.com, {sreelakshmi, padman}@iitmandi.ac.in

Abstract—The deployment of Active Queue Management (AQM) policies is known to be a promising solution to bufferbloat, the problem of persistently-full large buffers in Internet routers. However, most AQMs involve tunable parameters, and some require awareness of the characteristics of the transport-layer protocol implemented at the end systems, thereby rendering their deployment infeasible. We consider one such AQM—a threshold-based queue policy which requires the packet-dropping threshold to be co-designed with relevant TCP parameters. We propose a mechanism that detects network congestion, estimates the congestion window evolution in the end hosts, estimates the required TCP parameter, and produces an optimal value of the packet-dropping threshold. Arguments based on analysis of the TCP fluid model are presented to substantiate the proposed mechanism. A simulation-based performance evaluation reveals the effectiveness of the proposed mechanism, compared to some widely implemented queue policies, in terms of various user- and system-oriented metrics. The proposed mechanism is particularly well-suited for implementation in Software Defined Networks (SDN) where the algorithms can run in the SDN controller and the packet-dropping threshold can be implemented in the data-plane switches through open interfaces.

Index Terms—Bufferbloat, Active Queue Management, Latency, Congestion Control

I. INTRODUCTION

Oversized buffers in packet-forwarding devices, such as routers and switches, are known to cause large queues that lead to increased latency across the Internet [1]. This phenomenon, termed bufferbloat [2], is attributed to the use of the simple DropTail policy in these queues and is known to be the cause of congestion collapse in the nascent stages of the Internet [3], [4]. The use of effective Active Queue Management (AQM) strategies has been identified as a solution [2], [5], [6]. Although numerous AQM policies have been proposed; see the survey in [7], most of them require precise parameter tuning, making them difficult to deploy in edge or core routers. Consequently, AQMs are not actively deployed in today's networks. This prompted the Internet Engineering Task Force to update the recommendations for the selection and deployment of AQMs, see RFC 7567 [8]. The most important, arguably, of these recommendations was that an AQM must be able to self-tune its parameters on the basis of operational conditions.

In the recent past, machine learning (ML) approaches have been adopted for AQM design, leading to AQMs which can self-tune their parameters. For a detailed survey, see [9]. Most of these AQMs, for example, LearnQueue [10], RLECN [11], PET [12] etc., use reinforcement learning to tune buffer size or packet-marking thresholds. Implementation of such AQMs requires large amounts of training data and their operation incurs significant computational overhead [9]. Moreover, the self-correcting mechanisms inherent to reinforcement learning may cause instabilities in the network leading to increased jitter and unfairness. Consequently, one cannot definitively conclude that these ML-based AQMs can be deployed in real-world networks or that they outperform traditional ones [9], [13].

Parallely, the emergence of Software Defined Network (SDN) architectures has enabled the implementation of the control plane of the network layer in remote servers. With this, queue-management decisions at packet-forwarding devices can now rely on algorithms implemented in remote servers, thereby leveraging their computational capabilities. In particular, the SDN controller can implement algorithms that enable self-tuning of AQM policies deployed in SDN switches. However, despite this capability, existing research on AQM for SDNs has largely focused on developing enhancements of classical AQM schemes that are amenable to implementation in programmable SDN switches. For example, P4-CoDel [14] is based on CoDel, iRED [15] on Random Early Detection (RED), and PI2 [16] is an enhancement of the Proportional Integral (PI) queue policy. Although implementable, these enhanced AQMs carry the demerits of the underlying core techniques. For instance, iRED uses an exponential weighted moving average (EWMA) of the queue size to make packet-dropping decisions [15], similar to the original RED policy, which is known to make networks prone to instability and their operation highly sensitive to the choice of EWMA parameters and packet-dropping thresholds [17]. Consequently, practical deployment of AQMs remains challenging.

Studies reveal that to effectively deploy most AQMs, their parameters and packet-dropping/marking thresholds need to be tuned in accordance with TCP parameters, inherent to the congestion control algorithm in the transport layer of the end hosts, which are unknown to the router/switch deploying the AQM [18]–[21]. Leveraging this, we develop a mechanism that can learn the congestion-control behaviour of the transport protocol implemented in the end hosts and make optimal packet-dropping decisions at the routers/switches, thereby enabling

*Equal contribution †Corresponding author

A part of this work appears as Bhunia, Swarnarup, et al., “A mechanism for TCP-aware adaptive management of queues in Internet routers.” in Proceedings of the 18th International Conference on COMmunication Systems and NETworks (COMSNETS). IEEE, 2026.

an AQM to self-tune its parameters for prevalent operational conditions. In this paper, we focus on a recently proposed threshold-based queue policy [19], [20], which requires that its packet-dropping threshold be co-designed with relevant TCP parameters. We outline a mechanism that estimates the congestion window maintained by the end hosts and estimates the required TCP parameter(s) from the estimated congestion window, and then computes the packet-dropping threshold based on the estimate. The so-computed threshold is used to activate the AQM once the router/switch experiences congestion. The proposed mechanism uses (i) a simple supervised learning technique to estimate the congestion window, and (ii) fundamental principles of TCP congestion control to estimate the relevant parameters. The use of supervised learning lowers the training requirement, compared to other reinforcement-learning-based AQMs which typically require rigorous training and precise tuning. Furthermore, our approach is grounded in mathematical understanding of the underlying TCP-AQM feedback system, which confirms that maintaining control-theoretic stability of the feedback system guarantees improved network performance. Therefore, the proposed algorithms promise stable operation of the network at an operating point that ensures improved performance. The performance of the proposed mechanism is evaluated using a simulation-based study conducted on ns-3 [22]. It is compared with the widely used DropTail policy and the Adaptive RED (ARED) policy which is currently implemented—although not deployed—in most IP routers and SDN switches. The mechanism, supported by analytical arguments and inferences from the simulations, leads to TCP-aware queue management for low-latency operation of packet-forwarding devices. It is particularly well suited to SDN architectures where all the computations required for the learning-based decision making are performed in the SDN control server and the decisions are installed in the switches through P4 programming [23]. This makes the algorithms implementable in current light-weight SDN switches.

The key contributions of this paper are as follows.

(i) An algorithm for congestion detection through observations of queue size at a packet-forwarding device.

(ii) Application of a simple supervised-learning technique to estimate the congestion window maintained at the end hosts from sequence numbers from the IP datagram payload.

(iii) Methodology for estimating a representative TCP parameter from the estimated congestion window traces supported by relevant mathematical derivations.

(iv) An algorithm for computing the packet-dropping threshold, using the estimated TCP parameter in conjunction with an established control-theoretic result, for stable operation of the network with improved network performance.

(v) Simulation-based performance evaluation with relevant topologies, traffic compositions and metrics, and comparison with relevant baseline policies.

The rest of the paper is organised as follows. The preliminaries and the problem formulation are presented in Section II. Section III outlines the proposed mechanism, and Section IV presents the simulations and results. We conclude in Section V.

References (33)