-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsua.db
2571 lines (2470 loc) · 87.4 KB
/
sua.db
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
www.dialogic.com
Dialogic® SS7 Protocols
SUA Programmer's Manual
2
Copyright© 2007-2008 Dialogic Corporation. All Rights Reserved. You may not reproduce this document in whole or in part without
permission in writing from Dialogic Corporation at the address provided below.
All contents of this document are subject to change without notice and do not represent a commitment on the part of Dialogic
Corporation or its subsidiaries. Reasonable effort is made to ensure the accuracy of the information contained in the document.
However, due to ongoing product improvements and revisions, Dialogic Corporation and its subsidiaries do not warrant the accuracy of
this information and cannot accept responsibility for errors or omissions that may be contained in this document.
INFORMATION IN THIS DOCUMENT IS PROVIDED IN CONNECTION WITH DIALOGIC® PRODUCTS. NO LICENSE, EXPRESS OR IMPLIED,
BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL PROPERTY RIGHTS IS GRANTED BY THIS DOCUMENT. EXCEPT AS EXPLICITLY
SET FORTH BELOW OR AS PROVIDED IN A SIGNED AGREEMENT BETWEEN YOU AND DIALOGIC, DIALOGIC ASSUMES NO LIABILITY
WHATSOEVER, AND DIALOGIC DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY, RELATING TO SALE AND/OR USE OF DIALOGIC
PRODUCTS INCLUDING LIABILITY OR WARRANTIES RELATING TO FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR
INFRINGEMENT OF ANY INTELLECTUAL PROPERTY RIGHT OF A THIRD PARTY.
Dialogic products are not intended for use in medical, life saving, life sustaining, critical control or safety systems, or in nuclear facility
applications.
It is possible that the use or implementation of any one of the concepts, applications, or ideas described in this document, in marketing
collateral produced by or on web pages maintained by Dialogic Corporation or its subsidiaries may infringe one or more patents or other
intellectual property rights owned by third parties. Dialogic Corporation or its subsidiaries do not provide any intellectual property
licenses with the sale of Dialogic products other than a license to use such product in accordance with intellectual property owned or
validly licensed by Dialogic Corporation or its subsidiaries. More detailed information about such intellectual property is available from
Dialogic Corporation's legal department at 9800 Cavendish Blvd., 5th Floor, Montreal, Quebec, Canada H4M 2V9. The software referred
to in this document is provided under a Software License Agreement. Refer to the Software License Agreement for complete details
governing the use of the software.
Dialogic Corporation encourages all users of its products to procure all necessary intellectual property licenses required to implement
any concepts or applications and does not condone or encourage any intellectual property infringement and disclaims any responsibility
related thereto. These intellectual property licenses may differ from country to country and it is the responsibility of those who develop
the concepts or applications to be aware of and comply with different national license requirements.
Dialogic, Dialogic Pro, Brooktrout, Cantata, SnowShore, Eicon, Eicon Networks, Eiconcard, Diva, SIPcontrol, Diva ISDN, TruFax,
Realblocs, Realcomm 100, NetAccess, Instant ISDN, TRXStream, Exnet, Exnet Connect, EXS, ExchangePlus VSE, Switchkit, N20,
Powering The Service-Ready Network, Vantage, Connecting People to Information, Connecting to Growth, Making Innovation Thrive,
and Shiva, among others as well as related logos, are either registered trademarks or trademarks of Dialogic.
Windows is a registered trademark of Microsoft Corporation in the United States and/or other countries. Other names of actual
companies and products mentioned herein are the trademarks of their respective owners.
This document discusses one or more open source products, systems and/or releases. Dialogic is not responsible for your decision to
use open source in connection with Dialogic products (including without limitation those referred to herein), nor is Dialogic responsible
for any present or future effects such usage might have, including without limitation effects on your products, your business, or your
intellectual property rights.
Publication Date: April 2008
Document Number: U07STN, Issue 3
Dialogic® SS7 Protocols SUA Programmer's Manual Issue 3
3
Contents
Revision History............................................................................................................7
1 Introduction........................................................................................................9
1.1 Manual and Module Overview...................................................................................................9
1.1 Abbreviations.........................................................................................................................9
1.2 Related Documentation.........................................................................................................10
1.3 Feature Overview.................................................................................................................10
1.4 Applicability.........................................................................................................................11
2 Functional Overview..........................................................................................13
2.1 Module Overview..................................................................................................................13
2.2 Modes of Operation...............................................................................................................13
2.2.1 ASP Operation..........................................................................................................14
2.2.2 IPSP Operation.........................................................................................................15
2.3 Internal Data Structures........................................................................................................15
2.3.1 Global Data Structure...............................................................................................16
2.3.2 Application Server (AS).............................................................................................16
2.3.3 Application Server Process (ASP)................................................................................16
2.3.4 Signaling Gateway (SG)............................................................................................16
2.3.5 Routing Key (RK).....................................................................................................17
2.3.6 Association (ASC).....................................................................................................17
2.4 Configuration Model..............................................................................................................17
2.5 Message Interface................................................................................................................18
2.6 Global Title Translation..........................................................................................................19
2.7 Licensing.............................................................................................................................19
2.8 Migration to SUA from SCCP..................................................................................................20
3 Interface to System Services.............................................................................23
3.1 System Functions.................................................................................................................23
3.2 Timer Operation...................................................................................................................23
4 Message Reference............................................................................................25
4.1 Return Codes.......................................................................................................................25
4.2 Configuration Messages.........................................................................................................26
4.2.1 Module Configuration Message...................................................................................26
4.2.2 Local Application Server Process Configuration.............................................................28
4.2.3 Association Configuration..........................................................................................29
4.2.4 Local Application Server Configuration........................................................................31
4.2.5 Bind Local Application Server Configuration.................................................................33
4.2.6 Remote Application Server Configuration.....................................................................34
4.2.7 Bind Remote Application Server Configuration..............................................................35
4.2.8 Remote Signaling Gateway Configuration....................................................................36
4.2.9 Routing Key Configuration.........................................................................................37
4.2.10 Bind Routing Key Configuration..................................................................................38
4.2.11 Trace Mask Configuration Request..............................................................................39
4.3 Management Messages..........................................................................................................42
4.3.1 Activate Association..................................................................................................42
4.3.2 Activate Local Application Server Process....................................................................43
4.3.3 Deactivate Association..............................................................................................44
4.3.4 Deactivate Local Application Server Process.................................................................45
4.4 Maintenance Messages..........................................................................................................46
4.4.1 Maintenance Event Indication....................................................................................46
4.5 Status Messages...................................................................................................................48
4.5.1 Read Association Status Request................................................................................48
4.5.2 Read Local Application Server Process Status Request..................................................49
Contents
4
4.5.3 Read Remote Application Server Process Status Request...............................................50
4.5.4 Read Local Application Server Status Request..............................................................51
4.5.5 Read Remote Application Server Status Request...........................................................52
4.5.6 Error Message Indication...........................................................................................53
4.5.7 Notify Indication.......................................................................................................55
4.5.8 Association Status Indication......................................................................................56
4.5.9 Local Application Server Process Status Indication........................................................57
4.5.10 Remote Application Server Process Status Indication....................................................58
4.5.11 Local Application Server Status Indication....................................................................59
4.5.12 Remote Application Server Status Indication................................................................60
4.5.13 Routing Key Status Indication....................................................................................61
4.6 Statistics Messages...............................................................................................................63
4.6.1 Read Server Statistics...............................................................................................63
4.6.2 Read Routing Key Statistics.......................................................................................64
4.6.3 Read Association Statistics.........................................................................................65
4.7 Other Messages....................................................................................................................70
4.7.1 Read Revision Request..............................................................................................70
4.7.2 License Event Indication............................................................................................71
4.7.3 Request Licensing State............................................................................................72
5 External Message Definitions: SCTP Interface...................................................75
5.1 Primitives from SUA to SCTP..................................................................................................75
5.2 Primitives from SCTP to SUA..................................................................................................75
6 External Message Definitions: SCCP Interface...................................................77
6.1 Management Messages..........................................................................................................77
6.1.1 Read Global Q.752 (previously Q.791) Statistics...........................................................77
6.1.2 Management Indication.............................................................................................80
6.2 Protocol Messages.................................................................................................................82
6.3 Global Title Translation Messages............................................................................................82
7 Example Configurations....................................................................................83
7.1 IPSP Peer-to-Peer.................................................................................................................83
7.2 ASP to Signaling Gateway......................................................................................................86
Appendix A: Message Types........................................................................................89
A.1 Message Type Table..............................................................................................................89
Appendix B: Additional Services.................................................................................91
B.1 Timer Services......................................................................................................................91
B.1.1 Keep Time ..........................................................................................................91
B.1.2 Timer Expiry ..........................................................................................................92
Figures
Figure 1. ASP Operation.........................................................................................................14
Figure 2. IPSP Operation........................................................................................................15
Figure 3. Internal Data Structures...........................................................................................16
Figure 4. Configuration Model.................................................................................................17
Figure 5. Message Interface....................................................................................................18
Figure 6. Different Module Relationships when used in a Configuration based on SCCP or SUA........20
Figure 7. IPSP Configuration...................................................................................................83
Dialogic® SS7 Protocols SUA Programmer's Manual Issue 3
5
Tables
Table 1. Maintenance Event Codes.........................................................................................47
Table 2. Parameter Values....................................................................................................54
Table 3. Error Codes............................................................................................................54
Table 4. Status Type............................................................................................................56
Table 5. Primitive Types and Format Identifiers.......................................................................81
Contents
6
DialogicTP®TP SS7 Protocols SUA Programmer's Manual Issue 3
7
Revision History
Issue Date Description
3 April 2008 Minor updates.
2 February 2008 Minor changes since the initial release.
1 December 2007 Initial release
Note: The latest release issue of this guide can be found at:
http://www.dialogic.com/support/helpweb/signaling
Revision History
8
Dialogic® SS7 Protocols SUA Programmer's Manual Issue 3
9
1 Introduction
This section contains:
• An overview of the manual and of the SUA module. See Manual and
Module Overview below.
• Abbreviations used in this manual. See Abbreviations below.
• Related documentation. See Related Documentation on page 10.
• An overview of the features of the SUA module. See Feature Overview on
page 10.
• A statement about what this manual covers. See Applicability on page
11.
1.1 Manual and Module Overview
The Dialogic® SS7 Protocols SUA module is a portable software
implementation of the IETF SIGTRAN, SS7 SCCP User Adaptation Layer
(SUA). This Programmer's Manual is intended for users who choose to
develop their own application programs that will interface with and use the
functionality provided by the SUA module.
The module uses the services provided by the Stream Control Transmission
Protocol (SCTP) to exchange signaling messages with a number of SUA
Signaling Gateway Processes (SGP) or remote SUA Application Server
Processes (ASP). As such, it can be used as part of either an ASP or in an
IPSP mode.
The SUA module is event driven and uses standard structured message
types. It is intended to be used in conjunction with other Dialogic® SS7
Protocols such as SCTP and TCAP. This manual provides an overview of the
internal operation of the SUA module, defines the structure of messages that
can be sent to, or issued by, the module and also describes all the
configuration parameters.
1.1 Abbreviations
The following table contains a list of abbreviations used in this manual.
Abbreviation Description
AS Application Server
ASP Application Server Process
IETF The Internet Engineering Task Force
ITU The International Telecommunication Union (Previously CCITT)
IPSP IP Signaling Point
L Local (e.g. L_AS is Local Application Server)
M3UA SS7 MTP3 User Adaptation Layer
MTP2 Message Transfer Part Layer 2
MTP3 Message Transfer Part Layer 3
DPC Destination Point Code
Section T 1T Introduction
10
Abbreviation Description
OPC Originating Point Code
R Remote (e.g. R_AS is Remote Application Server)
SCTP Stream Control Transmission Protocol
SG Signaling Gateway
SGP Signaling Gateway Process
SIGTRAN The IETF Signaling Transport Group
SS7 Signaling System Number 7
SUA SS7 SCCP User Adaptation Layer
1.2 Related Documentation
• IETF RFC 3868 SUA-User Adaptation Layer.
• IETF RFC 2960 Stream Control Transmission Protocol.
• Dialogic® SS7 Programmer's Manual for SPCI2S, SPCI4 and CPM8.
• Dialogic® SCTP Programmer's Manual.
• Dialogic® Software Environment Programmer's Manual.
1.3 Feature Overview
Features of the SUA module include:
• Implementation of IETF RFC 3868 Signaling Connection Control Part User
Adaptation Layer (SUA).
• User interface common with other Dialogic® Signaling Protocols.
• Message-oriented interface.
• May be used as part of an ASP or IPSP node.
• Support for Connection-less SCCP services
• Full user control of ASP / AS Registration and Activation.
• Supports 14, 16 and 24 bit Point Codes for ITU-T and ANSI networks.
• Supports simultaneous connection to multiple networks.
• Supports SCCP User interface
• Supports Routes via multiple SGs.
• Debug tracing of messages exchanged with SCTP and SUA User
• Multiple local application servers.
• Multiple local application server processes.
• For each route, load-sharing across two SGPs or ASPs is supported.
• Routing based upon TCAP Transaction ID.
• Generation of DAUD messages.
Dialogic® SS7 Protocols SUA Programmer's Manual Issue 3
11
• Single Exchange and Double Exchange registration.
• Controlled Changeover during network failures.
• Global Title Translation
1.4 Applicability
This documentation covers the Dialogic® SUA host binaries for use on
Windows®, Linux and Solaris operating systems for both ASP and IPSP
operation.
Section T 1T Introduction
12
Dialogic® SS7 Protocols SUA Programmer's Manual Issue 3
13
2 Functional Overview
This section provides a module overview (see Module Overview below).
In addition, it contains information about:
• Modes of Operation. See below.
• Internal DataStructures. See page 15.
• Configuration Model. See page 17.
• Global TitleTranslation. See page 19.
• Message Interface. See page 18.
• Licensing. See page 19.
2.1 Module Overview
The Dialogic® SUA module implements the SS7 SCCP-User Adaptation Layer
as defined in the IETF RFC. The module interface is message-based. The
module reads messages from a single message input queue and sends
responses and indications to the message input queues of the other modules
in the system.
This implementation may be used in either an ASP or IPSP mode of operation.
Different services are offered by the module accordingly.
Irrespective of whether it is used as an ASP or IPSP the SUA module
interfaces with SCTP using the User Primitives defined in the Dialogic® SCTP
Programmer's Manual. These Primitives may be used to interface to another
SCTP implementation if required.
2.2 Modes of Operation
The two main modes of operation for SUA are either when connected via a
Signaling Gateway or directly to another peer end point. These are referred to
in this documentation as either Application Server Process (ASP) or IP
Signaling Point (IPSP) operation. The SUA protocol can also be used within a
Signaling Gateway but this mode of operation is not supported.
Section 2 Functional Overview
2.2.1 ASP Operation
Figure 1. ASP Operation
When used as part of an ASP, SUA offers an SCCP Interface to its Users. It
does not offer SCCP services directly; rather, it offers connection to Signaling
Gateways where these services are offered. Because the interface is based
on the ITU-T or ANSI recommended primitives, it allows easy interfacing of
the SUA module to SCCP User Parts. Furthermore, the module will interface
directly to other Dialogic® Signaling Protocol Modules. This allows existing
applications running with a local MTP3/SCCP to be easily ported to running
over SUA.
14
Dialogic® SS7 Protocols SUA Programmer's Manual Issue 3
2.2.2 IPSP Operation
Figure 2. IPSP Operation
Allows two peer ASPs to communicate without the need for a Signaling
Gateway. They communicate directly over IP, and no TDM-based SS7
messages are sent. The protocol message API for IPSP operation is the same
as for ASP Operation. The differences are largely in configuration and
management.
2.3 Internal Data Structures
This section describes the internal data structures used by the SUA module.
This description is intended to assist the user in understanding the operation
of the module. It is not necessary to acquire detailed knowledge of these
structures in order to use the module.
15
Section 2 Functional Overview
Figure 3. Internal Data Structures
2.3.1 Global Data Structure
The entire data storage used by the module is contained in a single
contiguous data structure. This structure contains global configuration
settings, per ASP, AS, SG configuration, statistics and state. It also contains
internal event queues, timer control structures and internal buffers for
message processing.
2.3.2 Application Server (AS)
A logical grouping of one or more Application Server Processes, which
together provide a specific service for a particular defined Routing Key. These
may either be local or remote Application Servers and are referred to in this
manual as either L_AS or R_AS respectively.
2.3.3 Application Server Process (ASP)
These can be considered to be processing resources on which services are
offered by Logical Application Servers. An ASP has an SCTP end-point. An
ASP may service one or more Application Servers.
2.3.4 Signaling Gateway (SG)
A logical entity that sits between a TDM SS7 network and an IP-based Sigtran
network and allows messages to be carried between the networks.
16
Dialogic® SS7 Protocols SUA Programmer's Manual Issue 3
2.3.5 Routing Key (RK)
Defines one or more SS7 parameters that uniquely identify traffic which
should be handled by a particular Application Server. For SUA, this may be,
as an example, a point code and sub-system combination.
2.3.6 Association (ASC)
An SCTP association over which SUA protocol and data messages can be sent.
2.4 Configuration Model
The User configures the module for operation using the configuration
messages in Section 4on page 25. The first message sent to the module
must be a global configuration message. This configures environment-
dependent parameters. In general, these parameters will be fixed for any
single application. The configuration messages may then be used as required.
The figure below shows the set of SUA entities which may need to be
configured together with the relationships between them. In addition, for
each entity the list of parameters needing to be configured is denoted as well
as the appropriate messages that manage the entity. For example, the
Remote AS entity takes only one parameter (r_as_id). The Remote AS only
has one relevant configuration or management message (represented as a
function call Configure()).
Figure 4. Configuration Model
17
Section 2 Functional Overview
2.5 Message Interface
Figure 5. Message Interface
SUA
Module
SCCP/SUA
User
Management Interface Non-Primitive
Interface
Services
IP Stack
SCTP
SUA has four main message interfaces:
• SCTP Interface: User data messages to and from the SCTP user interface
• SCCP/SUA User Interface: User data messages to and from SCCP or SUA.
SUA has been developed to match the existing interface of the SCCP
module.
• Management Interface: Messages to control the state of configured
entitles
• Non-primitive Interface: Message to offer configuration, maintenance
operations, status and statistics.
18
Dialogic® SS7 Protocols SUA Programmer's Manual Issue 3
19
2.6 Global Title Translation
SUA can perform global title translation in the same manner as SCCP. The
user interface is unchanged from the messages used to configure SCCP. The
only change required is to the destination module id.
2.7 Licensing
The module can be enabled via a number of different licenses. Each license
permits a different number of associations and a throughput to be used. The
initial set of licenses supported by the module is given below.
License Number of associations Throughput
SS7SBHSTSUAU 4 associations 4 link equivalent throughput
(312 Kbps)
SS7SBHSTSUAS 16 associations
16 link equivalent throughput
(1232 Kbps)
SS7SBHSTSUAR 32 associations 32 link equivalent throughput
(2464 Kbps)
SS7SBHSTSUAL 64 associations 64 link equivalent throughput
(4920 Kbps)
The module can also be run in trial mode to permit evaluation of the product.
When run in this mode, the module will run for up to ten (10) hours with
dimensioning equivalent to the SS7SBHSTSUAS license.
Section 2 Functional Overview
2.8 Migration to SUA from SCCP
The figure below shows the different module relationships between modules
when used in a configuration based on either SCCP or SUA.
Figure 6. Different Module Relationships when used in a Configuration based on
SCCP or SUA
TCAP Configuration
The migration of an application from use of SCCP to SUA requires little
changes to the protocol messages. If using the Dialogic® TCAP module, then
the configuration option TCPF_DTID_ON is required in order to permit
distribution of traffic based on transaction id.
20
Dialogic® SS7 Protocols SUA Programmer's Manual Issue 3
21
System Configuration
A new message queue for SUA will be required.
Sigtran Configuration
The other changes required are largely based on the different configuration
requirements of the Sigtran protocols - in other words, the SUA and SCTP
specific configuration message.
Section 2 Functional Overview
22
Dialogic® SS7 Protocols SUA Programmer's Manual Issue 3
23
3 Interface to System Services
This section provides information about:
• System Functions. See below.
• Timer Operation. See below.
3.1 System Functions
In addition to the primitive interface and the management interface to the
Dialogic® SUA module (which are described in later sections), the module
requires a few basic system services to be supplied by the underlying
operating system. This functionality is usually supplied by the appropriate
Development package.
The following functions are required for inter-task communication:
Function Description
GCT_send Sends a message to another task.
GCT_receive Accepts next message from input event queue, blocking the task if no
message is ready.
GCT_grab As for GCT_receive but not blocking if no message is ready.
The following functions are required for allocation of inter-task messages:
Function Description
getm Allocate a message.
relm Release a message.
3.2 Timer Operation
In order to provide internal implementation of the SUA protocol timers, the
module needs to receive a periodic timer tick message. This is usually
achieved using either the Enhanced Driver Module or the Timer module, in
which case the following messages are used by the SUA module:
Message Description
KEEP_TIME Issued by the module to initialize the timer services
TM_EXP Issued by the timer module to notify of time-out.
Section 3 Interface to System Services
24
Dialogic® SS7 Protocols SUA Programmer's Manual Issue 3
25
4 Message Reference
The interface to the user application is a superset of messages defined for the
Dialogic® SCCP Protocol Message API, with the addition of SUA specific
configuration and management messages.
The list of messages defined and inherited from other protocol modules is
given in:
• Section : 5 External Message Definitions: SCTP Interfaceon page 75.
• Section : 6 External Message Definitions: SCCP Interfaceon page 77.
In this section
This section contains information about:
• Return Codes. See below.
• Configuration Messages. See page 26.
• Management Messages. See page 42.
• Maintenance Messages. See page 46.
• Status Messages. See page 48.
• Statistics Messages. See page 63.
• Other Messages. See page 70.
4.1 Return Codes
Unless otherwise noted, when the SUA module returns a confirmation
message containing a status value the status will be one of the following:
Mnemonic Value Description
SDE_MSG_OK 0x00 Success.
SDE_BAD_ID 0x01 Inappropriate or invalid id in request message.
SDE_BAD_STATE 0x02 Message received in wrong state.
SDE_BAD_SIG 0x03 Bad signal received.
SDE_UNEX_SIG 0x04 Unexpected signal received.
SDE_BAD_MSG 0x05 Unsupported message received.
SDE_BAD_PARAM 0x06 Invalid parameters contained in message.
SDE_NO_RESOURCES 0x07 Insufficient internal message resources.
SDE_INVALID_NC 0x08 Invalid Network Context.
SDE_INVALID_VERSION 0x09 Message version is invalid.
SDE_BAD_MSG_LEN 0x0b Invalid message length.
SDE_LICENCE_ERR 0x0e Command failed due to a licensing restriction.
SDE_INTERNAL_ERR 0x0f Command failed due to an internal error.
Section 4 Message Reference
26
4.2 Configuration Messages
This section contains information about the following messages:
• Module Configuration Message. See below.
• Bind RoutingKeyConfiguration. See page 38.
• Local Application Server Process Configuration. See page 28.
• Association Configuration. See page 29.
• Bind Local Application Server Configuration. See page 33.
• Local ApplicationServerConfiguration. See page 31.
• Bind RemoteApplicationServerConfiguration. See page 35.
• Remote ApplicationServerConfiguration. See page 34.
• Remote SignalingGatewayConfiguration. See page 36.
• Routing KeyConfiguration. See page 37.
• Bind Routing Key Configuration. See page .38
• Trace Mask Configuration Request See page 39.
4.2.1 Module Configuration Message
Synopsis
Module-wide configuration message identifying default module Ids and
resource allocation.
Message Format
Message Header
Field Name Meaning
type SUA_MSG_CONFIG (0x739c)
id 0
src Originating module ID
dst SUA_TASK_ID
rsp_req Sending layer’s bit must be set
hclass 0
status 0
err_info 0
len 19
Dialogic® SS7 Protocols SUA Programmer's Manual Issue 3
27
Parameter Area
Offset Size Name
0 1 sctp_mod_id
1 1 mgt_mod_id
2 1 trace_mod_id
3 2 max_assocs
5 2 Reserved (set to 0)
7 2 max_routes
9 4 max_gtt
13 1 maint_mod_id
14 3 reserved (set to 0)
17 2 max_throughput
Description
This message is used to configure the SUA module for operation. It should be
the first message sent to the module (any messages received before a valid
configuration message will be discarded) and should only be issued once.
The message contains parameters relating to the environment in which the
module is operating, such as the identity of other modules with which it
needs to communicate.
Parameters
sctp_mod_id
Module identifier for the SCTP module being used
mgt_mod_id
Module identifier defining the destination for all management indications
trace_mod_id
Module identifier defining the destination for all traced messages
max_assocs
Set to configure the maximum number of associations to be used.
max_routes
Set to configure the maximum number of routes expected.
max_gtt
Set to configure the maximum number of Global Title Translations required.
Section 4 Message Reference
28
maint_mod_id
Module identifier defining the destination for all maintenance indications. If
zero the mgt_mod_id will be used.
max_throughput
Set to zero (0) to permit the module to run at the licensed rate.
4.2.2 Local Application Server Process Configuration
Synopsis
Message used to configure a Local Application Server Process.
Message Format
Message Header
Field Name Meaning
Type SUA_MSG_CFG_LASP (0x739d)
id L_ASP id
src Originating module ID
dst SUA_TASK_ID
rsp_req Sending layer’s bit must be set
hclass 0
status 0
err_info 0
len 4
Parameter Area
Offset Size Name
0 4 asp_identifier
Description
This message configures the Local Application Server Process. The id field of
the message header will define the logical identifier to be used in other
configuration messages. This message must be sent prior to configuring
associations or Local Application Servers.
Parameters
asp_identifier
Transmitted to the remote SGP or ASP and used to identify this ASP in
NOTIFY messages.
Dialogic® SS7 Protocols SUA Programmer's Manual Issue 3
29
4.2.3 Association Configuration
Synopsis
Message used to configure an Association for use with SUA.
Message Format
Message Header
Field Name Meaning
Type SUA_MSG_CFG_ASC (0x739e,)
Id Asc ID
Src Originating module ID
Dst SUA_TASK_ID
rsp_req Sending layer’s bit must be set
Hclass 0
Status 0
err_info 0
Len 14
Parameter Area
Offset Size Name
0 2 sctp_ASC_id
2 2 default_nc
4 2 lasp_id
6 2 lsgp_id
8 2 rsg_id
10 4 options
Description
This message configures the SUA level parameters required to operate a
previously configured SCTP association. The Local Application Server Process
and, where applicable, the Remote Signaling Gateways must already be
configured.
Section 4 Message Reference
30
Parameters
sctp_ASC_id
Used to specify the logical identifier used by SCTP for this association.
default_nc
Sets the default network context for the association.
lasp_id
Used to specify the Local Application Server Process attached to the
association.
lsgp_id
Not required for ASP or IPSP operation. Set to 0.
rsg_id
Used to specify the Remote Signaling Gateway at the remote end of the
association.
options
A bit field to allow one or more per-association options to be set.
Bit Mnemonic Description
0 SUA_CFG_ASC_OPTIONS_R_ASP There is an ASP on the remote end.
Set to 1 for IPSP operation. If not set,
then ASP to SG operation is assumed.
1 SUA_CFG_ASC_OPTIONS_SE_MODE Operate in single-exchange mode (for
IPSP)
Set to 1 for single exchange
registration. If not set, then double
exchange registration is used.
2 SUA_CFG_ASC_OPTIONS_L_ASP_PRESENT Set if the local side is an ASP
Dialogic® SS7 Protocols SUA Programmer's Manual Issue 3
31
4.2.4 Local Application Server Configuration
Synopsis
Message used to configure a Local Application Server.
Message Format
Message Header
Field Name Meaning
type SUA_MSG_CFG_LAS (0x739f)
id L_AS Id
src Originating module ID
dst SUA_TASK_ID
rsp_req Sending layer’s bit must be set
hclass 0
status 0
err_info 0
len 17
Parameter Area
Offset Size Name
0 4 rc
4 1 tr_mode
5 1 user_mod_id
6 2 lasp_id
8 1 tid_start
9 1 tid_end
10 2 tid_value
12 4 options
16 1 format
Description
This message configures the Local Application Server and attaches it to a
Local Application Server Process. It also configures the properties sent to
Remote Application Server to permit them to load-share traffic appropriately.
The Local Application Server Process must already have been configured.
Section 4 Message Reference
32
Parameters
rc
Routing Context.
tr_mode
The traffic mode parameter can take one of three values specified below. This
instructs the Remote AS how to distribute traffic to the Local AS.
Value Mnemonic Description
0 SUA_CFG_LAS_TR_MODE_OVERRIDE Traffic should be sent to the L_ASP
which last sent an ASP Activate.
1 SUA_CFG_LAS_TR_MODE_LOADSHARE Traffic should be load-shared amongst
L_ASP
2 SUA_CFG_LAS_TR_MODE_BROADCAST Traffic should be sent to all associated
L_ASP
user_mod_id
Module to which traffic for this L_AS should be sent. This is typically TCAP
(0x14).
lasp_id
Set to match the id field of the Local ASP configuration message.
tid_start
Indicates the start of the bits in the destination transaction id which should be
used for load-sharing. To enable transaction id based distribution the option
SUA_CFG_LAS_OPTIONS_TID_PRESENT should also be set.
tid_end
Indicates the last bit in the destination transaction id which should be used
for load-sharing. To enable transaction id based distribution the option
SUA_CFG_LAS_OPTIONS_TID_PRESENT should also be set.
tid_value
Indicates the value that should be used to indicate the L_ASP on the L_AS. To
enable transaction id based distribution the option
SUA_CFG_LAS_OPTIONS_TID_PRESENT should also be set.
options
A bit field specifying to allow one or more per-L_AS options to be set.
Bit Mnemonic Description
0 SUA_CFG_LAS_OPTIONS_BIND_ALL Bind to all associations automatically
1 SUA_CFG_LAS_OPTIONS_TID_PRESENT Set to 1 to request the Transaction id
based distribution.
Dialogic® SS7 Protocols SUA Programmer's Manual Issue 3
33
format
Definition of L_AS address format. This parameter should be set to the same
value as for TCAP Configuration Message.
Value Mnemonic Description
0 SUA_CFG_LAS_ADDR_FMT_DEFAULT Default: ITU-T format, 14 bit point
codes (same as 1 below)
1 SUA_CFG_LAS_ADDR_FMT_ITU14 ITU-T format, 14 bit point codes
2 SUA_CFG_LAS_ADDR_FMT_ITU24 ITU-T format, 24 bit point codes
3 SUA_CFG_LAS_ADDR_FMT_ANSI14 ANSI format, 14 bit point codes
4 SUA_CFG_LAS_ADDR_FMT_ANSI24 ANSI format, 24 bit point codes
4.2.5 Bind Local Application Server Configuration
Synopsis
Bind a Local Application Server to an association.
Note: This command is not required if the SUA_CFG_LAS_OPTIONS_BIND_ALL flag is
specified in the Local Application Server Configuration on page 31.
Message Format
Message Header
Field Name Meaning
type SUA_MSG_CFG_BIND_LAS (0x73a0)
id L_AS id
src Originating module ID
dst SUA_TASK_ID
rsp_req Sending layer’s bit must be set
hclass 0
status 0
err_info 0
len 2
Parameter Area
Offset Size Name
0 2 asc_id
Description
Binds together previously configured association and Local Application Server
entities.
Section 4 Message Reference
34
Parameters
asc_id
Identifier of the association to be bound.
4.2.6 Remote Application Server Configuration
Synopsis
Configures a Remote Application Server.
Message Format
Message Header
Field Name Meaning
Type SUA_MSG_CFG_RAS (0x73a1)
id R_AS id
src Originating module ID
dst SUA_TASK_ID
rsp_req Sending layer’s bit must be set
hclass 0
status 0
err_info 0
len 0
Description
Configures a Remote Application Server and defines the R_AS id in the id field
of the message. This id must be used in the SUA_MSG_CFG_BIND_RAS
message. This message is not required for ASP-SG operation.
Parameters
No parameters defined.
Dialogic® SS7 Protocols SUA Programmer's Manual Issue 3
35
4.2.7 Bind Remote Application Server Configuration
Synopsis
Binds a Local Application Server to a Remote Application Server via an
Association.
Message Format
Message Header
Field Name Meaning
Type SUA_MSG_CFG_BIND_RAS (0x73a2)
Id R_AS id
Src Originating module ID
Dst SUA_TASK_ID
rsp_req Sending layer’s bit must be set
Hclass 0
Status 0
err_info 0
Len 13
Parameter Area
Offset Size Name
0 2 asc_id
2 2 l_as_id
4 4 Rc
8 1 tr_mode
9 4 Reserved
Description
This message joins Local and Remote Application Servers. The Application
Servers and association must have already been configured. This message is
not required for ASP-SG operation.
Parameters
asc_id
Identifier of the association to be bound.
l_as_id
The identifier of the Local AS.
rc
Routing Context.
Section 4 Message Reference
36
tr_mode
A bit-field to indicate which modes of operation should be supported.
Bit Mnemonic Description
0 SUA_CFG_BIND_RAS_TR_MODE_OVERRIDE Permit sending to last Activated
ASP
1 SUA_CFG_BIND_RAS_TR_MODE_LOADSHARE Permit load-sharing across ASP
2 SUA_CFG_BIND_RAS_TR_MODE_BROADCAST Permit sending to all ASP
A value of 0x7 is recommended and will therefore permit all traffic modes to
be used.
4.2.8 Remote Signaling Gateway Configuration
Synopsis
Configures a Remote Signaling Gateway.
Message Format
Message Header
Field Name Meaning
type SUA_MSG_CFG_RSG (0x73a3)
id R_SG id
src Originating module ID
dst SUA_TASK_ID
rsp_req Sending layer’s bit must be set
hclass 0
status 0
err_info 0
len 0
Description
Message used to configure a Remote Signaling Gateway which must later be
bound to a Routing Key. This message is not required for IPSP operation.
Parameters
No parameters defined.
Dialogic® SS7 Protocols SUA Programmer's Manual Issue 3
37
4.2.9 Routing Key Configuration
Synopsis
Defines a routing key for a local AS
Message Format
Message Header
Field Name Meaning
type SUA_MSG_CFG_RK (0x73a4)
id Routing Key id
src Originating module ID
dst SUA_TASK_ID
rsp_req Sending layer’s bit must be set
hclass 0
status 0
err_info 0
len 13
Parameter Area
Offset Size Name
0 4 Spc
4 2 Nc
6 1 Ssn
7 2 l_as_id
9 2 Options
Description
This message defines the network properties for a set of traffic. This can later
be used to bind to a Remote Application Server or Remote Signaling Gateway
to permit correct routing.
Parameters
spc
Signaling Point-code
nc
Network Context
ssn
Sub-system number
Section 4 Message Reference
38
l_as_id
Defines the Local Application Server to which this Routing Key is attached.
Note: The routing tables are per-Local Application Server.
options
A bit field specifying to allow one or more per-Routing Key options to be set.
Bit Mnemonic Description
0 SUA_CFG_RK_OPTIONS_LOADSHARE Set to 1 to instruct SUA to load-
share traffic
4.2.10 Bind Routing Key Configuration
Synopsis
Binds a previously configured Routing Key to a Remote Application Server or
a Remote Signaling Gateway.
Message Format
Message Header
Field Name Meaning
type SUA_MSG_CFG_BIND_RK (0x73a5)
id RK id
src Originating module ID
dst SUA_TASK_ID
rsp_req Sending layer’s bit must be set
hclass 0
status 0
err_info 0
len 6
Parameter Area
Offset Size Name
0 2 r_sm_id
4 4 options
Description
This message binds a Remote Signaling Gateway (or, for IPSP operation, a
Remote Application Server) to a Routing key. This links the traffic defined by
the Routing Key to the remote entity which should be sent the traffic.
Dialogic® SS7 Protocols SUA Programmer's Manual Issue 3
39
Parameters
r_sm_id
This should either be the value of r_as_id or r_sg_id. For IPSP, the Routing
Key should be bound to a R_AS; therefore, the r_as_id should be used. For
ASP-SG operation, the r_sg_id should be used to indicate the Remote
Signaling Gateway.
options
A bit field specifying to allow one or more options to be set.
Bit Mnemonic Description
0 SUA_CFG_BIND_RK_OPTIONS_RAS Set to 1 for binding to an R_AS. Set to
0 if binding to an R_SG
4.2.11 Trace Mask Configuration Request
Synopsis
Configures the Trace Masks, which allow specific events to be sent to the
Trace Module.
Message Format
Message Header
Field Name Meaning
type SUA_MSG_CFG_TRACE_MASK (0x73a6)
id 0
src Originating module ID
dst SUA_TASK_ID
rsp_req Sending layer’s bit must be set
hclass 0
status 0
err_info 0
len 12
Parameter Area
Offset Size Name
0 4 op_evt_mask
4 4 ip_evt_mask
8 4 mgmt_evt_mask
Section 4 Message Reference
40
Description
Message used to configure SUA to send a trace message to the trace module
whenever a specific message type is sent or received. The trace module is
identified in the SUA configuration request message.
Parameters
op_evt_mask
The output event mask. This is a 32bit value with bits set to 1 to cause a
trace message to be sent to the trace module whenever a message is issued
by SUA for the event indicated.
Bit Mnemonic Message(s) Traced
0 SUAOEM_SCP_RX_IND SCP_MSG_RX_IND
1 SUAOEM_SCTP_TX_REQ SCTP_MSG_TX_REQ
2 SUAOEM_SCP_SCMG_IND SCP_MSG_SCMG_IND
3 SUAOEM_SCTP_SHUTDOWN SCTP_MSG_SHUTDOWN