TPS calculation for an sms / smpp application
Prashant Ghadge
Growing your development, design, and IT Client Projects and Revenues
Being in Enterprise Messaging Business, we always have one common question in mind. How do I calculate throughput / TPS of my SMS/smpp application?
TPS (Throughput Per Second) is one of a very important aspect for any Enterprise Messaging Entity. Having high TPS is always desirable, however, many times we tend to make a mistake while calculating inbound and outbound TPS of our system.
Here I have shown an example explaining how TPS is exactly calculated for any smpp application in real scenario.
Mainly there are 3 parameters which define your overall throughput per sec / TPS.
1. Latency (in milliseconds):
Round-trip delay time - the one-way time from the source (SMPP Client / ESME) sending a packet to the destination (SMPP Server / SMSC) receiving it plus the one-way time from the destination (SMPP Server / SMSC) sending a packet back to the source (SMPP Client / ESME) receiving it, including the amount of time that a destination system (SMPP Server / ESME) spent in processing the packet to SMSC.
2. Window Size:
(is relevant for Asynchronous protocols (such as SMPP) and defines the max allowed number of unacknowledged operations).
3. Number of Sessions:
In order to make use of the SMPP Protocol, a SMPP session must be established between the ESME and Message Centre or SMPP Routing Entity.
Let’s understand the flow of SMS again.
Step1: SMPP Client (ESME) sends out SMS traffic to an SMPP Server (SMSC).
Step2: SMS Application supplies SMS to the SMPP Client
Step3: SMPP Client sends out the SMS traffic with the help of SMPP Protocol (TCP / IP) via biding TCP/SMPP sessions connecting to SMPP Server
Here is a mathematical formula to design your application TPS:
TPS = Window Size * Number of Sessions / Latency
Setting up following parameters will be able to generate a TPS of 500 SMS / Second.
Window Size = 10
Number of Sessions = 5
Latency = 100 milliseconds (0.1 seconds)
TPS = 10 * 5 / 0.1 = 500 SMS / Second
According to individual needs, TPS can be set and monitored.
Head, Digital Solutions || Solutions Architect || DevOps Engineer || Cloud Engineer
3 年Thanks for sharing ??
Founder and Marketing Specialist @SJ Technologies
5 年Hi Prashant, could you please help us in implementing smpp. Since we not able to submit multiple message to smsc.
Senior Software Engineer At Clarcity Travel & Expense
5 年Hi, we are implementing the smpp integration. Need some help from you. Please share your number so that we can discuss this over a call.