IOSOR Learn
USSD Menu Idempotency Guarantees for Silent Auth
Verify USSD menu operation idempotency across operator gateways to prevent duplicate auth requests and validate DLR correlation with retry semantics.
Lead Telecom & Routing Architect · Lausanne, CH
Engineers must confirm that every USSD menu interaction generates a deterministic transaction ID so operator gateways treat retries as duplicates rather than new auth requests. This prevents double-charge scenarios and ensures DLR receipts map 1:1 to the original session.
Transaction ID Generation and Scope
Each USSD session must embed a cryptographically unique identifier derived from MSISDN, session timestamp, and menu path hash. The ID travels unchanged through the operator gateway, SMSC, and back to the application webhook. Any deviation in ID format or truncation by an intermediary breaks idempotency and triggers duplicate processing. Enforce a maximum ID length of 64 characters; reject sessions where the ID exceeds this threshold or contains non-alphanumeric characters.
Gateway Deduplication Window Configuration
Operator gateways enforce deduplication windows typically between 30 and 300 seconds. Measure the effective window per corridor by sending controlled retry bursts and observing which attempts receive 'duplicate' versus 'accepted' status. Document the narrowest window across all active corridors to set the client-side retry ceiling. Configure webhook verification to poll DLR endpoints every 5 seconds with a 120-second timeout per transaction.
DLR Correlation and Status Mapping
Delivery receipts must carry the original transaction ID in the correlation field. Map each operator's DLR status codes (DELIVERED, EXPIRED, REJECTED) to a unified internal enum. Reject any DLR lacking the correlation ID or presenting a mismatched ID as a protocol violation requiring immediate partner escalation. Verify webhook HMAC signatures on every DLR; discard unsigned receipts and log the source IP for audit.
Retry Semantics and Backoff Alignment
Client retry logic must respect the gateway's deduplication window: first retry at 50 % of the window, second at 75 %, third at 90 %. Exponential backoff beyond the window risks creating new transactions. Log every retry attempt with the transaction ID, timestamp, and gateway response code for audit. Cap total retries at 3 per session; abort and flag for manual review if all attempts fail within the window.
Idempotency Test Matrix and Observability
Build a CI pipeline that replays recorded USSD flows against staging gateways. Assert that zero duplicate auth requests reach the verification service. Emit metrics for deduplication hit rate, DLR correlation success, and retry count distribution. Alert on any corridor where duplicate rate exceeds 0.1 %.
Start with IOSOR
Compare verified partner routes for your channel and corridor using the operator comparison tool. Cross-reference results with USSD menu state synchronization, USSD menu retry backoff policy, and DLR latency correlation audit.
IOSOR takeaway
Each USSD session must embed a cryptographically unique identifier derived from MSISDN, session timestamp, and menu path hash. Alert on any corridor where duplicate rate exceeds 0.1 % (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- OTP Retry Budget and Route Failover Verification for Silent Auth
Set per-route OTP retry budgets, verify DLR and webhook timing under failover, and compare partner routes in the Decision Brief before committing volume.
- Number Verification Channel Arbitration: Silent Auth vs OTP Route Selection
Decide when silent number verification beats OTP delivery, then verify which partner routes prove arbitration support with cost-band and DLR evidence.
- Operator Certificate Pinning: Rotation Audit Before Route Cutover
Audit operator certificate pin sets, rotation windows, and failover trust chains before cutting silent-auth traffic to a new route.












