📜 ⬆️ ⬇️

SMS history: how to transfer text via voice channel

SMS is so familiar that many people don’t think about how message transmission works in voice-oriented networks and don’t remember why we are limited to such a small message length. Let us recall where the short messages came from and what they are.



SMS development as a service


This year, the "short messages" will be 25 years old. It is believed that the first SMS was sent to the UK in 1992, and the commercial SMS service appeared in Finland in 1993.

It should be noted that before the advent of the GSM standard, SMS analogues did not exist, but to the current moment, i.e. After nearly 25 years, the service has gained immense popularity, despite the fact that operators charge for outgoing and sometimes incoming messages.
')
Of course, the path to popularity for this service turned out to be rather thorny. For the first time the idea of ​​a service transmitting short messages between telephone sets appeared in 1984. The German engineer Friedhelm Hillebrand, who in 1985 headed the “non-voice” GSM committee, already showed that 160 Latin characters (equivalent to 140 bytes) are enough to transmit most of the household messages. The basis of his statement was not very scientific experiments (handwritten random household questions and answers, as well as the observation that the cards and analyzed messages on the telex for business users almost always contain less than 150 characters), but they determined the nature of the service in dozens years old.

Is 160 characters really enough? Of course, “Tolstoyan” sentences cannot fit in them, but until the on-screen keyboards appeared (on touchscreen devices) or at least T9, the users themselves did not want to send longer text either. Moreover, at the start, although SMS was laid down in the GSM standard, it was not uncommon that there was no support for typing and sending short messages in some devices.

From a technical point of view, SMS has not undergone almost any changes (with the transition to GSM 03.40- https ://en.wikipedia.org/wiki/GSM_03.40 - the set of supported characters in the message body has changed significantly, perhaps). The commercial service developed in the networks of various operators approximately equally adjusted for launch time, marketing and the approach to monetization.

Today, in addition to users, a huge number of service messages from operators (for example, delivery receipt), as well as service SMS from third-party service providers such as banks, providers, and Internet services are transmitted in the network. Moreover, they can be not only informational (to report on the account balance, warn about regular payments under the contract, notify about the delivery of parcels), but also serve as one of the tools in two-factor authentication. In addition, short messages can be used to manage a number of services, for example, to post to Twitter.

Message format


An SMS message consists of text up to 140 bytes in length and a service information block:


Depending on the type of message, subsequent fields may be present or absent, and also swapped. A detailed description of all the fields can be found in the GSM 03.40 specification , but here we will give only the most interesting ones from the point of view of parsing the message forwarding process:


Initially (in the GSM Phase 2 document) each SMS message was a self-contained object, but according to subsequent revisions (GSM Phase 2+), a message transmitted in this way may include several messages — in this case, each of them contains a sequence number (because of what the length of the "body" of each message is reduced).

SMS transmission


Between individual users of the mobile network, the message is transmitted via an SMS center (SMSC or SMS-SC - Short Message Service - Service Center).

Along with the text of the message, additional information is transmitted from the mobile phone to the base station, including the address of the message center (in the early 2000s, this number had to be driven in by itself upon initial setup of the purchased device). If a message travels between networks, the SMS center of the sender’s network is primarily responsible for its delivery.

SMSC not only delivers and forwards messages if necessary, but also stores them. If the recipient’s phone is turned off when the message is sent, it remains in the SMSC until the device appears on the network. Usually, operators set the maximum storage time for such messages (technically, this setting may be available to users of the mobile network). SMSC also sends reports on the delivery of messages, if it is written in the user settings.

In the process of sending a message from one user to another, not only SMSC is involved. In short, the process is as follows:


Getting on the recipient's phone, messages are displayed on the screen or stored on the SIM card / memory of the device, depending on user settings and properties of the message itself.

Gateways, gateways ...


For historical reasons, telephony, including GSM, operates on the basis of ACS-7 protocols (Common Signaling Channel - 7). In the terminology of this standard, SMS is transmitted via a signaling channel, and not through a traffic channel with voice data. It was conceived so that SMS could run freely in parallel with the transmission of voice traffic (during a call). In addition, the signaling channel “idle” most of the time, so sending short messages through it is quite an economical solution.

However, SMSC does not support ACS-7, therefore, it is necessary to use additional gateways to communicate the SMS center with other operator systems (HLR / VLR and MSC). For delivery of messages to subscribers of other operators, special gateways are also used. The first gateway appeared in the world only in 1999, but we did not have full-fledged communication between operators and in the early 2000s (the gateways appeared a little later ).

With the emergence of the need to connect a communication network (fixed or mobile) to
IP-networks - at the turn of the new century - was created the SIGTRAN specification, which allows to transmit ACS-7 flows over IP-networks. This is how the Internet-based SMS gateways appeared. These gateways can not only “allow” content from the Internet to SMS, but also allow data to be sent back, for example, sending SMS messages from a phone to an email address (although the peak of the development of such services has already passed - with the advent of Internet access on phones , built-in mail clients and OS applications for smartphones, it has become much easier to send e-mails directly).

SMS gateways can belong to an operator or exist independently, including as an addition to commercial corporate software for SMS distribution. Poor security of such gateways, as well as a very real opportunity to build a fraudulent gateway and lead to the spread of spam, hacking and other troubles associated with SMS. However, as far as they can and, to be sure, under the pressure of the regulator, mobile operators are trying to deal with these problems.

Interesting facts about SMS


Like any popular technology, during its existence, SMS has acquired a whole bunch of legends and myths. Here are some interesting stories that managed to find confirmation:


Instead of the conclusion, I would like to note that although SMS has not been technologically developed for a long time, the peak of popularity in the world was just recently - in 2012-2014. Considering that the large-scale take-off of technology occurred in the early 2000s, it lasted on a pedestal for a surprisingly long time (from the point of view of the world, so fond of new items). What is waiting for SMS-messages tomorrow - the fall in popularity or a stable future? Time will tell.

Source: https://habr.com/ru/post/326218/


All Articles