This application relates to the field of optical communications technologies, and in particular, to a delay measurement method and a station.
In a dense wavelength division multiplexing (DWDM) system, there is a C-band optical signal (C-BAND) transmission channel and an optical supervisory channel (OSC). The C-BAND transmission channel and the OSC channel have different wavelengths. The C-BAND transmission channel is used to transmit a service, and the OSC channel is used to transmit supervisory management information.
To implement time synchronization between any two stations in an optical transport network (OTN), a dedicated slot on an OSC channel is used to transmit time stamp information between two stations, to implement time synchronization between two stations that are in a fiber connection.
A “single-fiber bidirectional” manner is used in the prior art to measure a unidirectional transmission delay between stations, to perform time synchronization. As shown in
When the “single-fiber bidirectional” manner is used, two different wavelengths need to be used for back-and-forth transmission on the fiber. If a station A and a station B have a same sending wavelength, there is reflection when a signal sent by the station A passes through an optical multiplexer, and the signal is mixed with a signal sent by the station B. As a result, the station A cannot correctly receive the signal sent by the station B. For example, as shown in
Therefore, a unidirectional transmission delay between stations cannot be accurately measured by using the solution in the prior art.
This application provides a delay measurement method and a station, to accurately measure a unidirectional transmission delay between stations.
According to a first aspect of this application, a delay measurement method is provided, and includes: controlling, by a first station, an optical path selector to work in a first state, so that the first station selects a first fiber to send a first optical supervisory channel OSC signal to a second station, where the first OSC signal includes a first time stamp, and the first time stamp indicates a first sending moment at which the first station sends the first OSC signal; controlling, by the first station, the optical path selector to work in a second state, so that the first station selects the first fiber to receive a second OSC signal from the second station at a second receiving moment, where the second OSC signal includes a second time stamp, the second time stamp indicates a first receiving moment at which the second station receives the first OSC signal and a second sending moment at which the second station sends the second OSC signal, and a difference between a value of a wavelength used by the first OSC signal and a value of a wavelength used by the second OSC signal is less than a preset range; and calculating, by the first station, a unidirectional transmission delay between the first station and the second station based on the first sending moment, the first receiving moment, the second sending moment, and the second receiving moment. In this embodiment, the optical path selector is used to switch an optical path, so that two OSC signals including time stamps are transmitted on a same fiber in which a difference between wavelength values is less than the preset range, and a unidirectional transmission delay between two stations can be accurately measured based on the time stamps.
In one embodiment, after the first station selects the first fiber to send the first OSC signal to the second station, the method further includes: receiving, by the first station, an acknowledgement message from the second station, where the acknowledgement message is used to indicate that the second station has received the first OSC signal. In this embodiment, after receiving the first OSC signal, the second station sends the acknowledgement message to the first station, to acknowledge that the first OSC signal has been received, so that the first station can accurately switch an optical path. In another embodiment, the first station may alternatively switch an optical path a preset time after sending of the first OSC signal.
In another embodiment, after the calculating, by the first station, a unidirectional transmission delay between the first station and the second station based on the first sending moment, the first receiving moment, the second sending moment, and the second receiving moment, the method further includes: sending, by the first station, the unidirectional transmission delay to the second station. In this embodiment, after obtaining the unidirectional transmission delay through calculation, the first station sends the unidirectional transmission delay to the second station, so that the second station can accurately perform time synchronization based on the unidirectional transmission delay and a time of the first station.
In still another embodiment, after the sending, by the first station, the unidirectional transmission delay to the second station, the method further includes: sending, by the first station, a third OSC signal to the second station, where the third OSC signal includes an updated time of the first station. In this embodiment, the first station periodically sends the updated time of the first station, so that the second station can implement time synchronization with the first station based on the updated time of the first station and the unidirectional transmission delay.
According to another aspect of this application, a delay measurement method is provided, and includes: controlling, by the second station, an optical path selector to work in a first state, so that the second station selects a first fiber to receive a first optical supervisory channel OSC signal from the first station, where the first OSC signal includes a first time stamp, and the first time stamp indicates a first sending moment at which the first station sends the first OSC signal; and controlling, by the second station, the optical path selector to work in a second state, so that the second station selects the first fiber to send a second OSC signal to the first station, where the second OSC signal includes a second time stamp, the second time stamp indicates a first receiving moment at which the second station receives the first OSC signal and a second sending moment at which the second station sends the second OSC signal, and a difference between a value of a wavelength used by the first OSC signal and a value of a wavelength used by the second OSC signal is less than a preset range. In this embodiment, the optical path selector is used to switch an optical path, so that two OSC signals including time stamps are transmitted on a same fiber in which a difference between wavelength values is less than the preset range, and a unidirectional transmission delay between two stations can be accurately measured based on the time stamps.
In one embodiment, after the second station selects the first fiber to receive the first OSC signal from the first station, the method further includes: sending, by the second station, an acknowledgement message to the first station, where the acknowledgement message is used to indicate that the second station has received the first OSC signal. In this embodiment, after receiving the first OSC signal, the second station sends the acknowledgement message to the first station, to acknowledge that the first OSC signal has been received, so that the first station can accurately switch an optical path. In another embodiment, the first station may alternatively switch an optical path a preset time after sending of the first OSC signal.
In another embodiment, the controlling, by the second station, the optical path selector to work in a second state includes: controlling, by the second station based on a change of an optical power on the first fiber, the optical path selector to work in the second state. In this embodiment, the first station does not need to notify the second station of a change of an optical path, and when the first station switches a status of an optical path selector, the second station may switch a status of the optical path selector of the second station based on the change of the optical power on the fiber. In one embodiment, there is no light on the fiber, and the optical power is 0.
In still another embodiment, after the second station selects the first fiber to send the second OSC signal to the first station, the method further includes: receiving, by the second station, a unidirectional transmission delay sent by the first station. In this embodiment, after obtaining the unidirectional transmission delay through calculation, the first station sends the unidirectional transmission delay to the second station, so that the second station can perform time synchronization based on the unidirectional transmission delay and a time of the first station.
In still another embodiment, after the receiving, by the second station, a unidirectional transmission delay sent by the first station, the method further includes: synchronizing, by the second station, a time of the second station with a time of the first station based on the unidirectional transmission delay and the time of the first station. In this embodiment, the second station can accurately perform time synchronization based on the unidirectional transmission delay and the time of the first station.
In still another embodiment, after the second station performs time calibration based on the time of the first station, the method further includes: receiving, by the second station, a third OSC signal sent by the first station, where the third OSC signal includes an updated time of the first station; and updating, by the second station, the time of the second station based on the updated time of the first station and the unidirectional transmission delay. In this embodiment, the first station periodically sends the updated time of the first station, so that the second station can accurately implement time synchronization with the first station based on the updated time of the first station and the unidirectional transmission delay.
With reference to either of the foregoing aspects of this application, in one embodiment, the difference between the value of the wavelength used by the first OSC signal and the value of the wavelength used by the second OSC signal is 0. In this embodiment, a difference between values of wavelengths used by two OSC signals is 0, so that a measured unidirectional transmission delay can be completely error-free.
With reference to either of the foregoing aspects of this application, in another embodiment, the unidirectional transmission delay is a half of a difference between a first operation value and a second operation value, the first operation value is a difference between the second receiving moment and the first sending moment, and the second operation value is a difference between the second sending moment and the first receiving moment. In this embodiment, the unidirectional transmission delay is calculated based on moments at which each of two stations sends and receives OSC signals and that are recorded in time stamps.
With reference to either of the foregoing aspects of this application, in still another embodiment, the optical path selector is a 2×2 optical switch. In this embodiment, switching between two optical paths can be simply implemented by using the 2×2 optical switch.
According to still another aspect of this application, a first station is provided. The first station has a function of implementing behavior of the first station in the foregoing method. The function may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the function.
In one embodiment, the first station includes: an optical path control unit configured to control an optical path selector to work in a first state; a sending unit configured to select a first fiber to send a first optical supervisory channel OSC signal to a second station, where the first OSC signal includes a first time stamp, and the first time stamp indicates a first sending moment at which the first station sends the first OSC signal, where the optical path control unit is further configured to control the optical path selector to work in a second state; a receiving unit configured to select the first fiber to receive a second OSC signal from the second station at a second receiving moment, where the second OSC signal includes a second time stamp, the second time stamp indicates a first receiving moment at which the second station receives the first OSC signal and a second sending moment at which the second station sends the second OSC signal, and a difference between a value of a wavelength used by the first OSC signal and a value of a wavelength used by the second OSC signal is less than a preset range; and a calculation unit configured to calculate a unidirectional transmission delay between the first station and the second station based on the first sending moment, the first receiving moment, the second sending moment, and the second receiving moment.
In another embodiment, the first station includes: a controller, an optical path selector connected to the controller, and a fiber interface unit connected to the optical path selector, where the controller is configured to control the optical path selector to work in a first state, so that the fiber interface unit selects a first fiber to send a first optical supervisory channel OSC signal to a second station, where the first OSC signal includes a first time stamp, and the first time stamp indicates a first sending moment at which the first station sends the first OSC signal; the controller is further configured to control the optical path selector to work in a second state, so that the fiber interface unit selects the first fiber to receive a second OSC signal from the second station at a second receiving moment, where the second OSC signal includes a second time stamp, the second time stamp indicates a first receiving moment at which the second station receives the first OSC signal and a second sending moment at which the second station sends the second OSC signal, and a difference between a value of a wavelength used by the first OSC signal and a value of a wavelength used by the second OSC signal is less than a preset range; and the controller is further configured to calculate a unidirectional transmission delay between the first station and the second station based on the first sending moment, the first receiving moment, the second sending moment, and the second receiving moment.
Based on a same inventive concept, for a problem resolving principle and a beneficial effect of the apparatus, refer to the foregoing possible method embodiments of the station and the beneficial effect of the embodiments. Therefore, for implementation of the apparatus, refer to the implementation of the methods. Details are not described herein again.
According to still another aspect of this application, a second station is provided. The second station has a function of implementing behavior of the second station in the foregoing method. The function may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the function.
In one embodiment, the second station includes: an optical path control unit configured to control an optical path selector to work in a first state; a receiving unit configured to select a first fiber to receive a first optical supervisory channel OSC signal from the first station, where the first OSC signal includes a first time stamp, and the first time stamp indicates a first sending moment at which the first station sends the first OSC signal, where the optical path control unit is further configured to control the optical path selector to work in a second state; and a sending unit configured to select the first fiber to send a second OSC signal to the first station, where the second OSC signal includes a second time stamp, the second time stamp indicates a first receiving moment at which the second station receives the first OSC signal and a second sending moment at which the second station sends the second OSC signal, and a difference between a value of a wavelength used by the first OSC signal and a value of a wavelength used by the second OSC signal is less than a preset range.
In another embodiment, the second station includes: a controller, an optical path selector connected to the controller, and a fiber interface unit connected to the optical path selector, where the controller is configured to control the optical path selector to work in a first state, so that the fiber interface unit selects a first fiber to receive a first optical supervisory channel OSC signal from a first station, where the first OSC signal includes a first time stamp, and the first time stamp indicates a first sending moment at which the first station sends the first OSC signal; the controller is further configured to control the optical path selector to work in a second state, so that the fiber interface unit selects the first fiber to send a second OSC signal to the first station, where the second OSC signal includes a second time stamp, the second time stamp indicates a first receiving moment at which the second station receives the first OSC signal and a second sending moment at which the second station sends the second OSC signal, and a difference between a value of a wavelength used by the first OSC signal and a value of a wavelength used by the second OSC signal is less than a preset range.
Based on a same inventive concept, for a problem resolving principle and a beneficial effect of the apparatus, refer to the foregoing method embodiments of the station and the beneficial effect of the embodiments. Therefore, for implementation of the apparatus, refer to the implementation of the methods. Details are not described herein again.
Still another aspect of this application provides a computer-readable storage medium. The computer-readable storage medium stores an instruction, and when the instruction runs on a computer, the computer performs the methods in the foregoing aspects.
Still another aspect of this application provides a communications chip, storing instructions. When the instructions run on a network device or a terminal device, the network device or the terminal device performs the methods in the foregoing aspects.
Still another aspect of this application provides a computer program product including instructions. When the instructions run on a computer, the computer performs the methods in the foregoing aspects.
To describe the technical solutions in the embodiments of the present disclosure or in the background more clearly, the following describes the accompanying drawings required for describing the embodiments of the present disclosure or the background.
The following describes the embodiments of the present disclosure with reference to the accompanying drawings in the embodiments of the present disclosure.
In one embodiment, tributary board 1 completes encapsulation and mapping on a client service. The client service includes a plurality of service types, for example, a packet service and a constant bit rate (CBR) service. The packet service may include an Ethernet media access control (MAC) packet service, a flexible Ethernet (FlexE) packet service, a multiprotocol label switching (MPLS) packet service, an internet protocol (IP) packet service, or the like. The CBR service may include a synchronous digital hierarchy (SDH) service, an OTN service, a common public radio interface (CPRI) service, or a service of another time division multiplexing (TDM) type. In one embodiment, the tributary board 1 is configured to: receive a client service from the client side, encapsulate the received client service, map the client service to an optical data unit (ODU) signal, and add corresponding OTN management supervisory overheads. On the tributary board 1, the ODU signal may be ODUflex, ODU0, ODU1, ODU2, ODU2e, ODU3, ODU4, or the like, and the OTN management supervisory overheads may be ODU overheads. Different types of client services may be encapsulated and are then mapped to different ODU signals in different manners.
In one embodiment, cross-connect board 2 completes full cross connection between the tributary board and the line board, and implements flexible cross connection grooming on an ODU signal. In one embodiment, the cross-connect board may transmit an ODU signal from any tributary board to any line board, or transmit an OTU signal from any line board to any line board, or may transmit a client signal from any tributary board to any tributary board.
In one embodiment, line board 3 forms an optical transport unit (OTU) signal by using an ODU signal, and sends the OTU signal to the line side. Before forming an OTU signal by using an ODU signal, the line board 3 may multiplex a plurality of ODU signals having lower rates onto ODU signals having higher rates. Corresponding OTN management supervisory overheads are added to an ODU signal, to form an OTU signal and send the OTU signal to an optical transport channel on the line side. On the line board 3, the ODU signal may be ODU1, ODU2, ODU3, ODU4, ODUCn, or the like, and the OTU signal (which may be multiplexed or may not be multiplexed) may be OTU1, OTU2, OTU3, OTU4, OTUCn, or the like. The OTN management supervisory overheads may be OTU overheads.
A line-side service signal passes through an OM or OD, then is amplified by using an optical amplifier (OA), and is sent by using a fiber interface unit (FIU).
The foregoing describes transmission of a service signal. In the optical transport network, there is a further type of signal: an OSC signal. In the structural diagram shown in
A “single-fiber unidirectional” optical communication manner is used in this embodiment. As shown in
In
In one embodiment, during delay measurement, measurement is performed independently for each fiber. For example, a unidirectional transmission delay of the fiber 1 or the fiber 2 in
S101. A first station controls a first optical path selector to work in a first state.
S101′. A second station controls a second optical path selector to work in the first state.
S102. The first station selects a first fiber to send a first OSC signal to the second station, where the first OSC signal includes a first time stamp, and the first time stamp indicates a first sending moment at which the first station sends the first OSC signal.
S103. The first station controls the first optical path selector to work in a second state.
S104. The second station controls the second optical path selector to work in the second state.
S105. The second station selects the first fiber to send a second OSC signal to the first station, where the second OSC signal includes a second time stamp, the second time stamp indicates a first receiving moment at which the second station receives the first OSC signal and a second sending moment at which the second station sends the second OSC signal, and a difference between a value of a wavelength used by the first OSC signal and a value of a wavelength used by the second OSC signal is less than a preset range.
S106. The first station calculates a unidirectional transmission delay between the first station and the second station based on the first sending moment, the first receiving moment, the second sending moment, and a second receiving moment.
Specific working manners of two stations are described below with reference to the foregoing procedure:
First, as shown in step S101 and step S101′, after the stations are powered on, a controller of each station controls an optical switch to work in a state 1 (shown by solid lines of the optical switch in
Then, as shown in step S102, the station A sends a first OSC signal to the station B, and the station B receives the first OSC signal. In one embodiment, the first OSC signal is sent by the station A to the station B through a fiber 1. As shown in
Subsequently, as shown in step S103, the station A switches the optical switch to work in a state 2, and then, as shown in step S104, the station B also switches the optical switch to work in the state 2.
Subsequently, as shown in step S105 and
Finally, as shown in step S106, the station A calculates a unidirectional transmission delay D between the station A and the station B based on the first sending moment T1A, the first receiving moment T1B, the second sending moment T2B, and the second receiving moment T2A. In one embodiment, the unidirectional transmission delay is a half of a difference between a first operation value and a second operation value, the first operation value is a difference between the second receiving moment and the first sending moment, and the second operation value is a difference between the second sending moment and the first receiving moment. In this example, the unidirectional transmission delay D=(T2A−T1A−(T2B−T1B))/2. The first operation value (T2A−T1A) is a total time of transmitting a time stamp back and forth on the fiber 1, and the second operation value (T2B−T1B) is a time within which the time stamp is buffered in the station B. In this embodiment, the difference between the value of the wavelength used by the first OSC signal and the value of the wavelength used by the second OSC signal is less than the preset range, and the preset range may be a minimal value approaching 0. For example, the difference between the value of the wavelength used by the first OSC signal and the value of the wavelength used by the second OSC signal may be 0. Therefore, the unidirectional transmission delay obtained through calculation has a minimal error.
In this embodiment, the first OSC signal and the second OSC signal may use a frame structure of an OTN frame.
In this embodiment, the first time stamp and the second time stamp are located in the optical channel payload unit-k bytes in column 17 to column 3824.
According to the delay measurement method provided in this embodiment, the optical path selector is used to switch an optical path, so that two OSC signals including time stamps are transmitted on a same fiber in which a difference between wavelength values is less than the preset range, and a unidirectional transmission delay between two stations can be accurately measured based on the time stamps.
After the first station sends the first OSC signal to the second station, the method further includes step S203: The second station sends an acknowledgement message to the first station, where the acknowledgement message is used to indicate that the second station has received the first OSC signal. The first station receives the acknowledgement message. In one embodiment, as shown in
In another embodiment, the station B may not send an acknowledgement message to the station A, and instead, the station A switches a status of an optical switch to a state 2 a specified time after sending of a first OSC signal.
In addition, the second station controls the second optical path selector to work in a second state. In one embodiment, the second station controls, based on a change of an optical power on the first fiber, the second optical path selector to work in the second state. In one embodiment, an SFP connected to an optical switch in the station B has two fixed ports, one port is a transmit port, and the other port is a receive port. For example, when the optical switch works in the state 1, an OSC signal is normally received by the receive port of the SFP through the optical switch. However, when the optical switch is switched to the state 2, the ports of the SFP connected to the optical switch are exchanged with each other, and the original receive port of the SFP cannot detect the OSC signal. In other words, a receive optical power becomes 0. Then, a controller of the station B controls, based on the change of the optical power on the fiber, the optical switch of the station B to work in the state 2.
In addition, after the first station sends a unidirectional transmission delay to the second station, the method further includes step S209: The second station synchronizes a time of the second station with a time of the first station based on the unidirectional transmission delay and the time of the first station. In one embodiment, after receiving the unidirectional transmission delay, the station B may further extract a system time of the station A from an optical signal, and subtract the unidirectional transmission delay from the system time of the station A to obtain a system time of the station B, to implement time synchronization between the station B serving as a secondary station and the station A serving as a primary station.
In addition, after step S209, the method may further include a step (not shown): The first station sends a third OSC signal to the second station, where the third OSC signal includes an updated time of the first station. The second station receives the third OSC signal sent by the first station, where the third OSC signal includes the updated time of the first station. The second station updates the time of the second station based on the updated time of the first station and the unidirectional transmission delay. In one embodiment, the first station periodically sends the updated time of the first station, so that the second station can implement time synchronization with the first station based on the updated time of the first station and the unidirectional transmission delay.
According to the delay measurement method provided in this embodiment, the optical path selector is used to switch an optical path, so that two OSC signals including time stamps are transmitted on a same fiber in which a difference between wavelength values is less than a preset range, and a unidirectional transmission delay between two stations can be accurately measured based on the time stamps. The secondary station may further implement time synchronization with the primary station based on the unidirectional transmission delay.
The foregoing describes in detail the method in the embodiments of the present disclosure, and the following provides an apparatus in an embodiment of the present disclosure.
an optical path control unit 11 configured to control an optical path selector to work in a first state;
a sending unit 12 configured to select a first fiber to send a first optical supervisory channel OSC signal to a second station, where the first OSC signal includes a first time stamp, and the first time stamp indicates a first sending moment at which the station 1000 sends the first OSC signal, where
the optical path control unit 11 is further configured to control the optical path selector to work in a second state;
a receiving unit 13 configured to select the first fiber to receive a second OSC signal from the second station at a second receiving moment, where the second OSC signal includes a second time stamp, the second time stamp indicates a first receiving moment at which the second station receives the first OSC signal and a second sending moment at which the second station sends the second OSC signal, and a difference between a value of a wavelength used by the first OSC signal and a value of a wavelength used by the second OSC signal is less than a preset range; and
a calculation unit 14 configured to calculate a unidirectional transmission delay between the station 1000 and the second station based on the first sending moment, the first receiving moment, the second sending moment, and the second receiving moment.
In one embodiment, the difference between the value of the wavelength used by the first OSC signal and the value of the wavelength used by the second OSC signal is 0. In this embodiment, a difference between values of wavelengths used by two OSC signals is 0, so that a measured unidirectional transmission delay can be completely error-free.
In another embodiment, the unidirectional transmission delay is a half of a difference between a first operation value and a second operation value, the first operation value is a difference between the second receiving moment and the first sending moment, and the second operation value is a difference between the second sending moment and the first receiving moment. In this embodiment, the unidirectional transmission delay is calculated based on moments at which each of two stations sends and receives OSC signals and that are recorded in time stamps.
In still another embodiment, the sending unit 12 is further configured to send the unidirectional transmission delay to the second station. In this embodiment, after obtaining the unidirectional transmission delay through calculation, the station 1000 sends the unidirectional transmission delay to the second station, so that the second station can accurately perform time synchronization based on the unidirectional transmission delay and a time of the station 1000.
In still another embodiment, the receiving unit 13 is further configured to receive an acknowledgement message from the second station, where the acknowledgement message is used to indicate that the second station has received the first OSC signal. In this embodiment, after receiving the first OSC signal, the second station sends the acknowledgement message to the station 1000, to acknowledge that the first OSC signal has been received, so that the station 1000 can accurately switch an optical path. In another embodiment, the station 1000 may alternatively switch an optical path a preset time after sending of the first OSC signal.
In still another embodiment, the optical path selector is a 2×2 optical switch. In this embodiment, switching between two optical paths can be simply implemented by using the 2×2 optical switch.
In still another embodiment, the sending unit 12 is further configured to send a third OSC signal to the second station, where the third OSC signal includes an updated time of the station 1000. In this embodiment, the station 1000 periodically sends the updated time of the station 1000, so that the second station can implement time synchronization with the station 1000 based on the updated time of the station 1000 and the unidirectional transmission delay.
According to the station provided in this embodiment, the optical path selector is used to switch an optical path, so that two OSC signals including time stamps are transmitted on a same fiber in which a difference between wavelength values is less than the preset range, and a unidirectional transmission delay between two stations can be accurately measured based on the time stamps.
an optical path control unit 21 configured to control an optical path selector to work in a first state;
a receiving unit 22 configured to select a first fiber to receive a first optical supervisory channel OSC signal from the first station, where the first OSC signal includes a first time stamp, and the first time stamp indicates a first sending moment at which the first station sends the first OSC signal, where
the optical path control unit 21 is further configured to control the optical path selector to work in a second state; and
a sending unit 23 configured to select the first fiber to send a second OSC signal to the first station, where the second OSC signal includes a second time stamp, the second time stamp indicates a first receiving moment at which the station 2000 receives the first OSC signal and a second sending moment at which the station 2000 sends the second OSC signal, and a difference between a value of a wavelength used by the first OSC signal and a value of a wavelength used by the second OSC signal is less than a preset range.
In one embodiment, the difference between the value of the wavelength used by the first OSC signal and the value of the wavelength used by the second OSC signal is 0. In this embodiment, a difference between values of wavelengths used by two OSC signals is 0, so that a measured unidirectional transmission delay can be completely error-free.
In another embodiment, the sending unit 23 is further configured to send an acknowledgement message to the first station, where the acknowledgement message is used to indicate that the station 2000 has received the first OSC signal. In this embodiment, after receiving the first OSC signal, the station 2000 sends the acknowledgement message to the first station, to acknowledge that the first OSC signal has been received, so that the first station can accurately switch an optical path. In another embodiment, the first station may alternatively switch an optical path a preset time after sending of the first OSC signal.
In still another embodiment, the optical path control unit 21 is configured to control, based on a change of an optical power on the first fiber, the optical path selector to work in the second state. In this embodiment, the first station does not need to notify the station 2000 of a change of an optical path, and when the first station switches a status of an optical path selector, the station 2000 may switch a status of the optical path selector of the station 2000 based on the change of the optical power on the fiber. In one embodiment, there is no light on the fiber, and the optical power is 0.
In still another embodiment, the receiving unit 22 is further configured to receive a unidirectional transmission delay sent by the first station. In this embodiment, after obtaining the unidirectional transmission delay through calculation, the first station sends the unidirectional transmission delay to the station 2000, so that the station 2000 can perform time synchronization based on the unidirectional transmission delay and a time of the first station.
In still another embodiment, the station 2000 may further include: a time synchronization unit 24 (connected by using a dashed line in the figure), configured to synchronize a time of the station 2000 with a time of the first station based on the unidirectional transmission delay and the time of the first station. In this embodiment, the station 2000 can accurately perform time synchronization based on the unidirectional transmission delay and the time of the first station.
In still another embodiment, the receiving unit 22 is further configured to receive a third OSC signal sent by the first station, where the third OSC signal includes an updated time of the first station. The station 2000 updates the time of the station 2000 based on the updated time of the first station and the unidirectional transmission delay. In this embodiment, the first station periodically sends the updated time of the first station, so that the station 2000 can accurately implement time synchronization with the first station based on the updated time of the first station and the unidirectional transmission delay.
In still another embodiment, the unidirectional transmission delay is a half of a difference between a first operation value and a second operation value, the first operation value is a difference between a second receiving moment and the first sending moment, and the second operation value is a difference between the second sending moment and the first receiving moment. In this embodiment, the unidirectional transmission delay is calculated based on moments at which each of two stations sends and receives OSC signals and that are recorded in time stamps.
In still another embodiment, the optical path selector is a 2×2 optical switch. In this embodiment, switching between two optical paths can be simply implemented by using the 2×2 optical switch.
According to the station provided in this embodiment, the optical path selector is used to switch an optical path, so that two OSC signals including time stamps are transmitted on a same fiber in which a difference between wavelength values is less than the preset range, and a unidirectional transmission delay between two stations can be accurately measured based on the time stamps.
An embodiment of the present disclosure further provides still another first station. A hardware structure of the first station is shown by an OSC signal sending structure in a station A in
The controller is configured to control the optical path selector to work in a first state, so that the fiber interface unit selects a first fiber to send a first optical supervisory channel OSC signal to a second station, where the first OSC signal includes a first time stamp, and the first time stamp indicates a first sending moment at which the first station sends the first OSC signal.
The controller is further configured to control the optical path selector to work in a second state, so that the fiber interface unit selects the first fiber to receive a second OSC signal from the second station at a second receiving moment, where the second OSC signal includes a second time stamp, the second time stamp indicates a first receiving moment at which the second station receives the first OSC signal and a second sending moment at which the second station sends the second OSC signal, and a difference between a value of a wavelength used by the first OSC signal and a value of a wavelength used by the second OSC signal is less than a preset range.
The controller is further configured to calculate a unidirectional transmission delay between the first station and the second station based on the first sending moment, the first receiving moment, the second sending moment, and the second receiving moment.
In one embodiment, the difference between the value of the wavelength used by the first OSC signal and the value of the wavelength used by the second OSC signal is 0. In this embodiment, a difference between values of wavelengths used by two OSC signals is 0, so that a measured unidirectional transmission delay can be completely error-free.
In another embodiment, the unidirectional transmission delay is a half of a difference between a first operation value and a second operation value, the first operation value is a difference between the second receiving moment and the first sending moment, and the second operation value is a difference between the second sending moment and the first receiving moment. In this embodiment, the unidirectional transmission delay is calculated based on moments at which each of two stations sends and receives OSC signals and that are recorded in time stamps.
In still another embodiment, the fiber interface unit is further configured to send the unidirectional transmission delay to the second station. In this embodiment, after obtaining the unidirectional transmission delay through calculation, the first station sends the unidirectional transmission delay to the second station, so that the second station can accurately perform time synchronization based on the unidirectional transmission delay and a time of the first station.
In still another embodiment, the fiber interface unit is further configured to receive an acknowledgement message from the second station, where the acknowledgement message is used to indicate that the second station has received the first OSC signal. In this embodiment, after receiving the first OSC signal, the second station sends the acknowledgement message to the first station, to acknowledge that the first OSC signal has been received, so that the first station can accurately switch an optical path. In another embodiment, the first station may alternatively switch an optical path a preset time after sending of the first OSC signal.
In still another embodiment, the optical path selector is a 2×2 optical switch. In this embodiment, switching between two optical paths can be simply implemented by using the 2×2 optical switch.
In still another embodiment, the fiber interface unit is further configured to send a third OSC signal to the second station, where the third OSC signal includes an updated time of the first station. In this embodiment, the first station periodically sends the updated time of the first station, so that the second station can implement time synchronization with the first station based on the updated time of the first station and the unidirectional transmission delay.
According to the station provided in this embodiment of the present disclosure, the optical path selector is used to switch an optical path, so that two OSC signals including time stamps are transmitted on a same fiber in which a difference between wavelength values is less than the preset range, and a unidirectional transmission delay between two stations can be accurately measured based on the time stamps.
An embodiment of the present disclosure further provides still another second station. A hardware structure of the second station is shown by an OSC signal sending structure in a station B in
The controller is configured to control the optical path selector to work in a first state, so that the fiber interface unit selects a first fiber to receive a first optical supervisory channel OSC signal from a first station, where the first OSC signal includes a first time stamp, and the first time stamp indicates a first sending moment at which the first station sends the first OSC signal.
The controller is further configured to control the optical path selector to work in a second state, so that the fiber interface unit selects the first fiber to send a second OSC signal to the first station, where the second OSC signal includes a second time stamp, the second time stamp indicates a first receiving moment at which the second station receives the first OSC signal and a second sending moment at which the second station sends the second OSC signal, and a difference between a value of a wavelength used by the first OSC signal and a value of a wavelength used by the second OSC signal is less than a preset range.
In one embodiment, the difference between the value of the wavelength used by the first OSC signal and the value of the wavelength used by the second OSC signal is 0. In this embodiment, a difference between values of wavelengths used by two OSC signals is 0, so that a measured unidirectional transmission delay can be completely error-free.
In another embodiment, the fiber interface unit is further configured to send an acknowledgement message to the first station, where the acknowledgement message is used to indicate that the second station has received the first OSC signal. In this embodiment, after receiving the first OSC signal, the second station sends the acknowledgement message to the first station, to acknowledge that the first OSC signal has been received, so that the first station can accurately switch an optical path. In another embodiment, the first station may alternatively switch an optical path a preset time after sending of the first OSC signal.
In still another embodiment, the controller is configured to control, based on a change of an optical power on the first fiber, the optical path selector to work in the second state. In this embodiment, the first station does not need to notify the second station of a change of an optical path, and when the first station switches a status of an optical path selector, the second station may switch a status of the optical path selector of the second station based on the change of the optical power on the fiber. In one embodiment, there is no light on the fiber, and the optical power is 0.
In still another embodiment, the fiber interface unit is further configured to receive a unidirectional transmission delay sent by the first station. In this embodiment, after obtaining the unidirectional transmission delay through calculation, the first station sends the unidirectional transmission delay to the second station, so that the second station can perform time synchronization based on the unidirectional transmission delay and a time of the first station.
In still another embodiment, the controller is further configured to synchronize a time of the second station with a time of the first station based on the unidirectional transmission delay and the time of the first station. In this embodiment, the second station can accurately perform time synchronization based on the unidirectional transmission delay and the time of the first station.
In still another embodiment, the fiber interface unit is further configured to receive a third OSC signal sent by the first station, where the third OSC signal includes an updated time of the first station. The second station updates the time of the second station based on the updated time of the first station and the unidirectional transmission delay. In this embodiment, the first station periodically sends the updated time of the first station, so that the second station can accurately implement time synchronization with the first station based on the updated time of the first station and the unidirectional transmission delay.
In still another embodiment, the unidirectional transmission delay is a half of a difference between a first operation value and a second operation value, the first operation value is a difference between a second receiving moment and the first sending moment, and the second operation value is a difference between the second sending moment and the first receiving moment. In this embodiment, the unidirectional transmission delay is calculated based on moments at which each of two stations sends and receives OSC signals and that are recorded in time stamps.
In still another embodiment, the optical path selector is a 2×2 optical switch. In this embodiment, switching between two optical paths can be simply implemented by using the 2×2 optical switch.
According to the station provided in this embodiment, the optical path selector is used to switch an optical path, so that two OSC signals including time stamps are transmitted on a same fiber in which a difference between wavelength values is less than the preset range, and a unidirectional transmission delay between two stations can be accurately measured based on the time stamps.
A person of ordinary skill in the art may be aware that units and algorithm steps in the examples described with reference to the embodiments disclosed in this specification can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed by hardware or software depends on particular applications and design constraint conditions of the technical solutions. A person skilled in the art may use different methods to implement the described functions for each particular application, but it should not be considered that the implementation goes beyond the scope of this application.
It may be clearly understood by a person skilled in the art that, for the purpose of convenient and brief description, for a detailed working process of the foregoing system, apparatus, and unit, refer to a corresponding process in the foregoing method embodiments. Details are not described herein again.
In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the described apparatus embodiment is merely an example. For example, the unit division is merely logical function division and may be other division in actual implementation. For example, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented by using some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electronic, mechanical, or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units may be selected based on actual requirements to achieve the objectives of the solutions of the embodiments.
In addition, functional units in the embodiments of this application may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units are integrated into one unit.
All or some of the foregoing embodiments may be implemented by using software, hardware, firmware, or any combination thereof. When software is used to implement the embodiments, the embodiments may be implemented completely or partially in a form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedure or functions according to the embodiments of the present disclosure are all or partially generated. The computer may be a general-purpose computer, a dedicated computer, a computer network, or other programmable apparatuses. The computer instruction may be stored in a computer-readable storage medium, or may be transmitted by using the computer-readable storage medium. The computer instruction may be transmitted from one web site, computer, server, or data center to another web site, computer, server, or data center in a wired (for example, a coaxial cable, a fiber, or a digital subscriber line (DSL)) or wireless (for example, infrared, wireless, or microwave) manner. The computer-readable storage medium may be any usable medium accessible by a computer, or a data storage device, such as a server or a data center, integrating one or more usable media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, a DVD), a semiconductor medium (for example, a solid state disk (SSD)), or the like.
A person of ordinary skill in the art may understand that all or some of the processes of the methods in the embodiments may be implemented by a computer program instructing related hardware. The program may be stored in a computer-readable storage medium. When the program runs, the processes of the methods in the embodiments are performed. The foregoing storage medium includes: any medium that can store program code, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc.
This application is a continuation of International Application No. PCT/CN2017/086619, filed on May 31, 2017, the disclosure of which is incorporated herein by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2017/086619 | May 2017 | US |
Child | 16696755 | US |