-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrfc4165.txt
More file actions
2971 lines (1904 loc) · 112 KB
/
Copy pathrfc4165.txt
File metadata and controls
2971 lines (1904 loc) · 112 KB
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
Network Working Group T. George
Request for Comments: 4165 B. Bidulock
Category: Standards Track OpenSS7
R. Dantu
University of North Texas
H. Schwarzbauer
Siemens
K. Morneault
Cisco Systems
September 2005
Signaling System 7 (SS7) Message Transfer Part 2 (MTP2) -
User Peer-to-Peer Adaptation Layer (M2PA)
Status of This Memo
This document specifies an Internet standards track protocol for the
Internet community, and requests discussion and suggestions for
improvements. Please refer to the current edition of the "Internet
Official Protocol Standards" (STD 1) for the standardization state
and status of this protocol. Distribution of this memo is unlimited.
Copyright Notice
Copyright (C) The Internet Society (2005).
Abstract
This document defines a protocol supporting the transport of
Signaling System Number 7 (SS7) Message Transfer Part (MTP) Level 3
signaling messages over Internet Protocol (IP) using the services of
the Stream Control Transmission Protocol (SCTP). This protocol would
be used between SS7 Signaling Points using the MTP Level 3 protocol.
The SS7 Signaling Points may also use standard SS7 links using the
SS7 MTP Level 2 to provide transport of MTP Level 3 signaling
messages. The protocol operates in a manner similar to MTP Level 2
so as to provide peer-to-peer communication between SS7 endpoints.
George, et al. Standards Track [Page 1]
RFC 4165 SS7 MTP2-User Peer-to-Peer Adaptation Layer September 2005
Table of Contents
1. Introduction ....................................................3
1.1. Scope ......................................................3
1.2. Terminology ................................................3
1.3. Abbreviations ..............................................4
1.4. Conventions ................................................5
1.5. Signaling Transport Architecture ...........................5
1.6. Services Provided by M2PA ..................................7
1.7. Functions Provided by M2PA .................................9
1.8. Definition of the M2PA Boundaries .........................10
1.9. Differences Between M2PA and M2UA .........................10
2. Protocol Elements ..............................................12
2.1. Common Message Header .....................................12
2.2. M2PA Header ...............................................13
2.3. M2PA Messages .............................................14
3. State Control ..................................................17
3.1. SCTP Association State Control ............................17
3.2. M2PA Link State Control ...................................18
4. Procedures .....................................................19
4.1. Procedures to Support MTP2 Features .......................19
4.2. Procedures to Support the MTP3/MTP2 Interface .............30
4.3. SCTP Considerations .......................................33
5. Examples of M2PA Procedures ....................................34
5.1. Link Initialization (Alignment) ...........................34
5.2. Message Transmission and Reception ........................37
5.3. Link Status Indication ....................................37
5.4. Link Status Message (Processor Outage) ....................38
5.5. Level 2 Flow Control ......................................42
5.6. MTP3 Signaling Link Congestion ............................44
5.7. Link Deactivation .........................................45
5.8. Link Changeover ...........................................45
6. Security Considerations ........................................47
7. IANA Considerations ............................................47
7.1. SCTP Payload Protocol Identifier ..........................47
7.2. M2PA Protocol Extensions ..................................48
8. Acknowledgements ...............................................49
9. References .....................................................50
9.1. Normative References ......................................50
9.2. Informative References ....................................51
George, et al. Standards Track [Page 2]
RFC 4165 SS7 MTP2-User Peer-to-Peer Adaptation Layer September 2005
1. Introduction
1.1. Scope
There is a need for Switched Circuit Network (SCN) signaling protocol
delivery over an IP network. This includes message transfer between
the following:
- a Signaling Gateway (SG) and a Media Gateway Controller (MGC)
[RFC2719]
- a SG and an IP Signaling Point (IPSP)
- an IPSP and an IPSP
This could allow for convergence of some signaling and data networks.
SCN signaling nodes would have access to databases and other devices
in the IP network domain that do not use SS7 signaling links.
Likewise, IP telephony applications would have access to SS7
services. There may also be operational cost and performance
advantages when traditional signaling links are replaced by IP
network "connections".
The delivery mechanism described in this document allows for full
MTP3 message handling and network management capabilities between any
two SS7 nodes communicating over an IP network. An SS7 node equipped
with an IP network connection is called an IP Signaling Point (IPSP).
The IPSPs function as traditional SS7 nodes using the IP network
instead of SS7 links.
The delivery mechanism should:
- Support seamless operation of MTP3 protocol peers over an IP
network connection.
- Support the MTP Level 2 / MTP Level 3 interface boundary.
- Support management of SCTP transport associations and traffic
instead of MTP2 Links.
- Support asynchronous reporting of status changes to management.
1.2. Terminology
MTP - The Message Transfer Part of the SS7 protocol [Q.700] [Q.701]
[Q.702] [Q.703] [Q.704] [Q.705] [T1.111].
MTP2 - MTP Level 2, the MTP signaling link layer.
George, et al. Standards Track [Page 3]
RFC 4165 SS7 MTP2-User Peer-to-Peer Adaptation Layer September 2005
MTP3 - MTP Level 3, the MTP signaling network layer.
MTP2-User - A protocol that normally uses the services of MTP Level
2. The only MTP2 user is MTP3. The MTP2 user is equivalent to the
M2PA user.
Signaling End Point (SEP) - An SS7 Signaling Point that originates or
terminates signaling messages. One example is a central office
switch. [RFC2719]
IP Signaling Point (IPSP) - An SS7 Signaling Point with an IP network
connection used for SS7 over IP.
Signaling Gateway (SG) - A signaling agent that receives/sends SCN
native signaling at the edge of the IP network [RFC2719]. In this
context, an SG is an SS7 Signaling Point that has both an IP network
connection used for SS7 over IP, and a traditional (non-IP) link to
an SS7 network.
Signal Transfer Point (STP) - A Signal Transfer Point as defined by
MTP standards, e.g., [Q.700].
Signaling Point (STP) - A Signaling Point as defined by MTP
standards, e.g., [Q.700].
Association - An association refers to an SCTP association [RFC2960].
The association provides the transport for MTP3 protocol data units
and M2PA adaptation layer peer messages.
Network Byte Order - Most significant byte first, also known as "Big
Endian". See [RFC791], Appendix B "Data Transmission Order".
Stream - A stream refers to an SCTP stream [RFC2960].
1.3. Abbreviations
BSNT - Backward Sequence Number to be Transmitted
FSNC - Forward Sequence Number of last message accepted by remote
level 2
LI - Length Indicator
MSU - Message Signal Unit
SCCP - Signaling Connection Control Part
SCN - Switched Circuit Network
George, et al. Standards Track [Page 4]
RFC 4165 SS7 MTP2-User Peer-to-Peer Adaptation Layer September 2005
SCTP - Stream Control Transmission Protocol
SIF - Signaling Information Field
SIO - Service Information Octet
SLC - Signaling Link Code
SS7 - Signaling System Number 7
SSN - Stream Sequence Number
STP - Signal Transfer Point
1.4. Conventions
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in [RFC2119].
1.5. Signaling Transport Architecture
The architecture that has been defined [RFC2719] for Switched Circuit
Network (SCN) signaling transport over IP uses multiple components,
including an IP transport protocol, the Stream Control Transmission
Protocol (SCTP), and an adaptation module to support the services
expected by a particular SCN signaling protocol from its underlying
protocol layer.
Within this framework architecture, this document defines an SCN
adaptation module that is suitable for the transport of SS7 MTP3
messages. The adaptation layer, known as the MTP2 User Peer-to-peer
Adaptation Layer (M2PA), provides MTP3 with an interface and services
similar to MTP2. In effect, MTP2 and lower layers of the traditional
SS7 protocol stack are replaced by an IP equivalent.
Figure 1 shows the seamless interworking at the MTP3 layer. MTP3 is
adapted to the SCTP layer using the MTP2 User Peer-to-peer Adaptation
Layer (M2PA). All the primitives between MTP3 and MTP2 are supported
by M2PA. The SCTP association acts as one SS7 link between the
IPSPs. An IPSP may have the Signaling Connection Control Part (SCCP)
and other SS7 layers above MTP3.
George, et al. Standards Track [Page 5]
RFC 4165 SS7 MTP2-User Peer-to-Peer Adaptation Layer September 2005
******** IP ********
* IPSP *--------* IPSP *
******** ********
+------+ +------+
| TCAP | | TCAP |
+------+ +------+
| SCCP | | SCCP |
+------+ +------+
| MTP3 | | MTP3 |
+------+ +------+
| M2PA | | M2PA |
+------+ +------+
| SCTP | | SCTP |
+------+ +------+
| IP | | IP |
+------+ +------+
IP - Internet Protocol
IPSP - IP Signaling Point
SCTP - Stream Control Transmission Protocol [RFC2960]
Figure 1. M2PA Symmetrical Peer-to-Peer Architecture
Figure 2 shows an example of M2PA used in a Signaling Gateway (SG).
The SG is an IPSP that is equipped with both traditional SS7 and IP
network connections.
The SEP and the SG communicate through a traditional SS7 link, which
follows a protocol such as [Q.702]. The SG and the IPSP communicate
through an IP link using the M2PA protocol. Messages sent from the
SEP to the IPSP (and vice versa) are routed by the SG.
Any of the nodes in the diagram could have SCCP or other SS7 layers
above MTP3. The Signaling Gateway acts as a Signal Transfer Point
(STP). Other STPs MAY be present in the SS7 path between the SEP and
the SG.
George, et al. Standards Track [Page 6]
RFC 4165 SS7 MTP2-User Peer-to-Peer Adaptation Layer September 2005
******** SS7 *************** IP ********
* SEP *--------* SG *--------* IPSP *
******** *************** ********
+------+ +------+
| TCAP | | TCAP |
+------+ +------+
| SCCP | | SCCP |
+------+ +-------------+ +------+
| MTP3 | | MTP3 | | MTP3 |
+------+ +------+------+ +------+
| MTP2 | | MTP2 | M2PA | | M2PA |
| | | +------+ +------+
| | | | SCTP | | SCTP |
+------+ +------+------+ +------+
| MTP1 | | MTP1 | IP | | IP |
+------+ +------+------+ +------+
SEP - SS7 Signaling Endpoint
Figure 2. M2PA in IP Signaling Gateway
Figure 2 is only an example. Other configurations are possible. In
short, M2PA uses the SCTP association as an SS7 link. The
M2PA/SCTP/IP stack can be used in place of an MTP2/MTP1 stack.
1.5.1. Point Code Representation
MTP requires that each node with an MTP3 layer is identified by an
SS7 point code. In particular, each IPSP MUST have its own SS7 point
code.
1.6. Services Provided by M2PA
The SS7 MTP3/MTP2 (MTP2-User) interface is retained in the IPSP. The
M2PA protocol layer is required to provide a set of services to its
user equivalent to that provided by MTP Level 2 to MTP Level 3.
These services are described in the following subsections.
1.6.1. Support for MTP Level 2 / MTP Level 3 Interface Boundary
This interface is the same as the MTP2/MTP3 interface described in
the applicable SS7 standards [Q.703] [Q.704] [T1.111] [Q.2140], with
the addition of support for the larger sequence numbers found in
[T1.111] and [Q.2210].
George, et al. Standards Track [Page 7]
RFC 4165 SS7 MTP2-User Peer-to-Peer Adaptation Layer September 2005
M2PA receives the primitives sent from MTP3 to its lower layer. M2PA
processes these primitives or maps them to appropriate primitives at
the M2PA/SCTP interface. Likewise, M2PA sends primitives to MTP3
similar to those used in the MTP3/MTP2 interface.
Because M2PA uses larger sequence numbers than MTP2, the MTP3
Changeover procedure MUST use the Extended Changeover Order and
Extended Changeover Acknowledgement messages described in [Q.2210]
and [T1.111].
Also, the following MTP3/MTP2 primitives must use the larger sequence
numbers:
- BSNT Confirmation
- Retrieval Request and FSNC
1.6.2. Support for Peer-to-Peer Communication
In SS7, MTP Level 2 sends three types of messages, known as signal
units: Message Signal Units (MSUs), Link Status Signal Units (LSSUs),
and Fill-In Signal Units (FISUs).
MSUs originate at a higher level than MTP2, and are destined for a
peer at another node. Likewise, M2PA passes these messages from MTP3
to SCTP as data for transport across a link. These are called User
Data messages in M2PA.
LSSUs allow peer MTP2 layers to exchange status information.
Analogous messages are needed for M2PA. The Link Status message
serves this purpose.
FISUs are transmitted continuously when no other signal units are
waiting to be sent. FISUs also carry acknowledgement of messages.
Since an IP network is a shared resource, it would be undesirable to
have a message type that is sent continuously as is the case with
FISUs. Furthermore, SCTP does not require its upper layer to
continuously transmit messages. Therefore, M2PA does not provide a
protocol data unit like the FISU. The M2PA User Data message is used
to carry acknowledgement of messages. If M2PA needs to acknowledge a
message, and it has no MTP3 message of its own to send, an empty User
Data message can be sent.
George, et al. Standards Track [Page 8]
RFC 4165 SS7 MTP2-User Peer-to-Peer Adaptation Layer September 2005
1.7. Functions Provided by M2PA
1.7.1. MTP2 Functionality
M2PA provides MTP2 functionality that is not provided by SCTP; thus,
together M2PA and SCTP provide functionality similar to that of MTP2.
SCTP provides reliable, sequenced delivery of messages.
M2PA functionality includes:
- Data retrieval to support the MTP3 changeover procedure
- Reporting of link status changes to MTP3
- Processor outage procedure
- Link alignment procedure
1.7.2. Mapping of SS7 and IP Entities
The M2PA layer must maintain a map of each of its SS7 links to the
corresponding SCTP association.
1.7.3. SCTP Association Management
SCTP allows a user-specified number of streams to be opened during
the initialization. It is the responsibility of the M2PA layer to
ensure proper management of the streams allowed within each
association.
M2PA uses two streams in each direction for each association. Stream
0 in each direction is designated for Link Status messages. Stream 1
is designated for User Data messages, as well as Link Status messages
that must remain in sequence with the User Data messages. Separating
the Link Status and User Data messages into separate streams allows
M2PA to prioritize the messages in a manner similar to MTP2.
Notifications received from SCTP are processed by M2PA or translated
into an appropriate notification to be sent to the upper layer MTP3.
1.7.4. Retention of MTP3 in the SS7 Network
M2PA allows MTP3 to perform all of its Message Handling and Network
Management functions with IPSPs as it does with other SS7 nodes.
George, et al. Standards Track [Page 9]
RFC 4165 SS7 MTP2-User Peer-to-Peer Adaptation Layer September 2005
1.8. Definition of the M2PA Boundaries
1.8.1. Definition of the M2PA / MTP Level 3 Boundary
The upper layer primitives provided by M2PA are the same as those
provided by MTP2 to MTP3. These primitives are described in the
applicable SS7 standards [Q.703] [Q.704] [T1.111] [Q.2140].
1.8.2. Definition of the Lower Layer Boundary between M2PA and SCTP
The upper layer primitives provided by SCTP are described in
[RFC2960] Section 10 "Interface with Upper Layer".
1.9. Differences Between M2PA and M2UA
The MTP2 User Adaptation Layer (M2UA) [M2UA] also adapts the MTP3
layer to the SCTP/IP stack. It does so through a backhauling
architecture [RFC2719]. This section is intended to clarify some of
the differences between the M2PA and M2UA approaches.
A possible M2PA architecture is shown in Figure 3. Here the IPSP's
MTP3 uses its underlying M2PA as a replacement for MTP2.
Communication between the two layers MTP3/M2PA is defined by the same
primitives as in SS7 MTP3/MTP2. M2PA performs functions similar to
MTP2.
******** SS7 *************** IP ********
* SEP *--------* SG *--------* IPSP *
******** *************** ********
+------+ +-------------+ +------+
| SCCP | | SCCP | | SCCP |
+------+ +-------------+ +------+
| MTP3 | | MTP3 | | MTP3 |
+------+ +------+------+ +------+
| MTP2 | | MTP2 | M2PA | | M2PA |
| | | +------+ +------+
| | | | SCTP | | SCTP |
+------+ +------+------+ +------+
| MTP1 | | MTP1 | IP | | IP |
+------+ +------+------+ +------+
Figure 3. M2PA in IP Signaling Gateway
A comparable architecture for M2UA is shown in Figure 4. In M2UA,
the MGC's MTP3 uses the SG's MTP2 as its lower SS7 layer. Likewise,
the SG's MTP2 uses the MGC's MTP3 as its upper SS7 layer. In SS7,
George, et al. Standards Track [Page 10]
RFC 4165 SS7 MTP2-User Peer-to-Peer Adaptation Layer September 2005
communication between the MTP3 and MTP2 layers is defined by
primitives. In M2UA, the MTP3/MTP2 communication is defined as M2UA
messages and sent over the IP connection.
******** SS7 *************** IP ********
* SEP *--------* SG *--------* MGC *
******** *************** ********
+------+ +------+
| SCCP | | SCCP |
+------+ +------+
| MTP3 | (NIF) | MTP3 |
+------+ +------+------+ +------+
| MTP2 | | MTP2 | M2UA | | M2UA |
| | | +------+ +------+
| | | | SCTP | | SCTP |
+------+ +------+------+ +------+
| MTP1 | | MTP1 | IP | | IP |
+------+ +------+------+ +------+
NIF - Nodal Interworking Function
Figure 4. M2UA in IP Signaling Gateway
M2PA and M2UA are similar in that:
a. Both transport MTP3 data messages.
b. Both present an MTP2 upper interface to MTP3.
Differences between M2PA and M2UA include:
a. M2PA: IPSP processes MTP3/MTP2 primitives.
M2UA: MGC transports MTP3/MTP2 primitives between the SG's MTP2
and the MGC's MTP3 (via the NIF) for processing.
b. M2PA: SG-IPSP connection is an SS7 link.
M2UA: SG-MGC connection is not an SS7 link. It is an
extension of MTP to a remote entity.
c. M2PA: SG is an SS7 node with a point code.
M2UA: SG is not an SS7 node and has no point code.
d. M2PA: SG can have upper SS7 layers, e.g., SCCP.
M2UA: SG does not have upper SS7 layers since it has no MTP3.
e. M2PA: relies on MTP3 for management procedures.
M2UA: uses M2UA management procedures.
George, et al. Standards Track [Page 11]
RFC 4165 SS7 MTP2-User Peer-to-Peer Adaptation Layer September 2005
Potential users of M2PA and M2UA should be aware of these differences
when deciding how to use them for SS7 signaling transport over IP
networks.
2. Protocol Elements
This section describes the format of various messages used in this
protocol.
All fields in an M2PA message must be transmitted in the network byte
order, i.e., most significant byte first, unless otherwise stated.
2.1. Common Message Header
The protocol messages for M2PA require a message header structure
that contains a version, message class, message type, and message
length. The header structure is shown in Figure 5.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Version | Spare | Message Class | Message Type |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Message Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 5. Common Message Header
2.1.1. Version
The version field contains the version of M2PA. The supported
versions are:
Value
(decimal) Version
--------- -------
1 Release 1.0 of M2PA protocol
2.1.2. Spare
The Spare field SHOULD be set to all zeroes (0's) by the sender and
ignored by the receiver. The Spare field SHOULD NOT be used for
proprietary information.
George, et al. Standards Track [Page 12]
RFC 4165 SS7 MTP2-User Peer-to-Peer Adaptation Layer September 2005
2.1.3. Message Class
The following List contains the valid Message Classes:
Value
(decimal) Message Class
--------- -------------
11 M2PA Messages
Other values are invalid for M2PA.
2.1.4. Message Type
The following list contains the message types for the defined
messages.
Value
(decimal) Message Type
--------- -------------
1 User Data
2 Link Status
Other values are invalid.
2.1.5. Message Length
The Message Length defines the length of the message in octets,
including the Common Header.
2.2. M2PA Header
All protocol messages for M2PA require an M2PA-specific header. The
header structure is shown in Figure 6.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| unused | BSN |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| unused | FSN |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 6. M2PA-specific Message Header
2.2.1. Backward Sequence Number (BSN)
This is the FSN of the message last received from the peer.
George, et al. Standards Track [Page 13]
RFC 4165 SS7 MTP2-User Peer-to-Peer Adaptation Layer September 2005
2.2.2. Forward Sequence Number (FSN)
This is the M2PA sequence number of the User Data message being sent.
The FSN and BSN values range from 0 to 16,777,215.
2.3. M2PA Messages
The following section defines the messages and parameter contents.
An M2PA message consists of a Common Message Header and M2PA Header,
followed by the data appropriate to the message.
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
\ \
/ Common Message Header /
\ \
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
\ \
/ M2PA-specific Message Header /
\ \
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
\ \
/ Message Data /
\ \
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
The field "Message Data" contains either:
- a User Data message (Section 2.3.1), or
- a Link State message (Section 2.3.2)
2.3.1. User Data
The User Data is the data sent from MTP3. The User Data is an
optional field. It need not be included in an acknowledgement-only
message.
The format of the User Data message is as follows:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
\ \
/ Data /
\ \
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
George, et al. Standards Track [Page 14]
RFC 4165 SS7 MTP2-User Peer-to-Peer Adaptation Layer September 2005
The Data field contains the following fields of the MTP Message
Signal Unit (MSU):
- the Message Priority field (PRI)
- Service Information Octet (SIO)
- Signaling Information Field (SIF)
The MTP MSU is described in Q.703 [Q.703], Section 2.2, "Signal Unit
Format", and T1.111.3 [T1.111], Section 2.2, "Signal Unit Format".
The Japanese TTC standard uses the PRI field as an MTP3 Message
Priority field [JT-Q703] [JT-Q704]. For versions of MTP that do not
use these two bits, the entire first octet of the Data field is
spare.
The format of the first octet of the Data field is:
0
0 1 2 3 4 5 6 7
+-+-+-+-+-+-+-+-+
|PRI| spare | (followed by SIO, SIF)
+-+-+-+-+-+-+-+-+
PRI - Priority used only in national MTP defined in [JT-Q703] and
[JT-Q704]. These bits are spare for other MTP versions.
Note that the Data field SHALL NOT contain other components of the
MTP MSU format:
- Flag
- Backward Sequence Number (BSN)
- Backward Indicator Bit (BIB)
- Forward Sequence Number (FSN)
- Forward Indicator Bit (FIB)
- Length Indicator (LI)
- Check bits (CK)
The Data field SHALL be transmitted in the byte order as defined by
MTP3.
M2PA SHALL NOT add padding to the MTP3 message.
Note: In the SS7 Recommendations, the format of the messages and
fields within the messages are based on bit transmission order. In
these recommendations, the Least Significant Bit (LSB) of each field
is positioned to the right. The received SS7 fields are populated
octet by octet as received into the 4-octet word, as shown below.
George, et al. Standards Track [Page 15]
RFC 4165 SS7 MTP2-User Peer-to-Peer Adaptation Layer September 2005
As an example, in the ANSI MTP protocol, the Data field format is
shown below:
|MSB---------------------------------------------------------LSB|
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|PRI| spare | SIO | SIF octet | ... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
\ \
/ : /
\ \
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... | ... | ... | SIF octet |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Within each octet, the Least Significant Bit (LSB) per the SS7
Recommendations is to the right (e.g., bit 15 of SIO is the LSB).
2.3.2. Link Status
The MTP2 Link Status message can be sent between M2PA peers to
indicate link status. This message performs a function similar to
the Link Status Signal Unit in MTP2. The format of the Link Status
message is as follows:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| State |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
The valid values for State are shown in the following table.
Value
(decimal) Description
--------- -----------
1 Alignment
2 Proving Normal
3 Proving Emergency
4 Ready
5 Processor Outage
6 Processor Recovered
7 Busy
8 Busy Ended
9 Out of Service (OOS)
George, et al. Standards Track [Page 16]
RFC 4165 SS7 MTP2-User Peer-to-Peer Adaptation Layer September 2005
2.3.2.1. Link Status Proving
The Link Status Proving message may optionally carry additional
bytes. If the optional bytes are used, the format of the message is
as follows.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| State |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
\ \
/ filler /
\ \
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
It is RECOMMENDED that the length of the Link Status Proving message
be similar to the size of the User Data messages that will be carried
on the link.
It is RECOMMENDED that the filler field contain a number pattern that
varies among the Link Status Proving messages, and that allows the
SCTP checksum [RFC3309] to be used to verify the accuracy of
transmission.
3. State Control
3.1. SCTP Association State Control
Figure 7 illustrates state changes in the M2PA management of the SCTP
association, together with the causing events. Note that some of the
error conditions are not shown in the state diagram.
Following is a list of the M2PA Association States and a description
of each.
IDLE - State of the association during power-up initialization.
ASSOCIATING - M2PA is attempting to establish an SCTP association.
ESTABLISHED - SCTP association is established.
George, et al. Standards Track [Page 17]
RFC 4165 SS7 MTP2-User Peer-to-Peer Adaptation Layer September 2005
+-----------+
| IDLE |
+-----------+
|
| Associate
| (Issue SCTP associate)
|
| +----------------------+
| | (Issue SCTP |
V V associate) |
+-------------+ |
| ASSOCIATING |----------------->+
+-------------+ SCTP Comm Error |
| |
| |
| SCTP Comm Up |
| |
V |
+-------------+ |
| ESTABLISHED |----------------->+
+-------------+ SCTP Comm Error
OR SCTP Comm Lost
Figure 7. M2PA Association State Transition Diagram
3.2. M2PA Link State Control
The M2PA link moves from one state to another in response to various
events. The events that may result in a change of state include:
- MTP3 primitive requests
- Receipt of messages from the peer M2PA
- Expiration of timers
- SCTP notifications
These events affect the M2PA link state in a manner similar to MTP2.