SMPP Protocol SMS Gateway vs HTTP API: PDU Overhead and deliver_sm Receipts
📑 Table of Contents
- Why HTTP REST APIs Fail at Scale for SMPP Protocol SMS Gateways
- The Binary PDU Overhead Calculation
- The deliver_sm Receipt and the 200 OK Illusion
- The Bind Mode and ESME_RINVPASWD Trap
- Developer Troubleshooting Showdown
Why HTTP REST APIs Fail at Scale for SMPP Protocol SMS Gateways
A developer at a mid-sized marketing platform spent three weeks building a bulk SMS engine on HTTP POST requests. The engine performed flawlessly at 500 messages per hour. At 50,000 messages per hour, the server’s connection table filled, the gateway’s web thread pool collapsed, and the campaign timed out mid-send. The post-mortem revealed that the application had opened 50,000 TCP connections in the space of ten minutes. Each connection required a three-way handshake, TLS negotiation, and a full HTTP header exchange. The server’s file descriptor limit was 65,535. The application hit that ceiling and the operating system began rejecting new connections. The root cause was not a bug in the code. It was the wrong protocol for the workload.
The Binary PDU Overhead Calculation
SMPP is a binary protocol. A submit_sm PDU consists of a 16-byte header and a variable body. The body contains the source address, destination address, and the 74-byte short message payload. For a short message, the entire PDU can be under 100 bytes. An HTTP POST request to the same gateway, with standard headers, cookies, and TLS, easily exceeds 1,000 bytes. At scale, this 10x difference in per-message overhead translates directly into 10x more network capacity required for the same throughput.
Per IDT Express’s SMPP documentation, SMPP’s persistent connection enables very high message throughput with minimal overhead, supporting thousands of messages per second when multiple binds are used. REST APIs are described as supporting “lower to moderate throughput” with no persistent connection management. The SMPP protocol specification defines the PDU structure and the bind operations that establish persistent sessions. The protocol was designed for the telecommunications signaling network, where every byte of overhead was a cost multiplied by millions of messages. The HTTP REST API was designed for the web, where connections are short-lived and the overhead is amortized across user interactions.
For a marketing campaign pushing 200,000 messages in a two-hour window, the difference between “moderate” and “thousands per second” is the difference between a campaign that completes and a campaign that times out. The arithmetic is straightforward. At 200,000 messages in 7,200 seconds, the required throughput is approximately 28 messages per second. A single SMPP bind at the low end of the 50–300 range can carry that load with headroom. An HTTP API at the high end of its “moderate” range might carry the same load, but the server’s connection table will be exhausted by the handshake overhead. The protocol choice determines whether the campaign finishes on time.
The deliver_sm Receipt and the 200 OK Illusion
When an HTTP API returns 200 OK, it has accepted the request. It has not confirmed that the carrier accepted the message, and it certainly has not confirmed that the handset received it. SMPP separates these concerns through the deliver_sm PDU. After a submit_sm is sent, the SMSC returns a submit_sm_resp with a message_id. The final delivery status arrives asynchronously as a deliver_sm PDU, containing the same message_id and a stat field indicating DELIVRD, UNDELIV, EXPIRED, or REJECTD.
The 3GPP TS 23.040 specification defines the SMS-DELIVER PDU and its associated status report mechanisms. The stat field values are defined in the specification, and the mapping between the PDU fields and the delivery status is standardized. This distinction matters because the dashboard is not the truth. The deliver_sm is the truth. For OTP systems, a missing deliver_sm is a diagnostic signal. For marketing systems, a REJECTD status is a compliance flag that requires immediate attention. The RFC 5724 specification defines the SMPP protocol’s transport and security requirements, including the use of TCP for reliable delivery and the session management rules that govern bind and unbind operations.
The Bind Mode and ESME_RINVPASWD Trap
The most common SMPP integration error is using the wrong bind mode. bind_transmitter is for sending only. bind_receiver is for receiving only. bind_transceiver is for both. If your account is provisioned as a transmitter and you attempt a transceiver bind, the SMSC returns ESME_RINVPASWD (Invalid Password). The password is correct. The bind mode is wrong. The SMPP protocol specification defines the bind operations and the error codes that the SMSC returns when the bind fails. The ESME_RINVPASWD error code is defined as “Invalid Password,” but the underlying cause can be a bind mode mismatch, a System ID mismatch, or a password mismatch. The diagnostic path is to verify the bind mode first, then the System ID, then the password.
A second trap is the ESME_RTHROTTLED status (0x00000058, decimal 88). The Vibes Connect SMPP response code documentation defines this as a retryable error indicating that the bind has exceeded the allowed throttle rate. The correct response is a jittered backoff, not an immediate retry, and if the ceiling persists, spreading load across additional binds. The Devotel Orbit troubleshooting guide documents the diagnostic steps for bind rejections, including the ESME_RINVPASWD and ESME_RTHROTTLED cases, and recommends verifying the bind mode and the System ID before opening a support ticket. The protocol specification, the response code documentation, and the troubleshooting guide form a three-source diagnostic framework. The developer who knows all three resolves the issue in minutes. The developer who knows only the error code spends hours.
【About Telarvo: Developer Experience】 Telarvo exposes SMPP v3.4 and v5.0 with the same PDU semantics defined in the SMPP specification. No proprietary extensions. No vendor lock-in at the protocol layer. If your team knows SMPP, they know how to integrate a Telarvo gateway. That is the entire point. The developer documentation includes the PDU sequences, the bind mode definitions, the error code mappings, and the diagnostic workflow for the most common integration failures. The gateway does not add a proprietary layer on top of the protocol. It implements the protocol as specified.
Developer Troubleshooting Showdown
Q: I’m getting ESME_RINVPASWD on my bind, but I’m 100% sure the password is correct. What gives?
Check your bind mode. If you’re opening a transmitter session but trying to authenticate as a transceiver, it’ll reject you every time. Also, check for any trailing spaces at the end of your System ID.
Q: How do I actually confirm a message reached the user’s phone?
Wait for the deliver_sm receipt. An HTTP 200 only means the gateway accepted the packet—it doesn’t mean the carrier delivered it.
Q: My SMPP connection keeps dropping. Where should I look first?
Check your firewall. If it’s killing idle TCP connections after 30 seconds, your bind dies. Set the enquire_link heartbeat to 20 seconds.
Q: Can I use the HTTP API for bulk marketing blasts? You can, but you really shouldn’t. Once you cross 10,000 concurrent messages, the HTTP handshake overhead will crush your server. Migrate to SMPP bindings.
Q: Does the gateway support multiple simultaneous SMPP binds? Yes. Running multiple binds concurrently is the only way to break past the 50-300 msg/sec single-connection ceiling.
Sources:
- SMPP.org — Short Message Peer-to-Peer Protocol
- RFC 5724 — SMPP
- 3GPP TS 23.040 — Technical realization of SMS
- Vibes Connect — SMPP Response Codes
- Devotel Orbit — Troubleshooting: SMPP bind rejects






