Also known as quick codes or resource codes, USSD (Unstructured Supplementary Service Data) is a messaging protocol used in GSM-based cellular networks.
Like SMS (Short Message Service), USSD allows the transmission of short text messages. In the case of USSD, the maximum message size is 182 characters or 16 bits of data.
The main difference between USSD and SMS is that USSD is session-based.
SMS works on a store-and-forward model. When a device sends an SMS to another, no dedicated communication channel is opened, and there is always a slight delay in the recipient receiving the message. In USSD, when a device sends a request, a transparent channel is automatically established between the sender and the recipient, allowing for real-time responses.
A USSD communication exchange usually begins with a query sent from a mobile device (for example, a balance reading request). To send it, the user must dial a specific short code. After being sent, a USSD gateway forwards the message to a USSD application, which responds to the request. The response returns to the USSD gateway and is displayed on the sender's device screen.