WO2014071639A1 - Communication method for optical network system, system and device - Google Patents

Communication method for optical network system, system and device Download PDF

Info

Publication number
WO2014071639A1
WO2014071639A1 PCT/CN2012/084484 CN2012084484W WO2014071639A1 WO 2014071639 A1 WO2014071639 A1 WO 2014071639A1 CN 2012084484 W CN2012084484 W CN 2012084484W WO 2014071639 A1 WO2014071639 A1 WO 2014071639A1
Authority
WO
WIPO (PCT)
Prior art keywords
preamble
optical network
frame
uplink frame
verification information
Prior art date
Application number
PCT/CN2012/084484
Other languages
French (fr)
Chinese (zh)
Inventor
叶振凯
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201280002514.XA priority Critical patent/CN104040914A/en
Priority to PCT/CN2012/084484 priority patent/WO2014071639A1/en
Publication of WO2014071639A1 publication Critical patent/WO2014071639A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/077Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using a supervisory or additional signal
    • H04B10/0771Fault location on the transmission path
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/077Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using a supervisory or additional signal
    • H04B10/0775Performance monitoring and measurement of transmission parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B2210/00Indexing scheme relating to optical transmission systems
    • H04B2210/07Monitoring an optical transmission system using a supervisory signal
    • H04B2210/072Monitoring an optical transmission system using a supervisory signal using an overhead signal

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 (ONU), and an optical distribution network (ODN), wherein the optical distribution network includes a backbone optical fiber.
  • OLT optical line terminal
  • ONU optical network unit
  • ODN optical distribution network
  • Passive optical splitter and branch fiber 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 an uplink data packet in the time slot specified by the 0LT.
  • the downlink direction 0LT uses Time Division Multiplexing (TDM).
  • TDM Time Division Multiplexing
  • the broadcast mode sends downlink data packets to the ONUs.
  • 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 primary 0LT and the standby 0LT respectively communicate data with at least one ONU through respective ports.
  • the primary 0LT will detect the LOS (lost of signal) alarm; after the primary 0LT detects the L0S alarm, the primary 0LT and the standby 0LT are switched, and all 0NUs are used. Switching to the standby 0LT, the original standby 0LT is switched to become the primary 0LT, and the data communication between the 0LT and each ONU is restored through the standby link.
  • LOS loss of signal
  • the standby 0LT cannot obtain the link state information of the standby link. If the link quality of the standby link is abnormal, the data is not suitable for data communication. For example, packet loss of the standby link. If the rate is high, the link quality is abnormal. The primary 0LT still switches the active link to the standby link, which will cause the active/standby switchover to fail. The communication between 0LT and ONU is interrupted. Therefore, how the standby 0LT obtains the link state information of the standby link becomes the type B active and standby in the current P0N system. Problems to be solved in the protected application scenario.
  • the embodiments of the present invention provide a communication method, a system, and a device for an optical network system, which are used to solve the working state of the standby link in the existing optical network system. It may cause the problem of data communication interruption between 0LT and 0NU, thus ensuring that the standby 0LT knows the link state information of the standby link in time, avoids the impact on the normal service communication after the handover, and improves the user satisfaction.
  • the present invention provides a communication method of an optical network system, where the communication method is applied in an optical network system, where the optical network system includes at least a first optical line terminal, a second optical line terminal, and multiple optical networks. a link between the first optical line terminal and the at least one optical network unit as a primary link, and a link between the second optical line terminal and the at least one optical network unit is a backup Link, the communication method includes:
  • the second optical line terminal receives the first uplink frame sent by the at least one optical network unit, where the first uplink frame includes at least: a first preamble, a link quality delimiter, data information, and a first The length of the first preamble is greater than the length of the second preamble for uplink service transmission, and the first verification information is verification information of the data information;
  • the second optical line terminal performs frame synchronization and frame delimitation on the first uplink frame according to the first preamble and the link quality delimiter, and parses and obtains data information and first check information. ;
  • the second optical line terminal determines the link quality of the standby link according to the data information obtained by the parsing and the first verification information.
  • the length of the second preamble is greater than or equal to 8 bytes.
  • the second optical line terminal determines, according to the data information obtained by the parsing and the first verification information,
  • the link quality of the standby link includes:
  • the second optical line terminal generates second verification information according to the data information obtained by the parsing
  • the communications method further includes:
  • the present invention provides a communication method of an optical network system, where the communication method is applied in an optical network system, where the optical network system includes a first optical line terminal, a second optical line terminal, and multiple optical networks.
  • the first a link between the optical line terminal and the at least one optical network unit is a primary link
  • a link between the second optical line terminal and the at least one optical network unit is a standby link
  • the communication is Methods include:
  • the optical network unit encapsulates the first preamble, the link quality delimiter, the data information, and the first check information into a first uplink frame, where the length of the first preamble is greater than that used for uplink service transmission. a length of the second preamble, where the first verification information is verification information of the data information;
  • the optical network unit sends the first uplink frame.
  • the communications method further includes:
  • the optical network unit acquires the data information
  • the optical network unit generates the first verification information according to the acquired data information
  • the optical network unit generates a first preamble of a specific length, the length of the first preamble is greater than a length of a second preamble for uplink traffic transmission, and the length of the second preamble is greater than or equal to 8 words Section.
  • the optical network unit, the first preamble, the link quality delimiter, the data information, and the first The encapsulating the verification information into the first uplink frame specifically includes:
  • the optical network unit encapsulates the first preamble in a preamble field of the first uplink frame, and encapsulates the link quality delimiter in a bounding field of the first uplink frame, where
  • the data information is encapsulated in a data field of the first uplink frame, and the first check information is encapsulated in a check field of the first uplink frame to form the first uplink frame.
  • the optical network unit sends the first uplink
  • the frame specifically includes:
  • the present invention provides an optical line terminal, where the optical line terminal includes:
  • a first transceiver unit configured to receive a first uplink frame sent by the at least one optical network unit, where the first uplink frame includes at least: a first preamble, a link quality delimiter, data information, and a first The length of the first preamble is greater than the length of the second preamble for uplink service transmission, and the first verification information is verification information of the data information;
  • a parsing unit configured to perform frame synchronization and frame delimitation on the first uplink frame according to the first preamble and the link quality delimiter, and parse and obtain data information and first check information;
  • a processing unit configured to determine, according to the data information obtained by the parsing and the first verification information, a chain of the standby link Road quality.
  • the processing unit specifically includes:
  • a second check information generating unit configured to generate second check information according to the data information obtained by the parsing
  • a determining unit configured to: if the first check information is different from the second check information, Determining that the link quality of the standby link is abnormal.
  • the first transceiver unit And being used to send the first downlink frame, where the first downlink frame indicates that the at least one optical network terminal sends the first uplink frame.
  • the present invention provides an optical network unit, where the optical network unit includes:
  • a framing unit configured to encapsulate the first preamble, the link quality delimiter, the data information, and the first check information into a first uplink frame, where the length of the first preamble is greater than that for uplink service transmission
  • the length of the second preamble, the first verification information is verification information of the data information
  • the second transceiver unit is configured to send the first uplink frame.
  • the optical network unit further includes: an acquiring unit, configured to acquire the data information;
  • the first check information generating unit is configured to generate the first check information according to the acquired data information.
  • a first preamble generating unit configured to generate a first preamble of a specific length, where a length of the first preamble is greater than a length of a second preamble for uplink service transmission, and a length of the second preamble is greater than or Equal to 8 bytes.
  • the framing unit is configured to encapsulate the first preamble in the first uplink frame.
  • a preamble field the link quality delimiter is encapsulated in a delimiting field of the first uplink frame
  • the data information is encapsulated in a data field of the first uplink frame, where the first school is
  • the verification information is encapsulated in a check field of the first uplink frame to form the first uplink frame.
  • the second transceiver unit Specifically, the first uplink frame is periodically sent; or the first downlink frame sent by the first optical line terminal is received, where the first downlink frame instructs the at least one optical network unit to send the The first upstream frame.
  • the present invention provides an optical network system, where the optical network system includes: a first optical line terminal, a second optical line terminal, and a plurality of optical network units, the first optical line terminal and the at least a link between the optical network units is a primary link, and a link between the second optical line terminal and the at least one optical network unit is a standby link.
  • the at least one optical network unit is configured to encapsulate the first preamble, the link quality delimiter, the data information, and the first check information into a first uplink frame, where the length of the first preamble is greater than a length of the second preamble transmitted by the uplink service, where the first check information is check information of the data information; and sending the first uplink frame;
  • the second optical line terminal is configured to receive a first uplink frame sent by the at least one optical network unit, and perform frame on the first uplink frame according to the first preamble and the link quality delimiter
  • the synchronization and the delimitation of the frame, the data information and the first verification information are obtained by parsing; and the link quality of the standby link is determined according to the data information obtained by the parsing and the first verification information.
  • the length of the second preamble is greater than or equal to 8 bytes.
  • the second optical line terminal specifically includes:
  • a first transceiver unit configured to receive a first uplink frame sent by the at least one optical network unit, where the first uplink frame includes at least: a first preamble, a link quality delimiter, data information, and a first The length of the first preamble is greater than the length of the second preamble for uplink service transmission, and the first verification information is verification information of the data information;
  • a parsing unit configured to perform frame synchronization and frame delimitation on the first uplink frame according to the first preamble and the link quality delimiter, and parse and obtain data information and first check information;
  • a processing unit configured to determine, according to the data information obtained by the parsing and the first verification information, a link quality of the standby link.
  • the processing unit specifically includes:
  • a second check information generating unit configured to generate second check information according to the data information obtained by the parsing
  • a determining unit configured to: if the first check information is different from the second check information, Determining that the link quality of the standby link is abnormal.
  • the first transceiver unit is further configured to send a first downlink frame, where the first downlink frame indicates that the at least one optical network terminal sends the first uplink frame.
  • the optical network unit specifically includes:
  • a framing unit configured to encapsulate the first preamble, the link quality delimiter, the data information, and the first check information into a first An uplink frame, where the length of the first preamble is greater than a length of a second preamble for uplink service transmission, and the first verification information is verification information of the data information;
  • the second transceiver unit is configured to send the first uplink frame.
  • the optical network unit further includes :
  • An obtaining unit configured to acquire the data information
  • the first check information generating unit is configured to generate the first check information according to the acquired data information.
  • a first preamble generating unit configured to generate a first preamble of a specific length, where a length of the first preamble is greater than a length of a second preamble for uplink service transmission, and a length of the second preamble is greater than or Equal to 8 bytes.
  • the framing unit is configured to encapsulate the first preamble in a preamble field of the first uplink frame, and encapsulate the link quality delimiter on the first uplink. Encapsulating the data in the data field of the first uplink frame, and encapsulating the first check information in a check field of the first uplink frame to form the first uplink frame.
  • the second transceiver unit is configured to periodically send the first uplink frame; or receive the first optical line terminal to send a first downlink frame, where the first downlink frame indicates that the at least one optical network unit sends the first uplink frame.
  • the present invention provides a computer system for signal processing, the actions of the computer system performing signal processing include:
  • a first input device configured to receive data
  • a first output device configured to send the data
  • the first memory is used to store the program, including:
  • a first transceiver configured to receive a first uplink frame, where the first uplink frame includes: a first preamble, a link quality delimiter, data information, and first verification information;
  • the length of the code is greater than the length of the second preamble for the uplink service transmission, and the first check information is the check information of the data information;
  • a frame parsing processor configured to perform frame synchronization and frame delimitation on the first uplink frame according to the first preamble and the link quality delimiter, and obtain data information and first check information by parsing And determining, according to the data information obtained by the parsing and the first check information, a link quality of the standby link.
  • a first processor coupled to the first input device, the first output device, and the first memory, for Control execution of the program.
  • the present invention provides a computer system for signal processing, and the actions of the computer system to perform signal processing include:
  • a second input device configured to receive data
  • a second output device configured to send the data
  • a second memory for storing the program comprising:
  • a framing processor configured to encapsulate the first preamble, the link quality delimiter, the data information, and the first check information into a first uplink frame, where the length of the first preamble is greater than that for the uplink service a length of the transmitted second preamble, where the first verification information is verification information of the data information;
  • the second transceiver is configured to send the first uplink frame.
  • a second processor coupled to the second input device, the second output device, and the second memory for controlling execution of the program.
  • the at least one optical network unit encapsulates the first preamble, the link quality delimiter, the data information, and the first check information into a first uplink frame, where the length of the first preamble is greater than The length of the second preamble transmitted by the uplink service, the first check information is check information of the data information, and the first uplink frame is sent, so that the second optical line terminal can receive the first uplink
  • the second optical line terminal in the optical network system cannot know the working status of the standby link in time, and the data communication is still interrupted after the active/standby switchover.
  • 1 is a schematic structural view of an optical network system
  • FIG. 2 is a schematic structural diagram of another optical network system
  • FIG. 3 is a flow chart of a data communication method of an optical network system
  • FIG. 4 is a schematic diagram of a frame structure of a first uplink frame
  • FIG. 5 is a flow chart of a data communication method of an optical network system
  • 6 is a schematic structural diagram of an optical network unit
  • 7 is a schematic structural view of an optical line terminal
  • FIG. 8 is a schematic structural diagram of a computer system
  • FIG. 9 is a schematic structural diagram of a first memory
  • Figure 10 is a schematic structural view of another computer system
  • FIG. 11 is a schematic structural diagram of a second memory.
  • 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 schematic structural diagram of an optical network system according to an embodiment of the present invention.
  • the optical network system includes: a first optical line terminal OLT1, a second optical line terminal OLT2, and a plurality of optical network units ONU, wherein the plurality of optical network units are: 0NU1, 0NU2... 0NUn (n is an integer greater than or equal to 1).
  • the 0LT1 and the 0LT2 are respectively connected to the 0NUs through the optical distribution network 0DN, and the 0DN includes at least one splitter Splitter.
  • the specific structure is: 0LT1 and 0LT2 are connected to 0NU1...0NUn through Splitter.
  • the link between the first OLT1 and each of the ONUs is a primary link, for example, the primary link is: 0LT1 ⁇ Splitter ⁇ 0NUl, ..., 0LT1 ⁇ Splitter ⁇ 0NUn o 0LT2
  • the link between the ONUs and the ONUs is a standby link.
  • the backup link is: 0LT2 ⁇ Splitter ⁇ 0NUl, ..., 0LT2 ⁇ Splitter ⁇ 0NUn.
  • the uplink direction is: a direction of each 0NU to 0LT1 or a direction of each 0NU to 0LT2; the first uplink frame is a data frame sent by at least one ONU to 0LT2 (or a data frame sent to 0LT1 by at least one ONU);
  • the downlink direction is: 0LT1, the direction to each 0NU, or 0LT2 to the direction of each 0NU; the first downlink frame is a data frame sent by 0LT1 to each ONU.
  • the 0LT1 may be the primary 0LT, and the 0LT2 may be the standby 0LT.
  • FIG. 2 is a schematic structural diagram of another optical network system according to an embodiment of the present invention.
  • the optical network system includes: a first optical line terminal OLT1, a second optical line terminal OLT2, and a plurality of optical network units ONU, wherein the optical network units are: 0NU1, 0NU2...0NUn , ONUn+1... ONUn+L (n is an integer greater than or equal to 1, and L is an integer greater than or equal to n).
  • the 0LT1 and the 0LT2 are respectively connected to the respective ONUs through respective optical distribution networks 0DN.
  • the 0DN includes at least: a two-stage optical distribution network: a first level 0DN1. 1 and a first level 0DN1.
  • a second level 0DN2.1 and a second level 0DN2.2 The at least one of the 0DN1.2 includes at least a second optical splitter Splitter3, and the 0DN2.1 includes at least a second optical splitter Splitter2, at least the 0DN2.2. Including the fourth spectroscopic Splitter4.
  • the specific structure can be: 0LT1 is connected to 0NU1...0NUn through Splitter and Splitter2, 0LT2 is connected to ONUn+1... ONUn+L through Splitter3 and Splitter4, where Splitter2 and Splitter4 are connected to Splitterl, and Splitter2 and Splitter4 Both are connected to Splitter3 to form a mutually protected TypeB protection structure.
  • the link between the first OLT1 and the each ONU is a primary link, and the primary link is: 0LT1 ⁇ Splitterl ⁇ Splitter2 ⁇ 0NUl, OLT1 ⁇ Splitterl ⁇ Splitter2 ⁇ 0NUn, or 0LT1 ⁇ Splitterl ⁇ Splitter4 ⁇ 0NUn+l, ..., OLT1 ⁇ Splitter 1 ⁇ Splitter4 ⁇ 0NUn+L ;
  • the link between the 0LT2 and the ONUs is a standby link, and the standby link may be: 0LT2 ⁇ Splitter3 ⁇ Splitter4 ⁇ 0NUn+l, ..., 0LT2-Splitter3 ⁇ Splitter4 ⁇ 0NUn+L, or, 0LT2 ⁇ Splitter3 ⁇ Splitter2 ⁇ 0NUl, ..., 0LT2 ⁇ Splitter3 ⁇ Splitter2 ⁇ 0NUn.
  • the uplink direction is: each ONU goes to 0LT1, or the direction of each ONU to 0LT2, the uplink frame is the data frame sent by each 0NU to 0LT1, or the 0NU is sent to the data frame of 0LT2; the downlink direction is: 0LT1 to each The direction of 0NU, or 0LT2 to the direction of each 0NU, the downlink frame is 0LT1 is sent to each 0NU data frame, or 0LT2 is sent to each 0NU data frame.
  • the 0LT1 may be the primary 0LT
  • the 0LT2 may be the standby 0LT.
  • the optical network system may be a GP0N system or an XGP0N system, such as 10GP0N or 40GP0N.
  • the XGP0N system includes: XGP0N1 system and XGP0N2 system, which are the two main alternatives of the next-generation Gigabit passive optical network NGP0N 1 (also known as "Next Generation Gigabit Passive Optical Network").
  • XGP0N1 is a downlink lOGbps/uplink 2. 5Gbps asymmetric system;
  • XGP0N2 is a symmetric system with up and down lOGbps.
  • the XGP0N1 system is an asymmetric system, which can also be called 10GGP0N.
  • the embodiment of the present invention is only described by taking the ONU as an example. All the methods applicable to the 0NU are applicable to the ONT (Optical
  • optical network terminal optical network terminal
  • the embodiment of the invention further provides a communication method, as shown in FIG.
  • the communication method is applied to the networking structure of the optical network system described in FIG. 1 or FIG. 2, and may include the following steps:
  • Step S302 The at least one ONU encapsulates the first preamble, the link quality delimiter, the data information, and the first check information into a first uplink frame.
  • the length of the first preamble is greater than the uplink service transmission.
  • the length of the second preamble, the first verification information is verification information of the data information.
  • the frame structure of the first uplink frame is shown in FIG. 4.
  • the frame structure of the uplink frame includes at least: a preamble field, a delimiting field, a data field, and a check field.
  • the length of each field is not limited.
  • Each domain has special requirements, and the length is mainly based on special requirements.
  • the preamble field and the definite field are used for the frame synchronization and frame delimitation of the first uplink frame by the OLT2, wherein the preamble field can be represented by a preamble field, which is 0LT2 after the first uplink frame is received for clock recovery.
  • the delimiter field can be represented by a delimiter field, which is 0LT2 delimiting the frame of the received first uplink frame, that is, the alignment of the frame is implemented by 0LT2; wherein the delimitation domain can also be used to distinguish The first uplink frame and the standard-defined GTC frame or the XGTC frame, so that after receiving the first uplink frame, the OLT may identify that the first uplink frame is a specific uplink frame by using a delimiter field, the first The upstream frame is used to detect the quality of the alternate link.
  • the preamble field includes at least: a first preamble and a second preamble.
  • the second preamble is mainly 0LT and each
  • the preamble used for uplink traffic transmission between 0NUs can also be understood as the preamble used for normal data communication between 0LT and 0NU, which can correspond to the state table defined by the 0NU in the ITU-G.987.3 standard.
  • the leading length used by the 0NU in the Operation State 0 (5) state the recommended length is greater than or equal to 8 bytes; the first preamble is mainly used when ranging between 0LT and each 0NU.
  • the recommended length of the first preamble is at least 8 bytes, and may be 32 bytes or 64 bytes, or other length bytes.
  • the delimited field is used by the 0LT2 to delimit the frame of the received first uplink frame, indicating that the first uplink frame is started to be received.
  • the length of the field is not limited, and the recommended length may be 32 bits. Since the first uplink frame is a customized frame between 0LT1 or 0LT2 and each ONU, the delimiting field may also be used to distinguish the first uplink frame from other standard defined uplink frames, such that 0LT1 or After receiving the first uplink frame, the LT2 can recognize that the first uplink frame is used to detect the quality of the backup link.
  • the data field is used to carry data information, and its length is not limited.
  • the check field is used to check the data information to reflect the link quality of the standby link. For example, by performing error correction on a data frame sent and received on the standby link, calculating a packet loss rate or a packet error rate of the standby link by using an algorithm, thereby measuring the link quality of the standby link, and There are many ways to verify the data information. The method is not limited to the above. Other methods such as forward error correction (FEC) or cyclic redundancy check (CRC) can be used. Applicable here, the main purpose is to measure the link quality of the standby link.
  • FEC forward error correction
  • CRC cyclic redundancy check
  • the encapsulating, by the optical network unit, the first preamble, the link quality delimiter, the data information, and the first check information into the first uplink frame specifically includes:
  • the optical network unit encapsulates the first preamble in a preamble field of the first uplink frame, and encapsulates the link quality delimiter in a bounding field of the first uplink frame, where
  • the data information is encapsulated in a data field of the first uplink frame
  • the first check information is encapsulated in a check field of the first uplink frame to form the first uplink frame.
  • the first uplink frame is an uplink frame format customized according to a physical layer, and the first uplink frame is also in accordance with a P0N protocol or
  • XGP0N protocol can be transmitted in P0N network or XGP0N network, is used between 0LT1 or 0LT2 and each 0NU A frame that is customized to measure the quality of the alternate link and can be received and parsed by 0LT1 or 0LT2.
  • Step S304 The ONU sends the first uplink frame.
  • the communication method further includes: before the first upstream frame of the 0NU encapsulation:
  • the 0NU acquires the data information
  • the 0NU generates the first verification information according to the acquired data information
  • the 0NU generates a first preamble of a specific length, the length of the first preamble is greater than a length of a second preamble for uplink traffic transmission, and the length of the second preamble is greater than or equal to 8 bytes.
  • the sending, by the 0NU, the first uplink frame specifically includes:
  • the 0NU periodically sends the first uplink frame
  • the 0NU receives the first downlink frame sent by the first optical line terminal, and the first downlink frame indicates that the at least one optical network unit sends the first uplink frame;
  • the 0NU sends the first uplink frame according to the indication of the first downlink frame.
  • the first downlink frame may be a GTC frame, an XGTC frame, a customized frame, or a frame of another format.
  • the indication information in the first downlink frame where the indication information is information indicating that the 0NU sends the first uplink frame, may be carried in an extended field of a standard defined GTC frame or an XGTC frame.
  • the indication information may be that the downlink frame is newly defined in the physical layer between the 0LT and the ONU, and the customized first downlink frame is in accordance with the P0N protocol or the XGP0N protocol, and the customized first downlink frame mainly carries the indication.
  • Information, and the customized first downlink frame can also be parsed by each ONU.
  • the first preamble, the link quality delimiter, the data information, and the first check information are encapsulated into a first uplink frame by using an optical network unit;
  • the length of the first preamble is greater than the length of the second preamble for uplink service transmission, the first verification information is verification information of the data information, and the optical network unit sends the first
  • the uplink frame solves the problem that the second optical line terminal in the optical network system cannot know the working status of the standby link in time, which may cause the data communication between the 0LT and the ONU to be interrupted after the active/standby switchover, thereby ensuring the second light.
  • the line terminal can know the link state information of the standby link in time, avoiding the impact on the normal service communication after the handover, and improving the user satisfaction.
  • An embodiment of the present invention further provides a communication method of an optical network system, as shown in FIG. 5.
  • the communication method is applied to the networking structure of the optical network system described in FIG. 1 or FIG. 2, and may include the following steps:
  • Step S502 The OLT receives the first uplink frame sent by the at least one optical network unit, where the first uplink frame includes at least: a first preamble, a link quality delimiter, data information, and a first school
  • the length of the first preamble is greater than the length of the second preamble for uplink service transmission, and the first verification information is verification information of the data information.
  • the length of the second preamble is greater than or equal to 8 bytes.
  • the first optical line terminal 0LT1 also receives the first uplink frame.
  • Step S504 The 0LT2 performs frame synchronization and frame delimitation on the first uplink frame according to the first preamble and the link quality delimiter, and parses and obtains data information and first check information.
  • Step S506 The 0LT2 determines the link quality of the standby link according to the data information obtained by the parsing and the first check information.
  • the determining, by the 0LT2, the link quality of the standby link according to the data information obtained by the parsing and the first check information includes:
  • the 0LT2 generates second verification information according to the data information obtained by the parsing
  • the 0LT2 determines that the link quality of the standby link is abnormal.
  • the 0LT2 determines that the link quality of the standby link is normal.
  • the parity check mode is adopted, and the ONU generates the first check information according to the data information 0110, and the first check information is 1;
  • the parsing obtains the data information as 0100, and the 0LT2 is obtained according to the parsing.
  • the data information 0100 is in the same check mode as that of the ONU, and the generated second check information is 0. Then, the 0LT2 determines the standby link quality abnormality according to the first check information 1 and the second check information 0.
  • the communication method may further include:
  • the 0LT2 sends a first downlink frame, where the first downlink frame indicates that the at least one optical network terminal sends the first uplink frame.
  • the first downlink frame may be a GTC frame, an XGTC frame, a customized frame, or a frame of another format.
  • the indication information in the first downlink frame where the indication information is information indicating that the 0NU sends the first uplink frame, may be carried in an extended field of a standard defined GTC frame or an XGTC frame.
  • the indication information may be that the first downlink frame is newly defined between the 0LT and the 0NU at the physical layer, and the customized first downlink frame also conforms to the P0N protocol or the XGP0N protocol, and the customized first
  • the line frame mainly carries the foregoing indication information, and the customized first downlink frame can also be parsed by each ONU.
  • the first uplink frame sent by the at least one optical network unit by using the first preamble is received by the second optical line terminal, where the first uplink frame includes at least a first preamble, a link quality delimiter, data information, and first verification information; the length of the first preamble is greater than that used in the upper industry Length of the second preamble transmitted, the first check information is check information of the data information; parsing the first uplink frame; and verifying according to the parsed first uplink frame
  • the information is obtained, and the link quality of the standby link is obtained, which solves the problem that the second optical line terminal OLT2 cannot know the working status of the standby link in the optical network system, and the active/standby switchover may cause the relationship between the 0LT and the ONU.
  • the problem of data communication interruption ensures that the second optical line terminal OLT2 can know the link state information of the standby link in time, avoids the impact on the normal service communication after the handover
  • An embodiment of the present invention further provides an optical network unit, and a schematic structural diagram thereof is shown in FIG. 6.
  • An ONU 60 specifically the location of the optical network unit 60 in the optical network system, refer to each ONU in the structural diagram of FIG. 1 or FIG. 2, and the structure of each ONU in FIG. 1 or FIG. 2 and the optical network.
  • the unit 60 has the same structure, and the optical network unit 60 includes:
  • the framing unit 602 is configured to encapsulate the first preamble, the link quality delimiter, the data information, and the first check information into a first uplink frame, where the length of the first preamble is greater than that for the uplink service a length of the transmitted second preamble, where the first verification information is verification information of the data information;
  • the second transceiver unit 604 is configured to send the first uplink frame.
  • the 0NU60 further includes:
  • An obtaining unit 606, configured to acquire the data information
  • the first check information generating unit 608 is configured to generate the first check information according to the acquired data information.
  • the first preamble generating unit 610 is configured to generate a first preamble of a specific length, where the length of the first preamble is greater than a length of a second preamble for uplink traffic transmission, and the length of the second preamble is greater than Or equal to 8 bytes.
  • the framing unit 602 is specifically configured to encapsulate the first preamble in a preamble field of the first uplink frame, and encapsulate the link quality delimiter in the first uplink frame. a delimited field, the data information is encapsulated in a data field of the first uplink frame, and the first check information is encapsulated in a check field of the first uplink frame to form the first uplink frame .
  • the frame structure of the first uplink frame is shown in FIG. 4 .
  • the frame structure of the uplink frame includes at least: a preamble domain, a delimiting domain, a data domain, and a check domain, wherein each domain has an unlimited length, and each domain has special requirements, and the length is mainly based on a special requirement.
  • the preamble field and the definite field are used for the frame synchronization and frame delimitation of the first uplink frame by the OLT2, wherein the preamble field can be represented by a preamble field, which is 0LT2 after the first uplink frame is received for clock recovery.
  • the 0LT2 is used to implement the synchronization of the first uplink frame;
  • the delimiter field can be represented by the delimiter field, and the 0LT2 delimits the frame of the received first uplink frame, that is, the 0LT2 implements the alignment of the frame;
  • the delimiting field can also be used to distinguish the first uplink frame from the standard defined GTC frame or the XGTC frame, so that after receiving the first uplink frame, the OLT can be identified by the delimiter field.
  • the first uplink frame is a specific uplink frame, and the first uplink frame is used to detect the quality of the backup link.
  • the preamble field includes at least: a first preamble and a second preamble.
  • the second preamble is mainly used as a preamble used for uplink service transmission between the 0LT and each ONU. It can also be understood that the preamble used for normal data communication between the 0LT and the ONU may correspond to ITU-G.987.
  • the standard defines the leading length used by the 0NU in the 0NU state table in the operating state (Operation State) 0 (5) state, the recommended length is greater than or equal to 8 bytes; the first preamble is mainly 0LT
  • the preamble used for ranging between each 0NU corresponds to the leading length used by the 0NU in the state table defined by the 0NU in the ITU-G.987.3 standard in the Ranging State 0 (4) state.
  • the length of the first preamble is greater than the length of the second preamble.
  • the recommended length of the first preamble is at least greater than 8 bytes, and may be 32 bytes or 64 bytes, or bytes of other lengths.
  • the delimited field is used by the 0LT2 to delimit the frame of the received first uplink frame, indicating that the first uplink frame is started to be received.
  • the length of the field is not limited, and the recommended length may be 32 bits. Since the first uplink frame is a customized frame between 0LT1 or 0LT2 and each ONU, the delimiting field may also be used to distinguish the first uplink frame from other standard defined uplink frames, such that 0LT1 or After receiving the first uplink frame, the LT2 can recognize that the first uplink frame is used to detect the quality of the backup link.
  • the data field is used to send data information, and its length is not limited.
  • the check field is used to check the data information to reflect the link quality of the standby link. For example, by performing error correction on a data frame sent and received on the standby link, calculating a packet loss rate or a packet error rate of the standby link by using an algorithm, thereby measuring the link quality of the standby link, and There are many ways to verify the data information. The method is not limited to the above. Other methods such as forward error correction (FEC) or cyclic redundancy check (CRC) can be used. Applicable here, the main purpose is to measure the link quality of the standby link.
  • FEC forward error correction
  • CRC cyclic redundancy check
  • the first uplink frame is an uplink frame format customized according to a physical layer, and the first uplink frame is also in accordance with a P0N protocol or an XGP0N protocol, and can be transmitted in a P0N network or an XGP0N network, and is 0LT1 or 0LT2 and each A frame customized between 0NU for monitoring the quality of the alternate link, which can be received and parsed by 0LT1 or 0LT2.
  • the transceiver unit 604 is configured to periodically send the first uplink frame; or receive a first downlink frame sent by the first optical line terminal, where the first downlink frame indicates the The at least one optical network unit transmits the first uplink frame.
  • the first downlink frame may be a GTC frame, an XGTC frame, a customized frame, or a frame of another format.
  • the indication information in the first downlink frame where the indication information is information indicating that the 0NU sends the first uplink frame, may be carried in an extended field of a standard defined GTC frame or an XGTC frame.
  • the indication information may be that a downlink frame is newly defined between the 0LT and the 0NU at the physical layer, and the customized first downlink frame conforms to the P0N protocol or the XGP0N protocol, and the customized
  • the first downlink frame mainly carries the foregoing indication information, and the customized first downlink frame may also be parsed by each ONU.
  • the first preamble, the link quality delimiter, the data information, and the first check information are encapsulated into a first uplink frame by using a framing unit of the optical network unit;
  • the length of the first preamble is greater than the length of the second preamble for uplink service transmission,
  • the first verification information is verification information of the data information, and is sent by the transceiver unit of the optical network unit.
  • the first uplink frame solves the problem that in the existing optical network system, the second optical line terminal OLT2 cannot know the working status of the standby link in time, which may cause the data communication between the 0LT and the ONU to be interrupted after the active/standby switchover. Therefore, the second optical line terminal can obtain the link state information of the standby link in time, avoiding the impact on the normal service communication after the handover, and improving the user satisfaction.
  • the embodiment of the present invention further provides an optical line terminal, as shown in FIG. 7, wherein the position of the 0LT70 in the optical network system can be referred to as 0LT2 shown in FIG. 1 or FIG.
  • the 0LT70 includes:
  • the first transceiver unit 702 is configured to receive the first uplink frame sent by the at least one optical network unit, where the first uplink frame includes at least: a first preamble, a link quality delimiter, data information, and a a check information; the length of the first preamble is greater than a length of a second preamble for uplink service transmission, and the first check information is check information of the data information;
  • the parsing unit 704 is configured to perform frame synchronization and frame delimitation on the first uplink frame according to the first preamble and the link quality delimiter, and obtain data information and first check information by parsing;
  • the processing unit 706 is configured to determine, according to the data information obtained by the parsing and the first check information, a link quality of the standby link, where the standby link is the optical line terminal and the optical network The link between the units.
  • the specific alternate link may be the link between 0LT2 and the at least one ONU in the optical network system of Figures 1 and 2.
  • the length of the second preamble is greater than or equal to 8 bytes.
  • processing unit 706 specifically includes:
  • the second check information generating unit 7062 is configured to generate second check information according to the data information obtained by the parsing, and the determining unit 7064 is configured to: if the first check information and the second check information are not Similarly, it is determined that the link quality of the standby link is abnormal.
  • the first transceiver unit 702 is further configured to send a first downlink frame, where the first downlink frame indicates that the at least one optical network terminal sends the first uplink frame.
  • the first uplink frame sent by the at least one optical network unit by using the first preamble is received by the second optical line terminal, where the first uplink frame includes at least : First lead a code, a link quality delimiter, data information, and first check information; a length of the first preamble is greater than a length of a second preamble for uplink service transmission, and the first check information is The verification information of the data information; parsing the first uplink frame; obtaining the link quality of the standby link according to the parsed information of the parsed first uplink frame, and solving the problem in the optical network system
  • the second optical line terminal 0LT2 cannot know the working status of the standby link in time, which may cause the data communication between the 0LT and the ONU to be interrupted after the active/standby switchover, thereby ensuring that the second optical line terminal 0LT2 can know the standby chain in time.
  • the link state information of the road avoids the impact on the normal service communication
  • An embodiment of the present invention further relates to an optical network system.
  • the optical network system includes: a first optical line terminal 0LT1, a second optical line terminal 0LT2, and a plurality of optical network units 0NU1, ..., ONUn or 0NU1, ..., ONUn, ..., 0NUn+L.
  • a link between the 0LT1 and the at least one ONU is a primary link, and a link between the 0LT2 and the at least one ONU is a standby link. .
  • the at least one ONU is configured to encapsulate the first preamble, the link quality delimiter, the data information, and the first check information into a first uplink frame, where the length of the first preamble is greater than The length of the second preamble transmitted by the uplink service, the first check information is check information of the data information, and the first uplink frame is sent;
  • the 0LT2 is configured to receive a first uplink frame sent by the at least one optical network unit, and perform frame synchronization and a frame on the first uplink frame according to the first preamble and the link quality delimiter. And deciphering, obtaining the data information and the first check information; determining the link quality of the standby link according to the data information obtained by the parsing and the first check information.
  • the length of the second preamble is greater than or equal to 8 bytes.
  • the 0LT2 specifically includes:
  • a first transceiver unit configured to receive a first uplink frame sent by the at least one optical network unit, where the first uplink frame includes at least: a first preamble, a link quality delimiter, data information, and a first The length of the first preamble is greater than the length of the second preamble for uplink service transmission, and the first verification information is verification information of the data information;
  • a parsing unit configured to perform frame synchronization and frame delimitation on the first uplink frame according to the first preamble and the link quality delimiter, and parse and obtain data information and first check information;
  • a processing unit configured to determine, according to the data information obtained by the parsing and the first verification information, a link quality of the standby link.
  • processing unit specifically includes:
  • a second check information generating unit configured to generate second check information according to the data information obtained by the parsing
  • a determining unit configured to: if the first check information is different from the second check information, Determining the alternate link The link quality is abnormal.
  • the first transceiver unit is further configured to send a first downlink frame, where the first downlink frame indicates that the at least one optical network terminal sends the first uplink frame.
  • optical network unit specifically includes:
  • a framing unit configured to encapsulate the first preamble, the link quality delimiter, the data information, and the first check information into a first uplink frame, where the length of the first preamble is greater than that for uplink service transmission
  • the length of the second preamble, the first verification information is verification information of the data information
  • the second transceiver unit is configured to send the first uplink frame.
  • optical network unit further includes:
  • An obtaining unit configured to acquire the data information
  • the first check information generating unit is configured to generate the first check information according to the acquired data information.
  • a first preamble generating unit configured to generate a first preamble of a specific length, where a length of the first preamble is greater than a length of a second preamble for uplink service transmission, and a length of the second preamble is greater than or Equal to 8 bytes.
  • the framing unit is configured to encapsulate the first preamble in a preamble field of the first uplink frame, and encapsulate the link quality delimiter in the first uplink frame.
  • the delimiting field the data information is encapsulated in a data field of the first uplink frame, and the first check information is encapsulated in a check field of the first uplink frame to form the first uplink frame.
  • the second transceiver unit is configured to periodically send the first uplink frame; or receive the first downlink frame sent by the first optical line terminal, where the first downlink frame indicates The at least one optical network unit sends the first uplink frame.
  • the first preamble, the link quality delimiter, the data information, and the first check information are encapsulated into a first uplink frame by using at least one optical network unit;
  • the length of a preamble is greater than the length of the second preamble for uplink service transmission, the first verification information is verification information of the data information, and the first uplink frame is sent, so that the second optical line
  • the terminal can receive the first uplink frame, and determine the link quality of the standby link by parsing the uplink frame, so as to ensure that the second optical line terminal can obtain the link state information of the standby link in time, and avoid the switch after the switch.
  • the impact of normal business communications has increased user satisfaction.
  • the embodiment of the present invention further provides a computer system for signal processing, wherein the computer system adopts a general computer system structure, and the actions of the computer system to perform signal processing include: a first input device 800, configured to receive data;
  • a first output device 802 configured to send the data
  • the first memory 804 is configured to store a program, including:
  • the first transceiver 8042 is configured to receive the first uplink frame, where the first uplink frame includes: a first preamble, a link quality delimiter, data information, and first check information;
  • the length of the preamble is greater than the length of the second preamble for uplink service transmission, and the first verification information is verification information of the data information;
  • a frame parsing processor 8044 configured to perform frame synchronization and frame delimitation on the first uplink frame according to the first preamble and the link quality delimiter, and obtain data information and a first check by parsing Information: determining, according to the data information obtained by the parsing and the first verification information, a link quality of the standby link.
  • the first processor 806 is coupled to the first input device 800, the first output device 802, and the first memory 804 for controlling execution of the program.
  • the computer system may in particular be a processor based computer such as a general purpose personal computer (PC), a portable device such as a tablet computer, or a smart phone.
  • the computer system includes a bus, a first processor 806, a first memory 804, a communication interface 806, a first input device 800, and a first output device 802.
  • the bus can include a path to transfer information between various components of the computer.
  • the first processor 806 can be a general purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the inventive program.
  • the computer system also includes one or more memories, which may be read-only memory (ROM) or other types of static storage devices that store static information and instructions, random access memory (RAM) or may be stored. Other types of dynamic storage devices for information and instructions may also be disk storage. These memories are connected to the processor via a bus.
  • ROM read-only memory
  • RAM random access memory
  • Other types of dynamic storage devices for information and instructions may also be disk storage.
  • the first input device 800 includes a device for receiving data and information input or output by a user, such as a keyboard, a mouse, a camera, a scanner, a light pen, a voice input device, a touch screen, and the like.
  • the first output device 802 can include a device to allow output of information to a user, including a display screen, a printer, a speaker, and the like.
  • the computer system also includes a communication interface 808 that uses devices such as any transceiver to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Network (WLAN), and the like.
  • RAN Radio Access Network
  • WLAN Wireless Local Area Network
  • the first memory 804 such as a RAM, stores a program for executing the solution of the present invention, and may also store an operating system and other applications.
  • the stored program or program code for carrying out the inventive arrangement is stored in a memory and controlled by the processor for execution.
  • the program for executing the solution of the present invention in the first memory specifically includes a first transceiver 8042 and a frame parsing processor 8044.
  • the first transceiver 8042 is configured to receive the first uplink frame, where the first uplink frame includes: a first preamble, a link quality delimiter, data information, and first check information;
  • the length of the preamble is greater than the length of the second preamble for uplink service transmission, and the first verification information is verification information of the data information;
  • a frame parsing processor 8044 configured to perform frame synchronization and frame delimitation on the first uplink frame according to the first preamble and the link quality delimiter, and obtain data information and a first check by parsing Information: determining, according to the data information obtained by the parsing and the first verification information, a link quality of the standby link.
  • the signal processing computer system can be applied to 0LT2 as shown in FIG.
  • the embodiment of the present invention further provides a computer system for signal processing.
  • the computer system adopts a general computer system structure, and the actions of the computer system to perform signal processing include:
  • a second input device 1000 configured to receive data
  • the second memory 1004 is configured to store a program, including:
  • the framing processor 10042 is configured to encapsulate the first preamble, the link quality delimiter, the data information, and the first check information into a first uplink frame, where the length of the first preamble is greater than The length of the second preamble of the service transmission, where the first verification information is verification information of the data information;
  • the second transceiver 10044 is configured to send the first uplink frame.
  • the second processor 1006 is coupled to the second input device, the second output device, and the second memory for controlling execution of the program.
  • the computer system may in particular be a processor based computer such as a general purpose personal computer (PC), a portable device such as a tablet computer, or a smart phone.
  • the computer system includes a bus, a processor, a memory, a communication interface, an input device, and an output device.
  • the bus can include a path to transfer information between various components of the computer.
  • the second processor may be a general purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present invention.
  • the computer system also includes one or more memories, which may be read-only memory (ROM) or other types of static storage devices that store static information and instructions, random access memory (RAM) or may be stored. Other types of dynamic storage devices for information and instructions may also be disk storage. These memories are connected to the processor via a bus.
  • the first input device 1000 includes a device for receiving data and information input or output by a user, such as a keyboard, a mouse, a camera, a scanner, a light pen, a voice input device, a touch screen, and the like.
  • the first output device 1002 can include a device to allow output of information to a user, including a display screen, a printer, a speaker, and the like.
  • the computer system also includes a communication interface 1008 that uses devices such as any transceiver to communicate with other devices or communication networks, such as Ethernet Network, radio access network (RAN), wireless local area network (WLAN), etc.
  • RAN radio access network
  • WLAN wireless local area network
  • the second memory 1004 such as RAM, stores a program for executing the solution of the present invention, and may also store an operating system and other applications.
  • the stored program or program code for carrying out the inventive arrangement is stored in a memory and controlled by the processor for execution.
  • the program for carrying out the solution of the present invention in the first memory as shown in FIG. 11 specifically includes a framing processor 10042 and a second transceiver 10044. (Note, the purpose of this section is to further refine the device associated with the invention, which can be subdivided according to different situations)
  • the framing processor 10042 is configured to encapsulate the first preamble, the link quality delimiter, the data information, and the first check information into a first uplink frame, where the length of the first preamble is greater than The length of the second preamble transmitted by the uplink service, where the first check information is check information of the data information;
  • the second transceiver 10044 is configured to send the first uplink frame.
  • the signal processing computer system can be applied to any of the optical network units as shown in FIG. 1 or FIG. 2.
  • Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another.
  • a storage medium may be any available media that can be accessed by a computer.
  • the computer readable medium can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage media or other magnetic storage device, or can be used to carry or store an instruction or data structure.
  • connection may suitably be a computer readable medium.
  • the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave
  • coaxial cable , fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, wireless, and microwaves are included in the fixing of the associated media.
  • a disk and a disc include a compact disc (CD), a laser disc, a compact disc, a digital versatile disc (DVD), a floppy disc, and a Blu-ray disc, wherein the disc is usually magnetically copied, and the disc is The laser is used to optically replicate the data. Combinations of the above should also be included within the scope of the computer readable media.

Landscapes

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

Abstract

Provided are a method for data communication in an optical network system, a system and a device. A first preamble, a link quality delimiter, data information and first check information are packaged into a first uplink frame through at least one optical network unit, wherein the length of the first preamble is more than the length of a second preamble for uplink service transmission, and the first check information is check information about the data information, and the first uplink frame is transmitted, so that a second optical line terminal can receive the first uplink frame and determine the link quality of a standby link by parsing the uplink frame, thereby ensuring that the second optical line terminal can learn link state information about the standby link in time, avoiding the impact on normal service communication after switching and improving the degree of user satisfaction.

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, ONU) 和光分配网 ( 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 (ONU), and an optical distribution network (ODN), wherein the optical distribution network includes a backbone optical fiber. Passive optical splitter and branch fiber. 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在 0LT指定的时隙发送上行数据报文; 而下行方向 0LT采用时分复用 (Time Division Multiplexing, TDM) 广播方式向各 ONU发送下行数据报文, 承载有所有 0NU的下行 数据报文的光信号在 0DN的光分路器处被分成若干份, 经各分支光纤到达各 0NU。  The uplink direction of the P0N system is usually a Time Division Multiple Address (TDMA) multiplexing mode. Each ONU sends an uplink data packet in the time slot specified by the 0LT. The downlink direction 0LT uses Time Division Multiplexing (TDM). The broadcast mode sends downlink data packets to the ONUs. 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.
其中, 在 GPON ( gigabit-capable passive optical network, 千兆比特无源光网络) 系统或者下一代 GPON系统即 XGP0N系统, 例如 10G GP0N系统或者 40G GP0N系统中, 关于 type B 的主备保护的应用场景下, 主用 0LT与备用 0LT分别通过各自端口与至少一个 0NU进行数据通 信。 当光纤链路出现故障, 则主用 0LT会检测到 LOS (lost of signal , 信号丢失) 告警; 主用 0LT检测到 L0S告警后, 进行主用 0LT与备用 0LT之间的切换, 将所有的 0NU切换到备用 0LT上, 原来的备用 0LT切换成为主用 0LT, 通过备用链路, 恢复 0LT与各 0NU之间的数据通信。  The application scenario of the active/standby protection of the type B in the GPON (gigabit-capable passive optical network) system or the next-generation GPON system, that is, the XGP0N system, such as the 10G GP0N system or the 40G GP0N system. Next, the primary 0LT and the standby 0LT respectively communicate data with at least one ONU through respective ports. When the fiber link fails, the primary 0LT will detect the LOS (lost of signal) alarm; after the primary 0LT detects the L0S alarm, the primary 0LT and the standby 0LT are switched, and all 0NUs are used. Switching to the standby 0LT, the original standby 0LT is switched to become the primary 0LT, and the data communication between the 0LT and each ONU is restored through the standby link.
目前, 在 P0N系统的 type B应用场景中, 备用 0LT无法获知自身备用链路的链路状态信息, 若备用链路的链路质量异常等不适合进行数据通信, 例如: 备用链路的丢包率高导致链路质 量异常等, 主用 0LT仍然将主用链路切换到备用链路, 将导致主备切换失败, 0LT与 0NU之间的 通信中断。 因此, 备用 0LT如何获得备用链路的链路状态信息成为目前 P0N系统中 type B主备 保护的应用场景中亟待解决的问题。 Currently, in the type B application scenario of the P0N system, the standby 0LT cannot obtain the link state information of the standby link. If the link quality of the standby link is abnormal, the data is not suitable for data communication. For example, packet loss of the standby link. If the rate is high, the link quality is abnormal. The primary 0LT still switches the active link to the standby link, which will cause the active/standby switchover to fail. The communication between 0LT and ONU is interrupted. Therefore, how the standby 0LT obtains the link state information of the standby link becomes the type B active and standby in the current P0N system. Problems to be solved in the protected application scenario.
发明内容 Summary of the invention
有鉴于此, 本发明实施例提供了一种光网络系统的通信方法、 系统以及装置, 用于解决 现有光网络系统中备用 0LT无法及时获知自身备用链路的工作状态,导致主备切换后可能引起 0LT与 0NU之间的数据通信中断的问题, 从而保证了备用 0LT及时获知备用链路的链路状态信 息, 避免了切换后对正常业务通信的影响, 提高了用户的满意程度。  In view of the above, the embodiments of the present invention provide a communication method, a system, and a device for an optical network system, which are used to solve the working state of the standby link in the existing optical network system. It may cause the problem of data communication interruption between 0LT and 0NU, thus ensuring that the standby 0LT knows the link state information of the standby link in time, avoids the impact on the normal service communication after the handover, and improves the user satisfaction.
第一方面,本发明提供一种光网络系统的通信方法,所述通信方法应用在光网络系统中, 所述光网络系统至少包括第一光线路终端、 第二光线路终端以及多个光网络单元, 所述第一 光线路终端与所述至少一个光网络单元之间的链路为主用链路, 所述第二光线路终端与所述 至少一个光网络单元之间的链路为备用链路, 所述通信方法包括:  In a first aspect, the present invention provides a communication method of an optical network system, where the communication method is applied in an optical network system, where the optical network system includes at least a first optical line terminal, a second optical line terminal, and multiple optical networks. a link between the first optical line terminal and the at least one optical network unit as a primary link, and a link between the second optical line terminal and the at least one optical network unit is a backup Link, the communication method includes:
所述第二光线路终端接收所述至少一个光网络单元发送的第一上行帧; 其中, 所述第一 上行帧至少包括: 第一前导码、 链路质量定界符、 数据信息以及第一校验信息; 所述第一前 导码的长度大于用于上行业务传输的第二前导码的长度, 所述第一校验信息是所述数据信息 的校验信息;  The second optical line terminal receives the first uplink frame sent by the at least one optical network unit, where the first uplink frame includes at least: a first preamble, a link quality delimiter, data information, and a first The length of the first preamble is greater than the length of the second preamble for uplink service transmission, and the first verification information is verification information of the data information;
所述第二光线路终端根据所述第一前导和所述链路质量定界符, 对所述第一上行帧进行 帧的同步和帧的定界, 解析获得数据信息和第一校验信息;  The second optical line terminal performs frame synchronization and frame delimitation on the first uplink frame according to the first preamble and the link quality delimiter, and parses and obtains data information and first check information. ;
所述第二光线路终端根据所述解析获得的数据信息和第一校验信息, 确定所述备用链路 的链路质量。  The second optical line terminal determines the link quality of the standby link according to the data information obtained by the parsing and the first verification information.
在第一方面的第一种可能的实现方式中, 所述第二前导码的长度大于或者等于 8个字节。 结合第一方面或第一方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述 第二光线路终端根据所述解析获得的数据信息和第一校验信息, 确定所述备用链路的链路质 量包括:  In a first possible implementation manner of the first aspect, the length of the second preamble is greater than or equal to 8 bytes. With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner, the second optical line terminal determines, according to the data information obtained by the parsing and the first verification information, The link quality of the standby link includes:
所述第二光线路终端根据所述解析获得的数据信息, 生成第二校验信息;  The second optical line terminal generates second verification information according to the data information obtained by the parsing;
若所述第一校验信息与所述第二校验信息不相同, 确定所述备用链路的链路质量为异 常。  If the first check information is different from the second check information, determining that the link quality of the standby link is abnormal.
结合第一方面、 第一方面的第一种可能的实现方式或者第一方面的第二种可能的实现方 式中, 在第三种可能的实现方式中, 所述通信方法还包括:  In conjunction with the first aspect, the first possible implementation of the first aspect, or the second possible implementation of the first aspect, in a third possible implementation, the communications method further includes:
发送第一下行帧, 所述第一下行帧指示所述至少一个光网络终端发送所述第一上行帧。 第二方面, 本发明提供了一种光网络系统的通信方法, 所述通信方法应用在光网络系统 中, 所述光网络系统包括第一光线路终端、 第二光线路终端以及多个光网络单元, 所述第一 光线路终端与所述至少一个光网络单元之间的链路为主用链路, 所述第二光线路终端与所述 至少一个光网络单元之间的链路为备用链路, 所述通信方法包括: Sending a first downlink frame, where the first downlink frame indicates that the at least one optical network terminal sends the first uplink frame. In a second aspect, the present invention provides a communication method of an optical network system, where the communication method is applied in an optical network system, where the optical network system includes a first optical line terminal, a second optical line terminal, and multiple optical networks. Unit, the first a link between the optical line terminal and the at least one optical network unit is a primary link, and a link between the second optical line terminal and the at least one optical network unit is a standby link, and the communication is Methods include:
所述光网络单元将第一前导码、 链路质量定界符、 数据信息以及第一校验信息封装成第 一上行帧; 其中, 所述第一前导码的长度大于用于上行业务传输的第二前导码的长度, 所述 第一校验信息是所述数据信息的校验信息;  The optical network unit encapsulates the first preamble, the link quality delimiter, the data information, and the first check information into a first uplink frame, where the length of the first preamble is greater than that used for uplink service transmission. a length of the second preamble, where the first verification information is verification information of the data information;
所述光网络单元发送所述第一上行帧。  The optical network unit sends the first uplink frame.
在第二方面的第一种可能的实现方式中, 所述通信方法还包括:  In a first possible implementation manner of the second aspect, the communications method further includes:
所述光网络单元获取所述数据信息;  The optical network unit acquires the data information;
所述光网络单元根据所述获取的数据信息生成所述第一校验信息;  The optical network unit generates the first verification information according to the acquired data information;
所述光网络单元生成特定长度的第一前导码, 所述第一前导码的长度大于用于上行业务 传输的第二前导码的长度, 所述第二前导码的长度大于或者等于 8个字节。  The optical network unit generates a first preamble of a specific length, the length of the first preamble is greater than a length of a second preamble for uplink traffic transmission, and the length of the second preamble is greater than or equal to 8 words Section.
结合第二方面或第二方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述 光网络单元将第一前导码、 链路质量定界符、 数据信息以及第一校验信息封装成第一上行帧 具体包括:  With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner, the optical network unit, the first preamble, the link quality delimiter, the data information, and the first The encapsulating the verification information into the first uplink frame specifically includes:
所述光网络单元将所述第一前导码封装在所述第一上行帧的前导码域, 将所述链路质量 定界符封装在所述第一上行帧的定界域, 将所述数据信息封装在所述第一上行帧的数据域, 将所述第一校验信息封装在所述第一上行帧的校验域, 形成所述第一上行帧。  The optical network unit encapsulates the first preamble in a preamble field of the first uplink frame, and encapsulates the link quality delimiter in a bounding field of the first uplink frame, where The data information is encapsulated in a data field of the first uplink frame, and the first check information is encapsulated in a check field of the first uplink frame to form the first uplink frame.
结合第二方面、 第二方面的第一种可能的实现方式或者第二方面的第二种可能的实现方 式, 在第三种可能的实现方式中, 所述光网络单元发送所述第一上行帧具体包括:  With reference to the second aspect, the first possible implementation manner of the second aspect, or the second possible implementation manner of the second aspect, in a third possible implementation manner, the optical network unit sends the first uplink The frame specifically includes:
周期性地发送所述第一上行帧; 或者,  Transmitting the first uplink frame periodically; or
接收所述第一光线路终端发送的第一下行帧, 所述第一下行帧指示所述至少一个光网络 单元发送所述第一上行帧;  Receiving, by the first optical line terminal, a first downlink frame, where the first downlink frame indicates that the at least one optical network unit sends the first uplink frame;
根据所述第一下行帧的指示, 发送所述第一上行帧。  And transmitting, according to the indication of the first downlink frame, the first uplink frame.
第三方面, 本发明提供了一种光线路终端, 所述光线路终端包括:  In a third aspect, the present invention provides an optical line terminal, where the optical line terminal includes:
第一收发单元, 用于接收所述至少一个光网络单元发送的第一上行帧; 其中, 所述第一 上行帧至少包括: 第一前导码、 链路质量定界符、 数据信息以及第一校验信息; 所述第一前 导码的长度大于用于上行业务传输的第二前导码的长度, 所述第一校验信息是所述数据信息 的校验信息;  a first transceiver unit, configured to receive a first uplink frame sent by the at least one optical network unit, where the first uplink frame includes at least: a first preamble, a link quality delimiter, data information, and a first The length of the first preamble is greater than the length of the second preamble for uplink service transmission, and the first verification information is verification information of the data information;
解析单元, 用于根据所述第一前导和所述链路质量定界符, 对所述第一上行帧进行帧的 同步和帧的定界, 解析获得数据信息和第一校验信息;  a parsing unit, configured to perform frame synchronization and frame delimitation on the first uplink frame according to the first preamble and the link quality delimiter, and parse and obtain data information and first check information;
处理单元, 用于根据所述解析获得的数据信息和第一校验信息, 确定所述备用链路的链 路质量。 a processing unit, configured to determine, according to the data information obtained by the parsing and the first verification information, a chain of the standby link Road quality.
在第三方面的第一种可能的实现方式中, 所述第二前导码的长度大于或者等于 8个字节。 结合第三方面或第三方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述 处理单元具体包括:  In a first possible implementation manner of the third aspect, the length of the second preamble is greater than or equal to 8 bytes. With the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation, the processing unit specifically includes:
第二校验信息生成单元, 用于根据所述解析获得的数据信息, 生成第二校验信息; 确定单元, 用于若所述第一校验信息与所述第二校验信息不相同, 确定所述备用链路的 链路质量为异常。  a second check information generating unit, configured to generate second check information according to the data information obtained by the parsing, and a determining unit, configured to: if the first check information is different from the second check information, Determining that the link quality of the standby link is abnormal.
结合第三方面、 第三方面的第一种可能的实现方式或者第三方面的第二种可能的实现方 式, 在第三方面的第三种可能的实现方式中, 所述第一收发单元, 还用于发送第一下行帧, 所述第一下行帧指示所述至少一个光网络终端发送所述第一上行帧。  With reference to the third aspect, the first possible implementation manner of the third aspect, or the second possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect, the first transceiver unit, And being used to send the first downlink frame, where the first downlink frame indicates that the at least one optical network terminal sends the first uplink frame.
第四方面, 本发明提供了一种光网络单元, 所述光网络单元包括:  In a fourth aspect, the present invention provides an optical network unit, where the optical network unit includes:
成帧单元, 用于将第一前导码、 链路质量定界符、 数据信息以及第一校验信息封装成第 一上行帧; 其中, 所述第一前导码的长度大于用于上行业务传输的第二前导码的长度, 所述 第一校验信息是所述数据信息的校验信息;  a framing unit, configured to encapsulate the first preamble, the link quality delimiter, the data information, and the first check information into a first uplink frame, where the length of the first preamble is greater than that for uplink service transmission The length of the second preamble, the first verification information is verification information of the data information;
第二收发单元, 用于发送所述第一上行帧。  The second transceiver unit is configured to send the first uplink frame.
结合第四方面, 在第四方面的第一种可能的实现方式中, 所述光网络单元还包括: 获取单元, 用于获取所述数据信息;  With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the optical network unit further includes: an acquiring unit, configured to acquire the data information;
第一校验信息生成单元, 用于根据所述获取的数据信息生成所述第一校验信息。  The first check information generating unit is configured to generate the first check information according to the acquired data information.
第一前导码生成单元, 用于生成特定长度的第一前导码, 所述第一前导码的长度大于用 于上行业务传输的第二前导码的长度, 所述第二前导码的长度大于或者等于 8个字节。  a first preamble generating unit, configured to generate a first preamble of a specific length, where a length of the first preamble is greater than a length of a second preamble for uplink service transmission, and a length of the second preamble is greater than or Equal to 8 bytes.
结合第四方面或者第四方面的第一种可能的实现方式中, 第二种可能实现的方式中所述 成帧单元, 具体用于将所述第一前导码封装在所述第一上行帧的前导码域, 将所述链路质量 定界符封装在所述第一上行帧的定界域, 将所述数据信息封装在所述第一上行帧的数据域, 将所述第一校验信息封装在所述第一上行帧的校验域, 形成所述第一上行帧。  With reference to the fourth aspect, or the first possible implementation manner of the fourth aspect, the framing unit is configured to encapsulate the first preamble in the first uplink frame. a preamble field, the link quality delimiter is encapsulated in a delimiting field of the first uplink frame, and the data information is encapsulated in a data field of the first uplink frame, where the first school is The verification information is encapsulated in a check field of the first uplink frame to form the first uplink frame.
结合第四方面、 第四方面的第一种可能的实现方式或者第四方面的第二种可能实现的方 式, 在第四方面的第三种可能的实现方式中, 所述第二收发单元, 具体用于周期性地发送所 述第一上行帧; 或者, 接收所述第一光线路终端发送的第一下行帧, 所述第一下行帧指示所 述至少一个光网络单元发送所述第一上行帧。  With reference to the fourth aspect, the first possible implementation manner of the fourth aspect, or the second possible implementation manner of the fourth aspect, in a third possible implementation manner of the fourth aspect, the second transceiver unit, Specifically, the first uplink frame is periodically sent; or the first downlink frame sent by the first optical line terminal is received, where the first downlink frame instructs the at least one optical network unit to send the The first upstream frame.
第五方面, 本发明提供了一种光网络系统, 所述光网络系统包括: 第一光线路终端、 第 二光线路终端以及多个光网络单元, 所述第一光线路终端与所述至少一个光网络单元之间的 链路为主用链路, 所述第二光线路终端与所述至少一个光网络单元之间的链路为备用链路, 所述至少一个光网络单元, 用于将第一前导码、 链路质量定界符、 数据信息以及第一校验信 息封装成第一上行帧; 其中, 所述第一前导码的长度大于用于上行业务传输的第二前导码的 长度, 所述第一校验信息是所述数据信息的校验信息; 并发送所述第一上行帧; In a fifth aspect, the present invention provides an optical network system, where the optical network system includes: a first optical line terminal, a second optical line terminal, and a plurality of optical network units, the first optical line terminal and the at least a link between the optical network units is a primary link, and a link between the second optical line terminal and the at least one optical network unit is a standby link. The at least one optical network unit is configured to encapsulate the first preamble, the link quality delimiter, the data information, and the first check information into a first uplink frame, where the length of the first preamble is greater than a length of the second preamble transmitted by the uplink service, where the first check information is check information of the data information; and sending the first uplink frame;
所述第二光线路终端, 用于接收所述至少一个光网络单元发送的第一上行帧; 根据所述 第一前导和所述链路质量定界符, 对所述第一上行帧进行帧的同步和帧的定界, 解析获得数 据信息和第一校验信息; 根据所述解析获得的数据信息和第一校验信息, 确定所述备用链路 的链路质量。  The second optical line terminal is configured to receive a first uplink frame sent by the at least one optical network unit, and perform frame on the first uplink frame according to the first preamble and the link quality delimiter The synchronization and the delimitation of the frame, the data information and the first verification information are obtained by parsing; and the link quality of the standby link is determined according to the data information obtained by the parsing and the first verification information.
结合第五方面, 在第五方面的第一种可能的实现方式中, 所述第二前导码的长度大于或 者等于 8个字节。  In conjunction with the fifth aspect, in a first possible implementation manner of the fifth aspect, the length of the second preamble is greater than or equal to 8 bytes.
结合第五方面或者第五方面的第一种可能的实现方式, 在第五方面的第二种可能的实现 方式中, 所述第二光线路终端具体包括:  With reference to the fifth aspect, or the first possible implementation manner of the fifth aspect, in the second possible implementation manner of the fifth aspect, the second optical line terminal specifically includes:
第一收发单元, 用于接收所述至少一个光网络单元发送的第一上行帧; 其中, 所述第一 上行帧至少包括: 第一前导码、 链路质量定界符、 数据信息以及第一校验信息; 所述第一前 导码的长度大于用于上行业务传输的第二前导码的长度, 所述第一校验信息是所述数据信息 的校验信息;  a first transceiver unit, configured to receive a first uplink frame sent by the at least one optical network unit, where the first uplink frame includes at least: a first preamble, a link quality delimiter, data information, and a first The length of the first preamble is greater than the length of the second preamble for uplink service transmission, and the first verification information is verification information of the data information;
解析单元, 用于根据所述第一前导和所述链路质量定界符, 对所述第一上行帧进行帧的 同步和帧的定界, 解析获得数据信息和第一校验信息;  a parsing unit, configured to perform frame synchronization and frame delimitation on the first uplink frame according to the first preamble and the link quality delimiter, and parse and obtain data information and first check information;
处理单元, 用于根据所述解析获得的数据信息和第一校验信息, 确定所述备用链路的链 路质量。  And a processing unit, configured to determine, according to the data information obtained by the parsing and the first verification information, a link quality of the standby link.
结合第五方面、 第五方面的第一种可能的实现方式或者第五方面的第二种可能的实现方 式, 在第五方面的第三种可能的实现方式中, 所述处理单元具体包括:  With reference to the fifth aspect, the first possible implementation manner of the fifth aspect, or the second possible implementation manner of the fifth aspect, in a third possible implementation manner of the fifth aspect, the processing unit specifically includes:
第二校验信息生成单元, 用于根据所述解析获得的数据信息, 生成第二校验信息; 确定单元, 用于若所述第一校验信息与所述第二校验信息不相同, 确定所述备用链路的 链路质量为异常。  a second check information generating unit, configured to generate second check information according to the data information obtained by the parsing, and a determining unit, configured to: if the first check information is different from the second check information, Determining that the link quality of the standby link is abnormal.
结合第五方面、 第五方面的第一种可能的实现方式、 第五方面的第二种可能的实现方式 或者第五方面的第三种可能的实现方式, 在第五方面的第四种可能的实现方式中, 所述第一 收发单元, 还用于发送第一下行帧, 所述第一下行帧指示所述至少一个光网络终端发送所述 第一上行帧。  In combination with the fifth aspect, the first possible implementation of the fifth aspect, the second possible implementation of the fifth aspect, or the third possible implementation of the fifth aspect, the fourth possibility in the fifth aspect In the implementation manner, the first transceiver unit is further configured to send a first downlink frame, where the first downlink frame indicates that the at least one optical network terminal sends the first uplink frame.
结合第五方面或者第五方面的第一种可能的实现方式, 在第五方面的第五种可能的实现 方式中, 所述光网络单元具体包括:  With reference to the fifth aspect, or the first possible implementation manner of the fifth aspect, in the fifth possible implementation manner of the fifth aspect, the optical network unit specifically includes:
成帧单元, 用于将第一前导码、 链路质量定界符、 数据信息以及第一校验信息封装成第 一上行帧; 其中, 所述第一前导码的长度大于用于上行业务传输的第二前导码的长度, 所述 第一校验信息是所述数据信息的校验信息; a framing unit, configured to encapsulate the first preamble, the link quality delimiter, the data information, and the first check information into a first An uplink frame, where the length of the first preamble is greater than a length of a second preamble for uplink service transmission, and the first verification information is verification information of the data information;
第二收发单元, 用于发送所述第一上行帧。  The second transceiver unit is configured to send the first uplink frame.
结合第五方面、 第五方面的第一种可能的实现方式或者第五方面的第五种可能的实现方 式, 在第五方面的第六种可能的实现方式中, 所述光网络单元还包括:  With reference to the fifth aspect, the first possible implementation manner of the fifth aspect, or the fifth possible implementation manner of the fifth aspect, in a sixth possible implementation manner of the fifth aspect, the optical network unit further includes :
获取单元, 用于获取所述数据信息;  An obtaining unit, configured to acquire the data information;
第一校验信息生成单元, 用于根据所述获取的数据信息生成所述第一校验信息。  The first check information generating unit is configured to generate the first check information according to the acquired data information.
第一前导码生成单元, 用于生成特定长度的第一前导码, 所述第一前导码的长度大于用 于上行业务传输的第二前导码的长度, 所述第二前导码的长度大于或者等于 8个字节。  a first preamble generating unit, configured to generate a first preamble of a specific length, where a length of the first preamble is greater than a length of a second preamble for uplink service transmission, and a length of the second preamble is greater than or Equal to 8 bytes.
结合第五方面、 第五方面的第一种可能的实现方式、 第五方面的第五种可能的实现方式 或者第五方面的第六种可能的实现方式, 在第五方面的第七种可能的实现方式中, 所述成帧 单元, 具体用于将所述第一前导码封装在所述第一上行帧的前导码域, 将所述链路质量定界 符封装在所述第一上行帧的定界域, 将所述数据信息封装在所述第一上行帧的数据域, 将所 述第一校验信息封装在所述第一上行帧的校验域, 形成所述第一上行帧。  With reference to the fifth aspect, the first possible implementation manner of the fifth aspect, the fifth possible implementation manner of the fifth aspect, or the sixth possible implementation manner of the fifth aspect, the seventh possibility in the fifth aspect The framing unit is configured to encapsulate the first preamble in a preamble field of the first uplink frame, and encapsulate the link quality delimiter on the first uplink. Encapsulating the data in the data field of the first uplink frame, and encapsulating the first check information in a check field of the first uplink frame to form the first uplink frame.
结合第五方面、第五方面的第一种可能的实现方式、第五方面的第五种可能的实现方式、 第五方面的第六种可能的实现方式或者第五方面的第七种可能的实现方式, 在第五方面的第 八种可能的实现方式中, 所述第二收发单元, 具体用于周期性地发送所述第一上行帧; 或者, 接收所述第一光线路终端发送的第一下行帧, 所述第一下行帧指示所述至少一个光网络单元 发送所述第一上行帧。  With reference to the fifth aspect, the first possible implementation manner of the fifth aspect, the fifth possible implementation manner of the fifth aspect, the sixth possible implementation manner of the fifth aspect, or the seventh possible aspect of the fifth aspect In an eighth implementation manner of the fifth aspect, the second transceiver unit is configured to periodically send the first uplink frame; or receive the first optical line terminal to send a first downlink frame, where the first downlink frame indicates that the at least one optical network unit sends the first uplink frame.
第六方面, 本发明提供了一种信号处理的计算机系统, 所述计算机系统执行信号处理的 动作包括:  In a sixth aspect, the present invention provides a computer system for signal processing, the actions of the computer system performing signal processing include:
第一输入设备, 用于接收数据;  a first input device, configured to receive data;
第一输出设备, 用于发送所述数据;  a first output device, configured to send the data;
第一存储器, 用于存储程序, 包括:  The first memory is used to store the program, including:
第一收发器, 用于接收第一上行帧; 其中, 所述第一上行帧至少包括: 第一前导码、 链路质量定界符、 数据信息以及第一校验信息; 所述第一前导码的长度大于用于上行业务传 输的第二前导码的长度, 所述第一校验信息是所述数据信息的校验信息;  a first transceiver, configured to receive a first uplink frame, where the first uplink frame includes: a first preamble, a link quality delimiter, data information, and first verification information; The length of the code is greater than the length of the second preamble for the uplink service transmission, and the first check information is the check information of the data information;
帧解析处理器, 用于根据所述第一前导和所述链路质量定界符, 对所述第一上行帧 进行帧的同步和帧的定界, 解析获得数据信息和第一校验信息; 根据所述解析获得的数据信 息和第一校验信息, 确定所述备用链路的链路质量。  a frame parsing processor, configured to perform frame synchronization and frame delimitation on the first uplink frame according to the first preamble and the link quality delimiter, and obtain data information and first check information by parsing And determining, according to the data information obtained by the parsing and the first check information, a link quality of the standby link.
第一处理器, 与所述第一输入设备、 所述第一输出设备和所述第一存储器相耦合, 用于 控制执行所述程序。 a first processor coupled to the first input device, the first output device, and the first memory, for Control execution of the program.
第七方面, 本发明提供了一种信号处理的计算机系统, 所述计算机系统执行信号处理的 动作包括:  In a seventh aspect, the present invention provides a computer system for signal processing, and the actions of the computer system to perform signal processing include:
第二输入设备, 用于接收数据;  a second input device, configured to receive data;
第二输出设备, 用于发送所述数据;  a second output device, configured to send the data;
第二存储器, 用于存储程序, 包括:  a second memory for storing the program, comprising:
成帧处理器, 用于将第一前导码、 链路质量定界符、 数据信息以及第一校验信息封 装成第一上行帧; 其中, 所述第一前导码的长度大于用于上行业务传输的第二前导码的长度, 所述第一校验信息是所述数据信息的校验信息;  a framing processor, configured to encapsulate the first preamble, the link quality delimiter, the data information, and the first check information into a first uplink frame, where the length of the first preamble is greater than that for the uplink service a length of the transmitted second preamble, where the first verification information is verification information of the data information;
第二收发器, 用于发送所述第一上行帧。  The second transceiver is configured to send the first uplink frame.
第二处理器, 与所述第二输入设备、 所述第二输出设备和所述第二存储器相耦合, 用于 控制执行所述程序。  And a second processor coupled to the second input device, the second output device, and the second memory for controlling execution of the program.
通过上述方案, 至少一个光网络单元将第一前导码、 链路质量定界符、 数据信息以及第 一校验信息封装成第一上行帧; 其中, 所述第一前导码的长度大于用于上行业务传输的第二 前导码的长度, 所述第一校验信息是所述数据信息的校验信息, 并发送所述第一上行帧, 使 得第二光线路终端能够接收所述第一上行帧, 通过解析该上行帧, 确定备用链路的链路质量, 解决了光网络系统中第二光线路终端无法及时获知自身备用链路的工作状态, 导致主备切换 后仍然出现数据通信中断的问题, 从而保证了第二光线路终端能够及时获知备用链路的链路 状态信息, 避免了切换后对正常业务通信的影响, 提高了用户的满意程度。 附图说明 为了更清楚地说明本发明实施例的技术方案, 下面将对实施例描述中所需要使用的附图 作简单地介绍。 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于本领域普 通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。  The at least one optical network unit encapsulates the first preamble, the link quality delimiter, the data information, and the first check information into a first uplink frame, where the length of the first preamble is greater than The length of the second preamble transmitted by the uplink service, the first check information is check information of the data information, and the first uplink frame is sent, so that the second optical line terminal can receive the first uplink By analyzing the uplink frame and determining the link quality of the standby link, the second optical line terminal in the optical network system cannot know the working status of the standby link in time, and the data communication is still interrupted after the active/standby switchover. The problem is to ensure that the second optical line terminal can know the link state information of the standby link in time, avoiding the impact on the normal service communication after the handover, and improving the 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 embodiments of the present invention, and other drawings can be obtained from those skilled in the art without departing from the drawings.
图 1为一种光网络系统的结构示意图;  1 is a schematic structural view of an optical network system;
图 2为另一种光网络系统的结构示意图;  2 is a schematic structural diagram of another optical network system;
图 3为一种光网络系统的数据通信方法的流程图;  3 is a flow chart of a data communication method of an optical network system;
图 4为第一上行帧的帧结构示意图;  4 is a schematic diagram of a frame structure of a first uplink frame;
图 5为一种光网络系统的数据通信方法的流程图;  5 is a flow chart of a data communication method of an optical network system;
图 6为一种光网络单元的结构示意图; 图 7为一种光线路终端的结构示意图; 6 is a schematic structural diagram of an optical network unit; 7 is a schematic structural view of an optical line terminal;
图 8为一种计算机系统的结构示意图;  8 is a schematic structural diagram of a computer system;
图 9为一种第一存储器的结构示意图;  9 is a schematic structural diagram of a first memory;
图 10为另一种计算机系统的结构示意图;  Figure 10 is a schematic structural view of another computer system;
图 11为一种第二存储器的结构示意图。 具体实施方式 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描 述。 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明 中的实施例, 本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  11 is a schematic structural diagram of a second memory. 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所示, 所述光网络系统 包括: 第一光线路终端 0LT1、 第二光线路终端 0LT2以及多个光网络单元 0NU, 所述多个光网络 单元分别为: 0NU1, 0NU2...0NUn (n为大于或等于 1的整数)。 其中, 所述 0LT1与所述 0LT2分别 通过光分配网 0DN与所述各 0NU连接, 所述 0DN中包括至少一个分光器 Splitter。  FIG. 1 is a schematic structural diagram of an optical network system according to an embodiment of the present invention. As shown in FIG. 1 , the optical network system includes: a first optical line terminal OLT1, a second optical line terminal OLT2, and a plurality of optical network units ONU, wherein the plurality of optical network units are: 0NU1, 0NU2... 0NUn (n is an integer greater than or equal to 1). The 0LT1 and the 0LT2 are respectively connected to the 0NUs through the optical distribution network 0DN, and the 0DN includes at least one splitter Splitter.
具体结构为: 0LT1与 0LT2均通过 Splitter与 0NU1...0NUn连接。 其中, 所述第一 0LT1与所 述 各 0NU 之 间 的 链 路 为 主 用 链 路 , 例 如 , 主 用 链 路 为 : 0LTl→Splitter→0NUl, ..., 0LT1→ Splitter→0NUno所述 0LT2与所述各 ONU之间的链路为备 用链路, 例如, 备用链路为: 0LT2→Splitter→0NUl, ..., 0LT2→Splitter→0NUn。 其中, 上行方向为: 各 0NU到 0LT1的方向或者各 0NU到 0LT2的方向; 所述第一上行帧为至少一个 0NU 发送给 0LT2的数据帧 (或者为至少一个 0NU发送给 0LT1的数据帧); 下行方向为: 0LT1 , 到各 0NU的方向, 或者, 0LT2到各 0NU的方向; 所述第一下行帧为 0LT1发送给各 0NU的数据帧。 所述 0LT1可以为主用 0LT, 所述 0LT2可以为备用 0LT。 The specific structure is: 0LT1 and 0LT2 are connected to 0NU1...0NUn through Splitter. The link between the first OLT1 and each of the ONUs is a primary link, for example, the primary link is: 0LT1→Splitter→0NUl, ..., 0LT1→ Splitter→0NUn o 0LT2 The link between the ONUs and the ONUs is a standby link. For example, the backup link is: 0LT2→Splitter→0NUl, ..., 0LT2→Splitter→0NUn. The uplink direction is: a direction of each 0NU to 0LT1 or a direction of each 0NU to 0LT2; the first uplink frame is a data frame sent by at least one ONU to 0LT2 (or a data frame sent to 0LT1 by at least one ONU); The downlink direction is: 0LT1, the direction to each 0NU, or 0LT2 to the direction of each 0NU; the first downlink frame is a data frame sent by 0LT1 to each ONU. The 0LT1 may be the primary 0LT, and the 0LT2 may be the standby 0LT.
图 2为本发明实施例提供的另一种光网络系统的结构示意图。 如图 2所示, 所述光网络系 统包括: 第一光线路终端 0LT1、 第二光线路终端 0LT2以及多个光网络单元 0NU, 所述各光网络 单元分别为: 0NU1, 0NU2...0NUn, ONUn+1... ONUn+L (n为大于或者等于 1的整数, L为大于或 者等于 n的整数)。其中, 所述 0LT1与所述 0LT2分别通过各自的光分配网 0DN与所述各 0NU连接。 所述 0DN至少包括: 两级光分配网: 第一级 0DN1. 1和第一级 0DN1. 2, 第二级 0DN2. 1和第二级 0DN2. 2。 所述 0DN1. 1中至少包括: 第一分光器 Splitterl , 所述 0DN1. 2中至少包括第三分光器 Splitter3, 所述 0DN2. 1中至少包括第二分光器 Splitter2, 所述 0DN2. 2中至少包括第四分光 器 Splitter4。 FIG. 2 is a schematic structural diagram of another optical network system according to an embodiment of the present invention. As shown in FIG. 2, the optical network system includes: a first optical line terminal OLT1, a second optical line terminal OLT2, and a plurality of optical network units ONU, wherein the optical network units are: 0NU1, 0NU2...0NUn , ONUn+1... ONUn+L (n is an integer greater than or equal to 1, and L is an integer greater than or equal to n). The 0LT1 and the 0LT2 are respectively connected to the respective ONUs through respective optical distribution networks 0DN. The 0DN includes at least: a two-stage optical distribution network: a first level 0DN1. 1 and a first level 0DN1. 2, a second level 0DN2.1 and a second level 0DN2.2. The at least one of the 0DN1.2 includes at least a second optical splitter Splitter3, and the 0DN2.1 includes at least a second optical splitter Splitter2, at least the 0DN2.2. Including the fourth spectroscopic Splitter4.
具体结构可以为: 0LT1通过 Splitterl以及 Splitter2与 0NU1...0NUn连接, 0LT2通过 Splitter3以及 Splitter4与 ONUn+1... ONUn+L连接, 其中, Splitter2 和 Splitter4均与 Splitterl连接, 同时, Splitter2和 Splitter4均与 Splitter3连接, 形成互相保护的 TypeB 保护结构。 其中, 所述第一 0LT1与所述各 0NU之间的链路为主用链路, SP, 主用链路为: 0LTl→Splitterl→Splitter2→0NUl , OLTl→Splitterl→Splitter2→0NUn, 或者, 0LTl→Splitterl→Splitter4→0NUn+l , ..., OLTl→ Splitter 1→Splitter4→0NUn+L; 所 述 0LT2与所述各 ONU之间的链路为备用链路, 所述备用链路可以为: 0LT2→Splitter3→ Splitter4→0NUn+l , ... , 0LT2-Splitter3→Splitter4→0NUn+L,或者, 0LT2→Splitter3→ Splitter2→0NUl , ..., 0LT2Splitter3→Splitter2→0NUn。 其中, 上行方向为: 各 ONU 到 0LT1, 或者, 各 ONU到 0LT2的方向, 上行帧为各 0NU发送给 0LT1的数据帧, 或者, 各 0NU发送 到 0LT2的数据帧; 下行方向为: 0LT1到各 0NU的方向, 或者, 0LT2到各 0NU的方向, 下行帧为 0LT1发送给各 0NU的数据帧, 或者, 0LT2发送给各 0NU的数据帧。 所述 0LT1可以为主用 0LT, 所 述 0LT2可以为备用 0LT。 The specific structure can be: 0LT1 is connected to 0NU1...0NUn through Splitter and Splitter2, 0LT2 is connected to ONUn+1... ONUn+L through Splitter3 and Splitter4, where Splitter2 and Splitter4 are connected to Splitterl, and Splitter2 and Splitter4 Both are connected to Splitter3 to form a mutually protected TypeB protection structure. The link between the first OLT1 and the each ONU is a primary link, and the primary link is: 0LT1→Splitterl→Splitter2→0NUl, OLT1→Splitterl→Splitter2→0NUn, or 0LT1 →Splitterl→Splitter4→0NUn+l, ..., OLT1→ Splitter 1→Splitter4→0NUn+L ; the link between the 0LT2 and the ONUs is a standby link, and the standby link may be: 0LT2→Splitter3→ Splitter4→0NUn+l, ..., 0LT2-Splitter3→Splitter4→0NUn+L, or, 0LT2→Splitter3→ Splitter2→0NUl, ..., 0LT2 Splitter3→Splitter2→0NUn. The uplink direction is: each ONU goes to 0LT1, or the direction of each ONU to 0LT2, the uplink frame is the data frame sent by each 0NU to 0LT1, or the 0NU is sent to the data frame of 0LT2; the downlink direction is: 0LT1 to each The direction of 0NU, or 0LT2 to the direction of each 0NU, the downlink frame is 0LT1 is sent to each 0NU data frame, or 0LT2 is sent to each 0NU data frame. The 0LT1 may be the primary 0LT, and the 0LT2 may be the standby 0LT.
进一步地,所述光网络系统可以为 GP0N系统,也可以为 XGP0N系统,例如 10GP0N或者 40GP0N 等。 所述 XGP0N系统包括: XGP0N1系统和 XGP0N2系统, 这两个系统是下一代千兆比特无源光网 络 NGP0N 1 (又可以称为 "下一代吉比特无源光网络") 的两个主要备选架构。 XGP0N1是下行 lOGbps/上行 2. 5Gbps的非对称系统; XGP0N2是上下行 lOGbps的对称系统。 其中 XGP0N1系统为 不对称系统, 也可以称为 10GGP0N。  Further, the optical network system may be a GP0N system or an XGP0N system, such as 10GP0N or 40GP0N. The XGP0N system includes: XGP0N1 system and XGP0N2 system, which are the two main alternatives of the next-generation Gigabit passive optical network NGP0N 1 (also known as "Next Generation Gigabit Passive Optical Network"). Architecture. XGP0N1 is a downlink lOGbps/uplink 2. 5Gbps asymmetric system; XGP0N2 is a symmetric system with up and down lOGbps. The XGP0N1 system is an asymmetric system, which can also be called 10GGP0N.
本发明实施例仅以 ONU为例进行说明的, 所有适用于 0NU的方法都适用于 ONT ( Optical The embodiment of the present invention is only described by taking the ONU as an example. All the methods applicable to the 0NU are applicable to the ONT (Optical
Network Terminal , 光网络终端)。 Network Terminal, optical network terminal).
本发明实施例还提供了一种通信方法, 如图 3所示。所述通信方法应用于上述图 1或者图 2 所述的光网络系统的组网结构中, 可以包括如下步骤:  The embodiment of the invention further provides a communication method, as shown in FIG. The communication method is applied to the networking structure of the optical network system described in FIG. 1 or FIG. 2, and may include the following steps:
步骤 S302、 至少一个 ONU将第一前导码、 链路质量定界符、 数据信息以及第一校验信息封 装成第一上行帧; 其中, 所述第一前导码的长度大于用于上行业务传输的第二前导码的长度, 所述第一校验信息是所述数据信息的校验信息。  Step S302: The at least one ONU encapsulates the first preamble, the link quality delimiter, the data information, and the first check information into a first uplink frame. The length of the first preamble is greater than the uplink service transmission. The length of the second preamble, the first verification information is verification information of the data information.
所述第一上行帧的帧结构请参见图 4所示。 所述上行帧的帧结构至少包括: 前导码域、 定 界域、 数据域以及校验域, 其中各个域的长度不限, 各个域有特殊要求的, 其长度以特殊要 求为主。  The frame structure of the first uplink frame is shown in FIG. 4. The frame structure of the uplink frame includes at least: a preamble field, a delimiting field, a data field, and a check field. The length of each field is not limited. Each domain has special requirements, and the length is mainly based on special requirements.
前导码域和定界域, 用于 0LT2对第一上行帧进行帧的同步和帧的定界, 其中, 前导码域 可以用 preamble field表示, 是 0LT2收到第一上行帧后做时钟恢复的, 用来实现 0LT2对第一 上行帧的同步; 定界域可以用 delimiter field表示, 是 0LT2对接收的第一上行帧进行帧的定 界, 即使得 0LT2实现帧的对准; 其中, 所述定界域还可以用来区别所述第一上行帧与标准定 义的 GTC帧或者 XGTC帧, 使得 0LT2接收到所述第一上行帧后, 可以通过 delimiter field域识 别出所述第一上行帧是特定的上行帧, 该第一上行帧是用于检测备用链路质量。 The preamble field and the definite field are used for the frame synchronization and frame delimitation of the first uplink frame by the OLT2, wherein the preamble field can be represented by a preamble field, which is 0LT2 after the first uplink frame is received for clock recovery. , used to implement 0LT2 on the first The synchronization of the uplink frame; the delimiter field can be represented by a delimiter field, which is 0LT2 delimiting the frame of the received first uplink frame, that is, the alignment of the frame is implemented by 0LT2; wherein the delimitation domain can also be used to distinguish The first uplink frame and the standard-defined GTC frame or the XGTC frame, so that after receiving the first uplink frame, the OLT may identify that the first uplink frame is a specific uplink frame by using a delimiter field, the first The upstream frame is used to detect the quality of the alternate link.
具体地, 所述前导码域至少包括: 第一前导以及第二前导。 所述第二前导主要是 0LT与各 Specifically, the preamble field includes at least: a first preamble and a second preamble. The second preamble is mainly 0LT and each
0NU之间进行上行业务传输时使用的前导, 也可以理解为, 0LT与个 0NU之间进行正常数据通信 时使用的前导, 可以对应于 ITU-G. 987. 3标准中定义 0NU的状态表中的 0NU在运行状态 (Operation State) 0 ( 5) 态时使用的前导长度, 其推荐长度是大于或者等于 8个字节; 所 述第一前导主要是 0LT与各 0NU之间进行测距时使用的前导, 对应于 ITU-G. 987. 3标准中定义 0NU的状态表中的 0NU在测距状态 (Ranging State) 0 (4) 态时使用的前导长度, 第一前导的 长度要大于第二前导的长度。第一前导的推荐长度至少大于 8个字节, 可以为 32个字节或者 64 个字节, 或者其它长度的字节。 The preamble used for uplink traffic transmission between 0NUs can also be understood as the preamble used for normal data communication between 0LT and 0NU, which can correspond to the state table defined by the 0NU in the ITU-G.987.3 standard. The leading length used by the 0NU in the Operation State 0 (5) state, the recommended length is greater than or equal to 8 bytes; the first preamble is mainly used when ranging between 0LT and each 0NU. The preamble, corresponding to the leading length used by the 0NU in the state table of the 0NU defined in the ITU-G.987.3 standard in the Ranging State 0 (4) state, the length of the first preamble is greater than the second The length of the lead. The recommended length of the first preamble is at least 8 bytes, and may be 32 bytes or 64 bytes, or other length bytes.
定界域, 用于 0LT2对收到的第一上行帧进行帧的定界, 表示开始接收该第一上行帧了, 该域的长度不限制, 推荐长度可以为 32个比特 bits。 由于所述第一上行帧是 0LT1或者 0LT2与 各 0NU之间的自定义的一种帧,该定界域还可以用来区分所述第一上行帧与其它标准定义的上 行帧, 使得 0LT1或者 0LT2接收到所述第一上行帧后, 能识别出所述第一上行帧是用于检测备 用链路质量的。  The delimited field is used by the 0LT2 to delimit the frame of the received first uplink frame, indicating that the first uplink frame is started to be received. The length of the field is not limited, and the recommended length may be 32 bits. Since the first uplink frame is a customized frame between 0LT1 or 0LT2 and each ONU, the delimiting field may also be used to distinguish the first uplink frame from other standard defined uplink frames, such that 0LT1 or After receiving the first uplink frame, the LT2 can recognize that the first uplink frame is used to detect the quality of the backup link.
数据域, 用于承载数据信息, 其长度不限制。  The data field is used to carry data information, and its length is not limited.
校验域, 用于对所述数据信息进行校验, 反映该备用链路的链路质量。 例如, 通过对备 用链路上收发的数据帧进行纠错, 通过算法计算出备用链路的丢包率或者错包率等, 以此衡 量该备用链路的链路质量, 另外, 对所述数据信息进行校验的方式很多, 这里不限于上述一 种, 其它方式例如前向纠错 (forward error correction, FEC)、 或者循环冗余校验 ( cyclic redundancy check, CRC) 等校验方式都可以适用于这里, 主要用途都是对备用链路的链路质 量进行衡量。  The check field is used to check the data information to reflect the link quality of the standby link. For example, by performing error correction on a data frame sent and received on the standby link, calculating a packet loss rate or a packet error rate of the standby link by using an algorithm, thereby measuring the link quality of the standby link, and There are many ways to verify the data information. The method is not limited to the above. Other methods such as forward error correction (FEC) or cyclic redundancy check (CRC) can be used. Applicable here, the main purpose is to measure the link quality of the standby link.
所述光网络单元将第一前导码、 链路质量定界符、 数据信息以及第一校验信息封装成第 一上行帧具体包括:  The encapsulating, by the optical network unit, the first preamble, the link quality delimiter, the data information, and the first check information into the first uplink frame specifically includes:
所述光网络单元将所述第一前导码封装在所述第一上行帧的前导码域, 将所述链路质量 定界符封装在所述第一上行帧的定界域, 将所述数据信息封装在所述第一上行帧的数据 域, 将所述第一校验信息封装在所述第一上行帧的校验域, 形成所述第一上行帧。 进一步地, 所述第一上行帧是基于物理层自定义的一种上行帧格式,所述第一上行帧也符合 P0N协议或者 The optical network unit encapsulates the first preamble in a preamble field of the first uplink frame, and encapsulates the link quality delimiter in a bounding field of the first uplink frame, where The data information is encapsulated in a data field of the first uplink frame, and the first check information is encapsulated in a check field of the first uplink frame to form the first uplink frame. Further, the first uplink frame is an uplink frame format customized according to a physical layer, and the first uplink frame is also in accordance with a P0N protocol or
XGP0N协议, 可以在 P0N网络或者 XGP0N网络中进行传送, 是 0LT1或者 0LT2与各 0NU之间用于监 测备用链路的质量而自定义的一种帧, 可以被 0LT1或者 0LT2接收并解析。 XGP0N protocol, can be transmitted in P0N network or XGP0N network, is used between 0LT1 or 0LT2 and each 0NU A frame that is customized to measure the quality of the alternate link and can be received and parsed by 0LT1 or 0LT2.
步骤 S304、 所述 ONU发送所述第一上行帧。  Step S304: The ONU sends the first uplink frame.
进一步地, 所述通信方法在所述 0NU封装第一上行帧之前还包括:  Further, the communication method further includes: before the first upstream frame of the 0NU encapsulation:
所述 0NU获取所述数据信息;  The 0NU acquires the data information;
所述 0NU根据所述获取的数据信息生成所述第一校验信息;  The 0NU generates the first verification information according to the acquired data information;
所述 0NU生成特定长度的第一前导码,所述第一前导码的长度大于用于上行业务传输的第 二前导码的长度, 所述第二前导码的长度大于或者等于 8个字节。  The 0NU generates a first preamble of a specific length, the length of the first preamble is greater than a length of a second preamble for uplink traffic transmission, and the length of the second preamble is greater than or equal to 8 bytes.
上述各个步骤之间的先后顺序不固定。  The order between the above steps is not fixed.
进一步地, 所述 0NU发送所述第一上行帧具体包括:  Further, the sending, by the 0NU, the first uplink frame specifically includes:
所述 0NU周期性地发送所述第一上行帧; 或者,  The 0NU periodically sends the first uplink frame; or
所述 0NU接收所述第一光线路终端发送的第一下行帧,所述第一下行帧指示所述至少一个 光网络单元发送所述第一上行帧;  The 0NU receives the first downlink frame sent by the first optical line terminal, and the first downlink frame indicates that the at least one optical network unit sends the first uplink frame;
所述 0NU根据所述第一下行帧的指示, 发送所述第一上行帧。  The 0NU sends the first uplink frame according to the indication of the first downlink frame.
其中, 所述第一下行帧可以为 GTC帧、 XGTC帧、 自定义的帧或者其它格式的帧。 具体的所 述第一下行帧中的指示信息(所述指示信息为指示所述 0NU发送所述第一上行帧的信息)可以 通过在标准定义的 GTC帧或者 XGTC帧的扩展字段去承载该指示信息现,也可以是 0LT与 0NU之间 在物理层新定义下行帧, 该自定义的第一下行帧符合 P0N协议或者 XGP0N协议, 所述自定义的 第一下行帧主要承载上述指示信息, 且该自定义的第一下行帧也可以被各 0NU解析。  The first downlink frame may be a GTC frame, an XGTC frame, a customized frame, or a frame of another format. Specifically, the indication information in the first downlink frame, where the indication information is information indicating that the 0NU sends the first uplink frame, may be carried in an extended field of a standard defined GTC frame or an XGTC frame. The indication information may be that the downlink frame is newly defined in the physical layer between the 0LT and the ONU, and the customized first downlink frame is in accordance with the P0N protocol or the XGP0N protocol, and the customized first downlink frame mainly carries the indication. Information, and the customized first downlink frame can also be parsed by each ONU.
本发明实施例提供的一种光网络系统中数据通信的方法, 通过光网络单元将第一前导 码、 链路质量定界符、 数据信息以及第一校验信息封装成第一上行帧; 其中, 所述第一 前导码的长度大于用于上行业务传输的第二前导码的长度, 所述第一校验信息是所述数据信 息的校验信息; 所述光网络单元发送所述第一上行帧, 解决了光网络系统中第二光线路终端 无法及时获知自身备用链路的工作状态, 导致主备切换后可能引起 0LT与 0NU之间的数据通信 中断的问题, 从而保证了第二光线路终端能够及时获知备用链路的链路状态信息, 避免了切 换后对正常业务通信的影响, 提高了用户的满意程度。  A method for data communication in an optical network system according to an embodiment of the present invention, the first preamble, the link quality delimiter, the data information, and the first check information are encapsulated into a first uplink frame by using an optical network unit; The length of the first preamble is greater than the length of the second preamble for uplink service transmission, the first verification information is verification information of the data information, and the optical network unit sends the first The uplink frame solves the problem that the second optical line terminal in the optical network system cannot know the working status of the standby link in time, which may cause the data communication between the 0LT and the ONU to be interrupted after the active/standby switchover, thereby ensuring the second light. The line terminal can know the link state information of the standby link in time, avoiding the impact on the normal service communication after the handover, and improving the user satisfaction.
本发明实施例还提供了一种光网络系统的通信方法, 请参见图 5所示。所述通信方法应用 于上述图 1或者图 2所述的光网络系统的组网结构中, 可以包括如下步骤:  An embodiment of the present invention further provides a communication method of an optical network system, as shown in FIG. 5. The communication method is applied to the networking structure of the optical network system described in FIG. 1 or FIG. 2, and may include the following steps:
步骤 S502、 所述 0LT2接收所述至少一个光网络单元发送的第一上行帧; 其中, 所述第一 上行帧至少包括: 第一前导码、 链路质量定界符、 数据信息以及第一校验信息; 所述第一前 导码的长度大于用于上行业务传输的第二前导码的长度, 所述第一校验信息是所述数据信息 的校验信息。 其中, 所述第二前导码的长度大于或者等于 8个字节。 Step S502: The OLT receives the first uplink frame sent by the at least one optical network unit, where the first uplink frame includes at least: a first preamble, a link quality delimiter, data information, and a first school The length of the first preamble is greater than the length of the second preamble for uplink service transmission, and the first verification information is verification information of the data information. The length of the second preamble is greater than or equal to 8 bytes.
所述第一上行帧的帧结构以及帧中各个域的功能请参见图 4以及图 4对应的实施例的描 述, 这里就不再赘述。  For the function of the frame structure of the first uplink frame and the functions of the fields in the frame, please refer to the description of the embodiment corresponding to FIG. 4 and FIG. 4, and details are not described herein again.
可选地, 第一光线路终端 0LT1也接收到所述第一上行帧。  Optionally, the first optical line terminal 0LT1 also receives the first uplink frame.
步骤 S504、 所述 0LT2根据所述第一前导和所述链路质量定界符, 对所述第一上行帧进行 帧的同步和帧的定界, 解析获得数据信息和第一校验信息。  Step S504: The 0LT2 performs frame synchronization and frame delimitation on the first uplink frame according to the first preamble and the link quality delimiter, and parses and obtains data information and first check information.
步骤 S506、 所述 0LT2根据所述解析获得的数据信息和第一校验信息, 确定所述备用链路 的链路质量。  Step S506: The 0LT2 determines the link quality of the standby link according to the data information obtained by the parsing and the first check information.
具体地, 所述 0LT2根据所述解析获得的数据信息和第一校验信息, 确定所述备用链路的 链路质量包括:  Specifically, the determining, by the 0LT2, the link quality of the standby link according to the data information obtained by the parsing and the first check information, includes:
所述 0LT2根据所述解析获得的数据信息, 生成第二校验信息;  The 0LT2 generates second verification information according to the data information obtained by the parsing;
若所述第一校验信息与所述第二校验信息不相同, 则所述 0LT2确定所述备用链路的链路 质量为异常。  If the first check information is different from the second check information, the 0LT2 determines that the link quality of the standby link is abnormal.
可选地, 若所述第一校验信息与所述第二校验信息相同, 则所述 0LT2确定所述备用链路 的链路质量为正常。  Optionally, if the first check information is the same as the second check information, the 0LT2 determines that the link quality of the standby link is normal.
举例可以为: 若所述 0NU发送的第一上行帧中的数据信息为 0110, 采用奇偶校验的校验方 式, 所述 0NU根据数据信息 0110, 生成第一校验信息为 1 ; 0LT2接收该第一上行帧后, 通过第 一前导码和链路质量定界符对所述第一上行帧进行帧的同步和帧的定界后, 解析获得数据信 息为 0100, 0LT2根据所述解析获得的数据信息 0100, 采用与 0NU相同的校验方式, 生成的第二 校验信息为 0, 则 0LT2根据第一校验信息 1和第二校验信息 0, 确定备用链路质量异常。  For example, if the data information in the first uplink frame sent by the ONU is 0110, the parity check mode is adopted, and the ONU generates the first check information according to the data information 0110, and the first check information is 1; After the first uplink frame, after the frame synchronization and frame demarcation of the first uplink frame by using the first preamble and the link quality delimiter, the parsing obtains the data information as 0100, and the 0LT2 is obtained according to the parsing. The data information 0100 is in the same check mode as that of the ONU, and the generated second check information is 0. Then, the 0LT2 determines the standby link quality abnormality according to the first check information 1 and the second check information 0.
进一步地, 所述通信方法还可以包括:  Further, the communication method may further include:
所述 0LT2发送第一下行帧, 所述第一下行帧指示所述至少一个光网络终端发送所述第一 上行帧。  The 0LT2 sends a first downlink frame, where the first downlink frame indicates that the at least one optical network terminal sends the first uplink frame.
所述第一下行帧可以为 GTC帧、 XGTC帧、 自定义的帧或者其它格式的帧。 具体的所述第一 下行帧中的指示信息(所述指示信息为指示所述 0NU发送所述第一上行帧的信息)可以通过在 标准定义的 GTC帧或者 XGTC帧的扩展字段去承载该指示信息现,也可以是 0LT与 0NU之间在物理 层新定义第一下行帧, 该自定义的第一下行帧也符合 P0N协议或者 XGP0N协议, 所述自定义的 这种第一下行帧主要承载上述指示信息, 且该自定义的第一下行帧也可以被各 0NU解析。  The first downlink frame may be a GTC frame, an XGTC frame, a customized frame, or a frame of another format. Specifically, the indication information in the first downlink frame, where the indication information is information indicating that the 0NU sends the first uplink frame, may be carried in an extended field of a standard defined GTC frame or an XGTC frame. The indication information may be that the first downlink frame is newly defined between the 0LT and the 0NU at the physical layer, and the customized first downlink frame also conforms to the P0N protocol or the XGP0N protocol, and the customized first The line frame mainly carries the foregoing indication information, and the customized first downlink frame can also be parsed by each ONU.
本发明实施例提供的一种光网络系统中数据通信的方法, 通过第二光线路终端接收所述 至少一个光网络单元通过第一前导发送的第一上行帧, 所述第一上行帧至少包括: 第一前导 码、 链路质量定界符、 数据信息以及第一校验信息; 所述第一前导码的长度大于用于上行业 务传输的第二前导码的长度, 所述第一校验信息是所述数据信息的校验信息; 解析所述第一 上行帧; 根据所述解析后的所述第一上行帧的校验信息, 获知所述备用链路的链路质量, 解 决了光网络系统中由于第二光线路终端 0LT2无法及时获知自身备用链路的工作状态, 导致主 备切换后可能引起 0LT与 0NU之间的数据通信中断的问题, 从而保证了第二光线路终端 0LT2能 够及时获知备用链路的链路状态信息, 避免了切换后对正常业务通信的影响, 提高了用户的 满意程度。 A method for data communication in an optical network system according to an embodiment of the present invention, the first uplink frame sent by the at least one optical network unit by using the first preamble is received by the second optical line terminal, where the first uplink frame includes at least a first preamble, a link quality delimiter, data information, and first verification information; the length of the first preamble is greater than that used in the upper industry Length of the second preamble transmitted, the first check information is check information of the data information; parsing the first uplink frame; and verifying according to the parsed first uplink frame The information is obtained, and the link quality of the standby link is obtained, which solves the problem that the second optical line terminal OLT2 cannot know the working status of the standby link in the optical network system, and the active/standby switchover may cause the relationship between the 0LT and the ONU. The problem of data communication interruption ensures that the second optical line terminal OLT2 can know the link state information of the standby link in time, avoids the impact on the normal service communication after the handover, and improves the user satisfaction.
本发明实施例还提供了一种光网络单元, 其结构示意图如图 6所示。  An embodiment of the present invention further provides an optical network unit, and a schematic structural diagram thereof is shown in FIG. 6.
一种 0NU60,具体所述光网络单元 60在光网络系统中的位置请参见图 1或者图 2的结构示意 图中的各 0NU, 该图 1或者图 2中的各 0NU的结构与所述光网络单元 60的结构一样, 所述光网络 单元 60包括:  An ONU 60, specifically the location of the optical network unit 60 in the optical network system, refer to each ONU in the structural diagram of FIG. 1 or FIG. 2, and the structure of each ONU in FIG. 1 or FIG. 2 and the optical network. The unit 60 has the same structure, and the optical network unit 60 includes:
成帧单元 602, 用于将第一前导码、 链路质量定界符、 数据信息以及第一校验信息封装成 第一上行帧; 其中, 所述第一前导码的长度大于用于上行业务传输的第二前导码的长度, 所 述第一校验信息是所述数据信息的校验信息;  The framing unit 602 is configured to encapsulate the first preamble, the link quality delimiter, the data information, and the first check information into a first uplink frame, where the length of the first preamble is greater than that for the uplink service a length of the transmitted second preamble, where the first verification information is verification information of the data information;
第二收发单元 604, 用于发送所述第一上行帧。  The second transceiver unit 604 is configured to send the first uplink frame.
进一步地, 所述 0NU60还包括:  Further, the 0NU60 further includes:
获取单元 606, 用于获取所述数据信息;  An obtaining unit 606, configured to acquire the data information;
第一校验信息生成单元 608, 用于根据所述获取的数据信息生成所述第一校验信息。 第一前导码生成单元 610, 用于生成特定长度的第一前导码, 所述第一前导码的长度大于 用于上行业务传输的第二前导码的长度, 所述第二前导码的长度大于或者等于 8个字节。  The first check information generating unit 608 is configured to generate the first check information according to the acquired data information. The first preamble generating unit 610 is configured to generate a first preamble of a specific length, where the length of the first preamble is greater than a length of a second preamble for uplink traffic transmission, and the length of the second preamble is greater than Or equal to 8 bytes.
进一步地, 所述成帧单元 602, 具体用于将所述第一前导码封装在所述第一上行帧的 前导码域, 将所述链路质量定界符封装在所述第一上行帧的定界域, 将所述数据信息封装在 所述第一上行帧的数据域, 将所述第一校验信息封装在所述第一上行帧的校验域, 形成所述 第一上行帧。  Further, the framing unit 602 is specifically configured to encapsulate the first preamble in a preamble field of the first uplink frame, and encapsulate the link quality delimiter in the first uplink frame. a delimited field, the data information is encapsulated in a data field of the first uplink frame, and the first check information is encapsulated in a check field of the first uplink frame to form the first uplink frame .
具体地, 所述第一上行帧的帧结构请参见图 4所示。 所述上行帧的帧结构至少包括: 前导 码域、 定界域、 数据域以及校验域, 其中各个域的长度不限, 各个域有特殊要求的, 其长度 以特殊要求为主。  Specifically, the frame structure of the first uplink frame is shown in FIG. 4 . The frame structure of the uplink frame includes at least: a preamble domain, a delimiting domain, a data domain, and a check domain, wherein each domain has an unlimited length, and each domain has special requirements, and the length is mainly based on a special requirement.
前导码域和定界域, 用于 0LT2对第一上行帧进行帧的同步和帧的定界, 其中, 前导码域 可以用 preamble field表示, 是 0LT2收到第一上行帧后做时钟恢复的, 用来实现 0LT2对第一 上行帧的同步; 定界域可以用 delimiter field表示, 是 0LT2对接收的第一上行帧进行帧的定 界, 即使得 0LT2实现帧的对准; 其中, 所述定界域还可以用来区别所述第一上行帧与标准定 义的 GTC帧或者 XGTC帧, 使得 0LT2接收到所述第一上行帧后, 可以通过 delimiter field域识 别出所述第一上行帧是特定的上行帧, 该第一上行帧是用于检测备用链路质量。 具体地, 所述前导码域至少包括: 第一前导以及第二前导。 所述第二前导主要是 0LT与各 0NU之间进行上行业务传输时使用的前导, 也可以理解为, 0LT与个 0NU之间进行正常数据通信 时使用的前导, 可以对应于 ITU-G. 987. 3标准中定义 0NU的状态表中的 0NU在运行状态 (Operation State) 0 ( 5) 态时使用的前导长度, 其推荐长度是大于或者等于 8个字节; 所 述第一前导主要是 0LT与各 0NU之间进行测距时使用的前导, 对应于 ITU-G. 987. 3标准中定义 0NU的状态表中的 0NU在测距状态 (Ranging State) 0 (4) 态时使用的前导长度, 第一前导的 长度要大于第二前导的长度。第一前导的推荐长度至少大于 8个字节, 可以为 32个字节或者 64 个字节, 或者其它长度的字节。 The preamble field and the definite field are used for the frame synchronization and frame delimitation of the first uplink frame by the OLT2, wherein the preamble field can be represented by a preamble field, which is 0LT2 after the first uplink frame is received for clock recovery. The 0LT2 is used to implement the synchronization of the first uplink frame; the delimiter field can be represented by the delimiter field, and the 0LT2 delimits the frame of the received first uplink frame, that is, the 0LT2 implements the alignment of the frame; The delimiting field can also be used to distinguish the first uplink frame from the standard defined GTC frame or the XGTC frame, so that after receiving the first uplink frame, the OLT can be identified by the delimiter field. The first uplink frame is a specific uplink frame, and the first uplink frame is used to detect the quality of the backup link. Specifically, the preamble field includes at least: a first preamble and a second preamble. The second preamble is mainly used as a preamble used for uplink service transmission between the 0LT and each ONU. It can also be understood that the preamble used for normal data communication between the 0LT and the ONU may correspond to ITU-G.987. The standard defines the leading length used by the 0NU in the 0NU state table in the operating state (Operation State) 0 (5) state, the recommended length is greater than or equal to 8 bytes; the first preamble is mainly 0LT The preamble used for ranging between each 0NU corresponds to the leading length used by the 0NU in the state table defined by the 0NU in the ITU-G.987.3 standard in the Ranging State 0 (4) state. The length of the first preamble is greater than the length of the second preamble. The recommended length of the first preamble is at least greater than 8 bytes, and may be 32 bytes or 64 bytes, or bytes of other lengths.
定界域, 用于 0LT2对收到的第一上行帧进行帧的定界, 表示开始接收该第一上行帧了, 该域的长度不限制, 推荐长度可以为 32个比特 bits。 由于所述第一上行帧是 0LT1或者 0LT2与 各 0NU之间的自定义的一种帧,该定界域还可以用来区分所述第一上行帧与其它标准定义的上 行帧, 使得 0LT1或者 0LT2接收到所述第一上行帧后, 能识别出所述第一上行帧是用于检测备 用链路质量的。  The delimited field is used by the 0LT2 to delimit the frame of the received first uplink frame, indicating that the first uplink frame is started to be received. The length of the field is not limited, and the recommended length may be 32 bits. Since the first uplink frame is a customized frame between 0LT1 or 0LT2 and each ONU, the delimiting field may also be used to distinguish the first uplink frame from other standard defined uplink frames, such that 0LT1 or After receiving the first uplink frame, the LT2 can recognize that the first uplink frame is used to detect the quality of the backup link.
数据域, 用于发送数据信息, 其长度不限制。  The data field is used to send data information, and its length is not limited.
校验域, 用于对所述数据信息进行校验, 反映该备用链路的链路质量。 例如, 通过对备 用链路上收发的数据帧进行纠错, 通过算法计算出备用链路的丢包率或者错包率等, 以此衡 量该备用链路的链路质量, 另外, 对所述数据信息进行校验的方式很多, 这里不限于上述一 种, 其它方式例如前向纠错 (forward error correction, FEC)、 或者循环冗余校验 ( cyclic redundancy check, CRC) 等校验方式都可以适用于这里, 主要用途都是对备用链路的链路质 量进行衡量。  The check field is used to check the data information to reflect the link quality of the standby link. For example, by performing error correction on a data frame sent and received on the standby link, calculating a packet loss rate or a packet error rate of the standby link by using an algorithm, thereby measuring the link quality of the standby link, and There are many ways to verify the data information. The method is not limited to the above. Other methods such as forward error correction (FEC) or cyclic redundancy check (CRC) can be used. Applicable here, the main purpose is to measure the link quality of the standby link.
所述第一上行帧是基于物理层自定义的一种上行帧格式,所述第一上行帧也符合 P0N协议 或者 XGP0N协议, 可以在 P0N网络或者 XGP0N网络中进行传送, 是 0LT1或者 0LT2与各 0NU之间用 于监测备用链路的质量而自定义的一种帧, 可以被 0LT1或者 0LT2接收并解析。  The first uplink frame is an uplink frame format customized according to a physical layer, and the first uplink frame is also in accordance with a P0N protocol or an XGP0N protocol, and can be transmitted in a P0N network or an XGP0N network, and is 0LT1 or 0LT2 and each A frame customized between 0NU for monitoring the quality of the alternate link, which can be received and parsed by 0LT1 or 0LT2.
进一步地, 所述收发单元 604, 用于周期性地发送所述第一上行帧; 或者, 接收所述第一 光线路终端发送的第一下行帧, 所述第一下行帧指示所述至少一个光网络单元发送所述第一 上行帧。  Further, the transceiver unit 604 is configured to periodically send the first uplink frame; or receive a first downlink frame sent by the first optical line terminal, where the first downlink frame indicates the The at least one optical network unit transmits the first uplink frame.
其中, 所述第一下行帧可以为 GTC帧、 XGTC帧、 自定义的帧或者其它格式的帧。 具体的所 述第一下行帧中的指示信息(所述指示信息为指示所述 0NU发送所述第一上行帧的信息)可以 通过在标准定义的 GTC帧或者 XGTC帧的扩展字段去承载该指示信息现,也可以是 0LT与 0NU之间 在物理层新定义下行帧, 该自定义的第一下行帧符合 P0N协议或者 XGP0N协议, 所述自定义的 第一下行帧主要承载上述指示信息, 且该自定义的第一下行帧也可以被各 0NU解析。 The first downlink frame may be a GTC frame, an XGTC frame, a customized frame, or a frame of another format. Specifically, the indication information in the first downlink frame, where the indication information is information indicating that the 0NU sends the first uplink frame, may be carried in an extended field of a standard defined GTC frame or an XGTC frame. The indication information may be that a downlink frame is newly defined between the 0LT and the 0NU at the physical layer, and the customized first downlink frame conforms to the P0N protocol or the XGP0N protocol, and the customized The first downlink frame mainly carries the foregoing indication information, and the customized first downlink frame may also be parsed by each ONU.
本发明实施例提供的一种光网络单元, 通过光网络单元的成帧单元将第一前导码、 链路 质量定界符、 数据信息以及第一校验信息封装成第一上行帧; 其中, 所述第一前导码的 长度大于用于上行业务传输的第二前导码的长度, 所述第一校验信息是所述数据信息的校验 信息; 通过所述光网络单元的收发单元发送所述第一上行帧, 解决了现有光网络系统中由于 第二光线路终端 0LT2无法及时获知自身备用链路的工作状态, 导致主备切换后可能引起 0LT 与 0NU之间的数据通信中断的问题,从而保证了第二光线路终端能够及时获知备用链路的链路 状态信息, 避免了切换后对正常业务通信的影响, 提高了用户的满意程度。  An optical network unit according to an embodiment of the present invention, the first preamble, the link quality delimiter, the data information, and the first check information are encapsulated into a first uplink frame by using a framing unit of the optical network unit; The length of the first preamble is greater than the length of the second preamble for uplink service transmission, the first verification information is verification information of the data information, and is sent by the transceiver unit of the optical network unit. The first uplink frame solves the problem that in the existing optical network system, the second optical line terminal OLT2 cannot know the working status of the standby link in time, which may cause the data communication between the 0LT and the ONU to be interrupted after the active/standby switchover. Therefore, the second optical line terminal can obtain the link state information of the standby link in time, avoiding the impact on the normal service communication after the handover, and improving the user satisfaction.
本发明实施例还一种光线路终端, 如图 7所示, 其中所述 0LT70在光网络系统中的位置可 以参见图 1或者图 2中所示的 0LT2。  The embodiment of the present invention further provides an optical line terminal, as shown in FIG. 7, wherein the position of the 0LT70 in the optical network system can be referred to as 0LT2 shown in FIG. 1 or FIG.
所述 0LT70包括:  The 0LT70 includes:
第一收发单元 702, 用于接收所述至少一个光网络单元发送的第一上行帧; 其中, 所述第 一上行帧至少包括: 第一前导码、 链路质量定界符、 数据信息以及第一校验信息; 所述第一 前导码的长度大于用于上行业务传输的第二前导码的长度, 所述第一校验信息是所述数据信 息的校验信息;  The first transceiver unit 702 is configured to receive the first uplink frame sent by the at least one optical network unit, where the first uplink frame includes at least: a first preamble, a link quality delimiter, data information, and a a check information; the length of the first preamble is greater than a length of a second preamble for uplink service transmission, and the first check information is check information of the data information;
解析单元 704, 用于根据所述第一前导和所述链路质量定界符, 对所述第一上行帧进行帧 的同步和帧的定界, 解析获得数据信息和第一校验信息;  The parsing unit 704 is configured to perform frame synchronization and frame delimitation on the first uplink frame according to the first preamble and the link quality delimiter, and obtain data information and first check information by parsing;
处理单元 706, 用于根据所述解析获得的数据信息和第一校验信息, 确定所述备用链路的 链路质量, 其中, 所述备用链路是所述光线路终端与所述光网络单元之间的链路。  The processing unit 706 is configured to determine, according to the data information obtained by the parsing and the first check information, a link quality of the standby link, where the standby link is the optical line terminal and the optical network The link between the units.
具体的备用链路可以为图 1与图 2的光网络系统中的 0LT2与所述至少一个 0NU之间的链路。 其中, 所述第二前导码的长度大于或者等于 8个字节。  The specific alternate link may be the link between 0LT2 and the at least one ONU in the optical network system of Figures 1 and 2. The length of the second preamble is greater than or equal to 8 bytes.
具体所述第一上行帧的帧结构以及帧中各个域的具体说明请参见图 4以及图 4对应的实施 例的描述, 这里就不再赘述。  For details of the frame structure of the first uplink frame and the specific fields in the frame, refer to the description of the embodiment corresponding to FIG. 4 and FIG. 4, and details are not described herein again.
进一步地, 所述处理单元 706具体包括:  Further, the processing unit 706 specifically includes:
第二校验信息生成单元 7062, 用于根据所述解析获得的数据信息, 生成第二校验信息; 确定单元 7064, 用于若所述第一校验信息与所述第二校验信息不相同, 确定所述备用链 路的链路质量为异常。  The second check information generating unit 7062 is configured to generate second check information according to the data information obtained by the parsing, and the determining unit 7064 is configured to: if the first check information and the second check information are not Similarly, it is determined that the link quality of the standby link is abnormal.
进一步地, 所述第一收发单元 702, 还用于发送第一下行帧, 所述第一下行帧指示所述至 少一个光网络终端发送所述第一上行帧。  Further, the first transceiver unit 702 is further configured to send a first downlink frame, where the first downlink frame indicates that the at least one optical network terminal sends the first uplink frame.
本发明实施例提供的一种光网络系统中数据通信的方法, 通过第二光线路终端接收所述 至少一个光网络单元通过第一前导发送的第一上行帧, 所述第一上行帧至少包括: 第一前导 码、 链路质量定界符、 数据信息以及第一校验信息; 所述第一前导码的长度大于用于上行业 务传输的第二前导码的长度, 所述第一校验信息是所述数据信息的校验信息; 解析所述第一 上行帧; 根据所述解析后的所述第一上行帧的校验信息, 获知所述备用链路的链路质量, 解 决了光网络系统中由于第二光线路终端 0LT2无法及时获知自身备用链路的工作状态, 导致主 备切换后可能引起 0LT与 0NU之间的数据通信中断的问题, 从而保证了第二光线路终端 0LT2能 够及时获知备用链路的链路状态信息, 避免了切换后对正常业务通信的影响, 提高了用户的 满意程度。 A method for data communication in an optical network system according to an embodiment of the present invention, the first uplink frame sent by the at least one optical network unit by using the first preamble is received by the second optical line terminal, where the first uplink frame includes at least : First lead a code, a link quality delimiter, data information, and first check information; a length of the first preamble is greater than a length of a second preamble for uplink service transmission, and the first check information is The verification information of the data information; parsing the first uplink frame; obtaining the link quality of the standby link according to the parsed information of the parsed first uplink frame, and solving the problem in the optical network system The second optical line terminal 0LT2 cannot know the working status of the standby link in time, which may cause the data communication between the 0LT and the ONU to be interrupted after the active/standby switchover, thereby ensuring that the second optical line terminal 0LT2 can know the standby chain in time. The link state information of the road avoids the impact on the normal service communication after the handover, and improves the user satisfaction.
本发明实施例还一种光网络系统, 所述系统的具体结构示意图请参见图 1或者图 2以及对 应的描述。 所述光网络系统包括: 第一光线路终端 0LT1、 第二光线路终端 0LT2以及多个光网 络单元 0NU1, ..., ONUn或者 0NU1 , ..., ONUn, ... , 0NUn+L。  An embodiment of the present invention further relates to an optical network system. For a specific structure diagram of the system, refer to FIG. 1 or FIG. 2 and a corresponding description. The optical network system includes: a first optical line terminal 0LT1, a second optical line terminal 0LT2, and a plurality of optical network units 0NU1, ..., ONUn or 0NU1, ..., ONUn, ..., 0NUn+L.
所述 0LT1与所述至少一个 0NU之间的链路为主用链路, 所述 0LT2与所述至少一个 0NU之间 的链路为备用链路。。  A link between the 0LT1 and the at least one ONU is a primary link, and a link between the 0LT2 and the at least one ONU is a standby link. .
所述至少一个 0NU, 用于用于将第一前导码、 链路质量定界符、 数据信息以及第一校验信 息封装成第一上行帧; 其中, 所述第一前导码的长度大于用于上行业务传输的第二前导码的 长度, 所述第一校验信息是所述数据信息的校验信息, 并发送所述第一上行帧;  The at least one ONU is configured to encapsulate the first preamble, the link quality delimiter, the data information, and the first check information into a first uplink frame, where the length of the first preamble is greater than The length of the second preamble transmitted by the uplink service, the first check information is check information of the data information, and the first uplink frame is sent;
所述 0LT2, 用于接收所述至少一个光网络单元发送的第一上行帧; 根据所述第一前导和 所述链路质量定界符, 对所述第一上行帧进行帧的同步和帧的定界, 解析获得数据信息和第 一校验信息; 根据所述解析获得的数据信息和第一校验信息, 确定所述备用链路的链路质量。  The 0LT2 is configured to receive a first uplink frame sent by the at least one optical network unit, and perform frame synchronization and a frame on the first uplink frame according to the first preamble and the link quality delimiter. And deciphering, obtaining the data information and the first check information; determining the link quality of the standby link according to the data information obtained by the parsing and the first check information.
进一步地, 所述第二前导码的长度大于或者等于 8个字节。  Further, the length of the second preamble is greater than or equal to 8 bytes.
进一步地, 所述 0LT2具体包括:  Further, the 0LT2 specifically includes:
第一收发单元, 用于接收所述至少一个光网络单元发送的第一上行帧; 其中, 所述第一 上行帧至少包括: 第一前导码、 链路质量定界符、 数据信息以及第一校验信息; 所述第一前 导码的长度大于用于上行业务传输的第二前导码的长度, 所述第一校验信息是所述数据信息 的校验信息;  a first transceiver unit, configured to receive a first uplink frame sent by the at least one optical network unit, where the first uplink frame includes at least: a first preamble, a link quality delimiter, data information, and a first The length of the first preamble is greater than the length of the second preamble for uplink service transmission, and the first verification information is verification information of the data information;
解析单元, 用于根据所述第一前导和所述链路质量定界符, 对所述第一上行帧进行帧的 同步和帧的定界, 解析获得数据信息和第一校验信息;  a parsing unit, configured to perform frame synchronization and frame delimitation on the first uplink frame according to the first preamble and the link quality delimiter, and parse and obtain data information and first check information;
处理单元, 用于根据所述解析获得的数据信息和第一校验信息, 确定所述备用链路的链 路质量。  And a processing unit, configured to determine, according to the data information obtained by the parsing and the first verification information, a link quality of the standby link.
进一步地, 所述处理单元具体包括:  Further, the processing unit specifically includes:
第二校验信息生成单元, 用于根据所述解析获得的数据信息, 生成第二校验信息; 确定单元, 用于若所述第一校验信息与所述第二校验信息不相同, 确定所述备用链路的 链路质量为异常。 a second check information generating unit, configured to generate second check information according to the data information obtained by the parsing, and a determining unit, configured to: if the first check information is different from the second check information, Determining the alternate link The link quality is abnormal.
进一步地, 所述第一收发单元, 还用于发送第一下行帧, 所述第一下行帧指示所述至少 一个光网络终端发送所述第一上行帧。  Further, the first transceiver unit is further configured to send a first downlink frame, where the first downlink frame indicates that the at least one optical network terminal sends the first uplink frame.
对 0LT2的具体结构的介绍请参见图 7以及对应的实施例的描述, 这里就不再赘述。  For a description of the specific structure of the 0LT2, refer to FIG. 7 and the description of the corresponding embodiment, and details are not described herein again.
进一步地, 所述光网络单元具体包括:  Further, the optical network unit specifically includes:
成帧单元, 用于将第一前导码、 链路质量定界符、 数据信息以及第一校验信息封装成第 一上行帧; 其中, 所述第一前导码的长度大于用于上行业务传输的第二前导码的长度, 所述 第一校验信息是所述数据信息的校验信息;  a framing unit, configured to encapsulate the first preamble, the link quality delimiter, the data information, and the first check information into a first uplink frame, where the length of the first preamble is greater than that for uplink service transmission The length of the second preamble, the first verification information is verification information of the data information;
第二收发单元, 用于发送所述第一上行帧。  The second transceiver unit is configured to send the first uplink frame.
进一步地, 所述光网络单元还包括:  Further, the optical network unit further includes:
获取单元, 用于获取所述数据信息;  An obtaining unit, configured to acquire the data information;
第一校验信息生成单元, 用于根据所述获取的数据信息生成所述第一校验信息。  The first check information generating unit is configured to generate the first check information according to the acquired data information.
第一前导码生成单元, 用于生成特定长度的第一前导码, 所述第一前导码的长度大于用 于上行业务传输的第二前导码的长度, 所述第二前导码的长度大于或者等于 8个字节。  a first preamble generating unit, configured to generate a first preamble of a specific length, where a length of the first preamble is greater than a length of a second preamble for uplink service transmission, and a length of the second preamble is greater than or Equal to 8 bytes.
进一步地, 所述成帧单元, 具体用于将所述第一前导码封装在所述第一上行帧的前导码 域, 将所述链路质量定界符封装在所述第一上行帧的定界域, 将所述数据信息封装在所述第 一上行帧的数据域, 将所述第一校验信息封装在所述第一上行帧的校验域, 形成所述第一上 行帧。  Further, the framing unit is configured to encapsulate the first preamble in a preamble field of the first uplink frame, and encapsulate the link quality delimiter in the first uplink frame. The delimiting field, the data information is encapsulated in a data field of the first uplink frame, and the first check information is encapsulated in a check field of the first uplink frame to form the first uplink frame.
进一步地, 所述第二收发单元, 具体用于周期性地发送所述第一上行帧; 或者, 接收所 述第一光线路终端发送的第一下行帧, 所述第一下行帧指示所述至少一个光网络单元发送所 述第一上行帧。  Further, the second transceiver unit is configured to periodically send the first uplink frame; or receive the first downlink frame sent by the first optical line terminal, where the first downlink frame indicates The at least one optical network unit sends the first uplink frame.
具体对任意一个 0NU的具体描述, 请参见图 6以及图 6对应的实施例的描述, 这里就不再赘 述。  For a detailed description of any one of the 0NUs, refer to the description of the embodiment corresponding to FIG. 6 and FIG. 6, which will not be described here.
本发明实施提供的一种光网络系统, 通过至少一个光网络单元将第一前导码、 链路质量 定界符、 数据信息以及第一校验信息封装成第一上行帧; 其中, 所述第一前导码的长度大于 用于上行业务传输的第二前导码的长度, 所述第一校验信息是所述数据信息的校验信息, 并 发送所述第一上行帧, 使得第二光线路终端能够接收所述第一上行帧, 通过解析该上行帧, 确定备用链路的链路质量, 从而保证了第二光线路终端能够及时获知备用链路的链路状态信 息, 避免了切换后对正常业务通信的影响, 提高了用户的满意程度。  An optical network system according to an embodiment of the present invention, the first preamble, the link quality delimiter, the data information, and the first check information are encapsulated into a first uplink frame by using at least one optical network unit; The length of a preamble is greater than the length of the second preamble for uplink service transmission, the first verification information is verification information of the data information, and the first uplink frame is sent, so that the second optical line The terminal can receive the first uplink frame, and determine the link quality of the standby link by parsing the uplink frame, so as to ensure that the second optical line terminal can obtain the link state information of the standby link in time, and avoid the switch after the switch. The impact of normal business communications has increased user satisfaction.
本发明实施例还提供给了一种信号处理的计算机系统, 所述计算机系统采用通用计算机 系统结构, 所述计算机系统执行信号处理的动作包括: 第一输入设备 800, 用于接收数据; The embodiment of the present invention further provides a computer system for signal processing, wherein the computer system adopts a general computer system structure, and the actions of the computer system to perform signal processing include: a first input device 800, configured to receive data;
第一输出设备 802, 用于发送所述数据;  a first output device 802, configured to send the data;
第一存储器 804, 用于存储程序, 包括:  The first memory 804 is configured to store a program, including:
第一收发器 8042, 用于接收第一上行帧; 其中, 所述第一上行帧至少包括: 第一前导码、 链路质量定界符、 数据信息以及第一校验信息; 所述第一前导码的长度大于用于上行业务传 输的第二前导码的长度, 所述第一校验信息是所述数据信息的校验信息;  The first transceiver 8042 is configured to receive the first uplink frame, where the first uplink frame includes: a first preamble, a link quality delimiter, data information, and first check information; The length of the preamble is greater than the length of the second preamble for uplink service transmission, and the first verification information is verification information of the data information;
帧解析处理器 8044, 用于根据所述第一前导和所述链路质量定界符, 对所述第一上行帧 进行帧的同步和帧的定界, 解析获得数据信息和第一校验信息; 根据所述解析获得的数据信 息和第一校验信息, 确定所述备用链路的链路质量。  a frame parsing processor 8044, configured to perform frame synchronization and frame delimitation on the first uplink frame according to the first preamble and the link quality delimiter, and obtain data information and a first check by parsing Information: determining, according to the data information obtained by the parsing and the first verification information, a link quality of the standby link.
第一处理器 806, 与所述第一输入设备 800、 所述第一输出设备 802和所述第一存储器 804 相耦合, 用于控制执行所述程序。  The first processor 806 is coupled to the first input device 800, the first output device 802, and the first memory 804 for controlling execution of the program.
具体地, 所述计算机系统可具体是基于处理器的计算机, 如通用个人计算机(PC), 便携 式设备如平板计算机, 或智能手机。 计算机系统包括总线, 第一处理器 806, 第一存储器 804, 通信接口 806, 第一输入设备 800和第一输出设备 802。 总线可包括一通路, 在计算机各个部件 之间传送信息。 第一处理器 806可以是一个通用中央处理器(CPU), 微处理器, 特定应用集成 电路 application-specific integrated circuit (ASIC) , 或一个或多个用于控制本发明方 案程序执行的集成电路。计算机系统还包括一个或多个存储器, 可以是只读存储器 read-only memory (ROM) 或可存储静态信息和指令的其他类型的静态存储设备, 随机存取存储器 random access memory (RAM) 或者可存储信息和指令的其他类型的动态存储设备, 也可以是磁盘存 储器。 这些存储器通过总线与处理器相连接。  In particular, the computer system may in particular be a processor based computer such as a general purpose personal computer (PC), a portable device such as a tablet computer, or a smart phone. The computer system includes a bus, a first processor 806, a first memory 804, a communication interface 806, a first input device 800, and a first output device 802. The bus can include a path to transfer information between various components of the computer. The first processor 806 can be a general purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the inventive program. The computer system also includes one or more memories, which may be read-only memory (ROM) or other types of static storage devices that store static information and instructions, random access memory (RAM) or may be stored. Other types of dynamic storage devices for information and instructions may also be disk storage. These memories are connected to the processor via a bus.
所述第一输入设备 800包括一种装置,以接收用户输入或者输出的数据和信息,例如键盘, 鼠标、 摄像头, 扫描仪, 光笔, 语音输入装置, 触摸屏等。 所述第一输出设备 802可包括一种 装置, 以允许输出信息给用户, 包括显示屏, 打印机, 扬声器等。 计算机系统还包括一个通 信接口 808, 使用任何收发器一类的装置, 以便与其他设备或通信网络通信, 如以太网, 无线 接入网 (RAN), 无线局域网(WLAN)等.  The first input device 800 includes a device for receiving data and information input or output by a user, such as a keyboard, a mouse, a camera, a scanner, a light pen, a voice input device, a touch screen, and the like. The first output device 802 can include a device to allow output of information to a user, including a display screen, a printer, a speaker, and the like. The computer system also includes a communication interface 808 that uses devices such as any transceiver to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Network (WLAN), and the like.
所述第一存储器 804, 如 RAM, 保存有执行本发明方案的程序, 还可以保存有操作系统和 其他应用程序。 执行本发明方案的存储程序或者程序代码保存在存储器中, 并由处理器来控 制执行。  The first memory 804, such as a RAM, stores a program for executing the solution of the present invention, and may also store an operating system and other applications. The stored program or program code for carrying out the inventive arrangement is stored in a memory and controlled by the processor for execution.
如图 9,所述第一存储器中执行本发明方案的程序具体包括第一收发器 8042和帧解析处理 器 8044。 (注, 本部分目的是对与发明点相关的装置作出进一步细化, 可根据不同的情况进行 结构细分) 第一收发器 8042, 用于接收第一上行帧; 其中, 所述第一上行帧至少包括: 第一前导码、 链路质量定界符、 数据信息以及第一校验信息; 所述第一前导码的长度大于用于上行业务传 输的第二前导码的长度, 所述第一校验信息是所述数据信息的校验信息; As shown in FIG. 9, the program for executing the solution of the present invention in the first memory specifically includes a first transceiver 8042 and a frame parsing processor 8044. (Note, the purpose of this section is to further refine the device related to the invention point, which can be subdivided according to different situations) The first transceiver 8042 is configured to receive the first uplink frame, where the first uplink frame includes: a first preamble, a link quality delimiter, data information, and first check information; The length of the preamble is greater than the length of the second preamble for uplink service transmission, and the first verification information is verification information of the data information;
帧解析处理器 8044, 用于根据所述第一前导和所述链路质量定界符, 对所述第一上行帧 进行帧的同步和帧的定界, 解析获得数据信息和第一校验信息; 根据所述解析获得的数据信 息和第一校验信息, 确定所述备用链路的链路质量。  a frame parsing processor 8044, configured to perform frame synchronization and frame delimitation on the first uplink frame according to the first preamble and the link quality delimiter, and obtain data information and a first check by parsing Information: determining, according to the data information obtained by the parsing and the first verification information, a link quality of the standby link.
所述信号处理的计算机系统可以应用在如图 1所示的 0LT2上。  The signal processing computer system can be applied to 0LT2 as shown in FIG.
本发明实施例还提供给了一种信号处理的计算机系统, 如图 10所示, 所述计算机系统采 用通用计算机系统结构, 所述计算机系统执行信号处理的动作包括:  The embodiment of the present invention further provides a computer system for signal processing. As shown in FIG. 10, the computer system adopts a general computer system structure, and the actions of the computer system to perform signal processing include:
第二输入设备 1000, 用于接收数据;  a second input device 1000, configured to receive data;
第二输出设备 1002, 用于发送所述数据;  a second output device 1002, configured to send the data;
第二存储器 1004, 用于存储程序, 包括:  The second memory 1004 is configured to store a program, including:
成帧处理器 10042, 用于将第一前导码、 链路质量定界符、 数据信息以及第一校验信息封 装成第一上行帧; 其中, 所述第一前导码的长度大于用于上行业务传输的第二前导码的长度, 所述第一校验信息是所述数据信息的校验信息;  The framing processor 10042 is configured to encapsulate the first preamble, the link quality delimiter, the data information, and the first check information into a first uplink frame, where the length of the first preamble is greater than The length of the second preamble of the service transmission, where the first verification information is verification information of the data information;
第二收发器 10044, 用于发送所述第一上行帧。  The second transceiver 10044 is configured to send the first uplink frame.
第二处理器 1006, 与所述第二输入设备、 所述第二输出设备和所述第二存储器相耦合, 用于控制执行所述程序。  The second processor 1006 is coupled to the second input device, the second output device, and the second memory for controlling execution of the program.
具体地, 所述计算机系统可具体是基于处理器的计算机, 如通用个人计算机(PC), 便携 式设备如平板计算机, 或智能手机。 计算机系统包括总线, 处理器, 存储器, 通信接口, 输 入设备和输出设备。 总线可包括一通路, 在计算机各个部件之间传送信息。 第二处理器可以 是一个通用中央处理器 (CPU ) , 微处理器, 特定应用集成电路 appl ication-specific integrated circuit (ASIC) , 或一个或多个用于控制本发明方案程序执行的集成电路。 计算 机系统还包括一个或多个存储器, 可以是只读存储器 read-only memory (ROM) 或可存储静态 信息和指令的其他类型的静态存储设备, 随机存取存储器 random access memory (RAM) 或者 可存储信息和指令的其他类型的动态存储设备, 也可以是磁盘存储器。 这些存储器通过总线 与处理器相连接。  In particular, the computer system may in particular be a processor based computer such as a general purpose personal computer (PC), a portable device such as a tablet computer, or a smart phone. The computer system includes a bus, a processor, a memory, a communication interface, an input device, and an output device. The bus can include a path to transfer information between various components of the computer. The second processor may be a general purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present invention. The computer system also includes one or more memories, which may be read-only memory (ROM) or other types of static storage devices that store static information and instructions, random access memory (RAM) or may be stored. Other types of dynamic storage devices for information and instructions may also be disk storage. These memories are connected to the processor via a bus.
所述第一输入设备 1000包括一种装置, 以接收用户输入或者输出的数据和信息, 例如键 盘, 鼠标、 摄像头, 扫描仪, 光笔, 语音输入设备, 触摸屏等。 所述第一输出设备 1002可包 括一种装置, 以允许输出信息给用户, 包括显示屏, 打印机, 扬声器等。 计算机系统还包括 一个通信接口 1008, 使用任何收发器一类的装置, 以便与其他设备或通信网络通信, 如以太 网, 无线接入网 (RAN), 无线局域网(WLAN)等. The first input device 1000 includes a device for receiving data and information input or output by a user, such as a keyboard, a mouse, a camera, a scanner, a light pen, a voice input device, a touch screen, and the like. The first output device 1002 can include a device to allow output of information to a user, including a display screen, a printer, a speaker, and the like. The computer system also includes a communication interface 1008 that uses devices such as any transceiver to communicate with other devices or communication networks, such as Ethernet Network, radio access network (RAN), wireless local area network (WLAN), etc.
所述第二存储器 1004, 如 RAM, 保存有执行本发明方案的程序, 还可以保存有操作系统和 其他应用程序。 执行本发明方案的存储程序或者程序代码保存在存储器中, 并由处理器来控 制执行。  The second memory 1004, such as RAM, stores a program for executing the solution of the present invention, and may also store an operating system and other applications. The stored program or program code for carrying out the inventive arrangement is stored in a memory and controlled by the processor for execution.
如图 11,所述第一存储器中执行本发明方案的程序具体包括成帧处理器 10042和第二收发 器 10044。 (注, 本部分目的是对与发明点相关的装置作出进一步细化, 可根据不同的情况进 行结构细分)  The program for carrying out the solution of the present invention in the first memory as shown in FIG. 11 specifically includes a framing processor 10042 and a second transceiver 10044. (Note, the purpose of this section is to further refine the device associated with the invention, which can be subdivided according to different situations)
所述成帧处理器 10042, 用于将第一前导码、 链路质量定界符、 数据信息以及第一校验信 息封装成第一上行帧; 其中, 所述第一前导码的长度大于用于上行业务传输的第二前导码的 长度, 所述第一校验信息是所述数据信息的校验信息;  The framing processor 10042 is configured to encapsulate the first preamble, the link quality delimiter, the data information, and the first check information into a first uplink frame, where the length of the first preamble is greater than The length of the second preamble transmitted by the uplink service, where the first check information is check information of the data information;
所述第二收发器 10044, 用于发送所述第一上行帧。  The second transceiver 10044 is configured to send the first uplink frame.
所述信号处理的计算机系统可以应用在如图 1或者图 2所示的任意一光网络单元上。  The signal processing computer system can be applied to any of the optical network units as shown in FIG. 1 or FIG. 2.
通过以上的实施方式的描述, 所属领域的技术人员可以清楚地了解到本发明可以用硬件 实现, 或固件实现, 或它们的组合方式来实现。 当使用软件实现时, 可以将上述功能存储在 计算机可读介质中或作为计算机可读介质上的一个或多个指令或代码进行传输。 计算机可读 介质包括计算机存储介质和通信介质, 其中通信介质包括便于从一个地方向另一个地方传送 计算机程序的任何介质。 存储介质可以是计算机能够存取的任何可用介质。 以此为例但不限 于: 计算机可读介质可以包括 RAM、 ROM, EEPR0M、 CD-ROM或其他光盘存储、 磁盘存储介质或 者其他磁存储设备、 或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并 能够由计算机存取的任何其他介质。 此外。 任何连接可以适当的成为计算机可读介质。 例如, 如果软件是使用同轴电缆、 光纤光缆、 双绞线、 数字用户线 (DSL)或者诸如红外线、 无线电 和微波之类的无线技术从网站、 服务器或者其他远程源传输的, 那么同轴电缆、 光纤光缆、 双绞线、 DSL或者诸如红外线、 无线和微波之类的无线技术包括在所属介质的定影中。 如本发 明所使用的,盘(Disk)和碟(disc )包括压缩光碟(CD)、激光碟、光碟、数字通用光碟(DVD)、 软盘和蓝光光碟, 其中盘通常磁性的复制数据, 而碟则用激光来光学的复制数据。 上面的组 合也应当包括在计算机可读介质的保护范围之内。  Through the description of the above embodiments, it will be apparent to those skilled in the art that the present invention can be implemented in hardware, firmware implementation, or a combination thereof. When implemented in software, the functions described above may be stored in or transmitted as one or more instructions or code on a computer readable medium. Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another. A storage medium may be any available media that can be accessed by a computer. By way of example and not limitation, the computer readable medium can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage media or other magnetic storage device, or can be used to carry or store an instruction or data structure. The desired program code and any other medium that can be accessed by the computer. Also. Any connection may suitably be a computer readable medium. For example, if the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable , fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, wireless, and microwaves are included in the fixing of the associated media. As used in the present invention, a disk and a disc include a compact disc (CD), a laser disc, a compact disc, a digital versatile disc (DVD), a floppy disc, and a Blu-ray disc, wherein the disc is usually magnetically copied, and the disc is The laser is used to optically replicate the data. Combinations of the above should also be included within the scope of the computer readable media.
总之, 以上所述仅为本发明技术方案的较佳实施例而已, 并非用于限定本发明的保护范 围。 凡在本发明的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发 明的保护范围之内。  In summary, the above description is only a preferred embodiment of the technical solution of the present invention, and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权利 要求 Rights request
1、 一种光网络系统的通信方法, 所述通信方法应用在光网络系统中, 所述光网络系 统至少包括第一光线路终端、第二光线路终端以及多个光网络单元, 所述第一光线路终端 与所述至少一个光网络单元之间的链路为主用链路,所述第二光线路终端与所述至少一个 光网络单元之间的链路为备用链路, 其特征在于, 所述通信方法包括: 1. A communication method for an optical network system. The communication method is applied in an optical network system. The optical network system at least includes a first optical line terminal, a second optical line terminal and a plurality of optical network units. The third optical network unit The link between an optical line terminal and the at least one optical network unit is a primary link, and the link between the second optical line terminal and the at least one optical network unit is a backup link, characterized by The communication method includes:
所述第二光线路终端接收所述至少一个光网络单元发送的第一上行帧; 其中, 所述第 一上行帧至少包括: 第一前导码、 链路质量定界符、 数据信息以及第一校验信息; 所述第 一前导码的长度大于用于上行业务传输的第二前导码的长度,所述第一校验信息是所述数 据信息的校验信息; The second optical line terminal receives the first uplink frame sent by the at least one optical network unit; wherein the first uplink frame at least includes: a first preamble, a link quality delimiter, data information and a first Verification information; The length of the first preamble is greater than the length of the second preamble used for uplink service transmission, and the first verification information is the verification information of the data information;
所述第二光线路终端根据所述第一前导和所述链路质量定界符,对所述第一上行帧进 行帧的同步和帧的定界, 解析获得数据信息和第一校验信息; The second optical line terminal performs frame synchronization and frame delimitation on the first uplink frame according to the first preamble and the link quality delimiter, and parses to obtain data information and first verification information. ;
所述第二光线路终端根据所述解析获得的数据信息和第一校验信息,确定所述备用链 路的链路质量。 The second optical line terminal determines the link quality of the backup link based on the data information obtained by the analysis and the first verification information.
2、 根据权利要求 1所述的通信方法, 其特征在于, 所述第二前导码的长度大于或者等 于 8个字节。 2. The communication method according to claim 1, characterized in that the length of the second preamble is greater than or equal to 8 bytes.
3、 根据权利要求 1所述的通信方法, 其特征在于, 所述第二光线路终端根据所述解析 获得的数据信息和第一校验信息, 确定所述备用链路的链路质量包括: 3. The communication method according to claim 1, wherein the second optical line terminal determines the link quality of the backup link based on the data information obtained by the analysis and the first verification information including:
所述第二光线路终端根据所述解析获得的数据信息, 生成第二校验信息; 若所述第一校验信息与所述第二校验信息不相同,则所述第二光线路终端确定所述备 用链路的链路质量为异常。 The second optical line terminal generates second verification information based on the data information obtained by the analysis; if the first verification information and the second verification information are different, the second optical line terminal It is determined that the link quality of the backup link is abnormal.
4、 根据权利要求 1所述的通信方法, 其特征在于, 所述通信方法还包括: 发送第一下行帧, 所述第一下行帧指示所述至少一个光网络终端发送所述第一上行 帧。 4. The communication method according to claim 1, characterized in that, the communication method further includes: sending a first downlink frame, the first downlink frame instructs the at least one optical network terminal to send the first Uplink frame.
5、 一种光网络系统的通信方法, 所述通信方法应用在光网络系统中, 所述光网络系 统包括第一光线路终端、第二光线路终端以及多个光网络单元, 所述第一光线路终端与所 述至少一个光网络单元之间的链路为主用链路,所述第二光线路终端与所述至少一个光网 络单元之间的链路为备用链路, 其特征在于, 所述通信方法包括: 所述光网络单元将第一前导码、 链路质量定界符、 数据信息以及第一校验信息封装 成第一上行帧; 其中, 所述第一前导码的长度大于用于上行业务传输的第二前导码的长 度, 所述第一校验信息是所述数据信息的校验信息; 所述光网络单元发送所述第一上行帧。 5. A communication method of an optical network system, the communication method is applied in an optical network system, the optical network system includes a first optical line terminal, a second optical line terminal and a plurality of optical network units, the first The link between the optical line terminal and the at least one optical network unit is a main link, and the link between the second optical line terminal and the at least one optical network unit is a backup link, characterized in that , the communication method includes: the optical network unit encapsulates the first preamble, link quality delimiter, data information and first verification information into a first uplink frame; wherein, the length of the first preamble Greater than the length of the second preamble used for uplink service transmission degree, the first verification information is the verification information of the data information; the optical network unit sends the first uplink frame.
6、 根据权利要求 5所述的通信方法, 其特征在于, 所述通信方法还包括: 所述光网络单元获取所述数据信息; 所述光网络单元根据所述获取的数据信息生成所述第一校验信息; 所述光网络单元生成特定长度的第一前导码, 所述第一前导码的长度大于用于上行 业务传输的第二前导码的长度, 所述第二前导码的长度大于或者等于 8个字节。 6. The communication method according to claim 5, characterized in that, the communication method further includes: the optical network unit obtains the data information; the optical network unit generates the first data information according to the obtained data information. A verification information; The optical network unit generates a first preamble of a specific length, the length of the first preamble is greater than the length of the second preamble used for uplink service transmission, and the length of the second preamble is greater than Or equal to 8 bytes.
7、 根据权利要求 5所述的通信方法, 其特征在于, 所述光网络单元将第一前导码、 链路质量定界符、 数据信息以及第一校验信息封装成第一上行帧具体包括: 所述光网络单元将所述第一前导码封装在所述第一上行帧的前导码域,将所述链路质 量定界符封装在所述第一上行帧的定界域,将所述数据信息封装在所述第一上行帧的数据 域, 将所述第一校验信息封装在所述第一上行帧的校验域, 形成所述第一上行帧。 7. The communication method according to claim 5, wherein the optical network unit encapsulates the first preamble, the link quality delimiter, the data information and the first verification information into the first uplink frame. : The optical network unit encapsulates the first preamble in the preamble field of the first uplink frame, encapsulates the link quality delimiter in the delimiter field of the first uplink frame, and encapsulates the link quality delimiter in the delimiter field of the first uplink frame. The data information is encapsulated in the data field of the first uplink frame, and the first verification information is encapsulated in the verification field of the first uplink frame to form the first uplink frame.
8、 根据权利要求 5所述的通信方法, 其特征在于, 所述光网络单元发送所述第一上行 帧具体包括: 8. The communication method according to claim 5, wherein the optical network unit sending the first uplink frame specifically includes:
周期性地发送所述第一上行帧; 或者, Send the first uplink frame periodically; or,
接收所述第一光线路终端发送的第一下行帧,所述第一下行帧指示所述至少一个光网 络单元发送所述第一上行帧; Receive a first downlink frame sent by the first optical line terminal, the first downlink frame instructs the at least one optical network unit to send the first uplink frame;
根据所述第一下行帧的指示, 发送所述第一上行帧。 The first uplink frame is sent according to the indication of the first downlink frame.
9、 一种光线路终端, 其特征在于, 所述光线路终端包括: 9. An optical line terminal, characterized in that, the optical line terminal includes:
第一收发单元, 用于接收所述至少一个光网络单元发送的第一上行帧; 其中, 所述第 一上行帧至少包括: 第一前导码、 链路质量定界符、 数据信息以及第一校验信息; 所述第 一前导码的长度大于用于上行业务传输的第二前导码的长度,所述第一校验信息是所述数 据信息的校验信息; The first transceiver unit is configured to receive the first uplink frame sent by the at least one optical network unit; wherein the first uplink frame at least includes: a first preamble, a link quality delimiter, data information and a first Verification information; The length of the first preamble is greater than the length of the second preamble used for uplink service transmission, and the first verification information is the verification information of the data information;
解析单元, 用于根据所述第一前导和所述链路质量定界符, 对所述第一上行帧进行帧 的同步和帧的定界, 解析获得数据信息和第一校验信息; An analysis unit, configured to perform frame synchronization and frame delimitation on the first uplink frame according to the first preamble and the link quality delimiter, and analyze to obtain data information and first verification information;
处理单元, 用于根据所述解析获得的数据信息和第一校验信息, 确定所述备用链路的 链路质量, 其中, 所述备用链路是所述光线路终端与所述光网络单元之间的链路。 A processing unit, configured to determine the link quality of the backup link based on the data information obtained by the analysis and the first verification information, wherein the backup link is the optical line terminal and the optical network unit links between.
10、 根据权利要求 9所述的光线路终端, 其特征在于, 所述第二前导码的长度大于或 者等于 8个字节。 10. The optical line terminal according to claim 9, characterized in that the length of the second preamble is greater than or equal to 8 bytes.
11、 根据权利要求 9所述的光线路终端, 其特征在于, 所述处理单元具体包括: 第二校验信息生成单元, 用于根据所述解析获得的数据信息, 生成第二校验信息; 确定单元, 用于若所述第一校验信息与所述第二校验信息不相同, 确定所述备用链路 的链路质量为异常。 11. The optical line terminal according to claim 9, wherein the processing unit specifically includes: a second verification information generation unit, configured to generate second verification information based on the data information obtained by the analysis; A determining unit configured to determine that the link quality of the backup link is abnormal if the first verification information and the second verification information are different.
12、 根据权利要求 9所述的光线路终端, 其特征在于, 所述第一收发单元, 还用于发 送第一下行帧, 所述第一下行帧指示所述至少一个光网络终端发送所述第一上行帧。 12. The optical line terminal according to claim 9, characterized in that the first transceiver unit is further configured to send a first downlink frame, and the first downlink frame instructs the at least one optical network terminal to send The first uplink frame.
13、 一种光网络单元, 其特征在于, 所述光网络单元包括: 13. An optical network unit, characterized in that, the optical network unit includes:
成帧单元, 用于将第一前导码、 链路质量定界符、 数据信息以及第一校验信息封装成 第一上行帧; 其中, 所述第一前导码的长度大于用于上行业务传输的第二前导码的长度, 所述第一校验信息是所述数据信息的校验信息; Framing unit, used to encapsulate the first preamble, link quality delimiter, data information and first verification information into a first uplink frame; wherein, the length of the first preamble is longer than that used for uplink service transmission The length of the second preamble, the first verification information is the verification information of the data information;
第二收发单元, 用于发送所述第一上行帧。 The second transceiver unit is used to send the first uplink frame.
14、 根据权利要求 13所述的光网络单元, 其特征在于, 所述光网络单元还包括: 获取单元, 用于获取所述数据信息; 14. The optical network unit according to claim 13, characterized in that, the optical network unit further includes: an acquisition unit, used to acquire the data information;
第一校验信息生成单元, 用于根据所述获取的数据信息生成所述第一校验信息。 第一前导码生成单元, 用于生成特定长度的第一前导码, 所述第一前导码的长度大于 用于上行业务传输的第二前导码的长度, 所述第二前导码的长度大于或者等于 8个字节。 A first verification information generating unit, configured to generate the first verification information according to the acquired data information. A first preamble generation unit, configured to generate a first preamble of a specific length, where the length of the first preamble is greater than the length of the second preamble used for uplink service transmission, and the length of the second preamble is greater than or Equal to 8 bytes.
15、 根据权利要求 13所述的光网络单元, 其特征在于, 所述成帧单元, 具体用于将所 述第一前导码封装在所述第一上行帧的前导码域,将所述链路质量定界符封装在所述第一 上行帧的定界域, 将所述数据信息封装在所述第一上行帧的数据域, 将所述第一校验信息 封装在所述第一上行帧的校验域, 形成所述第一上行帧。 15. The optical network unit according to claim 13, characterized in that the framing unit is specifically configured to encapsulate the first preamble in the preamble field of the first uplink frame, and The path quality delimiter is encapsulated in the delimitation field of the first uplink frame, the data information is encapsulated in the data field of the first uplink frame, and the first verification information is encapsulated in the first uplink frame. The check field of the frame forms the first uplink frame.
16、 根据权利要求 13所述的光网络单元, 其特征在于, 所述第二收发单元, 具体用于 周期性地发送所述第一上行帧; 或者, 接收所述第一光线路终端发送的第一下行帧, 所述 第一下行帧指示所述至少一个光网络单元发送所述第一上行帧。 16. The optical network unit according to claim 13, characterized in that, the second transceiver unit is specifically configured to periodically send the first uplink frame; or, receive the first uplink frame sent by the first optical line terminal. The first downlink frame instructs the at least one optical network unit to send the first uplink frame.
17、 一种光网络系统, 所述光网络系统包括: 第一光线路终端、 第二光线路终端以及 多个光网络单元, 所述第一光线路终端与所述至少一个光网络单元之间的链路为主用链 路,所述第二光线路终端与所述至少一个光网络单元之间的链路为备用链路,其特征在于, 所述至少一个光网络单元, 用于将第一前导码、 链路质量定界符、 数据信息以及第一 校验信息封装成第一上行帧; 其中, 所述第一前导码的长度大于用于上行业务传输的第二 前导码的长度, 所述第一校验信息是所述数据信息的校验信息, 并发送所述第一上行帧; 所述第二光线路终端, 用于接收所述至少一个光网络单元发送的第一上行帧; 根据所 述第一前导和所述链路质量定界符, 对所述第一上行帧进行帧的同步和帧的定界, 解析获 得数据信息和第一校验信息; 根据所述解析获得的数据信息和第一校验信息, 确定所述备 用链路的链路质量。 17. An optical network system, the optical network system includes: a first optical line terminal, a second optical line terminal and a plurality of optical network units, between the first optical line terminal and the at least one optical network unit The link is the main link, and the link between the second optical line terminal and the at least one optical network unit is a backup link, characterized in that, the at least one optical network unit is used to use the second optical line terminal. a preamble, link quality delimiter, data information and first The verification information is encapsulated into the first uplink frame; wherein, the length of the first preamble is greater than the length of the second preamble used for uplink service transmission, and the first verification information is the verification information of the data information. , and transmit the first uplink frame; the second optical line terminal is used to receive the first uplink frame sent by the at least one optical network unit; according to the first preamble and the link quality delimiter , perform frame synchronization and frame delimitation on the first uplink frame, and analyze and obtain data information and first verification information; determine the backup link based on the data information and first verification information obtained by the analysis. link quality.
18、 根据权利要求 17所述的光网络系统, 其特征在于, 所述第二前导码的长度大于或 者等于 8个字节。 18. The optical network system according to claim 17, wherein the length of the second preamble is greater than or equal to 8 bytes.
19、根据权利要求 17所述的光网络系统,其特征在于,所述第二光线路终端具体包括: 第一收发单元, 用于接收所述至少一个光网络单元发送的第一上行帧; 其中, 所述第 一上行帧至少包括: 第一前导码、 链路质量定界符、 数据信息以及第一校验信息; 所述第 一前导码的长度大于用于上行业务传输的第二前导码的长度,所述第一校验信息是所述数 据信息的校验信息; 19. The optical network system according to claim 17, wherein the second optical line terminal specifically includes: a first transceiver unit, configured to receive the first uplink frame sent by the at least one optical network unit; wherein , the first uplink frame at least includes: a first preamble, a link quality delimiter, data information and first verification information; the length of the first preamble is greater than the second preamble used for uplink service transmission The length of the first verification information is the verification information of the data information;
解析单元, 用于根据所述第一前导和所述链路质量定界符, 对所述第一上行帧进行帧 的同步和帧的定界, 解析获得数据信息和第一校验信息; An analysis unit, configured to perform frame synchronization and frame delimitation on the first uplink frame according to the first preamble and the link quality delimiter, and analyze to obtain data information and first verification information;
处理单元, 用于根据所述解析获得的数据信息和第一校验信息, 确定所述备用链路的 链路质量。 A processing unit, configured to determine the link quality of the backup link based on the data information obtained by the analysis and the first verification information.
20、 根据权利要求 19所述的光网络系统, 其特征在于, 所述处理单元具体包括: 第二校验信息生成单元, 用于根据所述解析获得的数据信息, 生成第二校验信息; 确定单元, 用于若所述第一校验信息与所述第二校验信息不相同, 确定所述备用链路 的链路质量为异常。 20. The optical network system according to claim 19, wherein the processing unit specifically includes: a second verification information generation unit, configured to generate second verification information based on the data information obtained by the analysis; A determining unit configured to determine that the link quality of the backup link is abnormal if the first verification information and the second verification information are different.
21、 根据权利要求 19所述的光网络系统, 其特征在于, 所述第一收发单元, 还用于发 送第一下行帧, 所述第一下行帧指示所述至少一个光网络终端发送所述第一上行帧。 21. The optical network system according to claim 19, wherein the first transceiver unit is further configured to send a first downlink frame, and the first downlink frame instructs the at least one optical network terminal to send The first uplink frame.
22、 根据权利要求 17所述的光网络系统, 其特征在于, 所述光网络单元具体包括: 成帧单元, 用于将第一前导码、 链路质量定界符、 数据信息以及第一校验信息封装成 第一上行帧; 其中, 所述第一前导码的长度大于用于上行业务传输的第二前导码的长度, 所述第一校验信息是所述数据信息的校验信息; 22. The optical network system according to claim 17, characterized in that the optical network unit specifically includes: a framing unit, used to combine the first preamble, link quality delimiter, data information and first calibration The verification information is encapsulated into the first uplink frame; wherein, the length of the first preamble is greater than the length of the second preamble used for uplink service transmission, and the first verification information is the verification information of the data information;
第二收发单元, 用于发送所述第一上行帧。 The second transceiver unit is used to send the first uplink frame.
23、 根据权利要求 22所述的光网络系统, 其特征在于, 所述光网络单元还包括: 获取单元, 用于获取所述数据信息; 23. The optical network system according to claim 22, wherein the optical network unit further includes: Acquisition unit, used to obtain the data information;
第一校验信息生成单元, 用于根据所述获取的数据信息生成所述第一校验信息。 第一前导码生成单元, 用于生成特定长度的第一前导码, 所述第一前导码的长度大于 用于上行业务传输的第二前导码的长度, 所述第二前导码的长度大于或者等于 8个字节。 A first verification information generating unit, configured to generate the first verification information according to the acquired data information. A first preamble generation unit, configured to generate a first preamble of a specific length, where the length of the first preamble is greater than the length of the second preamble used for uplink service transmission, and the length of the second preamble is greater than or Equal to 8 bytes.
24、 根据权利要求 22所述的光网络系统, 其特征在于, 所述成帧单元, 具体用于将所 述第一前导码封装在所述第一上行帧的前导码域,将所述链路质量定界符封装在所述第一 上行帧的定界域, 将所述数据信息封装在所述第一上行帧的数据域, 将所述第一校验信息 封装在所述第一上行帧的校验域, 形成所述第一上行帧。 24. The optical network system according to claim 22, characterized in that the framing unit is specifically configured to encapsulate the first preamble in the preamble field of the first uplink frame, and The path quality delimiter is encapsulated in the delimitation field of the first uplink frame, the data information is encapsulated in the data field of the first uplink frame, and the first verification information is encapsulated in the first uplink frame. The check field of the frame forms the first uplink frame.
25、 根据权利要求 22所述的光网络系统, 其特征在于, 所述第二收发单元, 具体用于 周期性地发送所述第一上行帧; 或者, 接收所述第一光线路终端发送的第一下行帧, 所述 第一下行帧指示所述至少一个光网络单元发送所述第一上行帧。 25. The optical network system according to claim 22, characterized in that, the second transceiver unit is specifically configured to periodically send the first uplink frame; or, receive the first uplink frame sent by the first optical line terminal. The first downlink frame instructs the at least one optical network unit to send the first uplink frame.
26、 一种信号处理的计算机系统, 其特征在于, 所述计算机系统执行信号处理的动作 包括: 26. A computer system for signal processing, characterized in that the computer system performs signal processing actions including:
第一输入设备, 用于接收数据; The first input device is used to receive data;
第一输出设备, 用于发送所述数据; A first output device used to send the data;
第一存储器, 用于存储程序, 包括: The first memory is used to store programs, including:
第一收发器, 用于接收第一上行帧;; 其中, 所述第一上行帧至少包括: 第一前 导码、 链路质量定界符、 数据信息以及第一校验信息; 所述第一前导码的长度大于用于上 行业务传输的第二前导码的长度, 所述第一校验信息是所述数据信息的校验信息; a first transceiver, configured to receive a first uplink frame; wherein, the first uplink frame at least includes: a first preamble, a link quality delimiter, data information and first verification information; the first The length of the preamble is greater than the length of the second preamble used for uplink service transmission, and the first verification information is the verification information of the data information;
帧解析处理器, 用于根据所述第一前导和所述链路质量定界符, 对所述第一上行 帧进行帧的同步和帧的定界, 解析获得数据信息和第一校验信息; 根据所述解析获得的数 据信息和第一校验信息, 确定所述备用链路的链路质量。 A frame parsing processor, configured to perform frame synchronization and frame delimitation on the first uplink frame according to the first preamble and the link quality delimiter, and parse to obtain data information and first verification information. ; Determine the link quality of the backup link based on the data information obtained by the analysis and the first verification information.
第一处理器, 与所述第一输入设备、 所述第一输出设备和所述第一存储器相耦合, 用 于控制执行所述程序。 A first processor, coupled to the first input device, the first output device and the first memory, is used to control execution of the program.
27、 一种信号处理的计算机系统, 其特征在于, 所述计算机系统执行信号处理的动作 包括: 27. A computer system for signal processing, characterized in that the computer system performs signal processing actions including:
第二输入设备, 用于接收数据; The second input device is used to receive data;
第二输出设备, 用于发送所述数据; a second output device, used to send the data;
第二存储器, 用于存储程序, 包括: 成帧处理器, 用于将第一前导码、 链路质量定界符、 数据信息以及第一校验信息 封装成第一上行帧; 其中, 所述第一前导码的长度大于用于上行业务传输的第二前导码的 长度, 所述第一校验信息是所述数据信息的校验信息; The second memory is used to store programs, including: A framing processor, configured to encapsulate the first preamble, link quality delimiter, data information and first verification information into a first uplink frame; wherein the length of the first preamble is longer than that used for uplink services The length of the transmitted second preamble, the first verification information is the verification information of the data information;
第二收发器, 用于发送所述第一上行帧。 The second transceiver is used to send the first uplink frame.
第二处理器, 与所述第二输入设备、 所述第二输出设备和所述第二存储器相耦合, 用 于控制执行所述程序。 A second processor, coupled to the second input device, the second output device and the second memory, is used to control execution of the program.
PCT/CN2012/084484 2012-11-12 2012-11-12 Communication method for optical network system, system and device WO2014071639A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201280002514.XA CN104040914A (en) 2012-11-12 2012-11-12 Communication method for optical network system, system and device
PCT/CN2012/084484 WO2014071639A1 (en) 2012-11-12 2012-11-12 Communication method for optical network system, system and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/084484 WO2014071639A1 (en) 2012-11-12 2012-11-12 Communication method for optical network system, system and device

Publications (1)

Publication Number Publication Date
WO2014071639A1 true WO2014071639A1 (en) 2014-05-15

Family

ID=50683966

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/084484 WO2014071639A1 (en) 2012-11-12 2012-11-12 Communication method for optical network system, system and device

Country Status (2)

Country Link
CN (1) CN104040914A (en)
WO (1) WO2014071639A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114339481A (en) * 2020-09-30 2022-04-12 上海诺基亚贝尔股份有限公司 Method, apparatus, device and computer readable medium for optical communication
TWI795537B (en) * 2018-05-31 2023-03-11 香港商阿里巴巴集團服務有限公司 Communication method and device based on relay equipment, terminal and base station
CN116800383A (en) * 2023-08-21 2023-09-22 北京紫光芯能科技有限公司 Multi-channel communication method, device, equipment and medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114499741A (en) * 2020-10-23 2022-05-13 华为技术有限公司 Data frame checking method, receiving equipment and transmitting equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035597A (en) * 2009-09-30 2011-04-27 华为技术有限公司 Method, device and system for switching between main terminal and standby terminal of passive optical network (PON)
CN102263587A (en) * 2011-07-26 2011-11-30 中兴通讯股份有限公司 Optical interface switching method of ONU and system thereof
CN102318239A (en) * 2009-02-27 2012-01-11 华为技术有限公司 Method and device for transmitting an upstream transmission frame in a passive optical network
CN102648590A (en) * 2011-05-27 2012-08-22 华为技术有限公司 Method, system and device for communication in the optical network system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4942680B2 (en) * 2008-02-08 2012-05-30 株式会社日立製作所 PASSIVE OPTICAL NETWORK SYSTEM, OPTICAL MULTIPLE TERMINAL DEVICE, AND PASSIVE OPTICAL NETWORK SYSTEM COMMUNICATION METHOD

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102318239A (en) * 2009-02-27 2012-01-11 华为技术有限公司 Method and device for transmitting an upstream transmission frame in a passive optical network
CN102035597A (en) * 2009-09-30 2011-04-27 华为技术有限公司 Method, device and system for switching between main terminal and standby terminal of passive optical network (PON)
CN102648590A (en) * 2011-05-27 2012-08-22 华为技术有限公司 Method, system and device for communication in the optical network system
CN102263587A (en) * 2011-07-26 2011-11-30 中兴通讯股份有限公司 Optical interface switching method of ONU and system thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI795537B (en) * 2018-05-31 2023-03-11 香港商阿里巴巴集團服務有限公司 Communication method and device based on relay equipment, terminal and base station
CN114339481A (en) * 2020-09-30 2022-04-12 上海诺基亚贝尔股份有限公司 Method, apparatus, device and computer readable medium for optical communication
CN116800383A (en) * 2023-08-21 2023-09-22 北京紫光芯能科技有限公司 Multi-channel communication method, device, equipment and medium

Also Published As

Publication number Publication date
CN104040914A (en) 2014-09-10

Similar Documents

Publication Publication Date Title
US9209897B2 (en) Adaptive forward error correction in passive optical networks
RU2531874C2 (en) Synchronisation structure of frame of downlink of data transfer of ten-gigabit passive optic network protected with error control in header
US8929396B2 (en) Ethernet media access control organization specific extension
EP2487822B1 (en) Method and device for downlink frame synchronization used in gigabit-capable passive optical network system
KR102373841B1 (en) Data coding and decoding methods and devices, OLT, ONU and PON systems
JP2004096734A (en) Apparatus and method for duplexing gigabit ethernet (r) passive optical network system, and frame format for controlling the same
JP4723940B2 (en) COMMUNICATION SYSTEM AND COMMUNICATION METHOD, AND BASE STATION DEVICE AND SUBSTATION DEVICE
JP2010028629A (en) Station-side termination device, subscriber-side termination device, optical communication system, communication method, and program for devices
US8948586B2 (en) Method and apparatus for laser overlap detection
WO2014071639A1 (en) Communication method for optical network system, system and device
BRPI0924751B1 (en) burst receiver reset method, burst receiver and burst transmission method
WO2011094990A1 (en) Method and system for path switching and method for transmitting downlink data
JPWO2012020450A1 (en) Station side device and PON system
JP5578023B2 (en) Station side device, home side device, optical communication system, and control method of optical communication system
JP2009260882A (en) Decoding device and in-house equipment in optical communication system
WO2017113349A1 (en) Data parsing and data transmission method and apparatus
ES2565806T3 (en) Method, device and communication system for passive optical network
BRPI0924381B1 (en) METHOD AND DEVICE TO SEND UPGRADE FRAME ON PASSIVE OPTICAL NETWORK, AND UPGRADE BLAST FRAME ON A GIGABIT CAPABLE PASSIVE OPTICAL NETWORK
WO2017049429A1 (en) Information transmission method and apparatus, and passive optical network system
JP2014236484A (en) Optical communication system and method of detecting collision
KR101395067B1 (en) Method for monitoring multi uplinks and downlinks of passive optical network
KR20030073484A (en) Method for compensating round trip delay in transmission of ethernet frames over a passive optical network and frame format of down stream grant signal
WO2018173147A1 (en) Host device, counter device, communication system, and communication method
KR101251302B1 (en) Passive optical network and the method of detecting ont
EP4322546A1 (en) Data frame fragmentation method, data frame parsing method and related device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12888053

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12888053

Country of ref document: EP

Kind code of ref document: A1