WO2010031326A1 - Method for switching data link in the optical network system, optical line terminal and system - Google Patents

Method for switching data link in the optical network system, optical line terminal and system Download PDF

Info

Publication number
WO2010031326A1
WO2010031326A1 PCT/CN2009/073939 CN2009073939W WO2010031326A1 WO 2010031326 A1 WO2010031326 A1 WO 2010031326A1 CN 2009073939 W CN2009073939 W CN 2009073939W WO 2010031326 A1 WO2010031326 A1 WO 2010031326A1
Authority
WO
WIPO (PCT)
Prior art keywords
optical
optical network
line terminal
network unit
uplink data
Prior art date
Application number
PCT/CN2009/073939
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 WO2010031326A1 publication Critical patent/WO2010031326A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/16Time-division multiplex systems in which the time allocation to individual channels within a transmission cycle is variable, e.g. to accommodate varying complexity of signals, to vary number of channels transmitted
    • H04J3/1694Allocation of channels in TDM/TDMA networks, e.g. distributed multiplexers

Definitions

  • the present invention relates to the field of network communications, and in particular, to an optical network system data link switching method, an optical line terminal, and a system. Background technique
  • the versatile Passive Optical Network (PON) technology is a point-to-multipoint optical access technology.
  • the PON network consists of an Optical Line Terminal (OLT), an optical splitter, an Optical Network Unit (ONU), and an optical fiber connected to each device.
  • FIG. 1 is a schematic diagram of a PON network architecture in the prior art.
  • the OLT is used as a central office device, and is connected to an optical splitter through a trunk optical fiber 10.
  • the optical splitter is connected to each ONU through a separate branch optical fiber 20.
  • the transmission direction of the OLT to the ONU is called downlink, and is transmitted through a 1490 nm wavelength optical fiber; the transmission direction of the ONU to the OLT is called uplink, and is transmitted through a 1310 nm wavelength optical fiber.
  • the optical splitter implements the splitting function, and sends the downlink optical signal of the OLT to all the ONUs through the branch fiber.
  • the optical splitter implements the optical signal convergence function, and aggregates the optical signals sent by all the ONUs. Sent to the OLT through the backbone fiber. In order to ensure that multiple ONU optical signals do not conflict when uplinking, it is necessary to transmit optical signals by one ONU at the same time under the control of the OLT.
  • GPON Gigabit Passive Optical Network
  • ITU-T International Telecommunications Union- Telecommunication Sector
  • EqD equalization delay
  • the formula for calculating the EQD of the ONU is:
  • EqD Teqd-Rtd ( 1 ) where Teqd is the equalized round trip delay and is a constant value.
  • the ONU implements ranging processing in the RANGING state, and the following includes:
  • the OLT opens a ranging window with no data transmission for the ONU to be measured; the OLT sends a Range Request message to the ONU to be measured;
  • the serial number physical layer maintenance message (Serial_Number_ONU PLOAM) responds to the OLT; the OLT calculates the EQD value of the ONU and sends it to the ONU through the Ranging Time PLO AM message, which is sent 3 times.
  • the entire ONU ranging process requires six message interactions.
  • a message is sent every 125 ⁇ ⁇ , so the ranging process of the entire ONU takes about 1 ms.
  • the ONU is switched from the RANGING state to the OPERATION state.
  • the OPERATION state the ONU starts data transmission with the OLT.
  • the ranging processing of the ONU is serial.
  • the OLT completes the ranging processing of the previous ONU
  • the ranging processing of the next ONU is started.
  • N is the number of ONUs accessed by the OLT.
  • the ONU re-ranging time is the longest interruption of the entire service.
  • the distance of each ONU ranging is about lms.
  • the service interruption time is much longer than 50ms.
  • the PON carries the Time Division Multiplex (TDM) service, which requires the service interruption time to be less than 50ms, and the prior art cannot meet this requirement.
  • TDM Time Division Multiplex
  • the embodiments of the present invention provide a data link switching method, an optical line terminal, and an optical network system for an optical network system, which can shorten the failure of the trunk optical fiber or the primary optical line terminal in the optical network system. The resulting business interruption time.
  • An embodiment of the present invention provides a data link system switching method for an optical network system, where the optical network system includes at least two optical line terminals respectively connected to the same optical splitter through optical fibers, where the optical splitter is connected to At least one optical network unit, when the service is switched from the first optical line terminal to the second optical line terminal; performing the following processing steps on the second optical line terminal:
  • the embodiment of the invention further provides an optical line terminal, including: a switching execution module, configured to switch the optical line terminal from a standby optical line terminal to a main optical line terminal;
  • a notification message sending module configured to send a first notification message to the optical network unit to notify the optical network unit to enter a working state when the optical line terminal switches from the standby optical line terminal to the primary optical line terminal;
  • a bandwidth mapping sending module configured to send a bandwidth mapping to the optical network unit
  • An uplink data receiving module configured to receive uplink data, where the received uplink data includes uplink data of the optical network unit;
  • a monitoring module configured to monitor the bandwidth mapping sending module and the uplink data receiving module, and determine a delay for transmitting the bandwidth to receive the uplink data as the optical line terminal and the optical network unit Zero distance equalization delay between.
  • the embodiment of the present invention further provides an optical network system, including at least two optical line terminals, respectively connected to the same optical splitter through an optical fiber, where the optical splitter is connected to at least one optical network unit through an optical fiber, when the service When switching from the first optical line terminal to the second optical line terminal: the second optical line terminal sends a first notification message to the optical network unit to notify the optical network unit to enter a working state, The optical network unit sends the bandwidth mapping required for the uplink data transmission and receives the uplink data sent by the optical network unit in response to the bandwidth mapping, where the process of transmitting the bandwidth mapping and receiving the uplink data is sent, The delay of the bandwidth mapping to the received uplink data is determined as a zero-distance equalization delay between the second optical line terminal and the optical network unit;
  • the optical network unit is configured to receive a first notification message sent by the second optical line terminal, enter a working state in response to the first notification message, and receive a transmission from the second optical line terminal.
  • the uplink data is sent to the second optical line terminal according to the equalization delay assigned by the first optical line terminal recorded locally and the bandwidth mapping sent by the second optical line terminal.
  • the original primary OLT is switched to the standby OLT, and the original standby OLT is switched to the primary OLT.
  • the OLT sends a first notification message to each ONU, informing each ONU to enter the working state, and maintaining the original EqD.
  • each ONU can perform normal data transmission, which simplifies the service terminal process and saves the time of multiple ONU ranging, thereby meeting the time of service interruption in the optical network system. Control the requirement of 50ms.
  • FIG. 1 is a schematic diagram of a PON network architecture in the prior art
  • FIG. 2 is a diagram showing an embodiment of a data link switching method for an optical network system according to the present invention
  • FIG. 3 is a diagram showing an embodiment of a data link switching method for an optical network system according to the present invention.
  • FIG. 4 is a schematic structural view of an OLT embodiment of the present invention.
  • FIG. 5 is a schematic structural view of an ONU embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of an embodiment of an optical network system according to the present invention. detailed description
  • FIG. 2 is a flowchart of Embodiment 1 of a method for switching data link of an optical network system according to the present invention.
  • the optical network system includes at least two OLTs, which are respectively connected to the same optical splitter through optical fibers, and the optical splitting The device is connected to the at least one ONU, and the equalization delay assigned by the second OLT to the ONU is the same as the equalization delay assigned by the first OLT to the ONU, when the service is switched from the first OLT to the second OLT.
  • the steps performed on the second OLT include:
  • Step 1 Send a first notification message to the ONU connected to the optical splitter to notify the ONU to enter a working state;
  • Step 12 Perform an operation of sending a bandwidth mapping required for uplink data transmission to the ONU and receiving uplink data sent by the ONU, where the bandwidth mapping and receiving are sent by monitoring The process of the uplink data determines a zero distance equalization delay between the second OLT and the ONU.
  • Step 12 is specifically as follows: the second optical line terminal closes a window of window alarm; sends a bandwidth mapping to the ONU, and starts timing; when receiving the first uplink data after the bandwidth mapping is sent, stopping Timing, and the timing result as a zero distance equalization delay.
  • the data link method for the optical network system provided by the embodiment of the present invention further includes: Step 13: Perform window drift detection by using the determined zero-distance equalization delay, and if the window drift is detected, if necessary, In the subsequent steps, the equalization delay of the ONU can also be adjusted accordingly.
  • Step 13 can specifically detect whether a window drift occurs by obtaining a zero-distance equalization delay (the zero-distance equalization delay refers to the time difference between the time when the OLT sends the downlink frame and the expected start of receiving the uplink frame), thereby sending a window to the OLT and the ONU.
  • the drift alarm is used to ensure that the uplink transmission from the ONU to the optical line terminal does not conflict.
  • the OLT allocates the uplink bandwidth to the ONU by using the Bandwidth Map (BWMap).
  • BWMap Bandwidth Map
  • the delay from the BWMap sent by the OLT to the OLT receiving the uplink data of the ONU is zero distance equalization delay. If window drift occurs, the corresponding modification needs to be performed.
  • the EqD value of the ONU is zero distance equalization delay. If window drift occurs, the corresponding modification needs to be performed.
  • FIG. 3 is a flowchart of Embodiment 2 of a data link switching method of an optical network system according to the present invention.
  • the optical network system includes at least two OLTs respectively connected to the same optical splitter through optical fibers, and the optical splitting The device is connected to the at least one ONU.
  • the steps executed on the ONU include:
  • Step 21 Receive a first notification message sent by the second OLT.
  • Step 22 Enter a working state in response to the received first notification message
  • Step 23 Receive a bandwidth mapping required for uplink data transmission from the second OLT, and send uplink data to the second OLT according to the equalization delay of the optical network unit and the bandwidth mapping, where the ONU is balanced.
  • the delay is assigned to the equalization delay assigned by the second OLT to the ONU.
  • the first notification message is a physical layer maintenance message, where the physical layer maintenance message carries information for notifying the optical network unit to enter the working state and/or notifying that the equalization delay is unchanged, where The information indicating that the optical network unit is notified to enter the working state and the notification can be kept with only one information to maintain the equalization delay.
  • the first notification message may be a POPUP message, where the POPUP message may be a broadcast POPUP message or a unicast POPUP message, as shown in Table 1 is a POPUP message format involved in the embodiment of the present invention.
  • the broadcast POPUP message is sent directly to all 0NUs, and the unicast POPUP message is also sent to all ONUs, but since the unicast POPUP message is for a specific ONU (single Different ONU-IDs in the POPUP message correspond to different ONUs.
  • the corresponding ONU receives the unicast POPUP message (identified by the ONU-ID) and performs corresponding processing, while other ONUs discard the unicast POPUP message. . Therefore, for a system with multiple ONUs, the OLT needs to send a unicast POPUP message to the corresponding ONU multiple times.
  • the POPUP message is a type of PLOAM message that can be modified by modifying the existing physical layer.
  • the function of the message to implement the first notification message is as shown in Table 1.
  • the current POPUP message has the byte number from 3 to the 12th byte as a reserved bit, and has no clear meaning.
  • the modified POPUP in the embodiment of the present invention.
  • the OPERATION state here may be one of the states of the ONU defined in the ITU-T G984.3 standard, wherein the states of the ONU defined by the G984.3 standard include: OPERATION RANGING, POPUP, and the like.
  • the OLT sends a first notification message to the optical network unit connected to the optical splitter, and the ONU enters an active state according to the first notification message.
  • the first notification message sent by the OLT carries the information that keeps the equalization delay unchanged, and the ONU maintains the original equalization delay according to the first notification message;
  • the original equalization delay is maintained by default.
  • the ranging window allows each ONU to enter the Ranging state for ranging, and recalculates the EqD value of each ONU by ranging, but directly notifies each ONU to enter the OPERATION state, and performs uplink data transmission to the ONU.
  • the BWMap of the required bandwidth allocation information is transmitted and the operation of receiving the uplink data sent by the ONU, and the process of transmitting the BWMap to the ONU and receiving the uplink data sent by the ONU is monitored to determine the zero-distance equalization delay.
  • the original EqD value, the ONU-ID, and the Alloc-ID are kept unchanged on the ONU, so that the time of each ONU ranging can be omitted, and each ONU can directly enter the OPERATION state, thereby greatly shortening the backbone fiber. Or the service interruption time caused by the failure of the original primary OLT.
  • the OLT sends a BWMap to each ONU through the broadcast mode, and starts timing.
  • each ONU sends the uplink data normally, and the OLT detects that the self-send is sent.
  • the timing is stopped, and the timing result is used as the zero-distance equalization delay, and the obtained zero-distance equalization delay is set at the OLT for subsequent window drift detection.
  • the zero-distance equalization delay is not obtained after the primary and backup OLTs are switched. Therefore, before the first notification message is sent, the window drift alarm can be turned off first, and then zero is obtained. After the equalization delay, the window drift alarm is turned on.
  • the OLT sends a unicast POPUP message to each ONU that needs to transmit data to notify each ONU to enter a working state.
  • the OLT sends a BWMap to each ONU to start timing.
  • the OLT stops timing and obtains a zero-distance equalization delay.
  • BWMap is sent every 125 ⁇ ⁇
  • the BWMap delivered each time includes the bandwidth allocation of the ONU that is currently in the working state.
  • the zero-distance equalization delay can be obtained after the first BWMap is sent after the first unicast POPUP message is sent.
  • the zero-distance equalization delay can be obtained.
  • multiple zero-distance equalization delays can be obtained through multiple BWMap transmission and uplink data reception processes, and multiple zero-distance equalization delays are processed correspondingly (such as mean processing) to obtain a more accurate zero-distance equalization delay. .
  • An application scenario of the embodiment of the present invention is a PON network architecture: two OLT devices that are mutually backup are connected to an optical splitter through independent trunk fibers, and three ONUs are taken as an example in the network, namely 0NU1, ONU2, and ONU3.
  • the lengths of the branches of the optical fibers between the three and the optical splitter are respectively, 1 2 and 1 3 , the length of the original primary trunk fiber is Li, and the length of the primary trunk fiber switched to the original standby trunk fiber is L 2 .
  • the data transmission rate of the ONU to the OLT is the speed of light c.
  • EqD u A-2 ( lj + Li ) / c
  • EqD 12 A-2 ( 1 2 +Li ) /c
  • EqD 13 A-2 ( 1 3 +Li ) /c
  • the difference between each EqD is:
  • ONUs In a PON network, only one ONU can send uplink data to the OLT at the same time. In order to make the round-trip delays of the OLT to each ONU equal, the ONUs do not conflict when sending uplink data according to the bandwidth mapping (BWMap). Need to set the EqD value.
  • BWMap bandwidth mapping
  • the EqD values before the failure are still used, and the difference between the EqD values can be ensured, and the OLT to each ONU
  • the round trip delay is equal. Therefore, in the case where the trunk fiber fails, after completing the switching of the primary standby OLT and the switching of the primary standby trunk fiber, the EqD value may not be recalculated, and each EqD value before the failure occurs.
  • the service interruption time is:
  • Service interruption time LOS detection time + handover decision execution time + time when N ONUs switch back to the working state; POPUP message is sent by broadcast to notify each ONU to switch to the OPERATION state, and keep the original EqD, ONU-ID And Alloc-ID is unchanged.
  • the fault recovery method provided by the embodiment of the present invention can meet the requirement of limiting the time of the middle segment of the service to 50 ms, and adopting the prior art method, when the number of ONUs is large, this The requirements are difficult to meet.
  • FIG. 4 is a schematic structural diagram of an OLT embodiment of the present invention.
  • the optical line terminal (OLT) 1 may include: a handover execution module 101, a notification message sending module 102, a bandwidth mapping sending module 103, an uplink data receiving module 104, and a monitoring module.
  • the switching execution module 101 is connected to the notification message sending module 102, and the uplink data receiving module 104 and the notification message sending module 102 respectively
  • the monitoring module 105 is connected, and the bandwidth mapping sending module 103 is connected to the notification message sending module 102 and the monitoring module 105, respectively.
  • the handover execution module 101 controls the optical line terminal (OLT) 1 to switch to the primary OLT.
  • the handover execution module 101 may be connected to a fault monitoring module (not shown) on the OLT.
  • the handover execution module 101 performs the handover; the handover execution module 101 may also perform the handover according to the alarm indication or the handover indication of the primary OLT; the handover execution module 101 may also perform the handover according to the alarm indication or the handover indication of the upper layer network device, where the upper layer network device has Equipment Management System (EMS) and Access Node Control Protocol (ANCP) servers for fault maintenance.
  • EMS Equipment Management System
  • ANCP Access Node Control Protocol
  • the handover execution module 101 notifies the message sending module 102 to send a first notification message to each ONU, for notifying each ONU to enter an OPERATION state and/or keeping the original EqD unchanged.
  • the bandwidth mapping transmitting module 103 sends a bandwidth mapping to each ONU.
  • the uplink data receiving module 104 waits to receive the uplink data.
  • the monitoring module 105 is configured to monitor the bandwidth mapping sending module 103 and the uplink data receiving module 104, and the bandwidth mapping sending module 103 sends the bandwidth mapping and the uplink data receiving module 104 receives the delay of the uplink data sent by the optical network unit in response to the bandwidth mapping. As a zero distance equalization delay between the optical line termination and the optical network unit.
  • the monitoring module 105 monitors the bandwidth mapping sent by the bandwidth mapping sending module 103 to the first ONU, and starts timing; when the first ONU is detected, the first one is sent. When the uplink data is ended, the timing is used as the zero distance equalization delay of the first ONU. If the bandwidth mapping is periodically sent, the monitoring module 105 starts timing by transmitting a bandwidth mapping of a certain period, and ends the timing when receiving the first uplink data of the period, and uses the timing result as a zero-distance equalization delay.
  • the OLT 1 further includes a first storage module 106 coupled to the monitoring module 105.
  • the monitoring module 105 stores the timing result to the first storage module 106 for use by the window drift detection module 107 for window drift detection.
  • the window drift detection module 107 detects and processes the alarm process as described above. The content mentioned in the law.
  • the above monitoring module 105 can also monitor the zero equalization delay of any other ONUs of the plurality of ONUs. Since multiple ONUs share the backbone fiber, the branch fiber corresponding to each ONU does not change before and after the switch. Therefore, in order to simplify the system to save the switching time, only one ONU can be selected for zero-equalization delay measurement, according to the selected ONU zero.
  • the distance equalization delay determines the zero distance equalization delay of other ONUs.
  • FIG. 5 is a schematic structural diagram of an ONU embodiment of the present invention.
  • the ONU 2 includes: a notification message receiving module 201, a state switching module 202, a data sending module 204, and a second storage module 205, and a notification message receiving module 201 and a state switching module 202.
  • the connection, data sending module 204 is connected to the state switching module 202, the bandwidth mapping receiving module 203, and the second storage module 205, respectively.
  • the ONU receives a first notification message sent from the OLT, and the first notification message is used to notify the ONU to transition to an OPERATION state, for example, Is a notification message in the format described in Table 1.
  • the state switching module 202 controls the ONU to enter an OPERATION state, such as sending an indication to the data sending module 204, instructing the data sending module 204 to enter an operating state to send uplink data;
  • the bandwidth mapping receiving module 203 is configured to receive the bandwidth mapping from the optical line terminal, and send the received bandwidth mapping to the data sending module 204.
  • the second storage module 205 is configured to store the equalization delay assigned by the first OLT.
  • the sending module 204 is configured to receive a bandwidth mapping sent by the OLT, and send uplink data to the OLT according to the bandwidth mapping and the equalization delay stored locally by the second storage module 205.
  • the data sending module 204 performs delay waiting by using the locally stored equalization delay to ensure that the uplink data transmission of the ONU does not conflict with the uplink data transmission of other ONUs.
  • FIG. 6 is a schematic structural diagram of an embodiment of an optical network system according to the present invention.
  • the optical network system includes at least two optical line terminals OLT11 and OLT12, which are respectively connected to the same optical splitter 3 through optical fibers, and the optical splitter 3 Connected to the optical network unit ONU21, ONU22, ONU23 through optical fiber, optical line terminal 0LT11, OLT12 and OLT shown in Figure 4, optical network unit
  • the ONUs 21, the ONUs 22, and the ONUs 23 are the same as the ONUs shown in FIG. 5.
  • the foregoing is only an example.
  • the optical network unit is not limited to three, and may be one or more ONUs.
  • an equalization delay assigned by the second optical line terminal (such as OLT 12) to the optical network unit and the first optical line terminal (such as OLT11) are assigned to the optical network unit (such as ONU23)
  • the equalization delay is the same, when the service is switched from the first optical line terminal to the second optical line terminal:
  • the second optical line terminal sends a first notification message to the optical network unit (such as the ONU 23) to notify the optical network unit (such as the ONU 23) to enter a working state, and performs uplink data transmission to the optical network unit.
  • the optical network unit is configured to receive a first notification message sent by the second optical line terminal (OLT12), enter a working state in response to the first notification message, and receive the second optical line terminal from the second optical line terminal ( After the bandwidth mapping of the OLT 12), the equalization delay assigned by the first optical line terminal (OLT11) recorded locally and the bandwidth mapping sent by the second optical line terminal (OLT12) are sent to the second optical line terminal. (OLT12) Sends upstream data.
  • the data link switching method of the GPON system is particularly applicable to a fault recovery scenario.
  • the original primary OLT switches to the standby OLT, and the original standby OLT switches to the primary OLT, and then The OLT sends a first notification message to each ONU to notify each ONU to enter the working state, and keeps the original EqD, ONU-ID, and Alloc-ID unchanged, without opening a special ranging window pair after completing the switching of the primary standby OLT.
  • Each ONU performs ranging, eliminating the need for multiple ONU ranging times. After each ONU transitions to the working state, normal data transmission can be performed, thereby satisfying the requirement of controlling the time of service interruption to 50 ms.
  • the ONU has no limitation on the state before the handover, and may be any state allowed by the ONU, such as a suspended state.
  • the method and apparatus provided by the embodiments of the present invention are applicable not only to an active optical network but also to a passive optical network, and are applicable not only to a GPON system but also to an isochronous transmission mode passive optical network (Asynchronous Transfer Mode Passive).

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Optical Communication System (AREA)

Abstract

The embodiments of the present invention disclose a method for switching data link in the optical network system, an optical line terminal and an optical network system. Wherein the method includes: while a service is switched from the first optical line terminal to the second optical line terminal, the second optical line terminal performs the following process steps: transmitting the first notification message to the optical network unit which connects to the optical splitter in the optical network system to notify the optical network unit enter an operation state; transmitting the bandwidth mapping that the uplink data transmission requires to the optical network unit; receiving the uplink data transmitted from the optical network unit responding to the bandwidth mapping, and determining the delay from the time that bandwidth mapping is transmitted to the time that the uplink data is received as the zero distance equalization delay between the second optical line terminal and the optical network unit by monitoring the processes that transmitting the bandwidth mapping and receiving the uplink data. The embodiments of the present invention can reduce the service break off time of the optical network system due to the failure of the backbone fiber or the master optical line terminal, and the service break off time can be controlled within 50ms.

Description

本申请要求 2008年 9月 19日递交的申请号为 200810149350.9、 发明名 称为 "光网络系统数据链路切换方法、 光网络单元及系统" 的中国专利申请 的优先权, 其全部内容通过引用结合在本申请中。 技术领域  The present application claims priority to Chinese Patent Application No. 200810149350.9, entitled "Optical Network System Data Link Switching Method, Optical Network Unit and System", filed on September 19, 2008, the entire contents of which are incorporated by reference. In this application. Technical field
本发明涉及网络通信领域, 尤其涉及一种光网络系统数据链路切换方 法、 光线路终端及系统。 背景技术  The present invention relates to the field of network communications, and in particular, to an optical network system data link switching method, an optical line terminal, and a system. Background technique
通用的无源光网络 (Passive Optical Network, 简称 PON) 技术, 是一 种点对多点方式的光接入技术。 PON 网络由光线路终端 (Optical Line Terminal, 简称 OLT) 、 光分路器、 光网络单元 (Optical Network Unit, 简 称 ONU) 以及与各装置相连的光纤组成。 如图 1所示为现有技术中 PON网 络架构示意图, OLT作为局端设备, 通过一根主干光纤 10与光分路器连 接, 光分路器通过单独的分支光纤 20连接每一个 ONU。 在 PON网络中, OLT到 ONU的传输方向称为下行, 通过 1490nm波长光纤传输; ONU到 OLT的传输方向称为上行, 通过 1310nm波长光纤传输。 下行方向上, 光分 路器实现分光功能, 通过分支光纤将 OLT 的下行光信号发送给所有的 ONU; 上行方向上, 光分路器实现光信号汇聚功能, 将所有 ONU发送的光 信号汇聚, 通过主干光纤发送给 OLT。 为保证上行时多个 ONU光信号不出 现冲突, 需要在 OLT的控制下, 同一个时刻, 只能由一个 ONU上行发送 光信号。  The versatile Passive Optical Network (PON) technology is a point-to-multipoint optical access technology. The PON network consists of an Optical Line Terminal (OLT), an optical splitter, an Optical Network Unit (ONU), and an optical fiber connected to each device. FIG. 1 is a schematic diagram of a PON network architecture in the prior art. The OLT is used as a central office device, and is connected to an optical splitter through a trunk optical fiber 10. The optical splitter is connected to each ONU through a separate branch optical fiber 20. In a PON network, the transmission direction of the OLT to the ONU is called downlink, and is transmitted through a 1490 nm wavelength optical fiber; the transmission direction of the ONU to the OLT is called uplink, and is transmitted through a 1310 nm wavelength optical fiber. In the downlink direction, the optical splitter implements the splitting function, and sends the downlink optical signal of the OLT to all the ONUs through the branch fiber. In the uplink direction, the optical splitter implements the optical signal convergence function, and aggregates the optical signals sent by all the ONUs. Sent to the OLT through the backbone fiber. In order to ensure that multiple ONU optical signals do not conflict when uplinking, it is necessary to transmit optical signals by one ONU at the same time under the control of the OLT.
吉比特无源光网络 (Gigabit Passive Optical Network, 简称 GPON) 标 准 是 由 国 际 电 信 耳关 盟 ( International Telecommunications Union- Telecommunication Sector, 简称 ITU-T) 提出的基于 ITU-T G.984.X标准的 最新一代宽带无源光综合接入标准。 在 GPON标准中, 为了支持所有 ONU 发送的光信号到达 OLT 的时刻是相同的, ONU在向 OLT发送上行数据 时, 需要根据 ONU与 OLT之间的距离的不同, 延迟不同的时间发送。 这 个发送延迟时间称为均衡时延 (equalization delay, 简称 EqD) 。 OLT通过 对 ONU的测距 (RANGING) 处理, 获得 OLT到该 ONU的往返程时延 (Round trip delay, 简称 Rtd) 值, 利用 Rtd值计算出 ONU的 EqD值, 并设 置到 ONU中。 Gigabit Passive Optical Network (GPON) standard is the International Telecommunications Union (International Telecommunications Union- Telecommunication Sector (referred to as ITU-T) The latest generation of broadband passive optical integrated access standards based on ITU-T G.984.X standard. In the GPON standard, in order to support the time when the optical signals transmitted by all ONUs arrive at the OLT, the ONU needs to delay the transmission of different time according to the difference between the ONU and the OLT when transmitting the uplink data to the OLT. This transmission delay time is called equalization delay (EqD). The OLT obtains the round trip delay (Rtd) value of the OLT to the ONU through the RANGING processing of the ONU, and calculates the EqD value of the ONU by using the Rtd value, and sets it to the ONU.
计算 ONU的 EqD的公式为:  The formula for calculating the EQD of the ONU is:
EqD=Teqd-Rtd ( 1 ) 其中 Teqd为均衡往返程时延 (Equalized round trip delay), 是一个常数 值。  EqD=Teqd-Rtd ( 1 ) where Teqd is the equalized round trip delay and is a constant value.
ONU在测距 (RANGING) 状态实现测距处理, 具体包括: OLT为待 测距 ONU打开一个无数据传输的测距窗口; OLT向待测距 ONU发送测距 请求 ( Range Request ) 消息; ONU 通过序列号物理层维护消息 ( Serial— Number— ONU PLOAM) 响应 OLT; OLT计算 ONU的 EqD值, 并 通过测距定时物理层维护消息 (Ranging Time PLO AM) 发送给 ONU, 该消 息发送 3次。  The ONU implements ranging processing in the RANGING state, and the following includes: The OLT opens a ranging window with no data transmission for the ONU to be measured; the OLT sends a Range Request message to the ONU to be measured; The serial number physical layer maintenance message (Serial_Number_ONU PLOAM) responds to the OLT; the OLT calculates the EQD value of the ONU and sends it to the ONU through the Ranging Time PLO AM message, which is sent 3 times.
可以看出, 整个 ONU测距过程需要 6个消息交互, 在 GPON标准中, 每隔 125μδ发送一次消息, 因此整个 ONU的测距过程大概需要 1ms的时 间。 ONU 测距完成后, 由测距 ( RANGING ) 状态转换到工作 (OPERATION) 状态。 在工作 (OPERATION) 状态, ONU开始与 OLT进 行数据传输。 ONU的测距处理是串行的, OLT完成前一个 ONU的测距处 理之后, 才开始下一个 ONU的测距处理。 ONU测距完成后, ONU与 OLT 之间的数据传输恢复。 因此, 由于主干光纤故障导致的业务中断时间为: 业务中断时间 =LOS检测时间 +切换决策执行时间 + NxONU测距时 间; It can be seen that the entire ONU ranging process requires six message interactions. In the GPON standard, a message is sent every 125 μ δ , so the ranging process of the entire ONU takes about 1 ms. After the ONU is measured, it is switched from the RANGING state to the OPERATION state. In the OPERATION state, the ONU starts data transmission with the OLT. The ranging processing of the ONU is serial. After the OLT completes the ranging processing of the previous ONU, the ranging processing of the next ONU is started. After the ONU ranging is completed, the data transmission between the ONU and the OLT is restored. Therefore, the service interruption time due to the failure of the backbone fiber is: Service interruption time = LOS detection time + handover decision execution time + NxONU ranging time;
其中, N为一个 OLT下接入的 ONU数目。  N is the number of ONUs accessed by the OLT.
从中可以看出, ONU重新测距的时间是整个业务中断时间最长的。 每 个 ONU测距时间大概 lms, 在一个 OLT下接入 128 ONU或者更多时, 业 务的中断时间大大超过 50ms。 PON 承载时分复用 ( Time Division Multiplex, 简称 TDM) 业务, 要求业务中断时间小于 50ms, 而现有技术无 法满足这一要求。 发明内容  It can be seen that the ONU re-ranging time is the longest interruption of the entire service. The distance of each ONU ranging is about lms. When accessing 128 ONUs or more under one OLT, the service interruption time is much longer than 50ms. The PON carries the Time Division Multiplex (TDM) service, which requires the service interruption time to be less than 50ms, and the prior art cannot meet this requirement. Summary of the invention
本发明实施例针对现有技术中存在的问题, 提供一种光网络系统数据链 路切换方法、 光线路终端及光网络系统, 可以缩短光网络系统中由于主干光 纤或主用光线路终端发生故障导致的业务中断时间。  The embodiments of the present invention provide a data link switching method, an optical line terminal, and an optical network system for an optical network system, which can shorten the failure of the trunk optical fiber or the primary optical line terminal in the optical network system. The resulting business interruption time.
本发明实施例提供了一种光网络系统数据链路切换方法, 所述光网络系 统包括至少两个光线路终端, 分别通过光纤连接到同一个光分路器, 所述光 分路器连接到至少一个光网络单元, 当业务从所述第一光线路终端切换到所 述第二光线路终端时; 在所述第二光线路终端上执行如下处理歩骤:  An embodiment of the present invention provides a data link system switching method for an optical network system, where the optical network system includes at least two optical line terminals respectively connected to the same optical splitter through optical fibers, where the optical splitter is connected to At least one optical network unit, when the service is switched from the first optical line terminal to the second optical line terminal; performing the following processing steps on the second optical line terminal:
向与所述光分路器连接的光网络单元发送第一通知消息, 以通知所述光 网络单元进入工作状态;  Sending a first notification message to the optical network unit connected to the optical splitter to notify the optical network unit to enter an active state;
向所述光网络单元发送上行数据传输需要的带宽映射;  Transmitting, to the optical network unit, a bandwidth mapping required for uplink data transmission;
接收所述光网络单元响应所述带宽映射发送的上行数据, 以及  Receiving uplink data sent by the optical network unit in response to the bandwidth mapping, and
通过监测发送所述带宽映射和接收所述上行数据的过程, 将发送所述带 宽映射到收到所述上行数据的时延确定为所述第二光线路终端和所述光网络 单元之间的零距离均衡时延。  Determining, by the process of transmitting the bandwidth mapping and receiving the uplink data, a delay between transmitting the bandwidth and receiving the uplink data, between the second optical line terminal and the optical network unit Zero distance equalization delay.
本发明实施例还提供了一种光线路终端, 包括: 切换执行模块, 用于将所述光线路终端从备用光线路终端切换为主用光 线路终端; The embodiment of the invention further provides an optical line terminal, including: a switching execution module, configured to switch the optical line terminal from a standby optical line terminal to a main optical line terminal;
通知消息发送模块, 用于当所述光线路终端从备用光线路终端切换为主 用光线路终端时, 向光网络单元发送第一通知消息, 以通知所述光网络单元 进入工作状态;  a notification message sending module, configured to send a first notification message to the optical network unit to notify the optical network unit to enter a working state when the optical line terminal switches from the standby optical line terminal to the primary optical line terminal;
带宽映射发送模块, 用于向所述光网络单元发送带宽映射;  a bandwidth mapping sending module, configured to send a bandwidth mapping to the optical network unit;
上行数据接收模块, 用于接收上行数据, 所接收的上行数据包括所述光 网络单元的上行数据;  An uplink data receiving module, configured to receive uplink data, where the received uplink data includes uplink data of the optical network unit;
监测模块, 用于监测所述带宽映射发送模块和所述上行数据接收模块, 将发送所述带宽映射到收到所述上行数据的时延确定为所述光线路终端和所 述光网络单元之间的零距离均衡时延。  a monitoring module, configured to monitor the bandwidth mapping sending module and the uplink data receiving module, and determine a delay for transmitting the bandwidth to receive the uplink data as the optical line terminal and the optical network unit Zero distance equalization delay between.
本发明实施例还提供了一种光网络系统, 包括至少两个光线路终端, 分 别通过光纤连接到同一光分路器, 所述光分路器通过光纤连接到至少一个光 网络单元, 当业务从所述第一光线路终端切换到所述第二光线路终端时: 所述第二光线路终端, 向所述光网络单元发送第一通知消息以通知所述 光网络单元进入工作状态, 向光网络单元发送上行数据传输需要的带宽映射 并接收所述光网络单元响应所述带宽映射发送的上行数据, 其中, 通过监测 发送所述带宽映射和接收所述上行数据的过程, 将发送所述带宽映射到收到 所述上行数据的时延确定为所述第二光线路终端和所述光网络单元之间的零 距离均衡时延;  The embodiment of the present invention further provides an optical network system, including at least two optical line terminals, respectively connected to the same optical splitter through an optical fiber, where the optical splitter is connected to at least one optical network unit through an optical fiber, when the service When switching from the first optical line terminal to the second optical line terminal: the second optical line terminal sends a first notification message to the optical network unit to notify the optical network unit to enter a working state, The optical network unit sends the bandwidth mapping required for the uplink data transmission and receives the uplink data sent by the optical network unit in response to the bandwidth mapping, where the process of transmitting the bandwidth mapping and receiving the uplink data is sent, The delay of the bandwidth mapping to the received uplink data is determined as a zero-distance equalization delay between the second optical line terminal and the optical network unit;
所述光网络单元, 用于接收来自所述第二光线路终端发送的第一通知消 息, 响应所述第一通知消息, 进入工作状态, 并在接收到来自所述第二光线 路终端发送的带宽映射后, 根据记录在本地的所述第一光线路终端指派的均 衡时延和所述第二光线路终端发送的带宽映射, 向所述第二光线路终端发送 上行数据。 本发明实施例在主干光纤发生故障后, 原主用 OLT切换成备用 OLT , 原备用 OLT切换成主用 OLT , 然后 OLT向各 ONU发送第一通知消息, 通 知各 ONU进入工作状态, 并且保持原 EqD不变, 各 ONU在转换到工作 ( OPERATION ) 状态之后就可以进行正常的数据传输, 简化了业务终端流 程, 节省了多个 ONU测距的时间, 从而可以满足光网络系统中将业务中断 的时间控制在 50ms这一要求。 The optical network unit is configured to receive a first notification message sent by the second optical line terminal, enter a working state in response to the first notification message, and receive a transmission from the second optical line terminal. After the bandwidth mapping, the uplink data is sent to the second optical line terminal according to the equalization delay assigned by the first optical line terminal recorded locally and the bandwidth mapping sent by the second optical line terminal. In the embodiment of the present invention, after the failure of the trunk optical fiber, the original primary OLT is switched to the standby OLT, and the original standby OLT is switched to the primary OLT. Then, the OLT sends a first notification message to each ONU, informing each ONU to enter the working state, and maintaining the original EqD. After the transition to the OPERATION state, each ONU can perform normal data transmission, which simplifies the service terminal process and saves the time of multiple ONU ranging, thereby meeting the time of service interruption in the optical network system. Control the requirement of 50ms.
下面通过附图和实施例, 对本发明的技术方案做进一歩的详细描述。 附图说明  The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. DRAWINGS
图 1所示为现有技术中 PON网络架构示意图;  FIG. 1 is a schematic diagram of a PON network architecture in the prior art;
图 2所示为本发明光网络系统数据链路切换方法实施例  FIG. 2 is a diagram showing an embodiment of a data link switching method for an optical network system according to the present invention;
图 3所示为本发明光网络系统数据链路切换方法实施例
Figure imgf000007_0001
FIG. 3 is a diagram showing an embodiment of a data link switching method for an optical network system according to the present invention;
Figure imgf000007_0001
图 4所示为本发明 OLT实施例结构示意图;  4 is a schematic structural view of an OLT embodiment of the present invention;
图 5所示为本发明 ONU实施例结构示意图;  FIG. 5 is a schematic structural view of an ONU embodiment of the present invention;
图 6所示为本发明光网络系统实施例结构示意图。 具体实施方式  FIG. 6 is a schematic structural diagram of an embodiment of an optical network system according to the present invention. detailed description
如图 2所示为本发明光网络系统数据链路切换方法实施例一流程图, 所 述光网络系统包括至少两个 OLT , 分别通过光纤连接到同一个光分路器, 所述光分路器连接到至少一个 ONU, 所述第二 OLT指派给所述 ONU的均 衡时延与所述第一 OLT指派给所述 ONU的均衡时延相同, 当业务从第一 OLT切换到第二 OLT时; 在第二 OLT上执行的歩骤包括:  FIG. 2 is a flowchart of Embodiment 1 of a method for switching data link of an optical network system according to the present invention. The optical network system includes at least two OLTs, which are respectively connected to the same optical splitter through optical fibers, and the optical splitting The device is connected to the at least one ONU, and the equalization delay assigned by the second OLT to the ONU is the same as the equalization delay assigned by the first OLT to the ONU, when the service is switched from the first OLT to the second OLT. The steps performed on the second OLT include:
歩骤 1 1、 向与所述光分路器连接的 ONU发送第一通知消息, 以通知所 述 ONU进入工作状态;  Step 1: Send a first notification message to the ONU connected to the optical splitter to notify the ONU to enter a working state;
歩骤 12、 执行向所述 ONU发送上行数据传输需要的带宽映射并接收所 述 ONU发送的上行数据的操作, 其中, 通过监测发送所述带宽映射和接收 所述上行数据的过程确定所述第二 OLT和所述 ONU之间的零距离均衡时 延。 Step 12: Perform an operation of sending a bandwidth mapping required for uplink data transmission to the ONU and receiving uplink data sent by the ONU, where the bandwidth mapping and receiving are sent by monitoring The process of the uplink data determines a zero distance equalization delay between the second OLT and the ONU.
歩骤 12具体为: 第二光线路终端关闭窗口漂移 (drift of window) 告 警; 向 ONU发送带宽映射, 并开始计时; 在收到自发出所述带宽映射之后 的第一个上行数据时, 停止计时, 并将计时结果作为零距离均衡时延。  Step 12 is specifically as follows: the second optical line terminal closes a window of window alarm; sends a bandwidth mapping to the ONU, and starts timing; when receiving the first uplink data after the bandwidth mapping is sent, stopping Timing, and the timing result as a zero distance equalization delay.
可选地, 本发明实施例提供的光网络系统数据链路切换方法还包括: 歩骤 13、 利用确定的零距离均衡时延进行窗口漂移检测, 如果检测到 窗口漂移进行告警, 如果需要, 在后续歩骤中还可以对 ONU的均衡时延进 行相应调整。  Optionally, the data link method for the optical network system provided by the embodiment of the present invention further includes: Step 13: Perform window drift detection by using the determined zero-distance equalization delay, and if the window drift is detected, if necessary, In the subsequent steps, the equalization delay of the ONU can also be adjusted accordingly.
歩骤 13具体可以通过获取零距离均衡时延 (零距离均衡时延是指 OLT 发送下行帧的时间与预计开始接收上行帧的时间差) 来检测是否有窗口漂移 发生, 从而向 OLT和 ONU发送窗口漂移告警, 以保证 ONU到光线路终端 上行传输不发生冲突。  Step 13 can specifically detect whether a window drift occurs by obtaining a zero-distance equalization delay (the zero-distance equalization delay refers to the time difference between the time when the OLT sends the downlink frame and the expected start of receiving the uplink frame), thereby sending a window to the OLT and the ONU. The drift alarm is used to ensure that the uplink transmission from the ONU to the optical line terminal does not conflict.
OLT通过发送带宽映射 (BandWidth Map, 简称 BWMap) 给 ONU分 配上行带宽, 从 OLT下发 BWMap到 OLT收到 ONU上行数据的时延为零 距离均衡时延; 如果发生了窗口漂移, 需要修改相应的 ONU的 EqD值。  The OLT allocates the uplink bandwidth to the ONU by using the Bandwidth Map (BWMap). The delay from the BWMap sent by the OLT to the OLT receiving the uplink data of the ONU is zero distance equalization delay. If window drift occurs, the corresponding modification needs to be performed. The EqD value of the ONU.
如图 3所示为本发明光网络系统数据链路切换方法实施例二流程图, 所 述光网络系统包括至少两个 OLT, 分别通过光纤连接到同一个光分路器, 所述光分路器连接到至少一个 ONU, 当业务需要从第一 OLT切换到第二 OLT时, 在 ONU上执行的歩骤包括:  FIG. 3 is a flowchart of Embodiment 2 of a data link switching method of an optical network system according to the present invention. The optical network system includes at least two OLTs respectively connected to the same optical splitter through optical fibers, and the optical splitting The device is connected to the at least one ONU. When the service needs to be switched from the first OLT to the second OLT, the steps executed on the ONU include:
歩骤 21、 接收来自第二 OLT发送的第一通知消息;  Step 21: Receive a first notification message sent by the second OLT.
歩骤 22、 响应接收到的所述第一通知消息, 进入工作状态;  Step 22: Enter a working state in response to the received first notification message;
歩骤 23、 接收来自第二 OLT的上行数据传输需要的带宽映射, 根据所 述光网络单元的均衡时延和所述带宽映射, 向第二 OLT发送上行数据, 其 中, 所述 ONU的均衡时延为记录在本地的所述第二 OLT指派给所述 ONU 的均衡时延。 具体地, 第一通知消息为一种物理层维护消息, 所述一种物理层维护消 息中携带有用于通知光网络单元进入工作状态的信息和 /或通知保持均衡时 延不变的信息, 其中, 可以仅用一个信息表示通知光网络单元进入工作状态 的信息和通知保持均衡时延不变。 第一通知消息可以是 POPUP消息, 其 中, POPUP消息既可以是广播 POPUP消息也可以是单播 POPUP消息, 如 表一所示为本发明实施例中涉及的 POPUP消息格式。 Step 23: Receive a bandwidth mapping required for uplink data transmission from the second OLT, and send uplink data to the second OLT according to the equalization delay of the optical network unit and the bandwidth mapping, where the ONU is balanced. The delay is assigned to the equalization delay assigned by the second OLT to the ONU. Specifically, the first notification message is a physical layer maintenance message, where the physical layer maintenance message carries information for notifying the optical network unit to enter the working state and/or notifying that the equalization delay is unchanged, where The information indicating that the optical network unit is notified to enter the working state and the notification can be kept with only one information to maintain the equalization delay. The first notification message may be a POPUP message, where the POPUP message may be a broadcast POPUP message or a unicast POPUP message, as shown in Table 1 is a POPUP message format involved in the embodiment of the present invention.
、 本发明实施例中涉及的 POPUP消息格式 POPUP message format involved in the embodiment of the present invention
Figure imgf000009_0001
对于一个具有表一格式的 POPUP消息, 如果 POPUP消息中编号为 1 的字节的内容为 ONU-ID=0xFF, 则该 POPUP消息为广播 POPUP消息; 如 果 POPUP 消息中编号为 1 的字节的内容为具体的某一个 0NU 的标识 (0NU-ID) , 则该 POPUP消息为单播 POPUP消息, 其中, 0NU的标识 (0NU-ID) 表示该单播 POPUP消息的接收对象是与消息中的 0NU-ID相对 应的 0NU。 广播 POPUP消息直接发送给所有 0NU, 单播 POPUP消息也会 发送给所有的 0NU, 但是由于该单播 POPUP消息是针对特定的 ONU (单 播 POPUP消息中不同的 ONU-ID对应不同的 ONU) , 相应的 ONU接收到 单播 POPUP消息 (根据 ONU-ID识别) 会进行相应的处理, 而其他的 ONU 则会将该单播 POPUP消息丢弃。 因此, 对于有多个 ONU 的系统, 需要 OLT多次发送单播 POPUP消息给相应的 ONU。
Figure imgf000009_0001
For a POPUP message with a table-one format, if the content of the byte numbered 1 in the POPUP message is ONU-ID=0xFF, the POPUP message is a broadcast POPUP message; if the content of the byte numbered 1 in the POPUP message For a specific 0NU identifier (0NU-ID), the POPUP message is a unicast POPUP message, where the 0NU identifier (0NU-ID) indicates that the unicast POPUP message is received with the message 0NU- The ID corresponding to the 0NU. The broadcast POPUP message is sent directly to all 0NUs, and the unicast POPUP message is also sent to all ONUs, but since the unicast POPUP message is for a specific ONU (single Different ONU-IDs in the POPUP message correspond to different ONUs. The corresponding ONU receives the unicast POPUP message (identified by the ONU-ID) and performs corresponding processing, while other ONUs discard the unicast POPUP message. . Therefore, for a system with multiple ONUs, the OLT needs to send a unicast POPUP message to the corresponding ONU multiple times.
POPUP消息是 PLOAM消息的一种, 可以通过修改现有的物理层维护 The POPUP message is a type of PLOAM message that can be modified by modifying the existing physical layer.
(PLOAM) 消息实现第一通知消息的功能如表一所示, 目前 POPUP消息的 字节编号为 3到第 12字节为预留位, 没有明确的含义, 本发明实施例中修 改后的 POPUP消息将编号为 3 的字节进行了定义, 定义了 a、 b、 c、 d、 e、 f、 g、 h八个可选项, 定义: 当 a=l 时表示要求 ONU切换到工作 (OPERATION) 状态, 并保持 EqD、 分配标识符 (Alloc-ID) 和 ONU标识 ( ONU-ID ) 不变; 当 a=0 时表示要求 ONU切换到测距 (RANGING) 状 态。 在具体应用中, 当主用主干光纤或主用 OLT遇到故障, 并且完成了原 主用 OLT从主用到备用以及原备用 OLT从备用到主用的切换之后, 新的主 用 OLT (即原备用 OLT) 可以通过广播的方式向所有 ONU发送第一通知消 息, 如上述修改后的 POPUP消息, 该修改后的 POPUP消息中编号为 3的 字节的内容为 a=l, 编号为 1 的字节中的内容为 ONU-ID=0xFF, 表示该 POPUP为广播 POPUP消息, 这样各 ONU收到该修改后的 POPUP消息之 后, 响应 POPUP消息就可以转换到工作 (OPERATION) 状态, 并保持原 EqD、 ONU-ID和 Alloc-ID不变。 这里的工作 (OPERATION) 状态可以是 ITU-T G984.3标准中定义的 ONU的状态之一, 其中, G984.3标准定义的 ONU的状态包括: OPERATION RANGING, POPUP等状态。 (PLOAM) The function of the message to implement the first notification message is as shown in Table 1. The current POPUP message has the byte number from 3 to the 12th byte as a reserved bit, and has no clear meaning. The modified POPUP in the embodiment of the present invention. The message defines the byte numbered 3. It defines eight options for a, b, c, d, e, f, g, h. Definition: When a=l, it indicates that the ONU is required to switch to work (OPERATION) Status, and keep EqD, allocation identifier (Alloc-ID) and ONU identifier (ONU-ID) unchanged; when a=0, it indicates that the ONU is required to switch to the RANGING state. In a specific application, when the primary trunk fiber or the primary OLT encounters a failure, and the original primary OLT is switched from the primary to the standby and the original standby OLT is switched from the standby to the primary, the new primary OLT (ie, the original standby) OLT) may send a first notification message to all ONUs by means of broadcast, such as the modified POPUP message, wherein the content of the byte numbered 3 in the modified POPUP message is a=l, the number numbered 1 The content in the ONU-ID=0xFF indicates that the POPUP is a broadcast POPUP message, so after receiving the modified POPUP message, each ONU can switch to the OPERATION state in response to the POPUP message, and maintain the original EqD and ONU. -ID and Alloc-ID are unchanged. The OPERATION state here may be one of the states of the ONU defined in the ITU-T G984.3 standard, wherein the states of the ONU defined by the G984.3 standard include: OPERATION RANGING, POPUP, and the like.
OLT 向与所述光分路器连接的光网络单元发送第一通知消息, ONU根 据所述第一通知消息, 进入工作状态。 具体保持均衡时延不变的方式可以是 OLT发送的第一通知消息中携带有保持均衡时延不变的信息, ONU根据第 一通知消息, 保持原均衡时延; 也可以是当 ONU根据第一通知消息从当前 挂起状态进入工作状态时, 默认保持原均衡时延。 通过保持原均衡时延, 即 切换后的均衡时延和切换前相同, 采用这种方法不需要重新从 OLT处获得 均衡时延, 简化了 ONU的流程, 节省了时间, 使得 ONU能在 50ms内快速 恢复工作。 The OLT sends a first notification message to the optical network unit connected to the optical splitter, and the ONU enters an active state according to the first notification message. Specifically, the first notification message sent by the OLT carries the information that keeps the equalization delay unchanged, and the ONU maintains the original equalization delay according to the first notification message; When a notification message enters the working state from the current suspended state, the original equalization delay is maintained by default. By maintaining the original equalization delay, ie The equalization delay after the handover is the same as before the handover. This method does not need to obtain the equalization delay from the OLT again, which simplifies the ONU process and saves time, so that the ONU can resume work quickly within 50ms.
本发明实施例一中, 在光网络系统中主干光纤或原主用 OLT发生故 障, 并且完成了原主用 OLT到备用 OLT和原备用 OLT到主用 OLT的切换 后, 并不需要为各 ONU 指派专门的测距窗, 使各 ONU 进入测距 (RANGING) 状态进行测距, 通过测距重新计算各 ONU的 EqD值, 而是 直接通知各 ONU进入工作 (OPERATION) 状态, 执行向 ONU发送具有上 行数据传输需要的带宽分配信息的 BWMap和接收 ONU发送的上行数据的 操作, 同时监控向 ONU发送 BWMap和接收 ONU发送的上行数据的过程 以确定零距离均衡时延。 特别地, 在 ONU上保持原 EqD值、 ONU-ID以及 Alloc-ID不变, 这样就可以省去各 ONU测距的时间, 使各 ONU直接进入 工作 (OPERATION) 状态, 从而大大缩短由于主干光纤或原主用 OLT发 生故障导致的业务中断时间。  In the first embodiment of the present invention, after the trunk optical fiber or the original primary OLT fails in the optical network system, and the switching between the original primary OLT and the standby OLT and the original standby OLT to the primary OLT is completed, it is not necessary to assign a specialization to each ONU. The ranging window allows each ONU to enter the Ranging state for ranging, and recalculates the EqD value of each ONU by ranging, but directly notifies each ONU to enter the OPERATION state, and performs uplink data transmission to the ONU. The BWMap of the required bandwidth allocation information is transmitted and the operation of receiving the uplink data sent by the ONU, and the process of transmitting the BWMap to the ONU and receiving the uplink data sent by the ONU is monitored to determine the zero-distance equalization delay. In particular, the original EqD value, the ONU-ID, and the Alloc-ID are kept unchanged on the ONU, so that the time of each ONU ranging can be omitted, and each ONU can directly enter the OPERATION state, thereby greatly shortening the backbone fiber. Or the service interruption time caused by the failure of the original primary OLT.
本发明实施例中, 在 OLT向各 ONU发送第一通知消息后, OLT通过 广播方式向各 ONU发送 BWMap, 并开始计时, 各 ONU收到 BWMap之 后, 正常发送上行数据, OLT检测到自发送上述 BWMap之后的第一个上 行数据后, 停止计时, 并将计时结果作为零距离均衡时延, 将获得的零距离 均衡时延设置在 OLT, 以便后续进行窗口漂移检测时使用。 由于在主干光 纤或主用 OLT发生故障时, 完成了主备用 OLT的切换之后, 还没有获得零 距离均衡时延, 所以在发送第一通知消息之前, 可以先将窗口漂移告警关 闭, 等到获得零距离均衡时延之后, 再开启窗口漂移告警。  In the embodiment of the present invention, after the OLT sends the first notification message to each ONU, the OLT sends a BWMap to each ONU through the broadcast mode, and starts timing. After receiving the BWMap, each ONU sends the uplink data normally, and the OLT detects that the self-send is sent. After the first uplink data after the BWMap, the timing is stopped, and the timing result is used as the zero-distance equalization delay, and the obtained zero-distance equalization delay is set at the OLT for subsequent window drift detection. When the primary or secondary OLT fails, the zero-distance equalization delay is not obtained after the primary and backup OLTs are switched. Therefore, before the first notification message is sent, the window drift alarm can be turned off first, and then zero is obtained. After the equalization delay, the window drift alarm is turned on.
如果第一通知消息是单播 POPUP消息, 则 OLT向每一个需要传输数据 的 ONU发送一个单播 POPUP消息, 以通知每一个 ONU进入工作状态。 OLT向各 ONU发送 BWMap, 开始计时, 在收到自发送 BWMap之后的第 一个上行数据后停止计时, 获取零距离均衡时延。 BWMap每隔 125μδ发送 一次,每次下发的 BWMap中均包括当前已经处于工作状态的 ONU的带宽分 配情况。 零距离均衡时延可以在第一个单播 POPUP消息发送之后的第一个 BWMap发出之后获得, 获得之后, 后续的 BWMap发送时, 就可以不用再 获取零距离均衡时延。 当然也可以通过多次 BWMap发送和上行数据接收的 过程, 获得多个零距离均衡时延, 多对个零距离均衡时延进行相应处理 (如 均值处理) 得到更为精确的零距离均衡时延。 If the first notification message is a unicast POPUP message, the OLT sends a unicast POPUP message to each ONU that needs to transmit data to notify each ONU to enter a working state. The OLT sends a BWMap to each ONU to start timing. After receiving the first uplink data after sending the BWMap, the OLT stops timing and obtains a zero-distance equalization delay. BWMap is sent every 125μ δ At a time, the BWMap delivered each time includes the bandwidth allocation of the ONU that is currently in the working state. The zero-distance equalization delay can be obtained after the first BWMap is sent after the first unicast POPUP message is sent. After the subsequent BWMap is sent, the zero-distance equalization delay can be obtained. Of course, multiple zero-distance equalization delays can be obtained through multiple BWMap transmission and uplink data reception processes, and multiple zero-distance equalization delays are processed correspondingly (such as mean processing) to obtain a more accurate zero-distance equalization delay. .
下面结合具体应用场景简要说明本发明实施例提供的方法的有益效果。 本发明实施例应用场景为一种 PON网络架构: 互为备份的两个 OLT设 备各自通过独立的主干光纤与光分路器连接, 网络中以三个 ONU为例, 分 别是 0NU1、 ONU2、 ONU3, 三者与光分路器之间的各分支光纤的长度分 别为 、 12、 13,原主用主干光纤的长度为 Li, 原备用主干光纤切换成的主用 主干光纤的长度为 L2。 ONU 向 OLT的数据传输速率为光速 c, 根据计算 EqD的公式 (1) , 可以得到在发生故障之前, 各 ONU的 EqD值, 分别 是: EqDu=A-2 ( lj+Li ) /c; EqD12=A-2 ( 12+Li ) /c; EqD13=A-2 ( 13+Li ) /c; 各 EqD之间的差分别是: The beneficial effects of the method provided by the embodiment of the present invention are briefly described below in conjunction with specific application scenarios. An application scenario of the embodiment of the present invention is a PON network architecture: two OLT devices that are mutually backup are connected to an optical splitter through independent trunk fibers, and three ONUs are taken as an example in the network, namely 0NU1, ONU2, and ONU3. The lengths of the branches of the optical fibers between the three and the optical splitter are respectively, 1 2 and 1 3 , the length of the original primary trunk fiber is Li, and the length of the primary trunk fiber switched to the original standby trunk fiber is L 2 . . The data transmission rate of the ONU to the OLT is the speed of light c. According to the formula (1) for calculating EqD, the EqD values of the ONUs before the failure can be obtained, respectively: EqD u = A-2 ( lj + Li ) / c; EqD 12 =A-2 ( 1 2 +Li ) /c; EqD 13 =A-2 ( 1 3 +Li ) /c; The difference between each EqD is:
AEqDj
Figure imgf000012_0001
(2) AEqD12=EqD13-EqD12=[A-2 ( + ) /c]-[A-2 (\2+ ) /c]=2(l3-l2)/c (3) 发生故障之后, 各 ONU的 EqD值, 分别是: EqD21=A-2 ( +L2) /c; EqD22=A-2 (12+L2) /c; EqD23=A-2 (13+L2) /c; 各 EqD之间的差分别是: AEqD21=EqD22-EqD21= [A-2 (12+L2) /c]-[A-2 (l!+L2) /c]=2(l2-l!)/c (4) AEqD22=EqD23-EqD22= [A-2 (13+L2) /c]-[A-2 (12+L2) /c]=2(l3-l2)/c (5) 以上各式中, A为一常数, 表示均衡往返程时延 Teqd。
AEqDj
Figure imgf000012_0001
(2) AEqD 12 =EqD 13 -EqD 12 =[A-2 ( + ) /c]-[A-2 (\ 2 + ) /c]=2(l 3 -l 2 )/c (3) After the fault, the EqD values of the respective ONUs are: EqD 21 = A-2 ( + L 2 ) /c ; EqD 22 = A-2 (1 2 + L 2 ) / c ; EqD 23 = A-2 (1 3 +L 2 ) /c ; the difference between each EqD is: AEqD 21 =EqD 22 -EqD 21 = [A-2 (1 2 +L 2 ) /c]-[A-2 (l!+L 2 ) /c]=2(l 2 -l!)/c (4) AEqD 22 =EqD 23 -EqD 22 = [A-2 (1 3 +L 2 ) /c]-[A-2 (1 2 +L 2 ) /c]=2(l 3 -l 2 )/c (5) In the above equations, A is a constant and represents the equalization round trip delay Teqd.
在 PON网络中, 同一时刻只能有一个 ONU向 OLT发送上行数据, 为 了使 OLT到每个 ONU 的往返时延相等, 从而使各 ONU按照带宽映射 (BWMap) 发送上行数据时不会冲突, 所以需要设置 EqD值。 从以上的公 式 (2) - (5) 可以看出, 在发生故障之前各 EqD 之间的差 AEqD„、 AEqD12, 分别等于发生故障之后的各 EqD之间的差 AEqD21、 AEqD22, 也 就是说, 在发生故障后并完成了主备用 OLT的切换以及主备用主干光纤的 切换后, 即使重新计算各 ONU的 EqD值, 各 EqD之间的差还是分别等于 发生故障之前, 可以实现 OLT到各 ONU的往返时延相等的效果。 如果按 照本发明实施例提供的方法, 在发生故障后, 完成了主备用 OLT的切换之 后, 仍然沿用发生故障之前的各 EqD值, 也可以保证各 EqD值之差不变, 而且 OLT到各 ONU的往返时延相等。 所以, 对于主干光纤发生故障的情 况, 在完成主备用 OLT的切换以及主备用主干光纤的切换之后, 可以不重 新计算 EqD值, 而沿用发生故障之前的各 EqD值。 In a PON network, only one ONU can send uplink data to the OLT at the same time. In order to make the round-trip delays of the OLT to each ONU equal, the ONUs do not conflict when sending uplink data according to the bandwidth mapping (BWMap). Need to set the EqD value. From the above formulas (2) - (5), it can be seen that the difference AEqD between each EqD before the failure occurs, AEqD 12 is equal to the difference between each EqD after the failure, AEqD 21 and AEqD 22 , that is, after the failure and the completion of the switching between the primary and backup OLTs and the switching of the primary and backup trunk fibers, even if the calculations are recalculated The EQD value of the ONU, and the difference between each EqD is equal to the effect that the round-trip delay of the OLT to each ONU is equal before the failure occurs. According to the method provided by the embodiment of the present invention, after the failure of the primary standby OLT after the failure occurs, the EqD values before the failure are still used, and the difference between the EqD values can be ensured, and the OLT to each ONU The round trip delay is equal. Therefore, in the case where the trunk fiber fails, after completing the switching of the primary standby OLT and the switching of the primary standby trunk fiber, the EqD value may not be recalculated, and each EqD value before the failure occurs.
通过发送第一通知消息使得各 ONU转换到工作 (OPERATION) 状态 之后, 各 ONU与 OLT之间就可以进行正常的通信了。 为了更好地实施本 发明各实施例, 还可以通过获取零距离均衡时延来检测是否有窗口漂移发 生, 从而向 OLT和 ONU发送窗口漂移 ( drift of window ) 告警。  After the ONUs are switched to the OPERATION state by transmitting the first notification message, normal communication can be performed between each ONU and the OLT. In order to better implement the embodiments of the present invention, it is also possible to detect whether a window drift occurs by acquiring a zero-distance equalization delay, thereby transmitting a drift of window alarm to the OLT and the ONU.
对于本发明实施例提供的方法, 业务中断的时间为:  For the method provided by the embodiment of the present invention, the service interruption time is:
业务中断时间 =LOS检测时间 +切换决策执行时间 +N个 ONU切换回工 作状态的时间; 通过广播方式发送 POPUP消息, 以通知各 ONU转换到工 作 (OPERATION) 状态, 并保持原 EqD、 ONU-ID和 Alloc-ID不变。 这 样, N个 ONU切换回工作状态的时间就是发送一条消息所需的时间, 约为 125μ8, 这样造成业务中断的时间约为 2ms+125 s =2.125ms。  Service interruption time = LOS detection time + handover decision execution time + time when N ONUs switch back to the working state; POPUP message is sent by broadcast to notify each ONU to switch to the OPERATION state, and keep the original EqD, ONU-ID And Alloc-ID is unchanged. In this way, the time for the N ONUs to switch back to the working state is the time required to send a message, which is about 125μ8, which causes the service interruption time to be about 2ms+125 s =2.125ms.
通过以上的描述可以看出, 采用本发明实施例提供的故障恢复方法, 可 以满足将业务中段的时间限制在 50ms这一要求, 而采用现有技术的方法, 当 ONU的数量较多时, 这一要求很难得到满足。  It can be seen from the above description that the fault recovery method provided by the embodiment of the present invention can meet the requirement of limiting the time of the middle segment of the service to 50 ms, and adopting the prior art method, when the number of ONUs is large, this The requirements are difficult to meet.
如图 4所示为本发明 OLT实施例结构示意图, 该光线路终端 (OLT) 1 可以包括: 切换执行模块 101、 通知消息发送模块 102、 带宽映射发送模块 103、 上行数据接收模块 104和监测模块 105; 切换执行模块 101、 和通知消 息发送模块 102连接, 上行数据接收模块 104分别和通知消息发送模块 102 和监测模块 105连接, 带宽映射发送模块 103分别和通知消息发送模块 102 和监测模块 105连接。 切换执行模块 101控制该光线路终端 (OLT)l切换为 主用 OLT。 具体地, 切换执行模块 101可以和 OLT上的故障监测模块 (图 中未示出) 连接, 当故障监测模块监测到与主用 OLT或与主用 OLT连接的 主用主干光纤出现故障时, 通知切换执行模块 101进行切换; 切换执行模块 101 也可以根据主用 OLT的告警指示或切换指示进行切换; 切换执行模块 101还可以根据上层网络设备的告警指示或切换指示进行切换, 上层网络设 备如具有故障维护功能的设备管理服务器 ( Equipment Management System , EMS ) 、 接入节点控制协议 (Access Node Control Protocol , ANCP) 服务器等。 具体地, 切换执行模块 101通知消息发送模块 102发送 第一通知消息给各 ONU, 用于通知各 ONU进入工作 (OPERATION) 状态 和 /或保持原 EqD不变。 FIG. 4 is a schematic structural diagram of an OLT embodiment of the present invention. The optical line terminal (OLT) 1 may include: a handover execution module 101, a notification message sending module 102, a bandwidth mapping sending module 103, an uplink data receiving module 104, and a monitoring module. The switching execution module 101 is connected to the notification message sending module 102, and the uplink data receiving module 104 and the notification message sending module 102 respectively The monitoring module 105 is connected, and the bandwidth mapping sending module 103 is connected to the notification message sending module 102 and the monitoring module 105, respectively. The handover execution module 101 controls the optical line terminal (OLT) 1 to switch to the primary OLT. Specifically, the handover execution module 101 may be connected to a fault monitoring module (not shown) on the OLT. When the fault monitoring module detects that the primary trunk fiber connected to the primary OLT or the primary OLT fails, the notification is notified. The handover execution module 101 performs the handover; the handover execution module 101 may also perform the handover according to the alarm indication or the handover indication of the primary OLT; the handover execution module 101 may also perform the handover according to the alarm indication or the handover indication of the upper layer network device, where the upper layer network device has Equipment Management System (EMS) and Access Node Control Protocol (ANCP) servers for fault maintenance. Specifically, the handover execution module 101 notifies the message sending module 102 to send a first notification message to each ONU, for notifying each ONU to enter an OPERATION state and/or keeping the original EqD unchanged.
当通知消息发送模块 102发送第一通知消息给各 ONU之后, 带宽映射 发送模块 103向各 ONU发送带宽映射。 上行数据接收模块 104等待接收上 行数据。 监测模块 105用于监测带宽映射发送模块 103和上行数据接收模块 104, 将带宽映射发送模块 103发送带宽映射和上行数据接收模块 104接收 到光网络单元响应所述带宽映射发送的上行数据的时延作为光线路终端和光 网络单元之间的零距离均衡时延。 例如, 监测第一个 ONU的零均衡时延为 例, 监测模块 105监测到带宽映射发送模块 103发送给第一个 ONU的带宽 映射, 开始计时; 当监测到第一个 ONU发送的第一个上行数据时结束计 时, 将计时结果作为该第一 ONU的零距离均衡时延。 如果带宽映射是周期 发送的, 则监测模块 105从发送某一周期的带宽映射开始计时, 在接收到该 周期的第一个上行数据时结束计时, 将计时结果作为零距离均衡时延。  After the notification message sending module 102 sends the first notification message to each ONU, the bandwidth mapping transmitting module 103 sends a bandwidth mapping to each ONU. The uplink data receiving module 104 waits to receive the uplink data. The monitoring module 105 is configured to monitor the bandwidth mapping sending module 103 and the uplink data receiving module 104, and the bandwidth mapping sending module 103 sends the bandwidth mapping and the uplink data receiving module 104 receives the delay of the uplink data sent by the optical network unit in response to the bandwidth mapping. As a zero distance equalization delay between the optical line termination and the optical network unit. For example, monitoring the zero equalization delay of the first ONU as an example, the monitoring module 105 monitors the bandwidth mapping sent by the bandwidth mapping sending module 103 to the first ONU, and starts timing; when the first ONU is detected, the first one is sent. When the uplink data is ended, the timing is used as the zero distance equalization delay of the first ONU. If the bandwidth mapping is periodically sent, the monitoring module 105 starts timing by transmitting a bandwidth mapping of a certain period, and ends the timing when receiving the first uplink data of the period, and uses the timing result as a zero-distance equalization delay.
OLT1还包括第一存储模块 106, 与监测模块 105连接。 监测模块 105 把计时结果存储到第一存储模块 106, 供窗口漂移检测模块 107后续进行窗 口漂移检测时使用。 窗口漂移检测模块 107检测和告警处理过程参见上文方 法中提到的内容。 上面监测模块 105也可监测多个 ONU中的其它任何 ONU 的零均衡时延。 由于多个 ONU共享主干光纤, 每个 ONU对应的分支光纤 在切换前后不变, 因此, 为了简化系统节约切换时间, 可以仅仅选定一个 ONU进行零均衡时延测量, 根据选定的 ONU的零距离均衡时延确定其它 ONU的零距离均衡时延。 The OLT 1 further includes a first storage module 106 coupled to the monitoring module 105. The monitoring module 105 stores the timing result to the first storage module 106 for use by the window drift detection module 107 for window drift detection. The window drift detection module 107 detects and processes the alarm process as described above. The content mentioned in the law. The above monitoring module 105 can also monitor the zero equalization delay of any other ONUs of the plurality of ONUs. Since multiple ONUs share the backbone fiber, the branch fiber corresponding to each ONU does not change before and after the switch. Therefore, in order to simplify the system to save the switching time, only one ONU can be selected for zero-equalization delay measurement, according to the selected ONU zero. The distance equalization delay determines the zero distance equalization delay of other ONUs.
如图 5所示为本发明 ONU实施例结构示意图, 该 ONU2包括: 通知消 息接收模块 201、 状态切换模块 202、 数据发送模块 204和第二存储模块 205, 通知消息接收模块 201和状态切换模块 202连接, 数据发送模块 204 分别与状态切换模块 202、 带宽映射接收模块 203和第二存储模块 205连 接。 在需要切换时, 如在主干光纤或主用 OLT发生故障后, ONU会收到来 自 OLT发送的第一通知消息, 该第一通知消息用于通知 ONU转换到工作 ( OPERATION) 状态, 例如, 可以是表一所述的格式的通知消息。 在通知 消息接收模块 201 接收到第一通知消息之后, 状态切换模块 202控制本 ONU进入工作 (OPERATION) 状态, 如向数据发送模块 204发送指示, 指 示数据发送模块 204进入工作状态以便发送上行数据; 带宽映射接收模块 203, 用于接收来自光线路终端的带宽映射, 并将接收到的带宽映射发送给 数据发送模块 204; 第二存储模块 205, 用于存储第一 OLT指派的均衡时 延; 数据发送模块 204, 用于接收来自 OLT发送的带宽映射, 根据所述带 宽映射和第二存储模块 205本地存储的均衡时延, 向 OLT发送上行数据。 其中, 数据发送模块 204利用本地存储的均衡时延进行延迟等待, 以保证本 ONU的上行数据传输和其它 ONU的上行数据传输不冲突。  FIG. 5 is a schematic structural diagram of an ONU embodiment of the present invention. The ONU 2 includes: a notification message receiving module 201, a state switching module 202, a data sending module 204, and a second storage module 205, and a notification message receiving module 201 and a state switching module 202. The connection, data sending module 204 is connected to the state switching module 202, the bandwidth mapping receiving module 203, and the second storage module 205, respectively. When a handover is required, such as after a failure of the backbone fiber or the primary OLT, the ONU receives a first notification message sent from the OLT, and the first notification message is used to notify the ONU to transition to an OPERATION state, for example, Is a notification message in the format described in Table 1. After the notification message receiving module 201 receives the first notification message, the state switching module 202 controls the ONU to enter an OPERATION state, such as sending an indication to the data sending module 204, instructing the data sending module 204 to enter an operating state to send uplink data; The bandwidth mapping receiving module 203 is configured to receive the bandwidth mapping from the optical line terminal, and send the received bandwidth mapping to the data sending module 204. The second storage module 205 is configured to store the equalization delay assigned by the first OLT. The sending module 204 is configured to receive a bandwidth mapping sent by the OLT, and send uplink data to the OLT according to the bandwidth mapping and the equalization delay stored locally by the second storage module 205. The data sending module 204 performs delay waiting by using the locally stored equalization delay to ensure that the uplink data transmission of the ONU does not conflict with the uplink data transmission of other ONUs.
如图 6所示为本发明光网络系统实施例结构示意图, 该光网络系统, 包 括至少两个光线路终端 0LT11、 OLT12, 分别通过光纤连接到同一光分路 器 3, 所述光分路器 3 通过光纤连接到光网络单元 ONU21、 ONU22、 ONU23 , 光线路终端 0LT11、 OLT12和图 4所示的 OLT相同, 光网络单元 ONU21、 ONU22、 ONU23与图 5所示的 ONU相同, 所述只是举例说明, 如图中光网络单元不仅限于三个, 可以为一个或多个 ONU。 FIG. 6 is a schematic structural diagram of an embodiment of an optical network system according to the present invention. The optical network system includes at least two optical line terminals OLT11 and OLT12, which are respectively connected to the same optical splitter 3 through optical fibers, and the optical splitter 3 Connected to the optical network unit ONU21, ONU22, ONU23 through optical fiber, optical line terminal 0LT11, OLT12 and OLT shown in Figure 4, optical network unit The ONUs 21, the ONUs 22, and the ONUs 23 are the same as the ONUs shown in FIG. 5. The foregoing is only an example. The optical network unit is not limited to three, and may be one or more ONUs.
在光网络系统中, 所述第二光线路终端 (如 OLT12) 指派给所述光网 络单元的均衡时延与所述第一光线路终端 (如 OLT11 ) 指派给所述光网络 单元 (如 ONU23 ) 的均衡时延相同, 当业务从第一光线路终端切换到第二 光线路终端时:  In an optical network system, an equalization delay assigned by the second optical line terminal (such as OLT 12) to the optical network unit and the first optical line terminal (such as OLT11) are assigned to the optical network unit (such as ONU23) The equalization delay is the same, when the service is switched from the first optical line terminal to the second optical line terminal:
所述第二光线路终端 (OLT12) , 向所述光网络单元 (如 ONU23 ) 发 送第一通知消息以通知所述光网络单元 (如 ONU23 ) 进入工作状态, 执行 向光网络单元发送上行数据传输需要的带宽映射并接收所述光网络单元发送 的上行数据的操作, 其中, 通过监测发送所述带宽映射和接收所述上行数据 的过程确定所述第二光线路终端和所述光网络单元之间的零距离时延。  The second optical line terminal (OLT12) sends a first notification message to the optical network unit (such as the ONU 23) to notify the optical network unit (such as the ONU 23) to enter a working state, and performs uplink data transmission to the optical network unit. The required bandwidth mapping and receiving the uplink data sent by the optical network unit, wherein the second optical line terminal and the optical network unit are determined by monitoring a process of transmitting the bandwidth mapping and receiving the uplink data Zero distance delay between.
所述光网络单元, 用于接收来自第二光线路终端 (OLT12) 发送的第一 通知消息, 响应所述第一通知消息, 进入工作状态, 并在接收到来自所述第 二光线路终端 (OLT12) 发送的带宽映射后, 根据记录在本地的所述第一光 线路终端 (OLT11 ) 指派的均衡时延和所述第二光线路终端 (OLT12) 发送 的带宽映射, 向第二光线路终端 (OLT12) 发送上行数据。  The optical network unit is configured to receive a first notification message sent by the second optical line terminal (OLT12), enter a working state in response to the first notification message, and receive the second optical line terminal from the second optical line terminal ( After the bandwidth mapping of the OLT 12), the equalization delay assigned by the first optical line terminal (OLT11) recorded locally and the bandwidth mapping sent by the second optical line terminal (OLT12) are sent to the second optical line terminal. (OLT12) Sends upstream data.
本发明实施例提供的 GPON系统数据链路切换方法, 特别适用于故障 恢复场景, 在主干光纤或主用 OLT发生故障后, 原主用 OLT切换成备用 OLT, 原备用 OLT切换成主用 OLT, 然后 OLT向各 ONU发送第一通知消 息, 通知各 ONU进入工作状态, 并且保持原 EqD、 ONU-ID和 Alloc-ID不 变, 而不需要在完成主备用 OLT的切换后开辟专门的测距窗口对各 ONU 进行测距, 省去了多个 ONU测距的时间, 各 ONU在转换到工作状态之后 就可以进行正常的数据传输, 从而可以满足将业务中断的时间控制在 50ms 这一要求。 另外, 在本发明所有实施例中, ONU在切换前的状态没有限 制, 可以是 ONU允许的任何状态, 如挂起状态。 需要说明的是本发明实施例提供的方法和装置不仅适用于有源光网络还 适用于无源光网络, 不仅适用于 GPON系统, 还适用于异歩传输模式无源 光网络 ( Asynchronous Transfer Mode Passive Optical Network, 简禾尔 APON ) 、 宽带无源光网络 ( Broadband Passive Optical Network, 简称 BPON) 以及其他与 GPON—样采用类似测距技术的光网络系统。 The data link switching method of the GPON system provided by the embodiment of the present invention is particularly applicable to a fault recovery scenario. After the trunk optical fiber or the primary OLT fails, the original primary OLT switches to the standby OLT, and the original standby OLT switches to the primary OLT, and then The OLT sends a first notification message to each ONU to notify each ONU to enter the working state, and keeps the original EqD, ONU-ID, and Alloc-ID unchanged, without opening a special ranging window pair after completing the switching of the primary standby OLT. Each ONU performs ranging, eliminating the need for multiple ONU ranging times. After each ONU transitions to the working state, normal data transmission can be performed, thereby satisfying the requirement of controlling the time of service interruption to 50 ms. In addition, in all embodiments of the present invention, the ONU has no limitation on the state before the handover, and may be any state allowed by the ONU, such as a suspended state. It should be noted that the method and apparatus provided by the embodiments of the present invention are applicable not only to an active optical network but also to a passive optical network, and are applicable not only to a GPON system but also to an isochronous transmission mode passive optical network (Asynchronous Transfer Mode Passive). Optical Network, Apollo (APON), Broadband Passive Optical Network (BPON) and other optical network systems that use GPON-like similar ranging technology.
最后应说明的是: 以上实施例仅用以说明本发明的技术方案而非对其进 行限制, 尽管参照较佳实施例对本发明进行了详细的说明, 本领域的普通技 术人员应当理解: 其依然可以对本发明的技术方案进行修改或者等同替换, 而这些修改或者等同替换亦不能使修改后的技术方案脱离本发明技术方案的 精神和范围。  It should be noted that the above embodiments are only intended to illustrate the technical solutions of the present invention and are not to be construed as limiting the embodiments of the present invention. The technical solutions of the present invention may be modified or equivalently substituted, and the modified technical solutions may not deviate from the spirit and scope of the technical solutions of the present invention.

Claims

权利要求书 Claim
1、 一种光网络系统数据链路切换方法, 所述光网络系统包括至少两个 光线路终端, 分别通过光纤连接到同一个光分路器, 所述光分路器连接到至 少一个光网络单元, 其特征在于, 当业务从所述第一光线路终端切换到所述 第二光线路终端时; 在所述第二光线路终端上执行如下处理歩骤:  An optical network system data link switching method, the optical network system comprising at least two optical line terminals respectively connected to the same optical splitter through an optical fiber, the optical splitter being connected to at least one optical network a unit, wherein when a service is switched from the first optical line terminal to the second optical line terminal; performing the following processing steps on the second optical line terminal:
向与所述光分路器连接的光网络单元发送第一通知消息, 以通知所述光 网络单元进入工作状态;  Sending a first notification message to the optical network unit connected to the optical splitter to notify the optical network unit to enter an active state;
向所述光网络单元发送上行数据传输需要的带宽映射;  Transmitting, to the optical network unit, a bandwidth mapping required for uplink data transmission;
接收所述光网络单元响应所述带宽映射发送的上行数据, 以及  Receiving uplink data sent by the optical network unit in response to the bandwidth mapping, and
通过监测发送所述带宽映射和接收所述上行数据的过程, 将发送所述带 宽映射到收到所述上行数据的时延确定为所述第二光线路终端和所述光网络 单元之间的零距离均衡时延。  Determining, by the process of transmitting the bandwidth mapping and receiving the uplink data, a delay between transmitting the bandwidth and receiving the uplink data, between the second optical line terminal and the optical network unit Zero distance equalization delay.
2、 根据权利要求 1 所述的光网络系统数据链路切换方法, 其特征在 于, 所述第一通知消息为一种物理层维护消息, 所述一种物理层维护消息中 携带有用于通知光网络单元保持均衡时延不变的信息。  The optical network system data link switching method according to claim 1, wherein the first notification message is a physical layer maintenance message, and the one physical layer maintenance message carries a notification light. The network element maintains information with equalization delay.
3、 根据权利要求 2所述的光网络系统数据链路切换方法, 其特征在 于, 所述物理层维护消息为广播挂起消息; 向与所述光分路器连接的光网络 单元发送第一通知消息具体包括: 向与所述光分路器连接的所有光网络单元 发送广播挂起消息或向每一个光网络单元发送单播挂起消息。  The optical network system data link switching method according to claim 2, wherein the physical layer maintenance message is a broadcast suspension message; and the first is sent to the optical network unit connected to the optical splitter The notification message specifically includes: transmitting a broadcast suspend message to all optical network units connected to the optical splitter or transmitting a unicast suspend message to each optical network unit.
4、 根据权利要求 1 所述的光网络系统数据链路切换方法, 其特征在 于, 所述方法还包括:  The data link system switching method of the optical network system according to claim 1, wherein the method further comprises:
利用确定的零距离均衡时延进行窗口漂移检测。  Window drift detection is performed using the determined zero-distance equalization delay.
5、 根据权利要求 4所述的光网络系统数据链路切换方法, 其特征在 于, 所述方法还包括:  The method for switching data link of an optical network system according to claim 4, wherein the method further comprises:
所以在发送第一通知消息之前, 将窗口漂移告警关闭; 获得零距离均衡时延之后, 开启窗口漂移告警, 如果检测到窗口漂移进 Therefore, before the first notification message is sent, the window drift alarm is turned off; After obtaining the zero-distance equalization delay, the window drift alarm is turned on, if the window drift is detected
6、 根据权利要求 4或 5所述的光网络系统数据链路切换方法, 其特征 在于, 所述方法还包括: The method for switching data link of an optical network system according to claim 4 or 5, wherein the method further comprises:
利用确定的零距离均衡时延对所述光网络单元的均衡时延进行调整。 The equalization delay of the optical network unit is adjusted using the determined zero-distance equalization delay.
7、 一种光线路终端, 其特征在于, 包括: 7. An optical line terminal, comprising:
切换执行模块, 用于将所述光线路终端从备用光线路终端切换为主用光 线路终端;  a switching execution module, configured to switch the optical line terminal from a standby optical line terminal to a main optical line terminal;
通知消息发送模块, 用于当所述光线路终端从备用光线路终端切换为主 用光线路终端时, 向光网络单元发送第一通知消息, 以通知所述光网络单元 进入工作状态;  a notification message sending module, configured to send a first notification message to the optical network unit to notify the optical network unit to enter a working state when the optical line terminal switches from the standby optical line terminal to the primary optical line terminal;
带宽映射发送模块, 用于向所述光网络单元发送带宽映射;  a bandwidth mapping sending module, configured to send a bandwidth mapping to the optical network unit;
上行数据接收模块, 用于接收上行数据, 所接收的上行数据包括所述光 网络单元的上行数据;  An uplink data receiving module, configured to receive uplink data, where the received uplink data includes uplink data of the optical network unit;
监测模块, 用于监测所述带宽映射发送模块和所述上行数据接收模块, 将发送所述带宽映射到收到所述上行数据的时延确定为所述光线路终端和所 述光网络单元之间的零距离均衡时延。  a monitoring module, configured to monitor the bandwidth mapping sending module and the uplink data receiving module, and determine a delay for transmitting the bandwidth to receive the uplink data as the optical line terminal and the optical network unit Zero distance equalization delay between.
8、 根据权利要求 Ί所述的光线路终端, 其特征在于, 所述监测模块, 用于在所述带宽映射发送模块向所述光网络单元发送带宽映射时开始计时, 并在所述上行数据接收模块接收到所述光网络单元响应所述带宽映射发送的 第一个上行数据时结束计时, 将计时结果确定为所述光线路终端和所述光网 络单元之间的零距离均衡时延。  The optical line terminal according to claim ,, wherein the monitoring module is configured to start timing when the bandwidth mapping sending module sends a bandwidth mapping to the optical network unit, and in the uplink data. The receiving module ends the timing when receiving the first uplink data sent by the optical network unit in response to the bandwidth mapping, and determines the timing result as a zero-distance equalization delay between the optical line terminal and the optical network unit.
9、 根据权利要求 Ί所述的光线路终端, 其特征在于, 还包括: 第一存 储模块和窗口漂移检测模块;  The optical line terminal according to claim ,, further comprising: a first storage module and a window drift detecting module;
所述第一存储模块与所述监测模块连接, 用于将所述监测模块的零距离 均衡时延进行存储; 所述窗口漂移检测模块与第一存储模块连接, 用于根据所述第一存储模 块存储的零距离均衡时延进行窗口漂移检测。 The first storage module is connected to the monitoring module, and configured to store the zero distance equalization delay of the monitoring module; The window drift detection module is connected to the first storage module, and configured to perform window drift detection according to the zero distance equalization delay stored by the first storage module.
10、 一种光网络系统, 包括至少两个光线路终端, 分别通过光纤连接到 同一光分路器, 所述光分路器通过光纤连接到至少一个光网络单元, 其特征 在于, 当业务从所述第一光线路终端切换到所述第二光线路终端时:  10 . An optical network system comprising at least two optical line terminals respectively connected to the same optical splitter by optical fibers, wherein the optical splitter is connected to at least one optical network unit through an optical fiber, wherein when the service is from When the first optical line terminal switches to the second optical line terminal:
所述第二光线路终端, 向所述光网络单元发送第一通知消息以通知所述 光网络单元进入工作状态, 向光网络单元发送上行数据传输需要的带宽映射 并接收所述光网络单元响应所述带宽映射发送的上行数据, 其中, 通过监测 发送所述带宽映射和接收所述上行数据的过程, 将发送所述带宽映射到收到 所述上行数据的时延确定为所述第二光线路终端和所述光网络单元之间的零 距离均衡时延;  Transmitting, by the second optical line terminal, a first notification message to the optical network unit to notify the optical network unit to enter a working state, sending a bandwidth mapping required for uplink data transmission to the optical network unit, and receiving the optical network unit response The uplink data sent by the bandwidth mapping, wherein, by monitoring the process of sending the bandwidth mapping and receiving the uplink data, determining a delay for transmitting the bandwidth to receive the uplink data is determined as the second light a zero distance equalization delay between the line terminal and the optical network unit;
所述光网络单元, 用于接收来自所述第二光线路终端发送的第一通知消 息, 响应所述第一通知消息, 进入工作状态, 并在接收到来自所述第二光线 路终端发送的带宽映射后, 根据记录在本地的所述第一光线路终端指派的均 衡时延和所述第二光线路终端发送的带宽映射, 向所述第二光线路终端发送 上行数据。  The optical network unit is configured to receive a first notification message sent by the second optical line terminal, enter a working state in response to the first notification message, and receive a transmission from the second optical line terminal. After the bandwidth mapping, the uplink data is sent to the second optical line terminal according to the equalization delay assigned by the first optical line terminal recorded locally and the bandwidth mapping sent by the second optical line terminal.
11、 根据权利要求 10所述的光网络系统, 其特征在于,  11. The optical network system according to claim 10, wherein
所述第二光线路终端利用确定的零距离均衡时延进行窗口漂移检测。 The second optical line terminal performs window drift detection using the determined zero distance equalization delay.
12、 根据权利要求 11所述的光网络系统, 其特征在于, 所述第二光线 路终端在发送第一通知消息之前, 将窗口漂移告警关闭, 在获得零距离均衡 时延之后, 开启窗口漂移告警, 如果检测到窗口漂移进行告警。 The optical network system according to claim 11, wherein the second optical line terminal turns off the window drift alarm before transmitting the first notification message, and starts window drift after obtaining the zero distance equalization delay. Alarm, if a window drift is detected for alarm.
13、 根据权利要求 11或 12所述的光网络系统, 其特征在于, 所述方法 还包括:  The optical network system according to claim 11 or 12, wherein the method further comprises:
所述第二光线路终端利用确定的零距离均衡时延对所述光网络单元的均 衡时延进行调整。  The second optical line terminal adjusts the equalization delay of the optical network unit using the determined zero-distance equalization delay.
PCT/CN2009/073939 2008-09-19 2009-09-15 Method for switching data link in the optical network system, optical line terminal and system WO2010031326A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810149350.9 2008-09-19
CN 200810149350 CN101677415B (en) 2008-09-19 2008-09-19 Optical network system data link switching method, optical network unit and system

Publications (1)

Publication Number Publication Date
WO2010031326A1 true WO2010031326A1 (en) 2010-03-25

Family

ID=42029790

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/073939 WO2010031326A1 (en) 2008-09-19 2009-09-15 Method for switching data link in the optical network system, optical line terminal and system

Country Status (2)

Country Link
CN (1) CN101677415B (en)
WO (1) WO2010031326A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2498049B (en) * 2011-12-09 2015-03-11 Zte Corp Equalization delay agnostic protection switching in protected passive optical networks
CN111064504A (en) * 2019-12-31 2020-04-24 北京华环电子股份有限公司 1: 1OLP protection method in optical communication system

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101834668A (en) * 2010-05-25 2010-09-15 中兴通讯股份有限公司 Method and system for quickly realizing service restoration after line switching in passive optical network
CN102264010B (en) * 2010-05-27 2014-05-07 华为技术有限公司 Remote method and equipment for passive optical network (PON)
CN103929242B (en) * 2010-09-29 2016-06-15 江苏省电力公司常州供电公司 The method of work of optical path switching interface mechanism for fiber channel test
CN102648590B (en) * 2011-05-27 2016-05-25 华为技术有限公司 Communication means, system and the device of optical network system
CN103139669A (en) * 2011-11-22 2013-06-05 中兴通讯股份有限公司 Method and system for sending data
CN108631864B (en) * 2017-03-21 2020-10-27 深圳市中兴微电子技术有限公司 BURST drift detection method and device
CN109120365B (en) * 2017-06-26 2021-05-28 中兴通讯股份有限公司 Window drifting processing method and device
CN110300038A (en) * 2018-03-23 2019-10-01 中兴通讯股份有限公司 A kind of communication means of smart home device, line card, equipment and storage medium
CN113891192B (en) * 2021-11-01 2024-02-27 中国电信股份有限公司 Control method, device and equipment for data transmission in industrial network
CN116132852A (en) * 2021-11-15 2023-05-16 中兴通讯股份有限公司 All-optical network bandwidth allocation method, optical gateway and computer readable storage medium
CN114609961A (en) * 2022-02-14 2022-06-10 哪吒港航智慧科技(上海)有限公司 Ultra-remote control system for port loading and unloading equipment
CN117834391A (en) * 2022-09-29 2024-04-05 中兴通讯股份有限公司 Service processing method and device, OLT equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1764123A (en) * 2005-09-12 2006-04-26 中国移动通信集团公司 Optical fibre access network and its communication protection method
CN1921357A (en) * 2006-09-21 2007-02-28 杭州华为三康技术有限公司 Full optical fibre protecting device and method
KR20080002217A (en) * 2006-06-30 2008-01-04 주식회사 케이티 Optical power splitter for passive optical access network and self-protected and restorable system using the ops
CN101150361A (en) * 2006-09-20 2008-03-26 北京格林威尔科技发展有限公司 A method and system for realizing fully protective switching in passive optical network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1764123A (en) * 2005-09-12 2006-04-26 中国移动通信集团公司 Optical fibre access network and its communication protection method
KR20080002217A (en) * 2006-06-30 2008-01-04 주식회사 케이티 Optical power splitter for passive optical access network and self-protected and restorable system using the ops
CN101150361A (en) * 2006-09-20 2008-03-26 北京格林威尔科技发展有限公司 A method and system for realizing fully protective switching in passive optical network
CN1921357A (en) * 2006-09-21 2007-02-28 杭州华为三康技术有限公司 Full optical fibre protecting device and method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2498049B (en) * 2011-12-09 2015-03-11 Zte Corp Equalization delay agnostic protection switching in protected passive optical networks
US9025949B2 (en) 2011-12-09 2015-05-05 Zte Corporation Equalization delay agnostic protection switching in protected passive optical networks
CN111064504A (en) * 2019-12-31 2020-04-24 北京华环电子股份有限公司 1: 1OLP protection method in optical communication system
CN111064504B (en) * 2019-12-31 2020-12-11 北京华环电子股份有限公司 1: 1OLP protection method in optical communication system

Also Published As

Publication number Publication date
CN101677415B (en) 2013-04-17
CN101677415A (en) 2010-03-24

Similar Documents

Publication Publication Date Title
WO2010031326A1 (en) Method for switching data link in the optical network system, optical line terminal and system
EP1802007B1 (en) A passive optical network maintenance method, an optical network unit and an optical line terminal
JP5031907B2 (en) Communication system, subscriber accommodation device and communication method
JP5025581B2 (en) Communication system and communication apparatus
JP5114268B2 (en) Passive optical network system and operation method thereof
JP5372960B2 (en) Protected passive optical communication system
US8818201B2 (en) Optical communication
JP6004509B2 (en) Multi-wavelength passive optical network wavelength negotiation method and apparatus, and multi-wavelength passive optical network system
CN102075238B (en) Passive optical network and protection switching method thereof
WO2009124484A1 (en) A method, system and device for transmitting data in optical network
TW200950393A (en) Passive optical network remote protocol termination
WO2012048643A1 (en) Method and system for extending passive optical network and relay device
JP2010161672A (en) Optical communication system, and method of operating the same
WO2012119439A1 (en) Data communication method in optical network system, and optical network unit and system
EP2556680A1 (en) Method and arrangements for protection in an optical network
US20100183316A1 (en) Methods and Systems for Dynamic Equalization Delay Passive Optical Networks
WO2011012007A1 (en) Method and system for quickly updating ranging results of optical network unit by optical line terminal
WO2011022883A1 (en) Method, apparatus and system for optical network switching protection
JP2009065341A (en) Pon system
WO2011094990A1 (en) Method and system for path switching and method for transmitting downlink data
JP2011217298A (en) Pon system, station-side device and terminal-side device thereof, and rtt correction method
WO2012097538A1 (en) Method and system for implementing full protection mode
WO2011144110A2 (en) Method, system and device for communication in the optical network system
WO2012019458A1 (en) Ranging method and system in passive optical network
WO2013075507A1 (en) Data sending method and system

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

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

Country of ref document: EP

Kind code of ref document: A1