<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.yate.ro/wiki/index.php?action=history&amp;feed=atom&amp;title=Configuring_M2PA</id>
	<title>Configuring M2PA - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://docs.yate.ro/wiki/index.php?action=history&amp;feed=atom&amp;title=Configuring_M2PA"/>
	<link rel="alternate" type="text/html" href="https://docs.yate.ro/wiki/index.php?title=Configuring_M2PA&amp;action=history"/>
	<updated>2026-11-25T17:10:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://docs.yate.ro/wiki/index.php?title=Configuring_M2PA&amp;diff=8053&amp;oldid=prev</id>
		<title>Liviu: /* Debugging */</title>
		<link rel="alternate" type="text/html" href="https://docs.yate.ro/wiki/index.php?title=Configuring_M2PA&amp;diff=8053&amp;oldid=prev"/>
		<updated>2017-10-26T10:45:00Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Debugging&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:45, 26 October 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l129&quot;&gt;Line 129:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 129:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;See also&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;See also&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [[M2PA VS M2UA]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Configure M2UA]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Configure M2UA]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [[M2PA VS M2UA]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Liviu</name></author>
	</entry>
	<entry>
		<id>https://docs.yate.ro/wiki/index.php?title=Configuring_M2PA&amp;diff=8052&amp;oldid=prev</id>
		<title>Liviu: /* Debugging */</title>
		<link rel="alternate" type="text/html" href="https://docs.yate.ro/wiki/index.php?title=Configuring_M2PA&amp;diff=8052&amp;oldid=prev"/>
		<updated>2017-10-26T10:44:39Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Debugging&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:44, 26 October 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l130&quot;&gt;Line 130:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 130:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Configure M2UA]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Configure M2UA]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [[M2PA VS M2UA]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Liviu</name></author>
	</entry>
	<entry>
		<id>https://docs.yate.ro/wiki/index.php?title=Configuring_M2PA&amp;diff=7993&amp;oldid=prev</id>
		<title>Liviu: Created page with &quot;M2PA is a peer to peer SS7 layer 2 protocol. It was designed to replace MTP2 protocol in the IP scenarios. M2PA has some advantages over  MTP2: * The traffic is not limited to...&quot;</title>
		<link rel="alternate" type="text/html" href="https://docs.yate.ro/wiki/index.php?title=Configuring_M2PA&amp;diff=7993&amp;oldid=prev"/>
		<updated>2017-10-26T08:53:39Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;M2PA is a peer to peer SS7 layer 2 protocol. It was designed to replace MTP2 protocol in the IP scenarios. M2PA has some advantages over  MTP2: * The traffic is not limited to...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;M2PA is a peer to peer SS7 layer 2 protocol. It was designed to replace MTP2 protocol in the IP scenarios. M2PA has some advantages over  MTP2:&lt;br /&gt;
* The traffic is not limited to classical 64 Kb/s SS7 link speed.&lt;br /&gt;
* Does not require the endpoints to have a classic SS7 64Kb/s wire between them, because the use of internet for data transport.&lt;br /&gt;
An M2PA connections is made between two SS7 nodes, which implies that both nodes must have their own SS7 Point Code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
&lt;br /&gt;
M2PA can be used when is required to:&lt;br /&gt;
*interconnect two SS7 signaling nodes over IP.&lt;br /&gt;
&lt;br /&gt;
[[File:m2pa_inter_gw_comm.png]]&lt;br /&gt;
&lt;br /&gt;
*switch the SS7 traffic from a classic TDM to IP based&lt;br /&gt;
&lt;br /&gt;
Note! This can be also done by using M2UA protocol but then no additional layer 3 processing can be done on the gateway part.&amp;lt;br&amp;gt;&lt;br /&gt;
For a better understanding of the diferences between M2UA and M2PA you should read the [[M2PA VS M2UA|this]] document.&lt;br /&gt;
&lt;br /&gt;
[[File:m2pa_inter_connect.png]]&lt;br /&gt;
&lt;br /&gt;
As MTP2, M2PA has its own link status management procedure which is directly managed by the SS7 layer 3 attached to it.&lt;br /&gt;
&lt;br /&gt;
==Link status management==&lt;br /&gt;
&lt;br /&gt;
M2PA link states:&lt;br /&gt;
* OutOfService - The link is out of service;&lt;br /&gt;
* Alignment - The link alignment procedure is starting.&lt;br /&gt;
* ProvingNormal - Normal link proving period.&lt;br /&gt;
* ProvingEmergency - Emergency link proving period.&lt;br /&gt;
* Ready - The link is ready to process and deliver messages.&lt;br /&gt;
&lt;br /&gt;
A M2PA link starts in the OutOfService state. If autostart configuration option is set to true, then the link will automatically start the alignment procedure.&lt;br /&gt;
If autostart option is set to false then alignment procedure is started when it is requested by attached SS7 layer 3 or when it is manually requested from rmanager.&lt;br /&gt;
&lt;br /&gt;
The image below illustrates the M2PA alignment procedure.&lt;br /&gt;
&lt;br /&gt;
[[File:m2pa_link_align_message_flow.png]]&lt;br /&gt;
&lt;br /&gt;
==Protocol specifications==&lt;br /&gt;
&lt;br /&gt;
The M2PA protocol was designed to use two SCTP streams. Stream 0 for Link Status Messages and Stream 1 for Data Messages.&amp;lt;br&amp;gt;&lt;br /&gt;
Registered port for M2PA protocol is 3565 and it uses the value 5 as protocol identifier in SCTP Payload Data chunk.&lt;br /&gt;
&lt;br /&gt;
==Protocol In YATE==&lt;br /&gt;
&lt;br /&gt;
===Implementation===&lt;br /&gt;
&lt;br /&gt;
M2PA implementation in YATE is located in ysig library.&lt;br /&gt;
The method&amp;#039;s declaration is in libs/ysig/yatesig.h and the implementation in libs/ysig/sigtran.cpp&lt;br /&gt;
Class name SS7M2PA.&lt;br /&gt;
&lt;br /&gt;
===Interconnection===&lt;br /&gt;
&lt;br /&gt;
M2PA uses sigtransport module to obtain the transport layer and provides methods to interconnect with SS7 layer 3 protocols.&amp;lt;br&amp;gt;&lt;br /&gt;
M2PA uses two [[Configure SCTP|SCTP]] streams. One for Link status messages (stream 0) and one for data messages (stream 1).&lt;br /&gt;
&lt;br /&gt;
===Configuration===&lt;br /&gt;
&lt;br /&gt;
A M2PA link can be configured in ysigchan.conf file.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 NOTE! M2PA is a created on demand! If it is not referenced by a layer 3 component it will not be created.&lt;br /&gt;
&lt;br /&gt;
 [m2pa]&lt;br /&gt;
 type=ss7-m2pa      ; Component type&lt;br /&gt;
 sig=m2pa-sctp      ; The underlying transport reference to sigtransport.conf&lt;br /&gt;
 t1=45000           ; T1 Alignment ready timer ~45s&lt;br /&gt;
 t2=5000            ; T2 Not Aligned timer ~5s&lt;br /&gt;
 t3=1000            ; T3 Aligned timer ~1s&lt;br /&gt;
 t4=500             ; T4 Proving timer Normal ~8s, Emergency ~0.5s&lt;br /&gt;
 ack_timer= 1000    ; Acknowledge timer ~1s&lt;br /&gt;
 conf_timer=50      ; Confirmation timer 1/2 t4&lt;br /&gt;
 oos_timer=3000     ; Out Of Service timer&lt;br /&gt;
 wait_oos=500       ; Wait Out Of Service timer&lt;br /&gt;
 conn_test=50000    ; Timer used to declare connection down if conn_threshold is reached&lt;br /&gt;
 conn_threshold=3   ; Maximum number of link fail. If this counter is reached in conn_test interval the underlying transport is restarted&lt;br /&gt;
 max_unack=4        ; Maximum unacknowledged messages, max_unack+1 will force an ACK&lt;br /&gt;
 max_queue_size=256 ; Maximum number of messages send and not acknowledged by remote peer&lt;br /&gt;
 dumpMsg=false      ; True to print M2PA messages&lt;br /&gt;
 autostart=true     ; True to auto start link alignment&lt;br /&gt;
&lt;br /&gt;
===Status===&lt;br /&gt;
&lt;br /&gt;
To find the status of a M2PA link you can run the command &amp;quot;status sig links&amp;quot; from rmanager.&lt;br /&gt;
&lt;br /&gt;
===Control===&lt;br /&gt;
&lt;br /&gt;
M2PA Control commands:&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;mediawiki&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|Pause        || control M2PA_NAME pause            || Pause this link message delivery&lt;br /&gt;
|-&lt;br /&gt;
|Resume       || control M2PA_NAME resume           || Align this link if it is not already aligned and it can auto start&lt;br /&gt;
|-&lt;br /&gt;
|Align        || control M2PA_NAME align            || Force this to start Align algorithm&lt;br /&gt;
|-&lt;br /&gt;
|TransRestart || control M2PA_NAME transport_restart|| Force the underlying transport to reconnect the socket&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
M2PA Control parameters update&lt;br /&gt;
*autostart; autostart=boolean Update autostart flag.&lt;br /&gt;
&lt;br /&gt;
===Debugging===&lt;br /&gt;
&lt;br /&gt;
*Link creation failed&lt;br /&gt;
The M2PA link will fail to create if the underlying transport could not be created. This mainly happens if the section referenced by &amp;#039;&amp;#039;&amp;#039;sig&amp;#039;&amp;#039;&amp;#039; parameter from configuration does not exist in sigtransport.conf file.&lt;br /&gt;
&lt;br /&gt;
*The link is not created. This can happen for two reasons:&lt;br /&gt;
** The link is not referenced by any layer 3 in ysigchan.conf file&lt;br /&gt;
** In M2PA configuration section the parameter &amp;#039;&amp;#039;enable&amp;#039;&amp;#039; is present with a negative value.&lt;br /&gt;
&lt;br /&gt;
*The link status is OutOfService. The link will be in OutOfService state under the following conditions:&lt;br /&gt;
**The link was forced to be in OutOfService state by a rmanager command.&lt;br /&gt;
**The “autostart” configuration option is set to false.&lt;br /&gt;
**The transport layer could not establish a connection with the remote peer.&lt;br /&gt;
&lt;br /&gt;
*Aborting Alignment. A M2PA link will abort the alignment in the following conditions:&lt;br /&gt;
**A message was send and it was not acknowledged by the remote peer before acknowledge timer expired.&lt;br /&gt;
**A message with wrong sequence number was received.&lt;br /&gt;
**There are to many unacknowledged messages by remote peer.&lt;br /&gt;
**The transport layer is down.&lt;br /&gt;
**The remote peer requested to go down.&lt;br /&gt;
**A rmanager command requested to go down.&lt;br /&gt;
&lt;br /&gt;
 NOTE! Under high CPU load and traffic the alignment can be dropped by the remote peer because the system may trigger the M2PA timers with a certain delay.&lt;br /&gt;
&lt;br /&gt;
As for yate SS7 developers please avoid doing any heavy lifting in SigEngine timer tick thread.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;See also&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* [[Configure M2UA]]&lt;/div&gt;</summary>
		<author><name>Liviu</name></author>
	</entry>
</feed>