-
Notifications
You must be signed in to change notification settings - Fork 16
/
m2pa.db
1788 lines (1788 loc) · 70.5 KB
/
m2pa.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
M2PA Programmer’s Manual
2
Copyright© 2004-2007 Dialogic Corporation. All Rights Reserved. You may not reproduce this document in
whole or in part without permission in writing from Dialogic Corporation.
All contents of this document are furnished for informational use only and are subject to change without notice and do not represent a commitment on the part
of Dialogic Corporation or its subsidiaries (“Dialogic”). Reasonable effort is made to ensure the accuracy of the information contained in the document.
However, Dialogic does not warrant the accuracy of this information and cannot accept responsibility for errors, inaccuracies 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 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 may infringe one or more patents or other intellectual property rights owned by third parties. Dialogic does 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 and no such licenses are provided except pursuant to a signed agreement with Dialogic. More detailed information
about such intellectual property is available from Dialogic’s legal department at 9800 Cavendish Blvd., 5th Floor, Montreal, Quebec, Canada H4M 2V9.
Dialogic 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 is a registered trademark of Dialogic Corporation. Dialogic's trademarks may be used publicly only with permission from Dialogic. Such permission
may only be granted by Dialogic’s legal department at 9800 Cavendish Blvd., 5th Floor, Montreal, Quebec, Canada H4M 2V9. Any authorized use of
Dialogic's trademarks will be subject to full respect of the trademark guidelines published by Dialogic from time to time and any use of Dialogic’s trademarks
requires proper acknowledgement.
The names of actual companies and products mentioned herein are the trademarks of their respective owners.
Publication Date: August 2007
Document Number: 05-2407-002, Issue 3
Dialogic® SS7 Protocols M2PA Programmer’s Manual Issue 3
3
Contents
1 Introduction.............................................................................................................5
1.1 Related Documentation.......................................................................................5
2 Functional Overview.................................................................................................6
2.1 M2PA Module Overview........................................................................................6
2.2 Feature Overview................................................................................................6
2.3 General Description.............................................................................................7
3 Message Reference...................................................................................................8
3.1 Protocol Requests from M2PA to SCTP...................................................................8
3.1.1 SCTP_MSG_ACTIVATE – SCTP Activate Association Request...........................9
3.1.2 SCTP_MSG_SHUTDOWN – SCTP Shutdown Association Request....................10
3.1.3 SCTP_MSG_ABORT – SCTP Abort Association Request..................................11
3.1.4 SCTP_MSG_TX_REQ – SCTP Data Transfer Request.....................................12
3.2 Protocol Indications from SCTP to M2PA................................................................13
3.2.1 SCTP_MSG_STATUS_CHANGE – STCP Association Status Change..................14
3.2.2 SCTP_MSG_RX_IND – STCP Association Data Transfer Indication..................15
3.2.3 SCTP_MSG_NETWORK_STATUS – STCP Association Network Status...............16
3.2.4 SCTP_MSG_CONG_STATUS – STCP Association Congestion Status.................17
3.3 Protocol Requests from MTP3 to M2PA..................................................................18
3.3.1 API_MSG_TX_REQ – Message for Transmission Request...............................19
3.3.2 SS7_MSG_START – M2PA Link Start Request..............................................20
3.3.3 SS7_MSG_STOP – M2PA Link Stop Request................................................21
3.3.4 SS7_MSG_EMGCY – M2PA Set Emergency Request.....................................22
3.3.5 SS7_MSG_EMGCY_CLRD – M2PA Cancel Emergency Request........................22
3.3.6 SS7_MSG_RTV_BSNT – M2PA BSNT Retrieval Request.................................23
3.3.7 SS7_MSG_RTVL_REQ – M2PA Retrieval Request..........................................24
3.3.8 SS7_MSG_LOC_PR_OUT – M2PA LPO Request............................................25
3.3.9 SS7_MSG_LOC_PR_OK – MTP2 LPO Recovered Request...............................25
3.4 Protocol Indications from M2PA to MTP3................................................................26
3.4.1 API_MSG_RX_IND – Received Message Indication.......................................27
3.4.2 SS7_MSG_IN_SVC – M2PA In Service Indication.........................................28
3.4.3 SS7_MSG_OUT_SVC – M2PA Out of Service Indication.................................29
3.4.4 SS7_MSG_REM_PR_OUT – M2PA RPO Indication.........................................29
3.4.5 SS7_MSG_REM_PR_OK – M2PA RPO Cleared Indication...............................30
3.4.6 SS7_MSG_RXD_BSNT – M2PA BSNT Indication...........................................31
3.4.7 API_MSG_RTVD_MSG – M2PA Retrieved Message Indication.........................32
3.4.8 SS7_MSG_RTVL_COMPL – M2PA Retrieval Complete Indication.....................33
3.4.9 MTP_MSG_RTVL_NOT_POS – M2PA Retrieval Failure Indication.....................34
3.4.10 MTP_MSG_LINK_CONG – M2PA Link Congested Indication............................35
3.4.11 MTP_MSG_LINK_UNCONG – M2PA Congestion Cleared Indication..................36
3.4.12 MTP_MSG_FLUSH_ACK – M2PA Flush Acknowledgement Indication................37
4 Non-Primitive Interface...........................................................................................38
4.1 Confirmation Message Status Values....................................................................38
4.2 Non-Primitive Interface Messages........................................................................38
4.2.1 M2P_MSG_CONFIG – Configure M2PA Module.............................................39
4.2.2 M2P_MSG_CNF_LINK – M2PA Link Configuration Request.............................40
4.2.3 M2P_MSG_END_LINK – M2PA Link End Request..........................................42
4.2.4 M2P_MSG_TRACE_MASK – TRACE MASK Set Request..................................43
4.2.5 M2P_MSG_R_STATE – READ STATE Read Request.......................................45
4.2.6 M2P_MSG_R_STATS – READ STATISTICS Read Request...............................47
4.2.7 M2P_MGT_MSG_EVENT_IND – EVENT Indication.........................................49
4.2.8 M2P_MSG_ERROR_IND – ERROR Indication................................................50
4.2.9 M2P_MGT_MSG_LINK_STATE – M2PA Link STATE Indication.........................51
5 Typical Configuration Values....................................................................................52
6 Message Types.........................................................................................................53
6.1 Message Type Table...........................................................................................53
7 Timer Serivces.........................................................................................................54
7.1 Introduction......................................................................................................54
7.1.1 KEEP_TIME – Keep Time..........................................................................54
4
Contents
7.1.2 TM_EXP – Timer Expiry............................................................................55
A Network Address Representation.............................................................................56
A.1 Network Address Structure for an Invalid Address..................................................56
A.2 Network Address Structure for Internet Protocol Version 4.......................................56
Glossary...................................................................................................................57
Index...............................................................................................................................58
Tables
1 Typical Configuration Values.......................................................................................52
2 Message Types.........................................................................................................53
Revision History
Note: The latest released issue of this guide can be found at:
http://www.dialogic.com/support/helpweb/signaling
Date Part No. Issue No. Description of Changes
18-Apr-07 05-2407-002 3
Changed to Dialogic format.
Updated the parameters in Section4.2.4, “M2P_MSG_TRACE_MASK” on
page43.
Supports configuration of the RFC version and a per link option for the
support of Draft Version 9.
This manual is applicable to M2PA Software Core V1.04 or later.
14-Apr-05 05-2407-001 2 Supports the production release of MP2A software core revision V1.02. Updated the Event Codes table in Section4.2.7
M2P_MGT_MSG_EVENT_IND - EVENT Indication.
17-Dec-04 05-2407-001-01 1 Applicable to MP2A software core revision V1.01.
5
Dialogic® SS7 Protocols M2PA Programmer’s Manual Issue 3
Chapter 1: Introduction
The M2PA module is an implementation of the IETF SIGTRAN, SS7 MTP2-User Peer-to-Peer Adaptation Layer
(M2PA). This Programmer's Manual is intended for users developing their own application programs that
interface with or use the functionality offered by the M2PA module.
The module uses the services offered by the Stream Control Transmission Protocol (SCTP) to exchange
signaling messages with remote signaling points. It supports a number of links, each separately configurable
allowing the user flexibility in configuring the module.
The M2PA module is intended to be used in conjunction with the Dialogic® SS7 Protocols SCTP and MTP3
modules, either on hardware platforms from Dialogic or on user-supplied hardware. However, the software is
portable and the well-defined interface of the module allows it to be used with alternative SCTP and MTP3
implementations as required.
This manual provides an overview of the operation of the M2PA module, defines the structure of all messages
that can be sent to, or issued by, the module and describes all configuration parameters.
1.1 Related Documentation
The following documents provide information that is related to the information in this manual:
•IETF Internet draft SS7 MTP2-User Peer-to-Peer Adaptation Layer
•IETF RFC 2960 Stream Control Transmission Protocol
•SCTP Programmer's Manual
•Software Environment Programmer's Manual
•SS7 Programmer's Manual for SigTran Host Software
•ITU-T Q.703 Message Transfer Part Layer 2
6
Chapter 2 Functional Overview
Chapter 2: Functional Overview
2.1 M2PA Module Overview
The services offered by M2PA and SCTP are used to replace those offered by MTP2. The services offered by
MTP2 can be divided into high- and low-level functions:
•The high-level functions include:
—Link state control
—Initial alignment control
—Transmission control
—Reception control
•The low-level functions include:
—Signal unit delimitation and alignment
—Error detection
—Signal unit error monitoring.
M2PA may be considered to replace the high-level functions, and SCTP the low-level functions.
The M2PA module is a full implementation including the following services:
•Link alignment (normal and emergency)
•Generation of level 2 header information
•Buffering transmission and retrieval of Message Signal Units (MSU)
•Validation and acknowledgement of received signal units
•Generation and transmission of Link Status Signal Units (LSSU)
•Congestion control
M2PA services MTP3 requests and issues indications to MTP3 and to management. The module supports level
2 monitoring and measurement features.
2.2 Feature Overview
Features of the M2PA module include:
•Implementation of IETF Internet draft M2PA Version 09
•Configuration options on an M2PA Link basis
•User interface common with other Dialogic® SS7 Protocols
•Message oriented interface
•Full user control of link supervisory functions; reset, blocking and unblocking
•Support for 24-bit and 7-bit sequence numbers
•Optional support for multiple congestion levels
•Support for message retrieval
•Support for per link statistics
•Support for normal and emergency proving
•Support for local and remote processor outage
•Debug tracing of messages exchanged with SCTP and MTP3
7
Dialogic® SS7 Protocols M2PA Programmer’s Manual Issue 3
2.3 General Description
The interface to the M2PA module is entirely message-based, using the structured messages documented in
the Software Environment Programmer’s Manual. The M2PA module is capable of working in conjunction with
the Dialogic® SS7 Protocols MTP3 module, or, using the interface specified in this manual, M2PA can be used
in conjunction with third-party MTP3 implementations if required.
The M2PA module supports multiple logical M2PA links. Each link is maintained independently of the others.
Links are identified by a level 2 logical link identifier (l2_llid).The l2_llid values are in the range from 0 to
one less than the number of links supported and are used to identify the link in all messages sent to the
M2PA module. At configuration time, a level 3 link identifier is associated with each link and this is used in
indications issued to the MTP3 module.
8
Chapter 3 Message Reference
Chapter 3: Message Reference
This chapter describes the individual messages and associated parameters that may be sent or received
when interfacing to the M2PA module.
The interface is a message based interface using messages of type MSG as defined in the Software
Environment Programmer’s Manual.
These messages are used for the primitive protocol interface with the MTP3 and SCTP modules, and for the
non-primitive interface to management for the purposes of configuring and managing M2PA signaling links.
The messages are grouped into the following categories:
•Protocol Requests from M2PA to SCTP
•Protocol Indications from SCTP to M2PA
•Protocol Requests from MTP3 to M2PA
•Protocol Indications from M2PA to MTP3
•Management Requests sent to M2PA
•Management Indications issued by M2PA
3.1 Protocol Requests from M2PA to SCTP
Primitive protocol requests are sent from M2PA to SCTP in accordance with published M2PA
recommendations.
Note: This section of the manual is applicable only to users intending to write or interface to their own
SCTP implementation. When using SCTP from the Dialogic® SS7 Protocols, this interface is
already implemented by the SCTP module.
The list of protocol requests sent from M2PA to SCTP includes:
•SCTP Activate Association Request - Servers wait for incoming association or client attempt association
•SCTP Shutdown Association Request - Gracefully close down association
•SCTP Abort Association Request - Abort an association
•SCTP Data Transfer Request - Transmit a data packet
9
Dialogic® SS7 Protocols M2PA Programmer’s Manual Issue 3
3.1.1 SCTP_MSG_ACTIVATE – SCTP Activate Association Request
Synopsis
Move the association from the Configuration state into the Active state.
Message Format
Description
The association is moved from the Configuration state to the Active state, allowing the association to accept
incoming or start outgoing connection procedures with its peer.
The module sending the message should request a response and check that all configuration information was
accepted and that the activation has succeeded.
At least one peer IP address must be configured prior to activation.
Once the association has been activated, if the host port is zero, it is configured to an ephemeral port.
If the association has been configured with a peer port (set to non zero), the association attempts to initiate
an association with its peer and is indicated to the user by the reception of an association status change
message detailing a state of Connecting.
If the association has been configured without a peer port (set to zero), the activated association awaits an
incoming association from the configured peer.
Established associations are indicated to the user via the association status message detailing a state of
Connected.
Message Header
Field Name Meaning
Type SCTP_MSG_ACTIVATE (0x728a)
Id Association ID
Src Originating Module ID
Dst SCTP Module
rsp_req Used to request a confirmation
Hclass 0
Status Non zero on error
err_info 0
Len 0
10
Chapter 3 Message Reference
3.1.2 SCTP_MSG_SHUTDOWN – SCTP Shutdown Association Request
Synopsis
Attempt to shutdown an association after all outstanding data has been acknowledged.
Message Format
Description
Once shutdown starts, the status of the connection is indicated to the user via the
SCTP_MSG_ASSOC_STATUS message.
Once the user has successfully requested that the association be shutdown, all further attempts to send data
on the association are rejected.
Once the shutdown has completed, SCTP sends the user an association status message with a status of
CLOSED and reenters the Unconfigured state.
Message Header
Field Name Meaning
type SCTP_MSG_SHUTDOWN (0x728b)
id Association ID
src Originating Module ID
dst SCTP Module
rsp_req Used to request a confirmation
hclass 0
status Non zero on error
err_info 0
len 0
11
Dialogic® SS7 Protocols M2PA Programmer’s Manual Issue 3
3.1.3 SCTP_MSG_ABORT – SCTP Abort Association Request
Synopsis
Initiates the abortion of an association with the loss of all outstanding data.
Message Format
Description
Once an association is aborted, new data is not accepted for transmission and all outstanding data is lost.
Once the association has shutdown, it sends the user an association status message with a status of CLOSED
and reenters the Unconfigured state.
Parameters
•error
Error code sent to the peer to indicate the reason for the abort. See RFC2960, Section 3.3.10 for detailed
descriptions of the possible error codes.
Message Header
Field Name Meaning
type SCTP_MSG_ABORT (0x728c)
id Association ID
src Originating Module ID
dst SCTP Module
rsp_req Used to request a confirmation
hclass 0
status Non zero on error
err_info 0
len 2
Parameter Area
Offset Size Name
0 2 error
12
Chapter 3 Message Reference
3.1.4 SCTP_MSG_TX_REQ – SCTP Data Transfer Request
Synopsis
Queue a data packet for transmission on an association.
Message Format
Description
Data packets with more than 300 octets are not supported.
Data packets are rejected if the association is not currently established or an invalid stream ID is used.
If a response message has been requested, it is returned when either the packet is rejected (see above) or
the packet has been queued for transmission. The user has no method of determining when its peer has
acknowledged a specific data packet.
If the user attempts to send data faster than the peer can accept, SCTP buffers the data. If the amount of
data exceeds a predetermined value, the user is notified by a congestion status message that indicates
congestion has occurred. Once the amount of data is dropped to a lower predetermined level, a second
congestion status message is sent to the user indicating that congestion has abated. If the user continues to
send data after being notified that congestion has occurred and a second level has been passed, the user will
be informed that the data sent is being discarded.
Parameters
•data
Octets of data for transmission
•flags
SCTP transmission flags.
•stream
SCTP stream number for transmission.
•ppid
SCTP Payload Protocol Identifier (PPID)
Message Header
Field Name Meaning
type SCTP_MSG_TX_REQ (0xc280)
id Association ID
src Originating Module ID
dst SCTP Module
rsp_req Used to request a confirmation
hclass 0
status 0
err_info 0
len data len + 8
Parameter Area
Offset Size Name
0 data len data
data len 2 flags
data len +2 2 stream
data len + 4 4 ppid
Status Description
SCTP_UNBUNDLED Do not bundle the packet for first transmission
SCTP_UNORDERED Use unsequenced delivery
13
Dialogic® SS7 Protocols M2PA Programmer’s Manual Issue 3
3.2 Protocol Indications from SCTP to M2PA
Primitive protocol indications are sent from SCTP to M2PA in accordance with published M2PA
recommendations.
This section of the manual is applicable only to users intending to write or interface to their own SCTP
implementation. When using SCTP from the Dialogic® SS7 Protocols, this interface is already implemented
within the SCTP module.
The full list of protocol requests sent from SCTP to M2PA includes:
•STCP Association Status Change - Association status change
•STCP Association Data Transfer Indication - Received data packet
•STCP Association Network Status - Change in network status
•STCP Association Congestion Status - Change in the congestion status of the association
14
Chapter 3 Message Reference
3.2.1 SCTP_MSG_STATUS_CHANGE – STCP Association Status Change
Synopsis
A change in the association status has occurred.
Message Format
Description
This message is sent to the user application to indicate a change in state of the association. The status field
can be one of the values in the following table:
Parameters
•i_streams
Number of SCTP streams allocated for peer to host data transfer
•o_streams
Number of SCTP streams allocated for host to peer data transfer
Message Header
Field Name Meaning
type SCTP_MSG_STATUS_CHANGE (0x028d)
id Association ID
src Originating Module ID
dst User Application
rsp_req 0
hclass 0
status status
err_info 0
len 4
Parameter Area
Offset Size Name
0 2 i_streams
2 2 o_streams
Status Description
STATUS_CLOSED Association has entered the closed state.
STATUS_CONNECTING Association is attempting to connect to a peer.
STATUS_CONNECTED Association is available for data transfer.
STATUS_CLOSING Association is attempting a graceful shutdown.
STATUS_RESTART The peer has restarted the association. Data queued by the association
before it was restarted will be lost.
15
Dialogic® SS7 Protocols M2PA Programmer’s Manual Issue 3
3.2.2 SCTP_MSG_RX_IND – STCP Association Data Transfer Indication
Synopsis
Indicates the arrival of a data packet from the peer.
Message Format
Description
In the event of a data chunk of more then 300 octets being received from its peer, SCTP acknowledges the
packet as normal. However, the packet is then discarded (the user never sees the packet) and a
management message is generated.
Parameters
•data
Actual octets of data received.
•flags
Combinable SCTP transmission flags.
•stream
SCTP stream number for transmission
•ppid
SCTP Payload Protocol Identifier (PPID)
Message Header
Field Name Meaning
type SCTP_MSG_RX_IND (0x8281)
id Association ID
src Originating Module ID
dst SCTP Module
rsp_req 0
hclass 0
status 0
err_info 0
len data len + 8
Parameter Area
Offset Size Name
0 data len data
data len 2 flags
data len + 2 2 stream
data len + 4 4 ppid
Status Description
SCTP_UNORDERED Packet used unsequenced delivery
16
Chapter 3 Message Reference
3.2.3 SCTP_MSG_NETWORK_STATUS – STCP Association Network Status
Synopsis
Indicates a status change has occurred on a network address within the association.
Message Format
Description
Indicates to the user that either a network address that was previous available is now being marked as
inactive, or vice versa. The definition of an inactive address is one that has failed to respond to a
configurable number of sequential heartbeat requests. The status field can be one of the values in the
following table:
Parameters
•ip_type
The IP address format. See AppendixA, “Network Address Representation”.
•ip_addr
The IP address. See AppendixA, “Network Address Representation”.
Message Header
Field Name Meaning
type SCTP_MSG_NETWORK_STATUS (0x028e)
id Association ID
src Originating Module ID
dst User Application
rsp_req 0
hclass 0
status status
err_info 0
len 17
Parameter Area
Offset Size Name
0 1 ip_type
1 16 ip_addr
Status Description
ADDRESS_INACTIVE Network address has been marked inactive.
ADDRESS_ACTIVE Network address has been marked as available for data transfer.
17
Dialogic® SS7 Protocols M2PA Programmer’s Manual Issue 3
3.2.4 SCTP_MSG_CONG_STATUS – STCP Association Congestion Status
Synopsis
Indicates a status change has occurred with regard to transmitting congestion on an association.
Message Format
Description
Sent to the user to indicate the level of congestion on the association has changed. The status field can be
one of the values in the following table:
On reception of an SCTP_TX_CONG_ONSET message, the user should reduce the rate at which messages are
sent to SCTP. If the congestion clears, then an SCTP_TX_CONG_ABATE message is sent and the user can
continue as before. However, if the level of congestion rises after a SCTP_TX_CONG_ONSET message has
been sent, the system may send the user an SCTP_TX_CONG_DISCARD message. At this point, SCTP
discards any data messages sent by the user until the level of congestion has dropped to a safe level and an
SCTP_TX_CONG_ABATE message is sent.
Message Header
Field Name Meaning
type SCTP_MSG_CONG_STATUS (0x028f)
id Association ID
src Originating Module ID
dst User Application
rsp_req 0
hclass 0
status status
err_info 0
len 0
Status Description
SCTP_TX_CONG_ABATE Transmission queue is free to accept more messages
SCTP_TX_CONG_ONSET Transmission queue is experiencing congestion
SCTP_TX_CONG_DISCARD Transmission queue has been filled to capacity and has started to
discard messages queued for transmission
18
Chapter 3 Message Reference
3.3 Protocol Requests from MTP3 to M2PA
Primitive protocol requests are sent from MTP3 to M2PA in accordance with published M2PA
recommendations. The primitive names used for the M2PA module are closely aligned with the terminology
used in ITU-T Recommendation Q.703.
This section of the manual is applicable only to users intending to write or interface to their own MTP3
implementation. When using MTP3 from the Dialogic® SS7 Protocols, this interface is already implemented
within the MTP3 module.
The full list of protocol requests sent from MTP3 to MTP2 includes:
•API_MSG_TX_REQ – Message for Transmission Request
•SS7_MSG_START – M2PA Link Start Request
•SS7_MSG_STOP – M2PA Link Stop Request
•SS7_MSG_EMGCY – M2PA Set Emergency Request
•SS7_MSG_EMGCY_CLRD – M2PA Cancel Emergency Request
•SS7_MSG_RTV_BSNT – M2PA BSNT Retrieval Request
•SS7_MSG_RTVL_REQ – M2PA Retrieval Request
•SS7_MSG_LOC_PR_OUT – M2PA LPO Request
•SS7_MSG_LOC_PR_OK – MTP2 LPO Recovered Request
When sending messages to M2PA, the user should ensure that the message is sent to the correct
module_id and the correct Layer 2 Logical Link ID (l2_llid).
The hdr->id field of the message should be set to the correct l2_llid, which is in the range from zero up to
one less than the number of signaling links supported by the M2PA instance.
The hdr->rsp_req field may optionally be used to request a confirmation. If requested, the M2PA module
confirms acceptance of the primitive by sending the message back to its originator with bit14 cleared in the
type field of the message. This mechanism is described in detail in the Software Environment Programmer’s
Manual.
Note: Normal MTP3 operation does not require a response from M2PA for these primitives. The
mechanism is useful however when debugging an application.
19
Dialogic® SS7 Protocols M2PA Programmer’s Manual Issue 3
3.3.1 API_MSG_TX_REQ – Message for Transmission Request
Synopsis
Message issued to a board by MTP3 containing SS7 Message Signal Unit (MSU) tor transmission to the
network on specified signaling link.
Message Format
Description
This primitive is issued by MTP3 to request that M2PA transmit an MTP3 Message on the specified link. The
parameter area should commence with the MTP Routing Label.
Parameters
•MSU data
MSU data in binary format commencing with the Service Information Octet (SIO).
Message Header
Field Name Meaning
type API_MSG_TX_REQ (0xcf00)
id l2_llid
src Originating module_id
dst M2PA module_id
rsp_req 0
hclass 0
status 0
err_info 0
len Number of octets in MSU
Parameter Area
Offset Size Name
0 len MSU data
20
Chapter 3 Message Reference
3.3.2 SS7_MSG_START – M2PA Link Start Request
Synopsis
Request to start the initial alignment procedure for the specified link.
Message Format
Description
This primitive is issued by MTP3 to request that M2PA commence the initial alignment procedure. If the
procedure is successful, an In Service indication is issued. If alignment fails, an Out of Service indication is
issued.
If an EMERGENCY condition exists, then MTP3 should send an SS7_MSG_EMGCY message to M2PA prior to
sending the M2PA Link Start Request.
Changes of EMERGENCY condition can be notified by MTP3 to M2PA both prior to sending the M2PA Link Start
Request and during link alignment.
Note: Receipt of a confirmation message (if requested) does not imply that the initial alignment
procedure has been completed, merely that M2PA has recognized the request to start the
procedure.
Message Header
Field Name Meaning
type SS7_MSG_START (0xc204)
id l2_llid
src Originating module_id
dst M2PA module_id
rsp_req Sending layer’s bit set if response required
hclass 0
status 0
err_info 0
len 0
21
Dialogic® SS7 Protocols M2PA Programmer’s Manual Issue 3
3.3.3 SS7_MSG_STOP – M2PA Link Stop Request
Synopsis
Request to stop a signaling link.
Message Format
Description
This primitive is issued by MTP3 to request that M2PA stop the operation of a signaling link. The link is taken
to the Out of Service state without further indications being issued to MTP3.
Once a link has been stopped, MTP3 may request the Backward Sequence Number Transmitted (BSNT) and
initiate message retrieval if required.
Message Header
Field Name Meaning
type SS7_MSG_STOP (0xc205)
id l2_llid
src Originating module_id
dst M2PA module_id
rsp_req Sending layer’s bit set if response required
hclass 0
Status 0
err_info 0
Len 0
22
Chapter 3 Message Reference
3.3.4 SS7_MSG_EMGCY – M2PA Set Emergency Request
Synopsis
Request to use the emergency proving period on the next attempt at link alignment.
Message Format
Description
This primitive is issued by MTP3 prior to issuing the M2PA Link Start Request or during initial alignment to
cause the next attempt at link alignment to use the emergency proving period instead of the normal proving
period.
3.3.5 SS7_MSG_EMGCY_CLRD – M2PA Cancel Emergency Request
Synopsis
Request to cancel a previous M2PA Set Emergency Request.
Message Format
Description
This primitive is issued by MTP3 prior to canceling any previous Emergency requests and causes the next
attempt at link alignment to use the normal proving period.
Message Header
Field Name Meaning
type SS7_MSG_EMGCY (0xc207)
id l2_llid
src Originating module_id
dst M2PA module_id
rsp_req Sending layer’s bit set if response required
hclass 0
status 0
err_info 0
len 0
Message Header
Field Name Meaning
type SS7_MSG_EMGCY_CLRD (0xc208)
id l2_llid
src Originating module_id
dst M2PA module_id
rsp_req Sending layer’s bit set if response required
hclass 0
status 0
len 0
23
Dialogic® SS7 Protocols M2PA Programmer’s Manual Issue 3
3.3.6 SS7_MSG_RTV_BSNT – M2PA BSNT Retrieval Request
Synopsis
Request for BSNT retrieval.
Message Format
Description
This primitive is issued by MTP3 to request the sequence number of the last signal unit to be acknowledged,
the Backward Sequence Number Transmitted (BSNT). The response is issued by M2PA as an
SS7_MSG_RXD_BSNT indication.
Message Header
Field Name Meaning
type SS7_MSG_RTV_BSNT (0xc209)
id l2_llid
src Originating module_id
dst M2PA module_id
rsp_req Sending layer’s bit set if response required.
hclass 0
status 0
err_info 0
len 0
24
Chapter 3 Message Reference
3.3.7 SS7_MSG_RTVL_REQ – M2PA Retrieval Request
Synopsis
Request retrieval of unacknowledged messages.
Message Format
Description
This primitive is issued by MTP3 to request retrieval of all unacknowledged messages from the
retransmission buffer and the transmission buffer, commencing with the message containing a sequence
number immediately following the Forward Sequence Number Confirmed (FSNC) provided in the parameter
area of the message. These messages can then be retransmitted by MTP3 over an alternative signaling link.
M2PA responds with zero, one or more API_MSG_RTVD_MSG indications followed by an
SS7_MSG_RTVL_COMPL indication. Only messages with a FSN greater than the given FSNC are retrieved.
Parameters
•FSNC
Forward Sequence Number Confirmed. This is the sequence number of the first message to be retrieved.
If this is set to 0x80, then the extended_FSNC field is valid.
•reserved
Reserved for future use.
•extended_FSNC
Extended Forward Sequence Number Confirmed. A 32-bit value; MSB first. This field is used when 24-bit
sequence numbers are in use.
Message Header
Field Name Meaning
type SS7_MSG_RTVL_REQ (0xc20a)
id l2_llid
src Originating module_id
dst M2PA module_id
rsp_req Sending layer’s bit set if response required.
hclass 0
status 0
err_info 0
len 6
Parameter Area
Offset Size Name
0 1 FSNC
1 1 reserved
2 4 extended_FSNC
25
Dialogic® SS7 Protocols M2PA Programmer’s Manual Issue 3
3.3.8 SS7_MSG_LOC_PR_OUT – M2PA LPO Request
Synopsis
Request to notify M2PA of a local processor outage condition.
Message Format
Description
This primitive is issued either by MTP3 or by management to notify M2PA of a local processor outage
condition and to request that M2PA take the appropriate action to deal with such a condition.
3.3.9 SS7_MSG_LOC_PR_OK – MTP2 LPO Recovered Request
Synopsis
Request to notify M2PA that the local processor outage condition has cleared.
Message Format
Description
This primitive is issued either by MTP3 or by management to notify M2PA that the local processor outage
condition has cleared and to request that M2PA take the appropriate action to deal with such a condition.
Message Header
Field Name Meaning
type SS7_MSG_LOC_PR_OUT (0xc20b)
id l2_llid
src Originating module_id
dst M2PA module_id
rsp_req Sending layer’s bit set if response required.
hclass 0
status 0
err_info 0
len 0
Message Header
Field Name Meaning
type SS7_MSG_LOC_PR_OK (0xc20c)
id l2_llid
src Originating module_id
dst M2PA module_id
rsp_req Sending layer’s bit set if response required.
hclass 0
status 0
err_info 0
len 0
26
Chapter 3 Message Reference
3.4 Protocol Indications from M2PA to MTP3
Primitive protocol indications are sent from M2PA to MTP3 in accordance with published M2PA
recommendations. The primitive names used for the M2PA module are closely aligned with the terminology
used in ITU-T Recommendation Q.703.
Note: This section of the manual is applicable only to users intending to write or interface to their own
SCTP implementation. When using the Dialogic® SS7 protocols SCTP module, this interface is
already implemented by the SCTP module.
The list of protocol requests sent from M2PA to MTP3 includes:
•API_MSG_RX_IND – Received Message Indication
•SS7_MSG_IN_SVC – M2PA In Service Indication
•SS7_MSG_OUT_SVC – M2PA Out of Service Indication
•SS7_MSG_REM_PR_OUT – M2PA RPO Indication
•SS7_MSG_REM_PR_OK – M2PA RPO Cleared Indication
•SS7_MSG_RXD_BSNT – M2PA BSNT Indication
•API_MSG_RTVD_MSG – M2PA Retrieved Message Indication
•SS7_MSG_RTVL_COMPL – M2PA Retrieval Complete Indication
•MTP_MSG_RTVL_NOT_POS – M2PA Retrieval Failure Indication
•MTP_MSG_LINK_CONG – M2PA Link Congested Indication
•MTP_MSG_LINK_UNCONG – M2PA Congestion Cleared Indication
•MTP_MSG_FLUSH_ACK – M2PA Flush Acknowledgement Indication
All primitives generated by the M2PA module are sent to the “upper” module, as defined at configuration
time for each link. This should be set to the correct module_id for the MTP3 module.
The hdr->id field is always set to the l3_link_id as configured for the link at configuration time. Note that
this need not be the same as the l2_llid. The use of the l3_link_id means that it is not necessary for the
receiving module (for example, MTP3) to examine the sending module_id from which the message was
received.
The MTP3 (or “upper”) module is responsible for releasing the message using the relm() library function.
27
Dialogic® SS7 Protocols M2PA Programmer’s Manual Issue 3
3.4.1 API_MSG_RX_IND – Received Message Indication
Synopsis
Containing received Message Signal Unit (MSU) destined to MTP3.
Message Format
Parameters
•MSU data
MSU data in binary format commencing with the Service Indicator Octet (SIO).
Message Header
Field Name Meaning
type API_MSG_RX_IND (0x8f01)
id l3_link_id
src M2PA module_id
dst upper module_id (eg. MTP3)
rsp_req 0
hclass 0
status 0
err_info 0
len Number of octets in MSU
Parameter Area
Offset Size Name
0 len MSU data
28
Chapter 3 Message Reference
3.4.2 SS7_MSG_IN_SVC – M2PA In Service Indication
Synopsis
Indicates that the signaling link is in service.
Message Format
Description
This primitive is issued by M2PA to the “upper” module to indicate the successful completion of the link
alignment procedure.
Note: The id field of this message (and all indications to the “upper” module) contains the l3_link_id,
which is a configuration parameter for the link and need not be the same as the l2_llid, which is
used in messages sent to M2PA.
Message Header
Field Name Meaning
type SS7_MSG_IN_SVC (0x8303)
id l3_link_id
src M2PA module_id
dst upper module_id (eg. MTP3)
rsp_req 0
hclass 0
status 0
err_info 0
len 0
29
Dialogic® SS7 Protocols M2PA Programmer’s Manual Issue 3
3.4.3 SS7_MSG_OUT_SVC – M2PA Out of Service Indication
Synopsis
Indicates that the signaling link has failed.
Message Format
Description
This primitive is issued by M2PA to the “upper” module to indicate that the signaling link is Out of Service,
either due to an excessive error rate or a failure to complete the alignment operation.
3.4.4 SS7_MSG_REM_PR_OUT – M2PA RPO Indication
Synopsis
Indicates a Remote Processor Outage (RPO) condition.
Message Format
Description
This primitive is issued by M2PA to the “upper” module to indicate that a Remote Processor Outage (RPO)
condition has been detected.
Message Header
Field Name Meaning
type SS7_MSG_OUT_SVC (0x8304)
id l3_link_id
src M2PA module_id
dst upper module_id (eg. MTP3)
rsp_req 0
hclass 0
status 0
err_info 0
len 0
Message Header
Field Name Meaning
type SS7_MSG_REM_PR_OUT (0x8305)
id l3_link_id
src M2PA module_id
dst upper module_id (eg. MTP3)
rsp_req 0
hclass 0
status 0
err_info 0
len 0
30
Chapter 3 Message Reference
3.4.5 SS7_MSG_REM_PR_OK – M2PA RPO Cleared Indication
Synopsis
Indicates the clearing of a Remote Processor Outage (RPO) condition.
Message Format
Description
This primitive is issued by M2PA to the “upper” module to indicate that a signaling link that was previously in
the Remote Processor Outage (RPO) condition has now recovered.
Message Header
Field Name Meaning
type SS7_MSG_REM_PR_OK (0x8306)
id l3_link_id
src M2PA module_id
dst upper module_id (eg. MTP3)
rsp_req 0
hclass 0
status 0
err_info 0
len 0
31
Dialogic® SS7 Protocols M2PA Programmer’s Manual Issue 3
3.4.6 SS7_MSG_RXD_BSNT – M2PA BSNT Indication
Synopsis
Indicates the BSNT.
Message Format
Parameters
•BSNT
Backward Sequence Number Transmitted. Set to 0x80 to indicate extended BSNT.
•reserved
Reserved for future use. Set to zero.
•extended_BSNT
Extended Backward Sequence Number Transmitted. A 32-bit value; MSB first.
Description
This primitive is issued by M2PA in response to a M2PA BSNT Retrieval Request. It contains the BSNT in the
parameter area of the message.
Message Header
Field Name Meaning
type SS7_MSG_RXD_BSNT (0x8307)
id l3_link_id
src M2PA module_id
dst upper module_id (eg. MTP3)
rsp_req 0
hclass 0
status 0
err_info 0
len 1
Parameter Area
Offset Size Name
0 1 BSNT
1 1 reserved
2 4 extended_BSNT
32
Chapter 3 Message Reference
3.4.7 API_MSG_RTVD_MSG – M2PA Retrieved Message Indication
Synopsis
Primitive issued by M2PA to MTP3 to indicate the next MSU retrieved from the transmission or retransmission
buffer.
Message Format
Description
This primitive is used to pass retrieved messages from M2PA to MTP3 to allow them to be retransmitted
down another link.
Parameters
•MSU data
MSU data in binary format commencing with the Service Indicator Octet (SIO).
Message Header
Field Name Meaning
type API_MSG_RTVD_MSG (0x8f08)
id l2_llid
src M2PA module_id
dst Destination module (M2PA upper_id)
rsp_req 0
hclass 0
status 0
err_info 0
len Number of octets in MSU
Parameter Area
Offset Size Name
0 len MSU data
33
Dialogic® SS7 Protocols M2PA Programmer’s Manual Issue 3
3.4.8 SS7_MSG_RTVL_COMPL – M2PA Retrieval Complete Indication
Synopsis
Indicates the completion of the message retrieval procedure.
Message Format
Description
This primitive is issued by M2PA to the “upper” module to indicate that any messages for retrieval have been
conveyed using M2PA Retrieved Message Indication messages, so the retrieval procedure is complete.
Message Header
Field Name Meaning
type SS7_MSG_RTVL_COMPL (0x8309)
id l3_link_id
src M2PA module_id
dst upper module_id (eg. MTP3)
rsp_req 0
hclass 0
status 0
err_info 0
len 0
34
Chapter 3 Message Reference
3.4.9 MTP_MSG_RTVL_NOT_POS – M2PA Retrieval Failure Indication
Synopsis
Indicates that it is not possible to carry out message retrieval.
Message Format
Description
This primitive is issued by M2PA to the “upper” module to indicate that for some reason it is not possible to
carry out or complete the message retrieval procedure. Any retrieved messages issued to MTP3 should
therefore be discarded. The message is issued instead of a M2PA Retrieval Complete Indication.
Message Header
Field Name Meaning
type MTP_MSG_RTVL_NOT_POS (0x8315)
id l3_link_id
src M2PA module_id
dst upper module_id (eg. MTP3)
rsp_req 0
hclass 0
status 0
err_info 0
len 0
35
Dialogic® SS7 Protocols M2PA Programmer’s Manual Issue 3
3.4.10 MTP_MSG_LINK_CONG – M2PA Link Congested Indication
Synopsis
Provides notification of signaling link congestion.
Message Format
Description
This primitive is issued by M2PA on detection of link congestion or a change in the congestion status of a link.
Congestion is detected when the total number of messages stored in the transmit and retransmit buffers
exceeds a configurable congestion onset threshold. The module can be configured with either a single
congestion threshold or multiple congestion onset thresholds.
Parameters
•Congestion status
Indicates the level of congestion on the link.
Message Header
Field Name Meaning
type MTP_MSG_LINK_CONG (0x8312)
id l3_link_id
src M2PA module_id
dst upper module_id (eg. MTP3)
rsp_req 0
hclass 0
status 0
err_info 0