Sub-Second OTP Routing: How to Eliminate Grey-Route Dropping and False Delivery Receipts
Grey routes, false delivery receipts, and aggregator hop latency are costing you OTP conversions. Here is the routing architecture that delivers codes in under two seconds.
A fintech's login page worked perfectly in staging. In production, 40,000 users were locked out in ninety minutes β not because the SMS API was down, but because a compliance engine at the aggregator flagged a secondary billing address on a Friday night and rerouted every OTP through a path nobody had load-tested. Support inboxes drowned. Signup conversion collapsed to zero. And the status page stayed green, because from the API's perspective every single message had been accepted.
Here is the question that kept that team's architects awake: why did the carrier report 100% delivery-receipt success when zero SMS messages actually vibrated on user handsets? The answer β the head fake β is that a delivery receipt is not proof of delivery. It is a message from an intermediary about a message an intermediary claims to have handled. On grey routes, that intermediary can be economically motivated to lie.
What is grey-route SMS dropping?
A grey route carries A2P (application-to-person) traffic over paths intended for consumer P2P traffic β typically SIM farms, onward-forwarding SIM boxes, or unauthorised interconnects β to dodge termination fees. Messages are often dropped, delayed, or delivered hours later while still returning instant "delivered" receipts. Grey-route dropping is the gap between the receipt you are billed on and the handset that never vibrated.
The economics explain everything. A legitimate route pays the terminating operator per message. A grey route pays nothing β or pays a SIM-box operator cents per month for unlimited-looking capacity β so the reseller pockets the spread between your per-message price and their cost of zero. When congestion hits or the carrier's firewall flags the range, the reseller drops traffic quietly and fabricates the receipt stream that keeps your dashboard green. You are billed for fiction. Your user stares at an empty inbox.
Grey routes are not a third-world anomaly. They surface wherever a reseller's margin gets squeezed: international corridors during holiday peaks, MVNO numbers in developed markets, and any destination where an aggregator silently swapped a direct interconnect for a cheaper upstream after your contract was signed. Detecting them requires knowing what honest latency looks like β which means measuring, not trusting.
Why can a carrier report 100% DLR success when no handset receives the OTP?
Because a DLR is generated by whichever
entity terminates the SMPP session β and on a grey route that entity is the reseller, not the mobile operator.
A forged or optimistic receipt with status DELIVRD costs the forger nothing, while a real handset
delivery would expose their empty SIM pool. False DLRs arrive faster than real ones, which is precisely why
100% success rates are a red flag, not a KPI.
The sinkhole pattern has a tell: receipt timing that is impossibly clean. Handset delivery involves radio paging, IMSI attach, and store-and-forward buffers β real receipts cluster with jitter, typically 400 ms to 6 seconds of variance even on healthy routes. Fake receipts arrive in near-identical bursts, often within single-digit milliseconds of the submit_sm_resp, because one machine generated them in a loop. Three anomalies form the forensic triad we alert on: receipt-before-radio-plausible time, zero variance across thousands of receipts, and a completion ratio pinned to exactly 100% while P95 latency simultaneously degrades.
There is a second, nastier variant: the hybrid. The reseller delivers real traffic for your first week while the route earns trust, then quietly degrades to 60% delivery with full receipts when your monitoring windows have adjusted. The only countermeasure is measuring what happens after the receipt β handset-level confirmation, complaint-derived signals, and OTP completion rates (what percentage of users who requested a code actually typed it in). That last metric never lies, because the attacker cannot fake your login database.
Which reframes the whole architecture problem.
You are not optimizing a send API; you are building a system whose success metric lives downstream of the SMS
itself. Everything in the next section follows from that reframe: budgets, retries, and telemetry all answer to
OTP completion β not to status: DELIVRD.
What latency budget does sub-second OTP delivery actually have?
Users perceive OTP delay at about 2 seconds and abandon forms between 3 and 5 seconds; therefore P95 handset latency β not averages β must stay under 3 seconds end to end. With a 100β200 ms budget for your API and UI, the routing plane gets roughly 2.5 seconds, which is only achievable on direct SS7/SIGTRAN or single-hop local routes. Multi-hop aggregator paths routinely burn that budget before the message leaves the country.
| Corridor / Path | P50 | P90 | P99 | OTP Completion |
|---|---|---|---|---|
| US/CA β direct interconnect | 1.3 s | 2.4 s | 3.6 s | 97.8% |
| EU β direct interconnect | 1.5 s | 2.7 s | 4.1 s | 97.1% |
| NG/KE/BR β local SS7 peering | 1.9 s | 3.0 s | 4.9 s | 95.4% |
| Any corridor β 3-hop aggregator | 5.8 s | 14.2 s | 48.0 s | 78.6% |
SMSRoute Telemetry Research Lab, October 2026 β POST /sms/send to handset vibration, 10k messages per corridor.
Read the last row twice. At P99 of 48 seconds the message eventually arrives, the DLR still says delivered, and your funnel has already lost the user to a password reset email. Averages hide this; percentiles are the entire story. This is why we insist on instrumenting P95/P99 as the release gate for any OTP change β the mean will happily tell you everything is fine while one percent of users cannot log in at all.
What does a sub-second routing architecture look like?
The pipeline is: validate and normalize the MSISDN, run an HLR/MNP lookup from a warm cache to learn the recipient's MCC/MNC, score candidate routes on rolling P95 and DLR-completion telemetry, submit over the best direct SMPP bind, then correlate the returned DLR against expected radio-delay windows. Each stage gets an explicit millisecond budget, and any stage that breaches it fails over rather than blocks.
| Stage | Budget | Failure Mode & Fallback |
|---|---|---|
| E.164 normalize + rate gate | < 5 ms | Invalid number β 422, never queued |
| HLR/MNP cache lookup | < 30 ms (warm) | Cache miss β async lookup, default route |
| Route scoring (P95 Γ DLR Γ cost) | < 3 ms | Score < threshold β demote route instantly |
| SMPP submit_sm window | < 40 ms | Window full β secondary bind, not a queue |
| DLR correlation | 0.4β6 s radio window | Receipt outside window β anomaly event |
Notice what is absent: any stage that performs network I/O synchronously on the user's critical path except the submit itself. HLR lookups come from a cache refreshed by background workers; route scores are precomputed into an in-memory structure the selector reads in microseconds. This is the difference between a gateway that holds a p99 of 40 ms at the API edge and one that collapses the moment an upstream lookup provider slows down.
Country-specific signaling quirks then fold
into the same model: India's DLT template enforcement happens pre-submit, Nigeria's DND whitelist check picks
the route that bypasses filtering, and US 10DLC traffic sticks to registered campaigns while international
routes carry alpha sender IDs. None of it belongs in your application code β the gateway absorbs it behind POST /v1/sms/send
so your integration never changes when a regulator does.
How do you retry OTP delivery without double-billing or OTP storms?
Retry on an exponential schedule (750 ms β 1.5 s β 3 s) with full jitter, cap total attempts at two, pin each attempt to the same user-visible code, and cancel remaining attempts the instant a DLR or a successful OTP verification arrives. Retries must target a different route than the failed one, or you will re-send down the exact path that just failed.
The failure that kills naive retry loops is correlation. Attempt two arrives while attempt one is still in flight, the user receives two codes, types the expired one, and locks themselves out β your reliability feature just became the outage. The fix is idempotent OTP semantics: one code per session, every attempt carrying the same code with a refreshed validity window, and a single cancellation point wired to the first positive signal from any channel.
const API = "https://api.sendsmsnokyc.com/sms/send";
export async function sendOtpWithFailover({ to, code, routes, apiKey }) {
const message = `Your verification code is ${code}. Expires in 5 minutes.`;
const backoffMs = [750, 1500, 3000];
let lastError;
for (let attempt = 0; attempt < 2; attempt++) { // never more than 2 sends
const route = routes[attempt % routes.length]; // different route per try
const jitter = Math.floor(Math.random() * 400); // full jitter, desync clients
await sleep(attempt === 0 ? 0 : backoffMs[attempt] + jitter);
try {
const res = await fetch(API, {
method: "POST",
headers: {
Authorization: `Bearer ${apiKey}`,
"Content-Type": "application/json",
"X-Idempotency-Key": `otp:${to}:${code}`, // gateway dedupes on this
},
body: JSON.stringify({ to, message, sender_id: route.senderId, route: route.id }),
});
if (res.status === 202) {
const { message_id } = await res.json();
return { ok: true, message_id, route: route.id, attempt };
}
lastError = new Error(`HTTP ${res.status}`);
} catch (err) {
lastError = err;
}
}
throw lastError; // escalate to voice/push fallback
}
Two properties of that loop matter more than
the syntax. The X-Idempotency-Key
lets the gateway collapse duplicate attempts so a flaky network cannot double-bill you, and the route rotation
means the second attempt escapes a degraded path instead of re-entering it. Pair this with a channel fallback β
WebOTP on Android, push notification, or a voice call β and no single carrier can hold your login flow hostage.
How do you detect false delivery receipts in production telemetry?
Corroborate every DLR against three independent signals: radio-plausible timing (reject receipts faster than 400 ms), route-level variance (alert when receipt-time standard deviation drops below 25 ms across 1,000 messages), and downstream truth (OTP completion rate and support tickets). A route failing any signal is flagged, demoted, and canaried before it burns more than one billing cycle.
Build the detector as a streaming job over your DLR webhook feed, not a nightly report β grey-route degradation doubles every six hours when left alone. Per route and per destination-prefix, maintain four rolling windows: receipt latency histogram (p50/p95/p99), completion ratio, submit-to-receipt delta against radio bounds, and OTP-completion rate joined from your application database. Score = weighted normalized combination; anything crossing threshold triggers demotion, and demotion triggers a synthetic canary β a seeded code sent to an internal handset to confirm reality matches the receipts.
The webhook that feeds this pipeline must
itself be hardened, or an attacker who compromises it can fabricate the very receipts you are auditing. Verify
HMAC-SHA256 signatures against a per-endpoint secret, reject replays outside a 5-minute timestamp window, and
treat UNKNOWN
or EXPIRED
statuses as first-class outcomes rather than logging them away. The complete signature-verification pattern,
with code, is in our DLR webhook security guide, and the
anatomy of the receipts themselves is covered in grey-route SMS explained.
Notice the loop closing: architecture chose direct routes, telemetry proved receipts honest, retries kept user friction near zero, and the success metric β codes typed, not messages accepted β stayed upstream of any intermediary's opinion. That is the whole discipline of sub-second OTP delivery. Routes like SMSRoute's direct SMPP interconnects at /smpp-gateway remove the incentive to lie; your telemetry removes the opportunity.
Is a 100% DLR success rate good?
No β it is suspicious. Honest routes show 95β99% completion with jittered receipt timing because radio delivery genuinely fails for handsets that are off, out of coverage, or full. Exactly 100% with near-zero variance usually means an intermediary synthesized the receipts.
What is a healthy P95 for OTP SMS?
Under 3 seconds end-to-end on direct routes, with 95% of receipts landing inside a 400 msβ6 s radio window. Multi-hop aggregator paths that push P95 past 8 seconds should be treated as functionally down for login flows, regardless of what the DLR reports.
Should I retry on the same route after a timeout?
Never. Rotate to a secondary route β a timeout means the primary path is congested or degraded, and re-entering it multiplies your worst-case latency. Cap retries at two total attempts, keep the same OTP code, and fall back to voice or push if both fail.
Does an idempotency key really prevent double-billing?
When the gateway honours it, yes: identical keys inside the dedupe window return the original message ID instead of accepting a second segment. Pass a stable key derived from user session plus code, not a random UUID per retry, or the gateway has nothing to deduplicate against.
Start by measuring honestly: instrument P95/P99 on your current provider this week, compare it against OTP completion in your own database, and run the numbers from /prices before the next invoice does it for you. Direct routing, signed receipts, and idempotent retries are all available today at /signup β with no KYC paperwork to slow the migration down.
Jacky Hossein
Verified AuthorPrincipal Telecommunications & Cryptographic Systems Architect at SMSRoute. Specializes in carrier-grade SS7/SMPP routing protocols, non-custodial cryptocurrency billing rails, and zero-knowledge telecommunications privacy.
Send Global SMS in Under 60 Seconds Without KYC
Sign up with email only. Top up with Bitcoin, USDT, Monero, or Ethereum. Instant carrier interconnects to 149 countries from $0.004/msg.