MTN OAM sequence synchronization method and device
By identifying and detecting the categories and interval parameters of MTNP OAM code blocks, the synchronization problem undefined in the G.8312 protocol is solved, and the synchronization detection and abnormal identification of MTNP OAM code blocks are realized, which enhances the OAM verification mechanism and saves the Resource and power consumption.
Patent Information
- Application Number
- CN202110009030.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-05
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2041-01-05
AI Technical Summary
In the prior art, the G.8312 protocol does not define whether the phase detection or synchronization of the MTNP OAM code block is required at the receiving end, and does not explain how to perform phase detection or synchronization.
By identifying the category of received MTNP OAM code blocks, determining the detection interval parameters, and counting the code blocks according to these parameters to determine the synchronization status. If it matches, it is determined to be normal synchronization, otherwise it is determined to be a loss step and the corresponding loss step is reported. Alarm.
The synchronization detection of MTNP OAM code blocks is realized, the communication line abnormality is identified, the OAM verification mechanism is enhanced, the malfunction caused by code errors is avoided, and different types of OAMs are uniformly synchronized to save resources and power consumption.
Smart Images

Figure CN114727177B_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to the field of optical communication technology, and in particular to a MTN OAM sequence synchronization method and device. [Background technology]
[0002] In October 2010, the International Telecommunication Union (ITU) launched the G.8312 protocol standard - "Interfaces for the metro transport network", which defines seven types of OAM (Operation, Administration, Maintenance, referred to as OAM) based on the 66-bit code block format at the Metro Transport Network Path (MTNP) layer, namely BAS, APS, CV, CS, 1DM, 2DMM, and 2DMR, and defines 32 reserved code blocks for future expansion. Among them, CV, CS, 1DM, 2DMM, 2DMR and reserved code blocks are collectively referred to as low priority code blocks (hereinafter represented by L).
[0003] The protocol defines the interval between two adjacent BAS code blocks as n*32k (where k=1024 and n is the number of 5G time slots occupied by the corresponding service) 66-bit code blocks. The APS code blocks and the L-type code blocks are inserted in the middle of two BAS code blocks.
[0004] However, G.8312 only defines the above OAM interface format, and does not explain whether it is necessary to perform phase detection or synchronization on the MTNP OAM code block at the receiving end, nor does it define how to perform phase detection or synchronization on the MTNP OAM code block. [Summary of the invention]
[0005] The technical problem to be solved by the present invention is that G.8312 in the prior art only defines the above OAM interface format, and does not explain whether the MTNP OAM code block needs to be phase detected or synchronized at the receiving end, nor does it define how to perform phase detection or synchronization on the MTNP OAM code block.
[0006] The present invention adopts the following technical solution:
[0007] In a first aspect, the present invention provides an MTN OAM sequence synchronization method, comprising:
[0008] Identify the category to which the received MTNP OAM first code block belongs, and obtain whether the MTNP OAM first code block is a BAS class, an APS class, an L class, or other classes;
[0009] Determine a detection interval parameter of a first MTNP OAM code block of the same type according to the identification of the class to which the first MTNP OAM code block belongs;
[0010] According to the detection interval parameter, after completing the MTNP OAM code block counting that is the same as the detection interval parameter, obtaining the MTNP OAM second code block;
[0011] According to the identification result of the category to which the MTNP OAM second code block belongs, if it is determined to match the MTNP OAM first code block, it is determined to be normal synchronization, otherwise, it is determined to be out of synchronization.
[0012] Preferably, the detection interval parameter is expressed as n*32k, 4*n*16k and 4*n*16k in BAS class, APS class and L class respectively; wherein n is the number of time slots occupied by the services correspondingly located between the first code block of MTNP OAM and the second code block of MTNP OAM; and k represents a parameter value of 1024.
[0013] Preferably, when it is determined to be a BAS type out-of-sync, a BAS out-of-sync alarm is reported; and / or,
[0014] When it is determined to be an APS type out-of-synchronization, an APS out-of-synchronization alarm is reported; and / or,
[0015] When it is determined to be Class L, an L out-of-sync alarm is reported.
[0016] Preferably, when the MTNP OAM first code block belongs to the BAS class, the method specifically includes:
[0017] B1 and B2 are detected at n*32k intervals, where B1 refers to the SOM code block of the BAS code block, and B2 refers to the EOM code block of the BAS code block;
[0018] The MTNP OAM first code block and the MTNP OAM second code block are respectively one of B1 and B2.
[0019] Preferably, when the MTNP OAM first code block belongs to the APS class, the method specifically includes:
[0020] A1 and the next adjacent A2 are detected at an interval of 4*n*16k, and the interval between A2 and the next adjacent A1 is detected at an interval of y*(4*n*16k), where y is a natural number and represents the required interval for sending an APS code block; wherein A1 refers to the SOM code block of the APS code block, and A2 refers to the EOM code block of the APS code block;
[0021] The MTNP OAM first code block and the MTNP OAM second code block are respectively one of A1 and A2.
[0022] Preferably, when the MTNP OAM first code block belongs to class L, wherein class L is composed of one or more of class CV, class CS, class 1DM, class 2DMM and class 2DMR, the method specifically includes:
[0023] According to CV1-CV2...CV 16 -CV 17 -CS-DM1-DM2..DM 12 -DM 13 -RES1-RES2...RES 32 -RES 33 Identify the received MTNP OAM code blocks in the identification order;
[0024] Among them, DM in the identification sequence refers to 1DM class, 2DMM class and 2DMR class, and RES in the identification sequence stands for reserved OAM;
[0025] Among them, the 64 L-class code block opportunity positions are a cycle, CV1 is at the first opportunity position, RES 33 In the 64th chance position.
[0026] Preferably, when an APS or L code block is identified, it is necessary to determine whether it complies with the BABL sequence, and the method further includes:
[0027] When an APS code block is received, it is necessary to confirm whether there is a B1 code block n*16k 66-bit code blocks forward from the previous position. If so, the BABL-APS sequence is synchronized. If not, the BABL-APS sequence is out of step, and a BABL-APS sequence out of step alarm is reported;
[0028] When receiving the L code block, it is necessary to confirm whether there is a B2 code block n*16k 66-bit code blocks forward from the previous position. If so, the BABL-L sequence is synchronized. If not, the BABL-L sequence is out of step, and a BABL-L sequence out of step alarm is reported;
[0029] Among them, the B1 refers to the SOM code block of the BAS code block, and B2 refers to the EOM code block of the BAS code block; the A refers to the SOM code block of the APS code block or the EOM code block of the APS code block; the L refers to one or more of the CV class, CS class, 1DM class, 2DMM class, and 2DMR class; and i is a natural number between 1 and n*16k.
[0030] In a second aspect, the present invention provides an MTN OAM sequence synchronization method, which converts all different types of OAM into a whole, forms a unified sequence consisting of 256 OAM code block opportunity positions, and generates an opportunity position sequence, the method comprising:
[0031] Matching the opportunity position sequence according to the identified one or more code blocks to obtain corresponding positions of the one or more code blocks in the opportunity position sequence;
[0032] Analyze whether the types of the one or more code blocks and the types of the subsequent code blocks are consistent with the opportunity position sequence. If not, report an error according to the type of the position corresponding to the position in the opportunity position sequence of the code block where the desynchronization occurs.
[0033] Preferably, the opportunity position sequence is specifically:
[0034] Num 0 1 2 3 4 5 6 7 ... 64 65 66 67 68 69 70 71 ... 252 253 254 255 type <![CDATA[B1]]> Ax <![CDATA[B2]]> <![CDATA[CV1]]> <![CDATA[B1]]> Ax <![CDATA[B2]]> <![CDATA[CV2]]> ... <![CDATA[B1]]> Ax <![CDATA[B2]]> <![CDATA[CV 17 ]]> <![CDATA[B1]]> Ax <![CDATA[B2]]> CS ... <![CDATA[B1]]> Ax <![CDATA[B2]]> <![CDATA[RES 33 ]]>
[0035] Among them, BAS is composed of the SOM code block of the BAS code block and the EOM code block of the BAS code block, which are recorded as B1 and B2 respectively; the interval between B1 and B2 is (n*32k+ / -i) 66-bit code blocks;
[0036] Ax represents an APS code block, x=1 or 2; wherein A1 represents an APS SOM code block, and A2 represents an APS EOM code block; the interval between A1 and A2 is (4*n*16k+ / -i) 66-bit code blocks; wherein i is set based on the number of 66 bits contained in the maximum data packet length;
[0037] Class L is a general term for CV, CS, 1DM, 2DMM, and 2DMR. Class L consists of 64 opportunity positions in the opportunity position sequence, of which the 1st to 17th opportunity positions are allocated to CV, the 18th opportunity position is allocated to CS, the 19th to 31st opportunity positions are allocated to 1DM, 2DMM, and 2DMR, and the 32nd to 64th opportunity positions are reserved for expansion.
[0038] Wherein, the APS code block is sent on demand, and if the APS code is not sent, the Ax position in the corresponding opportunity position sequence is replaced by a default Idle code block;
[0039] Wherein, for the L-type code block position in the opportunity position sequence, if the corresponding valid L-type code block is not sent, it is replaced by the default Idle code block.
[0040] In a third aspect, the present invention further provides an MTN OAM sequence synchronization method, comprising:
[0041] MTN OAM is divided into BAS, APS and L categories;
[0042] The BAS class, APS class and L class perform sequence synchronization at respective intervals;
[0043] Perform sequence synchronization according to the positional relationship among the BAS class, the APS class and the L class;
[0044] When a sequence synchronization error occurs, a sequence out-of-sync alarm is reported.
[0045] Preferably, the BAS class is the benchmark OAM, and B1 and B2 sequence detection are performed at intervals of n*32k 66-bit code blocks; wherein B1 refers to the SOM code block of the BAS code block, B2 refers to the EOM code block of the BAS code block, and n is the number of time slots occupied by the services correspondingly located between the first code block of MTNP OAM and the second code block of MTNP OAM.
[0046] Preferably, the APS class performs A1 and A2 sequence detection at intervals of 4*n*16k 66-bit code blocks;
[0047] A1 refers to the SOM code block of the APS code block, A2 refers to the EOM code block of the APS code block, and n is the number of time slots occupied by the services correspondingly located between the MTNP OAM first code block and the MTNP OAM second code block.
[0048] Preferably, the APS must be located between B1 and B2, and the interval between the APS and B1 is n*16k+ / -i 66-bit code blocks, wherein i is a positive integer less than n*16k.
[0049] Preferably, the L class includes one or more of: CV class, CS class, 1DM class, 2DMM class and 2DMR class.
[0050] Preferably, the L class is divided into 64 opportunity positions as a detection cycle.
[0051] Preferably, the L class detects the received L class code block opportunity position at intervals of 4*n*16k 66-bit code blocks.
[0052] Preferably, the L-type code block must be located between B2 and B1, and the interval between the L-type code block and B2 is n*16k+ / -j 66-bit code blocks, where j is a positive integer less than n*16k, B1 refers to the SOM code block of the BAS code block, B2 refers to the EOM code block of the BAS code block, and n is the number of time slots occupied by the services correspondingly located between the first MTNP OAM code block and the second MTNP OAM code block.
[0053] In a fourth aspect, the present invention further provides an MTN OAM sequence synchronization method, comprising:
[0054] Perform unified sequence synchronization of one or more different types of OAM including BAS, APS, CV, CS, 1DM, 2DMM and 2DMR according to 256 opportunity positions;
[0055] When a sequence synchronization error occurs, the corresponding OAM is discarded according to the configuration and the corresponding OAM out-of-sync alarm is reported, such as BAS out-of-sync alarm, APS out-of-sync alarm, and L out-of-sync alarm.
[0056] Preferably, the step of performing unified sequence synchronization on one or more different types of OAM including BAS, APS, CV, CS, 1DM, 2DMM and 2DMR according to 256 opportunity positions specifically includes:
[0057] Num 1 2 3 4 5 6 7 ... 64 65 66 67 68 69 70 71 ... 252 253 254 255 type <![CDATA[A1]]> <![CDATA[B2]]> <![CDATA[CV1]]> <![CDATA[B1]]> <![CDATA[A2]]> <![CDATA[B2]]> <![CDATA[CV2]]> ... <![CDATA[B1]]> <![CDATA[A1]]> <![CDATA[B2]]> <![CDATA[CV 17 ]]> <![CDATA[B1]]> <![CDATA[A2]]> <![CDATA[B2]]> CS ... <![CDATA[B1]]> <![CDATA[A2]]> <![CDATA[B2]]> <![CDATA[RES 33 ]]>
[0058] Among them, BAS is composed of the SOM code block of the BAS code block and the EOM code block of the BAS code block, which are recorded as B1 and B2 respectively; the interval between B1 and B2 is (n*32k+ / -i) 66-bit code blocks;
[0059] Ax represents an APS code block, x=1 or 2; wherein A1 represents an APS SOM code block, and A2 represents an APS EOM code block; the interval between A1 and A2 is (4*n*16k+ / -i) 66-bit code blocks; wherein i is set based on the number of 66 bits contained in the maximum data packet length;
[0060] Class L is a general term for CV, CS, 1DM, 2DMM, and 2DMR. Class L consists of 64 opportunity positions in the opportunity position sequence, of which the 1st to 17th opportunity positions are allocated to CV, the 18th opportunity position is allocated to CS, the 19th to 31st opportunity positions are allocated to 1DM, 2DMM, and 2DMR, and the 32nd to 64th opportunity positions are reserved for expansion.
[0061] Wherein, the APS code block is sent on demand, and if the APS code is not sent, the Ax position in the corresponding opportunity position sequence is replaced by a default Idle code block;
[0062] Wherein, for the L-type code block position in the opportunity position sequence, if the corresponding valid L-type code block is not sent, it is replaced by the default Idle code block.
[0063] Preferably, 256 opportunity positions are used as a cycle for sequence synchronization.
[0064] In a fifth aspect, the present invention further provides an MTN OAM sequence synchronization device, which is used to implement the MTN OAM sequence synchronization method according to the first aspect, the second aspect, the third aspect or the fourth aspect, and the device includes:
[0065] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the processor to execute the MTN OAM sequence synchronization method described in the first aspect, the second aspect, the third aspect or the fourth aspect.
[0066] In a sixth aspect, the present invention further provides a non-volatile computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are executed by one or more processors to complete the MTN OAM sequence synchronization method described in the first aspect.
[0067] The present invention can identify the abnormality of the communication line according to the sequence synchronization state and the detection result, enhance the verification mechanism of OAM itself, and avoid other malfunctions caused by bit errors, etc.; different types of OAM are uniformly synchronized in sequence, which can effectively save resources and power consumption.
Brief Description of the Drawings
[0068] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0069] Figure 1 It is a schematic diagram of a MTN OAM sequence synchronization method provided by an embodiment of the present invention;
[0070] Figure 2 It is a schematic diagram of another MTN OAM sequence synchronization method provided by an embodiment of the present invention;
[0071] Figure 3 It is a schematic diagram of another MTN OAM sequence synchronization method provided by an embodiment of the present invention;
[0072] Figure 4 It is a schematic diagram of a flow chart of another MTN OAM sequence synchronization method provided by an embodiment of the present invention;
[0073] Figure 5 This is a diagram of an MTN OAM transmission interval provided by an embodiment of the present invention;
[0074] Figure 6 is a diagram of a BAS code block detection interval provided by an embodiment of the present invention;
[0075] Figure 7 is a BAS code block synchronization flow chart provided by an embodiment of the present invention;
[0076] Figure 8 is a diagram showing an APS code block detection interval provided by an embodiment of the present invention;
[0077] Fig. 9 This is an APS code block synchronization flow chart provided by an embodiment of the present invention;
[0078] Fig.10 is a diagram showing an L code block detection interval provided by an embodiment of the present invention;
[0079] Fig.11 is an L code block synchronization flow chart provided by an embodiment of the present invention;
[0080] Fig.12 is an OAM sequence synchronization flow chart provided by an embodiment of the present invention;
[0081] Fig.13 The present invention is a schematic diagram of the structure of an MTN OAM sequence synchronization device provided by an embodiment of the present invention. [Specific implementation method]
[0082] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0083] In the description of the present invention, the terms "inside", "outside", "longitudinal", "lateral", "upper", "lower", "top", "bottom" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings. They are only for the convenience of describing the present invention and do not require that the present invention must be constructed and operated in a specific orientation. Therefore, they should not be understood as limitations on the present invention.
[0084] In the embodiments of the present invention, there is no strict distinction between BAS class, APS class and L class, as well as BAS code blocks, APS code blocks, L code blocks, and BAS class code blocks, APS class code blocks, and L class code blocks, and the meanings to be expressed by the several expressions are the same, and the same technical point is just viewed from different angles.
[0085] In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0086] Embodiment 1:
[0087] Embodiment 1 of the present invention provides a MTN OAM sequence synchronization method, such as Figure 1 As shown, including:
[0088] In step 201, the category to which the received MTNP OAM first code block belongs is identified, and it is obtained that the MTNP OAM first code block is of BAS category, APS category, L category or other categories.
[0089] The "first" in the described MTNP OAM first code block does not serve as a limitation on the code block number, but is merely a mark number temporarily added to distinguish between different MTNP OAM code blocks, and has no other special limiting meaning.
[0090] Among them, the L class is composed of one or more of the CV class, CS class, 1DM class, 2DMM class and 2DMR class. The other classes described therein are for the possibility of protocol expansion, and will introduce code block attributes other than the above-mentioned BAS class, APS class and L class (such as normally transmitted data code blocks). As within the scope of the technical concept of the present invention, it still belongs to the identifiable category, but as far as the core of the technical solution of the present invention is concerned, for the identification conclusion of other classes, more judgment conclusions are not the BAS class, APS class and L class.
[0091] In step 202, based on identifying the class to which the MTNP OAM first code block belongs, a detection interval parameter of the same type of MTNP OAM first code block is determined.
[0092] The detection interval parameter is expressed as n*32k, 4*n*16k and 4*n*16k in BAS class, APS class and L class respectively; wherein n is the number of time slots occupied by the services correspondingly located between the first code block of MTNP OAM and the second code block of MTNP OAM; and k represents a parameter value of 1024.
[0093] In step 203, according to the detection interval parameter, after completing the counting of the MTNPOAM code blocks that are the same as the detection interval parameter, the MTNP OAM second code block is obtained.
[0094] Among them, the "second" in the described MTNP OAM second code block does not serve as a limitation on the code block number, but is only a temporarily added mark number to distinguish different MTNP OAM code blocks (such as the above-mentioned MTNP OAM first code block), and has no other special limiting meaning.
[0095] In step 204, according to the identification result of the category to which the MTNP OAM second code block belongs, if it is determined to match the MTNP OAM first code block, it is determined to be normal synchronization, otherwise, it is determined to be out of synchronization.
[0096] When the out-of-step is determined to be BAS type, a BAS out-of-step alarm is reported; and / or, when the out-of-step is determined to be APS type, an APS out-of-step alarm is reported; and / or, when the out-of-step is determined to be L type, an L out-of-step alarm is reported. The above three out-of-step alarms can be performed simultaneously, or one or two of them can be performed according to needs.
[0097] The embodiment of the present invention can identify the abnormality of the communication line according to the sequence synchronization state and the detection result, enhance the verification mechanism of OAM itself, and avoid other malfunctions caused by bit errors, etc.; different types of OAM are uniformly synchronized in sequence, which can effectively save resources and power consumption.
[0098] In the embodiment of the present invention, there are at least the following three processing methods for different attribution situations of the MTNP OAM first code block:
[0099] Case 1: When the first code block of the MTNP OAM belongs to the BAS class, the corresponding processing method 1 is:
[0100] B1 and B2 are detected at n*32k intervals, where B1 refers to the SOM (full name: Start of Message) code block of the BAS code block, and B2 refers to the EOM (full name: End of Message) code block of the BAS code block; in the current protocol standard, the BAS code block consists of 2 66-bit code blocks, the first code block is the SOM code block of BAS, and the second code block is the EOM code block of BAS.
[0101] The MTNP OAM first code block and the MTNP OAM second code block are respectively one of B1 and B2. What is meant here is that, depending on the timing of starting the corresponding detection mechanism of Example 1, or the corresponding detection mechanism of Example 1 may be suspended or interrupted in some circumstances, when the corresponding detection mechanism is restored, the MTNP OAM first code block may be identified as B1 or B2. At this time, if the MTNP OAM first code block is B2, the corresponding MTNP OAM second code block is B1; if the MTNP OAM first code block is B1, the corresponding MTNP OAM second code block is B2.
[0102] Case 2: When the first code block of the MTNP OAM belongs to the APS class, the corresponding processing method 2 is:
[0103] A1 and A2 are detected at 4*n*16k intervals, where A1 refers to the SOM code block of the APS code block and A2 refers to the EOM code block of the APS code block. In the current protocol standard, the APS code block consists of two 66-bit code blocks, where the first code block is the SOM code block of the APS and the second code block is the EOM code block of the APS.
[0104] Among them, the MTNP OAM first code block and the MTNP OAM second code block are one of A1 and A2 respectively; the interval between A1 and the next A2 is 4*n*16k, and the interval between A2 and the next A1 is y*(4*n*16k), where y is a natural number and represents the required interval for sending APS code blocks. According to the protocol requirements, BAS is a required code block. However, APS is a code block sent on demand, not a required code block. Therefore, after receiving A1, A2 must be found at an interval of 4*n*16k. However, there may not be A1 after A2.
[0105] Case 2: When the MTNP OAM first code block belongs to class L, where class L is composed of one or more of CV class, CS class, 1DM class, 2DMM class and 2DMR class, the corresponding processing method 3 is:
[0106] According to CV1-CV2...CV 16 -CV 17 -CS-DM1-DM2..DM 12 -DM 13 -RES1-RES2...RES 32 -RES 33 Identify the received MTNP OAM code blocks in the identification order;
[0107] Among them, DM refers to 1DM class, 2DMM class and 2DMR class, and RES stands for reserved OAM;
[0108] Among them, the 64 L-class code block opportunity positions are a cycle, CV1 is at the first opportunity position, RES 33 In the 64th chance position.
[0109] According to the protocol standard, 1DM consists of 5 66-bit code blocks, 2DMM consists of 5 66-bit code blocks, and 2DMR consists of 13 66-bit code blocks. 1DM, 2DMM, and 2DMR cannot coexist. Therefore, the number of DM subscripts is 13, which is the maximum case of 2DMR.
[0110] In the embodiment of the present invention, in addition to providing the above three situations and three processing methods, an advanced processing method 4 is also provided. In the advanced processing method 4, the transmission of the above B1, B2, A1, A2 and L exists at the same time, and considering that A (which may be the above A1 or A2) and L can only be between B1 and B2, the method further includes:
[0111] When an APS or L code block is identified, it is necessary to determine whether it complies with the BABL sequence. The method further includes:
[0112] When an APS code block is received, it is necessary to confirm whether there is a B1 code block n*16k 66-bit code blocks forward from the previous position. If so, the BABL-APS sequence is synchronized. If not, the BABL-APS sequence is out of step, and a BABL-APS sequence out of step alarm is reported;
[0113] When receiving the L code block, it is necessary to confirm whether there is a B2 code block n*16k 66-bit code blocks forward from the previous position. If so, the BABL-L sequence is synchronized. If not, the BABL-L sequence is out of step, and a BABL-L sequence out of step alarm is reported;
[0114] Among them, the B1 refers to the SOM code block of the BAS code block, and B2 refers to the EOM code block of the BAS code block; the A refers to the SOM code block of the APS code block or the EOM code block of the APS code block; the L refers to one or more of the CV class, CS class, 1DM class, 2DMM class, and 2DMR class; and i is a natural number between 1 and n*16k.
[0115] In combination with the embodiment of the present invention, taking into account the complexity of the actual situation, for example, the position where the OAM code block is originally required to be inserted is occupied by the data packet, and considering the need for data packet integrity transmission, the OAM code block cannot be inserted immediately. At this time, the insertion will be delayed to cause the deviation value i generated by the relative detection interval parameter. Specifically: the interval between the code blocks also includes the set floating parameter value i; the floating parameter value i is accumulated in the detection interval parameter (such as n*32k in the above-mentioned BAS class, 4*n*16k in the APS class, 4*n*16k in the L class, and n*16k in BABL) in a positive or reverse deviation manner. i is usually set according to the maximum packet length. For example, if the maximum data packet is 300 66-bit code blocks, the maximum delay i must be set to be greater than 300.
[0116] Embodiment 2:
[0117] In addition to providing a MTN OAM sequence synchronization method as described in Example 1, the present invention also provides another MTN OAM sequence synchronization method which can also be used to solve the technical problems proposed in Example 1 and achieve similar beneficial effects. Compared with the two, the method proposed in Example 1 is more flexible, and can achieve compatibility updates based on the minimum amount of changes when the architecture is adjusted and changed. The method proposed in the embodiment of the present invention is not as flexible as Example 1 in terms of operational flexibility, but its own management is more centralized and clear. Figure 2 As shown, all different types of OAM are equivalent to a whole, forming a unified sequence consisting of 256 OAM code block opportunity positions, and generating an opportunity position sequence, the method includes:
[0118] In step 301, the opportunity position sequence is matched according to the identified one or more code blocks to obtain corresponding positions of the one or more code blocks in the opportunity position sequence.
[0119] In step 302, the type of the one or more code blocks and the type of the subsequent code blocks are analyzed to see whether they are consistent with the opportunity position sequence. If not, an error is reported based on the type of the position in the opportunity position sequence corresponding to the code block where the desynchronization occurs.
[0120] The embodiment of the present invention can identify the abnormality of the communication line according to the sequence synchronization state and the detection result, enhance the verification mechanism of OAM itself, and avoid other malfunctions caused by bit errors, etc.; different types of OAM are uniformly synchronized in sequence, which can effectively save resources and power consumption.
[0121] In the embodiment of the present invention, the generation of the opportunity position sequence specifically includes:
[0122] All different types of OAM are equivalent to a whole, forming a unified sequence consisting of 256 OAM code block opportunity positions. The relationship between the opportunity position sequence is as follows:
[0123] Num 0 1 2 3 4 5 6 7 ... 64 65 66 67 68 69 70 71 ... 252 253 254 255 type <![CDATA[B1]]> Ax <![CDATA[B2]]> <![CDATA[CV1]]> <![CDATA[B1]]> Ax <![CDATA[B2]]> <![CDATA[CV2]]> ... <![CDATA[B1]]> Ax <![CDATA[B2]]> <![CDATA[CV 17 ]]> <![CDATA[B1]]> Ax <![CDATA[B2]]> CS ... <![CDATA[B1]]> Ax <![CDATA[B2]]> <![CDATA[RES 33 ]]>
[0124] Among them, BAS is composed of the SOM code block of the BAS code block and the EOM code block of the BAS code block, which are recorded as B1 and B2 respectively; the interval between B1 and B2 is (n*32k+ / -i) 66-bit code blocks;
[0125] Ax represents an APS code block, x=1 or 2; wherein A1 represents an APS SOM code block, and A2 represents an APS EOM code block; the interval between A1 and A2 is (4*n*16k+ / -i) 66-bit code blocks; wherein i is set based on the number of 66 bits contained in the maximum data packet length;
[0126] Class L is a general term for CV, CS, 1DM, 2DMM, and 2DMR. Class L consists of 64 opportunity positions in the opportunity position sequence, of which the 1st to 17th opportunity positions are assigned to CV (in the above opportunity position sequence relationship, they are represented as CV1, CV2, ..., CV 17 ), the 18th opportunity position is assigned to CS (in the above opportunity position sequence relationship, no subscript is added to CS, but it follows the CV class with a subscript of 18), and the 19th to 31st opportunity positions are assigned to 1DM, 2DMM, and 2DMR (in the above opportunity position sequence relationship, they are represented as DM1, DM2, ..., DM 17 ), the 32nd to 64th opportunity positions are reserved opportunity positions (represented as RES1, RES2, ..., RES in the above opportunity position sequence relationship). 33 ), for future expansion. Wherein, the APS code block is sent on demand, if the APS code is not sent, the Ax position in the corresponding opportunity position sequence is replaced by the default Idle code block; wherein, for the L-class code block position in the opportunity position sequence, if the corresponding valid L-class code block is not sent, it is replaced by the default Idle code block accordingly.
[0127] It is not difficult to see from the above opportunity position sequence relationship that each L-class code block is expanded according to the BABL cycle. For example, B1-A1-B2-CV1 is followed by B1-A2-B2-CV2, and B1-A2-B2-CV2 is followed by B1-A1-B2-CV3, and so on until all the code blocks contained in the corresponding L class are displayed.
[0128] Taking the above table as an example, the error reporting corresponding to the type of position in the opportunity position sequence according to the code block where the desynchronization occurs can be specifically manifested as follows:
[0129] If B1 with Num of 0 in the above table is used as the code block for initial matching, then if the BAS class code block with Num of 6 fails to match (i.e., out of step), the alarm fed back at this time, in addition to the reported BAS out-of-step alarm marked in Example 1, can also carry the above-mentioned Num parameter value as a basis for further analysis. This is also where the advantages of the embodiment of the present invention compared to Example 1 can be further reflected.
[0130] In the specific implementation process, if 256 in the above table is a cycle, the mapping method of the corresponding cycle is preferably to use the more special L-type code blocks as the basis for mapping one cycle of the opportunity position sequence with the specific code stream when confirming that each code block is normally synchronized, so that each code block contained in the mapped code stream can correspond one-to-one with the content in the corresponding table.
[0131] Embodiment 3:
[0132] After describing the MTN OAM sequence synchronization method in Embodiment 1 and Embodiment 2, the present invention further provides an MTN OAM sequence synchronization method based on the technical solutions described from different angles, such as Figure 3 As shown, including:
[0133] In step 401, MTN OAM is divided into BAS class, APS class and L class.
[0134] The L class includes one or more of CV class, CS class, 1DM class, 2DMM class and 2DMR class. Optionally, the L class is divided into 64 opportunity positions as one detection cycle.
[0135] In step 402, the BAS class, APS class and L class perform sequence synchronization according to their respective intervals. When their respective intervals do not meet the requirements, a BAS out-of-sync alarm, an APS out-of-sync alarm and an L out-of-sync alarm are reported respectively.
[0136] In step 403, sequence synchronization is performed according to the positional relationship among the BAS class, the APS class, and the L class.
[0137] In step 404, when the position relationship sequence synchronization error occurs, a POS sequence out-of-sync alarm is reported.
[0138] The embodiment of the present invention can identify the abnormality of the communication line according to the sequence synchronization state and the detection result, enhance the verification mechanism of OAM itself, and avoid other malfunctions caused by bit errors, etc.; different types of OAM are uniformly synchronized in sequence, which can effectively save resources and power consumption.
[0139] In the embodiment of the present invention, the BAS class is the reference OAM, and B1 and B2 sequence detection is performed at intervals of n*32k 66-bit code blocks; wherein B1 refers to the SOM code block of the BAS code block, B2 refers to the EOM code block of the BAS code block, and n is the number of time slots occupied by the services correspondingly located between the first code block of MTNPOAM and the second code block of MTNP OAM;
[0140] When the sequence or interval is incorrect, it is judged as out-of-sync, and whether to discard the out-of-sync code block is determined based on the configuration.
[0141] In the embodiment of the present invention, the APS class performs A1 and A2 sequence detection at intervals of 4*n*16k 66-bit code blocks;
[0142] Wherein, A1 refers to the SOM code block of the APS code block, A2 refers to the EOM code block of the APS code block, and n is the number of time slots occupied by the services correspondingly located between the first MTNP OAM code block and the second MTNP OAM code block;
[0143] When the sequence or interval is incorrect, it is judged as out-of-sync, and whether to discard the out-of-sync code block is determined based on the configuration.
[0144] The APS must be located between B1 and B2, and the interval between the APS and B1 is n*16k+ / -i 66-bit code blocks, wherein i is a positive integer less than n*16k, and must be after B1 to be considered as one of the synchronization conditions.
[0145] In the embodiment of the present invention, the L class detects the received L class code block opportunity position at intervals of 4*n*16k 66-bits code blocks;
[0146] When the sequence or interval is incorrect, it is judged as out-of-sync, and whether to discard the out-of-sync code block is determined based on the configuration.
[0147] In a preferred implementation scheme of the embodiment of the present invention, the L-type code block must be located between B2 and B1, and the interval between the L-type code block and B2 is n*16k+ / -j 66-bit code blocks, wherein j is a positive integer less than n*16k, B1 refers to the SOM code block of the BAS code block, B2 refers to the EOM code block of the BAS code block, and n is the number of time slots occupied by the services correspondingly located between the first MTNP OAM code block and the second MTNP OAM code block, and it must be after B2 to be recognized as one of the conditions for synchronization.
[0148] Embodiment 4:
[0149] After describing the MTN OAM sequence synchronization method in Embodiment 1 and Embodiment 2, the present invention further provides an MTN OAM sequence synchronization method based on the technical solutions described from different angles, such as Figure 4 As shown, including:
[0150] In step 501, one or more different types of OAM including BAS, APS, CV, CS, 1DM, 2DMM and 2DMR are synchronized in a unified sequence according to 256 opportunity positions;
[0151] In step 502, when a sequence synchronization error occurs, the corresponding OAM is discarded according to the configuration and a desynchronization alarm of the corresponding OAM is reported, such as a BAS desynchronization alarm, an APS desynchronization alarm, and an L desynchronization alarm.
[0152] The embodiment of the present invention can identify the abnormality of the communication line according to the sequence synchronization state and the detection result, enhance the verification mechanism of OAM itself, and avoid other malfunctions caused by bit errors, etc.; different types of OAM are uniformly synchronized in sequence, which can effectively save resources and power consumption.
[0153] The unified sequence synchronization of one or more different types of OAM including BAS, APS, CV, CS, 1DM, 2DMM and 2DMR according to 256 opportunity positions specifically includes:
[0154] Num 0 1 2 3 4 5 6 7 ... 64 65 66 67 68 69 70 71 ... 252 253 254 255 type <![CDATA[B1]]> Ax <![CDATA[B2]]> <![CDATA[CV1]]> <![CDATA[B1]]> Ax <![CDATA[B2]]> <![CDATA[CV2]]> ... <![CDATA[B1]]> Ax <![CDATA[B2]]> <![CDATA[CV 17 ]]> <![CDATA[B1]]> Ax <![CDATA[B2]]> CS ... <![CDATA[B1]]> Ax <![CDATA[B2]]> <![CDATA[RES 33 ]]>
[0155] Among them, BAS is composed of the SOM code block of the BAS code block and the EOM code block of the BAS code block, which are recorded as B1 and B2 respectively; the interval between B1 and B2 is (n*32k+ / -i) 66-bit code blocks;
[0156] Ax represents an APS code block, x=1 or 2; wherein A1 represents an APS SOM code block, and A2 represents an APS EOM code block; the interval between A1 and A2 is (4*n*16k+ / -i) 66-bit code blocks; wherein i is set based on the number of 66 bits contained in the maximum data packet length;
[0157] Class L is a general term for CV, CS, 1DM, 2DMM, and 2DMR. Class L consists of 64 opportunity positions in the opportunity position sequence, of which the 1st to 17th opportunity positions are allocated to CV, the 18th opportunity position is allocated to CS, the 19th to 31st opportunity positions are allocated to 1DM, 2DMM, and 2DMR, and the 32nd to 64th opportunity positions are reserved for expansion.
[0158] Wherein, the APS code block is sent on demand, and if the APS code is not sent, the Ax position in the corresponding opportunity position sequence is replaced by a default Idle code block;
[0159] Wherein, for the L-type code block position in the opportunity position sequence, if the corresponding valid L-type code block is not sent, it is replaced by the default Idle code block.
[0160] Embodiment 5:
[0161] The present invention will then use at least three embodiments to perform OAM code block phase detection or synchronization according to the three major categories of BAS, APS, and L. In the BAS category, the specific transmission implementation is as follows Figure 7 As shown, the steps are as follows:
[0162] In step 601, a BAS type OAM code block in a data stream is identified, and the SOM and EOM in the code block are identified to obtain a B1 or B2 indication.
[0163] In step 602, according to the B1 or B2 indication, the opportunity position (such as Figure 6 shown).
[0164] In step 603, it is determined whether the corresponding BAS code block is received at the next expected position. If no BAS code block is received near the expected position or the received BAS code block is not of a specific type, it is determined to be BAS out of sync, and whether to discard the BAS code block that does not conform to the specific type is selected according to the configuration, and a BAS out of sync alarm is reported.
[0165] Embodiment 6:
[0166] In the APS class, the specific transmission implementation is as follows Fig. 9 As shown, the steps are as follows:
[0167] In step 701, an APS type OAM code block in a data stream is identified, and the SOM and EOM in the code block are identified to obtain an A1 or A2 indication.
[0168] In step 702, according to the A1 or A2 instruction (such as Figure 8 As shown), the opportunity position of the next A2 or A1 is calculated according to 4*n*16k intervals.
[0169] In step 703, it is determined whether the corresponding APS code block is received at the next expected position. If no APS code block is received near the expected position or the received APS code block is not of a specific type, it is determined to be APS out of sync, and whether to discard the APS code block that does not conform to the specific type is selected according to the configuration, and an APS out of sync alarm is reported.
[0170] Since APS is sent on demand, A2 must be found after 4*n*16k intervals after A1 to be considered synchronized. However, if A1 is not found after 4*n*16k 66-bit intervals after A2, it cannot be considered as out of sync. However, the position of A1 must be after y*4*n*16k 66-bit blocks after A2, where y is a positive integer greater than or equal to 1, which represents the interval of sending on demand.
[0171] It should be noted that when an APS code block is detected, it is necessary to identify whether the interval between the APS code block and the previously received BAS code block is n*16k. If not, it is also determined as APS desynchronization, and an APS desynchronization alarm is reported.
[0172] Embodiment 7:
[0173] In the L category, the specific transmission is implemented as follows Fig.11 As shown, the steps are as follows:
[0174] In step 801, the LOW type OAM code blocks in the data stream are identified, and the type, SOM, and EOM bits of the code blocks are identified, with emphasis on marking CV1\CV17\CS.
[0175] In step 802, based on the position of the found L code block, the opportunity position of the next L is calculated at 4*n*16k intervals. Fig.10 As shown in DM c (c=1~13), RES x (x=1-33) The opportunity position may not have any OAM code block. At this time, the counter is reset to zero and the opportunity position of the next L is recalculated according to the 4*n*16k interval.
[0176] In step 803, it is determined whether the corresponding LOW code block is received at the next expected position. If the LOW code block received near the expected position is not of a specific type, it is determined to be L out of sync, and whether to discard the LOW code block that does not conform to the specific type is selected according to the configuration, and an L out of sync alarm is reported.
[0177] It should be noted that when an L code block is detected, it is necessary to identify whether the interval between the L code block and the previously received B code block is n*16k. If not, it is also determined to be L out of sync, and an L out of sync alarm is reported.
[0178] In addition, for DM and RES opportunity positions, there may be no corresponding OAM code blocks, which is allowed. However, for CV\CS, the corresponding OAM code blocks must be detected at their corresponding opportunity positions. If not detected, it is also determined as CV\CS out of sync, and a CV\CS out of sync alarm is reported.
[0179] Embodiment 8:
[0180] All different types of OAM are synchronized as a whole. The specific transmission implementation is as follows Fig.12 As shown, the steps are as follows:
[0181] In step 901, the OAM code blocks are identified and the received key code blocks such as CV1\CV17\CS are marked.
[0182] In step 902, when the key code block is received, the sequence number of the current opportunity position is determined.
[0183] In step 903, the next chance position is searched at n*16k intervals, and it is detected near the next chance position whether OAM is detected, or whether the detected OAM type matches the position sequence number.
[0184] In step 904, the OAM code block desynchronization is determined. When the detected OAM type does not match the position sequence number, it is determined that the OAM code block of this type is desynchronized, and whether to discard the received OAM code block is selected according to the configuration, and the corresponding CV\CS alarm is reported.
[0185] It should be noted that there may be no corresponding OAM code blocks for DM and RES opportunity positions, which is allowed. However, for CV\CS\BAS, the corresponding OAM code blocks must be detected at their corresponding opportunity positions. If not detected, it is also determined as this type of OAM desynchronization.
[0186] In addition, if BAS is not detected at the BAS opportunity position, only BAS desynchronization is reported, and LOW desynchronization is not reported. Similarly, if the corresponding L code block is not detected at the L opportunity position, only L desynchronization is reported, and BAS desynchronization is not reported.
[0187] If the step is lost in step 904, the process goes back to step 901. If the step is not lost in step 904, the process goes back to step 903.
[0188] Embodiment 9:
[0189] like Fig.13, which is a schematic diagram of the architecture of the MTN OAM sequence synchronization device according to an embodiment of the present invention. The MTN OAM sequence synchronization device according to this embodiment includes one or more processors 21 and a memory 22. Fig.13 A processor 21 is taken as an example.
[0190] The processor 21 and the memory 22 may be connected via a bus or other means. Fig.13 The example of connecting through bus is taken in the following.
[0191] The memory 22 is a non-volatile computer-readable storage medium, which can be used to store non-volatile software programs and non-volatile computer executable programs, such as the MTN OAM sequence synchronization method in Embodiment 1. The processor 21 executes the MTN OAM sequence synchronization method by running the non-volatile software programs and instructions stored in the memory 22.
[0192] The memory 22 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the memory 22 may optionally include a memory remotely arranged relative to the processor 21, and these remote memories may be connected to the processor 21 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0193] The program instructions / modules are stored in the memory 22, and when executed by the one or more processors 21, the MTN OAM sequence synchronization method in the above embodiment 1 is executed, for example, the above described Figure 1-Figure 4 , Figure 7 , Fig. 9 , Fig.11 The steps shown.
[0194] It is worth noting that the information interaction, execution process, etc. between the modules and units within the above-mentioned devices and systems are based on the same concept as the processing method embodiment of the present invention. The specific contents can be found in the description of the method embodiment of the present invention and will not be repeated here.
[0195] A person skilled in the art may understand that all or part of the steps in the various methods of the embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0196] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A MTN OAM sequence synchronization method, characterized in that: include: Identify the category to which the received MTNP OAM first code block belongs, and obtain that the MTNP OAM first code block is BAS class, APS class or L class; wherein L class is composed of one or more of CV class, CS class, 1DM class, 2DMM class and 2DMR class; Determine a detection interval parameter of a first MTNP OAM code block of the same type according to the identification of the class to which the first MTNP OAM code block belongs; According to the detection interval parameter, after completing the MTNP OAM code block counting that is the same as the detection interval parameter, obtaining the MTNP OAM second code block; According to the identification result of the category to which the MTNP OAM second code block belongs, if it is determined to match the MTNP OAM first code block, it is determined to be normal synchronization, otherwise, it is determined to be out of synchronization.
2. The MTN OAM sequence synchronization method according to claim 1, characterized in that: The detection interval parameter is expressed as n*32k, 4*n*16k and 4*n*16k in BAS class, APS class and L class respectively; wherein n is the number of time slots occupied by the services correspondingly located between the first code block of MTNP OAM and the second code block of MTNP OAM; and k represents a parameter value of 1024.
3. The MTN OAM sequence synchronization method according to claim 1, characterized in that: When the MTNP OAM first code block belongs to the BAS class, the method specifically includes: B1 and B2 are detected at n*32k intervals, where B1 refers to the SOM code block of the BAS code block, and B2 refers to the EOM code block of the BAS code block; The MTNP OAM first code block and the MTNP OAM second code block are respectively one of B1 and B2.
4. The MTN OAM sequence synchronization method according to claim 1, characterized in that: When the MTNP OAM first code block belongs to the APS class, the method specifically includes: A1 and the next adjacent A2 are detected at an interval of 4*n*16k, and the interval between A2 and the next adjacent A1 is detected at an interval of y*(4*n*16k), where y is a natural number and represents the required interval for sending APS code blocks; wherein A1 refers to the SOM code block of the APS code block, and A2 refers to the EOM code block of the APS code block; The MTNP OAM first code block and the MTNP OAM second code block are respectively one of A1 and A2.
5. The MTN OAM sequence synchronization method according to claim 1, characterized in that: When the MTNP OAM first code block belongs to class L, the method specifically includes: According to CV1-CV2...CV 16 -CV 17 -CS-DM1-DM2..DM 12 -DM 13 -RES1-RES2...RES 32 -RES 33 Identify the received MTNP OAM code blocks in the identification order; Among them, DM in the identification sequence refers to 1DM class, 2DMM class and 2DMR class, and RES in the identification sequence stands for reserved OAM; Among them, the 64 L-class code block opportunity positions are a cycle, CV1 is at the first opportunity position, RES 33 In the 64th chance position.
6. The MTN OAM sequence synchronization method according to claim 1, characterized in that: When an APS or L code block is identified, it is necessary to determine whether it complies with the BABL sequence. The method further includes: When an APS code block is received, it is necessary to confirm whether there is a B1 code block n*16k 66-bit code blocks forward from the previous position. If so, the BABL-APS sequence is synchronized. If not, the BABL-APS sequence is out of step, and a BABL-APS sequence out of step alarm is reported; When receiving the L code block, it is necessary to confirm whether there is a B2 code block n*16k 66-bit code blocks forward from the previous position. If so, the BABL-L sequence is synchronized. If not, the BABL-L sequence is out of step, and a BABL-L sequence out of step alarm is reported; Among them, the B1 refers to the SOM code block of the BAS code block, B2 refers to the EOM code block of the BAS code block; and the A refers to the SOM code block of the APS code block or the EOM code block of the APS code block.
7. The MTN OAM sequence synchronization method according to any one of claims 1 to 6, characterized in that: The interval between code blocks also includes the set floating parameter value i; The floating parameter value i is accumulated to the detection interval parameter in a positive or negative deviation manner; Here, i is set based on the number of 66 bits included in the maximum data packet length.
8. A MTN OAM sequence synchronization device, characterized in that: The device comprises: At least one processor; and a memory in communication with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the processor to execute the MTN OAM sequence synchronization method according to any one of claims 1 to 7.
Citation Information
Patent Citations
An operation maintenance management information processing method and device
CN109728948A
OAM message transmission method, OAM message sending equipment, OAM message receiving equipment and readable storage medium
CN110768742A
Information sending and receiving method, information sending and receiving device and information processing system
CN111342929A
Method for providing path signal overhead in the 64B / 66B character stream of an ITU-T metro transport network
US10797816B1
A method for protecting the ring network of optical transport network
WO2006128368A1
