[go: up one dir, main page]

WO2014075260A1 - 一种时延补偿方法及装置 - Google Patents

一种时延补偿方法及装置 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
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/CN2012/084662
Other languages
English (en)
French (fr)
Inventor
凌磊
彭胜
刘骁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to PCT/CN2012/084662 priority Critical patent/WO2014075260A1/zh
Priority to CN201280001997.1A priority patent/CN103299582B/zh
Publication of WO2014075260A1 publication Critical patent/WO2014075260A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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.

Landscapes

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

Abstract

本发明公开了一种时延补偿方法及装置,其中的方法可包括:对进行业务传输的第一设备与第二设备进行时间同步处理;计算同步后的第一设备与第二设备之间的主备时延补偿值;采用所述主备时延补偿值,对第一设备与第二设备之间的主路径或备路径传输的业务进行时延补偿。采用本发明,可对设备之间的主备路径的传输时延进行补偿,保证主备路径的时延的对称性,保证业务的正常传输。

Description

一种时延补偿方法及装置 技术领域
本发明涉及通信技术领域, 具体涉及业务传输技术领域, 尤其涉及一种时 延补偿方法及装置。 背景技术
业务在传输过程中, 由于传输介质和设备处理的原因, 会导致业务的传输 产生时延。 业务在设备内传输时, 由于设备的处理, 会产生设备内时延; 传输 介质通常包括光纤、 空气等, 业务通过传输介质在设备之间进行传输时会产生 传输时延。 为了保证业务的正常传输过程, 进行业务传输的设备之间通常设有 主路径和备路径, 正常情况下, 由主路径对业务进行传输; 当主路径异常 (例 如: 主路径被中断) 时, 由备路径对业务进行传输。 由于主备路径的差异, 例 如: 主路径的长度小于备路径的长度, 或主路径的传输能力高于备路径的传输 能力, 等等, 业务在主备路径中传输时所产生的传输时延可能是非对称的, 当 业务对时延对称性要求较高时, 主备倒换时产生的非对称传输时延可能导致业 务中断; 因此, 需要对业务在主备路径的传输时延进行补偿, 以保证主备路径 的传输时延的对称性, 保证业务的正常传输。 发明内容
本发明提供一种时延补偿方法及装置, 可对设备之间的主备路径的传输时 延进行补偿, 保证主备路径的时延的对称性, 保证业务的正常传输。
本发明第一方面提供了一种时延补偿方法, 可包括:
对进行业务传输的第一设备与第二设备进行时间同步处理;
计算同步后的第一设备与第二设备之间的主备时延补偿值;
采用所述主备时延补偿值,对第一设备与第二设备之间的主路径或备路径传 输的业务进行时延补偿。
在第一种可行的实施方式中, 所述计算同步后的第一设备与第二设备之间 的主备时延补偿值, 包括:
将业务从第一设备发起传输, 经第一设备与第二设备之间的主路径的发通 道传输至第二设备时, 再将所述业务从第二设备环回, 经所述主路径的收通道 传输至第一设备;
根据所述业务在所述主路径中的传输时间, 计算所述主路径的路径时延; 将业务从第一设备发起传输, 经第一设备与第二设备之间的备路径的发通 道传输至第二设备时, 再将所述业务从第二设备环回, 经所述备路径的收通道 传输至第一设备;
根据所述业务在所述备路径中的传输时间, 计算所述备路径的路径时延; 将所述主路径与所述备路径的路径时延差的绝对值的 1/2, 确定为第一设备 与第二设备之间的主备时延补偿值;
其中, 所述主路径的收发通道的长度相同, 所述备路径的收发通道的长度 相同。
结合第一方面的第一种可行的实施方式, 在第二种可行的实施方式中, 所 述采用所述主备时延补偿值, 对第一设备与第二设备之间的主路径或备路径传 输的业务进行时延补偿, 包括:
比较第一设备与第二设备之间的主路径与备路径的路径时延的大小; 如果所述主路径的路径时延大于所述备路径的路径时延, 则将所述备路径 中传输的业务延迟所述主备时延补偿值之后输出;
如果所述备路径的路径时延大于所述主路径的路径时延, 则将所述主路径 中传输的业务延迟所述主备时延补偿值之后输出。
结合第一方面的第二种可行的实施方式, 在第三种可行的实施方式中, 所 述将所述备路径中传输的业务延迟所述主备时延补偿值之后输出, 包括:
在所述备路径的出口处设置 FIFO ( First Input First Output, 先入先出 )緩存 器;
将所述备路径中传输的业务写入所述 FIFO緩存器, 当到达所述主备时延补 偿值时, 从所述 FIFO緩存器读出所述业务;
所述将所述主路径中传输的业务延迟所述主备时延补偿值之后输出, 包括: 在所述主路径的出口处设置 FIFO緩存器;
将所述主路径中传输的业务写入所述 FIFO緩存器, 当到达所述主备时延补 偿值时, 从所述 FIFO緩存器读出所述业务。
结合第一方面、 第一方面的第一种可行的实施方式、 第一方面的第二种可 行的实施方式或第一方面的第三种可行的实施方式, 在第四种可行的实施方式 中, 所述采用所述主备时延补偿值, 对第一设备与第二设备之间的主路径或备 路径传输的业务进行时延补偿之后, 还包括:
计算第一设备与第二设备之间的全路径时延补偿值, 所述第一设备与第二 设备之间的全路径包括: 第一设备内路径、 第一设备与第二设备之间的主路径 或备路径, 以及第二设备内路径;
采用所述全路径时延补偿值, 对第一设备与第二设备之间的全路径传输的 业务进行时延补偿。
结合第一方面的第四种可行的实施方式, 在第五种可行的实施方式中, 所 述计算第一设备与第二设备之间的全路径时延补偿值, 包括:
将业务沿第一设备与第二设备之间的全路径进行正向传输, 在所述全路径 的正向入口处对所述业务进行封装, 封装后的业务中包含所述业务到达所述正 向入口处的正向入口时间信息;
获取所述业务到达所述全路径的正向出口处的正向出口时间信息, 并在所 述正向出口处对所述业务进行解封装, 提取所述正向入口时间信息;
根据所述正向入口时间信息与正向出口时间信息, 计算所述全路径的正向 时延;
将业务沿第一设备与第二设备之间的全路径进行反向传输, 在所述全路径 的反向入口处对所述业务进行封装, 封装后的业务中包含所述业务到达所述反 向入口处的反向入口时间信息以及所述全路径的正向时延;
获取所述业务到达所述全路径的反向出口处的反向出口时间信息, 并在所 述反向出口处对所述业务进行解封装, 提取所述反向入口时间信息及所述全路 径的正向时延;
根据所述反向入口时间信息与反向出口时间信息, 计算所述全路径的反向 时延;
将所述全路径的正向时延与反向时延的时延差的绝对值, 确定为第一设备 与第二设备之间的全路径时延补偿值。
结合第一方面的第五种可行的实施方式, 在第六种可行的实施方式中, 所 述采用所述全路径时延补偿值, 对第一设备与第二设备之间的全路径传输的业 务进行时延补偿, 包括: 比较第一设备与第二设备之间的全路径的正向时延与反向时延的大小; 如果所述正向时延大于所述反向时延, 则将所述全路径中反向传输的业务 延迟所述全路径时延补偿值之后输出;
如果所述反向时延大于所述正向时延, 则将所述全路径中正向传输的业务 延迟所述全路径时延补偿值之后输出。
结合第一方面的第六种可行的实施方式, 在第七种可行的实施方式中, 所 述将所述全路径中反向传输的业务延迟所述全路径时延补偿值之后输出, 包括: 在所述全路径的反向出口处设置 FIFO緩存器;
将所述全路径中反向传输的业务写入所述 FIFO緩存器, 当到达所述全路径 时延补偿值时, 从所述 FIFO緩存器读出所述业务;
所述将所述全路径中正向传输的业务延迟所述全路径时延补偿值之后输出, 包括:
在所述全路径的正向出口处设置 FIFO緩存器;
将所述全路径中正向传输的业务写入所述 FIFO緩存器, 当到达所述全路径 时延补偿值时, 从所述 FIFO緩存器读出所述业务。 本发明第二方面提供了一种时延补偿装置, 可包括:
同步模块, 用于对进行业务传输的第一设备与第二设备进行时间同步处理; 主备补偿计算模块,用于计算同步后的第一设备与第二设备之间的主备时延 补偿值;
主备补偿模块, 用于采用所述主备时延补偿值, 对第一设备与第二设备之 间的主路径或备路径传输的业务进行时延补偿。
在第一种可行的实施方式中, 所述主备补偿计算模块包括:
主传输单元, 用于将业务从第一设备发起传输, 经第一设备与第二设备之 间的主路径的发通道传输至第二设备时, 再将所述业务从第二设备环回, 经所 述主路径的收通道传输至第一设备;
主时延计算单元, 用于根据所述业务在所述主路径中的传输时间, 计算所 述主路径的路径时延;
备传输单元, 用于将业务从第一设备发起传输, 经第一设备与第二设备之 间的备路径的发通道传输至第二设备时, 再将所述业务从第二设备环回, 经所 述备路径的收通道传输至第一设备;
备时延计算单元, 用于根据所述业务在所述备路径中的传输时间, 计算所 述备路径的路径时延;
主备补偿确定单元, 用于将所述主路径与所述备路径的路径时延差的绝对 值的 1/2, 确定为第一设备与第二设备之间的主备时延补偿值;
其中, 所述主路径的收发通道的长度相同, 所述备路径的收发通道的长度 相同。
结合第二方面的第一种可行的实施方式, 在第二种可行的实施方式中, 所 述主备补偿模块包括:
比较单元, 用于比较第一设备与第二设备之间的主路径与备路径的路径时 延的大小;
主备补偿单元, 用于如果所述主路径的路径时延大于所述备路径的路径时 延, 则将所述备路径中传输的业务延迟所述主备时延补偿值之后输出; 或者, 补偿单元, 用于如果所述备路径的路径时延大于所述主路径的路径时延, 则将 所述主路径中传输的业务延迟所述主备时延补偿值之后输出。
结合第二方面的第二种可行的实施方式, 在第三种可行的实施方式中, 所 述主备补偿单元具体用于如果所述主路径的路径时延大于所述备路径的路径时 延, 在所述备路径的出口处设置先入先出 FIFO緩存器, 将所述备路径中传输的 业务写入所述 FIFO緩存器, 当到达所述主备时延补偿值时, 从所述 FIFO緩存 器读出所述业务; 或者,
用于如果所述备路径的路径时延大于所述主路径的路径时延, 在所述主路 径的出口处设置 FIFO緩存器, 将所述主路径中传输的业务写入所述 FIFO緩存 器, 当到达所述主备时延补偿值时, 从所述 FIFO緩存器读出所述业务。
结合第二方面、 第二方面的第一种可行的实施方式、 第二方面的第二种可 行的实施方式中或第二方面的第三种可行的实施方式, 在第四种可行的实施方 式中, 所述装置还包括:
全补偿计算模块, 用于计算第一设备与第二设备之间的全路径时延补偿值, 所述第一设备与第二设备之间的全路径包括: 第一设备内路径、 第一设备与第 二设备之间的主路径或备路径, 以及第二设备内路径;
全补偿模块, 用于采用所述全路径时延补偿值, 对第一设备与第二设备之 间传输的业务进行时延补偿。
结合第二方面的第四种可行的实施方式, 在第五种可行的实施方式中, 所 述全补偿计算模块包括:
正向处理单元, 用于将业务沿第一设备与第二设备之间的全路径进行正向 传输, 在所述全路径的正向入口处对所述业务进行封装, 封装后的业务中包含 所述业务到达所述正向入口处的正向入口时间信息; 获取所述业务到达所述全 路径的正向出口处的正向出口时间信息, 并在所述正向出口处对所述业务进行 解封装, 提取所述正向入口时间信息;
正向时延计算单元, 用于根据所述正向入口时间信息与正向出口时间信息, 计算所述全路径的正向时延;
反向处理单元, 用于将业务沿第一设备与第二设备之间的全路径进行反向 传输, 在所述全路径的反向入口处对所述业务进行封装, 封装后的业务中包含 所述业务到达所述反向入口处的反向入口时间信息以及所述全路径的正向时延; 获取所述业务到达所述全路径的反向出口处的反向出口时间信息, 并在所述反 向出口处对所述业务进行解封装, 提取所述反向入口时间信息及所述全路径的 正向时延;
反向时延计算单元, 用于根据所述反向入口时间信息与反向出口时间信息, 计算所述全路径的反向时延;
全补偿确定单元, 用于将所述全路径的正向时延与反向时延的时延差的绝 对值, 确定为第一设备与第二设备之间的全路径时延 卜偿值。
结合第二方面的第五种可行的实施方式, 在第六种可行的实施方式中, 所 述全补偿模块包括:
比较单元, 用于比较第一设备与第二设备之间的全路径的正向时延与反向 时延的大小;
全补偿单元, 用于如果所述正向时延大于所述反向时延, 则将所述全路径 中反向传输的业务延迟所述全路径时延补偿值之后输出; 或者, 如果所述反向 时延大于所述正向时延, 则将所述全路径中正向传输的业务延迟所述全路径时 延补偿值之后输出。
结合第二方面的第六种可行的实施方式, 在第七种可行的实施方式中, 所 述全补偿单元具体用于: 如果所述正向时延大于所述反向时延, 在所述全路径 的反向出口处设置 FIFO緩存器,将所述全路径中反向传输的业务写入所述 FIFO 緩存器, 当到达所述全路径时延补偿值时, 从所述 FIFO緩存器读出所述业务; 或者,
用于如果所述反向时延大于所述正向时延, 在所述全路径的正向出口处设 置 FIFO緩存器, 将所述全路径中正向传输的业务写入所述 FIFO緩存器, 当到 达所述全路径时延补偿值时, 从所述 FIFO緩存器读出所述业务。 本发明第三方面提供了一种计算机存储介质, 所述计算机存储介质可存储 有程序, 该程序执行时包括上述第一方面的方法中的全部或部分步骤。 本发明第四方面提供了另一种时延补偿装置, 可包括发射器, 接收器和处 理器; 其中, 所述处理器执行如下步骤:
对进行业务传输的第一设备与第二设备进行时间同步处理;
计算同步后的第一设备与第二设备之间的主备时延补偿值;
采用所述主备时延补偿值,对第一设备与第二设备之间的主路径或备路径传 输的业务进行时延补偿。
在第一种可行的实施方式中, 所述处理器执行所述计算同步后的第一设备 与第二设备之间的主备时延补偿值的步骤时, 具体包括如下步骤:
控制所述发射器将业务从第一设备发起传输 , 经第一设备与第二设备之间 的主路径的发通道传输至第二设备时, 再将所述业务从第二设备环回, 经所述 主路径的收通道传输至第一设备;
根据所述业务在所述主路径中的传输时间, 计算所述主路径的路径时延; 控制所述发射器将业务从第一设备发起传输 , 经第一设备与第二设备之间 的备路径的发通道传输至第二设备时, 再将所述业务从第二设备环回, 经所述 备路径的收通道传输至第一设备;
根据所述业务在所述备路径中的传输时间, 计算所述备路径的路径时延; 将所述主路径与所述备路径的路径时延差的绝对值的 1/2, 确定为第一设备 与第二设备之间的主备时延补偿值;
其中, 所述主路径的收发通道的长度相同, 所述备路径的收发通道的长度 相同。 结合第一方面的第一种可行的实施方式, 在第二种可行的实施方式中, 所 述处理器执行所述采用所述主备时延补偿值, 对第一设备与第二设备之间的主 路径或备路径传输的业务进行时延补偿的步骤时, 具体包括如下步骤:
比较第一设备与第二设备之间的主路径与备路径的路径时延的大小; 如果所述主路径的路径时延大于所述备路径的路径时延, 则将所述备路径 中传输的业务延迟所述主备时延补偿值之后输出;
如果所述备路径的路径时延大于所述主路径的路径时延, 则将所述主路径 中传输的业务延迟所述主备时延补偿值之后输出。
结合第一方面的第二种可行的实施方式, 在第三种可行的实施方式中, 所 述处理器执行所述将所述备路径中传输的业务延迟所述主备时延补偿值之后输 出的步骤时, 具体包括如下步骤:
在所述备路径的出口处设置先入先出 FIFO緩存器;
将所述备路径中传输的业务写入所述 FIFO緩存器, 当到达所述主备时延补 偿值时, 从所述 FIFO緩存器读出所述业务;
所述处理器执行所述将所述主路径中传输的业务延迟所述主备时延补偿值 之后输出的步骤时, 具体包括如下步骤:
在所述主路径的出口处设置 FIFO緩存器;
将所述主路径中传输的业务写入所述 FIFO緩存器, 当到达所述主备时延补 偿值时, 从所述 FIFO緩存器读出所述业务。
结合第一方面、 第一方面的第一种可行的实施方式、 第一方面的第二种可 行的实施方式或第一方面的第三种可行的实施方式, 在第四种可行的实施方式 中, 所述处理器执行所述采用所述主备时延补偿值, 对第一设备与第二设备之 间的主路径或备路径传输的业务进行时延补偿的步骤之后, 还执行如下步骤: 计算第一设备与第二设备之间的全路径时延补偿值, 所述第一设备与第二 设备之间的全路径包括: 第一设备内路径、 第一设备与第二设备之间的主路径 或备路径, 以及第二设备内路径;
采用所述全路径时延补偿值, 对第一设备与第二设备之间传输的业务进行 时延补偿。
结合第一方面的第四种可行的实施方式, 在第五种可行的实施方式中, 所 述处理器执行所述计算第一设备与第二设备之间的全路径时延补偿值的步骤时, 具体包括如下步骤:
将业务沿第一设备与第二设备之间的全路径进行正向传输, 在所述全路径 的正向入口处对所述业务进行封装, 封装后的业务中包含所述业务到达所述正 向入口处的正向入口时间信息;
获取所述业务到达所述全路径的正向出口处的正向出口时间信息, 并在所 述正向出口处对所述业务进行解封装, 提取所述正向入口时间信息;
根据所述正向入口时间信息与正向出口时间信息, 计算所述全路径的正向 时延;
将业务沿第一设备与第二设备之间的全路径进行反向传输, 在所述全路径 的反向入口处对所述业务进行封装, 封装后的业务中包含所述业务到达所述反 向入口处的反向入口时间信息以及所述全路径的正向时延;
获取所述业务到达所述全路径的反向出口处的反向出口时间信息, 并在所 述反向出口处对所述业务进行解封装, 提取所述反向入口时间信息及所述全路 径的正向时延;
根据所述反向入口时间信息与反向出口时间信息, 计算所述全路径的反向 时延;
将所述全路径的正向时延与反向时延的时延差的绝对值, 确定为第一设备 与第二设备之间的全路径时延补偿值。
结合第一方面的第五种可行的实施方式, 在第六种可行的实施方式中, 所 述处理器执行所述采用所述全路径时延补偿值, 对第一设备与第二设备之间传 输的业务进行时延补偿的步骤时, 具体包括如下步骤:
比较第一设备与第二设备之间的全路径的正向时延与反向时延的大小; 如果所述正向时延大于所述反向时延, 则将所述全路径中反向传输的业务 延迟所述全路径时延补偿值之后输出;
如果所述反向时延大于所述正向时延, 则将所述全路径中正向传输的业务 延迟所述全路径时延补偿值之后输出。
结合第一方面的第六种可行的实施方式, 在第七种可行的实施方式中, 所 述处理器执行所述将所述全路径中反向传输的业务延迟所述全路径时延补偿值 之后输出的步骤时, 具体包括如下步骤:
在所述全路径的反向出口处设置 FIFO緩存器; 将所述全路径中反向传输的业务写入所述 FIFO緩存器, 当到达所述全路径 时延补偿值时, 从所述 FIFO緩存器读出所述业务;
所述处理器执行所述将所述全路径中正向传输的业务延迟所述全路径时延 补偿值之后输出的步骤时, 具体包括如下步骤:
在所述全路径的正向出口处设置 FIFO緩存器;
将所述全路径中正向传输的业务写入所述 FIFO緩存器, 当到达所述全路径 时延补偿值时, 从所述 FIFO緩存器读出所述业务。
采用本发明的时延补偿方法, 首先对进行业务传输的设备进行时间同步, 以保证时延补偿的精度; 在时间同步的基础上, 计算设备之间的主备时延补偿 值, 并采用主备时延补偿值对设备间的主 /备路径传输的业务进行时延补偿, 保 证了主备路径的时延的对称性, 保证了业务的正常传输。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施 例或现有技术描述中所需要使用的附图作筒单地介绍, 显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付 出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明实施例提供的一种时延补偿方法的流程图;
图 2为图 1所示步骤 S102的实施例的流程图;
图 3为本发明实施例提供的主备路径时延补偿的示意图;
图 4为图 1所示步骤 S103的实施例的流程图;
图 5为本发明实施例提供的另一种时延补偿方法的流程图;
图 6为图 5所示步骤 S204的实施例的流程图;
图 7为本发明实施例提供的全路径时延补偿的示意图;
图 8为本发明实施例提供的封装后的业务的示意图;
图 9为本发明实施例提供的时间帧格式的示意图;
图 10为图 5所示步骤 S205的实施例的流程图;
图 11为本发明实施例提供的一种时延补偿装置的结构示意图;
图 12为本发明实施例提供的主备补偿计算模块的结构示意图;
图 13为本发明实施例提供的主备补偿模块的结构示意图; 图 14为本发明实施例提供的另一种时延补偿装置的结构示意图; 图 15为本发明实施例提供的全补偿计算模块的结构示意图;
图 16为本发明实施例提供的全补偿模块的结构示意图;
图 17为本发明实施例提供的又一种时延补偿装置的结构示意图。 具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
本发明实施例的时延补偿方案,适用于各种可承载业务的通信系统,例如: WDM( Wavelength Division Multiplexing ,波分复用)通信系统、 OFDM( Orthogonal Frequency Division Multiplexing, 正交频分复用)通信系统等。 第一设备为通信 系统中的任一设备; 第二设备为通信系统中, 除第一设备之外且与第一设备进 行业务交互的任一设备。
为了保证业务的正常传输, 第一设备与第二设备之间通常设有主路径与备 路径。 第一设备与第二设备之间的全路径, 包括: 第一设备内路径、 第一设备 与第二设备之间的主路径或备路径, 以及第二设备内路径。 除特别说明外, 本 发明实施例中, 第一设备与第二设备之间的主路径的收发通道的长度相同, 例 如: WDM通信系统中,第一 WDM设备与第二 WDM设备之间的收方向的光纤 长度与发方向的光纤长度相等, 从而可保证主路径的收发通道的传输时延相等。 第一设备与第二设备之间的备路径的收发通道的长度相同, 例如: WDM通信系 统中, 第一 WDM设备与第二 WDM设备之间的收方向的光纤长度与发方向的 光纤长度相等, 从而可保证备路径的收发通道的传输时延相等。 请参见图 1 , 为本发明实施例提供的一种时延补偿方法的流程图; 该方法可 包括以下步骤 S101-步骤 S103。
S101 , 对进行业务传输的第一设备与第二设备进行时间同步处理;
本步骤可采用如 1588时钟同步技术、 NTP ( Network Time Protocol, 网络时 间协议) 同步技术等时间同步技术, 对进行业务传输的第一设备和第二设备进 行同步处理。 通过对业务传输的设备间执行同步处理, 可以获得更高的传输时 延的计算精度, 从而进行更为精确的时延补偿。
5102 , 计算同步后的第一设备与第二设备之间的主备时延补偿值;
由于第一设备与第二设备的主备路径的差异,主备路径的时延也可能存在差 异, 因此需要对主路径或备路径进行时延补偿, 以保证主备路径倒换时时延的 一致性。 本步骤则计算同步后的第一设备与第二设备之间的主备时延补偿值 , 以实现主 /备路径的时延补偿。
5103 , 采用所述主备时延补偿值, 对第一设备与第二设备之间的主路径或 备路径传输的业务进行时延补偿。 本步骤中, 采用主备时延补偿值对第一设备 与第二设备之间的主路径或备路径传输的业务进行时延补偿, 可保证主备路径 倒换时时延的一致性。 请参见图 2, 为图 1所示步骤 S102的实施例的流程图; 该步骤 S102具体可 包括以下步骤 S1201-步骤 S1205。
51201 , 将业务从第一设备发起传输, 经第一设备与第二设备之间的主路径 的发通道传输至第二设备时, 再将所述业务从第二设备环回, 经所述主路径的 收通道传输至第一设备;
请一并参见图 3, 为本发明实施例提供的主备路径时延补偿的示意图。 图 3 中, 假设 AC为主路径的发通道, A'C'为主路径的收通道; BD为备路径的发通 道, B,D,为备路径的收通道。 本步骤中, 将业务从第一设备的 A点发起传输, 经 AC传输至第二设备的 C点,再从 C环回至 C,, 经 C,A,传输至第一设备的 A, 点; 则业务的传输路线为: A-C-C,-A,, 即业务仅在主路径中传输。
51202, 根据所述业务在所述主路径中的传输时间, 计算所述主路径的路径 时延;
由于业务由一帧一帧的数据构成, 业务的传输即为帧数据的依次传输, 因 此本步骤可以通过复帧定帧的方式计算主路径的路径时延, 路径时延=帧头差值 *每帧数据的传输时间 + (已传输的长度 /帧长) *每帧数据的传输时间。 以图 3 所示示意图为例, 本步骤的具体计算过程如下:
假设业务包括 10帧数据,帧数据的帧头标识表示了该帧数据的序号,例如: 帧头标识为 1的帧数据表示该业务的首帧数据, 帧头标识为 2的帧数据表示该 业务的第二帧数据,以此类推,帧头标识为 10的帧数据表示该业务的尾帧数据。 每帧数据的传输时间为 0.5s, 每帧数据的帧长为 512字节。 业务从 A点发起传 输时, 此时被传输的帧数据为首帧数据, 其帧头标识为 1; 业务环回至 A,点时, 即首帧数据到达 A,点时, 业务的第六帧数据从 A点发起传输, 且已被传输 128 字节, 该第六帧数据的帧头标识为 6; 利用复帧定帧的方式, 本步骤计算获得的 主路径的路径时延丁主= ( 6-1 ) *0.5+ ( 128/512 ) *0.5, 此路径时延为业务在主路 径的传输时间。 需要说明的是, 采用复帧定帧的方式计算路径时延仅为举例, 也可以采用其他计算方式, 例如: 试算业务从 A点发起传输的时间, 与环回至 A,点的时间之间的时间差, 得到业务在主路径中的传输时间, 从而确定路径时 延; 等等。
51203, 将业务从第一设备发起传输, 经第一设备与第二设备之间的备路径 的发通道传输至第二设备时, 再将所述业务从第二设备环回, 经所述备路径的 收通道传输至第一设备;
再请参见图 3, 本步骤中, 将业务从第一设备的 B点发起传输, 经 BD传输 至第二设备的 D点, 再从 D环回至 D,, 经 D,B,传输至第一设备的 B,点; 则业 务的传输路线为: B-D-D,-B,, 即业务仅在备路径中传输。
51204, 根据所述业务在所述备路径中的传输时间, 计算所述备路径的路径 时延; 本步骤的计算过程可参见步骤 S1202的计算过程, 在此不赘述。 计算获 得的备路径的路径时延为: 。
S1205 , 将所述主路径与所述备路径的路径时延差的绝对值的 1/2, 确定为 第一设备与第二设备之间的主备时延补偿值;
由于 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。
51301 , 比较第一设备与第二设备之间的主路径与备路径的路径时延的大小; 主备时延补偿即对路径时延较小的路径进行时延补偿,因此,本步骤比较 τΑ 与 的大小,如果 τΑ大于 则需要对备路径进行时延补偿;如果 τΑ小于 则需要对主路径进行时延补偿。
51302, 如果所述主路径的路径时延大于所述备路径的路径时延, 则将所述 备路径中传输的业务延迟所述主备时延补偿值之后输出;
本步骤中, 可在所述备路径的出口处设置 FIFO緩存器, 参见图 3所示实施 例, 可在 D点或 B,点设置 FIFO緩存器; 将所述备路径中传输的业务写入所述 FIFO緩存器, 当到达所述主备时延补偿值时, 从所述 FIFO緩存器读出所述业 务。
51303, 如果所述备路径的路径时延大于所述主路径的路径时延, 则将所述 主路径中传输的业务延迟所述主备时延补偿值之后输出。
本步骤中, 可在所述主路径的出口处设置 FIFO緩存器, 参见图 3所示实施 例, 可在 C点或 A,点设置 FIFO緩存器; 将所述主路径中传输的业务写入所述 FIFO緩存器, 当到达所述主备时延补偿值时, 从所述 FIFO緩存器读出所述业 务。
通过上述实施例的描述, 采用本发明的时延补偿方法, 首先对进行业务传 输的设备进行时间同步, 以保证时延补偿的精度; 在时间同步的基础上, 计算 设备之间的主备时延补偿值, 并采用主备时延补偿值对设备间的主 /备路径传输 的业务进行时延补偿, 保证了主备路径的时延的对称性。 请参见图 5, 为本发明实施例提供的另一种时延补偿方法的流程图; 该方法 可包括以下步骤 S201-步骤 S205。
5201 , 对进行业务传输的第一设备与第二设备进行时间同步处理;
5202, 计算同步后的第一设备与第二设备之间的主备时延补偿值; 5203 , 采用所述主备时延补偿值, 对第一设备与第二设备之间的主路径或 备路径传输的业务进行时延补偿;
本实施例中,步骤 S201-步骤 S203可参见图 1所示的步骤 S101-步骤 S103, 在此不赘述。
5204, 计算第一设备与第二设备之间的全路径时延补偿值;
其中, 所述第一设备与第二设备之间的全路径包括: 第一设备内路径、 第 一设备与第二设备之间的主路径或备路径, 以及第二设备内路径。 由于第一设 备与第二设备的对业务的处理, 业务在设备内传输也会产生传输时延, 当采用 第一设备与第二设备之间的全路径进行业务传输时, 需要对全路径进行时延补 偿, 以保证全路径上下行时延的一致性。
5205 , 采用所述全路径时延补偿值, 对第一设备与第二设备之间的全路径 传输的业务进行时延补偿。 本步骤中, 采用全路径时延补偿值对第一设备与第 二设备之间的全路径传输的业务进行时延补偿, 可保证全路径上下行时延的一 致性。 请参见图 6, 为图 5所示步骤 S204的实施例的流程图; 该步骤 S204具体可 包括以下步骤 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为全路径的正向出口。
52402, 在所述全路径的正向入口处对所述业务进行封装, 封装后的业务中 包含所述业务到达所述正向入口处的正向入口时间信息;
请一并参见图 8, 为本发明实施例提供的封装后的业务的示意图。 对正向入 口处的业务进行封装, 其目的是插入用于测量时延的入口时间信息。 图 8所示 实施例中, 封装后的业务中包含以下字段: 帧头、 入口时间信息、 回送对端时 延、 保留字节和业务。 其中的 "帧头,, 字段用于标识业务的帧头, 而非业务中 的帧数据的帧头。请一并参见图 9,为本发明实施例提供的时间帧格式的示意图; 封装后的业务中的 "入口时间信息" 字段和 "回送对端时延" 字段可采用如图 9 所示的帧格式定义。 本步骤在全路径的正向入口 E处对所述业务进行封装时, 在 "入口时间信息" 的字段中插入所述业务到达所述正向入口 E处的正向入口 时间信息
52403 , 获取所述业务到达所述全路径的正向出口处的正向出口时间信息, 并在所述正向出口处对所述业务进行解封装, 提取所述正向入口时间信息; 当业务到达全路径的正向出口 F处时,获取正向出口时间信息 t2 ,并对业务 进行解封装, 从 "入口时间信息" 的字段中提取正向入口时间信息
52404, 才艮据所述正向入口时间信息与正向出口时间信息, 计算所述全路径 的正向时延;
本步骤中, 全路径的正向时延即为正向出口时间与正向入口时间的时间差, 即正向时延 Td =112-1^。
52405 , 将业务沿第一设备与第二设备之间的全路径进行反向传输; 本步骤将业务沿图 7所示的 F,-C,-A,-E,进行反向传输, F,为全路径的反向入 口, E'为全路径的反向出口。
52406, 在所述全路径的反向入口处对所述业务进行封装, 封装后的业务中 包含所述业务到达所述反向入口处的反向入口时间信息以及所述全路径的正向 时延;
对反向入口处的业务进行封装, 其目的是插入用于测量时延的入口时间信 息及回送对端时延(即:正向时延)。本步骤对业务的封装过程可参见步骤 S2402, 在此不赘述。 本步骤在全路径的反向入口 F处对所述业务进行封装时, 在 "入 口时间信息" 的字段中插入所述业务到达所述正向入口 F处的反向入口时间信 息 t3 , 并在 "回送对端时延" 的字段中插入正向时延 Td
52407, 获取所述业务到达所述全路径的反向出口处的反向出口时间信息, 并在所述反向出口处对所述业务进行解封装, 提取所述反向入口时间信息及所 述全路径的正向时延;
当业务到达全路径的反向出口 E,处时, 获取正向出口时间信息 t4 , 并对业 务进行解封装, 从 "入口时间信息" 的字段中提取正向入口时间信息 t3 , 从 "回 送对端时延" 的字段中提取正向时延 Td
52408, 根据所述反向入口时间信息与反向出口时间信息, 计算所述全路径 的反向时延;
本步骤中, 全路径的反向时延即为反向出口时间与反向入口时间的时间差, 即反向时延 Td'=t4-t3
52409, 将所述全路径的正向时延与反向时延的时延差的绝对值, 确定为第 一设备与第二设备之间的全路径时延补偿值。
全路径的正向时延与反向时延的时延差
Figure imgf000018_0001
t t , 本步骤 将 Δ1确定为第一设备与第二设备之间的全路径时延补偿值。
需要说明的是, 上述步骤 S2401-步骤 S2409以图 7所示示意图为例进行说 明, 其中全路径为: 第一设备内路径、 第一设备与第二设备之间的主路径, 及 第二设备内路径; 由于通过图 1-图 4所示实施例, 可保证第一设备与第二设备 之间的主备路径的对称性, 因此当全路径为: 第一设备内路径、 第二设备与第 二设备之间的备路径,及第二设备内路径时,可参照上述步骤 S2401-步骤 S2409 类似分析, 在此不赘述。 请参见图 10, 为图 5所示步骤 S205的实施例的流程图; 该步骤 S205具体 可包括以下步骤 S2501-步骤 S2503。
52501 , 比较第一设备与第二设备之间的全路径的正向时延与反向时延的大 小;
全路径时延补偿需要对路径时延较小的传输路径进行时延补偿, 因此, 本 步骤比较正向时延 Td与反向时延 Td'的大小, 如果 Td大于 Td', 则需要对全路径的 反向传输路径进行时延补偿; 如果 Td小于 Td', 则需要对全路径的正向传输路径 进行时延补偿。
52502, 如果所述正向时延大于所述反向时延, 则将所述全路径中反向传输 的业务延迟所述全路径时延补偿值之后输出;
本步骤中, 可在所述全路径的反向出口处设置 FIFO緩存器; 将所述全路径 中反向传输的业务写入所述 FIFO緩存器, 当到达所述全路径时延补偿值时, 从 所述 FIFO緩存器读出所述业务。
52503, 如果所述反向时延大于所述正向时延, 则将所述全路径中正向传输 的业务延迟所述全路径时延补偿值之后输出。
本步骤中, 可在所述全路径的正向出口处设置 FIFO緩存器; 将所述全路径 中正向传输的业务写入所述 FIFO緩存器, 当到达所述全路径时延补偿值时, 从 所述 FIFO緩存器读出所述业务。
通过上述实施例的描述, 采用本发明的时延补偿方法, 首先对进行业务传 输的设备进行时间同步, 以保证时延补偿的精度; 在时间同步的基础上, 计算 设备之间的主备时延补偿值, 并采用主备时延补偿值对设备间的主 /备路径传输 的业务进行时延补偿, 保证了主备路径的时延的对称性; 在主备时延对称性的 基础,还可实现设备间的全路径的上下时延的对称性,保证了业务的正常传输。 本发明实施例还提供了一种计算机存储介质, 其中, 该计算机存储介质可 存储有程序, 该程序执行时包括上述方法实施例中记载的时延补偿方法的部分 或全部步骤。
下面将结合附图 11-附图 17,对本发明实施例提供的时延补偿装置进行详细 介绍, 需要说明的是, 下述的装置可以应用于上述方法实施例中, 以执行本发 明实施例提供的时延补偿方法。
请参见图 11 , 为本发明实施例提供的一种时延补偿装置的结构示意图; 该 装置可包括: 同步模块 101、 主备补偿计算模块 102和主备补偿模块 103。
同步模块 101 , 用于对进行业务传输的第一设备与第二设备进行时间同步处 理;
所述同步模块 101可采用如 1588时钟同步技术、 NTP同步技术等时间同步 技术, 对进行业务传输的第一设备和第二设备进行同步处理。 通过对业务传输 的设备间执行同步处理, 可以获得更高的传输时延的计算精度, 从而进行更为 精确的时延补偿。
主备补偿计算模块 102,用于计算同步后的第一设备与第二设备之间的主备 时延补偿值;
由于第一设备与第二设备的主备路径的差异,主备路径的时延也可能存在差 异, 因此需要对主路径或备路径进行时延补偿, 以保证主备路径倒换时时延的 一致性。 所述主备补偿计算模块 101 计算同步后的第一设备与第二设备之间的 主备时延补偿值, 以实现主 /备路径的时延补偿。
主备补偿模块 103, 用于采用所述主备时延补偿值,对第一设备与第二设备 之间的主路径或备路径传输的业务进行时延补偿。 所述主备补偿模块 103采用 主备时延补偿值对第一设备与第二设备之间的主路径或备路径传输的业务进行 时延补偿, 可保证主备路径倒换时时延的一致性。 请参见图 12, 为本发明实施例提供的主备补偿计算模块的结构示意图; 该 主备补偿计算模块 102可包括: 主传输单元 1201、 主时延计算单元 1202、 备传 输单元 1203、 备时延计算单元 1204和主备补偿确定单元 1205。
主传输单元 1201 , 用于将业务从第一设备发起传输, 经第一设备与第二设 备之间的主路径的发通道传输至第二设备时, 再将所述业务从第二设备环回, 经所述主路径的收通道传输至第一设备;
主时延计算单元 1202, 用于根据所述业务在所述主路径中的传输时间, 计 算所述主路径的路径时延;
备传输单元 1203, 用于将业务从第一设备发起传输, 经第一设备与第二设 备之间的备路径的发通道传输至第二设备时, 再将所述业务从第二设备环回, 经所述备路径的收通道传输至第一设备;
备时延计算单元 1204, 用于根据所述业务在所述备路径中的传输时间, 计 算所述备路径的路径时延;
主备补偿确定单元 1205, 用于将所述主路径与所述备路径的路径时延差的 绝对值的 1/2, 确定为第一设备与第二设备之间的主备时延补偿值。 请参见图 13, 为本发明实施例提供的主备补偿模块的结构示意图; 该主备 补偿模块 103可包括: 比较单元 1301和主备补偿单元 1302。
比较单元 1301 , 用于比较第一设备与第二设备之间的主路径与备路径的路 径时延的大小;
主备时延补偿即对路径时延较小的路径进行时延补偿, 因此, 所述比较单 元 1301比较主路径的路径时延与备路径的路径时延的大小, 如果主路径的路径 时延大于备路径的路径时延, 则需要对备路径进行时延补偿; 如果主路径的路 径时延小于备路径的路径时延, 则需要对主路径进行时延补偿。 主备补偿单元 1302, 用于如果所述主路径的路径时延大于所述备路径的路 径时延, 则将所述备路径中传输的业务延迟所述主备时延补偿值之后输出; 或 者, 补偿单元, 用于如果所述备路径的路径时延大于所述主路径的路径时延, 则将所述主路径中传输的业务延迟所述主备时延补偿值之后输出。
所述主备补偿单元 1302可在需要进行时延补偿的路径的出口处设置 FIFO 緩存器, 将所述该路径中传输的业务写入所述 FIFO緩存器, 当到达所述主备时 延补偿值时, 从所述 FIFO緩存器读出所述业务, 以实现延迟主备时延补偿值之 后输出, 实现主备时延补偿。 请参见图 14, 为本发明实施例提供的另一种时延补偿装置的结构示意图; 该装置可包括: 同步模块 101、 主备补偿计算模块 102、 主备补偿模块 103、 全 补偿计算模块 104和全补偿模块 105。 其中, 同步模块 101、 主备补偿计算模块 102和主备补偿模块 103的结构可参见图 11-图 13所示实施例中的相关描述,在 此不赞述。
全补偿计算模块 104,用于计算第一设备与第二设备之间的全路径时延补偿 值, 所述第一设备与第二设备之间的全路径包括: 第一设备内路径、 第一设备 与第二设备之间的主路径或备路径, 以及第二设备内路径;
由于第一设备与第二设备的对业务的处理, 业务在设备内传输也会产生传 输时延, 当采用第一设备与第二设备之间的全路径进行业务传输时, 需要对全 路径进行时延补偿, 以保证全路径上下行时延的一致性。
全补偿模块 105, 用于采用所述全路径时延补偿值, 对第一设备与第二设备 之间传输的业务进行时延补偿。 所述全补偿模块 105 采用全路径时延补偿值对 第一设备与第二设备之间的全路径传输的业务进行时延补偿, 可保证全路径上 下行时延的一致性。 请参见图 15, 为本发明实施例提供的全补偿计算模块的结构示意图; 该全 补偿计算模块 104可包括: 正向处理单元 1401、 正向时延计算单元 1402、 反向 处理单元 1403、 反向时延计算单元 1404和全补偿确定单元 1405。
正向处理单元 1401 , 用于将业务沿第一设备与第二设备之间的全路径进行 正向传输, 在所述全路径的正向入口处对所述业务进行封装, 封装后的业务中 包含所述业务到达所述正向入口处的正向入口时间信息; 获取所述业务到达所 述全路径的正向出口处的正向出口时间信息, 并在所述正向出口处对所述业务 进行解封装, 提取所述正向入口时间信息;
正向时延计算单元 1402, 用于根据所述正向入口时间信息与正向出口时间 信息, 计算所述全路径的正向时延;
反向处理单元 1403, 用于将业务沿第一设备与第二设备之间的全路径进行 反向传输, 在所述全路径的反向入口处对所述业务进行封装, 封装后的业务中 包含所述业务到达所述反向入口处的反向入口时间信息以及所述全路径的正向 时延; 获取所述业务到达所述全路径的反向出口处的反向出口时间信息, 并在 所述反向出口处对所述业务进行解封装, 提取所述反向入口时间信息及所述全 路径的正向时延;
反向时延计算单元 1404, 用于根据所述反向入口时间信息与反向出口时间 信息, 计算所述全路径的反向时延;
全补偿确定单元 1405, 用于将所述全路径的正向时延与反向时延的时延差 的绝对值, 确定为第一设备与第二设备之间的全路径时延补偿值。 请参见图 16, 为本发明实施例提供的全补偿模块的结构示意图; 该全补偿 模块 105可包括: 比较单元 1501和全补偿单元 1502。
比较单元 1501 , 用于比较第一设备与第二设备之间的全路径的正向时延与 反向时延的大小;
全路径时延补偿需要对路径时延较小的传输路径进行时延补偿, 因此, 本 步骤比较正向时延与反向时延的大小, 如果正向时延大于反向时延, 则需要对 全路径的反向传输路径进行时延补偿; 如果正向时延小于反向时延, 则需要对 全路径的正向传输路径进行时延补偿。
全补偿单元 1502, 用于如果所述正向时延大于所述反向时延, 则将所述全 路径中反向传输的业务延迟所述全路径时延补偿值之后输出; 或者, 如果所述 反向时延大于所述正向时延, 则将所述全路径中正向传输的业务延迟所述全路 径时延补偿值之后输出。
所述全补偿单元 1502可在需要进行时延补偿的路径的出口处设置 FIFO緩 存器, 将所述该路径中传输的业务写入所述 FIFO緩存器, 当到达所述全路径时 延补偿值时, 从所述 FIFO緩存器读出所述业务, 以实现延迟全路径时延补偿值 之后输出, 实现主备时延补偿。
需要说明的是, 图 11-图 16所示的时延补偿装置的结构和功能可根据图 1- 图 15所示方法实施例中的方法具体实现, 其具体实现过程可以参照上述方法实
请参见图 17, 为本发明实施例提供的又一种时延补偿装置的结构示意图; 该装置可包括: 发射器、 接收器和处理器; 其中, 所述处理器执行如下步骤: 对进行业务传输的第一设备与第二设备进行时间同步处理;
计算同步后的第一设备与第二设备之间的主备时延补偿值;
采用所述主备时延补偿值,对第一设备与第二设备之间的主路径或备路径传 输的业务进行时延补偿。
在本发明实施例的一种可行的实施方式中:
所述处理器执行所述计算同步后的第一设备与第二设备之间的主备时延补 偿值的步骤时, 具体包括如下步骤:
控制所述发射器将业务从第一设备发起传输, 经第一设备与第二设备之间 的主路径的发通道传输至第二设备时, 再将所述业务从第二设备环回, 经所述 主路径的收通道传输至第一设备;
根据所述业务在所述主路径中的传输时间, 计算所述主路径的路径时延; 控制所述发射器将业务从第一设备发起传输, 经第一设备与第二设备之间 的备路径的发通道传输至第二设备时, 再将所述业务从第二设备环回, 经所述 备路径的收通道传输至第一设备;
根据所述业务在所述备路径中的传输时间, 计算所述备路径的路径时延; 将所述主路径与所述备路径的路径时延差的绝对值的 1/2, 确定为第一设备 与第二设备之间的主备时延补偿值。
在本发明实施例的另一种可行的实施方式中:
所述处理器执行所述采用所述主备时延补偿值, 对第一设备与第二设备之 间的主路径或备路径传输的业务进行时延补偿的步骤时, 具体包括如下步骤: 比较第一设备与第二设备之间的主路径与备路径的路径时延的大小; 如果所述主路径的路径时延大于所述备路径的路径时延, 则将所述备路径 中传输的业务延迟所述主备时延补偿值之后输出;
如果所述备路径的路径时延大于所述主路径的路径时延, 则将所述主路径 中传输的业务延迟所述主备时延补偿值之后输出。
在本发明实施例的又一种可行的实施方式中:
所述处理器执行所述将所述备路径中传输的业务延迟所述主备时延补偿值 之后输出的步骤时, 具体包括如下步骤:
在所述备路径的出口处设置 FIFO緩存器;
将所述备路径中传输的业务写入所述 FIFO緩存器, 当到达所述主备时延补 偿值时, 从所述 FIFO緩存器读出所述业务;
所述处理器执行所述将所述主路径中传输的业务延迟所述主备时延补偿值 之后输出的步骤时, 具体包括如下步骤:
在所述主路径的出口处设置 FIFO緩存器;
将所述主路径中传输的业务写入所述 FIFO緩存器, 当到达所述主备时延补 偿值时, 从所述 FIFO緩存器读出所述业务。
在本发明实施例的又一种可行的实施方式中:
所述处理器执行所述采用所述主备时延补偿值, 对第一设备与第二设备之 间的主路径或备路径传输的业务进行时延补偿的步骤之后, 还执行如下步骤: 计算第一设备与第二设备之间的全路径时延补偿值, 所述第一设备与第二 设备之间的全路径包括: 第一设备内路径、 第一设备与第二设备之间的主路径 或备路径, 以及第二设备内路径;
采用所述全路径时延补偿值, 对第一设备与第二设备之间传输的业务进行 时延补偿。
在本发明实施例的又一种可行的实施方式中:
所述处理器执行所述计算第一设备与第二设备之间的全路径时延补偿值的 步骤时, 具体包括如下步骤:
将业务沿第一设备与第二设备之间的全路径进行正向传输, 在所述全路径 的正向入口处对所述业务进行封装, 封装后的业务中包含所述业务到达所述正 向入口处的正向入口时间信息;
获取所述业务到达所述全路径的正向出口处的正向出口时间信息, 并在所 述正向出口处对所述业务进行解封装, 提取所述正向入口时间信息; 根据所述正向入口时间信息与正向出口时间信息, 计算所述全路径的正向 时延;
将业务沿第一设备与第二设备之间的全路径进行反向传输, 在所述全路径 的反向入口处对所述业务进行封装, 封装后的业务中包含所述业务到达所述反 向入口处的反向入口时间信息以及所述全路径的正向时延;
获取所述业务到达所述全路径的反向出口处的反向出口时间信息, 并在所 述反向出口处对所述业务进行解封装, 提取所述反向入口时间信息及所述全路 径的正向时延;
根据所述反向入口时间信息与反向出口时间信息, 计算所述全路径的反向 时延;
将所述全路径的正向时延与反向时延的时延差的绝对值, 确定为第一设备 与第二设备之间的全路径时延补偿值。
在本发明实施例的又一种可行的实施方式中:
所述处理器执行所述采用所述全路径时延补偿值, 对第一设备与第二设备 之间传输的业务进行时延补偿的步骤时, 具体包括如下步骤:
比较第一设备与第二设备之间的全路径的正向时延与反向时延的大小; 如果所述正向时延大于所述反向时延, 则将所述全路径中反向传输的业务 延迟所述全路径时延补偿值之后输出;
如果所述反向时延大于所述正向时延, 则将所述全路径中正向传输的业务 延迟所述全路径时延补偿值之后输出。
在本发明实施例的又一种可行的实施方式中:
所述处理器执行所述将所述全路径中反向传输的业务延迟所述全路径时延 补偿值之后输出的步骤时, 具体包括如下步骤:
在所述全路径的反向出口处设置 FIFO緩存器;
将所述全路径中反向传输的业务写入所述 FIFO緩存器, 当到达所述全路径 时延补偿值时, 从所述 FIFO緩存器读出所述业务;
所述处理器执行所述将所述全路径中正向传输的业务延迟所述全路径时延 补偿值之后输出的步骤时, 具体包括如下步骤:
在所述全路径的正向出口处设置 FIFO緩存器;
将所述全路径中正向传输的业务写入所述 FIFO緩存器, 当到达所述全路径 时延补偿值时, 从所述 FIFO緩存器读出所述业务。
通过上述实施例的描述, 采用本发明的时延补偿方法, 首先对进行业务传 输的设备进行时间同步, 以保证时延补偿的精度; 在时间同步的基础上, 计算 设备之间的主备时延补偿值, 并采用主备时延补偿值对设备间的主 /备路径传输 的业务进行时延补偿, 保证了主备路径的时延的对称性; 在主备时延对称性的 基础,还可实现设备间的全路径的上下时延的对称性,保证了业务的正常传输。
通过以上的实施方式的描述, 本领域的技术人员可以清楚地了解到各实施 方式可借助软件加必需的通用硬件平台的方式来实现, 当然也可以通过硬件。 基于这样的理解, 上述技术方案本质上或者说对现有技术做出贡献的部分可以 以软件产品的形式体现出来, 该计算机软件产品可以存储在计算机可读存储介 质中, 如 ROM/RAM、 磁碟、 光盘等, 包括若干指令用以使得一台计算机设备 (可以是个人计算机, 服务器, 或者网络设备等)执行各个实施例或者实施例 的某些部分所述的方法。
以上所述的实施方式, 并不构成对该技术方案保护范围的限定。 任何在上 述实施方式的精神和原则之内所作的修改、 等同替换和改进等, 均应包含在该 技术方案的保护范围之内。

Claims

权 利 要 求
1、 一种时延补偿方法, 其特征在于, 包括:
对进行业务传输的第一设备与第二设备进行时间同步处理;
计算同步后的第一设备与第二设备之间的主备时延补偿值;
采用所述主备时延补偿值,对第一设备与第二设备之间的主路径或备路径传 输的业务进行时延补偿。
2、 如权利要求 1所述的方法, 其特征在于, 所述计算同步后的第一设备与 第二设备之间的主备时延补偿值, 包括:
将业务从第一设备发起传输, 经第一设备与第二设备之间的主路径的发通 道传输至第二设备时, 再将所述业务从第二设备环回, 经所述主路径的收通道 传输至第一设备;
根据所述业务在所述主路径中的传输时间, 计算所述主路径的路径时延; 将业务从第一设备发起传输, 经第一设备与第二设备之间的备路径的发通 道传输至第二设备时, 再将所述业务从第二设备环回, 经所述备路径的收通道 传输至第一设备;
根据所述业务在所述备路径中的传输时间, 计算所述备路径的路径时延; 将所述主路径与所述备路径的路径时延差的绝对值的 1/2, 确定为第一设备 与第二设备之间的主备时延补偿值;
其中, 所述主路径的收发通道的长度相同, 所述备路径的收发通道的长度 相同。
3、如权利要求 2所述的方法,其特征在于,所述采用所述主备时延补偿值, 对第一设备与第二设备之间的主路径或备路径传输的业务进行时延补偿, 包括: 比较第一设备与第二设备之间的主路径与备路径的路径时延的大小; 如果所述主路径的路径时延大于所述备路径的路径时延, 则将所述备路径 中传输的业务延迟所述主备时延补偿值之后输出;
如果所述备路径的路径时延大于所述主路径的路径时延, 则将所述主路径 中传输的业务延迟所述主备时延补偿值之后输出。 4、 如权利要求 3所述的方法, 其特征在于, 所述将所述备路径中传输的业 务延迟所述主备时延补偿值之后输出, 包括:
在所述备路径的出口处设置先入先出 FIFO緩存器;
将所述备路径中传输的业务写入所述 FIFO緩存器, 当到达所述主备时延补 偿值时, 从所述 FIFO緩存器读出所述业务;
所述将所述主路径中传输的业务延迟所述主备时延补偿值之后输出, 包括: 在所述主路径的出口处设置 FIFO緩存器;
将所述主路径中传输的业务写入所述 FIFO緩存器, 当到达所述主备时延补 偿值时, 从所述 FIFO緩存器读出所述业务。
5、 如权利要求 1-4任一项所述的方法, 其特征在于, 所述采用所述主备时 延补偿值, 对第一设备与第二设备之间的主路径或备路径传输的业务进行时延 补偿之后, 还包括:
计算第一设备与第二设备之间的全路径时延补偿值, 所述第一设备与第二 设备之间的全路径包括: 第一设备内路径、 第一设备与第二设备之间的主路径 或备路径, 以及第二设备内路径;
采用所述全路径时延补偿值, 对第一设备与第二设备之间的全路径传输的 业务进行时延补偿。
6、 如权利要求 5所述的方法, 其特征在于, 所述计算第一设备与第二设备 之间的全路径时延补偿值, 包括:
将业务沿第一设备与第二设备之间的全路径进行正向传输, 在所述全路径 的正向入口处对所述业务进行封装, 封装后的业务中包含所述业务到达所述正 向入口处的正向入口时间信息;
获取所述业务到达所述全路径的正向出口处的正向出口时间信息, 并在所 述正向出口处对所述业务进行解封装, 提取所述正向入口时间信息;
根据所述正向入口时间信息与正向出口时间信息, 计算所述全路径的正向 时延;
将业务沿第一设备与第二设备之间的全路径进行反向传输, 在所述全路径 的反向入口处对所述业务进行封装, 封装后的业务中包含所述业务到达所述反 向入口处的反向入口时间信息以及所述全路径的正向时延;
获取所述业务到达所述全路径的反向出口处的反向出口时间信息, 并在所 述反向出口处对所述业务进行解封装, 提取所述反向入口时间信息及所述全路 径的正向时延;
根据所述反向入口时间信息与反向出口时间信息, 计算所述全路径的反向 时延;
将所述全路径的正向时延与反向时延的时延差的绝对值, 确定为第一设备 与第二设备之间的全路径时延补偿值。
7、 如权利要求 6所述的方法, 其特征在于, 所述采用所述全路径时延补偿 值, 对第一设备与第二设备之间的全路径传输的业务进行时延补偿, 包括:
比较第一设备与第二设备之间的全路径的正向时延与反向时延的大小; 如果所述正向时延大于所述反向时延, 则将所述全路径中反向传输的业务 延迟所述全路径时延补偿值之后输出;
如果所述反向时延大于所述正向时延, 则将所述全路径中正向传输的业务 延迟所述全路径时延补偿值之后输出。
8、 如权利要求 7所述的方法, 其特征在于, 所述将所述全路径中反向传输 的业务延迟所述全路径时延补偿值之后输出, 包括:
在所述全路径的反向出口处设置 FIFO緩存器;
将所述全路径中反向传输的业务写入所述 FIFO緩存器, 当到达所述全路径 时延补偿值时, 从所述 FIFO緩存器读出所述业务;
所述将所述全路径中正向传输的业务延迟所述全路径时延补偿值之后输出, 包括:
在所述全路径的正向出口处设置 FIFO緩存器;
将所述全路径中正向传输的业务写入所述 FIFO緩存器, 当到达所述全路径 时延补偿值时, 从所述 FIFO緩存器读出所述业务。 种时延补偿装置, 其特征在于, 同步模块, 用于对进行业务传输的第一设备与第二设备进行时间同步处理; 主备补偿计算模块,用于计算同步后的第一设备与第二设备之间的主备时延 补偿值;
主备补偿模块, 用于采用所述主备时延补偿值, 对第一设备与第二设备之 间的主路径或备路径传输的业务进行时延补偿。
10、如权利要求 9所述的装置, 其特征在于, 所述主备补偿计算模块包括: 主传输单元, 用于将业务从第一设备发起传输, 经第一设备与第二设备之 间的主路径的发通道传输至第二设备时, 再将所述业务从第二设备环回, 经所 述主路径的收通道传输至第一设备;
主时延计算单元, 用于根据所述业务在所述主路径中的传输时间, 计算所 述主路径的路径时延;
备传输单元, 用于将业务从第一设备发起传输, 经第一设备与第二设备之 间的备路径的发通道传输至第二设备时, 再将所述业务从第二设备环回, 经所 述备路径的收通道传输至第一设备;
备时延计算单元, 用于根据所述业务在所述备路径中的传输时间, 计算所 述备路径的路径时延;
主备补偿确定单元, 用于将所述主路径与所述备路径的路径时延差的绝对 值的 1/2, 确定为第一设备与第二设备之间的主备时延补偿值;
其中, 所述主路径的收发通道的长度相同, 所述备路径的收发通道的长度 相同。
11、 如权利要求 10所述的装置, 其特征在于, 所述主备补偿模块包括: 比较单元, 用于比较第一设备与第二设备之间的主路径与备路径的路径时 延的大小;
主备补偿单元, 用于如果所述主路径的路径时延大于所述备路径的路径时 延, 则将所述备路径中传输的业务延迟所述主备时延补偿值之后输出; 或者, 补偿单元, 用于如果所述备路径的路径时延大于所述主路径的路径时延, 则将 所述主路径中传输的业务延迟所述主备时延补偿值之后输出。 12、 如权利要求 11所述的装置, 其特征在于, 所述主备补偿单元具体用于 如果所述主路径的路径时延大于所述备路径的路径时延, 在所述备路径的出口 处设置先入先出 FIFO緩存器, 将所述备路径中传输的业务写入所述 FIFO緩存 器, 当到达所述主备时延补偿值时, 从所述 FIFO緩存器读出所述业务; 或者, 用于如果所述备路径的路径时延大于所述主路径的路径时延, 在所述主路 径的出口处设置 FIFO緩存器, 将所述主路径中传输的业务写入所述 FIFO緩存 器, 当到达所述主备时延补偿值时, 从所述 FIFO緩存器读出所述业务。
13、 如权利要求 9-12任一项所述的装置, 其特征在于, 还包括:
全补偿计算模块, 用于计算第一设备与第二设备之间的全路径时延补偿值, 所述第一设备与第二设备之间的全路径包括: 第一设备内路径、 第一设备与第 二设备之间的主路径或备路径, 以及第二设备内路径;
全补偿模块, 用于采用所述全路径时延补偿值, 对第一设备与第二设备之 间传输的业务进行时延补偿。
14、 如权利要求 13所述的装置, 其特征在于, 所述全补偿计算模块包括: 正向处理单元, 用于将业务沿第一设备与第二设备之间的全路径进行正向 传输, 在所述全路径的正向入口处对所述业务进行封装, 封装后的业务中包含 所述业务到达所述正向入口处的正向入口时间信息; 获取所述业务到达所述全 路径的正向出口处的正向出口时间信息, 并在所述正向出口处对所述业务进行 解封装, 提取所述正向入口时间信息;
正向时延计算单元, 用于根据所述正向入口时间信息与正向出口时间信息, 计算所述全路径的正向时延;
反向处理单元, 用于将业务沿第一设备与第二设备之间的全路径进行反向 传输, 在所述全路径的反向入口处对所述业务进行封装, 封装后的业务中包含 所述业务到达所述反向入口处的反向入口时间信息以及所述全路径的正向时延; 获取所述业务到达所述全路径的反向出口处的反向出口时间信息, 并在所述反 向出口处对所述业务进行解封装, 提取所述反向入口时间信息及所述全路径的 正向时延;
反向时延计算单元, 用于根据所述反向入口时间信息与反向出口时间信息, 计算所述全路径的反向时延;
全补偿确定单元, 用于将所述全路径的正向时延与反向时延的时延差的绝 对值, 确定为第一设备与第二设备之间的全路径时延补偿值。
15、 如权利要求 14所述的装置, 其特征在于, 所述全补偿模块包括: 比较单元, 用于比较第一设备与第二设备之间的全路径的正向时延与反向 时延的大小;
全补偿单元, 用于如果所述正向时延大于所述反向时延, 则将所述全路径 中反向传输的业务延迟所述全路径时延补偿值之后输出; 或者, 如果所述反向 时延大于所述正向时延, 则将所述全路径中正向传输的业务延迟所述全路径时 延补偿值之后输出。
16、 如权利要求 15 所述的装置, 其特征在于, 所述全补偿单元具体用于: 如果所述正向时延大于所述反向时延,在所述全路径的反向出口处设置 FIFO緩 存器, 将所述全路径中反向传输的业务写入所述 FIFO緩存器, 当到达所述全路 径时延补偿值时, 从所述 FIFO緩存器读出所述业务; 或者,
用于如果所述反向时延大于所述正向时延, 在所述全路径的正向出口处设 置 FIFO緩存器, 将所述全路径中正向传输的业务写入所述 FIFO緩存器, 当到 达所述全路径时延补偿值时, 从所述 FIFO緩存器读出所述业务。
17、 一种计算机存储介质, 其特征在于:
所述计算机存储介质可存储有程序,该程序执行时包括如权利要求 1-8任一 项所述的步骤。
18、 一种时延补偿装置, 其特征在于, 包括: 发射器, 接收器和处理器; 其中, 所述处理器执行如下步骤:
对进行业务传输的第一设备与第二设备进行时间同步处理;
计算同步后的第一设备与第二设备之间的主备时延补偿值;
采用所述主备时延补偿值,对第一设备与第二设备之间的主路径或备路径传 输的业务进行时延补偿。 19、 如权利要求 18所述的装置, 其特征在于, 所述处理器执行所述计算同 步后的第一设备与第二设备之间的主备时延补偿值的步骤时, 具体包括如下步 骤:
控制所述发射器将业务从第一设备发起传输 , 经第一设备与第二设备之间 的主路径的发通道传输至第二设备时, 再将所述业务从第二设备环回, 经所述 主路径的收通道传输至第一设备;
根据所述业务在所述主路径中的传输时间, 计算所述主路径的路径时延; 控制所述发射器将业务从第一设备发起传输 , 经第一设备与第二设备之间 的备路径的发通道传输至第二设备时, 再将所述业务从第二设备环回, 经所述 备路径的收通道传输至第一设备;
根据所述业务在所述备路径中的传输时间, 计算所述备路径的路径时延; 将所述主路径与所述备路径的路径时延差的绝对值的 1/2, 确定为第一设备 与第二设备之间的主备时延补偿值;
其中, 所述主路径的收发通道的长度相同, 所述备路径的收发通道的长度 相同。
20、 如权利要求 19所述的装置, 其特征在于, 所述处理器执行所述采用所 述主备时延补偿值, 对第一设备与第二设备之间的主路径或备路径传输的业务 进行时延补偿的步骤时, 具体包括如下步骤:
比较第一设备与第二设备之间的主路径与备路径的路径时延的大小; 如果所述主路径的路径时延大于所述备路径的路径时延, 则将所述备路径 中传输的业务延迟所述主备时延补偿值之后输出;
如果所述备路径的路径时延大于所述主路径的路径时延, 则将所述主路径 中传输的业务延迟所述主备时延补偿值之后输出。
21、 如权利要求 20所述的装置, 其特征在于, 所述处理器执行所述将所述 备路径中传输的业务延迟所述主备时延补偿值之后输出的步骤时, 具体包括如 下步骤:
在所述备路径的出口处设置先入先出 FIFO緩存器; 将所述备路径中传输的业务写入所述 FIFO緩存器, 当到达所述主备时延补 偿值时, 从所述 FIFO緩存器读出所述业务;
所述处理器执行所述将所述主路径中传输的业务延迟所述主备时延补偿值 之后输出的步骤时, 具体包括如下步骤:
在所述主路径的出口处设置 FIFO緩存器;
将所述主路径中传输的业务写入所述 FIFO緩存器, 当到达所述主备时延补 偿值时, 从所述 FIFO緩存器读出所述业务。
22、 如权利要求 18-21任一项所述的装置, 其特征在于, 所述处理器执行所 述采用所述主备时延补偿值, 对第一设备与第二设备之间的主路径或备路径传 输的业务进行时延补偿的步骤之后, 还执行如下步骤:
计算第一设备与第二设备之间的全路径时延补偿值, 所述第一设备与第二 设备之间的全路径包括: 第一设备内路径、 第一设备与第二设备之间的主路径 或备路径, 以及第二设备内路径;
采用所述全路径时延补偿值, 对第一设备与第二设备之间传输的业务进行 时延补偿。
23、 如权利要求 22所述的装置, 其特征在于, 所述处理器执行所述计算第 一设备与第二设备之间的全路径时延补偿值的步骤时, 具体包括如下步骤: 将业务沿第一设备与第二设备之间的全路径进行正向传输, 在所述全路径 的正向入口处对所述业务进行封装, 封装后的业务中包含所述业务到达所述正 向入口处的正向入口时间信息;
获取所述业务到达所述全路径的正向出口处的正向出口时间信息, 并在所 述正向出口处对所述业务进行解封装, 提取所述正向入口时间信息;
根据所述正向入口时间信息与正向出口时间信息, 计算所述全路径的正向 时延;
将业务沿第一设备与第二设备之间的全路径进行反向传输, 在所述全路径 的反向入口处对所述业务进行封装, 封装后的业务中包含所述业务到达所述反 向入口处的反向入口时间信息以及所述全路径的正向时延;
获取所述业务到达所述全路径的反向出口处的反向出口时间信息, 并在所 述反向出口处对所述业务进行解封装, 提取所述反向入口时间信息及所述全路 径的正向时延;
根据所述反向入口时间信息与反向出口时间信息, 计算所述全路径的反向 时延;
将所述全路径的正向时延与反向时延的时延差的绝对值, 确定为第一设备 与第二设备之间的全路径时延补偿值。
24、 如权利要求 23所述的装置, 其特征在于, 所述处理器执行所述采用所 述全路径时延补偿值, 对第一设备与第二设备之间传输的业务进行时延补偿的 步骤时, 具体包括如下步骤:
比较第一设备与第二设备之间的全路径的正向时延与反向时延的大小; 如果所述正向时延大于所述反向时延, 则将所述全路径中反向传输的业务 延迟所述全路径时延补偿值之后输出;
如果所述反向时延大于所述正向时延, 则将所述全路径中正向传输的业务 延迟所述全路径时延补偿值之后输出。
25、 如权利要求 24所述的装置, 其特征在于, 所述处理器执行所述将所述 全路径中反向传输的业务延迟所述全路径时延补偿值之后输出的步骤时, 具体 包括如下步骤:
在所述全路径的反向出口处设置 FIFO緩存器;
将所述全路径中反向传输的业务写入所述 FIFO緩存器, 当到达所述全路径 时延补偿值时, 从所述 FIFO緩存器读出所述业务;
所述处理器执行所述将所述全路径中正向传输的业务延迟所述全路径时延 补偿值之后输出的步骤时, 具体包括如下步骤:
在所述全路径的正向出口处设置 FIFO緩存器;
将所述全路径中正向传输的业务写入所述 FIFO緩存器, 当到达所述全路径 时延补偿值时, 从所述 FIFO緩存器读出所述业务。
PCT/CN2012/084662 2012-11-15 2012-11-15 一种时延补偿方法及装置 Ceased WO2014075260A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2012/084662 WO2014075260A1 (zh) 2012-11-15 2012-11-15 一种时延补偿方法及装置
CN201280001997.1A CN103299582B (zh) 2012-11-15 2012-11-15 一种时延补偿方法及装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/084662 WO2014075260A1 (zh) 2012-11-15 2012-11-15 一种时延补偿方法及装置

Publications (1)

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

Family

ID=49098415

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/084662 Ceased WO2014075260A1 (zh) 2012-11-15 2012-11-15 一种时延补偿方法及装置

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI877481B (zh) * 2021-05-04 2025-03-21 日商佳能股份有限公司 在無線網路中控制時間同步

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105338431A (zh) * 2014-08-08 2016-02-17 中兴通讯股份有限公司 硬件随机时延补偿实现方法及其装置
CN106357472A (zh) * 2015-07-17 2017-01-25 中兴通讯股份有限公司 一种时延测量方法和装置
CN108989138A (zh) * 2017-05-31 2018-12-11 中兴通讯股份有限公司 数据传输方法、装置、系统及网关
WO2019006704A1 (zh) * 2017-07-05 2019-01-10 华为技术有限公司 一种路径计算的方法、装置和系统
CN110278065B (zh) 2018-03-13 2022-02-08 华为技术有限公司 一种补偿时延的方法和设备
CN113037623B (zh) * 2019-12-24 2022-06-24 华为技术有限公司 时延处理方法、设备及系统
CN116347140B (zh) * 2021-12-22 2025-09-09 京东方科技集团股份有限公司 视频同步播放方法及装置、存储介质、电子设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101162959A (zh) * 2007-10-19 2008-04-16 中兴通讯股份有限公司 时钟主备相位差异自动测量及补偿方法
CN101389090A (zh) * 2008-10-09 2009-03-18 深圳国人通信有限公司 光纤直放站及其时延的测量方法、装置及补偿方法、系统
CN102368691A (zh) * 2011-09-23 2012-03-07 烽火通信科技股份有限公司 以太网无源光网络系统中光链路保护倒换的实现方法

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 (zh) * 2004-05-27 2009-07-22 华为技术有限公司 一种无线通讯系统中的时延调整补偿方法
CN102291178B (zh) * 2011-09-08 2014-11-19 烽火通信科技股份有限公司 测量光纤不对称性时延的方法及装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101162959A (zh) * 2007-10-19 2008-04-16 中兴通讯股份有限公司 时钟主备相位差异自动测量及补偿方法
CN101389090A (zh) * 2008-10-09 2009-03-18 深圳国人通信有限公司 光纤直放站及其时延的测量方法、装置及补偿方法、系统
CN102368691A (zh) * 2011-09-23 2012-03-07 烽火通信科技股份有限公司 以太网无源光网络系统中光链路保护倒换的实现方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI877481B (zh) * 2021-05-04 2025-03-21 日商佳能股份有限公司 在無線網路中控制時間同步

Also Published As

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

Similar Documents

Publication Publication Date Title
WO2014075260A1 (zh) 一种时延补偿方法及装置
EP2528254B1 (en) Method and device for time synchronization
JP5518191B2 (ja) 光伝送網が時刻同期プロトコルをキャリングする方法及びシステム
CN102244603B (zh) 传输承载时间的报文的方法、设备及系统
CN106162860A (zh) 一种时间同步的方法及系统、网络设备
CN102111258A (zh) 时钟同步方法、设备和系统
WO2011120262A1 (zh) 时间同步的处理方法及装置
WO2010037347A1 (zh) 同步网中主、从时钟侧的时间同步方法、装置、及系统
WO2012092903A2 (zh) 延迟的测量方法及光传送网络设备
CN104113517A (zh) 时间戳生成方法、装置及系统
US11411848B2 (en) Flexible ethernet latency measurement method and related device
WO2015109795A1 (zh) 一种光突发传送网、节点、传输方法及计算机存储介质
CN106921641B (zh) 传输报文的方法和装置
WO2019170064A1 (zh) 光网络中以太数据处理的方法、装置和系统
CN114978961A (zh) 时延测量方法、装置、设备和计算机可读存储介质
WO2013097754A1 (zh) 一种空口数据同步处理的方法和装置
US9065748B2 (en) Symmetrical latency with TDM circuit emulated service
CN103078699A (zh) 基于精密时间协议进行时间同步的方法和网络设备
CN101765199B (zh) 一种通信网络系统及系统内时间同步方法和otn设备
JP5944082B2 (ja) 光伝送システムおよび遅延測定方法
CN114338831B (zh) 一种网关通信方法、通信设备和存储介质
WO2025252240A1 (zh) 时延测量方法及装置、通信设备、存储介质、程序产品
CN102957528A (zh) 穿越第三方同步网络的同步方法和系统
KR101958374B1 (ko) 네트워크 내의 지연을 정확하게 추정하는 서비스들, 시스템들 및 방법들
WO2016184225A1 (zh) 一种时间同步消息发送方法和装置

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