⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 draft-george-sigtran-m2peer-01.txt

📁 No7信令,我需要交换类似的代码, 请店长审核,谢谢了,急着交换,谢谢
💻 TXT
📖 第 1 页 / 共 3 页
字号:
Internet Draft  SS7 MTP2-User Peer-to-Peer Adaptation Layer  May 20002.1 Common Message HeaderThe protocol messages for MTP2 User Adaptation require a messageheader structure which contains a version, message type and messagelength.  This message header is common among all SCN adaptationlayers. The header structure is shown in Figure 3.    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 Type          |   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+   |                        Message Length                         |   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+   |                                                               |                 Figure 3:  Common Message Header2.1.1  VersionThe version field (vers) contains the version of the M2UA adapation layer.  The supported versions are:      01   Release 1.0 of M2UA adaptation protocol2.1.2  Message TypeThe valid message types are defined below and the message contents aredescribed in Section 2.2.  Each message can contain parameters.The following list contains the message types for the defined messages.     MTP2 User Adaptatation Messages        Type                     Value (Hex)        User Data                0601        Link Status              0602       2.1.3  Message LengthThe Message length defines the length of the message in octets, not including the header.2.2 M2UA MessagesThe following section defines the messages and parameter contents.  TheGeorge, et al                                                [Page 9]Internet Draft  SS7 MTP2-User Peer-to-Peer Adaptation Layer  May 2000M2UA messages will use the command header and the M2UA specific header.2.2.1 User Data The User Data parameter is the data sent from the MTP3 in the form ofthe contiguous SIO and SIF fields of the MSU ([2] Q.703, section 2.2Signal Unit Format). The format for the 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   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                                   ...   |                           User Data                           |                                   ...   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+No padding is added to the MTP3 message.Note that the User Data field contains only the SIF and SIOoctets. The other components of the message transmitted by MTP2 (theFlag, BSN, BIB, FSN, FIB, LI, CK) are not included in M2UA.2.2.2  Link StatusThe MTP2 Link Status message can be sent between M2UA peers toindicate link status. It is the equivalent of the Link Status SignalUnit in MTP2.    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   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+   |                          Link Status                          |   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+The valid values for State are shown in the following table. Allvalues defined in the MTP2 Link Status Signal Unit have an equivalentin this M2UA Link Status message. This does not imply that all valuesmust be used by M2UA.    Value  Description     1     In Alignment     2     In Service     3     Processor Outage     4     Processor Outage Ended3.  ProceduresGeorge, et al                                               [Page 10]Internet Draft  SS7 MTP2-User Peer-to-Peer Adaptation Layer  May 20003.1 Procedures to Support MTP2 Features3.1.1 Signal Unit Format, Delimitation, AcceptanceMessages for transmission across the network must follow the formatdescribed in section 2.SCTP provides reliable, in-sequence delivery. Therefore the relatedfunctionality of MTP2 is not needed. SCTP does not provide functionsrelated to Link State Control in MTP2. These functions must beprovided by M2UA.3.1.2 Link AlignmentTo begin alignment in M2UA, M2UA sends the ASSOCIATE primitive to SCTPif the SCTP association is not already established. The associationshall contain one stream in each direction. If SCTP fails to establishthe association, M2UA shall report to MTP3 that the link is out ofservice.Once the association is established, M2UA has the option of sendingLink Status messages with status In Alignment. These messages can beused for proving the link. If M2UA receives a Link Status InAlignment, it should ignore the message.Once the association is established and In Alignment messages (if any)have been sent, if MTP3 has not deactivated the link, M2UA sends aLink Status of In Service to its peer.The link is ready for traffic when the association is established,M2UA has sent Link Status In Service to its peer, and has receivedLink Status In Service from its peer. Then M2UA sends Link In Serviceto its MTP3.If M2UA receives a Link Status of Processor Outage during alignment,M2UA shall report to MTP3 that the link is out of service.M2UA shall ignore the Emergency and Emergency Ceases commands fromMTP3.3.1.3 Processor OutageA processor outage occurs when M2UA cannot transfer messages becauseof a condition at a higher layer than M2UA.When M2UA detects a local processor outage, it sends a Link Statusmessage to its peer with status Processor Outage. It discards anymessages received. The peer M2UA, upon receiving the Link Status Processor Outagemessage, notifies its MTP3. It ceases sending Data messages.George, et al                                               [Page 11]Internet Draft  SS7 MTP2-User Peer-to-Peer Adaptation Layer  May 2000When the processor outage ceases, MTP3 sends a Local ProcessorRecovered indication to M2UA. The local M2UA notifies its peer bysending a Link Status message with status Processor Outage Ended.  Thepeer notifies its MTP3 that the remote processor outage has ceased.3.1.4 Level 2 Flow ControlNotification of receive congestion from M2UA to MTP3 is implementationdependent.3.1.5 Error monitoringIf M2UA loses the SCTP association for a link, M2UA shall report toMTP3 that the link is out of service.3.1.6  Transmission PrioritiesLink Status messages have priority over User Data messages ([2] Q.703,section 11.2). To achieve this, Link Status messages shall be sentvia SCTP using the unordered delivery option.User Data messages shall be sent via SCTP using ordered delivery.It is recommended that SCTP give higher transmission priority tounordered messages. In other words, SCTP should follow theImplementation Note in [5] section 6.6, "Ordered and Un-orderedDelivery".3.1.7  MTP2 Timers in M2UAThis section explains which MTP2 timers are needed in M2UA.3.1.7.1  T2 Not Aligned, T3 AlignedTimers T2 and T3 are used to verify that the other end of the link iscommunicating. In MTP2, if either of timers T2 or T3 expire, alignmentis not possible, so MTP2 reports to MTP3 that the link is out ofservice ([2] Q.703, Figures 8 and 9).Timer T2 is used to verify that the remote end responds to the initialattempt to align the link. Timer T3 is used to verify that the remoteend is proving the link along with the local end. Both timers T2 Not Aligned and T3 Aligned are implemented in M2UA.Recommended value of T2 is 5-150 seconds.Recommended value of T3 is 1-2 seconds.These are the same values recommended in [2] Q.703.3.1.7.2  T4 Proving PeriodSince M2UA directs the Proving procedure, timer T4 Proving Period isGeorge, et al                                               [Page 12]Internet Draft  SS7 MTP2-User Peer-to-Peer Adaptation Layer  May 2000implemented in M2UA as in MTP2.Recommended values are:    normal proving period: 7.5-9.5 seconds    emergency proving period: 400-600 millisecondsThese are the same values recommended in [2] Q.703.3.1.7.3  T1 Alignment ReadyIn MTP2, timer T1 is started when alignment is complete. If T1 expiresbefore an MSU or FISU is received, MTP2 LSC reports to MTP3 that thelink is out of service ([2] Q.703, Figure 8, sheet 6).M2UA does not send FISUs. The purpose of FISUs is served by theHeartbeats in SCTP. SCTP uses the Heartbeats to determine ifcommunication has been lost on the connection.  M2UA does not need toverify that the link is in service. Therefore it is not necessary toimplement timer T1 in M2UA.3.1.7.4  T5 Sending SIBSince SCTP provides congestion control, it is not necessary toimplement timer T5 in M2UA.3.1.7.5  T6 Remote CongestionMTP2 uses T6 to determine if a link has been congested so long that itshould be failed.Since SCTP determines when an association has failed, it is notnecessary to implement timer T6 in M2UA.3.1.7.6  T7 Excessive Delay of AcknowledgementSCTP performs acknowledgements and retransmissions. Therefore it isnot necessary to implement timer T7 in M2UA.3.2 Procedures to Support the MTP3/MTP2 Interface3.2.1  Sending/receiving messagesWhen MTP3 sends a message for transmission to M2UA, M2UA adds the M2UAheader to the message, then passes the message to SCTP using the SENDprimitive.When M2UA receives a Data message from SCTP, M2UA removes the M2UAheader and passes the message to MTP3.3.2.2  Link activation and restorationWhen MTP3 requests that M2UA activate or restore a link by a StartGeorge, et al                                               [Page 13]Internet Draft  SS7 MTP2-User Peer-to-Peer Adaptation Layer  May 2000command, M2UA shall follow the alignment procedure in section 3.1.2.3.2.3  Link deactivationWhen MTP3 requests that M2UA deactivate a link by a Stop command, M2UAshall send an ABORT primitive to SCTP.3.2.4  Flush buffersProcessing of the Flush Buffers request from MTP3 is implementationdependent.3.2.5 Signaling Link CongestionNotification of transmit congestion from SCTP to its upper layer(M2UA) is implementation dependent. Nevertheless, M2UA should receivenotification from SCTP adequate to allow MTP3 to meet its requirementsfor signaling link transmit congestion in [2] Q.704, section 3.8.3.2.6 ChangeoverThe objective of the changeover is to ensure that signaling trafficcarried by the unavailable signaling link is diverted to thealternative signaling link as quickly as possible while avoidingmessage loss, duplication, or mis-sequencing.  For this purpose, thechangeover procedure includes data retrieval, which is performedbefore reopening the alternative signaling links to the divertedtraffic.  Data retrieval consists of these steps:   (1) buffer updating, i.e., identifying all those User Data        messages in the retransmission buffer of the unavailable       signaling link which have not been received by the far end       SCTP, as well as untransmitted messages, and   (2) transferring those messages to the transmission buffers of the       alternate links.Note that only User Data messages are retrieved and transmitted overthe alternate links. Link Status messages shall not be transmittedover the alternate links. Since Link Status messages are sent with theunordered delivery option of SCTP, they do not have Stream SequenceNumbers. In order to support changeover in M2UA, the SCTP Stream SequenceNumbers must be used in place of the Forward and Backward SequenceNumbers (FSN/BSN) of SS7.Stream Sequence Numbers used by SCTP are 16 bits long.  MTP2's Forwardand Backward Sequence Numbers are only seven bits long.  Hence it isnecessary for MTP3 to accomodate the larger SSNs. This is done throughthe use of the Extended Changeover Order (XCO) and Extended ChangeoverAcknowledgement (XCA) messages instead of the Changeover Order (COO)and Changeover Acknowledgement (COA) messages. The XCO and XCAGeorge, et al                                               [Page 14]Internet Draft  SS7 MTP2-User Peer-to-Peer Adaptation Layer  May 2000messages are specified in Reference [7] section 9.8.1. Only the XCOand XCA messages from [7] are used. These messages have a 24-bit fieldfor the sequence number. The upper 8 bits of the 24 bit field shouldbe set to 0, and the SSN placed in the lower 16 bits.For data retrieval, MTP3 requests Backward Sequence Number (BSN) fromM2UA.  This is the sequence number of the last message received by thelocal end.  Normally, SCTP delivers ordered messages to theapplication.  However, during congestion or failure condition, thesequence numbers of the acknowledged messages may have gaps.  Inparticular, the SACK (selective acknowledgement message) message canhave several of these gaps.  Hence, it is important to scan throughthese gaps and find the sequence number before the first gap.  This isthe number from which the remote end has to transmit the messages.  Sothis is the number considered as the Backward Sequence Number andcommunicated to the remote end.  In a similar way, the remote end alsodetects the BSN and indicates to the local end. As soon as the MTP3 ofthe local end receives this BSN, MTP3 retrieves all the unacknowledgedmessages starting from BSN.  This is accomplished through a RetrievalRequest and FSNC request.  After all the messages are sent from M2UAto MTP3, a Retrieval Complete indication is sent.Note that the sequence numbers and messages requested by MTP3 are sentfrom SCTP to M2UA in the Communication Lost primitive. Retrieval ofmessages is an optional feature in SCTP. To perform data retrieval, itis necessary that this option be implemented, and that the SSNs of themessages are identified.If M2UA receives a Retrieve BSNT request from MTP3, M2UA responds withthe BSNT indication. The BSNT value is the SCTP stream sequence numberof the last message received by SCTP before any gaps in the streamsequence numbers. (Note that any messages with stream sequence number greater than thisBSNT value have been acknowledged by SCTP, but have not been passed upto M2UA. Therefore these messages should be retransmitted by the farend on the alternate link.)If M2UA receives a Retrieval Request and FSNC request from MTP3, M2UAretrieves from SCTP:       (a) any transmitted but unacknowledged messages beginning with	   the stream sequence number FSNC + 1, and       (b) any untransmitted messages in SCTP.Each of these messages is sent to MTP3, first (a), then (b). Then M2UAsends the Retrieval Complete indication to MTP3.Note: The changeover procedure makes it impossible for M2UA to havemultiple streams in a direction for one link. Buffer updating wouldhave to be done for each stream separately to avoid duplication ofmessages. But there is only one XCO message for sending theGeorge, et al                                               [Page 15]Internet Draft  SS7 MTP2-User Peer-to-Peer Adaptation Layer  May 2000last-received SSN.4.  Examples of MTP2 User Adaptation (M2UA) ProceduresIn general, messages passed between MTP3 and M2UA are the same asthose passed between MTP3 and MTP2.  M2UA interprets messages from MTP3and sends the appropriate message to SCTP. Likewise, messages fromSCTP are used to generate a meaningful message to MTP3.Note that throughout this section, the primitives between MTP3 andM2UA are named using the MTP terminology [1][2]. Communicationsbetween M2UA and SCTP are named using SCTP terminology.4.1  Link Initialization (Alignment)An example of the message flow to bring an SS7 link in-service isshown below. Proving is done by both ends of the link. To simplify thediagram, proving is shown on one end only. It is assumed in thisexample that SCTP has been initialized.    MTP3        M2UA        SCTP        SCTP        M2UA        MTP3    ----        ----        ----        ----        ----        ----     Out of Service     <------------     Emergency OR     Emergency Ceases     ------------>     Start     ------------>                 Associate                 ------------>                             (SCTP Association                              procedure)                 Communication Up        Communication Up                 <------------           ------------>George, et al                                               [Page 16]Internet Draft  SS7 MTP2-User Peer-to-Peer Adaptation Layer  May 2000

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -