WO2020063593A1 - 一种时延对称性测量方法、装置和系统 - Google Patents

一种时延对称性测量方法、装置和系统 Download PDF

Info

Publication number
WO2020063593A1
WO2020063593A1 PCT/CN2019/107554 CN2019107554W WO2020063593A1 WO 2020063593 A1 WO2020063593 A1 WO 2020063593A1 CN 2019107554 W CN2019107554 W CN 2019107554W WO 2020063593 A1 WO2020063593 A1 WO 2020063593A1
Authority
WO
WIPO (PCT)
Prior art keywords
time information
identification code
code block
type
specific identification
Prior art date
Application number
PCT/CN2019/107554
Other languages
English (en)
French (fr)
Inventor
宋高前
陈成满
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2020063593A1 publication Critical patent/WO2020063593A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0682Clock or time synchronisation in a network by delay compensation, e.g. by compensation of propagation delay or variations thereof, by ranging

Definitions

  • the embodiments of the present application relate to, but are not limited to, the field of communications, and in particular, to a method, a device, and a system for measuring delay symmetry.
  • C-RAN Centralized Radio Access Network
  • MIMO Massive Multiple Input Multiple Output
  • 5G era due to the development of wireless spectrum resources and the development of Massive Multiple Input Multiple Output (MIMO) antenna technology, the universal public radio interface under the traditional Radio Access Network (RAN) architecture (CPRI, Common, Public, Radio, Interface) Interfaces are difficult to carry huge bandwidth and need to be restructured.
  • RAN Radio Access Network
  • the 5G baseband processing unit (BBU, Building Base Unit) function will be divided into two functional entities: a centralized unit (CU) and a distributed unit (DU).
  • 5GC-RAN will include First-level fronthaul (Radio Remote Unit (RRU)) and two-level fronthaul (DU-CU) architecture.
  • RRU Radio Remote Unit
  • DU-CU two-level fronthaul
  • the division of CU and DU functions is distinguished by the real-time nature of processing content.
  • CU equipment mainly includes non-real-time wireless high-level protocol stack functions, and also supports some core network function (UP) sinking and deployment of edge application services.
  • the device mainly deals with physical layer functions and L2 functions for real-time requirements.
  • the embodiments of the present application provide a method, a device, and a system for measuring delay symmetry, which can measure and compensate the delay symmetry of a device, so as to adapt to a service transmission scenario that has strict requirements on delay symmetry.
  • An embodiment of the present application provides a method for measuring delay symmetry, including: a first device sends first time information to a second device; the first device receives second time information sent by the second device, and obtains a third time Information, where the second time information is the sum of the time information of the second device sending the second time information and the delay information of the first device to the second device, and the delay of the first device to the second device.
  • the time information is a difference between the time information when the second device obtains the first time information and the first time information
  • the third time information is the time information when the first device obtains the second time information
  • the delay information from the second device to the first device is a difference between the third time information and the time information that the second device sends the second time information; the first device is based on the The second time information and the third time information perform delay symmetry compensation.
  • An embodiment of the present application proposes a method for measuring delay symmetry, including: a second device receives first time information sent by a first device, and obtains fourth time information; wherein the fourth time information is the second time information
  • the device obtains time information of the first time information; the second device calculates delay information from the first device to the second device according to the fourth time information and the first time information; the The second device judges the validity of the delay information from the first device to the second device, and when the delay information is valid, the second device sends second time information to the first device;
  • the second time information is a sum of time information for sending the second time information and delay information from the first device to the second device.
  • An embodiment of the present application proposes a method for measuring delay symmetry, including: a first device sends first time information to a second device; the first device receives fifth time information sent by the second device, and obtains a third time Information, wherein the fifth time information includes: time information at which the second device obtains the first time information and time information at which the second device sends the fifth time information, and the third time information is the first time information A device obtains time information of the fifth time information; the first device calculates a first difference between the time information obtained by the second device and the first time information, and the third time information A second difference between the time information and the time information that the second device sends the fifth time information.
  • An embodiment of the present application proposes a method for measuring delay symmetry, including: a second device receives first time information sent by a first device, and obtains fourth time information; wherein the fourth time information is the second time information The device obtains time information of the first time information; the second device sends fifth time information to the first device; wherein the fifth time information includes: the fourth information and a time when the fifth time information is sent information.
  • An embodiment of the present application proposes a delay symmetry measuring device, which includes a processor and a computer-readable storage medium.
  • the computer-readable storage medium stores instructions, and when the instructions are executed by the processor, the implementation is implemented. Any of the above-mentioned methods for measuring delay symmetry.
  • An embodiment of the present application proposes a computer-readable storage medium on which a computer program is stored.
  • the computer program is executed by a processor, the steps of any of the foregoing methods for measuring delay symmetry are implemented.
  • An embodiment of the present application proposes a delay symmetry measurement system, including: a first device configured to send first time information to a second device; receiving second time information to obtain third time information;
  • the second time information is a sum of the time information of the second device sending the second time information and the delay information of the first device to the second device, and the delay information of the first device to the second device is the second
  • the device obtains the difference between the time information of the first time information and the first time information, the third time information is the time information of the first device obtaining the second time information, and the second device arrives
  • the delay information of the first device is a difference between the third time information and the time information of the second device sending the second time information;
  • the second device is configured to receive the first time sent by the first device Information to obtain fourth time information; wherein the fourth time information is time information for the second device to obtain the first time information; and calculate an office based on the fourth time information and the first time information Delay information from the first device to the second device; sending second time information to the first device
  • An embodiment of the present application proposes a delay symmetry measurement system, including: a first device configured to send first time information to a second device; receiving fifth time information sent by the second device to obtain third time information;
  • the fifth time information includes: time information at which the second device obtains the first time information and time information at which the second device sends the fifth time information, and the third time information is the first device Obtaining time information of the fifth time information; calculating a first difference between the time information of the first time information received by the second device and the first time information, and the third time information and all
  • the second device sends a second difference in time information of the fifth time information; performs delay symmetry compensation according to the first difference and the second difference; and a second device is configured to receive the first The first time information sent by the device to obtain the fourth time information; wherein the fourth time information is the time information when the second device obtains the first time information; and the fifth time is sent to the first device Time information, where the fifth time information includes: the fourth information and time information for sending the fifth time information.
  • the embodiment of the present application includes: the first device sends the first time information to the second device; the first device receives the second time information sent by the second device to obtain the third time information; wherein the second time information is the second The sum of the time information of the second time information sent by the device and the delay information of the first device to the second device, and the delay information of the first device to the second device obtains the first time information for the second device.
  • the difference between the time information and the first time information, the third time information is the time information when the first device obtains the second time information, and the delay from the second device to the first device
  • the information is a difference between the third time information and time information in which the second device sends the second time information.
  • the embodiment of the present application implements measurement of delay symmetry of a device to adapt to a service transmission scenario that has strict requirements on delay symmetry.
  • FIG. 1 (a) is a schematic diagram of an optical fiber direct connection scheme according to an embodiment of the present application
  • FIG. 1 (b) is a first schematic diagram of a bearer device bearer solution according to an embodiment of the present application
  • FIG. 1 (c) is a second schematic diagram of a bearer device bearer solution according to an embodiment of the present application.
  • FIG. 2 is a flowchart of a method for measuring delay symmetry according to an embodiment of the present application
  • FIG. 3 is a schematic structural diagram of an S identification code block and an O identification code block according to an embodiment of the present application
  • FIG. 4 (a) is a schematic structural diagram of time information
  • FIG. 4 (b) is a first schematic diagram of carrying time information in a third type of specific identification code block according to an embodiment of the present application
  • FIG. 4 (c) is a second schematic diagram of carrying time information in a third type of specific identification code block according to an embodiment of the present application.
  • FIG. 5 is a flowchart of a method for measuring delay symmetry according to another embodiment of the present application.
  • FIG. 6 is a flowchart of a method for measuring delay symmetry according to another embodiment of the present application.
  • FIG. 7 is a flowchart of a method for measuring delay symmetry according to another embodiment of the present application.
  • FIG. 8 is a schematic structural composition diagram of a delay symmetry measuring device according to another embodiment of the present application.
  • FIG. 9 is a schematic structural composition diagram of a delay symmetry measuring device according to another embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a delay symmetry measurement device according to another embodiment of the present application.
  • FIG. 11 is a schematic structural composition diagram of a delay symmetry measuring device according to another embodiment of the present application.
  • FIG. 12 (a) is a first schematic diagram of time information transmission according to an embodiment of the present application.
  • FIG. 12 (b) is a second schematic diagram of time information transmission in the embodiment of the present application.
  • FIG. 12 (c) is a third schematic diagram of time information transmission in the embodiment of the present application.
  • FIG. 12 (d) is a fourth schematic diagram of time information transmission in the embodiment of the present application.
  • FIG. 13 is a schematic diagram of a topology network of a cpri service according to an embodiment of the present application.
  • Figure 1 (a) shows a fiber optic direct connection solution, that is, user-side equipment
  • Figure 1 (a) The device A and device B shown are directly connected through an optical fiber without passing through other bearer devices; as shown in Figure 1 (b), the device bearer scheme is the user-side device (the device shown in Figure 1 (b) A and device B) are connected through at least two bearer devices (device 1 and device 2 shown in Figure 1 (b), and device 1, device 2 and device 3 shown in Figure 1 (c)) .
  • the device bearing solution needs to achieve performance close to the direct fiber connection, which poses a huge challenge to the delay jitter and symmetry of the device.
  • Flexible Ethernet Flexible Ethernet
  • MAC Media Access Control
  • Flexible Ethernet has a cushion layer (FlexE, Shim layer) at the MAC layer and the Physical Coding Sublayer (PCS, Physical Coding Sublayer) layer.
  • the function of the layer is to build a Calendar (template) with a size of 20 ⁇ n 66b blocks, where n is the number of bound physical layer (PHY) of the Ethernet, and each 66b block represents a 5G time slot.
  • services with different MAC rates are packed into 66b blocks corresponding to multiples of 5G. Every 20 66b blocks form a sub-Calendar, and Calendars with a size of 20 ⁇ n are distributed into n sub-Calendars.
  • each sub-Calendar For each sub-Calendar, an overhead of 66b blocks is added every 20 ⁇ 1023 66b blocks to store the related mapping relationship. Each sub-Calendar is transmitted in a single 100G Ethernet PHY. On the demultiplexing side, n sub-Calendars form a 20 ⁇ n Calendar, and the corresponding customer service is extracted from the corresponding number of 66b blocks according to the mapping relationship stored in the overhead.
  • the overhead is defined by O code extension.
  • idle characters I, idle
  • PCS Process Control System
  • start characters S, start
  • termination character T, terminate
  • control character O, ordered_set
  • an embodiment of the present application provides a method for measuring delay symmetry, including:
  • Step 200 The first device sends first time information to the second device.
  • the first device may be any device, such as a bearer device, a fronthaul device, an edge device (PE, Provider Edge), and an edge router.
  • a bearer device such as a bearer device, a fronthaul device, an edge device (PE, Provider Edge), and an edge router.
  • PE Provider Edge
  • the first device may use multiple methods to send the first time information t1 to the second device.
  • the first device replaces the first type of specific identification code block in the transmission code stream with the second type of specific identification code block, and carries the first time information t1 in part or all of the third type of specific identification code block and sends it to the first Two devices; wherein the third type of specific identification code block includes at least one of the following: the second type of specific identification code block and S identification code block.
  • the time information is transmitted by replacing the first type of specific identification code block with the second type of specific identification code block, and does not occupy additional bandwidth when transmitting the time information.
  • the first device may replace the first type of specific identification code block with the second type of specific identification code block in the transmission code stream according to a predetermined rule, for example, every m first type of specific identification code block Replace with the second type of specific identification code block, that is, there are (m-1) first type of specific identification code blocks between two adjacent second type specific identification code blocks.
  • the first type of specific identification code block includes at least one of the following: an idle information identification code block and a K code between the T identification code block and the S identification code block; the second type of specific identification code block Including at least one of the following: O identification code block, S identification code block.
  • the idle information (IDLE) identification code block between the T identification code block and the S identification code block is replaced with an O identification code block, or the K code is replaced with an S identification code block.
  • S identification code block also referred to as a message header block
  • O identification code block The structures of the S identification code block (also referred to as a message header block) and the O identification code block are shown in FIG. 3.
  • 0-1 bits are 66-bit (Bit) block types: 10 is the control block (such as O identification code block, S identification code block), 01 is the data block; 2-9 bits are 66bit block subtype: when it is 0x78 Represents S block (ie, S identification code block); when it is 0x4B, it means O block (ie, O identification code block); 10-65 bits of S block are data content, and are actually fixed content data in actual use.
  • the 10-33 bits of the O block are the data content
  • the 34-41 bits are the feature code
  • the 42-65 bits are the data content.
  • the time information carried in the third type of specific identification code block is shown in Figure 4 (a) and Figure 4 (b).
  • the original time information is represented by 80 bits, of which the first 48 bits represent second-level time information, and the last 32 bits Bit represents nanosecond time information.
  • 32 bits (such as data2 to data5) in the third type of specific identification code block are used to represent nanosecond time information (instant stamp information).
  • the 18-33 bits of the third type of specific identification code block can be extended to the upper 16 bits of nanosecond time information, of which 18-19 bits are used to indicate the time of transmission.
  • Information type (TS_type), as shown in Figure 4 (a). When TS_type is 0, it indicates the default type. When TS_type is 1, it indicates the request type (TS_req). When TS_type is 2, it indicates the response type (TS_resp). When TS_type is 3, it indicates TS negotiation message; 42-57 bits are extended to the lower 16 bits of nanosecond time information.
  • the third type of specific identification code block also carries at least one of the following: customer number, IDLE number, sequence number, cyclic redundancy check code (CRC, Cyclic Redundancy Check), and time stamp valid Indication, K code indication.
  • customer number IDLE number
  • sequence number sequence number
  • Cyclic Redundancy Check Cyclic Redundancy Check
  • time stamp valid Indication K code indication.
  • the customer code is the number of the original customer on the user side. In some scenarios, multiple original customers may be aggregated for unified transmission. Delay measurement and adjustment need to cover the end-to-end path closer to the user, and pass the original customer number information for easy differentiation Path information; the number of IDLEs is the number of I identification code blocks included before the third type of specific identification code block; the sequence number is the sequence number of the local sequence corresponding to the third type of specific identification code block; CRC is used for calibration Verify the information in the third type of specific identification code block; the time stamp valid indication is used to indicate whether the time stamp information in the third type of specific identification code block is valid; the K code indication is used to indicate the packet after the third type of specific identification code block Is there a K code in it?
  • 10-13 bits of the third type of specific identification code block can be extended to the customer number; 14-17 bits can be extended to the number of idles; 58-61 bits can be extended to the serial number; 62-65 The bits are extended to the CRC of the 66-bit block.
  • the 18-33 bits of the third type of specific code block can be extended to the upper 16 bits of the nanosecond time information, of which 18- 19 bits are used to indicate the type of time information (TS_type).
  • TS_type is 0 for the default type, TS_type is 1 for the request type (TS_req), and TS_type is 2 for the response type ( TS_resp), when TS_type is 3, it means TS negotiation message; 10-13 bits are extended to customer number; 14-15 bits are extended reserved bits; 16 bits are extended to K code indication; 17 bits are extended to time stamp effective indication; 18-33 The bit extension is the upper 16 bits of the timestamp information (that is, nanosecond time information).
  • 18-19 bits are used to indicate the type of the timestamp (that is, time information type) to be transmitted; 34-41 bits are reserved bits; 42- 57 bits are extended to the lower 16 bits of the timestamp information; 58-61 bits are extended to the sequence number; 62-65 bits are extended to the CRC of the 66-bit block.
  • the above bit extension is just an example.
  • the way that 10-33 bits and 42-65 bits are used to carry time information is not only the above listed methods, but also other representations, such as 18-33 bits. Indicates the lower 16 bits of time information, and 42-57 bits are used to indicate the upper 16 bits of time information.
  • the embodiment of the present application does not limit which bit is extended to indicate which information, and the specific extension manner is not used to limit the protection scope of the embodiment of the present application, and details are not described herein again.
  • the first device carrying the first time information t1 in some or all of the third type of specific identification code blocks and sending it to the second device includes: each time the first device encounters the third type Increase the sequence number of the local sequence by one when identifying the code block; or, the first device adds the sequence of the local sequence when the K code valid indication is a first preset indication value (for example, the K code valid indication is 1) Add 1 to the number; the first device obtains the first time information t1 (that is, the time information of the current device) when the serial number of the local sequence is the first preset value, and the serial number of the local sequence is the first preset
  • the third type of specific identification code block corresponding to the value carries the first time information t1 and sends it to the second device.
  • the maximum value of the sequence number of the local sequence can be set in advance. For example, if the maximum value of the sequence number of the local sequence is X, then when the sequence number of the local sequence is X, if a third type is encountered again, For a specific identification code block, the sequence number of the local sequence is reset to zero.
  • the method further includes: the first device calculates a CRC, and When the sequence number of the sequence is the first preset value, the third type of specific identification code block corresponding to the first time information t1 and the CRC is sent to the second device.
  • CRC4 can be used to calculate the CRC value.
  • Step 201 The first device receives the second time information sent by the second device, and obtains the third time information.
  • the second time information is the time information that the second device sends the second time information and the time from the first device to the second device.
  • the sum of the delay information, the delay information from the first device to the second device is the difference between the time information when the second device obtains the first time information and the first time information, and the third time information is the first
  • the device obtains time information of second time information
  • the delay information of the second device to the first device is a difference between the third time information and time information in which the second device sends the second time information .
  • the first device may receive the second time information sent by the second device in a manner corresponding to the first device sending the first time information t1 to the second device, that is, the first device parses the The third type of specific identification code block obtains the second time information.
  • the first device When the third type of specific identification code block also carries a CRC, the first device first performs a CRC check on the third type of specific identification code block. After the check passes, the 32-bit time information field of the third type of specific identification code block is parsed. Extract the first 2 bits of time information type TS_type. When TS_type is 2, it indicates the response type TS_resp, that is, the time information is identified as the second time information. When the second time information is identified, the time information of the current device is obtained as the first Three time information t4.
  • the first device may parse the third type of specific identification code block one by one to determine whether to carry the time information, or may extract it when the serial number in the third type of specific identification code block is the second preset value according to the agreed value with the second device. Time information.
  • the method further includes: the first device performs delay symmetry compensation according to the second time information t3 + (t2-t1) and the third time information t4.
  • the first device may use any of the following methods to perform delay symmetry compensation according to the second time information and the third time information.
  • the first device acquires one of the second time information and one corresponding third time information, and performs delay symmetry compensation according to one second time information and one corresponding third time information.
  • the third time information t4 is greater than the second time information t3 + (t2-t1), reduce the buffer waterline, and the reduced value is the absolute value of the difference between the third time information t4 and the second time information t3 + (t2-t1);
  • the third time information t4 is equal to the second time information t3 + (t2-t1), keep the cache waterline unchanged;
  • the third time information t4 is less than the second time information t3 + (t2-t1), increase the cache waterline,
  • the added value is the absolute value of the difference between the third time information t4 and the second time information t3 + (t2-t1).
  • the first device acquires n pieces of the second time information and n corresponding pieces of the third time information, and performs delay symmetry compensation according to the n pieces of second time information and the n pieces of corresponding third time information.
  • the first device removes the maximum value and the minimum value of the n pieces of the second time information and removes n pieces of the corresponding A maximum value and a minimum value of the third time information; calculating an average value of the second time information and an average value of the third time information; according to an average value of the second time information and the third time information The average value of the time information is compensated for delay symmetry; where n is an integer greater than or equal to 3.
  • the cache pipeline is reduced, and the reduced value is the absolute value of the difference between the average value of the third time information and the average value of the second time information. ;
  • the average value of the third time information is equal to the average value of the second time information, keep the cache waterline unchanged; when the average value of the third time information is less than the average value of the second time information, increase the cache waterline, increase The value of is the absolute value of the difference between the average of the third time information and the average of the second time information.
  • the buffer pipeline is adjusted so that the delay from the sending direction of the first device to the receiving direction of the second device is substantially the same as the delay from the sending direction of the second device to the receiving direction of the first device.
  • the delay symmetry adjustment is adjusted to meet the transmission needs of services that require high delay symmetry.
  • another embodiment of the present application provides a method for measuring delay symmetry, including:
  • Step 500 The second device receives the first time information sent by the first device, and obtains the fourth time information.
  • the fourth time information is time information that the second device obtains the first time information.
  • the second device may receive the first time information sent by the first device by using a method corresponding to the first device sending the first time information to the second device, that is, the second device parses the The third type of specific identification code block obtains the first time information.
  • the method before the second device parses and receives the third type of specific identification code block in the received code stream to obtain the first time information, the method further includes: the second device performs the third type of specific identification code block. A cyclic redundancy check code check is performed, and the first time information is obtained by parsing the third type of specific identification code block after the check is passed.
  • the second device when the third type of specific identification code block also carries a CRC, the second device first performs a CRC check on the third type of specific identification code block. After the check passes, it parses out 32 of the third type of specific identification code block.
  • Bit time information field extracts the first 2 bits of time information type TS_type, when TS_type is 1, it indicates the request type TS_req, that is, the time information is identified as the first time information, when the first time information is identified, the current device's
  • the time information is used as the fourth time information t2, that is, the time information when the second device in the foregoing embodiment receives the first time information.
  • the second device may parse the third type of specific identification code block one by one to determine whether to carry time information, or may extract it when the serial number in the third type of specific identification code block is the first preset value according to the agreed value with the first device. Time information.
  • Step 501 The second device calculates delay information from the first device to the second device according to the fourth time information and the first time information.
  • the delay information is a difference between the fourth time information and the first time information.
  • Step 502 The second device sends second time information to the first device.
  • the second time information is a sum of the time information and the delay information for sending the second time information.
  • the second device may send the second time information to the first device in multiple ways.
  • the second device replaces the first type of specific identification code block in the transmission code stream with the second type of specific identification.
  • the second device adds 1 to the sequence number of the local sequence every time it encounters the third type of specific identification code block; or the second device indicates that the K code is valid as the second preset instruction value Adding 1 to the serial number of the local sequence; the second device obtains time information t3 (that is, time information of the current device) to send the third time information when the serial number of the local sequence is a second preset value ,
  • the third type of specific identification code block carries the second time information (ie, t3 +
  • the maximum value of the sequence number of the local sequence can be set in advance. For example, if the maximum value of the sequence number of the local sequence is X, then when the sequence number of the local sequence is X, if a third type is encountered again, For a specific identification code block, the sequence number of the local sequence is reset to zero.
  • the method further includes: the second device calculates a CRC, and When the sequence number of the local sequence is the second preset value, the third type of specific identification code block carries the second time information and the CRC and sends it to the first device.
  • the method further includes: the second device determines that the delay information from the first device to the second device is valid When the delay information from the first device to the second device is valid, the second time information is carried in part or all of the second type of specific identification code block and sent to the first device; when the first device arrives When the delay information of the second device is invalid, the process ends.
  • the delay information when the delay information is 0, the delay information is invalid; when the delay information is not 0, the delay information is valid.
  • another embodiment of the present application provides a method for measuring delay symmetry, including:
  • Step 600 The first device sends first time information to the second device.
  • the first device may be any device, such as a fronthaul device, an edge device (PE, Provider Edge), and an edge router.
  • PE Provider Edge
  • edge router an edge router
  • the first device may use multiple methods to send the first time information t1 to the second device.
  • the first device replaces the first type of specific identification code block in the transmission code stream with the second type of specific identification code block, and carries the first time information in part or all of the third type of specific identification code block and sends it to the second Equipment; wherein the third type of specific identification code block includes at least one of the following: the second type of specific identification code block and S identification code block. In this way, no additional bandwidth is used when sending time information.
  • the first device may replace the first type of specific identification code block with the second type of specific identification code block in the transmission code stream according to a predetermined rule, for example, every m first type of specific identification code block Replace with the second type of specific identification code block, that is, there are (m-1) first type of specific identification code blocks between two adjacent second type specific identification code blocks.
  • the first type of specific identification code block includes at least one of the following: an idle information identification code block and a K code between the T identification code block and the S identification code block; the second type of specific identification code block Including at least one of the following: O identification code block, S identification code block.
  • the idle information (I) identification code block between the T identification code block and the S identification code block is replaced with an O identification code block, or the K code is replaced with an S identification code block.
  • S identification code block also referred to as a message header block
  • O identification code block The structures of the S identification code block (also referred to as a message header block) and the O identification code block are shown in FIG. 3.
  • 0-1 bits are 66-bit (Bit) block types: 10 is the control block (such as O identification code block, S identification code block), 01 is the data block; 2-9 bits are 66bit block subtype: when it is 0x78 Represents S block (ie, S identification code block); when it is 0x4B, it means O block (ie, O identification code block); 10-65 bits of S block are data content, and are actually fixed content data in actual use.
  • the 10-33 bits of the O block are the data content
  • the 34-41 bits are the feature code
  • the 42-65 bits are the data content before the extension.
  • the time information carried in the third type of specific identification code block is shown in Figure 4 (a) and Figure 4 (b).
  • the original time information is represented by 80 bits, of which the first 48 bits represent second-level time information, and the last 32 bits Bit represents nanosecond time information.
  • 32 bits (such as data2 to data5) in the third type of specific identification code block are used to represent nanosecond time information (instant stamp information).
  • the 18-33 bits of the unique identification code block of the second child only category can be extended to the upper 16 bits of nanosecond time information, of which 18-19 bits are used to indicate the time of transmission.
  • Information type (TS_type), as shown in Figure 4 (a). When TS_type is 0, it indicates the default type. When TS_type is 1, it indicates the request type (TS_req). When TS_type is 2, it indicates the response type (TS_resp). When TS_type is 3, it indicates TS negotiation message; 42-57 bits are extended to the lower 16 bits of nanosecond time information.
  • the third type of specific identification code block also carries at least one of the following: customer number, IDLE number, sequence number, cyclic redundancy check code (CRC, Cyclic Redundancy Check), and time stamp valid Indication, K code indication.
  • customer number IDLE number
  • sequence number sequence number
  • Cyclic Redundancy Check Cyclic Redundancy Check
  • time stamp valid Indication K code indication.
  • the customer code is the number of the original customer on the user's side.
  • multiple original customers may be aggregated for unified bearer transmission. Delay measurement and adjustment need to cover the end-to-end path closer to the user and pass the original customer number information for easy differentiation.
  • the number of IDLEs is the number of I identification code blocks included before the third type of specific identification code block;
  • the sequence number is the sequence number of the local sequence corresponding to the third type of specific identification code block;
  • CRC is used for calibration Verify the information in the third type of specific identification code block;
  • the time stamp valid indication is used to indicate whether the time stamp information in the third type of specific identification code block is valid;
  • the K code indication is used to indicate the packet after the third type of specific identification code block Is there a K code in it?
  • 10-13 bits of the third type of specific identification code block can be extended to the customer number; 14-17 bits can be extended to the number of idles; 58-61 bits can be extended to the serial number; 62-65 The bits are extended to the CRC of the 66-bit block.
  • the 18-33 bits of the third type of specific code block can be extended to the upper 16 bits of the nanosecond time information, of which 18- 19 bits are used to indicate the type of time information (TS_type).
  • TS_type is 0 for the default type, TS_type is 1 for the request type (TS_req), and TS_type is 2 for the response type ( TS_resp), when TS_type is 3, it means TS negotiation message; 10-13 bits are extended to customer number; 14-15 bits are extended reserved bits; 16 bits are extended to K code indication; 17 bits are extended to time stamp effective indication; 18-33 The bit extension is the upper 16 bits of the timestamp information (that is, nanosecond time information).
  • 18-19 bits are used to indicate the type of the timestamp (that is, time information type) to be transmitted; 34-41 bits are reserved bits; 42- 57 bits are extended to the lower 16 bits of the timestamp information; 58-61 bits are extended to the sequence number; 62-65 bits are extended to the CRC of the 66-bit block.
  • the above bit extension is just an example.
  • the way that 10-33 bits and 42-65 bits are used to carry time information is not only the above listed methods, but also other representations, such as 18-33 bits. Indicates the lower 16 bits of time information, and 42-57 bits are used to indicate the upper 16 bits of time information.
  • the embodiment of the present application does not limit which bit is extended to indicate which information, and the specific extension manner is not used to limit the protection scope of the embodiment of the present application, and details are not described herein again.
  • the first device carrying the first time information in some or all of the third type of specific identification code blocks and sending it to the second device includes: each time the first device encounters the third type of specific identification code block When the code block is identified, the sequence number of the local sequence is increased by one; or, when the K code is validly indicated as the first preset indication value, the sequence number of the local sequence is increased by one;
  • the first time information (that is, the time information of the current device) is obtained when the serial number of the local sequence is the first preset value, and the third type of specific identifier corresponding to the local sequence is the first preset value.
  • the code block carries the first time information and sends it.
  • the maximum value of the sequence number of the local sequence can be set in advance. For example, if the maximum value of the sequence number of the local sequence is X, then when the sequence number of the local sequence is X, if a third type is encountered again, For a specific identification code block, the sequence number of the local sequence is reset to zero.
  • the method further includes: the first device calculates a CRC, and The third type of specific identification code block corresponding to when the serial number is the first preset value carries the first time information and the CRC and sends it.
  • CRC4 can be used to calculate the CRC value.
  • Step 601 The first device receives the fifth time information sent by the second device, and obtains the third time information, where the fifth time information includes: the time information for the second device to obtain the first time information and the second device Sending time information of the fifth time information, where the third time information is time information for the first device to obtain the fifth time information.
  • the fifth time information further includes first time information.
  • the first device may receive the fifth time information sent by the first device in a manner corresponding to the first device sending the first time information to the second device, that is, the first device parses the first time information in the received code stream.
  • Three types of specific identification code blocks obtain fifth time information.
  • the first device When the third type of specific identification code block also carries a CRC, the first device first performs a CRC check on the third type of specific identification code block. After the check passes, the 32-bit time information field of the third type of specific identification code block is parsed. Extract the first 2 bits of time information type TS_type. When TS_type is 2, it indicates the response type TS_resp, that is, the time information is identified as the fifth time information. When the fifth time information is identified, the time information of the current device is obtained as the first Three time information t4.
  • the first device may parse the third type of specific identification code block one by one to determine whether to carry time information, or may extract it when the serial number in the third type of specific identification code block is the second preset value according to the agreed value with the second device. Time information.
  • Step 602 The first device calculates a first difference between the time information that the second device obtains the first time information and the first time information, and a second difference between the third time information and the time information that the second device sends the fourth time information.
  • the first device performs delay symmetry compensation according to the first difference and the second difference.
  • the first device may use any of the following methods to perform delay symmetry compensation according to the first difference and the second difference.
  • the first device obtains a first difference and a corresponding second difference, and performs delay symmetry compensation according to the first difference and a corresponding second difference.
  • the buffer watermark is reduced, and the reduced value is the absolute value of the difference between the second difference and the first difference; when the second difference is equal to the first difference, the cache is maintained The waterline is unchanged; when the second difference is smaller than the first difference, the buffer waterline is increased, and the increased value is the absolute value of the difference between the second difference and the first difference.
  • the first device acquires n first difference values and n corresponding second difference values, and performs delay symmetry compensation according to the n first difference values and n corresponding second difference values.
  • n n first differences and n corresponding second differences are obtained, the maximum and minimum values of the n first differences are eliminated, and n corresponding second differences are eliminated.
  • the maximum and minimum values of the value; calculating the average of the first difference and the average of the second difference; performing the calculation based on the average of the first difference and the average of the second difference Delay symmetry compensation; where n is an integer greater than or equal to 3.
  • the buffer watermark is reduced, and the reduced value is the absolute value of the difference between the average value of the second difference and the average value of the first difference.
  • the buffer waterline is maintained; when the average value of the second difference is less than the average value of the first difference, the buffer waterline is increased, and The value of is the absolute value of the difference between the average of the second difference and the average of the first difference.
  • the buffer pipeline is adjusted so that the delay from the sending direction of the first device to the receiving direction of the second device is substantially the same as the delay from the sending direction of the second device to the receiving direction of the first device.
  • the delay symmetry adjustment is adjusted to meet the transmission needs of services that require high delay symmetry.
  • another embodiment of the present application provides a method for measuring delay symmetry, including:
  • Step 700 The second device receives the first time information sent by the first device, and obtains the fourth time information.
  • the fourth time information is time information that the second device obtains the first time information.
  • the second device may receive the first time information sent by the first device by using a method corresponding to the first device sending the first time information to the second device, that is, the second device parses the The third type of specific identification code block obtains the first time information.
  • the method before the second device parses the second type of specific identification code block in the received code stream to obtain the first time information, the method further includes: the second device performs the third type of specific identification code block A cyclic redundancy check code check is performed, and the first time information is obtained by parsing the third type of specific identification code block after the check is passed.
  • the second device when the third type of specific identification code block also carries a CRC, the second device first performs a CRC check on the third type of specific identification code block. After the check passes, it parses out 32 of the third type of specific identification code block.
  • Bit time information field extracts the first 2 bits of time information type TS_type, when TS_type is 1, it indicates the request type TS_req, that is, the time information is identified as the first time information, when the first time information is identified, the current device's
  • the time information is used as the fourth time information t2, that is, the time information when the second device in the foregoing embodiment receives the first time information.
  • the second device may parse the third type of specific identification code block one by one to determine whether to carry time information, or may extract it when the serial number in the third type of specific identification code block is the first preset value according to the agreed value with the first device. Time information.
  • Step 701 The second device determines the validity of the first time information and the fourth time information. When both the first time information and the fourth time information are valid, the second device sends the first time information to the first device.
  • Five time information wherein, the fifth time information includes: the fourth information t2 and time information t3 at which the fifth time information is transmitted.
  • the first time information when the first time information is 0, it indicates that the first time information is invalid; when the first time information is not 0, it indicates that the first time information is valid.
  • the fifth time information further includes first time information t1.
  • the second device may send the fifth time information to the first device in multiple ways.
  • the second device replaces the first type of specific identification code block in the sending code stream with the second type of specific identification.
  • the second device adds 1 to the sequence number of the local sequence every time it encounters the third type of specific identification code block; or the second device indicates that the K code is valid as the second preset instruction value Adding 1 to the serial number of the local sequence; acquiring, by the second device, the time information of sending the fifth time information (that is, the time information of the current device) when the serial number of the local sequence is a second preset value,
  • the third type of specific identification code block carries the fifth time information and sends it to the first device.
  • the maximum value of the sequence number of the local sequence can be set in advance. For example, if the maximum value of the sequence number of the local sequence is X, then when the sequence number of the local sequence is X, if a third type is encountered again, For a specific identification code block, the sequence number of the local sequence is reset to zero.
  • the method further includes: the second device calculates a CRC, and When the sequence number of the local sequence is the second preset value, the third type of specific identification code block carries the fifth time information and the CRC and sends it.
  • the method further includes: Referring to FIG. 8, another embodiment of the present application proposes a delay symmetry measuring device (such as the first device). It includes: a first sending module 801, configured to send first time information to a second device; a first receiving module 802, configured to receive second time information sent by the second device, and obtain third time information.
  • a delay symmetry measuring device such as the first device. It includes: a first sending module 801, configured to send first time information to a second device; a first receiving module 802, configured to receive second time information sent by the second device, and obtain third time information.
  • the second time information is the sum of the time information of the second device sending the second time information and the delay information of the first device to the second device, and the delay information of the first device to the second device is the first information.
  • the two devices obtain the absolute value of the difference between the time information of the first time information and the first time information
  • the third time information is the time information of the first device obtaining the second time information
  • the second device arrives at the
  • the delay information of the first device is a difference between the third time information and time information in which the second device sends the second time information.
  • the first sending module 801 is specifically configured to: replace the first type of specific identification code block in the transmission code stream with the second type of specific identification code block, and in part or all of the third type of specific identification code block Carrying the first time information and sending it to the second device; wherein the third type of specific identification code block includes at least one of the following: the second type of specific identification code block and S identification code block;
  • the first receiving module 802 is specifically configured to parse the third type of specific identification code block in the received code stream to obtain the second time information, and obtain the third time information.
  • it further includes: a first compensation module 803, configured to perform delay symmetry compensation according to the second time information and the third time information.
  • the first compensation module 803 is specifically configured to: when n pieces of the second time information and n corresponding pieces of the third time information are obtained, remove out of the n pieces of the second time information The maximum value and the minimum value, excluding n corresponding maximum values and minimum values of the third time information; calculating an average value of the second time information and an average value of the third time information; and according to the second The average value of the time information and the average value of the third time information are compensated for delay symmetry; wherein n is an integer greater than or equal to 1.
  • the first sending module 801 is specifically configured to: increase the sequence number of the local sequence by 1 each time it encounters one of the third type of specific identification code blocks; When the indication value is set, the sequence number of the local sequence is incremented by one; the first time information is obtained when the sequence number of the local sequence is the first preset value, and corresponding when the sequence number of the local sequence is the first preset value.
  • the third type of specific identification code block carries the first time information and sends it to the second device.
  • the first sending module 801 is further configured to calculate a cyclic redundancy check code, and the third type of specific identification code block corresponding to the local sequence when the sequence number of the local sequence is a first preset value. And carrying the first time information and the cyclic redundancy check code to the second device.
  • the first type of specific identification code block includes at least one of the following: an idle information identification code block and a K code between the T identification code block and the S identification code block;
  • the second type of specific identification The code block includes at least one of the following: an O code block and an S code block.
  • a delay symmetry measuring device (such as a second device), including:
  • the second receiving module 901 is configured to receive the first time information sent by the first device, and obtain the fourth time information, where the fourth time information is time information that the second device obtains the first time information.
  • a first calculation module 902 is configured to calculate delay information from the first device to the second device according to the fourth time information and the first time information.
  • the second sending module 903 is configured to send second time information to the first device.
  • the second time information is a sum of the time information for sending the second time information and the delay information from the first device to the second device.
  • the second receiving module 901 is specifically configured to: parse the third type of specific identification code block in the received code stream to obtain the first time information, and obtain the fourth time information;
  • the second sending module 903 is specifically configured to: replace the first type of specific identification code block in the transmission code stream with the second type of specific identification code block, carry the second time information in part or all of the third type of specific identification code block, and Sending to the first device; wherein the third type of specific identification code block includes at least one of the following: the second type of specific identification code block and S identification code block.
  • the second sending module 903 is further configured to determine the validity of the delay information from the first device to the second device, and when the delay information from the first device to the second device is valid , Carrying the second time information in part or all of the third type of specific identification code block and sending it to the first device.
  • the second receiving module 901 is further configured to perform a cyclic redundancy check code check on the third type of specific identification code block, and parse the third type of specific identification code block after the check is passed. To obtain the first time information.
  • the second sending module 903 is specifically configured to: increase the sequence number of the local sequence by 1 each time it encounters one of the third type of specific identification code blocks; When the indication value is set, the sequence number of the local sequence is incremented by one; when the sequence number of the local sequence is a second preset value, time information for sending the second time information is obtained, and when the sequence number of the local sequence is the second preset value
  • the third type of specific identification code block corresponding to the set value carries the second time information and sends it to the first device.
  • a delay symmetry measuring device (such as a first device), including:
  • the third sending module 1001 is configured to send the first time information to the second device.
  • the third receiving module 1002 is configured to receive the fifth time information sent by the second device, and obtain the third time information, where the fifth time information includes: the second device obtains the time information of the first time information and the first time information The two devices send time information of the fifth time information, and the third time information is time information in which the first device obtains the fifth time information.
  • a second calculation module 1003 configured to calculate a first difference between the time information of the first time information received by the second device and the first time information, and the third time information and the second time information The device sends the second difference of the time information of the fourth time information.
  • a second compensation module 1004 is configured to perform delay symmetry compensation according to the first difference and the second difference.
  • the third sending module 1001 is specifically configured to: replace the first type of specific identification code block in the transmission code stream with the second type of specific identification code block, and in part or all of the third type of specific identification code block It carries the first time information and sends it to the second device; wherein the third type of specific identification code block includes at least one of the following: the second type of specific identification code block and S identification code block.
  • the third receiving module 1002 is specifically configured to parse the third type of specific identification code block in the received code stream to obtain the fifth time information, and obtain the third time information.
  • the second compensation module 1004 is specifically configured to: when n n first difference values and n corresponding second difference values are obtained, remove one of the n first difference values The maximum value and the minimum value, excluding n corresponding maximum values and minimum values of the second difference; calculating an average value of the first difference and an average value of the second difference; according to the first The average value of the difference and the average value of the second difference are compensated for delay symmetry; wherein n is an integer greater than or equal to 1.
  • another embodiment of the present application provides a method for measuring delay symmetry (such as a second device), including:
  • the fourth receiving module 1101 is configured to receive the first time information sent by the first device, and obtain the fourth time information, where the fourth time information is time information that the second device obtains the first time information.
  • a fourth sending module 1102 is configured to determine validity of the first time information and the fourth time information.
  • the fourth receiving module 1101 is specifically configured to: parse the third type of specific identification code block in the received code stream to obtain the first time information, and obtain the fourth time information;
  • the fourth sending module 1102 is specifically configured to: replace the first type of specific identification code block in the transmission code stream with the second type of specific identification code block, carry the fifth time information in part or all of the third type of specific identification code block, and Sending to the first device; wherein the third type of specific identification code block includes at least one of the following: the second type of specific identification code block and S identification code block.
  • Another embodiment of the present application provides a delay symmetry measuring device, including a processor and a computer-readable storage medium, where the computer-readable storage medium stores instructions, and when the instructions are executed by the processor , To achieve any of the above-mentioned delay symmetry measurement methods.
  • Another embodiment of the present application provides a computer-readable storage medium on which a computer program is stored.
  • the computer program is executed by a processor, the steps of any one of the foregoing methods for measuring delay symmetry are implemented.
  • Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or may Any other medium used to store desired information and which can be accessed by a computer.
  • Another embodiment of the present application proposes a delay symmetry measurement system, including:
  • the first device is configured to send the first time information to the second device; receive the second time information sent by the second device to obtain the third time information; wherein the second time information is the second time information sent by the second device
  • the sum of the time information of the first device to the second device, and the delay information of the first device to the second device is the time information for the second device to obtain the first time information and the The difference between the first time information, the third time information is the time information when the first device obtains the second time information, and the delay information from the second device to the first device is the third time information and the first time information.
  • the second device is configured to receive the first time information sent by the first device, and obtain the fourth time information; wherein the fourth time information is the time information that the second device obtains the first time information;
  • the fourth time information and the first time information calculate delay information from the first device to the second device; send the second time information to the first device; wherein the second time information is sent by The sum of the time information of the second time information and the delay information.
  • the first device is specifically configured to: replace the first type of specific identification code block in the transmission code stream with the second type of specific identification code block, and carry the part or all of the third type of specific identification code block
  • the first time information is sent to the second device;
  • the third type of specific identification code block includes at least one of the following: the second type of specific identification code block and S identification code block; parsing the third type in the received code stream Obtain the second time information by using the specific identification code block, and obtain the third time information;
  • the second device is specifically configured to parse the third type of specific identification code block in the received code stream to obtain the first time information and obtain the fourth time information; and calculate the first time information according to the fourth time information and the first time information. Delay information from a device to the second device; replacing the first type of specific identification code block in the transmission code stream with the second type of specific identification code block, and carrying the first or second type identification code block The second time information is sent to the first device.
  • the first device is further configured to perform delay symmetry compensation according to the second time information and the third time information.
  • the first device is specifically configured to implement delay symmetry compensation according to the second time information and the third time information in the following manner: when n second time information and n are obtained For the corresponding third time information, excluding the maximum and minimum values of the n second time information, and excluding the maximum and minimum values of the n corresponding third time information; calculating the first An average value of the second time information and an average value of the third time information; performing delay symmetry compensation according to the average value of the second time information and the average value of the third time information; wherein n is greater than or An integer equal to 1.
  • the first device is further configured to: increase the sequence number of the local sequence by 1 each time a third type of specific identification code block is encountered;
  • the indication value is set, the sequence number of the local sequence is increased by 1.
  • the sequence number of the local sequence is a first preset value, the first time information is obtained, and a cyclic redundancy check code is calculated.
  • the third type of specific identification code block corresponding to the first preset value carries the first time information and the cyclic redundancy check code and sends it to a second device;
  • the second device is further configured to perform a cyclic redundancy check code check on the third type of specific identification code block, and parse the third type of specific identification code block to obtain the first time information after passing the check.
  • the second device is further configured to: judge the validity of the delay information from the first device to the second device; when the delay information is valid, the third type is partially or completely
  • the specific identification code block carries the second time information and sends it to the first device.
  • the first device is configured to send the first time information to the second device; receive the fifth time information to obtain the third time information; wherein the fifth time information includes: the second device obtains the time information of the first time information and Sending, by the second device, time information of the fifth time information, where the third time information is time information that the first device obtains the fifth time information; calculating that the second device obtains the first time information Time information of time information and a first difference value of the first time information, and a second difference value of time information of the third time information and the second device sending the fifth time information; according to the Delay symmetry compensation is performed on the first difference and the second difference.
  • the second device is configured to receive the first time information sent by the first device, and obtain the fourth time information; wherein the fourth time information is the time information that the second device obtains the first time information; The validity of the first time information and the fourth time information; when both the first time information and the fourth time information are valid, sending a fifth time information to the first device; wherein the fifth time information It includes: the fourth information and time information for sending the fifth time information.
  • the first device is specifically configured to implement sending the first time information to the second device and receiving the fifth time information sent by the second device in the following manner: the first type of specific identification code in the code stream will be sent The block is replaced with a second type of specific identification code block, and the first time information is carried in part or all of the third type of specific identification code block and sent to the second device; wherein the third type of specific identification code block includes at least one of the following: The second type of specific identification code block and S identification code block; parsing the third type of specific identification code block in the received code stream to obtain fifth time information;
  • the second device is specifically configured to: parse the third type of specific identification code block in the received code stream to obtain the first time information and obtain the fourth time information; and replace the first type of specific identification code block in the transmission code stream with the second type
  • the specific identification code block carries fifth time information in part or all of the third type of specific identification code block and sends it to the first device.
  • the first device is specifically configured to implement delay symmetry compensation according to the first difference and the second difference in the following manner: when n number of the first difference and n are obtained When there are two corresponding second differences, the maximum and minimum values of the n first differences are eliminated, and the maximum and minimum values of the n corresponding second differences are eliminated; An average value of a difference and an average value of the second difference; performing delay symmetry compensation according to the average value of the first difference and the average value of the second difference; wherein n is greater than or An integer equal to 1.
  • the edge device 1 replaces the first type of specific identification code block with the second type of specific identification code block, and sends the time information 1 to the edge device 2 through the third type of specific identification code block, and the edge device 2 receives Time information 1 and time information 2 are obtained.
  • the second type of specific identification code block is used to replace the first type of specific identification code block.
  • the third type of specific identification code block is used to send the time information to the edge device 1. 3.
  • the edge device 1 receives the time information 3 and acquires the time information 4, thereby achieving symmetrical measurement of the delay information from the edge device 1 to the edge device 2 and the delay information from the edge device 2 to the edge device 1.
  • the third type of specific identification code block includes at least one of the following: the second type of specific identification code block, and the S identification code block.
  • Edge equipment that is, bearer equipment directly connected to user-side equipment
  • 25G Ethernet universal public wireless interface ecpri, public, radio, interface
  • services that are directly connected to optical fibers are carried in 100G FlexE, using the packet header identification code block (S (Identification code block) or idle information identification code block (IDLE identification code block) or packet header identification code block (S identification code block) and idle information identification code block (IDLE identification code block) pass the processed time information.
  • the topology network is shown in Figure 1 (b), and the time information transfer process is shown in Figure 12 (b).
  • the method includes: Step 1: The sending direction of edge device 1, the ecpri service with strict requirements on delay symmetry, After carrying ecpri service and time information to FlexE, it is transmitted through 100G fiber.
  • Step 1 includes:
  • Step 1.1 The U side of the edge device 1 (that is, the entrance of the RU antenna, also referred to as the user side and the service port).
  • code blocks some IDLE identification code blocks are replaced with O identification code blocks according to certain rules.
  • Step 1.2 Maintain a local sequence of modulus 16; each time the O identification code block or S identification code block is encountered, the sequence number of the local sequence is incremented by 1.
  • the sequence number is 1, the time information t1 of the current device is extracted (that is, the above embodiment) First time information), and insert the first time information t1 and the serial number into the O identification code block or S identification code block and calculate the 66 / 64B CRC value using CRC4, and insert the CRC value into the O identification code block or S identification code block.
  • Step 1.3 Carry the service into the 100G FlexE pipeline according to the requirements of the FlexE protocol for transmission on the N side.
  • Step 2 The receiving direction of the edge device 2 obtains the delay information sent by the edge device 1 to the edge device 2.
  • Step 2 includes:
  • Step 2.1 Extract service code blocks from the N-side (ie, network-side) FlexE time slots of edge device 2 and parse out the O-code or S-code blocks.
  • N-side ie, network-side
  • FlexE time slots of edge device 2
  • CRC check is performed first, and each field of the O identification code block or S identification code block is parsed after the check is passed.
  • Step 2.2 When the time information type is ST_req, identify it as t1 and extract the time information t2 of the current device, calculate
  • Step 3 In the sending direction of edge device 2, the fronthaul service and time information that have strict requirements on delay symmetry are carried to FlexE and then transmitted through 100G fiber.
  • Step 3 includes:
  • Step 3.1 For the IDLE identification code block between the T identification code block and the S identification code block in the pcs layer 66 / 64B code stream defined by the U-side 802.3 of the edge device 2, replace some IDLE identification code blocks with O identification code block.
  • Step 3.2 Obtain the timestamp information
  • Step 3.3 Maintain a local sequence of modulus 16; each time the O identification code block or S identification code block is encountered, the sequence number of the local sequence is incremented by 1.
  • the sequence number is 9
  • the time stamp information t3 is extracted and t3 +
  • generate time information of t3 +
  • Step 3.4 Carry the service into the 100G FlexE pipeline according to the requirements of the FlexE protocol for transmission on the N side.
  • Step 4 The receiving direction of the edge device 1, adjust the delay to meet the delay symmetry requirement.
  • Step 4 includes:
  • Step 4.1 Extract the service code block from the FlexE slot on the N side of edge device 1, and parse out the O identification code block or S identification code block.
  • the CRC check is performed first. After parity, the fields of the O identification code block or the S identification code block are parsed.
  • Step 4.2 When the time information type is ST_resp, extract the time information containing t3 +
  • Step 4.3 The time processing unit stores 16 sets of timestamp sampling information, removes the maximum and minimum values in a certain range, calculates the average value of the remaining values, and obtains the average value of t4 and the average value of t3 +
  • Step 4.4 Adjust the delay from the transmission direction of fronthaul device 2 to the reception direction of fronthaul device 1 through the adjustment of the waterline so that it is basically the same as the delay from the transmission direction of fronthaul device 1 to the reception direction of fronthaul device 2.
  • the complete delay Symmetry adjustment to meet service transmission needs that are highly dependent on delay symmetry.
  • the 25G ecpri service passing through the intermediate node is carried in 100G FlexE, and is transmitted using the message header block (S block) or idle information block (IDLE block) or the message header block (S block) and idle information block (IDLE block). Time information.
  • the topology network is shown in FIG. 1 (c), and the time information transmission is shown in FIG. 12 (c).
  • At least one intermediate node that is, the intermediate node device 3 in FIG. 1 (c) is added to the topology network.
  • the processing of the edge device 1 and the edge device 2 is the same as in the first embodiment; the intermediate node device 3 transparently transmits the O identification code block or the S identification code block carrying the time information.
  • the 25G ecpri service passing through the intermediate node is carried in 100G FlexE, using a message header identification code block (S identification code block) or idle information identification code block (IDLE identification code block) or a packet header identification code block (S identification code block ) And the idle information identification code block (IDLE identification code block) pass the unprocessed time information.
  • S identification code block message header identification code block
  • IDLE identification code block idle information identification code block
  • S identification code block packet header identification code block
  • IDLE identification code block a packet header identification code block
  • the topology network is shown in Figure 1 (c), and the time information transfer is shown in Figure 12 (d).
  • the method includes:
  • Step 1 In the sending direction of edge device 1, for ecpri services with strict requirements on delay symmetry, the ecpri services and time information are carried to FlexE and transmitted through 100G fiber.
  • Step 1 includes:
  • Step 1.1 For the IDLE identification code block between the T identification code block and the S identification code block in the pcs layer 66 / 64B code stream defined by the U-side 802.3 of the edge device 1, replace some IDLE identification code blocks with O identification code block.
  • Step 1.2 Maintain a local sequence of modulus 16; each time the O identification code block or S identification code block is encountered, the sequence number of the local sequence is incremented by 1.
  • the sequence number is 1, the time information t1 of the current device is extracted (that is, the above embodiment) First time information), and insert the first time information t1 and the serial number into the O identification code block or S identification code block and calculate the 66 / 64B CRC value using CRC4, and insert the CRC value into the O identification code block or S identification Code block.
  • Step 1.3 Carry the service into the 100G FlexE pipeline according to the requirements of the FlexE protocol for transmission on the N side.
  • Step 2 The service passes through the intermediate node device 3, and the intermediate node device 3 needs to support transparent transmission of the O identification code block or the S identification code block.
  • Step 3 The receiving direction of the edge device 2 obtains the time information sent by the edge device 1 to the edge device 2.
  • Step 3 includes:
  • Step 3.1 Extract the service code block from the N-side FlexE time slot of edge device 2 to parse the O identification code block or the S identification code block.
  • the CRC check is performed first. After parity, the fields of the O identification code block or the S identification code block are parsed.
  • Step 3.2 When the time information type is ST_req, identify it as t1 and extract the time stamp t2 of the current device, and send the time information of t2, t1 to the sending side of the device.
  • Step 4 In the sending direction of edge device 2, the fronthaul service and time information that have strict requirements on delay symmetry are carried to FlexE and transmitted through 100G fiber.
  • Step 4 includes:
  • Step 4.1 For the IDLE identification code block between the T identification code block and the S identification code block in the pcs layer 66 / 64B code stream defined by the U-side 802.3 of the edge device 2, replace some IDLE identification code blocks with O identification code block.
  • Step 4.2 Obtain the time information t1, t2 obtained from the receiving direction, and judge the validity of t1, t2. When t2, t1 is 0, it is invalid time information, and the time information will not be passed; when t2, t1 is not 0 Time is valid time information, and a time information sending request is generated.
  • Step 4.3 Maintain a local sequence of modulus 16; each time the O identification code block or S identification code block is encountered, the sequence number of the local sequence is increased by 1, and the time information t3 is extracted when the sequence number is 9 (that is, the fifth embodiment sends the fifth Time information of time information), t1, t2, t3 are encapsulated into time information, and the generated time stamp information and serial number are inserted into the O identification code block or S identification code block and the 66 / 64B CRC value is calculated using CRC4 , Insert the CRC value into the O identification code block or S identification code block.
  • Step 4.4 Carry the service into the 100G FlexE pipeline according to the requirements of the FlexE protocol for transmission on the N side;
  • Step 5 The receiving direction of the edge device 1, adjust the delay to meet the delay symmetry requirement.
  • Step 5 includes:
  • Step 5.1 Extract the service code block from the FlexE slot on the N side of edge device 1, and parse out the O identification code block or S identification code block.
  • the CRC check is performed first. After parity, the fields of the O identification code block or the S identification code block are parsed.
  • Step 5.2 When the time information type is ST_resp, extract the time information containing t1, t2, and t3, sample the time information of the current device t4, obtain the set of time stamp sampling information t1, t2, t3, and t4 and send it to the time processing unit.
  • Step 5.3 The time processing unit calculates the absolute values of
  • Step 5.4 Store 16 sets of sampling information, remove the maximum and minimum values in a certain range, calculate the average value of the remaining values, and obtain the average value of delay12 and the average value of delay34.
  • Step 5.4.1 When the average value of delay34 is greater than the average value of delay12, calculate the absolute value of the difference between the average value of delay34 and the average value of delay12 to reduce the corresponding buffer waterline.
  • Step 5.4.2 When the average value of delay34 is less than the average value of delay12, calculate the absolute value of the difference between the average value of delay34 and the average value of delay12, and increase the corresponding buffer waterline.
  • Step 5.4.3 When the average value of delay34 is equal to the average value of delay12, there is no need to adjust the buffer waterline.
  • Step 5.5 Adjust the delay from the transmission direction of fronthaul device 2 to the reception direction of fronthaul device 1 through the adjustment of the waterline, so that it is basically the same as the delay from the transmission direction of fronthaul device 1 to the reception direction of fronthaul device 2.
  • the complete delay symmetry Adjustment ; to meet the needs of service transmission that are highly dependent on delay symmetry.
  • the common public radio interface (cpri, common public radio interface) service is carried in 100G FlexE, and the S code code block is used to replace the K code bearer time information.
  • the topology network is shown in Figure 13.
  • the method includes:
  • Step 1 In the sending direction of edge device 1, for three-way cpri services that have strict requirements on delay symmetry, cpri and time information are independently carried to FlexE and then transmitted through 100G fiber.
  • Step 1 includes:
  • Step 1.1 U-side of edge device 1 replaces K code with S identification code block.
  • Step 1.2 Each CPRI service maintains a K-code serial number of modulo 2.
  • the K-code valid indication is 1, the sequence number is increased by 1.
  • the serial number is 0, the time stamp information t1 is extracted, and the time stamp validity indication, The first time information, and the customer number and K code indication are inserted into the S identification code block.
  • Step 1.3 Carry each service into a 100G FlexE pipe according to the requirements of the FlexE protocol for transmission on the N side.
  • Step 2 The receiving direction of the edge device 2 obtains the delay information sent by the edge device 1 to the edge device 2.
  • Step 2 includes:
  • Step 2.1 The service code block is extracted from the N-side FlexE slot of the edge device 2, and the S identification code block is parsed.
  • Step 2.2 When the time information in the S identification code block is valid and the time information type is ST_req, identify it as the first time information t1 and extract the time stamp t2 of the current device, calculate the absolute value of
  • Step 3 In the sending direction of edge device 2, three independent cpri services and time information with strict requirements on delay symmetry are carried to FlexE and transmitted through 100G fiber.
  • Step 3 includes:
  • Step 3.1 Obtain the timestamp information
  • Step 3.2 Each CPRI service maintains a K-code serial number of modulo 2.
  • the K-code valid indication is 1, the serial number is increased by 1.
  • the serial number is 1, the time stamp information t3 is extracted and t3 +
  • Step 3.3 Carry the service into the 100G FlexE pipeline according to the requirements of the FlexE protocol for transmission on the N side.
  • Step 4 The receiving direction of the edge device 1, adjust the delay to meet the delay symmetry requirement,
  • Step 4 includes:
  • Step 4.1 Extract the service code block from the N-side FlexE slot of the edge device 1, and parse out the S identification code block.
  • Step 4.2 When the time in the S identification code block is valid and the time information type is ST_resp, extract the time stamp information containing t3 +
  • Step 4.3 Store 16 sets of timestamp sampling information, remove the maximum and minimum values in a certain range, and calculate the average value of the remaining values to obtain the average value of t4 and the average value of t3 +
  • Step 4.3.1 When the average value of t4 is greater than the average value of t3 +
  • Step 4.3.2 When the average value of t4 is less than the average value of t3 +
  • Step 4.3.3 When the average value of t4 is equal to the average value of t3 +
  • Step 4.4 Adjust the delay from the transmission direction of fronthaul device 2 to the reception direction of fronthaul device 1 through the adjustment of the waterline, so that it is basically the same as the delay between the transmission direction of fronthaul device 1 and the reception direction of fronthaul device 2. Delay symmetry adjustment; to meet service transmission needs that are highly dependent on delay symmetry.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本申请实施例公开了一种时延对称性测量方法、装置和系统,所述时延对称性测量方法包括:第一设备向第二设备发送第一时间信息(200);第一设备接收所述第二设备发送的第二时间信息,获取第三时间信息;其中,所述第二时间信息为第二设备发送第二时间信息的时间信息和第一设备到第二设备的延时信息之和,所述第一设备到第二设备的延时信息为所述第二设备获得所述第一时间信息的时间信息和所述第一时间信息之差,所述第三时间信息为所述第一设备获得所述第二时间信息的时间信息,所述第二设备到所述第一设备的延时信息为所述第三时间信息和所述第二设备发送所述第二时间信息的时间信息之差(201)。本申请实施例实现了对设备的时延对称性进行测量,以适应对时延对称性有严格要求的业务传输场景。

Description

一种时延对称性测量方法、装置和系统
交叉引用
本申请引用于2018年9月26日递交的名称为“一种时延对称性测量方法、装置和系统”的第201811123805.X号中国专利申请,其通过引用被全部并入本申请。
技术领域
本申请实施例涉及但不限于通信领域,尤指一种时延对称性测量方法、装置和系统。
背景技术
传统2G,3G,4G回传网络分为接入层、汇聚层、骨干汇聚层、核心层,4G时代引入了新型无线接入网(C-RAN,Centralized Radio Access Network)前传网络。5G时代,由于无线频谱资源提升及大规模(Massive)多入多出(MIMO,Multiple Input Multiple Output)天线技术的发展,传统无线接入网(RAN,Radio Access Network)架构下的通用公共无线电接口(CPRI,Common Public Radio Interface)接口难以承载巨大的带宽,需要进行架构重构。重构之后,5G的基带处理单元(BBU,Building Base Unit)功能将被划分为集中式单元(CU,Centralized Unit)和分布式单元(DU,Distribute Unit)两个功能实体,5GC-RAN将包含一级前传(射频拉远单元(RRU,Radio Remote Unit) -DU)和二级前传(DU-CU)两级架构。CU与DU功能的切分以处理内容的实时性进行区分,CU设备主要包括非实时的无线高层协议栈功能,同时也支持部分核心网功能(UP)下沉和边缘应用业务的部署,而DU设备则主要处理物理层功能和实时性需求的L2功能。
另一方面,5G时代由于载波聚合、多点协同、5G超短帧结构、高精度定位等新技术的应用,要求基站间满足百纳秒级的超高精度,与此同时传输网络需具备更高精度的时间传送能力,特别是对时延对称性有严格要求的业务传输场景。
发明内容
本申请实施例提供了一种时延对称性测量方法、装置和系统,能够对设备的时延对称性进行测量和补偿,以适应对时延对称性有严格要求的业务传输场景。
本申请实施例提供了一种时延对称性测量方法,包括:第一设备向第二设备发送第一时间信息;第一设备接收所述第二设备发送的第二时间信息,获取第三时间信息;其中,所述第二时间信息为第二设备发送第二时间信息的时间信息和第一设备到第二设备的延时信息之和,所述第一设备到所述第二设备的延时信息为所述第二设备获得所述第一时间信息的时间信息和所述第一时间信息之差,所述第三时间信息为所述第一设备获得所述第二时间信息的时间信息,所述第二设备到所述第一设备的延时信息为所述第三时间信息和所述第二设备发送所述第二时间信息的时间信息之差;所述第一设备根据所述第二时间信息和所述第三时间信息进行时延对称性补偿。
本申请实施例提出了一种时延对称性测量方法,包括:第二设备接收第一设备发送的第一时间信息,获取第四时间信息;其中,所述第四时间信息为所述第二设备获得所述第一时间信息的时间信息;所述第二设备根据所述第四时间信息和所述第一时间信息计算所述第一设备到所述第二设备的延时信息;所述第二设备判断所述第一设备到所述第二设备的延时信息的有效性,当所述延时信息有效时,所述第二设备向所述第一设备发送第二时间信息;其中,所述第二时间信息为发送所述第二时间信息的时间信息和所述第一设备到所述第二设备的延时信息之和。
本申请实施例提出了一种时延对称性测量方法,包括:第一设备向第二设备发送第一时间信息;第一设备接收所述第二设备发送的第五时间信息,获取第三时间信息;其中,第五时间信息包括:第二设备获得所述第一时间信息的时间信息和所述第二设备发送所述第五时间信息的时间信息,所述第三时间信息为所述第一设备获得所述第五时间信息的时间信息;第一设备计算所述第二设备获得所述第一时间信息的时间信息和所述第一时间信息的第一差值,以及所述第三时间信息和所述第二设备发送所述第五时间信息的时间信息的第二差值。
本申请实施例提出了一种时延对称性测量方法,包括:第二设备接收第一设备发送的第一时间信息,获取第四时间信息;其中,所述第四时间信息为所述第二设备获得所述第一时间信息的时间信息;所述第二设备向第一设备发送第五时间信息;其中,第五时间信息包括:所述第四信息和发送所述第五时间信息的时间信息。
本申请实施例提出了一种时延对称性测量装置,包括处理器和计算机可 读存储介质,所述计算机可读存储介质中存储有指令,当所述指令被所述处理器执行时,实现上述任一种时延对称性测量方法。
本申请实施例提出了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任一种时延对称性测量方法的步骤。
本申请实施例提出了一种时延对称性测量系统,包括:第一设备,用于向第二设备发送第一时间信息;接收第二时间信息,获取第三时间信息;其中,所述第二时间信息为第二设备发送第二时间信息的时间信息和第一设备到第二设备的延时信息之和,所述第一设备到所述第二设备的延时信息为所述第二设备获得所述第一时间信息的时间信息和所述第一时间信息之差,所述第三时间信息为所述第一设备获得所述第二时间信息的时间信息,所述第二设备到所述第一设备的延时信息为所述第三时间信息和所述第二设备发送所述第二时间信息的时间信息之差;第二设备,用于接收第一设备发送的第一时间信息,获取第四时间信息;其中,所述第四时间信息为所述第二设备获得所述第一时间信息的时间信息;根据所述第四时间信息和所述第一时间信息计算所述第一设备到所述第二设备的延时信息;向第一设备发送第二时间信息;其中,所述第二时间信息为发送所述第二时间信息的时间信息和所述延时信息之和。
本申请实施例提出了一种时延对称性测量系统,包括:第一设备,用于向第二设备发送第一时间信息;接收第二设备发送的第五时间信息,获取第三时间信息;其中,第五时间信息包括:第二设备获得所述第一时间信息的时间信息和所述第二设备发送所述第五时间信息的时间信息,所述第三时间信息为所述第一设备获得所述第五时间信息的时间信息;计算所述第二设备 接收到所述第一时间信息的时间信息和所述第一时间信息的第一差值,以及所述第三时间信息和所述第二设备发送所述第五时间信息的时间信息的第二差值;根据所述第一差值和所述第二差值进行时延对称性补偿;第二设备,用于接收第一设备发送的第一时间信息,获取第四时间信息;其中,所述第四时间信息为所述第二设备获得所述第一时间信息的时间信息;向第一设备发送第五时间信息;其中,第五时间信息包括:所述第四信息和发送所述第五时间信息的时间信息。
本申请实施例包括:第一设备向第二设备发送第一时间信息;第一设备接收第二设备发送的第二时间信息,获取第三时间信息;其中,所述第二时间信息为第二设备发送第二时间信息的时间信息和第一设备到第二设备的延时信息之和,所述第一设备到第二设备的延时信息为所述第二设备获得所述第一时间信息的时间信息和所述第一时间信息之差,所述第三时间信息为所述第一设备获得所述第二时间信息的时间信息,所述第二设备到所述第一设备的延时信息为所述第三时间信息和所述第二设备发送所述第二时间信息的时间信息之差。本申请实施例实现了对设备的时延对称性进行测量,以适应对时延对称性有严格要求的业务传输场景。
本申请实施例的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请实施例而了解。本申请实施例的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。
附图说明
附图用来提供对本申请实施例技术方案的进一步理解,并且构成说明书的一部分,与本申请实施例的实施例一起用于解释本申请实施例的技术方案,并不构成对本申请实施例技术方案的限制。
图1(a)为本申请实施例光纤直连方案的示意图;
图1(b)为本申请实施例前传设备承载方案的示意图一;
图1(c)为本申请实施例前传设备承载方案的示意图二;
图2为本申请一个实施例提出的时延对称性测量方法的流程图;
图3为本申请实施例S标识码块和O标识码块的结构示意图;
图4(a)为时间信息的结构示意图;
图4(b)为本申请实施例在第三类特定标识码块中携带时间信息的示意图一;
图4(c)为本申请实施例在第三类特定标识码块中携带时间信息的示意图二;
图5为本申请另一个实施例提出的时延对称性测量方法的流程图;
图6为本申请另一个实施例提出的时延对称性测量方法的流程图;
图7为本申请另一个实施例提出的时延对称性测量方法的流程图;
图8为本申请另一个实施例提出的时延对称性测量装置的结构组成示意图;
图9为本申请另一个实施例提出的时延对称性测量装置的结构组成示意图;
图10为本申请另一个实施例提出的时延对称性测量装置的结构组成示 意图;
图11为本申请另一个实施例提出的时延对称性测量装置的结构组成示意图;
图12(a)为本申请实施例时间信息传递示意图一;
图12(b)为本申请实施例时间信息传递示意图二;
图12(c)为本申请实施例时间信息传递示意图三;
图12(d)为本申请实施例时间信息传递示意图四;
图13为本申请实施例cpri业务的拓扑网络示意图。
具体实施例
下文中将结合附图对本申请实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
对时延对称性有严格要求的业务的连接主要有光纤直连方案、设备承载方案两种;如图1(a)所示为光纤直连方案,即用户侧设备(如图1(a)所示的设备A和设备B)之间直接通过光纤连接,没有经过其他承载设备;如图1(b)所示为设备承载方案,即用户侧设备(如图1(b)所示的设备A和设备B)之间通过最少2个承载设备(如图1(b)所示的设备1和设备2,以及如图1(c)所示的设备1、设备2和设备3)进行连接。为了满足业务对时延对称性的严格要求,设备承载方案需要达到接近光纤直连的性能,对设 备的时延抖动、对称性提出了巨大的挑战。
灵活以太网(FlexE-Flexible Ethernet)技术由国际标准化组织光联网论坛(OIF,Optical Internetworking Forum)于2015年3月发起研究并于2016年3月正式表决通过相关的技术文档。灵活以太网技术提供一种通用的机制来传送一系列不同媒体访问控制(MAC,Media Access Control)速率的业务,可以是单个MAC速率比较大的业务,也可以是多个MAC速率比较小的业务的集合,不再限定为单一MAC速率的业务。
灵活以太网(FlexE,Flexible Ethernet)与传统以太网结构上的区别在于灵活以太网在MAC层和物理编码子层(PCS,Physical Coding Sublayer)层多了一个垫层(FlexE Shim层),该垫层的功能是构建一个大小为20×n个66b块的Calendar(模板),n为绑定的以太网物理层(PHY,physical layer)个数,每个66b块代表一个5G的时隙。在复用侧,不同MAC速率的业务按照与5G的倍数关系,装进对应个数66b块中。每20个66b块构成一个sub-Calendar,大小为20×n的Calendar分布到n个sub-Calendar中。对于每个sub-Calendar,每20×1023个66b块添加一个66b块的开销,用来存储相关的映射关系,每个sub-Calendar在单个100G的以太网PHY中传送。在解复用侧,n个sub-Calendar组成一个大小为20×n的Calendar,根据开销中存储的映射关系从相应个数的66b块中提取出对应的客户业务。其中开销采用O码扩展定义。
802.3定义了几类编码,包括:空闲字符(I,idle),用于适应过程控制系统(PCS,Process Control System)时钟速率变化而添加和删除;启动字符(S,start),用于指示数据包的起始;终止字符(T,terminate),用于指 示一个数据包的终止;控制字符(O,ordered_set),用于发送基于链接的控制和状态信息的一种扩展。
参见图2,本申请一个实施例提出了一种时延对称性测量方法,包括:
步骤200、第一设备向第二设备发送第一时间信息。
在本申请实施例中,第一设备可以是任意设备,如承载设备、前传设备、边缘设备(PE,Provider Edge)、边缘路由器等。
在本申请实施例中,第一设备可以采用多种方式来向第二设备发送第一时间信息t1。例如,第一设备将发送码流中的第一类特定标识码块替换为第二类特定标识码块,在部分或全部第三类特定标识码块中携带第一时间信息t1并发送给第二设备;其中,第三类特定标识码块包括以下至少之一:所述第二类特定标识码块、S标识码块。这样,通过将第一类特定标识码块替换为第二类特定标识码块来实现时间信息的传输,在发送时间信息时不会占用额外的带宽。
在本申请实施例中,第一设备可以按照预定规则将发送码流中的第一类特定标识码块替换为第二类特定标识码块,例如,每隔m个第一类特定标识码块替换为第二类特定标识码块,也就是说,相邻两个第二类特定标识码块之间存在(m-1)个第一类特定标识码块。
在本申请实施例中,第一类特定标识码块包括以下至少之一:T标识码块和S标识码块之间的空闲信息标识码块、K码;所述第二类特定标识码块包括以下至少之一:O标识码块、S标识码块。
具体实现过程中,将T标识码块和S标识码块之间的空闲信息(IDLE)标识码块替换为O标识码块,或者将K码替换为S标识码块。
其中,S标识码块(也成为报文头块)和O标识码块的结构如图3所示。
0-1比特为66比特(Bit)块类型:10为控制块(如O标识码块、S标识码块),01则为数据块;2-9比特为66bit块子类型:当为0x78时表示S块(即S标识码块);当为0x4B时表示O块(即O标识码块);S块的10-65比特为数据内容,实际使用时为固定内容的数据。
O块的10-33比特为数据内容,34-41比特为特征码,42-65比特为数据内容。
那么,在第三类特定标识码块中携带时间信息如图4(a)和图4(b)所示,原始时间信息采用80比特来表示,其中前48比特表示秒级时间信息,后32比特表示纳秒级时间信息,本申请实施例采用第三类特定标识码块中的32比特(如data2到data5)来表示纳秒级时间信息(即时戳信息)。
其中,如图4(b)所示,可以将第三类特定标识码块的18-33比特扩展为纳秒级时间信息的高16比特,其中,18-19比特用于表示是传递的时间信息类型(TS_type),如图4(a)所示,TS_type为0时表示默认类型,TS_type为1时表示请求类型(TS_req),TS_type为2时表示响应类型(TS_resp),TS_type为3时表示TS协商报文;42-57比特扩展为纳秒级时间信息的低16比特。
在本申请另一个实施例中,第三类特定标识码块还携带以下至少之一:客户编号、IDLE个数、序列号、循环冗余校验码(CRC,Cyclic Redundancy Check)、时戳有效指示、K码指示。
CPRI业务从U侧进入时,并没有S和T,经过缓存处理后会适时的添加S和T块,以包的形式在网络转发,当一个包内含有K码时,采样时间信 息,添加时戳信息,并将时戳信息有效指示和K码指示置位为有效;否则将时戳信息有效指示和K码指示置位为无效。
其中,客户编码为用户侧原始客户的编号,部分场景下可能多个原始客户汇聚后统一承载传输,时延测量和调整需要覆盖更接近用户侧端到端的路径,传递原始客户编号信息以便于区分路径信息;IDLE个数为本第三类特定标识码块之前所包含的I标识码块的个数;序列号为本第三类特定标识码块对应的本地序列的序列号;CRC用于校验第三类特定标识码块中的信息;时戳有效指示用于指示第三类特定标识码块中的时戳信息是否有效;K码指示用于指示第三类特定标识码块之后的包中的是否有K码。
如图4(b)所示,可以将第三类特定标识码块的10-13比特扩展为客户编号;14-17比特扩展为idle个数;58-61比特扩展为序列号;62-65比特扩展为该66比特块的CRC。
如图4(c)所示,当采用S标识码块替换K码时,可以将第三类特定标识码块的18-33比特扩展为纳秒级时间信息的高16比特,其中,18-19比特用于表示传递的时间信息类型(TS_type),如图4(a)所示,TS_type为0时表示默认类型,TS_type为1时表示请求类型(TS_req),TS_type为2时表示响应类型(TS_resp),TS_type为3时表示TS协商报文;10-13比特扩展为客户编号;14-15比特扩展保留比特;16比特扩展为K码指示;17比特扩展为时戳有效指示;18-33比特扩展为时戳信息(即纳秒级时间信息)的高16比特,其中,18-19比特用于表示传递的时戳类型(即时间信息类型);34-41比特为保留位;42-57比特扩展为时戳信息的低16比特;58-61比特扩展为序列号;62-65比特扩展为该66比特块的CRC。
上面的比特扩展仅仅是一种示例,10-33比特以及42-65比特用来承载时间信息的方式不仅仅是上述列出的方式,也可以采用其他的表示方式,例如,采用18-33比特表示时间信息的低16比特,采用42-57比特表示时间信息的高16比特。本申请实施例对哪个比特扩展为表示哪个信息不作限定,具体的扩展方式也不用于限定本申请实施例的保护范围,这里不再赘述。
在本申请实施例中,第一设备在部分或全部第三类特定标识码块中携带第一时间信息t1并发送给第二设备包括:所述第一设备每遇到一个所述第三类特定标识码块时将本地序列的序列号加1;或者,所述第一设备在K码有效指示为第一预设指示值(如K码有效指示为1)时将所述本地序列的序列号加1;所述第一设备在本地序列的序列号为第一预设值时获取所述第一时间信息t1(即当前设备的时间信息),在本地序列的序列号为第一预设值时对应的所述第三类特定标识码块中携带所述第一时间信息t1并发送给第二设备。
其中,本地序列的序列号的最大值可以预先设定,例如,设定本地序列的序列号的最大值为X,那么当本地序列的序列号为X时,如果再续遇到一个第三类特定标识码块,则将本地序列的序列号重新置零。
在本申请另一个实施例中,第一设备在本地序列的序列号为第一预设值时获取所述第一时间信息t1后,该方法还包括:第一设备计算CRC,在所述本地序列的序列号为第一预设值时对应的所述第三类特定标识码块中携带所述第一时间信息t1和CRC并发送给第二设备。
其中,可以采用CRC4计算CRC值。
步骤201、第一设备接收第二设备发送的第二时间信息,获取第三时间信息;其中,第二时间信息为第二设备发送第二时间信息的时间信息和第一 设备到第二设备的延时信息之和,第一设备到第二设备的延时信息为所述第二设备获得所述第一时间信息的时间信息和所述第一时间信息之差,第三时间信息为第一设备获得第二时间信息的时间信息,所述第二设备到所述第一设备的延时信息为所述第三时间信息和所述第二设备发送所述第二时间信息的时间信息之差。
在本申请实施例中,第一设备可以采用与第一设备向第二设备发送第一时间信息t1对应的方式接收第二设备发送的第二时间信息,即第一设备解析接收码流中的第三类特定标识码块得到第二时间信息。
当第三类特定标识码块还携带CRC时,第一设备先对第三类特定标识码块进行CRC校验,校验通过后,解析出第三类特定标识码块的32位时间信息字段,提取前2比特的时间信息类型TS_type,当TS_type为2时表示响应类型TS_resp,即识别为该时间信息为第二时间信息,在识别到第二时间信息时,获取当前设备的时间信息作为第三时间信息t4。
第一设备可以逐个解析第三类特定标识码块确定是否携带时间信息,也可以按照与第二设备的约定值,在第三类特定标识码块中的序列号为第二预设值时提取时间信息。
在本申请实施例中,该方法还包括:第一设备根据所述第二时间信息t3+(t2-t1)和所述第三时间信息t4进行时延对称性补偿。
具体的,第一设备可以采用以下任一种方法根据第二时间信息和第三时间信息进行时延对称性补偿。
第一种,第一设备获取一个所述第二时间信息和一个对应的所述第三时间信息,根据一个第二时间信息和一个对应的第三时间信息进行时延对称性 补偿。当第三时间信息t4大于第二时间信息t3+(t2-t1)时,减少缓存水线,减少的值为第三时间信息t4和第二时间信息t3+(t2-t1)之差的绝对值;当第三时间信息t4等于第二时间信息t3+(t2-t1)时,保持缓存水线不变;当第三时间信息t4小于第二时间信息t3+(t2-t1)时,增加缓存水线,增加的值为第三时间信息t4和第二时间信息t3+(t2-t1)之差的绝对值。
第二种,第一设备获取n个所述第二时间信息和n个对应的所述第三时间信息,根据n个第二时间信息和n个对应的第三时间信息进行时延对称性补偿。当第一设备获得n个所述第二时间信息和n个对应的所述第三时间信息时,第一设备剔除n个所述第二时间信息中的最大值和最小值,剔除n个对应的所述第三时间信息的最大值和最小值;计算所述第二时间信息的平均值和所述第三时间信息的平均值;根据所述第二时间信息的平均值和所述第三时间信息的平均值进行时延对称性补偿;其中,n为大于或等于3的整数。
具体的,当第三时间信息的平均值大于第二时间信息的平均值时,减少缓存水线,减少的值为第三时间信息的平均值和第二时间信息的平均值之差的绝对值;当第三时间信息的平均值等于第二时间信息的平均值时,保持缓存水线不变;当第三时间信息的平均值小于第二时间信息的平均值时,增加缓存水线,增加的值为第三时间信息的平均值和第二时间信息的平均值之差的绝对值。
本申请实施例通过缓存水线的调整,使得第一设备的发送方向到第二设备的接收方向的延时,和第二设备的发送方向到第一设备的接收方向的延时基本一致,实现了时延对称性的调整,以满足对时延对称性要求较高的业务的传输需要。
参见图5、本申请另一个实施例提出了一种时延对称性测量方法,包括:
步骤500、第二设备接收第一设备发送的第一时间信息,获取第四时间信息;其中,所述第四时间信息为所述第二设备获得所述第一时间信息的时间信息。
在本申请实施例中,第二设备可以采用与第一设备向第二设备发送第一时间信息相对应的方法接收第一设备发送的第一时间信息,即第二设备解析接收码流中的第三类特定标识码块得到第一时间信息。
在本申请另一个实施例中,第二设备解析接收码流中的第三类特定标识码块得到第一时间信息之前,该方法还包括:第二设备对所述第三类特定标识码块进行循环冗余校验码校验,校验通过后解析所述第三类特定标识码块得到所述第一时间信息。
也就是说,当第三类特定标识码块还携带CRC时,第二设备先对第三类特定标识码块进行CRC校验,校验通过后,解析出第三类特定标识码块的32位时间信息字段,提取前2比特的时间信息类型TS_type,当TS_type为1时表示请求类型TS_req,即识别为该时间信息为第一时间信息,在识别到第一时间信息时,获取当前设备的时间信息作为第四时间信息t2,即上述实施例的第二设备接收到第一时间信息的时间信息。
第二设备可以逐个解析第三类特定标识码块确定是否携带时间信息,也可以按照与第一设备的约定值,在第三类特定标识码块中的序列号为第一预设值时提取时间信息。
步骤501、所述第二设备根据所述第四时间信息和所述第一时间信息计 算所述第一设备到所述第二设备的延时信息。
具体的,延时信息为第四时间信息和第一时间信息之差。
步骤502、第二设备向第一设备发送第二时间信息;其中,所述第二时间信息为发送所述第二时间信息的时间信息和所述延时信息之和。
在本申请实施例中,第二设备可以采用多种方式向第一设备发送第二时间信息,例如,第二设备将发送码流中的第一类特定标识码块替换为第二类特定标识码块,在部分或全部第三类特定标识码块中携带第二时间信息并发送给第一设备;其中,第三类特定标识码块包括以下至少之一:所述第二类特定标识码块、S标识码块。
具体的,所述第二设备每遇到一个所述第三类特定标识码块时将本地序列的序列号加1;或者,所述第二设备在K码有效指示为第二预设指示值时将所述本地序列的序列号加1;所述第二设备在本地序列的序列号为第二预设值时获取发送所述第三时间信息的时间信息t3(即当前设备的时间信息),在本地序列的序列号为第二预设值时对应的所述第三类特定标识码块中携带所述第二时间信息(即t3+|t2-t1|)并发送给第一设备。
其中,本地序列的序列号的最大值可以预先设定,例如,设定本地序列的序列号的最大值为X,那么当本地序列的序列号为X时,如果再续遇到一个第三类特定标识码块,则将本地序列的序列号重新置零。
在本申请另一个实施例中,第二设备在本地序列的序列号为第二预设值时获取发送所述第二时间信息的时间信息后,该方法还包括:第二设备计算CRC,在本地序列的序列号为第二预设值时对应的第三类特定标识码块中携 带第二时间信息和CRC并发送给第一设备。
在本申请另一个实施例中,第二设备计算第一设备到第二设备的延时信息后,该方法还包括:第二设备判断所述第一设备到第二设备的延时信息的有效性,当所述第一设备到第二设备的延时信息有效时,在部分或全部第二类特定标识码块中携带所述第二时间信息并发送给第一设备;当第一设备到第二设备的延时信息无效时,结束本流程。
具体的,当延时信息为0时表示延时信息无效;当延时信息不为0时表示延时信息有效。
参见图6,本申请另一个实施例提出了一种时延对称性测量方法,包括:
步骤600、第一设备向第二设备发送第一时间信息。
在本申请实施例中,第一设备可以是任意设备,如前传设备、边缘设备(PE,Provider Edge)、边缘路由器等。
在本申请实施例中,第一设备可以采用多种方式来向第二设备发送第一时间信息t1。例如,第一设备将发送码流中的第一类特定标识码块替换为第二类特定标识码块,在部分或全部第三类特定标识码块中携带第一时间信息并发送给第二设备;其中,第三类特定标识码块包括以下至少之一:所述第二类特定标识码块、S标识码块。这样,在发送时间信息时不会占用额外的带宽。
在本申请实施例中,第一设备可以按照预定规则将发送码流中的第一类特定标识码块替换为第二类特定标识码块,例如,每隔m个第一类特定标识码块替换为第二类特定标识码块,也就是说,相邻两个第二类特定标识码块 之间存在(m-1)个第一类特定标识码块。
在本申请实施例中,第一类特定标识码块包括以下至少之一:T标识码块和S标识码块之间的空闲信息标识码块、K码;所述第二类特定标识码块包括以下至少之一:O标识码块、S标识码块。
具体实现过程中,将T标识码块和S标识码块之间的空闲信息(I)标识码块替换为O标识码块,或者将K码替换为S标识码块。
其中,S标识码块(也成为报文头块)和O标识码块的结构如图3所示。
0-1比特为66比特(Bit)块类型:10为控制块(如O标识码块、S标识码块),01则为数据块;2-9比特为66bit块子类型:当为0x78时表示S块(即S标识码块);当为0x4B时表示O块(即O标识码块);S块的10-65比特为数据内容,实际使用时为固定内容的数据。
O块的10-33比特为数据内容,34-41比特为特征码,42-65比特扩展前为数据内容。
那么,在第三类特定标识码块中携带时间信息如图4(a)和图4(b)所示,原始时间信息采用80比特来表示,其中前48比特表示秒级时间信息,后32比特表示纳秒级时间信息,本申请实施例采用第三类特定标识码块中的32比特(如data2到data5)来表示纳秒级时间信息(即时戳信息)。
其中,如图4(b)所示,可以将第独生女类特定标识码块的18-33比特扩展为纳秒级时间信息的高16比特,其中,18-19比特用于表示是传递的时间信息类型(TS_type),如图4(a)所示,TS_type为0时表示默认类型,TS_type为1时表示请求类型(TS_req),TS_type为2时表示响应类型(TS_resp), TS_type为3时表示TS协商报文;42-57比特扩展为纳秒级时间信息的低16比特。
在本申请另一个实施例中,第三类特定标识码块还携带以下至少之一:客户编号、IDLE个数、序列号、循环冗余校验码(CRC,Cyclic Redundancy Check)、时戳有效指示、K码指示。
CPRI业务从U侧进入时,并没有S和T,经过缓存处理后会适时的添加S和T块,以包的形式在网络转发,当一个包内含有K码时,采样时间信息,添加时戳信息,并将时戳信息有效指示和K码指示置位为有效;否则将时戳信息有效指示和K码指示置位为无效。
其中,客户编码为用户侧原始客户的编号,部分场景下可能多个原始客户汇聚后统一承载传输,时延测量和调整需要覆盖更接近用户侧端到端的路径,传递原始客户编号信息以便于区分路径信息;IDLE个数为本第三类特定标识码块之前所包含的I标识码块的个数;序列号为本第三类特定标识码块对应的本地序列的序列号;CRC用于校验第三类特定标识码块中的信息;时戳有效指示用于指示第三类特定标识码块中的时戳信息是否有效;K码指示用于指示第三类特定标识码块之后的包中的是否有K码。
如图4(b)所示,可以将第三类特定标识码块的10-13比特扩展为客户编号;14-17比特扩展为idle个数;58-61比特扩展为序列号;62-65比特扩展为该66比特块的CRC。
如图4(c)所示,当采用S标识码块替换K码时,可以将第三类特定标识码块的18-33比特扩展为纳秒级时间信息的高16比特,其中,18-19 比特用于表示传递的时间信息类型(TS_type),如图4(a)所示,TS_type为0时表示默认类型,TS_type为1时表示请求类型(TS_req),TS_type为2时表示响应类型(TS_resp),TS_type为3时表示TS协商报文;10-13比特扩展为客户编号;14-15比特扩展保留比特;16比特扩展为K码指示;17比特扩展为时戳有效指示;18-33比特扩展为时戳信息(即纳秒级时间信息)的高16比特,其中,18-19比特用于表示传递的时戳类型(即时间信息类型);34-41比特为保留位;42-57比特扩展为时戳信息的低16比特;58-61比特扩展为序列号;62-65比特扩展为该66比特块的CRC。
上面的比特扩展仅仅是一种示例,10-33比特以及42-65比特用来承载时间信息的方式不仅仅是上述列出的方式,也可以采用其他的表示方式,例如,采用18-33比特表示时间信息的低16比特,采用42-57比特表示时间信息的高16比特。本申请实施例对哪个比特扩展为表示哪个信息不作限定,具体的扩展方式也不用于限定本申请实施例的保护范围,这里不再赘述。
在本申请实施例中,第一设备在部分或全部第三类特定标识码块中携带第一时间信息并发送给第二设备包括:所述第一设备每遇到一个所述第三类特定标识码块时将本地序列的序列号加1;或者,所述第一设备在K码有效指示为第一预设指示值时将所述本地序列的序列号加1;所述第一设备在本地序列的序列号为第一预设值时获取所述第一时间信息(即当前设备的时间信息),在本地序列的序列号为第一预设值时对应的所述第三类特定标识码块中携带所述第一时间信息并发送。
其中,本地序列的序列号的最大值可以预先设定,例如,设定本地序 列的序列号的最大值为X,那么当本地序列的序列号为X时,如果再续遇到一个第三类特定标识码块,则将本地序列的序列号重新置零。
在本申请另一个实施例中,第一设备在本地序列的序列号为第一预设值时获取所述第一时间信息后,该方法还包括:第一设备计算CRC,在所述本地序列的序列号为第一预设值时对应的所述第三类特定标识码块中携带所述第一时间信息和CRC并发送。
其中,可以采用CRC4计算CRC值。
步骤601、第一设备接收第二设备发送的第五时间信息,获取第三时间信息;其中,第五时间信息包括:第二设备获得所述第一时间信息的时间信息和所述第二设备发送所述第五时间信息的时间信息,所述第三时间信息为所述第一设备获得所述第五时间信息的时间信息。
在本申请另一个实施例中,第五时间信息还包括第一时间信息。
在本申请实施例中,第一设备可以采用与第一设备向第二设备发送第一时间信息对应的方式接收第一设备发送的第五时间信息,即第一设备解析接收码流中的第三类特定标识码块得到第五时间信息。
当第三类特定标识码块还携带CRC时,第一设备先对第三类特定标识码块进行CRC校验,校验通过后,解析出第三类特定标识码块的32位时间信息字段,提取前2比特的时间信息类型TS_type,当TS_type为2时表示响应类型TS_resp,即识别为该时间信息为第五时间信息,在识别到第五时间信息时,获取当前设备的时间信息作为第三时间信息t4。
第一设备可以逐个解析第三类特定标识码块确定是否携带时间信息, 也可以按照与第二设备的约定值,在第三类特定标识码块中的序列号为第二预设值时提取时间信息。
步骤602、第一设备计算第二设备获得第一时间信息的时间信息和第一时间信息的第一差值,以及第三时间信息和第二设备发送第四时间信息的时间信息的第二差值;第一设备根据所述第一差值和所述第二差值进行时延对称性补偿。
具体的,第一设备可以采用以下任一种方法根据第一差值和第二差值进行时延对称性补偿。
第一种,第一设备获取一个第一差值和一个对应的第二差值,根据一个第一差值和一个对应的第二差值进行时延对称性补偿。当第二差值大于第一差值时,减少缓存水线,减少的值为第二差值和第一差值之差的绝对值;当第二差值等于第一差值时,保持缓存水线不变;当第二差值小于第一差值时,增加缓存水线,增加的值为第二差值和第一差值之差的绝对值。
第二种,第一设备获取n个第一差值和n个对应的第二差值,根据n个第一差值和n个对应的第二差值进行时延对称性补偿。当获得n个所述第一差值和n个对应的所述第二差值时,剔除n个所述第一差值中的最大值和最小值,剔除n个对应的所述第二差值的最大值和最小值;计算所述第一差值的平均值和所述第二差值的平均值;根据所述第一差值的平均值和所述第二差值的平均值进行时延对称性补偿;其中,n为大于或等于3的整数。
具体的,当第二差值的平均值大于第一差值的平均值时,减少缓存水线,减少的值为第二差值的平均值和第一差值的平均值之差的绝对值;当第 二差值的平均值等于第一差值的平均值时,保持缓存水线不变;当第二差值的平均值小于第一差值的平均值时,增加缓存水线,增加的值为第二差值的平均值和第一差值的平均值之差的绝对值。
本申请实施例通过缓存水线的调整,使得第一设备的发送方向到第二设备的接收方向的延时,和第二设备的发送方向到第一设备的接收方向的延时基本一致,实现了时延对称性的调整,以满足对时延对称性要求较高的业务的传输需要。
参见图7,本申请另一个实施例提出了一种时延对称性测量方法,包括:
步骤700、第二设备接收第一设备发送的第一时间信息,获取第四时间信息;其中,所述第四时间信息为所述第二设备获得所述第一时间信息的时间信息。
在本申请实施例中,第二设备可以采用与第一设备向第二设备发送第一时间信息相对应的方法接收第一设备发送的第一时间信息,即第二设备解析接收码流中的第三类特定标识码块得到第一时间信息。
在本申请另一个实施例中,第二设备解析接收码流中的第二类特定标识码块得到第一时间信息之前,该方法还包括:第二设备对所述第三类特定标识码块进行循环冗余校验码校验,校验通过后解析所述第三类特定标识码块得到所述第一时间信息。
也就是说,当第三类特定标识码块还携带CRC时,第二设备先对第三类特定标识码块进行CRC校验,校验通过后,解析出第三类特定标识码块 的32位时间信息字段,提取前2比特的时间信息类型TS_type,当TS_type为1时表示请求类型TS_req,即识别为该时间信息为第一时间信息,在识别到第一时间信息时,获取当前设备的时间信息作为第四时间信息t2,即上述实施例的第二设备接收到第一时间信息的时间信息。
第二设备可以逐个解析第三类特定标识码块确定是否携带时间信息,也可以按照与第一设备的约定值,在第三类特定标识码块中的序列号为第一预设值时提取时间信息。
步骤701、第二设备判断所述第一时间信息和所述第四时间信息的有效性;当所述第一时间信息和所述第四时间信息均有效时第二设备向第一设备发送第五时间信息;其中,第五时间信息包括:所述第四信息t2和发送所述第五时间信息的时间信息t3。
在本申请实施例中,当第一时间信息为0时表示第一时间信息无效;当第一时间信息不为0时表示第一时间信息有效。
当第四时间信息为0时表示第四时间信息无效;当第四时间信息不为0时表示第四时间信息有效。
在本申请另一个实施例中,第五时间信息还包括第一时间信息t1。
在本申请实施例中,第二设备可以采用多种方式向第一设备发送第五时间信息,例如,第二设备将发送码流中的第一类特定标识码块替换为第二类特定标识码块,在部分或全部第三类特定标识码块中携带第五时间信息并发送给第一设备;其中,第三类特定标识码块包括以下至少之一:所述第二类特定标识码块、S标识码块。
具体的,所述第二设备每遇到一个所述第三类特定标识码块时将本地序列的序列号加1;或者,所述第二设备在K码有效指示为第二预设指示值时将所述本地序列的序列号加1;所述第二设备在本地序列的序列号为第二预设值时获取发送所述第五时间信息的时间信息(即当前设备的时间信息),在本地序列的序列号为第二预设值时对应的所述第三类特定标识码块中携带所述第五时间信息并发送给第一设备。
其中,本地序列的序列号的最大值可以预先设定,例如,设定本地序列的序列号的最大值为X,那么当本地序列的序列号为X时,如果再续遇到一个第三类特定标识码块,则将本地序列的序列号重新置零。
在本申请另一个实施例中,第二设备在本地序列的序列号为第二预设值时获取发送所述第五时间信息的时间信息后,该方法还包括:第二设备计算CRC,在本地序列的序列号为第二预设值时对应的第三类特定标识码块中携带第五时间信息和CRC并发送。
在本申请另一个实施例中,第二设备获取第四时间信息后,该方法还包括:参见图8,本申请另一个实施例提出了一种时延对称性测量装置(如第一设备),包括:第一发送模块801,用于向第二设备发送第一时间信息;第一接收模块802,用于接收第二设备发送的第二时间信息,获取第三时间信息。
其中,所述第二时间信息为第二设备发送第二时间信息的时间信息和第一设备到第二设备的延时信息之和,第一设备到第二设备的延时信息为所述第二设备获得所述第一时间信息的时间信息和所述第一时间信息之差的绝对值,第三时间信息为第一设备获得第二时间信息的时间信息,所述第二设 备到所述第一设备的延时信息为所述第三时间信息和所述第二设备发送所述第二时间信息的时间信息之差。
在本申请实施例中,第一发送模块801具体用于:将发送码流中的第一类特定标识码块替换为第二类特定标识码块,在部分或全部第三类特定标识码块中携带第一时间信息并发送给第二设备;其中,第三类特定标识码块包括以下至少之一:所述第二类特定标识码块、S标识码块;
第一接收模块802具体用于:解析接收码流中的第三类特定标识码块得到第二时间信息,获取第三时间信息。
在本申请另一个实施例中,还包括:第一补偿模块803,用于根据所述第二时间信息和所述第三时间信息进行时延对称性补偿。
在本申请实施例中,第一补偿模块803具体用于:当获得n个所述第二时间信息和n个对应的所述第三时间信息时,剔除n个所述第二时间信息中的最大值和最小值,剔除n个对应的所述第三时间信息的最大值和最小值;计算所述第二时间信息的平均值和所述第三时间信息的平均值;根据所述第二时间信息的平均值和所述第三时间信息的平均值进行时延对称性补偿;其中,n为大于或等于1的整数。
在本申请实施例中,第一发送模块801具体用于:每遇到一个所述第三类特定标识码块时将本地序列的序列号加1;或者,在K码有效指示为第一预设指示值时将所述本地序列的序列号加1;在本地序列的序列号为第一预设值时获取所述第一时间信息,在本地序列的序列号为第一预设值时对应的所述第三类特定标识码块中携带所述第一时间信息并发送给第二设备。
在本申请实施例中,第一发送模块801还用于:计算循环冗余校验码,在所述本地序列的序列号为第一预设值时对应的所述第三类特定标识码块中携带所述第一时间信息和所述循环冗余校验码并发送给第二设备。
在本申请实施例中,所述第一类特定标识码块包括以下至少之一:T标识码块和S标识码块之间的空闲信息标识码块、K码;所述第二类特定标识码块包括以下至少之一:O标识码块、S标识码块。
上述时延对称性测量装置的具体实现过程与前述实施例相同,这里不再赘述。
参见图9,本申请另一个实施例提出了一种时延对称性测量装置(如第二设备),包括:
第二接收模块901,用于接收第一设备发送的第一时间信息,获取第四时间信息;其中,所述第四时间信息为所述第二设备获得所述第一时间信息的时间信息。
第一计算模块902,用于根据所述第四时间信息和所述第一时间信息计算所述第一设备到所述第二设备的延时信息。
第二发送模块903,用于向第一设备发送第二时间信息。
其中,所述第二时间信息为发送所述第二时间信息的时间信息和所述第一设备到第二设备的延时信息之和。
在本申请实施例中,第二接收模块901具体用于:解析接收码流中的第三类特定标识码块得到第一时间信息,获取第四时间信息;
第二发送模块903具体用于:将发送码流中的第一类特定标识码块替 换为第二类特定标识码块,在部分或全部第三类特定标识码块中携带第二时间信息并发送给第一设备;其中,第三类特定标识码块包括以下至少之一:所述第二类特定标识码块、S标识码块。
在本申请实施例中,第二发送模块903还用于:判断所述第一设备到第二设备的延时信息的有效性,当所述第一设备到第二设备的延时信息有效时,在部分或全部第三类特定标识码块中携带所述第二时间信息并发送给第一设备。
在本申请实施例中,第二接收模块901还用于:对所述第三类特定标识码块进行循环冗余校验码校验,校验通过后解析所述第三类特定标识码块得到所述第一时间信息。
在本申请实施例中,第二发送模块903具体用于:每遇到一个所述第三类特定标识码块时将本地序列的序列号加1;或者,在K码有效指示为第二预设指示值时将所述本地序列的序列号加1;在本地序列的序列号为第二预设值时获取发送所述第二时间信息的时间信息,在本地序列的序列号为第二预设值时对应的所述第三类特定标识码块中携带所述第二时间信息并发送给第一设备。
上述时延对称性测量装置的具体实现过程与前述实施例相同,这里不再赘述。
参见图10,本申请另一个实施例提出了一种时延对称性测量装置(如第一设备),包括:
第三发送模块1001,用于向第二设备发送第一时间信息。
第三接收模块1002,用于接收第二设备发送的第五时间信息,获取第三时间信息;其中,第五时间信息包括:第二设备获得所述第一时间信息的时间信息和所述第二设备发送所述第五时间信息的时间信息,所述第三时间信息为所述第一设备获得所述第五时间信息的时间信息。
第二计算模块1003,用于计算所述第二设备接收到所述第一时间信息的时间信息和所述第一时间信息的第一差值,以及所述第三时间信息和所述第二设备发送所述第四时间信息的时间信息的第二差值。
第二补偿模块1004,用于根据所述第一差值和所述第二差值进行时延对称性补偿。
在本申请实施例中,第三发送模块1001具体用于:将发送码流中的第一类特定标识码块替换为第二类特定标识码块,在部分或全部第三类特定标识码块中携带第一时间信息并发送给第二设备;其中,第三类特定标识码块包括以下至少之一:所述第二类特定标识码块、S标识码块。
第三接收模块1002具体用于:解析接收码流中的第三类特定标识码块得到第五时间信息,获取第三时间信息。
在本申请实施例中,第二补偿模块1004具体用于:当获得n个所述第一差值和n个对应的所述第二差值时,剔除n个所述第一差值中的最大值和最小值,剔除n个对应的所述第二差值的最大值和最小值;计算所述第一差值的平均值和所述第二差值的平均值;根据所述第一差值的平均值和所述第二差值的平均值进行时延对称性补偿;其中,n为大于或等于1的整数。
上述时延对称性测量装置的具体实现过程与前述实施例相同,这里不 再赘述。
参见图11,本申请另一个实施例提出了一种时延对称性测量方法(如第二设备),包括:
第四接收模块1101,用于接收第一设备发送的第一时间信息,获取第四时间信息;其中,所述第四时间信息为所述第二设备获得所述第一时间信息的时间信息。
第四发送模块1102,用于判断所述第一时间信息和所述第四时间信息的有效性。
当所述第一时间信息和所述第四时间信息均有效时,向第二设备发送第五时间信息;其中,第五时间信息包括:所述第四信息和发送所述第五时间信息的时间信息。
在本申请实施例中,第四接收模块1101具体用于:解析接收码流中的第三类特定标识码块得到第一时间信息,获取第四时间信息;
第四发送模块1102具体用于:将发送码流中的第一类特定标识码块替换为第二类特定标识码块,在部分或全部第三类特定标识码块中携带第五时间信息并发送给第一设备;其中,第三类特定标识码块包括以下至少之一:所述第二类特定标识码块、S标识码块。
上述时延对称性测量装置的具体实现过程与前述实施例相同,这里不再赘述。
本申请另一个实施例提出了一种时延对称性测量装置,包括处理器和计算机可读存储介质,所述计算机可读存储介质中存储有指令,当所述指令 被所述处理器执行时,实现上述任一种时延对称性测量方法。
本申请另一个实施例提出了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任一种时延对称性测量方法的步骤。
计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。
本申请另一个实施例提出了一种时延对称性测量系统,包括:
第一设备,用于向第二设备发送第一时间信息;接收第二设备发送的第二时间信息,获取第三时间信息;其中,所述第二时间信息为第二设备发送第二时间信息的时间信息和第一设备到第二设备的延时信息之和,所述第一设备到第二设备的延时信息为所述第二设备获得所述第一时间信息的时间信息和所述第一时间信息之差,第三时间信息为第一设备获得第二时间信息的时间信息,所述第二设备到所述第一设备的延时信息为所述第三时间信息和所述第二设备发送所述第二时间信息的时间信息之差。
第二设备,用于接收第一设备发送的第一时间信息,获取第四时间信息;其中,所述第四时间信息为所述第二设备获得所述第一时间信息的时间信息;根据所述第四时间信息和所述第一时间信息计算所述第一设备到所述第二设备的延时信息;向第一设备发送第二时间信息;其中,所述第二时间信息为发送所述第二时间信息的时间信息和所述延时信息之和。
在本申请实施例中,第一设备具体用于:将发送码流中的第一类特定标识码块替换为第二类特定标识码块,在部分或全部第三类特定标识码块中携带第一时间信息并发送给第二设备;其中,第三类特定标识码块包括以下至少之一:所述第二类特定标识码块、S标识码块;解析接收码流中的第三类特定标识码块得到第二时间信息,获取第三时间信息;
第二设备具体用于:解析接收码流中的第三类特定标识码块得到第一时间信息,获取第四时间信息;根据所述第四时间信息和所述第一时间信息计算所述第一设备到所述第二设备的延时信息;将发送码流中的第一类特定标识码块替换为第二类特定标识码块,在部分或全部第三类特定标识码块中携带第二时间信息并发送给第一设备。
在本申请另一个实施例中,第一设备还用于:根据所述第二时间信息和所述第三时间信息进行时延对称性补偿。
在本申请实施例中,第一设备具体用于采用以下方式实现根据所述第二时间信息和所述第三时间信息进行时延对称性补偿:当获得n个所述第二时间信息和n个对应的所述第三时间信息时,剔除n个所述第二时间信息中的最大值和最小值,剔除n个对应的所述第三时间信息的最大值和最小值;计算所述第二时间信息的平均值和所述第三时间信息的平均值;根据所述第二时间信息的平均值和所述第三时间信息的平均值进行时延对称性补偿;其中,n为大于或等于1的整数。
在本申请另一个实施例中,第一设备还用于:每遇到一个所述第三类特定标识码块时将本地序列的序列号加1;或者,在K码有效指示为第一预 设指示值时将所述本地序列的序列号加1;在本地序列的序列号为第一预设值时获取所述第一时间信息,计算循环冗余校验码,在所述本地序列的序列号为第一预设值时对应的所述第三类特定标识码块中携带所述第一时间信息和所述循环冗余校验码并发送给第二设备;
第二设备还用于:对所述第三类特定标识码块进行循环冗余校验码校验,校验通过后解析所述第三类特定标识码块得到所述第一时间信息。
在本申请另一个实施例中,第二设备还用于:判断所述第一设备到第二设备的延时信息的有效性,当所述延时信息有效时,在部分或全部第三类特定标识码块中携带所述第二时间信息并发送给第一设备。
上述时延对称性测量系统的具体实现过程与前述实施例相同,这里不再赘述。
本申请另一个实施例提出了一种时延对称性测量系统,包括:。第一设备,用于向第二设备发送第一时间信息;接收第五时间信息,获取第三时间信息;其中,第五时间信息包括:第二设备获得所述第一时间信息的时间信息和所述第二设备发送所述第五时间信息的时间信息,所述第三时间信息为所述第一设备获得所述第五时间信息的时间信息;计算所述第二设备获得所述第一时间信息的时间信息和所述第一时间信息的第一差值,以及所述第三时间信息和所述第二设备发送所述第五时间信息的时间信息的第二差值;根据所述第一差值和所述第二差值进行时延对称性补偿。
第二设备,用于接收第一设备发送的第一时间信息,获取第四时间信息;其中,所述第四时间信息为所述第二设备获得所述第一时间信息的时间 信息;判断所述第一时间信息和所述第四时间信息的有效性;当所述第一时间信息和所述第四时间信息均有效时,向第一设备发送第五时间信息;其中,第五时间信息包括:所述第四信息和发送所述第五时间信息的时间信息。
在本申请实施例中,第一设备具体用于采用以下方式实现向第二设备发送第一时间信息,接收第二设备发送的第五时间信息:将发送码流中的第一类特定标识码块替换为第二类特定标识码块,在部分或全部第三类特定标识码块中携带第一时间信息并发送给第二设备;其中,第三类特定标识码块包括以下至少之一:所述第二类特定标识码块、S标识码块;解析接收码流中的第三类特定标识码块得到第五时间信息;
第二设备具体用于:解析接收码流中的第三类特定标识码块得到第一时间信息,获取第四时间信息;将发送码流中的第一类特定标识码块替换为第二类特定标识码块,在部分或全部第三类特定标识码块中携带第五时间信息并发送给第一设备。
在本申请实施例中,第一设备具体用于采用以下方式实现根据所述第一差值和所述第二差值进行时延对称性补偿:当获得n个所述第一差值和n个对应的所述第二差值时,剔除n个所述第一差值中的最大值和最小值,剔除n个对应的所述第二差值的最大值和最小值;计算所述第一差值的平均值和所述第二差值的平均值;根据所述第一差值的平均值和所述第二差值的平均值进行时延对称性补偿;其中,n为大于或等于1的整数。
上述时延对称性测量系统的具体实现过程与前述实施例相同,这里不再赘述。
下面针对OIF定义的FlexE传输管道,给出了四种示例,但在实现中不局限于FlexE管道,也可以是FlexO等,这些变化都在本专利保护范围。
如图12(a)所示,边缘设备1采用第二类特定标识码块替换第一类特定标识码块,通过第三类特定标识码块向边缘设备2发送时间信息1,边缘设备2接收时间信息1,并获取时间信息2,采用第二类特定标识码块替换第一类特定标识码块,基于时间信息1和时间信息2采用第三类特定标识码块向边缘设备1发送时间信息3,边缘设备1接收时间信息3,并获取时间信息4,从而实现了对边缘设备1到边缘设备2的延时信息,以及边缘设备2到边缘设备1的延时信息的对称测量。其中,第三类特定标识码块包括以下至少之一:第二类特定标识码块、S标识码块。
示例1
边缘设备(即与用户侧设备直连的承载设备)光纤直连的25G以太网通用公共无线接口(ecpri,ethernet common public radio interface)业务承载在100G FlexE中,使用报文头标识码块(S标识码块)或空闲信息标识码块(IDLE标识码块)或者报文头标识码块(S标识码块)和空闲信息标识码块(IDLE标识码块)传递经过处理的时间信息。
拓扑网络如图1(b)所示,时间信息传递过程如图12(b)所示,该方法包括:步骤1:边缘设备1的发送方向,对于时延对称性有严格要求的ecpri业务,将ecpri业务和时间信息承载到FlexE后通过100G光纤进行传输。
步骤1包括:
步骤1.1:边缘设备1的U侧(即RU天线的入口,也称为用户侧, 业务口)802.3定义的pcs层66/64B码流中对T标识码与S标识码块之间的IDLE标识码块,按照一定的规则将部分IDLE标识码块替换为O标识码块。
步骤1.2:维护一个模为16的本地序列;每遇O标识码块或S标识码块,本地序列的序列号加1,当序列号为1时提取当前设备的时间信息t1(即上述实施例的第一时间信息),并将第一时间信息t1和序列号插入该O标识码块或S标识码块中并使用CRC4计算该66/64B CRC值,将CRC值插入该O标识码块或S标识码块中。
步骤1.3:将业务按照FlexE协议要求承载到100G FlexE管道中在N侧进行传输。
步骤2:边缘设备2的接收方向,获得边缘设备1发送到边缘设备2接收的延时信息。
步骤2包括:
步骤2.1:将从边缘设备2的N侧(即网络侧)FlexE时隙中提取业务码块,解析出O标识码块或S标识码块,在读到O标识码块或S标识码块时,先做CRC校验,校验通过后对O标识码块或S标识码块的各字段进行解析。
步骤2.2:当时间信息类型是ST_req时,识别为t1并提取当前设备的时间信息t2,计算|t2-t1|,送本设备的发送侧。
步骤3:边缘设备2的发送方向,将对时延对称性有严格要求的前传业务和时间信息承载到FlexE后通过100G光纤进行传输。
步骤3包括:
步骤3.1:边缘设备2的U侧802.3定义的pcs层66/64B码流中对T标识码块与S标识码块之间的IDLE标识码块,按照一定的规则将部分IDLE标识码块替换为O标识码块。
步骤3.2:获取从接收方向获得的时间戳信息|t2-t1|,并判断|t2-t1|的有效性,当|t2-t1|为0时为无效时间信息,时间信息将不做传递;当|t2-t1|不为0时为有效时间信息,产生时间信息发送请求。
步骤3.3:维护一个模为16的本地序列;每遇O标识码块或S标识码块时,本地序列的序列号加1,当序列号为9时提取时戳信息t3,计算t3+|t2-t1|,生成t3+|t2-t1|的时间信息,并将生成的时间信息和序列号9插入O标识码块或S标识码块中并使用CRC4计算该66/64B CRC值,插入O标识码块或S标识码块中。
步骤3.4:将业务按照FlexE协议要求承载到100G FlexE管道中在N侧进行传输。
步骤4:边缘设备1的接收方向,调整时延以满足时延对称性要求。
步骤4包括:
步骤4.1:将从边缘设备1的N侧FlexE时隙中提取业务码块,解析出O标识码块或S标识码块,在读到O标识码块或S标识码块时,先做CRC校验,校验通过后对O标识码块或S标识码块的各字段进行解析。
步骤4.2:当时间信息类型是ST_resp时,提取含t3+|t2-t1|的时间信息,采样当前设备的时间戳t4,获得该组时间信息t4,t3+|t2-t1|送时间处理单元。
步骤4.3:时间处理单元存储16组时间戳采样信息,移除一定范围的最大值和最小值,剩下的值计算平均值,得到t4的平均值,t3+|t2-t1|的平均值;当t4的平均值大于t3+|t2-t1|的平均值时,计算t4的平均值和t3+|t2-t1|的平均值的绝对差值,减少相应的缓存水线;当t4的平均值小于t3+|t2-t1|的平均值时,计算t4的平均值和t3+|t2-t1|的平均值的绝对差值,增加相应的缓存水线;当t4的平均值等于t3+|t2-t1|的平均值时,则不需要调整缓存水线。
步骤4.4:通过水线的调整,调整前传设备2的发送方向到前传设备1的接收方向的延时,使之和前传设备1发送方向到前传设备2接收方向的延时基本一致,完整时延对称性调整;以满足对时延对称性高度依赖的业务传输需要。
示例2
经过中间节点的25G ecpri业务承载在100G FlexE中,使用报文头块(S块)或空闲信息块(IDLE块)或者报文头块(S块)和空闲信息块(IDLE块)传递经过处理的时间信息。
拓扑网络如图1(c)所示,时间信息传递如图12(c)所示,在拓扑网络中增加至少一个中间节点(即图1(c)中的中间节点设备3)。
边缘设备1和边缘设备2的处理同实施例一;中间节点设备3对携带时间信息的O标识码块或S标识码块透明传输。
示例3
经过中间节点的25G ecpri业务承载在100G FlexE中,使用报文头标识码块(S标识码块)或空闲信息标识码块(IDLE标识码块)或者报文头标 识码块(S标识码块)和空闲信息标识码块(IDLE标识码块)传递未经处理时间信息。
拓扑网络如图1(c)所示,时间信息传递如图12(d)所示,该方法包括:
步骤1:边缘设备1的发送方向,对于时延对称性有严格要求的ecpri业务,将ecpri业务和时间信息承载到FlexE后通过100G光纤进行传输。
步骤1包括:
步骤1.1:边缘设备1的U侧802.3定义的pcs层66/64B码流中对T标识码块与S标识码块之间的IDLE标识码块,按照一定的规则将部分IDLE标识码块替换为O标识码块。
步骤1.2:维护一个模为16的本地序列;每遇O标识码块或S标识码块,本地序列的序列号加1,当序列号为1时提取当前设备的时间信息t1(即上述实施例的第一时间信息),并将第一时间信息t1和序列号插入O标识码块或S标识码块中并使用CRC4计算该66/64B CRC值,将CRC值插入O标识码块或S标识码块中。
步骤1.3:将业务按照FlexE协议要求承载到100G FlexE管道中在N侧进行传输。
步骤2:业务经过中间节点设备3,中间节点设备3需要支持对O标识码块或S标识码块的透明传输。
步骤3:边缘设备2的接收方向,获得边缘设备1发送到边缘设备2的时间信息。
步骤3包括:
步骤3.1:将从边缘设备2的N侧FlexE时隙中提取业务码块,解析出O标识码块或S标识码块,在读到O标识码块或S标识码块时,先做CRC校验,校验通过后对O标识码块或S标识码块的各字段进行解析。
步骤3.2:当时间信息类型是ST_req时,识别为t1并提取当前设备的时间戳t2,将t2,t1的时间信息,送本设备的发送侧。
步骤4:边缘设备2的发送方向,将对时延对称性有严格要求的前传业务和时间信息承载到FlexE后通过100G光纤进行传输。
步骤4包括:
步骤4.1:边缘设备2的U侧802.3定义的pcs层66/64B码流中对T标识码块与S标识码块之间的IDLE标识码块,按照一定的规则将部分IDLE标识码块替换为O标识码块。
步骤4.2:获取从接收方向获得的时间信息t1,t2,并判断t1,t2的有效性,当t2,t1为0时为无效时间信息,时间信息将不做传递;当t2,t1不为0时为有效时间信息,产生时间信息发送请求。
步骤4.3:维护一个模为16的本地序列;每遇O标识码块或S标识码块,本地序列的序列号加1,当序列号为9时提取时间信息t3(即上述实施例发送第五时间信息的时间信息),将t1,t2,t3封装进时间信息,并将生成的时戳信息和序列号插入该O标识码块或S标识码块中并使用CRC4计算该66/64B CRC值,将CRC值插入该O标识码块或S标识码块中。
步骤4.4:将业务按照FlexE协议要求承载到100G FlexE管道中在N 侧进行传输;
步骤5:边缘设备1的接收方向,调整时延以满足时延对称性要求。
步骤5包括:
步骤5.1:将从边缘设备1的N侧FlexE时隙中提取业务码块,解析出O标识码块或S标识码块,在读到O标识码块或S标识码块时,先做CRC校验,校验通过后对O标识码块或S标识码块的各字段进行解析。
步骤5.2:当时间信息类型是ST_resp时,提取含t1,t2,t3的时间信息,采样当前设备的时间信息t4,获得该组时间戳采样信息t1,t2,t3,t4送时间处理单元。
步骤5.3:时间处理单元计算|t2-t1|,|t4-t3|的绝对值,即获得边缘设备1到边缘设备2的延时delay12和边缘设备2到边缘设备1的delay34,将delay12和delay34这组采样样本存储起来。
步骤5.4:存储16组采样信息,移除一定范围的最大值和最小值,剩下的值计算平均值,得到delay12的平均值和delay34的平均值。
步骤5.4.1:当delay34的平均值大于delay12的平均值时,计算delay34平均值和delay12平均值之差的绝对值,减少相应的缓存水线。
步骤5.4.2:当delay34的平均值小于delay12的平均值时,计算delay34平均值和delay12平均值之差的绝对值,增加相应的缓存水线。
步骤5.4.3:当delay34的平均值等于delay12的平均值时,则不需要调整缓存水线。
步骤5.5:通过水线的调整,调整前传设备2发送方向到前传设备1接收方向的延时,使之和前传设备1发送方向到前传设备2接收方向的延时基本一致,完整时延对称性调整;以满足对时延对称性高度依赖的业务传输需要。
示例4
通用公共无线接口(cpri,common public radio interface)业务承载在100G FlexE中,使用S标识码块替换K码承载时间信息。
拓扑网络如图13所示,该方法包括:
步骤1:边缘设备1的发送方向,对于时延对称性有严格要求的三路cpri业务,将cpri和时间信息独立承载到FlexE后通过100G光纤进行传输。
步骤1包括:
步骤1.1:边缘设备1的U侧将K码替换为S标识码块。
步骤1.2:每条CPRI业务维护一个模2的K码序列号,当K码有效指示为1时,序列号加1,当序列号为0时提取时戳信息t1,并将时戳有效指示、第一时间信息、及客户编号和K码指示插入S标识码块中。
步骤1.3:将每条业务按照FlexE协议要求承载到100G FlexE管道中在N侧进行传输。
步骤2:边缘设备2的接收方向,获得边缘设备1发送到边缘设备2接收的延时信息。
步骤2包括:
步骤2.1:将从边缘设备2的N侧FlexE时隙中提取业务码块,解析出S标识码块。
步骤2.2:当S标识码块中时间信息有效,并且时间信息类型是ST_req时,识别为第一时间信息t1并提取当前设备的时间戳t2,计算|t2-t1|的绝对值,送本设备的发送侧。
步骤3:边缘设备2的发送方向,将对时延对称性有严格要求的3路独立的cpri业务和时间信息承载到FlexE后通过100G光纤进行传输。
步骤3包括:
步骤3.1:获取从接收方向获得的时间戳信息|t2-t1|,并判断|t2-t1|的有效性,当|t2-t1|为0时为无效时间信息,时间信息将不做传递;当|t2-t1|不为0时为有效时间信息,产生时间信息发送请求。
步骤3.2:每条CPRI业务维护一个模2的K码序列号,当K码有效指示为1时,序列号加1,当序列号为1时提取时戳信息t3,计算t3+|t2-t1|,生成时间信息,并将时戳有效指示、时间信息、及客户编号和K码指示插入该S标识码块中。
步骤3.3:将业务按照FlexE协议要求承载到100G FlexE管道中在N侧进行传输。
步骤4:边缘设备1的接收方向,调整时延以满足时延对称性要求,
步骤4包括:
步骤4.1:将从边缘设备1的N侧FlexE时隙中提取业务码块,解析出S标识码块。
步骤4.2:当S标识码块中时间有效,并且时间信息类型是ST_resp时,提取含t3+|t2-t1|的时间戳信息,采样当前设备的时间戳t4,获得该组时间戳采样信息t4,t3+|t2-t1|送时间戳处理单元。
步骤4.3:存储16组时间戳采样信息,移除一定范围的最大值和最小值,剩下的值计算平均值,得到t4的平均值,t3+|t2-t1|的平均值。
步骤4.3.1:当t4的平均值大于t3+|t2-t1|的平均值时,计算t4的平均值和t3+|t2-t1|的平均值的绝对差值,减少相应的缓存水线。
步骤4.3.2:当t4的平均值小于t3+|t2-t1|的平均值时,计算t4的平均值和t3+|t2-t1|的平均值的绝对差值,增加相应的缓存水线。
步骤4.3.3:当t4的平均值等于t3+|t2-t1|的平均值时,则不需要调整缓存水线。
步骤4.4:通过水线的调整,调整前传设备2的发送方向到前传设备1的接收方向的延时,使之和前传设备1的发送方向到前传设备2的接收方向的延时基本一致,完整时延对称性调整;以满足对时延对称性高度依赖的业务传输需要。
虽然本申请实施例所揭露的实施例如上,但所述的内容仅为便于理解本申请实施例而采用的实施例,并非用以限定本申请实施例。任何本申请实施例所属领域内的技术人员,在不脱离本申请实施例所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本申请实施例的专利保护范围,仍须以所附的权利要求书所界定的范围为准。

Claims (23)

  1. 一种时延对称性测量方法,包括:
    第一设备向第二设备发送第一时间信息;
    第一设备接收所述第二设备发送的第二时间信息,获取第三时间信息;
    其中,所述第二时间信息为第二设备发送第二时间信息的时间信息和第一设备到第二设备的延时信息之和,所述第一设备到所述第二设备的延时信息为所述第二设备获得所述第一时间信息的时间信息和所述第一时间信息之差,所述第三时间信息为所述第一设备获得所述第二时间信息的时间信息,所述第二设备到所述第一设备的延时信息为所述第三时间信息和所述第二设备发送所述第二时间信息的时间信息之差。
  2. 根据权利要求1所述的时延对称性测量方法,其中,该方法还包括:
    所述第一设备根据所述第二时间信息和所述第三时间信息进行时延对称性补偿。
  3. 根据权利要求2所述的时延对称性测量方法,其中,所述根据第二时间信息和第三时间信息进行时延对称性补偿包括:
    当所述第一设备获得n个所述第二时间信息和n个对应的所述第三时间信息时,所述第一设备剔除n个所述第二时间信息中的最大值和最小值,剔除n个对应的所述第三时间信息的最大值和最小值;计算所述第二时间信息的平均值和所述第三时间信息的平均值;根据所述第二时间信息的平均值和所述第三时间信息的平均值进行时延对称性补偿;其中,n为大于或等于3的整数。
  4. 根据权利要求1~3任一项所述的时延对称性测量方法,其中,所述第一设备向第二设备发送第一时间信息包括:
    所述第一设备将发送码流中的第一类特定标识码块替换为第二类特定标识码块,在部分或全部第三类特定标识码块中携带所述第一时间信息并发送给所述第二设备;其中,第三类特定标识码块包括以下至少之一:所述第二类特定标识码块、S标识码块;
    所述第一设备接收第二设备发送的第二时间信息包括:
    所述第一设备解析接收码流中的第三类特定标识码块得到第二时间信息。
  5. 根据权利要求4所述的时延对称性测量方法,其中,所述第一设备在部分或全部第三类特定标识码块中携带第一时间信息并发送给第二设备包括:
    所述第一设备每遇到一个所述第三类特定标识码块时将本地序列的序列号加1;或者,所述第一设备在K码有效指示为第一预设指示值时将所述本地序列的序列号加1;
    所述第一设备在本地序列的序列号为第一预设值时获取所述第一时间信息,在本地序列的序列号为第一预设值时对应的所述第三类特定标识码块中携带所述第一时间信息并发送给所述第二设备。
  6. 根据权利要求5所述的时延对称性测量方法,其中,所述第一设备在本地序列的序列号为第一预设值时获取所述第一时间信息后,该方法还包括:
    所述第一设备计算循环冗余校验码,在所述本地序列的序列号为第一预设值时对应的所述第三类特定标识码块中携带所述第一时间信息和所述循环冗余校验码并发送给所述第二设备。
  7. 根据权利要求4所述的时延对称性测量方法,其中,所述第一类特定标识码块包括以下至少之一:T标识码块和S标识码块之间的空闲信息标识码块、K码;
    所述第二类特定标识码块包括以下至少之一:O标识码块、S标识码块。
  8. 一种时延对称性测量方法,包括:
    第二设备接收第一设备发送的第一时间信息,获取第四时间信息;其中,所述第四时间信息为所述第二设备获得所述第一时间信息的时间信息;
    所述第二设备根据所述第四时间信息和所述第一时间信息计算所述第一设备到所述第二设备的延时信息;
    所述第二设备向所述第一设备发送第二时间信息;
    其中,所述第二时间信息为发送所述第二时间信息的时间信息和所述第 一设备到所述第二设备的延时信息之和。
  9. 根据权利要求8所述的时延对称性测量方法,其中,所述第二设备计算第一设备到第二设备的延时信息后,该方法还包括:
    所述第二设备判断所述第一设备到所述第二设备的延时信息的有效性,当所述延时信息有效时,所述第二设备在部分或全部第二类特定标识码块中携带所述第二时间信息并发送给所述第一设备。
  10. 根据权利要求8或9所述的时延对称性测量方法,其中,所述第二设备接收第一设备发送的第一时间信息包括:
    所述第二设备解析接收码流中的第三类特定标识码块得到所述第一时间信息;
    所述第二设备向第一设备发送第二时间信息包括:
    所述第二设备将发送码流中的第一类特定标识码块替换为第二类特定标识码块,在部分或全部第三类特定标识码块中携带第二时间信息并发送给所述第一设备;其中,第三类特定标识码块包括以下至少之一:所述第二类特定标识码块、S标识码块。
  11. 根据权利要求10所述的时延对称性测量方法,其中,所述第二设备解析接收码流中的第三类特定标识码块得到第一时间信息之前,该方法还包括:
    所述第二设备对所述第三类特定标识码块进行循环冗余校验码校验,校验通过后解析所述第三类特定标识码块得到所述第一时间信息。
  12. 根据权利要求10所述的时延对称性测量方法,其中,所述在部分或全部第三类特定标识码块中携带第二时间信息并发送包括:
    所述第二设备每遇到一个所述第三类特定标识码块时将本地序列的序列号加1;或者,所述第二设备在K码有效指示为第二预设指示值时将所述本地序列的序列号加1;
    所述第二设备在本地序列的序列号为第二预设值时获取发送所述第二时间信息的时间信息,在本地序列的序列号为第二预设值时对应的所述第三类 特定标识码块中携带所述第二时间信息并发送给所述第一设备。
  13. 一种时延对称性测量方法,包括:
    第一设备向第二设备发送第一时间信息;
    第一设备接收所述第二设备发送的第五时间信息,获取第三时间信息;其中,第五时间信息包括:第二设备获得所述第一时间信息的时间信息和所述第二设备发送所述第五时间信息的时间信息,所述第三时间信息为所述第一设备获得所述第五时间信息的时间信息;
    第一设备计算所述第二设备获得所述第一时间信息的时间信息和所述第一时间信息的第一差值,以及所述第三时间信息和所述第二设备发送所述第五时间信息的时间信息的第二差值;
    所述第一设备根据所述第一差值和所述第二差值进行时延对称性补偿。
  14. 根据权利要求13所述的时延对称性测量方法,其中,所述第一设备根据第一绝对值和第二绝对值进行时延对称性补偿包括:
    当所述第一设备获得n个所述第一差值和n个对应的所述第二差值时,剔除n个所述第一差值中的最大值和最小值,剔除n个对应的所述第二差值的最大值和最小值;计算所述第一差值的平均值和所述第二差值的平均值;根据所述第一差值的平均值和所述第二差值的平均值进行时延对称性补偿;其中,n为大于或等于1的整数。
  15. 根据权利要求13~14任一项所述的时延对称性测量方法,其中,所述第五时间信息还包括第一时间信息。
  16. 根据权利要求13~14任一项所述的时延对称性测量方法,其中,所述第一设备向第二设备发送第一时间信息包括:
    第一设备将发送码流中的第一类特定标识码块替换为第二类特定标识码块,在部分或全部第三类特定标识码块中携带第一时间信息并发送给所述第二设备;其中,第三类特定标识码块包括以下至少之一:所述第二类特定标识码块、S标识码块;
    所述第一设备接收第二设备发送的第五时间信息包括:
    第一设备解析接收码流中的第三类特定标识码块得到第五时间信息。
  17. 一种时延对称性测量方法,包括:
    第二设备接收第一设备发送的第一时间信息,获取第四时间信息;其中,所述第四时间信息为所述第二设备获得所述第一时间信息的时间信息;
    所述第二设备判断所述第一时间信息和所述第四时间信息的有效性;
    当所述第一时间信息和所述第四时间信息均有效时,所述第二设备向第一设备发送第五时间信息;其中,第五时间信息包括:所述第四信息和发送所述第五时间信息的时间信息。
  18. 根据权利要求17所述的时延对称性测量方法,其中,所述第五时间信息还包括第一时间信息。
  19. 根据权利要求17所述的时延对称性测量方法,其中,所述第二设备接收第二设备发送的第一时间信息包括:
    所述第二设备解析接收码流中的第三类特定标识码块得到第一时间信息;
    所述第二设备向第一设备发送第五时间信息包括:
    所述第二设备将发送码流中的第一类特定标识码块替换为第二类特定标识码块,在部分或全部第三类特定标识码块中携带第五时间信息并发送给所述第一设备;其中,第三类特定标识码块包括以下至少之一:所述第二类特定标识码块、S标识码块。
  20. 一种时延对称性测量装置,包括处理器和计算机可读存储介质,所述计算机可读存储介质中存储有指令,其中,当所述指令被所述处理器执行时,实现如权利要求1~19任一项所述的时延对称性测量方法。
  21. 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1~19任一项所述的时延对称性测量方法的步骤。
  22. 一种时延对称性测量系统,包括:
    第一设备,用于向第二设备发送第一时间信息;接收第二时间信息,获 取第三时间信息;其中,所述第二时间信息为第二设备发送第二时间信息的时间信息和第一设备到第二设备的延时信息之和,所述第一设备到所述第二设备的延时信息为所述第二设备获得所述第一时间信息的时间信息和所述第一时间信息之差,所述第三时间信息为所述第一设备获得所述第二时间信息的时间信息,所述第二设备到所述第一设备的延时信息为所述第三时间信息和所述第二设备发送所述第二时间信息的时间信息之差;
    第二设备,用于接收第一设备发送的第一时间信息,获取第四时间信息;其中,所述第四时间信息为所述第二设备获得所述第一时间信息的时间信息;根据所述第四时间信息和所述第一时间信息计算所述第一设备到所述第二设备的延时信息;向第一设备发送第二时间信息;其中,所述第二时间信息为发送所述第二时间信息的时间信息和所述延时信息之和。
  23. 一种时延对称性测量系统,包括:
    第一设备,用于向第二设备发送第一时间信息;接收第二设备发送的第五时间信息,获取第三时间信息;其中,第五时间信息包括:第二设备获得所述第一时间信息的时间信息和所述第二设备发送所述第五时间信息的时间信息,所述第三时间信息为所述第一设备获得所述第五时间信息的时间信息;计算所述第二设备接收到所述第一时间信息的时间信息和所述第一时间信息的第一差值,以及所述第三时间信息和所述第二设备发送所述第五时间信息的时间信息的第二差值;根据所述第一差值和所述第二差值进行时延对称性补偿;
    第二设备,用于接收第一设备发送的第一时间信息,获取第四时间信息;其中,所述第四时间信息为所述第二设备获得所述第一时间信息的时间信息;向第一设备发送第五时间信息;其中,第五时间信息包括:所述第四信息和发送所述第五时间信息的时间信息。
PCT/CN2019/107554 2018-09-26 2019-09-24 一种时延对称性测量方法、装置和系统 WO2020063593A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811123805.X 2018-09-26
CN201811123805.XA CN109005557B (zh) 2018-09-26 2018-09-26 一种时延对称性测量方法、装置和系统

Publications (1)

Publication Number Publication Date
WO2020063593A1 true WO2020063593A1 (zh) 2020-04-02

Family

ID=64589339

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/107554 WO2020063593A1 (zh) 2018-09-26 2019-09-24 一种时延对称性测量方法、装置和系统

Country Status (2)

Country Link
CN (1) CN109005557B (zh)
WO (1) WO2020063593A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111880726A (zh) * 2020-06-19 2020-11-03 浙江工商大学 一种提升cnfet缓存性能的方法

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109005557B (zh) * 2018-09-26 2021-12-07 中兴通讯股份有限公司 一种时延对称性测量方法、装置和系统
CN113647068B (zh) * 2018-12-17 2024-05-10 瑞典爱立信有限公司 用于在eCPRI网络中进行分组延迟管理的方法和设备
CN111385049B (zh) * 2018-12-29 2022-09-27 中兴通讯股份有限公司 一种时间校正方法、装置、系统及存储介质
CN111970759B (zh) * 2019-05-20 2023-05-30 中兴通讯股份有限公司 端到端业务的时延调整方法及装置、存储介质和电子装置
CN110913471B (zh) * 2019-12-17 2020-12-25 四川天邑康和通信股份有限公司 用于基站的集中单元的射频拉远单元的同步方法及系统
CN113132173A (zh) * 2019-12-31 2021-07-16 华为技术有限公司 时延确定方法及装置、网络传输系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1710908A (zh) * 2005-07-14 2005-12-21 广东省电信有限公司研究院 基于设备互联协议组的双向传递时间信息的方法
US20110243055A1 (en) * 2010-03-31 2011-10-06 Siemens Aktiengesellschaft Method and Apparatus for Packet Aggregation Transmission
CN104717014A (zh) * 2013-12-13 2015-06-17 中兴通讯股份有限公司 一种测量光传送网设备传输时延的方法及源otn设备
CN109005557A (zh) * 2018-09-26 2018-12-14 南京中兴新软件有限责任公司 一种时延对称性测量方法、装置和系统

Family Cites Families (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7139225B2 (en) * 2003-03-27 2006-11-21 Qualcomm, Incorporated Virtual real-time clock based on time information from multiple communication systems
CN101227246A (zh) * 2008-01-28 2008-07-23 中兴通讯股份有限公司 一种主从时钟同步的方法及装置
CN102082697A (zh) * 2009-11-27 2011-06-01 华为技术有限公司 通信路径不对称延时测量方法、装置和系统
CN102088762B (zh) * 2009-12-04 2014-02-05 中兴通讯股份有限公司 一种利用信道对称性的频选调度方法及装置
CN102111258A (zh) * 2009-12-25 2011-06-29 华为技术有限公司 时钟同步方法、设备和系统
CN102136901A (zh) * 2010-10-26 2011-07-27 华为技术有限公司 时间同步方法、装置及系统
CN102891747B (zh) * 2011-07-19 2016-04-27 上海贝尔股份有限公司 一种通信网络中时钟同步方法及装置
CN102932905B (zh) * 2011-08-10 2017-06-16 中兴通讯股份有限公司 自动补偿1588链路非对称性时延的实现方法及系统
CN102291196A (zh) * 2011-08-17 2011-12-21 中兴通讯股份有限公司 自动侦测1588链路非对称性时延的实现方法及装置
WO2014037684A1 (en) * 2012-09-04 2014-03-13 Khalifa University of Science, Technology, and Research Methods and devices for clock synchronization
US8959381B2 (en) * 2012-09-05 2015-02-17 Khalifa University of Science, Technology, and Research Method and system for clock offset and skew estimation
CN103840877B (zh) * 2012-11-23 2017-11-24 中兴通讯股份有限公司 自动检测光纤非对称性的时间同步装置及方法
CN103731252B (zh) * 2013-12-18 2017-01-11 电信科学技术第五研究所 一种ieee1588单播协商机制改进方法及系统
CN104468014A (zh) * 2014-12-12 2015-03-25 成都天奥电子股份有限公司 复杂网络环境下提高时间同步精度的方法
CN104602141A (zh) * 2015-01-16 2015-05-06 深圳市中兴微电子技术有限公司 一种otn网络中实现时间同步的方法、设备和系统
CN106357472A (zh) * 2015-07-17 2017-01-25 中兴通讯股份有限公司 一种时延测量方法和装置
GB201514637D0 (en) * 2015-08-18 2015-09-30 Univ Surrey Method and apparatus for determining a repeat period in periodic data
WO2017147141A1 (en) * 2016-02-22 2017-08-31 Neuro Kinetics, Inc. Objective testing of vergence dysfunction for diagnosis and vergence recovery convalescence using dynamic vergence testing platform including 3d head mounted display system with integrated eye tracking technology
CN107664947B (zh) * 2017-09-06 2019-12-17 北京无线电计量测试研究所 一种卫星双向时间比对系统校准的装置及方法
CN107817480B (zh) * 2017-10-25 2019-07-26 中国电子科技集团公司第五十四研究所 一种时间比对测量装置及方法
CN108234056B (zh) * 2018-01-17 2019-12-24 四川泰富地面北斗科技股份有限公司 采用同波长半双工方式的单纤双向时间传递方法与系统
CN108521323A (zh) * 2018-05-17 2018-09-11 中国电子科技集团公司第五十四研究所 一种基于转发的双向时间比对测量装置和方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1710908A (zh) * 2005-07-14 2005-12-21 广东省电信有限公司研究院 基于设备互联协议组的双向传递时间信息的方法
US20110243055A1 (en) * 2010-03-31 2011-10-06 Siemens Aktiengesellschaft Method and Apparatus for Packet Aggregation Transmission
CN104717014A (zh) * 2013-12-13 2015-06-17 中兴通讯股份有限公司 一种测量光传送网设备传输时延的方法及源otn设备
CN109005557A (zh) * 2018-09-26 2018-12-14 南京中兴新软件有限责任公司 一种时延对称性测量方法、装置和系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111880726A (zh) * 2020-06-19 2020-11-03 浙江工商大学 一种提升cnfet缓存性能的方法
CN111880726B (zh) * 2020-06-19 2022-05-10 浙江工商大学 一种提升cnfet缓存性能的方法

Also Published As

Publication number Publication date
CN109005557B (zh) 2021-12-07
CN109005557A (zh) 2018-12-14

Similar Documents

Publication Publication Date Title
WO2020063593A1 (zh) 一种时延对称性测量方法、装置和系统
US11824636B2 (en) Method and apparatus for sending and receiving clock synchronization packet
CN109600188B (zh) 数据传输方法、传输设备和传输系统
US10404605B2 (en) Packet processing method, device and computer storage medium
WO2019071870A1 (zh) 光网络中数据传输方法及光网络设备
WO2019084732A1 (zh) 时钟同步的方法和装置
KR102383297B1 (ko) 서비스 주파수를 투명하게 전송하기 위한 방법 및 디바이스
CN107438028A (zh) 一种客户业务处理的方法和设备
WO2009071029A1 (fr) Système et procédé de synchronisation d'informations de temps et équipement associé
WO2020038424A1 (zh) 数据包的传输方法、装置、存储介质及电子装置
US6731654B1 (en) Communication system overhead channel
US20200259734A1 (en) Method for obtaining target transmission route, related device, and system
WO2020133897A1 (zh) 运营维护管理信息处理方法和装置
WO2022027666A1 (zh) 一种时间同步方法及装置
WO2019100982A1 (zh) 数据传输方法和设备
WO2023109424A1 (zh) 一种数据传输的方法以及相关装置
US20230291537A1 (en) Network Synchronization Method, Apparatus, Device, and System, and Readable Storage Medium
EP3813281B1 (en) Method for receiving code block stream, method for sending code block stream and communication apparatus
US11902172B2 (en) Device and method for transferring identification and/or data flow control information between devices
WO2020248865A1 (zh) 控制字的传输方法、装置和计算机可读存储介质
CN106911545B (zh) 一种通过以太网传输st_bus数据的方法及装置
WO2021073570A1 (zh) 通信方法、装置及系统
CN117938292A (zh) Ptp报文处理系统、方法和电子设备
CN116963171A (zh) 移动通信系统、信息交互方法、网元和确定性网络系统
Liu et al. Design and Implementation of the LAPS Protocol Mapper in the Military Ethernet Circuit

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19867995

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 13/08/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19867995

Country of ref document: EP

Kind code of ref document: A1