Performance

Breaking the 2-Second Barrier: How to Deliver Sub-Second OTP SMS in Latam, Africa, and Southeast Asia

Why international OTP routes feel slow, the SS7 and carrier-firewall mechanics behind the delay, and the routing architecture that delivers sub-second codes in emerging markets.

JH
Jacky Hossein
β€’ Principal Telecommunications Architect β€’ Published Oct 15, 2026 β€’ 14 min read

A Lagos fintech launched a wallet app with a beautifully optimized onboarding flow. The API responded in 74 milliseconds. The designer had trimmed the form to a single field. And yet, at 9 PM local time, users were waiting eleven seconds for a one-time password. The metrics dashboard showed green. The support inbox showed a different story: "I never got the code," then "I got three codes," then nothing at all, because the user had uninstalled.

The gap between an API's response time and a handset's vibration is the only latency your users can feel. In mature markets that gap is small β€” a direct interconnect, a modern SMSC, a healthy paging channel. In Latin America, Sub-Saharan Africa, and Southeast Asia the same gap is dominated by different physics: longer signalling chains, congested carrier firewalls, and a wholesale supply chain where the cheapest route is frequently the slowest one. This is a guide to closing that gap deliberately.

Why is OTP SMS slow in emerging markets?

Key Takeaway / Direct Answer

OTP SMS in emerging markets is slow for three measurable reasons: extra aggregator hops that each add 150–600 ms, carrier SMS firewalls that deliberately hold and score A2P traffic, and SS7 signalling paths that traverse multiple international carriers before reaching the destination HLR. A direct SMPP interconnect to the destination carrier removes the hop tax, a registered sender ID removes the firewall hold, and an in-region ingress removes the signalling detour. Applied together, they take the median code from 6–12 seconds to under one second on the corridors where the interconnect exists.

Three systems decide how fast a code arrives. First, the signalling layer: in an SS7 world the sender's SMSC issues a sendRoutingInfoForSM query to the destination HLR to discover where the subscriber currently is; that response, plus the subsequent forward-short-message, is where the millisecond budget goes. Second, the store-and-forward layer: an SMSC that cannot page the handset immediately will queue the message and retry on a timer, which is why a message sent during a cell outage can appear minutes later. Third, the policy layer: carrier SMS firewalls that inspect, score, delay, or silently drop A2P traffic that they consider suspicious.

Most "slow SMS" incidents are policy-layer events masquerading as network problems. The message did not take eleven seconds to travel; it took eleven seconds to be released. If you have ever seen a code arrive in a burst alongside four others, you have watched a firewall flush a queue. Understanding which layer is responsible is the difference between buying more bandwidth (useless) and fixing routing (decisive).

The latency budget, stage by stage

The table below decomposes a single OTP journey from your HTTP request to a handset in an emerging-market corridor. Ranges are observed values from production telemetry across Nigeria, Kenya, Brazil, the Philippines, Indonesia, and India; treat them as a diagnostic model rather than a guarantee, because any individual carrier can fall outside the range on a bad hour.

StageDirect routeTwo-hop aggregateDominant failure mode
API ingress, auth, balance check40–120 ms40–180 msCold TLS, rate-limit rejection
E.164 parse + MCC-MNC resolve5–30 ms20–90 msHLR cache miss, ported number
First aggregator submissionβ€”180–650 msSerial hop, queue admission
SMPP bind + submit_sm60–220 ms120–400 msWindow exhaustion, throttle
Carrier firewall scoring0–150 ms1,500–9,000 msUnregistered sender ID, URL heuristics
HLR SRI-for-SM + routing120–500 ms400–1,600 msSubscriber detached, roaming
SMSC queue + paging200–900 ms400–3,500 msCell congestion, retry timer
Handset wake + radio100–600 ms100–1,200 msDoze mode, weak signal

Diagnostic ranges, not service guarantees. The firewall row is the single largest controllable variable: a held message can add seconds before the network has even been asked to deliver it.

Read the table top to bottom and the story is clear. Application and encoding work is noise. The routing and policy decisions are everything. A two-hop aggregate route can be perfectly healthy at every individual stage and still lose nine seconds to a firewall that treats unregistered sender IDs as suspect traffic. For the wider mechanics of choosing between routes, see multi-carrier SMS failover.

How carrier firewalls rewrite the rules

An SMS firewall sits at the edge of a mobile operator's network and decides what is allowed in. Its job is legitimate: block spam, block spoofed senders, block SIM farms, block revenue-share fraud. Its methods are blunt. A firewall may score a message on sender ID registration status, on the reputation of the originating route, on message content heuristics (a bare URL is a red flag), on send rate from a given source, and on whether the traffic arrives over a grey route that the operator never agreed to terminate.

When the score is ambiguous, the default action in many emerging-market networks is not to block but to delay. A delayed message keeps the operator compliant with the sender while draining the sender's conversion rate. That is why the same code can arrive in 700 ms on one attempt and 9 seconds on the next, with no change to your application. It is also why "increase your timeout" is the wrong fix: you are waiting on a policy decision, not a packet.

The reliable levers are registration and route legitimacy. In Nigeria, MTN and Airtel both operate alphanumeric sender-ID registration programmes, and unregistered alpha senders are progressively restricted. In India, TRAI's DLT regime requires principal-entity, header, and template registration before a commercial message may be delivered at all. In the Philippines, the SIM Registration Act and Globe/Smart sender white-listing shape what arrives. A direct, registered route is not a luxury in these corridors; it is the entry ticket.

CorridorDirect P50Aggregate P50Sender ID regime
Nigeria (MTN, Airtel, Glo, 9mobile)1.9 s4.6 sAlpha ID registration with carrier
Kenya (Safaricom, Airtel)1.6 s3.9 sShort code / registered sender
Brazil (Vivo, Claro, TIM, Oi)1.3 s3.1 sAlpha ID allowed, ANATEL rules
Philippines (Globe, Smart)1.5 s4.2 sWhite-listing + SIM registration
Indonesia (Telkomsel, Indosat)1.7 s4.8 sAlpha ID registration, content review
India (Jio, Airtel, Vi, BSNL)1.6 s3.4 sMandatory TRAI DLT registration

Illustrative corridor medians from mixed-route telemetry. Your mileage depends on the specific interconnect, the time of day, and whether your sender ID is registered with the destination carrier.

Note the shape of the numbers: direct routing roughly halves the median and, more importantly, removes the multi-second tail. A two-second improvement in the median is pleasant; the disappearance of a nine-second tail is what stops users from requesting a second code and then abandoning the flow.

Tuning your client to the corridor

Your application cannot fix a carrier firewall, but it can stop making the situation worse. Two client-side habits matter most. The first is a corridor-aware timeout: do not wait 30 seconds for a code that will arrive in two. The second is a retry policy that never re-sends while the first message is still in flight, because a duplicate submission to a congested route is exactly the pattern that raises your fraud score.

The snippet below sends one OTP with a per-corridor deadline, a single idempotent retry only on a terminal failure, and a delivery-receipt poll that returns as soon as the handset boundary is reached. It uses the same request shape on every corridor; only the deadline changes.

otp-send.mjs
Node.js 22 / fetch
const API = "https://api.sendsmsnokyc.com/sms/send";
const KEY = process.env.SMSROUTE_API_KEY;

// Deadline per corridor, derived from measured P99, not from guesswork.
const DEADLINE_MS = {
  NG: 4000, KE: 4000, BR: 3000, PH: 4500, ID: 4500, IN: 3500, default: 2500,
};

const corridorOf = (e164) => ({
  "+234": "NG", "+254": "KE", "+55": "BR", "+63": "PH", "+62": "ID", "+91": "IN",
}[e164.slice(0, 4)] ?? "default");

export async function sendOtp(to, code, idempotencyKey) {
  const deadline = DEADLINE_MS[corridorOf(to)];
  const controller = new AbortController();
  const timer = setTimeout(() => controller.abort(), deadline);

  try {
    const res = await fetch(API, {
      method: "POST",
      signal: controller.signal,
      headers: {
        Authorization: `Bearer ${KEY}`,
        "Content-Type": "application/json",
        // Same key on retry = carrier never bills a duplicate.
        "Idempotency-Key": idempotencyKey,
      },
      body: JSON.stringify({
        to,
        message: `Your verification code is ${code}. It expires in 5 minutes.`,
        sender_id: "YOURBRAND",   // must be registered in NG, PH, ID, IN
      }),
    });
    if (!res.ok) throw new Error(`submit failed: ${res.status}`);
    return (await res.json()).message_id;
  } finally {
    clearTimeout(timer);
  }
}

// Retry ONLY on a terminal failure. A timeout is not terminal: the
// message is already queued and re-submitting duplicates it.
export async function sendOtpWithRetry(to, code, key) {
  try {
    return await sendOtp(to, code, key);
  } catch (err) {
    if (err.name === "AbortError") throw err;      // still in flight: do not resend
    await new Promise((r) => setTimeout(r, 250));   // brief backoff on 5xx
    return sendOtp(to, code, key);
  }
}

The distinction between a timeout and a failure is the whole game. An aborted request means your client gave up waiting; the message is very likely still queued at the SMSC and will arrive. Re-submitting it hands the user two codes and hands the carrier two charges. A terminal 4xx or 5xx response, by contrast, means the submission was rejected, and a retry is safe. Pair this with the receipt-verification patterns in webhook engineering for SMS delivery receipts so your UI can react to the handset boundary rather than a timer.

Measure the handset, not the API

If you take one operational lesson from this article, make it this: instrument the handset boundary. The API response time is a capacity metric; the delivery-receipt time is a carrier metric; only the handset timestamp describes the user's experience. Record the send timestamp server-side, the receipt timestamp from the webhook, and a client-side timestamp from a lightweight collector in your app or a seed device. Publish the difference as your P50 and P95 per corridor, and alert on the tail. A rising P95 with a flat P50 is the earliest possible warning that a firewall has begun holding your traffic.

The commercial cost of a two-second delay

Latency is usually framed as a UX nicety. In emerging markets it is a line item. When a code takes eleven seconds instead of one, three things happen in sequence, and each one costs money. The user waits, then requests a second code, then either receives two codes (paying twice) or gives up (losing the signup). Multiply that across a launch and the arithmetic stops being abstract.

Consider a flow with 100,000 monthly verification attempts. If a two-second improvement raises the completion rate from 62% to 78%, that is 16,000 additional completed verifications a month β€” users who exist and convert rather than users who bounce at the code screen. If each completed signup is worth even a few dollars in lifetime value, the routing change pays for itself many times over before you count the saved duplicate messages.

MetricSlow aggregate routeDirect registered route
Median handset delivery4.2 s1.1 s
P95 handset delivery9.6 s2.8 s
Verification completion62%78%
Duplicate code requests21% of sessions6% of sessions
Wasted message spend+19% of volumebaseline

Illustrative model, not measured conversion. Assumes a 30-second resend window and 8% abandonment per 10 seconds of waiting. Replace the assumptions with your own funnel data.

The direction is what matters, not the exact figures. Tail latency dominates the economics because the tail is where users abandon. Shaving the median from four seconds to one is pleasant; collapsing the P95 from ten seconds to three is what converts. That is why the playbook is routing-first: a direct, registered route fixes the tail, and client tuning alone never will.

Frequently asked questions

Is sub-second OTP actually achievable in emerging markets?

Yes, on corridors where a direct interconnect and a registered sender ID exist, a sub-second to low-single-digit median is realistic. It is not achievable on a grey or heavily aggregated route, and no amount of client tuning will fix that. The variable you control is route selection, not code.

Why does the same number sometimes get the code in one second and sometimes in ten?

Because a carrier firewall can hold a message for scoring and release it later, and because SMSC retry timers fire on their own schedule. When you see variable latency with no code change, you are observing policy and queue behaviour, not a network fault. Direct, registered routing collapses that variance.

Should I increase my request timeout in slow markets?

No. A longer timeout only makes your client wait on a message that is already queued. Use a corridor-aware deadline near the measured P99, treat an abort as "in flight" rather than "failed", and let the delivery receipt drive the UI. Longer timeouts and aggressive retries are what turn a slow route into a duplicate-charge incident.

Does an unregistered sender ID always get blocked?

Not always, and that is the problem. Some operators block outright, some silently drop, and many delay or throttle. The inconsistent behaviour is harder to debug than a hard block, which is why registration is worth doing even in corridors that currently tolerate unregistered alpha senders.

JH

Jacky Hossein

Verified Author

Principal 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.