Upload
malcolm-boyd
View
216
Download
0
Embed Size (px)
Citation preview
UCP Server for SMSCUniversal Computer Protocol
Server for
Short Messaging Service Center
A project report Submitted by
NETAJI RAO DUMPALARegd. No.: 94036304.
Introduction
Introduction
MO – MTAO – MTMO – ATAO – AT
Types of short messages
AO : Application OriginatedMO : Mobile OriginatedAT : Application TerminatedMT : Mobile Terminated
Position of the UCP Server
EMI – External Machine InterfaceESME – External Short Message EntitySMSC – Short Messaging Service CenterPLMN – Public Land Mobile Network
From the SMSC view, EMI is nothing but the UCP Server
What UCP Server does?
The objective of the UCP server is to accept short message data from the ESME (External Short Message Entity) and forward it to SMSC and vice versa.
To an ESME, the UCP server has to provide access to the SMSC functions like
Submission of Short MessagesReception of Short MessagesReception of Notifications related to submitted Short MessagesOperate on submitted Short Messages: query, delete and modify.
UCP packet structure
E.g.: stx03/00107/O/51/01727654321/12345/55555/1/01724444444//0100////////////3//4432204D657373616765/////////////99etx
Here stx = 02(hex) and etx = 03(hex).
stx <header> / <data> / <checksum> etx
As separator between header and data, between data and checksum, as well as between parameters, a “/” (2F(hex)) is used.
UCP packet structure
Header:
Checksum:
Data:
TRN : Transaction Reference NumberLEN : Length of the packetO/R : Operation or ResponseOT : Operation Type
The <data> fields depend on the Operation Type
The <checksum> is derived by the addition of all bytes of the header, data field separators and data fields
E.g.: stx03/00107/O/51/01727654321/12345/55555/1/01724444444//0100////////////3//4432204D657373616765/////////////99etx
List of UCP operations
Operation Type Initiated By Command Name
60 SMT Session management
61 SMT List management
51 SMT Submit SM
52 SMSC Deliver SM
53 SMSC Deliver notification
54 SMT Modify message
55 SMT Inquiry message
56 SMT Delete message
57 SMSC Response to Inquiry
58 SMSC Response to Delete
31 SMT Alert Operation
C lien t/ES M E
1
D ec o d e an d Valid a teUC P p ac k et
2
Han d le R es p o n s es
2
Han d le O p er a tio n s
M es s ag e S to r e
En q u ir y
R ep ly
3
En c o d e UC P p ac k et
UC P P ac k et
UC P P ac k et
R es p o n s e P ac k et
O p era tio nP ac k et
I n ter f ac e S tr u c tu r eS M S C
R es p o n s e S eq u en c e
4
Han d le A TM es s ag es
UC PS tru c tu r e
I n ter f ac eS tru c tu r e
R es p o n s eUC PS tru c tu r e
Data Flow Diagram
The Modules
UCP decoderUCP operation handlerUCP response handlerAT (Application Terminated) message handlerUCP encoder
The modules in the UCP server are
TestingUnit Testing
ModuleName
/ ID
Preparation/ Settings/Special Conditions For Carrying Out The Test
Test Condition/
Input Data
Results/ Output
checksum Using ^B (ASCII 02) as STX and ^E (ASCII 05) as ETX. Because ^C (real ETX) cannot be given as input.
^B18/00113/O/51/012345/09876//1/1920870340125000/4/0539//////3012961212//////3//4D657373616765203531/////////////CD^E
Valid Checksum.
checksum -do- ^B18/00113/O/51/012345/09876//1/1920870340125000/4/0539//////3012961212//////3//4D657373616765203531/////////////CE^E
Invalid Checksum.
Sample Test Records:
TestingSystem Testing
Module Name / ID
S.No
Preparation/ Settings/ Special Conditions For Carrying Out The Test Case
Test Condition/Input Data
Expected Results
UCP Server 1 SMSC is running. Client connected to specified IP address and port.
Send OP60 (bind) UCP packet with valid systemid (OAdC), password and subtype(1).
Client gets positive acknowledgement (ACK). The Client binds successfully.
UCP Server 2 -do- Send OP60 packet with invalid systemid (OAdC) or password.
Client gets negative acknowledgement (NACK) with error code “07” (AUTHENTICATION FAILURE)
Sample Test cases:
Conclusions
To allow applications to send and receive large number of short messages, an interface is needed to communicate with the SMSC.
The UCP server acts as the interface between application and the SMSC. The UCP server uses Universal Computer Protocol (UCP).
Applications like SMS gateway that follow UCP can communicate with the SMSC through the UCP server.
Future enhancements
List operation (OP61)Change password in OP60Legacy operations (OP 01, 02, 03, 30)Services limited by the SMSC
The following enhancements can be done in future