Manuscript Offprint
arXiv:2611.12843Contention Resolution with a Fast-but-Fickle Channel
Abstract
The contention-resolution problem studies how devices share a communication channel without centralized coordination. Classical models typically assume a single continuously available channel and focus on minimizing total completion time. However, modern wireless systems increasingly rely on shared spectrum, where access may be abruptly revoked by incumbent users.
Motivated by this setting, we study contention resolution with two channels: a reliable slow channel and a faster channel that can be intermittently disabled by unpredictable eviction periods. Moving a batch of packets from the slow channel to the fast channel incurs a unit cost, while evictions from the fast channel impose a larger per-packet penalty. Our goal is to achieve asymptotically optimal latency while minimizing switching overhead relative to an optimal offline algorithm that knows the eviction schedule.
We present RANDOMIZED ADAPTIVE CHANNEL EXPLOITATION (RACE), a randomized algorithm that exploits the fast channel when available while maintaining progress on the slow channel during disruptions. When the fast channel has rate and a sufficiently large constant-factor resource augmentation, RACE achieves an competitive ratio for expected latency. RACE's expected switching-cost competitive ratio relative to any optimal-latency offline algorithm OPT is , where is the number of fast-channel availability intervals used by OPT.
We also prove a worst-case switching-cost competitive ratio for latency-competitive randomized algorithms, and a separate switching-cost competitive-ratio lower bound. These lower bounds hold even with fixed constant-factor augmentation on both channels.
Keywords: Contention resolution, online algorithms, multiple access channel, resource augmentation, distributed algorithms.
1 Introduction
Dynamic spectrum sharing offers a way to increase wireless capacity. Rather than assigning spectrum exclusively, underutilized government-licensed spectrum can be shared with commercial and industrial users [17, 50, 20]. These secondary users may access spectrum opportunistically, but must avoid interference with incumbents, who have priority access rights. For example, the U.S. Citizens Broadband Radio Service (CBRS) framework allows secondary access while protecting incumbents [35]. Current Spectrum Access System (SAS) deployments are centralized, though decentralized architectures have been proposed to improve scalability and robustness [53].
A central algorithmic difficulty is that secondary access can be revoked. When an incumbent becomes active, secondary users may be forced to vacate the high-capacity spectrum; that is, they are evicted from the fast channel. Such evictions can be difficult to detect, predict, or coordinate around [41, 22]. Thus, dynamic spectrum sharing provides high throughput but unpredictable availability.
Here, we address contention resolution in this setting. Contention resolution asks how packets, or the devices sending them, share a communication channel without centralized scheduling (see surveys [9, 25]). A packet succeeds only when it transmits alone in a slot; if multiple packets transmit, a collision occurs and none succeeds. Classical models typically assume one continuously available channel, and the primary goal is to minimize latency, the time until all packets have successfully transmitted.
Dynamic spectrum sharing changes this picture. A secondary system may have access to a “fast-but-fickle” channel with high capacity, together with a slower fallback channel that remains continuously available. Algorithms must decide not only when packets transmit but also when they move between channels. These transitions incur overhead from re-association, reconfiguration, and service disruption. Excessive switching is therefore costly even when latency is low. The challenge is to exploit the fast channel when available, tolerate evictions, and avoid unnecessary switching.
Our work extends classical contention resolution to a two-channel model with a reliable slow channel and a faster channel subject to unpredictable evictions. We ask whether decentralized algorithms can achieve near-optimal latency while controlling the switching costs of moving packets between channels.
Our Problem Statement. Initially, packets share a reliable slow channel, each requiring one collision-free transmission to succeed. Packets may also use a faster channel subject to unpredictable evictions. We compare against an optimal offline algorithm, OPT, that knows the eviction schedule and can schedule packet transmissions without collisions to minimize latency. Our goal is to design an online, decentralized algorithm whose expected latency is within a constant factor of OPT's while achieving a low switching-cost competitive ratio relative to OPT.
Communication Channels. Packets communicate over two multiple-access channels: the slow channel and the fast channel. Time is divided into slots. On the slow channel, each packet may perform at most one action—either transmit or listen—per slot. On the fast channel, each slot consists of mini-slots, where is an integer, and a packet attached to the fast channel may transmit or listen in each mini-slot. Unless otherwise specified, “slot” refers to a slow-channel slot.
Each packet is attached to exactly one channel at a time, and all packets are initially attached to the slow channel. A packet may voluntarily switch from the slow channel to the fast channel only at a slow-slot boundary. In contrast, a packet may switch from the fast channel to the slow channel at any time, either voluntarily or as a result of an eviction. In either case, the packet becomes attached to the slow channel immediately but cannot act there until the next permitted slow-slot boundary.
In a slot, or in a fast mini-slot, no transmission produces an empty outcome; exactly one produces a success; and two or more produce a collision, in which no transmission succeeds. Every packet participating on the relevant channel receives ternary feedback indicating which of these three possible outcomes actually occurred. A transmitting packet immediately learns whether it succeeded and immediately terminates. A packet is active until it succeeds, and denotes the current active population. Measurement and reporting transmissions also carry data: their successful senders terminate.
Evictions. As the online component of the model, the fast channel is subject to eviction periods, during which packets cannot access it. An eviction period may begin at time zero and may last indefinitely. All packets on the fast channel when such a period begins are evicted. At slot boundaries, packets on the slow channel can observe whether the fast channel is currently available. This observation requires no slow-channel action and reveals only whether the fast channel is available at that boundary.
The eviction schedule is fixed independently of the algorithm's random choices. Eviction periods may begin and end at arbitrary fast mini-slot boundaries; if an eviction begins exactly when a transmission ends, that transmission is completed before the eviction takes effect. An iteration is a maximal interval of fast-channel availability. Every iteration that occurs contains at least full slow slots, for a sufficiently large fixed constant specified in Section A.1. We impose this restriction because very brief periods of fast-channel availability would offer little opportunity for meaningful performance gains, and rapid alternation between availability and eviction seems unlikely in practice. However, an eviction period may last indefinitely, so the fast channel is not guaranteed to become available again.
Metrics. We consider two cost measures:
-
Latency: The number of slots until all packets succeed, rounded up to a slow-slot boundary.
-
Switching cost: A batch of packets attempting to move from slow to fast incurs unit cost, even if the fast channel is unavailable. Moving packets from fast to slow costs , whether voluntarily or by eviction.
Latency is the traditional performance measure for contention resolution [9, 25]. Switching cost captures a separate concern: the overhead of changing channel assignments. Motivated by coordinated or group association in wireless systems [49, 21, 8], our asymmetric model charges unit cost to move a batch onto the fast channel. Returning packets to the slow channel incurs a per-packet cost, reflecting the greater disruption and reconfiguration overhead of reassignment; for voluntary returns, this cost also captures the foregone opportunity to complete those packets' transmissions on the fast channel.
We compare our algorithm to an optimal offline algorithm, OPT, that knows the eviction schedule and schedules transmissions perfectly, without empty slots or collisions when usable service and pending packets are available. Let and denote latency and switching cost on instance ; expectations are written explicitly for randomized algorithms. The minimum achievable latency under the same attachment and boundary rules is . Fix a schedule attaining it, and let be the number of iterations in which that schedule successfully transmits on the fast channel. Our upper bound holds for every such choice; the multiplicative switching comparison is asserted for . For the lower-bound denominator, we may choose a minimum-switching schedule among the minimum-latency schedules.
In the spirit of resource augmentation [51], we assume our algorithm has logical subchannels on the physical fast channel, for a sufficiently large fixed . Each is a noninterfering transmission resource providing one opportunity per mini-slot, with its own collisions and feedback. Thus our algorithm has aggregate capacity opportunities per slow slot, compared with for OPT. An eviction affects all subchannels. There is no slow-channel augmentation: both algorithms have one slow opportunity per slot.
1.2 Main Results
Our results apply when and , where the constant implicit in the lower bound is sufficiently large. Our decentralized algorithm RANDOMIZED ADAPTIVE CHANNEL EXPLOITATION (RACE) achieves the following guarantee.
Theorem 1. On every fixed instance , RACE guarantees
Moreover, if OPT uses fast-channel iterations, then
The latency bound also applies when , and in this case, RACE incurs zero switching cost with high probability and expected switching cost.
The switching-cost bound improves when OPT uses more fast-channel iterations. For example, when and , the ratio is .
Our upper bound is complemented by lower bounds:
Theorem 2. Let be any randomized online algorithm that is constant-competitive in expected latency. Then:
(A) There is a fixed eviction schedule on which incurs expected switching-cost competitive ratio .
(B) There is a fixed schedule in which a single eviction permanently disables the fast channel and incurs expected switching-cost competitive ratio .
The first construction shows that our switching-cost competitive ratio is asymptotically tight when OPT uses a constant number of fast-channel iterations: our upper bound becomes , matching the lower bound. The second shows that even a single eviction can force an switching-cost competitive ratio: exploiting the fast channel requires exposing sufficiently many packets to eviction, while OPT can avoid this cost by knowing the eviction time.
2 Related Work
We review related work on dynamic spectrum sharing, contention resolution, online scheduling, and resource augmentation.
Dynamic Spectrum Sharing. Bhattarai et al. [17] survey tiered-access architectures and database-driven coordination frameworks such as Spectrum Access Systems (SAS), which enable coexistence between incumbents and secondary users. AWS-3 and CBRS illustrate this approach [41]. Reliable incumbent detection using sensing and learning has also been studied [22], along with the regulatory and economic mechanisms underlying dynamic access [50, 20].
This literature largely emphasizes systems, experiments, regulation, and optimization. We complement it with a formal contention-resolution model and upper and lower bounds under unpredictable evictions.
Static Contention Resolution. Classical contention resolution often studies the static or batched-arrival setting, in which all packets are initially present. The standard objective is makespan, the time until all packets succeed. Randomized and deterministic protocols have bounds ranging from for classical backoff approaches to optimal makespan in suitable models [12, 38, 39, 44, 45]. Extensions consider adversarial arrivals [19, 27, 26, 3, 2], energy efficiency [43, 16], multiple slow channels [28], and robustness to jamming [15, 7, 48, 24, 5, 4, 14, 13].
These models generally assume fixed communication resources, even under jamming. We instead study fast-channel availability interrupted by incumbent evictions, with switching cost as a second objective.
Scheduling, Reallocation, and Shared Channels. Our model is also related to online scheduling, where packets correspond to jobs and channels to machines. A close classical analogue is scheduling on heterogeneous machines, including uniform or related machines with different speeds [52, 46, 32]. Related directions include semi-online models with partial information [31, 29, 54] and job rejection, migration, or reassignment [33, 30, 47].
Several scheduling problems involve channels more explicitly: contention resolution with deadlines [1], window scheduling and station assignment [10, 11, 40], dynamic client reallocation across channels [23, 34], and fault-tolerant packet scheduling [42, 6, 18, 36]. Related work also studies distributed scheduling in message-passing models [37].
Our setting differs because packets contend through randomized transmissions on shared multiple-access channels rather than being assigned to machines or scheduled centrally on links. Fast-channel evictions also require controlling switching costs between the fast channel and a reliable slow channel.
3 Algorithm Specification
We describe RANDOMIZED ADAPTIVE CHANNEL EXPLOITATION (RACE) and the intuition behind its design.
3.1 Preliminaries
We use separate procedures for population estimation, contention resolution, and channel selection.
Number of active packet estimates. RACE calls a decentralized subroutine ESTIMATE when all surviving packets are on the slow channel. Its initial call returns a common estimate of ; later calls return a common estimate of the active population, . With high probability, both are within a constant factor of the population. Each later call takes slots. Population-size approximation is standard [43]; Appendix C specifies the guarantees used by RACE.
TSTB contention primitive. RACE uses TRUNCATED SAWTOOTH-BACKOFF (TSTB) as its contention-resolution subroutine [16]. A fresh execution with size parameter follows a predetermined sequence of contention windows. In each window, every remaining participant chooses one transmission opportunity uniformly and independently. Successful packets leave. The prescribed completion window contains opportunities, including in the first window, so its duration at rate is when .
We rely on the following properties of TSTB. For a population within a fixed constant factor of an appropriate size parameter, a constant fraction succeeds except with probability . If at most packets participate in a fresh execution with size parameter , all succeed except with probability , for a fixed . Executions can be paused by stopping their common logical clock; permanent departures do not delay the remaining packets under the fixed schedule. Further details of the execution and its analysis appear in Appendix A.1.
3.2 Algorithm Specification and Intuition
RACE seeks constant-competitive latency while limiting switching cost. The slow channel provides progress during evictions; gradually increasing fast batches exploit availability without exposing too many packets to eviction.
Shared State and Specification. Figure 1 gives the pseudocode, and Figure 2 provides a high-level illustration for RACE. All surviving packets maintain the same fast-batch index , current population estimate , and completed-work counter . Following the initial call to ESTIMATE (lines 1–2), and .
The counter tracks progress since the most recent estimate and determines when to update it. It is not an exact count of successful packets: slow-channel TSTB successes are counted directly, while progress on the fast channel is credited using intended batch sizes, as specified below. A sufficiently small fixed constant sets the update threshold .
1 Run the initial ESTIMATE call to obtain ; set , , and as in Equation (1); 2 Begin an estimation epoch: set and initialize a paused slow TSTB instance with parameter ; 3 while this packet remains active do 4 if then 5 | Enter permanent slow-channel cleanup with guess ; 6 else if then 7 | Enter permanent slow-channel cleanup with guess ; 8 else if then 9 Run ESTIMATE with bound , checking at every slow boundary; 10 If the call finishes first, update and begin a new estimation epoch, retaining ; 11 else if fast availability is observed then 12 Set ; choose a fast subchannel or remain on the slow channel using the Subchannel Assignment rule (described below); 13 Execute TSTB on each fast subchannel for slots; any packets evicted before the end that have not succeeded return to the slow channel and wait; 14 Return survivors at the deadline; use one settling slot and one reporting slot; 15 if the report is nonempty then 16 Set ; 17 else 18 | Set and ; 19 else 20 Execute the next slot of the slow-channel TSTB execution; if a packet succeeds, set ; 21 If its completion window ends, start a fresh instance with parameter , retaining ;
Figure 1: RANDOMIZED ADAPTIVE CHANNEL EXPLOITATION (RACE)
RACE uses two fixed cutoffs to determine when it enters permanent slow-channel cleanup, a final stage in which it no longer admits fast batches:
The population cutoff causes RACE to stop using the fast channel once its estimate of the remaining population is sufficiently small. The test in lines 6–7 also includes the safeguard , so cleanup begins when . The time cutoff stops new fast-channel admissions once that many slow slots have elapsed, regardless of the remaining population (lines 4–5). Time is measured from the beginning of execution, including the initial estimation call. A fast round already underway finishes before cleanup begins. With high probability, , so and for sufficiently large . The constant is chosen sufficiently large relative to the augmentation and estimation constants.
How Cleanup Works. During cleanup, all remaining packets run TSTB on the slow channel, doubling the size parameter after each unsuccessful execution until all packets succeed. The initial parameter is based on for the population cutoff and for the time cutoff, with a fixed minimum if the estimate is too small. Appendix A.1 specifies the procedure; Lemma 10 bounds its expected completion time.
After each population estimate, RACE resets and initializes a slow-channel TSTB execution with parameter (line 2, and lines 8–10 for later estimates). An estimation epoch begins when a population estimate is obtained and ends when the next call to ESTIMATE begins or permanent slow-channel cleanup starts. Updating the estimate does not reset b.
When the fast channel is available, RACE admits one batch of packets (lines 11–18). It partitions this batch among the logical subchannels, with an intended number of x packets per subchannel, where:

Figure 2: High-level illustration of RACE. On the fast channel, each box represents mini-slots. Teal boxes, on the fast-channel and slow channel, indicate activity, which may include successful transmissions, collisions, and empty mini-slots. Gray boxes represent idle slots, dark-red boxes represent fast-channel eviction periods, and blue boxes represent executions of ESTIMATE, each spanning multiple slow-channel slots. Upward arrows indicate batches moving onto the fast channel, while downward arrows indicate packets returning to the slow channel after eviction. The initial population estimate is , and subsequent estimates are denoted by ; each becomes available when its estimation finishes. An iteration is a maximal interval of fast-channel availability. Each fast round includes TSTB execution, a settling slot (), and a reporting slot (). An estimation epoch begins when a population estimate is obtained and ends when the next estimation begins or permanent slow-channel cleanup starts. The slow-channel TSTB execution is paused during fast rounds and resumes afterward. Once a cutoff is reached, RACE finishes the remaining packets on the slow channel.
The intended total batch size is ; although, since packets independently choose whether to join and which subchannel to use, the actual number selected may differ. Each subgroup executes a fresh TSTB instance with parameter at rate . All surviving packets use the same scheduled duration:
We call the operation of admitting and processing this batch, followed by two slots to check for an eviction, a fast round, or simply a round. Even if every selected packet succeeds early, RACE waits until the slots have elapsed. Any packets still on the fast channel then return to the slow channel. During the first of the two additional slow slots, no packet transmits. During the second, packets that were evicted before the scheduled end and have not yet succeeded transmit to report the eviction (lines 13–18). If that slot is nonempty, whether a success or a collision, makes the round aborted: RACE resets and leaves unchanged, although some fast transmissions may have succeeded. Otherwise the round is certified: RACE increments and adds to . Thus, apart from the cap in the definition of , the intended number of packets per subchannel rises from to , , and so on, until a reported abort resets it to . RACE admits no new batch until the round is over.
When the fast channel is unavailable, RACE runs the next slot of slow-channel TSTB (lines 19–21), adding one to for each success. This execution pauses during fast rounds and resumes afterward. If it reaches the end of its prescribed windows while packets remain, a new execution begins with parameter , retaining . The algorithm checks its conditions again at the next slow-slot boundary.
At each slow-slot boundary or after a fast round, RACE checks the cutoffs, then the estimation threshold (lines 4–10). When , it runs ESTIMATE on the slow channel. If estimation

Figure 3: Illustrating the need for fast-channel augmentation. During an initial -slot interval, OPT can complete all packets on the fast channel, while an unaugmented algorithm, ALG, may complete only a constant fraction. If the fast channel then becomes permanently unavailable, ALG requires additional slots to finish on the slow channel.
finishes, it resets and begins a new estimation epoch without resetting . Fast-channel availability does not interrupt estimation, but reaching the time cutoff sends the algorithm to cleanup.
Role of the Two Cutoffs. The cutoffs preserve constant-competitive latency while ensuring that RACE stops admitting fast batches by the time OPT finishes, with high probability. The population cutoff triggers cleanup when only packets remain; these can finish on the slow channel in expected time.
The time cutoff handles later completion by OPT: when OPT needs slots, slow-channel cleanup from any remaining population is affordable. If OPT finishes earlier, our analysis shows that augmented fast-channel capacity forces RACE to reach the population cutoff in time. Thus neither case requires additional fast admissions after OPT finishes.
Subchannel Assignment. In each fast round, every active packet independently chooses subchannel with probability for each , or remains on the slow channel otherwise. This determines both batch membership and subchannel assignment; the numbers selected need not be equal. All selected packets enter as one batch and use only their assigned subchannel. Packets remaining on the slow channel pause TSTB until the round ends, and unsuccessful packets returning from the fast channel resume their previous slow-channel execution.
Motivation for Gradually Increasing Batch Sizes. Each fast batch costs one admission, while an eviction can return many unfinished packets. Small batches limit eviction cost but increase admissions; large batches do the reverse. RACE raises the intended size per subchannel by one after a certified round and resets it to after an abort. Reaching size requires certifying sizes , which complete packets with high probability. The next eviction exposes only packets per subchannel. Thus, larger risks follow substantial progress.
Resource Augmentation. OPT knows future evictions and schedules without collisions. The extra fast-channel capacity of RACE compensates for these advantages. A wireless interpretation is additional bandwidth divided into the logical subchannels described in Section 1.1. Figure 3 shows the difficulty without augmentation: in an initial interval of slots, OPT can finish all packets, while an unaugmented contention-resolution algorithm may leave unfinished. If the fast channel then becomes unavailable indefinitely, slow-channel completion takes further slots, a factor of more than OPT. Sufficient constant-factor augmentation on the fast channel prevents this loss.
The slow channel guarantees eventual delivery, but need not match OPT's throughput at every moment. The time cutoff limits fast admissions and the population cutoff makes earlier slow-channel cleanup affordable. Together they remove the need for slow-channel augmentation.
4 Technical Overview
We outline the main technical challenges; full proofs appear in the appendix. Latency and switching cost pull in opposite directions: RACE must exploit fast-channel availability without knowing the next eviction, but larger batches expose more packets to costly returns. Gradually increasing batch sizes balance these demands. The analysis must also maintain accurate population estimates and prove that fast admissions stop by the time OPT finishes. Otherwise, later fast-channel availability could lead to further switching costs even after OPT has finished.
Throughout this overview, let denote the good event that the initial and subsequent population estimates satisfy their guarantees and that the packet-assignment and progress guarantees of Lemma 2 hold whenever its assumptions are met. Lemma 7 gives probability for any desired fixed , by choosing constants appropriately. Cleanup and cutoff safeguards separately control the contribution of the complementary event.
Batch-Level Estimates. Each fast subchannel has intended batch size ; a packet joins it with probability . When this estimate is within a constant factor of , the expected subgroup size is . Since , Chernoff bounds give participants except with probability . Fresh TSTB then yields successes with the same exponential failure bound. Lemma 2 establishes this simultaneously across subchannels: every certified round of target completes at least packets on , for a constant independent of .
When a fast-channel batch completes its scheduled TSTB execution without interruption, the expected number of unsuccessful packets returning to the slow channel is per subchannel, by the TSTB guarantee and the concentration bound on subgroup sizes. Lemma 1 therefore establishes an expected return cost of for the entire batch.
Tracking Progress Across Channels. The analysis of the counter requires two properties: (i) the population estimate must remain accurate until triggers an update, and (ii) each update must correspond to a substantial decrease in the active number of packets. The counter can differ from the actual progress in either direction: a certified round credits even if fewer packets succeed, while an aborted round may complete packets without increasing .
Maintaining Estimate Accuracy. The main challenge is that aborted rounds may have completed many packets without increasing . We charge those possible departures to preceding certified work. An aborted round with intended size , , follows certified rounds of intended sizes since the last reset of . Since:
the number of packets that could have succeeded during the aborted round is at most a constant multiple of the total intended size of the preceding certified batches.
A complication arises when a round with is aborted, since there may be no preceding certified rounds to account for it. However, the minimum-availability condition (recall from Section 1.1) prevents two such rounds from both being aborted without an intervening certified round or population estimate. Moreover, an aborted round with that follows an aborted round with can be charged to the earlier abort. Lemma 4 shows that the sum of over aborted rounds is at most a constant multiple of the sum of over certified rounds, with an additional for initialization and each population estimate.
For a prefix of estimation epoch , let count slow-channel TSTB successes, and let and be the sums of the intended batch sizes on the fast channel over certified and aborted rounds, respectively. Then . On , every intended per-subchannel batch size is at most:
Within the epoch, Lemma 4 gives . The additive term accounts for an aborted round whose preceding certified rounds may belong to an earlier estimation epoch.
On event , each fast round contains at most packets, regardless of whether it is certified or aborted. Using Lemma 4, we can therefore bound the number of packets that have succeeded since the last population estimate by:
Let denote the estimate at the beginning of estimation epoch , and let be the actual number of active packets at that time. The bound above, together with the rule for updating , shows that sufficiently small and sufficiently large ensure that only a small fraction of these packets can succeed before the next estimate is obtained. Consequently, the estimate remains within a constant factor of the actual number of active packets throughout the epoch, as established in Lemma 5.
Ensuring Substantial Progress. When reaches , RACE specifies that a new population estimate is performed. Every slow-channel TSTB success contributes one to , while each certified fast round completes at least an fraction of the number credited to . Consequently, the number of packets that have succeeded since the beginning of the epoch is at least .
Hence, if another estimation epoch follows, the number of active packets satisfies . Since is a constant, the number of active packets decreases by a constant factor between successive epochs, so RACE invokes the estimator only times. Moreover, because each estimate is within a constant factor of the actual number of active packets, the sum of these estimates over all epochs is .
Progress on the Fast-Channel. On event , RACE invokes ESTIMATE at most times, and each invocation takes slots. Including the initial estimate, the total time spent estimating is therefore . During these slots, RACE does not use the fast channel, even if it is available. Since OPT can transmit at most packets per slot on the fast channel, RACE misses at most fast-channel transmission opportunities due to estimation. Thus, the total loss from estimation is small, even if some fast-channel availability intervals are spent entirely on estimating the number of active packets.
Let denote the total number of fast-channel mini-slots during which the fast channel is available before time . Since OPT can transmit at most one packet per mini-slot on the fast channel and one packet per slow-channel slot, the total number of packets OPT can complete by time is at most:
This bound may count some fast-channel mini-slots that OPT cannot use because packets can switch channels only at slow-slot boundaries, but this only makes the upper bound larger. Lemma 8 shows that, while RACE has not completed or entered cleanup and , we have:
This holds on event , where the constant implicit in is independent of . We establish this bound by accounting for three situations in which the fast channel may be available to OPT: while RACE executes fast rounds, while RACE estimates the number of active packets, and when the fast channel becomes available partway through a slow-channel slot.
During fast rounds. To bound the number of fast-channel transmission opportunities available to OPT during RACE's fast rounds, we first bound the sum of the intended per-subchannel batch sizes over those rounds. Let and be the sums of the intended per-subchannel batch sizes over certified and aborted rounds, respectively, completed by time . Since certified rounds complete at least packets on event , we have .
Let be the number of population estimates initiated by time . Lemma 4 establishes that . Accounting also for a round that may still be in progress at time , whose intended per-subchannel batch size is at most , we obtain:
Recall from specification of RACE (Section 3.2) that each fast round lasts slow slots, including the two additional slots used to determine whether an eviction occurred. During this time, OPT has at most fast-channel transmission opportunities. Thus, the bound on the sum of above shows that the total number of such opportunities during RACE's fast rounds is at most:
The factor arises because RACE makes progress on logical subchannels simultaneously, whereas OPT has only one fast channel.
During population estimation. As established above, RACE spends a total of slots estimating the number of active packets, including the initial estimate. RACE does not use the fast channel during these slots, even if it is available. Consequently, OPT has at most fast-channel transmission opportunities during these periods.
When the fast channel becomes available during a slow-channel slot. RACE checks whether the fast channel is available only at slow-slot boundaries. If the channel becomes available partway through a slot, RACE may therefore miss up to fast-channel transmission opportunities before it can respond. The minimum-availability condition ensures that the fast channel remains available at the next boundary, when RACE begins either a fast round or a population estimate. We can account for at most one such delay before each of these operations. For fast rounds, this additional cost is absorbed into the bound above because . The delays preceding population estimates contribute at most additional opportunities.
Combining these three bounds, using and , gives the fast-channel contribution in Equation 2.
Why RACE stops using the fast channel when OPT finishes early. Finally, OPT can complete at most packets on the slow channel by time , regardless of RACE's progress on that channel. Our analysis does not require RACE to match OPT's slow-channel throughput. By choosing the fast-channel augmentation factor sufficiently large, the term can be made at most . Since , the remaining lower-order terms contribute at most another for sufficiently large . Consequently, as long as RACE has not completed or entered cleanup and , we have:
Combining the Bounds. We now use the bound on OPT's available service to establish our latency guarantee and show that RACE stops admitting new fast batches by the time OPT finishes. Let denote OPT's completion time. We consider two cases, depending on whether OPT finishes before or after RACE's time cutoff. RACE itself does not need to distinguish between these cases.
Case 1: OPT finishes before the time cutoff. Suppose . Since OPT completes all packets by time , we must have . However, if RACE had neither completed nor entered cleanup by , the preceding bound would imply:
which is a contradiction. Therefore, RACE must have completed or entered permanent slow-channel cleanup by the time OPT finishes. Since the time cutoff has not been reached, this cleanup is triggered by the population cutoff, leaving only packets to finish. Their expected completion time is . Moreover, RACE admits no further fast batches after OPT finishes, even if the fast channel subsequently becomes available.
Case 2: OPT finishes at or after the time cutoff. If , then on the initialization good event. The time cutoff prevents further fast admissions, and even slow-only cleanup from all packets costs expected . A round already admitted before finishes normally and adds at most time; its return cost is charged below. Thus this case requires no slow-channel progress advantage.
This explains why a larger fixed population threshold is not an interchangeable substitute for . Cleaning up packets could be too slow when OPT finishes in time, whereas it is affordable in the second case. The population cutoff handles the first case, and the time cutoff handles the second. Lemma 9 formalizes the absence of new fast admissions after OPT, and Proposition 1 establishes expected constant-competitive latency, including exceptional estimates.
Switching Cost. For the switching-cost comparison, assume . Let be the number of reported aborts, and let count the certified rounds before the first abort, between successive aborts, and after the last abort. Each abort resets , whereas a new population estimate does not. Thus, the certified rounds counted by have intended per-subchannel batch sizes . On event , each certified round with intended size completes at least packets. Since each packet succeeds only once, we have:
On event , RACE begins no new fast rounds after OPT finishes. Each reported abort results from an eviction, so two aborted rounds cannot have begun during the same period of fast-channel availability. Lemma 12 bounds the number of such periods before OPT finishes by . Hence , and Cauchy-Schwarz gives:
There are at most fast rounds, each incurring one batch-admission cost. An aborted round following certified rounds has intended per-subchannel size and, on , can return at most packets through eviction. Thus, the total cost of admissions and returns caused by evictions is:
as established in Lemma 13.
We must also account for packets that return to the slow channel because they have not succeeded by the scheduled end of a fast round. Lemma 1 shows that the expected number of such packets is per round, provided the estimate of the number of active packets is sufficiently accurate. Since RACE begins at most rounds on event , Lemma 14 shows that these returns contribute at most to the expected switching cost. This includes packets returning after OPT finishes, provided their fast round began before OPT's completion.
The contribution from executions outside event is negligible, as established using the time cutoff and the guarantees of ESTIMATE. Combining all switching costs gives:
Since OPT incurs at least one switching cost in each of the fast-channel availability intervals it uses, the expected switching-cost competitive ratio is . Together with the latency bound, this proves Theorem 1.
Lower Bounds. For Theorem 2(A), we choose no eviction with probability , or otherwise introduce a one-mini-slot eviction at a uniformly random fast mini-slot boundary strictly inside a slow-channel slot, after the required initial availability period. OPT finishes in slots with constant switching cost. Even a one-mini-slot eviction can force the algorithm to wait until the next slow-slot boundary before returning to the fast channel.
By Markov's inequality, with constant probability over the algorithm's random choices, it finishes the no-eviction instance quickly. Fix any such choice of randomness and consider the resulting execution. Slow-channel successes and fast-channel successes in the first constant number of slow slots total only , so packets succeed on the fast channel thereafter, before the algorithm finishes. We group those packets by their last move onto the fast channel before success. If there are many groups, batch admissions already incur substantial switching cost. Otherwise, packets remain on the fast channel long enough that a randomly chosen eviction incurs substantial cost. For group sizes , the total time spent by packets on the fast channel, summed over packets and mini-slots, is after accounting for constant-size groups and excluding mini-slot boundaries that coincide with slow-slot boundaries. Cauchy–Schwarz gives us the tradeoff:
where is the number of groups. Averaging over the algorithm's random choices and the distribution of eviction schedules shows that some fixed eviction schedule yields the claimed expected switching-cost lower bound.
The second lower bound considers an eviction that begins immediately after the first mini-slot of a slow-channel slot and leaves the fast channel permanently unavailable. The key observation is that, to achieve latency within a constant factor of OPT, an online algorithm must have packets on the fast channel during a constant fraction of the relevant slow slots, with constant probability. By choosing the eviction time uniformly at random from these slots, independently of the algorithm's random choices, we obtain expected eviction cost . Averaging gives a fixed schedule with expected switching-cost ratio , since OPT attains minimum latency with unit switching cost.
5 Conclusion and Future Work
We introduced an online model for contention resolution under dynamic spectrum sharing, where a high-rate fast channel may be interrupted by evictions. This extends contention resolution to a setting where packets must balance latency against the cost of moving between channels. For , RACE achieves expected latency within a constant factor of OPT and, when , expected switching-cost ratio , using constant-factor augmentation on the fast channel alone. A small population cutoff and an early time cutoff allow the slow channel to remain unaugmented. Our lower bounds establish worst-case ratio and a separate competitive-ratio lower bound; tight dependence on both and remains open. Two further interesting directions are to extend the rate range and to allow dynamic arrivals.
Acknowledgments and Generative AI Disclosure. This work was supported by the National Science Foundation (NSF) under Grant CNS-2210300. The research problem, model, algorithm design, and overall proof strategy are original contributions of the authors. ChatGPT was used to assist in simplifying and refining parts of the mathematical analysis, as well as improving the clarity and readability of the manuscript. The technical contributions and high-level exposition remain the work of the authors, who have reviewed all AI-assisted content and take full responsibility for the correctness of the results and any remaining errors.
References
[1] Kunal Agrawal, Michael A. Bender, Jeremy T. Fineman, Seth Gilbert, and Maxwell Young. Contention resolution with message deadlines. In Proceedings of the 32nd ACM Symposium on Parallelism in Algorithms and Architectures, SPAA '20, page 23–35, New York, NY, USA, 2020. Association for Computing Machinery.
[2] B. A. Aldawsari, B. S. Chlebus, and D. R. Kowalski. Broadcasting on adversarial multiple access channels. In Proceedings of the IEEE 18th International Symposium on Network Computing and Applications (NCA), pages 1–4, 2019.
[3] Lakshmi Anantharamu, Bogdan S Chlebus, Dariusz R Kowalski, and Mariusz A Rokicki. Deterministic broadcast on multiple access channels. In Proceedings IEEE INFOCOM, pages 1–5. IEEE, 2010.
[4] Lakshmi Anantharamu, Bogdan S Chlebus, Dariusz R Kowalski, and Mariusz A Rokicki. Medium access control for adversarial channels with jamming. In Proceedings of the International Colloquium on Structural Information and Communication Complexity, pages 89–100. Springer, 2011.
[5] Lakshmi Anantharamu, Bogdan S Chlebus, Dariusz R Kowalski, and Mariusz A Rokicki. Packet latency of deterministic broadcasting in adversarial multiple access channels. Journal of Computer and System Sciences, 99:27–52, 2019.
[6] Antonio Fernández Anta, Chryssis Georgiou, Dariusz R. Kowalski, and Elli Zavou. Competitive analysis of fundamental scheduling algorithms on a fault-prone machine and the impact of resource augmentation. Future Generation Computer Systems, 78:245–256, 2018.
[7] Baruch Awerbuch, Andrea Richa, and Christian Scheideler. A jamming-resistant MAC protocol for single-hop wireless networks. In Proceedings of the 27th ACM Symposium on Principles of Distributed Computing (PODC), pages 45–54, 2008.
[8] Yucel Aydin, Gunes Karabulut Kurt, Enver Ozdemir, and Halim Yanikomeroglu. Group handover for drone base stations. IEEE Internet of Things Journal, 8(18):13876–13887, 2021.
[9] Ioana Banicescu, Trisha Chakraborty, Seth Gilbert, and Maxwell Young. A survey on adversarial contention resolution. ACM Computing Surveys, 57(11), June 2025.
[10] Amotz Bar-Noy and Richard E Ladner. Windows scheduling problems for broadcast systems. SIAM Journal on Computing, 32(4):1091–1113, 2003.
[11] Amotz Bar-Noy, Richard E Ladner, and Tami Tamir. Windows scheduling as a restricted version of bin packing. ACM Transactions on Algorithms (TALG), 3(3):28–es, 2007.
[12] Michael A. Bender, Martin Farach-Colton, Simai He, Bradley C. Kuszmaul, and Charles E. Leiserson. Adversarial contention resolution for simple channels. In Proceedings of the 17th Annual ACM Symposium on Parallelism in Algorithms and Architectures (SPAA), pages 325–332, 2005.
[13] Michael A. Bender, Jeremy T. Fineman, Seth Gilbert, John Kuszmaul, and Maxwell Young. Fully energy-efficient randomized backoff: Slow feedback loops yield fast contention resolution. In Proceedings of the 43rd ACM Symposium on Principles of Distributed Computing (PODC), pages 231–242. ACM, 2024.
[14] Michael A. Bender, Jeremy T. Fineman, Seth Gilbert, John Kuszmaul, and Maxwell Young. Jamming-resistant backoff with polylogarithmic sending and listening cost. SIAM Journal on Computing, 54(5):1335–1385, 2025.
[15] Michael A. Bender, Jeremy T. Fineman, Seth Gilbert, and Maxwell Young. How to Scale Exponential Backoff: Constant Throughput, Polylog Access Attempts, and Robustness. In Proceedings of the Twenty-Seventh Annual ACM-SIAM Symposium on Discrete Algorithms, SODA '16, pages 636–654, 2016.
[16] Michael A. Bender, Tsvi Kopelowitz, Seth Pettie, and Maxwell Young. Contention resolution with log-logstar channel accesses. In Proceedings of the 48th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2016, pages 499–508, 2016.
[17] Sudeep Bhattarai, Jung-Min Jerry Park, Bo Gao, Kaigui Bian, and William Lehr. An overview of dynamic spectrum sharing: Ongoing initiatives, challenges, and a roadmap for future research. IEEE Transactions on Cognitive Communications and Networking, 2(2):110–128, 2016.
[18] Martin Böhm, Łukasz Jeż, Jiří Sgall, and Pavel Veselý. On packet scheduling with adversarial jamming and speedup. Annals of Operations Research, 298(1):7–42, 2021.
[19] Allan Borodin, Jon Kleinberg, Prabhakar Raghavan, Madhu Sudan, and David P Williamson. Adversarial queuing theory. Journal of the ACM (JACM), 48(1):13–38, 2001.
[20] Michael A. Calabrese. Use it or share it: A new default policy for spectrum management. Technical report, Open Technology Institute at New America, February 2021. Presented at the 48th Research Conference on Communication, Information and Internet Policy (TPRC48).
[21] Jin Cao, Maode Ma, Hui Li, Yulong Fu, and Xuefeng Liu. Eghr: Efficient group-based handover authentication protocols for mmtc in 5g wireless networks. Journal of Network and Computer Applications, 102:1–16, 2018.
[22] Raied Caromi and Michael Souryal. Detection of incumbent radar in the 3.5 ghz cbrs band using support vector machines. In 2019 Sensor Signal Processing for Defence Conference (SSPD), pages 1–5, 2019.
[23] Wun-Tat Chan and Prudence WH Wong. On-line windows scheduling of temporary items. In International Symposium on Algorithms and Computation, pages 259–270. Springer, 2004.
[24] Haimin Chen, Yonggang Jiang, and Chaodong Zheng. Tight trade-off in contention resolution without collision detection. In Proceedings of the ACM Symposium on Principles of Distributed Computing, pages 139–149, 2021.
[25] Bogdan S. Chlebus. Randomized communication in radio networks. Handbook of Randomized Computing, 1:401–456, 2001.
[26] Bogdan S Chlebus, Dariusz R Kowalski, and Mariusz A Rokicki. Stability of the multiple-access channel under maximum broadcast loads. In Proceedings of the Symposium on Self-Stabilizing Systems (SSS), pages 124–138. Springer, 2007.
[27] Bogdan S Chlebus, Dariusz R Kowalski, and Mariusz A Rokicki. Maximum throughput of multiple access channels in adversarial environments. Distributed Computing, 22(2):93–116, 2009.
[28] George Christodoulou, Themistoklis Melissourgos, and Paul G. Spirakis. Strategic contention resolution in multiple channels. In Proceedings of the International Workshop on Approximation and Online Algorithms, pages 165–180, 2018.
[29] György Dósa, Armin Fügenschuh, Zhiyi Tan, Zsolt Tuza, and Krzysztof Węsek. Tight lower bounds for semi-online scheduling on two uniform machines with known optimum. Central European journal of operations research, 27(4):1107–1130, 2019.
[30] György Dósa, Armin Fügenschuh, Zsolt Tan, Zsolt Tuza, and Krzysztof Węsek. Tight upper bounds for semi-online scheduling on two uniform machines with known optimum. Central European Journal of Operations Research, 26(1):161–180, 2018.
[31] György Dósa, Yuxin Wang, Xin Han, and He Guo. Online scheduling with rearrangement on two related machines. Theoretical Computer Science, 412(8):642–653, 2011.
[32] Matthias Englert, David Mezlaf, and Matthias Westermann. Online makespan scheduling with job migration on uniform machines. Algorithmica, 83(12):3537–3566, 2021.
[33] Leah Epstein and Hanan Zebedat-Haider. Preemptive online scheduling with rejection of unit jobs on two uniformly related machines. Journal of Scheduling, 17(1):87–93, feb 2014.
[34] Martín Farach-Colton, Katia Leal, Miguel A Mosteiro, and Christopher Thraves Caro. Dynamic windows scheduling with reallocation. Journal of Experimental Algorithms (JEA), 26:1–19, 2021.
[35] Federal Communications Commission. 3.5 GHz band overview: Spectrum access system (SAS), 2024. Available on the FCC website.
[36] Pawel Garncarek, Tomasz Jurdziński, and Krzysztof Lorys. Fault-tolerant online packet scheduling on parallel channels. In 2017 IEEE International Parallel and Distributed Processing Symposium (IPDPS), pages 347–356. IEEE, 2017.
[37] Chryssis Georgiou and Dariusz R. Kowalski. On the competitiveness of scheduling dynamically injected tasks on processes prone to crashes and restarts. Journal of Parallel and Distributed Computing, 84:94–107, 2015.
[38] Mihály Geréb-Graus and Thanasis Tsantilas. Efficient optical communication in parallel computers. In Proceedings of the 4th Annual ACM Symposium on Parallel Algorithms and Architectures, pages 41–48, 1992.
[39] Ronald I. Greenberg and Charles E. Leiserson. Randomized routing on fat-trees. In Proceedings of the 26th Annual Symposium on the Foundations of Computer Science (FOCS), pages 241–249, 1985.
[40] Austin Halper, Miguel A. Mosteiro, Yulia Rossikova, and Prudence W. H. Wong. Station assignment with reallocation. Algorithmica, 81:1096–1125, 2018.
[41] Institute for Defense Analyses. Federal spectrum sharing: An assessment of the technology and opportunities. Technical Report P-5186, Institute for Defense Analyses (IDA), 2015. Accessed: 2026-02-13.
[42] Tomasz Jurdziński, Dariusz R. Kowalski, and Krzysztof Lorys. Online packet scheduling under adversarial jamming. In Approximation and Online Algorithms - 12th International Workshop, WAOA 2014, Wrocław, Poland, September 11–12, 2014, Revised Selected Papers, volume 8952 of Lecture Notes in Computer Science, pages 193–206. Springer, 2015.
[43] Tomasz Jurdziński, Miroslaw Kutyłowski, and Jan Zatopiański. Energy-efficient size approximation of radio networks with no collision detection. In Proceedings of the 8th Annual International Conference (COCOON), pages 279–289, 2002.
[44] J. Komlos and A. Greenberg. An asymptotically fast nonadaptive algorithm for conflict resolution in multiple-access channels. IEEE Transactions on Information Theory, 31(2):302–306, 1985.
[45] Dariusz R. Kowalski. On selection problem in radio networks. In Proceedings of the Twenty-Fourth Annual ACM Symposium on Principles of Distributed Computing, PODC '05, page 158–166, New York, NY, USA, 2005. Association for Computing Machinery.
[46] P. Liu and Xiwen Lu. Online scheduling of two uniform machines to minimize total completion times. Journal of Industrial and Management Optimization, 5(1):95–102, 2009.
[47] Marten Maack. Online load balancing on uniform machines with limited migration. Operations Research Letters, 51(3):220–225, 2023.
[48] Adrian Ogierman, Andrea Richa, Christian Scheideler, Stefan Schmid, and Jin Zhang. Competitive MAC under adversarial SINR. In Proceedings of IEEE Conference on Computer Communications (INFOCOM), pages 2751–2759, 2014.
[49] Olusegun O Omitola and Viranjay M Srivastava. Group handover strategy for mobile relays in lte-a networks. Journal of Communications, 13(9):505–511, 2018.
[50] Jon M. Peha. Spectrum management policy options. IEEE Communications Surveys, 1(1):2–8, 1998.
[51] Tim Roughgarden. Resource augmentation. CoRR, abs/2007.13234, 2020.
[52] Jianjun Wen and Donglei Du. Preemptive on-line scheduling for two uniform processors. Operations Research Letters, 23(3):113–116, 1998.
[53] Yang Xiao, Shanghai Shi, Wenjing Lou, Chonggang Wang, Xu Li, Ning Zhang, Y Thomas Hou, and Jeffrey H Reed. Decentralized spectrum access system: Vision, challenges, and a blockchain solution. IEEE Wireless Communications, 29(1):220–228, 2022.
[54] Zheng, Feifeng, Chen, Yuhong, and Liu, Ming. Semi-online scheduling on two uniform parallel machines with initial lookahead. RAIRO-Oper. Res., 58(3):2621–2630, 2024.
A Supporting Analysis
This appendix provides execution details and full proofs supporting the main results.
A.1 Execution Details
TSTB Execution Windows. We describe how RACE uses TRUNCATED SAWTOOTH-BACKOFF (TSTB) [16]. For an integer parameter , a TSTB execution consists of a predetermined sequence of contention windows containing a total of slots. The first window contains slots. On the fast channel, each such slot corresponds to one fast-channel mini-slot. Each active packet independently selects one slot uniformly at random in each window, and successful packets depart. A fresh TSTB execution with packets leaves at least one packet unfinished with probability , for some fixed . If necessary, this guarantee can be obtained through a constant number of repetitions without changing the execution length .
A TSTB execution can be paused and later resumed from where it stopped, without restarting its sequence of contention windows. Each TSTB slot corresponds to one slow-channel slot when executed on the slow channel, or one fast-channel mini-slot when executed on a logical fast subchannel.
Reporting Evictions. Every fast round lasts for its scheduled slots, even if all selected packets succeed earlier. Packets evicted before the scheduled end return to the slow channel and wait. At the end of the scheduled execution, any packets still on the fast channel also return to the slow channel.
The next slow-channel slot is left idle to allow all remaining packets to return. During the following slot, packets that were evicted before the scheduled end and have not yet succeeded transmit to report the eviction. All other packets listen. An empty report certifies the round, while a nonempty report aborts it. If exactly one packet reports, its transmission succeeds, but is not incremented. Thus, every remaining packet learns whether the round was certified or aborted, even if the fast channel is no longer available.
Cleanup. When either cutoff is reached, RACE permanently stops using the fast channel. A fast round already in progress finishes before cleanup begins, whereas an ongoing call to ESTIMATE is stopped if the time cutoff is reached. If the initial estimation finishes after the time cutoff, RACE enters cleanup immediately.
During cleanup, the remaining packets execute TSTB on the slow channel with successively doubled size parameters , until all packets succeed. The initial parameter is , where is a sufficiently large fixed constant. Here when cleanup is triggered by the population cutoff, and when triggered by the time cutoff. Lemma 10 establishes that, starting with active packets, the expected cleanup time is .
Minimum Fast-Channel Availability. The analysis requires each interval of fast-channel availability to contain sufficiently many slots to accommodate consecutive rounds of intended per-subchannel size , including their reporting slots. Specifically, it suffices to require . Since , this requires only a fixed constant number of slots. This assumption is used in Lemma 3 to bound the number of aborted rounds.
A.2 Fresh-Window Estimates
We begin with two properties of fast-channel batches: a bound on the expected number of packets that remain unsuccessful after an uninterrupted TSTB execution, and a high-probability guarantee on the number of packets that succeed.
Lemma 1. Consider a fast round that begins with active packets. For any one logical fast subchannel, let be the number of packets that would remain unsuccessful after its full scheduled TSTB execution, assuming no eviction occurs. Then
where the expectation is over the random choices made during the round.
Proof. Let be the number of packets assigned to the subchannel. Since each active packet independently selects it with probability , we have:
First, suppose . Compare the TSTB execution with one containing exactly packets by adding imaginary packets. Each real packet makes the same random choices in both executions. Adding packets cannot help a real packet succeed earlier, so the number of unfinished real packets is at most the number left unfinished in the larger execution.
Since TSTB runs with parameter , its completion guarantee implies that the larger execution leaves any packet unfinished with probability , where . Consequently, the contribution to from is at most:
Now suppose . By a standard Chernoff bound:
Since is binomial, . By the definition of variance:
Rearranging gives:
We now use Cauchy–Schwarz to bound the contribution to from the event . Applied to the conditional distribution given this event, Cauchy–Schwarz gives:
Multiplying by and taking square roots, we obtain:
Since the event contributes at most to the second moment, we also have:
Combining these inequalities gives:
Since , this also bounds the contribution to from .
Finally, combining the two cases gives .
Lemma 2. Let . Consider a fast-channel round that begins with active packets satisfying:
With probability at least , each logical fast subchannel receives between and packets. Moreover, if the scheduled TSTB execution on each subchannel runs to completion without interruption, at least of its packets succeed, where is a fixed constant independent of .
Proof. Consider one logical fast subchannel, and let be the number of packets assigned to it. Each of the active packets independently chooses this subchannel with probability . Consequently, is a binomial random variable with expectation:
By the assumption on , we have:
Multiplying by gives:
We first show that the number of packets assigned to the subchannel is between and with high probability. Since , a standard Chernoff lower-tail bound gives:
Similarly, since , a Chernoff upper-tail bound gives:
Thus, with probability at least , the number of packets assigned to the subchannel satisfies:
We now show that a constant fraction of these packets succeed during an uninterrupted TSTB execution. Suppose exactly packets have been assigned to the subchannel, where:
The TSTB execution uses parameter , so its first contention window contains mini-slots. Each of the packets independently chooses one of these mini-slots uniformly at random.
Let be the number of packets that choose a mini-slot not chosen by any other packet. Each such packet transmits successfully during the first window. For any particular packet, the probability that none of the other packets chooses its mini-slot is:
By linearity of expectation:
For any particular packet, a union bound implies that the probability of at least one other packet choosing the same mini-slot is at most . Since , the probability that no other packet chooses its mini-slot is therefore at least:
and consequently .
We next show that is unlikely to be much smaller than its expectation. We use McDiarmid's bounded-differences inequality, which applies to functions of independent random variables. The independently chosen mini-slots determine . Suppose we change the mini-slot selected by one packet while keeping all other packets' choices fixed. This can affect the number of successful transmissions in at most two mini-slots: the one originally selected and the new one. In each, the number of successes can change by at most one. Thus, can change by at most two. Thus, the bounded-differences inequality gives, for any :
Since , choosing yields:
Because , this probability is . Hence, except with this probability, at least:
packets succeed during the first TSTB window.
Combining this result with the Chernoff bounds, we conclude that a particular logical fast subchannel receives between and 2x packets and completes at least packets during an uninterrupted execution, except with probability , for some fixed constant independent of .
Finally, RACE uses logical fast subchannels. Applying a union bound over these subchannels, the probability that any subchannel fails either guarantee is at most , which completes the argument.
Consequences of Lemma 2 for Fast Rounds. Let denote the event that all population estimates satisfy their accuracy guarantees and that the packet-assignment and progress guarantees of Lemma 2 hold for every fast round to which that lemma applies. Later on, Lemmas 5 and 7 establish that, on , the lemma applies to every fast round and that occurs with high probability.
The preceding lemma therefore implies that, on event , each certified round completes at least packets. This follows because either the round was not interrupted by an eviction, or an eviction occurred after all selected packets had already succeeded. Otherwise, an unfinished packet would have reported the eviction, causing the round to be aborted. On , the lemma also guarantees that at most packets are selected for any round, whether certified or aborted.
A.3 Charging Aborted Rounds
Recall that and that was chosen to satisfy for every integer . A necessary portion of our argument is that the minimum duration of fast-channel availability guarantees that, after an aborted round, RACE has enough time to complete its next round with without another eviction, unless it invokes the population estimator in between.
Lemma 3. Consider two fast rounds, each with an intended batch size of packets per logical subchannel. If no certified round or invocation of ESTIMATE occurs between them, then the two rounds cannot both be aborted.
Proof. Suppose two fast rounds with occur without a certified round or an invocation of ESTIMATE between them. We show that if the first round is aborted, the second cannot be aborted.
The key observation is that the first round may begin near the end of an interval of fast-channel availability, leaving insufficient time to finish before an eviction. However, after this eviction, the next round with begins sufficiently early in a new interval of availability to finish without interruption.
Let the first round begin at slow-slot boundary . Since it is aborted, an eviction must have occurred before its scheduled slots of TSTB execution finished. Nevertheless, RACE waits until the scheduled execution ends and then uses two additional slots to determine whether an eviction occurred. Thus, the first round ends at time , and RACE cannot begin another fast round before then.
We consider two cases, depending on when the fast channel becomes available again after the eviction that interrupted the first round.
Case 1: After the eviction, the fast channel becomes available again before the first round ends. The new interval of fast-channel availability begins no earlier than , so at most slow slots have elapsed between the beginning of that interval and the end of the first round. Since every interval of fast-channel availability contains at least complete slow slots, enough time remains for RACE to execute another slots of TSTB without interruption. Thus, if RACE begins the second round, it completes its scheduled TSTB execution before another eviction can occur.
Case 2: After the eviction, the fast channel becomes available again at or after the first round ends. RACE observes that the fast channel is available at the next slow-slot boundary. Because no population estimate or certified round intervenes, RACE begins its next fast round at that boundary, provided it has not entered cleanup. At most one slow slot is lost between the beginning of the new interval of availability and the start of this round. The minimum-availability condition therefore guarantees that the fast channel remains available throughout its scheduled slots of TSTB execution.
In either case, the second round completes its scheduled TSTB execution without eviction and therefore cannot be aborted. If the fast channel never becomes available again, or RACE enters cleanup, no second round occurs. This completes the argument.
Recall that an estimation epoch begins when RACE obtains a new estimate of the number of active packets and ends when RACE next invokes ESTIMATE or enters permanent slow-channel cleanup. At the beginning of each epoch, is reset to zero.
In the following lemma, denotes an upper bound on the intended number of packets per subchannel during the fast rounds being considered. We will specify a suitable value of later in the analysis.
Lemma 4. Consider RACE's execution up to any time before cleanup. Suppose every fast round has intended per-subchannel batch size . Let be the number of calls to ESTIMATE that have started after the initial estimate and by time , including any call still in progress.
Let and be the sums of over certified and aborted rounds, respectively, whose reporting slots have finished by time . Then:
Within any single estimation epoch , the corresponding sums satisfy:
Proof. We first establish the bound over the entire execution and we consider three cases.
Case 1. Consider an aborted round with intended per-subchannel batch size , where . Since an abort resets to zero, RACE must have previously completed certified rounds with intended per-subchannel batch sizes since the preceding abort. The sum of these sizes is at least . Moreover, since and , we have:
Thus, the intended size of the aborted round is at most twice the sum of the intended sizes of these preceding certified rounds. Since the certified rounds used in this argument are different for each aborted round, the total intended size of all aborted rounds with is at most .
Case 2. We must also account for aborted rounds with . Consider such a round that follows an earlier aborted round with , without any certified round between them. Its intended size is at most that of the earlier aborted round, so the total contribution from these rounds is bounded by the contribution already established above in Case 1.
Case 3. The remaining possibility is an aborted round with that either occurs first or follows another aborted round with . By Lemma 3, the latter situation requires an intervening call to ESTIMATE. Hence, there can be at most one such additional aborted round for each call to ESTIMATE, plus one at the beginning of the execution. Their combined intended size is at most .
Combining these bounds gives:
We next establish the bound within a single estimation epoch . The argument is similar, except that the first aborted round with may have been preceded by certified rounds belonging to an earlier epoch. We therefore account for this round separately, using the assumption that its intended per-subchannel batch size is at most .
For every subsequent aborted round with , the preceding certified rounds needed to reach its batch size belong to the current epoch. As before, their intended sizes account for at most twice their sum in aborted rounds. Consequently, the sum of the intended sizes of aborted rounds with during epoch is at most .
Finally, each aborted round with can be accounted for by an earlier aborted round with , with at most one exception per epoch by Lemma 3. Thus, the total intended size of aborted rounds with is at most .
Combining these contributions, and using , gives:
which completes the proof.
A.4 Accuracy and Measurement Frequency
We now establish that RACE maintains an accurate estimate of the number of active packets throughout its execution, and that only population estimates are needed. We also show that the intended fast-batch sizes remain sufficiently small that the limit imposed by the current population estimate does not affect the increasing sequence of batch sizes.
Let denote the event that the initial call to ESTIMATE returns an estimate satisfying and finishes in slots. We establish that this event occurs with high probability in Appendix C.
For the analysis, let be a sufficiently large constant multiple of , where the constant is independent of . Thus:
where is a sufficiently large fixed constant independent of . We will show that bounds the intended number of packets per subchannel in every fast round. This bound is used only in the analysis and does not affect the algorithm.
As in Lemma 2, we use K = 64 as a fixed constant in our bounds on the accuracy of the population estimates. Recall that determines when RACE requests a new estimate,
, and the constant determines the population cutoff . To make the requirements on these constants clear, we choose sufficiently small and sufficiently large so that:
These conditions ensure that the number of packets completing between population estimates remains small enough for the current estimate to stay accurate. On , we also have for sufficiently large . We justify these choices of constants later on in this analysis.
Finally, let denote the event that the initial estimate satisfies the guarantees above, every subsequent completed call to ESTIMATE satisfies its accuracy guarantee, and the packet-assignment and TSTB progress guarantees of Lemma 2 hold whenever a fast round begins with active packets satisfying:
Here, the TSTB progress guarantee concerns the packets that would succeed if the scheduled execution were not interrupted by an eviction.
The next lemma establishes that, on event , RACE maintains a sufficiently accurate estimate of the number of active packets throughout its execution before cleanup. It also shows that the intended number of packets per subchannel remains below and follows , without being restricted by the current population estimate. Together, these properties allow us to apply the fast-channel progress guarantees of Lemma 2 throughout RACE's execution.
Lemma 5. On event , let and denote the actual number of active packets and RACE's estimate of that number, respectively, at the beginning of estimation epoch . Then:
Moreover, whenever RACE begins a fast round with active packets, we have:
Finally, the intended number of packets per subchannel satisfies , where is the upper bound defined above. Consequently, whenever RACE begins a fast round, the intended number of packets per subchannel is : the upper limit in the batch-size formula never restricts before cleanup.
Proof. We prove the claims simultaneously by induction over successive fast rounds and population-estimate updates. The base case follows from the initial population-estimation guarantee described in Section 3.1, whose proof appears in Appendix C. For the induction, we assume the claims hold for all preceding rounds and estimates. In particular, the estimates were sufficiently accurate for Lemma 2 to apply to those earlier rounds. We show that their progress and the bounds on their sizes preserve the required guarantees when RACE begins another fast round or obtains a new population estimate.
On event , the initial estimate satisfies . Since the initial call to ESTIMATE takes slots, at least packets remain active when it finishes, for sufficiently large . Thus, if is the number of active packets at the beginning of the first estimation epoch, then:
where .
Bounding fast-channel batch sizes. Suppose the claims have held for all preceding fast rounds and population estimates. If the current batch index is , then RACE has certified rounds since the last reported abort. In these rounds, the intended number of packets per subchannel increases through the sequence . On event , Lemma 2 guarantees that these rounds complete at least:
distinct packets. Since there are only n packets, we obtain:
Thus , by our choice of . Furthermore, before cleanup, , and our choice of constants in (3) guarantees:
Consequently, whenever RACE begins another fast round, its intended number of packets per subchannel is .
Maintaining accurate population estimates. Consider estimation epoch , beginning with active packets and an estimate satisfying .
Let count slow-channel TSTB successes during this epoch, and let and be the sums of the intended per-subchannel batch sizes over certified and aborted rounds, respectively. Recall that .
By the induction hypothesis, preceding fast rounds began with sufficiently accurate population estimates. Thus, on event , Lemma 2 guarantees that at most packets participated in each of those rounds. Since sums their intended per-subchannel batch sizes, at most packets could have succeeded during these rounds.
We must also account for a round that may still be underway, whose successful packets are not yet included in these sums. Since its intended per-subchannel batch size is at most , it can contribute at most another successful packets on . Including the slow-channel TSTB successes, and using from Lemma 4 together with , we obtain:
RACE requests a new estimate when reaches . Because each increase in is at most , the preceding bound implies that, before the next estimate begins, at most:
packets have succeeded, where the final inequality follows from (3).
Since at least packets were active at the beginning of the epoch, the number r of active packets before the next estimate satisfies:
Thus the estimate remains sufficiently accurate for Lemma 2 to apply whenever RACE begins another fast round.
Finally, when RACE requests a new estimate, at least:
packets remain active. Lemma 18 therefore guarantees that, unless all remaining packets succeed during estimation, the new estimate is within a factor of 16 of the actual number of active packets when the estimator finishes. Since K = 64, the required accuracy guarantee holds at the beginning of the next epoch. If the time cutoff interrupts the estimator, RACE enters cleanup instead. This completes the induction argument and establishes all three claims.
Lemma 6. On event , RACE invokes ESTIMATE at most times after the initial estimate. Moreover, if denotes the estimate at the beginning of estimation epoch , then:
Proof. Consider an estimation epoch that ends when RACE invokes ESTIMATE. At that point, the counter satisfies:
where counts successful slow-channel TSTB transmissions and is the sum of the intended per-subchannel batch sizes over certified rounds during the epoch.
On event , each certified round completes at least an fraction of the number of packets credited to . Therefore, the number of packets that have succeeded during epoch is at least:
where is the number of active packets at the beginning of the epoch. Any additional successful transmissions can only decrease the number of active packets further.
Consequently, if another estimation epoch follows, its initial number of active packets satisfies:
and thus the number of active packets decreases by a constant factor between successive estimation epochs. Consequently, RACE invokes ESTIMATE at most times after the initial estimate.
Finally, Lemma 5 guarantees that on event . Since the values decrease geometrically and , we have:
This establishes both claims.
Lemma 7. For any fixed , by choosing sufficiently large constants in the running time of ESTIMATE and in the assumption , we obtain:
Proof. We bound the probability that RACE obtains an inaccurate population estimate or that a fast round fails the guarantees of Lemma 2.
Recall that is the event that the initial call to ESTIMATE returns an estimate satisfying and finishes in slots. On event , the initial estimate satisfies . Since RACE begins no new fast rounds or calls to ESTIMATE after the time cutoff , at most fast rounds and subsequent calls to ESTIMATE can begin.
Consider any fast round that begins with r active packets satisfying:
By Lemma 2, the probability that any subchannel receives too many or too few packets, or that too few packets succeed during an uninterrupted TSTB execution, is at most , since . Because each fast round uses fresh independent random choices, this probability bound holds regardless of the outcomes of preceding rounds.
The analysis of ESTIMATE in Appendix C establishes that each subsequent call returns an accurate estimate with failure probability smaller than any prescribed inverse polynomial in
, provided sufficiently many packets remain active. This guarantee holds regardless of the outcomes of earlier calls.
On event , RACE begins at most fast rounds and calls to ESTIMATE before cleanup. For each fast round satisfying the assumptions of Lemma 2, the probability that its guarantees fail is at most . Similarly, the analysis of ESTIMATE in Appendix C shows that the failure probability of each population estimate can be made smaller than any prescribed inverse polynomial in . Since these guarantees hold regardless of the outcomes of preceding rounds and estimates, we can apply a union bound over all operations. By choosing the constants in the estimator and in sufficiently large, the probability that any of these guarantees fails, given , is .
It remains to justify applying Lemma 2 throughout RACE's execution. Lemma 5 establishes that, as long as preceding rounds and population estimates satisfy their guarantees, the number of active packets remains within the range required by Lemma 2. Thus, the assumptions of that lemma continue to hold unless one of the failures already accounted for in the union bound occurs.
Finally, the initial population-estimation guarantee established in Appendix C gives , and combining this with the preceding bound yields the claimed upper bound.
A.5 Early Cutoff and Fast-Service Accounting
For any slow-slot boundary , let denote the number of fast-channel mini-slots during which the fast channel is available before time . Since OPT can transmit at most one packet per fast-channel mini-slot and one packet per slow-channel slot, the total number of packets OPT can complete by time is at most:
This bound may include fast-channel mini-slots that OPT cannot use because packets can switch channels only at slow-slot boundaries. Nevertheless, since OPT completes all packets by time , we must have:
We next establish an upper bound on for times when RACE has neither completed all packets nor entered permanent slow-channel cleanup. This bound will allow us to show that RACE stops admitting new fast-channel batches by the time OPT finishes.
Lemma 8. On event , consider any slow-slot boundary at which RACE has neither completed all packets nor entered permanent slow-channel cleanup. Then:
The constant implicit in is independent of and the constants used by ESTIMATE.
Proof. Let be the number of fast rounds that begin by time , and let be the number of calls to ESTIMATE that begin after the initial estimate and by time . Let be the total number of slots spent executing ESTIMATE before time , including the initial call and any call still in progress.
We first bound the number of fast-channel transmission opportunities available to OPT while RACE executes fast rounds. A round with intended per-subchannel batch size lasts:
slow slots, since . During these slots, OPT has at most fast-channel transmission opportunities. Since RACE executes only one fast round at a time, summing over all rounds that begin by time shows that OPT has at most fast-channel transmission opportunities during these rounds. Similarly, the slots spent executing ESTIMATE contribute at most fast-channel transmission opportunities.
We must also account for times when RACE is executing TSTB on the slow channel and the fast channel becomes available partway through a slot. Since RACE checks fast-channel availability only at slow-slot boundaries, it may miss up to fast-channel mini-slots before responding. The minimum-availability condition ensures that the fast channel remains available at the next boundary, when RACE begins a fast round or invokes ESTIMATE.
Each fast round or call to ESTIMATE can therefore be preceded by at most one slow-channel slot during which RACE misses fast-channel availability. Since fast rounds and subsequent calls to ESTIMATE have begun by time , these delays account for at most additional fast-channel mini-slots. Allowing another for the beginning and end of the interval being analyzed, we obtain:
Since every fast round has , we have . Thus, the bound simplifies to:
It remains to bound the sum of the intended per-subchannel batch sizes. Let be the sum of over certified rounds whose reporting slots have finished by time . On event , these rounds complete at least packets. Since there are only packets, we have:
Lemma 4 bounds the corresponding sum over aborted rounds by . We also include at most one fast round that has begun but whose outcome has not yet been determined. Its intended per-subchannel batch size is at most . Consequently:
By Lemma 6, RACE invokes ESTIMATE at most times after the initial estimate, so . Including initialization, the total time spent estimating is on event . Substituting these bounds into the preceding inequalities gives:
Finally, OPT can complete at most packets on the slow channel by time . Therefore:
which proves Equation 5.
Justifying Our Choice of Constants. We now show that the constants required by our analysis can be chosen consistently. First, we choose sufficiently small to satisfy the requirements of Lemma 5. We then choose the fixed fast-channel augmentation factor sufficiently large so that the term in Equation 5 is at most .
Next, recall that . Since and is fixed, we have . Thus, by choosing sufficiently large, the population cutoff can satisfy all the requirements in (3). We also choose the minimum duration of fast-channel availability sufficiently large for Lemma 3 to apply.
Finally, the constants governing the running time of ESTIMATE and the lower bound are chosen sufficiently large to establish the probability guarantee in Lemma 7. Since
, the remaining terms in (5) are at most for sufficiently large . Consequently, under the conditions of Lemma 8, we obtain:
We now show that RACE stops admitting new fast-channel batches by the time OPT finishes, with high probability. This is important for bounding switching cost, since otherwise RACE could continue using the fast channel and incurring switching costs after OPT has completed all its packets.
Lemma 9. Let denote OPT's completion time. On event , RACE begins no fast round at or after time .
If , RACE has either completed all packets or entered permanent slow-channel cleanup because the population cutoff was reached by time . If , the time cutoff prevents RACE from beginning any further fast rounds.
Proof. On , for :
If , the protocol's cutoff proves the assertion directly, whether or not a round is currently running.
Suppose and RACE has neither completed all packets nor entered permanent slow-channel cleanup by time . Initialization takes slots on , while , so the initial call to ESTIMATE has already finished for sufficiently large . Since , Lemma 8 and Equation 6 imply:
This contradiction shows that RACE cannot still be executing before cleanup at time . Therefore, RACE must have completed all packets or entered permanent slow-channel cleanup by the time OPT finishes. Because the time cutoff has not yet been reached, any cleanup must have been triggered by the population cutoff, based on RACE's estimate of the remaining active packets. Once cleanup begins, RACE never uses the fast channel again.
A.6 Cleanup and Worst-Case Bounds
Lemma 10. Suppose RACE enters permanent slow-channel cleanup with r active packets and uses an estimate v to determine the initial TSTB size parameter. Then, regardless of the accuracy of v, the expected time until all remaining packets succeed is . Cleanup incurs no switching cost.
Proof. RACE begins cleanup with a TSTB execution using size parameter , where is a sufficiently large fixed constant. If packets remain unsuccessful after this execution, RACE begins another with twice the size parameter. This continues until all packets succeed.
First, consider the executions whose size parameters are smaller than r, the number of active packets when cleanup begins. Since the parameters double after each execution and TSTB with parameter s takes slow-channel slots, the total time spent on these executions is .
Once the size parameter reaches or exceeds , there are at most active packets. The TSTB completion guarantee implies that all remaining packets succeed with probability at least . This guarantee applies even when fewer than packets participate, because removing competing packets cannot prevent a successful transmission. By choosing sufficiently large, the probability that any packets remain unsuccessful after such an execution is at most .
Let now denote the size parameter of the first execution for which . Since the parameters double, we have . Each subsequent execution also doubles the parameter, but occurs only if the preceding execution fails to finish all remaining packets. Thus, the expected time spent on these executions is at most:
Combining this with the time spent on earlier executions gives expected cleanup time .
Finally, all transmissions during cleanup occur on the slow channel, so no switching cost is incurred.
The preceding analysis relies on high-probability guarantees for population estimation and fast-channel progress. To establish our expected performance bounds, we must also account for executions in which these guarantees fail. The following lemma provides upper bounds that hold regardless of whether those guarantees are satisfied.
Lemma 11. Let be the time spent obtaining the initial population estimate. On every execution, RACE either finishes or enters permanent slow-channel cleanup within slots, and its switching cost is .
Once cleanup begins, the expected time needed to finish the remaining packets is , regardless of the accuracy of the population estimates.
Proof. RACE does not begin any new fast rounds at or after the time cutoff . Since at most one fast round can begin in any slow-channel slot, RACE begins at most fast rounds before this cutoff.
Each fast round has intended per-subchannel batch size and lasts:
slow slots, including the two slots used to determine whether an eviction occurred. If a round is still underway when the time cutoff is reached, RACE finishes that round before entering permanent slow-channel cleanup. When RACE is executing TSTB on the slow channel or running ESTIMATE, it checks the time cutoff at every slow-slot boundary. If the initial call to ESTIMATE finishes after the cutoff, RACE enters cleanup immediately.
Consequently, regardless of the accuracy of its population estimates, RACE either completes all packets or enters cleanup within slots.
We next bound switching cost. Each fast round moves at most one batch onto the fast channel, incurring one unit of cost. At most packets can return to the slow channel during that round, and each packet returns at most once, whether because of an eviction or because it has not succeeded by the scheduled end of the round. Since RACE begins at most fast rounds, its total switching cost is:
Finally, when RACE enters cleanup, the initial TSTB size parameter is determined by either , if the population cutoff is reached, or , if the time cutoff is reached. Both are at most . Since at most packets remain active, Lemma 10 guarantees that their expected completion time is:
This establishes all three bounds.
Proposition 1. For every fixed instance , RACE achieves expected latency:
Proof. Let denote OPT's completion time. We first establish the bound on event , when the population estimates and fast-channel executions satisfy their high-probability guarantees. We consider two cases, depending on when OPT finishes.
Case 1: OPT finishes before the time cutoff. Suppose . By Lemma 9, RACE has either completed all packets or entered permanent slow-channel cleanup by time . Since the time cutoff has not been reached, cleanup must have been triggered by the population cutoff.
On event , the number of remaining active packets satisfies:
By Lemma 10, the expected time needed to finish these packets on the slow channel is . Since OPT requires at least slots to transmit all packets, RACE's expected latency in this case is .
Case 2: OPT finishes at or after the time cutoff. Suppose . On event , the initial estimate satisfies , so:
Thus . Lemma 11 guarantees that RACE completes all packets or enters permanent slow-channel cleanup within slots. By Lemma 10, finishing any remaining packets takes another expected slots. Therefore, RACE's expected latency is again .
Executions in which the guarantees fail. It remains to account for executions outside event . Recall that concerns the accuracy and running time of the initial population estimate, while also includes the guarantees for subsequent estimates and fast rounds.
If holds but fails, Lemmas 7 and 11 show that this event has probability and that RACE's expected latency is bounded by , even when these guarantees fail. Its contribution to the overall expectation is therefore .
If fails, Lemma 11 bounds the expected latency by . By Lemma 17, the contributions of and from these executions are each , while the fixed term contributes . Thus, these executions also contribute at most to expected latency.
These contributions are negligible compared with . Combining them with the bounds established on gives , as claimed.
A.7 Switching Cost
On event , RACE begins no new fast rounds after OPT finishes at time . However, a round that began before may finish afterward, potentially incurring additional costs when unsuccessful packets return to the slow channel. Our analysis needs to include these costs.
The following lemma establishes that OPT cannot ignore more than two iterations in which it could have used the fast channel before finishing. This allows us to bound the number of iterations in which RACE may incur eviction costs in terms of the number of iterations actually used by OPT.
Lemma 12. Let M be the number of iterations containing a slow-slot boundary before at which packets could enter the fast channel. If OPT successfully transmits packets on the fast channel in m iterations, then .
Proof. For each integer , let denote the total number of transmission opportunities available to OPT before time . This includes one opportunity per slow-channel slot, even during eviction periods, and one per fast mini-slot beginning at the first slow-slot boundary in each iteration when packets can enter the fast channel. Since all packets are present initially, OPT can use these opportunities to transmit distinct packets without collisions, assigning packets to the fast channel at the first permitted boundary of each iteration. Consequently, is the smallest integer t for which .
Since and one slow slot adds at most opportunities,
Every iteration that ends before provides at least usable fast-channel transmission opportunities. Since OPT can leave at most opportunities unused by time , it cannot ignore two such iterations without contradicting the preceding bound. At most one additional iteration can still be underway at . Consequently, for any minimum-latency schedule.
Lemma 13. On event , for , RACE executes at most fast rounds. The total switching cost from admitting these batches and returning packets evicted before their scheduled deadlines is also .
Proof. Recall that counts the iterations in which packets could enter the fast channel before . By Lemma 9, every fast round begins before . Each aborted round begins during an iteration that ends with the eviction responsible for its abort. No two aborted rounds can begin in the same iteration, since the eviction interrupting the first round ends that iteration before another round can begin. This remains true even if the eviction or its report occurs after . Thus, the number of aborted rounds satisfies .
Each reported abort resets to zero, whereas a new population estimate leaves unchanged. Let denote the numbers of certified rounds before the first reported abort, between successive reported aborts, and after the last reported abort, respectively. Since the population cap is inactive on , the intended number of packets per subchannel in each such sequence increases through .
On , these certified rounds complete at least packets each, where is the intended number of packets per subchannel. Since aborted rounds divide the execution into at most sequences of certified rounds, Cauchy–Schwarz gives the following bound on their total number:
There are at most fast rounds in total, including a possible final round in which all remaining packets succeed before its outcome is recorded. Each round incurs one batch-admission cost.
An aborted round ending the -th sequence has intended per-subchannel batch size . On , at most packets participate in that round and can therefore be returned by its eviction. A round in which the last packet succeeds during reporting is included among the aborted rounds.
The total cost of moving batches onto the fast channel is at most , since each round incurs one unit of cost. The cost of returning packets evicted before their scheduled deadlines is at most . Combining these bounds gives:
The equality follows from the preceding bound on . Since , is constant, and , the total is .
Lemma 14. For a fixed instance with , let denote the total cost of returning packets that remain on the fast channel at the scheduled end of a round's TSTB execution. Then:
Proof. By Lemma 13, on event , the number of fast rounds is at most , where is a fixed upper bound.
We consider the fast rounds in the order they begin. For each , let denote the number of packets that return to the slow channel at the scheduled end of the -th round, provided that round begins with at most active packets. Otherwise, including when the -th round does not occur, we set .
Consider any round that begins with at most active packets. By Lemma 1, the expected number of packets remaining unsuccessful after its full scheduled TSTB execution, assuming no eviction, is per logical subchannel, or across all subchannels.
If an eviction occurs before the scheduled end of the round, unfinished packets return at the time of eviction rather than at the scheduled end. Their switching costs are accounted for in Lemma 13. Otherwise, the number returning at the scheduled end is bounded by the number that would remain unsuccessful after the full TSTB execution.
Consequently, the expected number of packets returning at the scheduled end of any such round is . This bound holds regardless of the outcomes of earlier rounds, since each round uses fresh independent random choices. In particular, for every .
On event , every fast round begins with at most active packets, and there are at most rounds. Therefore:
where the last equality uses the fact that is constant.
Proposition 2. For , the expected switching cost of RACE satisfies:
and its switching-cost competitive ratio is:
For , RACE incurs zero switching cost on . Moreover, by choosing the estimator's confidence constant sufficiently large, its expected switching cost can be made polynomially small in .
Proof. First suppose . On event , Lemma 13 bounds the cost of moving batches onto the fast channel and returning packets evicted before their scheduled fast-channel executions finish. Lemma 14 bounds the expected cost of returning packets that remain unsuccessful at the scheduled end of these executions. Together, these lemmas account for all switching costs, including those incurred by rounds that begin before but finish afterward. Consequently, on , the expected switching cost is .
We must also account for executions in which fails. When holds but does not, Lemma 11 bounds the switching cost by . Lemma 7 guarantees that these executions occur with sufficiently small probability that their contribution to the expected switching cost is negligible. When fails, Lemma 11 again bounds the switching cost by , while Lemma 17 guarantees that the expected contribution of these executions is also negligible. Since the constants in the estimator can be chosen to make these contributions polynomially small in , the overall expected switching cost remains .
To obtain the competitive ratio, recall that all packets are initially on the slow channel. In each of the m iterations in which OPT successfully transmits packets on the fast channel, it must move at least one batch onto that channel, incurring at least one unit of switching cost. Therefore, , and the claimed competitive ratio follows.
Now suppose . Since OPT never successfully transmits on the fast channel, its minimum completion time is , achieved by transmitting all packets on the slow channel. Moreover, the fast channel cannot be available at any slow-slot boundary . Otherwise, OPT could complete one packet on the fast channel and the remaining packets on the slow channel, finishing by time . This would contradict the minimum completion time .
On , the initial estimate satisfies , so the time cutoff satisfies . Since RACE can begin a fast round only at a slow-slot boundary before this cutoff, and the fast channel is unavailable at every such boundary, no fast round can begin. Thus, RACE remains on the slow channel and incurs zero switching cost on .
Finally, Lemma 11 bounds the switching cost on every execution by , while Lemma 17 guarantees that executions outside contribute a polynomially small amount to its expected value. This establishes the claimed expected switching cost when m = 0. No switching-cost competitive ratio is asserted in this case, since OPT incurs zero switching cost. If the fast channel is never available, RACE also incurs zero switching cost on every execution.
Proof of Theorem 1. As described in Section 3.2, RACE is decentralized: packets use common channel feedback and synchronized slot boundaries to coordinate their actions without centralized control. Proposition 1 establishes that RACE achieves expected latency , while Proposition 2 establishes the claimed switching-cost bound. Finally, population estimation, slow-channel contention resolution, eviction reporting, and cleanup all use at most one slow-channel transmission opportunity per slot. Thus, resource augmentation is required only on the fast channel.
B Lower Bounds
Our lower bounds hold even when the online algorithm is given constant-factor resource augmentation on both the slow and fast channels (in contrast, our upper bound assumes augmentation only on the fast channel). We establish each bound by constructing an eviction schedule that forces substantial switching cost on any randomized online algorithm achieving constant-competitive expected latency.
B.1 Switching-Cost Ratio
To prove Theorem 2(A), let be the constant in the assumed expected-latency guarantee, and let and denote the fixed augmentation factors on the slow and fast channels. We construct a distribution over eviction schedules and first establish a switching-cost lower bound for deterministic algorithms that finish the no-eviction instance quickly. We then extend the result to randomized algorithms.
Let:
Thus, . Choose a fixed integer , and consider the set of times:
Each time in is a fast-channel mini-slot boundary strictly inside a slow-channel slot. An eviction beginning at any such time is permitted, because the fast channel has already been available for at least slots. There are slow-channel slots between and , each containing such boundaries. Consequently:
We define a probability distribution over eviction schedules. With probability , the fast channel remains available throughout the execution; call this instance . Otherwise, a time is chosen uniformly from , and the only eviction occupies the single fast mini-slot ; call this instance . We write for expectation over the choice of an instance from this distribution.
OPT knows the eviction schedule and can ensure that all packets assigned to the fast channel succeed before an eviction. After the one-mini-slot eviction, OPT may have to wait until the next slow-slot boundary before assigning another batch to the fast channel, losing at most one slow slot of fast-channel capacity. OPT can therefore finish within slots, using at most two batches on the fast channel and incurring switching cost . Moreover, a schedule achieving minimum latency can be chosen with this switching cost: packets are assigned to the earliest usable slow- and fast-channel transmission slots, and each fast-channel batch enters at the first permitted slow-slot boundary of its availability interval.
Lemma 15. For the distribution defined above, every deterministic online algorithm that completes all packets on within slow-channel slots satisfies:
Proof. Fix such a deterministic algorithm . By time , it can complete at most packets on the slow channel, and at most packets on the fast channel before time . Since it finishes all packets on by , at least packets succeed on the fast channel between times and .
We group these packets according to their last move onto the fast channel before succeeding. Packets whose last move occurred at or before form one group, which begins at time . For each batch moved onto the fast channel after , the packets for which that batch was their last move form another group, beginning when the batch enters the fast channel. Only packets that succeed on the fast channel during are included. Let be the sizes of the nonempty groups. Then:
Each group other than the possible initial group corresponds to a distinct batch moved onto the fast channel, and a nonempty initial group requires at least one earlier batch. Thus, the switching cost on is at least .
If , the cost of moving these batches onto the fast channel is already , which proves a stronger bound. Otherwise . The groups with fewer than packets account for fewer than packets. Therefore, “larger” groups with together contain at least packets.
Consider one of these larger groups. By the definition of the groups, its packets remain on the fast channel from the group's starting time until they succeed. The augmented fast channel can complete at most packets per mini-slot. Hence, during the first mini-slot boundaries after the group begins, at least packets from the group remain on the fast channel.
Recall that each group contains only packets that successfully transmit on the fast channel before time . Consequently, the mini-slot boundaries under consideration must occur before , since transmitting all packets requires at least mini-slots. At least half of these boundaries lie strictly inside slow-channel slots and therefore belong to . Since at least packets from the group remain on the fast channel at each of these times, the sum of the number of packets exposed to eviction over these times is at least:
For each , let be the number of packets on the fast channel at time in the execution of on , after any transmissions ending at have completed. Summing over the larger groups gives:
Recall that the groups with together contain at least packets. By Cauchy–Schwarz, the square of the sum of their sizes is at most the number of these groups multiplied by the sum of their squared sizes. Since there are at most such groups, we have:
Rearranging, and using the fact that the sum on the left is , gives:
Therefore:
On instance , the execution agrees with the execution on until time . Because lies strictly inside a slow-channel slot, no new packet can move onto the fast channel at that time. The eviction therefore forces all packets then on the fast channel to return to the slow channel.
The distribution assigns probability to and probability to each . Combining the cost of moving batches onto the fast channel on with the expected eviction cost gives:
where . If , the same conclusion follows directly from the switching cost on . Thus the lemma holds in both cases.
The preceding argument resembles Yao's minimax principle, but requires an additional step because we consider randomized algorithms that are constant-competitive in expected latency. A randomized algorithm can be viewed as a distribution over deterministic algorithms, some of which may not be latency-competitive even when the randomized algorithm is competitive in expected latency. Consequently, a switching-cost lower bound proved only for latency-competitive deterministic algorithms would not necessarily extend to randomized algorithms whose distributions include deterministic algorithms that are not latency-competitive.
To avoid this difficulty, our deterministic lower bound requires only that the algorithm finish the no-eviction instance within slots. As we show next, Markov's inequality guarantees that, for any randomized algorithm satisfying our expected-latency requirement, a constant fraction of its probability distribution is over deterministic algorithms that finish within slots. We can then apply the deterministic lower bound to those algorithms and average to obtain the desired result.
Lemma 16. For the distribution , every randomized online algorithm that is -competitive in expected latency incurs expected switching cost , where the expectation is over both the algorithm's random choices and the eviction schedule drawn from .
Proof. Since OPT finishes the no-eviction instance within slow-channel slots and is c-competitive in expected latency, we have:
Recall that . By Markov's inequality, the probability that takes more than slots to finish is at most:
Therefore, with probability at least 3/4 over the random choices of , the algorithm finishes within slots.
Recall that a randomized algorithm can be viewed as a distribution over deterministic algorithms. For each choice of randomness that results in completion within slots, Lemma 15 guarantees expected switching cost when the eviction schedule is drawn from .
These choices account for at least 3/4 of the probability distribution over deterministic algorithms. Since switching costs are nonnegative for all other choices, averaging over the random choices of and the eviction schedules drawn from gives expected switching cost , as claimed.
Proof of Theorem 2(A). By Lemma 16, the average expected switching cost of over the finitely many instances in is . Thus, some fixed instance in this distribution gives expected switching cost . As established above, OPT achieves minimum latency with switching cost on every instance in the distribution. Hence this fixed instance gives an expected switching-cost competitive ratio , as claimed.
B.2 A Rate-Dependent Switching-Cost Lower Bound
The key idea behind the proof below is that an algorithm with constant-competitive expected latency must finish in slots with constant probability when the fast channel is continuously available. Since the slow channel can complete only packets in that time, most packets must finish on the fast channel. Because packets can enter the fast channel only at slow-slot boundaries, this requires packets to remain on the fast channel after the first mini-slot in a constant fraction of slow slots. An eviction at a randomly chosen such time therefore incurs expected cost . Since OPT can achieve minimum latency with unit switching cost on every instance in the construction, an averaging argument yields a fixed eviction schedule with expected switching-cost competitive ratio .
Proof of Theorem 2(B). Fix a randomized online algorithm that is c-competitive in expected latency. Let and be its fixed augmentation factors on the slow and fast channels, respectively. Choose a fixed integer , and let:
On the instance , where the fast channel is always available, OPT finishes within slots. As in the preceding lower bound, Markov's inequality implies that finishes within slots with probability at least 3/4. We fix any choice of the algorithm's random decisions for which this occurs and consider the resulting deterministic execution.
For each integer , consider an eviction beginning at time , just after the first mini-slot of slow-channel slot ends. The fast channel remains unavailable thereafter. Let denote the resulting instance. Each such eviction is permitted because the fast channel has been available for at least slots.
On every instance , OPT can achieve minimum latency with switching cost exactly one. Indeed, any minimum-latency schedule can be modified so that all packets that succeed on the fast channel enter it together at time zero, while all other packets remain on the slow channel. Keeping only the original successful transmissions preserves their feasibility and completion times: all packets are present initially, and the fast channel is continuously available until the sole eviction. All fast-channel packets succeed before the eviction takes effect, including any transmission ending at the eviction boundary, so no packet returns to the slow channel. Furthermore, a schedule using only the slow channel requires slots, whereas sending one packet in the first fast mini-slot and the other packets on the slow channel finishes by time . Thus, every minimum-latency schedule uses the fast channel. Choosing a minimum-switching schedule among the minimum-latency schedules therefore gives .
Let be the number of packets remaining on the fast channel immediately after that first mini-slot in the execution on . We will show that for a constant fraction of the slow-channel slots under consideration.
Let denote the set of slow-channel slots in which at least packets remain on the fast channel immediately after the first mini-slot, where is a sufficiently small fixed constant. That is:
Consider a slow-channel slot with . At most packets can succeed during its first fast mini-slot. Since packets can move onto the fast channel only at slow-slot boundaries, no additional packets can enter the fast channel during the remainder of that slot. Since , at most another packets can succeed on the fast channel during this slot. Thus, such a slot contributes at most fast-channel successes. For slots in , we use the upper bound of successful fast-channel transmissions.
We now count the successful transmissions by time . The slow channel completes at most packets. On the fast channel, the first slots contribute at most successes, the slots in contribute at most , and the remaining slots contribute at most . Since all packets succeed by , we obtain:
In particular:
Recall that . Since and , and since , and are constants, the terms , and are all . We choose sufficiently small that for sufficiently large . Therefore, , which implies:
Thus, during a constant fraction of the slow-channel slots between and , at least packets remain on the fast channel immediately after the first mini-slot.
Now consider the execution on for some . Since the eviction occurs immediately after the first fast mini-slot, the execution on agrees with that on up to that time. In particular, the same packets are on the fast channel when the eviction occurs. Since , the eviction forces at least packets to return to the slow channel.
Suppose we choose uniformly at random from . Because contains a constant fraction of these choices, the expected eviction cost is for every fixed choice of the algorithm's random decisions that finishes within slots.
As established above, such choices of the algorithm's randomness occur with probability at least 3/4. Averaging over all random choices therefore gives expected eviction cost , where the expectation is over both the algorithm's randomness and the uniformly chosen eviction time.
Since the average expected eviction cost over the candidate schedules is , at least one fixed schedule must incur expected eviction cost , and hence expected switching cost
, where the expectation is only over the random choices of . Since , this fixed instance satisfies:
which proves the claimed competitive-ratio lower bound.
C Estimation of
We treat population estimation as a modular subroutine: the analysis of RACE relies only on the properties established in Lemmas 17 and 18, rather than on a particular estimation procedure. This section establishes these properties for our estimator. Although geometric techniques for estimating population size are well established [43], our analysis must also account for packet departures and the effect of rare estimation failures on expected costs.
C.1 Population Estimation in RACE
Whenever RACE invokes ESTIMATE, all active packets participate simultaneously on the slow channel, using independent random choices. Packets that successfully transmit during estimation complete their transmissions and leave the system. The packets remaining when estimation finishes receive the same estimate at a common slow-slot boundary.
The initial estimation requires no prior bound on the population and terminates almost surely. Subsequent estimations use the initial estimate to determine the range of population sizes to consider. Estimation proceeds on the slow channel even when the fast channel becomes available. However, if RACE reaches its time cutoff during a subsequent estimation, the procedure is interrupted and cleanup begins.
C.2 Estimation Procedure and Guarantees
The estimator determines the approximate number of active packets by observing how frequently the slow channel is empty. When packets transmit with relatively high probability, most slots are nonempty. As their transmission probability decreases, empty slots become more frequent. The estimator uses this relationship to identify an approximate population size.
Specifically, the estimator tests a sequence of possible population sizes, called scales. At scale v, each active packet independently transmits with probability in each of a prescribed number of slow-channel slots, called test slots. A scale passes if at least half of its test slots are empty. Since all active packets observe the same ternary feedback, those remaining agree on which scale first passes and therefore on the resulting estimate.
Initial estimation. The estimator tests scales , for . At each scale , it uses:
test slots, where is a sufficiently large constant. The estimator accepts the first passing scale and returns , setting .
If all packets finish during estimation, no estimate is needed. For purposes of analysis, we treat the remaining test slots at that scale as empty, so that an estimate is defined even if all packets have finished.
Recall that is the event that the initial population estimate satisfies and is obtained in slow slots.
Lemma 17. The initial call to ESTIMATE terminates almost surely. Let be its duration measured in slow slots. For any fixed D > 0, a sufficiently large choice of C gives an event
This means termination occurs with probability one, even though there is no deterministic upper bound on its running time.
with probability at least on which the call returns an estimate in slow slots. Since at most one packet succeeds per slow slot, this running-time bound implies that at least packets remain active on , for sufficiently large . The estimate is therefore also within a factor of 64 of the number of packets remaining.
Executions outside contribute negligibly to the expected estimate and the expected running time; specifically, and .
Proof. We first bound the probability that the estimator accepts a scale that is too small. The total number of test slots at scales is . Since at most one packet succeeds per test slot, at least packets remain active throughout these scales, for sufficiently large .
At a scale , the probability that a test slot is empty is at most , regardless of the preceding test outcomes. For the scale to pass, at least test slots must be empty. Taking a union bound over the possible choices of these slots gives:
The last inequality holds because . Since and throughout this range, choosing sufficiently large makes the probability that any such scale passes smaller than any prescribed inverse polynomial in .
We next bound the probability that the estimator continues testing scales that are too large. Let be the first index satisfying . At any scale , at most packets remain active, so the probability that a test slot is nonempty is at most .
This bound holds regardless of the preceding test outcomes. Thus, the number of nonempty slots satisfies the same Chernoff upper bound as independent tests, each nonempty with probability . A scale fails only if more than half its test slots are nonempty, so its failure probability is . Applying these bounds successively, without assuming independence between scales, gives:
for . The implicit constant in the exponent is independent of . Since this bound tends to zero as increases, the initial estimation procedure terminates almost surely.
Let be the event that the first passing scale is at least and has index at most . The preceding bounds give for sufficiently large . On , the returned estimate satisfies , and estimation takes slow slots. At most this many packets can succeed during estimation. Hence, for sufficiently large , at least packets remain active, and is between the remaining population and 64 times that population.
It remains to bound the contributions from executions outside . If the first passing scale satisfies , then and . The probability of this event can be made sufficiently small that its contribution to both the expected estimate and expected running time is .
The remaining possibility is that the first passing scale has index for some . The corresponding estimate and running time satisfy:
The probability that this scale is the first to pass is at most the probability of reaching it. Therefore, the contributions from these executions to the expected estimate and running time are bounded, respectively, by:
These bounds hold for sufficiently large because the probability of reaching increasingly large scales decreases rapidly enough to outweigh the growth in the estimate and running time. Together with the bounds for scales smaller than , this completes the proof.
Subsequent Estimations. After the initial estimation, the estimator uses the common estimate to determine the range of scales to test:
At each scale, it uses:
test slots, where is a sufficiently large constant.
The estimator accepts the first passing scale. If no scale passes, it selects the last scale tested. In either case, the returned estimate is the smaller of the selected scale and . Thus, every completed estimation returns a value between 1 and , regardless of whether the initial estimate was accurate.
Lemma 18. For , each subsequent estimation procedure uses at most slow slots. If it finishes before the time cutoff and packets remain active, they all receive the same integer estimate between 1 and . These guarantees hold even if the initial estimate is inaccurate.
Suppose and at least packets are active when estimation begins. For any fixed , a sufficiently large choice of ensures that, except with probability , any estimate returned before the time cutoff satisfies , where is the number of packets remaining active when estimation finishes.
Proof. The estimator tests scales, each using test slots, giving the stated running-time bound. All packets that remain active observe the same test outcomes and therefore return the same estimate. The rule limiting that estimate to guarantees that it lies between 1 and , even if the initial estimate is inaccurate.
We now assume and establish the accuracy guarantee. It suffices to analyze the estimation procedure without interruption: any estimate returned before the time cutoff is unchanged by this assumption. Let and be the numbers of active packets when estimation begins and ends, respectively. We first show that, except with probability , the estimate satisfies .
Consider a tested scale . While at least packets remain active, the probability that the next test slot is nonempty is at least , regardless of earlier outcomes. For this probability calculation only, once fewer than packets remain, count every remaining test slot at that scale as nonempty. The resulting sequence satisfies the same Chernoff lower-tail bound as independent tests, each nonempty with probability . Thus, the probability that at most half of these slots are nonempty is .
If , the number of active packets never falls below , so this counting rule does not change any outcome. Consequently, the probability that scale passes even though more than packets remain at the end is at most .
Next, consider the first power of two . It satisfies and is among the tested scales because . At most packets are active during its test slots, so each slot is nonempty with probability at most , regardless of earlier outcomes. A standard Chernoff upper-tail bound shows that, if this scale is reached, it fails to pass with probability at most .
There are scales. A union bound over scales that pass despite being smaller than , together with the possible failure at the first scale at least , gives total failure probability at most:
for sufficiently large , since . Outside these failures, the first passing scale lies between and . Limiting the returned value to preserves these bounds because .
Finally, at most one packet succeeds per test slot. Under the lemma's assumption that , we therefore have:
Combining this with the preceding accuracy bound gives , as required.