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

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

📁 No7信令,我需要交换类似的代码, 请店长审核,谢谢了,急着交换,谢谢
💻 TXT
📖 第 1 页 / 共 3 页
字号:
     MTP2 User Adaptatation Messages        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  8]Internet Draft  SS7 MTP2-User Peer-to-Peer Adaptation Layer  Mar 2000M2UA messages will use the command header and the M2UA specific header.2.2.1 Data The Data message contains an SS7 MTP2-User message.  It is theequivalent of a Message Signal Unit in MTP. The format for the Datamessage 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   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                                   ...   |                         Protocol Data                         |                                   ...   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+Note that the Protocol Data field contains only the MTP2-Userapplication message. The header transmitted by MTP2 (which includesthe Flag, BSN, BIB, FSN, FIB, LI) is 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 MTP.    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. 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.   Define    Value  Description		        STATUS_O   0x0   Status indication O  - Out of alignment   STATUS_N   0x1   Status indication N  - Normal alignment status   STATUS_E   0x2   Status indication E  - Emergency alignment status   STATUS_OS  0x3   Status indication OS - Out of Service   STATUS_PO  0x4   Status indication PO - Processor Outage   STATUS_B   0x5   Status indication B  - BusyGeorge, et al                                               [Page  9]Internet Draft  SS7 MTP2-User Peer-to-Peer Adaptation Layer  Mar 20003.  Procedures3.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 message delimitation, sequence numbering, and errorcorrection. Therefore the header transmitted by MTP2 (which includesthe Flag, BSN, BIB, FSN, FIB, LI) is not needed in M2UA.3.1.2 Link AlignmentMTP3 can request that an SS7 link be brought into alignment ([2]Q.703, section 7).  During alignment, communication to the other endof the link is tested for a period of time to make sure that the linkis ready for traffic. Once the link is aligned, proving begins. Duringproving, messages are sent from both ends of the link to verify thatthe link is capable of sustaining traffic. Proving may take place for a Normal or (shorter) Emergency timeperiod. MTP3 determines whether the alignment procedure is Normal orEmergency, and informs M2UA through the Emergency and Emergency Ceasescommands.To begin alignment in M2UA, M2UA sends the Associate primitive toSCTP. The association shall contain one stream in each direction. IfSCTP fails to establish the association, M2UA shall report to MTP3that the link is out of service.Once the association is established, M2UA sends Link Status SIO to itspeer at an implementation-dependent rate. If the remote end sends aLink Status of SIN, SIE, or SIO before time interval T2 elapses, thelink is in an aligned state. If the remote end does not send one ofthose Link Status messages before T2, M2UA shall report to MTP3 thatthe link is out of service.When the link gets to an aligned state, M2UA sends Link Status SIN orSIE (for Normal or Emergency proving) at an implementation-dependentrate. If the remote end sends a Link Status of SIN, SIE, or SIO beforetime interval T3 elapses, the link is in proving state. If the remoteend does not send one of those Link Status messages before T3, M2UAshall report to MTP3 that the link is out of service.While in the proving state, M2UA continues to send SIN/SIEs for aperiod of T4. If T4 elapses and the link has not failed, proving iscomplete. The link is ready for traffic.When proving is complete, M2UA may send a Status primitive to SCTP todetermine if the smoothed round-trip time and other status data areGeorge, et al                                              [Page  10]Internet Draft  SS7 MTP2-User Peer-to-Peer Adaptation Layer  Mar 2000acceptable. Sending of the Status primitive is optional. Use of theStatus information is implementation dependent.3.1.3 Processor OutageA processor outage occurs when M2UA cannot transfer messages to MTP3.When M2UA detects a local processor outage (e.g., by receiving a Local Processor Outage from MTP3), it sends a Link Status message to its peer with status PO. It discards any messages received.The peer M2UA, upon receiving the Link Status PO message, notifies its MTP3. It ceases sending Data messages.When the processor outage ceases, MTP3 sends a Local Processor Recovered indication to M2UA. The local M2UA notifies its peer by sending the next Data message. The peer notifies its MTP3 that the remote processor outage has ceased.3.1.4 Level 2 Flow ControlCongestion control is provided by SCTP. Any congestion control procedures in M2UA are implementation dependent.MTP3 expects notification of link congestion.  For example, this isaccomplished by two messages 1) Link Congestion Onset 2) LinkCongestion Abated.  For example, congestion could be detected if M2UAreceives a failure response when it attempts to send a message to SCTP(this is implementation dependent, and it is assumed that the SENDFailure has an error code that indicates congestion).  M2UA reportsLink Congestion Onset to MTP3. Subsequently M2UA can poll the statusof SCTP.  When SCTP is no longer congested, M2UA reports LinkCongestion Abated to MTP3. If the congestion condition shouldcontinue, the link will be taken out of service.  In this case, it ispossible to start the link changeover procedure.The US National version of SS7 has congestion levels [3]. For USNational SS7, the Indication primitive for Congestion Onset shouldreport the congestion level.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 MTP2 Timers in M2UAThis section explains which MTP2 timers are needed in M2UA.3.1.6.1  T2 Not Aligned, T3 AlignedTimers T2 and T3 are used to verify that the other end of the link isGeorge, et al                                              [Page  11]Internet Draft  SS7 MTP2-User Peer-to-Peer Adaptation Layer  Mar 2000communicating. 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.3.1.6.2  T4 Proving PeriodSince M2UA directs the Proving procedure, timer T4 Proving Period isimplemented in M2UA as in MTP2.Recommended values are:    normal proving period: 7.5-9.5 seconds    emergency proving period: 400-600 milliseconds3.1.6.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).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.6.4  T5 Sending SIBSince SCTP provides congestion control, it is not necessary toimplement timer T5 in M2UA.3.1.6.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.6.6  T7 Excessive Delay of AcknowledgementSCTP performs acknowledgements and retransmissions. Therefore it isnot necessary to implement timer T7 in M2UA.George, et al                                              [Page  12]Internet Draft  SS7 MTP2-User Peer-to-Peer Adaptation Layer  Mar 20003.2 Procedures to Support the MTP3/MTP2 Interface3.2.1  Sending/receiving messagesIf MTP3 sends a message for transmission to M2UA, M2UA adds the M2UA header to the message, then passes the message to SCTP using the SEND primitive.If M2UA receives a Data message from SCTP, M2UA removes the M2UA header and passes the message to MTP3.3.2.2  Link activation and restorationIf MTP3 requests that M2UA activate or restore a link by a Start command, M2UA shall follow the alignment procedure in section 3.1.2.3.2.3  Link deactivationIf MTP3 requests that M2UA deactivate a link by a Stop command, M2UA shall send a TERMINATE primitive to SCTP.3.2.4  Flush buffersThe Flush Buffers request from MTP3 is not supported by SCTP.3.2.5 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 identifying all those messages inthe retransmission buffer of the unavailable signaling link which havenot been received by the far end.  Retrieval includes transferring theconcerned messages to the transmission buffers of the alternativelinks.  In order to support changeover in M2UA, the SCTP StreamSequence Numbers must be used in place of the Forward and BackwardSequence Numbers (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 to modify MTP3 to accomodate the larger SSNs.  Reference [7]section 9.8.1 should be used as a guide for the MTP3 changes. Only theExtended Changeover Order and Extended Changeover Acknowledgementmessages from [7] are used. These messages have a 24-bit field for thesequence number. The upper 8 bits of the 24 bit field should be set to0, and the SSN placed in the lower 16 bits.George, et al                                              [Page  13]Internet Draft  SS7 MTP2-User Peer-to-Peer Adaptation Layer  Mar 2000For data retrieval, MTP3 requests Backward Sequence Number (BSN) fromM2UA.  This is the sequence number of the last message received by thelocal end.  During normal period, SCTP delivers ordered messages tothe application.  However, during congestion or failure condition, thesequence numbers of the acknowledged messages can 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 first gap.  This is thenumber 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 RetrieveFSN request.  After all the messages are sent from M2UA to MTP3, aRetrieval 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.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.George, et al                                              [Page  14]Internet Draft  SS7 MTP2-User Peer-to-Peer Adaptation Layer  Mar 20004.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.    MTP3        M2UA        SCTP        SCTP        M2UA        MTP3    ----        ----        ----        ----        ----        ----     Out of Service     <------------     Emergency OR     Emergency Ceases     ------------>     Start     ------------>                 Associate                 ------------>                             (SCTP Association                              procedure)                 Communication Up        Communication Up                 <------------           ------------>Even though the SCTP association is established, it is important thatM2UA not send MTP3 data at this point. It must be confirmed that bothends of the link are ready for traffic. Otherwise, messages could belost. Therefore proving begins at this time:George, et al                                              [Page  15]Internet Draft  SS7 MTP2-User Peer-to-Peer Adaptation Layer  Mar 2000    MTP3        M2UA        SCTP        SCTP        M2UA        MTP3    ----        ----        ----        ----        ----        ----                 Link Status SIO                 ------------------------------------>                                       Link Status SIN                 <------------------------------------                 Link Status SIN                 ------------------------------------>                                       Link Status SIN                 <------------------------------------                 Link Status SIN

⌨️ 快捷键说明

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