WO2014075260A1 - Time delay compensation method and apparatus - Google Patents

Time delay compensation method and apparatus Download PDF

Info

Publication number
WO2014075260A1
WO2014075260A1 PCT/CN2012/084662 CN2012084662W WO2014075260A1 WO 2014075260 A1 WO2014075260 A1 WO 2014075260A1 CN 2012084662 W CN2012084662 W CN 2012084662W WO 2014075260 A1 WO2014075260 A1 WO 2014075260A1
Authority
WO
WIPO (PCT)
Prior art keywords
path
delay
service
full
primary
Prior art date
Application number
PCT/CN2012/084662
Other languages
French (fr)
Chinese (zh)
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 华为技术有限公司
Priority to CN201280001997.1A priority Critical patent/CN103299582B/en
Priority to PCT/CN2012/084662 priority patent/WO2014075260A1/en
Publication of WO2014075260A1 publication Critical patent/WO2014075260A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/10Distribution of clock signals, e.g. skew
    • 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 present invention relates to the field of communications technologies, and in particular, to the field of service transmission technologies, and in particular, to a delay compensation method and apparatus. Background technique
  • the transmission of the service may be delayed.
  • the delay in the device is generated due to the processing of the device.
  • the transmission medium usually includes optical fiber, air, etc., and the transmission delay occurs when the service is transmitted between the devices through the transmission medium.
  • the device that performs the service transmission usually has a primary path and a backup path. Normally, the primary path carries the service. When the primary path is abnormal (for example, the primary path is interrupted), The standby path transmits the service.
  • the length of the primary and backup paths is different, for example, the length of the primary path is smaller than the length of the standby path, or the transmission capacity of the primary path is higher than the transmission capacity of the standby path, and so on, the transmission delay generated when the service is transmitted in the active and standby paths. It may be asymmetric. When the service has a high requirement for delay symmetry, the asymmetric transmission delay caused by the active/standby switchover may cause service interruption. Therefore, the transmission delay of the service on the primary and backup paths needs to be compensated. Ensure the symmetry of the transmission delay of the active and standby paths to ensure normal transmission of services. Summary of the invention
  • the invention provides a delay compensation method and device, which can compensate the transmission delay of the active and standby paths between the devices, ensure the symmetry of the delay of the active and standby paths, and ensure the normal transmission of the service.
  • a first aspect of the present invention provides a delay compensation method, which may include:
  • the time delay compensation is performed on the service transmitted by the primary path or the backup path between the first device and the second device by using the active/standby delay compensation value.
  • the calculation of the active/standby delay compensation value between the synchronized first device and the second device includes:
  • the service is looped back from the second device, and is transmitted to the first device through the receiving channel of the standby path.
  • the length of the transceiver channel of the primary path is the same, and the length of the transceiver channel of the standby path is the same.
  • the adopting the active/standby delay compensation value, the primary path or the preparation between the first device and the second device The service of the path transmission is compensated for delay, including:
  • the service transmitted in the primary path is delayed after the primary and secondary delay compensation values are output.
  • the outputting the service in the standby path after the delay of the active/standby delay compensation value including:
  • the outputting the service transmitted in the primary path after delaying the primary and secondary delay compensation values includes: setting a FIFO buffer at an exit of the primary path;
  • the traffic transmitted in the primary path is written to the FIFO buffer, and when the primary and backup delay compensation values are reached, the traffic is read from the FIFO buffer.
  • Calculating a full path delay compensation value between the first device and the second device where the full path between the first device and the second device includes: a path between the first device, and between the first device and the second device a primary path or a standby path, and a path within the second device;
  • the full path delay compensation value is used to delay the service of the full path transmission between the first device and the second device.
  • the calculating the full path delay compensation value between the first device and the second device includes:
  • the absolute value of the delay difference between the forward delay and the reverse delay of the full path is determined as a full path delay compensation value between the first device and the second device.
  • the using the full path delay compensation value, the full path transmission between the first device and the second device Business delay compensation including: Comparing a size of a forward path and a reverse delay of the full path between the first device and the second device; if the forward delay is greater than the reverse delay, inverting the full path The transmitted service is delayed after the full path delay compensation value is output;
  • the forward transmission traffic in the full path is delayed after the full path delay compensation value is output.
  • the step of delaying the reverse transmission of the service in the full path after the full path delay compensation value is output, including: Setting a FIFO buffer at a reverse exit of the full path;
  • a second aspect of the present invention provides a time delay compensation apparatus, which may include:
  • a synchronization module configured to perform time synchronization processing on the first device and the second device that perform service transmission; and an active/standby compensation calculation module, configured to calculate a primary and backup delay compensation value between the synchronized first device and the second device ;
  • the active/standby compensation module is configured to perform delay compensation on the service transmitted by the primary path or the backup path between the first device and the second device by using the active/standby delay compensation value.
  • the active/standby compensation calculation module includes:
  • a primary transmission unit configured to initiate a transmission from the first device, and when the transmission channel of the primary path between the first device and the second device is transmitted to the second device, the service is looped back from the second device. Transmitting to the first device via the receiving channel of the primary path;
  • a primary delay calculation unit configured to calculate a path delay of the primary path according to a transmission time of the service in the primary path
  • a backup transmission unit configured to initiate a transmission from the first device, and when the transmission path of the backup path between the first device and the second device is transmitted to the second device, the service is looped back from the second device. Economics The receiving channel of the prepared path is transmitted to the first device;
  • a time delay calculation unit configured to calculate a path delay of the standby path according to a transmission time of the service in the standby path
  • an active/standby compensation determining unit configured to determine 1/2 of an absolute value of a path delay difference between the primary path and the standby path as a primary and secondary delay compensation value between the first device and the second device;
  • the length of the transceiver channel of the primary path is the same, and the length of the transceiver channel of the standby path is the same.
  • the active/standby compensation module includes:
  • a comparing unit configured to compare a path delay of the primary path and the standby path between the first device and the second device
  • an active/standby compensation unit configured to: after the path delay of the primary path is greater than the path delay of the standby path, delay the service transmitted in the standby path by delaying the primary and secondary delay compensation values; or The compensation unit is configured to: if the path delay of the standby path is greater than the path delay of the primary path, delay the service transmitted in the primary path by delaying the primary and secondary delay compensation values.
  • the active/standby compensation unit is specifically configured to: if the path delay of the primary path is greater than the path delay of the standby path Providing a first-in first-out FIFO buffer at an exit of the standby path, and writing the traffic transmitted in the standby path to the FIFO buffer, when the primary and backup delay compensation values are reached, from the FIFO The buffer reads the service; or,
  • a path delay of the standby path is greater than a path delay of the primary path, setting a FIFO buffer at an exit of the primary path, and writing a service transmitted in the primary path to the FIFO buffer And when the primary and backup delay compensation values are reached, the service is read from the FIFO buffer.
  • the first feasible implementation manner of the second aspect, the second feasible implementation manner of the second aspect, or the third feasible implementation manner of the second aspect, in the fourth feasible implementation manner further includes:
  • a full compensation calculation module configured to calculate a full path delay compensation value between the first device and the second device, where the full path between the first device and the second device includes: a path within the first device, and a first device a primary path or a secondary path with the second device, and a path within the second device;
  • a full compensation module configured to use the full path delay compensation value, for the first device and the second device
  • the inter-transmission service is compensated for delay.
  • the full compensation calculation module includes:
  • a forward processing unit configured to forward a service along a full path between the first device and the second device, and encapsulate the service at a forward entrance of the full path, where the encapsulated service includes Forward traffic time information of the service reaching the forward entrance; obtaining forward exit time information that the service reaches the forward exit of the full path, and the service at the forward exit Decapsulating, extracting the forward entry time information;
  • a forward delay calculation unit configured to calculate a forward delay of the full path according to the forward entry time information and the forward exit time information
  • a reverse processing unit configured to reverse the service along the full path between the first device and the second device, and encapsulate the service at the reverse entry of the full path, where the encapsulated service includes The reverse entry time information of the service reaching the reverse entry and the forward delay of the full path; obtaining the reverse exit time information of the service reaching the reverse exit of the full path, and Decapsulating the service at the reverse egress, extracting the reverse entry time information and a forward delay of the full path;
  • a reverse delay calculation unit configured to calculate a reverse delay of the full path according to the reverse entry time information and reverse exit time information
  • the total compensation determining unit is configured to determine an absolute value of the delay difference between the forward delay and the reverse delay of the full path as a full path delay compensation value between the first device and the second device.
  • the full compensation module includes:
  • a comparing unit configured to compare a forward delay and a reverse delay of the full path between the first device and the second device
  • a full compensation unit configured to: if the forward delay is greater than the reverse delay, delay the service of the reverse transmission in the full path after the full path delay compensation value; or, if If the reverse delay is greater than the forward delay, the forward transmission service in the full path is delayed after the full path delay compensation value is output.
  • the full compensation unit is specifically configured to: if the forward delay is greater than the reverse delay, Full path Setting a FIFO buffer at the reverse exit, writing the reverse-transferred traffic in the full path to the FIFO buffer, and reading the FIFO buffer when the full-path delay compensation value is reached Business; or,
  • a third aspect of the invention provides a computer storage medium, the computer storage medium storing a program, the program comprising all or part of the steps of the method of the first aspect described above.
  • a fourth aspect of the present invention provides another delay compensation apparatus, which may include a transmitter, a receiver, and a processor; wherein the processor performs the following steps:
  • the time delay compensation is performed on the service transmitted by the primary path or the backup path between the first device and the second device by using the active/standby delay compensation value.
  • the processor specifically includes the following steps:
  • the receiving channel of the primary path is transmitted to the first device;
  • the processor performs the using the active/standby delay compensation value between the first device and the second device
  • the step of performing the delay compensation for the service transmitted by the primary path or the backup path includes the following steps:
  • the service transmitted in the primary path is delayed after the primary and secondary delay compensation values are output.
  • the processor performs the output after the service transmitted in the backup path is delayed by the active/standby delay compensation value
  • the steps include the following steps:
  • the processor When the processor performs the step of outputting the service transmitted in the primary path after delaying the primary and backup delay compensation values, the processor specifically includes the following steps:
  • the traffic transmitted in the primary path is written to the FIFO buffer, and when the primary and backup delay compensation values are reached, the traffic is read from the FIFO buffer.
  • the first feasible implementation of the first aspect, the second possible implementation of the first aspect, or the third possible implementation of the first aspect, in a fourth possible implementation manner And performing, by the processor, the step of performing delay compensation on the service transmitted by the primary path or the backup path between the first device and the second device by using the active/standby delay compensation value, and performing the following steps: Calculating a full path delay compensation value between the first device and the second device, where the full path between the first device and the second device includes: a path between the first device, and between the first device and the second device a primary path or a standby path, and a path within the second device;
  • the time delay compensation is performed on the service transmitted between the first device and the second device by using the full path delay compensation value.
  • the processor is configured to perform the step of calculating a full path delay compensation value between the first device and the second device , Specifically, the following steps are included:
  • the absolute value of the delay difference between the forward delay and the reverse delay of the full path is determined as a full path delay compensation value between the first device and the second device.
  • the processor performs the using the full path delay compensation value, between the first device and the second device
  • the following steps are specifically included:
  • the forward transmission traffic in the full path is delayed after the full path delay compensation value is output.
  • the processor performs the step of delaying the reverse transmission of the full path in the full path delay compensation value After the step of outputting, the steps include the following steps:
  • the step of the processor performing the step of outputting the forward-transferred service in the full path after delaying the full-path delay compensation value includes the following steps:
  • the traffic forwarded in the full path is written to the FIFO buffer, and when the full path delay compensation value is reached, the traffic is read from the FIFO buffer.
  • the time delay compensation method of the present invention first performs time synchronization on the device for performing service transmission to ensure the accuracy of the delay compensation; on the basis of time synchronization, calculates the active/standby delay compensation value between the devices, and adopts the main
  • the time delay compensation value compensates for the delay of the service transmitted by the primary/secondary path between devices, ensuring the symmetry of the delay of the active and standby paths and ensuring the normal transmission of services.
  • FIG. 1 is a flowchart of a method for delay compensation according to an embodiment of the present invention
  • FIG. 2 is a flow chart of the embodiment of step S102 shown in Figure 1;
  • FIG. 3 is a schematic diagram of delay compensation of active and standby paths according to an embodiment of the present invention.
  • FIG 4 is a flow chart showing an embodiment of the step S103 shown in Figure 1;
  • FIG. 5 is a flowchart of another method for delay compensation according to an embodiment of the present invention.
  • Figure 6 is a flow chart showing an embodiment of the step S204 shown in Figure 5;
  • FIG. 7 is a schematic diagram of full path delay compensation according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a packaged service according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a time frame format according to an embodiment of the present invention.
  • Figure 10 is a flow chart showing an embodiment of the step S205 shown in Figure 5;
  • FIG. 11 is a schematic structural diagram of a time delay compensation apparatus according to an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a master/backup compensation calculation module according to an embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of a master/backup compensation module according to an embodiment of the present disclosure
  • FIG. 14 is a schematic structural diagram of another time delay compensation apparatus according to an embodiment of the present invention
  • FIG. 15 is a schematic structural diagram of a full compensation calculation module according to an embodiment of the present invention
  • 16 is a schematic structural diagram of a full compensation module according to an embodiment of the present invention.
  • FIG. 17 is a schematic structural diagram of still another delay compensation apparatus according to an embodiment of the present invention. detailed description
  • the delay compensation scheme of the embodiment of the present invention is applicable to various communication systems capable of carrying services, such as: WDM (Wavelength Division Multiplexing) communication system, OFDM (Orthogonal Frequency Division Multiplexing) ) Communication systems, etc.
  • the first device is any device in the communication system; the second device is any device in the communication system that performs business interaction with the first device except the first device.
  • a primary path and a backup path are usually provided between the first device and the second device.
  • the full path between the first device and the second device includes: a path within the first device, a primary path or a standby path between the first device and the second device, and a path within the second device.
  • the length of the transmission path of the primary path between the first device and the second device is the same, for example, in the WDM communication system, the first WDM device and the second WDM device are received.
  • the length of the fiber in the direction is equal to the length of the fiber in the direction of the transmission, so that the transmission delay of the transmission path of the primary path is equal.
  • FIG. 1 is a flowchart of a method for compensating for a delay according to an embodiment of the present invention; the method may include the following steps S101 to S103.
  • time synchronization technologies such as 1588 clock synchronization technology and NTP (Network Time Protocol) synchronization technology can be used to input the first device and the second device for performing service transmission.
  • NTP Network Time Protocol
  • Line synchronization processing By performing synchronization processing between devices for service transmission, higher calculation accuracy of transmission delay can be obtained, thereby performing more accurate delay compensation.
  • the delay of the active/standby path may be different due to the difference between the active and standby paths of the first device and the second device. Therefore, the delay of the primary or backup path is required to ensure the consistency of the delay between the active and standby paths. .
  • the active/standby delay compensation value between the synchronized first device and the second device is calculated to implement delay compensation of the primary/secondary path.
  • step S102 perform delay compensation on the service transmitted by the primary path or the backup path between the first device and the second device by using the active/standby delay compensation value.
  • the primary and secondary delay compensation values are used to compensate the delay of the service transmitted by the primary or secondary path between the first device and the second device.
  • FIG. 2 it is a flowchart of the embodiment of step S102 shown in FIG. 1.
  • the step S102 may specifically include the following steps S1201-S1205.
  • 51201 Initiate transmission of the service from the first device, and when the transmission is performed to the second device by using the sending path of the primary path between the first device and the second device, the service is looped back from the second device by the primary device.
  • the receiving channel of the path is transmitted to the first device;
  • FIG. 3 is a schematic diagram of delay compensation of active and standby paths according to an embodiment of the present invention.
  • the AC is the originating channel of the primary path
  • A'C' is the receiving channel of the primary path
  • BD is the outgoing channel of the standby path
  • B and D are the receiving channels of the standby path.
  • the service is transmitted from point A of the first device, transmitted to the point C of the second device by the AC, and then looped back to C from C, and transmitted to the A of the first device through C, A.
  • the transmission route of the service is: ACC, -A, that is, the service is only transmitted in the main path.
  • the service includes 10 frames of data
  • the frame header identifier of the frame data indicates the sequence number of the frame data.
  • the frame data with the frame header identifier of 1 indicates the first frame data of the service
  • the frame data with the frame header identifier of 2 indicates the frame data.
  • the second frame data of the service, and so on, the frame data with the frame header identifier of 10 represents the tail frame data of the service.
  • the transmission time of each frame of data is 0.5 s, and the frame length of each frame of data is 512 bytes.
  • the frame data transmitted at this time is the first frame data, and the frame header identifier is 1; when the service loops back to A, when the first frame data reaches A, the sixth frame of the service is reached.
  • the data is transmitted from point A, and has been transmitted 128 bytes.
  • the calculation of the path delay by using the multi-frame framing method is only an example, and other calculation manners may also be used, for example: the time when the trial service initiates transmission from point A, and the time of loopback to A, point The time difference between the two, the transmission time of the service in the main path is obtained, thereby determining the path delay; and so on.
  • the service is initiated from the first device, and the service is looped back from the second device to the second device by using The receiving channel of the path is transmitted to the first device;
  • the service is initiated from point B of the first device, transmitted to the point D of the second device by the BD, and then returned from D to D, and then transmitted to the first through D, B.
  • B of a device, point; then the transmission route of the service is: BDD, -B, that is, the service is only transmitted in the standby path.
  • S1205 Determine 1/2 of an absolute value of a path delay difference between the primary path and the standby path as a primary and secondary delay compensation value between the first device and the second device;
  • the transmission channel of the path is not used at the same time, for example, when the service is transmitted from the first device to the second device, the transmission channel of the primary path is transmitted to the second device.
  • step S103 it is a flowchart of the embodiment of step S103 shown in FIG. 1.
  • the step S103 may specifically include the following steps S1301 - S1303.
  • the service transmitted in the standby path is delayed after the active/standby delay compensation value is output;
  • a FIFO buffer may be disposed at an exit of the standby path.
  • a FIFO buffer may be set at point D or point B; the service transmitted in the standby path is written.
  • the FIFO buffer reads the service from the FIFO buffer when the master/slave delay compensation value is reached.
  • the service transmitted in the primary path is delayed by the primary and secondary delay compensation values.
  • a FIFO buffer may be disposed at an exit of the main path.
  • a FIFO buffer may be set at point C or A; the service transmitted in the main path is written.
  • the FIFO buffer reads the service from the FIFO buffer when the master/slave delay compensation value is reached.
  • the time delay compensation method of the present invention first performs time synchronization on the device for performing service transmission to ensure the accuracy of delay compensation; on the basis of time synchronization, the active/standby time between the computing devices is calculated.
  • the delay value is used, and the delay of the service transmitted by the primary/secondary path between devices is compensated by the active/standby delay compensation value to ensure the symmetry of the delay of the active and standby paths.
  • FIG. 5 it is a flowchart of another method for delay compensation according to an embodiment of the present invention; the method may include the following steps S201 to S205.
  • step S201 to step S203 can be referred to step S101 to step S103 shown in FIG. 1 , and details are not described herein.
  • the full path between the first device and the second device includes: a path in the first device, a primary path or a standby path between the first device and the second device, and a path in the second device. Due to the processing of the service between the first device and the second device, the transmission of the service within the device also generates a transmission delay. When the entire path between the first device and the second device is used for service transmission, the full path needs to be performed. Delay compensation to ensure the consistency of the uplink and downlink delays of the full path.
  • FIG. 6 is a flowchart of an embodiment of step S204 shown in FIG. 5.
  • the step S204 may specifically include the following steps S2401-S2409.
  • FIG. 7 is a schematic diagram of full path delay compensation according to an embodiment of the present invention.
  • the forward and reverse directions of the path are relative concepts.
  • EACF is the forward path of the full path
  • F, -C, -A, -E the reverse path of the full path Path
  • F, -C, -A, -E are the forward path of the full path
  • EACF is the reverse path of the full path.
  • E-A-C-F is the forward path of the full path
  • F, -C, -A, and -E are the reverse path of the full path.
  • the service is forwarded along the E-A-C-F.
  • E is the forward entrance of the full path
  • F is the forward exit of the full path.
  • 52402 Encapsulate the service at a forward entrance of the full path, where the encapsulated service includes forward entry time information that the service reaches the forward entrance;
  • FIG. 8 is a schematic diagram of a packaged service according to an embodiment of the present invention.
  • the service at the forward entrance is encapsulated with the purpose of inserting entry time information for measuring the delay.
  • the encapsulated service includes the following fields: frame header, entry time information, and back to the peer end. Deferred, reserved bytes and services.
  • the "frame header” field is used to identify the frame header of the service, not the frame header of the frame data in the service.
  • FIG. 9 for a schematic diagram of the time frame format provided by the embodiment of the present invention;
  • the "Entry Time Information" field and the "Return Peer Delay” field in the service can be defined by the frame format as shown in Figure 9.
  • the service is reversely transmitted along the entire path between the first device and the second device; in this step, the service is reversely transmitted along the F, -C, -A, and -E shown in FIG. 7, F, For the reverse entry of the full path, E' is the reverse exit of the full path.
  • Encapsulate the service at a reverse entry of the full path where the encapsulated service includes reverse entry time information that the service arrives at the reverse entry and a forward time of the full path Delay
  • Encapsulating the service at the reverse entrance the purpose of which is to insert the entry time information for measuring the delay and the back-to-back delay (ie, the forward delay).
  • the entry time information for measuring the delay and the back-to-back delay ie, the forward delay.
  • the reverse entry time information t 3 at which the service arrives at the forward entry F is inserted in the field of "entry time information", and Insert a forward delay T d in the field of "Return to peer delay".
  • 52407 Obtain reverse exit time information that the service reaches the reverse exit of the full path, and decapsulate the service at the reverse exit, extract the reverse entry time information, and Positive delay of the full path;
  • the forward exit time information t 4 is obtained , and the service is decapsulated, and the forward entry time information t 3 is extracted from the field of the "entry time information", from " Back The forward delay T d is extracted from the field of the peer delay.
  • this step determines ⁇ 1 as the full path delay compensation value between the first device and the second device.
  • step S2401 - step S2409 is described by taking the schematic diagram shown in FIG. 7 as an example, wherein the full path is: a path in the first device, a main path between the first device and the second device, and a second device
  • the internal path can be ensured by the embodiment shown in FIG. 1 to FIG. 4, and the symmetry of the active/standby path between the first device and the second device is ensured, so when the full path is: the first device path, the second device and For a backup path between the second device and the path in the second device, refer to the similar analysis in the above steps S2401 to S2409, and details are not described herein.
  • FIG. 10 it is a flowchart of the embodiment of step S205 shown in FIG. 5.
  • the step S205 may specifically include the following steps S2501-step S2503.
  • the full path delay compensation needs to compensate the delay of the transmission path with a small path delay. Therefore, this step compares the magnitude of the forward delay T d and the reverse delay T d ', if T d is greater than T d ', Therefore, delay compensation is needed for the reverse path of the full path; if T d is less than T d ', delay compensation is needed for the forward path of the full path.
  • a FIFO buffer may be disposed at a reverse exit of the full path; a service that is reversely transmitted in the full path is written into the FIFO buffer, when the full path delay compensation value is reached Reading the service from the FIFO buffer.
  • a FIFO buffer may be disposed at a forward exit of the full path; a service that is forwardly transmitted in the full path is written into the FIFO buffer, and when the full path delay compensation value is reached, The service is read from the FIFO buffer.
  • the time delay compensation method of the present invention first performs time synchronization on the device for performing service transmission to ensure the accuracy of delay compensation; on the basis of time synchronization, the active/standby time between the computing devices is calculated.
  • the delay value is used, and the delay of the service transmitted by the primary/secondary path between the devices is compensated by the active/standby delay compensation value to ensure the symmetry of the delay of the active and standby paths. It can also realize the symmetry of the upper and lower delays of the full path between devices to ensure the normal transmission of services.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes some or all of the steps of the delay compensation method described in the foregoing method embodiments.
  • a delay compensation device according to an embodiment of the present invention will be described in detail below with reference to FIG. 11 to FIG. 17. It should be noted that the following device may be applied to the foregoing method embodiments to provide an embodiment of the present invention. Time delay compensation method.
  • FIG. 11 is a schematic structural diagram of a time delay compensation apparatus according to an embodiment of the present invention.
  • the apparatus may include: a synchronization module 101, an active/standby compensation calculation module 102, and an active/standby compensation module 103.
  • the synchronization module 101 is configured to perform time synchronization processing on the first device and the second device that perform service transmission;
  • the synchronization module 101 can perform synchronization processing on the first device and the second device that perform service transmission, such as the 1588 clock synchronization technology and the NTP synchronization technology. By performing synchronization processing between the devices transmitted by the service, higher calculation accuracy of the transmission delay can be obtained, thereby performing more accurate delay compensation.
  • the active/standby compensation calculation module 102 is configured to calculate a master/slave delay compensation value between the synchronized first device and the second device;
  • the delay of the active/standby path may be different due to the difference between the active and standby paths of the first device and the second device. Therefore, the delay of the primary or backup path is required to ensure the consistency of the delay between the active and standby paths. .
  • the active/standby compensation calculation module 101 calculates a synchronization between the first device and the second device. The active and standby delay compensation values are used to implement delay compensation for the active/standby path.
  • the active/standby compensation module 103 is configured to perform time delay compensation on the service transmitted by the primary path or the backup path between the first device and the second device by using the active/standby delay compensation value.
  • the active/standby compensation module 103 uses the active/standby delay compensation value to delay the service transmitted by the primary or secondary path between the first device and the second device to ensure the consistency of the delay between the active and standby paths.
  • FIG. 12 is a schematic structural diagram of an active/standby compensation calculation module according to an embodiment of the present invention; the active/standby compensation calculation module 102 may include: a primary transmission unit 1201, a primary delay calculation unit 1202, a backup transmission unit 1203, and a standby time.
  • the primary transmission unit 1201 is configured to initiate a transmission from the first device, and when the transmission channel of the primary path between the first device and the second device is transmitted to the second device, the service is looped back from the second device. Transmitting to the first device via the receiving channel of the primary path;
  • the main delay calculation unit 1202 is configured to calculate a path delay of the primary path according to a transmission time of the service in the primary path.
  • the backup transmission unit 1203 is configured to initiate a transmission from the first device, and when the transmission path of the backup path between the first device and the second device is transmitted to the second device, the service is looped back from the second device. Transmitting to the first device via the receiving channel of the standby path;
  • the backup delay calculation unit 1204 is configured to calculate a path delay of the standby path according to a transmission time of the service in the backup path.
  • FIG. 13 is a schematic structural diagram of a master-slave compensation module according to an embodiment of the present invention; the master-slave compensation module 103 may include: a comparison unit 1301 and a master-slave compensation unit 1302.
  • the comparing unit 1301 is configured to compare a size of a path delay between the primary path and the standby path between the first device and the second device.
  • the active/standby delay compensation is to delay the path with a small path delay. Therefore, the comparing unit 1301 compares the path delay of the primary path with the path delay of the standby path, and if the path delay of the primary path If the path delay of the backup path is greater than the path delay of the standby path, if the path delay of the primary path is smaller than the path delay of the standby path, delay compensation is required for the primary path.
  • the active/standby compensation unit 1302 is configured to: after the path delay of the primary path is greater than the path delay of the standby path, delay the service transmitted in the standby path by delaying the primary and secondary delay compensation values; or And a compensation unit, configured to: if the path delay of the standby path is greater than the path delay of the primary path, delay the service transmitted in the primary path by delaying the primary and secondary delay compensation values.
  • the active/standby compensation unit 1302 may set a FIFO buffer at an exit of a path that needs to perform delay compensation, and write the traffic transmitted in the path to the FIFO buffer, when the active/standby delay compensation is reached. In the case of the value, the service is read out from the FIFO buffer to implement delaying the output of the active and standby delay compensation values, and the active/standby delay compensation is implemented.
  • FIG. 14 is a schematic structural diagram of another delay compensation device according to an embodiment of the present invention; the device may include: a synchronization module 101, a master compensation calculation module 102, a master compensation module 103, and a full compensation calculation module 104. And full compensation module 105.
  • the synchronization module 101, the active/standby compensation calculation module 102, and the active/standby compensation module 103 reference may be made to the related description in the embodiment shown in FIG. 11 to FIG. 13, which is not described herein.
  • the full compensation calculation module 104 is configured to calculate a full path delay compensation value between the first device and the second device, where the full path between the first device and the second device includes: a path within the first device, and a first a primary path or a secondary path between the device and the second device, and a path within the second device;
  • the transmission of the service within the device also generates a transmission delay.
  • the full path needs to be performed. Delay compensation to ensure the consistency of the uplink and downlink delays of the full path.
  • the full compensation module 105 is configured to perform time delay compensation on the service transmitted between the first device and the second device by using the full path delay compensation value.
  • the full compensation module 105 uses the full path delay compensation value to delay the service of the full path transmission between the first device and the second device, and ensures the consistency of the uplink and downlink delays of the entire path.
  • FIG. 15 is a schematic structural diagram of a full compensation calculation module according to an embodiment of the present invention; the full compensation calculation module 104 may include: a forward processing unit 1401, a forward delay calculation unit 1402, a reverse processing unit 1403, and a reverse The delay calculation unit 1404 and the full compensation determination unit 1405.
  • the forward processing unit 1401 is configured to forward the service along the entire path between the first device and the second device, and encapsulate the service at the forward entrance of the full path, where the service is encapsulated. Included with the forward entry time information that the service arrives at the forward entrance; obtain the forward exit time information that the service reaches the forward exit of the full path, and at the forward exit The service performs decapsulation, and extracts the forward entry time information;
  • the forward delay calculation unit 1402 is configured to calculate a forward delay of the full path according to the forward entry time information and the forward exit time information;
  • the reverse processing unit 1403 is configured to perform reverse transmission of the service along the entire path between the first device and the second device, and encapsulate the service at the reverse entry of the full path, in the encapsulated service. And including a reverse entry time information of the service reaching the reverse entry and a forward delay of the full path; obtaining reverse exit time information that the service reaches the reverse exit of the full path, and Decapsulating the service at the reverse exit, extracting the reverse entry time information and a forward delay of the full path;
  • the reverse delay calculation unit 1404 is configured to calculate a reverse delay of the full path according to the reverse entry time information and the reverse exit time information;
  • the full compensation determining unit 1405 is configured to determine an absolute value of the delay difference between the forward delay and the reverse delay of the full path as a full path delay compensation value between the first device and the second device.
  • FIG. 16 a schematic structural diagram of a full compensation module according to an embodiment of the present invention; the full compensation module 105 may include: a comparison unit 1501 and a full compensation unit 1502.
  • the comparing unit 1501 is configured to compare a size of a forward delay and a reverse delay of the full path between the first device and the second device;
  • the full-path delay compensation needs to compensate the delay of the transmission path with a small path delay. Therefore, this step compares the forward delay and the reverse delay. If the forward delay is greater than the reverse delay, you need to Delay compensation is performed on the reverse path of the full path; if the forward delay is less than the reverse delay, delay compensation of the forward path of the full path is required.
  • a full compensation unit 1502 configured to delay, after the forward delay is greater than the reverse delay, the service that is reversely transmitted in the full path is delayed after the full path delay compensation value; or, if When the reverse delay is greater than the forward delay, the forward transmission service in the full path is delayed after the full path delay compensation value is output.
  • the full compensation unit 1502 may set a FIFO buffer at an exit of a path that requires delay compensation, and write the traffic transmitted in the path to the FIFO buffer, when the full path is reached.
  • the service is read out from the FIFO buffer to implement output after delaying the full path delay compensation value, and the active/standby delay compensation is implemented.
  • time delay compensation device shown in FIG. 11 to FIG. 16 can be specifically implemented according to the method in the method embodiment shown in FIG. 1 to FIG. 15 , and the specific implementation process can refer to the foregoing method.
  • FIG. 17 is a schematic structural diagram of still another time delay compensation apparatus according to an embodiment of the present invention.
  • the apparatus may include: a transmitter, a receiver, and a processor; wherein the processor performs the following steps: Transmitting the first device and the second device for time synchronization processing;
  • the time delay compensation is performed on the service transmitted by the primary path or the backup path between the first device and the second device by using the active/standby delay compensation value.
  • the step of the processor performing the step of calculating the active/standby delay compensation value between the first device and the second device after the synchronization includes the following steps:
  • the receiving channel of the primary path is transmitted to the first device;
  • the processor When the processor performs the step of performing time delay compensation on the service transmitted by the primary path or the backup path between the first device and the second device by using the active/standby delay compensation value, the processor specifically includes the following steps: a path delay of the primary path and the standby path between the first device and the second device; if the path delay of the primary path is greater than the path delay of the standby path, the standby path is The service transmitted in the delay is output after delaying the primary and secondary delay compensation values;
  • the service transmitted in the primary path is delayed after the primary and secondary delay compensation values are output.
  • the processor When the processor performs the step of outputting the service transmitted in the backup path after delaying the primary and backup delay compensation values, the processor specifically includes the following steps:
  • the processor When the processor performs the step of outputting the service transmitted in the primary path after delaying the primary and backup delay compensation values, the processor specifically includes the following steps:
  • the traffic transmitted in the primary path is written to the FIFO buffer, and when the primary and backup delay compensation values are reached, the traffic is read from the FIFO buffer.
  • a full path delay compensation value between the first device and the second device includes: a path within the first device, and a master between the first device and the second device a path or a standby path, and a path within the second device;
  • the time delay compensation is performed on the service transmitted between the first device and the second device by using the full path delay compensation value.
  • the method specifically includes the following steps:
  • the absolute value of the delay difference between the forward delay and the reverse delay of the full path is determined as a full path delay compensation value between the first device and the second device.
  • the processor When the processor performs the step of performing time delay compensation on the service transmitted between the first device and the second device by using the full path delay compensation value, the processor specifically includes the following steps:
  • the forward transmission traffic in the full path is delayed after the full path delay compensation value is output.
  • the processor When the processor performs the step of outputting the reverse-transferred service in the full path after delaying the full-path delay compensation value, the processor specifically includes the following steps:
  • the step of the processor performing the step of outputting the forward-transferred service in the full path after delaying the full-path delay compensation value includes the following steps:
  • the time delay compensation method of the present invention first performs time synchronization on the device for performing service transmission to ensure the accuracy of delay compensation; on the basis of time synchronization, the active/standby time between the computing devices is calculated.
  • the delay value is used, and the delay of the service transmitted by the primary/secondary path between the devices is compensated by the active/standby delay compensation value to ensure the symmetry of the delay of the active and standby paths. It can also realize the symmetry of the upper and lower delays of the full path between devices to ensure the normal transmission of services.

Abstract

Disclosed are a time delay compensation method and apparatus. The method may comprise: performing time synchronization processing on a first device and a second device which perform service transmission; calculating main and standby time delay compensation values between the synchronized first device and second device; and performing time delay compensation on a service transmitted by a main path or a standby path between the first device and the second device by using the main and standby delay compensation values. By adopting the present invention, a transmission time delay of main and standby paths between devices can be compensated, thereby guaranteeing the symmetry of the time delay of the main and standby paths, and guaranteeing the normal transmission of services.

Description

一种时延补偿方法及装置 技术领域  Delay compensation method and device
本发明涉及通信技术领域, 具体涉及业务传输技术领域, 尤其涉及一种时 延补偿方法及装置。 背景技术  The present invention relates to the field of communications technologies, and in particular, to the field of service transmission technologies, and in particular, to a delay compensation method and apparatus. Background technique
业务在传输过程中, 由于传输介质和设备处理的原因, 会导致业务的传输 产生时延。 业务在设备内传输时, 由于设备的处理, 会产生设备内时延; 传输 介质通常包括光纤、 空气等, 业务通过传输介质在设备之间进行传输时会产生 传输时延。 为了保证业务的正常传输过程, 进行业务传输的设备之间通常设有 主路径和备路径, 正常情况下, 由主路径对业务进行传输; 当主路径异常 (例 如: 主路径被中断) 时, 由备路径对业务进行传输。 由于主备路径的差异, 例 如: 主路径的长度小于备路径的长度, 或主路径的传输能力高于备路径的传输 能力, 等等, 业务在主备路径中传输时所产生的传输时延可能是非对称的, 当 业务对时延对称性要求较高时, 主备倒换时产生的非对称传输时延可能导致业 务中断; 因此, 需要对业务在主备路径的传输时延进行补偿, 以保证主备路径 的传输时延的对称性, 保证业务的正常传输。 发明内容  During the transmission process of the service, due to the processing of the transmission medium and the device, the transmission of the service may be delayed. When the service is transmitted in the device, the delay in the device is generated due to the processing of the device. The transmission medium usually includes optical fiber, air, etc., and the transmission delay occurs when the service is transmitted between the devices through the transmission medium. In order to ensure the normal transmission process of the service, the device that performs the service transmission usually has a primary path and a backup path. Normally, the primary path carries the service. When the primary path is abnormal (for example, the primary path is interrupted), The standby path transmits the service. The length of the primary and backup paths is different, for example, the length of the primary path is smaller than the length of the standby path, or the transmission capacity of the primary path is higher than the transmission capacity of the standby path, and so on, the transmission delay generated when the service is transmitted in the active and standby paths. It may be asymmetric. When the service has a high requirement for delay symmetry, the asymmetric transmission delay caused by the active/standby switchover may cause service interruption. Therefore, the transmission delay of the service on the primary and backup paths needs to be compensated. Ensure the symmetry of the transmission delay of the active and standby paths to ensure normal transmission of services. Summary of the invention
本发明提供一种时延补偿方法及装置, 可对设备之间的主备路径的传输时 延进行补偿, 保证主备路径的时延的对称性, 保证业务的正常传输。  The invention provides a delay compensation method and device, which can compensate the transmission delay of the active and standby paths between the devices, ensure the symmetry of the delay of the active and standby paths, and ensure the normal transmission of the service.
本发明第一方面提供了一种时延补偿方法, 可包括:  A first aspect of the present invention provides a delay compensation method, which may include:
对进行业务传输的第一设备与第二设备进行时间同步处理;  Performing time synchronization processing on the first device and the second device that perform service transmission;
计算同步后的第一设备与第二设备之间的主备时延补偿值;  Calculating a primary and secondary delay compensation value between the synchronized first device and the second device;
采用所述主备时延补偿值,对第一设备与第二设备之间的主路径或备路径传 输的业务进行时延补偿。  The time delay compensation is performed on the service transmitted by the primary path or the backup path between the first device and the second device by using the active/standby delay compensation value.
在第一种可行的实施方式中, 所述计算同步后的第一设备与第二设备之间 的主备时延补偿值, 包括:  In the first feasible implementation manner, the calculation of the active/standby delay compensation value between the synchronized first device and the second device includes:
将业务从第一设备发起传输, 经第一设备与第二设备之间的主路径的发通 道传输至第二设备时, 再将所述业务从第二设备环回, 经所述主路径的收通道 传输至第一设备; Transmitting the service from the first device, and transmitting the primary path between the first device and the second device When the channel is transmitted to the second device, the service is looped back from the second device, and is transmitted to the first device through the receiving channel of the primary path;
根据所述业务在所述主路径中的传输时间, 计算所述主路径的路径时延; 将业务从第一设备发起传输, 经第一设备与第二设备之间的备路径的发通 道传输至第二设备时, 再将所述业务从第二设备环回, 经所述备路径的收通道 传输至第一设备;  Calculating a path delay of the primary path according to a transmission time of the service in the primary path; transmitting a service from the first device, and transmitting the path through the backup path between the first device and the second device When the device is connected to the second device, the service is looped back from the second device, and is transmitted to the first device through the receiving channel of the standby path.
根据所述业务在所述备路径中的传输时间, 计算所述备路径的路径时延; 将所述主路径与所述备路径的路径时延差的绝对值的 1/2, 确定为第一设备 与第二设备之间的主备时延补偿值;  Calculating a path delay of the standby path according to a transmission time of the service in the standby path; determining, as a first half of an absolute value of a path delay difference between the primary path and the standby path, The active/standby delay compensation value between a device and the second device;
其中, 所述主路径的收发通道的长度相同, 所述备路径的收发通道的长度 相同。  The length of the transceiver channel of the primary path is the same, and the length of the transceiver channel of the standby path is the same.
结合第一方面的第一种可行的实施方式, 在第二种可行的实施方式中, 所 述采用所述主备时延补偿值, 对第一设备与第二设备之间的主路径或备路径传 输的业务进行时延补偿, 包括:  With reference to the first possible implementation manner of the first aspect, in the second feasible implementation manner, the adopting the active/standby delay compensation value, the primary path or the preparation between the first device and the second device The service of the path transmission is compensated for delay, including:
比较第一设备与第二设备之间的主路径与备路径的路径时延的大小; 如果所述主路径的路径时延大于所述备路径的路径时延, 则将所述备路径 中传输的业务延迟所述主备时延补偿值之后输出;  Comparing the size of the path delay between the primary path and the secondary path between the first device and the second device; if the path delay of the primary path is greater than the path delay of the standby path, transmitting the path in the standby path The service is delayed after the active/standby delay compensation value is output;
如果所述备路径的路径时延大于所述主路径的路径时延, 则将所述主路径 中传输的业务延迟所述主备时延补偿值之后输出。  If the path delay of the standby path is greater than the path delay of the primary path, the service transmitted in the primary path is delayed after the primary and secondary delay compensation values are output.
结合第一方面的第二种可行的实施方式, 在第三种可行的实施方式中, 所 述将所述备路径中传输的业务延迟所述主备时延补偿值之后输出, 包括:  With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner, the outputting the service in the standby path after the delay of the active/standby delay compensation value is performed, including:
在所述备路径的出口处设置 FIFO ( First Input First Output, 先入先出 )緩存 器;  Setting a FIFO (First Input First Output) buffer at an exit of the standby path;
将所述备路径中传输的业务写入所述 FIFO緩存器, 当到达所述主备时延补 偿值时, 从所述 FIFO緩存器读出所述业务;  Transmitting the traffic transmitted in the backup path to the FIFO buffer, and when the primary and backup delay compensation values are reached, reading the service from the FIFO buffer;
所述将所述主路径中传输的业务延迟所述主备时延补偿值之后输出, 包括: 在所述主路径的出口处设置 FIFO緩存器;  The outputting the service transmitted in the primary path after delaying the primary and secondary delay compensation values includes: setting a FIFO buffer at an exit of the primary path;
将所述主路径中传输的业务写入所述 FIFO緩存器, 当到达所述主备时延补 偿值时, 从所述 FIFO緩存器读出所述业务。  The traffic transmitted in the primary path is written to the FIFO buffer, and when the primary and backup delay compensation values are reached, the traffic is read from the FIFO buffer.
结合第一方面、 第一方面的第一种可行的实施方式、 第一方面的第二种可 行的实施方式或第一方面的第三种可行的实施方式, 在第四种可行的实施方式 中, 所述采用所述主备时延补偿值, 对第一设备与第二设备之间的主路径或备 路径传输的业务进行时延补偿之后, 还包括: Combining the first aspect, the first feasible implementation manner of the first aspect, the second The implementation of the line or the third possible implementation manner of the first aspect, in the fourth possible implementation manner, the using the active/standby delay compensation value, between the first device and the second device After the service transmitted by the primary path or the backup path is compensated for delay, it also includes:
计算第一设备与第二设备之间的全路径时延补偿值, 所述第一设备与第二 设备之间的全路径包括: 第一设备内路径、 第一设备与第二设备之间的主路径 或备路径, 以及第二设备内路径;  Calculating a full path delay compensation value between the first device and the second device, where the full path between the first device and the second device includes: a path between the first device, and between the first device and the second device a primary path or a standby path, and a path within the second device;
采用所述全路径时延补偿值, 对第一设备与第二设备之间的全路径传输的 业务进行时延补偿。  The full path delay compensation value is used to delay the service of the full path transmission between the first device and the second device.
结合第一方面的第四种可行的实施方式, 在第五种可行的实施方式中, 所 述计算第一设备与第二设备之间的全路径时延补偿值, 包括:  With reference to the fourth possible implementation manner of the first aspect, in the fifth possible implementation, the calculating the full path delay compensation value between the first device and the second device includes:
将业务沿第一设备与第二设备之间的全路径进行正向传输, 在所述全路径 的正向入口处对所述业务进行封装, 封装后的业务中包含所述业务到达所述正 向入口处的正向入口时间信息;  Forwarding the service along the full path between the first device and the second device, and encapsulating the service at the forward entrance of the full path, where the encapsulated service includes the service reaching the positive Forward entry time information to the entrance;
获取所述业务到达所述全路径的正向出口处的正向出口时间信息, 并在所 述正向出口处对所述业务进行解封装, 提取所述正向入口时间信息;  Obtaining the forward exit time information of the service reaching the forward exit of the full path, and decapsulating the service at the forward exit, extracting the forward entry time information;
根据所述正向入口时间信息与正向出口时间信息, 计算所述全路径的正向 时延;  Calculating a forward delay of the full path according to the forward entry time information and the forward exit time information;
将业务沿第一设备与第二设备之间的全路径进行反向传输, 在所述全路径 的反向入口处对所述业务进行封装, 封装后的业务中包含所述业务到达所述反 向入口处的反向入口时间信息以及所述全路径的正向时延;  Forwarding the service along the entire path between the first device and the second device, and encapsulating the service at the reverse entry of the full path, where the encapsulated service includes the service reaching the reverse Reverse entry time information to the entrance and forward delay of the full path;
获取所述业务到达所述全路径的反向出口处的反向出口时间信息, 并在所 述反向出口处对所述业务进行解封装, 提取所述反向入口时间信息及所述全路 径的正向时延;  Obtaining reverse exit time information that the service reaches the reverse exit of the full path, and decapsulating the service at the reverse exit, extracting the reverse entry time information and the full path Positive delay
根据所述反向入口时间信息与反向出口时间信息, 计算所述全路径的反向 时延;  Calculating a reverse delay of the full path according to the reverse entry time information and reverse exit time information;
将所述全路径的正向时延与反向时延的时延差的绝对值, 确定为第一设备 与第二设备之间的全路径时延补偿值。  The absolute value of the delay difference between the forward delay and the reverse delay of the full path is determined as a full path delay compensation value between the first device and the second device.
结合第一方面的第五种可行的实施方式, 在第六种可行的实施方式中, 所 述采用所述全路径时延补偿值, 对第一设备与第二设备之间的全路径传输的业 务进行时延补偿, 包括: 比较第一设备与第二设备之间的全路径的正向时延与反向时延的大小; 如果所述正向时延大于所述反向时延, 则将所述全路径中反向传输的业务 延迟所述全路径时延补偿值之后输出; With reference to the fifth possible implementation manner of the first aspect, in the sixth possible implementation manner, the using the full path delay compensation value, the full path transmission between the first device and the second device Business delay compensation, including: Comparing a size of a forward path and a reverse delay of the full path between the first device and the second device; if the forward delay is greater than the reverse delay, inverting the full path The transmitted service is delayed after the full path delay compensation value is output;
如果所述反向时延大于所述正向时延, 则将所述全路径中正向传输的业务 延迟所述全路径时延补偿值之后输出。  If the reverse delay is greater than the forward delay, the forward transmission traffic in the full path is delayed after the full path delay compensation value is output.
结合第一方面的第六种可行的实施方式, 在第七种可行的实施方式中, 所 述将所述全路径中反向传输的业务延迟所述全路径时延补偿值之后输出, 包括: 在所述全路径的反向出口处设置 FIFO緩存器;  With reference to the sixth possible implementation manner of the first aspect, in a seventh possible implementation, the step of delaying the reverse transmission of the service in the full path after the full path delay compensation value is output, including: Setting a FIFO buffer at a reverse exit of the full path;
将所述全路径中反向传输的业务写入所述 FIFO緩存器, 当到达所述全路径 时延补偿值时, 从所述 FIFO緩存器读出所述业务;  Transmitting the reversely transmitted traffic in the full path to the FIFO buffer, and when the full path delay compensation value is reached, reading the service from the FIFO buffer;
所述将所述全路径中正向传输的业务延迟所述全路径时延补偿值之后输出, 包括:  And delaying, after the delaying the full path delay compensation value, the service that is forwardly transmitted in the full path, including:
在所述全路径的正向出口处设置 FIFO緩存器;  Setting a FIFO buffer at a forward exit of the full path;
将所述全路径中正向传输的业务写入所述 FIFO緩存器, 当到达所述全路径 时延补偿值时, 从所述 FIFO緩存器读出所述业务。 本发明第二方面提供了一种时延补偿装置, 可包括:  The traffic forwarded in the full path is written to the FIFO buffer, and when the full path delay compensation value is reached, the traffic is read from the FIFO buffer. A second aspect of the present invention provides a time delay compensation apparatus, which may include:
同步模块, 用于对进行业务传输的第一设备与第二设备进行时间同步处理; 主备补偿计算模块,用于计算同步后的第一设备与第二设备之间的主备时延 补偿值;  a synchronization module, configured to perform time synchronization processing on the first device and the second device that perform service transmission; and an active/standby compensation calculation module, configured to calculate a primary and backup delay compensation value between the synchronized first device and the second device ;
主备补偿模块, 用于采用所述主备时延补偿值, 对第一设备与第二设备之 间的主路径或备路径传输的业务进行时延补偿。  The active/standby compensation module is configured to perform delay compensation on the service transmitted by the primary path or the backup path between the first device and the second device by using the active/standby delay compensation value.
在第一种可行的实施方式中, 所述主备补偿计算模块包括:  In a first feasible implementation manner, the active/standby compensation calculation module includes:
主传输单元, 用于将业务从第一设备发起传输, 经第一设备与第二设备之 间的主路径的发通道传输至第二设备时, 再将所述业务从第二设备环回, 经所 述主路径的收通道传输至第一设备;  a primary transmission unit, configured to initiate a transmission from the first device, and when the transmission channel of the primary path between the first device and the second device is transmitted to the second device, the service is looped back from the second device. Transmitting to the first device via the receiving channel of the primary path;
主时延计算单元, 用于根据所述业务在所述主路径中的传输时间, 计算所 述主路径的路径时延;  a primary delay calculation unit, configured to calculate a path delay of the primary path according to a transmission time of the service in the primary path;
备传输单元, 用于将业务从第一设备发起传输, 经第一设备与第二设备之 间的备路径的发通道传输至第二设备时, 再将所述业务从第二设备环回, 经所 述备路径的收通道传输至第一设备; a backup transmission unit, configured to initiate a transmission from the first device, and when the transmission path of the backup path between the first device and the second device is transmitted to the second device, the service is looped back from the second device. Economics The receiving channel of the prepared path is transmitted to the first device;
备时延计算单元, 用于根据所述业务在所述备路径中的传输时间, 计算所 述备路径的路径时延;  a time delay calculation unit, configured to calculate a path delay of the standby path according to a transmission time of the service in the standby path;
主备补偿确定单元, 用于将所述主路径与所述备路径的路径时延差的绝对 值的 1/2, 确定为第一设备与第二设备之间的主备时延补偿值;  And an active/standby compensation determining unit, configured to determine 1/2 of an absolute value of a path delay difference between the primary path and the standby path as a primary and secondary delay compensation value between the first device and the second device;
其中, 所述主路径的收发通道的长度相同, 所述备路径的收发通道的长度 相同。  The length of the transceiver channel of the primary path is the same, and the length of the transceiver channel of the standby path is the same.
结合第二方面的第一种可行的实施方式, 在第二种可行的实施方式中, 所 述主备补偿模块包括:  With reference to the first possible implementation manner of the second aspect, in the second possible implementation manner, the active/standby compensation module includes:
比较单元, 用于比较第一设备与第二设备之间的主路径与备路径的路径时 延的大小;  a comparing unit, configured to compare a path delay of the primary path and the standby path between the first device and the second device;
主备补偿单元, 用于如果所述主路径的路径时延大于所述备路径的路径时 延, 则将所述备路径中传输的业务延迟所述主备时延补偿值之后输出; 或者, 补偿单元, 用于如果所述备路径的路径时延大于所述主路径的路径时延, 则将 所述主路径中传输的业务延迟所述主备时延补偿值之后输出。  And an active/standby compensation unit, configured to: after the path delay of the primary path is greater than the path delay of the standby path, delay the service transmitted in the standby path by delaying the primary and secondary delay compensation values; or The compensation unit is configured to: if the path delay of the standby path is greater than the path delay of the primary path, delay the service transmitted in the primary path by delaying the primary and secondary delay compensation values.
结合第二方面的第二种可行的实施方式, 在第三种可行的实施方式中, 所 述主备补偿单元具体用于如果所述主路径的路径时延大于所述备路径的路径时 延, 在所述备路径的出口处设置先入先出 FIFO緩存器, 将所述备路径中传输的 业务写入所述 FIFO緩存器, 当到达所述主备时延补偿值时, 从所述 FIFO緩存 器读出所述业务; 或者,  With reference to the second possible implementation manner of the second aspect, in the third possible implementation, the active/standby compensation unit is specifically configured to: if the path delay of the primary path is greater than the path delay of the standby path Providing a first-in first-out FIFO buffer at an exit of the standby path, and writing the traffic transmitted in the standby path to the FIFO buffer, when the primary and backup delay compensation values are reached, from the FIFO The buffer reads the service; or,
用于如果所述备路径的路径时延大于所述主路径的路径时延, 在所述主路 径的出口处设置 FIFO緩存器, 将所述主路径中传输的业务写入所述 FIFO緩存 器, 当到达所述主备时延补偿值时, 从所述 FIFO緩存器读出所述业务。  And if a path delay of the standby path is greater than a path delay of the primary path, setting a FIFO buffer at an exit of the primary path, and writing a service transmitted in the primary path to the FIFO buffer And when the primary and backup delay compensation values are reached, the service is read from the FIFO buffer.
结合第二方面、 第二方面的第一种可行的实施方式、 第二方面的第二种可 行的实施方式中或第二方面的第三种可行的实施方式, 在第四种可行的实施方 式中, 所述装置还包括:  With reference to the second aspect, the first feasible implementation manner of the second aspect, the second feasible implementation manner of the second aspect, or the third feasible implementation manner of the second aspect, in the fourth feasible implementation manner The device further includes:
全补偿计算模块, 用于计算第一设备与第二设备之间的全路径时延补偿值, 所述第一设备与第二设备之间的全路径包括: 第一设备内路径、 第一设备与第 二设备之间的主路径或备路径, 以及第二设备内路径;  a full compensation calculation module, configured to calculate a full path delay compensation value between the first device and the second device, where the full path between the first device and the second device includes: a path within the first device, and a first device a primary path or a secondary path with the second device, and a path within the second device;
全补偿模块, 用于采用所述全路径时延补偿值, 对第一设备与第二设备之 间传输的业务进行时延补偿。 a full compensation module, configured to use the full path delay compensation value, for the first device and the second device The inter-transmission service is compensated for delay.
结合第二方面的第四种可行的实施方式, 在第五种可行的实施方式中, 所 述全补偿计算模块包括:  With reference to the fourth possible implementation manner of the second aspect, in the fifth possible implementation manner, the full compensation calculation module includes:
正向处理单元, 用于将业务沿第一设备与第二设备之间的全路径进行正向 传输, 在所述全路径的正向入口处对所述业务进行封装, 封装后的业务中包含 所述业务到达所述正向入口处的正向入口时间信息; 获取所述业务到达所述全 路径的正向出口处的正向出口时间信息, 并在所述正向出口处对所述业务进行 解封装, 提取所述正向入口时间信息;  a forward processing unit, configured to forward a service along a full path between the first device and the second device, and encapsulate the service at a forward entrance of the full path, where the encapsulated service includes Forward traffic time information of the service reaching the forward entrance; obtaining forward exit time information that the service reaches the forward exit of the full path, and the service at the forward exit Decapsulating, extracting the forward entry time information;
正向时延计算单元, 用于根据所述正向入口时间信息与正向出口时间信息, 计算所述全路径的正向时延;  a forward delay calculation unit, configured to calculate a forward delay of the full path according to the forward entry time information and the forward exit time information;
反向处理单元, 用于将业务沿第一设备与第二设备之间的全路径进行反向 传输, 在所述全路径的反向入口处对所述业务进行封装, 封装后的业务中包含 所述业务到达所述反向入口处的反向入口时间信息以及所述全路径的正向时延; 获取所述业务到达所述全路径的反向出口处的反向出口时间信息, 并在所述反 向出口处对所述业务进行解封装, 提取所述反向入口时间信息及所述全路径的 正向时延;  a reverse processing unit, configured to reverse the service along the full path between the first device and the second device, and encapsulate the service at the reverse entry of the full path, where the encapsulated service includes The reverse entry time information of the service reaching the reverse entry and the forward delay of the full path; obtaining the reverse exit time information of the service reaching the reverse exit of the full path, and Decapsulating the service at the reverse egress, extracting the reverse entry time information and a forward delay of the full path;
反向时延计算单元, 用于根据所述反向入口时间信息与反向出口时间信息, 计算所述全路径的反向时延;  a reverse delay calculation unit, configured to calculate a reverse delay of the full path according to the reverse entry time information and reverse exit time information;
全补偿确定单元, 用于将所述全路径的正向时延与反向时延的时延差的绝 对值, 确定为第一设备与第二设备之间的全路径时延 卜偿值。  The total compensation determining unit is configured to determine an absolute value of the delay difference between the forward delay and the reverse delay of the full path as a full path delay compensation value between the first device and the second device.
结合第二方面的第五种可行的实施方式, 在第六种可行的实施方式中, 所 述全补偿模块包括:  With reference to the fifth possible implementation manner of the second aspect, in the sixth possible implementation, the full compensation module includes:
比较单元, 用于比较第一设备与第二设备之间的全路径的正向时延与反向 时延的大小;  a comparing unit, configured to compare a forward delay and a reverse delay of the full path between the first device and the second device;
全补偿单元, 用于如果所述正向时延大于所述反向时延, 则将所述全路径 中反向传输的业务延迟所述全路径时延补偿值之后输出; 或者, 如果所述反向 时延大于所述正向时延, 则将所述全路径中正向传输的业务延迟所述全路径时 延补偿值之后输出。  a full compensation unit, configured to: if the forward delay is greater than the reverse delay, delay the service of the reverse transmission in the full path after the full path delay compensation value; or, if If the reverse delay is greater than the forward delay, the forward transmission service in the full path is delayed after the full path delay compensation value is output.
结合第二方面的第六种可行的实施方式, 在第七种可行的实施方式中, 所 述全补偿单元具体用于: 如果所述正向时延大于所述反向时延, 在所述全路径 的反向出口处设置 FIFO緩存器,将所述全路径中反向传输的业务写入所述 FIFO 緩存器, 当到达所述全路径时延补偿值时, 从所述 FIFO緩存器读出所述业务; 或者, With reference to the sixth possible implementation of the second aspect, in a seventh possible implementation, the full compensation unit is specifically configured to: if the forward delay is greater than the reverse delay, Full path Setting a FIFO buffer at the reverse exit, writing the reverse-transferred traffic in the full path to the FIFO buffer, and reading the FIFO buffer when the full-path delay compensation value is reached Business; or,
用于如果所述反向时延大于所述正向时延, 在所述全路径的正向出口处设 置 FIFO緩存器, 将所述全路径中正向传输的业务写入所述 FIFO緩存器, 当到 达所述全路径时延补偿值时, 从所述 FIFO緩存器读出所述业务。 本发明第三方面提供了一种计算机存储介质, 所述计算机存储介质可存储 有程序, 该程序执行时包括上述第一方面的方法中的全部或部分步骤。 本发明第四方面提供了另一种时延补偿装置, 可包括发射器, 接收器和处 理器; 其中, 所述处理器执行如下步骤:  And if the reverse delay is greater than the forward delay, setting a FIFO buffer at a forward exit of the full path, and writing a forward-transmitted service in the full path to the FIFO buffer, When the full path delay compensation value is reached, the traffic is read from the FIFO buffer. A third aspect of the invention provides a computer storage medium, the computer storage medium storing a program, the program comprising all or part of the steps of the method of the first aspect described above. A fourth aspect of the present invention provides another delay compensation apparatus, which may include a transmitter, a receiver, and a processor; wherein the processor performs the following steps:
对进行业务传输的第一设备与第二设备进行时间同步处理;  Performing time synchronization processing on the first device and the second device that perform service transmission;
计算同步后的第一设备与第二设备之间的主备时延补偿值;  Calculating a primary and secondary delay compensation value between the synchronized first device and the second device;
采用所述主备时延补偿值,对第一设备与第二设备之间的主路径或备路径传 输的业务进行时延补偿。  The time delay compensation is performed on the service transmitted by the primary path or the backup path between the first device and the second device by using the active/standby delay compensation value.
在第一种可行的实施方式中, 所述处理器执行所述计算同步后的第一设备 与第二设备之间的主备时延补偿值的步骤时, 具体包括如下步骤:  In the first feasible implementation manner, when the step of calculating the active/standby delay compensation value between the first device and the second device after the synchronization is performed, the processor specifically includes the following steps:
控制所述发射器将业务从第一设备发起传输 , 经第一设备与第二设备之间 的主路径的发通道传输至第二设备时, 再将所述业务从第二设备环回, 经所述 主路径的收通道传输至第一设备;  Controlling the transmitter to initiate a transmission from the first device, and transmitting the service from the second device to the second device through the transmission path of the primary path between the first device and the second device, The receiving channel of the primary path is transmitted to the first device;
根据所述业务在所述主路径中的传输时间, 计算所述主路径的路径时延; 控制所述发射器将业务从第一设备发起传输 , 经第一设备与第二设备之间 的备路径的发通道传输至第二设备时, 再将所述业务从第二设备环回, 经所述 备路径的收通道传输至第一设备;  Calculating a path delay of the primary path according to a transmission time of the service in the primary path; controlling the transmitter to initiate a transmission from a first device, and preparing a device between the first device and the second device When the transmission path of the path is transmitted to the second device, the service is looped back from the second device, and is transmitted to the first device through the receiving channel of the standby path.
根据所述业务在所述备路径中的传输时间, 计算所述备路径的路径时延; 将所述主路径与所述备路径的路径时延差的绝对值的 1/2, 确定为第一设备 与第二设备之间的主备时延补偿值;  Calculating a path delay of the standby path according to a transmission time of the service in the standby path; determining, as a first half of an absolute value of a path delay difference between the primary path and the standby path, The active/standby delay compensation value between a device and the second device;
其中, 所述主路径的收发通道的长度相同, 所述备路径的收发通道的长度 相同。 结合第一方面的第一种可行的实施方式, 在第二种可行的实施方式中, 所 述处理器执行所述采用所述主备时延补偿值, 对第一设备与第二设备之间的主 路径或备路径传输的业务进行时延补偿的步骤时, 具体包括如下步骤: The length of the transceiver channel of the primary path is the same, and the length of the transceiver channel of the standby path is the same. With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner, the processor performs the using the active/standby delay compensation value between the first device and the second device When the step of performing the delay compensation for the service transmitted by the primary path or the backup path includes the following steps:
比较第一设备与第二设备之间的主路径与备路径的路径时延的大小; 如果所述主路径的路径时延大于所述备路径的路径时延, 则将所述备路径 中传输的业务延迟所述主备时延补偿值之后输出;  Comparing the size of the path delay between the primary path and the secondary path between the first device and the second device; if the path delay of the primary path is greater than the path delay of the standby path, transmitting the path in the standby path The service is delayed after the active/standby delay compensation value is output;
如果所述备路径的路径时延大于所述主路径的路径时延, 则将所述主路径 中传输的业务延迟所述主备时延补偿值之后输出。  If the path delay of the standby path is greater than the path delay of the primary path, the service transmitted in the primary path is delayed after the primary and secondary delay compensation values are output.
结合第一方面的第二种可行的实施方式, 在第三种可行的实施方式中, 所 述处理器执行所述将所述备路径中传输的业务延迟所述主备时延补偿值之后输 出的步骤时, 具体包括如下步骤:  With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner, the processor performs the output after the service transmitted in the backup path is delayed by the active/standby delay compensation value The steps include the following steps:
在所述备路径的出口处设置先入先出 FIFO緩存器;  Setting a first-in first-out FIFO buffer at an exit of the standby path;
将所述备路径中传输的业务写入所述 FIFO緩存器, 当到达所述主备时延补 偿值时, 从所述 FIFO緩存器读出所述业务;  Transmitting the traffic transmitted in the backup path to the FIFO buffer, and when the primary and backup delay compensation values are reached, reading the service from the FIFO buffer;
所述处理器执行所述将所述主路径中传输的业务延迟所述主备时延补偿值 之后输出的步骤时, 具体包括如下步骤:  When the processor performs the step of outputting the service transmitted in the primary path after delaying the primary and backup delay compensation values, the processor specifically includes the following steps:
在所述主路径的出口处设置 FIFO緩存器;  Setting a FIFO buffer at an exit of the main path;
将所述主路径中传输的业务写入所述 FIFO緩存器, 当到达所述主备时延补 偿值时, 从所述 FIFO緩存器读出所述业务。  The traffic transmitted in the primary path is written to the FIFO buffer, and when the primary and backup delay compensation values are reached, the traffic is read from the FIFO buffer.
结合第一方面、 第一方面的第一种可行的实施方式、 第一方面的第二种可 行的实施方式或第一方面的第三种可行的实施方式, 在第四种可行的实施方式 中, 所述处理器执行所述采用所述主备时延补偿值, 对第一设备与第二设备之 间的主路径或备路径传输的业务进行时延补偿的步骤之后, 还执行如下步骤: 计算第一设备与第二设备之间的全路径时延补偿值, 所述第一设备与第二 设备之间的全路径包括: 第一设备内路径、 第一设备与第二设备之间的主路径 或备路径, 以及第二设备内路径;  In combination with the first aspect, the first feasible implementation of the first aspect, the second possible implementation of the first aspect, or the third possible implementation of the first aspect, in a fourth possible implementation manner And performing, by the processor, the step of performing delay compensation on the service transmitted by the primary path or the backup path between the first device and the second device by using the active/standby delay compensation value, and performing the following steps: Calculating a full path delay compensation value between the first device and the second device, where the full path between the first device and the second device includes: a path between the first device, and between the first device and the second device a primary path or a standby path, and a path within the second device;
采用所述全路径时延补偿值, 对第一设备与第二设备之间传输的业务进行 时延补偿。  The time delay compensation is performed on the service transmitted between the first device and the second device by using the full path delay compensation value.
结合第一方面的第四种可行的实施方式, 在第五种可行的实施方式中, 所 述处理器执行所述计算第一设备与第二设备之间的全路径时延补偿值的步骤时, 具体包括如下步骤: With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner, the processor is configured to perform the step of calculating a full path delay compensation value between the first device and the second device , Specifically, the following steps are included:
将业务沿第一设备与第二设备之间的全路径进行正向传输, 在所述全路径 的正向入口处对所述业务进行封装, 封装后的业务中包含所述业务到达所述正 向入口处的正向入口时间信息;  Forwarding the service along the full path between the first device and the second device, and encapsulating the service at the forward entrance of the full path, where the encapsulated service includes the service reaching the positive Forward entry time information to the entrance;
获取所述业务到达所述全路径的正向出口处的正向出口时间信息, 并在所 述正向出口处对所述业务进行解封装, 提取所述正向入口时间信息;  Obtaining the forward exit time information of the service reaching the forward exit of the full path, and decapsulating the service at the forward exit, extracting the forward entry time information;
根据所述正向入口时间信息与正向出口时间信息, 计算所述全路径的正向 时延;  Calculating a forward delay of the full path according to the forward entry time information and the forward exit time information;
将业务沿第一设备与第二设备之间的全路径进行反向传输, 在所述全路径 的反向入口处对所述业务进行封装, 封装后的业务中包含所述业务到达所述反 向入口处的反向入口时间信息以及所述全路径的正向时延;  Forwarding the service along the entire path between the first device and the second device, and encapsulating the service at the reverse entry of the full path, where the encapsulated service includes the service reaching the reverse Reverse entry time information to the entrance and forward delay of the full path;
获取所述业务到达所述全路径的反向出口处的反向出口时间信息, 并在所 述反向出口处对所述业务进行解封装, 提取所述反向入口时间信息及所述全路 径的正向时延;  Obtaining reverse exit time information that the service reaches the reverse exit of the full path, and decapsulating the service at the reverse exit, extracting the reverse entry time information and the full path Positive delay
根据所述反向入口时间信息与反向出口时间信息, 计算所述全路径的反向 时延;  Calculating a reverse delay of the full path according to the reverse entry time information and reverse exit time information;
将所述全路径的正向时延与反向时延的时延差的绝对值, 确定为第一设备 与第二设备之间的全路径时延补偿值。  The absolute value of the delay difference between the forward delay and the reverse delay of the full path is determined as a full path delay compensation value between the first device and the second device.
结合第一方面的第五种可行的实施方式, 在第六种可行的实施方式中, 所 述处理器执行所述采用所述全路径时延补偿值, 对第一设备与第二设备之间传 输的业务进行时延补偿的步骤时, 具体包括如下步骤:  With reference to the fifth possible implementation of the first aspect, in a sixth possible implementation, the processor performs the using the full path delay compensation value, between the first device and the second device When the transmitted service performs the step of delay compensation, the following steps are specifically included:
比较第一设备与第二设备之间的全路径的正向时延与反向时延的大小; 如果所述正向时延大于所述反向时延, 则将所述全路径中反向传输的业务 延迟所述全路径时延补偿值之后输出;  Comparing a size of a forward path and a reverse delay of the full path between the first device and the second device; if the forward delay is greater than the reverse delay, inverting the full path The transmitted service is delayed after the full path delay compensation value is output;
如果所述反向时延大于所述正向时延, 则将所述全路径中正向传输的业务 延迟所述全路径时延补偿值之后输出。  If the reverse delay is greater than the forward delay, the forward transmission traffic in the full path is delayed after the full path delay compensation value is output.
结合第一方面的第六种可行的实施方式, 在第七种可行的实施方式中, 所 述处理器执行所述将所述全路径中反向传输的业务延迟所述全路径时延补偿值 之后输出的步骤时, 具体包括如下步骤:  With reference to the sixth possible implementation manner of the first aspect, in a seventh possible implementation manner, the processor performs the step of delaying the reverse transmission of the full path in the full path delay compensation value After the step of outputting, the steps include the following steps:
在所述全路径的反向出口处设置 FIFO緩存器; 将所述全路径中反向传输的业务写入所述 FIFO緩存器, 当到达所述全路径 时延补偿值时, 从所述 FIFO緩存器读出所述业务; Setting a FIFO buffer at a reverse exit of the full path; Transmitting the reversely transmitted traffic in the full path to the FIFO buffer, and when the full path delay compensation value is reached, reading the service from the FIFO buffer;
所述处理器执行所述将所述全路径中正向传输的业务延迟所述全路径时延 补偿值之后输出的步骤时, 具体包括如下步骤:  The step of the processor performing the step of outputting the forward-transferred service in the full path after delaying the full-path delay compensation value includes the following steps:
在所述全路径的正向出口处设置 FIFO緩存器;  Setting a FIFO buffer at a forward exit of the full path;
将所述全路径中正向传输的业务写入所述 FIFO緩存器, 当到达所述全路径 时延补偿值时, 从所述 FIFO緩存器读出所述业务。  The traffic forwarded in the full path is written to the FIFO buffer, and when the full path delay compensation value is reached, the traffic is read from the FIFO buffer.
采用本发明的时延补偿方法, 首先对进行业务传输的设备进行时间同步, 以保证时延补偿的精度; 在时间同步的基础上, 计算设备之间的主备时延补偿 值, 并采用主备时延补偿值对设备间的主 /备路径传输的业务进行时延补偿, 保 证了主备路径的时延的对称性, 保证了业务的正常传输。 附图说明  The time delay compensation method of the present invention first performs time synchronization on the device for performing service transmission to ensure the accuracy of the delay compensation; on the basis of time synchronization, calculates the active/standby delay compensation value between the devices, and adopts the main The time delay compensation value compensates for the delay of the service transmitted by the primary/secondary path between devices, ensuring the symmetry of the delay of the active and standby paths and ensuring the normal transmission of services. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施 例或现有技术描述中所需要使用的附图作筒单地介绍, 显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付 出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description It is merely some embodiments of the present invention, and those skilled in the art can obtain other drawings according to the drawings without any creative work.
图 1为本发明实施例提供的一种时延补偿方法的流程图;  FIG. 1 is a flowchart of a method for delay compensation according to an embodiment of the present invention;
图 2为图 1所示步骤 S102的实施例的流程图;  Figure 2 is a flow chart of the embodiment of step S102 shown in Figure 1;
图 3为本发明实施例提供的主备路径时延补偿的示意图;  3 is a schematic diagram of delay compensation of active and standby paths according to an embodiment of the present invention;
图 4为图 1所示步骤 S103的实施例的流程图;  Figure 4 is a flow chart showing an embodiment of the step S103 shown in Figure 1;
图 5为本发明实施例提供的另一种时延补偿方法的流程图;  FIG. 5 is a flowchart of another method for delay compensation according to an embodiment of the present invention;
图 6为图 5所示步骤 S204的实施例的流程图;  Figure 6 is a flow chart showing an embodiment of the step S204 shown in Figure 5;
图 7为本发明实施例提供的全路径时延补偿的示意图;  FIG. 7 is a schematic diagram of full path delay compensation according to an embodiment of the present invention; FIG.
图 8为本发明实施例提供的封装后的业务的示意图;  FIG. 8 is a schematic diagram of a packaged service according to an embodiment of the present invention;
图 9为本发明实施例提供的时间帧格式的示意图;  FIG. 9 is a schematic diagram of a time frame format according to an embodiment of the present invention;
图 10为图 5所示步骤 S205的实施例的流程图;  Figure 10 is a flow chart showing an embodiment of the step S205 shown in Figure 5;
图 11为本发明实施例提供的一种时延补偿装置的结构示意图;  FIG. 11 is a schematic structural diagram of a time delay compensation apparatus according to an embodiment of the present invention;
图 12为本发明实施例提供的主备补偿计算模块的结构示意图;  FIG. 12 is a schematic structural diagram of a master/backup compensation calculation module according to an embodiment of the present invention;
图 13为本发明实施例提供的主备补偿模块的结构示意图; 图 14为本发明实施例提供的另一种时延补偿装置的结构示意图; 图 15为本发明实施例提供的全补偿计算模块的结构示意图; FIG. 13 is a schematic structural diagram of a master/backup compensation module according to an embodiment of the present disclosure; FIG. 14 is a schematic structural diagram of another time delay compensation apparatus according to an embodiment of the present invention; FIG. 15 is a schematic structural diagram of a full compensation calculation module according to an embodiment of the present invention;
图 16为本发明实施例提供的全补偿模块的结构示意图;  16 is a schematic structural diagram of a full compensation module according to an embodiment of the present invention;
图 17为本发明实施例提供的又一种时延补偿装置的结构示意图。 具体实施方式  FIG. 17 is a schematic structural diagram of still another delay compensation apparatus according to an embodiment of the present invention. detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  BRIEF DESCRIPTION OF THE DRAWINGS The technical solutions in the embodiments of the present invention will be described in detail with reference to the accompanying drawings. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative work are within the scope of the present invention.
本发明实施例的时延补偿方案,适用于各种可承载业务的通信系统,例如: WDM( Wavelength Division Multiplexing ,波分复用)通信系统、 OFDM( Orthogonal Frequency Division Multiplexing, 正交频分复用)通信系统等。 第一设备为通信 系统中的任一设备; 第二设备为通信系统中, 除第一设备之外且与第一设备进 行业务交互的任一设备。  The delay compensation scheme of the embodiment of the present invention is applicable to various communication systems capable of carrying services, such as: WDM (Wavelength Division Multiplexing) communication system, OFDM (Orthogonal Frequency Division Multiplexing) ) Communication systems, etc. The first device is any device in the communication system; the second device is any device in the communication system that performs business interaction with the first device except the first device.
为了保证业务的正常传输, 第一设备与第二设备之间通常设有主路径与备 路径。 第一设备与第二设备之间的全路径, 包括: 第一设备内路径、 第一设备 与第二设备之间的主路径或备路径, 以及第二设备内路径。 除特别说明外, 本 发明实施例中, 第一设备与第二设备之间的主路径的收发通道的长度相同, 例 如: WDM通信系统中,第一 WDM设备与第二 WDM设备之间的收方向的光纤 长度与发方向的光纤长度相等, 从而可保证主路径的收发通道的传输时延相等。 第一设备与第二设备之间的备路径的收发通道的长度相同, 例如: WDM通信系 统中, 第一 WDM设备与第二 WDM设备之间的收方向的光纤长度与发方向的 光纤长度相等, 从而可保证备路径的收发通道的传输时延相等。 请参见图 1 , 为本发明实施例提供的一种时延补偿方法的流程图; 该方法可 包括以下步骤 S101-步骤 S103。  In order to ensure normal transmission of the service, a primary path and a backup path are usually provided between the first device and the second device. The full path between the first device and the second device includes: a path within the first device, a primary path or a standby path between the first device and the second device, and a path within the second device. In the embodiment of the present invention, the length of the transmission path of the primary path between the first device and the second device is the same, for example, in the WDM communication system, the first WDM device and the second WDM device are received. The length of the fiber in the direction is equal to the length of the fiber in the direction of the transmission, so that the transmission delay of the transmission path of the primary path is equal. The length of the transceiver channel of the backup path between the first device and the second device is the same. For example, in the WDM communication system, the length of the fiber in the receiving direction between the first WDM device and the second WDM device is equal to the length of the fiber in the sending direction. Therefore, the transmission delays of the transceiver channels of the standby path are equal. FIG. 1 is a flowchart of a method for compensating for a delay according to an embodiment of the present invention; the method may include the following steps S101 to S103.
S101 , 对进行业务传输的第一设备与第二设备进行时间同步处理;  S101. Perform time synchronization processing on the first device and the second device that perform service transmission.
本步骤可采用如 1588时钟同步技术、 NTP ( Network Time Protocol, 网络时 间协议) 同步技术等时间同步技术, 对进行业务传输的第一设备和第二设备进 行同步处理。 通过对业务传输的设备间执行同步处理, 可以获得更高的传输时 延的计算精度, 从而进行更为精确的时延补偿。 In this step, time synchronization technologies such as 1588 clock synchronization technology and NTP (Network Time Protocol) synchronization technology can be used to input the first device and the second device for performing service transmission. Line synchronization processing. By performing synchronization processing between devices for service transmission, higher calculation accuracy of transmission delay can be obtained, thereby performing more accurate delay compensation.
5102 , 计算同步后的第一设备与第二设备之间的主备时延补偿值;  5102. Calculate a primary and backup delay compensation value between the synchronized first device and the second device.
由于第一设备与第二设备的主备路径的差异,主备路径的时延也可能存在差 异, 因此需要对主路径或备路径进行时延补偿, 以保证主备路径倒换时时延的 一致性。 本步骤则计算同步后的第一设备与第二设备之间的主备时延补偿值 , 以实现主 /备路径的时延补偿。  The delay of the active/standby path may be different due to the difference between the active and standby paths of the first device and the second device. Therefore, the delay of the primary or backup path is required to ensure the consistency of the delay between the active and standby paths. . In this step, the active/standby delay compensation value between the synchronized first device and the second device is calculated to implement delay compensation of the primary/secondary path.
5103 , 采用所述主备时延补偿值, 对第一设备与第二设备之间的主路径或 备路径传输的业务进行时延补偿。 本步骤中, 采用主备时延补偿值对第一设备 与第二设备之间的主路径或备路径传输的业务进行时延补偿, 可保证主备路径 倒换时时延的一致性。 请参见图 2, 为图 1所示步骤 S102的实施例的流程图; 该步骤 S102具体可 包括以下步骤 S1201-步骤 S1205。  5103. Perform delay compensation on the service transmitted by the primary path or the backup path between the first device and the second device by using the active/standby delay compensation value. In this step, the primary and secondary delay compensation values are used to compensate the delay of the service transmitted by the primary or secondary path between the first device and the second device. Referring to FIG. 2, it is a flowchart of the embodiment of step S102 shown in FIG. 1. The step S102 may specifically include the following steps S1201-S1205.
51201 , 将业务从第一设备发起传输, 经第一设备与第二设备之间的主路径 的发通道传输至第二设备时, 再将所述业务从第二设备环回, 经所述主路径的 收通道传输至第一设备;  51201: Initiate transmission of the service from the first device, and when the transmission is performed to the second device by using the sending path of the primary path between the first device and the second device, the service is looped back from the second device by the primary device. The receiving channel of the path is transmitted to the first device;
请一并参见图 3, 为本发明实施例提供的主备路径时延补偿的示意图。 图 3 中, 假设 AC为主路径的发通道, A'C'为主路径的收通道; BD为备路径的发通 道, B,D,为备路径的收通道。 本步骤中, 将业务从第一设备的 A点发起传输, 经 AC传输至第二设备的 C点,再从 C环回至 C,, 经 C,A,传输至第一设备的 A, 点; 则业务的传输路线为: A-C-C,-A,, 即业务仅在主路径中传输。  Referring to FIG. 3, FIG. 3 is a schematic diagram of delay compensation of active and standby paths according to an embodiment of the present invention. In Figure 3, it is assumed that the AC is the originating channel of the primary path, and A'C' is the receiving channel of the primary path; BD is the outgoing channel of the standby path, and B and D are the receiving channels of the standby path. In this step, the service is transmitted from point A of the first device, transmitted to the point C of the second device by the AC, and then looped back to C from C, and transmitted to the A of the first device through C, A. The transmission route of the service is: ACC, -A, that is, the service is only transmitted in the main path.
51202, 根据所述业务在所述主路径中的传输时间, 计算所述主路径的路径 时延;  51202. Calculate a path delay of the primary path according to a transmission time of the service in the primary path.
由于业务由一帧一帧的数据构成, 业务的传输即为帧数据的依次传输, 因 此本步骤可以通过复帧定帧的方式计算主路径的路径时延, 路径时延=帧头差值 *每帧数据的传输时间 + (已传输的长度 /帧长) *每帧数据的传输时间。 以图 3 所示示意图为例, 本步骤的具体计算过程如下:  Since the service is composed of data of one frame and one frame, the transmission of the service is the sequential transmission of the frame data. Therefore, in this step, the path delay of the primary path can be calculated by the method of multiframe framing, path delay = frame header difference* Transmission time per frame of data + (length of transmission / frame length) * Transmission time of data per frame. Taking the diagram shown in Figure 3 as an example, the specific calculation process of this step is as follows:
假设业务包括 10帧数据,帧数据的帧头标识表示了该帧数据的序号,例如: 帧头标识为 1的帧数据表示该业务的首帧数据, 帧头标识为 2的帧数据表示该 业务的第二帧数据,以此类推,帧头标识为 10的帧数据表示该业务的尾帧数据。 每帧数据的传输时间为 0.5s, 每帧数据的帧长为 512字节。 业务从 A点发起传 输时, 此时被传输的帧数据为首帧数据, 其帧头标识为 1; 业务环回至 A,点时, 即首帧数据到达 A,点时, 业务的第六帧数据从 A点发起传输, 且已被传输 128 字节, 该第六帧数据的帧头标识为 6; 利用复帧定帧的方式, 本步骤计算获得的 主路径的路径时延丁主= ( 6-1 ) *0.5+ ( 128/512 ) *0.5, 此路径时延为业务在主路 径的传输时间。 需要说明的是, 采用复帧定帧的方式计算路径时延仅为举例, 也可以采用其他计算方式, 例如: 试算业务从 A点发起传输的时间, 与环回至 A,点的时间之间的时间差, 得到业务在主路径中的传输时间, 从而确定路径时 延; 等等。 It is assumed that the service includes 10 frames of data, and the frame header identifier of the frame data indicates the sequence number of the frame data. For example, the frame data with the frame header identifier of 1 indicates the first frame data of the service, and the frame data with the frame header identifier of 2 indicates the frame data. The second frame data of the service, and so on, the frame data with the frame header identifier of 10 represents the tail frame data of the service. The transmission time of each frame of data is 0.5 s, and the frame length of each frame of data is 512 bytes. When the service initiates transmission from point A, the frame data transmitted at this time is the first frame data, and the frame header identifier is 1; when the service loops back to A, when the first frame data reaches A, the sixth frame of the service is reached. The data is transmitted from point A, and has been transmitted 128 bytes. The frame header of the sixth frame data is identified as 6; using the multiframe framing method, the path delay of the main path obtained by this step is calculated = ( 6-1 ) *0.5+ ( 128/512 ) *0.5, This path delay is the transmission time of the service in the primary path. It should be noted that the calculation of the path delay by using the multi-frame framing method is only an example, and other calculation manners may also be used, for example: the time when the trial service initiates transmission from point A, and the time of loopback to A, point The time difference between the two, the transmission time of the service in the main path is obtained, thereby determining the path delay; and so on.
51203, 将业务从第一设备发起传输, 经第一设备与第二设备之间的备路径 的发通道传输至第二设备时, 再将所述业务从第二设备环回, 经所述备路径的 收通道传输至第一设备;  S203, the service is initiated from the first device, and the service is looped back from the second device to the second device by using The receiving channel of the path is transmitted to the first device;
再请参见图 3, 本步骤中, 将业务从第一设备的 B点发起传输, 经 BD传输 至第二设备的 D点, 再从 D环回至 D,, 经 D,B,传输至第一设备的 B,点; 则业 务的传输路线为: B-D-D,-B,, 即业务仅在备路径中传输。  Referring to FIG. 3 again, in this step, the service is initiated from point B of the first device, transmitted to the point D of the second device by the BD, and then returned from D to D, and then transmitted to the first through D, B. B of a device, point; then the transmission route of the service is: BDD, -B, that is, the service is only transmitted in the standby path.
51204, 根据所述业务在所述备路径中的传输时间, 计算所述备路径的路径 时延; 本步骤的计算过程可参见步骤 S1202的计算过程, 在此不赘述。 计算获 得的备路径的路径时延为: 。  51204. Calculate a path delay of the standby path according to the transmission time of the service in the backup path. For the calculation process of the step, refer to the calculation process of step S1202, and details are not described herein. Calculate the path delay of the obtained standby path as: .
S1205 , 将所述主路径与所述备路径的路径时延差的绝对值的 1/2, 确定为 第一设备与第二设备之间的主备时延补偿值;  S1205: Determine 1/2 of an absolute value of a path delay difference between the primary path and the standby path as a primary and secondary delay compensation value between the first device and the second device;
由于 1^=7 +7;=27 =27;, 其中, !为主路径的发通道传输时延, Tr为主路径 的收通道传输时延。 =TS'+T =2Ts'=2T , 其中, TS '为主路径的发通道传输时 延, T 为主路径的收通道传输时延。 主备路径的路径时延差 ΔΤ=ΙΤ主 -Τ备 l=l(Ts+Tr)-( Ts'+Tr')l= l2Ts-2Ts'H2Tr-2Tr'l, 即: ITs-Ts'l=ITr-Tr'l=AT/2。 针对同一业务, 在第一设备与第二设备传输时, 并不会同时使用路径的收发通 道, 例如: 业务从第一设备传输至第二设备时, 经主路径的发通道传输至第二 设备, 或经备路径的发通道传输至第二设备; 业务从第二设备传输至第一设备 时,经主路径的收通道传输至第一设备,或经备路径的收通道传输至第一设备。 因此, 第一设备与第二设备之间的主备时延保持一致, 仅需保证主路径的收 /发 通道的时延与备路径的收 /发通道的时延一致,本步骤则将 1/2倍 ΔΤ确定为第一 设备与第二设备之间的主备时延补偿值。 请参见图 4, 为图 1所示步骤 S103的实施例的流程图; 该步骤 S103具体可 包括以下步骤 S1301-步骤 S1303。 Since 1^=7 +7;=27 =27;, where, ! The transmission delay of the transmission channel of the primary path, and the transmission delay of the reception channel of the main path of T r . =T S '+T =2T s '=2T , where T S 'is the transmission channel delay of the main path and T is the transmission delay of the main path. The skew of the primary backup path ΔΤ = ΙΤ standby master -Τ l = l (T s + T r) - (T s '+ T r') l = l2T s -2T s 'H2T r -2T r' l , ie: IT s -T s 'l=IT r -T r 'l=AT/2. For the same service, when the first device and the second device transmit, the transmission channel of the path is not used at the same time, for example, when the service is transmitted from the first device to the second device, the transmission channel of the primary path is transmitted to the second device. Or transmitting the transmission path to the second device; when the service is transmitted from the second device to the first device, the transmission channel is transmitted to the first device through the receiving channel of the primary path, or is transmitted to the first device through the receiving channel of the standby path . Therefore, the primary and backup delays between the first device and the second device are consistent, and only the primary path is required to be received/transmitted. The delay of the channel is the same as the delay of the receive/transmit channel of the standby path. In this step, 1/2 times ΔΤ is determined as the primary and backup delay compensation value between the first device and the second device. Referring to FIG. 4, it is a flowchart of the embodiment of step S103 shown in FIG. 1. The step S103 may specifically include the following steps S1301 - S1303.
51301 , 比较第一设备与第二设备之间的主路径与备路径的路径时延的大小; 主备时延补偿即对路径时延较小的路径进行时延补偿,因此,本步骤比较 τΑ 与 的大小,如果 τΑ大于 则需要对备路径进行时延补偿;如果 τΑ小于 则需要对主路径进行时延补偿。 51301. Compare the path delay of the primary path and the backup path between the first device and the second device. The active/standby delay compensation compensates for the delay of the path with a small path delay. Therefore, this step compares τ. For the size of Α , if τ Α is greater, delay compensation for the alternate path is required; if τ Α is less, delay compensation for the primary path is required.
51302, 如果所述主路径的路径时延大于所述备路径的路径时延, 则将所述 备路径中传输的业务延迟所述主备时延补偿值之后输出;  If the path delay of the primary path is greater than the path delay of the standby path, the service transmitted in the standby path is delayed after the active/standby delay compensation value is output;
本步骤中, 可在所述备路径的出口处设置 FIFO緩存器, 参见图 3所示实施 例, 可在 D点或 B,点设置 FIFO緩存器; 将所述备路径中传输的业务写入所述 FIFO緩存器, 当到达所述主备时延补偿值时, 从所述 FIFO緩存器读出所述业 务。  In this step, a FIFO buffer may be disposed at an exit of the standby path. Referring to the embodiment shown in FIG. 3, a FIFO buffer may be set at point D or point B; the service transmitted in the standby path is written. The FIFO buffer reads the service from the FIFO buffer when the master/slave delay compensation value is reached.
51303, 如果所述备路径的路径时延大于所述主路径的路径时延, 则将所述 主路径中传输的业务延迟所述主备时延补偿值之后输出。  If the path delay of the standby path is greater than the path delay of the primary path, the service transmitted in the primary path is delayed by the primary and secondary delay compensation values.
本步骤中, 可在所述主路径的出口处设置 FIFO緩存器, 参见图 3所示实施 例, 可在 C点或 A,点设置 FIFO緩存器; 将所述主路径中传输的业务写入所述 FIFO緩存器, 当到达所述主备时延补偿值时, 从所述 FIFO緩存器读出所述业 务。  In this step, a FIFO buffer may be disposed at an exit of the main path. Referring to the embodiment shown in FIG. 3, a FIFO buffer may be set at point C or A; the service transmitted in the main path is written. The FIFO buffer reads the service from the FIFO buffer when the master/slave delay compensation value is reached.
通过上述实施例的描述, 采用本发明的时延补偿方法, 首先对进行业务传 输的设备进行时间同步, 以保证时延补偿的精度; 在时间同步的基础上, 计算 设备之间的主备时延补偿值, 并采用主备时延补偿值对设备间的主 /备路径传输 的业务进行时延补偿, 保证了主备路径的时延的对称性。 请参见图 5, 为本发明实施例提供的另一种时延补偿方法的流程图; 该方法 可包括以下步骤 S201-步骤 S205。  According to the description of the foregoing embodiment, the time delay compensation method of the present invention first performs time synchronization on the device for performing service transmission to ensure the accuracy of delay compensation; on the basis of time synchronization, the active/standby time between the computing devices is calculated. The delay value is used, and the delay of the service transmitted by the primary/secondary path between devices is compensated by the active/standby delay compensation value to ensure the symmetry of the delay of the active and standby paths. Referring to FIG. 5, it is a flowchart of another method for delay compensation according to an embodiment of the present invention; the method may include the following steps S201 to S205.
5201 , 对进行业务传输的第一设备与第二设备进行时间同步处理;  5201. Perform time synchronization processing on the first device and the second device that perform service transmission.
5202, 计算同步后的第一设备与第二设备之间的主备时延补偿值; 5203 , 采用所述主备时延补偿值, 对第一设备与第二设备之间的主路径或 备路径传输的业务进行时延补偿; 5202. Calculate a primary and secondary delay compensation value between the synchronized first device and the second device. S203: Perform delay compensation on the service transmitted by the primary path or the backup path between the first device and the second device by using the active/standby delay compensation value.
本实施例中,步骤 S201-步骤 S203可参见图 1所示的步骤 S101-步骤 S103, 在此不赘述。  In this embodiment, step S201 to step S203 can be referred to step S101 to step S103 shown in FIG. 1 , and details are not described herein.
5204, 计算第一设备与第二设备之间的全路径时延补偿值;  S204: Calculate a full path delay compensation value between the first device and the second device.
其中, 所述第一设备与第二设备之间的全路径包括: 第一设备内路径、 第 一设备与第二设备之间的主路径或备路径, 以及第二设备内路径。 由于第一设 备与第二设备的对业务的处理, 业务在设备内传输也会产生传输时延, 当采用 第一设备与第二设备之间的全路径进行业务传输时, 需要对全路径进行时延补 偿, 以保证全路径上下行时延的一致性。  The full path between the first device and the second device includes: a path in the first device, a primary path or a standby path between the first device and the second device, and a path in the second device. Due to the processing of the service between the first device and the second device, the transmission of the service within the device also generates a transmission delay. When the entire path between the first device and the second device is used for service transmission, the full path needs to be performed. Delay compensation to ensure the consistency of the uplink and downlink delays of the full path.
5205 , 采用所述全路径时延补偿值, 对第一设备与第二设备之间的全路径 传输的业务进行时延补偿。 本步骤中, 采用全路径时延补偿值对第一设备与第 二设备之间的全路径传输的业务进行时延补偿, 可保证全路径上下行时延的一 致性。 请参见图 6, 为图 5所示步骤 S204的实施例的流程图; 该步骤 S204具体可 包括以下步骤 S2401-S2409。  5205. Perform the time delay compensation for the service of the full path transmission between the first device and the second device by using the full path delay compensation value. In this step, the full-path delay compensation value is used to delay the service of the full-path transmission between the first device and the second device, which ensures the consistency of the uplink and downlink delays of the full path. Referring to FIG. 6, FIG. 6 is a flowchart of an embodiment of step S204 shown in FIG. 5. The step S204 may specifically include the following steps S2401-S2409.
52401 , 将业务沿第一设备与第二设备之间的全路径进行正向传输; 请一并参见图 7, 为本发明实施例提供的全路径时延补偿的示意图; 本实施 例中, 全路径的正向、 反向为相对概念; 如图 7所示实施例中, 若 E-A-C-F为 全路径的正向传输路径, F,-C,-A,-E,则为全路径的反向传输路径; 相反, 若 F,-C,-A,-E,为全路径的正向传输路径, E-A-C-F则为全路径的反向传输路径。 本 实施例以 E-A-C-F为全路径的正向传输路径, F,-C,-A,-E,则为全路径的反向传输 路径进行说明。本步骤将业务沿 E-A-C-F进行正向传输, E为全路径的正向入口, F为全路径的正向出口。  52401, the service is forwarded along the entire path between the first device and the second device. Referring to FIG. 7, FIG. 7 is a schematic diagram of full path delay compensation according to an embodiment of the present invention; The forward and reverse directions of the path are relative concepts. In the embodiment shown in Figure 7, if EACF is the forward path of the full path, F, -C, -A, -E, the reverse path of the full path Path; Conversely, if F, -C, -A, -E are the forward path of the full path, EACF is the reverse path of the full path. In this embodiment, E-A-C-F is the forward path of the full path, and F, -C, -A, and -E are the reverse path of the full path. In this step, the service is forwarded along the E-A-C-F. E is the forward entrance of the full path, and F is the forward exit of the full path.
52402, 在所述全路径的正向入口处对所述业务进行封装, 封装后的业务中 包含所述业务到达所述正向入口处的正向入口时间信息;  52402: Encapsulate the service at a forward entrance of the full path, where the encapsulated service includes forward entry time information that the service reaches the forward entrance;
请一并参见图 8, 为本发明实施例提供的封装后的业务的示意图。 对正向入 口处的业务进行封装, 其目的是插入用于测量时延的入口时间信息。 图 8所示 实施例中, 封装后的业务中包含以下字段: 帧头、 入口时间信息、 回送对端时 延、 保留字节和业务。 其中的 "帧头,, 字段用于标识业务的帧头, 而非业务中 的帧数据的帧头。请一并参见图 9,为本发明实施例提供的时间帧格式的示意图; 封装后的业务中的 "入口时间信息" 字段和 "回送对端时延" 字段可采用如图 9 所示的帧格式定义。 本步骤在全路径的正向入口 E处对所述业务进行封装时, 在 "入口时间信息" 的字段中插入所述业务到达所述正向入口 E处的正向入口 时间信息 Please refer to FIG. 8 , which is a schematic diagram of a packaged service according to an embodiment of the present invention. The service at the forward entrance is encapsulated with the purpose of inserting entry time information for measuring the delay. In the embodiment shown in FIG. 8, the encapsulated service includes the following fields: frame header, entry time information, and back to the peer end. Deferred, reserved bytes and services. The "frame header" field is used to identify the frame header of the service, not the frame header of the frame data in the service. Please refer to FIG. 9 for a schematic diagram of the time frame format provided by the embodiment of the present invention; The "Entry Time Information" field and the "Return Peer Delay" field in the service can be defined by the frame format as shown in Figure 9. In this step, when the service is encapsulated at the forward entry E of the full path, Inserting the forward entry time information of the service to the forward entry E in the field of "entry time information"
52403 , 获取所述业务到达所述全路径的正向出口处的正向出口时间信息, 并在所述正向出口处对所述业务进行解封装, 提取所述正向入口时间信息; 当业务到达全路径的正向出口 F处时,获取正向出口时间信息 t2 ,并对业务 进行解封装, 从 "入口时间信息" 的字段中提取正向入口时间信息 52403, obtaining forward exit time information that the service reaches the forward exit of the full path, and decapsulating the service at the forward exit, extracting the forward entry time information; When the forward exit F of the full path is reached, the forward exit time information t 2 is obtained , and the service is decapsulated, and the forward entry time information is extracted from the field of the "entry time information".
52404, 才艮据所述正向入口时间信息与正向出口时间信息, 计算所述全路径 的正向时延;  52404, calculating a forward delay of the full path according to the forward entry time information and the forward exit time information;
本步骤中, 全路径的正向时延即为正向出口时间与正向入口时间的时间差, 即正向时延 Td =112-1^。 In this step, the forward delay of the full path is the time difference between the forward exit time and the forward entry time, that is, the forward delay T d = 112-1^.
52405 , 将业务沿第一设备与第二设备之间的全路径进行反向传输; 本步骤将业务沿图 7所示的 F,-C,-A,-E,进行反向传输, F,为全路径的反向入 口, E'为全路径的反向出口。  52405, the service is reversely transmitted along the entire path between the first device and the second device; in this step, the service is reversely transmitted along the F, -C, -A, and -E shown in FIG. 7, F, For the reverse entry of the full path, E' is the reverse exit of the full path.
52406, 在所述全路径的反向入口处对所述业务进行封装, 封装后的业务中 包含所述业务到达所述反向入口处的反向入口时间信息以及所述全路径的正向 时延;  52406. Encapsulate the service at a reverse entry of the full path, where the encapsulated service includes reverse entry time information that the service arrives at the reverse entry and a forward time of the full path Delay
对反向入口处的业务进行封装, 其目的是插入用于测量时延的入口时间信 息及回送对端时延(即:正向时延)。本步骤对业务的封装过程可参见步骤 S2402, 在此不赘述。 本步骤在全路径的反向入口 F处对所述业务进行封装时, 在 "入 口时间信息" 的字段中插入所述业务到达所述正向入口 F处的反向入口时间信 息 t3 , 并在 "回送对端时延" 的字段中插入正向时延 TdEncapsulating the service at the reverse entrance, the purpose of which is to insert the entry time information for measuring the delay and the back-to-back delay (ie, the forward delay). For the encapsulation process of the service in this step, refer to step S2402, and details are not described herein. In this step, when the service is encapsulated at the reverse entry F of the full path, the reverse entry time information t 3 at which the service arrives at the forward entry F is inserted in the field of "entry time information", and Insert a forward delay T d in the field of "Return to peer delay".
52407, 获取所述业务到达所述全路径的反向出口处的反向出口时间信息, 并在所述反向出口处对所述业务进行解封装, 提取所述反向入口时间信息及所 述全路径的正向时延;  52407: Obtain reverse exit time information that the service reaches the reverse exit of the full path, and decapsulate the service at the reverse exit, extract the reverse entry time information, and Positive delay of the full path;
当业务到达全路径的反向出口 E,处时, 获取正向出口时间信息 t4 , 并对业 务进行解封装, 从 "入口时间信息" 的字段中提取正向入口时间信息 t3 , 从 "回 送对端时延" 的字段中提取正向时延 TdWhen the service reaches the reverse exit E of the full path, the forward exit time information t 4 is obtained , and the service is decapsulated, and the forward entry time information t 3 is extracted from the field of the "entry time information", from " Back The forward delay T d is extracted from the field of the peer delay.
52408, 根据所述反向入口时间信息与反向出口时间信息, 计算所述全路径 的反向时延;  52408. Calculate, according to the reverse entry time information and the reverse exit time information, a reverse delay of the full path.
本步骤中, 全路径的反向时延即为反向出口时间与反向入口时间的时间差, 即反向时延 Td'=t4-t3In this step, the reverse delay of the full path is the time difference between the reverse exit time and the reverse entry time, that is, the reverse delay T d '=t 4 -t 3 .
52409, 将所述全路径的正向时延与反向时延的时延差的绝对值, 确定为第 一设备与第二设备之间的全路径时延补偿值。  52409. Determine an absolute value of a delay difference between the forward delay and the reverse delay of the full path as a full path delay compensation value between the first device and the second device.
全路径的正向时延与反向时延的时延差
Figure imgf000018_0001
t t , 本步骤 将 Δ1确定为第一设备与第二设备之间的全路径时延补偿值。
Delay difference between forward delay and reverse delay of full path
Figure imgf000018_0001
Tt, this step determines Δ1 as the full path delay compensation value between the first device and the second device.
需要说明的是, 上述步骤 S2401-步骤 S2409以图 7所示示意图为例进行说 明, 其中全路径为: 第一设备内路径、 第一设备与第二设备之间的主路径, 及 第二设备内路径; 由于通过图 1-图 4所示实施例, 可保证第一设备与第二设备 之间的主备路径的对称性, 因此当全路径为: 第一设备内路径、 第二设备与第 二设备之间的备路径,及第二设备内路径时,可参照上述步骤 S2401-步骤 S2409 类似分析, 在此不赘述。 请参见图 10, 为图 5所示步骤 S205的实施例的流程图; 该步骤 S205具体 可包括以下步骤 S2501-步骤 S2503。  It should be noted that, the foregoing step S2401 - step S2409 is described by taking the schematic diagram shown in FIG. 7 as an example, wherein the full path is: a path in the first device, a main path between the first device and the second device, and a second device The internal path can be ensured by the embodiment shown in FIG. 1 to FIG. 4, and the symmetry of the active/standby path between the first device and the second device is ensured, so when the full path is: the first device path, the second device and For a backup path between the second device and the path in the second device, refer to the similar analysis in the above steps S2401 to S2409, and details are not described herein. Referring to FIG. 10, it is a flowchart of the embodiment of step S205 shown in FIG. 5. The step S205 may specifically include the following steps S2501-step S2503.
52501 , 比较第一设备与第二设备之间的全路径的正向时延与反向时延的大 小;  52501. Compare a forward delay and a reverse delay of a full path between the first device and the second device;
全路径时延补偿需要对路径时延较小的传输路径进行时延补偿, 因此, 本 步骤比较正向时延 Td与反向时延 Td'的大小, 如果 Td大于 Td', 则需要对全路径的 反向传输路径进行时延补偿; 如果 Td小于 Td', 则需要对全路径的正向传输路径 进行时延补偿。 The full path delay compensation needs to compensate the delay of the transmission path with a small path delay. Therefore, this step compares the magnitude of the forward delay T d and the reverse delay T d ', if T d is greater than T d ', Therefore, delay compensation is needed for the reverse path of the full path; if T d is less than T d ', delay compensation is needed for the forward path of the full path.
52502, 如果所述正向时延大于所述反向时延, 则将所述全路径中反向传输 的业务延迟所述全路径时延补偿值之后输出;  52502. If the forward delay is greater than the reverse delay, delay the service of the reverse transmission in the full path by delaying the full path delay compensation value;
本步骤中, 可在所述全路径的反向出口处设置 FIFO緩存器; 将所述全路径 中反向传输的业务写入所述 FIFO緩存器, 当到达所述全路径时延补偿值时, 从 所述 FIFO緩存器读出所述业务。  In this step, a FIFO buffer may be disposed at a reverse exit of the full path; a service that is reversely transmitted in the full path is written into the FIFO buffer, when the full path delay compensation value is reached Reading the service from the FIFO buffer.
52503, 如果所述反向时延大于所述正向时延, 则将所述全路径中正向传输 的业务延迟所述全路径时延补偿值之后输出。 52503. If the reverse delay is greater than the forward delay, forward transmission in the full path The service is delayed after the full path delay compensation value is output.
本步骤中, 可在所述全路径的正向出口处设置 FIFO緩存器; 将所述全路径 中正向传输的业务写入所述 FIFO緩存器, 当到达所述全路径时延补偿值时, 从 所述 FIFO緩存器读出所述业务。  In this step, a FIFO buffer may be disposed at a forward exit of the full path; a service that is forwardly transmitted in the full path is written into the FIFO buffer, and when the full path delay compensation value is reached, The service is read from the FIFO buffer.
通过上述实施例的描述, 采用本发明的时延补偿方法, 首先对进行业务传 输的设备进行时间同步, 以保证时延补偿的精度; 在时间同步的基础上, 计算 设备之间的主备时延补偿值, 并采用主备时延补偿值对设备间的主 /备路径传输 的业务进行时延补偿, 保证了主备路径的时延的对称性; 在主备时延对称性的 基础,还可实现设备间的全路径的上下时延的对称性,保证了业务的正常传输。 本发明实施例还提供了一种计算机存储介质, 其中, 该计算机存储介质可 存储有程序, 该程序执行时包括上述方法实施例中记载的时延补偿方法的部分 或全部步骤。  According to the description of the foregoing embodiment, the time delay compensation method of the present invention first performs time synchronization on the device for performing service transmission to ensure the accuracy of delay compensation; on the basis of time synchronization, the active/standby time between the computing devices is calculated. The delay value is used, and the delay of the service transmitted by the primary/secondary path between the devices is compensated by the active/standby delay compensation value to ensure the symmetry of the delay of the active and standby paths. It can also realize the symmetry of the upper and lower delays of the full path between devices to ensure the normal transmission of services. The embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes some or all of the steps of the delay compensation method described in the foregoing method embodiments.
下面将结合附图 11-附图 17,对本发明实施例提供的时延补偿装置进行详细 介绍, 需要说明的是, 下述的装置可以应用于上述方法实施例中, 以执行本发 明实施例提供的时延补偿方法。 A delay compensation device according to an embodiment of the present invention will be described in detail below with reference to FIG. 11 to FIG. 17. It should be noted that the following device may be applied to the foregoing method embodiments to provide an embodiment of the present invention. Time delay compensation method.
请参见图 11 , 为本发明实施例提供的一种时延补偿装置的结构示意图; 该 装置可包括: 同步模块 101、 主备补偿计算模块 102和主备补偿模块 103。  FIG. 11 is a schematic structural diagram of a time delay compensation apparatus according to an embodiment of the present invention; the apparatus may include: a synchronization module 101, an active/standby compensation calculation module 102, and an active/standby compensation module 103.
同步模块 101 , 用于对进行业务传输的第一设备与第二设备进行时间同步处 理;  The synchronization module 101 is configured to perform time synchronization processing on the first device and the second device that perform service transmission;
所述同步模块 101可采用如 1588时钟同步技术、 NTP同步技术等时间同步 技术, 对进行业务传输的第一设备和第二设备进行同步处理。 通过对业务传输 的设备间执行同步处理, 可以获得更高的传输时延的计算精度, 从而进行更为 精确的时延补偿。  The synchronization module 101 can perform synchronization processing on the first device and the second device that perform service transmission, such as the 1588 clock synchronization technology and the NTP synchronization technology. By performing synchronization processing between the devices transmitted by the service, higher calculation accuracy of the transmission delay can be obtained, thereby performing more accurate delay compensation.
主备补偿计算模块 102,用于计算同步后的第一设备与第二设备之间的主备 时延补偿值;  The active/standby compensation calculation module 102 is configured to calculate a master/slave delay compensation value between the synchronized first device and the second device;
由于第一设备与第二设备的主备路径的差异,主备路径的时延也可能存在差 异, 因此需要对主路径或备路径进行时延补偿, 以保证主备路径倒换时时延的 一致性。 所述主备补偿计算模块 101 计算同步后的第一设备与第二设备之间的 主备时延补偿值, 以实现主 /备路径的时延补偿。 The delay of the active/standby path may be different due to the difference between the active and standby paths of the first device and the second device. Therefore, the delay of the primary or backup path is required to ensure the consistency of the delay between the active and standby paths. . The active/standby compensation calculation module 101 calculates a synchronization between the first device and the second device. The active and standby delay compensation values are used to implement delay compensation for the active/standby path.
主备补偿模块 103, 用于采用所述主备时延补偿值,对第一设备与第二设备 之间的主路径或备路径传输的业务进行时延补偿。 所述主备补偿模块 103采用 主备时延补偿值对第一设备与第二设备之间的主路径或备路径传输的业务进行 时延补偿, 可保证主备路径倒换时时延的一致性。 请参见图 12, 为本发明实施例提供的主备补偿计算模块的结构示意图; 该 主备补偿计算模块 102可包括: 主传输单元 1201、 主时延计算单元 1202、 备传 输单元 1203、 备时延计算单元 1204和主备补偿确定单元 1205。  The active/standby compensation module 103 is configured to perform time delay compensation on the service transmitted by the primary path or the backup path between the first device and the second device by using the active/standby delay compensation value. The active/standby compensation module 103 uses the active/standby delay compensation value to delay the service transmitted by the primary or secondary path between the first device and the second device to ensure the consistency of the delay between the active and standby paths. FIG. 12 is a schematic structural diagram of an active/standby compensation calculation module according to an embodiment of the present invention; the active/standby compensation calculation module 102 may include: a primary transmission unit 1201, a primary delay calculation unit 1202, a backup transmission unit 1203, and a standby time. The calculation unit 1204 and the active/standby compensation determination unit 1205.
主传输单元 1201 , 用于将业务从第一设备发起传输, 经第一设备与第二设 备之间的主路径的发通道传输至第二设备时, 再将所述业务从第二设备环回, 经所述主路径的收通道传输至第一设备;  The primary transmission unit 1201 is configured to initiate a transmission from the first device, and when the transmission channel of the primary path between the first device and the second device is transmitted to the second device, the service is looped back from the second device. Transmitting to the first device via the receiving channel of the primary path;
主时延计算单元 1202, 用于根据所述业务在所述主路径中的传输时间, 计 算所述主路径的路径时延;  The main delay calculation unit 1202 is configured to calculate a path delay of the primary path according to a transmission time of the service in the primary path.
备传输单元 1203, 用于将业务从第一设备发起传输, 经第一设备与第二设 备之间的备路径的发通道传输至第二设备时, 再将所述业务从第二设备环回, 经所述备路径的收通道传输至第一设备;  The backup transmission unit 1203 is configured to initiate a transmission from the first device, and when the transmission path of the backup path between the first device and the second device is transmitted to the second device, the service is looped back from the second device. Transmitting to the first device via the receiving channel of the standby path;
备时延计算单元 1204, 用于根据所述业务在所述备路径中的传输时间, 计 算所述备路径的路径时延;  The backup delay calculation unit 1204 is configured to calculate a path delay of the standby path according to a transmission time of the service in the backup path.
主备补偿确定单元 1205, 用于将所述主路径与所述备路径的路径时延差的 绝对值的 1/2, 确定为第一设备与第二设备之间的主备时延补偿值。 请参见图 13, 为本发明实施例提供的主备补偿模块的结构示意图; 该主备 补偿模块 103可包括: 比较单元 1301和主备补偿单元 1302。  The active/standby compensation determining unit 1205 is configured to determine 1/2 of the absolute value of the path delay difference between the primary path and the standby path as the primary and backup delay compensation values between the first device and the second device. . FIG. 13 is a schematic structural diagram of a master-slave compensation module according to an embodiment of the present invention; the master-slave compensation module 103 may include: a comparison unit 1301 and a master-slave compensation unit 1302.
比较单元 1301 , 用于比较第一设备与第二设备之间的主路径与备路径的路 径时延的大小;  The comparing unit 1301 is configured to compare a size of a path delay between the primary path and the standby path between the first device and the second device.
主备时延补偿即对路径时延较小的路径进行时延补偿, 因此, 所述比较单 元 1301比较主路径的路径时延与备路径的路径时延的大小, 如果主路径的路径 时延大于备路径的路径时延, 则需要对备路径进行时延补偿; 如果主路径的路 径时延小于备路径的路径时延, 则需要对主路径进行时延补偿。 主备补偿单元 1302, 用于如果所述主路径的路径时延大于所述备路径的路 径时延, 则将所述备路径中传输的业务延迟所述主备时延补偿值之后输出; 或 者, 补偿单元, 用于如果所述备路径的路径时延大于所述主路径的路径时延, 则将所述主路径中传输的业务延迟所述主备时延补偿值之后输出。 The active/standby delay compensation is to delay the path with a small path delay. Therefore, the comparing unit 1301 compares the path delay of the primary path with the path delay of the standby path, and if the path delay of the primary path If the path delay of the backup path is greater than the path delay of the standby path, if the path delay of the primary path is smaller than the path delay of the standby path, delay compensation is required for the primary path. The active/standby compensation unit 1302 is configured to: after the path delay of the primary path is greater than the path delay of the standby path, delay the service transmitted in the standby path by delaying the primary and secondary delay compensation values; or And a compensation unit, configured to: if the path delay of the standby path is greater than the path delay of the primary path, delay the service transmitted in the primary path by delaying the primary and secondary delay compensation values.
所述主备补偿单元 1302可在需要进行时延补偿的路径的出口处设置 FIFO 緩存器, 将所述该路径中传输的业务写入所述 FIFO緩存器, 当到达所述主备时 延补偿值时, 从所述 FIFO緩存器读出所述业务, 以实现延迟主备时延补偿值之 后输出, 实现主备时延补偿。 请参见图 14, 为本发明实施例提供的另一种时延补偿装置的结构示意图; 该装置可包括: 同步模块 101、 主备补偿计算模块 102、 主备补偿模块 103、 全 补偿计算模块 104和全补偿模块 105。 其中, 同步模块 101、 主备补偿计算模块 102和主备补偿模块 103的结构可参见图 11-图 13所示实施例中的相关描述,在 此不赞述。  The active/standby compensation unit 1302 may set a FIFO buffer at an exit of a path that needs to perform delay compensation, and write the traffic transmitted in the path to the FIFO buffer, when the active/standby delay compensation is reached. In the case of the value, the service is read out from the FIFO buffer to implement delaying the output of the active and standby delay compensation values, and the active/standby delay compensation is implemented. FIG. 14 is a schematic structural diagram of another delay compensation device according to an embodiment of the present invention; the device may include: a synchronization module 101, a master compensation calculation module 102, a master compensation module 103, and a full compensation calculation module 104. And full compensation module 105. For the structure of the synchronization module 101, the active/standby compensation calculation module 102, and the active/standby compensation module 103, reference may be made to the related description in the embodiment shown in FIG. 11 to FIG. 13, which is not described herein.
全补偿计算模块 104,用于计算第一设备与第二设备之间的全路径时延补偿 值, 所述第一设备与第二设备之间的全路径包括: 第一设备内路径、 第一设备 与第二设备之间的主路径或备路径, 以及第二设备内路径;  The full compensation calculation module 104 is configured to calculate a full path delay compensation value between the first device and the second device, where the full path between the first device and the second device includes: a path within the first device, and a first a primary path or a secondary path between the device and the second device, and a path within the second device;
由于第一设备与第二设备的对业务的处理, 业务在设备内传输也会产生传 输时延, 当采用第一设备与第二设备之间的全路径进行业务传输时, 需要对全 路径进行时延补偿, 以保证全路径上下行时延的一致性。  Due to the processing of the service between the first device and the second device, the transmission of the service within the device also generates a transmission delay. When the entire path between the first device and the second device is used for service transmission, the full path needs to be performed. Delay compensation to ensure the consistency of the uplink and downlink delays of the full path.
全补偿模块 105, 用于采用所述全路径时延补偿值, 对第一设备与第二设备 之间传输的业务进行时延补偿。 所述全补偿模块 105 采用全路径时延补偿值对 第一设备与第二设备之间的全路径传输的业务进行时延补偿, 可保证全路径上 下行时延的一致性。 请参见图 15, 为本发明实施例提供的全补偿计算模块的结构示意图; 该全 补偿计算模块 104可包括: 正向处理单元 1401、 正向时延计算单元 1402、 反向 处理单元 1403、 反向时延计算单元 1404和全补偿确定单元 1405。  The full compensation module 105 is configured to perform time delay compensation on the service transmitted between the first device and the second device by using the full path delay compensation value. The full compensation module 105 uses the full path delay compensation value to delay the service of the full path transmission between the first device and the second device, and ensures the consistency of the uplink and downlink delays of the entire path. FIG. 15 is a schematic structural diagram of a full compensation calculation module according to an embodiment of the present invention; the full compensation calculation module 104 may include: a forward processing unit 1401, a forward delay calculation unit 1402, a reverse processing unit 1403, and a reverse The delay calculation unit 1404 and the full compensation determination unit 1405.
正向处理单元 1401 , 用于将业务沿第一设备与第二设备之间的全路径进行 正向传输, 在所述全路径的正向入口处对所述业务进行封装, 封装后的业务中 包含所述业务到达所述正向入口处的正向入口时间信息; 获取所述业务到达所 述全路径的正向出口处的正向出口时间信息, 并在所述正向出口处对所述业务 进行解封装, 提取所述正向入口时间信息; The forward processing unit 1401 is configured to forward the service along the entire path between the first device and the second device, and encapsulate the service at the forward entrance of the full path, where the service is encapsulated. Included with the forward entry time information that the service arrives at the forward entrance; obtain the forward exit time information that the service reaches the forward exit of the full path, and at the forward exit The service performs decapsulation, and extracts the forward entry time information;
正向时延计算单元 1402, 用于根据所述正向入口时间信息与正向出口时间 信息, 计算所述全路径的正向时延;  The forward delay calculation unit 1402 is configured to calculate a forward delay of the full path according to the forward entry time information and the forward exit time information;
反向处理单元 1403, 用于将业务沿第一设备与第二设备之间的全路径进行 反向传输, 在所述全路径的反向入口处对所述业务进行封装, 封装后的业务中 包含所述业务到达所述反向入口处的反向入口时间信息以及所述全路径的正向 时延; 获取所述业务到达所述全路径的反向出口处的反向出口时间信息, 并在 所述反向出口处对所述业务进行解封装, 提取所述反向入口时间信息及所述全 路径的正向时延;  The reverse processing unit 1403 is configured to perform reverse transmission of the service along the entire path between the first device and the second device, and encapsulate the service at the reverse entry of the full path, in the encapsulated service. And including a reverse entry time information of the service reaching the reverse entry and a forward delay of the full path; obtaining reverse exit time information that the service reaches the reverse exit of the full path, and Decapsulating the service at the reverse exit, extracting the reverse entry time information and a forward delay of the full path;
反向时延计算单元 1404, 用于根据所述反向入口时间信息与反向出口时间 信息, 计算所述全路径的反向时延;  The reverse delay calculation unit 1404 is configured to calculate a reverse delay of the full path according to the reverse entry time information and the reverse exit time information;
全补偿确定单元 1405, 用于将所述全路径的正向时延与反向时延的时延差 的绝对值, 确定为第一设备与第二设备之间的全路径时延补偿值。 请参见图 16, 为本发明实施例提供的全补偿模块的结构示意图; 该全补偿 模块 105可包括: 比较单元 1501和全补偿单元 1502。  The full compensation determining unit 1405 is configured to determine an absolute value of the delay difference between the forward delay and the reverse delay of the full path as a full path delay compensation value between the first device and the second device. Referring to FIG. 16, a schematic structural diagram of a full compensation module according to an embodiment of the present invention; the full compensation module 105 may include: a comparison unit 1501 and a full compensation unit 1502.
比较单元 1501 , 用于比较第一设备与第二设备之间的全路径的正向时延与 反向时延的大小;  The comparing unit 1501 is configured to compare a size of a forward delay and a reverse delay of the full path between the first device and the second device;
全路径时延补偿需要对路径时延较小的传输路径进行时延补偿, 因此, 本 步骤比较正向时延与反向时延的大小, 如果正向时延大于反向时延, 则需要对 全路径的反向传输路径进行时延补偿; 如果正向时延小于反向时延, 则需要对 全路径的正向传输路径进行时延补偿。  The full-path delay compensation needs to compensate the delay of the transmission path with a small path delay. Therefore, this step compares the forward delay and the reverse delay. If the forward delay is greater than the reverse delay, you need to Delay compensation is performed on the reverse path of the full path; if the forward delay is less than the reverse delay, delay compensation of the forward path of the full path is required.
全补偿单元 1502, 用于如果所述正向时延大于所述反向时延, 则将所述全 路径中反向传输的业务延迟所述全路径时延补偿值之后输出; 或者, 如果所述 反向时延大于所述正向时延, 则将所述全路径中正向传输的业务延迟所述全路 径时延补偿值之后输出。  a full compensation unit 1502, configured to delay, after the forward delay is greater than the reverse delay, the service that is reversely transmitted in the full path is delayed after the full path delay compensation value; or, if When the reverse delay is greater than the forward delay, the forward transmission service in the full path is delayed after the full path delay compensation value is output.
所述全补偿单元 1502可在需要进行时延补偿的路径的出口处设置 FIFO緩 存器, 将所述该路径中传输的业务写入所述 FIFO緩存器, 当到达所述全路径时 延补偿值时, 从所述 FIFO緩存器读出所述业务, 以实现延迟全路径时延补偿值 之后输出, 实现主备时延补偿。 The full compensation unit 1502 may set a FIFO buffer at an exit of a path that requires delay compensation, and write the traffic transmitted in the path to the FIFO buffer, when the full path is reached. When the compensation value is extended, the service is read out from the FIFO buffer to implement output after delaying the full path delay compensation value, and the active/standby delay compensation is implemented.
需要说明的是, 图 11-图 16所示的时延补偿装置的结构和功能可根据图 1- 图 15所示方法实施例中的方法具体实现, 其具体实现过程可以参照上述方法实  It should be noted that the structure and function of the time delay compensation device shown in FIG. 11 to FIG. 16 can be specifically implemented according to the method in the method embodiment shown in FIG. 1 to FIG. 15 , and the specific implementation process can refer to the foregoing method.
请参见图 17, 为本发明实施例提供的又一种时延补偿装置的结构示意图; 该装置可包括: 发射器、 接收器和处理器; 其中, 所述处理器执行如下步骤: 对进行业务传输的第一设备与第二设备进行时间同步处理; FIG. 17 is a schematic structural diagram of still another time delay compensation apparatus according to an embodiment of the present invention; the apparatus may include: a transmitter, a receiver, and a processor; wherein the processor performs the following steps: Transmitting the first device and the second device for time synchronization processing;
计算同步后的第一设备与第二设备之间的主备时延补偿值;  Calculating a primary and secondary delay compensation value between the synchronized first device and the second device;
采用所述主备时延补偿值,对第一设备与第二设备之间的主路径或备路径传 输的业务进行时延补偿。  The time delay compensation is performed on the service transmitted by the primary path or the backup path between the first device and the second device by using the active/standby delay compensation value.
在本发明实施例的一种可行的实施方式中:  In a possible implementation manner of the embodiment of the present invention:
所述处理器执行所述计算同步后的第一设备与第二设备之间的主备时延补 偿值的步骤时, 具体包括如下步骤:  The step of the processor performing the step of calculating the active/standby delay compensation value between the first device and the second device after the synchronization includes the following steps:
控制所述发射器将业务从第一设备发起传输, 经第一设备与第二设备之间 的主路径的发通道传输至第二设备时, 再将所述业务从第二设备环回, 经所述 主路径的收通道传输至第一设备;  Controlling the transmitter to initiate a transmission from the first device, and transmitting the service from the second device to the second device through the transmission path of the primary path between the first device and the second device, The receiving channel of the primary path is transmitted to the first device;
根据所述业务在所述主路径中的传输时间, 计算所述主路径的路径时延; 控制所述发射器将业务从第一设备发起传输, 经第一设备与第二设备之间 的备路径的发通道传输至第二设备时, 再将所述业务从第二设备环回, 经所述 备路径的收通道传输至第一设备;  Calculating a path delay of the primary path according to a transmission time of the service in the primary path; controlling the transmitter to initiate a transmission from a first device, and preparing a device between the first device and the second device When the transmission path of the path is transmitted to the second device, the service is looped back from the second device, and is transmitted to the first device through the receiving channel of the standby path.
根据所述业务在所述备路径中的传输时间, 计算所述备路径的路径时延; 将所述主路径与所述备路径的路径时延差的绝对值的 1/2, 确定为第一设备 与第二设备之间的主备时延补偿值。  Calculating a path delay of the standby path according to a transmission time of the service in the standby path; determining, as a first half of an absolute value of a path delay difference between the primary path and the standby path, The active and standby delay compensation values between a device and a second device.
在本发明实施例的另一种可行的实施方式中:  In another possible implementation manner of the embodiment of the present invention:
所述处理器执行所述采用所述主备时延补偿值, 对第一设备与第二设备之 间的主路径或备路径传输的业务进行时延补偿的步骤时, 具体包括如下步骤: 比较第一设备与第二设备之间的主路径与备路径的路径时延的大小; 如果所述主路径的路径时延大于所述备路径的路径时延, 则将所述备路径 中传输的业务延迟所述主备时延补偿值之后输出; When the processor performs the step of performing time delay compensation on the service transmitted by the primary path or the backup path between the first device and the second device by using the active/standby delay compensation value, the processor specifically includes the following steps: a path delay of the primary path and the standby path between the first device and the second device; if the path delay of the primary path is greater than the path delay of the standby path, the standby path is The service transmitted in the delay is output after delaying the primary and secondary delay compensation values;
如果所述备路径的路径时延大于所述主路径的路径时延, 则将所述主路径 中传输的业务延迟所述主备时延补偿值之后输出。  If the path delay of the standby path is greater than the path delay of the primary path, the service transmitted in the primary path is delayed after the primary and secondary delay compensation values are output.
在本发明实施例的又一种可行的实施方式中:  In yet another possible implementation manner of the embodiment of the present invention:
所述处理器执行所述将所述备路径中传输的业务延迟所述主备时延补偿值 之后输出的步骤时, 具体包括如下步骤:  When the processor performs the step of outputting the service transmitted in the backup path after delaying the primary and backup delay compensation values, the processor specifically includes the following steps:
在所述备路径的出口处设置 FIFO緩存器;  Setting a FIFO buffer at an exit of the standby path;
将所述备路径中传输的业务写入所述 FIFO緩存器, 当到达所述主备时延补 偿值时, 从所述 FIFO緩存器读出所述业务;  Transmitting the traffic transmitted in the backup path to the FIFO buffer, and when the primary and backup delay compensation values are reached, reading the service from the FIFO buffer;
所述处理器执行所述将所述主路径中传输的业务延迟所述主备时延补偿值 之后输出的步骤时, 具体包括如下步骤:  When the processor performs the step of outputting the service transmitted in the primary path after delaying the primary and backup delay compensation values, the processor specifically includes the following steps:
在所述主路径的出口处设置 FIFO緩存器;  Setting a FIFO buffer at an exit of the main path;
将所述主路径中传输的业务写入所述 FIFO緩存器, 当到达所述主备时延补 偿值时, 从所述 FIFO緩存器读出所述业务。  The traffic transmitted in the primary path is written to the FIFO buffer, and when the primary and backup delay compensation values are reached, the traffic is read from the FIFO buffer.
在本发明实施例的又一种可行的实施方式中:  In yet another possible implementation manner of the embodiment of the present invention:
所述处理器执行所述采用所述主备时延补偿值, 对第一设备与第二设备之 间的主路径或备路径传输的业务进行时延补偿的步骤之后, 还执行如下步骤: 计算第一设备与第二设备之间的全路径时延补偿值, 所述第一设备与第二 设备之间的全路径包括: 第一设备内路径、 第一设备与第二设备之间的主路径 或备路径, 以及第二设备内路径;  After the processor performs the step of performing delay compensation on the service transmitted by the primary path or the backup path between the first device and the second device by using the active/standby delay compensation value, performing the following steps: a full path delay compensation value between the first device and the second device, the full path between the first device and the second device includes: a path within the first device, and a master between the first device and the second device a path or a standby path, and a path within the second device;
采用所述全路径时延补偿值, 对第一设备与第二设备之间传输的业务进行 时延补偿。  The time delay compensation is performed on the service transmitted between the first device and the second device by using the full path delay compensation value.
在本发明实施例的又一种可行的实施方式中:  In yet another possible implementation manner of the embodiment of the present invention:
所述处理器执行所述计算第一设备与第二设备之间的全路径时延补偿值的 步骤时, 具体包括如下步骤:  When the processor performs the step of calculating a full path delay compensation value between the first device and the second device, the method specifically includes the following steps:
将业务沿第一设备与第二设备之间的全路径进行正向传输, 在所述全路径 的正向入口处对所述业务进行封装, 封装后的业务中包含所述业务到达所述正 向入口处的正向入口时间信息;  Forwarding the service along the full path between the first device and the second device, and encapsulating the service at the forward entrance of the full path, where the encapsulated service includes the service reaching the positive Forward entry time information to the entrance;
获取所述业务到达所述全路径的正向出口处的正向出口时间信息, 并在所 述正向出口处对所述业务进行解封装, 提取所述正向入口时间信息; 根据所述正向入口时间信息与正向出口时间信息, 计算所述全路径的正向 时延; Obtaining the forward exit time information that the service reaches the forward exit of the full path, and decapsulating the service at the forward exit, and extracting the forward entry time information; Calculating a forward delay of the full path according to the forward entry time information and the forward exit time information;
将业务沿第一设备与第二设备之间的全路径进行反向传输, 在所述全路径 的反向入口处对所述业务进行封装, 封装后的业务中包含所述业务到达所述反 向入口处的反向入口时间信息以及所述全路径的正向时延;  Forwarding the service along the entire path between the first device and the second device, and encapsulating the service at the reverse entry of the full path, where the encapsulated service includes the service reaching the reverse Reverse entry time information to the entrance and forward delay of the full path;
获取所述业务到达所述全路径的反向出口处的反向出口时间信息, 并在所 述反向出口处对所述业务进行解封装, 提取所述反向入口时间信息及所述全路 径的正向时延;  Obtaining reverse exit time information that the service reaches the reverse exit of the full path, and decapsulating the service at the reverse exit, extracting the reverse entry time information and the full path Positive delay
根据所述反向入口时间信息与反向出口时间信息, 计算所述全路径的反向 时延;  Calculating a reverse delay of the full path according to the reverse entry time information and reverse exit time information;
将所述全路径的正向时延与反向时延的时延差的绝对值, 确定为第一设备 与第二设备之间的全路径时延补偿值。  The absolute value of the delay difference between the forward delay and the reverse delay of the full path is determined as a full path delay compensation value between the first device and the second device.
在本发明实施例的又一种可行的实施方式中:  In yet another possible implementation manner of the embodiment of the present invention:
所述处理器执行所述采用所述全路径时延补偿值, 对第一设备与第二设备 之间传输的业务进行时延补偿的步骤时, 具体包括如下步骤:  When the processor performs the step of performing time delay compensation on the service transmitted between the first device and the second device by using the full path delay compensation value, the processor specifically includes the following steps:
比较第一设备与第二设备之间的全路径的正向时延与反向时延的大小; 如果所述正向时延大于所述反向时延, 则将所述全路径中反向传输的业务 延迟所述全路径时延补偿值之后输出;  Comparing a size of a forward path and a reverse delay of the full path between the first device and the second device; if the forward delay is greater than the reverse delay, inverting the full path The transmitted service is delayed after the full path delay compensation value is output;
如果所述反向时延大于所述正向时延, 则将所述全路径中正向传输的业务 延迟所述全路径时延补偿值之后输出。  If the reverse delay is greater than the forward delay, the forward transmission traffic in the full path is delayed after the full path delay compensation value is output.
在本发明实施例的又一种可行的实施方式中:  In yet another possible implementation manner of the embodiment of the present invention:
所述处理器执行所述将所述全路径中反向传输的业务延迟所述全路径时延 补偿值之后输出的步骤时, 具体包括如下步骤:  When the processor performs the step of outputting the reverse-transferred service in the full path after delaying the full-path delay compensation value, the processor specifically includes the following steps:
在所述全路径的反向出口处设置 FIFO緩存器;  Setting a FIFO buffer at a reverse exit of the full path;
将所述全路径中反向传输的业务写入所述 FIFO緩存器, 当到达所述全路径 时延补偿值时, 从所述 FIFO緩存器读出所述业务;  Transmitting the reversely transmitted traffic in the full path to the FIFO buffer, and when the full path delay compensation value is reached, reading the service from the FIFO buffer;
所述处理器执行所述将所述全路径中正向传输的业务延迟所述全路径时延 补偿值之后输出的步骤时, 具体包括如下步骤:  The step of the processor performing the step of outputting the forward-transferred service in the full path after delaying the full-path delay compensation value includes the following steps:
在所述全路径的正向出口处设置 FIFO緩存器;  Setting a FIFO buffer at a forward exit of the full path;
将所述全路径中正向传输的业务写入所述 FIFO緩存器, 当到达所述全路径 时延补偿值时, 从所述 FIFO緩存器读出所述业务。 Transmitting the forward-transmitted traffic in the full path to the FIFO buffer, when the full path is reached When the delay compensation value is obtained, the service is read from the FIFO buffer.
通过上述实施例的描述, 采用本发明的时延补偿方法, 首先对进行业务传 输的设备进行时间同步, 以保证时延补偿的精度; 在时间同步的基础上, 计算 设备之间的主备时延补偿值, 并采用主备时延补偿值对设备间的主 /备路径传输 的业务进行时延补偿, 保证了主备路径的时延的对称性; 在主备时延对称性的 基础,还可实现设备间的全路径的上下时延的对称性,保证了业务的正常传输。  According to the description of the foregoing embodiment, the time delay compensation method of the present invention first performs time synchronization on the device for performing service transmission to ensure the accuracy of delay compensation; on the basis of time synchronization, the active/standby time between the computing devices is calculated. The delay value is used, and the delay of the service transmitted by the primary/secondary path between the devices is compensated by the active/standby delay compensation value to ensure the symmetry of the delay of the active and standby paths. It can also realize the symmetry of the upper and lower delays of the full path between devices to ensure the normal transmission of services.
通过以上的实施方式的描述, 本领域的技术人员可以清楚地了解到各实施 方式可借助软件加必需的通用硬件平台的方式来实现, 当然也可以通过硬件。 基于这样的理解, 上述技术方案本质上或者说对现有技术做出贡献的部分可以 以软件产品的形式体现出来, 该计算机软件产品可以存储在计算机可读存储介 质中, 如 ROM/RAM、 磁碟、 光盘等, 包括若干指令用以使得一台计算机设备 (可以是个人计算机, 服务器, 或者网络设备等)执行各个实施例或者实施例 的某些部分所述的方法。  Through the description of the above embodiments, those skilled in the art can clearly understand that the various embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware. Based on such understanding, the above-described technical solutions may be embodied in the form of software products in essence or in the form of software products, which may be stored in a computer readable storage medium such as ROM/RAM, magnetic Discs, optical discs, etc., include instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments or portions of the embodiments.
以上所述的实施方式, 并不构成对该技术方案保护范围的限定。 任何在上 述实施方式的精神和原则之内所作的修改、 等同替换和改进等, 均应包含在该 技术方案的保护范围之内。  The above-described embodiments do not constitute a limitation on the scope of protection of the technical solutions. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the above-described embodiments are intended to be included within the scope of the technical solution.

Claims

权 利 要 求 Rights request
1、 一种时延补偿方法, 其特征在于, 包括: A delay compensation method, characterized in that:
对进行业务传输的第一设备与第二设备进行时间同步处理;  Performing time synchronization processing on the first device and the second device that perform service transmission;
计算同步后的第一设备与第二设备之间的主备时延补偿值;  Calculating a primary and secondary delay compensation value between the synchronized first device and the second device;
采用所述主备时延补偿值,对第一设备与第二设备之间的主路径或备路径传 输的业务进行时延补偿。  The time delay compensation is performed on the service transmitted by the primary path or the backup path between the first device and the second device by using the active/standby delay compensation value.
2、 如权利要求 1所述的方法, 其特征在于, 所述计算同步后的第一设备与 第二设备之间的主备时延补偿值, 包括: The method according to claim 1, wherein the calculating the active/standby delay compensation value between the synchronized first device and the second device includes:
将业务从第一设备发起传输, 经第一设备与第二设备之间的主路径的发通 道传输至第二设备时, 再将所述业务从第二设备环回, 经所述主路径的收通道 传输至第一设备;  When the service is initiated from the first device and transmitted to the second device through the sending path of the primary path between the first device and the second device, the service is looped back from the second device, and the primary path is The receiving channel is transmitted to the first device;
根据所述业务在所述主路径中的传输时间, 计算所述主路径的路径时延; 将业务从第一设备发起传输, 经第一设备与第二设备之间的备路径的发通 道传输至第二设备时, 再将所述业务从第二设备环回, 经所述备路径的收通道 传输至第一设备;  Calculating a path delay of the primary path according to a transmission time of the service in the primary path; transmitting a service from the first device, and transmitting the path through the backup path between the first device and the second device When the device is connected to the second device, the service is looped back from the second device, and is transmitted to the first device through the receiving channel of the standby path.
根据所述业务在所述备路径中的传输时间, 计算所述备路径的路径时延; 将所述主路径与所述备路径的路径时延差的绝对值的 1/2, 确定为第一设备 与第二设备之间的主备时延补偿值;  Calculating a path delay of the standby path according to a transmission time of the service in the standby path; determining, as a first half of an absolute value of a path delay difference between the primary path and the standby path, The active/standby delay compensation value between a device and the second device;
其中, 所述主路径的收发通道的长度相同, 所述备路径的收发通道的长度 相同。  The length of the transceiver channel of the primary path is the same, and the length of the transceiver channel of the standby path is the same.
3、如权利要求 2所述的方法,其特征在于,所述采用所述主备时延补偿值, 对第一设备与第二设备之间的主路径或备路径传输的业务进行时延补偿, 包括: 比较第一设备与第二设备之间的主路径与备路径的路径时延的大小; 如果所述主路径的路径时延大于所述备路径的路径时延, 则将所述备路径 中传输的业务延迟所述主备时延补偿值之后输出; The method according to claim 2, wherein the delay compensation of the service transmitted by the primary path or the backup path between the first device and the second device is performed by using the active/standby delay compensation value The method includes: comparing a path delay of the primary path and the backup path between the first device and the second device; if the path delay of the primary path is greater than the path delay of the standby path, The service transmitted in the path is delayed after the active/standby delay compensation value is output;
如果所述备路径的路径时延大于所述主路径的路径时延, 则将所述主路径 中传输的业务延迟所述主备时延补偿值之后输出。 4、 如权利要求 3所述的方法, 其特征在于, 所述将所述备路径中传输的业 务延迟所述主备时延补偿值之后输出, 包括: If the path delay of the standby path is greater than the path delay of the primary path, the service transmitted in the primary path is delayed after the active/standby delay compensation value is output. The method of claim 3, wherein the outputting the service transmitted in the standby path after the delay of the active/standby delay compensation value comprises:
在所述备路径的出口处设置先入先出 FIFO緩存器;  Setting a first-in first-out FIFO buffer at an exit of the standby path;
将所述备路径中传输的业务写入所述 FIFO緩存器, 当到达所述主备时延补 偿值时, 从所述 FIFO緩存器读出所述业务;  Transmitting the traffic transmitted in the backup path to the FIFO buffer, and when the primary and backup delay compensation values are reached, reading the service from the FIFO buffer;
所述将所述主路径中传输的业务延迟所述主备时延补偿值之后输出, 包括: 在所述主路径的出口处设置 FIFO緩存器;  The outputting the service transmitted in the primary path after delaying the primary and secondary delay compensation values includes: setting a FIFO buffer at an exit of the primary path;
将所述主路径中传输的业务写入所述 FIFO緩存器, 当到达所述主备时延补 偿值时, 从所述 FIFO緩存器读出所述业务。  The traffic transmitted in the primary path is written to the FIFO buffer, and when the primary and backup delay compensation values are reached, the traffic is read from the FIFO buffer.
5、 如权利要求 1-4任一项所述的方法, 其特征在于, 所述采用所述主备时 延补偿值, 对第一设备与第二设备之间的主路径或备路径传输的业务进行时延 补偿之后, 还包括: The method according to any one of claims 1-4, wherein the using the primary and backup delay compensation values to transmit the primary path or the standby path between the first device and the second device After the business delays compensation, it also includes:
计算第一设备与第二设备之间的全路径时延补偿值, 所述第一设备与第二 设备之间的全路径包括: 第一设备内路径、 第一设备与第二设备之间的主路径 或备路径, 以及第二设备内路径;  Calculating a full path delay compensation value between the first device and the second device, where the full path between the first device and the second device includes: a path between the first device, and between the first device and the second device a primary path or a standby path, and a path within the second device;
采用所述全路径时延补偿值, 对第一设备与第二设备之间的全路径传输的 业务进行时延补偿。  The full path delay compensation value is used to delay the service of the full path transmission between the first device and the second device.
6、 如权利要求 5所述的方法, 其特征在于, 所述计算第一设备与第二设备 之间的全路径时延补偿值, 包括: The method of claim 5, wherein the calculating the full path delay compensation value between the first device and the second device comprises:
将业务沿第一设备与第二设备之间的全路径进行正向传输, 在所述全路径 的正向入口处对所述业务进行封装, 封装后的业务中包含所述业务到达所述正 向入口处的正向入口时间信息;  Forwarding the service along the full path between the first device and the second device, and encapsulating the service at the forward entrance of the full path, where the encapsulated service includes the service reaching the positive Forward entry time information to the entrance;
获取所述业务到达所述全路径的正向出口处的正向出口时间信息, 并在所 述正向出口处对所述业务进行解封装, 提取所述正向入口时间信息;  Obtaining the forward exit time information of the service reaching the forward exit of the full path, and decapsulating the service at the forward exit, extracting the forward entry time information;
根据所述正向入口时间信息与正向出口时间信息, 计算所述全路径的正向 时延;  Calculating a forward delay of the full path according to the forward entry time information and the forward exit time information;
将业务沿第一设备与第二设备之间的全路径进行反向传输, 在所述全路径 的反向入口处对所述业务进行封装, 封装后的业务中包含所述业务到达所述反 向入口处的反向入口时间信息以及所述全路径的正向时延; Reversely transmitting the service along the full path between the first device and the second device, where the full path Encapsulating the service at a reverse entry, where the encapsulated service includes reverse entry time information of the service reaching the reverse entry and a forward delay of the full path;
获取所述业务到达所述全路径的反向出口处的反向出口时间信息, 并在所 述反向出口处对所述业务进行解封装, 提取所述反向入口时间信息及所述全路 径的正向时延;  Obtaining reverse exit time information that the service reaches the reverse exit of the full path, and decapsulating the service at the reverse exit, extracting the reverse entry time information and the full path Positive delay
根据所述反向入口时间信息与反向出口时间信息, 计算所述全路径的反向 时延;  Calculating a reverse delay of the full path according to the reverse entry time information and reverse exit time information;
将所述全路径的正向时延与反向时延的时延差的绝对值, 确定为第一设备 与第二设备之间的全路径时延补偿值。  The absolute value of the delay difference between the forward delay and the reverse delay of the full path is determined as a full path delay compensation value between the first device and the second device.
7、 如权利要求 6所述的方法, 其特征在于, 所述采用所述全路径时延补偿 值, 对第一设备与第二设备之间的全路径传输的业务进行时延补偿, 包括: The method according to claim 6, wherein the using the full path delay compensation value to delay the service of the full path transmission between the first device and the second device includes:
比较第一设备与第二设备之间的全路径的正向时延与反向时延的大小; 如果所述正向时延大于所述反向时延, 则将所述全路径中反向传输的业务 延迟所述全路径时延补偿值之后输出;  Comparing a size of a forward path and a reverse delay of the full path between the first device and the second device; if the forward delay is greater than the reverse delay, inverting the full path The transmitted service is delayed after the full path delay compensation value is output;
如果所述反向时延大于所述正向时延, 则将所述全路径中正向传输的业务 延迟所述全路径时延补偿值之后输出。  If the reverse delay is greater than the forward delay, the forward transmission traffic in the full path is delayed after the full path delay compensation value is output.
8、 如权利要求 7所述的方法, 其特征在于, 所述将所述全路径中反向传输 的业务延迟所述全路径时延补偿值之后输出, 包括: The method according to claim 7, wherein the outputting the reverse-transferred traffic in the full path after the delay of the full-path delay compensation value comprises:
在所述全路径的反向出口处设置 FIFO緩存器;  Setting a FIFO buffer at a reverse exit of the full path;
将所述全路径中反向传输的业务写入所述 FIFO緩存器, 当到达所述全路径 时延补偿值时, 从所述 FIFO緩存器读出所述业务;  Transmitting the reversely transmitted traffic in the full path to the FIFO buffer, and when the full path delay compensation value is reached, reading the service from the FIFO buffer;
所述将所述全路径中正向传输的业务延迟所述全路径时延补偿值之后输出, 包括:  And delaying, after the delaying the full path delay compensation value, the service that is forwardly transmitted in the full path, including:
在所述全路径的正向出口处设置 FIFO緩存器;  Setting a FIFO buffer at a forward exit of the full path;
将所述全路径中正向传输的业务写入所述 FIFO緩存器, 当到达所述全路径 时延补偿值时, 从所述 FIFO緩存器读出所述业务。 种时延补偿装置, 其特征在于, 同步模块, 用于对进行业务传输的第一设备与第二设备进行时间同步处理; 主备补偿计算模块,用于计算同步后的第一设备与第二设备之间的主备时延 补偿值; The traffic forwarded in the full path is written to the FIFO buffer, and when the full path delay compensation value is reached, the service is read from the FIFO buffer. Delay compensation device, characterized in that a synchronization module, configured to perform time synchronization processing on the first device and the second device that perform service transmission; and an active/standby compensation calculation module, configured to calculate a primary and backup delay compensation value between the synchronized first device and the second device ;
主备补偿模块, 用于采用所述主备时延补偿值, 对第一设备与第二设备之 间的主路径或备路径传输的业务进行时延补偿。  The active/standby compensation module is configured to perform delay compensation on the service transmitted by the primary path or the backup path between the first device and the second device by using the active/standby delay compensation value.
10、如权利要求 9所述的装置, 其特征在于, 所述主备补偿计算模块包括: 主传输单元, 用于将业务从第一设备发起传输, 经第一设备与第二设备之 间的主路径的发通道传输至第二设备时, 再将所述业务从第二设备环回, 经所 述主路径的收通道传输至第一设备; The apparatus according to claim 9, wherein the active/standby compensation calculation module comprises: a primary transmission unit, configured to initiate a transmission from a first device, between the first device and the second device When the transmission path of the primary path is transmitted to the second device, the service is looped back from the second device, and is transmitted to the first device through the receiving channel of the primary path;
主时延计算单元, 用于根据所述业务在所述主路径中的传输时间, 计算所 述主路径的路径时延;  a primary delay calculation unit, configured to calculate a path delay of the primary path according to a transmission time of the service in the primary path;
备传输单元, 用于将业务从第一设备发起传输, 经第一设备与第二设备之 间的备路径的发通道传输至第二设备时, 再将所述业务从第二设备环回, 经所 述备路径的收通道传输至第一设备;  a backup transmission unit, configured to initiate a transmission from the first device, and when the transmission path of the backup path between the first device and the second device is transmitted to the second device, the service is looped back from the second device. Transmitting to the first device via the receiving channel of the standby path;
备时延计算单元, 用于根据所述业务在所述备路径中的传输时间, 计算所 述备路径的路径时延;  a time delay calculation unit, configured to calculate a path delay of the standby path according to a transmission time of the service in the standby path;
主备补偿确定单元, 用于将所述主路径与所述备路径的路径时延差的绝对 值的 1/2, 确定为第一设备与第二设备之间的主备时延补偿值;  And an active/standby compensation determining unit, configured to determine 1/2 of an absolute value of a path delay difference between the primary path and the standby path as a primary and secondary delay compensation value between the first device and the second device;
其中, 所述主路径的收发通道的长度相同, 所述备路径的收发通道的长度 相同。  The length of the transceiver channel of the primary path is the same, and the length of the transceiver channel of the standby path is the same.
11、 如权利要求 10所述的装置, 其特征在于, 所述主备补偿模块包括: 比较单元, 用于比较第一设备与第二设备之间的主路径与备路径的路径时 延的大小; The apparatus according to claim 10, wherein the active/standby compensation module comprises: a comparing unit, configured to compare a path delay of a primary path and a standby path between the first device and the second device ;
主备补偿单元, 用于如果所述主路径的路径时延大于所述备路径的路径时 延, 则将所述备路径中传输的业务延迟所述主备时延补偿值之后输出; 或者, 补偿单元, 用于如果所述备路径的路径时延大于所述主路径的路径时延, 则将 所述主路径中传输的业务延迟所述主备时延补偿值之后输出。 12、 如权利要求 11所述的装置, 其特征在于, 所述主备补偿单元具体用于 如果所述主路径的路径时延大于所述备路径的路径时延, 在所述备路径的出口 处设置先入先出 FIFO緩存器, 将所述备路径中传输的业务写入所述 FIFO緩存 器, 当到达所述主备时延补偿值时, 从所述 FIFO緩存器读出所述业务; 或者, 用于如果所述备路径的路径时延大于所述主路径的路径时延, 在所述主路 径的出口处设置 FIFO緩存器, 将所述主路径中传输的业务写入所述 FIFO緩存 器, 当到达所述主备时延补偿值时, 从所述 FIFO緩存器读出所述业务。 And an active/standby compensation unit, configured to: after the path delay of the primary path is greater than the path delay of the standby path, delay the service transmitted in the standby path by delaying the primary and secondary delay compensation values; or The compensation unit is configured to: if the path delay of the standby path is greater than the path delay of the primary path, delay the service transmitted in the primary path by delaying the primary and secondary delay compensation values. The apparatus according to claim 11, wherein the active/standby compensation unit is specifically configured to: if a path delay of the primary path is greater than a path delay of the standby path, at an exit of the standby path Setting a first-in first-out FIFO buffer, writing the traffic transmitted in the backup path to the FIFO buffer, and when the primary/standby delay compensation value is reached, reading the service from the FIFO buffer; Or, if a path delay of the standby path is greater than a path delay of the primary path, setting a FIFO buffer at an exit of the primary path, and writing a service transmitted in the primary path to the FIFO a buffer, when the master/slave delay compensation value is reached, reading the service from the FIFO buffer.
13、 如权利要求 9-12任一项所述的装置, 其特征在于, 还包括: 13. The apparatus according to any one of claims 9 to 12, further comprising:
全补偿计算模块, 用于计算第一设备与第二设备之间的全路径时延补偿值, 所述第一设备与第二设备之间的全路径包括: 第一设备内路径、 第一设备与第 二设备之间的主路径或备路径, 以及第二设备内路径;  a full compensation calculation module, configured to calculate a full path delay compensation value between the first device and the second device, where the full path between the first device and the second device includes: a path within the first device, and a first device a primary path or a secondary path with the second device, and a path within the second device;
全补偿模块, 用于采用所述全路径时延补偿值, 对第一设备与第二设备之 间传输的业务进行时延补偿。  The full compensation module is configured to perform delay compensation on the service transmitted between the first device and the second device by using the full path delay compensation value.
14、 如权利要求 13所述的装置, 其特征在于, 所述全补偿计算模块包括: 正向处理单元, 用于将业务沿第一设备与第二设备之间的全路径进行正向 传输, 在所述全路径的正向入口处对所述业务进行封装, 封装后的业务中包含 所述业务到达所述正向入口处的正向入口时间信息; 获取所述业务到达所述全 路径的正向出口处的正向出口时间信息, 并在所述正向出口处对所述业务进行 解封装, 提取所述正向入口时间信息; The device according to claim 13, wherein the full compensation calculation module comprises: a forward processing unit, configured to forward the service along the full path between the first device and the second device, Encapsulating the service at a forward path of the full path, where the encapsulated service includes forward entry time information that the service arrives at the forward entry; acquiring the service to the full path Forward export time information at the forward exit, and decapsulating the service at the forward exit to extract the forward entry time information;
正向时延计算单元, 用于根据所述正向入口时间信息与正向出口时间信息, 计算所述全路径的正向时延;  a forward delay calculation unit, configured to calculate a forward delay of the full path according to the forward entry time information and the forward exit time information;
反向处理单元, 用于将业务沿第一设备与第二设备之间的全路径进行反向 传输, 在所述全路径的反向入口处对所述业务进行封装, 封装后的业务中包含 所述业务到达所述反向入口处的反向入口时间信息以及所述全路径的正向时延; 获取所述业务到达所述全路径的反向出口处的反向出口时间信息, 并在所述反 向出口处对所述业务进行解封装, 提取所述反向入口时间信息及所述全路径的 正向时延;  a reverse processing unit, configured to reverse the service along the full path between the first device and the second device, and encapsulate the service at the reverse entry of the full path, where the encapsulated service includes The reverse entry time information of the service reaching the reverse entry and the forward delay of the full path; obtaining the reverse exit time information of the service reaching the reverse exit of the full path, and Decapsulating the service at the reverse egress, extracting the reverse entry time information and a forward delay of the full path;
反向时延计算单元, 用于根据所述反向入口时间信息与反向出口时间信息, 计算所述全路径的反向时延; a reverse delay calculation unit, configured to use the reverse entry time information and the reverse exit time information, Calculating a reverse delay of the full path;
全补偿确定单元, 用于将所述全路径的正向时延与反向时延的时延差的绝 对值, 确定为第一设备与第二设备之间的全路径时延补偿值。  The total compensation determining unit is configured to determine an absolute value of the delay difference between the forward delay and the reverse delay of the full path as a full path delay compensation value between the first device and the second device.
15、 如权利要求 14所述的装置, 其特征在于, 所述全补偿模块包括: 比较单元, 用于比较第一设备与第二设备之间的全路径的正向时延与反向 时延的大小; The device according to claim 14, wherein the full compensation module comprises: a comparing unit, configured to compare a forward delay and a reverse delay of a full path between the first device and the second device the size of;
全补偿单元, 用于如果所述正向时延大于所述反向时延, 则将所述全路径 中反向传输的业务延迟所述全路径时延补偿值之后输出; 或者, 如果所述反向 时延大于所述正向时延, 则将所述全路径中正向传输的业务延迟所述全路径时 延补偿值之后输出。  a full compensation unit, configured to: if the forward delay is greater than the reverse delay, delay the service of the reverse transmission in the full path after the full path delay compensation value; or, if If the reverse delay is greater than the forward delay, the forward transmission service in the full path is delayed after the full path delay compensation value is output.
16、 如权利要求 15 所述的装置, 其特征在于, 所述全补偿单元具体用于: 如果所述正向时延大于所述反向时延,在所述全路径的反向出口处设置 FIFO緩 存器, 将所述全路径中反向传输的业务写入所述 FIFO緩存器, 当到达所述全路 径时延补偿值时, 从所述 FIFO緩存器读出所述业务; 或者, The device according to claim 15, wherein the full compensation unit is specifically configured to: if the forward delay is greater than the reverse delay, set at a reverse exit of the full path a FIFO buffer, writes the reversely transmitted traffic in the full path to the FIFO buffer, and when the full path delay compensation value is reached, reads the service from the FIFO buffer; or
用于如果所述反向时延大于所述正向时延, 在所述全路径的正向出口处设 置 FIFO緩存器, 将所述全路径中正向传输的业务写入所述 FIFO緩存器, 当到 达所述全路径时延补偿值时, 从所述 FIFO緩存器读出所述业务。  And if the reverse delay is greater than the forward delay, setting a FIFO buffer at a forward exit of the full path, and writing a forward-transmitted service in the full path to the FIFO buffer, When the full path delay compensation value is reached, the traffic is read from the FIFO buffer.
17、 一种计算机存储介质, 其特征在于: 17. A computer storage medium, characterized by:
所述计算机存储介质可存储有程序,该程序执行时包括如权利要求 1-8任一 项所述的步骤。  The computer storage medium can store a program that, when executed, includes the steps of any of claims 1-8.
18、 一种时延补偿装置, 其特征在于, 包括: 发射器, 接收器和处理器; 其中, 所述处理器执行如下步骤: 18. A delay compensation apparatus, comprising: a transmitter, a receiver, and a processor; wherein the processor performs the following steps:
对进行业务传输的第一设备与第二设备进行时间同步处理;  Performing time synchronization processing on the first device and the second device that perform service transmission;
计算同步后的第一设备与第二设备之间的主备时延补偿值;  Calculating a primary and secondary delay compensation value between the synchronized first device and the second device;
采用所述主备时延补偿值,对第一设备与第二设备之间的主路径或备路径传 输的业务进行时延补偿。 19、 如权利要求 18所述的装置, 其特征在于, 所述处理器执行所述计算同 步后的第一设备与第二设备之间的主备时延补偿值的步骤时, 具体包括如下步 骤: The time delay compensation is performed on the service transmitted by the primary path or the backup path between the first device and the second device by using the active/standby delay compensation value. The device according to claim 18, wherein the step of performing the step of calculating the active/standby delay compensation value between the first device and the second device after the synchronization is performed, specifically includes the following steps :
控制所述发射器将业务从第一设备发起传输 , 经第一设备与第二设备之间 的主路径的发通道传输至第二设备时, 再将所述业务从第二设备环回, 经所述 主路径的收通道传输至第一设备;  Controlling the transmitter to initiate a transmission from the first device, and transmitting the service from the second device to the second device through the transmission path of the primary path between the first device and the second device, The receiving channel of the primary path is transmitted to the first device;
根据所述业务在所述主路径中的传输时间, 计算所述主路径的路径时延; 控制所述发射器将业务从第一设备发起传输 , 经第一设备与第二设备之间 的备路径的发通道传输至第二设备时, 再将所述业务从第二设备环回, 经所述 备路径的收通道传输至第一设备;  Calculating a path delay of the primary path according to a transmission time of the service in the primary path; controlling the transmitter to initiate a transmission from a first device, and preparing a device between the first device and the second device When the transmission path of the path is transmitted to the second device, the service is looped back from the second device, and is transmitted to the first device through the receiving channel of the standby path.
根据所述业务在所述备路径中的传输时间, 计算所述备路径的路径时延; 将所述主路径与所述备路径的路径时延差的绝对值的 1/2, 确定为第一设备 与第二设备之间的主备时延补偿值;  Calculating a path delay of the standby path according to a transmission time of the service in the standby path; determining, as a first half of an absolute value of a path delay difference between the primary path and the standby path, The active/standby delay compensation value between a device and the second device;
其中, 所述主路径的收发通道的长度相同, 所述备路径的收发通道的长度 相同。  The length of the transceiver channel of the primary path is the same, and the length of the transceiver channel of the standby path is the same.
20、 如权利要求 19所述的装置, 其特征在于, 所述处理器执行所述采用所 述主备时延补偿值, 对第一设备与第二设备之间的主路径或备路径传输的业务 进行时延补偿的步骤时, 具体包括如下步骤: The device according to claim 19, wherein the processor performs the transmission of the primary or secondary delay compensation value to the primary path or the backup path between the first device and the second device. When the service performs the step of delay compensation, the following steps are specifically included:
比较第一设备与第二设备之间的主路径与备路径的路径时延的大小; 如果所述主路径的路径时延大于所述备路径的路径时延, 则将所述备路径 中传输的业务延迟所述主备时延补偿值之后输出;  Comparing the size of the path delay between the primary path and the secondary path between the first device and the second device; if the path delay of the primary path is greater than the path delay of the standby path, transmitting the path in the standby path The service is delayed after the active/standby delay compensation value is output;
如果所述备路径的路径时延大于所述主路径的路径时延, 则将所述主路径 中传输的业务延迟所述主备时延补偿值之后输出。  If the path delay of the standby path is greater than the path delay of the primary path, the service transmitted in the primary path is delayed after the primary and secondary delay compensation values are output.
21、 如权利要求 20所述的装置, 其特征在于, 所述处理器执行所述将所述 备路径中传输的业务延迟所述主备时延补偿值之后输出的步骤时, 具体包括如 下步骤: The device according to claim 20, wherein the processor performs the step of outputting the service transmitted in the backup path after delaying the active/standby delay compensation value, and specifically includes the following steps. :
在所述备路径的出口处设置先入先出 FIFO緩存器; 将所述备路径中传输的业务写入所述 FIFO緩存器, 当到达所述主备时延补 偿值时, 从所述 FIFO緩存器读出所述业务; Setting a first-in first-out FIFO buffer at an exit of the standby path; Transmitting the traffic transmitted in the backup path to the FIFO buffer, and when the primary and backup delay compensation values are reached, reading the service from the FIFO buffer;
所述处理器执行所述将所述主路径中传输的业务延迟所述主备时延补偿值 之后输出的步骤时, 具体包括如下步骤:  When the processor performs the step of outputting the service transmitted in the primary path after delaying the primary and backup delay compensation values, the processor specifically includes the following steps:
在所述主路径的出口处设置 FIFO緩存器;  Setting a FIFO buffer at an exit of the main path;
将所述主路径中传输的业务写入所述 FIFO緩存器, 当到达所述主备时延补 偿值时, 从所述 FIFO緩存器读出所述业务。  The traffic transmitted in the primary path is written to the FIFO buffer, and when the primary and backup delay compensation values are reached, the traffic is read from the FIFO buffer.
22、 如权利要求 18-21任一项所述的装置, 其特征在于, 所述处理器执行所 述采用所述主备时延补偿值, 对第一设备与第二设备之间的主路径或备路径传 输的业务进行时延补偿的步骤之后, 还执行如下步骤: The device according to any one of claims 18 to 21, wherein the processor performs the main path between the first device and the second device by using the active/standby delay compensation value. After the step of delay compensation for the service transmitted by the backup path, the following steps are also performed:
计算第一设备与第二设备之间的全路径时延补偿值, 所述第一设备与第二 设备之间的全路径包括: 第一设备内路径、 第一设备与第二设备之间的主路径 或备路径, 以及第二设备内路径;  Calculating a full path delay compensation value between the first device and the second device, where the full path between the first device and the second device includes: a path between the first device, and between the first device and the second device a primary path or a standby path, and a path within the second device;
采用所述全路径时延补偿值, 对第一设备与第二设备之间传输的业务进行 时延补偿。  The time delay compensation is performed on the service transmitted between the first device and the second device by using the full path delay compensation value.
23、 如权利要求 22所述的装置, 其特征在于, 所述处理器执行所述计算第 一设备与第二设备之间的全路径时延补偿值的步骤时, 具体包括如下步骤: 将业务沿第一设备与第二设备之间的全路径进行正向传输, 在所述全路径 的正向入口处对所述业务进行封装, 封装后的业务中包含所述业务到达所述正 向入口处的正向入口时间信息; The device according to claim 22, wherein the processor performs the step of calculating a full path delay compensation value between the first device and the second device, specifically comprising the following steps: Performing forward transmission along a full path between the first device and the second device, and encapsulating the service at a forward entrance of the full path, where the encapsulated service includes the service reaching the forward entrance Positive entry time information at the place;
获取所述业务到达所述全路径的正向出口处的正向出口时间信息, 并在所 述正向出口处对所述业务进行解封装, 提取所述正向入口时间信息;  Obtaining the forward exit time information of the service reaching the forward exit of the full path, and decapsulating the service at the forward exit, extracting the forward entry time information;
根据所述正向入口时间信息与正向出口时间信息, 计算所述全路径的正向 时延;  Calculating a forward delay of the full path according to the forward entry time information and the forward exit time information;
将业务沿第一设备与第二设备之间的全路径进行反向传输, 在所述全路径 的反向入口处对所述业务进行封装, 封装后的业务中包含所述业务到达所述反 向入口处的反向入口时间信息以及所述全路径的正向时延;  Forwarding the service along the entire path between the first device and the second device, and encapsulating the service at the reverse entry of the full path, where the encapsulated service includes the service reaching the reverse Reverse entry time information to the entrance and forward delay of the full path;
获取所述业务到达所述全路径的反向出口处的反向出口时间信息, 并在所 述反向出口处对所述业务进行解封装, 提取所述反向入口时间信息及所述全路 径的正向时延; Obtaining the reverse exit time information that the service arrives at the reverse exit of the full path, and Decapsulating the service at the reverse egress, extracting the reverse entry time information and a forward delay of the full path;
根据所述反向入口时间信息与反向出口时间信息, 计算所述全路径的反向 时延;  Calculating a reverse delay of the full path according to the reverse entry time information and reverse exit time information;
将所述全路径的正向时延与反向时延的时延差的绝对值, 确定为第一设备 与第二设备之间的全路径时延补偿值。  The absolute value of the delay difference between the forward delay and the reverse delay of the full path is determined as a full path delay compensation value between the first device and the second device.
24、 如权利要求 23所述的装置, 其特征在于, 所述处理器执行所述采用所 述全路径时延补偿值, 对第一设备与第二设备之间传输的业务进行时延补偿的 步骤时, 具体包括如下步骤: The device according to claim 23, wherein the processor performs the delay compensation of the service transmitted between the first device and the second device by using the full path delay compensation value. The steps include the following steps:
比较第一设备与第二设备之间的全路径的正向时延与反向时延的大小; 如果所述正向时延大于所述反向时延, 则将所述全路径中反向传输的业务 延迟所述全路径时延补偿值之后输出;  Comparing a size of a forward path and a reverse delay of the full path between the first device and the second device; if the forward delay is greater than the reverse delay, inverting the full path The transmitted service is delayed after the full path delay compensation value is output;
如果所述反向时延大于所述正向时延, 则将所述全路径中正向传输的业务 延迟所述全路径时延补偿值之后输出。  If the reverse delay is greater than the forward delay, the forward transmission traffic in the full path is delayed after the full path delay compensation value is output.
25、 如权利要求 24所述的装置, 其特征在于, 所述处理器执行所述将所述 全路径中反向传输的业务延迟所述全路径时延补偿值之后输出的步骤时, 具体 包括如下步骤: The device according to claim 24, wherein the processor performs the step of outputting the reverse-transferred service in the full path after delaying the full-path delay compensation value, and specifically includes: The following steps:
在所述全路径的反向出口处设置 FIFO緩存器;  Setting a FIFO buffer at a reverse exit of the full path;
将所述全路径中反向传输的业务写入所述 FIFO緩存器, 当到达所述全路径 时延补偿值时, 从所述 FIFO緩存器读出所述业务;  Transmitting the reversely transmitted traffic in the full path to the FIFO buffer, and when the full path delay compensation value is reached, reading the service from the FIFO buffer;
所述处理器执行所述将所述全路径中正向传输的业务延迟所述全路径时延 补偿值之后输出的步骤时, 具体包括如下步骤:  The step of the processor performing the step of outputting the forward-transferred service in the full path after delaying the full-path delay compensation value includes the following steps:
在所述全路径的正向出口处设置 FIFO緩存器;  Setting a FIFO buffer at a forward exit of the full path;
将所述全路径中正向传输的业务写入所述 FIFO緩存器, 当到达所述全路径 时延补偿值时, 从所述 FIFO緩存器读出所述业务。  The traffic forwarded in the full path is written to the FIFO buffer, and when the full path delay compensation value is reached, the traffic is read from the FIFO buffer.
PCT/CN2012/084662 2012-11-15 2012-11-15 Time delay compensation method and apparatus WO2014075260A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201280001997.1A CN103299582B (en) 2012-11-15 2012-11-15 A kind of delay compensation method and device
PCT/CN2012/084662 WO2014075260A1 (en) 2012-11-15 2012-11-15 Time delay compensation method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/084662 WO2014075260A1 (en) 2012-11-15 2012-11-15 Time delay compensation method and apparatus

Publications (1)

Publication Number Publication Date
WO2014075260A1 true WO2014075260A1 (en) 2014-05-22

Family

ID=49098415

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/084662 WO2014075260A1 (en) 2012-11-15 2012-11-15 Time delay compensation method and apparatus

Country Status (2)

Country Link
CN (1) CN103299582B (en)
WO (1) WO2014075260A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105338431A (en) * 2014-08-08 2016-02-17 中兴通讯股份有限公司 Hardware random delay compensation implementing method and hardware random delay compensation implementing device
CN106357472A (en) * 2015-07-17 2017-01-25 中兴通讯股份有限公司 Delay measuring method and device
CN108989138A (en) * 2017-05-31 2018-12-11 中兴通讯股份有限公司 Data transmission method, device, system and gateway
CN113923154A (en) * 2017-07-05 2022-01-11 华为技术有限公司 Path calculation method, device and system
CN114553388A (en) * 2018-03-13 2022-05-27 华为技术有限公司 Method and equipment for compensating time delay
CN113037623B (en) * 2019-12-24 2022-06-24 华为技术有限公司 Time delay processing method, equipment and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101162959A (en) * 2007-10-19 2008-04-16 中兴通讯股份有限公司 Clock master-slave phase difference automatic measurement and compensation process
CN101389090A (en) * 2008-10-09 2009-03-18 深圳国人通信有限公司 Optical fiber repeater, time delay measurement method, device thereof, and compensation method, system
CN102368691A (en) * 2011-09-23 2012-03-07 烽火通信科技股份有限公司 Optical link protection switching realizing method in Ethernet passive optical network system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4896092A (en) * 1988-10-12 1990-01-23 Power Distribution, Inc. Voltage regulator for AC single phase and three phase systems
CN100518048C (en) * 2004-05-27 2009-07-22 华为技术有限公司 Time delay regulating and compensating method in wireless communication system
CN102291178B (en) * 2011-09-08 2014-11-19 烽火通信科技股份有限公司 Method and device for measuring the asymmetrical time delay of optical fiber

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101162959A (en) * 2007-10-19 2008-04-16 中兴通讯股份有限公司 Clock master-slave phase difference automatic measurement and compensation process
CN101389090A (en) * 2008-10-09 2009-03-18 深圳国人通信有限公司 Optical fiber repeater, time delay measurement method, device thereof, and compensation method, system
CN102368691A (en) * 2011-09-23 2012-03-07 烽火通信科技股份有限公司 Optical link protection switching realizing method in Ethernet passive optical network system

Also Published As

Publication number Publication date
CN103299582A (en) 2013-09-11
CN103299582B (en) 2016-09-28

Similar Documents

Publication Publication Date Title
WO2014075260A1 (en) Time delay compensation method and apparatus
EP2528254B1 (en) Method and device for time synchronization
JP6505255B2 (en) Time synchronization method and system, and network device
JP5518191B2 (en) Method and system for optical transmission network carrying time synchronization protocol
CN102244603B (en) Method, equipment and system for transmitting message bearing time
KR20200104217A (en) Packet managing method in network and network element performing the same
WO2012092903A2 (en) Delay measurement method and optical transport network device
WO2018041228A1 (en) Method, device and system for transferring synchronization information
WO2010037347A1 (en) Time synchronizing method, device and system of master clock side and slave clock side in synchronous network
JP2015506626A (en) Method and apparatus for communicating time information between time recognition devices
CN106921641B (en) Method and device for transmitting message
US11411848B2 (en) Flexible ethernet latency measurement method and related device
CN105553595B (en) Equipment and its synchronous method in a kind of distributed system
WO2012065334A1 (en) Method, device and system for realizing time synchronization in time division multiplexing network
US11503557B2 (en) Time synchronization in integrated 5G wireless and time-sensitive networking systems
WO2015109819A1 (en) Time slot synchronization training method for optical burst transport network node, node device and network
US9065748B2 (en) Symmetrical latency with TDM circuit emulated service
JP5944082B2 (en) Optical transmission system and delay measurement method
CN108737006A (en) A kind of method for synchronizing time, client and computer readable storage medium
WO2019170064A1 (en) Method, apparatus and system for processing ethernet data in optical network
WO2013097754A1 (en) Method and apparatus for synchronization processing of air-interface data
WO2013029453A1 (en) Synchronization method and system for traversing the synchronous network of third-party
WO2016184225A1 (en) Method and device for sending time synchronization message
KR101958374B1 (en) Services, systems and methods for precisely estimating a delay within a network
JP2014033251A (en) Communication system and packet transmission method

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: 12888288

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12888288

Country of ref document: EP

Kind code of ref document: A1