Part of: Messaging Gateway

SMS Failover: What Happens When an Operator Fails?

SMS failover means your gateway moves messages to another route when one fails. If one link to an operator goes down, traffic moves to that operator's other links. If the whole operator fails, traffic moves to another operator. Good routing also picks the best route for each number, so OTPs keep reaching customers.

By Krishall Magage · Published · 5 min read

Every bank depends on mobile operators to deliver its OTPs and alerts. Most days, this works and nobody thinks about it. Then one day an operator link goes down. If your gateway has no other route, every OTP to that operator’s customers stops. Those customers cannot log in or pay until the link comes back.

SMS routing and failover decide what happens on that day. This post explains both in plain words.

What is SMS routing?

SMS routing is how your gateway decides which path each message takes to the customer’s phone. Messages from your systems to customers are called A2P SMS, which means application to person. OTPs, transaction alerts and reminders are all A2P SMS.

For each message, the gateway must answer two questions:

  1. Which operator does this customer use? The gateway finds the recipient’s mobile operator.
  2. Which link should carry it? The gateway picks the best route to that operator.

A bank sets the rules: a default route, and which routes to use for which messages. A good gateway lets an admin change those rules from a screen, without a restart. To see the whole path of a message, read how SMS OTP works.

EExample Bank
Example Bank: Example Bank: LKR 24,500.00 spent on card ending 4821 at City Mart, 12 May 10:41. Not you? Call 011 2 000 000.
Example Bank: Example Bank: Your payment of LKR 18,200.00 to Example Power was successful. Ref 88213.
Example Bank: Example Bank: Internet banking will be down for maintenance on 18 May, 1 to 3 am.
Example transactional SMS from a made-up bank: a card alert, a payment confirmation and a service notice.

What happens to your messages when an operator fails?

When an operator fails, your messages either move to another route or they wait. Which one happens depends on your gateway.

With no failover, messages to that operator queue up or fail. OTPs expire. Customers try again and fail again. Your call centre fills with “my code never came” calls.

With failover, the gateway sees the failure and moves the traffic. Customers may not notice anything at all. That is the point: the failure stays inside the gateway, and does not reach the customer.

Link failover moves traffic to another link with the same operator. Operator failover moves traffic to a different operator. A bank needs both.

  • Link failover. A gateway can keep several sessions, or links, to each operator. If one link fails, traffic moves to that operator’s other links. This covers the most common problems, such as one broken connection.
  • Operator failover. Sometimes the problem is bigger, and a whole operator has trouble. Then the gateway moves traffic to another operator.

Failover works best with retries. If a send fails, the gateway tries again on another operator. Retry rules can be stricter for OTPs, because a late OTP is often a lost OTP. Read why OTP SMS do not arrive for the other causes of lost codes.

Can you change routes without stopping the gateway?

Yes, a good gateway lets you change routes while it runs. This matters, because a restart stops your messages, and banks send OTPs all day and all night.

You should be able to:

  • add a new operator connection, with no restart
  • switch a connection off for maintenance, or on again, while the gateway runs
  • move traffic between connections to balance the load

How do sending limits and traffic spikes affect routing?

Sending limits and traffic spikes decide how fast messages can move, even when every route is up. Operators set limits on how many messages you may send per second and per day. If you go over them, the operator can reject or slow your traffic.

A good gateway keeps to those limits for you, so it does not overload any route. It also handles sudden spikes, such as a salary day, with overflow handling. And it keeps OTPs in their own priority queue, so a bulk campaign does not push them back.

What if the gateway itself fails?

If the gateway itself fails, routing to operators does not help, so the gateway needs failover too. A gateway for a bank should run as a cluster of servers with automatic failover. If one server stops, another takes over.

It should also watch itself, and alert your team by email or SNMP when something goes wrong. Regular backups and a disaster recovery plan complete the picture.

How does Sprout MGW route and fail over for banks?

Sprout Messaging Gateway (Sprout MGW) connects directly to the mobile operators over SMPP, from inside the bank’s own data centre, with failover at every level.

  • It connects to several operators, with several sessions to each one.
  • If one connection fails, traffic moves to that operator’s other connections. If a whole operator fails, traffic moves to another operator.
  • It finds the recipient’s operator and sends each message on the best route.
  • The bank sets a default route and routing rules. An admin can switch routes from the admin screen, with no restart.
  • New connections can be added, and connections switched on or off, while it runs.
  • If a send fails, it retries automatically on another operator, and OTPs can get stricter rules.
  • It keeps to per-second and per-day limits, handles traffic spikes, and gives OTPs their own priority queue.
  • It can run as a high-availability cluster with automatic failover, and it alerts your team by email or SNMP.
  • Reports show volumes and delivery results per operator, which helps compare routing costs.

HNB, Seylan Bank, NDB and Cargills Bank run their OTPs and transaction messages on Sprout MGW, the four together for more than five years.

See the details on the SMPP gateway page, read about OTPs on the OTP SMS gateway page, or see the whole Sprout Messaging Gateway.

FAQs

What is A2P SMS routing?

A2P means application to person. A2P SMS routing is how a gateway sends messages from your systems, such as OTPs and alerts, to each customer's mobile operator on the best route.

What is the difference between link failover and operator failover?

Link failover moves traffic to another link with the same operator. Operator failover moves traffic to a different operator when the whole operator fails.

Do we have to stop the gateway to add a new operator link?

Not with Sprout MGW. New operator connections can be added while it runs, with no restart.

Photo of Krishall Magage

About the author: Krishall Magage

Head of Sprout, hSenid Mobile

AI Product Leader & GTM Engineer. Bridging business and tech with full-stack skills.

Krishall Magage on LinkedIn