LTE SG SMS
This tutorial shows how to test SMS over SG with Amari Callbox. In this tutorial, it is assumed that you are already familiar with basic operations of the Callbox software and I would point out the only important parts of the operation specific to this test.
We have been using SMS in every radio technology (i.e, 3G, 4G, 5G) and user interface on commercial mobile phone would look same whatever radio technology is used, but the detailed protocol behind the SMS differs with the radio access technology being used.
- 3G : SMS go through NAS messages carried by CS(Circuit Switch) channel
- LTE : Two different ways are used
- SG SMS : SMS go through NAS message // this is the topic for this tutorial.
- SM over IMS : SMS go through IMS // check out this tutorial for this
- 5G : SMS goes through IMS
One common thing regardless of the method listed above is that the way SMS message is being encoded and protocols at the level of session menagement (i.e, CP-DATA, CP-ACK etc). Putting it other way, same format of SMS and session layer protocol is encapsulated in different way (i.e, NAS message or IMS) depending on different radio technology.
Table of Contents
- LTE SG SMS
Test Setup
Test setup for this tutorial is as shown below.
- SIM Card used in this tutorial is the one delivered with the system as it is.
- If you want to change the configuration, The tutorial Configuration Guide would help
PreConditions
To to this test, you should confirm that UE support SMS over SG. You may check on this from NAS message during the attach.
First thing you may check is to check if the following IE is configured.
ESM message container: Protocol discriminator = 0x2 (EPS Session Management) EPS bearer identity = 0 Procedure transaction identity = 94 Message type = 0xd0 (PDN connectivity request) Request type = 1 (initial request) ... Last visited registered TAI: ... ... |
If the UE only supports EPS service and not non EPS service (combined mode) it can also indicate the SMS support with the Additional update type IE lower bit
< 24.301-Figure 9.9.3.0B.1: Additional update type information element >
< 24.301-Table 9.9.3.0B.1: Additional update type information element >
Key Configuration Parameters
Followings are important configuration parameters for this tutorial. You may click on the items for the descriptions from Amarisoft documents.
Test 1 : MO SG-SMS
This is to show how to configure and test MO (Mobile Originated) SMS over SG (NAS message).
Configuration
I used the enb.default.cfg (LTE default configuration) as it is without changing any contents in it.
I also used the default configuration(mme-ims.cfg) for mme as shown below.
In mme-ims.cfg file, you would notice that ue_db-ims.cfg is used as ue db.
In this tutorial, I am using Anritsu Test USIM. Remember "tel" number since these will be used for SMS.
I did following configuration on UE side. For APN I am using the default APN. It would be recommended to remove IMS apn(if already added) to prevent UE to send SMS over IMS rather than SG(NAS message). Just for further confirm, I would suggest you to disable VoLTE as well.
Perform the test
Start LTE service and check basic cell configuration. Any cell configuration is OK as long as it is LTE cell.
Power On UE and make it sure that UE get registerred.
Make it sure that UE is NOT assigned with IMS pdn. If UE is assigned with IMS PDN, it is likely for the UE to use IMS Message rather than SG SMS when you send SMS.
Send SMS from UE and you will get the result as follows. Note that I am using 'tel' number as 'to' address which is set in the configuration file. Once you send the sms and it is successfully delivered to SMS server, you will get the delivery notice.
Log Analysis
Enable at least NAS, SIP, IMS in WebGUI log. Filter it out with NAS, SIP, IMS for convenience (Even though we are not using IMS, we should enable IMS log since in Amari callbox IMS server is acting as SMS Center as well)
For each SMS you send, you will see a sequence of message transaction. Even if SMS message is carried by NAS message, Amarisoft IMS server works as SMS center. So you see a sequence of IMS log as well.
If you check on Uplink NAS transport message, you will see the contents of NAS message carrying the SMS message. (
If you check on Downlink NAS transport message, you will see the contents of NAS message carrying the SMS message(SMS delivery notice from the server in this case). (
Test 2 : MT SG-SMS
This is to show how to configure and test MT (Mobile Terminated) SMS over SG (NAS message).
Configuration
I used the enb.default.cfg (LTE default configuration) as it is without changing any contents in it.
I also used the ims.default-sg-sms.cfg that is copied and modified from ims.default.cfg, mme-ims-sg-sms.cfg that is copied from mme-ims.cfg and ue_db-ims-sg-sms.cfg that is copied from ue_db-ims.cfg.
In mme-ims-sg-sms.cfg file, you would notice that ue_db-ims-sg-sms.cfg is used as ue db.
In ims.default-sg-sms.cfg file as well, you would notice that ue_db-ims-sg-sms.cfg is used as ue db.
In this tutorial, I am using Anritsu Test USIM. Remember tel number since these will be used for SMS. In this test, I set force_sms_over_sg : true to make it sure that the callbox uses SG SMS (Not IMS SMS) when I send SMS message.
Perform the test
Start LTE service and check basic cell configuration. Any cell configuration is OK as long as it is LTE cell.
Power On UE and make it sure that UE get registerred. (
Check the registered user in (ims) screen. (
Send SMS from (ims) and confirm that you get the message on UE. (
Now let's try again but using IMPI this time as shown below.
Log Analysis
Enable at least NAS, SIP, IMS in WebGUI log. Filter it out with NAS, SIP, IMS for convenience (Even though we are not using IMS, we should enable IMS log since in Amari callbox IMS server is acting as SMS Center as well)
RRC / NAS Signaling
Uplink NAS transport
: This is the Uplink NAS transport message sent by UE to carry SMS message. (
Message: Uplink NAS transport
Protocol discriminator = 0x7 (EPS Mobility Management)
Security header = 0x2 (Integrity protected and ciphered)
Auth code = 0x6cbb8aab
Sequence number = 0x0d
Protocol discriminator = 0x7 (EPS Mobility Management)
Security header = 0x0 (Plain NAS message, not security protected)
Message type = 0x63 (Uplink NAS transport)
NAS message container:
Length = 168
Data = .... (
Downlink NAS transport
: This is the Uplink NAS transport message sent by Network to carry SMS message. (
Downlink NAS transport
Data:
Protocol discriminator = 0x7 (EPS Mobility Management)
Security header = 0x2 (Integrity protected and ciphered)
Auth code = 0x040c1d94
Sequence number = 0x0c
Protocol discriminator = 0x7 (EPS Mobility Management)
Security header = 0x0 (Plain NAS message, not security protected)
Message type = 0x62 (Downlink NAS transport)
NAS message container:
Length = 170
Data = .... (