Papers
Topics
Authors
Recent
Search
2000 character limit reached

MSF-Quick Swap (MSFQ) Overview

Updated 10 July 2026
  • MSFQ is a multifaceted term referring to a scheduling policy in datacenters, an HTLC-based swap refinement with griefing premiums, and a scriptless cross-chain transaction protocol.
  • In the scheduling context, MSFQ employs a quick swap mechanism to control phase transitions, reducing waiting-time variability and optimizing stability in one-or-all multiserver systems.
  • For cross-chain applications, MSFQ enhances swap fairness and speed by integrating premium-based cancellation in HTLCs and using pre-signed adaptor signatures for near-instant settlement.

Searching arXiv for the cited works to ground the article in the latest indexed versions. arXiv search query: (Mazumdar, 2022) MSF-Quick Swap (MSFQ) is not a single technical construct across the supplied literature. In the provided sources, the designation refers to three different mechanisms: Most Servers First with Quick Swap, a nonpreemptive scheduling policy for multiserver jobs in datacenters (Chen et al., 2 Sep 2025); a mapped name for the “Quick Swap” protocol for fairer HTLC-based cross-chain atomic swaps with griefing-premiums and cancellation hashes (Mazumdar, 2022); and a trustless, high-speed cross-chain transaction protocol that eliminates HTLCs by using pre-signed adaptor signatures, a minimal Ethereum smart contract, and an oracle (Francolla et al., 17 Mar 2025). The shared label therefore denotes distinct objects in queueing theory and decentralized exchange design rather than a unified protocol family.

1. Terminological scope and disambiguation

The ambiguity is explicit in the supplied material: one source defines MSFQ as “Most Servers First with Quick Swap,” another states that the acronym “MSF-Quick Swap (MSFQ)” does not appear in the paper and is being mapped onto that paper’s “Quick Swap” protocol, and a third uses MSFQ for a PTLC-based cross-chain protocol (Chen et al., 2 Sep 2025, Mazumdar, 2022, Francolla et al., 17 Mar 2025).

Usage of MSFQ Technical domain Canonical source
Most Servers First with Quick Swap Nonpreemptive multiserver job scheduling (Chen et al., 2 Sep 2025)
Quick Swap (mapped to MSFQ in the supplied alignment) HTLC-based atomic cross-chain swaps (Mazumdar, 2022)
MSFQ using pre-signed adaptor signatures Near-instant cross-chain transactions (Francolla et al., 17 Mar 2025)

This terminological overlap is a recurrent source of confusion. In the scheduling paper, “Quick Swap” denotes a queue-length-driven phase-switch mechanism layered on top of Most Servers First. In the HTLC paper, “Quick Swap” denotes a fairness-oriented swap protocol using griefing-premiums and cancellation hashes. In the adaptor-signature paper, MSFQ denotes a scriptless, oracle-gated construction aimed at market makers and high-frequency traders. The sources therefore require contextual disambiguation before any technical claim can be interpreted.

2. MSFQ as Most Servers First with Quick Swap in multiserver scheduling

In “Improving Nonpreemptive Multiserver Job Scheduling with Quickswap,” MSFQ is a nonpreemptive scheduling policy for multiserver jobs designed to preserve the high utilization of Most Servers First (MSF) while lowering mean response time and tail latency through a controlled phase-switch mechanism (Chen et al., 2 Sep 2025). The system consists of a single pool of kk servers. Jobs are rigid and stateful: a job is an ordered pair (x,s)(x,s), where x{1,2,,k}x\in\{1,2,\dots,k\} is the server requirement and ss is the service time. Class-ii jobs arrive according to an independent Poisson process with rate λi\lambda_i, and class-ii service durations are i.i.d. exponential Siexp(μi)S_i\sim \exp(\mu_i). A feasible schedule is a multiset u=(u1,,uk)u=(u_1,\dots,u_k) satisfying i=1kiuik\sum_{i=1}^k i\cdot u_i \le k.

The baseline comparison is between FCFS and MSF. FCFS is nonpreemptive and respects arrival order, but head-of-line blocking can leave many servers idle and can degrade mean response time or even stability. MSF instead prioritizes jobs with larger server needs and greedily admits as many jobs as possible in descending order of server requirement. In the one-or-all case, where only 1-server and (x,s)(x,s)0-server jobs exist, MSF alternates between two exhaustive phases: a phase serving (x,s)(x,s)1-server jobs exclusively and a phase serving 1-server jobs, up to (x,s)(x,s)2 in parallel. The paper attributes MSF’s poor practical behavior to a feedback loop: long large-job phases allow small jobs to accumulate, and long small-job phases allow large jobs to accumulate, producing extreme variability in waiting times.

MSFQ modifies this behavior by enforcing faster switching. In the one-or-all model, MSFQ with threshold (x,s)(x,s)3 operates in four phases. Phase 1 serves class-(x,s)(x,s)4 jobs exclusively until none remain. Phase 2 serves class-1 jobs until (x,s)(x,s)5. Phase 3 continues serving class-1 jobs until (x,s)(x,s)6. Phase 4 drains the class-1 jobs already in service and blocks admission of new small jobs; when (x,s)(x,s)7, the system returns to Phase 1. The queue-length threshold (x,s)(x,s)8 therefore controls swap timing. The source states that (x,s)(x,s)9 reduces to MSF, while x{1,2,,k}x\in\{1,2,\dots,k\}0 maximally dampens accumulation feedback and yields short phase durations.

This construction is explicitly nonpreemptive. No job migration or forced interruption occurs. The “quick swap” is instead implemented by admission control: once the threshold condition is reached, the policy stops admitting additional small jobs and lets the current in-service set drain. In one-or-all systems, the packing logic is trivial; in more general systems, the paper retains MSF’s descending server-need order and supplements it with quickswap triggers.

3. Stability theory, response-time analysis, and evaluated variants of scheduling MSFQ

The scheduling paper proves a full stability result in the one-or-all case. MSFQ is positive recurrent for all x{1,2,,k}x\in\{1,2,\dots,k\}1, x{1,2,,k}x\in\{1,2,\dots,k\}2, whenever

x{1,2,,k}x\in\{1,2,\dots,k\}3

It also proves that no scheduling policy is stable if

x{1,2,,k}x\in\{1,2,\dots,k\}4

Combining these results, the paper concludes that in the two-class one-or-all multiserver-job system, MSFQ has the optimal stability region for all x{1,2,,k}x\in\{1,2,\dots,k\}5, x{1,2,,k}x\in\{1,2,\dots,k\}6 (Chen et al., 2 Sep 2025).

The mean-response-time framework is phase-based. Let x{1,2,,k}x\in\{1,2,\dots,k\}7 be the duration of phase x{1,2,,k}x\in\{1,2,\dots,k\}8, x{1,2,,k}x\in\{1,2,\dots,k\}9 the fraction of time in phase ss0, and ss1 and ss2 the numbers of small and large jobs at the beginning of phase ss3. The total mean response time is decomposed as

ss4

The paper then develops the constituent terms by combining an extended renewal-reward theorem, M/G/1 with Exceptional First Service (EFS), age/excess identities, and an absorbing M/M/ss5 subchain for Phase 3. The summary theorem states that the mean response time under MSFQ depends on the first and second moments of ss6 and ss7 for all phases, and that these moments follow by differentiating the transforms provided in the analysis.

The same source introduces two broader variants. Static Quickswap cycles through classes in a fixed order, serving each class exclusively in a working phase and then draining it. Adaptive Quickswap preserves MSF’s priority order, admits any job that fits, and triggers a quickswap when there exists a waiting job class not currently in service and all currently served classes have no waiting jobs. Static Quickswap is stable whenever

ss8

and if all class sizes ss9 divide ii0, it attains the optimal stability region. The paper does not attach an analogous throughput-optimality theorem to Adaptive Quickswap.

The empirical results are correspondingly differentiated. In a one-or-all synthetic workload with ii1, ii2, ii3, and ii4, MSFQ with ii5 dramatically outperforms MSF, First-Fit, and nMSR, with up to two orders of magnitude lower MRT and weighted MRT at high ii6. In a multiclass synthetic workload with ii7 and classes ii8, Adaptive Quickswap is best and Static Quickswap is also strong. On a Google Borg trace-derived workload with 26 classes and ii9, both Quickswap variants deliver up to two orders-of-magnitude improvement at high load, and Static Quickswap is about λi\lambda_i0 better than MSF despite its simplicity. The source also states that analysis predictions closely match simulation across λi\lambda_i1.

A common misconception is that MSFQ’s contribution is throughput only. The paper’s central claim is broader: MSFQ aims to retain MSF’s utilization advantages while sharply reducing waiting-time variability and tail latency by shortening the windows during which one class accumulates behind another. Another misconception is that the closed-form MRT analysis extends to general multiclass systems; the source states that exact MRT analysis is developed for one-or-all, while broader multiclass claims are supported by principled variants and simulation evidence.

4. MSFQ mapped to “Quick Swap” for HTLC-based atomic cross-chain swaps

In “Towards faster settlement in HTLC-based Cross-Chain Atomic Swaps,” the protocol is called “Quick Swap”; the supplied alignment states that the acronym “MSF-Quick Swap (MSFQ)” does not appear in the paper and maps MSFQ onto that protocol (Mazumdar, 2022). In this usage, the subject is not datacenter scheduling but fairer settlement in HTLC-based atomic cross-chain swaps.

The starting point is the standard two-party HTLC construction. Alice samples a secret λi\lambda_i2, computes λi\lambda_i3, locks λi\lambda_i4 on Chain-a in an HTLC redeemable by Bob if he can provide λi\lambda_i5 before λi\lambda_i6, and Bob locks λi\lambda_i7 on Chain-b in an HTLC redeemable by Alice if she provides λi\lambda_i8 before λi\lambda_i9, with ii0. The paper characterizes this structure as equivalent to an American call option without a premium. The initiator has free optionality: she can wait, exercise only if favorable, or allow the contract to time out. The counterparty’s capital remains locked, bearing opportunity cost, and the paper identifies this as a griefing problem.

The game-theoretic model formalizes that asymmetry. The players are the initiator ii1 and the counterparty ii2, each of type interested or malicious. Beliefs are represented by ii3 and ii4, actions under HTLC are continue and stop, and actions under Quick Swap are continue, stop, and cancel. Price dynamics use a geometric Brownian motion model for the spot price ii5, with expected price

ii6

Opportunity cost is denoted by ii7, griefing-premium by ii8, and in Quick Swap the paper sets ii9 and Siexp(μi)S_i\sim \exp(\mu_i)0; Alice locks Siexp(μi)S_i\sim \exp(\mu_i)1 and Bob locks Siexp(μi)S_i\sim \exp(\mu_i)2.

The central analytical claim is a fairness result. Under HTLC, equilibria in which Alice delays or stops are plausible because optionality is free. Under Quick Swap, with properly sized griefing-premiums, cancel strictly dominates stop, and the equilibria favor either prompt continuation or prompt cancellation. The fairness notion is explicit: no compliant party ends worse off than not participating. This suggests that the paper’s target is not merely shorter latency but also a redistribution of the economic burden created by lock-up asymmetry and volatile prices.

5. Protocol mechanics, premium sizing, and cyclic multiparty extension of Quick Swap

The Quick Swap protocol uses on-chain hashlocks, timelocks, and multi-condition scripts combining a shared payment hash and cancellation hashes. The supplied alignment maps “payment hash” to Siexp(μi)S_i\sim \exp(\mu_i)3, “cancellation hashes” to Siexp(μi)S_i\sim \exp(\mu_i)4 and Siexp(μi)S_i\sim \exp(\mu_i)5, timelocks to Siexp(μi)S_i\sim \exp(\mu_i)6, Siexp(μi)S_i\sim \exp(\mu_i)7, Siexp(μi)S_i\sim \exp(\mu_i)8, and Siexp(μi)S_i\sim \exp(\mu_i)9, and the two parties to Alice and Bob (Mazumdar, 2022).

The step sequence is specified. In preprocessing, Alice samples u=(u1,,uk)u=(u_1,\dots,u_k)0 and u=(u1,,uk)u=(u_1,\dots,u_k)1, computes u=(u1,,uk)u=(u_1,\dots,u_k)2 and u=(u1,,uk)u=(u_1,\dots,u_k)3, and shares them with Bob; Bob samples u=(u1,,uk)u=(u_1,\dots,u_k)4, computes u=(u1,,uk)u=(u_1,\dots,u_k)5, and shares it with Alice. At u=(u1,,uk)u=(u_1,\dots,u_k)6, Bob locks the griefing-premium u=(u1,,uk)u=(u_1,\dots,u_k)7 on Chain-b. At u=(u1,,uk)u=(u_1,\dots,u_k)8, Alice locks u=(u1,,uk)u=(u_1,\dots,u_k)9 on Chain-a and also locks principal i=1kiuik\sum_{i=1}^k i\cdot u_i \le k0 on Chain-a, redeemable by i=1kiuik\sum_{i=1}^k i\cdot u_i \le k1, with refund possible after i=1kiuik\sum_{i=1}^k i\cdot u_i \le k2 or earlier upon i=1kiuik\sum_{i=1}^k i\cdot u_i \le k3. At i=1kiuik\sum_{i=1}^k i\cdot u_i \le k4, Bob locks principal i=1kiuik\sum_{i=1}^k i\cdot u_i \le k5 on Chain-b, redeemable by i=1kiuik\sum_{i=1}^k i\cdot u_i \le k6, with refund possible after i=1kiuik\sum_{i=1}^k i\cdot u_i \le k7 or earlier upon i=1kiuik\sum_{i=1}^k i\cdot u_i \le k8. If Alice redeems before i=1kiuik\sum_{i=1}^k i\cdot u_i \le k9, she reveals (x,s)(x,s)00 to claim (x,s)(x,s)01, refunds (x,s)(x,s)02, and Bob then uses (x,s)(x,s)03 to redeem (x,s)(x,s)04 and refund (x,s)(x,s)05. If Alice cancels before (x,s)(x,s)06, she reveals (x,s)(x,s)07 to refund (x,s)(x,s)08; Bob uses (x,s)(x,s)09 to refund (x,s)(x,s)10, reveals (x,s)(x,s)11 to refund (x,s)(x,s)12, and Alice uses (x,s)(x,s)13 to refund (x,s)(x,s)14.

Premium sizing is designed to make griefing strictly dominated. The source imposes

(x,s)(x,s)15

and

(x,s)(x,s)16

Under these conditions, for Bob at (x,s)(x,s)17, stop yields losing (x,s)(x,s)18 at (x,s)(x,s)19, whereas cancel yields recovering (x,s)(x,s)20; for Alice at (x,s)(x,s)21, delaying to (x,s)(x,s)22 forfeits (x,s)(x,s)23, while either continue or cancel earlier avoids that loss. The paper also gives volatility-aware sizing by adding a volatility buffer to (x,s)(x,s)24 when (x,s)(x,s)25 is high.

The settlement-speed claim is framed comparatively. HTLC allows endogenous delays (x,s)(x,s)26 and (x,s)(x,s)27, and the expected settlement time rises with (x,s)(x,s)28, especially in volatile markets. Quick Swap instead enforces prompt continuation or prompt cancellation by time (x,s)(x,s)29, with (x,s)(x,s)30 chosen such that (x,s)(x,s)31 and (x,s)(x,s)32 used as a small buffer. The source states that this caps indecision, shortens settlement, and removes the success-rate dependence on (x,s)(x,s)33 and (x,s)(x,s)34. In the paper’s simulations, HTLC success rate falls rapidly with delay and, for (x,s)(x,s)35, is approximately (x,s)(x,s)36 even at (x,s)(x,s)37, while Quick Swap’s success rate depends solely on (x,s)(x,s)38.

The construction is extended to cyclic multiparty settings. In a three-party or (x,s)(x,s)39-party cycle, each party locks principal and griefing-premium with a shared payment hash (x,s)(x,s)40, party-specific cancellation hashes (x,s)(x,s)41, and staggered timelocks (x,s)(x,s)42. The source states that revealing the payment preimage triggers all redemptions, while revealing cancellation secrets triggers coordinated cancellations and refunds. The stated formal result is correctness, safety, and liveness in cyclic settings, with griefing-premiums sized to cover cumulative opportunity cost downstream.

The trade-offs are explicit. Compared with baseline HTLC, Quick Swap improves fairness, reduces indecision periods, and enhances participant-friendliness, but requires additional premium capital, roughly doubles the transactions and communication rounds, and depends on compatible support for hashlocks, timelocks, script branching, and aligned hash and timelock semantics.

6. MSFQ as a near-instant, trustless cross-chain protocol based on pre-signed adaptor signatures

In “Enabling High-Frequency Trading with Near-Instant, Trustless Cross-Chain Transactions via Pre-Signing Adaptor Signatures,” MSFQ denotes a protocol for trustless, high-speed cross-chain atomic swaps that eliminates HTLCs by using pre-signed adaptor signatures, a minimal Ethereum smart contract, and an oracle (Francolla et al., 17 Mar 2025). The stated objective is to accommodate market makers and high-frequency traders who must quote tight spreads and complete swaps within seconds rather than tens of minutes. The source states that the protocol reduces transaction times between Bitcoin and Ethereum swaps to approximately 15 seconds for a market maker.

The trust and threat model differs sharply from HTLC-based Quick Swap. Atomicity is still the core property: either both legs complete or both sides reclaim funds after timeouts. There is no centralized custodian. Adversaries include counterparties that abort or attempt to front-run, passive observers, mempool adversaries, MEV on Ethereum, and chain reorgs. The oracle is assumed decentralized and threshold-based, releasing the adaptor secret only when the stated condition is met. Bitcoin support is via Taproot and Schnorr on secp256k1; Ethereum support is via ECDSA identities and factory smart contracts.

The cryptographic core is an additive Schnorr adaptor construction. Standard Schnorr signing uses

(x,s)(x,s)43

with verification

(x,s)(x,s)44

The paper’s MSFQ construction defines an external secret (x,s)(x,s)45, commitment (x,s)(x,s)46, Bob’s full Schnorr scalar (x,s)(x,s)47, and partial signature

(x,s)(x,s)48

When (x,s)(x,s)49 is released, the final signature is

(x,s)(x,s)50

and the extraction property is

(x,s)(x,s)51

Swap parameters are bound into the Bitcoin spend key with a Taproot tweak,

(x,s)(x,s)52

The operational flow for the ETH (x,s)(x,s)53 BTC direction is pre-signed and oracle-gated. Bob, the maker, prepares the Bitcoin side off-chain: he chooses (x,s)(x,s)54, computes (x,s)(x,s)55, forms (x,s)(x,s)56, computes the tweak and challenge, chooses adaptor secret (x,s)(x,s)57, forms (x,s)(x,s)58, and sends the structured proposal and partial signature to Alice. Alice verifies the proposal and deploys a minimal Ethereum swap instance with immutable beneficiary, commitment (x,s)(x,s)59, amounts, timeouts, oracle key, and swap ID, then locks ETH. Once the oracle observes the lock event, it signs the event data and releases (x,s)(x,s)60. The final Bitcoin signature is computed immediately off-chain and broadcast. After publication of the final Bitcoin signature, Bob extracts (x,s)(x,s)61 from (x,s)(x,s)62 and uses it to claim the ETH from the contract.

The latency claim is narrowly defined. The maker’s critical path is approximately one Ethereum block, about (x,s)(x,s)63–(x,s)(x,s)64 seconds on mainnet. Finalizing the Bitcoin signature and broadcasting it is sub-second. The source distinguishes this from full Bitcoin settlement: on-chain confirmation still follows Bitcoin’s cadence, but the maker’s exposure window is materially shortened and can be hedged.

The comparison with HTLCs is correspondingly structural. HTLCs require long timeouts and expose hash preimages and explicit scripts on-chain. The adaptor-signature MSFQ instead encodes conditions “scriptlessly” under Schnorr linearity and Taproot tweaks, so observers see normal signatures and tweaked keys. The paper attributes to this design lower latency, smaller script footprints, lower Bitcoin fees, improved privacy, and tighter spreads for market makers. It also states that with a reliable oracle and factory, operational success is near-100% under normal network conditions, while failure paths are governed by timeouts.

The security analysis emphasizes nonce security, replay prevention, adaptor-secret leakage only at the intended point, authenticated oracle outputs, immutable Ethereum beneficiaries to mitigate MEV theft, and timeout cushions for reorgs. The paper also discusses extensions to Lightning Network PTLCs and Ethereum rollups, where overall latency can fall further.

Across the supplied literature, then, “MSFQ” designates three distinct technical ideas: a queueing policy that accelerates phase transitions in nonpreemptive multiserver scheduling, a griefing-premium-based refinement of HTLC atomic swaps, and a scriptless, oracle-gated adaptor-signature protocol for near-instant cross-chain execution. The common lexical element “Quick Swap” consistently denotes a mechanism for accelerating transitions or settlement, but the underlying mathematical models, correctness criteria, and deployment assumptions differ fundamentally.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to MSF-Quick Swap (MSFQ).