A synchronization method, device, equipment and storage medium
By determining the time stamp point of the interface event in the OTN interface and inserting the synchronization event information into the frame structure, the time synchronization accuracy problem caused by the dual-rate OTN interface mapping processing is solved, and high-precision time synchronization is achieved.
Patent Information
- Application Number
- CN201910979578.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-10-15
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2039-10-15
AI Technical Summary
In the 5G field, the frame structure of the dual-rate OTN interface increases mapping processing, resulting in the impact of time synchronization accuracy and cannot meet the high-precision requirements.
By determining the interface event time stamp point of synchronization event information, the encapsulated synchronization event information is inserted into the synchronization information channel of preset frames or multi-frames to achieve time synchronization. The specific method includes determining the time stamp point of the interface event at the sending end, encapsulating the synchronization event information and inserting it into the frame structure, collecting the time stamp information at the receiving end for comparison, so as to complete time synchronization.
It realizes high-precision time synchronization to meet the synchronization accuracy requirements of 5G.
Smart Images

Figure CN112672235B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to communications, and in particular to a synchronization method, apparatus, device and storage medium. Background Art
[0002] Due to the advantages of Optical Transport Network (OTN) technology, such as large bandwidth, rigid pipeline, and perfect operation administration and maintenance (OAM), it has been widely used in the 5G field. In the OTN technology that supports 5G transmission, a dual-rate OTN interface is proposed. Unlike the traditional OTN interface, the format of the dual-rate OTN interface has changed. In the actual communication process, the frame structure of the dual-rate OTN interface will protect the synchronization information channel, but because the frame structure of the dual-rate OTN interface adds mapping processing, its accuracy will be affected and cannot meet the high-precision time synchronization required by 5G. Summary of the invention
[0003] The embodiments of the present application provide a synchronization method, apparatus, device and storage medium to achieve high-precision time synchronization.
[0004] In a first aspect, an embodiment of the present application provides a synchronization method, including:
[0005] Determine the interface event timestamp point of the synchronization event information;
[0006] The encapsulated synchronization event information is inserted into the synchronization information channel of the first preset frame or the second preset frame for transmission.
[0007] In a second aspect, an embodiment of the present application provides a synchronization device, including:
[0008] A determination module, configured to determine an interface event timestamp point for synchronization event information;
[0009] The transmission module is configured to insert the encapsulated synchronization event information into the synchronization information channel of the first preset frame or the second preset frame for transmission.
[0010] In a third aspect, an embodiment of the present application provides a device, including: a memory and one or more processors;
[0011] The memory is used to store one or more programs;
[0012] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any of the above embodiments.
[0013] In a fourth aspect, an embodiment of the present application provides a storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any of the above embodiments is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 This is a schematic diagram of an OTU25(u) / 50(u) frame structure provided in this embodiment;
[0015] Figure 2 This is a schematic diagram of an OTU25(u) / 50(u)-RS frame structure provided in an embodiment of the present application;
[0016] Figure 3 is a flowchart of a synchronization method provided by an embodiment of the present application;
[0017] Figure 4 This is a schematic diagram of a 25G OTN scenario provided by an embodiment of the present application;
[0018] Figure 5 This is a schematic diagram of adding a synchronization information channel and a multiframe indication in an OUT(u)-RS frame provided in an embodiment of the present application;
[0019] Figure 6 This is a schematic diagram of the position of an OTU25(u) multiframe boundary in an OTU25-RS frame provided in an embodiment of the present application;
[0020] Figure 7 is a structural block diagram of a synchronization device provided in an embodiment of the present application;
[0021] Figure 8 It is a structural schematic diagram of a device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] The embodiments of the present application will be described below in conjunction with the accompanying drawings. In the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other arbitrarily.
[0023] The optical transport network standard is formulated by the International Telecommunication Union (ITU-T) and is an important standard for optical transmission equipment. Almost all long-distance transmission networks are now composed of equipment based on the optical transport network standard.
[0024] In the OTN technology supporting 5G transmission, a dual-rate OTN interface is proposed. For example, the dual-rate OTN interface is a 25G / 50G OTN interface. Different from the traditional OTN interface, the 25G / 50G OTN interface format has changed. In order to facilitate the description of the 25G / 50G OTN interface format, the 25G / 50G OTN interface format is recorded as Optical Channel Transport Unit (OTU) 25(u) / 50(u). OTU25(u) / 50(u) is based on a 4*3824 row and column structure. Figure 1 : is a schematic diagram of an OTU25(u) / 50(u) frame structure provided in this embodiment. Figure 1 As shown, the frame structure does not include forward error correction (FEC). Before transmission to the physical interface, OTU25(u) / 50(u) needs to be mapped to the frame structure of OTU25(u) / 50(u)-RS (Reed Solomon code). The OTU25(u) / 50(u)-RS frame is an FEC frame, which is a 1024*5280 or 1024*5440 structure.
[0025] Figure 2 Schematic diagram of an OTU25(u) / 50(u)-RS frame structure provided in an embodiment of the present application. Figure 2 As shown in FIG. 1 , OTU25(u) / 50(u)-RS includes three parts: alignment marker (AM) / codeword marker (CWM), FEC, and payload area. Figure 2 As shown in Figure (a), CWM is included in the OTU25(u)–RS frame; Figure 2 As shown in Figure (b), AM is included in the OTU50(u)-RS frame.
[0026] In the actual communication process, the synchronization information channel will be protected in the OTU25(u) / 50(u) frame structure, but due to the addition of the mapping process from OTU25(u) / 50(u) to OTU25(u) / 50(u)-RS, its accuracy will be affected and cannot meet the high-precision time synchronization required by 5G. In view of this, an embodiment of the present application provides a synchronization method to achieve high-precision time synchronization.
[0027] Figure 3 This is a flow chart of a synchronization method provided by an embodiment of the present application. Figure 3 As shown, the synchronization method in this embodiment includes S110-S120.
[0028] S110: Determine the interface event timestamp point of the synchronization event information.
[0029] S120: Insert the encapsulated synchronization event information into the synchronization information channel of the first preset frame or the second preset frame for transmission.
[0030] In an embodiment, the interface event timestamp point of the synchronization event information is determined at the sending end, and after the synchronization event information is encapsulated, it is inserted into the synchronization information channel of the first preset frame or the second preset frame for transmission; at the receiving end, a timestamp information is generated at the beginning of each first preset frame received. If the synchronization information channel of the first preset frame or the second preset frame carries the interface event timestamp point of the synchronization event information, the timestamp information received from the first preset frame is compared with the interface event timestamp point to complete time synchronization.
[0031] In one embodiment, determining the interface event timestamp point of the synchronization event information includes: using the first preset multi-frame event as the interface event timestamp point of the synchronization event information; correspondingly, inserting the encapsulated synchronization event information into the synchronization information channel of the first preset frame or the second preset frame for transmission, including: inserting the encapsulated synchronization event information into the synchronization information channel of the first preset frame or the Mth first preset frame after the first preset frame for transmission, where M is a positive integer. In an embodiment, when the start of the first preset frame or the first preset multi-frame event is used as the interface event timestamp point of the synchronization event information, the encapsulated synchronization event information is inserted into the synchronization information channel of the first preset frame or the Mth first preset frame after the first preset frame for transmission.
[0032] In one embodiment, determining the interface event timestamp point of the synchronization event information includes: using the first preset multiframe event as the interface event timestamp point of the synchronization event information;
[0033] Correspondingly, inserting the encapsulated synchronization event information into the synchronization information channel of the first preset frame or the second preset frame for transmission includes: inserting the encapsulated synchronization event information into the synchronization information channel of the second preset frame carried by the first preset frame for transmission. In an embodiment, when the first preset multi-frame event is used as the interface event timestamp point of the synchronization event information, the encapsulated synchronization event information is inserted into the synchronization information channel of the second preset frame carried by the first preset frame for transmission.
[0034] In one embodiment, determining the interface event timestamp point of the synchronization event information includes: using the second preset multiframe event as the interface event timestamp point of the synchronization event information;
[0035] Accordingly, inserting the encapsulated synchronization event information into the synchronization information channel of the second preset frame for transmission includes: compensating the synchronization event information according to a predetermined number of offset bits; inserting the compensated synchronization event information into the synchronization information channel of the second preset frame for transmission. In an embodiment, the start of the second preset multi-frame event is used as the interface event timestamp point of the synchronization event information.
[0036] In an embodiment, the first preset frame may carry multiple second preset frames. For example, the first preset frame may carry more than 40 second preset frames.
[0037] In one embodiment, the synchronization information channel of the first preset frame is determined by one of the following: a first preset number of bits of the CWM overhead in the first preset frame; a second preset number of bits of the payload area in the first preset frame. In the embodiment, some bits in the CWM overhead of the first preset frame can be used as the synchronization information channel of the first preset frame; some bits in the payload area of the first preset frame can also be used as the synchronization information channel.
[0038] In one embodiment, the method for determining the number of offset bits includes: calculating the number of offset bits between the start of the first frame of the second preset multiframe and the start of the first preset frame when the first frame of the second preset multiframe is mapped to the first preset frame.
[0039] In one embodiment, the statistical method of the number of the first preset multiframe includes one of the following: counting by accumulating the number of inserted AMs or CWMs; using the third preset number of bits in the AM or CWM as the statistical overhead of the number of the first preset multiframes; using the fourth preset number of bits in the payload area of the first preset frame as the statistical overhead of the number of the first preset multiframes. In the embodiment, each first preset frame includes an AM or CWM, and the number of the first preset multiframes can be calculated according to the number of inserted AMs or CWMs; or, the statistical overhead of the number of the first preset multiframes is set in the AM or CWM, and the number of the first preset multiframes is counted using the statistical overhead; or, the statistical overhead of the number of the first preset multiframes is set in the payload area, and the statistics are used to calibrate the number of the first preset multiframes for statistics.
[0040] In one embodiment, when a preset number of bits in AM or CWM is used to determine a synchronization information channel and / or a multi-frame number statistical overhead, a scrambling operation is performed on the synchronization information channel and / or the multi-frame number statistical overhead in the first preset frame. In an embodiment, some bits in AM or CWM are used as the synchronization information channel and / or the multi-frame number statistical overhead, and in order to maintain the balance of bits 0 and 1 in transmission, the synchronization information channel and / or the multi-frame number statistical overhead in the first preset frame are scrambled before being sent.
[0041] In one embodiment, the first preset frame is an OTU25(u) / 50(u)-RS frame, the second preset frame is an OTU25(u) / 50(u) frame, the first preset multiframe is an OTU25(u) / 50(u)-RS multiframe, and the second preset multiframe is an OTU25(u) / 50(u) multiframe.
[0042] In one embodiment, at the transmitting end, OTU25(u) / 50(u) is mapped to an OTU25(u) / 50(u)-RS frame, each OTU25(u) / 50(u)-RS frame can carry more than 40 OTU25(u) / 50(u) frames, and the start of the OTU25(u) / 50(u)-RS frame or the OTU25(u) / 50(u)-RS multiframe is used as the interface event timestamp point of the synchronization event information. After the synchronization event information is encapsulated, it is inserted into the OTU25(u) / 50(u)-RS frame, or inserted into the OTU25(u) / 50(u)-RS frame carried by the Mth OTU25(u) / 50(u)-RS frame after the OTU25(u) / 50(u)-RS frame for transmission.
[0043] In one embodiment, the size of the CWM overhead in the OTU25(u)-RS frame is 256 bits, and the purpose of setting the CWM overhead in the OTU25(u)-RS frame is to perform framing processing of the FEC codeword. According to the relevant standard protocol, the first 64 bits are required to complete the framing processing. Therefore, all or part of the remaining 192 bits (for example, 128 bits can be used as the synchronization information channel with a bandwidth of 0.6Mbit / s) can be used as the synchronization information channel of the OTU25(u)-RS frame, and the start of the OTU25(u)-RS frame / multiframe is used as the interface event timestamp point of the synchronization event information, and the synchronization event information is encoded and placed in the synchronization information channel in the OTU25(u)-RS frame or the Kth OTU25(u)-RS thereafter (i.e., part of the position in the CWM). In order to maintain the balance of bits 0 and 1 in transmission, the synchronization information channel in the OTU25(u)-RS needs to be scrambled before being sent. Wherein, K is a positive integer.
[0044] In one embodiment, a portion of bits (e.g., 128 bits) is allocated in the payload area of the OTU25(u) / 50(u)-RS frame to be used as a synchronization information channel, and the start of the OTU25(u) / 50(u)-RS frame / multiframe is used as the timestamp point of the synchronization event information, and the synchronization event information is encoded and placed in the synchronization information channel of the OTU25(u) / 50(u)-RS frame or the Kth OTU25(u) / 50(u)-RS thereafter. In order to maintain the balance of bits 0 and 1 in transmission, the synchronization information channel in the OTU25(u) / 50(u)-RS needs to be scrambled before being sent. Wherein, K is a positive integer.
[0045] In one embodiment, when the first preset multiframe event is used as the interface event timestamp point of the synchronization event information, the synchronization event information is generated in a manner including: generating every first predetermined number N1 of OTU25(u) / 50(u)-RS frames, that is, the synchronization event information is stamped at the start of the OTU25(u) / 50(u)-RS multiframe, and the number of OTU25(u) / 50(u)-RS multiframes can be counted by accumulating the number of inserted AM / CWMs for N1, or some bits of the unused 192 bits in the AM / CWM in the OTU25(u) / 50(u)-RS frame can be used as the multiframe indication overhead of the OTU25(u) / 50(u)-RS. Wherein, N1 is a positive integer.
[0046] In one embodiment, when the second preset multiframe event is used as the interface event timestamp point of the synchronization event information, the synchronization event information is generated by: generating every second predetermined number N 2 of OTU25(u) / 50(u) frames. For example, the synchronization event information is generated by every 256 OTU25(u) / 50(u) frames, and the OTU25(u) / 50(u) frame / multiframe boundary is used as the interface event timestamp point of the synchronization event information, that is, the timestamp is collected at the beginning of the first frame of each 256 OTU25(u) / 50(u) multiframe. At this time, it is necessary to calculate the number of offset bits between the beginning of the first frame of the OTU25(u) / 50(u) multiframe and the first bit in the OTU25(u) / 50(u)-RS frame when the OTU25(u) / 50(u) frame is mapped to the OTU25(u) / 50(u)-RS frame, and use the offset bit number to compensate the synchronization event information collected at the timestamp point at the beginning of the OTU25(u) / 50(u)-RS frame / multiframe, and the compensated synchronization event information is placed in the synchronization information channel of the OTU25(u) / 50(u) frame for transmission.
[0047] In one embodiment, at the receiving end, a timestamp information is generated at the beginning of each received OTU25(u) / 50(u)-RS. If the synchronization information channel in the OTU25(u) / 50(u)-RS or the synchronization information channel in the OTU25(u) / 50(u)-RS frame or the OTU25(u) / 50(u)-RS frame carries the first frame of an OTU25(u) / 50(u) multiframe of 256 frames, the timestamp collected from the received OTU25(u) / 50(u)-RS frame is compared with the timestamp carried in the OTU25(u) / 50(u)-RS frame to complete time synchronization.
[0048] In one embodiment, Figure 4 25G OTN scenario diagram provided by the embodiment of the present application. Figure 4 As shown, in the 25G transmission application scenario, two OTN devices are set, namely OTN device A and OTN device B, and the two OTN devices OTN device A and OTN device B are used to form the 25G transmission application scenario.
[0049] Step 1: Use the 4 bits at positions 253 to 256 in the CWM in the OTU25(u)-RS frame as the multiframe indication overhead, and use the 128 bits at positions 125 to 252 as the synchronization information channel. Figure 5 This is a schematic diagram of adding a synchronization information channel and a multiframe indication in an OUT(u)-RS frame provided by an embodiment of the present application. Figure 5 As shown, a synchronization information channel and a multiframe indication are added to the OTU25(u)-RS frame, wherein the bandwidth of the synchronization information channel is approximately 0.6 Mbit / s.
[0050] Step 2: At the transmitting end of OTN device A, synchronization event information is generated every 6 OTU25-RS frames, that is, timestamp information is collected at the beginning of the OTU25-RS with multiframe number 1 in every 6 OTU25-RS multiframes.
[0051] Step 3: Encapsulate the synchronization event information in GFP-F and insert it into the synchronization information channel of the OTU25-RS frame with the multiframe number 2, and send the OTU25-RS frame.
[0052] Step 4: At the receiving side OTN device B, timestamp information is collected at the starting position of each received OTU25-RS. If the synchronization information channel in the OTU25-RS frame carries timestamp information, the carried timestamp information is decapsulated by GFP-F and compared with the collected timestamp information to complete time synchronization.
[0053] GFP-F refers to the Generic Framing Procedure (GFP) for frame mapping, which is a data flow mode oriented to the Protocol Data Unit (PDU) and is used to transmit Internet Protocol (IP), Multi-Protocol Label Switching (MPLS) and Ethernet data flows.
[0054] In one embodiment, if Figure 4 As shown in FIG. 1 , a 25G transmission application scenario is shown, which is composed of two OTN devices, OTN device A and OTN device B.
[0055] Step 1: At the transmitting end of OTN device A, synchronization event information is generated every 6 OTU25-RS frames, that is, timestamp information is collected at the beginning of every 6 OTU25-RS multiframes, and a counter is set to count the number of inserted CWMs for assignment statistics.
[0056] Step 2: Encapsulate the synchronization event information in GFP-F and insert it into the synchronization information channel of the OTU25 frame carried by the OTU25-RS frame, and send the OTU25-RS frame.
[0057] Step 3: At the receiving side OTN device B, timestamp information is collected at the starting position of each received OTU25-RS frame. If the synchronization information channel in the OTU25 frame carried in the OTU25-RS frame carries timestamp information, the carried timestamp information is decapsulated by GFP-F and compared with the collected timestamp information to complete time synchronization.
[0058] In one embodiment, if Figure 4 As shown in FIG. 1 , a 25G transmission application scenario is shown, which is composed of two OTN devices, OTN device A and OTN device B.
[0059] Step 1: At the transmitting end of OTN device A, synchronization event information is generated at the beginning of every 256 OTU25 multiframes, that is, timestamp information is collected at the beginning of the first frame of every 256 OTU25 multiframes.
[0060] Step 2: Record the position offset between the first bit of the OTU25 frame and the first bit of the OTU25-RS frame when the OTU25 frame is mapped into the OTU25-RS frame, as well as the timestamp information of the first bit of the OTU25-RS frame.
[0061] Step 3: Add the timestamp information of the first bit of the OTU25-RS frame to the timestamp information after the position offset conversion between the OTU25 frame and the OTU25-RS frame as the timestamp information of the OTU25 frame. Use this as the timestamp information of the OTU25, perform GFP-F encapsulation, and insert it into the synchronization information channel of the OTU25 frame to send the OTU25-RS frame.
[0062] Step 4: At the receiving side OTN device B, timestamp information is collected at the starting position of each received OTU25-RS frame. If the OTU25-RS frame carries the first frame of the OTU25 multiframe of 256 frames, the timestamp information is extracted from the synchronization information channel in the OTU25 frame, and the timestamp information is compared with the collected timestamp information after GFP-F decapsulation to complete time synchronization.
[0063] Figure 6 Schematic diagram of the location of an OTU25(u) multiframe boundary in an OTU25-RS frame provided by an embodiment of the present application. In the embodiment, each OTU25-RS frame can carry multiple OTU25(u) frames, and each OTU25(u) multiframe contains multiple OTU25(u) frames, that is, each OTU25-RS frame can carry multiple OTU25(u) multiframes. Figure 6 As shown in FIG. 1 , each OTU25(u) multiframe contains two OTU25(u) frames, and the OTU25(u) multiframe boundary is after the CWM.
[0064] Figure 7 is a structural block diagram of a synchronization device provided in an embodiment of the present application. Figure 7 As shown, the synchronization device in this embodiment includes: a determination module 210 and a transmission module 220.
[0065] A determination module 210, configured to determine an interface event timestamp point of synchronization event information;
[0066] The transmission module 220 is configured to insert the encapsulated synchronization event information into the synchronization information channel of the first preset frame or the second preset frame for transmission.
[0067] In one embodiment, the determination module is further configured to use the first preset multiframe event as an interface event timestamp point of the synchronization event information;
[0068] Correspondingly, the transmission module is further configured to insert the encapsulated synchronization event information into the synchronization information channel of the first preset frame or the Mth first preset frame after the first preset frame for transmission, where M is a positive integer.
[0069] In one embodiment, the determination module is further configured to use the first preset multiframe event as an interface event timestamp point of the synchronization event information;
[0070] Correspondingly, the transmission module is further configured to insert the encapsulated synchronization event information into the synchronization information channel of the second preset frame carried by the first preset frame for transmission.
[0071] In one embodiment, the determination module is further configured to use the second preset multiframe event as an interface event timestamp point of the synchronization event information;
[0072] Correspondingly, the transfer module includes:
[0073] a compensation unit, configured to compensate the synchronization event information according to a predetermined number of offset bits;
[0074] The inserting unit is configured to insert the compensated synchronization event information into the synchronization information channel of the second preset frame for transmission.
[0075] In one embodiment, the method for determining the synchronization information channel of the first preset frame includes one of the following: a first preset number of bits of the CWM overhead in the first preset frame; a second preset number of bits of the payload area in the first preset frame.
[0076] In one embodiment, the method for determining the number of offset bits includes: calculating the number of offset bits between the start of the first frame of the second preset multiframe and the start of the first preset frame when the first frame of the second preset multiframe is mapped to the first preset frame.
[0077] In one embodiment, a method for counting the number of first preset multiframes includes one of the following: counting by accumulating the number of inserted alignment markers AM or CWM; using the third preset number of bits in AM or CWM as the statistical overhead of the first preset multiframe number; using the fourth preset number of bits in the payload area of the first preset frame as the statistical overhead of the first preset multiframe number.
[0078] In one embodiment, when the synchronization information channel and / or multiframe number statistical overhead is determined using a preset number of bits in AM or CWM, a scrambling operation is performed on the synchronization information channel and / or multiframe number statistical overhead in the first preset frame.
[0079] Figure 8 Schematic diagram of a device provided in an embodiment of the present application. Figure 8 As shown, the device provided by the present application includes: a processor 310 and a memory 320. The number of processors 310 in the device can be one or more. Figure 8 In the example, a processor 310 is used. The number of memories 320 in the device may be one or more. Figure 8 A memory 320 is taken as an example. The processor 310 and the memory 320 of the device can be connected via a bus or other means. Figure 8In the example, the bus connection is used. In this embodiment, the device is an OTN device.
[0080] The memory 320, as a computer-readable storage medium, may be configured to store software programs, computer executable programs, and modules, such as program instructions / modules corresponding to the device of any embodiment of the present application (e.g., a determination module and a transmission module in a synchronization device). The memory 320 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the device, etc. In addition, the memory 320 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 device. In some instances, the memory 320 may further include a memory remotely arranged relative to the processor 310, and these remote memories may be connected to the device 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.
[0081] The device provided above can be configured to execute the synchronization method provided in any of the above embodiments, and has corresponding functions and effects.
[0082] An embodiment of the present application also provides a storage medium containing computer executable instructions. When the computer executable instructions are executed by a computer processor, they are used to execute a synchronization method. The method is applied to OTN equipment. The method includes: determining an interface event timestamp point of synchronization event information; inserting the encapsulated synchronization event information into a synchronization information channel of a first preset frame or a second preset frame for transmission.
[0083] It will be appreciated by those skilled in the art that the term user equipment encompasses any suitable type of wireless user equipment, such as a mobile phone, a portable data processing device, a portable web browser or a car-mounted mobile station.
[0084] In general, various embodiments of the present application can be implemented in hardware or dedicated circuits, software, logic or any combination thereof. For example, some aspects can be implemented in hardware, while other aspects can be implemented in firmware or software that can be executed by a controller, microprocessor or other computing device, although the present application is not limited thereto.
[0085] Embodiments of the present application may be implemented by executing computer program instructions by a data processor of a mobile device, for example in a processor entity, or by hardware, or by a combination of software and hardware. The computer program instructions may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages.
[0086] The block diagram of any logic flow in the drawings of the present application may represent program steps, or may represent interconnected logic circuits, modules and functions, or may represent a combination of program steps and logic circuits, modules and functions. A computer program may be stored on a memory. The memory may have any type suitable for the local technical environment and may be implemented using any suitable data storage technology, such as but not limited to read-only memory (ROM), random access memory (RAM), optical memory devices and systems (digital versatile discs (DVD) or compact disks (CD)), etc. Computer-readable media may include non-transient storage media. A data processor may be any type suitable for the local technical environment, such as but not limited to a general-purpose computer, a special-purpose computer, a microprocessor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FGPAs) and a processor based on a multi-core processor architecture.
Claims
1. A synchronization method, characterized in that: include: Determine the interface event timestamp point of the synchronization event information; Inserting the encapsulated synchronization event information into the synchronization information channel of the first preset frame or the second preset frame for transmission; The step of determining the interface event timestamp point of the synchronization event information includes: Using the first preset multiframe event as the interface event timestamp point of the synchronization event information; Correspondingly, inserting the encapsulated synchronization event information into the synchronization information channel of the first preset frame or the second preset frame for transmission includes: Inserting the encapsulated synchronization event information into the synchronization information channel of the first preset frame or the Mth first preset frame after the first preset frame for transmission, where M is a positive integer; Alternatively, the encapsulated synchronization event information is inserted into a synchronization information channel of a second preset frame carried by the first preset frame for transmission; The step of determining the interface event timestamp point of the synchronization event information includes: Using the second preset multiframe event as the interface event timestamp point of the synchronization event information; Correspondingly, inserting the encapsulated synchronization event information into the synchronization information channel of the second preset frame for transmission includes: Compensating the synchronization event information according to a predetermined number of offset bits; Inserting the compensated synchronization event information into the synchronization information channel of the second preset frame for transmission; The first preset frame is an OTU25(u) / 50(u)-RS frame, the second preset frame is an OTU25(u) / 50(u) frame, the first preset multiframe is an OTU25(u) / 50(u)-RS multiframe, and the second preset multiframe is an OTU25(u) / 50(u) multiframe.
2. The method according to claim 1, characterized in that The method for determining the synchronization information channel of the first preset frame includes one of the following: a first preset number of bits of the codeword mark CWM overhead in the first preset frame; a second preset number of bits of the payload area in the first preset frame.
3. The method according to claim 1, characterized in that The method for determining the number of offset bits includes: The number of offset bits between the start of the first frame of the second preset multiframe and the start of the first preset frame is calculated when the first frame of the second preset multiframe is mapped to the first preset frame.
4. The method according to claim 1, characterized in that The statistical method for the number of first preset multiframes includes one of the following: counting by accumulating the number of inserted alignment marks AM or CWM; using the third preset number of bits in AM or CWM as the statistical overhead of the first preset multiframe number; using the fourth preset number of bits in the payload area of the first preset frame as the statistical overhead of the first preset multiframe number.
5. The method according to claim 2, characterized in that: In case of using a preset number of bits in AM or CWM to determine the synchronization information channel and / or the multi-frame number statistical overhead, a scrambling operation is performed on the synchronization information channel and / or the multi-frame number statistical overhead in the first preset frame.
6. A synchronization device, characterized in that: include: A determination module, configured to determine an interface event timestamp point for synchronization event information; A transmission module, configured to insert the encapsulated synchronization event information into the synchronization information channel of the first preset frame or the second preset frame for transmission; Wherein, the determination module is specifically configured to use the first preset multi-frame event as the interface event timestamp point of the synchronization event information; Correspondingly, the transmission module is specifically configured to insert the encapsulated synchronization event information into the synchronization information channel of the first preset frame or the Mth first preset frame after the first preset frame for transmission, where M is a positive integer; or, insert the encapsulated synchronization event information into the synchronization information channel of the second preset frame carried by the first preset frame for transmission; The determination module is specifically configured to use the second preset multiframe event as the interface event timestamp point of the synchronization event information; Accordingly, the transmission module includes: a compensation unit, configured to compensate the synchronization event information according to a predetermined number of offset bits; An inserting unit, configured to insert the compensated synchronization event information into the synchronization information channel of the second preset frame for transmission; The first preset frame is an OTU25(u) / 50(u)-RS frame, the second preset frame is an OTU25(u) / 50(u) frame, the first preset multiframe is an OTU25(u) / 50(u)-RS multiframe, and the second preset multiframe is an OTU25(u) / 50(u) multiframe.
7. A computer device, characterized in that: include: memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the synchronization method as described in any one of claims 1 to 5.
8. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the synchronization method according to any one of claims 1 to 5 is implemented.
