IOSOR Learn
Route Failover Drain Completion: Verification Gates and Cost Trade-offs
How to verify a failed-over route has fully drained in-flight SMS traffic, compare partner drain-window behavior, DLR continuity, and cost deltas before declaring failover complete.
Lead Telecom & Routing Architect · Lausanne, CH
Failover is not complete when the new route accepts traffic; it is complete when the old route has zero in-flight SMS, DLR receipts reconcile, and webhook latency returns to baseline. Use drain-completion gates before closing the incident.
What drain completion actually means
Drain completion is the state where a failed-over route has no queued, retrying, or unacknowledged messages and every dispatched SMS has a terminal DLR or a documented expiry. Operators often confuse routing cutover with drain: the new path can be live while the old path still holds retry buffers, pending webhooks, or stale sender bindings.
Verification gates before declaring failover complete
Gate one is queue and retry-buffer emptiness sampled across the full drain window, not a single snapshot. Gate two is DLR continuity: compare receipt counts per sender and template against the prior hour, flagging any gap above the agreed tolerance. Gate three is webhook latency and ordering, since late callbacks can arrive after cutover and corrupt state machines. Gate four is sender and template gating, confirming the failed-over route accepts the same E.164 formats and template IDs without silent rejection.
Partner drain-window behavior and DLR continuity
Partners differ in how they expose drain state: some report queue depth directly, others only surface DLR lag, and some require a manual drain confirmation. When comparing partner routes, ask for the drain-window definition, the DLR continuity guarantee during cutover, and whether retries are re-queued on the old path or forwarded. A partner that re-queues on the old path can extend drain indefinitely.
Cost trade-offs during and after drain
Drain windows carry cost deltas that are easy to miss. Keeping the old route open for drain may incur MRC or per-message charges on residual retries, while cutting it early risks duplicate SMS and support cost. Compare the cost of a longer drain window against the cost of duplicate delivery and reconciliation labor. Some partners bill retries on the old path even after cutover, so the drain-window length directly affects spend.
Cascading faults and drain edge cases
Drain completion fails most often when a cascading fault reopens the old route or when retry buffers flush after cutover. Watch for secondary failures that re-add traffic to the drained path, and for webhook retries that arrive after the drain window closes. Edge cases include partial sender migration, where some templates still route to the old path, and DLR expiry policies that differ between partners.
Start with IOSOR
Run the partner-comparison checklist for this job: confirm drain-window definition, DLR continuity evidence, webhook latency percentiles, sender and template gating, and cost delta per corridor. Use compare verified partner routes to match partners on drain-completion evidence, and keep the tools overview for operational checks.
Related: PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
Drain completion is the state where a failed-over route has no queued, retrying, or unacknowledged messages and every dispatched SMS has a terminal DLR or a documented expiry. Edge cases include partial sender migration, where some templates still route to the old path, and DLR expiry policies that differ between partners (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Route Failover Verification Evidence Packet: Definition and Audit Gates
A complete failover verification evidence packet bundles DLR receipts, webhook latency logs, sender and template gates, and signed audit gates so partner route claims can be compared.
- Route Change Freeze Windows: Define, Verify, and Compare
Define when route changes must freeze before cutover, verify provider freeze windows, change logs, and emergency overrides, and compare partner evidence via /tools/brief.
- Consent Evidence Retention: Definitions That Survive Route Comparison
One citable definition of how long consent evidence is retained per channel and jurisdiction, so partner route comparison filters on audit terms you can actually defend.












