arXiv(opens in a new tab)cs.LGOct 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2610.13571

Simultaneous Competitive and Regret Guarantees for TCP Acknowledgment

Tsubasa Harada, Yasushi Kawase, Hanna Sumita

Abstract

We study simultaneous competitive and regret guarantees for TCP acknowledgment. Each acknowledgment serves all pending packets, and the objective is to minimize the total acknowledgment and waiting costs. It is well known that no deterministic online algorithm achieves a competitive ratio better than 2. Given kk randomized online experts and 0<ε<10 < \varepsilon < 1, we construct a randomized online algorithm whose realized total cost is always at most (2+ε)(2 + \varepsilon) times the offline optimal cost OPT and whose expected regret against the expert with the smallest realized cost is O(OPTlog⁡(k+1)+log⁡(1/ε))O(\sqrt{\text{OPT}\log(k+1)} + \log(1/\varepsilon)). The algorithm requires no advance knowledge of the number of packets or OPT. Our algorithm controls switching costs between experts and uses the gap between the permitted competitive bound and its current cost to determine when to learn. We also prove lower bounds showing that, for k≥2k \geq 2, this regret bound is asymptotically optimal in OPT, kk, and ε\varepsilon, and that ε>0\varepsilon > 0 is necessary for sublinear regret.

1 Introduction

In TCP acknowledgment, an online algorithm decides when to acknowledge arriving packets. Each acknowledgment costs one and serves all packets that have arrived but have not yet been acknowledged. Delaying an acknowledgment can reduce the number of acknowledgments, but increases the waiting cost of the packets. The objective is to minimize the number of acknowledgments plus the total waiting cost.

TCP acknowledgment has been studied through competitive analysis, which compares an online algorithm with an optimal offline schedule on the same input. Dooly et al. [2001] show that the greedy algorithm, which acknowledges whenever the waiting cost accumulated since its previous acknowledgment reaches one, is 2-competitive, and that no deterministic online algorithm achieves a smaller competitive ratio. A worst-case competitive guarantee alone, however, does not ensure that an algorithm performs nearly as well as a policy suited to the particular arrival pattern. Different acknowledgment policies may perform well on different inputs.

This motivates an approach based on prediction with expert advice. We are given a collection of online acknowledgment algorithms as experts and use their observed costs to decide which expert to follow. In addition to the competitive ratio, we evaluate the resulting algorithm by its regret: the difference between its total cost and the smallest total cost incurred by an expert on the same input. Writing OPT for the offline optimal cost, an expected regret bound of o(OPT)o(\text{OPT}) ensures that the algorithm's expected cost is at most 1+o(1)1 + o(1) times the expected cost of the best expert in hindsight as OPT grows.

Our goal is to adapt to the experts without giving up the worst-case guarantee of competitive analysis. Specifically, we ask whether an online algorithm can maintain a competitive ratio arbitrarily close to two for every realization of its random choices while achieving expected regret sublinear in the offline optimal cost.

References (27)

  • Dynamic TCP acknowledgment: Penalizing long delays
  • A tale of two metrics: Simultaneous bounds on competitiveness and regret
  • Online metric algorithms with untrusted predictions
  • Mixing predictions for online metric algorithms
  • The primal-dual method for learning augmented algorithms
  • Pure Tail Constraints for Online Problems
  • Online TCP acknowledgment under general delays
  • Online algorithms for multilevel aggregation
  • On-line learning and the metrical task system problem
  • Unified algorithms for online learning and competitive analysis
  • Competitive ratio vs regret minimization: Achieving the best of both worlds
  • On-line analysis of the TCP acknowledgment delay problem
  • Regret minimization for online buffering problems using the weighted majority algorithm
  • Best of both worlds in online control: Competitive ratio and policy regret
  • Online algorithms for repeated optimal stopping: Balancing baseline guarantees and regret (opens arXiv in a new tab)
  • Online dynamic acknowledgement with learned predictions
  • Parameter learning algorithm for the online data acknowledgment problem
  • Dynamic TCP acknowledgment and other stories about $e/(e-1)$
  • Online matching with delays and size-based costs
  • This proves $N_{1}(t) \leq N_{z}(t)$
  • Waiting paid by $A_{\mathrm{R}}(z)$ after this schedule has served a packet can be charged to that schedule's acknowledgment
  • Fix such an interval ending at $b$, and let $a$ be the latest arrival time among its $j$ triggering packets
  • These give $N_u(t) \leq \mathrm{OPT}(t)/u$ and
  • Set $L = \sum_{s=1}^h \ell_s(I_s)$, $W_s = \sum_{i=1}^k w_{i,s}$, and $p_{i,s} = w_{i,s}/W_s$
  • This holds for $s = 1$
  • Since $\ell_s(i)/2 \in [0,1]$, convexity gives
  • For every $i \in [k]$