WO2022111045A1 - Method for determining transmission delay of passive optical network - Google Patents

Method for determining transmission delay of passive optical network Download PDF

Info

Publication number
WO2022111045A1
WO2022111045A1 PCT/CN2021/121706 CN2021121706W WO2022111045A1 WO 2022111045 A1 WO2022111045 A1 WO 2022111045A1 CN 2021121706 W CN2021121706 W CN 2021121706W WO 2022111045 A1 WO2022111045 A1 WO 2022111045A1
Authority
WO
WIPO (PCT)
Prior art keywords
module
time
olt
onu
pon
Prior art date
Application number
PCT/CN2021/121706
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 华为技术有限公司
Publication of WO2022111045A1 publication Critical patent/WO2022111045A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • 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
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/079Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
    • 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
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/079Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
    • H04B10/0793Network aspects, e.g. central monitoring of transmission parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0067Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects
    • H04Q2011/0083Testing; Monitoring

Definitions

  • the present application relates to the field of optical communication, and more particularly, to a method and device related to ranging in a passive optical network (Passive Optical Network, PON) system.
  • Passive Optical Network, PON Passive Optical Network
  • Passive Optical Network (PON) technology is a point-to-multipoint fiber access technology.
  • a PON system may include an Optical Line Terminal (OLT), an Optical Distribution Network (ODN), and at least one Optical Network Unit (ONU).
  • OLT is connected to multiple ONUs through the ODN.
  • All ONUs under a PON port of the OLT use time division multiplexing, and at the time specified by the OLT, send upstream data to the OLT through the ODN.
  • the OLT must accurately measure the distance between each ONU and the OLT through ranging, so as to control the moment when each ONU sends uplink data.
  • the OLT needs to open the window, that is, the Quiet Zone, and suspend the upstream transmission channels of other ONUs. Since the OLT does not authorize other ONUs to send uplink data during the windowing period, it will cause a transmission delay to the service data transmitted by other ONUs.
  • the present application proposes a method for determining the transmission delay of a PON system, and a device and system for implementing the method.
  • the present application proposes a method for determining the transmission delay of a passive optical network PON.
  • the optical network unit ONU includes a first module and a second module, the first module communicates with the OLT through the first optical distribution network ODN, and the second module communicates with the OLT through the second ODN; the first module completes the communication with the OLT in time.
  • the second module receives the time synchronization message sent by the OLT, the time synchronization message includes a first time stamp, and the first time stamp identifies the counter value of the OLT as the OLT time at time K; the counter value of the second module is K
  • the ONU sets the second module time as the time marked by the first time stamp; the ONU determines the first time difference according to the first module time and the second module time, and the first time difference is equal to the second module time and the OLT time at the same moment The first time difference is equal to the transmission delay of the time synchronization message from the OLT to the second module.
  • the second module of the ONU can obtain the transmission delay from the OLT to the ONU without performing windowing and ranging, and then obtain the balanced delay. Because there is no need to open the window for ranging, the second module can complete the registration and online process faster; because there is no need to open the window, it does not need to suspend the upstream transmission channels of other ONUs, so the service impact on other ONUs can be reduced; The second module of the ONU also does not need to perform windowing and ranging, which also reduces the business impact on the ONU.
  • the service transmitted by the second module is a real-time service or a delay-sensitive service, the delay caused by the windowing and ranging is avoided.
  • the time synchronization message received by the second module further includes the superframe count value K of the LT, and the time identified by the first timestamp is the superframe counter value of the OLT equal to K OLT time at the moment; when the superframe counter value of the second module is equal to K, the ONU sets the time of the second module to the time identified by the first timestamp.
  • the ONU determines the first time difference through an Ethernet packet between the first module and the second module; the first module sends a first packet to the second module, and the first packet includes Sending timestamp, when the sending timestamp is the time of the first module, the time when the first module sends the first packet, the second module adds a receiving timestamp to the first packet when receiving the first packet, and receives
  • the time stamp is the time when the second module receives the first message under the time of the second module; the ONU determines the second time difference, which is the difference between the receiving time stamp and the sending time stamp;
  • the first time difference is determined by the road delay, and the first time difference is the sum of the second time difference and the Ethernet link delay, and the Ethernet link delay is the communication time between the first module and the second module through the Ethernet link. extension.
  • the ONU determines the equalization delay of the communication between the second module and the OLT according to the first time difference, such as determining the equalization delay EqD2 of the communication between the second module and the OLT according to the following calculation formula:
  • Teqd is zero distance equivalent delay
  • RspTime2 is the ONU response time
  • dt is the first time difference
  • n1 is the refractive index of the downstream light communicated between the OLT and the ONU
  • n2 is the upstream light communicated between the ONU and the OLT. refractive index.
  • the second module waits at least for the equalization delay after processing the OLT request. time, and then send an upstream packet to the OLT.
  • the ONU measures the Ethernet link delay between the first module and the second module according to the 1588 time synchronization protocol.
  • the present application provides a PON system device.
  • the device includes a first module and a second module; the first module is used to complete ranging and time synchronization with the optical line terminal OLT through the first ODN; the second module is used to receive the time synchronization sent by the OLT through the second ODN message, the time synchronization message includes a first time stamp, and the first time stamp identifies that the counter value of the OLT is the OLT time at time K; when the counter value of the second module is K, the second module time is set to the first time.
  • a time marked by a timestamp determines the first time difference, the first time difference is equal to the difference between the second module time and the OLT time at the same moment, and the first time difference is equal to the transmission delay of the time synchronization message from the OLT to the second module.
  • the time synchronization message received by the second module further includes the superframe count value K of the OLT, and the time identified by the first timestamp is the time when the superframe counter value of the OLT reaches K OLT time; the second module is further configured to set the second module time as the time identified by the first timestamp when the superframe counter value of the second module is equal to K.
  • the first module is further configured to send a first packet to the second module, where the first packet includes a sending timestamp, and the sending timestamp is the time of the first module, and the first packet The time when the first module sends the first packet; the second module is further configured to add a receiving timestamp to the first packet when receiving the first packet, and when the receiving timestamp is the time of the second module, the second module receives The time at the moment of the first packet; the second time difference is determined, and the second time difference is the difference between the receiving timestamp and the sending timestamp; the first time difference is determined according to the second time difference and the Ethernet link delay, and the first time difference is the second time difference The sum of the Ethernet link delay, the Ethernet link delay is the delay of communication between the first module and the second module through the Ethernet link.
  • the second module is further configured to determine the equalization delay of the communication between the second module and the OLT according to the first time difference, such as determining the equalization delay of the communication between the second module and the OLT according to the following calculation formula Delay EqD2:
  • Teqd is zero distance equivalent delay
  • RspTime2 is the response time of the second module
  • dt is the first time difference
  • n1 is the refractive index of the downlink light communicated between the OLT and the ONU
  • n2 is the communication between the second module and the OLT. the refractive index of the upstream light.
  • the second module is further configured to, after processing the request of the OLT, at least wait for a duration corresponding to the equalization delay, and then send an uplink message to the LT.
  • the second module measures the Ethernet link delay between the first module and the second module according to the 1588 time synchronization protocol.
  • the first module includes a processor, a memory, a PON medium access control (MAC) chip, a transceiver and a time control module
  • the second module also includes a processor, Memory, PON media access control (medium access control, MAC) chip, transceiver and time control module
  • the first module processor is used to control the first module to complete ranging and time synchronization
  • the first module PON MAC chip is used for the first module.
  • the first module transceiver is used to communicate with the OLT through the first ODN
  • the first module time control module is used to control the first module time
  • the second module transceiver is used for The second ODN communicates with the OLT
  • the second module PON MAC chip is used to complete the data transmission and reception with the OLT under the control of the second module processor
  • the second module processor is used for receiving the time synchronization message.
  • the second module time is set to the time marked by the first time stamp, and the second module time control module is used to control the second module time according to the setting of the second module processor ;
  • the second module processor is further configured to determine the first time difference according to the first module time and the second module time.
  • the first module further includes an Ethernet MAC chip
  • the second module further includes an Ethernet MAC chip
  • the first module Ethernet MAC chip and the second module Ethernet MAC chip communicate with each other through an Ethernet link
  • the first module processor is further configured to send the first packet to the second module Ethernet MAC chip through the first module Ethernet MAC chip
  • the second module Ethernet MAC chip is configured to forward the first packet to the second module processor for processing
  • the second module processor is further configured to add a receiving time stamp to the first message, where the receiving time stamp is the time when the second module receives the first message under the time of the second module; determining the second time difference, the first
  • the second time difference is the difference between the receiving time stamp and the sending time stamp
  • the first time difference is determined according to the second time difference and the Ethernet link delay
  • the first time difference is the sum of the second time difference and the Ethernet link delay.
  • the delay is the delay of communication between the first module and the second module through the Ethernet link.
  • the second module processor is further configured to determine the balance of the communication between the second module and the OLT according to the ONU response time, the zero-distance equivalent delay and the first time difference time delay.
  • the present application provides a PON communication system, where the PON system includes an OLT and the ONU described in the first or second aspect.
  • the present application provides a computer-readable storage medium comprising instructions that, when executed on a computer, cause the computer to perform the method of the first aspect.
  • the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of the first aspect.
  • FIG. 1 is a schematic diagram of a PON system architecture provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of the ranging principle of a PON system provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of the networking structure of a PON system according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of time synchronization of a PON system provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an ONU device according to an embodiment of the present application.
  • next-generation PON NG-PON
  • NG-PON1 next-generation PON
  • NG-PON2 gigabit-capable PON
  • GPON 10 gigabit per second PON (10 gigabit per second PON, XG-PON), symmetric 10 gigabit passive optical network (10-gigabit-capable symmetric passive optical network, XGS-PON), Ethernet PON ( Ethernet PON, EPON), 10 gigabit per second EPON (10 gigabit per second EPON, 10G-EPON), next-generation EPON (next-generation EPON, NG-EPON), wavelength-division multiplexing (wavelength-division multiplexing, WDM) PON , Time-and wavelength-division multiplexing (TWDM) PON, point-to-point (P2P) WDM PON (P2P-WDM PON), asynchronous
  • FIG. 1 is a schematic diagram of a PON system architecture.
  • the PON system 100 includes at least one OLT 110 , at least one ODN 120 and multiple ONUs 130 .
  • the OLT 110 provides a network-side interface for the PON system 100
  • the ONU 130 provides a user-side interface for the PON system 100 and is connected to the ODN 120.
  • the ONU 130 directly provides the user port function, it is called an optical network terminal (Optical Network Terminal, ONT).
  • ONT optical Network Terminal
  • the ONU 130 mentioned below collectively refers to an ONT that can directly provide a user port function and an ONU that provides a user side interface.
  • ODN 120 is a network composed of optical fibers and passive optical splitting devices, used to connect OLT 110 equipment and ONU 130 equipment, and used to distribute or multiplex data signals between OLT 110 and ONU 130.
  • the direction from the OLT 110 to the ONU 130 is defined as the downstream direction
  • the direction from the ONU 130 to the OLT 110 is defined as the upstream direction.
  • the OLT 110 adopts the time division multiplexing (Time Division Multiplexing, TDM) method to broadcast the downstream data to the multiple ONUs 130 managed by the OLT 110, and each ONU 130 only receives the data carrying its own identification;
  • Each ONU 130 communicates with the OLT 110 in a time division multiple access (Time Division Multiple Access, TDMA) manner, and each ONU 130 sends uplink data according to the time domain resources allocated by the OLT 110.
  • TDM Time Division Multiplexing
  • TDMA Time Division Multiple Access
  • the downlink optical signal sent by the OLT 110 is a continuous optical signal
  • the uplink optical signal sent by the ONU 130 is a burst optical signal.
  • the OLT 110 is usually located in a central office (Central Office, CO), can manage at least one ONU 130 uniformly, and transmit data between the ONU 130 and the upper-layer network. Specifically, the OLT 110 can act as a medium between the ONU 130 and the upper-layer network (such as the Internet, a public switched telephone network (PSTN), and forward the data received from the upper-layer network to the ONU 130, And forward the data received from ONU 130 to the upper layer network.
  • a central office Central Office, CO
  • CO central office
  • CO central office
  • the OLT 110 can act as a medium between the ONU 130 and the upper-layer network (such as the Internet, a public switched telephone network (PSTN), and forward the data received from the upper-layer network to the ONU 130, And forward the data received from ONU 130 to the upper layer network.
  • the upper-layer network such as the Internet, a public switched telephone network (PSTN)
  • the specific structural configuration of the OLT 110 may vary depending on the specific type of the PON system 100, for example, in one embodiment, the OLT 110 may include transmitting The transmitter and the receiver, the transmitter is used to send the downlink continuous optical signal to the ONU 130, and the receiver is used to receive the uplink burst optical signal from the ONU 130, wherein the downlink optical signal and the uplink optical signal can be carried out through the ODN 120. transmission, but the embodiment of the present invention is not limited thereto.
  • the ONUs 130 may be distributed in user-side locations (such as customer premises).
  • the ONU 130 may be a network device for communicating with the OLT 110 and the user, specifically, the ONU 130 may act as an intermediary between the OLT 110 and the user, for example, the ONU 130 may receive data from the OLT 110 Forwarding to the user, and forwarding of data received from the user to the OLT 110.
  • the ODN 120 may be a data distribution network, which may include optical fibers, optical couplers, optical splitters, or other devices.
  • the optical fiber, optical coupler, optical splitter or other device may be a passive optical device, specifically, the optical fiber, optical coupler, optical splitter or other device may be between the OLT 110 and the ONU 130 devices that do not require power supply when distributing data signals between Specifically, taking an optical splitter (Splitter) as an example, the optical splitter can be connected to the OLT 110 through a trunk fiber, and connected to a plurality of ONUs 130 through a plurality of branch fibers respectively, thereby realizing the OLT 110 and the ONU 130. point-to-multipoint connections.
  • splitter optical splitter
  • the ODN 120 may further include one or more processing devices, for example, an optical amplifier or a relay device (Relay device).
  • the ODN 120 may specifically extend from the OLT 110 to multiple ONUs 130, but may also be configured into any other point-to-multipoint structure, and the embodiment of the present invention is not limited thereto.
  • the logical distances from different ONUs to the OLT are not equal, the transmission time of the optical signal on the optical fiber is different, and the time when it reaches each ONU is different.
  • the round trip delay (Round Trip Delay, RTD) between the OLT and the ONU also changes with time and the environment.
  • the OLT In order to ensure that the uplink data sent by each ONU to the OLT is inserted into the designated time slot after the ODN fiber is converged, and there is no collision with each other and the gap is not too large, the OLT must measure the distance between each ONU and the OLT through ranging (ranging). The distance between them can be accurately measured in order to control the time when each ONU sends the uplink data.
  • the OLT will start the ranging function when the ONU registers for the first time, obtain the RTD of the round-trip delay of the ONU, calculate the physical distance of each ONU, and specify the appropriate equalization delay (Equalization Delay, EqD) parameter according to the physical distance of the ONU .
  • EqD equalization Delay
  • the OLT needs to open the window, that is, the Quiet Zone, and suspend the upstream transmission channels of other ONUs.
  • EqD equalization Delay
  • the OLT synchronizes the data frames sent by each ONU to ensure that each ONU will not cause conflict on the optical splitter when sending data. Quite all the ONUs are in the same logical distance, and it is enough to send data in the corresponding time slot, so as to avoid collision and collision of upstream cells.
  • the ranging of GPON is completed in the ONU registration phase.
  • the ONU receives the SN request message sent by the OLT, the ONU returns an SN response message after waiting for a certain response time.
  • the OLT assigns an ONU-ID to the ONU, and the ONU enters the ranging state after receiving the assigned ONU-ID.
  • the principle of the OLT calculating and distributing the equalization delay is shown in Figure 2. It is assumed that the OLT sends a ranging request to the ONU at time T1, and at the same time commands other ONUs to stop sending uplink services, and opens a ranging window in the uplink time slot for this ONU to use.
  • the ONU receives the ranging request at time T2, and after internal processing, sends an uplink frame responding to the ranging request at time T3, and the OLT receives the uplink frame responding to the ranging request at time T4. Then the OLT can calculate and obtain the RTD of the ONU according to T4 and T1.
  • the zero-distance equivalent delay Teqd in Figure 1 is a value set by the OLT according to the length of the farthest optical fiber, which is greater than or equal to the RTD of the ONU with the farthest logical distance.
  • the OLT allocates EqD to all ONUs connected to the same PON interface of the OLT according to the following principles, where i represents the ONU number:
  • the subsequent ONU After the subsequent ONU processes the request of the OLT, it must wait for the EqD time before sending the upstream data or upstream frame, which can ensure that the upstream data phase of all ONUs under the same PON port of the OLT is the same.
  • time synchronization is also required between the OLT and the ONU.
  • each PON module in the ONU and the time control module in the OLT respectively have time control modules.
  • the time of the ONU and the time of the OLT may be different at the same moment, and even the ONU may be different.
  • the time may also be different between the PON modules inside.
  • a well-understood example is that at the same time, Beijing time is 18:00 and London time is 10:00. Therefore, similar descriptions such as ONU time or OLT time are used in this application to represent the timing of different devices or modules.
  • the ITU G.984.3 standard defines a time synchronization scheme.
  • the OLT sends a time synchronization message to the ith ONU, which carries the timestamp Tsend(i) of the OLT.
  • the ith ONU calculates and obtains the transmission of the time synchronization message according to EqD(i). Delay, set the local time Trecv(i) of the ONU to Tsend(i) + the transmission delay of the time synchronization message, that is
  • Trecv(i) Tsend(i)+(Teqd-EqD(i)-RspTime(i))*(nd/(nd+nu)) (3)
  • EqD(i) is the equalization delay determined by the i-th ONU after ranging
  • RspTime(i) is the response time of the i-th ONU (the duration of T3-T2 in Figure 1)
  • nd is the downlink wavelength Refractive index
  • nu is the refractive index of the upstream wavelength
  • (Teqd-EqD(i)-RspTime(i))*(nd/(nd+nu)) is the transmission delay of the time synchronization message obtained by calculating EqD(i).
  • the ranging and time synchronization processes described in the embodiments of this application may briefly describe some message processes; for example, in the specific implementation, the time synchronization message sent by the OLT It can also carry the superframe count value of the OLT corresponding to the time Tsend(i). After the i-th ONU receives the time synchronization message, when the superframe count value of the ONU is equal to the superframe count value of the OLT in the time synchronization message , and set the local time Trecv(i) of the ONU as Tsend(i) + the transmission delay of the time synchronization message.
  • FIG. 3 is a system architecture applicable to various embodiments of the present application.
  • the system architecture shown in FIG. 3 is a further refinement of the system architecture shown in FIG. 1 .
  • the OLT, ODN and ONU shown in FIG. 3 are specific embodiments of the OLT 110, ODN 120 and ONU 130 in FIG. 1, respectively.
  • each ONU includes two PON modules, ONU-PON-0 and ONU-PON-1, and ONU-PON-0 and ONU-PON-1 communicate with the OLT through different ODNs respectively;
  • the OLT also includes two PON module, OLT-PON-0 and OLT-PON-1, ONU-PON-0 communicates with OLT-PON-0 through ODN-0, and ONU-PON-1 communicates with OLT-PON-1 through ODN-1.
  • the two PON modules of the ONU are registered in the PON module of the connected OLT respectively, that is, ONU-PON-0 is registered in OLT-PON-0 through ODN-0, and ONU-PON-1 is registered in OLT-PON through ODN-1 -1 for registration.
  • ONU-PON-0 and ONU-PON-1 are equivalent to two virtual ONUs, which communicate with the OLT through different ODNs.
  • the OLT sends a ranging request to the ONU, and also orders other ONUs to stop sending uplink services. Therefore, the ranging process will affect the real-time performance of the ranging ONU and the services transmitted by other ONUs. influences.
  • ONU-PON-0 and ONU-PON-1 communicate with the OLT through different ODN networks
  • the OLT needs to perform ranging on ONU-PON-0 and ONU-PON-1 respectively. That is, each PON module of each ONU needs to perform ranging, and the delay problem caused by ranging will be more prominent.
  • FIG. 4 is a sequence diagram of communication between the OLT and the ONU.
  • the horizontal axis corresponding to OLT represents the time axis of OLT;
  • the horizontal axis corresponding to ONU-PON-0 represents the time axis of ONU-PON-0;
  • the horizontal axis corresponding to ONU-PON-1 represents the time axis of ONU-PON-1 axis.
  • ONU-PON-0 is one of the PON modules of any ONU in FIG. 3
  • ONU-PON-1 is another PON module of the ONU.
  • the OLT includes two PON modules, OLT-PON-0 and OLT-PON-1. The connection relationship between each PON module of the ONU and each PON module of the OLT is as shown in FIG. 3 .
  • Step 1 After ONU is powered on, ONU-PON-0 completes ranging and time synchronization with OLT-PON-0.
  • the maintenance time on ONU-PON-0 is the same as the time on OLT-PON-0.
  • ONU-PON-0 and OLT-PON-0 can perform ranging and time synchronization according to the methods defined by ITU standards. For example, suppose that OLT-PON-0 sends a time synchronization message to ONU-PON-0, the time synchronization message carries the time stamp of Ts0, and ONU-PON-0 receives the time synchronization message after a certain transmission delay (such as dt0). , according to formula (3), it can be known that,
  • dt0 (Teqd-EqD(0)-RspTime(0))*(nd/(nd+nu)) (4)
  • EqD(0) is the equalization delay corresponding to ONU-PON-0
  • RspTime(0) is the response time of ONU-PON-0.
  • ONU-PON-0 completes time synchronization with OLT-PON-0 based on dt0 and Ts0 in the time synchronization message.
  • Tr0 time ONU-PON-0 time and OLT-PON-0 time are both Ts0+dt0; where Tr0
  • the superframe count value of ONU-PON-0 is the same as the superframe count value of OLT-PON-0 in the time synchronization message.
  • Ts0 in Figure 4 does not refer to the time stamp when the time synchronization message is sent by OLT-PON-0, but refers to the time stamp carried in the time synchronization message sent by OLT-PON-0; Tr0 does not refer to the ONU- The timestamp when PON-0 receives the time synchronization message, but the timestamp when ONU-PON-0 completes the time synchronization message (for example, the superframe count value of Tr0 corresponding to ONU-PON-0 is equal to the superframe count value in the time synchronization message. time).
  • Step 2 The OLT sends a time synchronization message to the ONU-PON-1 through the OLT-PON-1, and the time synchronization message carries the time stamp Ts1 of the OLT-PON-1.
  • the ONU-PON-1 receives the time synchronization message sent by the OLT, records the time stamp Ts1 contained in the synchronization message, and performs subsequent timing or time maintenance based on Ts1;
  • the superframe count value of ONU-PON-1 is the same as the superframe count value of OLT-PON-1 in the time synchronization message, such as time Tr1
  • ONU-PON-1 sets the time of ONU-PON-1 to Ts1, At this time, the time of OLT-PON-1 is Ts1+dt1.
  • ONU-PON-1 does not really complete the time synchronization with OLT-PON-1.
  • dt1 there is a difference between ONU-PON-1 time and OLT time. Since ONU-PON-0 has completed the time synchronization with OLT (OLT-PON-0 and OLT-PON-1 time synchronization), therefore, at the same time, the difference between ONU-PON-0 time and ONU-PON-1 time The value is also dt1.
  • Ts0 and Ts1 are in no particular order in time.
  • the OLT can first send a time synchronization message to ONU-PON-0, or it can first send a time synchronization message to ONU-PON-1.
  • the two modules of ONU-PON-0 and ONU-PON-1 follow step 1
  • the time difference between ONU-PON-0 time and ONU-PON-1 time is dt1, that is, at the same time
  • dt1 the specific value of dt1 can be expressed by the following formula
  • dt1 (Teqd-EqD(1)-RspTime(1))*(nd/(nd+nu)) (7)
  • EqD(1) is the equalization delay corresponding to ONU-PON-1
  • RspTime(1) is the response time of ONU-PON-1.
  • Equation 7 It can be seen from Equation 7 that dt1 and EqD(1) have a certain equivalent relationship. If dt1 can be known, EqD(1) can be calculated by Equation 6; Knowing EqD(1) greatly reduces the time delay of ONU-PON-1 online registration.
  • Ts1 in Figure 4 does not refer to the time stamp at the time when OLT-PON-1 sends the time synchronization message, but refers to the time stamp carried in the time synchronization message sent by OLT-PON-1; Tr1 does not refer to ONU-
  • the time stamp of the time when PON-1 receives the time synchronization message is the time stamp of the time when ONU-PON-1 completes the time synchronization message.
  • Step 3 ONU-PON-0 sends a 1588 message to ONU-PON-1.
  • the so-called 1588 refers to the clock synchronization protocol standard defined by the IEEE 1588 protocol. The purpose of this standard is to accurately synchronize the scattered and independent clocks in the system; the 1588 message refers to the time synchronization message that conforms to this protocol.
  • the 1588 message sent by the ONU-PON-0 includes a sending time stamp, and the sending time stamp is used to indicate the time when the 1588 message was sent, and the ONU-PON-0 time Ts2.
  • ONU-PON-1 After receiving the 1588 message, ONU-PON-1 writes a reception time stamp in the 1588 message, and the reception time stamp is used to indicate the time of receiving the 1588 message, the ONU-PON-1 time Tr2.
  • the time Ts2 when ONU-PON-0 sends the 1588 message, the local time of ONU-PON-1 should be Ts2-dt1.
  • the difference between the receiving timestamp and the sending timestamp can be expressed by the following formula
  • dt2 is the Ethernet link delay or the Ethernet link transmission time between the ONU-PON-0 and ONU-PON-1 modules inside the ONU, which can be preset in the ONU software in advance. Therefore, the ONT can calculate and obtain dt1 according to the receiving timestamp and sending timestamp in the 1588 packet, and further obtain EqD(1).
  • the subsequent ONU-PON-1 takes EqD(1) as the equalization delay for communication with the OLT, that is, waits at least the time corresponding to EqD(1) before sending the upstream message.
  • Ethernet link delay between ONU-PON-0 and ONU-PON-1 can be calculated in advance through the 1588 time synchronization protocol; for example, ONU-PON-0 and ONU-PON-1 first complete the time delay After synchronization, ONU-PON-0 sends a 1588 message to ONU-PON-1. ONU-PON-0 and ONU-PON-1 write the sent or received timestamp in the sent or received 1588 message, and the ONU calculates The difference between the receiving timestamp of ONU-PON-1 and the sending timestamp of ONU-PON-0 is the Ethernet link delay.
  • ONU-PON-1 after ONU-PON-1 determines the equalization delay, ONU-PON-1 also needs to modify the local maintenance time to ensure time synchronization with the OLT; ONU-PON-1 can modify the local time through dt1, and also Time synchronization with ONU-PON-0 or OLT can be completed again through the time synchronization process.
  • the time difference dt1 between the ONU-PON-0 time and the ONU-PON-1 time is obtained by sending an Ethernet message.
  • the ONU-PON-0 time and the ONU-PON-0 time can also be obtained in other ways.
  • the time difference between ONU-PON-1 time For example, let ONU-PON-0 and ONU-PON-1 report the current time at the same time, or obtain ONU-PON-0 time and ONU-PON-1 time by means of interrupt triggering.
  • ONU-PON-1 can obtain the transmission delay dt1 from the OLT to the ONU without performing windowing and ranging, and then obtain the equalization delay EqD(1).
  • the ONU-PON-1 module of ONU1 does not need to open the window for distance measurement, and the ONU-PON-1 can complete the registration and online process faster. Since it does not need to open the window, it does not need to suspend the upstream transmission channels of other ONUs, so it can reduce the need for other ONUs.
  • the service impact of the ONU similarly, the ONU-PON-1 modules of other ONUs do not need to perform windowing and ranging, which also reduces the business impact on the ONU-PON-1 module of the ONU1.
  • the business transmitted by the ONU-PON-1 module is a real-time business or a delay-sensitive business, the delay caused by windowing and ranging is avoided.
  • the window-free ranging solution proposed in this application can reduce the time delay of PON network service transmission.
  • the two PON modules in the ONU communicate with the OLT through different ODNs (or called different channels, the first channel and the second channel) respectively: the OLT completes the ONT measurement in the first channel (such as ODN-0).
  • the second channel (such as ODN-1) does not need to perform windowing ranging.
  • the first channel is a communication channel that needs ranging, and the communication of the first channel can be based on communication protocols such as GPON, XG-PON, XGS-PON, TWDM-PON, EPON, 10G EPON; the second channel does not require ranging
  • the communication channel of the second channel can be based on communication protocols such as GPON, XG-PON, XGS-PON, TWDM-PON, EPON, and 10G EPON.
  • the present invention also provides a network device, which is the ONU shown in FIG. 3 .
  • the network device 500 includes two modules, a first module 501 and a second module 502 , respectively corresponding to ONU-PON-0 and ONU-PON-1 in the above embodiment, such as the first module 501 corresponding to ONU-PON-0, the second module 502 corresponds to ONU-PON-1.
  • the first module 501 includes a processor 5011, a memory 5012, a PON medium access control (MAC) chip 5013, a transceiver 5014, a time control 5015 and an Ethernet MAC chip 5016 and other modules.
  • the second module 502 includes a processor 5021, a memory 5022, a PON medium access control (MAC) chip 5023, a transceiver 5024, a time control module 5025, an Ethernet MAC chip 5026 and other modules.
  • MAC medium access control
  • the processors 5011 and 5021 can use a general-purpose central processing unit (Central Processing Unit, CPU), a microprocessor, an application-specific integrated circuit ASIC, or at least one integrated circuit for executing related programs, and the processor 5011 and the processor 5021 control
  • the first module and the second module complete the business logic in the above embodiment, as in step 1, the processor 5011 determines that Ts0+dt0 is the absolute time of receiving the synchronization message, and sets the absolute time to the time control module 5015, The time control module 5015 uses this time as the benchmark to perform the subsequent time maintenance of the first module; in step 2, the processor 5021 determines Ts1, and sets Ts1 to the time control module 5025, and the time control module 5025 uses this time as the benchmark to perform the first module. Subsequent time maintenance of the second module; in step 3, the processor 5025 obtains the sending time stamp and the receiving time stamp of the 1588 message, and calculates and determines the balanced delay of the second module according to formula 7 and formula 8.
  • CPU Central Processing Unit
  • the memories 5012 and 5022 may be read only memories (Read Only Memory, ROM), static storage devices, dynamic storage devices, or random access memory (Random Access Memory, RAM). Memories 5012 and 5022 may store operating systems and other applications. When implementing the technical solutions provided by the embodiments of the present invention through software or firmware, program codes for implementing the technical solutions provided by the embodiments of the present invention are stored in the memories 5012 and 5022 and executed by the processors 5011 and 5021 .
  • the PON MAC chips 5013 and 5023 are respectively under the control of the processors 5011 and 5021, and are responsible for the PON user plane data forwarding with the OLT.
  • the PON MAC chips 5013 and 5023 may include a physical coding sublayer and a MAC control sublayer.
  • the processor 5011 may include a memory 5012, and the processor 5021 may include a memory 5022.
  • the processor 5011 and the memory 5012 are two independent structures, and the processor 5021 and the memory 5022 are two independent structures.
  • processor 5011 and processor 5021 are two independent processors, and memories 5012 and 5022 are two independent memories.
  • the processor 5011 and the processor 5021 are physically the same processor, and the memories 5012 and 5022 are physically the same memory.
  • the processor 5011 and the MAC chip 5013 may be two independent structures, and the processor 5021 and the MAC chip 5023 may be two independent structures.
  • the processor 5013 may include a MAC chip 5013, and the processor 5023 may include a MAC chip 5023.
  • Transceivers 5014 and 5024 may include optical transmitters and/or optical receivers. Optical transmitters can be used to transmit optical signals, and optical receivers can be used to receive optical signals.
  • the light transmitter can be realized by a light-emitting device, such as a gas laser, a solid-state laser, a liquid laser, a semiconductor laser, a directly modulated laser, and the like.
  • the optical receiver may be implemented by a photodetector, such as a photodetector or a photodiode (eg, an avalanche diode) or the like.
  • Transceivers 5014 and 5024 may also include digital-to-analog converters and analog-to-digital converters.
  • the first module 501 communicates with the OLT through the transceiver 5014
  • the second module 502 communicates with the OLT through the transceiver 5024 .
  • the time control modules 5015 and 5025 are respectively responsible for the time control of the first module and the second module, and perform timing and time maintenance according to the time set by the processor.
  • the Ethernet MACs 5016 and 5026 are responsible for the Ethernet intercommunication between the first module and the second module.
  • the processor can be directly connected to the Ethernet MAC, or can be connected to the Ethernet MAC through a repeater.
  • the processor 5011 of the first module sends the 1588 message to the first module through the Ethernet MAC 5016
  • the Ethernet MAC 5026 of the second module sends the processor 5021 to process the 1588 message after receiving the 1588 message.
  • the ONU shown in FIG. 5 implements the above-mentioned method of avoiding ranging and determining the equalized delay, and the beneficial effects brought by it will not be repeated here.
  • the present invention also provides a PON system, which includes the above-mentioned optical line terminal OLT 110 and at least one ONU 130, wherein the ONU 130 has the structure and function as shown in 5.
  • the ONU 130 includes two PON modules, and the OLT also includes two PON modules.
  • the connection relationship between the OLT 110 and the ONU 130 is shown in Figure 3, and the two PON modules of the ONU 130 are respectively connected to the two PON modules of the OLT 110 through different ODNs.
  • time synchronization described in this application may have certain synchronization errors or clock errors or time errors; Synchronization does not mean that the clock of the first module of the ONU and the clock of the OLT are completely error-free, and the clocks between the two may have errors within a certain range, such as a microsecond-level error.
  • the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • software it can be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated.
  • the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server, or data center Transmission to another website site, computer, server, or data center is by wire (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes an integration of one or more available media.
  • the usable media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g. DVD), or semiconductor media (e.g. Solid State Disk (SSD)), among others.

Abstract

Provided is a method for determining the transmission delay of a passive optical network (PON). An optical network unit (ONU) comprises a first module and a second module, the first module communicating with an optical line terminal (OLT) by means of a first optical distribution network (ODN), the second module communicating with said OLT by means of a second ODN; the first module time completes synchronization with the OLT; the second module receives a time synchronization message from said OLT, a first time stamp being comprised in the time synchronization message; the ONU sets the second module time to the time identified by the first time stamp; the ONU determines the first time difference according to the first module time and the second module time, the first time difference being equal to the transmission delay of the time synchronization message from the OLT to the second module. By means of the method, the second module of the ONU does not require open-window ranging to obtain the transmission delay from the OLT to the ONU, and thus obtain a balanced time delay, avoiding the service impact of an open window on other ONUs, reducing the time delay caused by open-window ranging.

Description

确定无源光网络传输时延的方法A method for determining the transmission delay of passive optical network
本申请要求于2020年11月27日提交中国国家知识产权局、申请号为202011358520.1、申请名称为“确定无源光网络传输时延的方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202011358520.1 and the application title "Method for Determining the Transmission Delay of a Passive Optical Network" filed with the State Intellectual Property Office of China on November 27, 2020, the entire contents of which are by reference Incorporated in this application.
技术领域technical field
本申请涉及光通信领域,更具体地,涉及一种无源光网络(Passive Optical Network,PON)系统中测距相关的方法和装置。The present application relates to the field of optical communication, and more particularly, to a method and device related to ranging in a passive optical network (Passive Optical Network, PON) system.
背景技术Background technique
无源光网络(Passive Optical Network,PON)技术是一种点到多点的光纤接入技术。PON系统可以包括光线路终端(Optical Line Terminal,OLT)、光分配网络(Optical Distribution Network,ODN)和至少一个光网络单元(Optical Network Unit,ONU)。OLT通过ODN与多个ONU连接。Passive Optical Network (PON) technology is a point-to-multipoint fiber access technology. A PON system may include an Optical Line Terminal (OLT), an Optical Distribution Network (ODN), and at least one Optical Network Unit (ONU). The OLT is connected to multiple ONUs through the ODN.
OLT一个PON口下的所有ONU采用时分复用的方式,在OLT指定的时刻,通过ODN向OLT发送上行数据。OLT必须通过测距(ranging)对每一个ONU与OLT之间的距离进行精确测定,以便控制每个ONU发送上行数据的时刻。OLT在测距的过程中需要开窗,即Quiet Zone,暂停其他ONU的上行发送通道。由于在开窗期间,OLT不授权其它ONU发送上行数据,因此会对其它ONU所传送的业务数据造成传输时延。All ONUs under a PON port of the OLT use time division multiplexing, and at the time specified by the OLT, send upstream data to the OLT through the ODN. The OLT must accurately measure the distance between each ONU and the OLT through ranging, so as to control the moment when each ONU sends uplink data. In the process of ranging, the OLT needs to open the window, that is, the Quiet Zone, and suspend the upstream transmission channels of other ONUs. Since the OLT does not authorize other ONUs to send uplink data during the windowing period, it will cause a transmission delay to the service data transmitted by other ONUs.
目前,越来越多的业务场景对PON系统提出了低时延的技术诉求,如5G业务场景,光传送网(optical transport network,OTN)专线业务场景等。如何减少开窗测距带来的业务时延,成为亟待解决的技术问题。At present, more and more business scenarios put forward low-latency technical requirements for PON systems, such as 5G business scenarios and optical transport network (OTN) private line business scenarios. How to reduce the service delay caused by window opening and ranging has become a technical problem to be solved urgently.
发明内容SUMMARY OF THE INVENTION
本申请提出一种确定PON系统传输时延的方法,及实现该方法的装置和系统。The present application proposes a method for determining the transmission delay of a PON system, and a device and system for implementing the method.
第一方面,本申请提出一种确定无源光网络PON传输时延的方法。光网络单元ONU包括第一模块和第二模块,第一模块通过第一光分配网络ODN与所述OLT通信,第二模块通过第二ODN与所述OLT通信;第一模块时间完成与OLT的时间同步;第二模块接收所述OLT发送的时间同步消息,时间同步消息中包括第一时间戳,第一时间戳标识OLT的计数器数值为K时刻的OLT时间;第二模块的计数器数值为K时,ONU将第二模块时间设置为第一时间戳标识的时间;ONU根据第一模块时间和第二模块时间确定所述第一时间差,第一时间差等于同一时刻下第二模块时间与OLT时间的差值,第一时间差等于时间同步消息从OLT到第二模块的传输时延。通过第一方面所述的方法,ONU的第二模块不需要进行开窗测距,就可以获得OLT到ONU的传输时延,进而可以获得均衡时延。由于不需要开窗测距,第二模块可以更快的完成注册上线流程;由于不需要开窗,不需要暂停其他ONU的上行发送通道,因此可以减少对其它ONU的业务影响;类似的,其它ONU的第二模块也无需进行开窗测距,同样也减少了对该ONU的业务影响。当第二模块所传送的业务为实时业务或时延敏感型业务时,避免了由于开窗测距造成的时延。In a first aspect, the present application proposes a method for determining the transmission delay of a passive optical network PON. The optical network unit ONU includes a first module and a second module, the first module communicates with the OLT through the first optical distribution network ODN, and the second module communicates with the OLT through the second ODN; the first module completes the communication with the OLT in time. Time synchronization; the second module receives the time synchronization message sent by the OLT, the time synchronization message includes a first time stamp, and the first time stamp identifies the counter value of the OLT as the OLT time at time K; the counter value of the second module is K When the ONU sets the second module time as the time marked by the first time stamp; the ONU determines the first time difference according to the first module time and the second module time, and the first time difference is equal to the second module time and the OLT time at the same moment The first time difference is equal to the transmission delay of the time synchronization message from the OLT to the second module. Through the method described in the first aspect, the second module of the ONU can obtain the transmission delay from the OLT to the ONU without performing windowing and ranging, and then obtain the balanced delay. Because there is no need to open the window for ranging, the second module can complete the registration and online process faster; because there is no need to open the window, it does not need to suspend the upstream transmission channels of other ONUs, so the service impact on other ONUs can be reduced; The second module of the ONU also does not need to perform windowing and ranging, which also reduces the business impact on the ONU. When the service transmitted by the second module is a real-time service or a delay-sensitive service, the delay caused by the windowing and ranging is avoided.
在第一方面的一种可能的实现方式中,第二模块接收的时间同步消息中还包括所述LT的 超帧计数值K,第一时间戳标识的时间为OLT的超帧计数器数值等于K时刻的OLT时间;第二模块的超帧计数器数值等于K时,ONU将第二模块时间设置为第一时间戳标识的时间。In a possible implementation manner of the first aspect, the time synchronization message received by the second module further includes the superframe count value K of the LT, and the time identified by the first timestamp is the superframe counter value of the OLT equal to K OLT time at the moment; when the superframe counter value of the second module is equal to K, the ONU sets the time of the second module to the time identified by the first timestamp.
在第一方面的一种可能的实现方式中,ONU通过第一模块和第二模块间的以太报文确定第一时间差;第一模块向第二模块发送第一报文,第一报文包括发送时间戳,发送时间戳为第一模块时间下,第一模块发送所述第一报文时刻的时间,第二模块在接收第一报文时在第一报文中添加接收时间戳,接收时间戳为第二模块时间下,第二模块接收第一报文时刻的时间;ONU确定第二时间差,第二时间差为接收时间戳和发送时间戳的差值;ONU根据第二时间差和以太链路时延确定第一时间差,第一时间差为所述第二时间差与以太链路时延相加的和,以太链路时延为第一模块和第二模块间通过以太链路进行通信的时延。In a possible implementation manner of the first aspect, the ONU determines the first time difference through an Ethernet packet between the first module and the second module; the first module sends a first packet to the second module, and the first packet includes Sending timestamp, when the sending timestamp is the time of the first module, the time when the first module sends the first packet, the second module adds a receiving timestamp to the first packet when receiving the first packet, and receives The time stamp is the time when the second module receives the first message under the time of the second module; the ONU determines the second time difference, which is the difference between the receiving time stamp and the sending time stamp; The first time difference is determined by the road delay, and the first time difference is the sum of the second time difference and the Ethernet link delay, and the Ethernet link delay is the communication time between the first module and the second module through the Ethernet link. extension.
在第一方面的一种可能的实现方式中,ONU根据第一时间差确定第二模块与OLT通信的均衡时延,如根据如下计算公式确定第二模块与OLT通信的均衡时延EqD2:In a possible implementation manner of the first aspect, the ONU determines the equalization delay of the communication between the second module and the OLT according to the first time difference, such as determining the equalization delay EqD2 of the communication between the second module and the OLT according to the following calculation formula:
EqD2=Teqd-RspTime2-(dt/(n1/(n1+n2))),EqD2=Teqd-RspTime2-(dt/(n1/(n1+n2))),
其中,Teqd为零距离等效时延,RspTime2为ONU的响应时长,dt为第一时间差,n1为OLT与ONU间通信的下行光的折射率,n2为ONU与OLT间通信的的上行光的折射率。Among them, Teqd is zero distance equivalent delay, RspTime2 is the ONU response time, dt is the first time difference, n1 is the refractive index of the downstream light communicated between the OLT and the ONU, and n2 is the upstream light communicated between the ONU and the OLT. refractive index.
在第一方面的一种可能的实现方式中,ONU在确定所述第二模块与所述OLT通信的均衡时延之后,第二模块在处理完OLT的请求后,至少等待与均衡时延对应的时长,再向OLT发送上行报文。In a possible implementation manner of the first aspect, after the ONU determines the equalization delay for communication between the second module and the OLT, the second module waits at least for the equalization delay after processing the OLT request. time, and then send an upstream packet to the OLT.
在第一方面的一种可能的实现方式中,ONU根据1588时间同步协议测算第一模块和所述二模块间的以太链路时延。In a possible implementation manner of the first aspect, the ONU measures the Ethernet link delay between the first module and the second module according to the 1588 time synchronization protocol.
第二方面,本申请提出一种PON系统设备。该设备包括第一模块和第二模块;第一模块,用于通过第一ODN完成与光线路终端OLT的测距和时间同步;第二模块,用于通过第二ODN接收OLT发送的时间同步消息,时间同步消息中包括第一时间戳,所述第一时间戳标识所述OLT的计数器数值为K时刻的OLT时间;第二模块的计数器数值为K时,将第二模块时间设置为第一时间戳标识的时间;确定第一时间差,第一时间差等于同一时刻下第二模块时间与OLT时间的差值,第一时间差等于时间同步消息从OLT到第二模块的传输时延。In a second aspect, the present application provides a PON system device. The device includes a first module and a second module; the first module is used to complete ranging and time synchronization with the optical line terminal OLT through the first ODN; the second module is used to receive the time synchronization sent by the OLT through the second ODN message, the time synchronization message includes a first time stamp, and the first time stamp identifies that the counter value of the OLT is the OLT time at time K; when the counter value of the second module is K, the second module time is set to the first time. A time marked by a timestamp; determine the first time difference, the first time difference is equal to the difference between the second module time and the OLT time at the same moment, and the first time difference is equal to the transmission delay of the time synchronization message from the OLT to the second module.
在第二方面的一种可能的实现方式中,第二模块接收的时间同步消息中还包括OLT的超帧计数值K,第一时间戳标识的时间为OLT的超帧计数器数值达到K时的OLT时间;第二模块,还用于在第二模块的超帧计数器数值等于K时,将第二模块时间设置为第一时间戳标识的时间。In a possible implementation manner of the second aspect, the time synchronization message received by the second module further includes the superframe count value K of the OLT, and the time identified by the first timestamp is the time when the superframe counter value of the OLT reaches K OLT time; the second module is further configured to set the second module time as the time identified by the first timestamp when the superframe counter value of the second module is equal to K.
在第二方面的一种可能的实现方式中,第一模块,还用于向第二模块发送第一报文,第一报文包括发送时间戳,发送时间戳为第一模块时间下,第一模块发送第一报文时刻的时间;第二模块,还用于在接收第一报文时在第一报文中添加接收时间戳,接收时间戳为第二模块时间下,第二模块接收第一报文时刻的时间;确定第二时间差,第二时间差为接收时间戳和发送时间戳的差值;根据第二时间差和以太链路时延确定第一时间差,第一时间差为第二时间差与以太链路时延相加的和,以太链路时延为第一模块和第二模块间通过以太链路进行通信的时延。In a possible implementation manner of the second aspect, the first module is further configured to send a first packet to the second module, where the first packet includes a sending timestamp, and the sending timestamp is the time of the first module, and the first packet The time when the first module sends the first packet; the second module is further configured to add a receiving timestamp to the first packet when receiving the first packet, and when the receiving timestamp is the time of the second module, the second module receives The time at the moment of the first packet; the second time difference is determined, and the second time difference is the difference between the receiving timestamp and the sending timestamp; the first time difference is determined according to the second time difference and the Ethernet link delay, and the first time difference is the second time difference The sum of the Ethernet link delay, the Ethernet link delay is the delay of communication between the first module and the second module through the Ethernet link.
在第二方面的一种可能的实现方式中,第二模块,还用于根据第一时间差确定第二模块与OLT通信的均衡时延,如根据如下计算公式确定第二模块与OLT通信的均衡时延EqD2:In a possible implementation manner of the second aspect, the second module is further configured to determine the equalization delay of the communication between the second module and the OLT according to the first time difference, such as determining the equalization delay of the communication between the second module and the OLT according to the following calculation formula Delay EqD2:
EqD2=Teqd-RspTime2-(dt/(n1/(n1+n2))),EqD2=Teqd-RspTime2-(dt/(n1/(n1+n2))),
其中,Teqd为零距离等效时延,RspTime2为第二模块的响应时长,dt为第一时间差,n1为OLT与ONU间通信的下行光的折射率,n2为第二模块与OLT间通信的的上行光的折射率。Among them, Teqd is zero distance equivalent delay, RspTime2 is the response time of the second module, dt is the first time difference, n1 is the refractive index of the downlink light communicated between the OLT and the ONU, and n2 is the communication between the second module and the OLT. the refractive index of the upstream light.
在第二方面的一种可能的实现方式中,第二模块,还用于在处理完OLT的请求后,至少等待与均衡时延对应的时长,再向所述LT发送上行报文。In a possible implementation manner of the second aspect, the second module is further configured to, after processing the request of the OLT, at least wait for a duration corresponding to the equalization delay, and then send an uplink message to the LT.
在第二方面的一种可能的实现方式中,第二模块根据1588时间同步协议测算第一模块和第二模块间的以太链路时延。In a possible implementation manner of the second aspect, the second module measures the Ethernet link delay between the first module and the second module according to the 1588 time synchronization protocol.
在第二方面的一种可能的实现方式中,第一模块包括处理器、存储器、PON媒体访问控制(medium access control,MAC)芯片,收发器和时间控制模块,第二模块也包括处理器、存储器、PON媒体访问控制(medium access control,MAC)芯片,收发器和时间控制模块;第一模块处理器用于控制第一模块完成测距和时间同步,第一模块PON MAC芯片用于在第一模块处理器的控制下,完成与OLT间的数据转发,第一模块收发器用于通过第一ODN与OLT进行通信,第一模块时间控制模块用于控制第一模块时间;第二模块收发器用于通过第二ODN与OLT通信,第二模块PON MAC芯片用于在第二模块处理器的控制下,完成与OLT间的数据收发,第二模块处理器用于对接收到的所述时间同步消息进行处理,在第二模块的计数器数值为K时,将第二模块时间设置为第一时间戳标识的时间,第二模块时间控制模块用于根据第二模块处理器的设定控制第二模块时间;第二模块处理器还用于根据第一模块时间和第二模块时间确定第一时间差。In a possible implementation manner of the second aspect, the first module includes a processor, a memory, a PON medium access control (MAC) chip, a transceiver and a time control module, and the second module also includes a processor, Memory, PON media access control (medium access control, MAC) chip, transceiver and time control module; the first module processor is used to control the first module to complete ranging and time synchronization, and the first module PON MAC chip is used for the first module. Under the control of the module processor, data forwarding with the OLT is completed, the first module transceiver is used to communicate with the OLT through the first ODN, the first module time control module is used to control the first module time; the second module transceiver is used for The second ODN communicates with the OLT, the second module PON MAC chip is used to complete the data transmission and reception with the OLT under the control of the second module processor, and the second module processor is used for receiving the time synchronization message. Processing, when the counter value of the second module is K, the second module time is set to the time marked by the first time stamp, and the second module time control module is used to control the second module time according to the setting of the second module processor ; The second module processor is further configured to determine the first time difference according to the first module time and the second module time.
在第二方面的一种可能的实现方式中,第一模块还包括以太MAC芯片,第二模块还包括以太MAC芯片,第一模块以太MAC芯片和第二模块以太MAC芯片通过以太链路互通;第一模块处理器还用于通过第一模块以太MAC芯片向第二模块以太MAC芯片发送第一报文;第二模块以太MAC芯片用于将第一报文转发至第二模块处理器处理;第二模块处理器,还用于在第一报文中添加接收时间戳,接收时间戳为所述第二模块时间下,第二模块接收第一报文时刻的时间;确定第二时间差,第二时间差为接收时间戳和发送时间戳的差值;根据第二时间差和以太链路时延确定第一时间差,第一时间差为第二时间差与以太链路时延相加的和,以太链路时延为第一模块和第二模块间通过以太链路进行通信的时延。In a possible implementation manner of the second aspect, the first module further includes an Ethernet MAC chip, the second module further includes an Ethernet MAC chip, and the first module Ethernet MAC chip and the second module Ethernet MAC chip communicate with each other through an Ethernet link; The first module processor is further configured to send the first packet to the second module Ethernet MAC chip through the first module Ethernet MAC chip; the second module Ethernet MAC chip is configured to forward the first packet to the second module processor for processing; The second module processor is further configured to add a receiving time stamp to the first message, where the receiving time stamp is the time when the second module receives the first message under the time of the second module; determining the second time difference, the first The second time difference is the difference between the receiving time stamp and the sending time stamp; the first time difference is determined according to the second time difference and the Ethernet link delay, and the first time difference is the sum of the second time difference and the Ethernet link delay. The delay is the delay of communication between the first module and the second module through the Ethernet link.
在第二方面的一种可能的实现方式中,第二模块处理器还用于根据ONU响应时长,零距离等效时延和第一时间差,确定所述第二模块与所述OLT通信的均衡时延。In a possible implementation manner of the second aspect, the second module processor is further configured to determine the balance of the communication between the second module and the OLT according to the ONU response time, the zero-distance equivalent delay and the first time difference time delay.
第三方面,本申请提供一种PON通信系统,该PON系统包括OLT和第一或第二方面所述的ONU。In a third aspect, the present application provides a PON communication system, where the PON system includes an OLT and the ONU described in the first or second aspect.
第四方面,本申请提供一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行如第一方面所述的方法。In a fourth aspect, the present application provides a computer-readable storage medium comprising instructions that, when executed on a computer, cause the computer to perform the method of the first aspect.
第五方面,本申请提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行如第一方面所述的方法。In a fifth aspect, the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of the first aspect.
附图说明Description of drawings
图1为本申请实施例提供的一种PON系统架构示意图;1 is a schematic diagram of a PON system architecture provided by an embodiment of the present application;
图2为本申请实施例提供的一种PON系统测距原理示意图;FIG. 2 is a schematic diagram of the ranging principle of a PON system provided by an embodiment of the present application;
图3为本申请实施例提供的一种PON系统组网结构示意图;3 is a schematic diagram of the networking structure of a PON system according to an embodiment of the present application;
图4为本申请实施例提供的一种PON系统时间同步示意图;4 is a schematic diagram of time synchronization of a PON system provided by an embodiment of the present application;
图5为本申请实施例提供的一种ONU设备结构示意图。FIG. 5 is a schematic structural diagram of an ONU device according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.
本申请实施例的技术方案可以应用于各种无源光网络系统,例如,下一代PON(next-generation PON,NG-PON)、NG-PON1、NG-PON2、千兆比特PON(gigabit-capable PON,GPON)、10吉比特每秒PON(10gigabit per second PON,XG-PON)、对称10吉比特无源光网络(10-gigabit-capable symmetric passive optical network,XGS-PON)、以太网PON(Ethernet PON,EPON)、10吉比特每秒EPON(10gigabit per second EPON,10G-EPON)、下一代EPON(next-generation EPON,NG-EPON)、波分复用(wavelength-division multiplexing,WDM)PON、时分波分堆叠复用(time-and wavelength-division multiplexing,TWDM)PON、点对点(point-to-point,P2P)WDM PON(P2P-WDM PON)、异步传输模式PON(asynchronous transfer mode PON,APON)、宽带PON(broadband PON,BPON),等等,以及25吉比特每秒PON(25 gigabit per second PON,25G-PON)、50吉比特每秒PON(50 gigabit per second PON,50G-PON)、100吉比特每秒PON(100 gigabit per second PON,100G-PON)、25吉比特每秒EPON(25 gigabit per second EPON,25G-EPON)、50吉比特每秒EPON(50 gigabit per second EPON,50G-EPON)、100吉比特每秒EPON(100 gigabit per second EPON,100G-EPON),以及其他速率的GPON、EPON等。The technical solutions of the embodiments of the present application can be applied to various passive optical network systems, for example, next-generation PON (NG-PON), NG-PON1, NG-PON2, gigabit-capable PON (next-generation PON, NG-PON) PON, GPON), 10 gigabit per second PON (10 gigabit per second PON, XG-PON), symmetric 10 gigabit passive optical network (10-gigabit-capable symmetric passive optical network, XGS-PON), Ethernet PON ( Ethernet PON, EPON), 10 gigabit per second EPON (10 gigabit per second EPON, 10G-EPON), next-generation EPON (next-generation EPON, NG-EPON), wavelength-division multiplexing (wavelength-division multiplexing, WDM) PON , Time-and wavelength-division multiplexing (TWDM) PON, point-to-point (P2P) WDM PON (P2P-WDM PON), asynchronous transfer mode PON (asynchronous transfer mode PON, APON) ), broadband PON (broadband PON, BPON), etc., and 25 gigabit per second PON (25 gigabit per second PON, 25G-PON), 50 gigabit per second PON (50 gigabit per second PON, 50G-PON) , 100 gigabit per second PON (100 gigabit per second PON, 100G-PON), 25 gigabit per second EPON (25 gigabit per second EPON, 25G-EPON), 50 gigabit per second EPON (50 gigabit per second EPON, 50G-EPON), 100 gigabit per second EPON (100 gigabit per second EPON, 100G-EPON), and other rates of GPON, EPON, etc.
图1为一种PON系统架构示意图,如图1所示,PON系统100包括至少一个OLT 110、至少一个ODN 120和多个ONU 130。其中,OLT 110为PON系统100提供网络侧接口,ONU 130为PON系统100提供用户侧接口,与ODN 120相连。如果ONU 130直接提供用户端口功能,则称为光网络终端(Optical Network Terminal,ONT)。为了便于描述,下文所提到的ONU130统指可以直接提供用户端口功能的ONT和提供用户侧接口的ONU。ODN 120是由光纤和无源分光器件组成的网络,用于连接OLT 110设备和ONU 130设备,用于分发或复用OLT 110和ONU 130之间的数据信号。FIG. 1 is a schematic diagram of a PON system architecture. As shown in FIG. 1 , the PON system 100 includes at least one OLT 110 , at least one ODN 120 and multiple ONUs 130 . The OLT 110 provides a network-side interface for the PON system 100, and the ONU 130 provides a user-side interface for the PON system 100 and is connected to the ODN 120. If the ONU 130 directly provides the user port function, it is called an optical network terminal (Optical Network Terminal, ONT). For ease of description, the ONU 130 mentioned below collectively refers to an ONT that can directly provide a user port function and an ONU that provides a user side interface. ODN 120 is a network composed of optical fibers and passive optical splitting devices, used to connect OLT 110 equipment and ONU 130 equipment, and used to distribute or multiplex data signals between OLT 110 and ONU 130.
在该PON系统100中,从OLT 110到ONU 130的方向定义为下行方向,而从ONU 130到OLT 110的方向定义为上行方向。在下行方向,OLT 110采用时分复用(Time Division Multiplexing,TDM)方式将下行数据广播给该OLT 110管理的多个ONU 130,各个ONU 130只接收携带自身标识的数据;而在上行方向,多个ONU 130采用时分多址(Time Division Multiple Access,TDMA)的方式与OLT 110进行通信,每个ONU 130按照OLT 110为其分配的时域资源发送上行数据。采用上述机制,OLT 110发送的下行光信号为连续光信号,而ONU 130发送的上行光信号为突发光信号。In the PON system 100, the direction from the OLT 110 to the ONU 130 is defined as the downstream direction, and the direction from the ONU 130 to the OLT 110 is defined as the upstream direction. In the downstream direction, the OLT 110 adopts the time division multiplexing (Time Division Multiplexing, TDM) method to broadcast the downstream data to the multiple ONUs 130 managed by the OLT 110, and each ONU 130 only receives the data carrying its own identification; Each ONU 130 communicates with the OLT 110 in a time division multiple access (Time Division Multiple Access, TDMA) manner, and each ONU 130 sends uplink data according to the time domain resources allocated by the OLT 110. Using the above mechanism, the downlink optical signal sent by the OLT 110 is a continuous optical signal, and the uplink optical signal sent by the ONU 130 is a burst optical signal.
该OLT 110通常位于中心局(Central Office,CO),可以统一管理至少一个ONU 130,并在ONU 130与上层网络之间传输数据。具体来说,该OLT 110可以充当ONU 130与所述上层网络(比如因特网、公共交换电话网络(Public Switched Telephone Network,PSTN)之间的媒介,将从上层网络接收到的数据转发到ONU 130,以及将从ONU 130接收到的数据转发到该上层网络。该OLT 110的具体结构配置可能会因该PON系统100的具体类型而异,比如,在一种实施例中,该OLT 110可以包括发射机和接收机,该发射机用于向ONU 130发送下行连续光信号,该接收机用于接收来自ONU 130的上行突发光信号,其中该下行光信号和上行光信号可以通过该ODN 120进行传输,但本发明实施例不限于此。The OLT 110 is usually located in a central office (Central Office, CO), can manage at least one ONU 130 uniformly, and transmit data between the ONU 130 and the upper-layer network. Specifically, the OLT 110 can act as a medium between the ONU 130 and the upper-layer network (such as the Internet, a public switched telephone network (PSTN), and forward the data received from the upper-layer network to the ONU 130, And forward the data received from ONU 130 to the upper layer network. The specific structural configuration of the OLT 110 may vary depending on the specific type of the PON system 100, for example, in one embodiment, the OLT 110 may include transmitting The transmitter and the receiver, the transmitter is used to send the downlink continuous optical signal to the ONU 130, and the receiver is used to receive the uplink burst optical signal from the ONU 130, wherein the downlink optical signal and the uplink optical signal can be carried out through the ODN 120. transmission, but the embodiment of the present invention is not limited thereto.
该ONU 130可以分布式地设置在用户侧位置(比如用户驻地)。该ONU 130可以为用于与OLT 110和用户进行通信的网络设备,具体而言,该ONU 130可以充当OLT 110与用户之间的媒介,例如,ONU 130可以将从该OLT 110接收到的数据转发到用户,以及将从该用户接收到的数据转发到OLT 110。The ONUs 130 may be distributed in user-side locations (such as customer premises). The ONU 130 may be a network device for communicating with the OLT 110 and the user, specifically, the ONU 130 may act as an intermediary between the OLT 110 and the user, for example, the ONU 130 may receive data from the OLT 110 Forwarding to the user, and forwarding of data received from the user to the OLT 110.
该ODN 120可以是一个数据分发网络,可以包括光纤、光耦合器、分光器或其他设备。 在一个实施例中,该光纤、光耦合器、分光器或其他设备可以是无源光器件,具体来说,该光纤、光耦合器、分光器或其他设备可以是在OLT 110和ONU 130之间分发数据信号时不需要电源支持的器件。具体地说,以光分路器(Splitter)为例,该光分路器可以通过主干光纤连接到OLT 110,并分别通过多个分支光纤连接到多个ONU 130,从而实现OLT 110和ONU 130之间的点到多点连接。另外,在其他实施例中,该ODN 120还可以包括一个或多个处理设备,例如,光放大器或者中继设备(Relay device)。另外,ODN 120具体可以从OLT 110延伸到多个ONU 130,但也可以配置成其他任何点到多点的结构,本发明实施例不限于此。The ODN 120 may be a data distribution network, which may include optical fibers, optical couplers, optical splitters, or other devices. In one embodiment, the optical fiber, optical coupler, optical splitter or other device may be a passive optical device, specifically, the optical fiber, optical coupler, optical splitter or other device may be between the OLT 110 and the ONU 130 devices that do not require power supply when distributing data signals between Specifically, taking an optical splitter (Splitter) as an example, the optical splitter can be connected to the OLT 110 through a trunk fiber, and connected to a plurality of ONUs 130 through a plurality of branch fibers respectively, thereby realizing the OLT 110 and the ONU 130. point-to-multipoint connections. In addition, in other embodiments, the ODN 120 may further include one or more processing devices, for example, an optical amplifier or a relay device (Relay device). In addition, the ODN 120 may specifically extend from the OLT 110 to multiple ONUs 130, but may also be configured into any other point-to-multipoint structure, and the embodiment of the present invention is not limited thereto.
对OLT而言,各个不同的ONU到OLT的逻辑距离不相等,光信号在光纤上的传输时间不同,到达各ONU的时刻不同。同时,OLT与ONU的往返延迟(Round Trip Delay,RTD)也会随着时间和环境的变化而变化。为了保证每一个ONU向OLT发送的上行数据在ODN光纤汇合后,插入指定的时隙,彼此间不发生碰撞,且不要间隙太大,OLT必须通过测距(ranging)对每一个ONU与OLT之间的距离进行精确测定,以便控制每个ONU发送上行数据的时刻。OLT在ONU第一次注册时就会启动测距功能,获取ONU的往返延迟RTD,计算出每个ONU的物理距离,并根据ONU的物理距离指定合适的均衡时延(Equalization Delay,EqD)参数。OLT在测距的过程中需要开窗,即Quiet Zone,暂停其他ONU的上行发送通道。OLT通过为ONU指定EqD,使得各个ONU发送的数据帧同步,保证每个ONU发送数据时不会在分光器上产生冲突。相当所有ONU都在同一逻辑距离上,在对应的时隙发送数据即可,从而避免上行信元发生碰撞冲突。For the OLT, the logical distances from different ONUs to the OLT are not equal, the transmission time of the optical signal on the optical fiber is different, and the time when it reaches each ONU is different. At the same time, the round trip delay (Round Trip Delay, RTD) between the OLT and the ONU also changes with time and the environment. In order to ensure that the uplink data sent by each ONU to the OLT is inserted into the designated time slot after the ODN fiber is converged, and there is no collision with each other and the gap is not too large, the OLT must measure the distance between each ONU and the OLT through ranging (ranging). The distance between them can be accurately measured in order to control the time when each ONU sends the uplink data. The OLT will start the ranging function when the ONU registers for the first time, obtain the RTD of the round-trip delay of the ONU, calculate the physical distance of each ONU, and specify the appropriate equalization delay (Equalization Delay, EqD) parameter according to the physical distance of the ONU . In the process of ranging, the OLT needs to open the window, that is, the Quiet Zone, and suspend the upstream transmission channels of other ONUs. By specifying EqD for the ONU, the OLT synchronizes the data frames sent by each ONU to ensure that each ONU will not cause conflict on the optical splitter when sending data. Quite all the ONUs are in the same logical distance, and it is enough to send data in the corresponding time slot, so as to avoid collision and collision of upstream cells.
GPON的测距是在ONU注册阶段完成的,在ONU收到OLT发送的SN请求消息时,ONU等待一定的应答时间之后,返回一个SN应答消息。OLT在收到此应答消息并验证合法之后,给该ONU分配一个ONU-ID,ONU收到分配的ONU-ID之后进入测距状态。The ranging of GPON is completed in the ONU registration phase. When the ONU receives the SN request message sent by the OLT, the ONU returns an SN response message after waiting for a certain response time. After receiving the reply message and verifying the validity, the OLT assigns an ONU-ID to the ONU, and the ONU enters the ranging state after receiving the assigned ONU-ID.
OLT计算并分配均衡时延的原理如图2所示。假设OLT在T1时刻向ONU发送测距请求,同时命令其它ONU停止发送上行业务,在上行时隙中打开一个测距窗口供这个ONU使用。ONU在T2时刻收到该测距请求,并在进行内部处理后,在T3时刻发送一个回应测距请求的上行帧,OLT在T4时刻收到该回应测距请求的上行帧。那么OLT可以根据T4和T1计算获得该ONU的RTD。图1中的零距离等效时延Teqd,是OLT根据最远光纤长度设定的一个值,其大于等于逻辑距离最远的ONU的RTD。为保证OLT同一个PON接口所连接的所有ONU的上行数据相位相同,OLT根据如下原则为OLT同一PON接口下的所有ONU分配EqD,其中i表示ONU编号:The principle of the OLT calculating and distributing the equalization delay is shown in Figure 2. It is assumed that the OLT sends a ranging request to the ONU at time T1, and at the same time commands other ONUs to stop sending uplink services, and opens a ranging window in the uplink time slot for this ONU to use. The ONU receives the ranging request at time T2, and after internal processing, sends an uplink frame responding to the ranging request at time T3, and the OLT receives the uplink frame responding to the ranging request at time T4. Then the OLT can calculate and obtain the RTD of the ONU according to T4 and T1. The zero-distance equivalent delay Teqd in Figure 1 is a value set by the OLT according to the length of the farthest optical fiber, which is greater than or equal to the RTD of the ONU with the farthest logical distance. To ensure that the upstream data phases of all ONUs connected to the same PON interface of the OLT are the same, the OLT allocates EqD to all ONUs connected to the same PON interface of the OLT according to the following principles, where i represents the ONU number:
Teqd=RTD(i)+EqD(i)       (1)Teqd=RTD(i)+EqD(i) (1)
EqD(i)=Teqd-RTD(i)       (2)EqD(i)=Teqd-RTD(i) (2)
后续ONU在处理完OLT的请求后,须先等待EqD时间,再发送上行数据或上行帧,这样能保证OLT同一PON口下的所有ONU的上行数据相位相同。After the subsequent ONU processes the request of the OLT, it must wait for the EqD time before sending the upstream data or upstream frame, which can ensure that the upstream data phase of all ONUs under the same PON port of the OLT is the same.
基于测距过程确定的EqD(i),OLT和ONU间还需要进行时间同步。首先需要说明的是,ONU内部各PON模块和OLT内部分别有时间控制模块进行计时,在没有进行时间同步的情况下,同一时刻下,ONU的时间和OLT的时间可能是不相同的,甚至ONU内部各PON模块间的时间也可能是不同的。一个比较好理解的例子是,同一时刻,北京时间是18点,伦敦时间是10点。因此本申请中采用ONU时间或OLT时间等类似的描述,表示不同设备或模块的计时。Based on the EqD(i) determined in the ranging process, time synchronization is also required between the OLT and the ONU. First of all, it should be noted that each PON module in the ONU and the time control module in the OLT respectively have time control modules. In the case of no time synchronization, the time of the ONU and the time of the OLT may be different at the same moment, and even the ONU may be different. The time may also be different between the PON modules inside. A well-understood example is that at the same time, Beijing time is 18:00 and London time is 10:00. Therefore, similar descriptions such as ONU time or OLT time are used in this application to represent the timing of different devices or modules.
ITU G.984.3标准定义了一种时间同步方案。该方案中,OLT向第i个ONU发送时间同步消息,其中携带OLT的时间戳Tsend(i),第i个ONU在收到时间同步消息后,根据EqD(i)计算获得时间同步消息的传输时延,将ONU的本地时间Trecv(i)设置为Tsend(i)+时间同步消息的传输时延,即The ITU G.984.3 standard defines a time synchronization scheme. In this scheme, the OLT sends a time synchronization message to the ith ONU, which carries the timestamp Tsend(i) of the OLT. After receiving the time synchronization message, the ith ONU calculates and obtains the transmission of the time synchronization message according to EqD(i). Delay, set the local time Trecv(i) of the ONU to Tsend(i) + the transmission delay of the time synchronization message, that is
Trecv(i)=Tsend(i)+(Teqd-EqD(i)-RspTime(i))*(nd/(nd+nu))      (3)Trecv(i)=Tsend(i)+(Teqd-EqD(i)-RspTime(i))*(nd/(nd+nu))    (3)
其中,EqD(i)为第i个ONU测距后确定的均衡时延,RspTime(i)为第i个ONU的响应时长(如图1中的T3-T2的时长),nd为下行波长的折射率,nu为上行波长的折射率,(Teqd-EqD(i)-RspTime(i))*(nd/(nd+nu))为根据EqD(i)计算获得时间同步消息的传输时延。Among them, EqD(i) is the equalization delay determined by the i-th ONU after ranging, RspTime(i) is the response time of the i-th ONU (the duration of T3-T2 in Figure 1), and nd is the downlink wavelength Refractive index, nu is the refractive index of the upstream wavelength, (Teqd-EqD(i)-RspTime(i))*(nd/(nd+nu)) is the transmission delay of the time synchronization message obtained by calculating EqD(i).
本领域技术人员需要理解的是,为突出重点,本申请实施例中所描述的测距和时间同步流程可能对某些消息流程进行了概略描述;如具体实现中,OLT发送的时间同步消息中还可以携带Tsend(i)时刻所对应的OLT的超帧计数值,第i个ONU在收到时间同步消息后,在ONU的超帧计数值等于时间同步消息中的OLT的超帧计数值时,将ONU的本地时间Trecv(i)设置为Tsend(i)+时间同步消息的传输时延。It should be understood by those skilled in the art that, in order to highlight the key points, the ranging and time synchronization processes described in the embodiments of this application may briefly describe some message processes; for example, in the specific implementation, the time synchronization message sent by the OLT It can also carry the superframe count value of the OLT corresponding to the time Tsend(i). After the i-th ONU receives the time synchronization message, when the superframe count value of the ONU is equal to the superframe count value of the OLT in the time synchronization message , and set the local time Trecv(i) of the ONU as Tsend(i) + the transmission delay of the time synchronization message.
图3为适用于本申请各实施例的一种系统架构。图3所示的系统架构为图1所示系统架构的进一步细化。图3中所示的OLT,ODN和ONU分别为图1中OLT 110,ODN 120和ONU 130的具体实施例。图3中,每个ONU包括两个PON模块,ONU-PON-0和ONU-PON-1,ONU-PON-0和ONU-PON-1通过不同的ODN分别与OLT通信;OLT也包括两个PON模块,OLT-PON-0和OLT-PON-1,ONU-PON-0通过ODN-0与OLT-PON-0通信,ONU-PON-1通过ODN-1与OLT-PON-1通信。ONU的两个PON模块分别在所连接的OLT的PON模块进行注册,即ONU-PON-0通过ODN-0在OLT-PON-0进行注册,ONU-PON-1通过ODN-1在OLT-PON-1进行注册。ONU-PON-0和ONU-PON-1相当于两个虚拟的ONU,通过不同的ODN与OLT进行通信。当一个ONU需要测距时,OLT向该ONU发送测距请求的同时,还命令其它ONU停止发送上行业务,因此测距过程会对进行测距的ONU和其它ONU所传输的业务的实时性造成影响。由于ONU-PON-0和ONU-PON-1通过不同的ODN网络与OLT通信,现有技术中,OLT需要分别对ONU-PON-0和ONU-PON-1进行测距。即每一个ONU的每一个PON模块都需要进行测距,测距造成的时延问题会更加突出。FIG. 3 is a system architecture applicable to various embodiments of the present application. The system architecture shown in FIG. 3 is a further refinement of the system architecture shown in FIG. 1 . The OLT, ODN and ONU shown in FIG. 3 are specific embodiments of the OLT 110, ODN 120 and ONU 130 in FIG. 1, respectively. In Figure 3, each ONU includes two PON modules, ONU-PON-0 and ONU-PON-1, and ONU-PON-0 and ONU-PON-1 communicate with the OLT through different ODNs respectively; the OLT also includes two PON module, OLT-PON-0 and OLT-PON-1, ONU-PON-0 communicates with OLT-PON-0 through ODN-0, and ONU-PON-1 communicates with OLT-PON-1 through ODN-1. The two PON modules of the ONU are registered in the PON module of the connected OLT respectively, that is, ONU-PON-0 is registered in OLT-PON-0 through ODN-0, and ONU-PON-1 is registered in OLT-PON through ODN-1 -1 for registration. ONU-PON-0 and ONU-PON-1 are equivalent to two virtual ONUs, which communicate with the OLT through different ODNs. When an ONU needs ranging, the OLT sends a ranging request to the ONU, and also orders other ONUs to stop sending uplink services. Therefore, the ranging process will affect the real-time performance of the ranging ONU and the services transmitted by other ONUs. influences. Since ONU-PON-0 and ONU-PON-1 communicate with the OLT through different ODN networks, in the prior art, the OLT needs to perform ranging on ONU-PON-0 and ONU-PON-1 respectively. That is, each PON module of each ONU needs to perform ranging, and the delay problem caused by ranging will be more prominent.
为解决开窗测距带来的时延问题,本申请提出一种不需要开窗的测距方案,该方案可以应用于如图3所示的PON网络架构。下面基于图4,对本申请所提出的测距方案进行描述。图4为OLT和ONU间通信的时序示意图。OLT所对应的横轴代表OLT的时间轴;ONU-PON-0所对应的横轴代表ONU-PON-0的时间轴;ONU-PON-1所对应的横轴代表ONU-PON-1的时间轴。ONU-PON-0为图3中任一ONU的其中一个PON模块,ONU-PON-1为该ONU的另外一个PON模块。OLT包括两个PON模块,OLT-PON-0和OLT-PON-1。ONU的各PON模块和OLT的各PON模块的连接关系如图3所述。In order to solve the time delay problem caused by windowed ranging, the present application proposes a ranging solution that does not require windowing, and the solution can be applied to the PON network architecture as shown in FIG. 3 . The following describes the ranging solution proposed by the present application based on FIG. 4 . FIG. 4 is a sequence diagram of communication between the OLT and the ONU. The horizontal axis corresponding to OLT represents the time axis of OLT; the horizontal axis corresponding to ONU-PON-0 represents the time axis of ONU-PON-0; the horizontal axis corresponding to ONU-PON-1 represents the time axis of ONU-PON-1 axis. ONU-PON-0 is one of the PON modules of any ONU in FIG. 3 , and ONU-PON-1 is another PON module of the ONU. The OLT includes two PON modules, OLT-PON-0 and OLT-PON-1. The connection relationship between each PON module of the ONU and each PON module of the OLT is as shown in FIG. 3 .
步骤1、ONU上电后,ONU-PON-0完成与OLT-PON-0的测距和时间同步。ONU-PON-0上维护的时间与OLT-PON-0的时间一致。ONU-PON-0与OLT-PON-0可以参照ITU标准定义方法进行测距和时间同步。如假设OLT-PON-0向ONU-PON-0发送时间同步消息,时间同步消息中携带Ts0时刻的时间戳,ONU-PON-0在一定的传输延迟(如dt0)后收到该时间同步消息,根据公式(3)可知, Step 1. After ONU is powered on, ONU-PON-0 completes ranging and time synchronization with OLT-PON-0. The maintenance time on ONU-PON-0 is the same as the time on OLT-PON-0. ONU-PON-0 and OLT-PON-0 can perform ranging and time synchronization according to the methods defined by ITU standards. For example, suppose that OLT-PON-0 sends a time synchronization message to ONU-PON-0, the time synchronization message carries the time stamp of Ts0, and ONU-PON-0 receives the time synchronization message after a certain transmission delay (such as dt0). , according to formula (3), it can be known that,
dt0=(Teqd-EqD(0)-RspTime(0))*(nd/(nd+nu))      (4)dt0=(Teqd-EqD(0)-RspTime(0))*(nd/(nd+nu))    (4)
其中,EqD(0)为ONU-PON-0对应的均衡时延,RspTime(0)为ONU-PON-0的响应时长。Among them, EqD(0) is the equalization delay corresponding to ONU-PON-0, and RspTime(0) is the response time of ONU-PON-0.
ONU-PON-0基于dt0和时间同步消息中的Ts0完成与OLT-PON-0的时间同步,在Tr0时刻,ONU-PON-0时间与OLT-PON-0时间均为Ts0+dt0;其中Tr0时刻,ONU-PON-0的超帧计数值与时间同步消息中OLT-PON-0的超帧计数值相同。ONU-PON-0 completes time synchronization with OLT-PON-0 based on dt0 and Ts0 in the time synchronization message. At Tr0 time, ONU-PON-0 time and OLT-PON-0 time are both Ts0+dt0; where Tr0 At the moment, the superframe count value of ONU-PON-0 is the same as the superframe count value of OLT-PON-0 in the time synchronization message.
需要说明的是,图4中Ts0并非指OLT-PON-0发送时间同步消息时刻的时间戳,而是指OLT-PON-0发送的时间同步消息中所携带的时间戳;Tr0并非指ONU-PON-0接收到时间同步消息时刻的时间戳,而是ONU-PON-0完成时间同步消息时刻的时间戳(如Tr0对应ONU-PON-0 的超帧计数值等于时间同步消息中超帧计数值的时刻)。It should be noted that Ts0 in Figure 4 does not refer to the time stamp when the time synchronization message is sent by OLT-PON-0, but refers to the time stamp carried in the time synchronization message sent by OLT-PON-0; Tr0 does not refer to the ONU- The timestamp when PON-0 receives the time synchronization message, but the timestamp when ONU-PON-0 completes the time synchronization message (for example, the superframe count value of Tr0 corresponding to ONU-PON-0 is equal to the superframe count value in the time synchronization message. time).
步骤2、OLT通过OLT-PON-1向ONU-PON-1发送时间同步消息,时间同步消息中携带OLT-PON-1的时间戳Ts1。ONU-PON-1在经过dt1的传输延迟后,接收OLT下发的时间同步消息,记录同步消息中包含的时间戳Ts1,并以Ts1为基准,进行后续的计时或时间维护;具体地,在ONU-PON-1的超帧计数值与时间同步消息中OLT-PON-1的超帧计数值相同的时刻,如Tr1时刻,ONU-PON-1将ONU-PON-1时间设定为Ts1,而此时OLT-PON-1时间为Ts1+dt1。因此,ONU-PON-1并没有真正完成与OLT-PON-1的时间同步,同一时刻下,ONU-PON-1时间与OLT时间之间存在一个差值dt1。由于ONU-PON-0完成了与OLT的时间同步(OLT-PON-0与OLT-PON-1时间同步),因此,同一时刻下,ONU-PON-0时间与ONU-PON-1时间的差值也是dt1。需要说明的是,Ts0和Ts1在时间上不分先后。OLT可以先向ONU-PON-0发送时间同步消息,也可以先向ONU-PON-1发送时间同步消息,无论哪种情况,ONU-PON-0与ONU-PON-1两个模块按照步骤1和步骤2处理时间同步消息后,ONU-PON-0时间与ONU-PON-1时间的时差为dt1,即相同时刻下Step 2: The OLT sends a time synchronization message to the ONU-PON-1 through the OLT-PON-1, and the time synchronization message carries the time stamp Ts1 of the OLT-PON-1. After the transmission delay of dt1, the ONU-PON-1 receives the time synchronization message sent by the OLT, records the time stamp Ts1 contained in the synchronization message, and performs subsequent timing or time maintenance based on Ts1; When the superframe count value of ONU-PON-1 is the same as the superframe count value of OLT-PON-1 in the time synchronization message, such as time Tr1, ONU-PON-1 sets the time of ONU-PON-1 to Ts1, At this time, the time of OLT-PON-1 is Ts1+dt1. Therefore, ONU-PON-1 does not really complete the time synchronization with OLT-PON-1. At the same time, there is a difference dt1 between ONU-PON-1 time and OLT time. Since ONU-PON-0 has completed the time synchronization with OLT (OLT-PON-0 and OLT-PON-1 time synchronization), therefore, at the same time, the difference between ONU-PON-0 time and ONU-PON-1 time The value is also dt1. It should be noted that Ts0 and Ts1 are in no particular order in time. The OLT can first send a time synchronization message to ONU-PON-0, or it can first send a time synchronization message to ONU-PON-1. In either case, the two modules of ONU-PON-0 and ONU-PON-1 follow step 1 After processing the time synchronization message with step 2, the time difference between ONU-PON-0 time and ONU-PON-1 time is dt1, that is, at the same time
ONU-PON-0时间-ONU-PON-1时间=dt1      (6)ONU-PON-0 time-ONU-PON-1 time=dt1 (6)
如步骤1中所述,dt1的具体数值可以通过如下公式表达As mentioned in step 1, the specific value of dt1 can be expressed by the following formula
dt1=(Teqd-EqD(1)-RspTime(1))*(nd/(nd+nu))       (7)dt1=(Teqd-EqD(1)-RspTime(1))*(nd/(nd+nu))    (7)
其中,EqD(1)为ONU-PON-1对应的均衡时延,RspTime(1)为ONU-PON-1的响应时长。Among them, EqD(1) is the equalization delay corresponding to ONU-PON-1, and RspTime(1) is the response time of ONU-PON-1.
通过公式7可以看出,dt1和EqD(1)具备一定的等量关系,如果可以获知dt1,就可以通过公式6计算获得EqD(1);即,不需要通过开窗测距的方法就可以获知EqD(1),大大减少了ONU-PON-1上线注册的时间延迟。It can be seen from Equation 7 that dt1 and EqD(1) have a certain equivalent relationship. If dt1 can be known, EqD(1) can be calculated by Equation 6; Knowing EqD(1) greatly reduces the time delay of ONU-PON-1 online registration.
需要说明的是,图4中Ts1并非指OLT-PON-1发送时间同步消息时刻的时间戳,而是指OLT-PON-1发送的时间同步消息中所携带的时间戳;Tr1并非指ONU-PON-1接收到时间同步消息时刻的时间戳,而是ONU-PON-1完成时间同步消息时刻的时间戳。It should be noted that Ts1 in Figure 4 does not refer to the time stamp at the time when OLT-PON-1 sends the time synchronization message, but refers to the time stamp carried in the time synchronization message sent by OLT-PON-1; Tr1 does not refer to ONU- The time stamp of the time when PON-1 receives the time synchronization message is the time stamp of the time when ONU-PON-1 completes the time synchronization message.
步骤3、ONU-PON-0向ONU-PON-1发送1588报文。所谓1588,指IEEE 1588协议定义的时钟同步协议标准,此标准的目的是为了精确地把系统中分散、独立运行的时钟同步起来;1588报文指符合此协议的时间同步报文。ONU-PON-0发出的1588报文中包括发发送时间戳,发送时间戳用于指示发送1588报文的时刻,ONU-PON-0时间Ts2。ONU-PON-1接收1588报文后在该1588报文中写入接收时间戳,接收时间戳用于指示接收1588报文的时刻,ONU-PON-1时间Tr2。根据公式6可知,ONU-PON-0发送1588报文的时刻Ts2,ONU-PON-1的本地时间应该是Ts2-dt1。假设1588报文从ONU-PON-0发送到ONU-PON-1的传输时间为dt2,则接收时间戳和发送时间戳的差值可以通过如下公式表示Step 3. ONU-PON-0 sends a 1588 message to ONU-PON-1. The so-called 1588 refers to the clock synchronization protocol standard defined by the IEEE 1588 protocol. The purpose of this standard is to accurately synchronize the scattered and independent clocks in the system; the 1588 message refers to the time synchronization message that conforms to this protocol. The 1588 message sent by the ONU-PON-0 includes a sending time stamp, and the sending time stamp is used to indicate the time when the 1588 message was sent, and the ONU-PON-0 time Ts2. After receiving the 1588 message, ONU-PON-1 writes a reception time stamp in the 1588 message, and the reception time stamp is used to indicate the time of receiving the 1588 message, the ONU-PON-1 time Tr2. According to formula 6, the time Ts2 when ONU-PON-0 sends the 1588 message, the local time of ONU-PON-1 should be Ts2-dt1. Assuming that the transmission time of 1588 packets sent from ONU-PON-0 to ONU-PON-1 is dt2, the difference between the receiving timestamp and the sending timestamp can be expressed by the following formula
Ts2-Tr2=Ts2-(Ts2-dt1+dt2)=dt1-dt2        (8)Ts2-Tr2=Ts2-(Ts2-dt1+dt2)=dt1-dt2 (8)
其中,dt2为ONU内部ONU-PON-0和ONU-PON-1两个模块间的以太链路时延或以太链路传输时间,可以提前预置在ONU软件中。因此,ONT根据1588报文中的接收时间戳和发送时间戳,可以计算获得dt1,并进一步获得EqD(1)。后续ONU-PON-1将EqD(1)作为与OLT通信的均衡时延,即发送上行消息前至少等待EqD(1)对应的时长。需要说明的是,可以通过1588时间同步协议提前测算ONU-PON-0和ONU-PON-1两个模块间的以太链路时延;如ONU-PON-0和ONU-PON-1首先完成时间同步,然后ONU-PON-0向ONU-PON-1发送1588报文,ONU-PON-0和ONU-PON-1在发送或接收的1588报文中写入发送或接收的时间戳,ONU计算ONU-PON-1的接收时间戳和ONU-PON-0的发送时间戳的差值,该差值即为以太链路时延。还需要说明的是,ONU-PON-1确定均衡时延后,ONU-PON-1还需要修改本地维护的时间,确保与OLT保持时间同 步;ONU-PON-1可以通过dt1修改本地时间,也可以重新通过时间同步流程与ONU-PON-0或OLT完成时间同步。Among them, dt2 is the Ethernet link delay or the Ethernet link transmission time between the ONU-PON-0 and ONU-PON-1 modules inside the ONU, which can be preset in the ONU software in advance. Therefore, the ONT can calculate and obtain dt1 according to the receiving timestamp and sending timestamp in the 1588 packet, and further obtain EqD(1). The subsequent ONU-PON-1 takes EqD(1) as the equalization delay for communication with the OLT, that is, waits at least the time corresponding to EqD(1) before sending the upstream message. It should be noted that the Ethernet link delay between ONU-PON-0 and ONU-PON-1 can be calculated in advance through the 1588 time synchronization protocol; for example, ONU-PON-0 and ONU-PON-1 first complete the time delay After synchronization, ONU-PON-0 sends a 1588 message to ONU-PON-1. ONU-PON-0 and ONU-PON-1 write the sent or received timestamp in the sent or received 1588 message, and the ONU calculates The difference between the receiving timestamp of ONU-PON-1 and the sending timestamp of ONU-PON-0 is the Ethernet link delay. It should also be noted that after ONU-PON-1 determines the equalization delay, ONU-PON-1 also needs to modify the local maintenance time to ensure time synchronization with the OLT; ONU-PON-1 can modify the local time through dt1, and also Time synchronization with ONU-PON-0 or OLT can be completed again through the time synchronization process.
图4中通过发送以太报文的方式获取ONU-PON-0时间与ONU-PON-1时间的时差dt1,本领域技术人员可以理解的是,还可以通过其它方式获取ONU-PON-0时间与ONU-PON-1时间的时差。比如在同一时刻让ONU-PON-0和ONU-PON-1同时上报当前时间,或通过中断触发的方式获取ONU-PON-0时间和ONU-PON-1时间。In FIG. 4, the time difference dt1 between the ONU-PON-0 time and the ONU-PON-1 time is obtained by sending an Ethernet message. Those skilled in the art can understand that the ONU-PON-0 time and the ONU-PON-0 time can also be obtained in other ways. The time difference between ONU-PON-1 time. For example, let ONU-PON-0 and ONU-PON-1 report the current time at the same time, or obtain ONU-PON-0 time and ONU-PON-1 time by means of interrupt triggering.
可见,通过图4所述的方法,ONU-PON-1不需要进行开窗测距,就可以获得OLT到ONU的传输时延dt1,进而获得均衡时延EqD(1)。ONU1的ONU-PON-1模块不需要开窗测距,ONU-PON-1可以更快的完成注册上线流程,由于不需要开窗,不需要暂停其他ONU的上行发送通道,因此可以减少对其它ONU的业务影响;类似的,其它ONU的ONU-PON-1模块也无需进行开窗测距,同样也减少了对ONU1的ONU-PON-1模块的业务影响。当ONU-PON-1模块所传送的业务为实时业务或时延敏感型业务时,避免了由于开窗测距造成的时延。It can be seen that, through the method described in FIG. 4 , ONU-PON-1 can obtain the transmission delay dt1 from the OLT to the ONU without performing windowing and ranging, and then obtain the equalization delay EqD(1). The ONU-PON-1 module of ONU1 does not need to open the window for distance measurement, and the ONU-PON-1 can complete the registration and online process faster. Since it does not need to open the window, it does not need to suspend the upstream transmission channels of other ONUs, so it can reduce the need for other ONUs. The service impact of the ONU; similarly, the ONU-PON-1 modules of other ONUs do not need to perform windowing and ranging, which also reduces the business impact on the ONU-PON-1 module of the ONU1. When the business transmitted by the ONU-PON-1 module is a real-time business or a delay-sensitive business, the delay caused by windowing and ranging is avoided.
本申请所提出的免开窗测距的方案,可以减少PON网络业务传输的时延。ONU中的两个PON模块分别通过不同的ODN(或称之为不同的通道,第一通道和第二通道)与OLT进行通信:OLT在第一通道(如ODN-0)内完成ONT的测距,第二通道(如ODN-1)不需要进行开窗测距。第一通道为一个需要进行测距的通信通道,第一通道的通信可以基于GPON、XG-PON、XGS-PON、TWDM-PON、EPON、10G EPON等通信协议;第二通道为不需要测距的通信通道,第二通道的通信可以基于GPON、XG-PON、XGS-PON、TWDM-PON、EPON、10G EPON等通信协议。The window-free ranging solution proposed in this application can reduce the time delay of PON network service transmission. The two PON modules in the ONU communicate with the OLT through different ODNs (or called different channels, the first channel and the second channel) respectively: the OLT completes the ONT measurement in the first channel (such as ODN-0). The second channel (such as ODN-1) does not need to perform windowing ranging. The first channel is a communication channel that needs ranging, and the communication of the first channel can be based on communication protocols such as GPON, XG-PON, XGS-PON, TWDM-PON, EPON, 10G EPON; the second channel does not require ranging The communication channel of the second channel can be based on communication protocols such as GPON, XG-PON, XGS-PON, TWDM-PON, EPON, and 10G EPON.
本发明还提供一种网络设备,该网络设备为图3中所示的ONU。The present invention also provides a network device, which is the ONU shown in FIG. 3 .
如图5所示,该网络设备500包括两个模块,第一模块501和第二模块502,分别对应如上实施例中的ONU-PON-0和ONU-PON-1,如第一模块501对应ONU-PON-0,第二模块502对应ONU-PON-1。第一模块501中包括处理器5011、存储器5012、PON媒体访问控制(medium access control,MAC)芯片5013,收发器5014,,时间控制5015和以太MAC芯片5016等模块。类似的,第二模块502中包括处理器5021、存储器5022、PON媒体访问控制(medium access control,MAC)芯片5023,收发器5024,时间控制模块5025和以太MAC芯片5026等模块。As shown in FIG. 5 , the network device 500 includes two modules, a first module 501 and a second module 502 , respectively corresponding to ONU-PON-0 and ONU-PON-1 in the above embodiment, such as the first module 501 corresponding to ONU-PON-0, the second module 502 corresponds to ONU-PON-1. The first module 501 includes a processor 5011, a memory 5012, a PON medium access control (MAC) chip 5013, a transceiver 5014, a time control 5015 and an Ethernet MAC chip 5016 and other modules. Similarly, the second module 502 includes a processor 5021, a memory 5022, a PON medium access control (MAC) chip 5023, a transceiver 5024, a time control module 5025, an Ethernet MAC chip 5026 and other modules.
处理器5011和5021可以采用通用的中央处理器(Central Processing Unit,CPU),微处理器,应用专用集成电路ASIC,或者至少一个集成电路,用于执行相关程序,处理器5011和处理器5021控制第一模块和第二模块完成如上实施例中的业务逻辑,如步骤1中,处理器5011确定Ts0+dt0为接收到同步消息的绝对时间,并将该绝对时间设定到时间控制模块5015,时间控制模块5015以此时间为基准进行第一模块后续的时间维护;步骤2中,处理器5021确定Ts1,并将Ts1设定到时间控制模块5025,时间控制模块5025以此时间为基准进行第二模块后续的时间维护;步骤3中,处理器5025获取1588报文的发送时间戳和接收时间戳,并根据公式7和公式8计算确定第二模块的均衡时延。The processors 5011 and 5021 can use a general-purpose central processing unit (Central Processing Unit, CPU), a microprocessor, an application-specific integrated circuit ASIC, or at least one integrated circuit for executing related programs, and the processor 5011 and the processor 5021 control The first module and the second module complete the business logic in the above embodiment, as in step 1, the processor 5011 determines that Ts0+dt0 is the absolute time of receiving the synchronization message, and sets the absolute time to the time control module 5015, The time control module 5015 uses this time as the benchmark to perform the subsequent time maintenance of the first module; in step 2, the processor 5021 determines Ts1, and sets Ts1 to the time control module 5025, and the time control module 5025 uses this time as the benchmark to perform the first module. Subsequent time maintenance of the second module; in step 3, the processor 5025 obtains the sending time stamp and the receiving time stamp of the 1588 message, and calculates and determines the balanced delay of the second module according to formula 7 and formula 8.
存储器5012和5022可以是只读存储器(Read Only Memory,ROM),静态存储设备,动态存储设备或者随机存取存储器(Random Access Memory,RAM)。存储器5012和5022可以存储操作系统和其他应用程序。在通过软件或者固件来实现本发明实施例提供的技术方案时,用于实现本发明实施例提供的技术方案的程序代码保存在存储器5012和5022中,并由处理器5011和5021来执行。The memories 5012 and 5022 may be read only memories (Read Only Memory, ROM), static storage devices, dynamic storage devices, or random access memory (Random Access Memory, RAM). Memories 5012 and 5022 may store operating systems and other applications. When implementing the technical solutions provided by the embodiments of the present invention through software or firmware, program codes for implementing the technical solutions provided by the embodiments of the present invention are stored in the memories 5012 and 5022 and executed by the processors 5011 and 5021 .
PON MAC芯片5013和5023分别在处理器5011和5021的控制下,负责与OLT间的PON用户面数据转发。PON MAC芯片5013和5023可以包括物理编码子层和MAC控制子层。The PON MAC chips 5013 and 5023 are respectively under the control of the processors 5011 and 5021, and are responsible for the PON user plane data forwarding with the OLT. The PON MAC chips 5013 and 5023 may include a physical coding sublayer and a MAC control sublayer.
在一实施例中,处理器5011内部可以包括存储器5012,处理器5021内部可以包括存储 器5022。在另一实施例中,处理器5011和存储器5012是两个独立的结构,处理器5021和存储器5022是两个独立的结构。In one embodiment, the processor 5011 may include a memory 5012, and the processor 5021 may include a memory 5022. In another embodiment, the processor 5011 and the memory 5012 are two independent structures, and the processor 5021 and the memory 5022 are two independent structures.
在一实施例中,处理器5011和处理器5021是两个独立的处理器,存储器5012和5022是两个独立的存储器。在另一实施例中,处理器5011和处理器5021物理上是同一个处理器,存储器5012和5022物理上是同一个存储器。In one embodiment, processor 5011 and processor 5021 are two independent processors, and memories 5012 and 5022 are two independent memories. In another embodiment, the processor 5011 and the processor 5021 are physically the same processor, and the memories 5012 and 5022 are physically the same memory.
在一实施例中,处理器5011和MAC芯片5013可以是两个独立的结构,处理器5021和MAC芯片5023可以是两个独立的结构。在另一实施例中,处理器5013中可以包括MAC芯片5013,处理器5023中可以包括MAC芯片5023。In one embodiment, the processor 5011 and the MAC chip 5013 may be two independent structures, and the processor 5021 and the MAC chip 5023 may be two independent structures. In another embodiment, the processor 5013 may include a MAC chip 5013, and the processor 5023 may include a MAC chip 5023.
收发器5014和5024可以包括光发射器和/或光接收器。光发射器可以用于发送光信号,光接收器可以用于接收光信号。光发射器可以通过发光器件,例如气体激光器、固体激光器、液体激光器、半导体激光器、直调激光器等实现。光接收器可以通过光检测器,例如光电检波器或者光电二极管(如雪崩二极管)等实现。收发器5014和5024还可以包括数模转换器和模数转换器。第一模块501通过收发器5014与OLT进行通信,第二模块502通过收发器5024与OLT进行通信。 Transceivers 5014 and 5024 may include optical transmitters and/or optical receivers. Optical transmitters can be used to transmit optical signals, and optical receivers can be used to receive optical signals. The light transmitter can be realized by a light-emitting device, such as a gas laser, a solid-state laser, a liquid laser, a semiconductor laser, a directly modulated laser, and the like. The optical receiver may be implemented by a photodetector, such as a photodetector or a photodiode (eg, an avalanche diode) or the like. Transceivers 5014 and 5024 may also include digital-to-analog converters and analog-to-digital converters. The first module 501 communicates with the OLT through the transceiver 5014 , and the second module 502 communicates with the OLT through the transceiver 5024 .
时间控制5015和5025模块分别负责第一模块和第二模块的时间控制,根据处理器设定的时间,进行计时和时间维护。The time control modules 5015 and 5025 are respectively responsible for the time control of the first module and the second module, and perform timing and time maintenance according to the time set by the processor.
以太MAC5016和5026负责第一模块和第二模块间的以太互通,处理器可以直接与以太MAC连接,也可以通过转发器与以太MAC连接。如在步骤3中,第一模块的处理器5011通过以太MAC 5016发送1588报文到第一模块,第二模块的以太MAC 5026接收1588报文后发送处理器5021进行处理。The Ethernet MACs 5016 and 5026 are responsible for the Ethernet intercommunication between the first module and the second module. The processor can be directly connected to the Ethernet MAC, or can be connected to the Ethernet MAC through a repeater. As in step 3, the processor 5011 of the first module sends the 1588 message to the first module through the Ethernet MAC 5016, and the Ethernet MAC 5026 of the second module sends the processor 5021 to process the 1588 message after receiving the 1588 message.
图5所示的ONU执行如上所述的免测距、确定均衡时延的方法,所带来的有益效果,这里不再赘述。The ONU shown in FIG. 5 implements the above-mentioned method of avoiding ranging and determining the equalized delay, and the beneficial effects brought by it will not be repeated here.
本发明还提供一种PON系统,该系统包括上述所述的光线路终端OLT 110和至少一个ONU 130,其中ONU 130具备如5所示的结构和功能。ONU 130包括两个PON模块,OLT也包括两个PON模块。OLT 110和ONU 130的连接关系如图3所示,ONU 130的两个PON模块分别通过不同的ODN与OLT 110的两个PON模块连接。The present invention also provides a PON system, which includes the above-mentioned optical line terminal OLT 110 and at least one ONU 130, wherein the ONU 130 has the structure and function as shown in 5. The ONU 130 includes two PON modules, and the OLT also includes two PON modules. The connection relationship between the OLT 110 and the ONU 130 is shown in Figure 3, and the two PON modules of the ONU 130 are respectively connected to the two PON modules of the OLT 110 through different ODNs.
最后还需要说明,本领域技术人员应该理解,本申请中所述的时间同步,可能存在一定的同步误差或时钟误差或时间误差;如图4步骤1中,ONU的第一模块和OLT的时间同步,并不表示ONU第一模块的时钟与OLT的时钟完全无误差的同步,两者之间的时钟可能存在一定范围内的误差,如微秒级别的误差。Finally, it should be noted that those skilled in the art should understand that the time synchronization described in this application may have certain synchronization errors or clock errors or time errors; Synchronization does not mean that the clock of the first module of the ONU and the clock of the OLT are completely error-free, and the clocks between the two may have errors within a certain range, such as a microsecond-level error.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例 如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server, or data center Transmission to another website site, computer, server, or data center is by wire (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes an integration of one or more available media. The usable media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g. DVD), or semiconductor media (e.g. Solid State Disk (SSD)), among others.

Claims (20)

  1. 一种确定无源光网络PON传输时延的方法,其特征在于,包括,A method for determining the transmission delay of a passive optical network PON, comprising:
    光网络单元ONU的第一模块通过第一光分配网络ODN与所述OLT通信,所述第一模块时间与所述OLT时间同步;The first module of the optical network unit ONU communicates with the OLT through the first optical distribution network ODN, and the time of the first module is synchronized with the time of the OLT;
    所述ONU的第二模块接收所述OLT发送的时间同步消息,所述第二模块通过第二ODN与所述OLT通信,所述时间同步消息中包括第一时间戳,所述第一时间戳标识所述OLT的计数器数值为K时刻的OLT时间;The second module of the ONU receives the time synchronization message sent by the OLT, the second module communicates with the OLT through the second ODN, the time synchronization message includes a first time stamp, and the first time stamp The counter value that identifies the OLT is the OLT time at time K;
    所述第二模块的计数器数值为K时,所述ONU将所述第二模块时间设置为所述第一时间戳标识的时间;When the counter value of the second module is K, the ONU sets the second module time to the time of the first time stamp;
    所述ONU根据所述第一模块时间和所述第二模块时间确定所述第一时间差,所述第一时间差等于同一时刻下所述第二模块时间与所述OLT时间的差值,所述第一时间差等于所述时间同步消息从所述OLT到所述第二模块的传输时延。The ONU determines the first time difference according to the first module time and the second module time, and the first time difference is equal to the difference between the second module time and the OLT time at the same moment, and the The first time difference is equal to the transmission delay of the time synchronization message from the OLT to the second module.
  2. 根据权利要求1所述的方法,其特征在于,所述第二模块接收的时间同步消息中还包括所述OLT的超帧计数值K,所述第一时间戳标识的时间为所述OLT的超帧计数器数值等于K时刻的OLT时间;所述第二模块的超帧计数器数值等于K时,所述ONU将所述第二模块时间设置为所述第一时间戳标识的时间。The method according to claim 1, wherein the time synchronization message received by the second module further includes a superframe count value K of the OLT, and the time identified by the first timestamp is the time of the OLT. The value of the superframe counter is equal to the OLT time at time K; when the value of the superframe counter of the second module is equal to K, the ONU sets the time of the second module to the time identified by the first timestamp.
  3. 根据权利要求1或2所述的方法,其特征在于,所述ONU根据所述第一模块时间和所述第二模块时间确定所述第一时间差,具体包括:The method according to claim 1 or 2, wherein the ONU determines the first time difference according to the first module time and the second module time, which specifically includes:
    所述第一模块向所述第二模块发送第一报文,所述第一报文包括发送时间戳,所述发送时间戳为所述第一模块时间下,所述第一模块发送所述第一报文时刻的时间,所述第二模块在接收所述第一报文时在所述第一报文中添加接收时间戳,所述接收时间戳为所述第二模块时间下,所述第二模块接收所述第一报文时刻的时间;The first module sends a first message to the second module, the first message includes a sending time stamp, and the sending time stamp is the time of the first module, and the first module sends the The time at the time of the first packet, the second module adds a reception timestamp to the first packet when receiving the first packet, and the reception timestamp is the time of the second module, so the time when the second module receives the first message;
    所述ONU确定第二时间差,所述第二时间差为所述接收时间戳和发送时间戳的差值;The ONU determines a second time difference, and the second time difference is the difference between the receiving timestamp and the sending timestamp;
    所述ONU根据所述第二时间差和以太链路时延确定第一时间差,所述第一时间差为所述第二时间差与所述以太链路时延相加的和,所述以太链路时延为所述第一模块和所述第二模块间通过以太链路进行通信的时延。The ONU determines the first time difference according to the second time difference and the Ethernet link delay, where the first time difference is the sum of the second time difference and the Ethernet link delay. The delay is the delay of communication between the first module and the second module through the Ethernet link.
  4. 根据权利要求1-3任一所述的方法,其特征在于,所述方法还包括,所述ONU根据所述第一时间差确定所述第二模块与所述OLT通信的均衡时延。The method according to any one of claims 1-3, wherein the method further comprises: the ONU determining, according to the first time difference, an equalization delay for communication between the second module and the OLT.
  5. 根据权利要求4所述的方法,其特征在于,所述ONU根据如下计算公式确定所述第二模块与所述OLT通信的均衡时延EqD2:The method according to claim 4, wherein the ONU determines the equalization delay EqD2 of the communication between the second module and the OLT according to the following calculation formula:
    EqD2=Teqd-RspTime2-(dt/(n1/(n1+n2))),EqD2=Teqd-RspTime2-(dt/(n1/(n1+n2))),
    其中,Teqd为零距离等效时延,RspTime2为所述ONU的响应时长,dt为所述第一时间差,n1为所述OLT与所述ONU间通信的下行光的折射率,n2为所述ONU与所述OLT间通信的的上行光的折射率。Wherein, Teqd is zero distance equivalent time delay, RspTime2 is the response time of the ONU, dt is the first time difference, n1 is the refractive index of the downlink light communicated between the OLT and the ONU, and n2 is the The refractive index of the upstream light communicated between the ONU and the OLT.
  6. 根据权利要求4或5所述的方法,其特征在于,所述ONU在确定所述第二模块与所述OLT通信的均衡时延之后,所述方法还包括,The method according to claim 4 or 5, wherein after the ONU determines the equalization delay of the communication between the second module and the OLT, the method further comprises:
    所述第二模块在处理完所述OLT的请求后,至少等待与所述均衡时延对应的时长,再向所述OLT发送上行报文。After processing the request of the OLT, the second module waits at least for a duration corresponding to the equalization delay, and then sends an uplink message to the OLT.
  7. 根据权利要求3所述的方法,其特征在于,所述方法还包括,所述ONU根据1588 时间同步协议测算所述第一模块和所述第二模块间的以太链路时延。The method according to claim 3, characterized in that, the method further comprises: measuring, by the ONU, an Ethernet link delay between the first module and the second module according to a 1588 time synchronization protocol.
  8. 一种PON网络设备,其特征在于包括第一模块和第二模块,A PON network device is characterized by comprising a first module and a second module,
    所述第一模块,用于通过第一ODN完成与光线路终端OLT的测距和时间同步;The first module is used to complete ranging and time synchronization with the optical line terminal OLT through the first ODN;
    所述第二模块,用于通过第二ODN接收所述OLT发送的时间同步消息,所述时间同步消息中包括第一时间戳,所述第一时间戳标识所述OLT的计数器数值为K时刻的OLT时间;所述第二模块的计数器数值为K时,将所述第二模块时间设置为所述第一时间戳标识的时间;确定第一时间差,所述第一时间差等于同一时刻下所述第二模块时间与所述OLT时间的差值,所述第一时间差等于所述时间同步消息从所述OLT到所述第二模块的传输时延。The second module is configured to receive the time synchronization message sent by the OLT through the second ODN, where the time synchronization message includes a first time stamp, and the first time stamp identifies the counter value of the OLT as time K When the counter value of the second module is K, the second module time is set to the time identified by the first time stamp; the first time difference is determined, and the first time difference is equal to the time at the same time. The difference between the time of the second module and the time of the OLT, and the first time difference is equal to the transmission delay of the time synchronization message from the OLT to the second module.
  9. 根据权利要求8所述的装置,其特征在于,所述第二模块接收的时间同步消息中还包括所述OLT的超帧计数值K,所述第一时间戳标识的时间为所述OLT的超帧计数器数值等于K时刻的OLT时间;所述第二模块,还用于在所述第二模块的超帧计数器数值等于K时,将所述第二模块时间设置为所述第一时间戳标识的时间。The apparatus according to claim 8, wherein the time synchronization message received by the second module further includes a superframe count value K of the OLT, and the time identified by the first timestamp is the time of the OLT. The superframe counter value is equal to the OLT time at time K; the second module is further configured to set the second module time as the first timestamp when the superframe counter value of the second module is equal to K identified time.
  10. 根据权利要求8或9所述的装置,其特征在于,The device according to claim 8 or 9, characterized in that,
    所述第一模块,还用于向所述第二模块发送第一报文,所述第一报文包括发送时间戳,所述发送时间戳为所述第一模块时间下,所述第一模块发送所述第一报文时刻的时间;The first module is further configured to send a first message to the second module, where the first message includes a sending time stamp, and the sending time stamp is the time of the first module when the first message is sent. the time when the module sends the first message;
    所述第二模块,还用于在接收所述第一报文时在所述第一报文中添加接收时间戳,所述接收时间戳为所述第二模块时间下,所述第二模块接收所述第一报文时刻的时间;确定第二时间差,所述第二时间差为所述接收时间戳和发送时间戳的差值;根据所述第二时间差和以太链路时延确定第一时间差,所述第一时间差为所述第二时间差与所述以太链路时延相加的和,所述以太链路时延为所述第一模块和所述第二模块间通过以太链路进行通信的时延。The second module is further configured to add a reception timestamp to the first packet when receiving the first packet, where the reception timestamp is the time of the second module, the second module the time when the first packet is received; determine a second time difference, where the second time difference is the difference between the receiving timestamp and the sending timestamp; determine the first time difference according to the second time difference and the Ethernet link delay Time difference, the first time difference is the sum of the second time difference and the Ethernet link delay, and the Ethernet link delay is the Ethernet link between the first module and the second module. delay in communicating.
  11. 根据权利要求8-10任一所述的装置,其特征在于,所述第二模块,还用于根据所述第一时间差确定所述第二模块与所述OLT通信的均衡时延。The apparatus according to any one of claims 8-10, wherein the second module is further configured to determine the equalization delay of the communication between the second module and the OLT according to the first time difference.
  12. 根据权利要求11所述的装置,其特征在于,所述第二模块根据如下计算公式确定所述第二模块与所述OLT通信的均衡时延EqD2:The device according to claim 11, wherein the second module determines the equalization delay EqD2 of the communication between the second module and the OLT according to the following calculation formula:
    EqD2=Teqd-RspTime2-(dt/(n1/(n1+n2))),EqD2=Teqd-RspTime2-(dt/(n1/(n1+n2))),
    其中,Teqd为零距离等效时延,RspTime2为所述第二模块的响应时长,dt为所述第一时间差,n1为所述OLT与所述ONU间通信的下行光的折射率,n2为所述第二模块与所述OLT间通信的的上行光的折射率。Wherein, Teqd is zero distance equivalent delay, RspTime2 is the response time of the second module, dt is the first time difference, n1 is the refractive index of the downlink light communicated between the OLT and the ONU, and n2 is The refractive index of the upstream light communicated between the second module and the OLT.
  13. 根据权利要求11或12所述的装置,其特征在于,所述第二模块,还用于在处理完所述OLT的请求后,至少等待与所述均衡时延对应的时长,再向所述OLT发送上行报文。The apparatus according to claim 11 or 12, wherein the second module is further configured to, after processing the request of the OLT, at least wait for a duration corresponding to the equalization delay, and then send the request to the OLT. The OLT sends upstream packets.
  14. 根据权利要求9所述的装置,其特征在于,所述第二模块根据1588时间同步协议测算所述第一模块和所述第二模块间的以太链路时延。The device according to claim 9, wherein the second module measures the Ethernet link delay between the first module and the second module according to a 1588 time synchronization protocol.
  15. 根据权利要求8-14任一所述的装置,其特征在于,所述第一模块包括处理器、存储器、PON媒体访问控制(medium access control,MAC)芯片,收发器和时间控制模块,所述第二模块也包括处理器、存储器、PON媒体访问控制(medium access control,MAC)芯片,收发器和时间控制模块;The device according to any one of claims 8-14, wherein the first module comprises a processor, a memory, a PON medium access control (MAC) chip, a transceiver and a time control module, and the The second module also includes a processor, a memory, a PON medium access control (MAC) chip, a transceiver and a time control module;
    所述第一模块处理器用于控制所述第一模块完成测距和时间同步,所述第一模块PON MAC芯片用于在所述第一模块处理器的控制下,完成与所述OLT间的数据转发,所述第一模块收发器用于通过所述第一ODN与所述OLT进行通信,所述第一模块时间控制模块用于控制所述第一模块时间;The first module processor is used to control the first module to complete ranging and time synchronization, and the first module PON MAC chip is used to complete the communication with the OLT under the control of the first module processor. data forwarding, the first module transceiver is configured to communicate with the OLT through the first ODN, and the first module time control module is configured to control the first module time;
    所述第二模块收发器用于通过所述第二ODN与所述OLT通信,所述第二模块PON MAC 芯片用于在所述第二模块处理器的控制下,完成与所述OLT间的数据收发,所述第二模块处理器用于对接收到的所述时间同步消息进行处理,在所述第二模块的计数器数值为K时,将所述第二模块时间设置为所述第一时间戳标识的时间,所述第二模块时间控制模块用于根据所述第二模块处理器的设定控制所述第二模块时间;The second module transceiver is used to communicate with the OLT through the second ODN, and the second module PON MAC chip is used to complete data with the OLT under the control of the second module processor. Send and receive, the second module processor is used to process the received time synchronization message, and when the counter value of the second module is K, the second module time is set to the first timestamp The identified time, the second module time control module is configured to control the second module time according to the setting of the second module processor;
    所述第二模块处理器还用于根据所述第一模块时间和所述第二模块时间确定所述第一时间差。The second module processor is further configured to determine the first time difference according to the first module time and the second module time.
  16. 根据权利要求15所述的装置,其特征在于,所述第一模块还包括以太MAC芯片,所述第二模块还包括以太MAC芯片,所述第一模块以太MAC芯片和所述第二模块以太MAC芯片通过以太链路互通;The device according to claim 15, wherein the first module further comprises an Ethernet MAC chip, the second module further comprises an Ethernet MAC chip, the first module Ethernet MAC chip and the second module Ethernet MAC chips communicate with each other through the Ethernet link;
    所述第一模块处理器还用于通过所述第一模块以太MAC芯片向所述第二模块以太MAC芯片发送所述第一报文;The first module processor is further configured to send the first message to the second module Ethernet MAC chip through the first module Ethernet MAC chip;
    所述第二模块以太MAC芯片用于将所述第一报文转发至所述第二模块处理器处理;The second module Ethernet MAC chip is used for forwarding the first packet to the second module processor for processing;
    所述第二模块处理器,还用于在所述第一报文中添加接收时间戳,所述接收时间戳为所述第二模块时间下,所述第二模块接收所述第一报文时刻的时间;确定第二时间差,所述第二时间差为所述接收时间戳和发送时间戳的差值;根据所述第二时间差和以太链路时延确定第一时间差,所述第一时间差为所述第二时间差与所述以太链路时延相加的和,所述以太链路时延为所述第一模块和所述第二模块间通过以太链路进行通信的时延。The second module processor is further configured to add a reception time stamp to the first message, where the reception time stamp is the time of the second module, and the second module receives the first message the time of the moment; determine the second time difference, the second time difference is the difference between the receiving timestamp and the sending timestamp; determine the first time difference according to the second time difference and the Ethernet link delay, the first time difference is the sum of the second time difference and the Ethernet link delay, where the Ethernet link delay is the delay for communication between the first module and the second module through the Ethernet link.
  17. 根据权利要求15或16所述的装置,其特征在于,所述第二模块处理器还用于根据ONU响应时长,零距离等效时延和所述第一时间差,确定所述第二模块与所述OLT通信的均衡时延。The apparatus according to claim 15 or 16, wherein the second module processor is further configured to determine the difference between the second module and the second module according to the ONU response time, the zero-distance equivalent delay and the first time difference Equalization delay of the OLT communication.
  18. 一种无源光网络PON系统,包括ONU和OLT,所述ONU用于执行如权利要求1-6任一所述的方法,以确定与所述OLT通信的均衡时延。A passive optical network PON system, comprising an ONU and an OLT, the ONU is configured to execute the method according to any one of claims 1-6, so as to determine an equalized delay in communication with the OLT.
  19. 一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行如权利要求1-7任一所述的方法。A computer-readable storage medium comprising instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1-7.
  20. 一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行如权利要求1-7任一项述的方法。A computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of any of claims 1-7.
PCT/CN2021/121706 2020-11-27 2021-09-29 Method for determining transmission delay of passive optical network WO2022111045A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011358520.1A CN114567827A (en) 2020-11-27 2020-11-27 Method for determining transmission time delay of passive optical network
CN202011358520.1 2020-11-27

Publications (1)

Publication Number Publication Date
WO2022111045A1 true WO2022111045A1 (en) 2022-06-02

Family

ID=81711606

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/121706 WO2022111045A1 (en) 2020-11-27 2021-09-29 Method for determining transmission delay of passive optical network

Country Status (2)

Country Link
CN (1) CN114567827A (en)
WO (1) WO2022111045A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115242301A (en) * 2022-07-22 2022-10-25 中国电信股份有限公司 Network link monitoring method and device, storage medium and communication equipment
CN115242301B (en) * 2022-07-22 2024-05-14 中国电信股份有限公司 Network link monitoring method and device, storage medium and communication equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101945305A (en) * 2009-07-09 2011-01-12 大唐移动通信设备有限公司 Method and system for realizing time synchronization
CN102026048A (en) * 2009-09-23 2011-04-20 中兴通讯股份有限公司 Method for adjusting ranging value of passive optical network system and recovering passive optical network system, and optical line terminal
US20140178072A1 (en) * 2012-12-24 2014-06-26 Electronics And Telecommunications Research Institute Optical line terminal and method of registering optical network terminal thereof
CN105610535A (en) * 2015-12-25 2016-05-25 南方电网科学研究院有限责任公司 Round-trip time synchronization method and system for EPON (Ethernet Passive Optical Network) access service

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101945305A (en) * 2009-07-09 2011-01-12 大唐移动通信设备有限公司 Method and system for realizing time synchronization
CN102026048A (en) * 2009-09-23 2011-04-20 中兴通讯股份有限公司 Method for adjusting ranging value of passive optical network system and recovering passive optical network system, and optical line terminal
US20140178072A1 (en) * 2012-12-24 2014-06-26 Electronics And Telecommunications Research Institute Optical line terminal and method of registering optical network terminal thereof
CN105610535A (en) * 2015-12-25 2016-05-25 南方电网科学研究院有限责任公司 Round-trip time synchronization method and system for EPON (Ethernet Passive Optical Network) access service

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115242301A (en) * 2022-07-22 2022-10-25 中国电信股份有限公司 Network link monitoring method and device, storage medium and communication equipment
CN115242301B (en) * 2022-07-22 2024-05-14 中国电信股份有限公司 Network link monitoring method and device, storage medium and communication equipment

Also Published As

Publication number Publication date
CN114567827A (en) 2022-05-31

Similar Documents

Publication Publication Date Title
US10727939B2 (en) Communication method, optical line terminal, and optical network unit in passive optical network system
US9391768B2 (en) Transparent clock for precision timing distribution
US8289858B2 (en) ONU delay and jitter measurement
JP5210959B2 (en) Optical passive network system and operation method thereof
US7957647B2 (en) Passive optical network system and ranging method
TWI725274B (en) Data communication system, optical line terminal and baseband unit
US20100310252A1 (en) Optical communication
TW200950393A (en) Passive optical network remote protocol termination
WO2015172279A1 (en) Wavelength switching method, device and system
WO2011088727A1 (en) Method, equipment and system for time synchronization of passive optical network
WO2019184733A1 (en) Time synchronization method in pon system, olt, onu and pon system
US9210488B2 (en) Timestamp adjustment in multi-point control protocol (MPCP) messages for ethernet passive optical network (PON) protocol over coaxial network
WO2019141037A1 (en) Communication network and related devices
WO2009155830A1 (en) Exchanging method, equipment and system for the optical access system
WO2009012699A1 (en) An apparatus and a method for amplifying optical signals in a passive optical network and an optical line terminal
US10084592B2 (en) Skew calculation in channel-bonded passive optical networks (PONs)
JP5759420B2 (en) Optical communication system and new connection terminal detection method
WO2022111045A1 (en) Method for determining transmission delay of passive optical network
WO2012019458A1 (en) Ranging method and system in passive optical network
WO2011157167A2 (en) Method and device for transmitting data in passive optical network
KR100606027B1 (en) Method for compensating round trip delay in transmission of ethernet frames over a passive optical network and passive optical network system therefor
JP2011035738A (en) Failed onu specification method and device
JP5150758B2 (en) Optical termination device and optical network unit
RU2777446C2 (en) Method for time synchronization in pon system, olt, onu, and pon system
WO2022237288A1 (en) Method, apparatus, and system applied to pon system, and storage medium

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

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

Country of ref document: EP

Kind code of ref document: A1