WO2011144110A2 - Method, system and device for communication in the optical network system - Google Patents

Method, system and device for communication in the optical network system Download PDF

Info

Publication number
WO2011144110A2
WO2011144110A2 PCT/CN2011/074789 CN2011074789W WO2011144110A2 WO 2011144110 A2 WO2011144110 A2 WO 2011144110A2 CN 2011074789 W CN2011074789 W CN 2011074789W WO 2011144110 A2 WO2011144110 A2 WO 2011144110A2
Authority
WO
WIPO (PCT)
Prior art keywords
line terminal
optical
optical network
optical line
terminal port
Prior art date
Application number
PCT/CN2011/074789
Other languages
French (fr)
Chinese (zh)
Other versions
WO2011144110A3 (en
Inventor
万民
韦永泉
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201180000660.4A priority Critical patent/CN102648590B/en
Priority to PCT/CN2011/074789 priority patent/WO2011144110A2/en
Publication of WO2011144110A2 publication Critical patent/WO2011144110A2/en
Publication of WO2011144110A3 publication Critical patent/WO2011144110A3/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0067Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0682Clock or time synchronisation in a network by delay compensation, e.g. by compensation of propagation delay or variations thereof, by ranging
    • 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/1605Fixed allocated frame structures
    • H04J3/1652Optical Transport Network [OTN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a communication method, system, and apparatus for an optical network system. Background technique
  • PON Passive Optical Network
  • FTTH Fiber To The Home
  • the existing PON includes a Broadband Passive Optical Network (BPON), a Gigabit-Capable Passive Optical Network (GPON), and an Ethernet Passive Optical Network (EPON). And 10 Gigabit-capable Passive Optical Networks (XG-P0N).
  • BPON Broadband Passive Optical Network
  • GPON Gigabit-Capable Passive Optical Network
  • EPON Ethernet Passive Optical Network
  • XG-P0N 10 Gigabit-capable Passive Optical Networks
  • the traditional PON system mainly includes: an optical line terminal (OLT), an optical network unit (0NU), and an optical distribution network (ODN), wherein the optical distribution network includes a backbone. Fiber optics, passive optical splitters, and branch fibers. The 0LT and the passive optical splitter are connected by a backbone optical fiber, and the optical splitter realizes point-to-multipoint optical power distribution and is connected to multiple 0NUs through multiple branch fibers.
  • the direction from 0LT to 0NU is called the downlink direction
  • the direction from 0NU to 0LT is called the uplink direction.
  • the uplink direction of the P0N system is usually a Time Division Multiple Address (TDMA) multiplexing mode.
  • TDMA Time Division Multiple Address
  • Each ONU sends uplink data packets in the time slot specified by the OLT.
  • the downlink direction 0LT uses Time Division Multiplexing (TDM).
  • TDM Time Division Multiplexing
  • the broadcast mode sends downlink data packets to each 0NU.
  • the optical signals carrying all the ONU downlink data packets are divided into several parts at the 0DN optical splitter, and each branch fiber reaches each ONU.
  • the LOS (lost of signal) alarm is detected because the receiver receives the signal of the other party; the primary 0LT is used.
  • the L0S alarm is detected, indicating that the primary trunk fiber is faulty.
  • the active and standby 0LT switches are required. All the 0NUs are switched to the standby 0LT, and the original standby 0LT is switched to become the primary OLT. After detecting the L0S alarm, 0NU switches from the normal OPERATION state to the POPUP state and stops sending uplink data.
  • the primary 0LT sends a POPUP message to all 0NU broadcasts, notifying the 0NU to transition from the POPUP state to the RANGING state, and starting all 0NU re-ranging. Processing; under the control of the main 0LT, serial processing completes all 0NU ranging processing, and restores data communication between 0LT and 0NU.
  • the primary and backup backbone fibers need to be re-ranged for each 0NU. Since the XGP0N system or other optical network system does not support the POPUP message, the 0NU cannot enter the re-ranging state. As a result, the ONU cannot obtain an accurate equalization delay, and the communication between the 0LT and the ONU is interrupted after the active/standby switchover.
  • the object of the embodiments of the present invention is to provide a communication method, system, and device for an optical network system, which is used to solve the problem between the 0LT and the ONU after the OLT is not supported by the OLT in the existing optical network system.
  • the problem of data communication interruption thereby avoiding the impact on normal business communication after switching, and improving user satisfaction.
  • an embodiment of the present invention provides a communication method of an optical network system, where a central end of the optical network system provides a first optical line terminal port and a second optical line terminal port, and each optical line terminal port is connected. a plurality of optical network units, the method comprising:
  • the downlink frame is sent to the at least one optical network unit by the second optical line terminal port, where the downlink frame is Instructing the at least one optical network unit to transmit an uplink frame by using a first preamble, wherein a length of the first preamble is greater than a length of a second preamble for uplink traffic transmission;
  • the at least one optical network unit Detecting, by the at least one optical network unit, an uplink frame that includes the first preamble sent by the second optical line terminal port, and obtaining an equalization delay of the at least one optical network unit based on the uplink frame that includes the first preamble Transmitting the equalization delay to the at least one optical network unit by the second optical line termination port, so that the at least one optical network unit is based on the equalization delay and the second optical line termination port Communicate.
  • An embodiment of the present invention further provides a communication method of another optical network system, where the method includes:
  • the present invention also provides a communication method of another optical network system, where the central end of the optical network system provides a first optical line terminal port and a second optical line terminal port, and each optical line terminal port is connected to multiple optical network units,
  • the method includes: after the communication between the authority end and the plurality of optical network units is switched from the first optical line termination port to the second optical line termination port, sending a deactivation message or transmitting carrying a redistribution through the second optical line termination port Optical network unit Obtaining the message to the at least one optical network unit, causing the at least one optical network unit to go offline;
  • the embodiment of the invention further provides a communication method of an optical network system, where the method includes:
  • An embodiment of the present invention provides an optical network system, where the system includes: a first optical line terminal port and a second optical line terminal port, where the optical path terminal connects the plurality of optical network units through each optical line terminal port;
  • the optical line terminal is configured to: when the communication between the optical line terminal and the plurality of optical network units is switched from the first optical line terminal port to the second optical line terminal port, to the at least one light through the second optical line terminal port.
  • the network unit sends a downlink frame, where the downlink frame indicates that the at least one optical network unit uses the first preamble to send an uplink frame, where the length of the first preamble is greater than the length of the second preamble used for uplink service transmission;
  • the second optical line terminal port transmits the equalization delay to the at least one optical network unit, so that the at least one optical network unit communicates with the second optical line terminal port based on the equalization delay.
  • the at least one optical network unit is configured to perform traffic transmission based on the first equalization delay and the first optical line terminal port; switch from the first optical line terminal port to the second optical line terminal port, and receive from the second a downlink frame of the optical line terminal port, where the downlink frame indicates that the uplink frame adopts a first preamble, wherein a length of the first preamble is greater than a length of a second preamble used for uplink service transmission; and sending, to the second optical line terminal port, An uplink frame of the first preamble; receiving a second equalization delay from the second optical line termination port; and performing traffic transmission based on the second equalization delay and the second optical line termination port communication.
  • Another embodiment of the present invention provides an optical network system, where the system includes: a first optical line terminal port and a a second optical line terminal port, the optical line terminal is connected to the plurality of optical network units through each optical line terminal port; the optical line terminal is configured to communicate with the optical line terminal and the plurality of optical network units from the first optical line terminal port After switching to the second optical line terminal port, sending a deactivation message through the second optical line terminal port or sending a message carrying the reassigned optical network unit identifier to the at least one optical network unit, so that the at least one optical network unit Performing re-ranging on the at least one optical network unit to obtain a first equalization delay of the at least one optical network unit; and transmitting, by the second optical line termination port, the equalization delay to the At least one optical network unit, such that the at least one optical network unit communicates with the second optical line termination port based on the equalization delay;
  • the optical network unit is configured to perform traffic transmission based on the first equalization delay and the first optical line terminal port; switch from the first optical line terminal port to the second optical line terminal port, and receive the second optical line a deactivation message of the terminal port or a message carrying the reassigned optical network unit identifier; performing a downlink according to the deactivation message; and after receiving the ranging, receiving a second equalization delay from the second optical line terminal port; And performing traffic transmission based on the second equalization delay and the second optical line terminal port communication.
  • An embodiment of the present invention provides an optical line terminal, where the optical line terminal includes:
  • a first sending unit configured to: when the communication between the optical line terminal and the plurality of optical network units is switched from the first optical line terminal port to the second optical line terminal port, to the at least one through the second optical line terminal port
  • the optical network unit sends a downlink frame, where the downlink frame indicates that the at least one optical network unit uses the first preamble to send an uplink frame, where the length of the first preamble is greater than the length of the second preamble used for uplink service transmission;
  • a first acquiring unit configured to detect an uplink frame that includes the first preamble sent by the at least one optical network unit by using the second optical line terminal port; and obtain the at least one based on the uplink frame that includes the first preamble Equilibrium delay of the optical network unit;
  • a second sending unit configured to send, by the second optical line terminal port, an equalization delay of the at least one optical network unit to the at least one optical network unit, so that the at least one optical network unit is based on the The equalization delay communicates with the second optical line termination port.
  • An embodiment of the present invention further provides an optical network unit, where the optical network unit includes:
  • a receiving unit configured to perform communication according to the first equalization delay and the first optical line terminal port to perform service transmission; switch from the first optical line terminal port to the second optical line terminal port, and receive the second optical line terminal port a downlink frame, where the downlink frame indicates that the uplink frame adopts a first preamble, where a length of the first preamble is greater than a length of a second preamble used for uplink service transmission; a fifth sending unit, configured to send, to the second optical line terminal port, an uplink frame that includes the first preamble; and a second receiving unit, configured to receive a second equalization delay from the second optical line terminal port; The second equalization delay communicates with the second optical line terminal port for service transmission.
  • An embodiment of the present invention further provides an optical line terminal, where the optical line terminal includes:
  • a third sending unit configured to send, by the second optical line terminal port, deactivation after the optical line terminal and the plurality of optical network units are switched from the first optical line terminal port to the second optical line terminal port Sending, by the message, a message carrying the reassigned optical network unit identifier to the at least one optical network unit, such that the at least one optical network unit is offline;
  • a fourth acquiring unit configured to perform re-ranging on the at least one optical network unit, to obtain a first equalization delay of the at least one optical network unit
  • a fourth sending unit configured to send the equalization delay to the at least one optical network unit by using the second optical line terminal port, so that the at least one optical network unit is based on the equalization delay and the The second optical line terminal P communicates.
  • a method, system and device for data communication in an optical network system provided by an embodiment of the present invention, after communication between a authority end and a plurality of optical network units is switched from a first optical line terminal port to a second optical line terminal port,
  • the second optical line terminal port sends a downlink frame to the at least one optical network unit, where the downlink frame indicates that the at least one optical network unit sends the uplink frame by using the first preamble, or sends a deactivation message or sends the light that carries the reallocation.
  • the message identified by the network unit is sent to at least one optical network unit, so that after the switching, the optical network system can perform the re-ranging state even if the POPUP message is not supported, thereby quickly recovering the data communication between the 0LT and the ONU after the switching, thereby avoiding the switching.
  • the impact on normal business communication reduces the switching delay and improves user satisfaction.
  • FIG. 1 is a flowchart of a data communication method of an optical network system according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a state of an optical network unit according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of a specific method for a data communication method of an optical network system according to an embodiment of the present disclosure
  • FIG. 4 is a schematic structural diagram of a downlink XGTC frame according to an embodiment of the present disclosure
  • FIG. 5 is a schematic structural diagram of a BWMAP in a downlink XGTC frame structure according to an embodiment of the present disclosure
  • FIG. 6 is a flowchart of another optical network system data communication method according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of an optical network system according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of an optical line terminal according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of an optical network unit according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of another optical line terminal according to an embodiment of the present invention.
  • DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings. It is apparent that the described embodiments are only a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
  • FIG. 1 is a flowchart of a data communication method of a passive optical network system according to an embodiment of the present invention. As shown in FIG. 1, the method of the embodiment of the present invention may include the following steps:
  • the central office of the optical network system provides a first 0LT port and a second 0LT port, and each 0LT port is connected to multiple 0NUs, and the method includes:
  • Step S102 After the communication between the authority end and the plurality of ONUs is switched from the first OLT port to the second OLT port, send a downlink frame to the at least one ONU by using the second OLT port, where the downlink frame indicates the at least one optical network
  • the unit uses the first preamble to send an uplink frame, where the length of the first preamble is greater than the length of the second preamble used for uplink service transmission.
  • the optical network system may be a 10 Gigabit passive optical network XG-P0N system (or abbreviated as XGP0N), and the XGP0N system includes: an XGP0N1 system and an XGP0N2 system, the two systems are next generation Gigabit
  • the two main alternative architectures of the bit passive optical network NGP0N 1 also known as the "next generation Gigabit Passive Optical Network").
  • XGP0N1 is an asymmetric system with downlink lOGbps/uplink 2. 5Gbps;
  • XGP0N2 is a symmetric system with uplink and downlink lOGbps.
  • the XGP0N1 system is an asymmetric system, which may also be called 10GGP0N; the central office is a network side device, which is relative to the user equipment, for example, 0LT.
  • the embodiment of the present invention is described by taking only 0NU as an example, and all methods applicable to 0NU are applicable to 0NT.
  • the downlink frame may be an XGTC frame.
  • the uplink burst (frame) template Burst Profi le field in the downlink frame is set as a first preamble, which may also be referred to as a long preamble (also referred to as a long frame header), in the downlink frame.
  • the Burst Profile field includes a first preamble and a second preamble (which may be referred to as a short preamble or a short frame header), wherein the length of the first preamble is greater than the length of the second preamble for uplink traffic transmission, the field is used to indicate at least
  • An optical network unit uses an upstream frame of which preamble bytes are used.
  • the first preamble is a preamble used when the 0NU enters the ranging state, that is, the 04 state
  • the second preamble is used when the 0NU is in the running state, that is, the 05 state. Leading.
  • the OLT further includes: generating an uplink bandwidth grant message, where the grant message includes bandwidth information indicating the uplink frame and preamble template information, where the preamble template information indicates that the at least one optical network unit adopts A preamble sends an uplink frame; and an uplink bandwidth grant message is encapsulated into the downlink frame.
  • Step S104 The 0LT detects an uplink frame that includes the first preamble sent by the at least one ONU through the second OLT port.
  • Step S106 The 0LT obtains an equalization delay of the at least one optical network unit based on the uplink frame that includes the first preamble.
  • Step S108 The 0LT sends the equalization delay to the at least one optical network unit by using the second optical line terminal port, so that the at least one optical network unit is based on the equalization delay and the first The two optical line terminal ports communicate.
  • the method further includes: obtaining, by the OLT, an equalization delay of other optical network units in the plurality of optical network units based on an equalization delay sent by the second optical line terminal port; The equalization delay of the network unit is sent to the corresponding other optical network unit; or
  • the 0LT obtains an equalization delay offset of the at least one optical network unit based on the equalization delay sent by the second optical line terminal port, and sends the equalization time shift offset to the multiple optical network units.
  • Other optical network units Other optical network units.
  • the 0LT obtains an equalization delay offset of the at least one optical network unit, and the equalization time shift is sent to the other optical network units of the multiple optical network units, and specifically includes two modes:
  • the first time is that the 0LT is sent according to the first equalization delay EqD1 sent by the first sending port to the at least one ONU, and after the second equalization delay EqD2 sent by the second sending port to the at least one ONU.
  • EqD offset can be estimated as the EqD deviation of each 0NU after switching from the first 0LT port to the second OLT port, and further calculating the other in the optical network system according to the EqD deviation.
  • Each ENU of the ONU is sent to the corresponding ONU in a unicast manner through the second 0LT port.
  • the second is that after the 0LT calculates the EqD deviation, it is broadcasted to the other ONUs in the optical network system through the second 0LT port, and the other ONUs respectively calculate the switched EqD according to the EqD deviation, and then based on the Switched EqD Communicating with the OLT through the second OLT port.
  • the method performed on the 0NU side includes:
  • the 0NU communicates with the first optical line terminal port based on the first equalization delay to perform service transmission;
  • the 0NU receives the downlink frame from the second optical line terminal port, and the downlink frame indicates that the uplink frame adopts the first preamble, wherein the length of the first preamble is greater than The length of the second preamble used for uplink traffic transmission;
  • the 0NU sends an uplink frame including the first preamble to the second optical line terminal port;
  • 0NU receives a second equalization delay from the second optical line terminal port
  • the 0NU communicates with the second optical line terminal port based on the second equalization delay for traffic transmission.
  • the method for data communication in an optical network system provided by the embodiment of the present invention, after the communication between the authority end and the plurality of optical network units is switched from the first optical line terminal port to the second optical line terminal port, the second light is passed.
  • the line terminal port sends a downlink frame to the at least one optical network unit, where the downlink frame indicates that the at least one optical network unit uses the first preamble to send an uplink frame, where the length of the first preamble is greater than the second for uplink service transmission.
  • Detecting the length of the preamble detecting, by the at least one optical network unit, an uplink frame that includes the first preamble sent by the second optical line termination port, and obtaining the at least one optical network unit based on the uplink frame that includes the first preamble Equilibrium delay; transmitting, by the second optical line termination port, the equalization delay to the at least one optical network unit, so that the at least one optical network unit is based on the equalization delay and the second
  • the optical line terminal port communicates, and the optical network system can perform re-testing even if the POPUP message is not supported after the handover.
  • the state quickly restores the data communication between the 0LT and the 0NU after the handover, avoids the impact on the normal service communication after the handover, reduces the handover delay, and improves the user satisfaction, especially for the XGP0N system, further solving The problem of TYPE B active/standby switchover in the XGP0N system.
  • FIG. 2 is a schematic diagram of a state of an optical network unit according to an embodiment of the present invention, and is specifically a schematic diagram of various states of an optical network unit in an XGP0N system.
  • the XP0N system is taken as an example to describe the communication methods in the optical network system described above by introducing various state diagrams of the 0NU in the XP0N system.
  • the state change of the 0NU has six states:
  • Serial number SN status 0NU activates the optical transmission function, receives and learns the Burst template (ie, the template of the uplink burst frame)
  • the PLOAM message when the ONU receives the SN windowing message with the known Burst template, sends an XGTC frame with the SN response physical layer operation management and maintenance PL0AM. At this time, the 0NU ignores the uplink dynamic bandwidth report DBRu identifier and the bandwidth mapping authorization width. BWMAP GrantSize area.
  • the ONU receives the PL0AM message with the sequence number SN equal to its own SN assigning the 0NU-ID, the 0NU enters the 04 state.
  • the ONU When receiving a non-enable serial number Disable_Serial_Number PLOAM message whose SN is equal to its own SN, the ONU enters the 07 state. If the 0LT has learned the existence of the ONU in some way, for example, during the power failure recovery process, the 0LT can directly transmit an ONU-ID PL0AM message with a known ONU SN, so that the 0NU can ignore the 02-3 state. Go directly to the 04 state.
  • Ranging status if 0NU receives a ranging request with a known template, it responds to an XGTC frame with a registered registration PLOAM, ignoring the DBRu flag and GrantSize area during ranging.
  • the 0NU status of the 04 status is as follows: Template Prof i le (upstream burst frame template), ranging time Ranging—Time, deactivate the optical network identifier Deactivate— 0NU-ID, non-enable serial number Disable— Serial—Number.
  • 0NU discards the optical network unit ID ONU-ID and the default Alloc-ID and the default optical network unit management control interface XGP0N encapsulation mode port identifier 0MCI XGEM port-ID, and enters the 02-3 state, retaining the uplink Send frame BurstFrame template information.
  • the 0NU receives an EQD message with an absolute value of the equalization delay, it enters the 05 state. If the round-trip delay RTD of the 0NU has been tested before the 0LT is confirmed by the SN or during the activation of the early 0NU, the 0LT can directly send a Ranging_Time message, so that the 0NU can directly enter the 05 state. State without going through the ranging process.
  • Running state at this time 0NU is in normal operation, and data communication is performed with 0LT.
  • the L0DS state is restored, then it returns to the 05 state. If there is no L0DS recovery before T02 expires, it enters the 01 state.
  • the 0NU receives the disable serial number Disable SN message (enables the disable enable field to be disabled), turns off the transmit light, and transmits the configuration parameters of the TC layer including: Optical network unit identifier 0NU-ID, all The allocation ID Alloc-ID, the default XGEM Port-ID, the burst template, and the EqD are all discarded.
  • the 0NU maintains downlink synchronization, parses the downlink PL0AM message, and prohibits downlink forwarding data and uplink transmission data.
  • 0LT sends a non-enable serial number Disable SN message ("Enable Disable" field is enabled), 0NU should enter the 01 state and go online again.
  • the timer T01 Ranging timer is the ranging timeout timer.
  • the ONU can't be in the ranging state for too long.
  • the standard recommendation is 10 seconds.
  • the timer T02 L0DS timer is the downlink signal. Loss of Downstream Signal (LODS) timeout timer ensures that the ONU is not in the 06 state for too long.
  • the standard recommended 06 state time is 100ms.
  • Step S302 When the optical fiber between 0LT and ONU is faulty, 0LT detects a signal loss L0S alarm, starts a handover process, and the 0LT switches from the first 0LT port to the second 0LT port, and switches all 0NUs to the second 0LT. On the port.
  • the first 0LT port does not have an uplink optical signal, and the 0LT determines to enter the TYPE B protection process, that is, performs an active/standby switchover, switches the first 0LT port to the second 0LT port, and then switches all the ONUs. Go to the second 0LT port.
  • the 0NU After detecting the LODS alarm, the 0NU is switched from the normal Operation State to the Intermittent LODS State state, and the uplink data is stopped.
  • the 0NU in this step can detect L0DS for at least one 0NU, the 0NU transitions from the 05 state to the 06 state, and the other 0NUs perform similar operations (see Figure 4).
  • Step S306 The downlink illumination of the second 0LT port (no bandwidth allocated), all the uplink bandwidth is turned off, and after waiting for a period of time, the 0NU enters the Operation State from the Intermittent LODS State.
  • any ONU when any ONU detects the LODS alarm, it enters the 06 state and starts the T02 timer. If the LO2 alarm is detected before the TO2 timer expires, the ONU jumps directly to 05 state, if the timer has not recovered after the timeout, it enters the 01 state.
  • Step S308, 0LT selects at least one ONU from the ONU that enters the Operation State, and sends a downlink frame to the at least one ONU, where the downlink frame indicates that the at least one optical network unit sends the uplink frame by using the first preamble, where The length of the first preamble is greater than the length of the second preamble for uplink traffic transmission.
  • the number of 0NUs that re-enter the 05 state can be multiple or one, because the time of each 0NU entering the 05 state is different, so as long as there is a 0NU entering the 05 state, 0LT can perform step S208 on the 0NU, of course, The 0LT may also select one or more of the plurality of ONUs that enter the 05 state to perform step S208.
  • the Burst Profile field in the downlink frame is set as the first preamble, and is used to indicate that the selected ONU adopts an uplink frame using the first preamble preamble.
  • the Burst Profile field is in the frame header portion of the downlink frame, and the XGTC frame in the XGP0N is taken as an example to describe how to set the Burst Prof ile field.
  • the long preamble is set, but the embodiment of the present invention is not limited to the XGP0N system and is applicable to any type of passive optical network system.
  • the XGTC frame of the XG-P0N is taken as an example to describe the frame structure of the XGTC in detail.
  • Figure 4 is a schematic diagram of the frame structure of the downlink XGTC frame.
  • the downlink XGTC frame has 135,432 bytes, including: an XGTC frame header and an XGTC payload.
  • the XGTC header includes: HLend, which is used to represent the number of BWmaps and the number of PLOAMs; and the bandwidth mappings BWmap and PL0AMd.
  • HLend which is used to represent the number of BWmaps and the number of PLOAMs
  • the bandwidth mappings BWmap and PL0AMd is shown in Figure 5.
  • FIG. 5 is a schematic diagram of a BWmap structure.
  • the BWmap includes: an allocation structure, an Allocation Structure, and the number of the allocation structure varies with N, including: an uplink burst (frame) template Burst Profile, 2 bits, used to indicate an ONU
  • the general Burst Profile includes: a first preamble (also referred to as a long frame header or Long preamble) and second preamble (also known as long frame header or long preamble and short frame header), where the first preamble is used for 0LT registration discovery, ie
  • the 0NU enters the leading state used in the ranging state, ie, the 04 state; its length is longer than the length of the second preamble (bytes Bite), and is generally at least equal to or greater than 8 bits.
  • the second preamble is used for normal communication or for the preamble used for normal uplink traffic transmission, that is, the preamble used when the 0NU is in the 05 state.
  • the Allocation Structure further includes: an allocation identifier
  • Alloc-ID 4 bits, used to identify the upstream bandwidth allocated by the 0LT to the 0NU; Flags Flags, 2 bits; Start Time, 16 bits; Bandwidth Grant Length, GrantSize, 16 bits; Power Management Indicator FWI, 1 bit; Hlend structure error detection and correction coding HEC, 13bits.
  • 0NU has recorded multiple burst (frame) templates Burst Profile during the online process, and saves the template after receiving the downlink frame sent by 0LT.
  • the 0NU parses the downlink frame according to the downlink PL0AM message.
  • the ONU receives the PL0AM message "0 PP" as "00", indicating that the preamble (which may also be a preamble) is the first preamble, where the preamble is 32 bytes.
  • the delimiter is 4 bytes; if the 0NU receives the PL0AM message "1 PP" is "01", it indicates that the preamble is the second preamble, the preamble is 4 bytes, and the delimiter is 4 bytes.
  • the 0LT sets the Burst Profile to the first preamble in the downlink frame, and the ONU uses the uplink frame structure of the "00" defined by the PL0AM message, and uses the 32-byte uplink frame of the first preamble. Send it.
  • the embodiment of the present invention sets the Burst Profile field in the frame header of the downlink XGTC frame to the first preamble (long frame header), so that the ONU adopts the uplink frame of the first preamble, so that the 0LT receives the uplink burst frame sent by the ONU.
  • the location of the uplink frame after the handover is determined, so that the EqD deviation of the ONU is obtained, and the re-ranging process of the ONU is implemented, which solves the problem that the POPUP message is not supported after the active/standby switchover in the current P0N system. , making 0LT and 0NU Interrupted data communication, increasing user satisfaction.
  • the OLT further includes: generating an uplink bandwidth grant message, where the grant message includes bandwidth information indicating the uplink frame and preamble template information, where the preamble template information indicates that the at least one optical network unit adopts A preamble sends an uplink frame; and an uplink bandwidth grant message is encapsulated into the downlink frame.
  • Step S310 0LT detects that the at least one ONU transmits the uplink frame of the first preamble by using the second OLT, and obtains an equalization delay of the at least one optical network unit based on the uplink frame that includes the first preamble.
  • Step S312 the 0LT sends the equalization delay to the at least one optical network unit by using the second optical line terminal port, so that the at least one optical network unit is based on the equalization delay and the first The second optical line terminal P communicates.
  • the 0LT obtains an equalization delay of the other optical network units in the multiple optical network units based on the equalization delay sent by the second optical line terminal port; and sends the equalization delay of the other optical network unit to the corresponding Said other optical network unit; or
  • the 0LT obtains an equalization delay offset of the at least one optical network unit based on the equalization delay sent by the second optical line terminal port, and sends the equalization time shift offset to the multiple optical network units.
  • Other optical network units Other optical network units.
  • the 0LT obtains an equalization delay offset of the at least one optical network unit, and the equalization time shift is sent to the other optical network units of the multiple optical network units, and specifically includes two modes:
  • the first time is that the 0LT is sent according to the first equalization delay EqD1 sent by the first sending port to the at least one ONU, and after the second equalization delay EqD2 sent by the second sending port to the at least one ONU.
  • EqD offset can be estimated as the EqD deviation of each 0NU after switching from the first 0LT port to the second OLT port, and further calculating the other in the optical network system according to the EqD deviation.
  • Each ENU of the ONU is sent to the corresponding ONU in a unicast manner through the second 0LT port.
  • the second is that the 0LT calculates the EqD deviation and sends it to the other ONUs in the optical network system through the second 0LT port in a broadcast manner, and the other ONUs respectively calculate the switched EqD according to the EqD deviation, and then based on the The switched EqD communicates with the 0LT through the second OLT port.
  • each 0NU EqD mode is sent, and the message returned by each 0NU can be used to confirm whether the active/standby switchover is successful.
  • the method for data communication in an optical network system provided by the embodiment of the present invention, after the communication between the authority end and the plurality of optical network units is switched from the first optical line terminal port to the second optical line terminal port, the second light is passed.
  • Line terminal port Sending, to the at least one optical network unit, a downlink frame, where the downlink frame indicates that the at least one optical network unit sends the uplink frame by using the first preamble, where the length of the first preamble is greater than the length of the second preamble used for uplink service transmission
  • the port communicates, so
  • FIG. 6 is a flowchart of a data communication method of another optical network system according to an embodiment of the present invention. As shown in FIG. 6, the method in the embodiment of the present invention may include the following steps:
  • the central end of the optical network system provides a first optical line terminal port and a second optical line terminal port, and each of the optical path terminal ports is connected to multiple optical network units, and the method includes:
  • Step S602 After the communication between the authority end and the plurality of optical network units is switched from the first optical line terminal port to the second optical line terminal port, the 0LT sends a deactivation message or sends a redistribution message through the second optical line terminal port.
  • the message identified by the optical network unit is provided to the at least one optical network unit such that the at least one optical network unit is offline.
  • Step S604 Perform re-ranging on the at least one optical network unit to obtain a first equalization delay of the at least one optical network unit.
  • Steps S606 and 0LT perform re-ranging on the optical network unit to obtain a first equalization delay of the optical network unit.
  • Steps S608, 0LT send the equalization delay to the at least one optical network unit by using the second optical line terminal port, so that the at least one optical network unit is based on the equalization delay and the second light.
  • the line terminal port communicates.
  • the 0LT obtains an equalization delay of the other optical network units in the multiple optical network units based on the equalization delay sent by the second optical line terminal port; and sends the equalization delay of the other optical network unit to the corresponding Said other optical network unit; or
  • the 0LT obtains an equalization delay offset of the at least one optical network unit based on the equalization delay sent by the second optical line terminal port, and sends the equalization time shift offset to the multiple optical network units.
  • Other optical network units Other optical network units.
  • the 0LT obtains an equalization delay offset of the at least one optical network unit, and shifts the equalization time shift Sending the other optical network units of the multiple optical network units specifically includes two ways:
  • the first time is that the 0LT is sent according to the first equalization delay EqD1 sent by the first sending port to the at least one ONU, and after the second equalization delay EqD2 sent by the second sending port to the at least one ONU.
  • EqD offset can be estimated as the EqD deviation of each 0NU after switching from the first 0LT port to the second OLT port, and further calculating the other in the optical network system according to the EqD deviation.
  • Each ENU of the ONU is sent to the corresponding ONU in a unicast manner through the second 0LT port.
  • the second is that the 0LT calculates the EqD deviation and sends it to the other ONUs in the optical network system through the second 0LT port in a broadcast manner, and the other ONUs respectively calculate the switched EqD according to the EqD deviation, and then based on the The switched EqD communicates with the 0LT through the second OLT port.
  • each 0NU EqD mode is sent, and the message returned by each 0NU can be used to confirm whether the active/standby switchover is successful.
  • the method adopted on the user terminal side corresponding to the above method, that is, the 0NU side includes:
  • the 0NU communicates with the first optical line terminal port based on the first equalization delay to perform service transmission;
  • the 0NU communicates with the second optical line terminal port based on the second equalization delay for traffic transmission.
  • Another method for data communication in an optical network system after the communication between the authority end and the plurality of optical network units is switched from the first optical line terminal port to the second optical line terminal port, the second The optical line terminal port sends a deactivation message or sends a message carrying the reassigned optical network unit identifier to the at least one optical network unit, such that the at least one optical network unit goes offline; re-ranging the at least one optical network unit Obtaining a first equalization delay of the at least one optical network unit; transmitting, by the second optical line termination port, the equalization delay to the at least one optical network unit, to enable the at least one optical network unit Performing communication with the second optical line terminal port based on the equalization delay, so that the optical network system can perform the re-ranging state even after the handover does not support the POPUP message, thereby quickly recovering the data between the 0LT and the ONU after the handover.
  • FIG. 7 is an optical network system according to an embodiment of the present invention.
  • the system includes: a first optical line terminal port and a second optical line terminal port, where 0LT is connected through each optical line terminal port. 0NU;
  • the optical line terminal is configured to: when the communication between the optical line terminal and the plurality of optical network units is switched from the first optical line terminal port to the second optical line terminal port, to the at least one light through the second optical line terminal port.
  • the network unit sends a downlink frame, where the downlink frame indicates that the at least one optical network unit uses the first preamble to send an uplink frame, where the length of the first preamble is greater than the length of the second preamble used for uplink service transmission;
  • the second optical line terminal port transmits the equalization delay to the at least one optical network unit, so that the at least one optical network unit communicates with the second optical line terminal port based on the equalization delay.
  • the at least one optical network unit is configured to perform traffic transmission based on the first equalization delay and the first optical line terminal port; switch from the first optical line terminal port to the second optical line terminal port, and receive from the second a downlink frame of the optical line terminal port, where the downlink frame indicates that the uplink frame adopts a first preamble, wherein a length of the first preamble is greater than a length of a second preamble used for uplink service transmission; and sending, to the second optical line terminal port, An uplink frame of the first preamble; receiving a second equalization delay from the second optical line termination port; and performing traffic transmission based on the second equalization delay and the second optical line termination port communication.
  • the optical line terminal is further configured to generate an uplink bandwidth grant message, where the authorization message includes bandwidth information indicating the uplink frame and preamble template information, where the preamble template information indicates that the at least one optical network unit sends the uplink frame by using the first preamble. Encapsulating an upstream bandwidth grant message into the downstream frame.
  • the optical line terminal is further configured to obtain, according to the equalization delay sent by the second optical line terminal port, an equalization delay of the other optical network units in the multiple optical network units; and the other optical network unit The equalization delay is sent to the corresponding other optical network unit.
  • the optical line terminal is further configured to obtain an equalization delay offset of the at least one optical network unit based on an equalization delay sent by the second optical line terminal port, and send the equalization time shift offset to the Other optical network units of the plurality of optical network units.
  • optical distribution network 0DN which includes: a backbone fiber and a branch fiber.
  • the embodiment of the present invention further provides another optical network system, where the system includes: a first optical line terminal port and a second optical line terminal port, where the optical line terminal connects the plurality of optical network units through each optical line terminal port;
  • the optical line terminal is configured to communicate from an optical line terminal and a plurality of optical network units from a first optical line terminal port After switching to the second optical line terminal port, sending a deactivation message through the second optical line terminal port or sending a message carrying the reassigned optical network unit identifier to the at least one optical network unit, so that the at least one optical network unit Performing re-ranging on the at least one optical network unit to obtain a first equalization delay of the at least one optical network unit; and transmitting, by the second optical line termination port, the equalization delay to the At least one optical network unit, such that the at least one optical network unit communicates with the second optical line termination port based on the equalization delay;
  • the optical network unit is configured to perform traffic transmission based on the first equalization delay and the first optical line terminal port; switch from the first optical line terminal port to the second optical line terminal port, and receive the second optical line a deactivation message of the terminal port or a message carrying the reassigned optical network unit identifier; performing a downlink according to the deactivation message; and after receiving the ranging, receiving a second equalization delay from the second optical line terminal port; And performing traffic transmission based on the second equalization delay and the second optical line terminal port communication.
  • the optical line terminal is further configured to obtain, according to the equalization delay sent by the second optical line terminal port, an equalization delay of the other optical network units in the multiple optical network units; and the other optical network unit The equalization delay is sent to the corresponding other optical network unit.
  • the optical line terminal is further configured to obtain an equalization delay offset of the at least one optical network unit based on an equalization delay sent by the second optical line terminal port, and send the equalization time shift offset to the Other optical network units of the plurality of optical network units.
  • the method for data communication in an optical network system provided by the embodiment of the present invention, the system and the optical line terminal, after the communication between the authority end and the plurality of optical network units is switched from the first optical line terminal port to the second optical line terminal port, Sending, by the second optical line terminal port, a downlink frame to the at least one optical network unit, where the downlink frame indicates that the at least one optical network unit sends the uplink frame by using the first preamble, or sends a deactivation message or sends a bearer reassignment
  • the message identified by the optical network unit is sent to at least one optical network unit, so that after the switching, the optical network system can perform the re-ranging state even if the POPUP message is not supported, thereby quickly recovering the data communication between the 0LT and the 0NU after the switching, thereby avoiding The impact on normal service communication after switching reduces the handover delay and improves user satisfaction.
  • an embodiment of the present invention provides an optical line terminal, where the optical line terminal includes:
  • a first sending unit 802 configured to: when the communication between the optical line terminal and the plurality of optical network units is switched from the first optical line terminal port to the second optical line terminal port, to the at least the second optical line terminal port An optical network unit sends a downlink frame, where the downlink frame indicates that the at least one optical network unit uses the first preamble to send an uplink frame, where the length of the first preamble is greater than the length of the second preamble used for uplink service transmission;
  • the first obtaining unit 804 is configured to detect, by the at least one optical network unit, an uplink frame that includes the first preamble that is sent by using the second optical line terminal port, and obtain the at least the uplink frame that includes the first preamble. Equilibrium delay of an optical network unit;
  • a second sending unit 806, configured to send, by using the second optical line terminal port, an equalization delay of the at least one optical network unit to the at least one optical network unit, so that the at least one optical network unit is based on The equalization delay communicates with the second optical line termination port.
  • the optical line terminal further includes:
  • the bandwidth authorization unit 808 is connected to the first sending unit, and configured to generate an uplink bandwidth grant message, where the authorization message includes bandwidth information indicating the uplink frame and preamble template information, where the preamble template information indicates the at least one optical network unit
  • the first preamble is used to send an uplink frame; and the uplink bandwidth grant message is encapsulated into the downlink frame.
  • the second obtaining unit 810 is configured to obtain, according to the equalization delay sent by the second optical line terminal port, an equalization delay of the other optical network units in the multiple optical network units.
  • the second sending unit is further configured to send the equalization delay of the other optical network unit to the corresponding other optical network unit.
  • the optical line terminal further includes:
  • the third obtaining unit 812 is configured to obtain, according to the equalization delay sent by the second optical line terminal port, an equalization delay offset of the at least one optical network unit.
  • the second sending unit is further configured to send the equalization time shift offset to other optical network units in the multiple optical network units.
  • An embodiment of the present invention further provides an optical network unit, where the optical network unit includes:
  • the first receiving unit 902 is configured to perform communication according to the first equalization delay and the first optical line terminal port for communication; switch from the first optical line terminal port to the second optical line terminal port, and receive the second optical line. a downlink frame of the terminal port, where the downlink frame indicates that the uplink frame adopts a first preamble, where the length of the first preamble is greater than the length of the second preamble used for uplink service transmission;
  • the fifth sending unit 904 is configured to send, to the second optical line terminal port, an uplink frame that includes the first preamble; the second receiving unit 906 is configured to receive a second equalization delay from the second optical line terminal port; The second equalization delay and the second optical line terminal port communicate for service transmission.
  • An optical line terminal after the communication between the authority end and the plurality of optical network units is switched from the first optical line terminal port to the second optical line terminal port, the second optical line terminal port is at least An optical network
  • the unit sends a downlink frame, where the downlink frame indicates that the at least one optical network unit uses the first preamble to send an uplink frame, where the length of the first preamble is greater than the length of the second preamble used for uplink service transmission;
  • the optical network system can perform the re-range state even if the POPUP message is not supported, thereby quickly recovering
  • the embodiment of the present invention further provides another optical line terminal, where the optical line terminal includes: a third sending unit 1002, configured to: when the optical line terminal and the plurality of optical network units communicate from After the first optical line terminal port is switched to the second optical line terminal port, sending, by the second optical line terminal port, a deactivation message or sending a message carrying the reassigned optical network unit identifier to the at least one optical network unit, so that Said at least one optical network unit is offline;
  • a third sending unit 1002 configured to: when the optical line terminal and the plurality of optical network units communicate from After the first optical line terminal port is switched to the second optical line terminal port, sending, by the second optical line terminal port, a deactivation message or sending a message carrying the reassigned optical network unit identifier to the at least one optical network unit, so that Said at least one optical network unit is offline;
  • the fourth obtaining unit 1004 is configured to perform re-ranging on the at least one optical network unit to obtain a first equalization delay of the at least one optical network unit.
  • the fourth sending unit 1006 is configured to send, by using the second optical line terminal port, the equalization delay to the at least one optical network unit, so that the at least one optical network unit is based on the equalization delay and the The second optical line terminal port communicates.
  • the optical line terminal further includes:
  • the fifth obtaining unit 1008 is configured to obtain, according to the equalization delay sent by the second optical line terminal port, an equalization delay of the other optical network units in the multiple optical network units.
  • the fourth sending unit is further configured to send the equalization delay of the other optical network unit to the corresponding other optical network unit.
  • optical line terminal further comprises: a sixth obtaining unit 1010, configured to obtain, according to the equalization delay sent by the second optical line terminal port, Determining an equalization delay offset of at least one optical network unit;
  • the fourth sending unit is further configured to send the equalization delay offset to other optical network units in the multiple optical network units.
  • another optical line terminal provided by the embodiment of the present invention, after communication between the authority end and the plurality of optical network units is switched from the first optical line terminal port to the second optical line terminal port, the second optical line terminal port is sent.
  • the communication is performed with the second optical line terminal port, so that the optical network system can perform the re-ranging state even after the handover does not support the POPUP message, thereby quickly recovering the data communication between the 0LT and the ONU after the handover, thereby avoiding the handover. After the impact on normal business communication, the switching delay is reduced, and the user's satisfaction is improved.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Optical Communication System (AREA)

Abstract

A method, system and device for data communication in an optical network system are provided in the embodiment of the present invention. After the communication between the central office and multiple optical network units (ONUs) is switched to a second optical line terminal (OLT) port from a first OLT port, a downlink frame, which indicates that at least one ONU sends a uplink frame with a first preamble, is sent to at least one optical network unit (ONU) via the second OLT port; or, a deactivation message or a message carrying a reassigned ONU identifier are sent to at least one ONU. The present invention implements that the switched optical network system even without supporting a POPUP message can also perform ranging again. Moreover, the data communication between the switched OLT and the ONU can swiftly recovered, the influence for the normal service communication after being switched can be avoided, the switching delay is decreased, and the user satisfaction is improved.

Description

光网络系统的通信方法、 系统及装置 技术领域  Communication method, system and device for optical network system
本发明涉及通信技术领域, 特别涉及一种光网络系统的通信方法、 系统及装置。 背景技术  The present invention relates to the field of communications technologies, and in particular, to a communication method, system, and apparatus for an optical network system. Background technique
无源光网络 (Passive Optical Network, PON) 技术是目前应用最广泛的光纤到户 (Fiber To The Home, FTTH)技术之一。现有的 PON包括宽带无源光网络(Broadband Passive Optical Network, BPON)、吉比特无源光网络(Gigabit-capable Passive Optical Network, GPON) 和以太无源光网络 (Ethernet Passive Optical Network, EPON) , 以及 10千兆比 特无源光网络 ( 10 Gigabit-capable Passive Optical Networks , XG-P0N)。  Passive Optical Network (PON) technology is one of the most widely used Fiber To The Home (FTTH) technologies. The existing PON includes a Broadband Passive Optical Network (BPON), a Gigabit-Capable Passive Optical Network (GPON), and an Ethernet Passive Optical Network (EPON). And 10 Gigabit-capable Passive Optical Networks (XG-P0N).
传统的 PON系统主要包括: 光线路终端 (Optical Line Terminal, OLT) 、 光网络单 元 (Optical Network Unit, 0NU) 禾口光分配网 (Optical Distribution Network, 0DN) 等部分, 其中, 光分配网包括主干光纤、 无源光分路器和分支光纤。 0LT和无源光分路器 之间通过主干光纤连接, 光分路器实现点对多点的光功率分配, 并通过多个分支光纤连接 到多个 0NU。 其中, 从 0LT到 0NU的方向称为下行方向, 从 0NU到 0LT的方向称为上行方向。  The traditional PON system mainly includes: an optical line terminal (OLT), an optical network unit (0NU), and an optical distribution network (ODN), wherein the optical distribution network includes a backbone. Fiber optics, passive optical splitters, and branch fibers. The 0LT and the passive optical splitter are connected by a backbone optical fiber, and the optical splitter realizes point-to-multipoint optical power distribution and is connected to multiple 0NUs through multiple branch fibers. The direction from 0LT to 0NU is called the downlink direction, and the direction from 0NU to 0LT is called the uplink direction.
P0N系统的上行方向通常采用时分多址 ( Time Division Multiple Address, TDMA) 复用方式, 各 0NU在 OLT指定的时隙发送上行数据报文; 而下行方向 0LT采用时分复用(Time Division Multiplexing, TDM) 广播方式向各 0NU发送下行数据报文, 承载有所有 0NU的下 行数据报文的光信号在 0DN的光分路器处被分成若干份, 经各分支光纤到达各 0NU。  The uplink direction of the P0N system is usually a Time Division Multiple Address (TDMA) multiplexing mode. Each ONU sends uplink data packets in the time slot specified by the OLT. The downlink direction 0LT uses Time Division Multiplexing (TDM). The broadcast mode sends downlink data packets to each 0NU. The optical signals carrying all the ONU downlink data packets are divided into several parts at the 0DN optical splitter, and each branch fiber reaches each ONU.
其中, 在 GP0N系统中, 当主用 0LT与 0NU之间的光纤出现故障, 贝 l」0LT与 0NU因为接收不 到对方的信号, 都会检测到 LOS (lost of signal , 信号丢失) 告警; 主用 0LT检测到 L0S告 警, 说明是主用主干光纤故障, 需要进行主备 0LT切换, 将所有的 0NU切换到备用 0LT上, 原来的备用 0LT切换成为主用 OLT。 0NU检测到 L0S告警后, 由正常的 OPERATION状态切换到 POPUP状态, 停止发送上行数据; 主用 0LT向所有 0NU广播发送 POPUP消息, 通知 0NU由 POPUP 状态转换为 RANGING状态, 开始所有 0NU的重新测距处理; 在主用 0LT的控制下, 串行方式 完成所有 0NU的测距处理, 恢复 0LT与 0NU之间恢复数据通信。  Among them, in the GP0N system, when the optical fiber between the primary 0LT and the 0NU fails, the LOS (lost of signal) alarm is detected because the receiver receives the signal of the other party; the primary 0LT is used. The L0S alarm is detected, indicating that the primary trunk fiber is faulty. The active and standby 0LT switches are required. All the 0NUs are switched to the standby 0LT, and the original standby 0LT is switched to become the primary OLT. After detecting the L0S alarm, 0NU switches from the normal OPERATION state to the POPUP state and stops sending uplink data. The primary 0LT sends a POPUP message to all 0NU broadcasts, notifying the 0NU to transition from the POPUP state to the RANGING state, and starting all 0NU re-ranging. Processing; under the control of the main 0LT, serial processing completes all 0NU ranging processing, and restores data communication between 0LT and 0NU.
在实现本发明的过程中, 发明人发现现有技术至少存在以下问题:  In the process of implementing the present invention, the inventors have found that the prior art has at least the following problems:
当主用 0LT与 0NU之间的光纤出现故障, 主备骨干光纤切换后需要对各 0NU进行重新测 距, 由于 XGP0N系统或者其它光网络系统不支持 POPUP消息, 则 0NU无法进入重新测距状态, 进而使得 ONU无法获得准确的均衡时延, 导致主备倒换后 0LT与 0NU之间的通信中断。 发明内容 When the primary optical fiber between the 0LT and the 0NU fails, the primary and backup backbone fibers need to be re-ranged for each 0NU. Since the XGP0N system or other optical network system does not support the POPUP message, the 0NU cannot enter the re-ranging state. As a result, the ONU cannot obtain an accurate equalization delay, and the communication between the 0LT and the ONU is interrupted after the active/standby switchover. Summary of the invention
本发明实施例的目的是提供一种光网络系统的通信方法、 系统以及装置, 用于解决现 有光网络系统中 0LT进行主备倒换后, 由于不支持 POPUP消息, 导致 0LT与 0NU之间的数据通 信中断的问题, 从而避免了切换后对正常业务通信的影响, 提高了用户的满意程度。  The object of the embodiments of the present invention is to provide a communication method, system, and device for an optical network system, which is used to solve the problem between the 0LT and the ONU after the OLT is not supported by the OLT in the existing optical network system. The problem of data communication interruption, thereby avoiding the impact on normal business communication after switching, and improving user satisfaction.
为解决上述问题, 本发明实施例提供了一种光网络系统的通信方法, 所述光网络系统 的局端提供第一光线路终端端口和第二光线路终端端口, 每一个光线路终端端口连接多个 光网络单元, 所述方法包括:  To solve the above problem, an embodiment of the present invention provides a communication method of an optical network system, where a central end of the optical network system provides a first optical line terminal port and a second optical line terminal port, and each optical line terminal port is connected. a plurality of optical network units, the method comprising:
当局端和多个光网络单元的通信从第一光线路终端端口切换到第二光线路终端端口 后, 通过所述第二光线路终端端口向至少一个光网络单元发送下行帧, 所述下行帧指示所 述至少一个光网络单元采用第一前导发送上行帧, 其中所述第一前导的长度大于用于上行 业务传输的第二前导的长度;  After the communication between the authority and the plurality of optical network units is switched from the first optical line terminal port to the second optical line terminal port, the downlink frame is sent to the at least one optical network unit by the second optical line terminal port, where the downlink frame is Instructing the at least one optical network unit to transmit an uplink frame by using a first preamble, wherein a length of the first preamble is greater than a length of a second preamble for uplink traffic transmission;
检测所述至少一个光网络单元通过所述第二光线路终端端口发送的包含第一前导的 上行帧, 基于所述包含第一前导的上行帧, 获得所述至少一个光网络单元的均衡时延; 通过所述第二光线路终端端口将所述均衡时延发送给所述至少一个光网络单元, 以使 所述至少一个光网络单元基于所述均衡时延与所述第二光线路终端端口进行通信。  Detecting, by the at least one optical network unit, an uplink frame that includes the first preamble sent by the second optical line terminal port, and obtaining an equalization delay of the at least one optical network unit based on the uplink frame that includes the first preamble Transmitting the equalization delay to the at least one optical network unit by the second optical line termination port, so that the at least one optical network unit is based on the equalization delay and the second optical line termination port Communicate.
本发明实施例还提供了另一种光网络系统的通信方法, 所述方法包括:  An embodiment of the present invention further provides a communication method of another optical network system, where the method includes:
基于第一均衡时延和第一光线路终端端口通信, 以进行业务传输;  Performing service transmission based on the first equalization delay and the first optical line terminal port communication;
从第一光线路终端端口切换到第二光线路终端端口,接收来自第二光线路终端端口的 下行帧, 所述下行帧指示上行帧采用第一前导, 其中所述第一前导的长度大于用于上行业 务传输的第二前导的长度;  Switching from the first optical line terminal port to the second optical line terminal port, receiving a downlink frame from the second optical line terminal port, where the downlink frame indicates that the uplink frame adopts a first preamble, wherein the length of the first preamble is greater than The length of the second preamble of the uplink traffic transmission;
向第二光线路终端端口发送包含该第一前导的上行帧;  Transmitting, to the second optical line terminal port, an uplink frame including the first preamble;
接收来自第二光线路终端端口的第二均衡时延;  Receiving a second equalization delay from the second optical line terminal port;
基于所述第二均衡时延和第二光线路终端端口通信以进行业务传输。  And performing traffic transmission based on the second equalization delay and the second optical line terminal port communication.
本发明还提供另一种光网络系统的通信方法, 所述光网络系统的局端提供第一光线路 终端端口和第二光线路终端端口, 每一个光线路终端端口连接多个光网络单元, 所述方法 包括: 当局端和多个光网络单元的通信从第一光线路终端端口切换到第二光线路终端端口 后, 通过所述第二光线路终端端口发送去激活消息或者发送携带重新分配的光网络单元标 识的消息给至少一个光网络单元, 使得所述至少一个光网络单元下线; The present invention also provides a communication method of another optical network system, where the central end of the optical network system provides a first optical line terminal port and a second optical line terminal port, and each optical line terminal port is connected to multiple optical network units, The method includes: after the communication between the authority end and the plurality of optical network units is switched from the first optical line termination port to the second optical line termination port, sending a deactivation message or transmitting carrying a redistribution through the second optical line termination port Optical network unit Obtaining the message to the at least one optical network unit, causing the at least one optical network unit to go offline;
对所述至少一个光网络单元进行重新测距, 获得所述至少一个光网络单元的第一均衡 时延;  Re-ranging the at least one optical network unit to obtain a first equalization delay of the at least one optical network unit;
通过所述第二光线路终端端口将所述均衡时延发送给所述至少一个光网络单元, 以使 所述至少一个光网络单元基于所述均衡时延与所述第二光线路终端端口进行通信。  Transmitting the equalization delay to the at least one optical network unit by using the second optical line termination port, so that the at least one optical network unit performs the equalization delay and the second optical line termination port. Communication.
本发明实施例还提供了一种光网络系统的通信方法, 所述方法包括:  The embodiment of the invention further provides a communication method of an optical network system, where the method includes:
基于第一均衡时延和第一光线路终端端口通信, 以进行业务传输;  Performing service transmission based on the first equalization delay and the first optical line terminal port communication;
从第一光线路终端端口切换到第二光线路终端端口, 接收来自第二光线路终端端口的 去激活消息或者携带重新分配的光网络单元标识的消息;  Switching from the first optical line termination port to the second optical line termination port, receiving a deactivation message from the second optical line termination port or carrying a message of the reassigned optical network unit identifier;
根据所述去激活消息, 进行下线;  Performing offline according to the deactivation message;
重新进行测距后, 接收来自第二光线路终端端口的第二均衡时延;  After performing ranging again, receiving a second equalization delay from the second optical line terminal port;
基于所述第二均衡时延和第二光线路终端端口通信以进行业务传输。 本发明实施例提 供了一种光网络系统, 所述系统包括: 第一光线路终端端口和第二光线路终端端口, 光线 路终端通过每一个光线路终端端口连接多个光网络单元;  And performing traffic transmission based on the second equalization delay and the second optical line terminal port communication. An embodiment of the present invention provides an optical network system, where the system includes: a first optical line terminal port and a second optical line terminal port, where the optical path terminal connects the plurality of optical network units through each optical line terminal port;
所述光线路终端, 用于当光线路终端和多个光网络单元的通信从第一光线路终端端口 切换到第二光线路终端端口后, 通过所述第二光线路终端端口向至少一个光网络单元发送 下行帧, 所述下行帧指示所述至少一个光网络单元采用第一前导发送上行帧, 其中所述第 一前导的长度大于用于上行业务传输的第二前导的长度; 检测所述至少一个光网络单元通 过所述第二光线路终端端口发送的包含第一前导的上行帧, 基于所述包含第一前导的上行 帧, 获得所述至少一个光网络单元的均衡时延; 通过所述第二光线路终端端口将所述均衡 时延发送给所述至少一个光网络单元, 以使所述至少一个光网络单元基于所述均衡时延与 所述第二光线路终端端口进行通信。  The optical line terminal is configured to: when the communication between the optical line terminal and the plurality of optical network units is switched from the first optical line terminal port to the second optical line terminal port, to the at least one light through the second optical line terminal port The network unit sends a downlink frame, where the downlink frame indicates that the at least one optical network unit uses the first preamble to send an uplink frame, where the length of the first preamble is greater than the length of the second preamble used for uplink service transmission; Obtaining an equalization delay of the at least one optical network unit based on the uplink frame including the first preamble by using the uplink frame that includes the first preamble sent by the second optical line terminal port by the at least one optical network unit; The second optical line terminal port transmits the equalization delay to the at least one optical network unit, so that the at least one optical network unit communicates with the second optical line terminal port based on the equalization delay.
所述至少一个光网络单元, 用于基于第一均衡时延和第一光线路终端端口通信, 以进 行业务传输; 从第一光线路终端端口切换到第二光线路终端端口, 接收来自第二光线路终 端端口的下行帧, 所述下行帧指示上行帧采用第一前导, 其中所述第一前导的长度大于用 于上行业务传输的第二前导的长度; 向第二光线路终端端口发送包含该第一前导的上行 帧; 接收来自第二光线路终端端口的第二均衡时延; 基于所述第二均衡时延和第二光线路 终端端口通信以进行业务传输。  The at least one optical network unit is configured to perform traffic transmission based on the first equalization delay and the first optical line terminal port; switch from the first optical line terminal port to the second optical line terminal port, and receive from the second a downlink frame of the optical line terminal port, where the downlink frame indicates that the uplink frame adopts a first preamble, wherein a length of the first preamble is greater than a length of a second preamble used for uplink service transmission; and sending, to the second optical line terminal port, An uplink frame of the first preamble; receiving a second equalization delay from the second optical line termination port; and performing traffic transmission based on the second equalization delay and the second optical line termination port communication.
本发明实施例还提供了另一种光网络系统, 所述系统包括: 第一光线路终端端口和第 二光线路终端端口, 光线路终端通过每一个光线路终端端口连接多个光网络单元; 所述光线路终端, 用于当光线路终端和多个光网络单元的通信从第一光线路终端端口 切换到第二光线路终端端口后, 通过所述第二光线路终端端口发送去激活消息或者发送携 带重新分配的光网络单元标识的消息给至少一个光网络单元, 使得所述至少一个光网络单 元下线; 对所述至少一个光网络单元进行重新测距, 获得所述至少一个光网络单元的第一 均衡时延; 通过所述第二光线路终端端口将所述均衡时延发送给所述至少一个光网络单 元, 以使所述至少一个光网络单元基于所述均衡时延与所述第二光线路终端端口进行通 信; Another embodiment of the present invention provides an optical network system, where the system includes: a first optical line terminal port and a a second optical line terminal port, the optical line terminal is connected to the plurality of optical network units through each optical line terminal port; the optical line terminal is configured to communicate with the optical line terminal and the plurality of optical network units from the first optical line terminal port After switching to the second optical line terminal port, sending a deactivation message through the second optical line terminal port or sending a message carrying the reassigned optical network unit identifier to the at least one optical network unit, so that the at least one optical network unit Performing re-ranging on the at least one optical network unit to obtain a first equalization delay of the at least one optical network unit; and transmitting, by the second optical line termination port, the equalization delay to the At least one optical network unit, such that the at least one optical network unit communicates with the second optical line termination port based on the equalization delay;
所述光网络单元, 用于基于第一均衡时延和第一光线路终端端口通信, 以进行业务传 输; 从第一光线路终端端口切换到第二光线路终端端口, 接收来自第二光线路终端端口的 去激活消息或者携带重新分配的光网络单元标识的消息;根据所述去激活消息,进行下线; 重新进行测距后, 接收来自第二光线路终端端口的第二均衡时延; 基于所述第二均衡时延 和第二光线路终端端口通信以进行业务传输。  The optical network unit is configured to perform traffic transmission based on the first equalization delay and the first optical line terminal port; switch from the first optical line terminal port to the second optical line terminal port, and receive the second optical line a deactivation message of the terminal port or a message carrying the reassigned optical network unit identifier; performing a downlink according to the deactivation message; and after receiving the ranging, receiving a second equalization delay from the second optical line terminal port; And performing traffic transmission based on the second equalization delay and the second optical line terminal port communication.
本发明实施例提供了一种光线路终端, 所述光线路终端包括:  An embodiment of the present invention provides an optical line terminal, where the optical line terminal includes:
第一发送单元, 用于当所述光线路终端和多个光网络单元的通信从第一光线路终端端 口切换到第二光线路终端端口后, 通过所述第二光线路终端端口向至少一个光网络单元发 送下行帧, 所述下行帧指示所述至少一个光网络单元采用第一前导发送上行帧, 其中所述 第一前导的长度大于用于上行业务传输的第二前导的长度;  a first sending unit, configured to: when the communication between the optical line terminal and the plurality of optical network units is switched from the first optical line terminal port to the second optical line terminal port, to the at least one through the second optical line terminal port The optical network unit sends a downlink frame, where the downlink frame indicates that the at least one optical network unit uses the first preamble to send an uplink frame, where the length of the first preamble is greater than the length of the second preamble used for uplink service transmission;
第一获取单元, 用于检测所述至少一个光网络单元通过所述第二光线路终端端口发送 的包含第一前导的上行帧; 基于所述包含第一前导的上行帧, 获得所述至少一个光网络单 元的均衡时延;  a first acquiring unit, configured to detect an uplink frame that includes the first preamble sent by the at least one optical network unit by using the second optical line terminal port; and obtain the at least one based on the uplink frame that includes the first preamble Equilibrium delay of the optical network unit;
第二发送单元, 用于通过所述第二光线路终端端口将所述至少一个光网络单元的均衡 时延发送给所述至少一个光网络单元, 以使所述至少一个光网络单元基于所述均衡时延与 所述第二光线路终端端口进行通信。  a second sending unit, configured to send, by the second optical line terminal port, an equalization delay of the at least one optical network unit to the at least one optical network unit, so that the at least one optical network unit is based on the The equalization delay communicates with the second optical line termination port.
本发明实施例还提供了一种光网络单元, 所述光网络单元包括:  An embodiment of the present invention further provides an optical network unit, where the optical network unit includes:
接收单元, 用于基于第一均衡时延和第一光线路终端端口通信, 以进行业务传输; 从 第一光线路终端端口切换到第二光线路终端端口, 接收来自第二光线路终端端口的下行 帧, 所述下行帧指示上行帧采用第一前导, 其中所述第一前导的长度大于用于上行业务传 输的第二前导的长度; 第五发送单元, 用于向第二光线路终端端口发送包含该第一前导的上行帧; 第二接收单元, 用于接收来自第二光线路终端端口的第二均衡时延; 基于所述第二均 衡时延和第二光线路终端端口通信以进行业务传输。 a receiving unit, configured to perform communication according to the first equalization delay and the first optical line terminal port to perform service transmission; switch from the first optical line terminal port to the second optical line terminal port, and receive the second optical line terminal port a downlink frame, where the downlink frame indicates that the uplink frame adopts a first preamble, where a length of the first preamble is greater than a length of a second preamble used for uplink service transmission; a fifth sending unit, configured to send, to the second optical line terminal port, an uplink frame that includes the first preamble; and a second receiving unit, configured to receive a second equalization delay from the second optical line terminal port; The second equalization delay communicates with the second optical line terminal port for service transmission.
本发明实施例还提供了一种光线路终端, 所述光线路终端包括:  An embodiment of the present invention further provides an optical line terminal, where the optical line terminal includes:
第三发送单元, 用于当所述光线路终端和多个光网络单元的通信从第一光线路终端端 口切换到第二光线路终端端口后, 通过所述第二光线路终端端口发送去激活消息或者发送 携带重新分配的光网络单元标识的消息给至少一个光网络单元, 使得所述至少一个光网络 单元下线;  a third sending unit, configured to send, by the second optical line terminal port, deactivation after the optical line terminal and the plurality of optical network units are switched from the first optical line terminal port to the second optical line terminal port Sending, by the message, a message carrying the reassigned optical network unit identifier to the at least one optical network unit, such that the at least one optical network unit is offline;
第四获取单元, 用于对所述至少一个光网络单元进行重新测距, 获得所述至少一个光 网络单元的第一均衡时延;  a fourth acquiring unit, configured to perform re-ranging on the at least one optical network unit, to obtain a first equalization delay of the at least one optical network unit;
第四发送单元, 用于通过所述第二光线路终端端口将所述均衡时延发送给所述至少一 个光网络单元, 以使所述至少一个光网络单元基于所述均衡时延与所述第二光线路终端端 P进行通信。  a fourth sending unit, configured to send the equalization delay to the at least one optical network unit by using the second optical line terminal port, so that the at least one optical network unit is based on the equalization delay and the The second optical line terminal P communicates.
本发明实施例提供的一种光网络系统中数据通信的方法, 系统及装置, 当局端和多个 光网络单元的通信从第一光线路终端端口切换到第二光线路终端端口后, 通过所述第二光 线路终端端口向至少一个光网络单元发送下行帧, 所述下行帧指示所述至少一个光网络单 元采用第一前导发送上行帧, 或者, 发送去激活消息或者发送携带重新分配的光网络单元 标识的消息给至少一个光网络单元, 实现在切换后光网络系统即使不支持 POPUP消息也能 够进行重新测距状态, 进而快速恢复切换后 0LT与 0NU之间的数据通信, 避免了切换后对正 常业务通信的影响, 减少了切换延时, 提高了用户的满意程度。 附图说明 为了更清楚地说明本发明实施例的技术方案, 下面将对实施例描述中所需要使用的附 图作简单地介绍。 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于本领 域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附 图。  A method, system and device for data communication in an optical network system provided by an embodiment of the present invention, after communication between a authority end and a plurality of optical network units is switched from a first optical line terminal port to a second optical line terminal port, The second optical line terminal port sends a downlink frame to the at least one optical network unit, where the downlink frame indicates that the at least one optical network unit sends the uplink frame by using the first preamble, or sends a deactivation message or sends the light that carries the reallocation. The message identified by the network unit is sent to at least one optical network unit, so that after the switching, the optical network system can perform the re-ranging state even if the POPUP message is not supported, thereby quickly recovering the data communication between the 0LT and the ONU after the switching, thereby avoiding the switching. The impact on normal business communication reduces the switching delay and improves user satisfaction. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. Obviously, the drawings in the following description are only some of the embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any creative work.
图 1为本发明实施例提供的一种光网络系统的数据通信方法流程图;  1 is a flowchart of a data communication method of an optical network system according to an embodiment of the present invention;
图 2为本发明实施例提供的一种光网络单元的状态示意图;  2 is a schematic diagram of a state of an optical network unit according to an embodiment of the present invention;
图 3为本发明实施例提供的一种光网络系统的数据通信方法的具体方法流程图; 图 4为本发明实施例提供的一种下行 XGTC帧的结构示意图; FIG. 3 is a flowchart of a specific method for a data communication method of an optical network system according to an embodiment of the present disclosure; FIG. 4 is a schematic structural diagram of a downlink XGTC frame according to an embodiment of the present disclosure;
图 5为本发明实施例提供的一种下行 XGTC帧结构中 BWMAP结构示意图;  FIG. 5 is a schematic structural diagram of a BWMAP in a downlink XGTC frame structure according to an embodiment of the present disclosure;
图 6为本发明实施例提供的另一种光网络系统数据通信方法流程图;  6 is a flowchart of another optical network system data communication method according to an embodiment of the present invention;
图 7为本发明实施例提供的一种光网络系统的结构示意图;  FIG. 7 is a schematic structural diagram of an optical network system according to an embodiment of the present disclosure;
图 8为本发明实施例提供的一种光线路终端的结构示意图;  FIG. 8 is a schematic structural diagram of an optical line terminal according to an embodiment of the present disclosure;
图 9为本发明实施例提供的一种光网络单元的结构示意图;  FIG. 9 is a schematic structural diagram of an optical network unit according to an embodiment of the present disclosure;
图 10为本发明实施例提供的另一种光线路终端的结构示意图。 具体实施方式 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地 描述。 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本 发明中的实施例, 本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实 施例, 都属于本发明保护的范围。  FIG. 10 is a schematic structural diagram of another optical line terminal according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings. It is apparent that the described embodiments are only a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
图 1为本发明实施例提供的一种无源光网络系统的数据通信方法流程图。 如图 1所示, 本发明实施例的方法可以包括如下步骤:  FIG. 1 is a flowchart of a data communication method of a passive optical network system according to an embodiment of the present invention. As shown in FIG. 1, the method of the embodiment of the present invention may include the following steps:
所述光网络系统的局端提供第一 0LT端口和第二 0LT端口, 每一个 0LT端口连接多个 0NU, 所述方法包括:  The central office of the optical network system provides a first 0LT port and a second 0LT port, and each 0LT port is connected to multiple 0NUs, and the method includes:
步骤 S102、 当局端和多个 0NU的通信从第一 0LT端口切换到第二 0LT端口后, 通过所述 第二 0LT端口向至少一个 0NU发送下行帧, 所述下行帧指示所述至少一个光网络单元采用第 一前导发送上行帧, 其中所述第一前导的长度大于用于上行业务传输的第二前导的长度。  Step S102: After the communication between the authority end and the plurality of ONUs is switched from the first OLT port to the second OLT port, send a downlink frame to the at least one ONU by using the second OLT port, where the downlink frame indicates the at least one optical network The unit uses the first preamble to send an uplink frame, where the length of the first preamble is greater than the length of the second preamble used for uplink service transmission.
进一步地, 所述光网络系统可以为 10千兆比特无源光网络 XG-P0N系统(或者简写为 XGP0N) , 所述 XGP0N系统包括: XGP0N1系统和 XGP0N2系统, 这两个系统是下一代千兆比特 无源光网络 NGP0N 1 (又可以称为 "下一代吉比特无源光网络")的两个主要备选架构。 XGP0N1 是下行 lOGbps/上行 2. 5Gbps的非对称系统; XGP0N2是上下行 lOGbps的对称系统。 其中 XGP0N1系统为不对称系统, 也可以称为 10GGP0N; 所述局端为网络侧设备, 是相对于用户 端设备而言, 例如 0LT。 本发明实施例仅以 0NU为例进行说明的, 所有适用于 0NU的方法都 适用于 0NT。  Further, the optical network system may be a 10 Gigabit passive optical network XG-P0N system (or abbreviated as XGP0N), and the XGP0N system includes: an XGP0N1 system and an XGP0N2 system, the two systems are next generation Gigabit The two main alternative architectures of the bit passive optical network NGP0N 1 (also known as the "next generation Gigabit Passive Optical Network"). XGP0N1 is an asymmetric system with downlink lOGbps/uplink 2. 5Gbps; XGP0N2 is a symmetric system with uplink and downlink lOGbps. The XGP0N1 system is an asymmetric system, which may also be called 10GGP0N; the central office is a network side device, which is relative to the user equipment, for example, 0LT. The embodiment of the present invention is described by taking only 0NU as an example, and all methods applicable to 0NU are applicable to 0NT.
进一步的, 所述下行帧可以为 XGTC帧。 所述下行帧中的上行突发 (帧) 模板 Burst Profi le字段设置为第一前导, 又可以称为长前导 (也可以称为长帧头), 所述下行帧中的 Burst Profile字段包括第一前导和第二前导 (可以称为短前导或者短帧头), 其中所述第 一前导的长度大于用于上行业务传输的第二前导的长度, 该字段用于指示至少一个光网络 单元采用使用哪种前导码 preamble bytes的上行帧。 其中, 所述 Burst Profile字段位于 下行帧的帧头中; 所述第一前导为 0NU进入测距状态即 04态时使用的前导; 所述第二前导 为 0NU处于运行状态即 05态时使用的前导。 Further, the downlink frame may be an XGTC frame. The uplink burst (frame) template Burst Profi le field in the downlink frame is set as a first preamble, which may also be referred to as a long preamble (also referred to as a long frame header), in the downlink frame. The Burst Profile field includes a first preamble and a second preamble (which may be referred to as a short preamble or a short frame header), wherein the length of the first preamble is greater than the length of the second preamble for uplink traffic transmission, the field is used to indicate at least An optical network unit uses an upstream frame of which preamble bytes are used. The first preamble is a preamble used when the 0NU enters the ranging state, that is, the 04 state, and the second preamble is used when the 0NU is in the running state, that is, the 05 state. Leading.
进一步地, 所述 0LT在发送下行帧前还包括: 生成上行带宽授权消息, 该授权消息包 含指示上行帧的带宽信息和前导码模板信息, 前导码模板信息指示所述至少一个光网络单 元采用第一前导发送上行帧; 将上行带宽授权消息封装到所述下行帧中。  Further, before the sending of the downlink frame, the OLT further includes: generating an uplink bandwidth grant message, where the grant message includes bandwidth information indicating the uplink frame and preamble template information, where the preamble template information indicates that the at least one optical network unit adopts A preamble sends an uplink frame; and an uplink bandwidth grant message is encapsulated into the downlink frame.
步骤 S104、 所述 0LT检测所述至少一个 ONU通过所述第二 0LT端口发送的包含第一前导 的上行帧。  Step S104: The 0LT detects an uplink frame that includes the first preamble sent by the at least one ONU through the second OLT port.
步骤 S106、 所述 0LT基于所述包含第一前导的上行帧, 获得所述至少一个光网络单元 的均衡时延。  Step S106: The 0LT obtains an equalization delay of the at least one optical network unit based on the uplink frame that includes the first preamble.
步骤 S108、 所述 0LT通过所述第二光线路终端端口将所述均衡时延发送给所述至少一 个光网络单元, 以使所述至少一个光网络单元基于所述均衡时延与所述第二光线路终端端 口进行通信。  Step S108: The 0LT sends the equalization delay to the at least one optical network unit by using the second optical line terminal port, so that the at least one optical network unit is based on the equalization delay and the first The two optical line terminal ports communicate.
进一步地, 所述方法还包括:所述 0LT基于所述第二光线路终端端口发送的均衡时延, 获得所述多个光网络单元中其它光网络单元的均衡时延; 将所述其它光网络单元的均衡时 延发送给对应的所述其它光网络单元; 或者,  Further, the method further includes: obtaining, by the OLT, an equalization delay of other optical network units in the plurality of optical network units based on an equalization delay sent by the second optical line terminal port; The equalization delay of the network unit is sent to the corresponding other optical network unit; or
所述 0LT基于所述第二光线路终端端口发送的均衡时延, 获得所述至少一个光网络单 元的均衡时延偏移, 将所述均衡时移偏移发送所述多个光网络单元中的其它光网络单元。  The 0LT obtains an equalization delay offset of the at least one optical network unit based on the equalization delay sent by the second optical line terminal port, and sends the equalization time shift offset to the multiple optical network units. Other optical network units.
其中, 所述 0LT获得所述至少一个光网络单元的均衡时延偏移, 将所述均衡时移偏移 发送所述多个光网络单元中的其它光网络单元具体包括两种方式:  The 0LT obtains an equalization delay offset of the at least one optical network unit, and the equalization time shift is sent to the other optical network units of the multiple optical network units, and specifically includes two modes:
其一为, 所述 0LT根据通过第一发送端口发送给所述至少一个 0NU的第一均衡时延 EqDl , 以及通过第二发送端口发送给所述至少一个 ONU的第二均衡时延 EqD2后, 计算 EqDl 和 EqD2的 EqD偏移, 此时所述 EqD偏移可以估算为从第一 0LT端口切换到第二 0LT端口后各 0NU的 EqD偏差, 根据该 EqD偏差, 进而计算出光网络系统中的其它各 0NU的 EqD, 并将所述 EqD通过第二 0LT端口以单播方式下发给对应的各个 0NU。  The first time is that the 0LT is sent according to the first equalization delay EqD1 sent by the first sending port to the at least one ONU, and after the second equalization delay EqD2 sent by the second sending port to the at least one ONU. Calculating the EqD offset of EqD1 and EqD2. At this time, the EqD offset can be estimated as the EqD deviation of each 0NU after switching from the first 0LT port to the second OLT port, and further calculating the other in the optical network system according to the EqD deviation. Each ENU of the ONU is sent to the corresponding ONU in a unicast manner through the second 0LT port.
其二为, 0LT计算出 EqD偏差后, 以广播方式通过第二 0LT端口下发给光网络系统中的 其它 0NU, 所述其它 0NU根据 EqD偏差, 各自计算出切换后的 EqD, 进而基于所述切换后的 EqD 通过所述第二 OLT端口与所述 OLT进行通信。 The second is that after the 0LT calculates the EqD deviation, it is broadcasted to the other ONUs in the optical network system through the second 0LT port, and the other ONUs respectively calculate the switched EqD according to the EqD deviation, and then based on the Switched EqD Communicating with the OLT through the second OLT port.
相对于上述的通信方法, 对于 0NU而言, 在 0NU侧执行的方法包括:  With respect to the above communication method, for 0NU, the method performed on the 0NU side includes:
0NU基于第一均衡时延和第一光线路终端端口通信, 以进行业务传输;  The 0NU communicates with the first optical line terminal port based on the first equalization delay to perform service transmission;
从第一光线路终端端口切换到第二光线路终端端口, 0NU接收来自第二光线路终端端 口的下行帧, 所述下行帧指示上行帧采用第一前导, 其中所述第一前导的长度大于用于上 行业务传输的第二前导的长度;  Switching from the first optical line terminal port to the second optical line terminal port, the 0NU receives the downlink frame from the second optical line terminal port, and the downlink frame indicates that the uplink frame adopts the first preamble, wherein the length of the first preamble is greater than The length of the second preamble used for uplink traffic transmission;
0NU向第二光线路终端端口发送包含该第一前导的上行帧;  The 0NU sends an uplink frame including the first preamble to the second optical line terminal port;
0NU接收来自第二光线路终端端口的第二均衡时延;  0NU receives a second equalization delay from the second optical line terminal port;
0NU基于所述第二均衡时延和第二光线路终端端口通信以进行业务传输。  The 0NU communicates with the second optical line terminal port based on the second equalization delay for traffic transmission.
本发明实施例提供的一种光网络系统中数据通信的方法, 当局端和多个光网络单元的 通信从第一光线路终端端口切换到第二光线路终端端口后, 通过所述第二光线路终端端口 向至少一个光网络单元发送下行帧, 所述下行帧指示所述至少一个光网络单元采用第一前 导发送上行帧, 其中所述第一前导的长度大于用于上行业务传输的第二前导的长度; 检测 所述至少一个光网络单元通过所述第二光线路终端端口发送的包含第一前导的上行帧, 基 于所述包含第一前导的上行帧, 获得所述至少一个光网络单元的均衡时延; 通过所述第二 光线路终端端口将所述均衡时延发送给所述至少一个光网络单元, 以使所述至少一个光网 络单元基于所述均衡时延与所述第二光线路终端端口进行通信, 实现在切换后光网络系统 即使不支持 POPUP消息也能够进行重新测距状态, 进而快速恢复切换后 0LT与 0NU之间的数 据通信, 避免了切换后对正常业务通信的影响, 减少了切换延时, 提高了用户的满意程度, 尤其是对 XGP0N系统而言, 进一步解决了 XGP0N系统中 TYPE B主备倒换的问题。  The method for data communication in an optical network system provided by the embodiment of the present invention, after the communication between the authority end and the plurality of optical network units is switched from the first optical line terminal port to the second optical line terminal port, the second light is passed. The line terminal port sends a downlink frame to the at least one optical network unit, where the downlink frame indicates that the at least one optical network unit uses the first preamble to send an uplink frame, where the length of the first preamble is greater than the second for uplink service transmission. Detecting the length of the preamble; detecting, by the at least one optical network unit, an uplink frame that includes the first preamble sent by the second optical line termination port, and obtaining the at least one optical network unit based on the uplink frame that includes the first preamble Equilibrium delay; transmitting, by the second optical line termination port, the equalization delay to the at least one optical network unit, so that the at least one optical network unit is based on the equalization delay and the second The optical line terminal port communicates, and the optical network system can perform re-testing even if the POPUP message is not supported after the handover. The state, in turn, quickly restores the data communication between the 0LT and the 0NU after the handover, avoids the impact on the normal service communication after the handover, reduces the handover delay, and improves the user satisfaction, especially for the XGP0N system, further solving The problem of TYPE B active/standby switchover in the XGP0N system.
图 2为本发明实施例提供的一种光网络单元的状态示意图, 具体为在 XGP0N系统中光网 络单元的各种状态示意图。 下面以 XP0N系统为例, 通过介绍 XP0N系统中 0NU的各种状态示 意图, 进而对上述光网络系统中的通信方法进行详细描述。  FIG. 2 is a schematic diagram of a state of an optical network unit according to an embodiment of the present invention, and is specifically a schematic diagram of various states of an optical network unit in an XGP0N system. The XP0N system is taken as an example to describe the communication methods in the optical network system described above by introducing various state diagrams of the 0NU in the XP0N system.
如图 2所示, 所述 0NU的状态变化有 6个状态:  As shown in Figure 2, the state change of the 0NU has six states:
( 1 ) 01 - Initial state  ( 1 ) 01 - Initial state
初始态, 光发送关闭, 所有传输控制 TC层的配置参数包含 0NU-ID, 默认或者明确带宽 分配标识 Alloc-Id即 0NU标识, 当 0NU与下行光信号同步上时, 切换到 02_3态。  Initial state, optical transmission is off, all transmission control TC layer configuration parameters include 0NU-ID, default or explicit bandwidth allocation identifier Alloc-Id is the 0NU flag, when 0NU is synchronized with the downstream optical signal, it switches to the 02_3 state.
( 2) 02-3 - Serial Number state  ( 2) 02-3 - Serial Number state
序列号 SN状态, 0NU激活光发送功能, 接收并且学习 Burst模板(即上行突发帧的模板) PLOAM消息, 当 ONU收到带已知 Burst模板的 SN开窗消息时, 发送一个带 SN响应物理层操作 管理维护 PL0AM的 XGTC帧, 此时, 0NU忽略上行动态带宽上报 DBRu标识和带宽映射授权宽度 BWMAP GrantSize区域。 当 0NU收到序列号 SN等于自己的 SN的分配 0NU-ID的 PL0AM消息时, 0NU进入 04态。 当收到一个 SN等于自己的 SN的非使能序列号 Disable— Serial— Number PLOAM 消息时, ONU进去 07态。 如果 0LT已经通过某种方式获知了 ONU的存在, 比如在掉电恢复过 程中, 0LT可以直接通过一个分配带已知的 ONU SN的 ONU-ID PL0AM消息, 这样, 0NU可以忽 略 02-3态, 直接进入 04态。 Serial number SN status, 0NU activates the optical transmission function, receives and learns the Burst template (ie, the template of the uplink burst frame) The PLOAM message, when the ONU receives the SN windowing message with the known Burst template, sends an XGTC frame with the SN response physical layer operation management and maintenance PL0AM. At this time, the 0NU ignores the uplink dynamic bandwidth report DBRu identifier and the bandwidth mapping authorization width. BWMAP GrantSize area. When the ONU receives the PL0AM message with the sequence number SN equal to its own SN assigning the 0NU-ID, the 0NU enters the 04 state. When receiving a non-enable serial number Disable_Serial_Number PLOAM message whose SN is equal to its own SN, the ONU enters the 07 state. If the 0LT has learned the existence of the ONU in some way, for example, during the power failure recovery process, the 0LT can directly transmit an ONU-ID PL0AM message with a known ONU SN, so that the 0NU can ignore the 02-3 state. Go directly to the 04 state.
( 3) 04 - Ranging state  ( 3) 04 - Ranging state
测距状态,如果 0NU收到一个带已知模板的测距请求时,回应一个带注册 Registration PLOAM的 XGTC帧, 测距的时候忽略 DBRu标识和 GrantSize区域。 04状态的 0NU响应如下信息: 模板 Prof i le (上行突发帧模板), 测距时间 Ranging— Time, 去激活光网络标识 Deactivate— 0NU-ID, 非使能序列号 Disable— Serial— Number。 定时器 T01超时, 0NU丢弃光 网络单元标识 ONU-ID和默认的 Alloc-ID和默认的光网络单元管理控制接口 XGP0N封装模式 端口标识 0MCI XGEM port-ID, 并且进入 02-3态, 保留上行突发帧 BurstFrame模板信息。 当 0NU收到一个绝对值的均衡时延 EqD消息时, 进入 05态。 如果 0LT之前在 SN确认或者早期 0NU的激活过程中已经测试过了 0NU的往返时延 RTD, 那么 0LT可以直接下发一个测距时间 Ranging— Time消息, 这样, 0NU可以直接穿过 04态进入 05态而不经过测距过程。  Ranging status, if 0NU receives a ranging request with a known template, it responds to an XGTC frame with a registered registration PLOAM, ignoring the DBRu flag and GrantSize area during ranging. The 0NU status of the 04 status is as follows: Template Prof i le (upstream burst frame template), ranging time Ranging—Time, deactivate the optical network identifier Deactivate— 0NU-ID, non-enable serial number Disable— Serial—Number. Timer T01 times out, 0NU discards the optical network unit ID ONU-ID and the default Alloc-ID and the default optical network unit management control interface XGP0N encapsulation mode port identifier 0MCI XGEM port-ID, and enters the 02-3 state, retaining the uplink Send frame BurstFrame template information. When the 0NU receives an EQD message with an absolute value of the equalization delay, it enters the 05 state. If the round-trip delay RTD of the 0NU has been tested before the 0LT is confirmed by the SN or during the activation of the early 0NU, the 0LT can directly send a Ranging_Time message, so that the 0NU can directly enter the 05 state. State without going through the ranging process.
(4) 05 - Operation state  (4) 05 - Operation state
运行状态, 此时 0NU处于正常运行状态, 与 0LT之间进行数据通信。  Running state, at this time 0NU is in normal operation, and data communication is performed with 0LT.
( 5) 06 - Intermittent L0DS state  ( 5) 06 - Intermittent L0DS state
中断信号丢失状态, 如果在定时器 T02超时前下行信号丢失 L0DS状态恢复, 那么回到 05状态, 如果 T02超时前没有 L0DS恢复, 那么进入 01态。  If the downlink signal is lost before the timer T02 expires, the L0DS state is restored, then it returns to the 05 state. If there is no L0DS recovery before T02 expires, it enters the 01 state.
(6) 07 - Emergency Stop state  (6) 07 - Emergency Stop state
紧急停止状态, 0NU收到不使能序列号 Disable SN消息 (使能不使能字段配置为不使 能), 关闭发送光, 传输 TC层的配置参数包括: 光网络单元标识 0NU-ID, 所有的分配标识 Alloc-ID, 默认的 XGEM Port-ID, burst模板, EqD全部丢弃。 在 07态, 0NU保持下行同步, 解析下行 PL0AM消息, 禁止下行转发数据和上行发送数据。 当重新使能后, 0LT发送非使能 序列号 Disable SN消息 ("使能不使能"字段配置为使能), 0NU应该进入 01态并且重新上 线。 当 07态 0NU重启的时候, 0NU应该保持在 07态。 定时器 T01 Ranging timer为测距超时定时器, 保证 ONU不能在测距状态太长的时间, 标准建议是 10秒, 在 05状态将停止测距状态超时定时器; 定时器 T02 L0DS timer为 下行 信号丢失 (Loss of Downstream Signal , LODS) 超时定时器, 保证 ONU不处于 06态太长的 时间, 标准建议的 06态的时间是 100ms。 In the emergency stop state, the 0NU receives the disable serial number Disable SN message (enables the disable enable field to be disabled), turns off the transmit light, and transmits the configuration parameters of the TC layer including: Optical network unit identifier 0NU-ID, all The allocation ID Alloc-ID, the default XGEM Port-ID, the burst template, and the EqD are all discarded. In the 07 state, the 0NU maintains downlink synchronization, parses the downlink PL0AM message, and prohibits downlink forwarding data and uplink transmission data. When re-enabled, 0LT sends a non-enable serial number Disable SN message ("Enable Disable" field is enabled), 0NU should enter the 01 state and go online again. When the 07 state 0NU is restarted, 0NU should remain in the 07 state. The timer T01 Ranging timer is the ranging timeout timer. The ONU can't be in the ranging state for too long. The standard recommendation is 10 seconds. In the 05 state, the ranging state timeout timer will be stopped. The timer T02 L0DS timer is the downlink signal. Loss of Downstream Signal (LODS) timeout timer ensures that the ONU is not in the 06 state for too long. The standard recommended 06 state time is 100ms.
下面结合图 2的 0NU状态图, 对图 3所示的本发明实施例提供的一种无源光网络系统的 数据通信方法的具体方法流程作详细介绍, 本发明实施例的方法可以包括如下步骤:  The specific method flow of the data communication method of the passive optical network system provided by the embodiment of the present invention shown in FIG. 3 is described in detail below with reference to the ONU state diagram of FIG. 2, and the method of the embodiment of the present invention may include the following steps. :
步骤 S302、 当 0LT与 0NU之间的光纤出现故障, 0LT检测到信号丢失 L0S告警, 启动切 换流程, 所述 0LT从第一 0LT端口切换到第二 0LT端口, 并将所有 0NU切换到第二 0LT端口上。  Step S302: When the optical fiber between 0LT and ONU is faulty, 0LT detects a signal loss L0S alarm, starts a handover process, and the 0LT switches from the first 0LT port to the second 0LT port, and switches all 0NUs to the second 0LT. On the port.
进一步地, 切换前, 第一 0LT端口没有上行光信号, 则所述 0LT判断进入 TYPE B保护流 程, 即进行主备倒换, 将第一 0LT端口切换到第二 0LT端口, 然后将所有的 0NU切换到第二 0LT端口上。  Further, before the switching, the first 0LT port does not have an uplink optical signal, and the 0LT determines to enter the TYPE B protection process, that is, performs an active/standby switchover, switches the first 0LT port to the second 0LT port, and then switches all the ONUs. Go to the second 0LT port.
步骤 S304、 0NU检测到 LODS告警后, 该 0NU由正常的 Operation State切换到 Intermittent LODS State状态, 停止发送上行数据。  After detecting the LODS alarm, the 0NU is switched from the normal Operation State to the Intermittent LODS State state, and the uplink data is stopped.
此步骤中的 0NU可以为至少一个 0NU检测到 L0DS, 该 0NU从 05态转入 06态, 其它 0NU也分 别进行类似操作 (见图 4所示)。  The 0NU in this step can detect L0DS for at least one 0NU, the 0NU transitions from the 05 state to the 06 state, and the other 0NUs perform similar operations (see Figure 4).
步骤 S306、 第二 0LT端口的下行发光 (不分配带宽), 关闭所有上行带宽, 等待一段时 间后, 0NU从 Intermittent LODS State进入到 Operation State。  Step S306: The downlink illumination of the second 0LT port (no bandwidth allocated), all the uplink bandwidth is turned off, and after waiting for a period of time, the 0NU enters the Operation State from the Intermittent LODS State.
根据图 2的 ONU状态图,当任意一个 0NU检测到 LODS告警后,就进入到 06状态,并启动 T02 定时器, 如果 TO2定时器未超时前检测到 L0DS告警恢复, 则该 0NU直接跳转到 05状态, 若定 时器超时仍未恢复, 则进入 01态。  According to the ONU state diagram of FIG. 2, when any ONU detects the LODS alarm, it enters the 06 state and starts the T02 timer. If the LO2 alarm is detected before the TO2 timer expires, the ONU jumps directly to 05 state, if the timer has not recovered after the timeout, it enters the 01 state.
步骤 S308、 0LT从进入到 Operation State的 0NU中选择至少一个 0NU, 发送下行帧给所 述至少一个 0NU, 所述下行帧指示所述至少一个光网络单元采用第一前导发送上行帧, 其 中所述第一前导的长度大于用于上行业务传输的第二前导的长度。  Step S308, 0LT selects at least one ONU from the ONU that enters the Operation State, and sends a downlink frame to the at least one ONU, where the downlink frame indicates that the at least one optical network unit sends the uplink frame by using the first preamble, where The length of the first preamble is greater than the length of the second preamble for uplink traffic transmission.
这里重新进入 05态的 0NU可以有多个, 也可以为一个, 因为各个 0NU进入 05态的时间是 不相同的, 所以只要有一个 0NU进入 05态, 0LT就可以对 0NU执行步骤 S208, 当然, 0LT也可 以从多个进入 05态的 0NU中选择一个或者多个执行步骤 S208。  Here, the number of 0NUs that re-enter the 05 state can be multiple or one, because the time of each 0NU entering the 05 state is different, so as long as there is a 0NU entering the 05 state, 0LT can perform step S208 on the 0NU, of course, The 0LT may also select one or more of the plurality of ONUs that enter the 05 state to perform step S208.
具体地, 0LT选择至少一个 0NU后, 将下行帧中的 Burst Prof ile字段设置为第一前导, 用于指示被选的 0NU采用使用第一前导 preamble的上行帧。 其中所述 Burst Profile字段在 下行帧的帧头部分, 下面以 XGP0N中的 XGTC帧为例, 详细介绍如何将 Burst Prof ile字段设 置为长前导, 但是本发明实施例并不局限于 XGP0N系统, 适用于无源光网络系统的任意类 型。 Specifically, after the 0LT selects at least one ONU, the Burst Profile field in the downlink frame is set as the first preamble, and is used to indicate that the selected ONU adopts an uplink frame using the first preamble preamble. The Burst Profile field is in the frame header portion of the downlink frame, and the XGTC frame in the XGP0N is taken as an example to describe how to set the Burst Prof ile field. The long preamble is set, but the embodiment of the present invention is not limited to the XGP0N system and is applicable to any type of passive optical network system.
下面以 XG— P0N的 XGTC帧为例, 详细描述 XGTC的帧结构, 如图 4所示, 图 4为下行 XGTC 帧的帧结构示意图。  The XGTC frame of the XG-P0N is taken as an example to describe the frame structure of the XGTC in detail. As shown in Figure 4, Figure 4 is a schematic diagram of the frame structure of the downlink XGTC frame.
下行 XGTC帧有 135432字节, 包括: XGTC帧头和 XGTC净荷 payload, 所述 XGTC header包 括: HLend, 用于表征 BWmap的个数和 PLOAM的个数; 带宽映射 BWmap和 PL0AMd。 具体 BWmap 结构如图 5所示。 一  The downlink XGTC frame has 135,432 bytes, including: an XGTC frame header and an XGTC payload. The XGTC header includes: HLend, which is used to represent the number of BWmaps and the number of PLOAMs; and the bandwidth mappings BWmap and PL0AMd. The specific BWmap structure is shown in Figure 5. One
图 5为 BWmap结构示意图, BWmap包括: 分配结构 Allocation Structure, 该分配结构 的个数随着 N的变化而变化, 具体包括: 上行突发 (帧) 模板 Burst Profile, 2个 bits , 用于指示 ONU采用哪种前导码的上行帧, 或者为指示 0NU采用哪种帧头的上行帧 (这里上行 帧即为上行突发帧), 一般 Burst Profile包括: 第一前导 (也可以称为长帧头或长前导) 和第二前导(也可以称为长帧头或长前导和短帧头),其中第一前导用于 0LT注册发现, 即为 FIG. 5 is a schematic diagram of a BWmap structure. The BWmap includes: an allocation structure, an Allocation Structure, and the number of the allocation structure varies with N, including: an uplink burst (frame) template Burst Profile, 2 bits, used to indicate an ONU The uplink frame of which preamble is used, or the uplink frame indicating which frame header is used by the ONU (where the uplink frame is the uplink burst frame), the general Burst Profile includes: a first preamble (also referred to as a long frame header or Long preamble) and second preamble (also known as long frame header or long preamble and short frame header), where the first preamble is used for 0LT registration discovery, ie
0NU进入测距状态即 04态时使用的前导; 其长度比第二前导的长度 (字节数 Bite ) 长, 一 般至少大于或者等于 8bits。 第二前导用于正常通信或者进行正常上行业务传输时使用的 前导, 即 0NU处于 05态时使用的前导。 所述 Allocation Structure还包括: 分配标识0NU enters the leading state used in the ranging state, ie, the 04 state; its length is longer than the length of the second preamble (bytes Bite), and is generally at least equal to or greater than 8 bits. The second preamble is used for normal communication or for the preamble used for normal uplink traffic transmission, that is, the preamble used when the 0NU is in the 05 state. The Allocation Structure further includes: an allocation identifier
Alloc-ID, 4个 bits, 用于标识 0LT给 0NU分配的上行带宽; 标志位 Flags, 2个 bits; 开始 时间 Start Time, 16个 bits; 带宽授权长度 GrantSize, 16个 bits; 功率管理标识 FWI, 1 个 bit; Hlend结构的错误检测和纠正编码 HEC, 13bits。 Alloc-ID, 4 bits, used to identify the upstream bandwidth allocated by the 0LT to the 0NU; Flags Flags, 2 bits; Start Time, 16 bits; Bandwidth Grant Length, GrantSize, 16 bits; Power Management Indicator FWI, 1 bit; Hlend structure error detection and correction coding HEC, 13bits.
具体使用过程如下:  The specific use process is as follows:
例如 0NU在上线过程中已经记录了多个突发 (帧) 模板 Burst Profile, 当收到 0LT发 送的下行帧后,保存该模板。 0NU根据下行的 PL0AM消息解析所述下行帧,例如 0NU收到 PL0AM 消息 "0 PP"为 "00", 表示前导 (也可以为前导码) 为第一前导, 其中前导码为 32字节, 定界符为 4字节; 若 0NU收到 PL0AM消息 " 1 PP"为 "01 ", 表示前导码为第二前导, 前导码 为 4字节, 定界符 4个字节。 当 0LT进行主备倒换后, 0LT在下行帧中将 Burst Profile设置 为第一前导, 所述 0NU则通过 PL0AM消息定义的 "00" 的上行帧结构, 使用 32字节的第一前 导的上行帧进行发送。  For example, 0NU has recorded multiple burst (frame) templates Burst Profile during the online process, and saves the template after receiving the downlink frame sent by 0LT. The 0NU parses the downlink frame according to the downlink PL0AM message. For example, the ONU receives the PL0AM message "0 PP" as "00", indicating that the preamble (which may also be a preamble) is the first preamble, where the preamble is 32 bytes. The delimiter is 4 bytes; if the 0NU receives the PL0AM message "1 PP" is "01", it indicates that the preamble is the second preamble, the preamble is 4 bytes, and the delimiter is 4 bytes. After the OLT performs the active/standby switchover, the 0LT sets the Burst Profile to the first preamble in the downlink frame, and the ONU uses the uplink frame structure of the "00" defined by the PL0AM message, and uses the 32-byte uplink frame of the first preamble. Send it.
本发明的实施例就是将下行 XGTC帧的帧头中的 Burst Profile字段设置为第一前导(长 帧头), 使得 0NU采用第一前导的上行帧, 便于 0LT接收 0NU发送的上行突发帧后, 可以根据 所述第一前导, 确定切换后接收该上行帧的位置, 从而获得 0NU的 EqD偏差, 实现了 0NU的 重新测距过程, 解决了目前 P0N系统中主备倒换后由于不支持 POPUP消息, 使得 0LT与 0NU之 间的数据通信中断, 提高了用户的满意度。 The embodiment of the present invention sets the Burst Profile field in the frame header of the downlink XGTC frame to the first preamble (long frame header), so that the ONU adopts the uplink frame of the first preamble, so that the 0LT receives the uplink burst frame sent by the ONU. According to the first preamble, the location of the uplink frame after the handover is determined, so that the EqD deviation of the ONU is obtained, and the re-ranging process of the ONU is implemented, which solves the problem that the POPUP message is not supported after the active/standby switchover in the current P0N system. , making 0LT and 0NU Interrupted data communication, increasing user satisfaction.
进一步地, 所述 0LT在发送下行帧前还包括: 生成上行带宽授权消息, 该授权消息包 含指示上行帧的带宽信息和前导码模板信息, 前导码模板信息指示所述至少一个光网络单 元采用第一前导发送上行帧; 将上行带宽授权消息封装到所述下行帧中。  Further, before the sending of the downlink frame, the OLT further includes: generating an uplink bandwidth grant message, where the grant message includes bandwidth information indicating the uplink frame and preamble template information, where the preamble template information indicates that the at least one optical network unit adopts A preamble sends an uplink frame; and an uplink bandwidth grant message is encapsulated into the downlink frame.
步骤 S310、 0LT检测所述至少一个 0NU通过所述第二 0LT发送的包含第一前导的上行 帧, 基于所述包含第一前导的上行帧, 获得所述至少一个光网络单元的均衡时延。  Step S310, 0LT detects that the at least one ONU transmits the uplink frame of the first preamble by using the second OLT, and obtains an equalization delay of the at least one optical network unit based on the uplink frame that includes the first preamble.
步骤 S312、 所述 0LT通过所述第二光线路终端端口将所述均衡时延发送给所述至少一 个光网络单元, 以使所述至少一个光网络单元基于所述均衡时延与所述第二光线路终端端 P进行通信。 所述 0LT基于所述第二光线路终端端口发送的均衡时延, 获得所述多个光网络单元中 其它光网络单元的均衡时延; 将所述其它光网络单元的均衡时延发送给对应的所述其它光 网络单元; 或者,  Step S312, the 0LT sends the equalization delay to the at least one optical network unit by using the second optical line terminal port, so that the at least one optical network unit is based on the equalization delay and the first The second optical line terminal P communicates. The 0LT obtains an equalization delay of the other optical network units in the multiple optical network units based on the equalization delay sent by the second optical line terminal port; and sends the equalization delay of the other optical network unit to the corresponding Said other optical network unit; or
所述 0LT基于所述第二光线路终端端口发送的均衡时延, 获得所述至少一个光网络单 元的均衡时延偏移, 将所述均衡时移偏移发送所述多个光网络单元中的其它光网络单元。  The 0LT obtains an equalization delay offset of the at least one optical network unit based on the equalization delay sent by the second optical line terminal port, and sends the equalization time shift offset to the multiple optical network units. Other optical network units.
其中, 所述 0LT获得所述至少一个光网络单元的均衡时延偏移, 将所述均衡时移偏移 发送所述多个光网络单元中的其它光网络单元具体包括两种方式:  The 0LT obtains an equalization delay offset of the at least one optical network unit, and the equalization time shift is sent to the other optical network units of the multiple optical network units, and specifically includes two modes:
其一为, 所述 0LT根据通过第一发送端口发送给所述至少一个 0NU的第一均衡时延 EqDl , 以及通过第二发送端口发送给所述至少一个 ONU的第二均衡时延 EqD2后, 计算 EqDl 和 EqD2的 EqD偏移, 此时所述 EqD偏移可以估算为从第一 0LT端口切换到第二 0LT端口后各 0NU的 EqD偏差, 根据该 EqD偏差, 进而计算出光网络系统中的其它各 0NU的 EqD, 并将所述 EqD通过第二 0LT端口以单播方式下发给对应的各个 0NU。  The first time is that the 0LT is sent according to the first equalization delay EqD1 sent by the first sending port to the at least one ONU, and after the second equalization delay EqD2 sent by the second sending port to the at least one ONU. Calculating the EqD offset of EqD1 and EqD2. At this time, the EqD offset can be estimated as the EqD deviation of each 0NU after switching from the first 0LT port to the second OLT port, and further calculating the other in the optical network system according to the EqD deviation. Each ENU of the ONU is sent to the corresponding ONU in a unicast manner through the second 0LT port.
其二为, 0LT计算出 EqD偏差后, 以广播方式通过第二 0LT端口下发给光网络系统中的 其它 0NU, 所述其它 ONU根据 EqD偏差, 各自计算出切换后的 EqD, 进而基于所述切换后的 EqD 通过所述第二 0LT端口与所述 0LT进行通信。  The second is that the 0LT calculates the EqD deviation and sends it to the other ONUs in the optical network system through the second 0LT port in a broadcast manner, and the other ONUs respectively calculate the switched EqD according to the EqD deviation, and then based on the The switched EqD communicates with the 0LT through the second OLT port.
其中以单播方式发送各 0NU的 EqD方式, 可以通过各 0NU返回的消息, 确认是否此次主 备倒换是否切换成功。  In the unicast mode, each 0NU EqD mode is sent, and the message returned by each 0NU can be used to confirm whether the active/standby switchover is successful.
另外, 当 0NU检测到 TYPE B保护倒换后, 立即清除原 P0N口的 EqD值, 恢复为默认值 0。 使倒换后的测距与 0NU正常上线时的测距处理流程保持一致。  In addition, when 0NU detects the TYPE B protection switching, it immediately clears the EqD value of the original P0N port and returns to the default value of 0. The distance measurement after the switching is consistent with the ranging processing flow when the 0NU is normally online.
本发明实施例提供的一种光网络系统中数据通信的方法, 当局端和多个光网络单元的 通信从第一光线路终端端口切换到第二光线路终端端口后, 通过所述第二光线路终端端口 向至少一个光网络单元发送下行帧, 所述下行帧指示所述至少一个光网络单元采用第一前 导发送上行帧, 其中所述第一前导的长度大于用于上行业务传输的第二前导的长度; 检测 所述至少一个光网络单元通过所述第二光线路终端端口发送的包含第一前导的上行帧, 基 于所述包含第一前导的上行帧, 获得所述至少一个光网络单元的均衡时延; 通过所述第二 光线路终端端口将所述均衡时延发送给所述至少一个光网络单元, 以使所述至少一个光网 络单元基于所述均衡时延与所述第二光线路终端端口进行通信, 实现在切换后光网络系统 即使不支持 POPUP消息也能够进行重新测距状态, 进而快速恢复切换后 0LT与 0NU之间的数 据通信, 避免了切换后对正常业务通信的影响, 减少了切换延时, 提高了用户的满意程度, 尤其是对 XGP0N系统而言, 进一步解决了 XGP0N系统中 TYPE B主备倒换的问题。 The method for data communication in an optical network system provided by the embodiment of the present invention, after the communication between the authority end and the plurality of optical network units is switched from the first optical line terminal port to the second optical line terminal port, the second light is passed. Line terminal port Sending, to the at least one optical network unit, a downlink frame, where the downlink frame indicates that the at least one optical network unit sends the uplink frame by using the first preamble, where the length of the first preamble is greater than the length of the second preamble used for uplink service transmission Detecting, by the at least one optical network unit, an uplink frame that includes the first preamble sent by the second optical line terminal port, and obtaining an equalization time of the at least one optical network unit based on the uplink frame that includes the first preamble Transmitting, by the second optical line termination port, the equalization delay to the at least one optical network unit, so that the at least one optical network unit is based on the equalization delay and the second optical line termination The port communicates, so that the optical network system can perform the re-ranging state even if the POPUP message is not supported after the handover, thereby quickly recovering the data communication between the 0LT and the 0NU after the handover, thereby avoiding the impact on the normal service communication after the handover, and reducing The switching delay has improved the user's satisfaction, especially for the XGP0N system, which further solved the XGP. The problem of TYPE B active/standby switchover in the 0N system.
图 6为本发明实施例提供的另一种光网络系统的数据通信方法流程图。 如图 6所示, 本 发明实施例的方法可以包括如下步骤:  FIG. 6 is a flowchart of a data communication method of another optical network system according to an embodiment of the present invention. As shown in FIG. 6, the method in the embodiment of the present invention may include the following steps:
所述光网络系统的局端提供第一光线路终端端口和第二光线路终端端口, 每一个光线 路终端端口连接多个光网络单元, 所述方法包括:  The central end of the optical network system provides a first optical line terminal port and a second optical line terminal port, and each of the optical path terminal ports is connected to multiple optical network units, and the method includes:
步骤 S602、 当局端和多个光网络单元的通信从第一光线路终端端口切换到第二光线路 终端端口后, 0LT通过所述第二光线路终端端口发送去激活消息或者发送携带重新分配的 光网络单元标识的消息给至少一个光网络单元, 使得所述至少一个光网络单元下线。  Step S602: After the communication between the authority end and the plurality of optical network units is switched from the first optical line terminal port to the second optical line terminal port, the 0LT sends a deactivation message or sends a redistribution message through the second optical line terminal port. The message identified by the optical network unit is provided to the at least one optical network unit such that the at least one optical network unit is offline.
步骤 S604、对所述至少一个光网络单元进行重新测距,获得所述至少一个光网络单元 的第一均衡时延。  Step S604: Perform re-ranging on the at least one optical network unit to obtain a first equalization delay of the at least one optical network unit.
步骤 S606、 0LT对所述光网络单元进行重新测距, 获得所述光网络单元的第一均衡时 延。  Steps S606 and 0LT perform re-ranging on the optical network unit to obtain a first equalization delay of the optical network unit.
步骤 S608、 0LT通过所述第二光线路终端端口将所述均衡时延发送给所述至少一个光 网络单元, 以使所述至少一个光网络单元基于所述均衡时延与所述第二光线路终端端口进 行通信。  Steps S608, 0LT send the equalization delay to the at least one optical network unit by using the second optical line terminal port, so that the at least one optical network unit is based on the equalization delay and the second light. The line terminal port communicates.
所述 0LT基于所述第二光线路终端端口发送的均衡时延, 获得所述多个光网络单元中 其它光网络单元的均衡时延; 将所述其它光网络单元的均衡时延发送给对应的所述其它光 网络单元; 或者,  The 0LT obtains an equalization delay of the other optical network units in the multiple optical network units based on the equalization delay sent by the second optical line terminal port; and sends the equalization delay of the other optical network unit to the corresponding Said other optical network unit; or
所述 0LT基于所述第二光线路终端端口发送的均衡时延, 获得所述至少一个光网络单 元的均衡时延偏移, 将所述均衡时移偏移发送所述多个光网络单元中的其它光网络单元。  The 0LT obtains an equalization delay offset of the at least one optical network unit based on the equalization delay sent by the second optical line terminal port, and sends the equalization time shift offset to the multiple optical network units. Other optical network units.
其中, 所述 0LT获得所述至少一个光网络单元的均衡时延偏移, 将所述均衡时移偏移 发送所述多个光网络单元中的其它光网络单元具体包括两种方式: The 0LT obtains an equalization delay offset of the at least one optical network unit, and shifts the equalization time shift Sending the other optical network units of the multiple optical network units specifically includes two ways:
其一为, 所述 0LT根据通过第一发送端口发送给所述至少一个 0NU的第一均衡时延 EqDl , 以及通过第二发送端口发送给所述至少一个 ONU的第二均衡时延 EqD2后, 计算 EqDl 和 EqD2的 EqD偏移, 此时所述 EqD偏移可以估算为从第一 0LT端口切换到第二 0LT端口后各 0NU的 EqD偏差, 根据该 EqD偏差, 进而计算出光网络系统中的其它各 0NU的 EqD, 并将所述 EqD通过第二 0LT端口以单播方式下发给对应的各个 0NU。  The first time is that the 0LT is sent according to the first equalization delay EqD1 sent by the first sending port to the at least one ONU, and after the second equalization delay EqD2 sent by the second sending port to the at least one ONU. Calculating the EqD offset of EqD1 and EqD2. At this time, the EqD offset can be estimated as the EqD deviation of each 0NU after switching from the first 0LT port to the second OLT port, and further calculating the other in the optical network system according to the EqD deviation. Each ENU of the ONU is sent to the corresponding ONU in a unicast manner through the second 0LT port.
其二为, 0LT计算出 EqD偏差后, 以广播方式通过第二 0LT端口下发给光网络系统中的 其它 0NU, 所述其它 ONU根据 EqD偏差, 各自计算出切换后的 EqD, 进而基于所述切换后的 EqD 通过所述第二 0LT端口与所述 0LT进行通信。  The second is that the 0LT calculates the EqD deviation and sends it to the other ONUs in the optical network system through the second 0LT port in a broadcast manner, and the other ONUs respectively calculate the switched EqD according to the EqD deviation, and then based on the The switched EqD communicates with the 0LT through the second OLT port.
其中以单播方式发送各 0NU的 EqD方式, 可以通过各 0NU返回的消息, 确认是否此次主 备倒换是否切换成功。  In the unicast mode, each 0NU EqD mode is sent, and the message returned by each 0NU can be used to confirm whether the active/standby switchover is successful.
另外, 当 0NU检测到 TYPE B保护倒换后, 立即清除原 P0N口的 EqD值, 恢复为默认值 0。 使倒换后的测距与 0NU正常上线时的测距处理流程保持一致。  In addition, when 0NU detects the TYPE B protection switching, it immediately clears the EqD value of the original P0N port and returns to the default value of 0. The distance measurement after the switching is consistent with the ranging processing flow when the 0NU is normally online.
与上述方法对应的用户终端侧即 0NU侧采用的方法包括:  The method adopted on the user terminal side corresponding to the above method, that is, the 0NU side includes:
0NU基于第一均衡时延和第一光线路终端端口通信, 以进行业务传输;  The 0NU communicates with the first optical line terminal port based on the first equalization delay to perform service transmission;
从第一光线路终端端口切换到第二光线路终端端口, 接收来自第二光线路终端端口的 去激活消息或者携带重新分配的光网络单元标识的消息;  Switching from the first optical line termination port to the second optical line termination port, receiving a deactivation message from the second optical line termination port or carrying a message of the reassigned optical network unit identifier;
0NU根据所述去激活消息, 进行下线;  0NU performs offline according to the deactivation message;
0NU重新进行测距后, 接收来自第二光线路终端端口的第二均衡时延;  After the 0NU re-measures, receiving the second equalization delay from the second optical line terminal port;
0NU基于所述第二均衡时延和第二光线路终端端口通信以进行业务传输。  The 0NU communicates with the second optical line terminal port based on the second equalization delay for traffic transmission.
本发明实施例提供的另一种光网络系统中数据通信的方法, 当局端和多个光网络单元 的通信从第一光线路终端端口切换到第二光线路终端端口后, 通过所述第二光线路终端端 口发送去激活消息或者发送携带重新分配的光网络单元标识的消息给至少一个光网络单 元, 使得所述至少一个光网络单元下线; 对所述至少一个光网络单元进行重新测距, 获得 所述至少一个光网络单元的第一均衡时延; 通过所述第二光线路终端端口将所述均衡时延 发送给所述至少一个光网络单元, 以使所述至少一个光网络单元基于所述均衡时延与所述 第二光线路终端端口进行通信, 实现在切换后光网络系统即使不支持 POPUP消息也能够进 行重新测距状态, 进而快速恢复切换后 0LT与 0NU之间的数据通信, 避免了切换后对正常业 务通信的影响, 减少了切换延时, 提高了用户的满意程度。 如图 7所示, 图 7为本发明实施例提供的一种光网络系统, 所述系统包括: 第一光线路 终端端口和第二光线路终端端口, 0LT通过每一个光线路终端端口连接多个 0NU; Another method for data communication in an optical network system according to an embodiment of the present invention, after the communication between the authority end and the plurality of optical network units is switched from the first optical line terminal port to the second optical line terminal port, the second The optical line terminal port sends a deactivation message or sends a message carrying the reassigned optical network unit identifier to the at least one optical network unit, such that the at least one optical network unit goes offline; re-ranging the at least one optical network unit Obtaining a first equalization delay of the at least one optical network unit; transmitting, by the second optical line termination port, the equalization delay to the at least one optical network unit, to enable the at least one optical network unit Performing communication with the second optical line terminal port based on the equalization delay, so that the optical network system can perform the re-ranging state even after the handover does not support the POPUP message, thereby quickly recovering the data between the 0LT and the ONU after the handover. Communication, avoiding the impact on normal service communication after switching, reducing the switching delay and improving the user's fullness Degree. As shown in FIG. 7, FIG. 7 is an optical network system according to an embodiment of the present invention. The system includes: a first optical line terminal port and a second optical line terminal port, where 0LT is connected through each optical line terminal port. 0NU;
所述光线路终端, 用于当光线路终端和多个光网络单元的通信从第一光线路终端端口 切换到第二光线路终端端口后, 通过所述第二光线路终端端口向至少一个光网络单元发送 下行帧, 所述下行帧指示所述至少一个光网络单元采用第一前导发送上行帧, 其中所述第 一前导的长度大于用于上行业务传输的第二前导的长度; 检测所述至少一个光网络单元通 过所述第二光线路终端端口发送的包含第一前导的上行帧, 基于所述包含第一前导的上行 帧, 获得所述至少一个光网络单元的均衡时延; 通过所述第二光线路终端端口将所述均衡 时延发送给所述至少一个光网络单元, 以使所述至少一个光网络单元基于所述均衡时延与 所述第二光线路终端端口进行通信。  The optical line terminal is configured to: when the communication between the optical line terminal and the plurality of optical network units is switched from the first optical line terminal port to the second optical line terminal port, to the at least one light through the second optical line terminal port The network unit sends a downlink frame, where the downlink frame indicates that the at least one optical network unit uses the first preamble to send an uplink frame, where the length of the first preamble is greater than the length of the second preamble used for uplink service transmission; Obtaining an equalization delay of the at least one optical network unit based on the uplink frame including the first preamble by using the uplink frame that includes the first preamble sent by the second optical line terminal port by the at least one optical network unit; The second optical line terminal port transmits the equalization delay to the at least one optical network unit, so that the at least one optical network unit communicates with the second optical line terminal port based on the equalization delay.
所述至少一个光网络单元, 用于基于第一均衡时延和第一光线路终端端口通信, 以进 行业务传输; 从第一光线路终端端口切换到第二光线路终端端口, 接收来自第二光线路终 端端口的下行帧, 所述下行帧指示上行帧采用第一前导, 其中所述第一前导的长度大于用 于上行业务传输的第二前导的长度; 向第二光线路终端端口发送包含该第一前导的上行 帧; 接收来自第二光线路终端端口的第二均衡时延; 基于所述第二均衡时延和第二光线路 终端端口通信以进行业务传输。  The at least one optical network unit is configured to perform traffic transmission based on the first equalization delay and the first optical line terminal port; switch from the first optical line terminal port to the second optical line terminal port, and receive from the second a downlink frame of the optical line terminal port, where the downlink frame indicates that the uplink frame adopts a first preamble, wherein a length of the first preamble is greater than a length of a second preamble used for uplink service transmission; and sending, to the second optical line terminal port, An uplink frame of the first preamble; receiving a second equalization delay from the second optical line termination port; and performing traffic transmission based on the second equalization delay and the second optical line termination port communication.
所述光线路终端, 还用于生成上行带宽授权消息, 该授权消息包含指示上行帧的带宽 信息和前导码模板信息, 前导码模板信息指示所述至少一个光网络单元采用第一前导发送 上行帧; 将上行带宽授权消息封装到所述下行帧中。  The optical line terminal is further configured to generate an uplink bandwidth grant message, where the authorization message includes bandwidth information indicating the uplink frame and preamble template information, where the preamble template information indicates that the at least one optical network unit sends the uplink frame by using the first preamble. Encapsulating an upstream bandwidth grant message into the downstream frame.
所述光线路终端, 还用于基于所述第二光线路终端端口发送的均衡时延, 获得所述多 个光网络单元中其它光网络单元的均衡时延; 将所述其它光网络单元的均衡时延发送给对 应的所述其它光网络单元。  The optical line terminal is further configured to obtain, according to the equalization delay sent by the second optical line terminal port, an equalization delay of the other optical network units in the multiple optical network units; and the other optical network unit The equalization delay is sent to the corresponding other optical network unit.
所述光线路终端, 还用于基于所述第二光线路终端端口发送的均衡时延, 获得所述至 少一个光网络单元的均衡时延偏移, 将所述均衡时移偏移发送所述多个光网络单元中的其 它光网络单元。  The optical line terminal is further configured to obtain an equalization delay offset of the at least one optical network unit based on an equalization delay sent by the second optical line terminal port, and send the equalization time shift offset to the Other optical network units of the plurality of optical network units.
在 0LT和 0NU之间还包括光分配网络 0DN, 所述 0DN包括: 主干光纤和分支光纤。  Also included between 0LT and 0NU is an optical distribution network 0DN, which includes: a backbone fiber and a branch fiber.
本发明实施例还提供另一种光网络系统, 所述系统包括: 第一光线路终端端口和第二 光线路终端端口, 光线路终端通过每一个光线路终端端口连接多个光网络单元;  The embodiment of the present invention further provides another optical network system, where the system includes: a first optical line terminal port and a second optical line terminal port, where the optical line terminal connects the plurality of optical network units through each optical line terminal port;
所述光线路终端, 用于当光线路终端和多个光网络单元的通信从第一光线路终端端口 切换到第二光线路终端端口后, 通过所述第二光线路终端端口发送去激活消息或者发送携 带重新分配的光网络单元标识的消息给至少一个光网络单元, 使得所述至少一个光网络单 元下线; 对所述至少一个光网络单元进行重新测距, 获得所述至少一个光网络单元的第一 均衡时延; 通过所述第二光线路终端端口将所述均衡时延发送给所述至少一个光网络单 元, 以使所述至少一个光网络单元基于所述均衡时延与所述第二光线路终端端口进行通 信; The optical line terminal is configured to communicate from an optical line terminal and a plurality of optical network units from a first optical line terminal port After switching to the second optical line terminal port, sending a deactivation message through the second optical line terminal port or sending a message carrying the reassigned optical network unit identifier to the at least one optical network unit, so that the at least one optical network unit Performing re-ranging on the at least one optical network unit to obtain a first equalization delay of the at least one optical network unit; and transmitting, by the second optical line termination port, the equalization delay to the At least one optical network unit, such that the at least one optical network unit communicates with the second optical line termination port based on the equalization delay;
所述光网络单元, 用于基于第一均衡时延和第一光线路终端端口通信, 以进行业务传 输; 从第一光线路终端端口切换到第二光线路终端端口, 接收来自第二光线路终端端口的 去激活消息或者携带重新分配的光网络单元标识的消息;根据所述去激活消息,进行下线; 重新进行测距后, 接收来自第二光线路终端端口的第二均衡时延; 基于所述第二均衡时延 和第二光线路终端端口通信以进行业务传输。  The optical network unit is configured to perform traffic transmission based on the first equalization delay and the first optical line terminal port; switch from the first optical line terminal port to the second optical line terminal port, and receive the second optical line a deactivation message of the terminal port or a message carrying the reassigned optical network unit identifier; performing a downlink according to the deactivation message; and after receiving the ranging, receiving a second equalization delay from the second optical line terminal port; And performing traffic transmission based on the second equalization delay and the second optical line terminal port communication.
所述光线路终端, 还用于基于所述第二光线路终端端口发送的均衡时延, 获得所述多 个光网络单元中其它光网络单元的均衡时延; 将所述其它光网络单元的均衡时延发送给对 应的所述其它光网络单元。  The optical line terminal is further configured to obtain, according to the equalization delay sent by the second optical line terminal port, an equalization delay of the other optical network units in the multiple optical network units; and the other optical network unit The equalization delay is sent to the corresponding other optical network unit.
所述光线路终端, 还用于基于所述第二光线路终端端口发送的均衡时延, 获得所述至 少一个光网络单元的均衡时延偏移, 将所述均衡时移偏移发送所述多个光网络单元中的其 它光网络单元。  The optical line terminal is further configured to obtain an equalization delay offset of the at least one optical network unit based on an equalization delay sent by the second optical line terminal port, and send the equalization time shift offset to the Other optical network units of the plurality of optical network units.
本发明实施例提供的一种光网络系统中数据通信的方法, 系统及光线路终端, 当局端 和多个光网络单元的通信从第一光线路终端端口切换到第二光线路终端端口后, 通过所述 第二光线路终端端口向至少一个光网络单元发送下行帧, 所述下行帧指示所述至少一个光 网络单元采用第一前导发送上行帧, 或者, 发送去激活消息或者发送携带重新分配的光网 络单元标识的消息给至少一个光网络单元, 实现在切换后光网络系统即使不支持 POPUP消 息也能够进行重新测距状态, 进而快速恢复切换后 0LT与 0NU之间的数据通信, 避免了切换 后对正常业务通信的影响, 减少了切换延时, 提高了用户的满意程度。  The method for data communication in an optical network system provided by the embodiment of the present invention, the system and the optical line terminal, after the communication between the authority end and the plurality of optical network units is switched from the first optical line terminal port to the second optical line terminal port, Sending, by the second optical line terminal port, a downlink frame to the at least one optical network unit, where the downlink frame indicates that the at least one optical network unit sends the uplink frame by using the first preamble, or sends a deactivation message or sends a bearer reassignment The message identified by the optical network unit is sent to at least one optical network unit, so that after the switching, the optical network system can perform the re-ranging state even if the POPUP message is not supported, thereby quickly recovering the data communication between the 0LT and the 0NU after the switching, thereby avoiding The impact on normal service communication after switching reduces the handover delay and improves user satisfaction.
如图 8所示, 本发明实施例提供一种光线路终端, 所述光线路终端包括:  As shown in FIG. 8, an embodiment of the present invention provides an optical line terminal, where the optical line terminal includes:
第一发送单元 802, 用于当所述光线路终端和多个光网络单元的通信从第一光线路终 端端口切换到第二光线路终端端口后, 通过所述第二光线路终端端口向至少一个光网络单 元发送下行帧, 所述下行帧指示所述至少一个光网络单元采用第一前导发送上行帧, 其中 所述第一前导的长度大于用于上行业务传输的第二前导的长度; 第一获取单元 804, 用于检测所述至少一个光网络单元通过所述第二光线路终端端口 发送的包含第一前导的上行帧; 基于所述包含第一前导的上行帧, 获得所述至少一个光网 络单元的均衡时延; a first sending unit 802, configured to: when the communication between the optical line terminal and the plurality of optical network units is switched from the first optical line terminal port to the second optical line terminal port, to the at least the second optical line terminal port An optical network unit sends a downlink frame, where the downlink frame indicates that the at least one optical network unit uses the first preamble to send an uplink frame, where the length of the first preamble is greater than the length of the second preamble used for uplink service transmission; The first obtaining unit 804 is configured to detect, by the at least one optical network unit, an uplink frame that includes the first preamble that is sent by using the second optical line terminal port, and obtain the at least the uplink frame that includes the first preamble. Equilibrium delay of an optical network unit;
第二发送单元 806, 用于通过所述第二光线路终端端口将所述至少一个光网络单元的 均衡时延发送给所述至少一个光网络单元, 以使所述至少一个光网络单元基于所述均衡时 延与所述第二光线路终端端口进行通信。  a second sending unit 806, configured to send, by using the second optical line terminal port, an equalization delay of the at least one optical network unit to the at least one optical network unit, so that the at least one optical network unit is based on The equalization delay communicates with the second optical line termination port.
所述光线路终端还包括:  The optical line terminal further includes:
带宽授权单元 808, 与所述第一发送单元连接, 用于生成上行带宽授权消息, 该授权 消息包含指示上行帧的带宽信息和前导码模板信息, 前导码模板信息指示所述至少一个光 网络单元采用第一前导发送上行帧; 将上行带宽授权消息封装到所述下行帧中。  The bandwidth authorization unit 808 is connected to the first sending unit, and configured to generate an uplink bandwidth grant message, where the authorization message includes bandwidth information indicating the uplink frame and preamble template information, where the preamble template information indicates the at least one optical network unit The first preamble is used to send an uplink frame; and the uplink bandwidth grant message is encapsulated into the downlink frame.
第二获取单元 810, 用于基于所述第二光线路终端端口发送的均衡时延, 获得所述多 个光网络单元中其它光网络单元的均衡时延;  The second obtaining unit 810 is configured to obtain, according to the equalization delay sent by the second optical line terminal port, an equalization delay of the other optical network units in the multiple optical network units.
所述第二发送单元, 还用于将所述其它光网络单元的均衡时延发送给对应的所述其它 光网络单元。  The second sending unit is further configured to send the equalization delay of the other optical network unit to the corresponding other optical network unit.
所述光线路终端还包括:  The optical line terminal further includes:
第三获取单元 812, 用于基于所述第二光线路终端端口发送的均衡时延, 获得所述至 少一个光网络单元的均衡时延偏移;  The third obtaining unit 812 is configured to obtain, according to the equalization delay sent by the second optical line terminal port, an equalization delay offset of the at least one optical network unit.
所述第二发送单元, 还用于将所述均衡时移偏移发送所述多个光网络单元中的其它光 网络单元。  The second sending unit is further configured to send the equalization time shift offset to other optical network units in the multiple optical network units.
本发明实施例还提供一种光网络单元, 所述光网络单元包括:  An embodiment of the present invention further provides an optical network unit, where the optical network unit includes:
第一接收单元 902, 用于基于第一均衡时延和第一光线路终端端口通信, 以进行业务 传输; 从第一光线路终端端口切换到第二光线路终端端口, 接收来自第二光线路终端端口 的下行帧, 所述下行帧指示上行帧采用第一前导, 其中所述第一前导的长度大于用于上行 业务传输的第二前导的长度;  The first receiving unit 902 is configured to perform communication according to the first equalization delay and the first optical line terminal port for communication; switch from the first optical line terminal port to the second optical line terminal port, and receive the second optical line. a downlink frame of the terminal port, where the downlink frame indicates that the uplink frame adopts a first preamble, where the length of the first preamble is greater than the length of the second preamble used for uplink service transmission;
第五发送单元 904, 用于向第二光线路终端端口发送包含该第一前导的上行帧; 第二接收单元 906, 用于接收来自第二光线路终端端口的第二均衡时延; 基于所述第 二均衡时延和第二光线路终端端口通信以进行业务传输。  The fifth sending unit 904 is configured to send, to the second optical line terminal port, an uplink frame that includes the first preamble; the second receiving unit 906 is configured to receive a second equalization delay from the second optical line terminal port; The second equalization delay and the second optical line terminal port communicate for service transmission.
本发明实施例提供的一种光线路终端, 当局端和多个光网络单元的通信从第一光线路 终端端口切换到第二光线路终端端口后, 通过所述第二光线路终端端口向至少一个光网络 单元发送下行帧, 所述下行帧指示所述至少一个光网络单元采用第一前导发送上行帧, 其 中所述第一前导的长度大于用于上行业务传输的第二前导的长度; 检测所述至少一个光网 络单元通过所述第二光线路终端端口发送的包含第一前导的上行帧, 基于所述包含第一前 导的上行帧, 获得所述至少一个光网络单元的均衡时延; 通过所述第二光线路终端端口将 所述均衡时延发送给所述至少一个光网络单元, 以使所述至少一个光网络单元基于所述均 衡时延与所述第二光线路终端端口进行通信, 实现在切换后光网络系统即使不支持 POPUP 消息也能够进行重新测距状态, 进而快速恢复切换后 0LT与 0NU之间的数据通信, 避免了切 换后对正常业务通信的影响, 减少了切换延时, 提高了用户的满意程度, 尤其是对 XGP0N 系统而言, 进一步解决了 XGP0N系统中 TYPE B主备倒换的问题。 An optical line terminal according to an embodiment of the present invention, after the communication between the authority end and the plurality of optical network units is switched from the first optical line terminal port to the second optical line terminal port, the second optical line terminal port is at least An optical network The unit sends a downlink frame, where the downlink frame indicates that the at least one optical network unit uses the first preamble to send an uplink frame, where the length of the first preamble is greater than the length of the second preamble used for uplink service transmission; Obtaining an equalization delay of the at least one optical network unit based on the uplink frame that includes the first preamble by using an uplink frame that includes the first preamble sent by the second optical line terminal port; Transmitting, by the second optical line terminal port, the equalization delay to the at least one optical network unit, so that the at least one optical network unit communicates with the second optical line terminal port based on the equalization delay After the switchover, the optical network system can perform the re-range state even if the POPUP message is not supported, thereby quickly recovering the data communication between the 0LT and the 0NU after the handover, thereby avoiding the impact on the normal service communication after the handover, and reducing the handover delay. Improve user satisfaction, especially for XGP0N system, further solve the TYPE B master in XGP0N system Switching problem.
如图 10所示, 本发明实施例还提供了另一种光线路终端, 所述光线路终端包括: 第三发送单元 1002, 用于当所述光线路终端和多个光网络单元的通信从第一光线路终 端端口切换到第二光线路终端端口后, 通过所述第二光线路终端端口发送去激活消息或者 发送携带重新分配的光网络单元标识的消息给至少一个光网络单元, 使得所述至少一个光 网络单元下线;  As shown in FIG. 10, the embodiment of the present invention further provides another optical line terminal, where the optical line terminal includes: a third sending unit 1002, configured to: when the optical line terminal and the plurality of optical network units communicate from After the first optical line terminal port is switched to the second optical line terminal port, sending, by the second optical line terminal port, a deactivation message or sending a message carrying the reassigned optical network unit identifier to the at least one optical network unit, so that Said at least one optical network unit is offline;
第四获取单元 1004, 用于对所述至少一个光网络单元进行重新测距, 获得所述至少一 个光网络单元的第一均衡时延;  The fourth obtaining unit 1004 is configured to perform re-ranging on the at least one optical network unit to obtain a first equalization delay of the at least one optical network unit.
第四发送单元 1006, 用于通过所述第二光线路终端端口将所述均衡时延发送给所述至 少一个光网络单元, 以使所述至少一个光网络单元基于所述均衡时延与所述第二光线路终 端端口进行通信。  The fourth sending unit 1006 is configured to send, by using the second optical line terminal port, the equalization delay to the at least one optical network unit, so that the at least one optical network unit is based on the equalization delay and the The second optical line terminal port communicates.
所述光线路终端还包括:  The optical line terminal further includes:
第五获取单元 1008, 用于基于所述第二光线路终端端口发送的均衡时延, 获得所述多 个光网络单元中其它光网络单元的均衡时延;  The fifth obtaining unit 1008 is configured to obtain, according to the equalization delay sent by the second optical line terminal port, an equalization delay of the other optical network units in the multiple optical network units.
所述第四发送单元, 还用于将所述其它光网络单元的均衡时延发送给对应的所述其它 光网络单元。  The fourth sending unit is further configured to send the equalization delay of the other optical network unit to the corresponding other optical network unit.
24、 根据权利要求 22所述的光线路终端, 其特征在于, 所述光线路终端还包括: 第六获取单元 1010, 用于基于所述第二光线路终端端口发送的均衡时延, 获得所述至 少一个光网络单元的均衡时延偏移;  The optical line terminal according to claim 22, wherein the optical line terminal further comprises: a sixth obtaining unit 1010, configured to obtain, according to the equalization delay sent by the second optical line terminal port, Determining an equalization delay offset of at least one optical network unit;
所述第四发送单元, 还用于将所述均衡时延偏移发送所述多个光网络单元中的其它光 网络单元。 本发明实施例提供的另一种光线路终端, 当局端和多个光网络单元的通信从第一光线 路终端端口切换到第二光线路终端端口后, 通过所述第二光线路终端端口发送去激活消息 或者发送携带重新分配的光网络单元标识的消息给至少一个光网络单元, 使得所述至少一 个光网络单元下线; 对所述至少一个光网络单元进行重新测距, 获得所述至少一个光网络 单元的第一均衡时延; 通过所述第二光线路终端端口将所述均衡时延发送给所述至少一个 光网络单元, 以使所述至少一个光网络单元基于所述均衡时延与所述第二光线路终端端口 进行通信, 实现在切换后光网络系统即使不支持 POPUP消息也能够进行重新测距状态, 进 而快速恢复切换后 0LT与 0NU之间的数据通信, 避免了切换后对正常业务通信的影响, 减少 了切换延时, 提高了用户的满意程度。 The fourth sending unit is further configured to send the equalization delay offset to other optical network units in the multiple optical network units. According to another optical line terminal provided by the embodiment of the present invention, after communication between the authority end and the plurality of optical network units is switched from the first optical line terminal port to the second optical line terminal port, the second optical line terminal port is sent. Deactivating the message or sending a message carrying the redistributed optical network unit identifier to the at least one optical network unit, causing the at least one optical network unit to go offline; re-ranging the at least one optical network unit to obtain the at least a first equalization delay of an optical network unit; transmitting, by the second optical line termination port, the equalization delay to the at least one optical network unit, so that the at least one optical network unit is based on the equalization time The communication is performed with the second optical line terminal port, so that the optical network system can perform the re-ranging state even after the handover does not support the POPUP message, thereby quickly recovering the data communication between the 0LT and the ONU after the handover, thereby avoiding the handover. After the impact on normal business communication, the switching delay is reduced, and the user's satisfaction is improved.
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤可以通过程序 指令相关的硬件来完成, 前述的程序可以存储于一计算机可读取存储介质中, 该程序在执 行时, 执行包括上述方法实施例的步骤; 而前述的存储介质包括: 醒、 醒、 磁碟或者光 盘等各种可以存储程序代码的介质。  A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The steps of the foregoing method embodiments are included; and the foregoing storage medium includes: various media that can store program codes, such as wake up, wake up, disk or optical disc.
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对其限制; 尽管参 照前述实施例对本发明进行了详细的说明, 本领域的普通技术人员应当理解: 其依然可以 对前述各实施例所记载的技术方案进行修改, 或者对其中部分技术特征进行等同替换; 而 这些修改或者替换, 并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。  It should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that: The technical solutions described in the foregoing embodiments are modified, or some of the technical features are equivalently replaced; and the modifications or substitutions do not deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

权利要求 Rights request
1、 一种光网络系统的通信方法, 所述光网络系统的局端提供第一光线路终端端口和 第二光线路终端端口, 每一个光线路终端端口连接多个光网络单元, 其特征在于, 包括: 当局端和多个光网络单元的通信从第一光线路终端端口切换到第二光线路终端端口 后, 通过所述第二光线路终端端口向至少一个光网络单元发送下行帧, 所述下行帧指示所 述至少一个光网络单元采用第一前导发送上行帧,其中所述第一前导的长度大于用于上行 业务传输的第二前导的长度; A communication method of an optical network system, wherein a central end of the optical network system provides a first optical line terminal port and a second optical line terminal port, and each optical line terminal port is connected to a plurality of optical network units, wherein The method includes: after the communication between the authority end and the plurality of optical network units is switched from the first optical line termination port to the second optical line termination port, sending, by the second optical line termination port, the downlink frame to the at least one optical network unit, where The downlink frame indicates that the at least one optical network unit sends the uplink frame by using the first preamble, wherein the length of the first preamble is greater than the length of the second preamble for uplink traffic transmission;
检测所述至少一个光网络单元通过所述第二光线路终端端口发送的包含第一前导的 上行帧, 基于所述包含第一前导的上行帧, 获得所述至少一个光网络单元的均衡时延; 通过所述第二光线路终端端口将所述均衡时延发送给所述至少一个光网络单元, 以使 所述至少一个光网络单元基于所述均衡时延与所述第二光线路终端端口进行通信。  Detecting, by the at least one optical network unit, an uplink frame that includes the first preamble sent by the second optical line terminal port, and obtaining an equalization delay of the at least one optical network unit based on the uplink frame that includes the first preamble Transmitting the equalization delay to the at least one optical network unit by the second optical line termination port, so that the at least one optical network unit is based on the equalization delay and the second optical line termination port Communicate.
2、 根据权利要求 1所述的方法, 在发送下行帧前还包括: 生成上行带宽授权消息, 该 授权消息包含指示上行帧的带宽信息和前导码模板信息,前导码模板信息指示所述至少一 个光网络单元采用第一前导发送上行帧;  2. The method according to claim 1, before the sending the downlink frame, the method further includes: generating an uplink bandwidth grant message, where the authorization message includes bandwidth information indicating the uplink frame and preamble template information, where the preamble template information indicates the at least one The optical network unit sends the uplink frame by using the first preamble;
将上行带宽授权消息封装到所述下行帧中。  Encapsulating an upstream bandwidth grant message into the downstream frame.
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述方法还包括:  The method according to claim 1 or 2, wherein the method further comprises:
基于所述第二光线路终端端口发送的均衡时延,获得所述多个光网络单元中其它光网 络单元的均衡时延;  And obtaining, according to the equalization delay sent by the second optical line terminal port, an equalization delay of the other optical network units in the multiple optical network units;
将所述其它光网络单元的均衡时延发送给对应的所述其它光网络单元。  And transmitting the equalization delay of the other optical network unit to the corresponding other optical network unit.
4、 根据权利要求 1或 2所述的方法, 其特征在于, 所述方法还包括:  The method according to claim 1 or 2, wherein the method further comprises:
基于所述第二光线路终端端口发送的均衡时延,获得所述至少一个光网络单元的均衡 时延偏移, 将所述均衡时移偏移发送所述多个光网络单元中的其它光网络单元。  Obtaining an equalization delay offset of the at least one optical network unit based on the equalization delay sent by the second optical line terminal port, and transmitting the equalization time shift offset to other opticals in the multiple optical network units Network unit.
5、 一种光网络系统的通信方法, 其特征在于, 所述方法包括:  5. A communication method for an optical network system, the method comprising:
基于第一均衡时延和第一光线路终端端口通信, 以进行业务传输;  Performing service transmission based on the first equalization delay and the first optical line terminal port communication;
从第一光线路终端端口切换到第二光线路终端端口,接收来自第二光线路终端端口的 下行帧, 所述下行帧指示上行帧采用第一前导, 其中所述第一前导的长度大于用于上行业 务传输的第二前导的长度;  Switching from the first optical line terminal port to the second optical line terminal port, receiving a downlink frame from the second optical line terminal port, where the downlink frame indicates that the uplink frame adopts a first preamble, wherein the length of the first preamble is greater than The length of the second preamble of the uplink traffic transmission;
向第二光线路终端端口发送包含该第一前导的上行帧;  Transmitting, to the second optical line terminal port, an uplink frame including the first preamble;
接收来自第二光线路终端端口的第二均衡时延; 基于所述第二均衡时延和第二光线路终端端口通信以进行业务传输。 Receiving a second equalization delay from the second optical line terminal port; And performing traffic transmission based on the second equalization delay and the second optical line terminal port communication.
6、 一种光网络系统的通信方法, 所述光网络系统的局端提供第一光线路终端端口和 第二光线路终端端口, 每一个光线路终端端口连接多个光网络单元, 其特征在于, 所述方 法包括:  A communication method of an optical network system, wherein a central end of the optical network system provides a first optical line terminal port and a second optical line terminal port, and each optical line terminal port is connected to a plurality of optical network units, wherein , the method includes:
当局端和多个光网络单元的通信从第一光线路终端端口切换到第二光线路终端端口 后,通过所述第二光线路终端端口发送去激活消息或者发送携带重新分配的光网络单元标 识的消息给至少一个光网络单元, 使得所述至少一个光网络单元下线;  After the communication between the authority and the plurality of optical network units is switched from the first optical line terminal port to the second optical line terminal port, the deactivation message is sent through the second optical line terminal port or the optical network unit identifier carrying the reassignment is sent. Message to at least one optical network unit, causing the at least one optical network unit to go offline;
对所述至少一个光网络单元进行重新测距,获得所述至少一个光网络单元的第一均衡 时延;  Re-ranging the at least one optical network unit to obtain a first equalization delay of the at least one optical network unit;
通过所述第二光线路终端端口将所述均衡时延发送给所述至少一个光网络单元, 以使 所述至少一个光网络单元基于所述均衡时延与所述第二光线路终端端口进行通信。  Transmitting the equalization delay to the at least one optical network unit by using the second optical line termination port, so that the at least one optical network unit performs the equalization delay and the second optical line termination port. Communication.
7、 根据权利要求 6所述的方法, 其特征在于, 所述方法还包括:  The method according to claim 6, wherein the method further comprises:
基于所述第二光线路终端端口发送的均衡时延,获得所述多个光网络单元中其它光网 络单元的均衡时延;  And obtaining, according to the equalization delay sent by the second optical line terminal port, an equalization delay of the other optical network units in the multiple optical network units;
将所述其它光网络单元的均衡时延发送给对应的所述其它光网络单元。  And transmitting the equalization delay of the other optical network unit to the corresponding other optical network unit.
8、 根据权利要求 6所述的方法, 其特征在于, 所述方法还包括:  The method according to claim 6, wherein the method further comprises:
基于所述第二光线路终端端口发送的均衡时延,获得所述至少一个光网络单元的均衡 时延偏移, 将所述均衡时移偏移发送所述多个光网络单元中的其它光网络单元。  Obtaining an equalization delay offset of the at least one optical network unit based on the equalization delay sent by the second optical line terminal port, and transmitting the equalization time shift offset to other opticals in the multiple optical network units Network unit.
9、 一种光网络系统的通信方法, 其特征在于, 所述方法包括:  A communication method for an optical network system, the method comprising:
基于第一均衡时延和第一光线路终端端口通信, 以进行业务传输;  Performing service transmission based on the first equalization delay and the first optical line terminal port communication;
从第一光线路终端端口切换到第二光线路终端端口,接收来自第二光线路终端端口的 去激活消息或者携带重新分配的光网络单元标识的消息;  Switching from the first optical line termination port to the second optical line termination port, receiving a deactivation message from the second optical line termination port or carrying a message of the reassigned optical network unit identity;
根据所述去激活消息, 进行下线;  Performing offline according to the deactivation message;
重新进行测距后, 接收来自第二光线路终端端口的第二均衡时延;  After performing ranging again, receiving a second equalization delay from the second optical line terminal port;
基于所述第二均衡时延和第二光线路终端端口通信以进行业务传输。  And performing traffic transmission based on the second equalization delay and the second optical line terminal port communication.
10、 一种光网络系统, 其特征在于, 所述系统包括: 第一光线路终端端口和第二光线 路终端端口, 光线路终端通过每一个光线路终端端口连接多个光网络单元;  An optical network system, comprising: a first optical line terminal port and a second optical path terminal port, wherein the optical line terminal connects the plurality of optical network units through each optical line terminal port;
所述光线路终端,用于当光线路终端和多个光网络单元的通信从第一光线路终端端口 切换到第二光线路终端端口后,通过所述第二光线路终端端口向至少一个光网络单元发送 下行帧, 所述下行帧指示所述至少一个光网络单元采用第一前导发送上行帧, 其中所述第 一前导的长度大于用于上行业务传输的第二前导的长度;检测所述至少一个光网络单元通 过所述第二光线路终端端口发送的包含第一前导的上行帧,基于所述包含第一前导的上行 帧, 获得所述至少一个光网络单元的均衡时延; 通过所述第二光线路终端端口将所述均衡 时延发送给所述至少一个光网络单元, 以使所述至少一个光网络单元基于所述均衡时延与 所述第二光线路终端端口进行通信。 The optical line terminal is configured to: when the communication between the optical line terminal and the plurality of optical network units is switched from the first optical line terminal port to the second optical line terminal port, to the at least one light through the second optical line terminal port Network unit sending a downlink frame, the downlink frame instructing the at least one optical network unit to transmit an uplink frame by using a first preamble, wherein a length of the first preamble is greater than a length of a second preamble for uplink traffic transmission; and detecting the at least one light Obtaining an equalization delay of the at least one optical network unit based on the uplink frame including the first preamble by using the uplink frame that includes the first preamble sent by the second optical line terminal port; The optical line termination port transmits the equalization delay to the at least one optical network unit to cause the at least one optical network unit to communicate with the second optical line termination port based on the equalization delay.
所述至少一个光网络单元, 用于基于第一均衡时延和第一光线路终端端口通信, 以进 行业务传输; 从第一光线路终端端口切换到第二光线路终端端口, 接收来自第二光线路终 端端口的下行帧, 所述下行帧指示上行帧采用第一前导, 其中所述第一前导的长度大于用 于上行业务传输的第二前导的长度; 向第二光线路终端端口发送包含该第一前导的上行 帧; 接收来自第二光线路终端端口的第二均衡时延; 基于所述第二均衡时延和第二光线路 终端端口通信以进行业务传输。  The at least one optical network unit is configured to perform traffic transmission based on the first equalization delay and the first optical line terminal port; switch from the first optical line terminal port to the second optical line terminal port, and receive from the second a downlink frame of the optical line terminal port, where the downlink frame indicates that the uplink frame adopts a first preamble, wherein a length of the first preamble is greater than a length of a second preamble used for uplink service transmission; and sending, to the second optical line terminal port, An uplink frame of the first preamble; receiving a second equalization delay from the second optical line termination port; and performing traffic transmission based on the second equalization delay and the second optical line termination port communication.
11、 根据权利要求 10所述的光网络系统, 其特征在于, 所述光线路终端, 还用于生成 上行带宽授权消息, 该授权消息包含指示上行帧的带宽信息和前导码模板信息, 前导码模 板信息指示所述至少一个光网络单元采用第一前导发送上行帧;将上行带宽授权消息封装 到所述下行帧中。  The optical network system according to claim 10, wherein the optical line terminal is further configured to generate an uplink bandwidth grant message, where the authorization message includes bandwidth information indicating the uplink frame and preamble template information, and the preamble The template information indicates that the at least one optical network unit sends the uplink frame by using the first preamble; and the uplink bandwidth grant message is encapsulated into the downlink frame.
12、 根据权利要求 10或 11所述的光网络系统, 其特征在于, 所述光线路终端, 还用于 基于所述第二光线路终端端口发送的均衡时延,获得所述多个光网络单元中其它光网络单 元的均衡时延; 将所述其它光网络单元的均衡时延发送给对应的所述其它光网络单元。  The optical network system according to claim 10 or 11, wherein the optical line terminal is further configured to obtain the multiple optical networks based on an equalization delay sent by the second optical line terminal port. Equalization delay of other optical network units in the unit; transmitting the equalization delay of the other optical network units to the corresponding other optical network unit.
13、 根据权利要求 10或 11所述的光网络系统, 其特征在于, 所述光线路终端, 还用于 基于所述第二光线路终端端口发送的均衡时延,获得所述至少一个光网络单元的均衡时延 偏移, 将所述均衡时移偏移发送所述多个光网络单元中的其它光网络单元。  The optical network system according to claim 10 or 11, wherein the optical line terminal is further configured to obtain the at least one optical network based on an equalization delay sent by the second optical line terminal port. An equalization delay offset of the unit, the equalization time shift offset being transmitted to other optical network units of the plurality of optical network units.
14、 一种光网络系统, 其特征在于, 所述系统包括: 第一光线路终端端口和第二光线 路终端端口, 光线路终端通过每一个光线路终端端口连接多个光网络单元;  An optical network system, comprising: a first optical line terminal port and a second optical path terminal port, wherein the optical line terminal connects the plurality of optical network units through each optical line terminal port;
所述光线路终端,用于当光线路终端和多个光网络单元的通信从第一光线路终端端口 切换到第二光线路终端端口后,通过所述第二光线路终端端口发送去激活消息或者发送携 带重新分配的光网络单元标识的消息给至少一个光网络单元,使得所述至少一个光网络单 元下线; 对所述至少一个光网络单元进行重新测距, 获得所述至少一个光网络单元的第一 均衡时延; 通过所述第二光线路终端端口将所述均衡时延发送给所述至少一个光网络单 元, 以使所述至少一个光网络单元基于所述均衡时延与所述第二光线路终端端口进行通 信; The optical line terminal is configured to send a deactivation message through the second optical line terminal port after the communication between the optical line terminal and the plurality of optical network units is switched from the first optical line terminal port to the second optical line terminal port Or sending a message carrying the redistributed optical network unit identifier to the at least one optical network unit, causing the at least one optical network unit to go offline; re-ranging the at least one optical network unit to obtain the at least one optical network a first equalization delay of the unit; transmitting, by the second optical line termination port, the equalization delay to the at least one optical network And causing the at least one optical network unit to communicate with the second optical line terminal port based on the equalization delay;
所述光网络单元, 用于基于第一均衡时延和第一光线路终端端口通信, 以进行业务传 输; 从第一光线路终端端口切换到第二光线路终端端口, 接收来自第二光线路终端端口的 去激活消息或者携带重新分配的光网络单元标识的消息;根据所述去激活消息,进行下线; 重新进行测距后, 接收来自第二光线路终端端口的第二均衡时延; 基于所述第二均衡时延 和第二光线路终端端口通信以进行业务传输。  The optical network unit is configured to perform traffic transmission based on the first equalization delay and the first optical line terminal port; switch from the first optical line terminal port to the second optical line terminal port, and receive the second optical line a deactivation message of the terminal port or a message carrying the reassigned optical network unit identifier; performing a downlink according to the deactivation message; and after receiving the ranging, receiving a second equalization delay from the second optical line terminal port; And performing traffic transmission based on the second equalization delay and the second optical line terminal port communication.
15、 根据权利要求 14所述的光网络系统, 其特征在于, 所述光线路终端, 还用于基于 所述第二光线路终端端口发送的均衡时延,获得所述多个光网络单元中其它光网络单元的 均衡时延; 将所述其它光网络单元的均衡时延发送给对应的所述其它光网络单元。  The optical network system according to claim 14, wherein the optical line terminal is further configured to obtain, according to the equalization delay sent by the second optical line terminal port, the plurality of optical network units. Equalization delay of other optical network units; transmitting the equalization delay of the other optical network units to the corresponding other optical network unit.
16、 根据权利要求 14所述的光网络系统, 其特征在于, 所述光线路终端, 还用于基于 所述第二光线路终端端口发送的均衡时延, 获得所述至少一个光网络单元的均衡时延偏 移, 将所述均衡时移偏移发送所述多个光网络单元中的其它光网络单元。  The optical network system according to claim 14, wherein the optical line terminal is further configured to obtain, according to the equalization delay sent by the second optical line terminal port, the at least one optical network unit. Equalizing the delay offset, transmitting the equalization time shift to other optical network units in the plurality of optical network units.
17、 一种光线路终端, 其特征在于, 所述光线路终端包括:  17. An optical line terminal, wherein the optical line terminal comprises:
第一发送单元,用于当所述光线路终端和多个光网络单元的通信从第一光线路终端端 口切换到第二光线路终端端口后,通过所述第二光线路终端端口向至少一个光网络单元发 送下行帧, 所述下行帧指示所述至少一个光网络单元采用第一前导发送上行帧, 其中所述 第一前导的长度大于用于上行业务传输的第二前导的长度;  a first sending unit, configured to: when the communication between the optical line terminal and the plurality of optical network units is switched from the first optical line terminal port to the second optical line terminal port, to the at least one through the second optical line terminal port The optical network unit sends a downlink frame, where the downlink frame indicates that the at least one optical network unit uses the first preamble to send an uplink frame, where the length of the first preamble is greater than the length of the second preamble used for uplink service transmission;
第一获取单元,用于检测所述至少一个光网络单元通过所述第二光线路终端端口发送 的包含第一前导的上行帧; 基于所述包含第一前导的上行帧, 获得所述至少一个光网络单 元的均衡时延;  a first acquiring unit, configured to detect an uplink frame that includes the first preamble sent by the at least one optical network unit by using the second optical line terminal port; and obtain the at least one uplink based on the uplink frame that includes the first preamble Equilibrium delay of the optical network unit;
第二发送单元,用于通过所述第二光线路终端端口将所述至少一个光网络单元的均衡 时延发送给所述至少一个光网络单元, 以使所述至少一个光网络单元基于所述均衡时延与 所述第二光线路终端端口进行通信。  a second sending unit, configured to send, by the second optical line terminal port, an equalization delay of the at least one optical network unit to the at least one optical network unit, so that the at least one optical network unit is based on the The equalization delay communicates with the second optical line termination port.
18、 根据权利要求 17所述的光线路终端, 其特征在于, 所述光线路终端还包括: 带宽授权单元, 与所述第一发送单元连接, 用于生成上行带宽授权消息, 该授权消息 包含指示上行帧的带宽信息和前导码模板信息,前导码模板信息指示所述至少一个光网络 单元采用第一前导发送上行帧; 将上行带宽授权消息封装到所述下行帧中。  The optical line terminal according to claim 17, wherein the optical line terminal further comprises: a bandwidth authorization unit, connected to the first sending unit, configured to generate an uplink bandwidth grant message, where the authorization message includes And indicating the bandwidth information of the uplink frame and the preamble template information, where the preamble template information indicates that the at least one optical network unit sends the uplink frame by using the first preamble; and the uplink bandwidth grant message is encapsulated into the downlink frame.
19、根据权利要求 17或者 18所述的光线路终端,其特征在于,所述光线路终端还包括: 第二获取单元, 用于基于所述第二光线路终端端口发送的均衡时延, 获得所述多个光 网络单元中其它光网络单元的均衡时延; The optical line terminal according to claim 17 or 18, wherein the optical line terminal further comprises: a second acquiring unit, configured to obtain, according to the equalization delay sent by the second optical line terminal port, an equalization delay of other optical network units in the multiple optical network units;
所述第二发送单元,还用于将所述其它光网络单元的均衡时延发送给对应的所述其它 光网络单元。  The second sending unit is further configured to send the equalization delay of the other optical network unit to the corresponding other optical network unit.
20、根据权利要求 17或者 18所述的光线路终端,其特征在于,所述光线路终端还包括: 第三获取单元, 用于基于所述第二光线路终端端口发送的均衡时延, 获得所述至少一 个光网络单元的均衡时延偏移;  The optical line terminal according to claim 17 or 18, wherein the optical line terminal further comprises: a third obtaining unit, configured to obtain, according to the equalization delay sent by the second optical line terminal port, An equalization delay offset of the at least one optical network unit;
所述第二发送单元,还用于将所述均衡时移偏移发送所述多个光网络单元中的其它光 网络单元。  The second sending unit is further configured to send the equalization time shift offset to other optical network units in the multiple optical network units.
21、 一种光网络单元, 其特征在于, 所述光网络单元包括:  An optical network unit, where the optical network unit includes:
接收单元, 用于基于第一均衡时延和第一光线路终端端口通信, 以进行业务传输; 从 第一光线路终端端口切换到第二光线路终端端口, 接收来自第二光线路终端端口的下行 帧, 所述下行帧指示上行帧采用第一前导, 其中所述第一前导的长度大于用于上行业务传 输的第二前导的长度;  a receiving unit, configured to perform communication according to the first equalization delay and the first optical line terminal port to perform service transmission; switch from the first optical line terminal port to the second optical line terminal port, and receive the second optical line terminal port a downlink frame, where the downlink frame indicates that the uplink frame adopts a first preamble, where a length of the first preamble is greater than a length of a second preamble used for uplink service transmission;
第五发送单元, 用于向第二光线路终端端口发送包含该第一前导的上行帧; 第二接收单元, 用于接收来自第二光线路终端端口的第二均衡时延; 基于所述第二均 衡时延和第二光线路终端端口通信以进行业务传输。  a fifth sending unit, configured to send, to the second optical line terminal port, an uplink frame that includes the first preamble; and a second receiving unit, configured to receive a second equalization delay from the second optical line terminal port; The second equalization delay communicates with the second optical line terminal port for service transmission.
22、 一种光线路终端, 其特征在于, 所述光线路终端包括:  An optical line terminal, wherein the optical line terminal comprises:
第三发送单元,用于当所述光线路终端和多个光网络单元的通信从第一光线路终端端 口切换到第二光线路终端端口后,通过所述第二光线路终端端口发送去激活消息或者发送 携带重新分配的光网络单元标识的消息给至少一个光网络单元,使得所述至少一个光网络 单元下线;  a third sending unit, configured to send, by the second optical line terminal port, deactivation after communication between the optical line terminal and the plurality of optical network units is switched from the first optical line terminal port to the second optical line terminal port Sending, by the message, a message carrying the reassigned optical network unit identifier to the at least one optical network unit, such that the at least one optical network unit is offline;
第四获取单元, 用于对所述至少一个光网络单元进行重新测距, 获得所述至少一个光 网络单元的第一均衡时延;  a fourth acquiring unit, configured to perform re-ranging on the at least one optical network unit, to obtain a first equalization delay of the at least one optical network unit;
第四发送单元,用于通过所述第二光线路终端端口将所述均衡时延发送给所述至少一 个光网络单元, 以使所述至少一个光网络单元基于所述均衡时延与所述第二光线路终端端 P进行通信。  a fourth sending unit, configured to send the equalization delay to the at least one optical network unit by using the second optical line terminal port, so that the at least one optical network unit is based on the equalization delay and the The second optical line terminal P communicates.
23、 根据权利要求 22所述的光线路终端, 其特征在于, 所述光线路终端还包括: 第五获取单元, 用于基于所述第二光线路终端端口发送的均衡时延, 获得所述多个光 网络单元中其它光网络单元的均衡时延; The optical line terminal according to claim 22, wherein the optical line terminal further comprises: a fifth obtaining unit, configured to obtain the balance based on an equalization delay sent by the second optical line terminal port Multiple lights Equilibrium delay of other optical network units in the network unit;
所述第四发送单元,还用于将所述其它光网络单元的均衡时延发送给对应的所述其它 光网络单元。  The fourth sending unit is further configured to send the equalization delay of the other optical network unit to the corresponding other optical network unit.
24、 根据权利要求 22所述的光线路终端, 其特征在于, 所述光线路终端还包括: 第六获取单元, 用于基于所述第二光线路终端端口发送的均衡时延, 获得所述至少一 个光网络单元的均衡时延偏移;  The optical line terminal according to claim 22, wherein the optical line terminal further comprises: a sixth obtaining unit, configured to obtain the balance based on an equalization delay sent by the second optical line terminal port Equilibrium delay offset of at least one optical network unit;
所述第四发送单元,还用于将所述均衡时延偏移发送所述多个光网络单元中的其它光 网络单元。  The fourth sending unit is further configured to send the equalization delay offset to other optical network units in the multiple optical network units.
PCT/CN2011/074789 2011-05-27 2011-05-27 Method, system and device for communication in the optical network system WO2011144110A2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201180000660.4A CN102648590B (en) 2011-05-27 2011-05-27 Communication means, system and the device of optical network system
PCT/CN2011/074789 WO2011144110A2 (en) 2011-05-27 2011-05-27 Method, system and device for communication in the optical network system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/074789 WO2011144110A2 (en) 2011-05-27 2011-05-27 Method, system and device for communication in the optical network system

Publications (2)

Publication Number Publication Date
WO2011144110A2 true WO2011144110A2 (en) 2011-11-24
WO2011144110A3 WO2011144110A3 (en) 2012-05-03

Family

ID=44992119

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/074789 WO2011144110A2 (en) 2011-05-27 2011-05-27 Method, system and device for communication in the optical network system

Country Status (2)

Country Link
CN (1) CN102648590B (en)
WO (1) WO2011144110A2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017166454A1 (en) * 2016-03-28 2017-10-05 中兴通讯股份有限公司 Xg-pon system and channel switching re-ranging control method therefor
CN113993009A (en) * 2020-07-27 2022-01-28 上海诺基亚贝尔股份有限公司 Method and device for multi-domain transmission by time synchronization, OLT and ONU

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104040914A (en) * 2012-11-12 2014-09-10 华为技术有限公司 Communication method for optical network system, system and device
CN107465742B (en) * 2017-08-02 2023-06-23 上海欣诺通信技术股份有限公司 Distribution equipment and method for realizing asymmetric service by UDP tunnel technology
KR102402781B1 (en) * 2018-09-10 2022-05-26 후아웨이 테크놀러지 컴퍼니 리미티드 Data transmission methods, related devices and systems
CN111866624B (en) * 2020-06-16 2022-09-02 烽火通信科技股份有限公司 ONU (optical network Unit) service migration method, device and equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1983878A (en) * 2005-12-01 2007-06-20 阿尔卡特公司 Adaptive preamble adjustment for burst-mode optical systems
CN101547044A (en) * 2008-03-27 2009-09-30 华为技术有限公司 Method, system and repeater for reducing time delay in switching main optical line terminal and spare optical line terminal
CN101557539A (en) * 2008-04-09 2009-10-14 华为技术有限公司 Optical network data transmission method as well as system and equipment thereof
CN101677415A (en) * 2008-09-19 2010-03-24 华为技术有限公司 Optical network system data link switching method, optical network unit and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100575945B1 (en) * 2003-08-26 2006-05-02 삼성전자주식회사 Gigabit ethernet passive optical network having double link structure and double link setting method using that

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1983878A (en) * 2005-12-01 2007-06-20 阿尔卡特公司 Adaptive preamble adjustment for burst-mode optical systems
CN101547044A (en) * 2008-03-27 2009-09-30 华为技术有限公司 Method, system and repeater for reducing time delay in switching main optical line terminal and spare optical line terminal
CN101557539A (en) * 2008-04-09 2009-10-14 华为技术有限公司 Optical network data transmission method as well as system and equipment thereof
CN101677415A (en) * 2008-09-19 2010-03-24 华为技术有限公司 Optical network system data link switching method, optical network unit and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017166454A1 (en) * 2016-03-28 2017-10-05 中兴通讯股份有限公司 Xg-pon system and channel switching re-ranging control method therefor
CN107241138A (en) * 2016-03-28 2017-10-10 中兴通讯股份有限公司 XG-PON systems and its channel switching are resurveyed away from control method
CN107241138B (en) * 2016-03-28 2021-06-08 中兴通讯股份有限公司 XG-PON system and re-ranging control method for channel switching thereof
CN113993009A (en) * 2020-07-27 2022-01-28 上海诺基亚贝尔股份有限公司 Method and device for multi-domain transmission by time synchronization, OLT and ONU

Also Published As

Publication number Publication date
CN102648590A (en) 2012-08-22
WO2011144110A3 (en) 2012-05-03
CN102648590B (en) 2016-05-25

Similar Documents

Publication Publication Date Title
US8724453B2 (en) Method and apparatus for implementing trunk optical fiber protection in ethernet passive optical network (EPON)
EP1802007B1 (en) A passive optical network maintenance method, an optical network unit and an optical line terminal
JP5372960B2 (en) Protected passive optical communication system
US9154221B2 (en) Method, system, and relay apparatus for realizing passive optical network reach extension
US8428457B2 (en) Optical passive network system and its operation method
EP3402101B1 (en) Passive optical network communications method, apparatus and system
CN102075238B (en) Passive optical network and protection switching method thereof
WO2010031326A1 (en) Method for switching data link in the optical network system, optical line terminal and system
US20110038629A1 (en) Immediate protection scheme for passive optical network
US9167323B2 (en) Method and system for quickly updating ranging results of optical network unit by optical line terminal
WO2012119439A1 (en) Data communication method in optical network system, and optical network unit and system
WO2015113383A1 (en) Channel switching method and apparatus, optical network unit and time wavelength division multiplexing system
WO2011144110A2 (en) Method, system and device for communication in the optical network system
WO2011140920A1 (en) Method, system and optical network unit for synchronizing data
CN101997605B (en) Optical distribution network as well as fault processing method, registration method and physical positioning method for optical network unit
WO2011038591A1 (en) Method, device and system for master-backup switching in passive optical network (pon)
CN102149027B (en) Path switching method, system and downlink data transmission method
US8422881B2 (en) Optical access network
JP2011217298A (en) Pon system, station-side device and terminal-side device thereof, and rtt correction method
WO2013075507A1 (en) Data sending method and system
WO2012097538A1 (en) Method and system for implementing full protection mode
WO2011157167A2 (en) Method and device for transmitting data in passive optical network
WO2012136089A1 (en) Loop detection method and system for passive optical network
JP5640877B2 (en) Communication system, master station device, and communication line switching method
WO2009135415A1 (en) Method, equipment and system for processing multiframe

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201180000660.4

Country of ref document: CN

NENP Non-entry into the national phase in:

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11783027

Country of ref document: EP

Kind code of ref document: A2