The present application claims priority to the Chinese Patent Application No. 201910979578.9 filed with the Chinese Patent Office on Oct. 15, 2019, the entire contents of which are incorporated herein by reference.
The present application relates to the field of communication technologies, and in particular, to a synchronization method, a synchronization apparatus, a device, and a storage medium.
Due to advantages of large bandwidth, rigid pipe, and perfect operation administration and maintenance (OAM), the optical transport network (OTN) technology is widely applied in the field of 5th Generation mobile communication technology (5G). The OTN technology supporting 5G transmission provides a dual-rate OTN interface, which is different from a traditional OTN interface in that, a format of the dual-rate OTN interface has changed. In an actual communication process, a frame structure of the dual-rate OTN interface would protect a synchronization information channel, however, since the frame structure of the dual-rate OTN interface includes a mapping processing, accuracy is affected, and high-accuracy time synchronization expected by 5G cannot be met.
The present application provides a synchronization method, a synchronization apparatus, a device and a storage medium, so that high-accuracy time synchronization is implemented.
An embodiment of the present application provides a synchronization method, including:
An embodiment of the present application provides a synchronization apparatus, including:
An embodiment of the present application provides a device, including:
An embodiment of the present application provides a storage medium having a computer program stored thereon, the computer program, when executed by a processor, implements the synchronization method described above.
The embodiments of the present application are further described below with reference to the accompanying drawings. It should be noted that the embodiments of the present application and the characteristics in the embodiments may be combined with each other if no conflict is incurred.
Optical transport network (OTN) standard is formulated by the International Telecommunication Union-Telecommunication Standardization Department (ITU-T), and is an important standard for optical transport equipment, and almost all long-distance transport networks are formed of equipment based on the OTN standard.
The OTN technology supporting 5G transmission provides a dual-rate OTN interface, for example, the dual-rate OTN interface is a 25G/50G OTN interface, which is different from a traditional OTN interface in that, a format of the 25G/50G OTN interface has changed, and in order to facilitate a description of the format of the 25G/50G OTN interface, the format of the 25G/50G OTN interface is recorded as an Optical Channel Transport Unit (OTU) 25(u)/50(u). The OTU 25(u)/50(u) is a row-column structure based on 4×3824.
In an actual communication process, the structure of the OTU25(u)/50(u) frame would protect a synchronization information channel, however, due to an addition of a mapping processing from the OTU25(u)/50(u) frame to the OTU25(u)/50(u)-RS frame, accuracy is affected, and high-accuracy time synchronization expected by 5G cannot be met. The present application provides a synchronization method to implement relatively high-accuracy time synchronization.
At operation S110, determining an interface event timestamp point of synchronization event information, and encapsulating the synchronization event information.
At operation S120, inserting the encapsulated synchronization event information into a synchronization information channel of a first preset frame or a second preset frame for performing transmission.
In some implementations, at a sending terminal, the interface event timestamp point of synchronization event information is determined, the synchronization event information is encapsulated and then inserted into the synchronization information channel of the first preset frame or the second preset frame for performing transmission; and at a receiving terminal, timestamp information is generated at a start position of each received first preset frame, in response to that the synchronization information channel of the first preset frame or the second preset frame bears/carries the interface event timestamp point of the synchronization event information, the timestamp information acquired when the first preset frame is received is compared with the interface event timestamp point, so as to implement time synchronization.
In some implementations, the determining the interface event timestamp point of the synchronization event information includes: taking a first preset multi-frame event as the interface event timestamp point of the synchronization event information; and the inserting the encapsulated synchronization event information into the synchronization information channel of the first preset frame or the second preset frame for performing transmission includes: inserting the encapsulated synchronization event information into the synchronization information channel of the first preset frame or the synchronization information channel of an M-th first preset frame following the first preset frame for performing transmission, M is a positive integer. In the implementations, in a case where a start position of the first preset frame or the first preset multi-frame event is taken 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 synchronization information channel of the M-th first preset frame following the first preset frame for performing transmission.
In some implementations, the determining the interface event timestamp point of the synchronization event information includes: taking a first preset multi-frame event as the interface event timestamp point of the synchronization event information; and the inserting the encapsulated synchronization event information into the synchronization information channel of the first preset frame or the second preset frame for performing transmission includes: inserting the encapsulated synchronization event information into the synchronization information channel of the second preset frame borne/carried by the first preset frame. In the implementations, in a case where the first preset multi-frame event is taken 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 borne by the first preset frame.
In some implementations, the determining the interface event timestamp point of the synchronization event information includes: taking a second preset multi-frame event as the interface event timestamp point of the synchronization event information; and the inserting the encapsulated synchronization event information into the synchronization information channel of the second preset frame for performing transmission includes: compensating the encapsulated synchronization event information according to a preset number of offset bits; and inserting the compensated synchronization event information into the synchronization information channel of the second preset frame for performing transmission. In the implementations, a start position of the second preset multi-frame event is taken as the interface event timestamp point of the synchronization event information.
In the implementations, the first preset frame can bear a plurality of the second preset frames. For example, the first preset frame may bear more than 40 second preset frames.
In some implementations, the synchronization information channel of the first preset frame is determined by one of followings: a first preset number of bits of CWM overhead in the first preset frame; and a second preset number of bits of payload area in the first preset frame. In the implementations, a part of bits of the CWM overhead in the first preset frame may be used as the synchronization information channel of the first preset frame; and a part of bits in the payload area in the first preset frame may be used as the synchronization information channel of the first preset frame
In some implementations, the number of the offset bits is determined by one of followings: in response to that a first frame of the second preset multi-frame is mapped to the first preset frame, calculating a number of offset bits between a start position of the first frame of the second preset multi-frame and a start position of the first preset frame.
In some implementations, a statistical way of a number of the first preset multi-frames includes one of followings: performing statistics by accumulating a number of inserted alignment markers (AMs) or CWMs; adopting a third preset number of bits in AMs or CWMs as a statistical overhead of the number of the first preset multi-frames; and adopting a fourth preset number of bits in payload area in the first preset frame as a statistical overhead of the number of the first preset multi-frames. In the implementations, each first preset frame includes one AM or CWM, the number of the first preset multi-frames may be calculated according to a number of inserted AMs or CWMs; or a statistical overhead of the number of the first preset multi-frames is set in the AMs or CWMs, and the statistical overhead is used for obtaining the number of the first preset multi-frames a statistical way; or a statistical overhead of the number of the first preset multi-frames is set in the payload area, and the statistical overhead is used for obtaining the number of the first preset multi-frames by a statistical way.
In some implementations, in response to that the synchronization information channel and/or the statistical overhead of a number of multi-frames is determined by utilizing a preset number of bits in AMs or CWMs, scrambling operation is performed on the synchronization information channel of the first preset frame and/or the statistical overhead of the number of multi-frames. In the implementations, a part of bits in the AMs or CWMs is used as the synchronization information channel and/or the statistical overhead of the number of multi-frames, and in order to keep a balance between bits 0 and 1 in transmission, the synchronization information channel of the first preset frame and/or the statistical overhead of the number of multi-frames is scrambled and then sent.
In some implementations, 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 multi-frame is an OTU25(u)/50(u)-RS multi-frame, and the second preset multi-frame is an OTU25(u)/50(u) multi-frame.
In some implementations, at a sending terminal, an OTU25(u)/50(u) frame is mapped to an OTU25(u)/50(u)-RS frame, each OTU25(u)/50(u)-RS frame may bear more than 40 OTU25(u)/50(u) frames, a start position of the OTU25(u)/50(u)-RS frame or the OTU25(u)/50(u)-RS multi-frame is taken as an interface event timestamp point of synchronization event information, the synchronization event information is encapsulated and then inserted into the OTU25(u)/50(u)-RS frame, or inserted into an OTU25(u)/50(u) frame borne in an M-th OTU25(u)/50(u)-RS frame following the OTU25(u)/50(u)-RS frame for performing transmission.
In some implementations, CWM overhead in an OTU25(u)-RS frame is 256 bits, the CWM overhead is configured in the OTU25(u)-RS frame for performing a framing processing on a FEC codeword, and according to related standard protocols, the framing processing can be implemented by first 64 bits. Therefore, all or a part of remaining 192 bits may be used as a synchronization information channel of the OTU25(u)-RS frame (for example, 128 bits may be used as a synchronization information channel, and a bandwidth thereof is 0.6 Mbit/s), a start position of the OTU25(u)-RS frame or the OTU25(u)-RS multi-frame is taken as an interface event timestamp point of synchronization event information, and the synchronization event information is encoded and then placed in the synchronization information channel (i.e., a part of positions in CWM) of the OTU25(u)-RS frame or a K-th OTU25(u)-RS frame following the OTU25(u)-RS frame, and in order to keep a balance between bits 0 and 1 in transmission, the synchronization information channel of the OTU25(u)-RS frame is scrambled and then sent, K is a positive integer.
In some implementations, a part of bits (for example, 128 bits) in a payload area of an OTU25(u)/50(u)-RS frame are used as a synchronization information channel, a start position of the OTU25(u)/50(u)-RS frame or an OTU25(u)/50(u)-RS multi-frame is taken as a timestamp point of synchronization event information, the synchronization event information is encoded and then placed in the synchronization information channel of the OTU25(u)/50(u)-RS frame or a K-th OTU25(u)/50(u)-RS frame following the OTU25(u)/50(u)-RS frame, and in order to keep a balance between bits 0 and 1 in transmission, the synchronization information channel of the OTU25(u)/50(u)-RS frame is scrambled and then sent, K is a positive integer.
In some implementations, in a case where a first preset multi-frame event is used as an interface event timestamp point of synchronization event information, a generation way of the synchronization event information includes: generating the synchronization event information every first preset number N1 OTU25(u)/50(u)-RS frames, that is, the synchronization event information is stamped according to a start position of the OTU25(u)/50(u)-RS multi-frame, a number of OTU25(u)/50(u)-RS multi-frames may obtained through performing statistics on N1 by accumulating a number of inserted AMs or CWMs, or a part of bits in unused 192 bits in the AMs or CWMs in the OTU25(u)/50(u)-RS frame may be allocated for a multi-frame indication overhead of the OTU25(u)/50(u)-RS multi-frame, N1 is a positive integer.
In some implementations, in a case where a second preset multi-frame event is used as an interface event timestamp point of synchronization event information, a generation way of the synchronization event information includes: generating the synchronization event information every second preset number N2 OTU25(u)/50(u) frames. Exemplarily, taking that the synchronization event information is generated every 256 OTU25(u)/50(u) frames as an example, a boundary of the OTU25(u)/50(u)-RS frame or multi-frame is used as an interface event timestamp point of the synchronization event information, that is, a timestamp is acquired at a start position of a first frame of every 256 OTU25(u)/50(u) multi-frames. In such case, a number of offset bits between the start position of the first frame of the OTU25(u)/50(u) multi-frames and a first bit of the OTU25(u)/50(u)-RS frame when mapping the OTU25(u)/50(u) frame to the OTU25(u)/50(u)-RS frame is to be calculated, and synchronization event information acquired at the start position of the OTU25(u)/50(u)-RS frame or multi-frame is compensated by using the number of the offset bits, the compensated synchronization event information is placed in the synchronization information channel of the OTU25(u)/50(u)-RS frame for performing transmission.
In some implementations, at a receiving terminal, timestamp information is generated at a start position of each received OTU25(u)/50(u)-RS frame, in response to that a synchronization information channel of the OTU25(u)/50(u)-RS frame, or a synchronization information channel of an OTU25(u)/50(u) frame borne in the OTU25(u)/50(u)-RS frame, or the OTU25(u)/50(u)-RS frame, bears a first frame of 256 OTU25(u)/50(u) multi-frames, timestamps acquired by receiving the OTU25(u)/50(u)-RS frames are compared with timestamps carried in the OTU25(u)/50(u)-RS frame so as to implement time synchronization.
In some implementations,
At operation 1, using 4 bits from 253-th to 256-th positions in CWM in an OTU25(u)-RS frame as a multi-frame indication overhead, and using 128 bits from 125-th to 252-th positions as a synchronization information channel.
At operation 2, at the OTN device A as a sending terminal, generating a synchronization event information every 6 OTU25(u)-RS frames, that is, acquiring timestamp information at a start position of an OTU25(u)-RS frame whose multi-frame number is 1 in every 6 OTU25(u)-RS multi-frames.
At operation 3, performing generic framing procedure-frame mapping (GFP-F) encapsulation on the synchronization event information, inserting the encapsulated synchronization event information into a synchronization information channel of an OTU25(u)-RS frame whose multi-frame number is 2, and then sending the OTU25(u)-RS frame.
At operation 4, at the OTN device B on a receiving side, acquiring timestamp information at a start position of each received OTU25(u)-RS frame, in response to that a synchronization information channel of the OTU25(u)-RS frame bears timestamp information, performing GFP-F de-encapsulation on the borne timestamp information, and then comparing the de-encapsulated timestamp information with the acquired timestamp information, so as to implement time synchronization.
The GFP-F refers to a generic framing procedure (GFP) of frame mapping, which is a protocol data unit (PDU)-oriented data flow mode, and used as a data flow for transmission internet protocol (IP), multi-protocol label switching (MPLS) and Ethernet.
In some implementations, as shown in
At operation 1, at the OTN device A as a sending terminal, generating a synchronization event information every 6 OTU25(u)-RS frames, that is, acquiring timestamp information at a start position of every 6 OTU25(u)-RS multi-frames, configuring a counter to perform assignment statistics by counting a number of inserted CWMs.
At operation 2, performing GFP-F encapsulation on synchronization event information, inserting the encapsulated synchronization event information into a synchronization information channel of an OTU25(u) frame borne in the OTU25(u)-RS frame, and then sending the OTU25(u)-RS frame.
At operation 3, at the OTN device B on a receiving side, acquiring timestamp information at a start position of each received OTU25(u)-RS frame, in response to that a synchronization information channel of the OTU25(u) frame borne in the OTU25(u)-RS frame bears timestamp information, performing GFP-F de-encapsulation on the borne timestamp information, and then comparing the de-encapsulated timestamp information with the acquired timestamp information, so as to implement time synchronization.
In some implementations, as shown in
At operation 1, at the OTN device A as a sending terminal, generating a synchronization event information every 256 OTU25(u) multi-frames, that is, acquiring timestamp information at a start position of a first frame of every 256 OTU25(u) multi-frames.
At operation 2, recording a position offset between a first bit of the OTU25(u) frame and a first bit of a OTU25(u)-RS frame when the OTU25(u) frame is mapped into the OTU25(u)-RS frame, and timestamp information of the first bit of the OTU25(u)-RS frame.
At operation 3, adding the timestamp information of the first bit of the OTU25(u)-RS frame and the position offset between the OTU25(u) frame and the OTU25(u)-RS frame to obtain converted timestamp information as timestamp information of the OTU25(u) frame, performing GFP-F encapsulation on the timestamp information of the OTU25(u) frame, inserting the encapsulated timestamp information into a synchronization information channel of the OTU25(u) frame, and then sending the OTU25(u)-RS frame.
At operation 4, at the OTN device B on a receiving side, acquiring timestamp information at a start position of each received OTU25(u)-RS frame, in response to that the OTU25(u)-RS frame bears the first frame of 256 OTU25(u) multi-frames, extracting timestamp information from the synchronization information channel of the OTU25(u) frame, performing GFP-F de-encapsulation on the extracted timestamp information, and then comparing the de-encapsulated timestamp information with the acquired timestamp information, so as to implement time synchronization.
The determining module 210 is configured to determine an interface event timestamp point of synchronization event information, and encapsulate the synchronization event information.
The transmission module 220 is configured to insert the encapsulated synchronization event information into a synchronization information channel of a first preset frame or a second preset frame for performing transmission.
In some implementations, the determining module 210 is configured to take a first preset multi-frame event as the interface event timestamp point of the synchronization event information; and the transmission module 220 is configured to insert the encapsulated synchronization event information into a synchronization information channel of the first preset frame or an M-th first preset frame following the first preset frame for performing transmission, M is a positive integer.
In some implementations, the determining module 210 is configured to take a first preset multi-frame event as the interface event timestamp point of the synchronization event information; and the transmission module 220 is configured to insert the encapsulated synchronization event information into a synchronization information channel of a second preset frame borne by the first preset frame.
In some implementations, the determining module 210 is configured to take a second preset multi-frame event as the interface event timestamp point of the synchronization event information; and the transmission module 220 includes: a compensation unit configured to compensate the encapsulated synchronization event information according to a preset number of offset bits; and an inserting unit configured to insert the compensated synchronization event information into the synchronization information channel of the second preset frame for performing transmission.
In some implementations, the synchronization information channel of the first preset frame is determined by one of followings: a first preset number of bits of CWM overhead in the first preset frame; and a second preset number of bits of payload area in the first preset frame.
In some implementations, the number of the offset bits is determined by one of followings: calculating a number of offset bits between a start position of a first frame of the second preset multi-frame and a start position of the first preset frame when a first frame of the second preset multi-frame is mapped to the first preset frame.
In some implementations, a statistical way of a number of the first preset multi-frames includes one of followings: performing statistics by accumulating a number of inserted alignment markers (AMs) or CWMs; adopting a third preset number of bits in AMs or CWMs as a statistical overhead of the number of the first preset multi-frames; and adopting a fourth preset number of bits in payload area in the first preset frame as a statistical overhead of the number of the first preset multi-frames.
In some implementations, in response to that a synchronization information channel and/or a statistical overhead of a number of multi-frames is determined by utilizing a preset number of bits in AMs or CWMs, performing scrambling operation on the synchronization information channel of the first preset frame and/or the statistical overhead of the number of multi-frames.
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 or modules corresponding to the device of the present application (e.g., the determining module 210 and the transmission module 220 in the synchronization apparatus). The memory 320 may include a storage program area and a storage data area, the storage program area may store an operating system, an application program for at least one function; and the storage data area may store data created according to use of the device, and the like. The memory 320 may include a high-speed random access memory, or a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some implementations, the memory 320 may further include memories configured remotely with respect to the processor 310, and these remote memories may be connected to the device via a network. The examples of the network described above include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations of these networks.
The device provided above may be configured to perform the synchronization method described above, with corresponding functions and effects.
The present application further provides a storage medium including computer-executable instructions, the computer-executable instructions, when executed by a computer processor, perform an synchronization method, and the synchronization method is applied to an OTN device, including: determining an interface event timestamp point of synchronization event information, and encapsulating the synchronization event information; and inserting the encapsulated synchronization event information into a synchronization information channel of a first preset frame or a second preset frame for performing transmission.
It should be understood by those skilled in the art, the term user equipment encompasses any suitable type of wireless user equipment, such as mobile telephones, portable data processing devices, portable web browsers or vehicle mounted mobile stations.
The present application may be implemented in hardware or special purpose circuits, software, logic or any combination thereof. For example, some aspects may be implemented in hardware, while other aspects may be implemented in firmware or software which can be executed by a controller, a microprocessor or other computing devices, although the present application is not limited thereto.
The the present application may be implemented by a data processor of a mobile device executing computer program instructions, for example in a processor entity, or by hardware, or by a combination of software and hardware. The computer program instructions may be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages.
The block diagram of any logical flowchart in the accompanying drawings of the present application may represent program operations; or may represent interconnected logic circuits, modules, and functions; or may represent a combination of program operations and logic circuits, modules, and functions. A computer program may be stored in a storage device. The storage device may be of any type suitable for the local technical environment and may be implemented by using any suitable data storage technology, such as, but is not limited to, a Random Access Memory (RAM), a Read-Only Memory (ROM), an optical storage device and system (a digital video disc (DVD) or a compact disc (CD)) and the like. The computer-readable medium may include a non-transitory storage medium. The data processor may be of any type suitable for the local technical environment, such as, but is not limited to, a general computer, a specific computer, a microprocessor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), and a processor based on a multi-core processor architecture.
Number | Date | Country | Kind |
---|---|---|---|
201910979578.9 | Oct 2019 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2020/119922 | 10/9/2020 | WO |