WO2018119705A1 - Detection method for transmission delay difference between uplink channels, and olt and system - Google Patents

Detection method for transmission delay difference between uplink channels, and olt and system Download PDF

Info

Publication number
WO2018119705A1
WO2018119705A1 PCT/CN2016/112476 CN2016112476W WO2018119705A1 WO 2018119705 A1 WO2018119705 A1 WO 2018119705A1 CN 2016112476 W CN2016112476 W CN 2016112476W WO 2018119705 A1 WO2018119705 A1 WO 2018119705A1
Authority
WO
WIPO (PCT)
Prior art keywords
uplink data
uplink
olt
difference
timestamp
Prior art date
Application number
PCT/CN2016/112476
Other languages
French (fr)
Chinese (zh)
Inventor
赵殿博
殷锦蓉
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2016/112476 priority Critical patent/WO2018119705A1/en
Publication of WO2018119705A1 publication Critical patent/WO2018119705A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems

Definitions

  • the present application relates to communication technologies, and in particular, to a transmission delay difference detection method, an OLT, and a system between uplink channels.
  • Ethernet Passive Optical Network In order to meet the greater bandwidth demand in the future, the standard requirements of 100G EPON are proposed.
  • the transmitting network element distributes the packets of one service flow to the four transmission channels for transmission.
  • the receiving network element reassembles the packets received by the four transmission channels to form a service flow.
  • the transmission delays of the transmission channels are different, so that the time-order relationship of the packets transmitted on the different transmission channels to the receiving network element changes, resulting in out-of-order.
  • the receiving network element In order to ensure that the receiving network element accurately completes the message reassembly, how to measure the transmission delay difference on different transmission channels becomes an urgent problem to be solved.
  • an optical line terminal periodically performs a combination of control packets for the same downlink channel (for example, the downlink channel L0) and different uplink channels (for example, the uplink channel L1 and the uplink channel L2).
  • the Round Trip Time (RTT) measurement obtains the RTT1 of the downlink channel L0 and the uplink channel L1, and the RTT2 of the downlink channel L0 and the uplink channel L2, and then determines the uplink channel L1 and the uplink channel L2 according to the difference between the RTT2 and the RTT1. The delay between transmissions.
  • the OLT can only periodically perform RTT measurement on the same downlink channel and the combination of different uplink channels by using control packets (for example, at least four control packets), thereby obtaining transmission between different uplink channels.
  • the delay is poor, but the transmission delay difference between channels varies dynamically with the external environment (such as temperature, humidity, etc.); on the other hand, the accuracy of the RTT measurement used in the prior art is not high (as specified in the protocol, the minimum is 16ns). Therefore, the accuracy of the transmission delay difference between different uplink channels obtained by the prior art measurement is not high, and the receiving network element cannot be accurately completed. Message reorganization.
  • the embodiment of the present invention provides a transmission delay difference detection method, an OLT, and a system between uplink channels, which improves the measurement accuracy of transmission delay differences between different uplink channels.
  • the embodiment of the present application provides a method for detecting a transmission delay difference between uplink channels, including:
  • the optical line terminal OLT determines the receiving time difference according to the difference between the first receiving timestamp and the second receiving timestamp.
  • the first receiving timestamp is used to indicate that the OLT receives the optical network unit ONU sent by the OLT on the first uplink channel.
  • a receiving time of the uplink data where the second receiving timestamp is used to indicate that the OLT receives the receiving time of the second uplink data sent by the ONU on the second uplink channel;
  • the OLT determines a transmission time difference between the first uplink data and the second uplink data
  • the OLT determines a transmission delay difference between the first uplink channel and the second uplink channel according to the difference between the received time difference and the transmission time difference.
  • the OLT determines the receiving time difference according to the difference between the first receiving timestamp and the second receiving timestamp by using the difference of the transmission delay difference between the uplink channels provided by the first aspect; the OLT determines the first uplink data and the second uplink data.
  • the transmission time difference is further; further, the OLT determines a transmission delay difference between the first uplink channel and the second uplink channel according to the difference between the reception time difference and the transmission time difference.
  • the OLT determines a transmission time difference between the first uplink data and the second uplink data, including:
  • the OLT determines the sending time difference according to the difference between the first sending timestamp carried in the first uplink data and the second sending timestamp carried in the second uplink data.
  • the first sending timestamp is used to indicate that the ONU sends the first uplink data transmission time on the first uplink channel
  • the second sending timestamp is used to indicate that the ONU sends the second uplink data transmission time on the second uplink channel.
  • the OLT accurately calculates the difference between the first transmission timestamp carried in the first uplink data and the second transmission timestamp carried in the second uplink data.
  • the transmission time difference is determined, so that the OLT can directly measure the transmission delay difference between different uplink channels according to the receiving time difference of the uplink data received on different uplink channels and the accurate transmission time difference, thereby improving different uplink channels.
  • the OLT determines a transmission time difference between the first uplink data and the second uplink data, including:
  • the OLT determines a transmission time difference according to the first uplink data, where the first uplink data carries a difference in transmission time between the first uplink data and the second uplink data determined by the ONU, and the sending time of the first uplink data is later than the sending of the second uplink data. time.
  • the OLT provides an accurate transmission time difference according to the first uplink data (carrying an accurate transmission time difference), so that the OLT receives the data in different uplink channels in real time according to the method for detecting the transmission delay difference between the uplink channels provided by the embodiment.
  • the receiving time difference of the uplink data and the accurate transmission time difference directly measure the transmission delay difference between different uplink channels, thereby improving the measurement accuracy of the transmission delay difference between different uplink channels.
  • the OLT determines a transmission time difference between the first uplink data and the second uplink data, including:
  • the OLT determines the sending time difference according to the third sending timestamp and the fourth sending timestamp
  • the third sending timestamp is: a timestamp that the OLT sends to the ONU to send the first uplink data on the first uplink channel
  • the fourth sending timestamp is: the OLT allocates the second uplink channel on the second uplink channel. The timestamp of the upstream data.
  • the OLT determines the transmission time difference according to the pre-assigned third transmission timestamp and the fourth transmission timestamp, so that the OLT receives the time difference according to the uplink channel according to the pre-allocated third transmission timestamp and the fourth transmission timestamp.
  • the receiving time difference of the uplink data and the transmission time difference directly measure the transmission delay difference between different uplink channels, thereby improving the measurement accuracy of the transmission delay difference between different uplink channels.
  • the first transmit timestamp includes: a first clock cycle count; and/or,
  • the second sending timestamp includes: a second clock cycle count
  • the first clock cycle counts as the ONU sends the first uplink data pair on the first uplink channel.
  • the number of clock cycles to be counted, and the second clock cycle count is the number of clock cycles corresponding to the second uplink data sent by the ONU on the second uplink channel.
  • the OLT determines the transmission time difference according to the difference between the first sending timestamp carried in the first uplink data and the second sending timestamp carried in the second uplink data, including:
  • the OLT determines the transmission time difference according to the difference between the first clock cycle count and the second clock cycle count and the operating clock of the ONU.
  • an optical line terminal OLT including:
  • a first determining module configured to determine a receiving time difference according to a difference between the first receiving timestamp and the second receiving timestamp, where the first receiving timestamp is used to indicate that the OLT receives the optical network unit ONU on the first uplink channel
  • the receiving time of the first uplink data that is sent, the second receiving timestamp is used to indicate that the OLT receives the receiving time of the second uplink data sent by the ONU on the second uplink channel
  • a second determining module configured to determine a sending time difference between the first uplink data and the second uplink data
  • the third determining module is configured to determine a transmission delay difference between the first uplink channel and the second uplink channel according to the difference between the received time difference and the sending time difference.
  • the second determining module includes:
  • a first determining unit configured to determine, according to a difference between a first sending timestamp carried in the first uplink data and a second sending timestamp carried in the second uplink data, a sending time difference
  • the first sending timestamp is used to indicate that the ONU sends the first uplink data transmission time on the first uplink channel
  • the second sending timestamp is used to indicate that the ONU sends the second uplink data transmission time on the second uplink channel.
  • the second determining module includes:
  • a second determining unit configured to determine, according to the first uplink data, a sending time difference, where the first uplink data carries a sending time difference between the first uplink data and the second uplink data determined by the ONU, and the sending time of the first uplink data is later than The transmission time of the second uplink data.
  • the second determining module includes:
  • a third determining unit configured to determine a sending time difference according to the third sending timestamp and the fourth sending timestamp
  • the third sending timestamp is: a timestamp that the OLT sends to the ONU to send the first uplink data on the first uplink channel
  • the fourth sending timestamp is: the OLT allocates the second uplink channel on the second uplink channel. The timestamp of the upstream data.
  • the first transmit timestamp includes: a first clock cycle count; and/or,
  • the second sending timestamp includes: a second clock cycle count
  • the first clock cycle count is the number of clock cycles corresponding to the first uplink data sent by the ONU on the first uplink channel
  • the second clock cycle count is the clock cycle corresponding to the second uplink data sent by the ONU on the second uplink channel. number.
  • the first determining unit is specifically configured to: determine a transmission time difference according to a difference between the first clock cycle count and the second clock cycle count, and the ONU operating clock.
  • the embodiment of the present application provides a transmission delay difference detection system between uplink channels, including:
  • Optical network unit ONU and optical line terminal OLT of any of the possible aspects of the above second aspect are possible aspects of the above second aspect.
  • FIG. 1 is a schematic structural diagram of a 100G EPON network according to the present application.
  • Embodiment 2A is a flowchart of Embodiment 1 of a method for detecting a transmission delay difference between uplink channels provided by the present application;
  • 2B is a schematic diagram 1 of data transmission provided by the present application.
  • Embodiment 2 is a flowchart of Embodiment 2 of a method for detecting a transmission delay difference between uplink channels provided by the present application;
  • FIG. 3B is a schematic diagram 2 of data transmission provided by the present application.
  • FIG. 3C is a schematic diagram 3 of data transmission provided by the present application.
  • FIG. 3D is a schematic diagram showing a frame structure of uplink data provided by the present application.
  • Embodiment 4A is a flowchart of Embodiment 3 of a method for detecting a transmission delay difference between uplink channels provided by the present application;
  • 4B is a schematic diagram 4 of data transmission provided by the present application.
  • 4C is a schematic diagram 5 of data transmission provided by the present application.
  • Embodiment 4 is a flowchart of Embodiment 4 of a method for detecting a transmission delay difference between uplink channels provided by the present application;
  • FIG. 5B is a schematic diagram 4 of data transmission provided by the present application.
  • FIG. 5C is a schematic diagram 5 of data transmission provided by the present application.
  • FIG. 6 is a schematic structural diagram of Embodiment 1 of an OLT provided by the present application.
  • FIG. 7 is a schematic structural diagram of Embodiment 2 of an OLT provided by the present application.
  • FIG. 8 is a schematic structural diagram of an embodiment of a transmission delay difference detecting system between uplink channels provided by the present application.
  • FIG. 1 is a schematic structural diagram of a 100G EPON network according to the present application.
  • an OLT can simultaneously communicate with multiple ONUs through a power splitter (for convenience of description, two ONUs are taken as an example in FIG. 1).
  • data transmission can be performed between the OLT and the ONU through four transmission channels.
  • FIG. 2A is a flowchart of Embodiment 1 of a method for detecting a transmission delay difference between uplink channels provided by the present application
  • FIG. 2B is a schematic diagram 1 of data transmission provided by the present application.
  • the transmission delay difference detection method between uplink channels provided by the present application can be applied to a 100G EPON network. As shown in FIG. 2A, the method in this embodiment may include:
  • the OLT determines the receiving time difference according to the difference between the first receiving timestamp and the second receiving timestamp.
  • the first receiving timestamp is used to indicate that the OLT receives the receiving time of the first uplink data sent by the optical network unit ONU on the first uplink channel
  • the second receiving timestamp is used to indicate that the OLT receives the second uplink channel.
  • the receiving time of the second uplink data sent by the ONU is used to indicate that the OLT receives the second uplink channel.
  • the working clock of the ONU is a first preset value (such as 390.625 MHz, and 66-bit data is transmitted every 2.56 ns), and different channels of the ONU work under the same clock.
  • the first uplink channel and the second uplink channel are used as an example.
  • the first uplink channel and the second uplink channel do not refer to a fixed uplink channel, but generally refer to two different uplink channels. Upstream channel.
  • the OLT receives the uplink data sent by the ONU on different uplink channels, and records the corresponding receiving timestamp (used to indicate the receiving time of the corresponding uplink data), so as to determine the receiving time difference according to the receiving timestamp corresponding to the different uplink data.
  • the OLT receives the first uplink data sent by the ONU on the first uplink channel and records the first receiving timestamp t r1 (instructing the OLT to receive the ONU transmission on the first uplink channel).
  • the OLT determines a sending time difference between the first uplink data and the second uplink data.
  • the OLT in order to calculate the transmission delay difference between the first uplink channel and the second uplink channel, the OLT needs to acquire the transmission time difference ⁇ t t of the first uplink data and the second uplink data.
  • the OLT may know the transmission time difference ⁇ t t in advance, or determine the transmission time difference ⁇ t t according to the time indication information sent by the ONU.
  • the first implementation manner of the S202 is: the OLT determines the sending time difference ⁇ t r according to the difference between the first sending timestamp carried in the first uplink data and the second sending timestamp carried in the second uplink data; The first sending timestamp is used to indicate that the ONU sends the first uplink data transmission time on the first uplink channel, and the second sending timestamp is used to indicate that the ONU sends the second uplink data transmission time on the second uplink channel.
  • the ONU carries the first sending timestamp in the first uplink data, and carries the second sending timestamp in the second uplink data, so that the OLT can use the first sending timestamp and the second sending timestamp according to the first sending timestamp.
  • the difference is determined by the transmission time difference ⁇ t r .
  • the second implementation manner of the S202 is: the OLT determines a transmission time difference ⁇ t r according to the first uplink data, where the first uplink data carries a transmission time difference ⁇ t between the first uplink data and the second uplink data determined by the ONU. r, the first uplink data transmission time later than the transmitting time of the second uplink data.
  • the ONU after determining the transmission time difference ⁇ t r of the first uplink data and the second uplink data, the ONU carries the transmission time difference ⁇ t r in the first uplink data (the transmission time is later than the transmission time of the second uplink data). So that the OLT directly knows the transmission time difference ⁇ t r .
  • a third implementation manner of the S202 is: the OLT determines a sending time difference ⁇ t r according to the third sending timestamp and the fourth sending timestamp; wherein, the third sending timestamp is: the OLT allocates the first time to the ONU. A timestamp of sending the first uplink data on the uplink channel, where the fourth sending timestamp is a timestamp allocated by the OLT to the ONU to send the second uplink data on the second uplink channel.
  • the OLT allocates timestamps for transmitting uplink data on different uplink channels for the ONU, so that the ONU sends uplink data on the corresponding uplink channel according to the allocated timestamp.
  • the OLT allocates the ONU on the first uplink channel.
  • the timestamp of sending the first uplink data is the third sending timestamp
  • the timestamp of the second uplink data sent by the OLT to the ONU on the second uplink channel is the fourth sending timestamp; as shown in the implementation manner, the OLT is implemented.
  • the transmission time difference ⁇ t t is known in advance.
  • the OLT may determine the time difference of the sending of the first uplink data and the second uplink data by using other methods, which is not limited in this embodiment.
  • the execution order of the step S201 and the step S202 in the embodiment is not limited (for example, the step S201 is performed first, the step S202 is performed, or the step S202 is performed first, and then the step S201 is performed), and the step S201 and the step S202 can be adjusted according to actual conditions.
  • the order of execution is not limited (for example, the step S201 is performed first, the step S202 is performed, or the step S202 is performed first, and then the step S201 is performed), and the step S201 and the step S202 can be adjusted according to actual conditions. The order of execution.
  • the OLT determines, according to a difference between the received time difference and the sending time difference, a transmission delay difference between the first uplink channel and the second uplink channel.
  • the reception time difference ⁇ t r and the transmission time difference ⁇ t t should be equal; if the reception time difference ⁇ t r is not equal to the transmission time difference ⁇ t t , then It is indicated that there is a transmission delay between the first uplink channel and the second uplink channel, and the OLT can determine the transmission delay difference between the first uplink channel and the second uplink channel according to the difference between the reception time difference ⁇ t r and the transmission time difference ⁇ t t .
  • ⁇ t, ie ⁇ t ⁇ t r - ⁇ t t .
  • the method for detecting the transmission delay difference between the uplink channels does not depend on the periodic control of the packet, and can receive the time difference of the uplink data received on different uplink channels and the corresponding transmission time difference in real time. Directly measuring the transmission delay difference between different uplink channels, wherein the uplink data transmission frequency is 2.56 ns, thereby improving the measurement accuracy of the transmission delay difference between different uplink channels (measurement accuracy is improved to 2.56 ns) .
  • the OLT determines the receiving time difference according to the difference between the first receiving timestamp and the second receiving timestamp; the OLT determines a sending time difference between the first uplink data and the second uplink data; further, the OLT is configured according to The difference between the received time difference and the transmitted time difference determines the first uplink The difference in transmission delay between the channel and the second upstream channel. It can be seen that the method for detecting the transmission delay difference between the uplink channels provided in this embodiment does not depend on the periodic control of the packet, and can receive the time difference of the uplink data received on different uplink channels and the corresponding transmission time difference in real time.
  • FIG. 3A is a flowchart of Embodiment 2 of a method for detecting a transmission delay difference between uplink channels provided by the present application.
  • FIG. 3B is a schematic diagram 2 of data transmission provided by the present application
  • FIG. 3C is a schematic diagram 3 of data transmission provided by the present application.
  • the method in this embodiment may include:
  • the ONU sends the first uplink data to the OLT on the first uplink channel, and sends the second uplink data to the OLT on the second uplink channel.
  • the first uplink data carries the first sending timestamp t t1 , where the first sending timestamp t t1 is used to indicate that the ONU sends the first uplink data transmission time on the first uplink channel, and the second uplink data carries the second time.
  • the timestamp t t2 is sent, and the second sending timestamp t t2 is used to indicate the sending time of the second uplink data sent by the ONU on the second uplink channel.
  • the first uplink data sent by the ONU on the first uplink channel may carry a first sending timestamp t t1 (instructing the ONU to send the first uplink data on the first uplink channel).
  • the second transmission data sent by the ONU on the second uplink channel may carry a second transmission timestamp t t2 (indicating the transmission time of the ONU transmitting the second uplink data on the second uplink channel) .
  • the first sending timestamp t t1 may be carried in a preset field in the first uplink data (for example, an idle field after the delimiter in the frame structure of the first uplink data), and the second sending timestamp t t2 may be The preset field carried in the second uplink data.
  • FIG. 3D is a schematic diagram showing the frame structure of the uplink data provided by the present application.
  • the frame structure of the uplink data includes: a Forward Error Correction (FEC) unprotected field, an FEC protection field, and an End of Burst (EOB) field; wherein, the FEC unprotected field
  • the end of the FBR protection field includes: N FEC code words (Codewords, CW for short), N is an integer greater than or equal to 0; the payload portion of each FEC code includes: 27 66-bit code blocks;
  • the sending timestamp may be located in any one of the first two 66-bit code blocks of the FEC CW 0 corresponding to the uplink data (referred to as a target field), and may of course be located in other fields.
  • Table 1 shows the description information of the target field.
  • the first to second bits of the target field are synchronization sequences.
  • the value of the current two bits is equal to "10"
  • the 3rd to 10th bits of the field are used to indicate the type of the bearer control information (or the bearer object).
  • the target field carries the transmission timestamp.
  • the target field When the value of the 3rd to 10th bits is equal to the second preset value, the target field carries the transmission time difference; the 11th to the Xth bits of the target field are used to indicate the bearer object (such as the sending timestamp or the sending time difference).
  • a value where X is an integer greater than 11 and less than 49; subsequent fields are used to carry ONU identifiers, padding fields, and the like, respectively.
  • the structure of the target field is not limited to that shown in Table 1, and may be other structures, which is not limited in the embodiment of the present application.
  • the value of the 3rd to 10th bits of the target field is equal to the first preset value, and the target field carries the transmission timestamp.
  • the 11th to Xth bits of the target field are used to indicate the sending time. Poke the corresponding value.
  • the first sending timestamp includes: a first clock cycle count; and/or the second sending timestamp includes: a second clock cycle count.
  • the first clock cycle count is the number of clock cycles corresponding to the first uplink data sent by the ONU on the first uplink channel (for example, the eleventh)
  • the second clock cycle count is that the ONU sends the second uplink channel on the second uplink channel.
  • the number of clock cycles corresponding to the upstream data for example, the 10th.
  • a counter is set in the ONU (for counting the number of clock cycles after the ONU is powered on, that is, the counter is incremented by 1 every 2.56 ns).
  • the first sending timestamp may further include other means for indicating that the ONU is on the first uplink channel.
  • the time indication information of the sending time of the first uplink data is sent, and/or the second sending timestamp may further include other time indication information for indicating the sending time of the second uplink data sent by the ONU on the second uplink channel, This is not limited in the application examples.
  • the OLT receives the first uplink data that is sent by the ONU on the first uplink channel, and receives the second uplink data that is sent by the ONU on the second uplink channel.
  • the OLT receives the first uplink data that is sent by the ONU on the first uplink channel and carries the first transmission timestamp t t1 and records the first receiving timestamp t r1 , and receives the ONU in the first The second uplink data carried on the second uplink channel carrying the second transmission timestamp t t2 and recording the second reception time stamp t r2 .
  • the OLT determines, according to a difference between the first receiving timestamp and the second receiving timestamp, a receiving time difference between the first uplink data and the second uplink data.
  • the OLT determines a sending time difference according to a difference between a first sending timestamp carried in the first uplink data and a second sending timestamp carried in the second uplink data.
  • the OLT determines, according to a difference between the received time difference and the sending time difference, a transmission delay difference between the first uplink channel and the second uplink channel.
  • the ONU sends the first uplink data carrying the first sending timestamp to the OLT on the first uplink channel, and sends the second uplink carrying the second sending timestamp to the OLT on the second uplink channel.
  • Data further, the OLT according to the first receiving timestamp (instructing the OLT to receive the receiving time of the first uplink data sent by the ONU on the first uplink channel) and the second receiving timestamp (for indicating that the OLT is in the second
  • the difference of the receiving time of the second uplink data sent by the ONU on the uplink channel determines the receiving time difference, and the first sending timestamp carried in the first uplink data and the second sending timestamp carried in the second uplink data. The difference is accurately determined by the difference in the transmission time.
  • the OLT determines the transmission delay difference between the first uplink channel and the second uplink channel according to the difference between the reception time difference and the transmission time difference. It can be seen that the method for detecting the transmission delay difference between the uplink channels provided in this embodiment does not depend on the periodic control of the packet, and can accurately receive the time difference of the uplink data received on different uplink channels and the accurate transmission time difference in real time. The direct measurement of the transmission delay difference between different uplink channels is performed, thereby further improving the measurement accuracy of the transmission delay difference between different uplink channels.
  • FIG. 4A is a flowchart of Embodiment 3 of a method for detecting a transmission delay difference between uplink channels provided by the present application.
  • FIG. 4B is a schematic diagram 4 of data transmission provided by the present application
  • FIG. 4C is a schematic diagram 5 of data transmission provided by the present application.
  • the method in this embodiment may include:
  • the ONU sends the second uplink data to the OLT on the second uplink channel, and sends the first uplink data to the OLT on the first uplink channel.
  • the first uplink data carries a transmission time difference ⁇ t r between the first uplink data and the second uplink data determined by the ONU, and the transmission time of the first uplink data is later than the transmission time of the second uplink data.
  • the ONU first sends the second uplink data to the OLT on the second uplink channel, and then sends the first uplink data to the OLT on the first uplink channel.
  • the ONU determines a transmission time difference ⁇ t t between the first uplink data and the second uplink data, and carries the transmission time difference ⁇ t t in the first uplink data, so that the OLT directly knows the transmission time difference.
  • ⁇ t t the transmission time difference ⁇ t t may be carried in a preset field in the first uplink data (for example, an idle field after the delimiter in the frame structure of the first uplink data).
  • the sending time difference may be carried in the target field (specifically The description of the target field is not described here.
  • the value of the 3rd to 10th bits of the target field is equal to the second preset value, which means that the target field carries the transmission time difference, correspondingly, the 11th to the Xth of the target field.
  • the bits are used to indicate the value corresponding to the transmission time difference.
  • the sending time difference ⁇ t t includes: a clock cycle count difference between the first clock cycle count and the second clock cycle count, wherein the first clock cycle count is the ONU corresponding to the first uplink data sent by the ONU.
  • the number of clock cycles, the second clock cycle count is the number of clock cycles corresponding to the second uplink data sent by the ONU on the second uplink channel.
  • the transmission time difference ⁇ t t may further include other time indication information for indicating the difference of the transmission time of the first uplink data and the second uplink data, which is not limited in the embodiment of the present application.
  • the OLT receives the second uplink data that is sent by the ONU on the second uplink channel, and receives the first uplink data that is sent by the ONU on the first uplink channel.
  • the OLT first receives the second uplink data sent by the ONU on the second uplink channel and records the second receiving timestamp t r2 , and then receives the carried and sent by the ONU on the first uplink channel.
  • the OLT determines, according to a difference between the first receiving timestamp and the second receiving timestamp, a receiving time difference between the first uplink data and the second uplink data.
  • the OLT determines a transmission time difference according to the first uplink data.
  • the OLT directly determines the transmission time difference ⁇ t t according to the first uplink data (carrying the transmission time difference ⁇ t t ).
  • the OLT determines the transmission time difference according to the quotient of the clock cycle difference ⁇ c and the ONU operating clock clk.
  • ⁇ t t , ie ⁇ t t ⁇ c/clk, where clk is equal to 390.625 MHz.
  • the ⁇ t t is determined, which is not limited in the embodiment of the present application.
  • the OLT determines, according to a difference between the received time difference and the sending time difference, a transmission delay difference between the first uplink channel and the second uplink channel.
  • the ONU first sends the second uplink data to the OLT on the second uplink channel, and then sends the transmission time difference to the OLT on the first uplink channel (for indicating that the first uplink data and the second uplink data are accurate.
  • the first uplink data of the transmission time difference further, the OLT passes the second reception time according to the first reception time stamp (instructing the OLT to receive the reception time of the first uplink data sent by the ONU on the first uplink channel) a difference between the stamping (instructing the OLT to receive the receiving time of the second uplink data sent by the ONU on the second uplink channel), determining the receiving time difference, and determining the accuracy according to the first uplink data (carrying the accurate sending time difference)
  • the transmission time difference is further; further, the OLT determines a transmission delay difference between the first uplink channel and the second uplink channel according to the difference between the reception time difference and the transmission time difference.
  • the method for detecting the transmission delay difference between the uplink channels does not depend on the periodic control of the packet, and can accurately receive the time difference of the uplink data received on different uplink channels and the accurate transmission time difference in real time.
  • the direct measurement of the transmission delay difference between different uplink channels is performed, thereby further improving the measurement accuracy of the transmission delay difference between different uplink channels.
  • FIG. 5A is a flowchart of Embodiment 4 of a method for detecting a transmission delay difference between uplink channels provided by the present application.
  • FIG. 5B is a schematic diagram 4 of data transmission provided by the present application
  • FIG. 5C is a schematic diagram 5 of data transmission provided by the present application.
  • the method in this embodiment may include:
  • the ONU sends the first uplink data to the OLT on the first uplink channel according to the authorization indication of the OLT, and sends the second uplink data to the OLT on the second uplink channel.
  • the OLT allocates timestamps for transmitting uplink data on different uplink channels for the ONU, so that the ONU sends uplink data on the corresponding uplink channel according to the allocated timestamp.
  • the OLT sends an authorization indication to the ONU in advance, where the authorization indication includes: a third timestamp t t3 allocated by the OLT to the ONU on the first uplink channel, and a second time allocated by the OLT to the ONU. Sending a fourth timestamp t t4 of the second uplink data on the uplink channel.
  • the ONU sends the first uplink data on the first uplink channel according to the third timestamp t t3 , and sends the second uplink data on the second uplink channel according to the fourth time stamp t t4 .
  • the OLT receives the first uplink data that is sent by the ONU on the first uplink channel, and receives the second uplink data that is sent by the ONU on the second uplink channel.
  • the OLT receives the first uplink data sent by the ONU on the first uplink channel, records the first receiving timestamp t r1 , and receives the second uplink data sent by the ONU on the second uplink channel. And record the second receiving timestamp t r2 .
  • the OLT determines, according to a difference between the first receiving timestamp and the second receiving timestamp, a receiving time difference between the first uplink data and the second uplink data.
  • the OLT determines a sending time difference according to the third sending timestamp and the fourth sending timestamp.
  • the OLT determines, according to a difference between the received time difference and the sending time difference, a transmission delay difference between the first uplink channel and the second uplink channel.
  • the ONU sends the first uplink data to the OLT on the first uplink channel and the second uplink data to the OLT on the second uplink channel, according to the third timestamp and the fourth timestamp allocated by the OLT. Further, the OLT passes the second receiving timestamp according to the first receiving timestamp (instructing the OLT to receive the receiving time of the first uplink data sent by the ONU on the first uplink channel) (for indicating that the OLT is in the second Receiving, by the uplink channel, a difference of the receiving time of the second uplink data sent by the ONU, determining a receiving time difference, and determining a sending time difference according to the third sending timestamp and the fourth sending timestamp; further, the OLT is configured according to the receiving time difference and sending The difference of the time differences determines the transmission delay difference between the first uplink channel and the second uplink channel.
  • the method for detecting the transmission delay difference between the uplink channels does not depend on the periodic control of the packet, and can directly receive the time difference of the uplink data received on different uplink channels and the transmission time difference in real time.
  • the transmission delay difference between different uplink channels is measured, and therefore, the measurement accuracy of the transmission delay difference between different uplink channels is improved.
  • the size of the sequence numbers of the foregoing processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not be implemented in the implementation process of the embodiment of the present application. Any restrictions.
  • FIG. 6 is a schematic structural diagram of Embodiment 1 of an OLT provided by the present application. As shown in FIG. 6, the OLT 60 provided in this embodiment includes:
  • the first determining module 601 is configured to determine, according to a difference between the first receiving timestamp and the second receiving timestamp, a receiving time difference, where the first receiving timestamp is used to indicate that the OLT receives the optical network unit on the first uplink channel.
  • the second determining module 602 is configured to determine a sending time difference between the first uplink data and the second uplink data.
  • the third determining module 603 is configured to determine a transmission delay difference between the first uplink channel and the second uplink channel according to the difference between the received time difference and the sending time difference.
  • the second determining module 602 includes:
  • a first determining unit configured to determine, according to a difference between a first sending timestamp carried in the first uplink data and a second sending timestamp carried in the second uplink data, a sending time difference
  • the first sending timestamp is used to indicate that the ONU sends the first uplink data transmission time on the first uplink channel
  • the second sending timestamp is used to indicate that the ONU sends the second uplink data transmission time on the second uplink channel.
  • the second determining module 602 includes:
  • a second determining unit configured to determine, according to the first uplink data, a sending time difference, where the first uplink data carries a sending time difference between the first uplink data and the second uplink data determined by the ONU, and the sending time of the first uplink data is later than The transmission time of the second uplink data.
  • the second determining module 602 includes:
  • a third determining unit configured to determine a sending time difference according to the third sending timestamp and the fourth sending timestamp
  • the third sending timestamp is: a timestamp that the OLT sends to the ONU to send the first uplink data on the first uplink channel
  • the fourth sending timestamp is: the OLT allocates the second uplink channel on the second uplink channel. The timestamp of the upstream data.
  • the first sending timestamp includes: a first clock cycle count; and/or,
  • the second sending timestamp includes: a second clock cycle count
  • the first clock cycle count is the number of clock cycles corresponding to the first uplink data sent by the ONU on the first uplink channel
  • the second clock cycle count is the ONU sent on the second uplink channel. The number of clock cycles corresponding to the row data.
  • the first determining unit is specifically configured to: determine a sending time difference according to a difference between the first clock cycle count and the second clock cycle count, and a quotient of the ONU operating clock.
  • the OLT provided by this embodiment may be used to implement the technical solution of any embodiment of the foregoing method for detecting the delay of the transmission delay between the uplink channels in the present application.
  • the implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 7 is a schematic structural diagram of Embodiment 2 of an OLT provided by the present application.
  • the OLT 70 provided in this embodiment may include: a processor 701, a memory 702, and a transceiver 703; both the memory 702 and the transceiver 703 are connected to the processor 701.
  • the transceiver 703 is configured to send and receive data
  • the memory 702 is configured to store execution instructions
  • the processor 701 is configured to execute execution instructions in the memory 702 to enable the OLT 70 to perform the following operations:
  • the first receiving timestamp is used to indicate that the OLT receives the first uplink data sent by the optical network unit ONU on the first uplink channel.
  • the second receiving timestamp is used to indicate that the OLT receives the receiving time of the second uplink data sent by the ONU on the second uplink channel;
  • determining a sending time difference between the first uplink data and the second uplink data including:
  • the first sending timestamp is used to indicate that the ONU sends the first uplink data transmission time on the first uplink channel
  • the second sending timestamp is used to indicate that the ONU sends the second uplink data transmission time on the second uplink channel.
  • determining a sending time difference between the first uplink data and the second uplink data including:
  • the first uplink data carries a transmission time difference between the first uplink data and the second uplink data determined by the ONU, and the sending time of the first uplink data is later than the sending time of the second uplink data.
  • determining a sending time difference between the first uplink data and the second uplink data including:
  • the third sending timestamp is: a timestamp that the OLT sends to the ONU to send the first uplink data on the first uplink channel
  • the fourth sending timestamp is: the OLT allocates the second uplink channel on the second uplink channel. The timestamp of the upstream data.
  • the first sending timestamp includes: a first clock cycle count; and/or,
  • the second sending timestamp includes: a second clock cycle count
  • the first clock cycle count is the number of clock cycles corresponding to the first uplink data sent by the ONU on the first uplink channel
  • the second clock cycle count is the clock cycle corresponding to the second uplink data sent by the ONU on the second uplink channel. number.
  • the sending time difference is determined according to a difference between the first sending timestamp carried in the first uplink data and the second sending timestamp carried in the second uplink data, including:
  • the transmission time difference is determined according to the difference between the first clock cycle count and the second clock cycle count and the operating clock of the ONU.
  • the OLT provided by this embodiment may be used to implement the technical solution of any embodiment of the foregoing method for detecting the delay of the transmission delay between the uplink channels in the present application.
  • the implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 8 is a schematic structural diagram of an embodiment of a transmission delay difference detecting system between uplink channels provided by the present application.
  • the transmission delay difference detecting system 80 between the uplink channels provided in this embodiment includes: an ONU 801 and an OLT 802.
  • the OLT 802 can adopt the foregoing OLT embodiment 1 and the structure of the second embodiment, and correspondingly, the technical solution in the foregoing method for detecting the delay difference between the uplink channels can be executed, and the implementation principle and the technical effect are similar. , will not repeat them here.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of cells is only a logical function division.
  • multiple units or components may be combined or integrated. Go to another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium.
  • the above software functional unit is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform part of the steps of the method of various embodiments of the present application. .
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing storage medium includes: a read-only memory (Read-Only Memory, ROM for short), a random access memory (RAM), a disk, or a disk.
  • ROM Read-Only Memory
  • RAM random access memory
  • disk a disk
  • a variety of media such as optical discs that can store program code.

Abstract

Provided are a detection method for a transmission delay difference between uplink channels, and an OLT and a system. The method comprises the following steps: an OLT determines, according to a difference between a first receiving time stamp and a second receiving time stamp, a receiving time difference, wherein the first receiving time stamp is used for indicating a receiving time when the OLT receives, on a first uplink channel, first uplink data sent by an optical network unit (ONU); and the second receiving time stamp is used for indicating the receiving time when the OLT receives, on a second uplink channel, second uplink data sent by the ONU; the OLT determines a sending time difference between the first uplink data and the second uplink data; and furthermore, the OLT, according to a difference between the receiving time difference and the sending time difference, determines a transmission delay difference between the first uplink channel and the second uplink channel. The embodiment of the present application improves the precision for measuring a transmission delay difference between different uplink channels, so as to ensure that an OLT accurately completes message reassembly.

Description

上行通道间的传输时延差检测方法、OLT及系统Transmission delay difference detection method, OLT and system between uplink channels 技术领域Technical field
本申请涉及通信技术,尤其涉及一种上行通道间的传输时延差检测方法、OLT及系统。The present application relates to communication technologies, and in particular, to a transmission delay difference detection method, an OLT, and a system between uplink channels.
背景技术Background technique
随着以太网无源光网络(Ethernet Passive Optical Network,简称EPON)技术的发展,为满足未来更大的带宽需求,提出了100G EPON的标准需求。但由于受限于100G EPON中的光器件性能(目前物理层只能实现25Gbps的速率),要到达100Gbps的系统速率,需要将4个传输通道的25Gbps进行绑定以承载100Gbps的业务流。通常情况下,发射网元将一条业务流的报文分发至4个传输通道进行发送,接收网元通过将4个传输通道接收的报文进行重组形成一条业务流。由于各个通道的光纤长度、波长各异等因素,导致各个传输通道的传输时延不同,从而使得不同传输通道上传送的报文到达接收网元的时间先后关系发生改变,造成乱序。为了保证接收网元准确地完成报文重组,如何测量不同传输通道上的传输时延差成为一个急需解决的问题With the development of Ethernet Passive Optical Network (EPON) technology, in order to meet the greater bandwidth demand in the future, the standard requirements of 100G EPON are proposed. However, due to the limitation of optical device performance in 100G EPON (currently the physical layer can only achieve 25Gbps rate), to reach the system rate of 100Gbps, it is necessary to bind 25Gbps of 4 transmission channels to carry 100Gbps service flow. Generally, the transmitting network element distributes the packets of one service flow to the four transmission channels for transmission. The receiving network element reassembles the packets received by the four transmission channels to form a service flow. Due to the length of the fiber and the different wavelengths of the channels, the transmission delays of the transmission channels are different, so that the time-order relationship of the packets transmitted on the different transmission channels to the receiving network element changes, resulting in out-of-order. In order to ensure that the receiving network element accurately completes the message reassembly, how to measure the transmission delay difference on different transmission channels becomes an urgent problem to be solved.
现有技术中,光线路终端(Optical Line Terminal,简称OLT)周期性通过控制报文针对同一下行通道(例如下行通道L0)分别与不同上行通道(例如上行通道L1和上行通道L2)的组合进行往返时间(Round Trip Time,简称RTT)测量,得到下行通道L0与上行通道L1的RTT1以及下行通道L0与上行通道L2的RTT2,然后根据RTT2与RTT1的差值确定上行通道L1与上行通道L2之间的传输时延差。In the prior art, an optical line terminal (OLT) periodically performs a combination of control packets for the same downlink channel (for example, the downlink channel L0) and different uplink channels (for example, the uplink channel L1 and the uplink channel L2). The Round Trip Time (RTT) measurement obtains the RTT1 of the downlink channel L0 and the uplink channel L1, and the RTT2 of the downlink channel L0 and the uplink channel L2, and then determines the uplink channel L1 and the uplink channel L2 according to the difference between the RTT2 and the RTT1. The delay between transmissions.
一方面,由于现有技术中OLT只能周期性通过控制报文(例如至少4个控制报文)针对同一下行通道分别与不同上行通道的组合进行RTT测量,进而得到不同上行通道之间的传输时延差,但通道间的传输时延差随外部环境(如温度、湿度等)动态变化;另一方面,由于现有技术中所采用的RTT测量的精确度不高(如协议规定最小为16ns)。因此,现有技术测量所得到的不同上行通道之间的传输时延差的精度不高,无法保证接收网元准确地完成 报文重组。On the one hand, in the prior art, the OLT can only periodically perform RTT measurement on the same downlink channel and the combination of different uplink channels by using control packets (for example, at least four control packets), thereby obtaining transmission between different uplink channels. The delay is poor, but the transmission delay difference between channels varies dynamically with the external environment (such as temperature, humidity, etc.); on the other hand, the accuracy of the RTT measurement used in the prior art is not high (as specified in the protocol, the minimum is 16ns). Therefore, the accuracy of the transmission delay difference between different uplink channels obtained by the prior art measurement is not high, and the receiving network element cannot be accurately completed. Message reorganization.
发明内容Summary of the invention
本申请实施例提供一种上行通道间的传输时延差检测方法、OLT及系统,提高了不同上行通道之间的传输时延差的测量精度。The embodiment of the present invention provides a transmission delay difference detection method, an OLT, and a system between uplink channels, which improves the measurement accuracy of transmission delay differences between different uplink channels.
第一方面,本申请实施例提供一种上行通道间的传输时延差检测方法,包括:In a first aspect, the embodiment of the present application provides a method for detecting a transmission delay difference between uplink channels, including:
光线路终端OLT根据第一接收时间戳与第二接收时间戳的差值,确定接收时间差;其中,第一接收时间戳用于指示OLT在第一上行通道上接收到光网络单元ONU发送的第一上行数据的接收时间,第二接收时间戳用于指示OLT在第二上行通道上接收到ONU发送的第二上行数据的接收时间;The optical line terminal OLT determines the receiving time difference according to the difference between the first receiving timestamp and the second receiving timestamp. The first receiving timestamp is used to indicate that the OLT receives the optical network unit ONU sent by the OLT on the first uplink channel. a receiving time of the uplink data, where the second receiving timestamp is used to indicate that the OLT receives the receiving time of the second uplink data sent by the ONU on the second uplink channel;
OLT确定第一上行数据与第二上行数据的发送时间差;The OLT determines a transmission time difference between the first uplink data and the second uplink data;
OLT根据接收时间差与发送时间差的差值,确定第一上行通道与第二上行通道之间的传输时延差。The OLT determines a transmission delay difference between the first uplink channel and the second uplink channel according to the difference between the received time difference and the transmission time difference.
通过第一方面提供的上行通道间的传输时延差检测方法,OLT通过根据第一接收时间戳与第二接收时间戳的差值,确定接收时间差;OLT确定第一上行数据与第二上行数据的发送时间差;进一步地,OLT根据接收时间差与发送时间差的差值,确定第一上行通道与第二上行通道之间的传输时延差。可见,本实施例提供的上行通道间的传输时延差检测方法并不依赖于周期性地控制报文,可以实时地根据在不同上行通道上接收到的上行数据的接收时间差以及对应的发送时间差,直接测量不同上行通道之间的传输时延差,其中,上行数据的发送频率为2.56ns,因此,提高了不同上行通道之间的传输时延差的测量精度,从而保证了OLT准确地完成报文重组。The OLT determines the receiving time difference according to the difference between the first receiving timestamp and the second receiving timestamp by using the difference of the transmission delay difference between the uplink channels provided by the first aspect; the OLT determines the first uplink data and the second uplink data. The transmission time difference is further; further, the OLT determines a transmission delay difference between the first uplink channel and the second uplink channel according to the difference between the reception time difference and the transmission time difference. It can be seen that the method for detecting the transmission delay difference between the uplink channels provided in this embodiment does not depend on the periodic control of the packet, and can receive the time difference of the uplink data received on different uplink channels and the corresponding transmission time difference in real time. Directly measuring the transmission delay difference between different uplink channels, wherein the transmission frequency of the uplink data is 2.56 ns, thereby improving the measurement accuracy of the transmission delay difference between different uplink channels, thereby ensuring that the OLT accurately completes Message reorganization.
在一个可能的设计中,OLT确定第一上行数据与第二上行数据的发送时间差,包括:In a possible design, the OLT determines a transmission time difference between the first uplink data and the second uplink data, including:
OLT根据第一上行数据中携带的第一发送时间戳与第二上行数据中携带的第二发送时间戳的差值,确定发送时间差;The OLT determines the sending time difference according to the difference between the first sending timestamp carried in the first uplink data and the second sending timestamp carried in the second uplink data.
其中,第一发送时间戳用于指示ONU在第一上行通道上发送第一上行数据的发送时间;第二发送时间戳用于指示ONU在第二上行通道上发送第二上行数据的发送时间。 The first sending timestamp is used to indicate that the ONU sends the first uplink data transmission time on the first uplink channel, and the second sending timestamp is used to indicate that the ONU sends the second uplink data transmission time on the second uplink channel.
通过该实施方式提供的上行通道间的传输时延差检测方法,OLT根据第一上行数据中携带的第一发送时间戳与第二上行数据中携带的第二发送时间戳的差值,准确地确定出发送时间差,以便于OLT实时地根据在不同上行通道上接收到的上行数据的接收时间差以及准确的发送时间差,直接测量不同上行通道之间的传输时延差,从而提高了不同上行通道之间的传输时延差的测量精度。According to the method for detecting the transmission delay difference between the uplink channels provided by the embodiment, the OLT accurately calculates the difference between the first transmission timestamp carried in the first uplink data and the second transmission timestamp carried in the second uplink data. The transmission time difference is determined, so that the OLT can directly measure the transmission delay difference between different uplink channels according to the receiving time difference of the uplink data received on different uplink channels and the accurate transmission time difference, thereby improving different uplink channels. The measurement accuracy of the transmission delay difference between.
在一个可能的设计中,OLT确定第一上行数据与第二上行数据的发送时间差,包括:In a possible design, the OLT determines a transmission time difference between the first uplink data and the second uplink data, including:
OLT根据第一上行数据,确定发送时间差;其中,第一上行数据中携带ONU确定的第一上行数据与第二上行数据的发送时间差,第一上行数据的发送时间晚于第二上行数据的发送时间。The OLT determines a transmission time difference according to the first uplink data, where the first uplink data carries a difference in transmission time between the first uplink data and the second uplink data determined by the ONU, and the sending time of the first uplink data is later than the sending of the second uplink data. time.
通过该实施方式提供的上行通道间的传输时延差检测方法,OLT根据第一上行数据(携带有准确的发送时间差)确定出准确的发送时间差,以便于OLT实时地根据在不同上行通道上接收到的上行数据的接收时间差以及准确的发送时间差,直接测量不同上行通道之间的传输时延差,从而提高了不同上行通道之间的传输时延差的测量精度。The OLT provides an accurate transmission time difference according to the first uplink data (carrying an accurate transmission time difference), so that the OLT receives the data in different uplink channels in real time according to the method for detecting the transmission delay difference between the uplink channels provided by the embodiment. The receiving time difference of the uplink data and the accurate transmission time difference directly measure the transmission delay difference between different uplink channels, thereby improving the measurement accuracy of the transmission delay difference between different uplink channels.
在一个可能的设计中,OLT确定第一上行数据与第二上行数据的发送时间差,包括:In a possible design, the OLT determines a transmission time difference between the first uplink data and the second uplink data, including:
OLT根据第三发送时间戳以及以及第四发送时间戳,确定发送时间差;The OLT determines the sending time difference according to the third sending timestamp and the fourth sending timestamp;
其中,第三发送时间戳为:OLT为ONU分配的在第一上行通道上发送第一上行数据的时间戳,第四发送时间戳为:OLT为ONU分配的在第二上行通道上发送第二上行数据的时间戳。The third sending timestamp is: a timestamp that the OLT sends to the ONU to send the first uplink data on the first uplink channel, and the fourth sending timestamp is: the OLT allocates the second uplink channel on the second uplink channel. The timestamp of the upstream data.
通过该实施方式提供的上行通道间的传输时延差检测方法,OLT根据预先分配的第三发送时间戳以及第四发送时间戳确定发送时间差,以便于OLT实时地根据在不同上行通道上接收到的上行数据的接收时间差以及发送时间差,直接测量不同上行通道之间的传输时延差,从而提高了不同上行通道之间的传输时延差的测量精度。The OLT determines the transmission time difference according to the pre-assigned third transmission timestamp and the fourth transmission timestamp, so that the OLT receives the time difference according to the uplink channel according to the pre-allocated third transmission timestamp and the fourth transmission timestamp. The receiving time difference of the uplink data and the transmission time difference directly measure the transmission delay difference between different uplink channels, thereby improving the measurement accuracy of the transmission delay difference between different uplink channels.
在一个可能的设计中,第一发送时间戳包括:第一时钟周期计数;和/或,In one possible design, the first transmit timestamp includes: a first clock cycle count; and/or,
第二发送时间戳包括:第二时钟周期计数;The second sending timestamp includes: a second clock cycle count;
其中,第一时钟周期计数为ONU在第一上行通道上发送第一上行数据对 应的时钟周期个数,第二时钟周期计数为ONU在第二上行通道上发送第二上行数据对应的时钟周期个数。The first clock cycle counts as the ONU sends the first uplink data pair on the first uplink channel. The number of clock cycles to be counted, and the second clock cycle count is the number of clock cycles corresponding to the second uplink data sent by the ONU on the second uplink channel.
在一个可能的设计中,OLT根据第一上行数据中携带的第一发送时间戳与第二上行数据中携带的第二发送时间戳的差值,确定发送时间差,包括:In a possible design, the OLT determines the transmission time difference according to the difference between the first sending timestamp carried in the first uplink data and the second sending timestamp carried in the second uplink data, including:
OLT根据第一时钟周期计数与第二时钟周期计数的差值,与ONU的工作时钟的商,确定发送时间差。The OLT determines the transmission time difference according to the difference between the first clock cycle count and the second clock cycle count and the operating clock of the ONU.
第二方面,本申请实施例提供一种光线路终端OLT,包括:In a second aspect, an embodiment of the present application provides an optical line terminal OLT, including:
第一确定模块,用于根据第一接收时间戳与第二接收时间戳的差值,确定接收时间差;其中,第一接收时间戳用于指示OLT在第一上行通道上接收到光网络单元ONU发送的第一上行数据的接收时间,第二接收时间戳用于指示OLT在第二上行通道上接收到ONU发送的第二上行数据的接收时间;a first determining module, configured to determine a receiving time difference according to a difference between the first receiving timestamp and the second receiving timestamp, where the first receiving timestamp is used to indicate that the OLT receives the optical network unit ONU on the first uplink channel The receiving time of the first uplink data that is sent, the second receiving timestamp is used to indicate that the OLT receives the receiving time of the second uplink data sent by the ONU on the second uplink channel;
第二确定模块,用于确定第一上行数据与第二上行数据的发送时间差;a second determining module, configured to determine a sending time difference between the first uplink data and the second uplink data;
第三确定模块,用于根据接收时间差与发送时间差的差值,确定第一上行通道与第二上行通道之间的传输时延差。The third determining module is configured to determine a transmission delay difference between the first uplink channel and the second uplink channel according to the difference between the received time difference and the sending time difference.
在一个可能的设计中,第二确定模块,包括:In one possible design, the second determining module includes:
第一确定单元,用于根据第一上行数据中携带的第一发送时间戳与第二上行数据中携带的第二发送时间戳的差值,确定发送时间差;a first determining unit, configured to determine, according to a difference between a first sending timestamp carried in the first uplink data and a second sending timestamp carried in the second uplink data, a sending time difference;
其中,第一发送时间戳用于指示ONU在第一上行通道上发送第一上行数据的发送时间;第二发送时间戳用于指示ONU在第二上行通道上发送第二上行数据的发送时间。The first sending timestamp is used to indicate that the ONU sends the first uplink data transmission time on the first uplink channel, and the second sending timestamp is used to indicate that the ONU sends the second uplink data transmission time on the second uplink channel.
在一个可能的设计中,第二确定模块,包括:In one possible design, the second determining module includes:
第二确定单元,用于根据第一上行数据,确定发送时间差;其中,第一上行数据中携带ONU确定的第一上行数据与第二上行数据的发送时间差,第一上行数据的发送时间晚于第二上行数据的发送时间。a second determining unit, configured to determine, according to the first uplink data, a sending time difference, where the first uplink data carries a sending time difference between the first uplink data and the second uplink data determined by the ONU, and the sending time of the first uplink data is later than The transmission time of the second uplink data.
在一个可能的设计中,第二确定模块,包括:In one possible design, the second determining module includes:
第三确定单元,用于根据第三发送时间戳以及以及第四发送时间戳,确定发送时间差;a third determining unit, configured to determine a sending time difference according to the third sending timestamp and the fourth sending timestamp;
其中,第三发送时间戳为:OLT为ONU分配的在第一上行通道上发送第一上行数据的时间戳,第四发送时间戳为:OLT为ONU分配的在第二上行通道上发送第二上行数据的时间戳。 The third sending timestamp is: a timestamp that the OLT sends to the ONU to send the first uplink data on the first uplink channel, and the fourth sending timestamp is: the OLT allocates the second uplink channel on the second uplink channel. The timestamp of the upstream data.
在一个可能的设计中,第一发送时间戳包括:第一时钟周期计数;和/或,In one possible design, the first transmit timestamp includes: a first clock cycle count; and/or,
第二发送时间戳包括:第二时钟周期计数;The second sending timestamp includes: a second clock cycle count;
其中,第一时钟周期计数为ONU在第一上行通道上发送第一上行数据对应的时钟周期个数,第二时钟周期计数为ONU在第二上行通道上发送第二上行数据对应的时钟周期个数。The first clock cycle count is the number of clock cycles corresponding to the first uplink data sent by the ONU on the first uplink channel, and the second clock cycle count is the clock cycle corresponding to the second uplink data sent by the ONU on the second uplink channel. number.
在一个可能的设计中,第一确定单元具体用于:根据第一时钟周期计数与第二时钟周期计数的差值,与ONU的工作时钟的商,确定发送时间差。In a possible design, the first determining unit is specifically configured to: determine a transmission time difference according to a difference between the first clock cycle count and the second clock cycle count, and the ONU operating clock.
上述第二方面以及上述第二方面的各可能的实施方式所提供的OLT,其有益效果可以参见上述第一方面的各可能的实施方式所带来的有益效果,在此不再赘述。For the beneficial effects of the OLT provided by the foregoing second aspect and the foregoing possible implementation manners of the second aspect, reference may be made to the beneficial effects of the foregoing possible implementation manners of the first aspect, and details are not described herein.
第三方面,本申请实施例提供一种上行通道间的传输时延差检测系统,包括:In a third aspect, the embodiment of the present application provides a transmission delay difference detection system between uplink channels, including:
光网络单元ONU以及上述第二方面的任一可能的设计的光线路终端OLT。Optical network unit ONU and optical line terminal OLT of any of the possible aspects of the above second aspect.
上述第三方面所提供的上行通道间的传输时延差检测系统,其有益效果可以参见上述第二方面的各可能的实施方式所带来的有益效果,在此不再赘述。For the beneficial effects of the transmission delay difference detection system between the uplink channels provided by the foregoing third aspect, reference may be made to the beneficial effects of the foregoing possible implementation manners of the second aspect, and details are not described herein.
附图说明DRAWINGS
图1为本申请100G EPON网络结构示意图;1 is a schematic structural diagram of a 100G EPON network according to the present application;
图2A为本申请提供的上行通道间的传输时延差检测方法实施例一的流程图;2A is a flowchart of Embodiment 1 of a method for detecting a transmission delay difference between uplink channels provided by the present application;
图2B为本申请提供的数据传输示意图一;2B is a schematic diagram 1 of data transmission provided by the present application;
图3A为本申请提供的上行通道间的传输时延差检测方法实施例二的流程图;3A is a flowchart of Embodiment 2 of a method for detecting a transmission delay difference between uplink channels provided by the present application;
图3B为本申请提供的数据传输示意图二;FIG. 3B is a schematic diagram 2 of data transmission provided by the present application; FIG.
图3C为本申请提供的数据传输示意图三;FIG. 3C is a schematic diagram 3 of data transmission provided by the present application; FIG.
图3D所示为本申请提供的上行数据的帧结构示意图;FIG. 3D is a schematic diagram showing a frame structure of uplink data provided by the present application;
图4A为本申请提供的上行通道间的传输时延差检测方法实施例三的流程图; 4A is a flowchart of Embodiment 3 of a method for detecting a transmission delay difference between uplink channels provided by the present application;
图4B为本申请提供的数据传输示意图四;4B is a schematic diagram 4 of data transmission provided by the present application;
图4C为本申请提供的数据传输示意图五;4C is a schematic diagram 5 of data transmission provided by the present application;
图5A为本申请提供的上行通道间的传输时延差检测方法实施例四的流程图;5A is a flowchart of Embodiment 4 of a method for detecting a transmission delay difference between uplink channels provided by the present application;
图5B为本申请提供的数据传输示意图四;FIG. 5B is a schematic diagram 4 of data transmission provided by the present application; FIG.
图5C为本申请提供的数据传输示意图五;FIG. 5C is a schematic diagram 5 of data transmission provided by the present application; FIG.
图6为本申请提供的OLT实施例一的结构示意图;FIG. 6 is a schematic structural diagram of Embodiment 1 of an OLT provided by the present application;
图7为本申请提供的OLT实施例二的结构示意图;FIG. 7 is a schematic structural diagram of Embodiment 2 of an OLT provided by the present application;
图8所示为本申请提供的上行通道间的传输时延差检测系统实施例的结构示意图。FIG. 8 is a schematic structural diagram of an embodiment of a transmission delay difference detecting system between uplink channels provided by the present application.
具体实施方式detailed description
首先对本申请实施例中所涉及的EPON网络结构进行详细介绍:First, the EPON network structure involved in the embodiment of the present application is introduced in detail:
图1为本申请100G EPON网络结构示意图。如图1所示,在100EPON网络中,OLT可以通过功率分配器同时与多个ONU通信(为了便于描述,图1中以2个ONU为例)。另外,OLT与ONU之间可以通过4个传输通道进行数据传输。FIG. 1 is a schematic structural diagram of a 100G EPON network according to the present application. As shown in FIG. 1, in a 100 EPON network, an OLT can simultaneously communicate with multiple ONUs through a power splitter (for convenience of description, two ONUs are taken as an example in FIG. 1). In addition, data transmission can be performed between the OLT and the ONU through four transmission channels.
下面结合附图通过具体实施例对本申请实施例提供的上行通道间的传输时延差检测方法、设备及系统进行详细说明。The method, device and system for detecting transmission delay difference between uplink channels provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
图2A为本申请提供的上行通道间的传输时延差检测方法实施例一的流程图,图2B为本申请提供的数据传输示意图一。本申请提供的上行通道间的传输时延差检测方法可以应用于100G EPON网络中。如图2A所示,本实施例的方法可以包括:2A is a flowchart of Embodiment 1 of a method for detecting a transmission delay difference between uplink channels provided by the present application, and FIG. 2B is a schematic diagram 1 of data transmission provided by the present application. The transmission delay difference detection method between uplink channels provided by the present application can be applied to a 100G EPON network. As shown in FIG. 2A, the method in this embodiment may include:
S201:OLT根据第一接收时间戳与第二接收时间戳的差值,确定接收时间差。S201: The OLT determines the receiving time difference according to the difference between the first receiving timestamp and the second receiving timestamp.
其中,第一接收时间戳用于指示OLT在第一上行通道上接收到光网络单元ONU发送的第一上行数据的接收时间,第二接收时间戳用于指示OLT在第二上行通道上接收到ONU发送的第二上行数据的接收时间。The first receiving timestamp is used to indicate that the OLT receives the receiving time of the first uplink data sent by the optical network unit ONU on the first uplink channel, and the second receiving timestamp is used to indicate that the OLT receives the second uplink channel. The receiving time of the second uplink data sent by the ONU.
本实施例中,ONU的工作时钟为第一预设值(如390.625MHz,每隔2.56ns发送66比特数据),ONU的不同通道工作在同一时钟下。为了便于描述, 本申请实施例中,以第一上行通道和第二上行通道为例进行说明;其中,第一上行通道和第二上行通道并不是指固定的某条上行通道,而是泛指两条不同的上行通道。In this embodiment, the working clock of the ONU is a first preset value (such as 390.625 MHz, and 66-bit data is transmitted every 2.56 ns), and different channels of the ONU work under the same clock. For the convenience of description, In the embodiment of the present application, the first uplink channel and the second uplink channel are used as an example. The first uplink channel and the second uplink channel do not refer to a fixed uplink channel, but generally refer to two different uplink channels. Upstream channel.
本步骤中,OLT接收ONU在不同上行通道上发送的上行数据,并记录对应的接收时间戳(用于指示对应上行数据的接收时间),以便根据不同上行数据对应的接收时间戳确定接收时间差。如图2B所示,本实施例中OLT接收ONU在第一上行通道上发送的第一上行数据并记录第一接收时间戳tr1(用于指示OLT在第一上行通道上接收到ONU发送的第一上行数据的接收时间),以及接收ONU在第二上行通道上发送的第二上行数据并记录第二接收时间戳tr2(用于指示OLT在第二上行通道上接收到ONU发送的第二上行数据的接收时间);进一步地,OLT根据第一接收时间戳tr1与第二接收时间戳tr2的差值,确定第一上行数据与第二上行数据之间的接收时间差Δtr,即Δtr=tr1-tr2In this step, the OLT receives the uplink data sent by the ONU on different uplink channels, and records the corresponding receiving timestamp (used to indicate the receiving time of the corresponding uplink data), so as to determine the receiving time difference according to the receiving timestamp corresponding to the different uplink data. As shown in FIG. 2B, in this embodiment, the OLT receives the first uplink data sent by the ONU on the first uplink channel and records the first receiving timestamp t r1 (instructing the OLT to receive the ONU transmission on the first uplink channel). Receiving time of the first uplink data, and receiving the second uplink data sent by the ONU on the second uplink channel, and recording the second receiving timestamp t r2 (instructing the OLT to receive the ONU transmission on the second uplink channel) And receiving, by the OLT, the receiving time difference Δt r between the first uplink data and the second uplink data according to the difference between the first receiving timestamp t r1 and the second receiving timestamp t r2 , That is, Δt r = t r1 - t r2 .
S202:OLT确定第一上行数据与第二上行数据的发送时间差。S202: The OLT determines a sending time difference between the first uplink data and the second uplink data.
本实施例中,为了后续计算第一上行通道和第二上行通道之间的传输时延差,OLT需要获取第一上行数据与第二上行数据的发送时间差Δtt。可选地,OLT可以预先获知该发送时间差Δtt,或者,根据ONU发送的时间指示信息确定发送时间差ΔttIn this embodiment, in order to calculate the transmission delay difference between the first uplink channel and the second uplink channel, the OLT needs to acquire the transmission time difference Δt t of the first uplink data and the second uplink data. Optionally, the OLT may know the transmission time difference Δt t in advance, or determine the transmission time difference Δt t according to the time indication information sent by the ONU.
可选地,S202的第一种可实现方式:OLT根据第一上行数据中携带的第一发送时间戳与第二上行数据中携带的第二发送时间戳的差值,确定发送时间差Δtr;其中,第一发送时间戳用于指示ONU在第一上行通道上发送第一上行数据的发送时间;第二发送时间戳用于指示ONU在第二上行通道上发送第二上行数据的发送时间。本实现方式中,ONU通过在第一上行数据中携带第一发送时间戳,以及在第二上行数据中携带第二发送时间戳,以便于OLT根据第一发送时间戳以及第二发送时间戳的差值,确定发送时间差ΔtrOptionally, the first implementation manner of the S202 is: the OLT determines the sending time difference Δt r according to the difference between the first sending timestamp carried in the first uplink data and the second sending timestamp carried in the second uplink data; The first sending timestamp is used to indicate that the ONU sends the first uplink data transmission time on the first uplink channel, and the second sending timestamp is used to indicate that the ONU sends the second uplink data transmission time on the second uplink channel. In this implementation manner, the ONU carries the first sending timestamp in the first uplink data, and carries the second sending timestamp in the second uplink data, so that the OLT can use the first sending timestamp and the second sending timestamp according to the first sending timestamp. The difference is determined by the transmission time difference Δt r .
可选地,S202的第二种可实现方式:OLT根据第一上行数据,确定发送时间差Δtr;其中,第一上行数据中携带ONU确定的第一上行数据与第二上行数据的发送时间差Δtr,第一上行数据的发送时间晚于第二上行数据的发送时间。本实现方式中,ONU在确定第一上行数据与第二上行数据的发送时间差Δtr后,通过在第一上行数据(其发送时间晚于第二上行数据的发送时间) 中携带发送时间差Δtr,以便于OLT直接获知发送时间差ΔtrOptionally, the second implementation manner of the S202 is: the OLT determines a transmission time difference Δt r according to the first uplink data, where the first uplink data carries a transmission time difference Δt between the first uplink data and the second uplink data determined by the ONU. r, the first uplink data transmission time later than the transmitting time of the second uplink data. In this implementation manner, after determining the transmission time difference Δt r of the first uplink data and the second uplink data, the ONU carries the transmission time difference Δt r in the first uplink data (the transmission time is later than the transmission time of the second uplink data). So that the OLT directly knows the transmission time difference Δt r .
可选地,S202的第三种可实现方式:OLT根据第三发送时间戳以及第四发送时间戳,确定发送时间差Δtr;其中,第三发送时间戳为:OLT为ONU分配的在第一上行通道上发送第一上行数据的时间戳,第四发送时间戳为:OLT为ONU分配的在第二上行通道上发送第二上行数据的时间戳。本实现方式中,OLT预先为ONU分配在不同上行通道上发送上行数据的时间戳,以便ONU根据分配的时间戳在相应上行通道上发送上行数据,例如:OLT为ONU分配在第一上行通道上发送第一上行数据的时间戳为第三发送时间戳,以及OLT为ONU分配的在第二上行通道上发送第二上行数据的时间戳为第四发送时间戳;可见,本实现方式中,OLT预先获知发送时间差ΔttOptionally, a third implementation manner of the S202 is: the OLT determines a sending time difference Δt r according to the third sending timestamp and the fourth sending timestamp; wherein, the third sending timestamp is: the OLT allocates the first time to the ONU. A timestamp of sending the first uplink data on the uplink channel, where the fourth sending timestamp is a timestamp allocated by the OLT to the ONU to send the second uplink data on the second uplink channel. In this implementation manner, the OLT allocates timestamps for transmitting uplink data on different uplink channels for the ONU, so that the ONU sends uplink data on the corresponding uplink channel according to the allocated timestamp. For example, the OLT allocates the ONU on the first uplink channel. The timestamp of sending the first uplink data is the third sending timestamp, and the timestamp of the second uplink data sent by the OLT to the ONU on the second uplink channel is the fourth sending timestamp; as shown in the implementation manner, the OLT is implemented. The transmission time difference Δt t is known in advance.
当然,OLT还可以通过其它方式确定第一上行数据与第二上行数据的发送时间差,本申请实施例中对此并不作限制。Certainly, the OLT may determine the time difference of the sending of the first uplink data and the second uplink data by using other methods, which is not limited in this embodiment.
本实施例中对步骤S201和步骤S202的执行顺序并不限定(例如,先执行步骤S201再执行步骤S202、或者先执行步骤S202再执行步骤S201等),可以根据实际情况调整步骤S201和步骤S202的执行顺序。The execution order of the step S201 and the step S202 in the embodiment is not limited (for example, the step S201 is performed first, the step S202 is performed, or the step S202 is performed first, and then the step S201 is performed), and the step S201 and the step S202 can be adjusted according to actual conditions. The order of execution.
S203、OLT根据接收时间差与发送时间差的差值,确定第一上行通道与第二上行通道之间的传输时延差。S203. The OLT determines, according to a difference between the received time difference and the sending time difference, a transmission delay difference between the first uplink channel and the second uplink channel.
本实施例中,假设第一上行通道与第二上行通道之间不存在传输时延,则接收时间差Δtr与发送时间差Δtt应该相等;若接收时间差Δtr与发送时间差Δtt不相等,则说明第一上行通道与第二上行通道之间存在传输时延,OLT可以根据接收时间差Δtr与发送时间差Δtt的差值,确定第一上行通道与第二上行通道之间的传输时延差Δt,即Δt=Δtr-Δtt。可见,本实施例提供的上行通道间的传输时延差检测方法并不依赖于周期性地控制报文,可以实时地根据在不同上行通道上接收到的上行数据的接收时间差以及对应的发送时间差,直接测量不同上行通道之间的传输时延差,其中,上行数据的发送频率为2.56ns,因此,提高了不同上行通道之间的传输时延差的测量精度(测量精度提高至2.56ns)。In this embodiment, if there is no transmission delay between the first uplink channel and the second uplink channel, the reception time difference Δt r and the transmission time difference Δt t should be equal; if the reception time difference Δt r is not equal to the transmission time difference Δt t , then It is indicated that there is a transmission delay between the first uplink channel and the second uplink channel, and the OLT can determine the transmission delay difference between the first uplink channel and the second uplink channel according to the difference between the reception time difference Δt r and the transmission time difference Δt t . Δt, ie Δt = Δt r - Δt t . It can be seen that the method for detecting the transmission delay difference between the uplink channels provided in this embodiment does not depend on the periodic control of the packet, and can receive the time difference of the uplink data received on different uplink channels and the corresponding transmission time difference in real time. Directly measuring the transmission delay difference between different uplink channels, wherein the uplink data transmission frequency is 2.56 ns, thereby improving the measurement accuracy of the transmission delay difference between different uplink channels (measurement accuracy is improved to 2.56 ns) .
本申请实施例中,OLT通过根据第一接收时间戳与第二接收时间戳的差值,确定接收时间差;OLT确定第一上行数据与所述第二上行数据的发送时间差;进一步地,OLT根据接收时间差与发送时间差的差值,确定第一上行 通道与第二上行通道之间的传输时延差。可见,本实施例提供的上行通道间的传输时延差检测方法并不依赖于周期性地控制报文,可以实时地根据在不同上行通道上接收到的上行数据的接收时间差以及对应的发送时间差,直接测量不同上行通道之间的传输时延差,其中,上行数据的发送频率为2.56ns,因此,提高了不同上行通道之间的传输时延差的测量精度,从而保证了OLT准确地完成报文重组。In the embodiment of the present application, the OLT determines the receiving time difference according to the difference between the first receiving timestamp and the second receiving timestamp; the OLT determines a sending time difference between the first uplink data and the second uplink data; further, the OLT is configured according to The difference between the received time difference and the transmitted time difference determines the first uplink The difference in transmission delay between the channel and the second upstream channel. It can be seen that the method for detecting the transmission delay difference between the uplink channels provided in this embodiment does not depend on the periodic control of the packet, and can receive the time difference of the uplink data received on different uplink channels and the corresponding transmission time difference in real time. Directly measuring the transmission delay difference between different uplink channels, wherein the transmission frequency of the uplink data is 2.56 ns, thereby improving the measurement accuracy of the transmission delay difference between different uplink channels, thereby ensuring that the OLT accurately completes Message reorganization.
图3A为本申请提供的上行通道间的传输时延差检测方法实施例二的流程图,图3B为本申请提供的数据传输示意图二,图3C为本申请提供的数据传输示意图三。如图3A所示,本实施例的方法可以包括:FIG. 3A is a flowchart of Embodiment 2 of a method for detecting a transmission delay difference between uplink channels provided by the present application. FIG. 3B is a schematic diagram 2 of data transmission provided by the present application, and FIG. 3C is a schematic diagram 3 of data transmission provided by the present application. As shown in FIG. 3A, the method in this embodiment may include:
S301、ONU在第一上行通道上向OLT发送第一上行数据,以及在第二上行通道上向OLT发送第二上行数据。S301. The ONU sends the first uplink data to the OLT on the first uplink channel, and sends the second uplink data to the OLT on the second uplink channel.
其中,第一上行数据中携带第一发送时间戳tt1,第一发送时间戳tt1用于指示ONU在第一上行通道上发送第一上行数据的发送时间;第二上行数据中携带第二发送时间戳tt2,第二发送时间戳tt2用于指示ONU在第二上行通道上发送第二上行数据的发送时间。The first uplink data carries the first sending timestamp t t1 , where the first sending timestamp t t1 is used to indicate that the ONU sends the first uplink data transmission time on the first uplink channel, and the second uplink data carries the second time. The timestamp t t2 is sent, and the second sending timestamp t t2 is used to indicate the sending time of the second uplink data sent by the ONU on the second uplink channel.
本步骤中,如图3B所示,ONU在第一上行通道上发送的第一上行数据中可携带有第一发送时间戳tt1(用于指示ONU在第一上行通道上发送第一上行数据的发送时间),以及ONU在第二上行通道上发送的第二上行数据中可携带有第二发送时间戳tt2(用于指示ONU在第二上行通道上发送第二上行数据的发送时间)。可选地,第一发送时间戳tt1可携带于第一上行数据中的预设字段(例如,第一上行数据的帧结构中分隔符之后的空闲字段),第二发送时间戳tt2可携带于第二上行数据中的预设字段。In this step, as shown in FIG. 3B, the first uplink data sent by the ONU on the first uplink channel may carry a first sending timestamp t t1 (instructing the ONU to send the first uplink data on the first uplink channel). The second transmission data sent by the ONU on the second uplink channel may carry a second transmission timestamp t t2 (indicating the transmission time of the ONU transmitting the second uplink data on the second uplink channel) . Optionally, the first sending timestamp t t1 may be carried in a preset field in the first uplink data (for example, an idle field after the delimiter in the frame structure of the first uplink data), and the second sending timestamp t t2 may be The preset field carried in the second uplink data.
图3D所示为本申请提供的上行数据的帧结构示意图。如图3D所示,上行数据的帧结构包括:前向纠错(Forward Error Correction,简称FEC)无保护字段、FEC保护字段以及结束(End of burst,简称EOB)字段;其中,FEC无保护字段的末端包括分隔符,FEC保护字段包括:N个FEC码字(Codewords,简称CW),N为大于等于0的整数;每个FEC码子的有效载荷部分包括:27个66比特码块;可选地,发送时间戳可以位于对应上行数据中FEC CW0的前两个空闲的66比特码块中的任意1个66比特码块(称 之为目标字段),当然还可位于其它字段,本申请实施例中对此并不作限制。表1为目标字段描述信息,例如,参见表1所示,目标字段的第1~2个比特为同步序列,当前两个比特的数值等于“10”时,代表该目标字段承载控制信息;目标字段的第3~10个比特用于指示承载控制信息(或承载对象)的类型,当第3~10个比特的数值等于第一预设值时,代表该目标字段承载有发送时间戳,当第3~10个比特的数值等于第二预设值时,代表该目标字段承载有发送时间差;目标字段的第11~X个比特用于指示承载对象(如发送时间戳或发送时间差)对应的数值,其中,X为大于11且小于49的整数;随后的字段分别用于承载ONU标识符以及填充字段等。当然,目标字段的结构并不限于表1所示,还可以为其它结构,本申请实施例中对此并不作限制。本实施例中,目标字段的第3~10个比特的数值等于第一预设值,代表该目标字段承载有发送时间戳,对应地,目标字段的第11~X个比特用于指示发送时间戳对应的数值。FIG. 3D is a schematic diagram showing the frame structure of the uplink data provided by the present application. As shown in FIG. 3D, the frame structure of the uplink data includes: a Forward Error Correction (FEC) unprotected field, an FEC protection field, and an End of Burst (EOB) field; wherein, the FEC unprotected field The end of the FBR protection field includes: N FEC code words (Codewords, CW for short), N is an integer greater than or equal to 0; the payload portion of each FEC code includes: 27 66-bit code blocks; Alternatively, the sending timestamp may be located in any one of the first two 66-bit code blocks of the FEC CW 0 corresponding to the uplink data (referred to as a target field), and may of course be located in other fields. This embodiment of the present application does not limit this. Table 1 shows the description information of the target field. For example, as shown in Table 1, the first to second bits of the target field are synchronization sequences. When the value of the current two bits is equal to "10", it represents the target field carrying control information; The 3rd to 10th bits of the field are used to indicate the type of the bearer control information (or the bearer object). When the value of the 3rd to 10th bits is equal to the first preset value, the target field carries the transmission timestamp. When the value of the 3rd to 10th bits is equal to the second preset value, the target field carries the transmission time difference; the 11th to the Xth bits of the target field are used to indicate the bearer object (such as the sending timestamp or the sending time difference). A value, where X is an integer greater than 11 and less than 49; subsequent fields are used to carry ONU identifiers, padding fields, and the like, respectively. Of course, the structure of the target field is not limited to that shown in Table 1, and may be other structures, which is not limited in the embodiment of the present application. In this embodiment, the value of the 3rd to 10th bits of the target field is equal to the first preset value, and the target field carries the transmission timestamp. Correspondingly, the 11th to Xth bits of the target field are used to indicate the sending time. Poke the corresponding value.
表1目标字段描述信息Table 1 target field description information
Figure PCTCN2016112476-appb-000001
Figure PCTCN2016112476-appb-000001
可选地,第一发送时间戳包括:第一时钟周期计数;和/或,第二发送时间戳包括:第二时钟周期计数。其中,第一时钟周期计数为ONU在第一上行通道上发送第一上行数据对应的时钟周期个数(例如,第11个),第二时钟周期计数为ONU在第二上行通道上发送第二上行数据对应的时钟周期个数(例如,第10个)。可选地,ONU中设置有计数器(用于统计ONU上电后的时钟周期个数,即该计数器每隔2.56ns自增1)。Optionally, the first sending timestamp includes: a first clock cycle count; and/or the second sending timestamp includes: a second clock cycle count. The first clock cycle count is the number of clock cycles corresponding to the first uplink data sent by the ONU on the first uplink channel (for example, the eleventh), and the second clock cycle count is that the ONU sends the second uplink channel on the second uplink channel. The number of clock cycles corresponding to the upstream data (for example, the 10th). Optionally, a counter is set in the ONU (for counting the number of clock cycles after the ONU is powered on, that is, the counter is incremented by 1 every 2.56 ns).
当然,第一发送时间戳还可以包括其它用于指示ONU在第一上行通道上 发送第一上行数据的发送时间的时间指示信息,和/或,第二发送时间戳还可以包括其它用于指示ONU在第二上行通道上发送第二上行数据的发送时间的时间指示信息,本申请实施例中对此并不作限制。Of course, the first sending timestamp may further include other means for indicating that the ONU is on the first uplink channel. The time indication information of the sending time of the first uplink data is sent, and/or the second sending timestamp may further include other time indication information for indicating the sending time of the second uplink data sent by the ONU on the second uplink channel, This is not limited in the application examples.
S302、OLT接收ONU在第一上行通道上发送的第一上行数据,以及接收ONU在第二上行通道上发送的第二上行数据。S302. The OLT receives the first uplink data that is sent by the ONU on the first uplink channel, and receives the second uplink data that is sent by the ONU on the second uplink channel.
本步骤中,如图3C所示,OLT接收ONU在第一上行通道上发送的携带有第一发送时间戳tt1的第一上行数据并记录第一接收时间戳tr1,以及接收ONU在第二上行通道上发送的携带有第二发送时间戳tt2的第二上行数据并记录第二接收时间戳tr2In this step, as shown in FIG. 3C, the OLT receives the first uplink data that is sent by the ONU on the first uplink channel and carries the first transmission timestamp t t1 and records the first receiving timestamp t r1 , and receives the ONU in the first The second uplink data carried on the second uplink channel carrying the second transmission timestamp t t2 and recording the second reception time stamp t r2 .
S303、OLT根据第一接收时间戳与第二接收时间戳的差值,确定第一上行数据与第二上行数据之间的接收时间差。S303. The OLT determines, according to a difference between the first receiving timestamp and the second receiving timestamp, a receiving time difference between the first uplink data and the second uplink data.
本步骤中,OLT根据第一接收时间戳tr1与第二接收时间戳tr2的差值,确定第一上行数据与第二上行数据之间的接收时间差Δtr,即Δtr=tr1-tr2In this step, the OLT determines, according to the difference between the first receiving timestamp t r1 and the second receiving timestamp t r2 , a reception time difference Δt r between the first uplink data and the second uplink data, that is, Δt r =t r1 - t r2 .
S304、OLT根据第一上行数据中携带的第一发送时间戳与第二上行数据中携带的第二发送时间戳的差值,确定发送时间差。S304. The OLT determines a sending time difference according to a difference between a first sending timestamp carried in the first uplink data and a second sending timestamp carried in the second uplink data.
本步骤中,OLT根据第一上行数据中携带的第一发送时间戳tt1与第二上行数据中携带的第二发送时间戳tt2的差值,准确地确定发送时间差Δtt,即Δtt=tt1-tt2In this step, the OLT accurately determines the transmission time difference Δt t according to the difference between the first transmission timestamp t t1 carried in the first uplink data and the second transmission timestamp t t2 carried in the second uplink data, that is, Δt t =t t1 -t t2 .
可选地,若第一发送时间戳包括:第一时钟周期计数c1;和/或,第二发送时间戳包括:第二时钟周期计数c2,OLT根据第一时钟周期计数c1与第二时钟周期计数c2的差值,与ONU的工作时钟clk的商,确定发送时间差Δtt,即Δtt=(c1-c2)/clk,其中,clk等于390.625MHz。Optionally, if the first sending timestamp includes: a first clock cycle count c1; and/or, the second sending timestamp includes: a second clock cycle count c2, the OLT counts c1 and the second clock cycle according to the first clock cycle Counting the difference of c2, and the quotient of the operating clock clk of the ONU, determines the transmission time difference Δt t , that is, Δt t = (c1 - c2) / clk, where clk is equal to 390.625 MHz.
当然,当第一发送时间戳包括其它用于指示ONU在第一上行通道上发送第一上行数据的发送时间的时间指示信息,和/或,第二发送时间戳包括其它用于指示ONU在第二上行通道上发送第二上行数据的发送时间的时间指示信息时,OLT可以根据公式(Δtt=tt1-tt2)的其它形式公式确定Δtt,本申请实施例中对此并不作限制。Certainly, when the first sending timestamp includes other time indication information indicating that the ONU sends the first uplink data transmission time on the first uplink channel, and/or the second sending timestamp includes other means for indicating the ONU in the first When the time indication information of the transmission time of the second uplink data is sent on the two uplink channels, the OLT may determine Δt t according to other formal formulas of the formula (Δt t = t t1 - t t2 ), which is not limited in this embodiment. .
S305、OLT根据接收时间差与发送时间差的差值,确定第一上行通道与第二上行通道之间的传输时延差。S305. The OLT determines, according to a difference between the received time difference and the sending time difference, a transmission delay difference between the first uplink channel and the second uplink channel.
本步骤中,OLT根据接收时间差Δtr与发送时间差Δtt的差值,确定第一上 行通道与第二上行通道之间的传输时延差Δt,即Δt=Δtr-ΔttIn this step, the OLT determines the transmission delay difference Δt between the first uplink channel and the second uplink channel according to the difference between the reception time difference Δt r and the transmission time difference Δt t , that is, Δt=Δt r -Δt t .
本实施例中,通过ONU在第一上行通道上向OLT发送携带有第一发送时间戳的第一上行数据,以及在第二上行通道上向OLT发送携带有第二发送时间戳的第二上行数据;进一步地,OLT根据第一接收时间戳(用于指示OLT在第一上行通道上接收到ONU发送的第一上行数据的接收时间)与第二接收时间戳(用于指示OLT在第二上行通道上接收到ONU发送的第二上行数据的接收时间)的差值确定接收时间差,以及根据第一上行数据中携带的第一发送时间戳与第二上行数据中携带的第二发送时间戳的差值,准确地确定发送时间差;进一步地,OLT根据接收时间差与发送时间差的差值,确定第一上行通道与第二上行通道之间的传输时延差。可见,本实施例提供的上行通道间的传输时延差检测方法并不依赖于周期性地控制报文,可以实时地根据在不同上行通道上接收到的上行数据的接收时间差以及准确的发送时间差,直接测量不同上行通道之间的传输时延差,因此,进一步提高了不同上行通道之间的传输时延差的测量精度。In this embodiment, the ONU sends the first uplink data carrying the first sending timestamp to the OLT on the first uplink channel, and sends the second uplink carrying the second sending timestamp to the OLT on the second uplink channel. Data; further, the OLT according to the first receiving timestamp (instructing the OLT to receive the receiving time of the first uplink data sent by the ONU on the first uplink channel) and the second receiving timestamp (for indicating that the OLT is in the second The difference of the receiving time of the second uplink data sent by the ONU on the uplink channel determines the receiving time difference, and the first sending timestamp carried in the first uplink data and the second sending timestamp carried in the second uplink data. The difference is accurately determined by the difference in the transmission time. Further, the OLT determines the transmission delay difference between the first uplink channel and the second uplink channel according to the difference between the reception time difference and the transmission time difference. It can be seen that the method for detecting the transmission delay difference between the uplink channels provided in this embodiment does not depend on the periodic control of the packet, and can accurately receive the time difference of the uplink data received on different uplink channels and the accurate transmission time difference in real time. The direct measurement of the transmission delay difference between different uplink channels is performed, thereby further improving the measurement accuracy of the transmission delay difference between different uplink channels.
图4A为本申请提供的上行通道间的传输时延差检测方法实施例三的流程图,图4B为本申请提供的数据传输示意图四,图4C为本申请提供的数据传输示意图五。如图4A所示,本实施例的方法可以包括:4A is a flowchart of Embodiment 3 of a method for detecting a transmission delay difference between uplink channels provided by the present application. FIG. 4B is a schematic diagram 4 of data transmission provided by the present application, and FIG. 4C is a schematic diagram 5 of data transmission provided by the present application. As shown in FIG. 4A, the method in this embodiment may include:
S401、ONU在第二上行通道上向OLT发送第二上行数据,以及在第一上行通道上向OLT发送第一上行数据。S401. The ONU sends the second uplink data to the OLT on the second uplink channel, and sends the first uplink data to the OLT on the first uplink channel.
其中,第一上行数据中携带ONU确定的第一上行数据与第二上行数据的发送时间差Δtr,第一上行数据的发送时间晚于第二上行数据的发送时间。The first uplink data carries a transmission time difference Δt r between the first uplink data and the second uplink data determined by the ONU, and the transmission time of the first uplink data is later than the transmission time of the second uplink data.
本步骤中,如图4B所示,ONU先在第二上行通道上向OLT发送第二上行数据,然后在第一上行通道上向OLT发送第一上行数据。可选地,ONU在发送第一上行数据之前,确定第一上行数据与第二上行数据的发送时间差Δtt,并将发送时间差Δtt携带于第一上行数据中,以便于OLT直接获知发送时间差Δtt。可选地,发送时间差Δtt可携带于第一上行数据中的预设字段(例如,第一上行数据的帧结构中分隔符之后的空闲字段)。其中,发送时间差Δtt的携带方式可参见上述关于发送时间戳(第一发送时间戳和/或第二发送时间戳)的携带方式的相关内容,本申请中发送时间差可以携带于目标字段(具 体的目标字段的描述信息此处不再赘述),目标字段的第3~10个比特的数值等于第二预设值,代表该目标字段承载有发送时间差,对应地,目标字段的第11~X个比特用于指示发送时间差对应的数值。In this step, as shown in FIG. 4B, the ONU first sends the second uplink data to the OLT on the second uplink channel, and then sends the first uplink data to the OLT on the first uplink channel. Optionally, before transmitting the first uplink data, the ONU determines a transmission time difference Δt t between the first uplink data and the second uplink data, and carries the transmission time difference Δt t in the first uplink data, so that the OLT directly knows the transmission time difference. Δt t . Optionally, the transmission time difference Δt t may be carried in a preset field in the first uplink data (for example, an idle field after the delimiter in the frame structure of the first uplink data). For the carrying manner of the sending time difference Δt t , refer to the related content about the carrying manner of the sending timestamp (the first sending timestamp and/or the second sending timestamp). In this application, the sending time difference may be carried in the target field (specifically The description of the target field is not described here. The value of the 3rd to 10th bits of the target field is equal to the second preset value, which means that the target field carries the transmission time difference, correspondingly, the 11th to the Xth of the target field. The bits are used to indicate the value corresponding to the transmission time difference.
可选地,发送时间差Δtt包括:第一时钟周期计数与第二时钟周期计数的时钟周期计数差值,其中,第一时钟周期计数为ONU在第一上行通道上发送第一上行数据对应的时钟周期个数,第二时钟周期计数为ONU在第二上行通道上发送第二上行数据对应的时钟周期个数。Optionally, the sending time difference Δt t includes: a clock cycle count difference between the first clock cycle count and the second clock cycle count, wherein the first clock cycle count is the ONU corresponding to the first uplink data sent by the ONU. The number of clock cycles, the second clock cycle count is the number of clock cycles corresponding to the second uplink data sent by the ONU on the second uplink channel.
当然,发送时间差Δtt还可以包括其它用于指示第一上行数据与第二上行数据的发送时间差的时间指示信息,本申请实施例中对此并不作限制。Of course, the transmission time difference Δt t may further include other time indication information for indicating the difference of the transmission time of the first uplink data and the second uplink data, which is not limited in the embodiment of the present application.
S402、OLT接收ONU在第二上行通道上发送的第二上行数据,以及接收ONU在第一上行通道上发送的第一上行数据。S402. The OLT receives the second uplink data that is sent by the ONU on the second uplink channel, and receives the first uplink data that is sent by the ONU on the first uplink channel.
本步骤中,如图4C所示,OLT先接收ONU在第二上行通道上发送的第二上行数据并记录第二接收时间戳tr2,然后接收ONU在第一上行通道上发送的携带有发送时间差Δtt的第一上行数据并记录第一接收时间戳tr1In this step, as shown in FIG. 4C, the OLT first receives the second uplink data sent by the ONU on the second uplink channel and records the second receiving timestamp t r2 , and then receives the carried and sent by the ONU on the first uplink channel. The first uplink data of the time difference Δt t and records the first reception time stamp t r1 .
S403、OLT根据第一接收时间戳与第二接收时间戳的差值,确定第一上行数据与第二上行数据之间的接收时间差。S403. The OLT determines, according to a difference between the first receiving timestamp and the second receiving timestamp, a receiving time difference between the first uplink data and the second uplink data.
本步骤中,OLT根据第一接收时间戳tr1与第二接收时间戳tr2的差值,确定第一上行数据与第二上行数据之间的接收时间差Δtr,即Δtr=tr1-tr2In this step, the OLT determines, according to the difference between the first receiving timestamp t r1 and the second receiving timestamp t r2 , a reception time difference Δt r between the first uplink data and the second uplink data, that is, Δt r =t r1 - t r2 .
S404、OLT根据第一上行数据,确定发送时间差。S404. The OLT determines a transmission time difference according to the first uplink data.
本步骤中,OLT根据第一上行数据(携带有发送时间差Δtt),直接确定发送时间差ΔttIn this step, the OLT directly determines the transmission time difference Δt t according to the first uplink data (carrying the transmission time difference Δt t ).
可选地,若发送时间差Δtr包括:第一时钟周期计数与第二时钟周期计数的时钟周期计数差值Δc,OLT根据时钟周期计数差值Δc与ONU的工作时钟clk的商,确定发送时间差Δtt,即Δtt=Δc/clk,其中,clk等于390.625MHz。Optionally, if the transmission time difference Δt r includes: the first clock cycle count and the clock cycle count difference Δc of the second clock cycle count, the OLT determines the transmission time difference according to the quotient of the clock cycle difference Δc and the ONU operating clock clk. Δt t , ie Δt t = Δc/clk, where clk is equal to 390.625 MHz.
当然,当发送时间差Δtt还可以包括其它用于指示第一上行数据与第二上行数据的发送时间差的时间指示信息时,OLT可以根据公式(Δtt=tt1-tt2)的其它形式公式确定Δtt,本申请实施例中对此并不作限制。Of course, when the transmission time difference Δt t can also include other time indication information indicating the transmission time difference between the first uplink data and the second uplink data, the OLT can formulate according to other formulas of the formula (Δt t =t t1 -t t2 ) The Δt t is determined, which is not limited in the embodiment of the present application.
S405、OLT根据接收时间差与发送时间差的差值,确定第一上行通道与第二上行通道之间的传输时延差。S405. The OLT determines, according to a difference between the received time difference and the sending time difference, a transmission delay difference between the first uplink channel and the second uplink channel.
本步骤中,OLT根据接收时间差Δtr与发送时间差Δtt的差值,确定第一上 行通道与第二上行通道之间的传输时延差Δt,即Δt=Δtr-ΔttIn this step, the OLT determines the transmission delay difference Δt between the first uplink channel and the second uplink channel according to the difference between the reception time difference Δt r and the transmission time difference Δt t , that is, Δt=Δt r -Δt t .
本实施例中,通过ONU先在第二上行通道上向OLT发送第二上行数据,然后在第一上行通道上向OLT发送携带有发送时间差(用于指示第一上行数据与第二上行数据准确的发送时间差)的第一上行数据;进一步地,OLT通过根据第一接收时间戳(用于指示OLT在第一上行通道上接收到ONU发送的第一上行数据的接收时间)与第二接收时间戳(用于指示OLT在第二上行通道上接收到ONU发送的第二上行数据的接收时间)的差值,确定接收时间差,以及根据第一上行数据(携带有准确的发送时间差)确定出准确的发送时间差;进一步地,OLT根据接收时间差与发送时间差的差值,确定第一上行通道与第二上行通道之间的传输时延差。可见,本实施例提供的上行通道间的传输时延差检测方法并不依赖于周期性地控制报文,可以实时地根据在不同上行通道上接收到的上行数据的接收时间差以及准确的发送时间差,直接测量不同上行通道之间的传输时延差,因此,进一步提高了不同上行通道之间的传输时延差的测量精度。In this embodiment, the ONU first sends the second uplink data to the OLT on the second uplink channel, and then sends the transmission time difference to the OLT on the first uplink channel (for indicating that the first uplink data and the second uplink data are accurate. The first uplink data of the transmission time difference; further, the OLT passes the second reception time according to the first reception time stamp (instructing the OLT to receive the reception time of the first uplink data sent by the ONU on the first uplink channel) a difference between the stamping (instructing the OLT to receive the receiving time of the second uplink data sent by the ONU on the second uplink channel), determining the receiving time difference, and determining the accuracy according to the first uplink data (carrying the accurate sending time difference) The transmission time difference is further; further, the OLT determines a transmission delay difference between the first uplink channel and the second uplink channel according to the difference between the reception time difference and the transmission time difference. It can be seen that the method for detecting the transmission delay difference between the uplink channels provided in this embodiment does not depend on the periodic control of the packet, and can accurately receive the time difference of the uplink data received on different uplink channels and the accurate transmission time difference in real time. The direct measurement of the transmission delay difference between different uplink channels is performed, thereby further improving the measurement accuracy of the transmission delay difference between different uplink channels.
图5A为本申请提供的上行通道间的传输时延差检测方法实施例四的流程图,图5B为本申请提供的数据传输示意图四,图5C为本申请提供的数据传输示意图五。如图5A所示,本实施例的方法可以包括:5A is a flowchart of Embodiment 4 of a method for detecting a transmission delay difference between uplink channels provided by the present application. FIG. 5B is a schematic diagram 4 of data transmission provided by the present application, and FIG. 5C is a schematic diagram 5 of data transmission provided by the present application. As shown in FIG. 5A, the method in this embodiment may include:
S501、ONU根据OLT的授权指示在第一上行通道上向OLT发送第一上行数据,以及在第二上行通道上向OLT发送第二上行数据。S501. The ONU sends the first uplink data to the OLT on the first uplink channel according to the authorization indication of the OLT, and sends the second uplink data to the OLT on the second uplink channel.
本实施例中,OLT预先为ONU分配在不同上行通道上发送上行数据的时间戳,以便ONU根据分配的时间戳在相应上行通道上发送上行数据。可选地,OLT预先向ONU发送授权指示,授权指示中包括:OLT为ONU分配的在第一上行通道上发送第一上行数据的第三时间戳tt3,以及OLT为ONU分配的在第二上行通道上发送第二上行数据的第四时间戳tt4In this embodiment, the OLT allocates timestamps for transmitting uplink data on different uplink channels for the ONU, so that the ONU sends uplink data on the corresponding uplink channel according to the allocated timestamp. Optionally, the OLT sends an authorization indication to the ONU in advance, where the authorization indication includes: a third timestamp t t3 allocated by the OLT to the ONU on the first uplink channel, and a second time allocated by the OLT to the ONU. Sending a fourth timestamp t t4 of the second uplink data on the uplink channel.
本步骤中,如图5B所示,ONU根据第三时间戳tt3在第一上行通道上发送第一上行数据,以及根据第四时间戳tt4在第二上行通道上发送第二上行数据。In this step, as shown in FIG. 5B, the ONU sends the first uplink data on the first uplink channel according to the third timestamp t t3 , and sends the second uplink data on the second uplink channel according to the fourth time stamp t t4 .
S502、OLT接收ONU在第一上行通道上发送的第一上行数据,以及接收ONU在第二上行通道上发送的第二上行数据。 S502. The OLT receives the first uplink data that is sent by the ONU on the first uplink channel, and receives the second uplink data that is sent by the ONU on the second uplink channel.
本步骤中,如图4C所示,OLT接收ONU在第一上行通道上发送的第一上行数据并记录第一接收时间戳tr1,以及接收ONU在第二上行通道上发送的第二上行数据并记录第二接收时间戳tr2In this step, as shown in FIG. 4C, the OLT receives the first uplink data sent by the ONU on the first uplink channel, records the first receiving timestamp t r1 , and receives the second uplink data sent by the ONU on the second uplink channel. And record the second receiving timestamp t r2 .
S503、OLT根据第一接收时间戳与第二接收时间戳的差值,确定第一上行数据与第二上行数据之间的接收时间差。S503. The OLT determines, according to a difference between the first receiving timestamp and the second receiving timestamp, a receiving time difference between the first uplink data and the second uplink data.
本步骤中,OLT根据第一接收时间戳tr1与第二接收时间戳tr2的差值,确定第一上行数据与第二上行数据之间的接收时间差Δtr,即Δtr=tr1-tr2In this step, the OLT determines, according to the difference between the first receiving timestamp t r1 and the second receiving timestamp t r2 , a reception time difference Δt r between the first uplink data and the second uplink data, that is, Δt r =t r1 - t r2 .
S504、OLT根据第三发送时间戳以及第四发送时间戳,确定发送时间差。S504. The OLT determines a sending time difference according to the third sending timestamp and the fourth sending timestamp.
本步骤中,OLT根据预先为ONU分配的第三发送时间戳tt3与第四发送时间戳tt4的差值,确定发送时间差Δtt,即Δtt=tt3-tt4In this step, the OLT determines the transmission time difference Δt t , that is, Δt t =t t3 -t t4 according to the difference between the third transmission time stamp t t3 and the fourth transmission time stamp t t4 allocated in advance for the ONU.
S505、OLT根据接收时间差与发送时间差的差值,确定第一上行通道与第二上行通道之间的传输时延差。S505. The OLT determines, according to a difference between the received time difference and the sending time difference, a transmission delay difference between the first uplink channel and the second uplink channel.
本步骤中,OLT根据接收时间差Δtr与发送时间差Δtt的差值,确定第一上行通道与第二上行通道之间的传输时延差Δt,即Δt=Δtr-ΔttIn this step, the OLT determines the transmission delay difference Δt between the first uplink channel and the second uplink channel according to the difference between the reception time difference Δt r and the transmission time difference Δt t , that is, Δt=Δt r −Δt t .
本实施例中,通过ONU根据OLT分配的第三时间戳以及第四时间戳,分别在第一上行通道上向OLT发送第一上行数据,以及在第二上行通道上向OLT发送第二上行数据;进一步地,OLT通过根据第一接收时间戳(用于指示OLT在第一上行通道上接收到ONU发送的第一上行数据的接收时间)与第二接收时间戳(用于指示OLT在第二上行通道上接收到ONU发送的第二上行数据的接收时间)的差值,确定接收时间差,以及根据第三发送时间戳以及第四发送时间戳确定发送时间差;进一步地,OLT根据接收时间差与发送时间差的差值,确定第一上行通道与第二上行通道之间的传输时延差。可见,本实施例提供的上行通道间的传输时延差检测方法并不依赖于周期性地控制报文,可以实时地根据在不同上行通道上接收到的上行数据的接收时间差以及发送时间差,直接测量不同上行通道之间的传输时延差,因此,提高了不同上行通道之间的传输时延差的测量精度。In this embodiment, the ONU sends the first uplink data to the OLT on the first uplink channel and the second uplink data to the OLT on the second uplink channel, according to the third timestamp and the fourth timestamp allocated by the OLT. Further, the OLT passes the second receiving timestamp according to the first receiving timestamp (instructing the OLT to receive the receiving time of the first uplink data sent by the ONU on the first uplink channel) (for indicating that the OLT is in the second Receiving, by the uplink channel, a difference of the receiving time of the second uplink data sent by the ONU, determining a receiving time difference, and determining a sending time difference according to the third sending timestamp and the fourth sending timestamp; further, the OLT is configured according to the receiving time difference and sending The difference of the time differences determines the transmission delay difference between the first uplink channel and the second uplink channel. It can be seen that the method for detecting the transmission delay difference between the uplink channels provided in this embodiment does not depend on the periodic control of the packet, and can directly receive the time difference of the uplink data received on different uplink channels and the transmission time difference in real time. The transmission delay difference between different uplink channels is measured, and therefore, the measurement accuracy of the transmission delay difference between different uplink channels is improved.
在本申请上述各实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。 In the above embodiments of the present application, the size of the sequence numbers of the foregoing processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not be implemented in the implementation process of the embodiment of the present application. Any restrictions.
图6为本申请提供的OLT实施例一的结构示意图。如图6所示,本实施例提供的OLT 60,包括:FIG. 6 is a schematic structural diagram of Embodiment 1 of an OLT provided by the present application. As shown in FIG. 6, the OLT 60 provided in this embodiment includes:
第一确定模块601,用于根据第一接收时间戳与第二接收时间戳的差值,确定接收时间差;其中,第一接收时间戳用于指示OLT在第一上行通道上接收到光网络单元ONU发送的第一上行数据的接收时间,第二接收时间戳用于指示OLT在第二上行通道上接收到ONU发送的第二上行数据的接收时间;The first determining module 601 is configured to determine, according to a difference between the first receiving timestamp and the second receiving timestamp, a receiving time difference, where the first receiving timestamp is used to indicate that the OLT receives the optical network unit on the first uplink channel. The receiving time of the first uplink data sent by the ONU, where the second receiving timestamp is used to indicate that the OLT receives the receiving time of the second uplink data sent by the ONU on the second uplink channel;
第二确定模块602,用于确定第一上行数据与第二上行数据的发送时间差;The second determining module 602 is configured to determine a sending time difference between the first uplink data and the second uplink data.
第三确定模块603,用于根据接收时间差与发送时间差的差值,确定第一上行通道与第二上行通道之间的传输时延差。The third determining module 603 is configured to determine a transmission delay difference between the first uplink channel and the second uplink channel according to the difference between the received time difference and the sending time difference.
可选地,第二确定模块602,包括:Optionally, the second determining module 602 includes:
第一确定单元,用于根据第一上行数据中携带的第一发送时间戳与第二上行数据中携带的第二发送时间戳的差值,确定发送时间差;a first determining unit, configured to determine, according to a difference between a first sending timestamp carried in the first uplink data and a second sending timestamp carried in the second uplink data, a sending time difference;
其中,第一发送时间戳用于指示ONU在第一上行通道上发送第一上行数据的发送时间;第二发送时间戳用于指示ONU在第二上行通道上发送第二上行数据的发送时间。The first sending timestamp is used to indicate that the ONU sends the first uplink data transmission time on the first uplink channel, and the second sending timestamp is used to indicate that the ONU sends the second uplink data transmission time on the second uplink channel.
可选地,第二确定模块602,包括:Optionally, the second determining module 602 includes:
第二确定单元,用于根据第一上行数据,确定发送时间差;其中,第一上行数据中携带ONU确定的第一上行数据与第二上行数据的发送时间差,第一上行数据的发送时间晚于第二上行数据的发送时间。a second determining unit, configured to determine, according to the first uplink data, a sending time difference, where the first uplink data carries a sending time difference between the first uplink data and the second uplink data determined by the ONU, and the sending time of the first uplink data is later than The transmission time of the second uplink data.
可选地,第二确定模块602,包括:Optionally, the second determining module 602 includes:
第三确定单元,用于根据第三发送时间戳以及以及第四发送时间戳,确定发送时间差;a third determining unit, configured to determine a sending time difference according to the third sending timestamp and the fourth sending timestamp;
其中,第三发送时间戳为:OLT为ONU分配的在第一上行通道上发送第一上行数据的时间戳,第四发送时间戳为:OLT为ONU分配的在第二上行通道上发送第二上行数据的时间戳。The third sending timestamp is: a timestamp that the OLT sends to the ONU to send the first uplink data on the first uplink channel, and the fourth sending timestamp is: the OLT allocates the second uplink channel on the second uplink channel. The timestamp of the upstream data.
可选地,第一发送时间戳包括:第一时钟周期计数;和/或,Optionally, the first sending timestamp includes: a first clock cycle count; and/or,
第二发送时间戳包括:第二时钟周期计数;The second sending timestamp includes: a second clock cycle count;
其中,第一时钟周期计数为ONU在第一上行通道上发送第一上行数据对应的时钟周期个数,第二时钟周期计数为ONU在第二上行通道上发送第二上 行数据对应的时钟周期个数。The first clock cycle count is the number of clock cycles corresponding to the first uplink data sent by the ONU on the first uplink channel, and the second clock cycle count is the ONU sent on the second uplink channel. The number of clock cycles corresponding to the row data.
可选地,第一确定单元具体用于:根据第一时钟周期计数与第二时钟周期计数的差值,与ONU的工作时钟的商,确定发送时间差。Optionally, the first determining unit is specifically configured to: determine a sending time difference according to a difference between the first clock cycle count and the second clock cycle count, and a quotient of the ONU operating clock.
本实施例提供的OLT,可以用于执行本申请上述上行通道间的传输时延差检测方法任意实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The OLT provided by this embodiment may be used to implement the technical solution of any embodiment of the foregoing method for detecting the delay of the transmission delay between the uplink channels in the present application. The implementation principle and technical effects are similar, and details are not described herein again.
图7为本申请提供的OLT实施例二的结构示意图。如图7所示,本实施例提供的OLT 70可以包括:处理器701、存储器702和收发器703;存储器702和收发器703都与处理器701相连。其中,收发器703用于收发数据,存储器702用于存储执行指令,处理器701用于执行存储器702中的执行指令使得OLT 70用以执行以下操作:FIG. 7 is a schematic structural diagram of Embodiment 2 of an OLT provided by the present application. As shown in FIG. 7, the OLT 70 provided in this embodiment may include: a processor 701, a memory 702, and a transceiver 703; both the memory 702 and the transceiver 703 are connected to the processor 701. The transceiver 703 is configured to send and receive data, the memory 702 is configured to store execution instructions, and the processor 701 is configured to execute execution instructions in the memory 702 to enable the OLT 70 to perform the following operations:
根据第一接收时间戳与第二接收时间戳的差值,确定接收时间差;其中,第一接收时间戳用于指示OLT在第一上行通道上接收到光网络单元ONU发送的第一上行数据的接收时间,第二接收时间戳用于指示OLT在第二上行通道上接收到ONU发送的第二上行数据的接收时间;Determining, according to a difference between the first receiving timestamp and the second receiving timestamp, a receiving time difference, where the first receiving timestamp is used to indicate that the OLT receives the first uplink data sent by the optical network unit ONU on the first uplink channel. Receiving time, the second receiving timestamp is used to indicate that the OLT receives the receiving time of the second uplink data sent by the ONU on the second uplink channel;
确定第一上行数据与第二上行数据的发送时间差;Determining a transmission time difference between the first uplink data and the second uplink data;
根据接收时间差与发送时间差的差值,确定第一上行通道与第二上行通道之间的传输时延差。And determining a transmission delay difference between the first uplink channel and the second uplink channel according to the difference between the received time difference and the sending time difference.
可选地,确定第一上行数据与第二上行数据的发送时间差,包括:Optionally, determining a sending time difference between the first uplink data and the second uplink data, including:
根据第一上行数据中携带的第一发送时间戳与第二上行数据中携带的第二发送时间戳的差值,确定发送时间差;Determining a transmission time difference according to a difference between a first sending timestamp carried in the first uplink data and a second sending timestamp carried in the second uplink data;
其中,第一发送时间戳用于指示ONU在第一上行通道上发送第一上行数据的发送时间;第二发送时间戳用于指示ONU在第二上行通道上发送第二上行数据的发送时间。The first sending timestamp is used to indicate that the ONU sends the first uplink data transmission time on the first uplink channel, and the second sending timestamp is used to indicate that the ONU sends the second uplink data transmission time on the second uplink channel.
可选地,确定第一上行数据与第二上行数据的发送时间差,包括:Optionally, determining a sending time difference between the first uplink data and the second uplink data, including:
根据第一上行数据,确定发送时间差;其中,第一上行数据中携带ONU确定的第一上行数据与第二上行数据的发送时间差,第一上行数据的发送时间晚于第二上行数据的发送时间。Determining a transmission time difference according to the first uplink data, where the first uplink data carries a transmission time difference between the first uplink data and the second uplink data determined by the ONU, and the sending time of the first uplink data is later than the sending time of the second uplink data. .
可选地,确定第一上行数据与第二上行数据的发送时间差,包括: Optionally, determining a sending time difference between the first uplink data and the second uplink data, including:
根据第三发送时间戳以及以及第四发送时间戳,确定发送时间差;Determining a transmission time difference according to the third sending timestamp and the fourth sending timestamp;
其中,第三发送时间戳为:OLT为ONU分配的在第一上行通道上发送第一上行数据的时间戳,第四发送时间戳为:OLT为ONU分配的在第二上行通道上发送第二上行数据的时间戳。The third sending timestamp is: a timestamp that the OLT sends to the ONU to send the first uplink data on the first uplink channel, and the fourth sending timestamp is: the OLT allocates the second uplink channel on the second uplink channel. The timestamp of the upstream data.
可选地,第一发送时间戳包括:第一时钟周期计数;和/或,Optionally, the first sending timestamp includes: a first clock cycle count; and/or,
第二发送时间戳包括:第二时钟周期计数;The second sending timestamp includes: a second clock cycle count;
其中,第一时钟周期计数为ONU在第一上行通道上发送第一上行数据对应的时钟周期个数,第二时钟周期计数为ONU在第二上行通道上发送第二上行数据对应的时钟周期个数。The first clock cycle count is the number of clock cycles corresponding to the first uplink data sent by the ONU on the first uplink channel, and the second clock cycle count is the clock cycle corresponding to the second uplink data sent by the ONU on the second uplink channel. number.
可选地,根据第一上行数据中携带的第一发送时间戳与第二上行数据中携带的第二发送时间戳的差值,确定发送时间差,包括:Optionally, the sending time difference is determined according to a difference between the first sending timestamp carried in the first uplink data and the second sending timestamp carried in the second uplink data, including:
根据第一时钟周期计数与第二时钟周期计数的差值,与ONU的工作时钟的商,确定发送时间差。The transmission time difference is determined according to the difference between the first clock cycle count and the second clock cycle count and the operating clock of the ONU.
本实施例提供的OLT,可以用于执行本申请上述上行通道间的传输时延差检测方法任意实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The OLT provided by this embodiment may be used to implement the technical solution of any embodiment of the foregoing method for detecting the delay of the transmission delay between the uplink channels in the present application. The implementation principle and technical effects are similar, and details are not described herein again.
图8所示为本申请提供的上行通道间的传输时延差检测系统实施例的结构示意图。如图8所示,本实施例提供的上行通道间的传输时延差检测系统80,包括:ONU 801以及OLT 802。其中,OLT 802可以采用上述OLT实施例一及实施例二的结构,其对应地,可以执行上述上行通道间的传输时延差检测方法任意实施例中的技术方案,其实现原理和技术效果类似,此处不再赘述。FIG. 8 is a schematic structural diagram of an embodiment of a transmission delay difference detecting system between uplink channels provided by the present application. As shown in FIG. 8, the transmission delay difference detecting system 80 between the uplink channels provided in this embodiment includes: an ONU 801 and an OLT 802. The OLT 802 can adopt the foregoing OLT embodiment 1 and the structure of the second embodiment, and correspondingly, the technical solution in the foregoing method for detecting the delay difference between the uplink channels can be executed, and the implementation principle and the technical effect are similar. , will not repeat them here.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。 In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of cells is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or integrated. Go to another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例方法的部分步骤。The above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium. The above software functional unit is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform part of the steps of the method of various embodiments of the present application. .
本领域技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of each functional module described above is exemplified. In practical applications, the above function assignment can be completed by different functional modules as needed, that is, the device is installed. The internal structure is divided into different functional modules to perform all or part of the functions described above. For the specific working process of the device described above, refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
本领域普通技术人员可以理解:本文中涉及的第一、第二等各种数字编号仅为描述方便进行的区分,并不用来限制本申请实施例的范围。It will be understood by those skilled in the art that the various numbers of the first, second, etc., which are referred to herein, are merely for convenience of description and are not intended to limit the scope of the embodiments of the present application.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:只读存储记忆体(Read-Only Memory,简称为:ROM)、随机存储记忆体(Random Access Memory,简称为:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。 A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to the program instructions. The foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing storage medium includes: a read-only memory (Read-Only Memory, ROM for short), a random access memory (RAM), a disk, or a disk. A variety of media such as optical discs that can store program code.

Claims (13)

  1. 一种上行通道间的传输时延差检测方法,其特征在于,包括:A method for detecting a transmission delay difference between uplink channels, characterized in that:
    光线路终端OLT根据第一接收时间戳与第二接收时间戳的差值,确定接收时间差;其中,所述第一接收时间戳用于指示所述OLT在第一上行通道上接收到光网络单元ONU发送的第一上行数据的接收时间,所述第二接收时间戳用于指示所述OLT在第二上行通道上接收到所述ONU发送的第二上行数据的接收时间;The optical line terminal OLT determines the receiving time difference according to the difference between the first receiving timestamp and the second receiving timestamp. The first receiving timestamp is used to indicate that the OLT receives the optical network unit on the first uplink channel. a receiving time of the first uplink data sent by the ONU, where the second receiving timestamp is used to indicate that the OLT receives the receiving time of the second uplink data sent by the ONU on the second uplink channel;
    所述OLT确定所述第一上行数据与所述第二上行数据的发送时间差;Determining, by the OLT, a sending time difference between the first uplink data and the second uplink data;
    所述OLT根据所述接收时间差与所述发送时间差的差值,确定所述第一上行通道与所述第二上行通道之间的传输时延差。The OLT determines a transmission delay difference between the first uplink channel and the second uplink channel according to a difference between the receiving time difference and the sending time difference.
  2. 根据权利要求1所述的方法,其特征在于,所述OLT确定所述第一上行数据与所述第二上行数据的发送时间差,包括:The method according to claim 1, wherein the OLT determines a transmission time difference between the first uplink data and the second uplink data, including:
    所述OLT根据所述第一上行数据中携带的第一发送时间戳与所述第二上行数据中携带的第二发送时间戳的差值,确定所述发送时间差;Determining, by the OLT, the sending time difference according to a difference between a first sending timestamp carried in the first uplink data and a second sending timestamp carried in the second uplink data;
    其中,所述第一发送时间戳用于指示所述ONU在所述第一上行通道上发送所述第一上行数据的发送时间;所述第二发送时间戳用于指示所述ONU在所述第二上行通道上发送所述第二上行数据的发送时间。The first sending timestamp is used to indicate that the ONU sends the sending time of the first uplink data on the first uplink channel, and the second sending timestamp is used to indicate that the ONU is in the Sending time of the second uplink data on the second uplink channel.
  3. 根据权利要求1所述的方法,其特征在于,所述OLT确定所述第一上行数据与所述第二上行数据的发送时间差,包括:The method according to claim 1, wherein the OLT determines a transmission time difference between the first uplink data and the second uplink data, including:
    所述OLT根据所述第一上行数据,确定所述发送时间差;其中,所述第一上行数据中携带所述ONU确定的所述第一上行数据与所述第二上行数据的发送时间差,所述第一上行数据的发送时间晚于所述第二上行数据的发送时间。Determining, by the OLT, the sending time difference according to the first uplink data, where the first uplink data carries a sending time difference between the first uplink data and the second uplink data determined by the ONU, where The sending time of the first uplink data is later than the sending time of the second uplink data.
  4. 根据权利要求1所述的方法,其特征在于,所述OLT确定所述第一上行数据与所述第二上行数据的发送时间差,包括:The method according to claim 1, wherein the OLT determines a transmission time difference between the first uplink data and the second uplink data, including:
    所述OLT根据第三发送时间戳以及以及第四发送时间戳,确定所述发送时间差;Determining, by the OLT, the sending time difference according to the third sending timestamp and the fourth sending timestamp;
    其中,所述第三发送时间戳为:所述OLT为所述ONU分配的在所述第一上行通道上发送所述第一上行数据的时间戳,所述第四发送时间戳为:所述OLT为所述ONU分配的在第二上行通道上发送所述第二上行数据的时间 戳。The third sending timestamp is: a timestamp that the OLT sends to the ONU to send the first uplink data on the first uplink channel, and the fourth sending timestamp is: The time that the OLT allocates the second uplink data on the second uplink channel allocated by the OLT to the ONU. stamp.
  5. 根据权利要求2所述的方法,其特征在于,所述第一发送时间戳包括:第一时钟周期计数;和/或,The method according to claim 2, wherein the first transmission time stamp comprises: a first clock cycle count; and/or,
    所述第二发送时间戳包括:第二时钟周期计数;The second sending timestamp includes: a second clock cycle count;
    其中,所述第一时钟周期计数为所述ONU在所述第一上行通道上发送所述第一上行数据对应的时钟周期个数,所述第二时钟周期计数为所述ONU在所述第二上行通道上发送所述第二上行数据对应的时钟周期个数。The first clock cycle count is the number of clock cycles corresponding to the first uplink data sent by the ONU on the first uplink channel, and the second clock cycle count is the ONU in the first The number of clock cycles corresponding to the second uplink data is sent on the two uplink channels.
  6. 根据权利要求5所述的方法,其特征在于,所述OLT根据所述第一上行数据中携带的第一发送时间戳与所述第二上行数据中携带的第二发送时间戳的差值,确定所述发送时间差,包括:The method according to claim 5, wherein the OLT is different according to a difference between a first sending timestamp carried in the first uplink data and a second sending timestamp carried in the second uplink data, Determining the difference in transmission time, including:
    所述OLT根据所述第一时钟周期计数与所述第二时钟周期计数的差值,与所述ONU的工作时钟的商,确定所述发送时间差。The OLT determines the transmission time difference according to a difference between the first clock cycle count and the second clock cycle count, and a quotient of the ONU operating clock.
  7. 一种光线路终端OLT,其特征在于,包括:An optical line terminal OLT, comprising:
    第一确定模块,用于根据第一接收时间戳与第二接收时间戳的差值,确定接收时间差;其中,所述第一接收时间戳用于指示所述OLT在第一上行通道上接收到光网络单元ONU发送的第一上行数据的接收时间,所述第二接收时间戳用于指示所述OLT在第二上行通道上接收到所述ONU发送的第二上行数据的接收时间;a first determining module, configured to determine a receiving time difference according to a difference between the first receiving timestamp and the second receiving timestamp, where the first receiving timestamp is used to indicate that the OLT receives the first uplink channel a receiving time of the first uplink data sent by the ONU by the optical network unit, the second receiving timestamp is used to indicate that the OLT receives the receiving time of the second uplink data sent by the ONU on the second uplink channel;
    第二确定模块,用于确定所述第一上行数据与所述第二上行数据的发送时间差;a second determining module, configured to determine a sending time difference between the first uplink data and the second uplink data;
    第三确定模块,用于根据所述接收时间差与所述发送时间差的差值,确定所述第一上行通道与所述第二上行通道之间的传输时延差。The third determining module is configured to determine a transmission delay difference between the first uplink channel and the second uplink channel according to the difference between the receiving time difference and the sending time difference.
  8. 根据权利要求7所述的OLT,其特征在于,所述第二确定模块,包括:The OLT according to claim 7, wherein the second determining module comprises:
    第一确定单元,用于根据所述第一上行数据中携带的第一发送时间戳与所述第二上行数据中携带的第二发送时间戳的差值,确定所述发送时间差;a first determining unit, configured to determine, according to a difference between a first sending timestamp carried in the first uplink data and a second sending timestamp carried in the second uplink data, the sending time difference;
    其中,所述第一发送时间戳用于指示所述ONU在所述第一上行通道上发送所述第一上行数据的发送时间;所述第二发送时间戳用于指示所述ONU在所述第二上行通道上发送所述第二上行数据的发送时间。The first sending timestamp is used to indicate that the ONU sends the sending time of the first uplink data on the first uplink channel, and the second sending timestamp is used to indicate that the ONU is in the Sending time of the second uplink data on the second uplink channel.
  9. 根据权利要求7所述的OLT,其特征在于,所述第二确定模块,包括:The OLT according to claim 7, wherein the second determining module comprises:
    第二确定单元,用于根据所述第一上行数据,确定所述发送时间差;其 中,所述第一上行数据中携带所述ONU确定的所述第一上行数据与所述第二上行数据的发送时间差,所述第一上行数据的发送时间晚于所述第二上行数据的发送时间。a second determining unit, configured to determine, according to the first uplink data, the sending time difference; The first uplink data carries a difference in transmission time between the first uplink data and the second uplink data determined by the ONU, and the sending time of the first uplink data is later than the second uplink data. Send time.
  10. 根据权利要求7所述的OLT,其特征在于,所述第二确定模块,包括:The OLT according to claim 7, wherein the second determining module comprises:
    第三确定单元,用于根据第三发送时间戳以及以及第四发送时间戳,确定所述发送时间差;a third determining unit, configured to determine the sending time difference according to the third sending timestamp and the fourth sending timestamp;
    其中,所述第三发送时间戳为:所述OLT为所述ONU分配的在所述第一上行通道上发送所述第一上行数据的时间戳,所述第四发送时间戳为:所述OLT为所述ONU分配的在第二上行通道上发送所述第二上行数据的时间戳。The third sending timestamp is: a timestamp that the OLT sends to the ONU to send the first uplink data on the first uplink channel, and the fourth sending timestamp is: a timestamp that the OLT sends to the ONU to send the second uplink data on the second uplink channel.
  11. 根据权利要求8所述的OLT,其特征在于,所述第一发送时间戳包括:第一时钟周期计数;和/或,The OLT according to claim 8, wherein the first transmission time stamp comprises: a first clock cycle count; and/or,
    所述第二发送时间戳包括:第二时钟周期计数;The second sending timestamp includes: a second clock cycle count;
    其中,所述第一时钟周期计数为所述ONU在所述第一上行通道上发送所述第一上行数据对应的时钟周期个数,所述第二时钟周期计数为所述ONU在所述第二上行通道上发送所述第二上行数据对应的时钟周期个数。The first clock cycle count is the number of clock cycles corresponding to the first uplink data sent by the ONU on the first uplink channel, and the second clock cycle count is the ONU in the first The number of clock cycles corresponding to the second uplink data is sent on the two uplink channels.
  12. 根据权利要求11所述的OLT,其特征在于,所述第一确定单元具体用于:根据所述第一时钟周期计数与所述第二时钟周期计数的差值,与所述ONU的工作时钟的商,确定所述发送时间差。The OLT according to claim 11, wherein the first determining unit is configured to: calculate a difference between the first clock cycle and the second clock cycle, and an operating clock of the ONU The quotient determines the difference in transmission time.
  13. 一种上行通道间的传输时延差检测系统,其特征在于,包括:A transmission delay difference detection system between uplink channels, comprising:
    光网络单元ONU以及如权利要求7~12任一项所述的光线路终端OLT。 An optical network unit ONU and an optical line terminal OLT according to any one of claims 7 to 12.
PCT/CN2016/112476 2016-12-27 2016-12-27 Detection method for transmission delay difference between uplink channels, and olt and system WO2018119705A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/112476 WO2018119705A1 (en) 2016-12-27 2016-12-27 Detection method for transmission delay difference between uplink channels, and olt and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/112476 WO2018119705A1 (en) 2016-12-27 2016-12-27 Detection method for transmission delay difference between uplink channels, and olt and system

Publications (1)

Publication Number Publication Date
WO2018119705A1 true WO2018119705A1 (en) 2018-07-05

Family

ID=62706674

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/112476 WO2018119705A1 (en) 2016-12-27 2016-12-27 Detection method for transmission delay difference between uplink channels, and olt and system

Country Status (1)

Country Link
WO (1) WO2018119705A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877633A (en) * 2009-04-28 2010-11-03 华为技术有限公司 Signal synchronizing method and system, signal receiving device and signal sending device
CN101989906A (en) * 2009-07-30 2011-03-23 华为技术有限公司 Message synchronizing method, device and system
CN102291178A (en) * 2011-09-08 2011-12-21 烽火通信科技股份有限公司 Method and device for measuring the asymmetrical time delay of optical fiber
CN103595588A (en) * 2013-11-26 2014-02-19 北京奥普维尔科技有限公司 Method for accurately measuring asynchronous Ethernet circuit time delay
US20160170441A1 (en) * 2014-12-15 2016-06-16 Cisco Technology, Inc. Feed-forward time transfer mechanism for time synchronization

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877633A (en) * 2009-04-28 2010-11-03 华为技术有限公司 Signal synchronizing method and system, signal receiving device and signal sending device
CN101989906A (en) * 2009-07-30 2011-03-23 华为技术有限公司 Message synchronizing method, device and system
CN102291178A (en) * 2011-09-08 2011-12-21 烽火通信科技股份有限公司 Method and device for measuring the asymmetrical time delay of optical fiber
CN103595588A (en) * 2013-11-26 2014-02-19 北京奥普维尔科技有限公司 Method for accurately measuring asynchronous Ethernet circuit time delay
US20160170441A1 (en) * 2014-12-15 2016-06-16 Cisco Technology, Inc. Feed-forward time transfer mechanism for time synchronization

Similar Documents

Publication Publication Date Title
US8451867B2 (en) Network time protocol precision timestamping service
CN107508719B (en) Method and device for measuring network time delay and network node
KR101481396B1 (en) Method for synchronizing master and slave clocks of packet-switched network with aggregated connections between nodes, and associated synchronization devices
EP2434673B1 (en) Network synchronization method and apparatus for performing time synchronization between nodes
CN101272290B (en) Measuring method, measuring apparatus for route congestion state in IP network
CN103929293B (en) Asymmetrically-delayed time synchronization method and system
WO2014173267A1 (en) Timestamp generating method, device and system
US20200195363A1 (en) Packet Processing Method and Network Device
JP2010541298A (en) Method and system for time synchronization in sensor networks
WO2011124113A1 (en) Method and device for obtaining asymmetric delay time
EP3082281B1 (en) Method for measuring transmission delay of optical transport network device and source otn device
WO2021057756A1 (en) Delay measurement method, system and storage medium
EP2599247B1 (en) Method and device for processing data on a connection between two nodes of a communication network
WO2016058347A1 (en) Method and apparatus for implementing time and clock synchronization
EP2312775B1 (en) Physical time-stamping
CN115913442A (en) Communication method and optical module
WO2018119705A1 (en) Detection method for transmission delay difference between uplink channels, and olt and system
WO2020085022A1 (en) Communication device and ranging method
US11483122B2 (en) Time transfer using passive tapping
WO2020062225A1 (en) Mac device and time point estimation method
WO2020132834A1 (en) Method and device for stamping processing
JP5922047B2 (en) Delay measurement method and delay measurement system
JP6578258B2 (en) Optical termination device and propagation delay time measuring method
WO2023231426A1 (en) Delay measurement method and apparatus, storage medium and program product
WO2022174770A1 (en) Delay measurement method and device

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

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

Country of ref document: EP

Kind code of ref document: A1