IOSOR Learn
Route Drain vs Quarantine: Failover Gate Before Carrier Swap
Decide drain vs hard quarantine for a degrading E.164 route, and gate the carrier swap on verified capacity, DLR behavior, and cost band before live traffic moves.
Lead Telecom & Routing Architect · Lausanne, CH
Drain gradually when degradation is partial and DLR receipts still arrive inside the webhook budget; quarantine hard when receipt loss or sender-gate failures cross the stop threshold. Either way, gate the carrier swap on verified replacement capacity, DLR behavior, and cost band before live traffic moves.
Classify the degradation before choosing drain or quarantine
Start from the evidence, not the instinct. Pull the last 60 minutes of DLR receipts per route and split them into delivered, undelivered, expired, and missing. Missing receipts are the loudest signal: if the webhook latency p95 has doubled while the receipt count fell, the route is failing silently and quarantine is the safer call.
Drain mechanics: ramp down with a stop timer and receipt watch
A drain is a controlled ramp, not a slow leak. Cut the route's share in steps, for example 100 to 70 to 40 to 0 percent, and hold each step long enough to observe at least one full DLR window. At every step, watch receipt completeness and webhook latency against the pre-incident baseline. If completeness drops below the gate or latency exceeds the budget, stop the ramp and escalate to quarantine.
Quarantine mechanics: hard cut with sender and template gates
Quarantine removes the route from rotation immediately and blocks re-entry until explicit checks pass. The hard cut is justified when receipts are missing, when the sender or template gate fails, or when the route shows priority inversion against its configured order. On the cut, freeze new sends to the route, let in-flight messages resolve, and capture the final receipt snapshot for the record.
Verify the replacement route before any live traffic moves
The swap is the risky moment, so verify the replacement first. Check capacity headroom against current and peak send rate, confirm DLR receipt behavior and webhook latency match the baseline band, and confirm the cost band sits inside the approved envelope. Run a probe batch through the replacement and compare receipt completeness and latency to the degrading route's pre-incident numbers.
Common failure modes that break the gate
Three patterns recur. First, swapping on a verbal assurance without a probe batch, which hides a receipt regression until customers report it. Second, draining too slowly while receipts are already missing, which extends the silent-failure window. Third, re-entering a quarantined route on a single good minute instead of a full probe window.
Start with IOSOR
Run this checklist before the swap. One: classify degradation on receipt completeness, webhook latency drift, and sender/template gate pass rate; record the drain-or-quarantine decision and its threshold. Two: if draining, set step percentages and a stop timer, and watch receipts at every step. Three: if quarantining, freeze sends, snapshot receipts, and write exit criteria.
Related: PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
Start from the evidence, not the instinct. Third, re-entering a quarantined route on a single good minute instead of a full probe window (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Route Failover DNS TTL Propagation: Verifying Cutover Before Traffic Shifts
Audit DNS TTLs, resolver caches, and propagation lag so failover cutover completes before traffic shifts; then compare partner failover readiness via /tools/brief.
- Verify Route Failover Drain Windows Before Committing Volume
Check failover drain windows, in-flight SMS and voice handling, and cutover timing per route before you commit volume, then compare verified partner routes.
- Verify Route Failover Drain State Before Traffic Shift
Confirm drain state, in-flight message accounting, and failover cutover consistency before shifting volume so you don't strand DLRs or double-send during a route transition.












