What is SMS and how does it work?

by: Robert TriggsOctober 13, 2013
19 48 50

1 new SMS

We’re all familiar with SMS messages, after all it’s one of the oldest and most commonly used methods of mobile communication. But there’s a surprising amount of co-ordination and technology working in the background to send such seemingly simple messages. So let’s take a look at how it all works.

For a start – SMS stands for short messaging service, a protocol used for sending short messages over wireless networks. Unlike many services in use today, such as MMS and other data driven services, SMS still works on the fundamental voice network, and is based on the big three GSM, CDMA and TDMA network technologies, making it a universal service.

Related Content: What is Android [Back to the Basics]

SMS allows for text messages of 160 characters (letters, numbers and symbols) in length. Or for other alphabets, such as Chinese or Arabic, the maximum message size is limited to just 70 characters. Part of the reason for this is that SMS messaging was original considered as an afterthought added on to the spare bandwidth available on wireless voice networks. There was always a limit on how large these messages could be, hence why certain characters, such as foreign alphabets or obscure letters, still take up multiple spaces of the 160 allowance.

The 160 limit was eventually decided upon by Friedhelm Hillebrand, who observed and tested the typical number of characters in the average sentence, combined with a compromise on the available bandwidth at the time. Nowadays bandwidth isn’t so much of a concern, and messages can easily be sent back to back and recompiled on the receiving handset. The, now considered, low-bandwidth requirements of transmitting these short alphanumeric strings allows for worldwide messaging with very low latency.

The SMS standard

The SMS standard defines what information is sent in a text message, what bits of binary code make up each letter, and how this data is organised so that sending and receiving devices can communicate with each other. The actual data format for the message includes things like the length of the message, a time stamp, the destination phone number, and the actual message of course.

These details are described by the protocol description unit (PDU), which takes the form of a string of hexadecimal-octets and semi decimal-octets. Hexadecimal being values in base 16, with 0–9 to represent values zero to nine, and A, B, C, D, E and F to represent values ten to fifteen.

hexadecimal chart

This table shows how to convert from decimal to hexadecimal to binary and back again.

We won’t go into any more detail about binary, it’s sufficient to know that hexadecimal is just a more organised and efficient way of representing binary code, which is used by various devices to send, receive, and decypher the SMS message. The PDU format comprises of the following pieces of information in each text message. The first few octets contain information about where to send the message to, which short message center (SMC), and the sender’s own number as well. The length of the information also has to be defined in the string, so that the receiver knows exactly what to look for.

After the sender and receiver information comes a protocol identifier and a tag to identify the data encoding scheme used in the message, which will allowing different receivers to know how to decode the actual message. There’s also a time stamp and information on the length of the users message before the user’s actual message is encoded.

As for the message itself, as already mentioned it can contain up to 160 characters, where each character is defined by the 7-bits GSM alphabet. A 7-bit alphabet results in 128 (2^7) available letters, numbers, and pieces of punctuation which can be used to create a SMS message. For example, 48656C6C6F is the GSM alphabet equivalent of the word Hello.

The diagram below might help explain this whole standard a little better.

example SMS string

As you can see, there’s a lot more information sent with a SMS message than just a sentence or two. There’s other vital pieces of information which will help deliver the message to the correct recipient and make sure that every device in the delivery line can properly understand what’s being sent.

Sending the data

As for the actual transmission of a SMS, the text message from the sending mobile device is stored in a central SMC, which then forwards the message to the desired destination. As SMS messaging makes use of a separate channel, normally used for transfer of control messaging to transfer its packets, voice and data calls will not be interrupted by SMS transfer.

This control channel is usually used to track the cell that your phone is currently in, allowing you to change cells as you move around and so that calls and messages can be sent to the correct handsets in the correct locations.

As already mentioned, the SMC is in charge of storing and forwarding messages to and from the mobile station and other short message entities, which is typically a mobile phone. The benefit of storaging messages here is that several attempts can be made to deliver a message if the receiving device cannot be contacted. If a wireless recipient is switched off, out of range, or if there is a network outage, the SMS message will be stored in the network and delivered when the recipient becomes available again. Whilst this might not seem like such a revolutionary feature in the age of data driven messaging, at the time of its introduction this was the first technology to offer such a feature.

typical GSM network

The diagram shows the typical organizational structure of a GSM network that supports SMS. Source: Wireless Developer Network

However, in order to figure out exactly where the message has to be sent, the SMC needs to be given the location of the recipient. This is where the Home Location Register (HLR) comes in handy. The HLR is a database that contains the information of all the network’s subscribers, and is responsible for matching phones to phone numbers, accounts, and with service plan information. But most importantly, it keeps track of the user’s location so that incoming calls and messages can be routed through to the correct network tower.

Once the message knows where to go the Mobile Switching Center (MSC) is in charge of switching the connection over to the correct mobile station. There’s also a Visitor Location Register attached to each MSC, which helps to narrow down the exact location of the cell where the receiving handset is currently located. The message is then finally transferred to the corresponding Base Station System (BSS).

The BSS consists of transceivers which send and receive information over the air, to and from the mobile station. This information is passed over the signalling channels so the mobile can receive messages even if a voice or data call is going on. The BSS is the final device that transmits the text message to the correct mobile. It’s a surprisingly long and complicated journey for just 160 characters.


SMS may have been the backbone of fast text communications for decades, but the standard is facing growing competition from alternative messaging services. In Western countries specifically, data based clients are becoming increasingly popular, and could well replace the faithful old SMS standard at some point the in the future, although that probably won’t be for quite a while yet.

  • Balraj

    All this happens within 2 seconds !!!! Wow
    I don’t think sms will die..you might not have internet everywhere..but network is present most of the time on your phone :-P

    • TechDevil

      SMS will go away, and it’ll be replaced with something that doesn’t cost as much money. I’m not gonna say it’ll happen tomorrow, but just like SIM-cards are going to go away, SMS will too.

      • Balraj

        What makes you think sim card will go away ??
        Maybe network provider might evolve sms but how can u tell sim card will die ? Im suprised…

        • TechDevil

          SIM cards today are entirely bothersome. Inserting a SIM card into a phone tells the phone what cellular networks it is allowed to connect to. We don’t go “Oooh, how cute, a SIM card!” when we see it. SIM-cards take up space on the phone, it is very bothersome having to order new SIM-cards when switching providers, and we went from regular
          SIM to MicroSIM and NanoSIM. The entire SIM-card will go away eventually, because people don’t want it. Technological companies are always trying to make our lives easier, and getting rid of the SIM-card in its entirety will undoubtedly make a lot of people (including myself) happy. Eventually, all phones will have some sort of signal tree inside them, and the cellular towers will be able to transmit the information directly to the phone instead of the SIM-card, which today acts as a middle-man. We will see an end to the mess of ordering new SIM-cards when switching providers, as the phone will have all it needs to switch cell-connectivity upon such a request.

          So I am absolutely sure that SIM-cards will go away, the same way that I am absolutely certain technology will get rid of keys for our doors and replace it with better security (something people don’t lose all the damn time), cars will be able to drive without us steering them, and broadband Internet connectivity will reach 100Gbit worldwide.

          • Balraj

            Wow..Will we be alive by then..Let’s not answer that..
            Cdma doesn’t require SIM card..but you ‘ll be stuck with only one number..
            I have two sims,I keep on swapping them..
            I think sim card are here to stay.
            You’re too futuristic :-P

          • sluflyer06

            You’re in a very small minority that has some bizzare need to constantly order and swap new SIM cards. Almost everyone else gets a SIM at most each time they buy a new phone or simply swaps their card to teh new phone. SIM is entirely not bothersome, I doubt 99% of people ever give them a single thought. Just out of curiosity why do you need to buy so many new sim cards?

          • TechDevil

            Really? Because I have 4 friends in real life who have all in the last two months expressed utter hatred having to wait until their service providers send them new SIM-cards in the mail. And here where I live, it’s not just one major provider, there’s a lot of competition on the cellular market, and with around 9 different companies that all offer their own packages, and sometimes discounted services for different time periods, then yes, we have to switch SIM cards more than once a phone around here.

          • sluflyer06

            Go to somewhere that sells their service and pick one up? Sounds pretty awful having to constantly switch services month to month, I don’t have the time to spare for that kind of thing. Been really happy with my carrier for going on 8 years now and through 2 names changes and a merger.

          • TechDevil

            You’re lucky! But unfortunately, about 3 of the 9 companies that operate here don’t have a physical store or anywhere to pick up the SIM cards. That’s what they claim makes them cheaper, but then one month another provider offers the best deal, but then next month another, and then the month after that another one. I haven’t had a single provider for more than 6 months in my life.

          • Darrell Cranson Jr.

            I sincerely hope SIM is here to stay. I absolutely hate CDMA network where we basically have no freedom, carriers control/monitor what you do. And I don’t get to switch phone as I want.

          • TechDevil

            That seems to be different from what I’m talking about. I’m talking some sort of signal lock – the provider has some sort of signal to your phone and the phone knows what cellular towers to connect to, but when you switch providers, maybe you get a code of some sort to unlock it, and then another code for the new provider. I’m not talking no freedom, I’m talking exactly the opposite.

  • scoobydoo

    An interesting article thanks

  • Luka Mlinar

    I got only one friend who writes me SMS and it’s frustrating. She’s like Ron from

    Parks and Recreation but hot. Some people just refuse to accept tehnolagy.

    • TechDevil

      Technology* (couldn’t help myself)

      • FunkyMonkey


        (pun intended)
        (couldn’t help myself either)

  • Tanner Hoyt

    You missed the step where it is intercepted and read by the NSA.

    • Balraj

      Lol…but the fact is nsa need not intercept..
      I think they will just make a phone call :-P
      Give me the info of tht person !!

  • Bolio

    I was reading this trying to understand Facebook recent purchase of whatsapp

    • SrimcCbooty

      Don’t try to understand Facebook.