WO2015188298A1 - Method and apparatus for wavelength initialization and device registration in passive optical network - Google Patents

Method and apparatus for wavelength initialization and device registration in passive optical network Download PDF

Info

Publication number
WO2015188298A1
WO2015188298A1 PCT/CN2014/079444 CN2014079444W WO2015188298A1 WO 2015188298 A1 WO2015188298 A1 WO 2015188298A1 CN 2014079444 W CN2014079444 W CN 2014079444W WO 2015188298 A1 WO2015188298 A1 WO 2015188298A1
Authority
WO
WIPO (PCT)
Prior art keywords
onu
wavelength channel
type
field
downlink
Prior art date
Application number
PCT/CN2014/079444
Other languages
French (fr)
Chinese (zh)
Inventor
高波
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2014/079444 priority Critical patent/WO2015188298A1/en
Priority to CN201480008120.4A priority patent/CN105409142A/en
Publication of WO2015188298A1 publication Critical patent/WO2015188298A1/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/50Transmitters
    • H04B10/572Wavelength control

Definitions

  • the present invention relates to the field of optical communications, and more particularly to a method and apparatus for wavelength initialization and device registration in a passive optical network in the field of optical communications. Background technique
  • the PON system may include: an Optical Line Terminal (“OLT”) located at the central office, an Optical Distribution Network (ODN) including a passive optical device, and a light located at the user end.
  • OLT Optical Line Terminal
  • ODN Optical Distribution Network
  • PON systems can include Time Division Multiplexing (referred to as Time Division Multiplexing
  • TDM Gigabit Passive Optical Network
  • EON Time-wavelength division multiplexing
  • TWDM Time-wavelength division multiplexing
  • PtP Point-to-Point
  • WDM Wavelength Division Multiplexing
  • ITU-T International Telecommunication Standardization Sector
  • G.989.X proposes a so-called next generation.
  • a passive optical network system Next Generation-PON2, hereinafter referred to as "NG-PON2"
  • the NG-PON2 system includes a TWDM-PON system and a PtP WDM-PON system, wherein the TWDM-PON system and the PtP WDM-
  • the PON system can coexist on an ODN based on an Optical Splitter ("OS”) at the same time.
  • OS Optical Splitter
  • the NG-PON2 system there is no existing method of wavelength initialization and device registration.
  • embodiments of the present invention provide a method and apparatus for wavelength initialization and device registration in a passive optical network, which are capable of wavelength initialization and device registration in the presence of multiple systems.
  • a method for wavelength initialization in a passive optical network includes: an optical network unit ONU receiving a downlink frame sent by an optical line terminal OLT, where the downlink frame carries a downlink wavelength channel for indicating a current wavelength channel. a field of information, the downlink wavelength channel information includes a type of the wavelength channel; the ONU determines, according to the type of the wavelength channel, a target downlink wavelength channel of the ONU from at least one downlink wavelength channel, where each wavelength channel and one downlink Wavelength channel - Correspondingly, the type of wavelength channel corresponding to the target downstream wavelength matches the device type of the ONU.
  • the downlink frame is specifically a downlink physical synchronization block PSBd or a template physical layer operation and maintenance profile PLOAM message for indicating the downlink wavelength channel information.
  • the downlink physical synchronization block includes a passive optical network operation control body PON OC Body field or a passive optical network
  • the identifier PON ID field is used to indicate the downlink wavelength channel information.
  • the downlink wavelength channel information further includes a downlink service that can be transmitted by the wavelength channel
  • the ONU determines the target downlink wavelength channel of the ONU from the at least one downlink wavelength channel according to the type of the wavelength channel, and includes: the ONU according to the type of the wavelength channel and the type of the downlink service that can be transmitted. Determining the target downlink wavelength from the at least one downlink wavelength channel, wherein a type of the wavelength channel corresponding to the target downlink wavelength channel matches a device type of the ONU, and a type of downlink service that the target downlink wavelength channel can transmit Matches the type of downlink service supported by the ONU.
  • a method for wavelength initialization in a passive optical network includes: an optical network unit ONU receiving a downlink frame that is responded by an optical line terminal OLT, where the downlink frame carries an uplink wavelength channel for indicating a current wavelength channel. a field of information, the uplink wavelength channel information includes a type of the wavelength channel; the ONU determines a target uplink wavelength channel of the ONU from the at least one upstream wavelength channel according to the type of the wavelength channel, where each wavelength channel and one uplink Wavelength channel - Correspondingly, the type of wavelength channel corresponding to the target upstream wavelength channel matches the device type of the ONU.
  • the method further includes: receiving a registration request sent by the OLT, where the registration request carries a field for indicating a device type of the device to be registered;
  • the OLT sends an uplink frame for responding to the registration request, where the uplink frame is used to carry a field indicating a device type of the ONU, where the sending, by the OLT, an uplink frame for responding to the registration request includes: determining the ONU Whether the device type matches the device type of the device to be registered; when determining that the device type of the ONU matches the device type of the device that is allowed to register, the uplink frame is sent to the OLT.
  • the receiving the registration request sent by the OLT includes: receiving, by the OLT, an allocation structure including an allocation structure
  • the registration request, the value of the allocation unit identifier Alloc-ID field in the allocation structure field indicates the device type of the device to be registered, or the allocation structure field includes a field for indicating the device type of the device to be registered.
  • the receiving the registration request sent by the OLT includes: receiving the OLT to send and maintain a PLOAM message through a physical layer
  • the registration request, the PLOAM message includes a field for indicating the device type of the device to be registered.
  • the field indicating the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identification PON ID field, and the PON OC Body field and the PON ID field are used to indicate the downstream wavelength of the ONU.
  • the uplink wavelength channel information is further The type of the uplink service that can be transmitted by the wavelength channel, wherein the ONU determines the target uplink wavelength channel of the ONU from the at least one upstream wavelength channel according to the type of the wavelength channel, including: the ONU according to the type of the wavelength channel and The type of the uplink service that can be transmitted, the destination uplink wavelength channel is determined from the at least one uplink wavelength channel, where the type of the target uplink wavelength channel matches the device type of the ONU, and the target uplink wavelength channel can transmit The type of uplink service matches the type of uplink service supported by the ONU.
  • the method before the optical network unit ONU receives the downlink frame sent by the optical line terminal OLT, the method further includes: receiving the wavelength channel sent by the OLT according to the uplink frame Switching commands or wavelength adjustment commands to instruct the ONU to perform upstream wavelength calibration.
  • a third aspect provides a method for device registration in a passive optical network, the method comprising: sending a registration response to an optical line terminal OLT, the registration response is used to request the OLT to allocate an identifier, and the registration response is carried for indicating a field of the device type of the ONU of the optical network unit; receiving the device identifier of the ONU sent by the OLT when determining the device type of the ONU according to the registration response to match the device type of the device to be registered; and transmitting the information according to the device identifier.
  • the method further includes: receiving a registration request sent by the OLT, where the registration request carries a field for indicating a device type of the device to be registered;
  • the sending the registration response to the optical line terminal OLT includes: determining whether the device type of the ONU matches the device type of the allowed registration device; and determining that the device type of the ONU matches the device type of the allowed registration device, to the OLT Send the registration response.
  • the receiving the registration request sent by the OLT includes: receiving, by the OLT, an allocation structure including an Allocation structure field
  • the registration request, the value of the allocation unit identifier Alloc-ID field in the allocation structure field indicates the device type of the device to be registered, or the allocation structure field includes a field for indicating the device type of the device to be registered.
  • the receiving the registration request sent by the OLT includes: receiving the OLT to send and maintain a PLOAM message through a physical layer
  • the registration request, the PLOAM message includes a field for indicating the device type of the device to be registered.
  • the field indicating the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identification PON ID field, and the PON OC Body field and the PON ID field are used to indicate the downstream wavelength of the ONU.
  • the method further includes: sending, to the OLT, confirmation information, where the confirmation information is used to indicate the ONU Received the device ID.
  • the method further includes: receiving The wavelength channel switching command sent by the OLT when determining that the device type of the ONU does not match the device type of the allowed registration device according to the registration response, to indicate that the ONU re-registers.
  • a fourth aspect provides a method for wavelength initialization in a passive optical network, where the method includes: determining wavelength channel information, where the wavelength channel information includes downlink wavelength channel information and/or uplink wavelength channel information, where the downlink wavelength channel The information includes the type of the downlink wavelength channel currently used by the optical line terminal OLT, and the uplink wavelength channel information includes the type of the uplink wavelength channel; and the wavelength channel information is sent to the optical network unit ONU.
  • the transmitting the wavelength channel information to the optical network unit ONU includes: sending the information to the ONU
  • the downlink physical synchronization block PSBd or the template physical layer runs and maintains the Profile PLOAM message, where the downlink physical synchronization block carries the downlink wavelength channel information, and the Profile PLOAM message includes the downlink wavelength channel information.
  • the downlink physical synchronization block includes a passive optical network operation control body PON OC Body field carrying the downlink wavelength channel Information; or the downlink optical synchronization block includes a passive optical network identifier PON ID field 7 carrying the downlink wavelength channel information.
  • the method further includes: receiving the ONU to send on the uplink wavelength channel a registration response, the registration response is used to request an upstream wavelength calibration, and the registration response carries a field for indicating a device type of the ONU; wherein the transmitting the wavelength channel information to the optical network unit ONU comprises: according to the registration response The uplink wavelength channel information is sent to the ONU.
  • the method further includes: sending a registration request to the ONU, where the registration request is carried to indicate that the device is allowed to be registered a field of the device type, where the receiving the registration response sent by the ONU to the OLT on the uplink wavelength channel includes: receiving the ONU to determine the setting of the ONU The registration response sent on the upstream wavelength channel when the backup type matches the device type of the device that is allowed to register.
  • the sending the registration request to the ONU includes: sending the registration including the allocation structure Allocation structure field to the ONU
  • the request, the value of the allocation unit identifier Alloc-ID field in the allocation structure field indicates the device type of the device to be registered; or the allocation structure field includes a field for indicating the device type of the device to be registered.
  • the sending the registration request to the ONU includes: sending, by the physical layer, the PLOAM message to the ONU A registration request, the PLOAM message includes a field for indicating the device type of the device to be registered.
  • the registration response is carried to indicate the ONU
  • the field of the device type includes a passive optical network operation control body PON OC Body field or a passive optical network identification PON ID field, and the PON OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located. To indicate the device type of the ONU.
  • the sending is sent to the ONU Before the uplink wavelength channel information, the method further includes: sending a wavelength channel switching command or a wavelength adjustment command to the ONU according to the registration response, to instruct the ONU to perform uplink wavelength calibration.
  • the downlink wavelength channel information is further And including the type of the downlink service that the downlink wavelength channel can transmit; the uplink wavelength channel information further includes a type of the uplink service that can be transmitted by the uplink wavelength channel.
  • a fifth aspect provides a method for registering a device in a passive optical network, the method comprising: receiving a registration response sent by an optical network unit ONU, where the registration response is used to request an optical line terminal OLT to allocate an identifier, and the registration response carries a field for indicating a device type of the ONU; determining, according to the registration response, whether a device type of the ONU matches a device type of the device to be registered; when determining that the device type of the ONU matches the device type of the device that allows registration, The ONU sends the device identifier of the ONU.
  • the method further includes: sending a registration request to the ONU, where the registration request carries a field for indicating a device type of the device that is allowed to be registered;
  • the registration response sent by the receiving optical network unit ONU includes: receiving the registration response sent by the ONU when determining that the device type of the ONU matches the device type of the allowed registration device.
  • the sending the registration request to the ONU includes: sending the registration including the allocation structure Allocation structure field to the ONU
  • the request, the value of the allocation unit identifier Alloc-ID field in the allocation structure field indicates the device type of the device to be registered; or the allocation structure field includes a field for indicating the device type of the device to be registered.
  • the sending the registration request to the ONU includes: sending, by the physical layer, the PLOAM message to the ONU A registration request, the PLOAM message includes a field for indicating the device type of the device to be registered.
  • the field indicating the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identification PON ID field, and the PON OC Body field and the PON ID field are used to indicate the downstream wavelength of the ONU.
  • the sending to the ONU After the device identifier of the ONU the method further includes: receiving the acknowledgement information sent by the ONU, where the acknowledgement information is used to indicate that the ONU receives the device identifier.
  • the method further includes: When it is determined that the device type of the ONU does not match the device type of the device to be registered, a wavelength channel switching command is sent to the ONU to instruct the ONU to re-register.
  • a sixth aspect of the present invention provides an optical network unit ONU, where the ONU includes: a receiving module, configured to receive a downlink frame sent by an optical line terminal OLT, where the downlink frame carries a field for indicating downlink wavelength channel information of a current wavelength channel,
  • the downlink wavelength channel information includes a class of the wavelength channel
  • the determining module is configured to determine, according to the type of the wavelength channel, a target downlink wavelength channel of the ONU from the at least one downlink wavelength channel, where the type of the target downlink wavelength channel matches the device type of the ONU.
  • the downlink frame received by the receiving module is specifically a downlink physical synchronization block PSBd or a template physical layer operation and maintenance for indicating the downlink wavelength channel information.
  • Profile PLOAM message is specifically a downlink physical synchronization block PSBd or a template physical layer operation and maintenance for indicating the downlink wavelength channel information.
  • the downlink physical synchronization block includes a passive optical network operation control body PON OC Body field or a passive optical network
  • the identifier PON ID field is used to indicate the downlink wavelength channel information.
  • the downlink wavelength channel information further includes a downlink service that can be transmitted by the wavelength channel
  • the determining module is specifically configured to: determine the target downlink wavelength channel from the at least one downlink wavelength channel according to the type of the wavelength channel and the type of the downlink service that can be transmitted, where the target downlink wavelength channel
  • the type of the device matches the device type of the ONU, and the type of the downlink service that the target downlink wavelength channel can transmit matches the type of the downlink service supported by the ONU.
  • the seventh aspect provides an optical network unit ONU, where the ONU includes: a receiving module, configured to receive a downlink frame that is responded by the optical line terminal OLT, where the downlink frame carries a field for indicating uplink wavelength channel information of the current wavelength channel,
  • the uplink wavelength channel information includes a type of the wavelength channel
  • a determining module configured to determine, according to the type of the wavelength channel, a target uplink wavelength channel of the ONU from the at least one uplink wavelength channel, where the type of the target uplink wavelength channel is The device type of the ONU matches.
  • the receiving module is further configured to: receive a registration request sent by the OLT, where the registration request carries a field for indicating a device type of the device to be registered;
  • the ONU further includes a sending module, configured to send an uplink frame to the optical line terminal OLT, where the uplink frame carries a field for indicating a device type of the ONU, where the determining module is further configured to: determine a device type of the ONU and the The device type of the device is allowed to be matched.
  • the sending module is specifically configured to: when the determining module determines that the device type of the ONU matches the device type of the device to be registered, send the uplink frame to the OLT.
  • the receiving module is specifically configured to: receive, by the OLT, an allocation structure, the Allocation The registration request of the structure field, the value of the allocation unit identifier Alloc-ID field in the allocation structure field indicates the device type of the device to be registered; or the allocation structure field includes a value indicating the device type of the device to be registered. Field.
  • the receiving module is specifically configured to: receive the registration request sent by the OLT to run and maintain a PLOAM message through a physical layer
  • the PLOAM message includes a field for indicating the device type of the device to be registered.
  • the sending module sends the The field carried by the uplink frame for indicating the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identification PON ID field, and the PON OC Body field and the PON ID field are used to indicate the Type of the downstream wavelength channel where the ONU is located to indicate the device type of the ONU.
  • the receiving module receives the The uplink wavelength channel information further includes a type of uplink service that can be transmitted by the wavelength channel.
  • the determining module is specifically configured to: according to the type of the wavelength channel and the type of the uplink service that can be transmitted, from the at least one uplink wavelength channel. Determining the target uplink wavelength channel, wherein the type of the target uplink wavelength channel matches the device type of the ONU, and the type of the uplink service that the target uplink wavelength channel can transmit matches the type of the uplink service supported by the ONU.
  • the receiving module is further used to Before receiving the downlink frame sent by the OLT, receiving a wavelength channel switching command or a wavelength adjustment command sent by the OLT according to the uplink frame, to instruct the ONU to perform uplink wavelength calibration.
  • the eighth aspect provides an optical network unit ONU, where the ONU includes: a sending module, configured to send a registration response to the optical line terminal OLT, where the registration response is used to request the OLT to allocate an identifier, and the registration response carries a receiving device module, configured to receive, by the OLT, a device identifier of the ONU sent by the OLT according to the registration response sent by the sending module, determining that the device type of the ONU matches the device type of the device to be registered; And a processing module, configured to perform information transmission according to the device identifier received by the receiving module.
  • a sending module configured to send a registration response to the optical line terminal OLT, where the registration response is used to request the OLT to allocate an identifier
  • the registration response carries a receiving device module, configured to receive, by the OLT, a device identifier of the ONU sent by the OLT according to the registration response sent by the sending module, determining that the device type of the ONU matches the device type of the device to be registered;
  • the receiving module is further configured to: receive a registration request sent by the OLT, where the registration request carries a field for indicating a device type of the device to be registered;
  • the optical network unit further includes a determining module, configured to determine whether the device type of the ONU matches the device type of the device to be registered;
  • the sending module is specifically configured to: determine, by the determining module, a device type of the ONU and the permission When the device type of the registered device matches, the registration response is sent to the OLT.
  • the receiving module is configured to: receive the registration request that is sent by the OLT, including an allocation structure, an Allocation structure field,
  • the value of the allocation unit identifier Alloc-ID field in the allocation structure field indicates the device type of the device to be registered; or the allocation structure field includes a field for indicating the device type of the device to be registered.
  • the receiving module is specifically configured to: receive the registration request sent by the OLT to run and maintain a PLOAM message through a physical layer
  • the PLOAM message includes a field for indicating the device type of the device to be registered.
  • the sending module sends the The field carried in the registration response for indicating the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identification PON ID field, and the PON OC Body field and the PON ID field are used to indicate the Type of the downstream wavelength channel where the ONU is located to indicate the device type of the ONU.
  • the sending module is further used to After the receiving module receives the device identifier of the ONU, it sends an acknowledgement message to the OLT, where the acknowledgement information is used to indicate that the ONU receives the device identifier.
  • the receiving module is further used Receiving, by the OLT, a wavelength channel switching command sent when the device type of the ONU does not match the device type of the allowed registration device according to the registration response, to indicate that the ONU re-registers.
  • an optical line terminal OLT includes: a determining module,
  • the wavelength channel information includes a downlink wavelength channel information and/or an uplink wavelength channel information, where the downlink wavelength channel information includes a type of a downlink wavelength channel currently used by the OLT, and the uplink wavelength channel information includes an uplink.
  • the type of the wavelength channel; the sending module configured to send the wavelength channel information determined by the determining module to the optical network unit ONU.
  • the sending module when the determining module determines that the wavelength channel information includes the downlink wavelength channel information, the sending module is specifically configured to: send downlink physical synchronization to the ONU The block PSBd or the template physical layer runs and maintains a Profile PLOAM message, where the downlink physical synchronization block carries the downlink wavelength channel information, and the Profile PLOAM message includes the downlink wavelength channel information.
  • the PON OC Body field of the passive optical network operation control body included in the downlink physical synchronization block carries the downlink wavelength channel Information; or the downlink optical synchronization block includes a passive optical network identifier PON ID field 7 carrying the downlink wavelength channel information.
  • the optical line terminal further includes a receiving module, configured to receive the ONU a registration response sent on the uplink wavelength channel, the registration response is used to request an uplink wavelength calibration, and the registration response carries a field for indicating a device type of the ONU; wherein the sending module is specifically configured to: according to the registration response The ONU sends the uplink wavelength channel information.
  • the sending module is further configured to: send a registration request to the ONU, where the registration request is carried to indicate that registration is permitted A field of the device type of the device.
  • the receiving module is specifically configured to: receive the registration response sent by the ONU on the uplink wavelength channel when determining that the device type of the ONU matches the device type of the allowed device.
  • the sending module is specifically configured to: send the registration request that includes an allocation structure Allocation structure field to the ONU, where The allocation unit identifier in the allocation structure field indicates that the value of the Alloc-ID field indicates the device type of the device to be registered; or the allocation structure field includes a field for indicating the device type of the device to be registered.
  • the sending module is specifically configured to: send the registration request to the ONU by using a physical layer to run and maintain a PLOAM message,
  • the PLOAM message includes a device for indicating the permission to register the device The type of the field.
  • the field for indicating the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identification PON ID field, and the PON OC Body field and the PON ID field are used to indicate the downlink where the ONU is located.
  • the type of wavelength channel to indicate the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identification PON ID field, and the PON OC Body field and the PON ID field are used to indicate the downlink where the ONU is located.
  • the transmitting module is further configured to: Before the registration response sends the uplink wavelength channel information to the ONU, the wavelength channel switching command or the wavelength adjustment command is sent to the ONU according to the registration response to instruct the ONU to perform uplink wavelength calibration.
  • the determining module determines the The downlink wavelength channel information further includes a type of downlink service that can be transmitted by the downlink wavelength channel.
  • the uplink wavelength channel information determined by the determining module further includes a type of uplink service that can be transmitted by the uplink wavelength channel.
  • the tenth aspect provides an optical line terminal OLT, where the OLT includes: a receiving module, configured to receive a registration response sent by the optical network unit ONU, where the registration response is used to request the OLT to allocate an identifier, and the registration response is carried a field indicating a device type of the ONU; a determining module, configured to determine, according to the registration response received by the receiving module, whether a device type of the ONU matches a device type of the device to be registered; and a sending module, configured to determine, by the determining module When the device type of the ONU matches the device type of the device to be registered, the device identifier of the ONU is sent to the ONU.
  • a receiving module configured to receive a registration response sent by the optical network unit ONU, where the registration response is used to request the OLT to allocate an identifier, and the registration response is carried a field indicating a device type of the ONU
  • a determining module configured to determine, according to the registration response received by the receiving module, whether a
  • the sending module is further configured to: send a registration request to the ONU, where the registration request carries a field for indicating a device type of the device that is allowed to be registered
  • the receiving module is specifically configured to: receive the registration response sent by the ONU when determining that the device type of the ONU matches the device type of the allowed registration device.
  • the sending module is specifically configured to: send the registration request that includes an allocation structure Allocation structure field to the ONU, where Assignment unit ID in the allocation structure field identifies the Alloc-ID word
  • the value of the segment indicates the device type of the device to be registered; or the allocation structure field includes a field for indicating the device type of the device to be registered.
  • the sending module is specifically configured to: send, by the physical layer, a PLOAM message to the ONU to send the registration request,
  • the PLOAM message includes a field for indicating the type of device that is allowed to register the device.
  • the receiving module receives the The field carried in the registration response for indicating the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identification PON ID field, and the PON OC Body field and the PON ID field are used to indicate the Type of the downstream wavelength channel where the ONU is located to indicate the device type of the ONU.
  • the receiving module is further used to After the sending module sends the device identifier of the ONU to the ONU, the acknowledgment information sent by the ONU is received, and the acknowledgment information is used to indicate that the ONU receives the device identifier.
  • the sending module is further used to And: when the determining module determines that the device type of the ONU does not match the device type of the allowed registered device, sending a wavelength channel switching command to the ONU to instruct the ONU to re-register.
  • the method and apparatus for wavelength initialization and device registration in a passive optical network carry information indicating a channel type or a device type in information interaction between an optical line terminal and an optical network unit. Therefore, the passive optical network system to which the channel or the device belongs can be identified in the case where a plurality of passive optical network systems coexist, thereby enabling wavelength initialization and device registration to be correctly performed, and interference with other devices can be avoided.
  • FIG. 1 is a schematic diagram of an application scenario according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of a method for wavelength initialization according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a frame structure of a downlink frame according to an embodiment of the present invention
  • 4a is another schematic diagram of a frame structure of a downlink frame according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a frame structure of a downlink frame according to an embodiment of the present invention
  • FIG. 5 is a schematic flowchart of a method for wavelength initialization according to another embodiment of the present invention
  • FIG. 6 is another embodiment of the present invention. Another schematic flow chart of the method of wavelength initialization
  • FIG. 7 is a schematic diagram of an allocation structure field provided by an embodiment of the present invention.
  • FIG. 8 is still another schematic flowchart of a method for wavelength initialization according to another embodiment of the present invention.
  • FIG. 9 is a schematic flowchart of a method for registering a device according to an embodiment of the present invention.
  • FIG. 10 is another schematic flowchart of a method for registering a device according to an embodiment of the present invention
  • FIG. 11 is a schematic flowchart of a method for registering a device according to an embodiment of the present invention
  • FIG. 13 is a schematic flowchart of a method for wavelength initialization according to still another embodiment of the present invention
  • FIG. 14 is a schematic diagram of a wavelength initialization method according to still another embodiment of the present invention. Another schematic flow chart;
  • FIG. 15 is still another schematic flowchart of a method for wavelength initialization according to still another embodiment of the present invention.
  • FIG. 16 is still another schematic flowchart of a method for wavelength initialization according to still another embodiment of the present invention.
  • FIG. 17 is a schematic flowchart of a method for registering a device according to another embodiment of the present invention
  • FIG. 18 is another schematic flowchart of a method for registering a device according to another embodiment of the present invention
  • FIG. 20 is still another schematic flowchart of a method for registering a device according to another embodiment of the present invention
  • FIG. 21 is a schematic flowchart of a method for registering a device according to another embodiment of the present invention
  • FIG. 22 is a schematic block diagram of an optical network unit according to an embodiment of the present invention.
  • FIG. 23 is another schematic block diagram of an optical network unit according to an embodiment of the present invention.
  • FIG. 24 is still another schematic block diagram of an optical network unit according to an embodiment of the present invention.
  • FIG. FIG. 25 is a schematic block diagram of an optical network unit according to an embodiment of the present invention.
  • FIG. 26 is a schematic block diagram of an optical line terminal according to an embodiment of the present invention.
  • FIG. 27 is another schematic block diagram of an optical line terminal according to an embodiment of the present invention.
  • FIG. 29 is a schematic block diagram of an optical network unit according to another embodiment of the present invention.
  • FIG. 30 is another schematic block diagram of an optical network unit according to another embodiment of the present invention
  • FIG. 31 is another schematic block diagram of an optical network unit according to another embodiment of the present invention
  • a schematic block diagram of an optical line termination provided by the example
  • FIG. 33 is another schematic block diagram of an optical line terminal according to another embodiment of the present invention. detailed description
  • FIG. 1 shows a schematic diagram of an application scenario according to an embodiment of the present invention.
  • the NG-PON2 system may include one or more NG-PON2 OLTs, for example, m NG-PON2 OLTs, and one or more NG-PON2 ONUs, for example, n NG-PON2 ONUs, where m , n is a natural number.
  • the one or more NG-PON2 OLTs pass through a wavelength multiplexer (Wavelength Mux, simply referred to as "WM") / wavelength demultiplexer and an optical splitter (Optical Splitter, referred to as "OS”) and the one or more NGs -P0N2 0NU fiber connection.
  • Wavelength Mux simply referred to as "WM”
  • Optical Splitter referred to as "OS”
  • the NG-P0N2 system is a system in which a TWDM-P0N system and a PtP WDM-PON system coexist. Therefore, the NG-P0N2 0LT may be a TWDM-PON 0LT or a PtP WDM-PON OLT; similarly, the NG-P0N2 The ONU can be a TWDM-PON ONU or a PtP WDM-PON ONU.
  • each PtP WDM-PON ONU monopolizes one wavelength channel and can support continuous reception and transmission of optical signals; each PtP WDM-PON OLT can have one or more transceivers, and Multiple different wavelength channels can be supported simultaneously to map client data into specific wavelength channels, and multiple wavelength channels can share one fiber.
  • Each PtP WDM-PON OLT and the PtP WDM-PON ONU communicate with each other through a wavelength pair, that is, the PtP WDM-PON ONU in a specific upstream wavelength channel or a downstream wavelength channel can be connected to the PtP WDM in the same wavelength channel.
  • - PON OLT for communication.
  • the transmission direction of the data or the optical signal carrying the data from the OLT to the ONT/ONU is referred to as a downlink direction, and accordingly, the channel through which the OLT transmits the optical signal to the ONT/ONU is also referred to as a downlink wavelength.
  • the bearer for carrying the information or data sent by the OLT to the ONT/ONU may also be referred to as a downlink frame; similarly, the transmission direction of the data or the optical signal carrying the data from the ONT/ONU to the OLT is called uplink.
  • the channel through which the ONT/ONU sends optical signals to the OLT is also referred to as an upstream wavelength channel; accordingly, the carrier for information or data transmitted by the 7-load ONT/ONU to the OLT may also be referred to as an upstream frame.
  • FIG. 2 shows a schematic flow diagram of a method 100 of wavelength initialization, which may be performed by an ONT and/or an ONU, for example, the method 100 by PtP WDM-PON, in accordance with an embodiment of the present invention.
  • the method 100 includes:
  • S110 Receive a downlink frame sent by the optical line terminal OLT, where the downlink frame carries a field for indicating downlink wavelength channel information of the current wavelength channel, where the downlink wavelength channel information includes a type of the wavelength channel;
  • S120 Determine, according to the type of the wavelength channel, a target downlink wavelength channel of the ONU from the at least one downlink wavelength channel, where each wavelength channel corresponds to a downlink wavelength channel, and the wavelength channel corresponding to the target downlink wavelength channel
  • the type matches the device type of the ONU.
  • the target downlink wavelength channel of the ONU is determined from the at least one downlink wavelength channel according to the type of the wavelength channel, and specifically includes:
  • the ONU 4 determines at least one wavelength channel according to the type of the wavelength channel, and the type of the at least one wavelength channel matches the device type of the ONU;
  • the ONU determines a target downstream wavelength channel of the ONU from at least one downstream wavelength channel corresponding to the at least one wavelength channel.
  • the ONU of the optical network unit receives the downlink frame sent by the optical line terminal OLT on the downlink wavelength channel, and can determine the type of the downlink wavelength channel indicated by the field carried in the downlink frame, so that the ONU According to the type of the downstream wavelength channel and the The ONU's own device type determines the target downstream wavelength channel and its corresponding target downstream wavelength that match the device type of the ONU in one or more downstream wavelength channels that can receive the downlink frame sent by the OLT, thereby implementing the ONU. Initialization of the downstream wavelength.
  • the unit receives the type information of the downlink wavelength channel in the downlink frame sent by the optical line terminal, so that the type of the downlink wavelength channel can be identified in the case where multiple passive optical network systems coexist, thereby being able to match the type of the downlink wavelength
  • the wavelength of the channel is determined as the target downstream wavelength of the ONU, so that wavelength initialization can be performed correctly, and interference with other devices can be avoided.
  • the ONU may first determine an initial downlink wavelength channel. For example, the ONU may use a downlink wavelength channel capable of receiving the optical signal as an initial downlink wavelength channel to further determine that the downlink frame that can be received by the OLT is received. One or more downstream wavelength channels.
  • the service channel can be shut down, and only the Auxiliary Management and Control Channel (AMCC) can be turned on.
  • the ONU can adjust the downlink wavelength for receiving, and The wavelength channel is scanned. If a downlink signal is used to receive the optical signal, the channel corresponding to the downlink wavelength may be a downlink wavelength channel, and the ONU may perform downlink synchronization on the downlink wavelength channel, and the receiving OLT passes through the AMCC channel, for example.
  • the PtP WDM-PON ONU has preset the default transceiving wavelength, or has already set the transmit and receive wavelength pairs that can be supported in advance, the ONU can be initialized according to the default transceiving wavelength or can be supported during power-on initialization.
  • the pair of transceiver wavelengths determines the initial transmit and receive wavelengths that the ONU uses to receive or transmit.
  • the OLT may send a downlink frame carrying a field for indicating downlink wavelength channel information through the AMCC channel.
  • the OLT periodically broadcasts the downlink wavelength channel information through the AMCC channel, and the OLT also The downlink frame may be sent to the ONU through the downlink traffic channel, but the embodiment of the present invention is not limited thereto.
  • the ONU can determine the downlink wavelength channel information by receiving the downlink frame that includes the field, and the ONU can help the ONU identify the type, usage, and type of the downlink service that can be transmitted. Etc., thereby facilitating the ONU to correctly initialize the downstream wavelength.
  • the downlink frame sent by the ONU to the OLT carries a field for indicating downlink wavelength channel information, where the downlink wavelength channel information includes a type of the downlink wavelength channel.
  • the downlink frame is specifically a downlink physical synchronization block used to indicate the downlink wavelength channel information.
  • PLOAM Physical Layer Operation and Maintenance
  • a part of the downlink frame sent by the OLT to the ONU may be a PSBd field or a Profile PLOAM message, and any one of the PSBd field and the Profile PLOAM message may be used to indicate downlink wavelength channel information.
  • the length of the PSBd field is 24 bytes, and the PSBd field may include three Physical Synchronization Sequence ("PSync") fields with a length of 8 bytes, and a superframe counter.
  • PSync Physical Synchronization Sequence
  • a Super Frame Counter structure (“SFC structure”) field and an Operational Control Structure (“OC structure”) field; wherein the SFC structure field includes a 51-bit superframe counter (Superframe counter) Field and 13-bit Hybrid Error Correction (“HEC”) field; the OC structure field includes a 51-bit Passive Optical Network Operation Control Body (PON Operational Control Body, referred to as "PON OC Body”) Field and 13-bit HEC field.
  • SFC structure Super Frame Counter structure
  • OC structure Operational Control Structure
  • the SFC structure field includes a 51-bit superframe counter (Superframe counter) Field and 13-bit Hybrid Error Correction (“HEC”) field
  • the OC structure field includes a 51-bit Passive Optical Network Opera
  • the PSync field, the SFC structure field, or the OC structure field in the PSBd field may include a field for indicating downlink wavelength channel information according to an embodiment of the present invention, for example, as shown in FIG. 4b, for indicating the downlink wavelength channel.
  • the length of the WLCH Type field may be at least 1 bit, and the value of the WLCH Type field may be, for example, "1" and "0", where the value "1" indicates, for example, that the downstream wavelength channel is TWDM-PON or A downlink wavelength channel in a point-to-multipoint (PtMP) system; a value of "0" indicates that the downlink wavelength channel is PtP WDM-PON or Point to Point (PtP for short).
  • PtMP point-to-multipoint
  • PtP Point to Point
  • the length of the PSBd field may be increased, so that the PSBd field carries a field for indicating the downlink wavelength channel information; or the length of the existing PSBd field may not be changed, and the PSBd is utilized.
  • the reserved bit in the field indicates the downlink wavelength channel information, or changes the value of some sub-fields or some bits in the PSBd field to indicate the downlink wavelength channel information, which is not limited by the embodiment of the present invention.
  • the Superframe counter field or the HEC field included in the SFC structure field may also be used to indicate downlink wavelength channel information.
  • the PON OC Body field included in the OC structure field may also be used to indicate downlink wavelength channel information.
  • the downlink physical synchronization block PSBd includes a passive optical network operation control body (PON) or a passive optical network identifier PON.
  • the ID field is used to indicate the downlink wavelength channel information.
  • the PON OC Body field may include: an 8-bit passive optical network identification type (PON-ID type, simply referred to as "PIT") field, a 32-bit PON-ID field, and 11 bits.
  • PON-ID type simply referred to as "PIT”
  • PIT passive optical network identification
  • the PIT field may include a 1-bit RE field for indicating whether the TOL field includes the transmission power of the OLT, and an optical distribution network for indicating the power budget level of the ODN.
  • the PON OC Body field may include a 4-bit CHIX field for indicating a wavelength channel index.
  • the field for indicating the downlink wavelength channel information may be included in any field of the PON OC Body field, for example, the reserved field in the PIT field may be used to indicate downlink wavelength channel information; for example, the TOL field. It can also be used to indicate downlink wavelength channel information; for example, the PON-ID field can also be used to indicate downlink wavelength channel information.
  • the PON-ID field includes a WLCHtype field indicating a type of the downlink wavelength channel, where the length of the WLCHtype field may be at least 1 bit, and the value of the WLCHtype field may be, for example, " 0" and "1", where the value "0" indicates that the downlink wavelength channel is a downlink wavelength channel in a TWDM-PON or Point to Multiple Point (PtMP) system; "For example, the downlink wavelength channel is indicated as a downstream wavelength channel in a PtP WDM-PON or Point to Point (“PtP”) system, but the present invention is not limited thereto.
  • PtP Point to Point
  • the field for indicating the downlink wavelength channel information may also be carried in the Profile PLOAM message, that is, the existing field or content in the Profile PLOAM message may be utilized, or the profile PLOAM message may be newly added.
  • Field or content to indicate downstream wavelength channel information may be carried in the Profile PLOAM message, that is, the existing field or content in the Profile PLOAM message may be utilized, or the profile PLOAM message may be newly added.
  • Field or content to indicate downstream wavelength channel information may be carried in the Profile PLOAM message, that is, the existing field or content in the Profile PLOAM message may be utilized, or the profile PLOAM message may be newly added.
  • Field or content to indicate downstream wavelength channel information may be carried in the Profile PLOAM message, that is, the existing field or content in the Profile PLOAM message may be utilized, or the profile PLOAM message may be newly added.
  • Field or content to indicate downstream wavelength channel information may be carried in the Profile PLOAM message, that is, the existing field or content in the Profile PLOAM message may be utilized,
  • 1-2 0x03FF indicates broadcast to all ONUs in the current downstream wavelength channel.
  • TBD indicates the message type identifier, which is used to identify the broadcast to all ONUs.
  • VVVV represents the version number of the template
  • PPP represents the wavelength pair
  • DDD represents the identifier of the current downstream wavelength
  • F represents the FEC
  • RRRR represents the downlink rate
  • LLLL represents the downlink
  • T represents the type of downstream wavelength channel
  • the content of the downlink wavelength channel can be represented by the content "0000000T" in the 8th octet, where, when T When the value is "0", for example, the downlink wavelength channel may be the downlink wavelength channel in the TWDM-PON or PtMP system. When the value of T is " ⁇ ", for example, the downlink wavelength channel may be PtP WDM-PON or The downlink wavelength channel in the PtP system.
  • T the downlink wavelength channel
  • TWDM-PON the downlink wavelength channel
  • PtMP system the downlink wavelength channel
  • the downlink wavelength channel may be PtP WDM-PON or The downlink wavelength channel in the PtP system.
  • the embodiment of the present invention only uses the Profile PLOAM message shown in Table 1 as an example, but the present invention is not limited thereto. For example, other fields in the Profile PLOAM message may also be used. Or content, to indicate downstream wavelength channel information.
  • the downlink wavelength channel information further includes a type of downlink service that the downlink wavelength channel can transmit.
  • the downlink physical synchronization block PSBd or the template physical layer operation and maintenance profile PLOAM message may carry a field indicating a type of downlink service that the downlink wavelength channel can transmit; preferably, the PSBd field
  • the included OC Structure field, PON OC Body field or PON ID field is used to indicate the type of downlink traffic that the downlink wavelength channel can transmit.
  • the PON ID field may include a field indicating a type of downlink service that can be transmitted, which is at least 2 bits in length. For example, when the value of the field is "00", it may indicate a downlink service that can be transmitted by the downlink wavelength channel. For the PON service, when the value of the field is "01”, it indicates that the downlink service that the downlink wavelength channel can transmit is a PtP Ethernet service. When the value of the field is "10", it can indicate that the downlink wavelength channel can The downlink service transmitted is the Common Public Radio Interface (CPRI) service; when the word When the value of the segment is "11", it indicates that the downlink service that the downlink wavelength channel can transmit is a long-distance GPON or XGPON service.
  • CPRI Common Public Radio Interface
  • wavelength channel information include the type of the downlink wavelength channel and/or the type of the downlink service that the downlink wavelength channel can transmit, for example, but the present invention is not limited thereto.
  • the downlink wavelength channel information may further include other information related to the downlink wavelength channel, for example, information such as the identifier of the downlink wavelength channel.
  • the ONU can determine the target downlink wavelength of the ONU according to the type of the downlink wavelength channel.
  • the ONU can determine whether the type of the downlink wavelength channel matches its own device type; if it matches, the ONU can determine the downlink wavelength channel as the target downlink wavelength channel of the ONU; if not, the ONU re-determines the target. Downstream wavelength channel.
  • the ONU determines that the type of the multiple downlink wavelength channels matches the device type of the device, the ONU can determine the downlink wavelength corresponding to any one of the multiple downlink wavelength channels as the target downlink wavelength of the ONU.
  • the ONU can perform matching each time the type of the downlink wavelength channel is obtained. If a matching downlink wavelength channel is found, the downlink wavelength channel can be determined as the target downstream wavelength channel of the ONU, thereby completing Initialization of the downstream wavelength of the ONU; the ONU may also perform matching when obtaining multiple or all types of downlink wavelength channels, and then determine one or more target downstream wavelength channels from multiple downlink wavelength channels matching the type of the device. And finally determining the target downlink wavelength of the ONU in one or more downlink wavelengths corresponding to the one or more target downlink wavelength channels, thereby completing the initialization of the downlink wavelength of the ONU, but the embodiment of the present invention is not limited thereto. .
  • the ONU may store the acquired downlink wavelength channel information, thereby facilitating the ONU to identify the downlink wavelength channel information according to the downlink wavelength channel information, or determine the downlink traffic that the downlink wavelength channel can transmit. Types, etc.
  • the downlink wavelength channel information further includes a type of downlink service that the wavelength channel can transmit;
  • Determining, according to the type of the wavelength channel, the target downlink wavelength channel of the ONU from the at least one downlink wavelength channel including:
  • the at least one Determining the target downlink wavelength channel in the downlink wavelength channel, where the type of the target downlink wavelength channel matches the device type of the ONU, and the type of the downlink service that the target downlink wavelength channel can transmit and the downlink service supported by the ONU The types match.
  • the ONU when the ONU determines the target downlink wavelength, it considers whether the type of the downlink wavelength channel matches the device type of the ONU, and whether the type of the downlink service that the downlink wavelength channel can transmit and the downlink supported by the ONU are considered.
  • the types of services are matched, so that the ONU can select a more preferred target downlink wavelength, thereby improving the efficiency of downlink wavelength initialization, preventing the ONU from re-initiating downlink wavelength initialization, and interference with other devices.
  • the unit receives the type information of the downlink wavelength channel in the downlink frame sent by the optical line terminal, so that the type of the downlink wavelength channel can be identified in the case where multiple passive optical network systems coexist, thereby being able to match the type of the downlink wavelength
  • the wavelength of the channel is determined as the target downstream wavelength of the ONU, so that wavelength initialization can be performed correctly, and interference with other devices can be avoided.
  • the wavelength initialization is performed by the PtP WDM-PON ONU as an example, but the present invention is not limited thereto, and the row wavelength is initialized.
  • a method 100 for downlink wavelength initialization of an ONU is described in detail from the ONU side.
  • a method according to an embodiment of the present invention will be described in detail from the ONU side with reference to FIG. 5 to FIG. Method 200 of initializing the upstream wavelength of the ONU.
  • a schematic flowchart of a method 200 for wavelength initialization according to an embodiment of the present invention is shown.
  • the method 200 can be performed by an ONT and/or an ONU.
  • the method 200 is performed by a PtP WDM-PON ONU.
  • the method 200 includes:
  • the optical network unit ONU receives a downlink frame that is responded by the optical line terminal OLT, where the downlink frame carries a field for indicating uplink wavelength channel information of the current wavelength channel, where the uplink wavelength channel information includes a type of the wavelength channel;
  • the ONU determines, according to the type of the wavelength channel, a target uplink wavelength channel of the ONU from at least one uplink wavelength channel, where each wavelength channel and one uplink wavelength channel - Correspondingly, the type of the wavelength channel corresponding to the target upstream wavelength channel matches the device type of the ONU.
  • the method further includes: S210, the optical network unit ONU sends an uplink frame to the optical line terminal OLT, where the uplink frame carries a field for indicating a device type of the ONU;
  • the uplink frame may also be referred to as a registration response.
  • the optical network unit ONU sends a registration response for requesting uplink wavelength calibration to the optical line terminal OLT on the uplink wavelength channel, where the registration response carries a field for indicating the device type of the ONU; After receiving the registration response, the ONU long channel information can be obtained; so that the ONU can receive the registration response in the uplink wavelength channel corresponding to the ONU receiving the uplink wavelength channel information according to the type of the upstream wavelength channel.
  • a target upstream wavelength channel that matches the device type of the ONU and its corresponding target upstream wavelength are determined, thereby implementing initialization of the upstream wavelength of the ONU.
  • the element sends a registration response to the optical line terminal, and receives the type information of the uplink wavelength channel sent by the optical line terminal, so that the type of the uplink wavelength channel can be identified in the case where multiple passive optical network systems coexist, thereby being able to match the type
  • the wavelength of the upstream wavelength channel is determined as the target upstream wavelength of the ONU, so that wavelength initialization can be correctly performed, and interference with other devices can be avoided.
  • the ONU may send a registration response for requesting uplink wavelength calibration to the OLT through the AMCC channel on the uplink wavelength channel, and the registration response carries an ONU Type field for indicating the device type of the ONU.
  • the length of the ONU Type field may be at least 1 bit, and the value of the ONU Type field may be "0" and "1", for example, where the value "0" indicates that the ONU is TWDM-PON ONU or PtMP.
  • ONU The value " ⁇ " indicates that the ONU is a PtP WDM-PON ONU or a PtP ONU, but the present invention is not limited thereto.
  • the registration response is, for example, a serial number (Serial Number, referred to as "SN") response, and a field indicating the device type of the ONU may also be carried in the SN response, that is, the The existing field or content in the SN response, or the newly added field or content in the SN response, indicates the device type of the ONU.
  • SN Serial Number
  • the registration response according to an embodiment of the present invention may have the content and format as shown in Table 2. Table 2
  • the content "0000000A" in the 17th octet can indicate the purpose of the registration response, for example, indicating whether the registration response is used for wavelength calibration or the like; in the registration response, The device type of the ONU can be represented by the content "0000 000T" in the 18th octet.
  • T When the value of T is "0", for example, the ONU can be represented as TWDM-PON ONU or PtMP ONU; For example, the ONU is a PtP WDM-PON ONU or a PtP ONU.
  • the embodiment of the present invention only uses the registration response shown in Table 2 as an example, but the present invention is not limited thereto.
  • the registration response of the other format or the content may be used to indicate the device type of the ONU, and the embodiment of the present invention does not limit the length, the location, the value range, and the meaning of the value of the foregoing field.
  • the field that is used by the registration response to indicate the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identifier PON ID field, and the PON The OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located to indicate the device type of the ONU.
  • the ONU can also backfill the PON OC Body sent by the OLT.
  • the PON OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located, so as to be able to indirectly indicate the device type of the ONU.
  • the embodiment of the present invention is not limited thereto.
  • the ONU may also indirectly indicate the device type of the ONU by backfilling other fields sent by the OLT, for example, a Psync field, an SFC structure field, an OC structure field, and the like.
  • the ONU receives the uplink wavelength channel information that is sent by the OLT according to the registration response, and the uplink wavelength channel information includes the type of the uplink wavelength channel.
  • the OLT can send uplink wavelength channel information to the ONU through the message format as shown in Table 3.
  • the content of the uplink wavelength channel can be represented by the content "0000 000T" in the 14th octet, wherein when T is "0", for example, the The upstream wavelength channel is an upstream wavelength channel in a TWDM-PON or PtMP system; when the value of T is " ⁇ ", for example, the uplink wavelength channel may be indicated as an uplink wavelength channel in a PtP WDM-PON or PtP system.
  • the embodiment of the present invention only uses the message format shown in Table 3 as an example, but the present invention is not limited thereto.
  • the ONU can also receive other OLTs. Field of content or content to indicate upstream wavelength channel information.
  • the uplink wavelength channel information further includes a type of uplink service that the uplink wavelength channel can transmit.
  • a field of at least 2 bits in length may be used to indicate the type of the uplink service that the uplink wavelength channel can transmit.
  • the uplink service that can be transmitted by the uplink wavelength channel is PON.
  • the value of the field is "01”
  • it indicates that the uplink service that the upstream wavelength channel can transmit is a PtP Ethernet service.
  • the value of the field is "10" it indicates that the upstream wavelength channel can transmit.
  • the uplink service is a general-purpose CPRI service.
  • the uplink service that can be transmitted by the uplink wavelength channel is a GPON service. It should be understood that the embodiments of the present invention have been described by way of example only, but the invention is not limited thereto.
  • the type of the uplink wavelength channel information includes the type of the uplink wavelength channel and/or the type of the uplink service that the uplink wavelength channel can transmit, for example, but the present invention is not limited thereto.
  • the uplink wavelength channel information may further include other information related to the uplink wavelength channel, for example, information such as an identifier of the uplink wavelength channel.
  • the ONU determines the target uplink wavelength of the ONU according to the type of the uplink wavelength channel, where the type of the target uplink wavelength channel corresponding to the target uplink wavelength matches the device type of the ONU.
  • the ONU can determine whether the type of the uplink wavelength channel matches its own device type. If the ONU matches, the ONU can determine the uplink wavelength corresponding to the uplink wavelength channel as the target uplink wavelength of the ONU; if not, The ONU re-determines the target upstream wavelength. When the ONU determines that the type of the uplink channel is matched with its own device type, the ONU can determine the uplink wavelength corresponding to any one of the multiple uplink channels as the target uplink wavelength of the ONU.
  • the ONU may perform matching each time the type of the uplink wavelength channel is obtained. If a matching upstream wavelength channel is found, the uplink wavelength corresponding to the uplink wavelength channel may be determined as the target upstream wavelength of the ONU. , thereby completing initialization of the uplink wavelength of the ONU; the ONU may also perform matching when obtaining multiple or all types of uplink wavelength channels, and then determine one or more targets from multiple uplink wavelength channels matching the type of the own device.
  • the uplink wavelength channel is determined, and finally, the target uplink wavelength of the ONU is determined in one or more uplink wavelengths corresponding to the one or more target uplink wavelength channels, thereby completing the initialization of the uplink wavelength of the ONU, but the embodiment of the present invention is Not limited to this. It should also be understood that, in the embodiment of the present invention, the ONU may store the acquired uplink wavelength channel information, thereby facilitating the ONU to identify the type of the uplink wavelength channel according to the uplink wavelength channel information, or determine the uplink service that the uplink wavelength channel can transmit. Types, etc.
  • the uplink wavelength channel information further includes a type of uplink service that the wavelength channel can transmit;
  • the ONU determines the target uplink wavelength channel of the ONU from the at least one upstream wavelength channel according to the type of the wavelength channel, including:
  • the ONU determines the target uplink wavelength channel from the at least one uplink wavelength channel according to the type of the wavelength channel and the type of the uplink service that can be transmitted, where the type of the target uplink wavelength channel matches the device type of the ONU And the type of the uplink service that the target uplink wavelength channel can transmit matches the type of the uplink service supported by the ONU.
  • the ONU when the ONU determines the target uplink wavelength, it considers whether the type of the uplink wavelength channel matches the device type of the ONU, and whether the type of the uplink service that can be transmitted by the uplink wavelength channel is related to the uplink supported by the ONU.
  • the types of services are matched, so that the ONU can select a more preferred target uplink wavelength, thereby improving the efficiency of the uplink wavelength initialization, and avoiding the ONU re-initiating the upstream wavelength and interference with other devices.
  • the ONU when the ONU is first powered on, the type and usage of each upstream wavelength channel are unknown, so the ONU can scan all or part of the upstream wavelength range supported. For example, the ONU may randomly set an initial uplink wavelength for transmitting a signal, and may adjust an initial uplink wavelength according to a preset step size; the ONU may also set the initial uplink wavelength according to a preset default transmission and reception wavelength, thereby the ONU may be in the A registration response is sent on one or more initial upstream wavelengths.
  • the ONU receives the uplink wavelength channel information sent by the OLT according to the registration response, it indicates that the channel corresponding to the uplink wavelength used by the ONU to send the registration response to the OLT may be an uplink wavelength channel. Therefore, the ONU can transmit the registration response on a plurality of initial uplink wavelengths to acquire information about part or all of the uplink wavelength channels, so that the initialization of the upstream wavelength can be correctly performed.
  • the ONU can wait for the registration request of the next cycle, and does not change the transmission wavelength but waits for a random delay to resend, so that there is an opportunity to avoid the collision and let the OLT receive its registration response.
  • the class sends a registration response to the optical line terminal, and receives the class of the uplink wavelength channel sent by the optical line terminal Type information, so that the type of the upstream wavelength channel can be identified in the case where a plurality of passive optical network systems coexist, thereby determining the wavelength of the upstream wavelength channel matched by the type as the target upstream wavelength of the ONU, thereby enabling the wavelength to be correctly performed. Initialize and avoid interference with other devices.
  • the method 200 further includes:
  • S240 Receive a registration request sent by the OLT, where the registration request carries a field for indicating a device type of the device to be registered.
  • the sending the registration response to the optical line terminal OLT includes:
  • the ONU may first receive the registration request sent by the OLT, and determine whether the device type of the ONU matches the device type of the allowed registration device according to the device type of the device to be registered indicated by the registration request. If matched, the ONU may send a registration response for requesting uplink wavelength calibration to the OLT, the registration response carrying a field indicating the device type of the ONU, and the ONU receiving the uplink wavelength sent by the OLT according to the registration response After the channel information, the target uplink wavelength of the ONU is determined; if not, the ONU does not send the registration response to the OLT, and the ONU can reset the initial uplink wavelength, send the registration response to other OLTs, and finally determine the target.
  • the upstream wavelength thereby reducing collisions and improving the efficiency of wavelength initialization.
  • the ONU may receive a registration request sent by the OLT in multiple manners to indicate the device type of the device to be registered.
  • the receiving the registration request sent by the OLT includes:
  • the registration request including an allocation structure Allocation structure field, where the allocation unit identifier Alloc-ID field value indicates the device type of the device to be registered; or the allocation structure field includes the value A field indicating the type of device that is allowed to register the device.
  • a Bandwidth Map (abbreviated as "BWmap”) field may include N allocation structure fields, that is,
  • each Allocation structure field may be 8 bytes in length, and each Allocation structure field may include a 14-bit Alloc-ID field, 2-bit Flags field, 16-bit StartTime field, 16-bit GrantSize field, 1-bit FWI field, 2-bit BurstProfile field, and 13-bit HEC field, where the Alloc-ID field is used to represent the bandwidth in the ONU
  • the identifier of the allocation unit, the meaning of the Alloc-ID field is 1024 to 16383.
  • the Flags field is used to indicate whether the ONU reports the size of the uplink transmission buffer, and indicates whether the ONU sends a PLOAM message.
  • the GrantSize field is used to indicate the length of time that the ONU sends;
  • the FWI field indicates the ONU wakeup identifier;
  • the BurstProfile field indicates the burst template index; and
  • the HEC field indicates the hybrid error correction.
  • the registration request for indicating the device type of the device to be registered may not change the Allocation structure field structure shown in FIG. 7, but may only redefine the values of some fields in the Allocation structure field to indicate The type of device that is allowed to register the device. For example, when the value of the Alloc-ID field is 1024, it may indicate that the device is allowed to be a PtP WDM-PON ONU; for example, when the value of the Alloc-ID field is a value between 1024 and 16383, it is used to indicate Allow registration of devices as TWDM-PON ONU or PtP WDM-PON ONU.
  • the registration request according to the embodiment of the present invention may also change the Allocation structure field structure, for example, including an ONU Type field indicating a device type of the device to be registered in the Allocation structure field, the ONU Type field may be at least For 1 bit, the value of the ONU Type field may be, for example, "0" and "1", where the value "0" indicates, for example, that the device is allowed to be a TWDM-PON ONU or a PtMP ONU; the value "" indicates, for example, permission
  • the registered device is a PtP WDM-PON ONU or a PtP ONU, but the present invention is not limited thereto.
  • receiving the registration request sent by the OLT includes: receiving the registration request sent by the OLT to run and maintain a PLOAM message through a physical layer, where the PLOAM message includes The field of the device type.
  • the ONU may receive a PLOAM message sent by the OLT, and the PLOAM message may include a field indicating the device type of the device to be registered.
  • the existing field structure of the PLOAM message can be used, or a field can be added to the PLOAM message to indicate the device type that allows the device to be registered, but the invention is not limited thereto.
  • the field that is used by the uplink frame to indicate the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identifier PON ID field, where the PON The OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located to indicate the device type of the ONU.
  • the element sends a registration response to the optical line terminal, and receives the type information of the uplink wavelength channel sent by the optical line terminal, so that the type of the uplink wavelength channel can be identified in the case where multiple passive optical network systems coexist, thereby being able to match the type
  • the wavelength of the upstream wavelength channel is determined as the target upstream wavelength of the ONU, so that wavelength initialization can be correctly performed, and interference with other devices can be avoided.
  • the method 200 further includes:
  • S250 Receive a wavelength channel switching command or a wavelength adjustment command sent by the OLT according to the registration response or the uplink frame, to instruct the ONU to perform uplink wavelength calibration.
  • the OLT may determine, according to the measured power value of the received response optical signal, whether the uplink wavelength of the ONU sending the registration response is completely opposite to the receiving wavelength of the uplink wavelength channel used by the OLT. quasi. For example, when the OLT is less than the threshold according to the received power, it may be determined that the uplink wavelength of the ONU sending the registration response does not completely correspond to the uplink wavelength channel used by the OLT, and the OLT may send a wavelength channel switching command or a wavelength adjustment command to the ONU to indicate The ONU performs upstream wavelength calibration.
  • the ONU receives a wavelength adjustment command sent by the OLT according to the registration response to instruct the ONU to perform uplink wavelength calibration.
  • the wavelength adjustment command may have, for example, the structure and contents shown in Table 4.
  • Vender-ID and VSSN are valid when the value is 0x03FF
  • Tune step unit is the minimum adjustment granularity supported by the device
  • the ONU receives the wavelength channel switching command or the wavelength adjustment command, and can finely adjust the uplink wavelength of the sending registration response, and can send the registration response to the OLT again by using the adjusted uplink wavelength, so that the receiving OLT can send according to the registration response.
  • Upstream wavelength channel information is included in the ONU.
  • the PtP WDM-PON ONU performs wavelength initialization as an example, but the present invention is not limited thereto, and the line wavelength is initialized.
  • the method for initializing the wavelength in the passive optical network transmits the registration response to the optical line terminal through the optical network unit, and receives the type information of the uplink wavelength channel sent by the optical line terminal, thereby being able to be passive in multiple
  • the type of the upstream wavelength channel is identified, so that the wavelength of the upstream wavelength channel matched by the type can be determined as the target upstream wavelength of the ONU, so that the wavelength initialization can be correctly performed, and interference with other devices can be avoided.
  • a method 100 for downlink wavelength initialization of an ONU and a method 200 for uplink wavelength initialization according to an embodiment of the present invention are described in detail from the ONU side, and will be described below with reference to FIG. 9 to FIG.
  • a method 300 of device registration in accordance with an embodiment of the present invention is described in detail.
  • FIG. 9 shows a schematic flow diagram of a method 300 of device registration, which may be performed by an ONT and/or an ONU, for example, the method 300 is performed by a PtP WDM-PON ONU, in accordance with an embodiment of the present invention.
  • the method 300 includes:
  • S310 Send a registration response to the optical line terminal OLT, where the registration response is used to request the OLT to allocate an identifier, and the registration response carries a field indicating a device type of the optical network unit ONU.
  • S320 Receive a device identifier of the ONU that is sent by the OLT when determining, according to the registration response, that the device type of the ONU matches the device type of the device to be registered.
  • S330. Perform information transmission according to the device identifier. And obtaining a registration response of the identifier, and the registration response carries a field for indicating a device type of the optical network unit ONU; the OLT may determine, according to the registration response, whether the device type of the ONU matches the device type of the device to be registered, if the match The OLT may send the device identifier of the ONU to the ONU; if not, the OLT may instruct the ONU to re-register.
  • the ONU can receive the device identifier of the ONU sent by the OLT when determining the device type of the ONU to match the device type of the device to be registered; and can perform information transmission according to the device identifier, thereby implementing registration of the ONU.
  • the device registration method in the passive optical network in the embodiment of the present invention sends a registration response to the optical line terminal through the optical network unit, and carries a field indicating the device type of the optical network unit in the registration response, so that the light
  • the line terminal can determine, according to the registration response, whether the device type of the optical network unit matches the device type of the device to be registered, and send the device identifier to the optical network unit when matching, thereby enabling the light to coexist in the case of multiple passive optical network systems.
  • the line terminal can identify the type of device requesting registration and can transmit the device identification to the optical network unit of the matching type, thereby enabling device registration to be correctly performed and interference with other devices can be avoided.
  • a registration response for the upstream wavelength calibration is requested, and the registration response carries an ONU Type field indicating the device type of the ONU.
  • the length of the ONU Type field may be at least 1 bit, and the value of the ONU Type field may be "0" and "1", for example, where the value "0" indicates that the ONU is TWDM-PON ONU or PtMP.
  • ONU The value " ⁇ " indicates that the ONU is a PtP WDM-PON ONU or a PtP ONU, but the present invention is not limited thereto.
  • the field that is used by the registration response to indicate the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identifier PON ID field, and the PON The OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located to indicate the device type of the ONU.
  • the registration response may have the structure and content as shown in Table 2. For brevity, no further details are provided herein.
  • the method 300 further includes: S340, receiving a registration request sent by the OLT, where the registration request carries a field for indicating a device type of the device to be registered;
  • the S310 sends the registration response to the optical line terminal OLT, including: 5311. Determine whether the device type of the ONU matches the device type of the device to be registered.
  • the ONU may first receive the registration request sent by the OLT, and determine whether the device type of the ONU matches the device type of the allowed registration device according to the device type of the device to be registered indicated by the registration request. If the match is made, the ONU may send a registration response for requesting the device identifier to the OLT, where the registration response carries a field indicating the device type of the ONU, and after the ONU receives the device identifier assigned by the OLT, The information is transmitted according to the device identifier; if it does not match, the ONU does not send the registration response to the OLT.
  • the ONU may receive a registration request sent by the OLT in multiple manners to indicate the device type of the device to be registered.
  • the receiving the registration request sent by the OLT comprises: receiving the registration request that is sent by the OLT, including an allocation structure, an Allocation structure field, where the value of the allocation unit identifier Alloc-ID field in the allocation structure field indicates the permission Registering the device type of the device; or the allocation structure field includes a field that takes a value indicating the device type of the device that is allowed to be registered.
  • the receiving the registration request sent by the OLT comprises: receiving the registration request sent by the OLT to run and maintain a PLOAM message through a physical layer, where the PLOAM message includes a field for indicating a device type of the device to be registered.
  • the field for indicating the device type of the device to be registered may be carried in the Allocation structure field or may be carried in the PLOAM message, but the present invention is not limited thereto, and the field may be carried in other fields. In a field or message.
  • the device registration method in the passive optical network in the embodiment of the present invention sends a registration response to the optical line terminal through the optical network unit, and carries a field indicating the device type of the optical network unit in the registration response, so that the light
  • the line terminal can determine, according to the registration response, whether the device type of the optical network unit matches the device type of the device to be registered, and send the device identifier to the optical network unit when matching, thereby enabling the light to coexist in the case of multiple passive optical network systems.
  • the line terminal can identify the type of device requesting registration and can transmit the device identification to the optical network unit of the matching type, thereby enabling device registration to be correctly performed and interference with other devices can be avoided.
  • the method 300 further includes:
  • the confirmation information transmitted by the ONU to the OLT may have, for example, the structure and contents shown in Table 5 below.
  • the content "0x09" in the third octet can be used to indicate that the ONU has received the device identification ONU-ID assigned by the OLT, and thus the ONU completes the registration of the device, and can be started.
  • the service channel transmits information.
  • the method 300 further includes: S360, receiving, when the OLT determines, according to the registration response, that the device type of the ONU does not match the device type of the allowed registration device.
  • the ONU sends a registration response to the OLT
  • the registration response carries a field for indicating the device type of the optical network unit ONU
  • the OLT can determine the device type of the ONU and the device to be registered according to the registration response. Whether the device types match, if they match, the OLT can send the device identifier of the ONU to the ONU; if not, the OLT can send a wavelength channel switching command to the ONU to instruct the ONU to re-register.
  • the wavelength channel switching command can have, for example, the structure and contents as shown in Table 6.
  • 1-2 ONU-ID indicates the specified ONU
  • 3 0x21 indicates that the message type is wavelength channel switching
  • AAA indicates the upstream wavelength
  • BBB indicates the upstream wavelength
  • the PtP WDM-PON ONU performs device registration as an example for description, but the present invention is not limited thereto, and the device is registered.
  • the device registration method in the passive optical network in the embodiment of the present invention sends a registration response to the optical line terminal through the optical network unit, and carries a field indicating the device type of the optical network unit in the registration response, so that the light
  • the line terminal can determine, according to the registration response, whether the device type of the optical network unit matches the device type of the device to be registered, and send the device identifier to the optical network unit when matching, thereby enabling the light to coexist in the case of multiple passive optical network systems.
  • the line terminal can identify the type of device requesting registration and can transmit the device identification to the optical network unit of the matching type, thereby enabling device registration to be correctly performed and interference with other devices can be avoided.
  • the downlink wavelength initial method 100 of the ONU, the upstream wavelength initial method 200, and the device registration method 300, and the wavelength initialization method and device registration according to the embodiment of the present invention will be described in detail from the OLT side with reference to FIG. 13 to FIG. method.
  • the method 400 includes: S410, determining wavelength channel information, where the wavelength channel information includes downlink wavelength channel information and/or uplink wavelength channel information, where the downlink wavelength channel information includes a type of a downlink wavelength channel currently used by the optical line terminal OLT, and the uplink wavelength channel The information includes the type of the upstream wavelength channel;
  • the terminal determines the wavelength channel information including the downlink wavelength channel information and/or the uplink wavelength channel information, and sends the wavelength channel information to the optical network unit, so that the optical network unit can learn the information of the downlink wavelength channel and/or the uplink wavelength channel, thereby enabling the optical network unit to
  • the type of the downstream wavelength channel and/or the upstream wavelength channel is identified in the case where a plurality of passive optical network systems coexist, thereby enabling wavelength initialization to be correctly performed and interference with other devices can be avoided.
  • the transmitting the wavelength channel information to the optical network unit ONU includes: sending a downlink physical synchronization block PSBd or template physics to the ONU.
  • the Layer 2 layer runs and maintains the Profile PLOAM message, where the downlink physical synchronization block carries the downlink wavelength channel information, and the Profile PLOAM message includes the downlink wavelength channel information.
  • the downlink optical synchronization block includes a passive optical network operation control body PON OC Body field carrying the downlink wavelength channel information; or the downlink physical synchronization block includes a passive optical network identifier PON ID field 7 carrying the downlink wavelength Channel information.
  • the downlink wavelength channel information may be carried by the PSBd field.
  • the information may be carried by any field included in the PSBd field, and the format of the field is, for example, as shown in FIG. 3 to FIG. 4c;
  • the profile PLOAM message of the downlink wavelength channel information may have the content and format as shown in Table 1, but for brevity, no further details are provided herein.
  • the downlink wavelength channel information further includes a type of the downlink service that the downlink wavelength channel can transmit; the uplink wavelength channel information further includes a type of the uplink service that the uplink wavelength channel can transmit.
  • the method for initializing the ONU downlink wavelength described on the OLT side corresponds to the method 100 shown in FIG. 2 to FIG. 4c according to the embodiment of the present invention, and the interaction between the OLT and the ONU described on the OLT side and related characteristics, functions, and the like The description on the ONU side corresponds accordingly, and for brevity, it will not be described again here.
  • the terminal determines the downlink wavelength channel information, and sends the downlink wavelength channel information to the optical network unit, so that the optical network unit can know the type of the downlink wavelength channel and/or the type of the downlink service that can be transmitted, thereby enabling multiple passive optical networks.
  • the type of the downstream wavelength channel is identified in the case of system coexistence, thereby enabling wavelength initialization to be correctly performed and interference with other devices can be avoided.
  • the method 400 further includes:
  • S430 Receive a registration response sent by the ONU on the uplink wavelength channel, where the registration response is used to request an uplink wavelength calibration, and the registration response carries a field indicating a device type of the ONU.
  • the transmitting the wavelength channel information to the ONU to the optical network unit includes:
  • S421 Send the uplink wavelength channel information to the ONU according to the registration response.
  • the OLT can receive the registration response sent by the ONU, and the registration response includes the device type information of the ONU, so that the OLT can know the device type of the ONU.
  • the OLT can send the uplink wavelength channel information to the ONU according to the registration response, so that the ONU can facilitate the initialization of the uplink wavelength.
  • the field that is used by the registration response to indicate the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identifier PON ID field, and the PON The OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located to indicate the device type of the ONU.
  • the registration response according to the embodiment of the present invention may have, for example, content and format as shown in Table 2. For brevity, no further details are provided herein.
  • the field that is used by the registration response to indicate the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identifier PON ID field, and the PON The OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located to indicate the device type of the ONU.
  • the OLT may send the uplink wavelength channel information to the ONU by using the message format as shown in Table 3.
  • Table 3 For brevity, details are not described herein again.
  • the method 400 further includes:
  • S440 Send a registration request to the ONU, where the registration request carries a field for indicating a device type of the device to be registered;
  • the receiving the registration response sent by the ONU to the OLT on the uplink wavelength channel includes: S431. Receive the registration response sent by the ONU on the uplink wavelength channel when determining that the device type of the ONU matches the device type of the allowed registration device.
  • the OLT may first send a registration request to the ONU, and the ONU may determine, according to the device type of the device that is allowed to register, that is determined by the registration request, whether the device type of the ONU matches the device type of the device to be registered. If matched, the ONU may send a registration response for requesting uplink wavelength calibration to the OLT, the registration response carrying a field indicating the device type of the ONU; if not, the ONU may not send the registration response to the OLT Thus, collisions can be reduced and the efficiency of wavelength initialization can be improved.
  • the OLT may send a registration request to the ONU in multiple manners to indicate the device type of the device to be registered.
  • the sending the registration request to the ONU includes: sending the registration request including an allocation structure Allocation structure field to the ONU, where the value of the allocation unit identifier Alloc-ID field in the allocation structure field indicates the permission to register the device Device type; or the allocation structure field includes a field that takes a value indicating the device type of the device that is allowed to be registered.
  • the sending the registration request to the ONU includes: sending the registration request to the ONU by using a physical layer operation and maintenance PLOAM message, where the PLOAM message includes a device for indicating the permission to register the device. Type of field.
  • the method 400 further includes:
  • the OLT 4 sends a wavelength adjustment command to the ONU according to the registration response to instruct the ONU to perform uplink wavelength calibration.
  • the OLT may determine, according to the power value of receiving the registration response, whether the uplink wavelength of the ONU sending the registration response completely corresponds to the uplink wavelength channel used by the OLT. For example, when the OLT is less than the threshold according to the received power, it may be determined that the uplink wavelength of the ONU sending the registration response does not completely correspond to the uplink wavelength channel used by the OLT, and the OLT may send a wavelength channel switching command or a wavelength adjustment command to the ONU to indicate The ONU performs upstream wavelength calibration.
  • the ONU receives a wavelength adjustment command sent by the OLT according to the registration response to instruct the ONU to perform uplink wavelength calibration.
  • the wavelength adjustment command may have the structure and content shown in Table 4, for brevity, and details are not described herein again.
  • the method 200 shown in FIG. 5 to FIG. 8 corresponds to the method, and the interaction between the OLT and the ONU described on the OLT side and related features and functions are corresponding to the description on the ONU side. For brevity, details are not described herein again.
  • the PtP WDM-PON ONU performs wavelength initialization as an example, but the present invention is not limited thereto, and the line wavelength is initialized.
  • the terminal receives the registration response sent by the optical network unit, and sends the type information of the uplink wavelength channel to the optical network unit, so that the optical network unit can identify the type of the uplink wavelength channel and/or the coexistence of multiple passive optical network systems. Information such as the type of downlink service that can be transmitted, thereby enabling wavelength initialization to be performed correctly, and interference with other devices can be avoided.
  • Figure 17 shows a schematic flow diagram of a method 500 of device registration, which may be performed by an OLT, for example, by a PtP WDM-PON OLT, in accordance with an embodiment of the present invention.
  • the method 500 includes:
  • S510 Receive a registration response sent by the optical network unit ONU, where the registration response is used to request the optical line terminal OLT to allocate an identifier, and the registration response carries a field for indicating a device type of the ONU.
  • the optical line terminal OLT receives the registration response sent by the optical network unit ONU for requesting the allocation of the identifier, and the registration response carries a field for indicating the device type of the optical network unit ONU; the OLT can determine according to the registration response.
  • the OLT can send the device identifier of the ONU to the ONU, so that the ONU can perform information transmission according to the device identifier, thereby implementing registration of the ONU.
  • the device registration method in the passive optical network in the embodiment of the present invention receives the registration response sent by the optical network unit through the optical line terminal, and carries a field indicating the device type of the optical network unit in the registration response, so that
  • the optical line terminal can determine, according to the registration response, whether the device type of the optical network unit matches the device type of the device to be registered, and send the device identifier to the optical network unit when matching, so that the multiple passive optical network systems coexist.
  • the optical line terminal can identify the type of device requesting registration and can transmit the device identification to the optical network unit of the matching type, thereby enabling device registration to be correctly performed and interference with other devices can be avoided.
  • the field that is used by the registration response to indicate the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identifier PON ID field, and the PON The OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located to indicate the device type of the ONU.
  • the registration response may have the structure and content as shown in Table 2. For brevity, no further details are provided herein.
  • the method 500 further includes: S540, sending a registration request to the ONU, where the registration request carries a field for indicating a device type of the device that is allowed to be registered;
  • the S510 receives the registration response sent by the optical network unit ONU, and includes:
  • the OLT may first send a registration request to the ONU, and the ONU may determine, according to the device type of the device that is allowed to register, that is determined by the registration request, whether the device type of the ONU matches the device type of the device to be registered. If there is a match, the ONU may send a registration response for requesting the allocation of the device identifier to the OLT, the registration response carrying a field indicating the device type of the ONU; if not, the ONU does not send the registration response to the OLT .
  • the OLT may send a registration request to the ONU in multiple manners to indicate the device type of the device to be registered.
  • the sending the registration request to the ONU includes: sending the distribution to the ONU
  • the registration request of the structure Allocation structure field, the value of the allocation unit identifier Alloc-ID field in the allocation structure field indicates the device type of the device to be registered; or the allocation structure field includes a value for indicating the permission to register the device The field of the device type.
  • the sending the registration request to the ONU includes: sending the registration request to the ONU by using a physical layer operation and maintenance PLOAM message, where the PLOAM message includes a field for indicating a device type of the device to be registered.
  • the field for indicating the device type of the device to be registered may be carried in the Allocation structure field or may be carried in the PLOAM message, but the present invention is not limited thereto, and the field may be carried in other fields. In a field or message. For the sake of brevity, it will not be repeated here.
  • the method 500 further includes:
  • S550 Receive an acknowledgment message sent by the ONU, where the acknowledgment message is used to indicate that the ONU receives the device identifier.
  • the ONU may send the acknowledgment information to the OLT.
  • the acknowledgment information may have the structure and content as shown in Table 5 below. For brevity, details are not described herein again.
  • the method 500 further includes:
  • the ONU sends a registration response to the OLT
  • the registration response carries a field for indicating the device type of the optical network unit ONU
  • the OLT can determine the device type of the ONU and the device to be registered according to the registration response. Whether the device types match, if they match, the OLT can send the device identifier of the ONU to the ONU; if not, the OLT can send a wavelength channel switching command to the ONU to instruct the ONU to re-register.
  • the wavelength channel switching command may have the structure and content as shown in Table 6, for brevity, and details are not described herein again.
  • the method for registering ONUs on the OLT side corresponds to the method 300 shown in FIG. 9 to FIG. 12 according to the embodiment of the present invention, and the interaction between the OLT and the ONU described on the OLT side and related features, functions, and the like are on the ONU side. Corresponding descriptions, for brevity, will not be repeated here.
  • the PtP WDM-PON ONU performs device registration as an example, but the present invention is not limited to this example. Device registration.
  • the device registration method in the passive optical network in the embodiment of the present invention receives the registration response sent by the optical network unit through the optical line terminal, and carries a field indicating the device type of the optical network unit in the registration response, so that
  • the optical line terminal can determine, according to the registration response, whether the device type of the optical network unit matches the device type of the device to be registered, and send the device identifier to the optical network unit when matching, so that the multiple passive optical network systems coexist.
  • the optical line terminal can identify the type of device requesting registration and can transmit the device identification to the optical network unit of the matching type, thereby enabling device registration to be correctly performed and interference with other devices can be avoided.
  • the method includes:
  • the PtP WDM-PON ONU has preset the default transmit/receive wavelength, or if the transmit/receive wavelength pair that has been supported has been set during the setup, set the default transmit/receive wavelength or support from the preset wavelength value when initializing the power-on.
  • a pair of wavelengths is randomly selected from the pair of transceiver wavelengths, and the transmission and reception wavelengths are set accordingly.
  • the OLT broadcasts the type of the current downlink wavelength channel through the AMCC channel, thereby helping the ONU identify the type and purpose of the downlink wavelength channel, so as to correctly perform downlink wavelength initialization.
  • the OLT can use the manners as shown in FIG. 3 and FIG. 4a to FIG. 4b to indicate the type of the downlink wavelength channel, which is not described here. For details, refer to the foregoing embodiment.
  • the PtP WDM-PON ONU parses the OLT to send the field described in step S222 to the downlink channel, and learns the information of the current downlink wavelength channel.
  • the ONU may also repeat steps S221 and S222 above to learn all downlink wavelength channel information in the system, and then select an appropriate initial downlink receiving wavelength accordingly.
  • the device type identifier can be carried in order to facilitate the ONU to distinguish which type of ONU is currently allowed to register.
  • the ONU After receiving the registration request sent by the OLT, the ONU parses the device type that is currently allowed to be registered according to the device type identification mode described in step S224, and if it matches the device type, randomly sets the uplink transmission wavelength. Based on the current uplink transmission wavelength, the adjustment is performed according to the preset step size, and then the newly adjusted transmission wavelength is used to transmit the registration response through the AMCC channel.
  • PtP WDM-PON The ONU needs to carry the device type identifier field in the registration response, as shown in Table 3.
  • the registration response message defined by the current standard there is a field for informing the OLT whether the current ONU sends the registration response for the purpose of only performing upstream wavelength calibration, or requires registration and requesting the OLT to allocate the ONU-ID.
  • the ONU registers for the first time, it does not know the type and purpose of each upstream wavelength channel. Therefore, it scans the entire uplink transmission wavelength range supported, or tries all supported upstream wavelengths.
  • the OLT After receiving the registration response of the ONU for the wavelength calibration, the OLT needs to deliver the upstream wavelength indication carrying the upstream wavelength channel type, as shown in Table 7 below: Table 7
  • the service type field may be extended according to the foregoing method to indicate the service to be carried by the downlink wavelength channel.
  • the value of the field includes at least: 0_PON service; l_PtP Ethernet service; 2—CPRI; 3_ (X)G-PON reach extender optical .
  • the OLT After receiving the registration response from the ONU requesting the ONU-ID, the OLT assigns the ONU-ID and sends it to the wavelength adjustment command as shown in Table 8 below:
  • TBD Number of upstream wavelength 0-7
  • BBB Number of downstream wavelength 0-7 (TBD) Octet Content Description
  • PtP WDM-PON The ONU can learn the information of all the upstream wavelength channels by repeating steps S225 and S226, select an appropriate upstream wavelength channel, and set the transmission wavelength accordingly.
  • the PtP WDM-PON ONU receives the assigned ONU-ID, and optionally reports the response message to the OLT.
  • the format of the response message is shown in Table 9 below:
  • the optical network unit ONU 10 includes: a receiving module 11 configured to receive a downlink frame sent by an optical line terminal OLT, where the downlink frame carries downlink channel information for indicating a current wavelength channel. Field, the downlink wavelength channel information includes a type of the wavelength channel;
  • a determining module 12 configured to determine from at least one downlink wavelength according to the type of the wavelength channel The target downlink channel of the ONU, wherein each wavelength channel is in one-to-one correspondence with a downlink wavelength channel, and the type of the wavelength channel corresponding to the target downlink wavelength channel matches the device type of the ONU.
  • the optical network unit of the embodiment of the present invention can carry the type information of the downlink wavelength channel in the downlink frame sent by the optical network unit to receive the optical line terminal, so that the downlink can be identified in the case where multiple passive optical network systems coexist.
  • the type of the wavelength channel whereby the wavelength of the downlink wavelength channel matched by the type can be determined as the target downstream wavelength of the ONU, so that the wavelength initialization can be correctly performed, and interference with other devices can be avoided.
  • the downlink frame received by the receiving module 11 is specifically a downlink physical synchronization block PSBd or a template physical layer operation and maintenance profile PLOAM message for indicating the downlink wavelength channel information.
  • the passive optical network operation control body PON OC Body field or the passive optical network identification PON ID field included in the downlink physical synchronization block is used to indicate the downlink wavelength channel information.
  • the downlink wavelength channel information further includes a type of the downlink service that the wavelength channel can transmit.
  • the determining module 12 is specifically configured to: according to the type of the wavelength channel and the And determining, by the at least one downlink wavelength channel, the target downlink wavelength channel, where the type of the target downlink wavelength channel matches the device type of the ONU 10, and the downlink traffic of the target downlink wavelength channel can be transmitted.
  • the type matches the type of downlink service supported by the ONU 10.
  • the ONU 10 is a PtP WDM-PON ONU.
  • optical network unit 10 may correspond to an ONU in the embodiment of the present invention, and the above and other operations and/or functions of the respective modules in the optical network unit 10 are respectively implemented in order to implement FIGS. 1 to 4c.
  • the corresponding process of the method 100 in the following is omitted for brevity.
  • the optical network unit of the embodiment of the present invention can carry the type information of the downlink wavelength channel in the downlink frame sent by the optical network unit to receive the optical line terminal, so that the downlink can be identified in the case where multiple passive optical network systems coexist.
  • the type of the wavelength channel whereby the wavelength of the downlink wavelength channel matched by the type can be determined as the target downstream wavelength of the ONU, so that the wavelength initialization can be correctly performed, and interference with other devices can be avoided.
  • FIG. 23 shows a schematic block diagram of an optical network unit 20 according to an embodiment of the present invention.
  • the optical network unit ONU 20 includes:
  • the receiving module 22 is configured to receive a downlink frame that is responded by the optical line terminal OLT, where the downlink frame carries a field for indicating uplink wavelength channel information of a current wavelength channel, where the uplink wavelength channel information includes a type of the wavelength channel;
  • the determining module 23 is configured to determine, according to the type of the wavelength channel, a target uplink wavelength channel of the ONU from the at least one uplink wavelength channel, where each wavelength channel corresponds to an uplink wavelength channel, and the target uplink wavelength channel The type of the corresponding wavelength channel matches the device type of the ONU.
  • the ONU further includes a sending module 21, configured to send, to the optical line terminal OLT, an uplink frame, where the uplink frame carries a field for indicating a device type of the ONU;
  • the uplink frame may also be referred to as a registration response.
  • the optical network unit of the embodiment of the present invention sends a registration response to the optical line terminal through the optical network unit, and receives the type information of the uplink wavelength channel sent by the optical line terminal, so that the multiple passive optical network systems can coexist.
  • the type of the upstream wavelength channel is identified, so that the wavelength of the upstream wavelength channel matched by the type can be determined as the target upstream wavelength of the ONU, so that the wavelength initialization can be correctly performed, and interference with other devices can be avoided.
  • the receiving module 22 is further configured to: receive a registration request sent by the OLT, where the registration request carries a field for indicating a device type of the device to be registered; wherein the determining module 23 further For: determining whether the device type of the ONU 20 matches the device type of the device that is allowed to register;
  • the sending module 21 is specifically configured to: when the determining module 23 determines that the device type of the ONU 20 matches the device type of the allowed registered device, send the uplink frame to the OLT.
  • the receiving module 22 is specifically configured to: receive the registration request that is sent by the OLT, including an allocation structure, an Allocation structure field, where the allocation unit identifier in the allocation structure field is obtained by using an Alloc-ID field.
  • the value indicates the device type of the device that is allowed to register; or the allocation structure field includes a field that takes a value indicating the device type of the device that is allowed to register.
  • the receiving module 22 is specifically configured to: receive the registration request sent by the OLT to run and maintain a PLOAM message through a physical layer, where the PLOAM message includes a device type used to indicate the allowed registration device. Field.
  • the field carried by the sending module 21 for indicating the device type of the ONU 20 includes a passive optical network operation control body PON OC Body field or a passive optical network. Identifying a PON ID field, the PON OC Body field and the PON ID field are used to indicate a type of a downlink wavelength channel in which the ONU 20 is located, to indicate the ONU 20 Type of device.
  • the uplink wavelength channel information received by the receiving module 22 further includes a type of uplink service that the wavelength channel can transmit;
  • the determining module 23 is specifically configured to: determine the target uplink wavelength from the at least one uplink wavelength channel according to the type of the wavelength channel and the type of the uplink service that can be transmitted, where the target uplink wavelength corresponds to the target uplink wavelength
  • the type of the target upstream wavelength channel matches the device type of the ONU 20, and the type of the uplink service that the target upstream wavelength channel can transmit matches the type of the uplink service supported by the ONU 20.
  • the receiving module 22 is further configured to: before receiving the uplink frame sent by the OLT, receive a wavelength channel switching command or a wavelength adjustment command sent by the OLT according to the uplink frame, to indicate The ONU 20 performs upstream wavelength calibration.
  • optical network unit 20 may correspond to the ONUs in the embodiments of the present invention, and the above and other operations and/or functions of the respective modules in the optical network unit 20 are respectively implemented in order to implement FIGS. 5 to 8.
  • the corresponding process of the method 200 in the following is omitted for brevity.
  • the optical network unit of the embodiment of the present invention sends a registration response to the optical line terminal through the optical network unit, and receives the type information of the uplink wavelength channel sent by the optical line terminal, so that the multiple passive optical network systems can coexist.
  • the type of the upstream wavelength channel is identified, so that the wavelength of the upstream wavelength channel matched by the type can be determined as the target upstream wavelength of the ONU, so that the wavelength initialization can be correctly performed, and interference with other devices can be avoided.
  • Figure 24 shows a schematic block diagram of an optical network unit 30 in accordance with an embodiment of the present invention.
  • the optical network unit ONU 30 includes:
  • the sending module 31 is configured to send a registration response to the optical line terminal OLT, where the registration response is used to request the OLT to allocate an identifier, and the registration response carries a field for indicating a device type of the ONU 30;
  • the receiving module 32 is configured to receive, by the OLT, the device identifier of the ONU 30 that is sent when the device type of the ONU 30 matches the device type of the device to be registered, according to the registration response sent by the sending module 31;
  • the processing module 33 is configured to perform information transmission according to the device identifier received by the receiving module 32.
  • the optical network unit of the embodiment of the present invention sends a registration response to the optical line terminal through the optical network unit, and carries a field indicating the device type of the optical network unit in the registration response
  • the optical line terminal is configured to determine, according to the registration response, whether the device type of the optical network unit matches the device type of the device to be registered, and send the device identifier to the optical network unit when matching, so that the multiple passive optical network systems coexist.
  • the optical line terminal is enabled to recognize the type of the device requesting registration, and can transmit the device identification to the optical network unit of the matching type, thereby enabling device registration to be correctly performed and interference with other devices can be avoided.
  • the receiving module 32 is further configured to: receive a registration request sent by the OLT, where the registration request carries a field for indicating a device type of the device to be registered;
  • the optical network unit further includes a determining module 34, configured to determine whether the device type of the ONU 30 matches the device type of the allowed registered device;
  • the sending module 31 is specifically configured to: when the determining module 34 determines that the device type of the ONU 30 matches the device type of the allowed registered device, send the registration response to the OLT.
  • the receiving module 32 is specifically configured to: receive the registration request that is sent by the OLT, including an allocation structure, an Allocation structure field, where the allocation unit identifier in the allocation structure field is determined by the Alloc-ID field.
  • the value indicates the device type of the device that is allowed to register; or the allocation structure field includes a field that takes a value indicating the device type of the device that is allowed to register.
  • the receiving module 32 is specifically configured to: receive the registration request sent by the OLT to run and maintain a PLOAM message through a physical layer, where the PLOAM message includes a device type used to indicate the device to be registered. Field.
  • the field carried by the sending module 31 for indicating the device type of the ONU 30 includes a passive optical network operation control body PON OC Body field or a passive optical network.
  • the PON ID field is identified, and the PON OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU 30 is located to indicate the device type of the ONU 30.
  • the sending module 31 is further configured to: after the receiving module 32 receives the device identifier of the ONU 30, send an acknowledgement information to the OLT, where the acknowledgement information is used to indicate that the ONU 30 receives Go to the device ID.
  • the receiving module 32 is further configured to: receive, by the OLT, a wavelength channel switch that is sent when the device type of the ONU 30 does not match the device type of the allowed registered device according to the registration response. Command to instruct the ONU 30 to re-register.
  • optical network unit 30 may correspond to the embodiment of the present invention.
  • the above-mentioned and other operations and/or functions of the respective modules in the optical network unit 30 are respectively implemented in order to implement the corresponding processes of the method 300 in FIG. 9 to FIG. 12, and are not described herein again for brevity.
  • the optical network unit of the embodiment of the present invention sends a registration response to the optical line terminal through the optical network unit, and carries a field indicating the device type of the optical network unit in the registration response, so that the optical line terminal can be registered according to the Responding to determine whether the device type of the optical network unit matches the device type of the device to be registered, and send the device identifier to the optical network unit when matching, so that the optical line terminal can recognize the request for registration in the case where multiple passive optical network systems coexist
  • the type of device, and the ability to send the device identification to the optical network unit of the matching type thereby enabling proper device registration and avoiding interference with other devices.
  • Figure 26 shows a schematic block diagram of an optical line terminal 40 in accordance with an embodiment of the present invention.
  • the optical line terminal OLT 40 includes:
  • the determining module 41 is configured to determine the wavelength channel information, where the wavelength channel information includes the downlink wavelength channel information and/or the uplink wavelength channel information, where the downlink wavelength channel information includes a type of the downlink wavelength channel currently used by the OLT 40, where The uplink wavelength channel information includes a type of the uplink wavelength channel;
  • the sending module 42 is configured to send the wavelength channel information determined by the determining module 41 to the optical network unit ONU.
  • the optical line terminal of the embodiment of the present invention determines the wavelength channel information including the downlink wavelength channel information and/or the uplink wavelength channel information through the optical line terminal, and sends the wavelength channel information to the optical network unit, so that the optical network unit can know
  • the information of the downlink wavelength channel and/or the uplink wavelength channel so that information such as the type of the downlink wavelength channel and/or the uplink wavelength channel and/or the type of downlink service that can be transmitted can be identified in the case where a plurality of passive optical network systems coexist. Thereby, wavelength initialization can be performed correctly, and interference with other devices can be avoided.
  • the sending module 42 is specifically configured to: send a downlink physical synchronization block PSBd or a template physical layer to the ONU.
  • the profile PLOAM message is sent and maintained, where the downlink physical synchronization block carries the downlink wavelength channel information, and the profile PLOAM message includes the downlink wavelength channel information.
  • the downlink optical synchronization block includes a passive optical network operation control body PON OC Body field that carries the downlink wavelength channel information; or the downlink physical synchronization block includes a passive optical network identifier PON.
  • the ID field 7 carries the downlink wavelength channel information. Therefore, the optical line terminal in the embodiment of the present invention determines the downlink wavelength channel information through the optical line terminal, and sends the downlink wavelength channel information to the optical network unit, so that the optical network unit can know the type of the downlink wavelength channel and/or can transmit.
  • the type of downlink service enables identification of the type of downlink wavelength channel in the presence of multiple passive optical network systems, thereby enabling wavelength initialization to be correctly performed and interference with other devices to be avoided.
  • the optical line terminal further includes a receiving module 43, configured to receive a registration response sent by the ONU on the uplink wavelength channel, where the registration response is used to request uplink Wavelength calibration, and the registration response carries a field indicating the device type of the ONU;
  • the sending module 42 is specifically configured to: send the uplink wavelength channel information to the ONU according to the registration response.
  • the sending module 42 is further configured to: send a registration request to the ONU, where the registration request carries a field for indicating a device type of the device to be registered;
  • the receiving module 43 is specifically configured to: receive the registration port sent by the ONU on the uplink wavelength channel when determining that the device type of the ONU matches the device type of the allowed registration device.
  • the sending module 42 is specifically configured to: send the registration request including an allocation structure Allocation structure field to the ONU, where the allocation unit identifier in the allocation structure field identifies the value of the Alloc-ID field. Indicates the device type of the device that is allowed to register; or the allocation structure field includes a field that takes a value indicating the device type of the device that is allowed to be registered.
  • the sending module 42 is specifically configured to: send the registration request to the ONU by using a physical layer to operate and maintain a PLOAM message, where the PLOAM message includes a device type for indicating the device to be registered. Field.
  • the field that is received by the receiving module 43 and used to indicate the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identifier.
  • the PON ID field, the PON OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located to indicate the device type of the ONU.
  • the sending module 42 is further configured to: before sending the uplink wavelength channel information to the ONU according to the registration response, send a wavelength channel switching command to the ONU according to the registration response or A wavelength adjustment command to instruct the ONU to perform upstream wavelength calibration.
  • the downlink wavelength channel information that is determined by the determining module 41 further includes a type of the downlink service that the downlink wavelength channel can transmit; the uplink wavelength channel information determined by the determining module further includes the uplink. The type of upstream service that the wavelength channel can transmit.
  • optical line terminal 40 may correspond to the OLT in the embodiment of the present invention, and the above and other operations and/or functions of the respective modules in the optical line terminal 40 are respectively implemented in order to implement FIGS. 13 to 16
  • the corresponding flow of the method 400 in the following is not repeated here for brevity.
  • the optical line terminal of the embodiment of the present invention determines the wavelength channel information including the downlink wavelength channel information and/or the uplink wavelength channel information through the optical line terminal, and sends the wavelength channel information to the optical network unit, so that the optical network unit can know
  • the information of the downlink wavelength channel and/or the uplink wavelength channel so that information such as the type of the downlink wavelength channel and/or the uplink wavelength channel and/or the type of downlink service that can be transmitted can be identified in the case where a plurality of passive optical network systems coexist. Thereby, wavelength initialization can be performed correctly, and interference with other devices can be avoided.
  • FIG. 28 shows a schematic block diagram of an optical line terminal 50 in accordance with an embodiment of the present invention.
  • the optical line terminal OLT 50 includes:
  • the receiving module 51 is configured to receive a registration response sent by the optical network unit ONU, where the registration response is used to request the OLT 50 to allocate an identifier, and the registration response carries a field for indicating a device type of the ONU;
  • a determining module 52 configured to determine, according to the registration response received by the receiving module 51, whether a device type of the ONU matches a device type of the device to be registered;
  • the sending module 53 is configured to send the device identifier of the ONU to the ONU when the determining module 52 determines that the device type of the ONU matches the device type of the allowed registered device.
  • the optical line terminal of the embodiment of the present invention receives the registration response sent by the optical network unit through the optical line terminal, and carries a field indicating the device type of the optical network unit in the registration response, so that the optical line terminal can
  • the registration response determines whether the device type of the optical network unit matches the device type of the device to be registered, and transmits the device identification to the optical network unit when matching, so that the optical line terminal can identify the request in the case where multiple passive optical network systems coexist.
  • the type of device registered, and the device identifier can be sent to the optical network unit of the matching type, thereby enabling device registration to be correctly performed and interference with other devices can be avoided.
  • the sending module 53 is further configured to: send a registration request to the ONU, where the registration request carries a field for indicating a device type of the device that is allowed to be registered; wherein the receiving module 51 Specifically used to: receive the ONU in determining the device class of the ONU The registration response sent when the type matches the device type of the device that is allowed to register.
  • the sending module 53 is specifically configured to: send the registration request including an allocation structure Allocation structure field to the ONU, where the allocation unit identifier in the allocation structure field identifies the value of the Alloc-ID field. Indicates the device type of the device that is allowed to register; or the allocation structure field includes a field that takes a value indicating the device type of the device that is allowed to be registered.
  • the sending module 53 is specifically configured to: send the registration request to the ONU by using a physical layer operation and maintenance PLOAM message, where the PLOAM message includes a device type for indicating the device to be registered. Field.
  • the field that is received by the receiving module 51 and used to indicate the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identifier.
  • the PON ID field, the PON OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located to indicate the device type of the ONU.
  • the receiving module 51 is further configured to: after the sending module 53 sends the device identifier of the ONU to the ONU, receive the confirmation information sent by the ONU, where the confirmation information is used to indicate the The ONU receives the device identification.
  • the sending module 53 is further configured to: when the determining module 52 determines that the device type of the ONU does not match the device type of the allowed registered device, send a wavelength channel switching command to the ONU. To indicate that the ONU is re-registered.
  • optical line terminal 50 may correspond to the OLT in the embodiment of the present invention, and the above and other operations and/or functions of the respective modules in the optical line terminal 50 are respectively implemented in order to implement FIGS. 17 to 20
  • the corresponding process of the method 500 in the following is omitted for brevity.
  • the optical line terminal of the embodiment of the present invention receives the registration response sent by the optical network unit through the optical line terminal, and carries a field indicating the device type of the optical network unit in the registration response, so that the optical line terminal can
  • the registration response determines whether the device type of the optical network unit matches the device type of the device to be registered, and transmits the device identification to the optical network unit when matching, so that the optical line terminal can identify the request in the case where multiple passive optical network systems coexist.
  • the type of device registered, and the device identifier can be sent to the optical network unit of the matching type, thereby enabling device registration to be correctly performed and interference with other devices can be avoided.
  • system and “network” are used interchangeably herein.
  • the term “and/or” in this article is merely an association describing the associated object, indicating that there can be three For example, A and/or can mean: There are eight cases alone, and there are three cases where there are eight and ⁇ alone.
  • the character "/" in this article generally indicates that the contextual object is an "or" relationship.
  • B corresponding to A means that B is associated with A, and can be determined according to A.
  • determining B according to A does not mean that it can be determined based only on A. A and / or other information to determine ⁇
  • an embodiment of the present invention further provides an optical network unit 610.
  • the optical network unit 610 includes a processor 611, a memory 612, a bus system 613, and a receiver 614.
  • the processor 611, the memory 612 and the receiver 614 are connected by a bus system 613 for storing instructions, and the processor 611 is configured to execute the instructions stored by the memory 612 to control the receiver 614 to receive signals.
  • the receiver 614 is configured to: receive a downlink frame sent by the optical line terminal OLT, where the downlink frame carries a field for indicating downlink wavelength channel information of the current wavelength channel, where the downlink wavelength channel information includes a type of the wavelength channel;
  • the processor 611 is configured to: determine, according to the type of the wavelength channel, a target downlink wavelength channel of the ONU from the at least one downlink wavelength channel, where the type of the target downlink wavelength channel matches the device type of the ONU.
  • the optical network unit of the embodiment of the present invention can carry the type information of the downlink wavelength channel in the downlink frame sent by the optical network unit to receive the optical line terminal, so that the downlink can be identified in the case where multiple passive optical network systems coexist.
  • the type of the wavelength channel whereby the wavelength of the downlink wavelength channel matched by the type can be determined as the target downstream wavelength of the ONU, so that the wavelength initialization can be correctly performed, and interference with other devices can be avoided.
  • the processor 611 may be a central processing unit (“CPU"), and the processor 611 may also be other general-purpose processors, digital signal processors (DSPs).
  • DSPs digital signal processors
  • ASIC application specific integrated circuit
  • FPGA off-the-shelf programmable gate array
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 612 can include read only memory and random access memory and provides instructions and data to the processor 611. A portion of memory 612 may also include non-volatile random access memory. For example, the memory 612 can also store information of the device type.
  • the bus system 613 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as the bus system 613 in the figure.
  • each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 611 or an instruction in a form of software.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • the software modules can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 612.
  • the processor 611 reads the information in the memory 612 and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
  • the downlink frame is specifically a downlink physical synchronization block PSBd or a template physical layer operation and maintenance profile PLOAM message used to indicate the downlink wavelength channel information.
  • the downlink optical synchronization block includes a passive optical network operation control PON OC Body field or a passive optical network identification PON ID field for indicating the downlink wavelength channel information.
  • the downlink wavelength channel information further includes a type of downlink service that the wavelength channel can transmit; wherein the processor 611 determines the optical network from the at least one downlink wavelength channel according to the type of the wavelength channel.
  • the target downlink wavelength channel of the unit ONU includes: determining the target downlink wavelength channel from the at least one downlink wavelength channel according to the type of the wavelength channel and the type of the downlink service that can be transmitted, where the type of the target downlink wavelength channel Matching the device type of the ONU, and the type of the downlink service that the target downlink wavelength channel can transmit matches the type of the downlink service supported by the ONU.
  • the optical network unit 610 is a PtP WDM-PON ONU.
  • the above-mentioned and other operations and/or functions of the respective modules in the optical network unit 610 are respectively implemented in order to implement the corresponding processes of the method 100 in FIGS. 1 to 5, and are not described herein for brevity.
  • the optical network unit of the embodiment of the present invention can carry the type information of the downlink wavelength channel in the downlink frame sent by the optical network unit to receive the optical line terminal, so that the downlink can be identified in the case where multiple passive optical network systems coexist.
  • the type of the wavelength channel whereby the wavelength of the downlink wavelength channel matched by the type can be determined as the target downstream wavelength of the ONU, so that the wavelength initialization can be correctly performed, and interference with other devices can be avoided.
  • an embodiment of the present invention further provides an optical network unit 620, which includes a processor 621, a memory 622, a bus system 623, and a receiver 624.
  • the processor 621, the memory 622 and the receiver 624 are connected by a bus system 623 for storing instructions for executing instructions stored by the memory 622 to control the receiver 624 to receive signals.
  • the receiver 624 is configured to: receive a downlink frame that is responded by the optical line terminal OLT, where the downlink frame carries a field for indicating uplink wavelength channel information of the current wavelength channel, where the uplink wavelength channel information includes a type of the wavelength channel;
  • the processor 621 is configured to: determine, according to the type of the wavelength channel, a target uplink wavelength channel of the ONU from the at least one uplink wavelength channel, where the type of the target uplink wavelength channel matches the device type of the ONU.
  • the optical network unit of the embodiment of the present invention sends a registration response to the optical line terminal through the optical network unit, and receives the type information of the uplink wavelength channel sent by the optical line terminal, so that the multiple passive optical network systems can coexist.
  • the type of the upstream wavelength channel is identified, so that the wavelength of the upstream wavelength channel matched by the type can be determined as the target upstream wavelength of the ONU, so that the wavelength initialization can be correctly performed, and interference with other devices can be avoided.
  • the receiving module 624 is further configured to: receive a registration request sent by the OLT, where the registration request carries a field for indicating a device type of the device to be registered; the ONU 620 further includes a sending module 625. And configured to send an uplink frame to the optical line terminal OLT, where the uplink frame carries a field for indicating a device type of the ONU;
  • the determining module 621 is further configured to: determine whether a device type of the ONU matches a device type of the allowed registered device;
  • the sending module 625 is specifically configured to: when the determining module determines that the device type of the ONU matches the device type of the allowed registered device, send the uplink frame to the OLT.
  • the receiver 624 receives the registration request sent by the OLT, including:
  • the registration request including an allocation structure Allocation structure field, where the allocation unit identifier Alloc-ID field value indicates the device type of the device to be registered; or the allocation structure field includes the value A field indicating the type of device that is allowed to register the device.
  • the receiver 624 receives the registration request sent by the OLT, including:
  • the PLOAM message includes a field for indicating the device type of the device to be registered.
  • the device class carried by the uplink frame is used to indicate the ONU.
  • the type field includes a passive optical network operation control body PON OC Body field or a passive optical network identification PON ID field, and the PON OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located, to indicate The device type of the ONU.
  • the uplink wavelength channel information further includes a type of uplink service that the wavelength channel can transmit;
  • the processor 621 determines the target uplink wavelength channel of the ONU from the at least one upstream wavelength channel according to the type of the wavelength channel, including:
  • the receiver 624 before the receiver 624 receives the downlink frame sent by the OLT, the receiver 624 is further configured to: receive a wavelength channel switching command or a wavelength adjustment command sent by the OLT according to the uplink frame, to indicate The ONU performs upstream wavelength calibration.
  • the ONU 20, and the above-described and other operations and/or functions of the respective modules in the optical network unit 620 are respectively omitted for the sake of brevity in order to implement the corresponding processes of the method 200 in FIG. 6 to FIG.
  • the optical network unit of the embodiment of the present invention sends a registration response to the optical line terminal through the optical network unit, and receives the type information of the uplink wavelength channel sent by the optical line terminal, so that the multiple passive optical network systems can coexist.
  • the type of the upstream wavelength channel is identified, so that the wavelength of the upstream wavelength channel matched by the type can be determined as the target upstream wavelength of the ONU, so that the wavelength initialization can be correctly performed, and interference with other devices can be avoided.
  • an embodiment of the present invention further provides an optical network unit 630.
  • the optical network unit 630 includes a processor 631, a memory 632, a bus system 633, a receiver 634, and a transmitter 635.
  • the processor 631, the memory 632, the receiver 634 and the transmitter 635 are connected by a bus system 633 for storing instructions for executing instructions stored in the memory 632 to control the receiver 634 to receive.
  • Signal and control transmitter 635 to send a signal.
  • the transmitter 635 is configured to: send a registration response to the optical line terminal OLT, where the registration response is used to request the OLT to allocate an identifier, and the registration response carries a field for indicating a device type of the optical network unit ONU; the receiver 634 is used to: receive the OLT in response to the registration response The device identifier of the ONU sent when the device type of the ONU matches the device type of the device to be registered; the processor 631 is configured to perform information transmission according to the device identifier.
  • the optical network unit of the embodiment of the present invention sends a registration response to the optical line terminal through the optical network unit, and carries a field indicating the device type of the optical network unit in the registration response, so that the optical line terminal can be registered according to the Responding to determine whether the device type of the optical network unit matches the device type of the device to be registered, and send the device identifier to the optical network unit when matching, so that the optical line terminal can recognize the request for registration in the case where multiple passive optical network systems coexist
  • the type of device, and the ability to send the device identification to the optical network unit of the matching type thereby enabling proper device registration and avoiding interference with other devices.
  • the receiver 634 is further configured to: receive a registration request sent by the OLT, where the registration request carries a field for indicating a device type of the device to be registered; the processor 631 is further configured to: determine Whether the device type of the ONU matches the device type of the device to be registered; the transmitter 635 is specifically configured to: send the registration response to the OLT when determining that the device type of the ONU matches the device type of the allowed device.
  • the receiver 634 receives the registration request sent by the OLT, including:
  • the registration request including an allocation structure Allocation structure field, where the allocation unit identifier Alloc-ID field value indicates the device type of the device to be registered; or the allocation structure field includes the value A field indicating the type of device that is allowed to register the device.
  • the receiver 634 receives the registration request sent by the OLT, including:
  • the PLOAM message includes a field for indicating the device type of the device to be registered.
  • the field that is used by the registration response to indicate the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identifier PON ID field, and the PON OC Body
  • the field and the PON ID field are used to indicate the type of the downstream wavelength channel in which the ONU is located to indicate the device type of the ONU.
  • the transmitter 635 Also used to: send confirmation information to the OLT, The confirmation information is used to indicate that the ONU receives the device identification.
  • the receiver 634 is further configured to: receive a wavelength channel switching command sent by the OLT when determining, according to the registration response, that the device type of the ONU does not match the device type of the allowed registration device, to indicate The ONU is re-registered.
  • the ONU 30, and the above-described and other operations and/or functions of the respective modules in the optical network unit 630 are respectively omitted for the sake of brevity in order to implement the corresponding processes of the method 300 in FIG. 9 to FIG.
  • the optical network unit of the embodiment of the present invention sends a registration response to the optical line terminal through the optical network unit, and carries a field indicating the device type of the optical network unit in the registration response, so that the optical line terminal can be registered according to the Responding to determine whether the device type of the optical network unit matches the device type of the device to be registered, and send the device identifier to the optical network unit when matching, so that the optical line terminal can recognize the request for registration in the case where multiple passive optical network systems coexist
  • the type of device, and the ability to send the device identification to the optical network unit of the matching type thereby enabling proper device registration and avoiding interference with other devices.
  • an embodiment of the present invention further provides an optical line terminal 640.
  • the optical line terminal 640 includes a processor 641, a memory 642, a bus system 643, a receiver 644, and a transmitter 645.
  • the processor 641, the memory 642, the receiver 644 and the transmitter 645 are connected by a bus system 643 for storing instructions for executing instructions stored in the memory 642 to control the receiver 644 to receive. Signal and control transmitter 645 to send a signal.
  • the processor 641 is configured to: determine wavelength channel information, where the wavelength channel information includes downlink wavelength channel information and/or uplink wavelength channel information, where the downlink wavelength channel information includes a downlink wavelength channel currently used by the optical line terminal OLT
  • the type of the upstream wavelength channel information includes the type of the uplink wavelength channel
  • the transmitter 651 is configured to: send the wavelength channel information to the optical network unit ONU.
  • the optical line terminal of the embodiment of the present invention determines the wavelength channel information including the downlink wavelength channel information and/or the uplink wavelength channel information through the optical line terminal, and sends the wavelength channel information to the optical network unit, so that the optical network unit can know
  • the information of the downlink wavelength channel and/or the uplink wavelength channel so that information such as the type of the downlink wavelength channel and/or the uplink wavelength channel and/or the type of downlink service that can be transmitted can be identified in the case where a plurality of passive optical network systems coexist. Thereby, wavelength initialization can be performed correctly, and interference with other devices can be avoided.
  • the transmitter 645 sends the wavelength channel information to the optical network unit ONU, including: sending a downlink physical synchronization block PSBd or a template to the ONU.
  • the physical layer operates and maintains a profile PLOAM message, where the downlink physical synchronization block carries the downlink wavelength channel information, and the profile PLOAM message includes the downlink wavelength channel information.
  • the downlink optical synchronization block includes a passive optical network operation control body PON OC Body field that carries the downlink wavelength channel information; or the downlink physical synchronization block includes a passive optical network identifier PON ID field. 7 carries the downlink wavelength channel information.
  • the receiver 644 is configured to: receive a registration response sent by the ONU on the uplink wavelength channel, where the registration response is used to request uplink wavelength calibration, and the registration response is carried to indicate the ONU Field of device type;
  • the transmitting, by the transmitter 645, the wavelength channel information to the ONU includes: sending the uplink wavelength channel information to the ONU according to the registration response.
  • the sender 645 is further configured to: send a registration request to the ONU, where the registration request carries a field for indicating a device type of the device to be registered;
  • the receiver 644 receives the registration response sent by the ONU to the OLT on the uplink wavelength channel, and includes: receiving, by the ONU, the upstream wavelength when determining that the device type of the ONU matches the device type of the allowed registration device. The registration response sent on the channel.
  • the sender 645 sends a registration request to the ONU, including:
  • the registration request including an allocation structure Allocation structure field, where the value of the allocation unit identifier Alloc-ID field in the allocation structure field indicates the device type of the device to be registered; or the allocation structure field includes a value for A field indicating the device type that is allowed to register the device.
  • the sender 645 sends a registration request to the ONU, including:
  • the registration request is sent to the ONU through a physical layer operation and maintenance PLOAM message, the PLOAM message including a field indicating the device type of the device to be registered.
  • the field that is used by the registration response to indicate the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identifier PON ID field, and the PON OC Body Field and the PON ID field are used to indicate the ONU The type of downstream wavelength channel in which it is located to indicate the device type of the ONU.
  • the transmitter 645 before the transmitter 645 sends the uplink wavelength channel information to the ONU according to the registration response, the transmitter 645 is further configured to: send a wavelength channel switching command to the ONU according to the registration response or A wavelength adjustment command to instruct the ONU to perform upstream wavelength calibration.
  • the downlink wavelength channel information further includes a type of downlink service that the downlink wavelength channel can transmit; the uplink wavelength channel information further includes a type of uplink service that the uplink wavelength channel can transmit.
  • the OLT 40, and the above-described and other operations and/or functions of the various modules in the optical line terminal 640, respectively, are used to implement the corresponding processes of the method 400 of FIGS. 13-16, and are not described herein again for brevity.
  • the optical line terminal of the embodiment of the present invention determines the wavelength channel information including the downlink wavelength channel information and/or the uplink wavelength channel information through the optical line terminal, and sends the wavelength channel information to the optical network unit, so that the optical network unit can know
  • the information of the downlink wavelength channel and/or the uplink wavelength channel so that information such as the type of the downlink wavelength channel and/or the uplink wavelength channel and/or the type of downlink service that can be transmitted can be identified in the case where a plurality of passive optical network systems coexist. Thereby, wavelength initialization can be performed correctly, and interference with other devices can be avoided.
  • an embodiment of the present invention further provides an optical line terminal 650.
  • the optical line terminal 650 includes a processor 651, a memory 652, a bus system 653, a receiver 654, and a transmitter 655.
  • the processor 651, the memory 652, the receiver 654, and the transmitter 655 are connected by a bus system 653 for storing instructions, and the processor 651 is configured to execute instructions stored by the memory 652 to control the receiver 654 to receive. Signal and control transmitter 655 to send a signal.
  • the receiver 654 is configured to: receive a registration response sent by the optical network unit ONU, where the registration response is used to request the optical line terminal OLT to allocate an identifier, and the registration response carries a field for indicating a device type of the ONU;
  • the device 651 is configured to: determine, according to the registration response, whether the device type of the ONU matches the device type of the device to be registered;
  • the transmitter 655 is configured to: when determining that the device type of the ONU matches the device type of the allowed registration device, The device identifier of the ONU is sent to the ONU.
  • the optical line terminal of the embodiment of the present invention receives the registration response sent by the optical network unit through the optical line terminal, and carries the word indicating the type of the device of the optical network unit in the registration response.
  • the segment enables the optical line terminal to determine, according to the registration response, whether the device type of the optical network unit matches the device type of the device to be registered, and sends the device identifier to the optical network unit when matching, thereby coexisting in multiple passive optical network systems.
  • the optical line terminal can identify the type of device requesting registration, and can transmit the device identification to the optical network unit of which the type matches, thereby enabling device registration to be correctly performed and interference with other devices can be avoided.
  • the transmitter 655 is further configured to: send a registration request to the ONU, where the registration request carries a field for indicating a device type of the device that is allowed to be registered; wherein the receiver 654 receives the light.
  • the registration response sent by the network unit ONU including:
  • the sender 655 sends a registration request to the ONU, including:
  • the registration request including an allocation structure Allocation structure field, where the value of the allocation unit identifier Alloc-ID field in the allocation structure field indicates the device type of the device to be registered; or the allocation structure field includes a value for A field indicating the device type that is allowed to register the device.
  • the sender 655 sends a registration request to the ONU, including:
  • the registration request is sent to the ONU through a physical layer operation and maintenance PLOAM message, the PLOAM message including a field indicating the device type of the device to be registered.
  • the field that is used by the registration response to indicate the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identifier PON ID field, and the PON OC Body
  • the field and the PON ID field are used to indicate the type of the downstream wavelength channel in which the ONU is located to indicate the device type of the ONU.
  • the receiver 654 is further configured to: receive acknowledgement information sent by the ONU, where the acknowledgement information is used to indicate that the ONU receives the identifier. Go to the device ID.
  • the transmitter 655 is further configured to: when determining that the device type of the ONU does not match the device type of the allowed registration device, send a wavelength channel switching command to the ONU to indicate that the ONU is re- registered.
  • the OLT 50, and the above-described and other operations and/or functions of the respective modules in the optical line terminal 650 are respectively omitted in order to implement the corresponding processes of the method 500 in FIG. 17 to FIG. 20 for brevity.
  • the optical line terminal of the embodiment of the present invention receives the registration response sent by the optical network unit through the optical line terminal, and carries a field indicating the device type of the optical network unit in the registration response, so that the optical line terminal can
  • the registration response determines whether the device type of the optical network unit matches the device type of the device to be registered, and transmits the device identification to the optical network unit when matching, so that the optical line terminal can identify the request in the case where multiple passive optical network systems coexist.
  • the type of device registered, and the device identifier can be sent to the optical network unit of the matching type, thereby enabling device registration to be correctly performed and interference with other devices can be avoided.
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the mutual coupling or direct connection or communication connection shown or discussed may be an indirect connection or communication connection through some interface, device or unit, or may be an electrical, mechanical or other form. connection.
  • the components displayed for the unit may or may not be physical units, ie may be located in one place, or may be distributed over multiple network units.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

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

Abstract

Disclosed are a method and apparatus for wavelength initialization and device registration in a passive optical network. The method comprises: receiving a downlink frame sent by an optical line terminal (OLT) on a downlink wavelength channel, wherein the downlink frame carries a field used for indicating downlink wavelength channel information, and the downlink wavelength channel information comprises a type of the downlink wavelength channel; and determining a target downlink wavelength of an optical network unit (ONU) according to the type of the downlink wavelength channel, wherein a type of a target downlink wavelength channel corresponding to the target downlink wavelength matches a device type of the ONU. By means of the method and apparatus in the embodiments of the present invention, information for indicating a channel type or a device type is carried during information exchange between an optical line terminal and an optical network unit, so that a passive optical network system to which a channel or device belongs can be identified in a case in which multiple passive optical network systems coexist, and thus wavelength initialization and device registration can be accurately performed and interference with other devices can be avoided.

Description

无源光网络中波长初始化和设备注册的方法和装置  Method and apparatus for wavelength initialization and device registration in a passive optical network
技术领域 Technical field
本发明涉及光通信领域, 尤其涉及光通信领域中的无源光网络中波长初 始化和设备注册的方法和装置。 背景技术  The present invention relates to the field of optical communications, and more particularly to a method and apparatus for wavelength initialization and device registration in a passive optical network in the field of optical communications. Background technique
随着光通信技术的迅速发展, 无源光网络( Passive Optical Network, 简 称为 "PON" ) ***在光通信技术中的应用越来越广。 PON***可以包括: 位于中心局的光线路终端 (Optical Line Terminal, 简称为 "OLT" )、 包括无 源光器件的光分配网络(Optical Distribution Network, 简称为 "ODN" )、 以 及位于用户端的光网络单元( Optical Network Unit, 简称为 "ONU" ) /光网 络终端(Optical Network Terminal, 简称为 'ΌΝΤ" ), 其中, 可以用 ONU指 代 ONU和 /或 ONT。  With the rapid development of optical communication technology, Passive Optical Network ("PON") systems are increasingly used in optical communication technologies. The PON system may include: an Optical Line Terminal ("OLT") located at the central office, an Optical Distribution Network (ODN) including a passive optical device, and a light located at the user end. An Optical Network Unit ("ONU") or an Optical Network Terminal ("A" for short), in which an ONU can be referred to as an ONU and/or an ONT.
PON ***可以包括时分复用 (Time Division Multiplexing , 简称为 PON systems can include Time Division Multiplexing (referred to as
"TDM" ) PON、 吉比特无源光网络( Gigabit Passive Optical Network, 简称 "TDM") PON, Gigabit Passive Optical Network (Gigabit Passive Optical Network, abbreviated
"EPON" )、 时分波分复用 (Time wavelength division multiplexing, 简称为 "TWDM" )PON、点对点( Point to Point,简称为 "PtP" )波分复用( Wavelength Division Multiplexing, 简称为 "WDM" ) PON等。 目前, 国际电信联盟远程 通信标准化组 ( ITU Telecommunication Standardization Sector, 简称为 "ITU-T" , 其中, International Telecommunication Union简称为 "ITU" ) 的 国际标准 G.989.X 提出了一种称为下一代无源光网络*** ( Next Generation-PON2, 简称为 " NG-PON2 " ) 的, 该 NG-PON2 ***包括 TWDM-PON***和 PtP WDM-PON***, 其中, 该 TWDM-PON***和该 PtP WDM-PON***能够同时在基于分光器( Optical Splitter, 简称为 "OS" ) 的 ODN上共存。 但在该 NG-PON2***中, 没有现有的波长初始化和设备 注册的方法可以釆用。 "EPON"), Time-wavelength division multiplexing ("TWDM") PON, Point-to-Point (PtP) Wavelength Division Multiplexing (WDM) ) PON, etc. At present, the International Telecommunication Standardization Sector (ITU Telecommunication Standardization Sector, referred to as "ITU-T", in which the International Telecommunication Union is referred to as "ITU"), the international standard G.989.X proposes a so-called next generation. A passive optical network system (Next Generation-PON2, hereinafter referred to as "NG-PON2"), the NG-PON2 system includes a TWDM-PON system and a PtP WDM-PON system, wherein the TWDM-PON system and the PtP WDM- The PON system can coexist on an ODN based on an Optical Splitter ("OS") at the same time. However, in the NG-PON2 system, there is no existing method of wavelength initialization and device registration.
因此, 实现多无源光网络***共存情况下的波长初始化和设备注册, 是 当前亟待解决的问题。 发明内容 Therefore, realizing wavelength initialization and device registration in the case of coexistence of multi-passive optical network systems is an urgent problem to be solved. Summary of the invention
有鉴于此,本发明实施例提供了一种无源光网络中波长初始化和设备注 册的方法和装置, 能够在多***共存情况下进行波长初始化和设备注册。  In view of this, embodiments of the present invention provide a method and apparatus for wavelength initialization and device registration in a passive optical network, which are capable of wavelength initialization and device registration in the presence of multiple systems.
第一方面, 提供了一种无源光网络中波长初始化的方法, 该方法包括: 光网络单元 ONU接收光线路终端 OLT发送的下行帧,该下行帧携带用 于指示当前波长通道的下行波长通道信息的字段, 该下行波长通道信息包括 该波长通道的类型; 该 ONU根据该波长通道的类型, 从至少一个下行波长 通道中确定该 ONU的目标下行波长通道, 其中, 每个波长通道与一个下行 波长通道——对应, 与该目标下行波长相对应的波长通道的类型与该 ONU 的设备类型相匹配。  In a first aspect, a method for wavelength initialization in a passive optical network is provided. The method includes: an optical network unit ONU receiving a downlink frame sent by an optical line terminal OLT, where the downlink frame carries a downlink wavelength channel for indicating a current wavelength channel. a field of information, the downlink wavelength channel information includes a type of the wavelength channel; the ONU determines, according to the type of the wavelength channel, a target downlink wavelength channel of the ONU from at least one downlink wavelength channel, where each wavelength channel and one downlink Wavelength channel - Correspondingly, the type of wavelength channel corresponding to the target downstream wavelength matches the device type of the ONU.
结合第一方面, 在第一方面的第一种可能的实现方式中, 该下行帧具体 为用于指示该下行波长通道信息的下行物理同步块 PSBd或模板物理层运行 与维护 Profile PLOAM消息。  With reference to the first aspect, in a first possible implementation manner of the first aspect, the downlink frame is specifically a downlink physical synchronization block PSBd or a template physical layer operation and maintenance profile PLOAM message for indicating the downlink wavelength channel information.
结合第一方面的第一种可能的实现方式,在第一方面的第二种可能的实 现方式中, 该下行物理同步块包括的无源光网络操作控制体 PON OC Body 字段或无源光网络标识 PON ID字段用于指示该下行波长通道信息。  With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the downlink physical synchronization block includes a passive optical network operation control body PON OC Body field or a passive optical network The identifier PON ID field is used to indicate the downlink wavelength channel information.
结合第一方面、 第一方面的第一种或第二种可能的实现方式, 在第一方 面的第三种可能的实现方式中, 该下行波长通道信息还包括该波长通道能够 传输的下行业务的类型; 其中, 该 ONU根据该波长通道的类型, 从至少一 个下行波长通道中确定该 ONU的目标下行波长通道, 包括: 该 ONU根据 该波长通道的类型和该能够传输的下行业务的类型,从该至少一个下行波长 通道中确定该目标下行波长, 其中, 与该目标下行波长通道相应的波长通道 的类型与该 ONU的设备类型相匹配, 并且该目标下行波长通道能够传输的 下行业务的类型与该 ONU支持的下行业务的类型相匹配。  With reference to the first aspect, the first or the second possible implementation manner of the first aspect, in the third possible implementation manner of the first aspect, the downlink wavelength channel information further includes a downlink service that can be transmitted by the wavelength channel The ONU determines the target downlink wavelength channel of the ONU from the at least one downlink wavelength channel according to the type of the wavelength channel, and includes: the ONU according to the type of the wavelength channel and the type of the downlink service that can be transmitted. Determining the target downlink wavelength from the at least one downlink wavelength channel, wherein a type of the wavelength channel corresponding to the target downlink wavelength channel matches a device type of the ONU, and a type of downlink service that the target downlink wavelength channel can transmit Matches the type of downlink service supported by the ONU.
第二方面, 提供了一种无源光网络中波长初始化的方法, 该方法包括: 光网络单元 ONU接收光线路终端 OLT响应的下行帧,该下行帧携带用于指 示当前波长通道的上行波长通道信息的字段, 该上行波长通道信息包括该波 长通道的类型; 该 ONU根据该波长通道的类型, 从至少一个上行波长通道 中确定该 ONU的目标上行波长通道, 其中, 每个波长通道与一个上行波长 通道——对应, 与该目标上行波长通道相对应的波长通道的类型与该 ONU 的设备类型相匹配。 结合第二方面,在第二方面的第一种可能的实现方式中,该方法还包括: 接收该 OLT发送的注册请求, 该注册请求携带用于指示允许注册设备的设 备类型的字段; 向该 OLT发送用于响应该注册请求的上行帧, 该上行帧用 于携带指示该 ONU的设备类型的字段; 其中, 该向该 OLT发送用于响应该 注册请求的上行帧, 包括: 确定该 ONU的设备类型与该允许注册设备的设 备类型是否匹配; 在确定该 ONU的设备类型与该允许注册设备的设备类型 匹配时, 向该 OLT发送该上行帧。 In a second aspect, a method for wavelength initialization in a passive optical network is provided. The method includes: an optical network unit ONU receiving a downlink frame that is responded by an optical line terminal OLT, where the downlink frame carries an uplink wavelength channel for indicating a current wavelength channel. a field of information, the uplink wavelength channel information includes a type of the wavelength channel; the ONU determines a target uplink wavelength channel of the ONU from the at least one upstream wavelength channel according to the type of the wavelength channel, where each wavelength channel and one uplink Wavelength channel - Correspondingly, the type of wavelength channel corresponding to the target upstream wavelength channel matches the device type of the ONU. With reference to the second aspect, in a first possible implementation manner of the second aspect, the method further includes: receiving a registration request sent by the OLT, where the registration request carries a field for indicating a device type of the device to be registered; The OLT sends an uplink frame for responding to the registration request, where the uplink frame is used to carry a field indicating a device type of the ONU, where the sending, by the OLT, an uplink frame for responding to the registration request includes: determining the ONU Whether the device type matches the device type of the device to be registered; when determining that the device type of the ONU matches the device type of the device that is allowed to register, the uplink frame is sent to the OLT.
结合第二方面的第一种可能的实现方式,在第二方面的第二种可能的实 现方式中, 该接收该 OLT发送的注册请求, 包括: 接收该 OLT发送的包括 分配结构 Allocation structure字段的该注册请求, 该分配结构字段中的分配 单元标识 Alloc-ID字段的取值指示该允许注册设备的设备类型;或该分配结 构字段包括取值用于指示该允许注册设备的设备类型的字段。  With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the receiving the registration request sent by the OLT includes: receiving, by the OLT, an allocation structure including an allocation structure The registration request, the value of the allocation unit identifier Alloc-ID field in the allocation structure field indicates the device type of the device to be registered, or the allocation structure field includes a field for indicating the device type of the device to be registered.
结合第二方面的第一种可能的实现方式,在第二方面的第三种可能的实 现方式中, 该接收该 OLT发送的注册请求, 包括: 接收该 OLT通过物理层 运行与维护 PLOAM消息发送的该注册请求, 该 PLOAM消息包括用于指示 该允许注册设备的设备类型的字段。  With reference to the first possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the receiving the registration request sent by the OLT includes: receiving the OLT to send and maintain a PLOAM message through a physical layer The registration request, the PLOAM message includes a field for indicating the device type of the device to be registered.
结合第二方面或第二方面的第一种至第三种可能的实现方式中的任一 种可能的实现方式, 在第二方面的第四种可能的实现方式中, 该上行帧携带 的用于指示该 ONU的设备类型的字段包括无源光网络操作控制体 PON OC Body字段或无源光网络标识 PON ID字段,该 PON OC Body字段和该 PON ID字段用于指示该 ONU所在的下行波长通道的类型, 以指示该 ONU的设 备类型。  With reference to the second aspect, or any one of the first to the third possible implementation manners of the second aspect, in the fourth possible implementation manner of the second aspect, The field indicating the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identification PON ID field, and the PON OC Body field and the PON ID field are used to indicate the downstream wavelength of the ONU. The type of channel to indicate the device type of the ONU.
结合第二方面或第二方面的第一种至第四种可能的实现方式中的任一 种可能的实现方式, 在第二方面的第五种可能的实现方式中, 该上行波长通 道信息还包括该波长通道能够传输的上行业务的类型; 其中, 该 ONU根据 该波长通道的类型, 从至少一个上行波长通道中确定该 ONU的目标上行波 长通道, 包括: 该 ONU根据该波长通道的类型和该能够传输的上行业务的 类型, 从该至少一个上行波长通道中确定该目标上行波长通道, 其中, 该目 标上行波长通道的类型与该 ONU的设备类型相匹配, 并且该目标上行波长 通道能够传输的上行业务的类型与该 ONU支持的上行业务的类型相匹配。  With reference to the second aspect, or any one of the first to the fourth possible implementation manners of the second aspect, in the fifth possible implementation manner of the second aspect, the uplink wavelength channel information is further The type of the uplink service that can be transmitted by the wavelength channel, wherein the ONU determines the target uplink wavelength channel of the ONU from the at least one upstream wavelength channel according to the type of the wavelength channel, including: the ONU according to the type of the wavelength channel and The type of the uplink service that can be transmitted, the destination uplink wavelength channel is determined from the at least one uplink wavelength channel, where the type of the target uplink wavelength channel matches the device type of the ONU, and the target uplink wavelength channel can transmit The type of uplink service matches the type of uplink service supported by the ONU.
结合第二方面的第一种至第五种可能的实现方式中的任一种可能的实 现方式, 在第二方面的第六种可能的实现方式中, 在该光网络单元 ONU接 收光线路终端 OLT发送的下行帧之前, 该方法还包括: 接收该 OLT根据该 上行帧发送的波长通道切换命令或波长调节命令, 以指示该 ONU进行上行 波长校准。 Combining any of the first to fifth possible implementations of the second aspect In a sixth possible implementation manner of the second aspect, before the optical network unit ONU receives the downlink frame sent by the optical line terminal OLT, the method further includes: receiving the wavelength channel sent by the OLT according to the uplink frame Switching commands or wavelength adjustment commands to instruct the ONU to perform upstream wavelength calibration.
第三方面, 提供了一种无源光网络中设备注册的方法, 该方法包括: 向 光线路终端 OLT发送注册响应, 该注册响应用于请求该 OLT分配标识, 并 且该注册响应携带用于指示光网络单元 ONU 的设备类型的字段; 接收该 OLT在根据该注册响应确定该 ONU的设备类型与允许注册设备的设备类型 匹配时发送的该 ONU的设备标识; 根据该设备标识进行信息的传输。  A third aspect provides a method for device registration in a passive optical network, the method comprising: sending a registration response to an optical line terminal OLT, the registration response is used to request the OLT to allocate an identifier, and the registration response is carried for indicating a field of the device type of the ONU of the optical network unit; receiving the device identifier of the ONU sent by the OLT when determining the device type of the ONU according to the registration response to match the device type of the device to be registered; and transmitting the information according to the device identifier.
结合第三方面,在第三方面的第一种可能的实现方式中,该方法还包括: 接收该 OLT发送的注册请求, 该注册请求携带用于指示允许注册设备的设 备类型的字段; 其中, 该向光线路终端 OLT发送注册响应, 包括: 确定该 ONU的设备类型与该允许注册设备的设备类型是否匹配;在确定该 ONU的 设备类型与该允许注册设备的设备类型匹配时, 向该 OLT发送该注册响应。  With reference to the third aspect, in a first possible implementation manner of the third aspect, the method further includes: receiving a registration request sent by the OLT, where the registration request carries a field for indicating a device type of the device to be registered; The sending the registration response to the optical line terminal OLT includes: determining whether the device type of the ONU matches the device type of the allowed registration device; and determining that the device type of the ONU matches the device type of the allowed registration device, to the OLT Send the registration response.
结合第三方面的第一种可能的实现方式,在第三方面的第二种可能的实 现方式中, 该接收该 OLT发送的注册请求, 包括: 接收该 OLT发送的包括 分配结构 Allocation structure字段的该注册请求, 该分配结构字段中的分配 单元标识 Alloc-ID字段的取值指示该允许注册设备的设备类型;或该分配结 构字段包括取值用于指示该允许注册设备的设备类型的字段。  With reference to the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, the receiving the registration request sent by the OLT includes: receiving, by the OLT, an allocation structure including an Allocation structure field The registration request, the value of the allocation unit identifier Alloc-ID field in the allocation structure field indicates the device type of the device to be registered, or the allocation structure field includes a field for indicating the device type of the device to be registered.
结合第三方面的第一种可能的实现方式,在第三方面的第三种可能的实 现方式中, 该接收该 OLT发送的注册请求, 包括: 接收该 OLT通过物理层 运行与维护 PLOAM消息发送的该注册请求, 该 PLOAM消息包括用于指示 该允许注册设备的设备类型的字段。  With reference to the first possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect, the receiving the registration request sent by the OLT includes: receiving the OLT to send and maintain a PLOAM message through a physical layer The registration request, the PLOAM message includes a field for indicating the device type of the device to be registered.
结合第三方面或第三方面的第一种至第三种可能的实现方式中的任一 种可能的实现方式, 在第三方面的第四种可能的实现方式中, 该注册响应携 带的用于指示该 ONU 的设备类型的字段包括无源光网络操作控制体 PON OC Body字段或无源光网络标识 PON ID字段, 该 PON OC Body字段和该 PON ID字段用于指示该 ONU所在的下行波长通道的类型, 以指示该 ONU 的设备类型。  With reference to the third aspect or any one of the first to third possible implementation manners of the third aspect, in a fourth possible implementation manner of the third aspect, The field indicating the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identification PON ID field, and the PON OC Body field and the PON ID field are used to indicate the downstream wavelength of the ONU. The type of channel to indicate the device type of the ONU.
结合第三方面或第三方面的第一种至第四种可能的实现方式中的任一 种可能的实现方式, 在第三方面的第五种可能的实现方式中, 在该接收该 OLT在根据该注册响应确定该 ONU的设备类型与允许注册设备的设备类型 匹配时发送的该 ONU的设备标识之后, 该方法还包括: 向该 OLT发送确认 信息, 该确认信息用于指示该 ONU接收到该设备标识。 With reference to the third aspect or any one of the first to fourth possible implementation manners of the third aspect, in a fifth possible implementation manner of the third aspect, After the OLT determines, according to the registration response, the device identifier of the ONU that is sent when the device type of the ONU matches the device type of the device to be registered, the method further includes: sending, to the OLT, confirmation information, where the confirmation information is used to indicate the ONU Received the device ID.
结合第三方面或第三方面的第一种至第五种可能的实现方式中的任一 种可能的实现方式,在第三方面的第六种可能的实现方式中,该方法还包括: 接收该 OLT在根据该注册响应确定该 ONU的设备类型与该允许注册设备的 设备类型不匹配时发送的波长通道切换命令, 以指示该 ONU重新注册。  With reference to the third aspect, or any one of the first to the fifth possible implementation manners of the third aspect, in a sixth possible implementation manner of the third aspect, the method further includes: receiving The wavelength channel switching command sent by the OLT when determining that the device type of the ONU does not match the device type of the allowed registration device according to the registration response, to indicate that the ONU re-registers.
第四方面, 提供了一种无源光网络中波长初始化的方法, 该方法包括: 确定波长通道信息,该波长通道信息包括下行波长通道信息和 /或上行波长通 道信息, 其中, 该下行波长通道信息包括光线路终端 OLT 当前釆用的下行 波长通道的类型, 该上行波长通道信息包括上行波长通道的类型; 向光网络 单元 ONU发送该波长通道信息。  A fourth aspect provides a method for wavelength initialization in a passive optical network, where the method includes: determining wavelength channel information, where the wavelength channel information includes downlink wavelength channel information and/or uplink wavelength channel information, where the downlink wavelength channel The information includes the type of the downlink wavelength channel currently used by the optical line terminal OLT, and the uplink wavelength channel information includes the type of the uplink wavelength channel; and the wavelength channel information is sent to the optical network unit ONU.
结合第四方面, 在第四方面的第一种可能的实现方式中, 在该波长通道 信息包括该下行波长通道信息时, 该向光网络单元 ONU发送该波长通道信 息, 包括: 向该 ONU发送下行物理同步块 PSBd或模板物理层运行与维护 Profile PLOAM消息, 其中, 该下行物理同步块承载该下行波长通道信息, 该 Profile PLOAM消息包括该下行波长通道信息。  With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, when the wavelength channel information includes the downlink wavelength channel information, the transmitting the wavelength channel information to the optical network unit ONU includes: sending the information to the ONU The downlink physical synchronization block PSBd or the template physical layer runs and maintains the Profile PLOAM message, where the downlink physical synchronization block carries the downlink wavelength channel information, and the Profile PLOAM message includes the downlink wavelength channel information.
结合第四方面的第一种可能的实现方式,在第四方面的第二种可能的实 现方式中, 该下行物理同步块包括的无源光网络操作控制体 PON OC Body 字段承载该下行波长通道信息; 或该下行物理同步块包括的无源光网络标识 PON ID字段 7 载该下行波长通道信息。  With reference to the first possible implementation manner of the fourth aspect, in a second possible implementation manner of the fourth aspect, the downlink physical synchronization block includes a passive optical network operation control body PON OC Body field carrying the downlink wavelength channel Information; or the downlink optical synchronization block includes a passive optical network identifier PON ID field 7 carrying the downlink wavelength channel information.
结合第四方面或第四方面的第一种或第二种可能的实现方式,在第四方 面的第三种可能的实现方式中, 该方法还包括: 接收该 ONU在该上行波长 通道上发送的注册响应, 该注册响应用于请求上行波长校准, 并且该注册响 应携带用于指示该 ONU 的设备类型的字段; 其中, 该向光网络单元 ONU 发送该波长通道信息, 包括: 根据该注册响应向该 ONU发送该上行波长通 道信息。  With reference to the fourth aspect or the first or second possible implementation manner of the fourth aspect, in a third possible implementation manner of the fourth aspect, the method further includes: receiving the ONU to send on the uplink wavelength channel a registration response, the registration response is used to request an upstream wavelength calibration, and the registration response carries a field for indicating a device type of the ONU; wherein the transmitting the wavelength channel information to the optical network unit ONU comprises: according to the registration response The uplink wavelength channel information is sent to the ONU.
结合第四方面的第三种可能的实现方式,在第四方面的第四种可能的实 现方式中, 该方法还包括: 向该 ONU发送注册请求, 该注册请求携带用于 指示允许注册设备的设备类型的字段; 其中, 该接收该 ONU在该上行波长 通道上向该 OLT发送的注册响应, 包括: 接收该 ONU在确定该 ONU的设 备类型与该允许注册设备的设备类型匹配时,在该上行波长通道上发送的该 注册响应。 With reference to the third possible implementation manner of the fourth aspect, in a fourth possible implementation manner of the fourth aspect, the method further includes: sending a registration request to the ONU, where the registration request is carried to indicate that the device is allowed to be registered a field of the device type, where the receiving the registration response sent by the ONU to the OLT on the uplink wavelength channel includes: receiving the ONU to determine the setting of the ONU The registration response sent on the upstream wavelength channel when the backup type matches the device type of the device that is allowed to register.
结合第四方面的第四种可能的实现方式,在第四方面的第五种可能的实 现方式中, 该向该 ONU发送注册请求, 包括: 向该 ONU发送包括分配结 构 Allocation structure字段的该注册请求, 该分配结构字段中的分配单元标 识 Alloc-ID字段的取值指示该允许注册设备的设备类型;或该分配结构字段 包括取值用于指示该允许注册设备的设备类型的字段。  With the fourth possible implementation of the fourth aspect, in a fifth possible implementation manner of the fourth aspect, the sending the registration request to the ONU includes: sending the registration including the allocation structure Allocation structure field to the ONU The request, the value of the allocation unit identifier Alloc-ID field in the allocation structure field indicates the device type of the device to be registered; or the allocation structure field includes a field for indicating the device type of the device to be registered.
结合第四方面的第四种可能的实现方式,在第四方面的第六种可能的实 现方式中,该向该 ONU发送注册请求,包括:通过物理层运行与维护 PLOAM 消息向该 ONU发送该注册请求, 该 PLOAM消息包括用于指示该允许注册 设备的设备类型的字段。  With the fourth possible implementation of the fourth aspect, in a sixth possible implementation manner of the fourth aspect, the sending the registration request to the ONU includes: sending, by the physical layer, the PLOAM message to the ONU A registration request, the PLOAM message includes a field for indicating the device type of the device to be registered.
结合第四方面的第三种至第六种可能的实现方式中的任一种可能的实 现方式, 在第四方面的第七种可能的实现方式中, 该注册响应携带的用于指 示该 ONU的设备类型的字段包括无源光网络操作控制体 PON OC Body字段 或无源光网络标识 PON ID字段,该 PON OC Body字段和该 PON ID字段用 于指示该 ONU所在的下行波长通道的类型, 以指示该 ONU的设备类型。  With reference to any one of the possible implementations of the third to sixth possible implementations of the fourth aspect, in a seventh possible implementation of the fourth aspect, the registration response is carried to indicate the ONU The field of the device type includes a passive optical network operation control body PON OC Body field or a passive optical network identification PON ID field, and the PON OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located. To indicate the device type of the ONU.
结合第四方面的第三种至第七种可能的实现方式中的任一种可能的实 现方式, 在第四方面的第八种可能的实现方式中, 在该根据该注册响应向该 ONU发送该上行波长通道信息之前, 该方法还包括: 4艮据该注册响应向该 ONU发送波长通道切换命令或波长调节命令,以指示该 ONU进行上行波长 校准。  With reference to any one of the possible implementations of the third to seventh possible implementations of the fourth aspect, in an eighth possible implementation manner of the fourth aspect, the sending, according to the registration response, is sent to the ONU Before the uplink wavelength channel information, the method further includes: sending a wavelength channel switching command or a wavelength adjustment command to the ONU according to the registration response, to instruct the ONU to perform uplink wavelength calibration.
结合第四方面或第四方面的第一种至第八种可能的实现方式中的任一 种可能的实现方式, 在第四方面的第九种可能的实现方式中, 该下行波长通 道信息还包括该下行波长通道能够传输的下行业务的类型; 该上行波长通道 信息还包括该上行波长通道能够传输的上行业务的类型。  With reference to the fourth aspect, or any one of the first to the eighth possible implementation manners of the fourth aspect, in the ninth possible implementation manner of the fourth aspect, the downlink wavelength channel information is further And including the type of the downlink service that the downlink wavelength channel can transmit; the uplink wavelength channel information further includes a type of the uplink service that can be transmitted by the uplink wavelength channel.
第五方面, 提供了一种无源光网络中设备注册的方法, 该方法包括: 接 收光网络单元 ONU发送的注册响应, 该注册响应用于请求光线路终端 OLT 分配标识, 并且该注册响应携带用于指示该 ONU的设备类型的字段; 根据 该注册响应确定该 ONU的设备类型与允许注册设备的设备类型是否匹配; 在确定该 ONU的设备类型与该允许注册设备的设备类型匹配时,向该 ONU 发送该 ONU的设备标识。 结合第五方面,在第五方面的第一种可能的实现方式中,该方法还包括: 向该 ONU发送注册请求, 该注册请求携带用于指示所示允许注册设备的设 备类型的字段; 其中, 该接收光网络单元 ONU发送的注册响应, 包括: 接 收该 ONU在确定该 ONU的设备类型与该允许注册设备的设备类型匹配时 发送的该注册响应。 A fifth aspect provides a method for registering a device in a passive optical network, the method comprising: receiving a registration response sent by an optical network unit ONU, where the registration response is used to request an optical line terminal OLT to allocate an identifier, and the registration response carries a field for indicating a device type of the ONU; determining, according to the registration response, whether a device type of the ONU matches a device type of the device to be registered; when determining that the device type of the ONU matches the device type of the device that allows registration, The ONU sends the device identifier of the ONU. With reference to the fifth aspect, in a first possible implementation manner of the fifth aspect, the method further includes: sending a registration request to the ONU, where the registration request carries a field for indicating a device type of the device that is allowed to be registered; The registration response sent by the receiving optical network unit ONU includes: receiving the registration response sent by the ONU when determining that the device type of the ONU matches the device type of the allowed registration device.
结合第五方面的第一种可能的实现方式,在第五方面的第二种可能的实 现方式中, 该向该 ONU发送注册请求, 包括: 向该 ONU发送包括分配结 构 Allocation structure字段的该注册请求, 该分配结构字段中的分配单元标 识 Alloc-ID字段的取值指示该允许注册设备的设备类型;或该分配结构字段 包括取值用于指示该允许注册设备的设备类型的字段。  With reference to the first possible implementation manner of the fifth aspect, in a second possible implementation manner of the fifth aspect, the sending the registration request to the ONU includes: sending the registration including the allocation structure Allocation structure field to the ONU The request, the value of the allocation unit identifier Alloc-ID field in the allocation structure field indicates the device type of the device to be registered; or the allocation structure field includes a field for indicating the device type of the device to be registered.
结合第五方面的第一种可能的实现方式,在第五方面的第三种可能的实 现方式中,该向该 ONU发送注册请求,包括:通过物理层运行与维护 PLOAM 消息向该 ONU发送该注册请求, 该 PLOAM消息包括用于指示该允许注册 设备的设备类型的字段。  In conjunction with the first possible implementation of the fifth aspect, in a third possible implementation manner of the fifth aspect, the sending the registration request to the ONU includes: sending, by the physical layer, the PLOAM message to the ONU A registration request, the PLOAM message includes a field for indicating the device type of the device to be registered.
结合第五方面或第五方面的第一种至第三种可能的实现方式中的任一 种可能的实现方式, 在第五方面的第四种可能的实现方式中, 该注册响应携 带的用于指示该 ONU 的设备类型的字段包括无源光网络操作控制体 PON OC Body字段或无源光网络标识 PON ID字段, 该 PON OC Body字段和该 PON ID字段用于指示该 ONU所在的下行波长通道的类型, 以指示该 ONU 的设备类型。  With reference to the fifth aspect, or any one of the first to the third possible implementation manners of the fifth aspect, in a fourth possible implementation manner of the fifth aspect, The field indicating the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identification PON ID field, and the PON OC Body field and the PON ID field are used to indicate the downstream wavelength of the ONU. The type of channel to indicate the device type of the ONU.
结合第五方面或第五方面的第一种至第四种可能的实现方式中的任一 种可能的实现方式,在第五方面的第五种可能的实现方式中,在该向该 ONU 发送该 ONU的设备标识之后, 该方法还包括: 接收该 ONU发送的确认信 息, 该确认信息用于指示该 ONU接收到该设备标识。  With reference to the fifth aspect, or any one of the first to the fourth possible implementation manners of the fifth aspect, in a fifth possible implementation manner of the fifth aspect, the sending to the ONU After the device identifier of the ONU, the method further includes: receiving the acknowledgement information sent by the ONU, where the acknowledgement information is used to indicate that the ONU receives the device identifier.
结合第五方面或第五方面的第一种至第五种可能的实现方式中的任一 种可能的实现方式,在第五方面的第六种可能的实现方式中,该方法还包括: 在确定该 ONU 的设备类型与该允许注册设备的设备类型不匹配时, 向该 ONU发送波长通道切换命令, 以指示该 ONU重新注册。  With reference to the fifth aspect, or any one of the first to the fifth possible implementation manners of the fifth aspect, in a sixth possible implementation manner of the fifth aspect, the method further includes: When it is determined that the device type of the ONU does not match the device type of the device to be registered, a wavelength channel switching command is sent to the ONU to instruct the ONU to re-register.
第六方面, 提供了一种光网络单元 ONU, 该 ONU包括: 接收模块, 用 于接收光线路终端 OLT发送的下行帧, 该下行帧携带用于指示当前波长通 道的下行波长通道信息的字段, 该下行波长通道信息包括该波长通道的类 型; 确定模块, 用于根据该波长通道的类型, 从至少一个下行波长通道中确 定该 ONU的目标下行波长通道,其中,该目标下行波长通道的类型与该 ONU 的设备类型相匹配。 A sixth aspect of the present invention provides an optical network unit ONU, where the ONU includes: a receiving module, configured to receive a downlink frame sent by an optical line terminal OLT, where the downlink frame carries a field for indicating downlink wavelength channel information of a current wavelength channel, The downlink wavelength channel information includes a class of the wavelength channel The determining module is configured to determine, according to the type of the wavelength channel, a target downlink wavelength channel of the ONU from the at least one downlink wavelength channel, where the type of the target downlink wavelength channel matches the device type of the ONU.
结合第六方面, 在第六方面的第一种可能的实现方式中, 该接收模块接 收的该下行帧具体为用于指示该下行波长通道信息的下行物理同步块 PSBd 或模板物理层运行与维护 Profile PLOAM消息。  With reference to the sixth aspect, in a first possible implementation manner of the sixth aspect, the downlink frame received by the receiving module is specifically a downlink physical synchronization block PSBd or a template physical layer operation and maintenance for indicating the downlink wavelength channel information. Profile PLOAM message.
结合第六方面的第一种可能的实现方式,在第六方面的第二种可能的实 现方式中, 该下行物理同步块包括的无源光网络操作控制体 PON OC Body 字段或无源光网络标识 PON ID字段用于指示该下行波长通道信息。  With reference to the first possible implementation manner of the sixth aspect, in a second possible implementation manner of the sixth aspect, the downlink physical synchronization block includes a passive optical network operation control body PON OC Body field or a passive optical network The identifier PON ID field is used to indicate the downlink wavelength channel information.
结合第六方面、 第六方面的第一种或第二种可能的实现方式, 在第六方 面的第三种可能的实现方式中, 该下行波长通道信息还包括该波长通道能够 传输的下行业务的类型; 其中, 该确定模块具体用于: 根据该波长通道的类 型和该能够传输的下行业务的类型,从该至少一个下行波长通道中确定该目 标下行波长通道, 其中, 该目标下行波长通道的类型与该 ONU的设备类型 相匹配, 并且该目标下行波长通道能够传输的下行业务的类型与该 ONU支 持的下行业务的类型相匹配。  With reference to the sixth aspect, the first or the second possible implementation manner of the sixth aspect, in the third possible implementation manner of the sixth aspect, the downlink wavelength channel information further includes a downlink service that can be transmitted by the wavelength channel The determining module is specifically configured to: determine the target downlink wavelength channel from the at least one downlink wavelength channel according to the type of the wavelength channel and the type of the downlink service that can be transmitted, where the target downlink wavelength channel The type of the device matches the device type of the ONU, and the type of the downlink service that the target downlink wavelength channel can transmit matches the type of the downlink service supported by the ONU.
第七方面, 提供了一种光网络单元 ONU, 该 ONU包括: 接收模块, 用 于接收光线路终端 OLT响应的下行帧, 该下行帧携带用于指示当前波长通 道的上行波长通道信息的字段, 该上行波长通道信息包括该波长通道的类 型; 确定模块, 用于根据该波长通道的类型, 从至少一个上行波长通道中确 定该 ONU的目标上行波长通道,其中,该目标上行波长通道的类型与该 ONU 的设备类型相匹配。  The seventh aspect provides an optical network unit ONU, where the ONU includes: a receiving module, configured to receive a downlink frame that is responded by the optical line terminal OLT, where the downlink frame carries a field for indicating uplink wavelength channel information of the current wavelength channel, The uplink wavelength channel information includes a type of the wavelength channel, and a determining module, configured to determine, according to the type of the wavelength channel, a target uplink wavelength channel of the ONU from the at least one uplink wavelength channel, where the type of the target uplink wavelength channel is The device type of the ONU matches.
结合第七方面, 在第七方面的第一种可能的实现方式中, 该接收模块还 用于: 接收该 OLT发送的注册请求, 该注册请求携带用于指示允许注册设 备的设备类型的字段; 该 ONU还包括发送模块, 用于向光线路终端 OLT发 送上行帧, 该上行帧携带用于指示该 ONU的设备类型的字段; 其中, 该确 定模块还用于: 确定该 ONU的设备类型与该允许注册设备的设备类型是否 匹配; 该发送模块具体用于: 在该确定模块确定该 ONU的设备类型与该允 许注册设备的设备类型匹配时, 向该 OLT发送该上行帧。  With reference to the seventh aspect, in a first possible implementation manner of the seventh aspect, the receiving module is further configured to: receive a registration request sent by the OLT, where the registration request carries a field for indicating a device type of the device to be registered; The ONU further includes a sending module, configured to send an uplink frame to the optical line terminal OLT, where the uplink frame carries a field for indicating a device type of the ONU, where the determining module is further configured to: determine a device type of the ONU and the The device type of the device is allowed to be matched. The sending module is specifically configured to: when the determining module determines that the device type of the ONU matches the device type of the device to be registered, send the uplink frame to the OLT.
结合第七方面的第一种可能的实现方式,在第七方面的第二种可能的实 现方式中,该接收模块具体用于:接收该 OLT发送的包括分配结构 Allocation structure字段的该注册请求, 该分配结构字段中的分配单元标识 Alloc-ID字 段的取值指示该允许注册设备的设备类型; 或该分配结构字段包括取值用于 指示该允许注册设备的设备类型的字段。 With reference to the first possible implementation manner of the seventh aspect, in a second possible implementation manner of the seventh aspect, the receiving module is specifically configured to: receive, by the OLT, an allocation structure, the Allocation The registration request of the structure field, the value of the allocation unit identifier Alloc-ID field in the allocation structure field indicates the device type of the device to be registered; or the allocation structure field includes a value indicating the device type of the device to be registered. Field.
结合第七方面的第一种可能的实现方式,在第七方面的第三种可能的实 现方式中,该接收模块具体用于:接收该 OLT通过物理层运行与维护 PLOAM 消息发送的该注册请求, 该 PLOAM消息包括用于指示该允许注册设备的设 备类型的字段。  In conjunction with the first possible implementation of the seventh aspect, in a third possible implementation manner of the seventh aspect, the receiving module is specifically configured to: receive the registration request sent by the OLT to run and maintain a PLOAM message through a physical layer The PLOAM message includes a field for indicating the device type of the device to be registered.
结合第七方面或第七方面的第一种至第三种可能的实现方式中的任一 种可能的实现方式, 在第七方面的第四种可能的实现方式中, 该发送模块发 送的该上行帧携带的用于指示该 ONU的设备类型的字段包括无源光网络操 作控制体 PON OC Body字段或无源光网络标识 PON ID字段, 该 PON OC Body字段和该 PON ID字段用于指示该 ONU所在的下行波长通道的类型, 以指示该 ONU的设备类型。  With reference to the seventh aspect, or any one of the first to the third possible implementation manners of the seventh aspect, in a fourth possible implementation manner of the seventh aspect, the sending module sends the The field carried by the uplink frame for indicating the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identification PON ID field, and the PON OC Body field and the PON ID field are used to indicate the Type of the downstream wavelength channel where the ONU is located to indicate the device type of the ONU.
结合第七方面或第七方面的第一种至第四种可能的实现方式中的任一 种可能的实现方式, 在第七方面的第五种可能的实现方式中, 该接收模块接 收的该上行波长通道信息还包括该波长通道能够传输的上行业务的类型; 其 中, 该确定模块具体用于: 根据该波长通道的类型和该能够传输的上行业务 的类型, 从该至少一个上行波长通道中确定该目标上行波长通道, 其中, 该 目标上行波长通道的类型与该 ONU的设备类型相匹配, 并且该目标上行波 长通道能够传输的上行业务的类型与该 ONU 支持的上行业务的类型相匹 配。  With reference to the seventh aspect, or any one of the first to the fourth possible implementation manners of the seventh aspect, in a fifth possible implementation manner of the seventh aspect, the receiving module receives the The uplink wavelength channel information further includes a type of uplink service that can be transmitted by the wavelength channel. The determining module is specifically configured to: according to the type of the wavelength channel and the type of the uplink service that can be transmitted, from the at least one uplink wavelength channel. Determining the target uplink wavelength channel, wherein the type of the target uplink wavelength channel matches the device type of the ONU, and the type of the uplink service that the target uplink wavelength channel can transmit matches the type of the uplink service supported by the ONU.
结合第七方面或第七方面的第一种至第五种可能的实现方式中的任一 种可能的实现方式, 在第七方面的第六种可能的实现方式中, 该接收模块还 用于: 在接收该 OLT发送的该下行帧之前, 接收该 OLT根据该上行帧发送 的波长通道切换命令或波长调节命令, 以指示该 ONU进行上行波长校准。  With reference to the seventh aspect, or any one of the first to the fifth possible implementation manners of the seventh aspect, in a sixth possible implementation manner of the seventh aspect, the receiving module is further used to Before receiving the downlink frame sent by the OLT, receiving a wavelength channel switching command or a wavelength adjustment command sent by the OLT according to the uplink frame, to instruct the ONU to perform uplink wavelength calibration.
第八方面, 提供了一种光网络单元 ONU, 该 ONU包括: 发送模块, 用 于向光线路终端 OLT发送注册响应,该注册响应用于请求该 OLT分配标识, 并且该注册响应携带用于指示该 ONU的设备类型的字段; 接收模块, 用于 接收该 OLT在根据该发送模块发送的该注册响应、确定该 ONU的设备类型 与允许注册设备的设备类型匹配时发送的该 ONU的设备标识; 处理模块, 用于根据该接收模块接收的该设备标识进行信息的传输。 结合第八方面, 在第八方面的第一种可能的实现方式中, 该接收模块还 用于: 接收该 OLT发送的注册请求, 该注册请求携带用于指示允许注册设 备的设备类型的字段; 其中, 该光网络单元还包括确定模块, 用于确定该 ONU 的设备类型与该允许注册设备的设备类型是否匹配; 该发送模块具体 用于: 在该确定模块确定该 ONU的设备类型与该允许注册设备的设备类型 匹配时, 向该 OLT发送该注册响应。 The eighth aspect provides an optical network unit ONU, where the ONU includes: a sending module, configured to send a registration response to the optical line terminal OLT, where the registration response is used to request the OLT to allocate an identifier, and the registration response carries a receiving device module, configured to receive, by the OLT, a device identifier of the ONU sent by the OLT according to the registration response sent by the sending module, determining that the device type of the ONU matches the device type of the device to be registered; And a processing module, configured to perform information transmission according to the device identifier received by the receiving module. With reference to the eighth aspect, in a first possible implementation manner of the eighth aspect, the receiving module is further configured to: receive a registration request sent by the OLT, where the registration request carries a field for indicating a device type of the device to be registered; The optical network unit further includes a determining module, configured to determine whether the device type of the ONU matches the device type of the device to be registered; the sending module is specifically configured to: determine, by the determining module, a device type of the ONU and the permission When the device type of the registered device matches, the registration response is sent to the OLT.
结合第八方面的第一种可能的实现方式,在第八方面的第二种可能的实 现方式中,该接收模块具体用于:接收该 OLT发送的包括分配结构 Allocation structure字段的该注册请求, 该分配结构字段中的分配单元标识 Alloc-ID字 段的取值指示该允许注册设备的设备类型; 或该分配结构字段包括取值用于 指示该允许注册设备的设备类型的字段。  With reference to the first possible implementation manner of the eighth aspect, in a second possible implementation manner of the eighth aspect, the receiving module is configured to: receive the registration request that is sent by the OLT, including an allocation structure, an Allocation structure field, The value of the allocation unit identifier Alloc-ID field in the allocation structure field indicates the device type of the device to be registered; or the allocation structure field includes a field for indicating the device type of the device to be registered.
结合第八方面的第一种可能的实现方式,在第八方面的第三种可能的实 现方式中,该接收模块具体用于:接收该 OLT通过物理层运行与维护 PLOAM 消息发送的该注册请求, 该 PLOAM消息包括用于指示该允许注册设备的设 备类型的字段。  In conjunction with the first possible implementation of the eighth aspect, in a third possible implementation manner of the eighth aspect, the receiving module is specifically configured to: receive the registration request sent by the OLT to run and maintain a PLOAM message through a physical layer The PLOAM message includes a field for indicating the device type of the device to be registered.
结合第八方面或第八方面的第一种至第三种可能的实现方式中的任一 种可能的实现方式, 在第八方面的第四种可能的实现方式中, 该发送模块发 送的该注册响应携带的用于指示该 ONU的设备类型的字段包括无源光网络 操作控制体 PON OC Body字段或无源光网络标识 PON ID字段,该 PON OC Body字段和该 PON ID字段用于指示该 ONU所在的下行波长通道的类型, 以指示该 ONU的设备类型。  With reference to the eighth aspect, or any one of the first to the third possible implementation manners of the eighth aspect, in a fourth possible implementation manner of the eighth aspect, the sending module sends the The field carried in the registration response for indicating the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identification PON ID field, and the PON OC Body field and the PON ID field are used to indicate the Type of the downstream wavelength channel where the ONU is located to indicate the device type of the ONU.
结合第八方面或第八方面的第一种至第四种可能的实现方式中的任一 种可能的实现方式, 在第八方面的第五种可能的实现方式中, 该发送模块还 用于:在该接收模块接收该 ONU的设备标识之后,向该 OLT发送确认信息, 该确认信息用于指示该 ONU接收到该设备标识。  With reference to the eighth aspect, or any one of the first to the fourth possible implementation manners of the eighth aspect, in a fifth possible implementation manner of the eighth aspect, the sending module is further used to After the receiving module receives the device identifier of the ONU, it sends an acknowledgement message to the OLT, where the acknowledgement information is used to indicate that the ONU receives the device identifier.
结合第八方面或第八方面的第一种至第五种可能的实现方式中的任一 种可能的实现方式, 在第八方面的第六种可能的实现方式中, 该接收模块还 用于:接收该 OLT在根据该注册响应确定该 ONU的设备类型与该允许注册 设备的设备类型不匹配时发送的波长通道切换命令, 以指示该 ONU重新注 册。  With reference to the eighth aspect, or any one of the first to the fifth possible implementation manners of the eighth aspect, in a sixth possible implementation manner of the eighth aspect, the receiving module is further used Receiving, by the OLT, a wavelength channel switching command sent when the device type of the ONU does not match the device type of the allowed registration device according to the registration response, to indicate that the ONU re-registers.
第九方面, 提供了一种光线路终端 OLT, 该 OLT包括: 确定模块, 用 于确定波长通道信息,该波长通道信息包括下行波长通道信息和 /或上行波长 通道信息, 其中, 该下行波长通道信息包括该 OLT 当前釆用的下行波长通 道的类型, 该上行波长通道信息包括上行波长通道的类型; 发送模块, 用于 向光网络单元 ONU发送该确定模块确定的该波长通道信息。 In a ninth aspect, an optical line terminal OLT is provided, where the OLT includes: a determining module, The wavelength channel information includes a downlink wavelength channel information and/or an uplink wavelength channel information, where the downlink wavelength channel information includes a type of a downlink wavelength channel currently used by the OLT, and the uplink wavelength channel information includes an uplink. The type of the wavelength channel; the sending module, configured to send the wavelength channel information determined by the determining module to the optical network unit ONU.
结合第九方面, 在第九方面的第一种可能的实现方式中, 在该确定模块 确定该波长通道信息包括该下行波长通道信息时, 该发送模块具体用于: 向 该 ONU发送下行物理同步块 PSBd或模板物理层运行与维护 Profile PLOAM 消息,其中,该下行物理同步块承载该下行波长通道信息,该 Profile PLOAM 消息包括该下行波长通道信息。  With reference to the ninth aspect, in a first possible implementation manner of the ninth aspect, when the determining module determines that the wavelength channel information includes the downlink wavelength channel information, the sending module is specifically configured to: send downlink physical synchronization to the ONU The block PSBd or the template physical layer runs and maintains a Profile PLOAM message, where the downlink physical synchronization block carries the downlink wavelength channel information, and the Profile PLOAM message includes the downlink wavelength channel information.
结合第九方面的第一种可能的实现方式,在第九方面的第二种可能的实 现方式中, 该下行物理同步块包括的无源光网络操作控制体 PON OC Body 字段承载该下行波长通道信息; 或该下行物理同步块包括的无源光网络标识 PON ID字段 7 载该下行波长通道信息。  With reference to the first possible implementation manner of the ninth aspect, in a second possible implementation manner of the ninth aspect, the PON OC Body field of the passive optical network operation control body included in the downlink physical synchronization block carries the downlink wavelength channel Information; or the downlink optical synchronization block includes a passive optical network identifier PON ID field 7 carrying the downlink wavelength channel information.
结合第九方面或第九方面的第一种或第二种可能的实现方式,在第九方 面的第三种可能的实现方式中, 该光线路终端还包括接收模块, 用于接收该 ONU在该上行波长通道上发送的注册响应, 该注册响应用于请求上行波长 校准, 并且该注册响应携带用于指示该 ONU的设备类型的字段; 其中, 该 发送模块具体用于: 根据该注册响应向该 ONU发送该上行波长通道信息。  In conjunction with the ninth aspect or the first or second possible implementation manner of the ninth aspect, in a third possible implementation manner of the ninth aspect, the optical line terminal further includes a receiving module, configured to receive the ONU a registration response sent on the uplink wavelength channel, the registration response is used to request an uplink wavelength calibration, and the registration response carries a field for indicating a device type of the ONU; wherein the sending module is specifically configured to: according to the registration response The ONU sends the uplink wavelength channel information.
结合第九方面的第三种可能的实现方式,在第九方面的第四种可能的实 现方式中, 该发送模块还用于: 向该 ONU发送注册请求, 该注册请求携带 用于指示允许注册设备的设备类型的字段; 其中, 该接收模块具体用于: 接 收该 ONU在确定该 ONU的设备类型与该允许注册设备的设备类型匹配时, 在该上行波长通道上发送的该注册响应。  In conjunction with the third possible implementation of the ninth aspect, in a fourth possible implementation manner of the ninth aspect, the sending module is further configured to: send a registration request to the ONU, where the registration request is carried to indicate that registration is permitted A field of the device type of the device. The receiving module is specifically configured to: receive the registration response sent by the ONU on the uplink wavelength channel when determining that the device type of the ONU matches the device type of the allowed device.
结合第九方面的第四种可能的实现方式,在第九方面的第五种可能的实 现方式中, 该发送模块具体用于: 向该 ONU发送包括分配结构 Allocation structure字段的该注册请求, 该分配结构字段中的分配单元标识 Alloc-ID字 段的取值指示该允许注册设备的设备类型; 或该分配结构字段包括取值用于 指示该允许注册设备的设备类型的字段。  With reference to the fourth possible implementation manner of the ninth aspect, in a fifth possible implementation manner of the ninth aspect, the sending module is specifically configured to: send the registration request that includes an allocation structure Allocation structure field to the ONU, where The allocation unit identifier in the allocation structure field indicates that the value of the Alloc-ID field indicates the device type of the device to be registered; or the allocation structure field includes a field for indicating the device type of the device to be registered.
结合第九方面的第四种可能的实现方式,在第九方面的第六种可能的实 现方式中, 该发送模块具体用于: 通过物理层运行与维护 PLOAM消息向该 ONU发送该注册请求, 该 PLOAM消息包括用于指示该允许注册设备的设 备类型的字段。 With reference to the fourth possible implementation manner of the ninth aspect, in a sixth possible implementation manner of the ninth aspect, the sending module is specifically configured to: send the registration request to the ONU by using a physical layer to run and maintain a PLOAM message, The PLOAM message includes a device for indicating the permission to register the device The type of the field.
结合第九方面的第三种至第六种可能的实现方式中的任一种可能的实 现方式, 在第九方面的第七种可能的实现方式中, 该接收模块接收的该注册 响应携带的用于指示该 ONU的设备类型的字段包括无源光网络操作控制体 PON OC Body字段或无源光网络标识 PON ID字段, 该 PON OC Body字段 和该 PON ID字段用于指示该 ONU所在的下行波长通道的类型, 以指示该 ONU的设备类型。  With reference to any one of the possible implementations of the third to sixth possible implementations of the ninth aspect, in a seventh possible implementation manner of the ninth aspect, The field for indicating the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identification PON ID field, and the PON OC Body field and the PON ID field are used to indicate the downlink where the ONU is located. The type of wavelength channel to indicate the device type of the ONU.
结合第九方面的第三种至第七种可能的实现方式中的任一种可能的实 现方式, 在第九方面的第八种可能的实现方式中, 该发送模块还用于: 在根 据该注册响应向该 ONU发送该上行波长通道信息之前, 4艮据该注册响应向 该 ONU发送波长通道切换命令或波长调节命令, 以指示该 ONU进行上行 波长校准。  In conjunction with any one of the possible implementations of the third to seventh possible implementations of the ninth aspect, in the eighth possible implementation of the ninth aspect, the transmitting module is further configured to: Before the registration response sends the uplink wavelength channel information to the ONU, the wavelength channel switching command or the wavelength adjustment command is sent to the ONU according to the registration response to instruct the ONU to perform uplink wavelength calibration.
结合第九方面或第九方面的第一种至第八种可能的实现方式中的任一 种可能的实现方式, 在第九方面的第九种可能的实现方式中, 该确定模块确 定的该下行波长通道信息还包括该下行波长通道能够传输的下行业务的类 型; 该确定模块确定的该上行波长通道信息还包括该上行波长通道能够传输 的上行业务的类型。  With reference to the ninth aspect, or any one of the first to the eighth possible implementation manners of the ninth aspect, in the ninth possible implementation manner of the ninth aspect, the determining module determines the The downlink wavelength channel information further includes a type of downlink service that can be transmitted by the downlink wavelength channel. The uplink wavelength channel information determined by the determining module further includes a type of uplink service that can be transmitted by the uplink wavelength channel.
第十方面, 提供了一种光线路终端 OLT, 该 OLT包括: 接收模块, 用 于接收光网络单元 ONU发送的注册响应,该注册响应用于请求该 OLT分配 标识, 并且该注册响应携带用于指示该 ONU的设备类型的字段; 确定模块, 用于根据该接收模块接收的该注册响应确定该 ONU的设备类型与允许注册 设备的设备类型是否匹配; 发送模块, 用于在该确定模块确定该 ONU的设 备类型与该允许注册设备的设备类型匹配时, 向该 ONU发送该 ONU的设 备标识。  The tenth aspect provides an optical line terminal OLT, where the OLT includes: a receiving module, configured to receive a registration response sent by the optical network unit ONU, where the registration response is used to request the OLT to allocate an identifier, and the registration response is carried a field indicating a device type of the ONU; a determining module, configured to determine, according to the registration response received by the receiving module, whether a device type of the ONU matches a device type of the device to be registered; and a sending module, configured to determine, by the determining module When the device type of the ONU matches the device type of the device to be registered, the device identifier of the ONU is sent to the ONU.
结合第十方面, 在第十方面的第一种可能的实现方式中, 该发送模块还 用于: 向该 ONU发送注册请求, 该注册请求携带用于指示所示允许注册设 备的设备类型的字段; 其中, 该接收模块具体用于: 接收该 ONU在确定该 ONU的设备类型与该允许注册设备的设备类型匹配时发送的该注册响应。  With reference to the tenth aspect, in a first possible implementation manner of the tenth aspect, the sending module is further configured to: send a registration request to the ONU, where the registration request carries a field for indicating a device type of the device that is allowed to be registered The receiving module is specifically configured to: receive the registration response sent by the ONU when determining that the device type of the ONU matches the device type of the allowed registration device.
结合第十方面的第一种可能的实现方式,在第十方面的第二种可能的实 现方式中, 该发送模块具体用于: 向该 ONU发送包括分配结构 Allocation structure字段的该注册请求, 该分配结构字段中的分配单元标识 Alloc-ID字 段的取值指示该允许注册设备的设备类型; 或该分配结构字段包括取值用于 指示该允许注册设备的设备类型的字段。 With the first possible implementation of the tenth aspect, in a second possible implementation manner of the tenth aspect, the sending module is specifically configured to: send the registration request that includes an allocation structure Allocation structure field to the ONU, where Assignment unit ID in the allocation structure field identifies the Alloc-ID word The value of the segment indicates the device type of the device to be registered; or the allocation structure field includes a field for indicating the device type of the device to be registered.
结合第十方面的第一种可能的实现方式,在第十方面的第三种可能的实 现方式中, 该发送模块具体用于: 通过物理层运行与维护 PLOAM消息向该 ONU发送该注册请求, 该 PLOAM消息包括用于指示该允许注册设备的设 备类型的字段。  With the first possible implementation of the tenth aspect, in a third possible implementation manner of the tenth aspect, the sending module is specifically configured to: send, by the physical layer, a PLOAM message to the ONU to send the registration request, The PLOAM message includes a field for indicating the type of device that is allowed to register the device.
结合第十方面或第十方面的第一种至第三种可能的实现方式中的任一 种可能的实现方式, 在第十方面的第四种可能的实现方式中, 该接收模块接 收的该注册响应携带的用于指示该 ONU的设备类型的字段包括无源光网络 操作控制体 PON OC Body字段或无源光网络标识 PON ID字段,该 PON OC Body字段和该 PON ID字段用于指示该 ONU所在的下行波长通道的类型, 以指示该 ONU的设备类型。  With reference to the tenth aspect, or any one of the first to the third possible implementation manners of the tenth aspect, in a fourth possible implementation manner of the tenth aspect, the receiving module receives the The field carried in the registration response for indicating the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identification PON ID field, and the PON OC Body field and the PON ID field are used to indicate the Type of the downstream wavelength channel where the ONU is located to indicate the device type of the ONU.
结合第十方面或第十方面的第一种至第四种可能的实现方式中的任一 种可能的实现方式, 在第十方面的第五种可能的实现方式中, 该接收模块还 用于: 在该发送模块向该 ONU发送该 ONU的设备标识之后, 接收该 ONU 发送的确认信息, 该确认信息用于指示该 ONU接收到该设备标识。  With reference to the tenth aspect, or any one of the first to the fourth possible implementation manners of the tenth aspect, in a fifth possible implementation manner of the tenth aspect, the receiving module is further used to After the sending module sends the device identifier of the ONU to the ONU, the acknowledgment information sent by the ONU is received, and the acknowledgment information is used to indicate that the ONU receives the device identifier.
结合第十方面或第十方面的第一种至第五种可能的实现方式中的任一 种可能的实现方式, 在第十方面的第六种可能的实现方式中, 该发送模块还 用于: 在该确定模块确定该 ONU的设备类型与该允许注册设备的设备类型 不匹配时, 向该 ONU发送波长通道切换命令, 以指示该 ONU重新注册。  With reference to the tenth aspect, or any one of the first to the fifth possible implementation manners of the tenth aspect, in a sixth possible implementation manner of the tenth aspect, the sending module is further used to And: when the determining module determines that the device type of the ONU does not match the device type of the allowed registered device, sending a wavelength channel switching command to the ONU to instruct the ONU to re-register.
基于上述技术方案, 本发明实施例的无源光网络中波长初始化和设备注 册的方法和装置, 通过在光线路终端与光网络单元之间的信息交互中, 携带 指示通道类型或设备类型的信息,从而能够在多个无源光网络***共存情况 下识别通道或设备所属的无源光网络***, 由此能够正确地进行波长初始化 和设备注册, 并能够避免对其它设备的干扰。 附图说明  Based on the foregoing technical solution, the method and apparatus for wavelength initialization and device registration in a passive optical network according to an embodiment of the present invention carry information indicating a channel type or a device type in information interaction between an optical line terminal and an optical network unit. Therefore, the passive optical network system to which the channel or the device belongs can be identified in the case where a plurality of passive optical network systems coexist, thereby enabling wavelength initialization and device registration to be correctly performed, and interference with other devices can be avoided. DRAWINGS
为了更清楚地说明本发明实施例的技术方案, 下面将对本发明实施例中 所需要使用的附图作简单地介绍, 显而易见地, 下面所描述的附图仅仅是本 发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的 前提下, 还可以根据这些附图获得其他的附图。 图 1是本发明实施例的一种应用场景的示意图; In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings to be used in the embodiments of the present invention will be briefly described below. It is obvious that the drawings described below are only some embodiments of the present invention, Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work. FIG. 1 is a schematic diagram of an application scenario according to an embodiment of the present invention;
图 2是本发明实施例提供的波长初始化的方法的示意性流程图; 图 3是本发明实施例提供的下行帧的帧结构示意图;  2 is a schematic flowchart of a method for wavelength initialization according to an embodiment of the present invention; FIG. 3 is a schematic diagram of a frame structure of a downlink frame according to an embodiment of the present invention;
图 4a是本发明实施例提供的下行帧的帧结构的另一示意图;  4a is another schematic diagram of a frame structure of a downlink frame according to an embodiment of the present invention;
图 4b是本发明实施例提供的下行帧的帧结构的另一示意图; 图 5是本发明另一实施例提供的波长初始化的方法的示意性流程图; 图 6 是本发明另一实施例提供的波长初始化的方法的另一示意性流程 图;  FIG. 4 is a schematic diagram of a frame structure of a downlink frame according to an embodiment of the present invention; FIG. 5 is a schematic flowchart of a method for wavelength initialization according to another embodiment of the present invention; FIG. 6 is another embodiment of the present invention. Another schematic flow chart of the method of wavelength initialization;
图 7是本发明实施例提供的分配结构字段的示意图;  7 is a schematic diagram of an allocation structure field provided by an embodiment of the present invention;
图 8 是本发明另一实施例提供的波长初始化的方法的再一示意性流程 图;  FIG. 8 is still another schematic flowchart of a method for wavelength initialization according to another embodiment of the present invention; FIG.
图 9是本发明实施例提供的设备注册的方法的示意性流程图;  FIG. 9 is a schematic flowchart of a method for registering a device according to an embodiment of the present invention;
图 10是本发明实施例提供的设备注册的方法的另一示意性流程图; 图 11是本发明实施例提供的设备注册的方法的再一示意性流程图; 图 12是本发明实施例提供的设备注册的方法的再一示意性流程图; 图 13是本发明再一实施例提供的波长初始化的方法的示意性流程图; 图 14是本发明再一实施例提供的波长初始化的方法的另一示意性流程 图;  FIG. 10 is another schematic flowchart of a method for registering a device according to an embodiment of the present invention; FIG. 11 is a schematic flowchart of a method for registering a device according to an embodiment of the present invention; FIG. 13 is a schematic flowchart of a method for wavelength initialization according to still another embodiment of the present invention; FIG. 14 is a schematic diagram of a wavelength initialization method according to still another embodiment of the present invention; Another schematic flow chart;
图 15是本发明再一实施例提供的波长初始化的方法的再一示意性流程 图;  FIG. 15 is still another schematic flowchart of a method for wavelength initialization according to still another embodiment of the present invention; FIG.
图 16是本发明再一实施例提供的波长初始化的方法的再一示意性流程 图;  FIG. 16 is still another schematic flowchart of a method for wavelength initialization according to still another embodiment of the present invention; FIG.
图 17是本发明另一实施例提供的设备注册的方法的示意性流程图; 图 18是本发明另一实施例提供的设备注册的方法的另一示意性流程图; 图 19是本发明另一实施例提供的设备注册的方法的再一示意性流程图; 图 20是本发明另一实施例提供的设备注册的方法的再一示意性流程图; 图 21是本发明实施例提供的一种波长初始化方法的交互示意图; 图 22是本发明实施例提供的光网络单元的示意性框图;  FIG. 17 is a schematic flowchart of a method for registering a device according to another embodiment of the present invention; FIG. 18 is another schematic flowchart of a method for registering a device according to another embodiment of the present invention; FIG. 20 is still another schematic flowchart of a method for registering a device according to another embodiment of the present invention; FIG. 21 is a schematic flowchart of a method for registering a device according to another embodiment of the present invention; FIG. 22 is a schematic block diagram of an optical network unit according to an embodiment of the present invention;
图 23是本发明实施例提供的光网络单元的另一示意性框图;  FIG. 23 is another schematic block diagram of an optical network unit according to an embodiment of the present invention;
图 24是本发明实施例提供的光网络单元的再一示意性框图; 图 25是本发明实施例提供的光网络单元的再一示意性框图; 图 26是本发明实施例提供的光线路终端的示意性框图; FIG. 24 is still another schematic block diagram of an optical network unit according to an embodiment of the present invention; FIG. FIG. 25 is a schematic block diagram of an optical network unit according to an embodiment of the present invention; FIG. 26 is a schematic block diagram of an optical line terminal according to an embodiment of the present invention;
图 27是本发明实施例提供的光线路终端的另一示意性框图;  FIG. 27 is another schematic block diagram of an optical line terminal according to an embodiment of the present invention; FIG.
图 28是本发明实施例提供的光线路终端的再一示意性框图;  28 is still another schematic block diagram of an optical line terminal according to an embodiment of the present invention;
图 29是本发明另一实施例提供的光网络单元的示意性框图;  FIG. 29 is a schematic block diagram of an optical network unit according to another embodiment of the present invention; FIG.
图 30是本发明另一实施例提供的光网络单元的另一示意性框图; 图 31是本发明另一实施例提供的光网络单元的再一示意性框图; 图 32是本发明另一实施例提供的光线路终端的示意性框图;  FIG. 30 is another schematic block diagram of an optical network unit according to another embodiment of the present invention; FIG. 31 is another schematic block diagram of an optical network unit according to another embodiment of the present invention; A schematic block diagram of an optical line termination provided by the example;
图 33是本发明另一实施例提供的光线路终端的另一示意性框图。 具体实施方式  FIG. 33 is another schematic block diagram of an optical line terminal according to another embodiment of the present invention. detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例是本发明的一部分实施例, 而不 是全部实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做出创 造性劳动的前提下所获得的所有其他实施例, 都应属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without making creative labor are within the scope of the present invention.
图 1示出了根据本发明实施例的一种应用场景的示意图。 如图 1所示, 该 NG-PON2***可以包括一个或多个 NG-PON2 OLT,例如 m个 NG-PON2 OLT, 以及一个或多个 NG-PON2 ONU, 例如 n个 NG-PON2 ONU, 其中 m、 n为自然数。该一个或多个 NG-PON2 OLT通过波长复用器( Wavelength Mux, 简称为 "WM" ) /波长解复用器以及分光器(Optical Splitter, 简称为 "OS" ) 与该一个或多个 NG-P0N2 0NU光纤连接。该 NG-P0N2***为 TWDM-P0N ***和 PtP WDM-PON***共存的***, 因而, 该 NG-P0N2 0LT可以是 TWDM-PON 0LT,也可以是 PtP WDM-PON OLT;类似地,该 NG-P0N2 ONU 可以是 TWDM-PON ONU, 也可以是 PtP WDM-PON ONU。  FIG. 1 shows a schematic diagram of an application scenario according to an embodiment of the present invention. As shown in FIG. 1, the NG-PON2 system may include one or more NG-PON2 OLTs, for example, m NG-PON2 OLTs, and one or more NG-PON2 ONUs, for example, n NG-PON2 ONUs, where m , n is a natural number. The one or more NG-PON2 OLTs pass through a wavelength multiplexer (Wavelength Mux, simply referred to as "WM") / wavelength demultiplexer and an optical splitter (Optical Splitter, referred to as "OS") and the one or more NGs -P0N2 0NU fiber connection. The NG-P0N2 system is a system in which a TWDM-P0N system and a PtP WDM-PON system coexist. Therefore, the NG-P0N2 0LT may be a TWDM-PON 0LT or a PtP WDM-PON OLT; similarly, the NG-P0N2 The ONU can be a TWDM-PON ONU or a PtP WDM-PON ONU.
在该 NG-PON2的网络构架下,每个 PtP WDM-PON ONU独占一个波长 通道, 并可以支持连续地接收和发送光信号; 每个 PtP WDM-PON OLT可以 具有一个或多个收发器, 并可以同时支持多个不同的波长通道, 以将客户端 数据映射到特定的波长通道中,并且多个波长通道可以共享一根光纤。其中, 每个 PtP WDM-PON OLT与 PtP WDM-PON ONU之间都通过一个波长对进 行通信, 即处于特定上行波长通道或下行波长通道的 PtP WDM-PON ONU 可以与处于相同波长通道的 PtP WDM-PON OLT进行通信。 应理解, 在本发明实施例中, 数据或承载数据的光信号从 OLT传输到 ONT/ONU的传输方向称为下行方向, 相应地, OLT向 ONT/ONU发送光信 号的通道也称为下行波长通道; 相应地, 用于承载 OLT向 ONT/ONU发送 的信息或数据的载体也可以称为下行帧; 类似地, 数据或承载数据的光信号 从 ONT/ONU传输到 OLT的传输方向称为上行方向; 相应地, ONT/ONU向 OLT发送光信号的通道也称为上行波长通道; 相应地, 用于 7 载 ONT/ONU 向 OLT发送的信息或数据的载体也可以称为上行帧。 Under the network architecture of the NG-PON2, each PtP WDM-PON ONU monopolizes one wavelength channel and can support continuous reception and transmission of optical signals; each PtP WDM-PON OLT can have one or more transceivers, and Multiple different wavelength channels can be supported simultaneously to map client data into specific wavelength channels, and multiple wavelength channels can share one fiber. Each PtP WDM-PON OLT and the PtP WDM-PON ONU communicate with each other through a wavelength pair, that is, the PtP WDM-PON ONU in a specific upstream wavelength channel or a downstream wavelength channel can be connected to the PtP WDM in the same wavelength channel. - PON OLT for communication. It should be understood that, in the embodiment of the present invention, the transmission direction of the data or the optical signal carrying the data from the OLT to the ONT/ONU is referred to as a downlink direction, and accordingly, the channel through which the OLT transmits the optical signal to the ONT/ONU is also referred to as a downlink wavelength. Correspondingly, the bearer for carrying the information or data sent by the OLT to the ONT/ONU may also be referred to as a downlink frame; similarly, the transmission direction of the data or the optical signal carrying the data from the ONT/ONU to the OLT is called uplink. Directions; Correspondingly, the channel through which the ONT/ONU sends optical signals to the OLT is also referred to as an upstream wavelength channel; accordingly, the carrier for information or data transmitted by the 7-load ONT/ONU to the OLT may also be referred to as an upstream frame.
还应理解, 本发明实施例仅以 NG-PON2 ***为例进行说明, 即以 TWDM-PON***和 PtP WDM-PON***共存的情况为例进行说明, 但本发 明并不限于此,根据本发明实施例的波长初始化和设备注册的方法及其装置 还可以应用于其它多个无源光网络***共存的情况。 此外, 为了描述方便, 图 2示出了根据本发明实施例的波长初始化的方法 100 的示意性流程 图, 该方法 100可以由 ONT和 /或 ONU执行, 例如, 该方法 100 由 PtP WDM-PON ONU执行。 如图 2所示, 该方法 100包括:  It should be understood that the embodiment of the present invention is only described by taking the NG-PON2 system as an example, that is, the case where the TWDM-PON system and the PtP WDM-PON system coexist is taken as an example, but the present invention is not limited thereto, according to the present invention. The method of wavelength initialization and device registration of the embodiment and the apparatus thereof can also be applied to the case where other multiple passive optical network systems coexist. Moreover, for ease of description, FIG. 2 shows a schematic flow diagram of a method 100 of wavelength initialization, which may be performed by an ONT and/or an ONU, for example, the method 100 by PtP WDM-PON, in accordance with an embodiment of the present invention. ONU execution. As shown in FIG. 2, the method 100 includes:
S110, 接收光线路终端 OLT发送的下行帧, 该下行帧携带用于指示当 前波长通道的下行波长通道信息的字段, 该下行波长通道信息包括该波长通 道的类型;  S110: Receive a downlink frame sent by the optical line terminal OLT, where the downlink frame carries a field for indicating downlink wavelength channel information of the current wavelength channel, where the downlink wavelength channel information includes a type of the wavelength channel;
S120, 根据该波长通道的类型, 从至少一个下行波长通道中确定 ONU 的目标下行波长通道, 其中, 每个波长通道与一个下行波长通道——对应, 与该目标下行波长通道相对应的波长通道的类型与该 ONU的设备类型相匹 配。  S120. Determine, according to the type of the wavelength channel, a target downlink wavelength channel of the ONU from the at least one downlink wavelength channel, where each wavelength channel corresponds to a downlink wavelength channel, and the wavelength channel corresponding to the target downlink wavelength channel The type matches the device type of the ONU.
其中, 根据该波长通道的类型, 从至少一个下行波长通道中确定 ONU 的目标下行波长通道, 具体包括:  The target downlink wavelength channel of the ONU is determined from the at least one downlink wavelength channel according to the type of the wavelength channel, and specifically includes:
该 ONU 4艮据该波长通道的类型, 确定至少一个波长通道, 该至少一个 波长通道的类型与该 ONU的设备类型相匹配;  The ONU 4 determines at least one wavelength channel according to the type of the wavelength channel, and the type of the at least one wavelength channel matches the device type of the ONU;
该 ONU从与该至少一个波长通道对应的至少一个下行波长通道中, 确 定该 ONU的目标下行波长通道。  The ONU determines a target downstream wavelength channel of the ONU from at least one downstream wavelength channel corresponding to the at least one wavelength channel.
即在本发明实施例中, 光网络单元 ONU通过在下行波长通道上接收光 线路终端 OLT发送的下行帧, 能够确定该下行帧中携带的字段所指示的该 下行波长通道的类型, 从而该 ONU 能够根据该下行波长通道的类型与该 ONU自身的设备类型, 在能够接收到 OLT发送的下行帧的一个或多个下行 波长通道中, 确定与该 ONU的设备类型相匹配的目标下行波长通道及其相 应的目标下行波长, 从而实现 ONU的下行波长的初始化。 单元接收光线路终端所发送的下行帧中, 携带下行波长通道的类型信息, 从 而能够在多个无源光网络***共存情况下识别下行波长通道的类型, 由此能 够将类型相匹配的下行波长通道的波长确定为 ONU的目标下行波长, 从而 能够正确地进行波长初始化, 并能够避免对其它设备的干扰。 That is, in the embodiment of the present invention, the ONU of the optical network unit receives the downlink frame sent by the optical line terminal OLT on the downlink wavelength channel, and can determine the type of the downlink wavelength channel indicated by the field carried in the downlink frame, so that the ONU According to the type of the downstream wavelength channel and the The ONU's own device type determines the target downstream wavelength channel and its corresponding target downstream wavelength that match the device type of the ONU in one or more downstream wavelength channels that can receive the downlink frame sent by the OLT, thereby implementing the ONU. Initialization of the downstream wavelength. The unit receives the type information of the downlink wavelength channel in the downlink frame sent by the optical line terminal, so that the type of the downlink wavelength channel can be identified in the case where multiple passive optical network systems coexist, thereby being able to match the type of the downlink wavelength The wavelength of the channel is determined as the target downstream wavelength of the ONU, so that wavelength initialization can be performed correctly, and interference with other devices can be avoided.
具体而言,在 S110中, ONU可以首先确定初始的下行波长通道,例如, ONU可以将能够接收到光信号的下行波长通道作为初始的下行波长通道, 以进一步确定能够接收到 OLT发送的下行帧的一个或多个下行波长通道。  Specifically, in S110, the ONU may first determine an initial downlink wavelength channel. For example, the ONU may use a downlink wavelength channel capable of receiving the optical signal as an initial downlink wavelength channel to further determine that the downlink frame that can be received by the OLT is received. One or more downstream wavelength channels.
例如, PtPWDM-PON ONU上电初始化后, 可以关闭业务通道, 而只开 启辅助管理和控制通道 ( Auxiliary Management and Control Channel, 简称为 "AMCC" 该 ONU可以通过调节用于接收的下行波长, 对下行波长通道 进行扫描, 若釆用某个下行波长能够接收到光信号, 则与该下行波长相应的 通道可能为一个下行波长通道, ONU可以对该下行波长通道进行下行同步, 接收 OLT例如通过 AMCC通道发送的下行帧。  For example, after the PtPWDM-PON ONU is powered on, the service channel can be shut down, and only the Auxiliary Management and Control Channel (AMCC) can be turned on. The ONU can adjust the downlink wavelength for receiving, and The wavelength channel is scanned. If a downlink signal is used to receive the optical signal, the channel corresponding to the downlink wavelength may be a downlink wavelength channel, and the ONU may perform downlink synchronization on the downlink wavelength channel, and the receiving OLT passes through the AMCC channel, for example. The downstream frame sent.
又例如, 如果 PtP WDM-PON ONU已经预先设定好默认的收发波长, 或已经预先设置好可以支持的收发波长对,则该 ONU可以在上电初始化时, 根据该默认的收发波长或可以支持的收发波长对, 确定 ONU用于接收或发 送的初始收发波长。  For example, if the PtP WDM-PON ONU has preset the default transceiving wavelength, or has already set the transmit and receive wavelength pairs that can be supported in advance, the ONU can be initialized according to the default transceiving wavelength or can be supported during power-on initialization. The pair of transceiver wavelengths determines the initial transmit and receive wavelengths that the ONU uses to receive or transmit.
应理解, 在本发明实施例中, OLT可以通过 AMCC通道下发携带用于 指示下行波长通道信息的字段的下行帧, 例如, OLT通过 AMCC通道周期 性地广播该下行波长通道信息,该 OLT也可以通过下行业务信道向 ONU发 送该下行帧, 但本发明实施例对此并不限定。  It should be understood that, in the embodiment of the present invention, the OLT may send a downlink frame carrying a field for indicating downlink wavelength channel information through the AMCC channel. For example, the OLT periodically broadcasts the downlink wavelength channel information through the AMCC channel, and the OLT also The downlink frame may be sent to the ONU through the downlink traffic channel, but the embodiment of the present invention is not limited thereto.
在本发明实施例中, ONU通过接收 OLT发送的包括该字段的下行帧, 可以确定该下行波长通道信息, 由此能够帮助 ONU识别该下行波长通道的 类型、 用途、 能够传输的下行业务的类型等, 从而便于 ONU正确地进行下 行波长的初始化。  In the embodiment of the present invention, the ONU can determine the downlink wavelength channel information by receiving the downlink frame that includes the field, and the ONU can help the ONU identify the type, usage, and type of the downlink service that can be transmitted. Etc., thereby facilitating the ONU to correctly initialize the downstream wavelength.
在本发明实施例中, ONU接收 OLT发送的下行帧携带用于指示下行波 长通道信息的字段, 该下行波长通道信息包括该下行波长通道的类型。 可选 地, 该下行帧具体为用于指示该下行波长通道信息的下行物理同步块In the embodiment of the present invention, the downlink frame sent by the ONU to the OLT carries a field for indicating downlink wavelength channel information, where the downlink wavelength channel information includes a type of the downlink wavelength channel. Optional The downlink frame is specifically a downlink physical synchronization block used to indicate the downlink wavelength channel information.
( Physical Synchronization Block appropriate for downstream,简称为 "PSBd" ) 或模板 ( Profile ) 物理层运行与维护 ( Physical Layer Operation and Maintenance, 简称为 "PLOAM" )消息。 即 OLT发送给 ONU的下行帧的一 部分可以为 PSBd字段, 也可以为 Profile PLOAM消息, 该 PSBd字段和该 Profile PLOAM消息中的任意一个字段可以用于指示下行波长通道信息。 (Physical Layer Operation and Maintenance, referred to as "PLOAM") message. That is, a part of the downlink frame sent by the OLT to the ONU may be a PSBd field or a Profile PLOAM message, and any one of the PSBd field and the Profile PLOAM message may be used to indicate downlink wavelength channel information.
例如, 如图 3所示, PSBd字段的长度为 24字节, 该 PSBd字段可以包 括三个长度都为 8字节的物理同步序列 ( Physical Synchronization sequence, 简称为 "PSync" )字段、 超帧计数器结构 ( Super Frame Counter structure, 简称为 "SFC structure" )字段和操作控制结构( Operational Control structure, 简称为 "OC structure" )字段; 其中, 该 SFC structure字段包括 51比特的超 帧计数器( Superframe counter )字段和 13比特的混合错误纠正( Hybrid Error Correction, 简称为 "HEC" )字段; 该 OC structure字段包括 51比特的无源 光网络操作控制体( PON Operational Control Body,简称为 "PON OC Body" ) 字段和 13比特的 HEC字段。  For example, as shown in FIG. 3, the length of the PSBd field is 24 bytes, and the PSBd field may include three Physical Synchronization Sequence ("PSync") fields with a length of 8 bytes, and a superframe counter. a Super Frame Counter structure ("SFC structure") field and an Operational Control Structure ("OC structure") field; wherein the SFC structure field includes a 51-bit superframe counter (Superframe counter) Field and 13-bit Hybrid Error Correction ("HEC") field; the OC structure field includes a 51-bit Passive Optical Network Operation Control Body (PON Operational Control Body, referred to as "PON OC Body") Field and 13-bit HEC field.
其中, 该 PSBd字段中的 PSync字段、 SFC structure字段或 OC structure 字段可以包括根据本发明实施例的用于指示下行波长通道信息的字段, 例 如, 如图 4b所示, 用于指示该下行波长通道的类型的 WLCH Type字段的长 度可以至少为 1比特, 该 WLCH Type字段的取值例如可以为 "1 " 和 "0", 其中,取值 "1"例如指示该下行波长通道为 TWDM-PON或点对多点( Point to Multiple Point, 简称为 "PtMP" ) ***中的下行波长通道; 取值 "0" 例如 指示该下行波长通道为 PtP WDM-PON或点对点 (Point to Point, 简称为 "PtP" ) ***中的下行波长通道, 但本发明并不限于此。  The PSync field, the SFC structure field, or the OC structure field in the PSBd field may include a field for indicating downlink wavelength channel information according to an embodiment of the present invention, for example, as shown in FIG. 4b, for indicating the downlink wavelength channel. The length of the WLCH Type field may be at least 1 bit, and the value of the WLCH Type field may be, for example, "1" and "0", where the value "1" indicates, for example, that the downstream wavelength channel is TWDM-PON or A downlink wavelength channel in a point-to-multipoint (PtMP) system; a value of "0" indicates that the downlink wavelength channel is PtP WDM-PON or Point to Point (PtP for short). The downstream wavelength channel in the system, but the invention is not limited thereto.
应理解, 在本发明实施例中, 可以通过增加 PSBd字段的长度, 使得该 PSBd 字段承载用于指示该下行波长通道信息的字段; 也可以不改变现有的 PSBd字段的长度, 而利用该 PSBd字段中的预留位来指示下行波长通道信 息, 或改变 PSBd字段中的一些子字段或一些比特位的取值来指示下行波长 通道信息, 本发明实施例对此并不限定。  It should be understood that, in the embodiment of the present invention, the length of the PSBd field may be increased, so that the PSBd field carries a field for indicating the downlink wavelength channel information; or the length of the existing PSBd field may not be changed, and the PSBd is utilized. The reserved bit in the field indicates the downlink wavelength channel information, or changes the value of some sub-fields or some bits in the PSBd field to indicate the downlink wavelength channel information, which is not limited by the embodiment of the present invention.
进一步地, 该 SFC structure字段包括的 Superframe counter字段或 HEC 字段也可以用于指示下行波长通道信息; 类似地, 该 OC structure字段包括 的 PON OC Body字段也可以用于指示下行波长通道信息。 具体地, 在本发明实施例中, 如图 3至图 4c所示, 该下行物理同步块 PSBd 包括的无源光网络操作控制体(Operational Control Body ) PON OC Body字段或无源光网络标识 PON ID字段用于指示该下行波长通道信息。 Further, the Superframe counter field or the HEC field included in the SFC structure field may also be used to indicate downlink wavelength channel information. Similarly, the PON OC Body field included in the OC structure field may also be used to indicate downlink wavelength channel information. Specifically, in the embodiment of the present invention, as shown in FIG. 3 to FIG. 4c, the downlink physical synchronization block PSBd includes a passive optical network operation control body (PON) or a passive optical network identifier PON. The ID field is used to indicate the downlink wavelength channel information.
如图 4a和 4b所示,该 PON OC Body字段可以包括: 8比特的无源光网 络标识类型 (PON-ID type, 简称为 "PIT" )字段、 32比特的 PON-ID字段 和 11比特的用于指示 OLT的发光功率的 TOL字段; 其中,该 PIT字段可以 包括 1比特的用于指示该 TOL字段中是否包含 OLT的发送功率的 RE字段、 用于指示 ODN的功率预算等级的光分配网络等级( ODN Class )字段、 以及 4比特的保留字段; 该 PON OC Body字段可以包括 4比特的用于指示波长 通道索引的 CHIX字段。 在本发明实施例中, 用于指示下行波长通道信息的 字段可以包括在 PON OC Body字段的任意字段中, 例如, PIT字段中的保 留字段可以用于指示下行波长通道信息; 又例如, TOL字段也可以用于指示 下行波长通道信息; 再例如, PON-ID字段也可以用于指示下行波长通道信 息。  As shown in Figures 4a and 4b, the PON OC Body field may include: an 8-bit passive optical network identification type (PON-ID type, simply referred to as "PIT") field, a 32-bit PON-ID field, and 11 bits. a TOL field for indicating the illuminating power of the OLT; wherein the PIT field may include a 1-bit RE field for indicating whether the TOL field includes the transmission power of the OLT, and an optical distribution network for indicating the power budget level of the ODN. An ODN Class field, and a 4-bit reserved field; the PON OC Body field may include a 4-bit CHIX field for indicating a wavelength channel index. In the embodiment of the present invention, the field for indicating the downlink wavelength channel information may be included in any field of the PON OC Body field, for example, the reserved field in the PIT field may be used to indicate downlink wavelength channel information; for example, the TOL field. It can also be used to indicate downlink wavelength channel information; for example, the PON-ID field can also be used to indicate downlink wavelength channel information.
具体地, 例如, 如图 4c所示, PON-ID字段包括用于指示该下行波长通 道的类型的 WLCHtype字段, 该 WLCHtype字段的长度可以至少为 1比特, 该 WLCHtype字段的取值例如可以为 "0" 和 "1", 其中, 取值 "0" 例如指 示该下行波长通道为 TWDM-PON或点对多点( Point to Multiple Point, 简称 为 "PtMP" )***中的下行波长通道; 取值 "Γ例如指示该下行波长通道为 PtP WDM-PON或点对点( Point to Point, 简称为 "PtP" ) ***中的下行波长 通道, 但本发明并不限于此。  Specifically, for example, as shown in FIG. 4c, the PON-ID field includes a WLCHtype field indicating a type of the downlink wavelength channel, where the length of the WLCHtype field may be at least 1 bit, and the value of the WLCHtype field may be, for example, " 0" and "1", where the value "0" indicates that the downlink wavelength channel is a downlink wavelength channel in a TWDM-PON or Point to Multiple Point (PtMP) system; "For example, the downlink wavelength channel is indicated as a downstream wavelength channel in a PtP WDM-PON or Point to Point ("PtP") system, but the present invention is not limited thereto.
在本发明实施例中, 用于指示下行波长通道信息的字段也可以承载在该 Profile PLOAM消息中, 即可以利用该 Profile PLOAM消息中现有的字段或 内容, 或利用该 Profile PLOAM消息中新增加的字段或内容, 来指示下行波 长通道信息。 例如, 根据本发明实施例的 Profile PLOAM消息可以具有如表 1所示的内容和格式。  In the embodiment of the present invention, the field for indicating the downlink wavelength channel information may also be carried in the Profile PLOAM message, that is, the existing field or content in the Profile PLOAM message may be utilized, or the profile PLOAM message may be newly added. Field or content to indicate downstream wavelength channel information. For example, a Profile PLOAM message according to an embodiment of the present invention may have content and format as shown in Table 1.
表 1  Table 1
八位组  Octet
内容 描述  Description
序号  Serial number
1-2 0x03FF 表示广播给当前下行波长通道中所有的 ONU 1-2 0x03FF indicates broadcast to all ONUs in the current downstream wavelength channel.
3 TBD 表示消息类型标识, 用于标识广播给所有 ONU的 下行波长通道模板3 TBD indicates the message type identifier, which is used to identify the broadcast to all ONUs. Downstream wavelength channel template
4 SeqNo 表示广播消息的序列号 4 SeqNo indicates the serial number of the broadcast message
其中, VVVV表示模板的版本号; PPP表示波长对 Where VVVV represents the version number of the template; PPP represents the wavelength pair
5 WW OPPP 5 WW OPPP
的标识  Identification
其中, DDD表示当前下行波长的标识; F表示 FEC Where DDD represents the identifier of the current downstream wavelength; F represents the FEC
6 ODDD 000F 6 ODDD 000F
码型的选择  Pattern selection
其中, RRRR表示下行线路速率; LLLL表示下行 Where RRRR represents the downlink rate; LLLL represents the downlink
7 RRRR LLLL 7 RRRR LLLL
线路编码  Line coding
8 0000 000T 其中, T表示下行波长通道的类型  8 0000 000T where T represents the type of downstream wavelength channel
9-40 Padding 表示填充  9-40 Padding means padding
41-48 MIC 表示消息完整性校验 如表 1所示, 例如, 在该 Profile PLOAM消息中, 可以用第 8个八位组 中的内容 "0000000T" 表示下行波长通道的类型, 其中, 当 T取值为 "0" 时, 例如可以表示该下行波长通道为 TWDM-PON或 PtMP***中的下行波 长通道; 当 T取值为 "Γ时,例如可以表示该下行波长通道为 PtP WDM-PON 或 PtP***中的下行波长通道。应理解,本发明实施例仅以表 1所示的 Profile PLOAM消息为例进行说明,但本发明并不限于此,例如,还可以采用 Profile PLOAM消息中的其它字段或内容, 来指示下行波长通道信息。  41-48 MIC indicates that the message integrity check is as shown in Table 1. For example, in the Profile PLOAM message, the content of the downlink wavelength channel can be represented by the content "0000000T" in the 8th octet, where, when T When the value is "0", for example, the downlink wavelength channel may be the downlink wavelength channel in the TWDM-PON or PtMP system. When the value of T is "Γ", for example, the downlink wavelength channel may be PtP WDM-PON or The downlink wavelength channel in the PtP system. It should be understood that the embodiment of the present invention only uses the Profile PLOAM message shown in Table 1 as an example, but the present invention is not limited thereto. For example, other fields in the Profile PLOAM message may also be used. Or content, to indicate downstream wavelength channel information.
在本发明实施例中, 该下行波长通道信息还包括该下行波长通道能够传 输的下行业务的类型。 可选地, 在本发明实施例中, 下行物理同步块 PSBd 或模板物理层运行与维护 Profile PLOAM消息可以携带用于指示下行波长通 道能够传输的下行业务的类型的字段; 优选地, 该 PSBd 字段包括的 OC Structure字段、 PON OC Body字段或 PON ID字段用于指示该下行波长通道 能够传输的下行业务的类型。  In the embodiment of the present invention, the downlink wavelength channel information further includes a type of downlink service that the downlink wavelength channel can transmit. Optionally, in the embodiment of the present invention, the downlink physical synchronization block PSBd or the template physical layer operation and maintenance profile PLOAM message may carry a field indicating a type of downlink service that the downlink wavelength channel can transmit; preferably, the PSBd field The included OC Structure field, PON OC Body field or PON ID field is used to indicate the type of downlink traffic that the downlink wavelength channel can transmit.
例如, PON ID字段可以包括长度至少为 2比特的用于指示能够传输的 下行业务的类型的字段, 例如, 当该字段取值为 "00" 时, 可以表示该下行 波长通道能够传输的下行业务为 PON业务; 当该字段取值为 "01" 时, 可 以表示该下行波长通道能够传输的下行业务为 PtP以太网业务; 当该字段取 值为 "10" 时, 可以表示该下行波长通道能够传输的下行业务为通用公共无 线电接口 (Common Public Radio Interface, 简称为 "CPRI" ) 业务; 当该字 段取值为 "11" 时, 可以表示该下行波长通道能够传输的下行业务为长距离 GPON或 XGPON业务。 应理解, 本发明实施例仅以此为例进行说明, 但本 发明并不限于此。 For example, the PON ID field may include a field indicating a type of downlink service that can be transmitted, which is at least 2 bits in length. For example, when the value of the field is "00", it may indicate a downlink service that can be transmitted by the downlink wavelength channel. For the PON service, when the value of the field is "01", it indicates that the downlink service that the downlink wavelength channel can transmit is a PtP Ethernet service. When the value of the field is "10", it can indicate that the downlink wavelength channel can The downlink service transmitted is the Common Public Radio Interface (CPRI) service; when the word When the value of the segment is "11", it indicates that the downlink service that the downlink wavelength channel can transmit is a long-distance GPON or XGPON service. It should be understood that the embodiments of the present invention are merely described by way of example, but the invention is not limited thereto.
应理解, 在本发明实施例中, 仅以下行波长通道信息包括下行波长通道 的类型和 /或该下行波长通道能够传输的下行业务的类型为例进行说明,但本 发明并不限于此,该下行波长通道信息还可以包括与该下行波长通道相关的 其它信息, 例如, 该下行波长通道的标识等信息。  It should be understood that, in the embodiment of the present invention, only the following types of wavelength channel information include the type of the downlink wavelength channel and/or the type of the downlink service that the downlink wavelength channel can transmit, for example, but the present invention is not limited thereto. The downlink wavelength channel information may further include other information related to the downlink wavelength channel, for example, information such as the identifier of the downlink wavelength channel.
在 S120中, ONU可以根据该下行波长通道的类型, 确定 ONU的目标 下行波长。  In S120, the ONU can determine the target downlink wavelength of the ONU according to the type of the downlink wavelength channel.
具体而言, ONU 可以确定该下行波长通道的类型与自身的设备类型是 否匹配; 如果匹配, 则 ONU可以将该下行波长通道确定为 ONU的目标下 行波长通道; 如果不匹配, 则 ONU 重新确定目标下行波长通道。 当 ONU 确定存在多个下行波长通道的类型与自身的设备类型匹配时, ONU可以将 与该多个下行波长通道中的任意一个下行波长通道相应的下行波长确定为 该 ONU的目标下行波长。  Specifically, the ONU can determine whether the type of the downlink wavelength channel matches its own device type; if it matches, the ONU can determine the downlink wavelength channel as the target downlink wavelength channel of the ONU; if not, the ONU re-determines the target. Downstream wavelength channel. When the ONU determines that the type of the multiple downlink wavelength channels matches the device type of the device, the ONU can determine the downlink wavelength corresponding to any one of the multiple downlink wavelength channels as the target downlink wavelength of the ONU.
在本发明实施例中, ONU 可以在每次获得下行波长通道的类型时进行 匹配, 如果找到匹配的下行波长通道, 则可以将与该下行波长通道确定为该 ONU的目标下行波长通道, 从而完成 ONU的下行波长的初始化; ONU也 可以在获得多个或所有的下行波长通道的类型时再进行匹配,再从与自身设 备类型匹配的多个下行波长通道中确定一个或多个目标下行波长通道, 最后 再在与该一个或多个目标下行波长通道相应的一个或多个下行波长中,确定 该 ONU的目标下行波长, 从而完成 ONU的下行波长的初始化, 但本发明 实施例并不限于此。  In the embodiment of the present invention, the ONU can perform matching each time the type of the downlink wavelength channel is obtained. If a matching downlink wavelength channel is found, the downlink wavelength channel can be determined as the target downstream wavelength channel of the ONU, thereby completing Initialization of the downstream wavelength of the ONU; the ONU may also perform matching when obtaining multiple or all types of downlink wavelength channels, and then determine one or more target downstream wavelength channels from multiple downlink wavelength channels matching the type of the device. And finally determining the target downlink wavelength of the ONU in one or more downlink wavelengths corresponding to the one or more target downlink wavelength channels, thereby completing the initialization of the downlink wavelength of the ONU, but the embodiment of the present invention is not limited thereto. .
还应理解, 在本发明实施例中, ONU可以存储所获取的下行波长通道 信息, 从而便于 ONU根据这些下行波长通道信息, 例如识别下行波长通道 的类型, 或确定下行波长通道能够传输的下行业务的类型等。  It should also be understood that, in the embodiment of the present invention, the ONU may store the acquired downlink wavelength channel information, thereby facilitating the ONU to identify the downlink wavelength channel information according to the downlink wavelength channel information, or determine the downlink traffic that the downlink wavelength channel can transmit. Types, etc.
在本发明实施例中, 可选地, 该下行波长通道信息还包括该波长通道能 够传输的下行业务的类型;  In the embodiment of the present invention, optionally, the downlink wavelength channel information further includes a type of downlink service that the wavelength channel can transmit;
其中, 该根据该波长通道的类型, 从至少一个下行波长通道中确定该 ONU的目标下行波长通道, 包括:  Determining, according to the type of the wavelength channel, the target downlink wavelength channel of the ONU from the at least one downlink wavelength channel, including:
根据该波长通道的类型和该能够传输的下行业务的类型,从该至少一个 下行波长通道中确定该目标下行波长通道, 其中, 该目标下行波长通道的类 型与该 ONU的设备类型相匹配, 并且该目标下行波长通道能够传输的下行 业务的类型与该 ONU支持的下行业务的类型相匹配。 According to the type of the wavelength channel and the type of downlink service that can be transmitted, from the at least one Determining the target downlink wavelength channel in the downlink wavelength channel, where the type of the target downlink wavelength channel matches the device type of the ONU, and the type of the downlink service that the target downlink wavelength channel can transmit and the downlink service supported by the ONU The types match.
即在该实施例中, ONU确定目标下行波长时, 不仅考虑下行波长通道 的类型是否与该 ONU的设备类型匹配, 还考虑下行波长通道能够传输的下 行业务的类型是否与该 ONU所支持的下行业务的类型相匹配, 从而便于该 ONU挑选出更加优选的目标下行波长, 由此能够提高下行波长初始化的效 率, 避免 ONU重新进行下行波长的初始化, 以及对其它设备的干扰。 单元接收光线路终端所发送的下行帧中, 携带下行波长通道的类型信息, 从 而能够在多个无源光网络***共存情况下识别下行波长通道的类型, 由此能 够将类型相匹配的下行波长通道的波长确定为 ONU的目标下行波长, 从而 能够正确地进行波长初始化, 并能够避免对其它设备的干扰。  That is, in this embodiment, when the ONU determines the target downlink wavelength, it considers whether the type of the downlink wavelength channel matches the device type of the ONU, and whether the type of the downlink service that the downlink wavelength channel can transmit and the downlink supported by the ONU are considered. The types of services are matched, so that the ONU can select a more preferred target downlink wavelength, thereby improving the efficiency of downlink wavelength initialization, preventing the ONU from re-initiating downlink wavelength initialization, and interference with other devices. The unit receives the type information of the downlink wavelength channel in the downlink frame sent by the optical line terminal, so that the type of the downlink wavelength channel can be identified in the case where multiple passive optical network systems coexist, thereby being able to match the type of the downlink wavelength The wavelength of the channel is determined as the target downstream wavelength of the ONU, so that wavelength initialization can be performed correctly, and interference with other devices can be avoided.
应理解, 在根据本发明的波长初始化的方法的上述和下列实施例中, 以 PtP WDM-PON ONU进行波长初始化为例进行说明, 但本发明并不限于此, 行波长初始化。  It should be understood that in the above and below embodiments of the method of wavelength initialization according to the present invention, the wavelength initialization is performed by the PtP WDM-PON ONU as an example, but the present invention is not limited thereto, and the row wavelength is initialized.
还应理解, 在本发明的各种实施例中, 上述各过程的序号的大小并不意 味着执行顺序的先后, 各过程的执行顺序应以其功能和内在逻辑确定, 而不 应对本发明实施例的实施过程构成任何限定。  It should also be understood that, in various embodiments of the present invention, the size of the sequence numbers of the above processes does not imply a sequence of execution orders, and the order of execution of the processes should be determined by its function and internal logic, and should not be implemented by the present invention. The implementation of the examples constitutes any limitation.
上文中结合图 1 至图 4c, 从 ONU侧详细描述了根据本发明实施例的 ONU的下行波长初始化的方法 100, 下面将结合图 5至图 8, 从 ONU侧详 细描述根据本发明实施例的 ONU的上行波长初始化的方法 200。  With reference to FIG. 1 to FIG. 4c above, a method 100 for downlink wavelength initialization of an ONU according to an embodiment of the present invention is described in detail from the ONU side. Hereinafter, a method according to an embodiment of the present invention will be described in detail from the ONU side with reference to FIG. 5 to FIG. Method 200 of initializing the upstream wavelength of the ONU.
如图 5所示, 示出了 居本发明实施例的波长初始化的方法 200的示意 性流程图, 该方法 200可以由 ONT和 /或 ONU执行, 例如, 该方法 200由 PtP WDM-PON ONU执行。 如图 5所示, 该方法 200包括:  As shown in FIG. 5, a schematic flowchart of a method 200 for wavelength initialization according to an embodiment of the present invention is shown. The method 200 can be performed by an ONT and/or an ONU. For example, the method 200 is performed by a PtP WDM-PON ONU. . As shown in FIG. 5, the method 200 includes:
S220, 光网络单元 ONU接收光线路终端 OLT响应的下行帧, 该下行帧 携带用于指示当前波长通道的上行波长通道信息的字段, 该上行波长通道信 息包括该波长通道的类型;  S220, the optical network unit ONU receives a downlink frame that is responded by the optical line terminal OLT, where the downlink frame carries a field for indicating uplink wavelength channel information of the current wavelength channel, where the uplink wavelength channel information includes a type of the wavelength channel;
S230, 该 ONU根据该波长通道的类型, 从至少一个上行波长通道中确 定该 ONU的目标上行波长通道, 其中, 每个波长通道与一个上行波长通道 ——对应, 与该目标上行波长通道相对应的波长通道的类型与该 ONU的设 备类型相匹配。 S230, the ONU determines, according to the type of the wavelength channel, a target uplink wavelength channel of the ONU from at least one uplink wavelength channel, where each wavelength channel and one uplink wavelength channel - Correspondingly, the type of the wavelength channel corresponding to the target upstream wavelength channel matches the device type of the ONU.
可选地, 该方法还包括: S210, 光网络单元 ONU向光线路终端 OLT 发送上行帧, 该上行帧携带用于指示该 ONU的设备类型的字段;  Optionally, the method further includes: S210, the optical network unit ONU sends an uplink frame to the optical line terminal OLT, where the uplink frame carries a field for indicating a device type of the ONU;
其中, 上行帧也可以称为注册响应。  The uplink frame may also be referred to as a registration response.
即在本发明实施例中, 光网络单元 ONU在上行波长通道上, 向光线路 终端 OLT发送用于请求上行波长校准的注册响应, 该注册响应携带用于指 示该 ONU的设备类型的字段; OLT接收到该注册响应后, 可以获知 ONU 长通道信息; 从而 ONU可以根据该上行波长通道的类型, 在与 ONU接收 到上行波长通道信息相应的上行波长通道中, 即在 OLT 能够接收到注册响 应的一个或多个上行波长通道中, 确定与该 ONU的设备类型相匹配的目标 上行波长通道及其相应的目标上行波长, 从而实现 ONU的上行波长的初始 化。 元向光线路终端发送注册响应, 并接收光线路终端发送的上行波长通道的类 型信息,从而能够在多个无源光网络***共存情况下识别上行波长通道的类 型, 由此能够将类型相匹配的上行波长通道的波长确定为 ONU的目标上行 波长, 从而能够正确地进行波长初始化, 并能够避免对其它设备的干扰。  That is, in the embodiment of the present invention, the optical network unit ONU sends a registration response for requesting uplink wavelength calibration to the optical line terminal OLT on the uplink wavelength channel, where the registration response carries a field for indicating the device type of the ONU; After receiving the registration response, the ONU long channel information can be obtained; so that the ONU can receive the registration response in the uplink wavelength channel corresponding to the ONU receiving the uplink wavelength channel information according to the type of the upstream wavelength channel. In one or more uplink wavelength channels, a target upstream wavelength channel that matches the device type of the ONU and its corresponding target upstream wavelength are determined, thereby implementing initialization of the upstream wavelength of the ONU. The element sends a registration response to the optical line terminal, and receives the type information of the uplink wavelength channel sent by the optical line terminal, so that the type of the uplink wavelength channel can be identified in the case where multiple passive optical network systems coexist, thereby being able to match the type The wavelength of the upstream wavelength channel is determined as the target upstream wavelength of the ONU, so that wavelength initialization can be correctly performed, and interference with other devices can be avoided.
具体而言, 在 S210中, ONU可以在上行波长通道上通过 AMCC通道 向 OLT发送用于请求上行波长校准的注册响应, 并且该注册响应携带用于 指示该 ONU的设备类型的 ONU Type字段。 例如, 该 ONU Type字段的长 度可以至少为 1比特, 该 ONU Type字段的取值例如可以为 "0" 和 "1", 其中, 取值 "0" 例如指示该 ONU为 TWDM-PON ONU或 PtMP ONU; 取 值 "Γ 例如指示该 ONU为 PtP WDM-PON ONU或 PtP ONU, 但本发明并 不限于此。  Specifically, in S210, the ONU may send a registration response for requesting uplink wavelength calibration to the OLT through the AMCC channel on the uplink wavelength channel, and the registration response carries an ONU Type field for indicating the device type of the ONU. For example, the length of the ONU Type field may be at least 1 bit, and the value of the ONU Type field may be "0" and "1", for example, where the value "0" indicates that the ONU is TWDM-PON ONU or PtMP. ONU; The value "Γ" indicates that the ONU is a PtP WDM-PON ONU or a PtP ONU, but the present invention is not limited thereto.
在本发明实施例中, 该注册响应例如为序列号(Serial Number, 简称为 "SN" )响应, 并且用于指示该 ONU的设备类型的字段也可以承载在该 SN 响应中, 即可以利用该 SN响应中现有的字段或内容, 或利用该 SN响应中 新增加的字段或内容, 来指示该 ONU的设备类型。 例如, 根据本发明实施 例的注册响应可以具有如表 2所示的内容和格式。 表 2 In the embodiment of the present invention, the registration response is, for example, a serial number (Serial Number, referred to as "SN") response, and a field indicating the device type of the ONU may also be carried in the SN response, that is, the The existing field or content in the SN response, or the newly added field or content in the SN response, indicates the device type of the ONU. For example, the registration response according to an embodiment of the present invention may have the content and format as shown in Table 2. Table 2
Figure imgf000026_0001
如表 2所示, 在该注册响应中, 第 17个八位组中的内容 "0000000A" 可以表示该注册响应的用途, 例如表示该注册响应是否用于波长校准等; 在 该注册响应中, 可以用第 18个八位组中的内容 "0000 000T" 表示 ONU的 设备类型,其中, 当 T取值为 "0"时,例如可以表示该 ONU为 TWDM-PON ONU或 PtMP ONU; 当 T取值为 "Γ 时, 例如可以表示该 ONU为 PtP WDM-PON ONU或 PtP ONU。 但应理解, 本发明实施例仅以表 2所示的注 册响应为例进行说明, 但本发明并不限于此, 例如, 还可以釆用其它格式或 内容的注册响应来指示 ONU的设备类型, 并且本发明实施例并不限定上述 字段的长度、 位置、 取值范围以及取值含义。
Figure imgf000026_0001
As shown in Table 2, in the registration response, the content "0000000A" in the 17th octet can indicate the purpose of the registration response, for example, indicating whether the registration response is used for wavelength calibration or the like; in the registration response, The device type of the ONU can be represented by the content "0000 000T" in the 18th octet. When the value of T is "0", for example, the ONU can be represented as TWDM-PON ONU or PtMP ONU; For example, the ONU is a PtP WDM-PON ONU or a PtP ONU. However, it should be understood that the embodiment of the present invention only uses the registration response shown in Table 2 as an example, but the present invention is not limited thereto. For example, the registration response of the other format or the content may be used to indicate the device type of the ONU, and the embodiment of the present invention does not limit the length, the location, the value range, and the meaning of the value of the foregoing field.
在本发明实施例中, 可选地, 该注册响应携带的用于指示该 ONU的设 备类型的字段包括无源光网络操作控制体 PON OC Body字段或无源光网络 标识 PON ID字段,该 PON OC Body字段和该 PON ID字段用于指示该 ONU 所在的下行波长通道的类型, 以指示该 ONU的设备类型。  In the embodiment of the present invention, optionally, the field that is used by the registration response to indicate the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identifier PON ID field, and the PON The OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located to indicate the device type of the ONU.
具体地,在本发明实施例中, ONU也可以回填 OLT发送的 PON OC Body 字段或 PON ID字段, 该 PON OC Body字段和该 PON ID字段用于指示该 ONU所在的下行波长通道的类型, 从而能够间接指示该 ONU的设备类型。 应理解, 本发明实施例并不限于此, 例如, ONU也可以通过回填 OLT发送 的其它字段来间接指示 ONU的设备类型, 例如, Psync字段、 SFC structure 字段、 OC structure字段等。 Specifically, in the embodiment of the present invention, the ONU can also backfill the PON OC Body sent by the OLT. The PON OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located, so as to be able to indirectly indicate the device type of the ONU. It should be understood that the embodiment of the present invention is not limited thereto. For example, the ONU may also indirectly indicate the device type of the ONU by backfilling other fields sent by the OLT, for example, a Psync field, an SFC structure field, an OC structure field, and the like.
在 S220中, ONU接收 OLT根据该注册响应发送的上行波长通道信息, 该上行波长通道信息包括该上行波长通道的类型。 例如, OLT可以通过如表 3所示的消息格式, 向 ONU发送上行波长通道信息。  In S220, the ONU receives the uplink wavelength channel information that is sent by the OLT according to the registration response, and the uplink wavelength channel information includes the type of the uplink wavelength channel. For example, the OLT can send uplink wavelength channel information to the ONU through the message format as shown in Table 3.
表 3  table 3
Figure imgf000027_0001
如表 3所示, 在该消息格式中, 可以用第 14个八位组中的内容 "0000 000T" 表示上行波长通道的类型, 其中, 当 T取值为 "0" 时, 例如可以表 示该上行波长通道为 TWDM-PON或 PtMP***中的上行波长通道; 当 T取 值为 "Γ 时, 例如可以表示该上行波长通道为 PtP WDM-PON或 PtP*** 中的上行波长通道。 但应理解, 本发明实施例仅以表 3所示的消息格式为例 进行说明, 但本发明并不限于此, 例如, ONU还可以接收 OLT釆用其它格 式或内容的字段来指示上行波长通道信息。
Figure imgf000027_0001
As shown in Table 3, in the message format, the content of the uplink wavelength channel can be represented by the content "0000 000T" in the 14th octet, wherein when T is "0", for example, the The upstream wavelength channel is an upstream wavelength channel in a TWDM-PON or PtMP system; when the value of T is "Γ", for example, the uplink wavelength channel may be indicated as an uplink wavelength channel in a PtP WDM-PON or PtP system. The embodiment of the present invention only uses the message format shown in Table 3 as an example, but the present invention is not limited thereto. For example, the ONU can also receive other OLTs. Field of content or content to indicate upstream wavelength channel information.
在本发明实施例中, 可选地, 该上行波长通道信息还包括该上行波长通 道能够传输的上行业务的类型。 例如, 可以釆用长度至少为 2比特字段来指 示上行波长通道能够传输的上行业务的类型, 例如, 当该字段取值为 "00" 时, 可以表示该上行波长通道能够传输的上行业务为 PON业务; 当该字段 取值为 "01" 时, 可以表示该上行波长通道能够传输的上行业务为 PtP以太 网业务; 当该字段取值为 "10" 时, 可以表示该上行波长通道能够传输的上 行业务为通用 CPRI业务; 当该字段取值为 "11" 时, 可以表示该上行波长 通道能够传输的上行业务为 GPON业务。应理解,本发明实施例仅以此为例 进行说明, 但本发明并不限于此。  In the embodiment of the present invention, optionally, the uplink wavelength channel information further includes a type of uplink service that the uplink wavelength channel can transmit. For example, a field of at least 2 bits in length may be used to indicate the type of the uplink service that the uplink wavelength channel can transmit. For example, when the value of the field is "00", the uplink service that can be transmitted by the uplink wavelength channel is PON. When the value of the field is "01", it indicates that the uplink service that the upstream wavelength channel can transmit is a PtP Ethernet service. When the value of the field is "10", it indicates that the upstream wavelength channel can transmit. The uplink service is a general-purpose CPRI service. When the value of the field is "11", it indicates that the uplink service that can be transmitted by the uplink wavelength channel is a GPON service. It should be understood that the embodiments of the present invention have been described by way of example only, but the invention is not limited thereto.
还应理解, 在本发明实施例中, 仅以上行波长通道信息包括上行波长通 道的类型和 /或该上行波长通道能够传输的上行业务的类型为例进行说明,但 本发明并不限于此, 该上行波长通道信息还可以包括与该上行波长通道相关 的其它信息, 例如, 该上行波长通道的标识等信息。  It should be understood that, in the embodiment of the present invention, only the type of the uplink wavelength channel information includes the type of the uplink wavelength channel and/or the type of the uplink service that the uplink wavelength channel can transmit, for example, but the present invention is not limited thereto. The uplink wavelength channel information may further include other information related to the uplink wavelength channel, for example, information such as an identifier of the uplink wavelength channel.
在 S230, ONU根据该上行波长通道的类型, 确定该 ONU的目标上行 波长, 其中, 与该目标上行波长相应的目标上行波长通道的类型与该 ONU 的设备类型相匹配。  In S230, the ONU determines the target uplink wavelength of the ONU according to the type of the uplink wavelength channel, where the type of the target uplink wavelength channel corresponding to the target uplink wavelength matches the device type of the ONU.
具体而言, ONU 可以确定该上行波长通道的类型与自身的设备类型是 否匹配; 如果匹配, 则 ONU可以将与该上行波长通道相应的上行波长确定 为 ONU的目标上行波长; 如果不匹配, 则 ONU重新确定目标上行波长。 当 ONU确定存在多个上行波长通道的类型与自身的设备类型匹配时, ONU 可以将与该多个上行波长通道中的任意一个上行波长通道相应的上行波长 确定为该 ONU的目标上行波长。  Specifically, the ONU can determine whether the type of the uplink wavelength channel matches its own device type. If the ONU matches, the ONU can determine the uplink wavelength corresponding to the uplink wavelength channel as the target uplink wavelength of the ONU; if not, The ONU re-determines the target upstream wavelength. When the ONU determines that the type of the uplink channel is matched with its own device type, the ONU can determine the uplink wavelength corresponding to any one of the multiple uplink channels as the target uplink wavelength of the ONU.
在本发明实施例中, ONU 可以在每次获得上行波长通道的类型时进行 匹配, 如果找到匹配的上行波长通道, 则可以将与该上行波长通道相应的上 行波长确定为该 ONU的目标上行波长, 从而完成 ONU的上行波长的初始 化; ONU也可以在获得多个或所有的上行波长通道的类型时再进行匹配, 再从与自身设备类型匹配的多个上行波长通道中确定一个或多个目标上行 波长通道, 最后再在与该一个或多个目标上行波长通道相应的一个或多个上 行波长中, 确定该 ONU的目标上行波长, 从而完成 ONU的上行波长的初 始化, 但本发明实施例并不限于此。 还应理解, 在本发明实施例中, ONU 可以存储所获取的上行波长通道 信息, 从而便于 ONU根据这些上行波长通道信息, 例如识别上行波长通道 的类型, 或确定上行波长通道能够传输的上行业务的类型等。 In the embodiment of the present invention, the ONU may perform matching each time the type of the uplink wavelength channel is obtained. If a matching upstream wavelength channel is found, the uplink wavelength corresponding to the uplink wavelength channel may be determined as the target upstream wavelength of the ONU. , thereby completing initialization of the uplink wavelength of the ONU; the ONU may also perform matching when obtaining multiple or all types of uplink wavelength channels, and then determine one or more targets from multiple uplink wavelength channels matching the type of the own device. The uplink wavelength channel is determined, and finally, the target uplink wavelength of the ONU is determined in one or more uplink wavelengths corresponding to the one or more target uplink wavelength channels, thereby completing the initialization of the uplink wavelength of the ONU, but the embodiment of the present invention is Not limited to this. It should also be understood that, in the embodiment of the present invention, the ONU may store the acquired uplink wavelength channel information, thereby facilitating the ONU to identify the type of the uplink wavelength channel according to the uplink wavelength channel information, or determine the uplink service that the uplink wavelength channel can transmit. Types, etc.
在本发明实施例中, 可选地, 该上行波长通道信息还包括该波长通道能 够传输的上行业务的类型;  In the embodiment of the present invention, optionally, the uplink wavelength channel information further includes a type of uplink service that the wavelength channel can transmit;
其中, 该 ONU根据该波长通道的类型, 从至少一个上行波长通道中确 定该 ONU的目标上行波长通道, 包括:  The ONU determines the target uplink wavelength channel of the ONU from the at least one upstream wavelength channel according to the type of the wavelength channel, including:
该 ONU根据该波长通道的类型和该能够传输的上行业务的类型, 从该 至少一个上行波长通道中确定该目标上行波长通道, 其中, 该目标上行波长 通道的类型与该 ONU的设备类型相匹配, 并且该目标上行波长通道能够传 输的上行业务的类型与该 ONU支持的上行业务的类型相匹配。  The ONU determines the target uplink wavelength channel from the at least one uplink wavelength channel according to the type of the wavelength channel and the type of the uplink service that can be transmitted, where the type of the target uplink wavelength channel matches the device type of the ONU And the type of the uplink service that the target uplink wavelength channel can transmit matches the type of the uplink service supported by the ONU.
即在该实施例中, ONU确定目标上行波长时, 不仅考虑上行波长通道 的类型是否与该 ONU的设备类型匹配, 还考虑上行波长通道能够传输的上 行业务的类型是否与该 ONU所支持的上行业务的类型相匹配, 从而便于该 ONU挑选出更加优选的目标上行波长, 由此能够提高上行波长初始化的效 率, 避免 ONU重新进行上行波长的初始化, 以及对其它设备的干扰。  In this embodiment, when the ONU determines the target uplink wavelength, it considers whether the type of the uplink wavelength channel matches the device type of the ONU, and whether the type of the uplink service that can be transmitted by the uplink wavelength channel is related to the uplink supported by the ONU. The types of services are matched, so that the ONU can select a more preferred target uplink wavelength, thereby improving the efficiency of the uplink wavelength initialization, and avoiding the ONU re-initiating the upstream wavelength and interference with other devices.
应理解, ONU 首次上电注册时, 不知道各个上行波长通道的类型和用 途, 因而 ONU可以扫描所支持的整个或部分上行波长范围。 例如, ONU可 以随机设置用于发送信号的初始上行波长, 并可以根据预设步长调节初始上 行波长; ONU也可以根据预先设定的默认收发波长, 设置该初始上行波长, 由此 ONU可以在一个或多个初始上行波长上发送注册响应。 当 ONU接收 到 OLT根据该注册响应发送的上行波长通道信息时,表明 ONU针对该 OLT 发送该注册响应所釆用的上行波长所对应的通道可能为一个上行波长通道。 由此 ONU可以在多个初始上行波长上发送注册响应, 以获取部分或全部上 行波长通道的相关信息, 从而能够正确地进行上行波长的初始化。  It should be understood that when the ONU is first powered on, the type and usage of each upstream wavelength channel are unknown, so the ONU can scan all or part of the upstream wavelength range supported. For example, the ONU may randomly set an initial uplink wavelength for transmitting a signal, and may adjust an initial uplink wavelength according to a preset step size; the ONU may also set the initial uplink wavelength according to a preset default transmission and reception wavelength, thereby the ONU may be in the A registration response is sent on one or more initial upstream wavelengths. When the ONU receives the uplink wavelength channel information sent by the OLT according to the registration response, it indicates that the channel corresponding to the uplink wavelength used by the ONU to send the registration response to the OLT may be an uplink wavelength channel. Therefore, the ONU can transmit the registration response on a plurality of initial uplink wavelengths to acquire information about part or all of the uplink wavelength channels, so that the initialization of the upstream wavelength can be correctly performed.
还应理解,当多个 ONU同时上报注册响应时,可能会有两个以上的 ONU 正好调节到相同的上行波长,从而引起注册冲突而无法正常注册。此时, ONU 可以等待下一个周期的注册请求, 不改变发送波长只是等待一个随机延时再 发送, 从而有机会避免冲突而让 OLT收到其注册响应。 元向光线路终端发送注册响应, 并接收光线路终端发送的上行波长通道的类 型信息,从而能够在多个无源光网络***共存情况下识别上行波长通道的类 型, 由此能够将类型相匹配的上行波长通道的波长确定为 ONU的目标上行 波长, 从而能够正确地进行波长初始化, 并能够避免对其它设备的干扰。 It should also be understood that when multiple ONUs report the registration response at the same time, there may be more than two ONUs that are adjusted to the same upstream wavelength, causing registration conflicts and failing to register normally. At this time, the ONU can wait for the registration request of the next cycle, and does not change the transmission wavelength but waits for a random delay to resend, so that there is an opportunity to avoid the collision and let the OLT receive its registration response. The class sends a registration response to the optical line terminal, and receives the class of the uplink wavelength channel sent by the optical line terminal Type information, so that the type of the upstream wavelength channel can be identified in the case where a plurality of passive optical network systems coexist, thereby determining the wavelength of the upstream wavelength channel matched by the type as the target upstream wavelength of the ONU, thereby enabling the wavelength to be correctly performed. Initialize and avoid interference with other devices.
在本发明实施例中, 可选地, 如图 6所示, 该方法 200还包括:  In the embodiment of the present invention, optionally, as shown in FIG. 6, the method 200 further includes:
S240, 接收该 OLT发送的注册请求, 该注册请求携带用于指示允许注 册设备的设备类型的字段;  S240. Receive a registration request sent by the OLT, where the registration request carries a field for indicating a device type of the device to be registered.
其中, 该向光线路终端 OLT发送注册响应, 包括:  The sending the registration response to the optical line terminal OLT includes:
5211 ,确定该 ONU的设备类型与该允许注册设备的设备类型是否匹配; 5211. Determine whether the device type of the ONU matches the device type of the device to be registered.
5212,在确定该 ONU的设备类型与该允许注册设备的设备类型匹配时, 向该 OLT发送该注册响应。 5212. Send a registration response to the OLT when determining that the device type of the ONU matches the device type of the allowed registration device.
即在本发明实施例中, ONU可以先接收 OLT发送的注册请求, 并可以 根据该注册请求指示的允许注册设备的设备类型, 确定该 ONU的设备类型 与该允许注册设备的设备类型是否匹配; 如果匹配, 则 ONU可以向该 OLT 发送用于请求上行波长校准的注册响应, 该注册响应携带用于指示该 ONU 的设备类型的字段, 并且该 ONU在接收到 OLT根据该注册响应发送的上行 波长通道信息后, 确定该 ONU的目标上行波长; 如果不匹配, 则 ONU不 向该 OLT发送该注册响应, 并且该 ONU可以重新设置初始的上行波长, 向 其它 OLT发送该注册响应, 并最终确定目标上行波长, 由此能够减少冲突, 并提高波长初始化的效率。  That is, in the embodiment of the present invention, the ONU may first receive the registration request sent by the OLT, and determine whether the device type of the ONU matches the device type of the allowed registration device according to the device type of the device to be registered indicated by the registration request. If matched, the ONU may send a registration response for requesting uplink wavelength calibration to the OLT, the registration response carrying a field indicating the device type of the ONU, and the ONU receiving the uplink wavelength sent by the OLT according to the registration response After the channel information, the target uplink wavelength of the ONU is determined; if not, the ONU does not send the registration response to the OLT, and the ONU can reset the initial uplink wavelength, send the registration response to other OLTs, and finally determine the target. The upstream wavelength, thereby reducing collisions and improving the efficiency of wavelength initialization.
在本发明实施例中, ONU可以接收 OLT通过多种方式发送的注册请求, 以指示允许注册设备的设备类型。 可选地, 该接收该 OLT发送的注册请求, 包括:  In the embodiment of the present invention, the ONU may receive a registration request sent by the OLT in multiple manners to indicate the device type of the device to be registered. Optionally, the receiving the registration request sent by the OLT includes:
接收该 OLT发送的包括分配结构 Allocation structure字段的该注册请 求,该分配结构字段中的分配单元标识 Alloc-ID字段的取值指示该允许注册 设备的设备类型; 或该分配结构字段包括取值用于指示该允许注册设备的设 备类型的字段。  Receiving, by the OLT, the registration request including an allocation structure Allocation structure field, where the allocation unit identifier Alloc-ID field value indicates the device type of the device to be registered; or the allocation structure field includes the value A field indicating the type of device that is allowed to register the device.
具体而言, 例如如图 7 所示, 带宽映射图 (Bandwidth Map , 简称为 "BWmap" )字段可以包括 N个分配结构 (Allocation structure ) 字段, 即 Specifically, for example, as shown in FIG. 7, a Bandwidth Map (abbreviated as "BWmap") field may include N allocation structure fields, that is,
Allocation structure 1 字段、 Allocation structure 2 字段、 、 Allocation structure N字段, 其中, N为自然数, 每个 Allocation structure字段长度可以 为 8字节, 每个 Allocation structure字段可以包括 14比特的 Alloc-ID字段、 2比特的 Flags字段、 16比特的 StartTime字段、 16比特的 GrantSize字段、 1比特的 FWI字段、 2比特的 BurstProfile字段和 13比特的 HEC字段,其中, 该 Alloc-ID字段用于表示 ONU中的带宽分配单元的标识, 该 Alloc-ID字段 的取值为 1024至 16383时所指示的含义保留; 该 Flags字段用于表示 ONU 是否上报上行发送緩存的大小, 并表示 ONU是否发送 PLOAM 消息; 该 StartTime字段表示 ONU发送的开始时间; 该 GrantSize字段用于表示 ONU 发送的时间长度; 该 FWI字段表示 ONU唤醒标识; 该 BurstProfile字段表 示突发模板索引; 该 HEC字段表示混合错误纠正。 The Allocation structure 1 field, the Allocation structure 2 field, and the Allocation structure N field, where N is a natural number, each Allocation structure field may be 8 bytes in length, and each Allocation structure field may include a 14-bit Alloc-ID field, 2-bit Flags field, 16-bit StartTime field, 16-bit GrantSize field, 1-bit FWI field, 2-bit BurstProfile field, and 13-bit HEC field, where the Alloc-ID field is used to represent the bandwidth in the ONU The identifier of the allocation unit, the meaning of the Alloc-ID field is 1024 to 16383. The Flags field is used to indicate whether the ONU reports the size of the uplink transmission buffer, and indicates whether the ONU sends a PLOAM message. Indicates the start time of the ONU transmission; the GrantSize field is used to indicate the length of time that the ONU sends; the FWI field indicates the ONU wakeup identifier; the BurstProfile field indicates the burst template index; and the HEC field indicates the hybrid error correction.
根据本发明实施例的用于指示允许注册设备的设备类型的注册请求可 以不改变图 7所示的 Allocation structure字段结构, 而可以仅仅对 Allocation structure字段中的一些字段的取值重新定义, 以指示允许注册设备的设备类 型。 例如, 在 Alloc-ID字段的取值为 1024时, 可以指示允许注册设备为 PtP WDM-PON ONU; 又例如, 在 Alloc-ID字段的取值为 1024至 16383之间的 值时,用于指示允许注册设备为 TWDM-PON ONU或 PtP WDM-PON ONU。  The registration request for indicating the device type of the device to be registered according to the embodiment of the present invention may not change the Allocation structure field structure shown in FIG. 7, but may only redefine the values of some fields in the Allocation structure field to indicate The type of device that is allowed to register the device. For example, when the value of the Alloc-ID field is 1024, it may indicate that the device is allowed to be a PtP WDM-PON ONU; for example, when the value of the Alloc-ID field is a value between 1024 and 16383, it is used to indicate Allow registration of devices as TWDM-PON ONU or PtP WDM-PON ONU.
另一方面,根据本发明实施例的注册请求也可以改变 Allocation structure 字段结构, 例如, 在 Allocation structure字段中包括用于指示允许注册设备 的设备类型的 ONU Type字段,该 ONU Type字段的长度可以至少为 1比特, 该 ONU Type字段的取值例如可以为 "0" 和 "1", 其中, 取值 "0" 例如指 示允许注册设备为 TWDM-PON ONU或 PtMP ONU; 取值 "Γ 例如指示允 许注册设备为 PtP WDM-PON ONU或 PtP ONU, 但本发明并不限于此。  On the other hand, the registration request according to the embodiment of the present invention may also change the Allocation structure field structure, for example, including an ONU Type field indicating a device type of the device to be registered in the Allocation structure field, the ONU Type field may be at least For 1 bit, the value of the ONU Type field may be, for example, "0" and "1", where the value "0" indicates, for example, that the device is allowed to be a TWDM-PON ONU or a PtMP ONU; the value "" indicates, for example, permission The registered device is a PtP WDM-PON ONU or a PtP ONU, but the present invention is not limited thereto.
在本发明实施例中, 可选地, 接收该 OLT发送的注册请求, 包括: 接收该 OLT通过物理层运行与维护 PLOAM消息发送的该注册请求, 该 PLOAM消息包括用于指示该允许注册设备的设备类型的字段。  In the embodiment of the present invention, optionally, receiving the registration request sent by the OLT includes: receiving the registration request sent by the OLT to run and maintain a PLOAM message through a physical layer, where the PLOAM message includes The field of the device type.
即在该实施例中, ONU可以接收 OLT发送的 PLOAM消息,该 PLOAM 消息可以包括用于指示该允许注册设备的设备类型的字段。 类似地, 可以釆 用 PLOAM消息的现有字段结构, 或在 PLOAM消息中增加字段, 来指示允 许注册设备的设备类型, 但本发明并不限于此。  That is, in this embodiment, the ONU may receive a PLOAM message sent by the OLT, and the PLOAM message may include a field indicating the device type of the device to be registered. Similarly, the existing field structure of the PLOAM message can be used, or a field can be added to the PLOAM message to indicate the device type that allows the device to be registered, but the invention is not limited thereto.
在本发明实施例中, 可选地, 该上行帧携带的用于指示该 ONU的设备 类型的字段包括无源光网络操作控制体 PON OC Body字段或无源光网络标 识 PON ID字段, 该 PON OC Body字段和该 PON ID字段用于指示该 ONU 所在的下行波长通道的类型, 以指示该 ONU的设备类型。 元向光线路终端发送注册响应, 并接收光线路终端发送的上行波长通道的类 型信息,从而能够在多个无源光网络***共存情况下识别上行波长通道的类 型, 由此能够将类型相匹配的上行波长通道的波长确定为 ONU的目标上行 波长, 从而能够正确地进行波长初始化, 并能够避免对其它设备的干扰。 In the embodiment of the present invention, optionally, the field that is used by the uplink frame to indicate the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identifier PON ID field, where the PON The OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located to indicate the device type of the ONU. The element sends a registration response to the optical line terminal, and receives the type information of the uplink wavelength channel sent by the optical line terminal, so that the type of the uplink wavelength channel can be identified in the case where multiple passive optical network systems coexist, thereby being able to match the type The wavelength of the upstream wavelength channel is determined as the target upstream wavelength of the ONU, so that wavelength initialization can be correctly performed, and interference with other devices can be avoided.
在本发明实施例中, 可选地, 如图 8所示, 在该光网络单元 ONU接收 光线路终端 OLT发送的下行帧之前, 该方法 200还包括:  In the embodiment of the present invention, optionally, as shown in FIG. 8, before the optical network unit ONU receives the downlink frame sent by the optical line terminal OLT, the method 200 further includes:
S250, 接收该 OLT根据该注册响应或该上行帧发送的波长通道切换命 令或波长调节命令, 以指示该 ONU进行上行波长校准。  S250. Receive a wavelength channel switching command or a wavelength adjustment command sent by the OLT according to the registration response or the uplink frame, to instruct the ONU to perform uplink wavelength calibration.
具体而言, 在 ONU向 OLT发送注册响应后, OLT可以根据接收该注册 响应光信号的测量功率值, 确定 ONU发送该注册响应的上行波长是否与 OLT釆用的上行波长通道的接收波长完全对准。 例如, 当 OLT根据接收功 率小于阔值时,可以确定 ONU发送注册响应的上行波长与 OLT釆用的上行 波长通道并非完全对应, 于是 OLT可以向 ONU发送波长通道切换命令或波 长调节命令, 以指示该 ONU进行上行波长校准。 优选地, ONU接收 OLT 根据该注册响应发送的波长调节命令, 以指示该 ONU进行上行波长校准。 该波长调节命令例如可以具有表 4所示的结构和内容。  Specifically, after the ONU sends the registration response to the OLT, the OLT may determine, according to the measured power value of the received response optical signal, whether the uplink wavelength of the ONU sending the registration response is completely opposite to the receiving wavelength of the uplink wavelength channel used by the OLT. quasi. For example, when the OLT is less than the threshold according to the received power, it may be determined that the uplink wavelength of the ONU sending the registration response does not completely correspond to the uplink wavelength channel used by the OLT, and the OLT may send a wavelength channel switching command or a wavelength adjustment command to the ONU to indicate The ONU performs upstream wavelength calibration. Preferably, the ONU receives a wavelength adjustment command sent by the OLT according to the registration response to instruct the ONU to perform uplink wavelength calibration. The wavelength adjustment command may have, for example, the structure and contents shown in Table 4.
表 4  Table 4
八位组  Octet
内容 描述  Description
序号  Serial number
取值为 0x03FF时, Vender-ID 和 VSSN为有效 Vender-ID and VSSN are valid when the value is 0x03FF
1-2 ONU-ID 1-2 ONU-ID
取值  Value
3 TBD 波长调节消息  3 TBD wavelength adjustment message
4 Seq No 序列号  4 Seq No serial number
[ATIS-0300220]遵守规定的供应商标识  [ATIS-0300220] Compliance with the Supplier ID
遵守 ASCII/ANSI规定的字符  Obey ASCII/ANSI-compliant characters
5-8  5-8
Vendor-ID 例如: Vendor—ID = ABCD → Byte 5 = 0x41, Byte  Vendor-ID For example: Vendor—ID = ABCD → Byte 5 = 0x41, Byte
6 = 0x42, Byte 7 = 0x43, Byte 8 = 0x44.  6 = 0x42, Byte 7 = 0x43, Byte 8 = 0x44.
9-12 VSSN 供应商序列号  9-12 VSSN Supplier Serial Number
D:调节方向  D: adjust direction
13 0000 000D  13 0000 000D
D = 0-往短波长调 D = 1-往长波长调 D = 0 - to short wavelength D = 1- to long wavelength
14 Tune step 单位为设备支持的最小调节粒度  14 Tune step unit is the minimum adjustment granularity supported by the device
15-40 Padding 填充  15-40 Padding padding
41-48 MIC 消息完整性校验  41-48 MIC Message Integrity Check
ONU接收到该波长通道切换命令或波长调节命令, 可以对发送注册响 应的上行波长进行微调, 并采用调节后的上行波长可以再次向 OLT发送该 注册响应, 由此可以接收 OLT根据该注册响应发送的上行波长通道信息。 The ONU receives the wavelength channel switching command or the wavelength adjustment command, and can finely adjust the uplink wavelength of the sending registration response, and can send the registration response to the OLT again by using the adjusted uplink wavelength, so that the receiving OLT can send according to the registration response. Upstream wavelength channel information.
应理解, 在根据本发明的波长初始化的方法的上述和下列实施例中, 以 It should be understood that in the above and below embodiments of the method of wavelength initialization according to the present invention,
PtP WDM-PON ONU进行波长初始化为例进行说明, 但本发明并不限于此, 行波长初始化。 The PtP WDM-PON ONU performs wavelength initialization as an example, but the present invention is not limited thereto, and the line wavelength is initialized.
还应理解, 在本发明的各种实施例中, 上述各过程的序号的大小并不意 味着执行顺序的先后, 各过程的执行顺序应以其功能和内在逻辑确定, 而不 应对本发明实施例的实施过程构成任何限定。  It should also be understood that, in various embodiments of the present invention, the size of the sequence numbers of the above processes does not imply a sequence of execution orders, and the order of execution of the processes should be determined by its function and internal logic, and should not be implemented by the present invention. The implementation of the examples constitutes any limitation.
因此, 本发明实施例的无源光网络中波长初始化的方法, 通过光网络单 元向光线路终端发送注册响应, 并接收光线路终端发送的上行波长通道的类 型信息, 从而能够在多个无源光网络***共存情况下识别上行波长通道的类 型, 由此能够将类型相匹配的上行波长通道的波长确定为 ONU的目标上行 波长, 从而能够正确地进行波长初始化, 并能够避免对其它设备的干扰。  Therefore, the method for initializing the wavelength in the passive optical network according to the embodiment of the present invention transmits the registration response to the optical line terminal through the optical network unit, and receives the type information of the uplink wavelength channel sent by the optical line terminal, thereby being able to be passive in multiple When the optical network system coexists, the type of the upstream wavelength channel is identified, so that the wavelength of the upstream wavelength channel matched by the type can be determined as the target upstream wavelength of the ONU, so that the wavelength initialization can be correctly performed, and interference with other devices can be avoided. .
上文中结合图 1至图 8,从 ONU侧详细描述了根据本发明实施例的 ONU 的下行波长初始^ <的方法 100以及上行波长初始化的方法 200, 下面将结合 图 9至图 12,从 ONU侧详细描述根据本发明实施例的设备注册的方法 300。  With reference to FIG. 1 to FIG. 8 above, a method 100 for downlink wavelength initialization of an ONU and a method 200 for uplink wavelength initialization according to an embodiment of the present invention are described in detail from the ONU side, and will be described below with reference to FIG. 9 to FIG. A method 300 of device registration in accordance with an embodiment of the present invention is described in detail.
图 9示出了根据本发明实施例的设备注册的方法 300的示意性流程图, 该方法 300可以由 ONT和 /或 ONU执行,例如,该方法 300由 PtP WDM-PON ONU执行。 如图 9所示, 该方法 300包括:  9 shows a schematic flow diagram of a method 300 of device registration, which may be performed by an ONT and/or an ONU, for example, the method 300 is performed by a PtP WDM-PON ONU, in accordance with an embodiment of the present invention. As shown in FIG. 9, the method 300 includes:
S310, 向光线路终端 OLT发送注册响应, 该注册响应用于请求该 OLT 分配标识, 并且该注册响应携带用于指示光网絡单元 ONU的设备类型的字 段;  S310. Send a registration response to the optical line terminal OLT, where the registration response is used to request the OLT to allocate an identifier, and the registration response carries a field indicating a device type of the optical network unit ONU.
S320,接收该 OLT在根据该注册响应确定该 ONU的设备类型与允许注 册设备的设备类型匹配时发送的该 ONU的设备标识; S330, 根据该设备标识进行信息的传输。 求分配标识的注册响应, 并且该注册响应携带用于指示光网络单元 ONU的 设备类型的字段; OLT根据该注册响应, 可以确定该 ONU的设备类型与允 许注册设备的设备类型是否匹配, 如果匹配, OLT可以向 ONU发送 ONU 的设备标识; 如果不匹配, OLT可以指示 ONU重新注册等。 因此, ONU可 以接收 OLT在确定该 ONU的设备类型与允许注册设备的设备类型匹配时发 送的该 ONU的设备标识; 并可以根据该设备标识进行信息的传输, 从而实 现 ONU的注册。 S320. Receive a device identifier of the ONU that is sent by the OLT when determining, according to the registration response, that the device type of the ONU matches the device type of the device to be registered. S330. Perform information transmission according to the device identifier. And obtaining a registration response of the identifier, and the registration response carries a field for indicating a device type of the optical network unit ONU; the OLT may determine, according to the registration response, whether the device type of the ONU matches the device type of the device to be registered, if the match The OLT may send the device identifier of the ONU to the ONU; if not, the OLT may instruct the ONU to re-register. Therefore, the ONU can receive the device identifier of the ONU sent by the OLT when determining the device type of the ONU to match the device type of the device to be registered; and can perform information transmission according to the device identifier, thereby implementing registration of the ONU.
因此, 本发明实施例的无源光网络中设备注册的方法, 通过光网络单元 向光线路终端发送注册响应, 并在该注册响应中携带用于指示光网络单元的 设备类型的字段,使得光线路终端能够根据该注册响应确定光网络单元的设 备类型与允许注册设备的设备类型是否匹配, 并在匹配时向光网络单元发送 设备标识,从而在多个无源光网络***共存情况下使得光线路终端能够识别 请求注册的设备的类型, 并能够向类型相匹配的光网络单元发送设备标识, 由此能够正确地进行设备注册, 并能够避免对其它设备的干扰。 请求上行波长校准的注册响应, 并且该注册响应携带用于指示该 ONU的设 备类型的 ONU Type字段。 例如, 该 ONU Type字段的长度可以至少为 1比 特, 该 ONU Type字段的取值例如可以为 "0" 和 "1", 其中, 取值 "0" 例 如指示该 ONU为 TWDM-PON ONU或 PtMP ONU; 取值 "Γ 例如指示该 ONU为 PtP WDM-PON ONU或 PtP ONU, 但本发明并不限于此。  Therefore, the device registration method in the passive optical network in the embodiment of the present invention sends a registration response to the optical line terminal through the optical network unit, and carries a field indicating the device type of the optical network unit in the registration response, so that the light The line terminal can determine, according to the registration response, whether the device type of the optical network unit matches the device type of the device to be registered, and send the device identifier to the optical network unit when matching, thereby enabling the light to coexist in the case of multiple passive optical network systems. The line terminal can identify the type of device requesting registration and can transmit the device identification to the optical network unit of the matching type, thereby enabling device registration to be correctly performed and interference with other devices can be avoided. A registration response for the upstream wavelength calibration is requested, and the registration response carries an ONU Type field indicating the device type of the ONU. For example, the length of the ONU Type field may be at least 1 bit, and the value of the ONU Type field may be "0" and "1", for example, where the value "0" indicates that the ONU is TWDM-PON ONU or PtMP. ONU; The value "Γ" indicates that the ONU is a PtP WDM-PON ONU or a PtP ONU, but the present invention is not limited thereto.
可选地, 在本发明实施例中, 该注册响应携带的用于指示该 ONU的设 备类型的字段包括无源光网络操作控制体 PON OC Body字段或无源光网络 标识 PON ID字段,该 PON OC Body字段和该 PON ID字段用于指示该 ONU 所在的下行波长通道的类型, 以指示该 ONU的设备类型。 该注册响应可以 具有如表 2所示的结构和内容, 为了简洁, 在此不再赘述。  Optionally, in the embodiment of the present invention, the field that is used by the registration response to indicate the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identifier PON ID field, and the PON The OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located to indicate the device type of the ONU. The registration response may have the structure and content as shown in Table 2. For brevity, no further details are provided herein.
在本发明实施例中, 可选地, 如图 10所示, 该方法 300还包括: S340, 接收该 OLT发送的注册请求, 该注册请求携带用于指示允许注 册设备的设备类型的字段;  In the embodiment of the present invention, optionally, as shown in FIG. 10, the method 300 further includes: S340, receiving a registration request sent by the OLT, where the registration request carries a field for indicating a device type of the device to be registered;
其中, S310该向光线路终端 OLT发送注册响应, 包括: 5311 ,确定该 ONU的设备类型与该允许注册设备的设备类型是否匹配;The S310 sends the registration response to the optical line terminal OLT, including: 5311. Determine whether the device type of the ONU matches the device type of the device to be registered.
5312,在确定该 ONU的设备类型与该允许注册设备的设备类型匹配时, 向该 OLT发送该注册响应。 5312. Send a registration response to the OLT when determining that the device type of the ONU matches the device type of the allowed registration device.
即在本发明实施例中, ONU可以先接收 OLT发送的注册请求, 并可以 根据该注册请求指示的允许注册设备的设备类型, 确定该 ONU的设备类型 与该允许注册设备的设备类型是否匹配; 如果匹配, 则 ONU可以向该 OLT 发送用于请求分配设备标识的的注册响应,该注册响应携带用于指示该 ONU 的设备类型的字段, 并且在该 ONU接收到 OLT分配的设备标识后, 可以根 据该设备标识进行信息的传输; 如果不匹配, 则 ONU不向该 OLT发送该注 册响应。  That is, in the embodiment of the present invention, the ONU may first receive the registration request sent by the OLT, and determine whether the device type of the ONU matches the device type of the allowed registration device according to the device type of the device to be registered indicated by the registration request. If the match is made, the ONU may send a registration response for requesting the device identifier to the OLT, where the registration response carries a field indicating the device type of the ONU, and after the ONU receives the device identifier assigned by the OLT, The information is transmitted according to the device identifier; if it does not match, the ONU does not send the registration response to the OLT.
在本发明实施例中, ONU可以接收 OLT通过多种方式发送的注册请求, 以指示允许注册设备的设备类型。  In the embodiment of the present invention, the ONU may receive a registration request sent by the OLT in multiple manners to indicate the device type of the device to be registered.
可选地, 该接收该 OLT发送的注册请求, 包括: 接收该 OLT发送的包 括分配结构 Allocation structure字段的该注册请求, 该分配结构字段中的分 配单元标识 Alloc-ID字段的取值指示该允许注册设备的设备类型;或该分配 结构字段包括取值用于指示该允许注册设备的设备类型的字段。  Optionally, the receiving the registration request sent by the OLT comprises: receiving the registration request that is sent by the OLT, including an allocation structure, an Allocation structure field, where the value of the allocation unit identifier Alloc-ID field in the allocation structure field indicates the permission Registering the device type of the device; or the allocation structure field includes a field that takes a value indicating the device type of the device that is allowed to be registered.
可选地, 该接收该 OLT发送的注册请求, 包括: 接收该 OLT通过物理 层运行与维护 PLOAM消息发送的该注册请求, 该 PLOAM消息包括用于指 示该允许注册设备的设备类型的字段。  Optionally, the receiving the registration request sent by the OLT comprises: receiving the registration request sent by the OLT to run and maintain a PLOAM message through a physical layer, where the PLOAM message includes a field for indicating a device type of the device to be registered.
即在本发明实施例中, 用于指示允许注册设备的设备类型的字段既可以 携带在 Allocation structure字段中, 也可以携带在 PLOAM消息, 但本发明 并不限于此, 该字段还可以携带在其它字段或消息中。  That is, in the embodiment of the present invention, the field for indicating the device type of the device to be registered may be carried in the Allocation structure field or may be carried in the PLOAM message, but the present invention is not limited thereto, and the field may be carried in other fields. In a field or message.
因此, 本发明实施例的无源光网络中设备注册的方法, 通过光网络单元 向光线路终端发送注册响应, 并在该注册响应中携带用于指示光网络单元的 设备类型的字段,使得光线路终端能够根据该注册响应确定光网络单元的设 备类型与允许注册设备的设备类型是否匹配, 并在匹配时向光网络单元发送 设备标识,从而在多个无源光网络***共存情况下使得光线路终端能够识别 请求注册的设备的类型, 并能够向类型相匹配的光网络单元发送设备标识, 由此能够正确地进行设备注册, 并能够避免对其它设备的干扰。  Therefore, the device registration method in the passive optical network in the embodiment of the present invention sends a registration response to the optical line terminal through the optical network unit, and carries a field indicating the device type of the optical network unit in the registration response, so that the light The line terminal can determine, according to the registration response, whether the device type of the optical network unit matches the device type of the device to be registered, and send the device identifier to the optical network unit when matching, thereby enabling the light to coexist in the case of multiple passive optical network systems. The line terminal can identify the type of device requesting registration and can transmit the device identification to the optical network unit of the matching type, thereby enabling device registration to be correctly performed and interference with other devices can be avoided.
在本发明实施例中, 可选地, 如图 11所示, 在该接收该 OLT在根据该 注册响应确定该 ONU的设备类型与允许注册设备的设备类型匹配时发送的 该 ONU的设备标识之后, 该方法 300还包括: In the embodiment of the present invention, optionally, as shown in FIG. 11, when the receiving OLT determines that the device type of the ONU matches the device type of the device to be registered according to the registration response, After the device identifier of the ONU, the method 300 further includes:
S350, 向该 OLT发送确认信息, 该确认信息用于指示该 ONU接收到该 设备标识。  S350. Send an acknowledgment message to the OLT, where the acknowledgment information is used to indicate that the ONU receives the device identifier.
其中, ONU向 OLT发送的确认信息例如可以具有如下表 5所示的结构 和内容。  The confirmation information transmitted by the ONU to the OLT may have, for example, the structure and contents shown in Table 5 below.
表 5  table 5
Figure imgf000036_0002
如表 5所示, 在该消息格式中, 可以用第 3个八位组中的内容 "0x09" 表示 ONU已经接收到 OLT分配的设备标识 ONU-ID, 由此 ONU完成设备 的注册, 可以开启业务通道进行信息的传输。
Figure imgf000036_0002
As shown in Table 5, in the message format, the content "0x09" in the third octet can be used to indicate that the ONU has received the device identification ONU-ID assigned by the OLT, and thus the ONU completes the registration of the device, and can be started. The service channel transmits information.
在本发明实施例中, 可选地, 如图 12所示, 该方法 300还包括: S360,接收该 OLT在根据该注册响应确定该 ONU的设备类型与该允许 注册设备的设备类型不匹配时发送的波长通道切换命令, 以指示该 ONU重 新注册。  In the embodiment of the present invention, optionally, as shown in FIG. 12, the method 300 further includes: S360, receiving, when the OLT determines, according to the registration response, that the device type of the ONU does not match the device type of the allowed registration device. The wavelength channel switching command sent to indicate that the ONU is re-registered.
即在本发明实施例中, ONU向 OLT发送注册响应, 并且该注册响应携 带用于指示光网络单元 ONU的设备类型的字段, OLT根据该注册响应, 可 以确定该 ONU的设备类型与允许注册设备的设备类型是否匹配,如果匹配, OLT可以向 ONU发送 ONU的设备标识; 如果不匹配, OLT可以向 ONU发 送波长通道切换命令, 以指示 ONU重新注册。 该波长通道切换命令例如可 以具有如表 6所示的结构和内容。  That is, in the embodiment of the present invention, the ONU sends a registration response to the OLT, and the registration response carries a field for indicating the device type of the optical network unit ONU, and the OLT can determine the device type of the ONU and the device to be registered according to the registration response. Whether the device types match, if they match, the OLT can send the device identifier of the ONU to the ONU; if not, the OLT can send a wavelength channel switching command to the ONU to instruct the ONU to re-register. The wavelength channel switching command can have, for example, the structure and contents as shown in Table 6.
Figure imgf000036_0001
1-2 ONU-ID 表示指定的 ONU
Figure imgf000036_0001
1-2 ONU-ID indicates the specified ONU
3 0x21 表示消息类型为波长通道切换 3 0x21 indicates that the message type is wavelength channel switching
4 SeqNo 表示单播 PLOAM的序列号  4 SeqNo indicates the serial number of the unicast PLOAM
Operation  Operation
5 其中, 取值 "0" 表示请求; 取值 "1" 表示确认  5 where the value "0" indicates the request; the value "1" indicates the confirmation
Code  Code
表示指定的波长, 其中, AAA表示上行波长; BBB Indicates the specified wavelength, where AAA indicates the upstream wavelength; BBB
6 OAAA OBBB 6 OAAA OBBB
表示下行波长  Indicates downstream wavelength
7-40 Padding 表示填充  7-40 Padding means padding
41-48 MIC 表示消息完整性校验 应理解, 在根据本发明的设备注册的方法的上述和下列实施例中, 以 41-48 MIC Represents Message Integrity Check It should be understood that in the above and below embodiments of the method of device registration according to the present invention,
PtP WDM-PON ONU进行设备注册为例进行说明, 但本发明并不限于此, 例 设备注册。 The PtP WDM-PON ONU performs device registration as an example for description, but the present invention is not limited thereto, and the device is registered.
还应理解, 在本发明的各种实施例中, 上述各过程的序号的大小并不意 味着执行顺序的先后, 各过程的执行顺序应以其功能和内在逻辑确定, 而不 应对本发明实施例的实施过程构成任何限定。  It should also be understood that, in various embodiments of the present invention, the size of the sequence numbers of the above processes does not imply a sequence of execution orders, and the order of execution of the processes should be determined by its function and internal logic, and should not be implemented by the present invention. The implementation of the examples constitutes any limitation.
因此, 本发明实施例的无源光网络中设备注册的方法, 通过光网络单元 向光线路终端发送注册响应, 并在该注册响应中携带用于指示光网络单元的 设备类型的字段,使得光线路终端能够根据该注册响应确定光网络单元的设 备类型与允许注册设备的设备类型是否匹配, 并在匹配时向光网络单元发送 设备标识, 从而在多个无源光网络***共存情况下使得光线路终端能够识别 请求注册的设备的类型, 并能够向类型相匹配的光网络单元发送设备标识, 由此能够正确地进行设备注册, 并能够避免对其它设备的干扰。  Therefore, the device registration method in the passive optical network in the embodiment of the present invention sends a registration response to the optical line terminal through the optical network unit, and carries a field indicating the device type of the optical network unit in the registration response, so that the light The line terminal can determine, according to the registration response, whether the device type of the optical network unit matches the device type of the device to be registered, and send the device identifier to the optical network unit when matching, thereby enabling the light to coexist in the case of multiple passive optical network systems. The line terminal can identify the type of device requesting registration and can transmit the device identification to the optical network unit of the matching type, thereby enabling device registration to be correctly performed and interference with other devices can be avoided.
上文中结合图 1 至图 12, 从 ONU侧详细描述了根据本发明实施例的 In the above, with reference to FIG. 1 to FIG. 12, the embodiment of the present invention is described in detail from the ONU side.
ONU的下行波长初始 的方法 100、上行波长初始 的方法 200以及设备注 册的方法 300, 下面将结合图 13至图 20, 从 OLT侧详细描述根据本发明实 施例的波长初始化的方法和设备注册的方法。 The downlink wavelength initial method 100 of the ONU, the upstream wavelength initial method 200, and the device registration method 300, and the wavelength initialization method and device registration according to the embodiment of the present invention will be described in detail from the OLT side with reference to FIG. 13 to FIG. method.
图 13示出了根据本发明实施例的波长初始化的方法 400的示意性流程 图, 该方法 400可以由 OLT执行, 例如, 该方法 400由 PtP WDM-PON OLT 执行。 如图 13所示, 该方法 400包括: S410, 确定波长通道信息, 该波长通道信息包括下行波长通道信息和 / 或上行波长通道信息, 其中, 该下行波长通道信息包括光线路终端 OLT 当 前釆用的下行波长通道的类型, 该上行波长通道信息包括上行波长通道的类 型; 13 shows a schematic flow diagram of a method 400 of wavelength initialization, which may be performed by an OLT, for example, performed by a PtP WDM-PON OLT, in accordance with an embodiment of the present invention. As shown in FIG. 13, the method 400 includes: S410, determining wavelength channel information, where the wavelength channel information includes downlink wavelength channel information and/or uplink wavelength channel information, where the downlink wavelength channel information includes a type of a downlink wavelength channel currently used by the optical line terminal OLT, and the uplink wavelength channel The information includes the type of the upstream wavelength channel;
S420, 向光网络单元 ONU发送该波长通道信息。 端确定包括下行波长通道信息和 /或上行波长通道信息的波长通道信息,并向 光网络单元发送该波长通道信息,使得光网络单元能够获知下行波长通道和 /或上行波长通道的信息,从而能够在多个无源光网络***共存情况下识别下 行波长通道和 /或上行波长通道的类型, 由此能够正确地进行波长初始化,并 能够避免对其它设备的干扰。  S420. Send the wavelength channel information to the optical network unit ONU. The terminal determines the wavelength channel information including the downlink wavelength channel information and/or the uplink wavelength channel information, and sends the wavelength channel information to the optical network unit, so that the optical network unit can learn the information of the downlink wavelength channel and/or the uplink wavelength channel, thereby enabling the optical network unit to The type of the downstream wavelength channel and/or the upstream wavelength channel is identified in the case where a plurality of passive optical network systems coexist, thereby enabling wavelength initialization to be correctly performed and interference with other devices can be avoided.
在本发明实施例中, 可选地, 在该波长通道信息包括该下行波长通道信 息时, 该向光网络单元 ONU发送该波长通道信息, 包括: 向该 ONU发送 下行物理同步块 PSBd或模板物理层运行与维护 Profile PLOAM消息,其中, 该下行物理同步块承载该下行波长通道信息, 该 Profile PLOAM消息包括该 下行波长通道信息。  In the embodiment of the present invention, optionally, when the wavelength channel information includes the downlink wavelength channel information, the transmitting the wavelength channel information to the optical network unit ONU includes: sending a downlink physical synchronization block PSBd or template physics to the ONU. The Layer 2 layer runs and maintains the Profile PLOAM message, where the downlink physical synchronization block carries the downlink wavelength channel information, and the Profile PLOAM message includes the downlink wavelength channel information.
可选地,该下行物理同步块包括的无源光网络操作控制体 PON OC Body 字段承载该下行波长通道信息; 或该下行物理同步块包括的无源光网络标识 PON ID字段 7 载该下行波长通道信息。  Optionally, the downlink optical synchronization block includes a passive optical network operation control body PON OC Body field carrying the downlink wavelength channel information; or the downlink physical synchronization block includes a passive optical network identifier PON ID field 7 carrying the downlink wavelength Channel information.
例如, 该下行波长通道信息可以由 PSBd字段承载, 具体地, 该信息可 以由 PSBd字段所包括的任一字段承载, 该字段的格式例如如图 3至图 4c 所示; 另一方面, 承载该下行波长通道信息的 Profile PLOAM消息可以具有 如表 1所示的内容和格式, 但为了简洁, 在此不再赘述。  For example, the downlink wavelength channel information may be carried by the PSBd field. Specifically, the information may be carried by any field included in the PSBd field, and the format of the field is, for example, as shown in FIG. 3 to FIG. 4c; The profile PLOAM message of the downlink wavelength channel information may have the content and format as shown in Table 1, but for brevity, no further details are provided herein.
可选地, 该下行波长通道信息还包括该下行波长通道能够传输的下行业 务的类型; 该上行波长通道信息还包括该上行波长通道能够传输的上行业务 的类型。  Optionally, the downlink wavelength channel information further includes a type of the downlink service that the downlink wavelength channel can transmit; the uplink wavelength channel information further includes a type of the uplink service that the uplink wavelength channel can transmit.
应理解, OLT侧描述的 ONU下行波长初始化的方法与根据本发明实施 例的图 2至图 4c所示的方法 100相对应, 并且 OLT侧描述的 OLT与 ONU 的交互及相关特性、 功能等与 ONU侧的描述相应, 为了简洁, 在此不再赘 述。 端确定下行波长通道信息, 并向光网络单元发送该下行波长通道信息, 使得 光网络单元能够获知下行波长通道的类型和 /或能够传输的下行业务的类型, 从而能够在多个无源光网络***共存情况下识别下行波长通道的类型, 由此 能够正确地进行波长初始化, 并能够避免对其它设备的干扰。 It should be understood that the method for initializing the ONU downlink wavelength described on the OLT side corresponds to the method 100 shown in FIG. 2 to FIG. 4c according to the embodiment of the present invention, and the interaction between the OLT and the ONU described on the OLT side and related characteristics, functions, and the like The description on the ONU side corresponds accordingly, and for brevity, it will not be described again here. The terminal determines the downlink wavelength channel information, and sends the downlink wavelength channel information to the optical network unit, so that the optical network unit can know the type of the downlink wavelength channel and/or the type of the downlink service that can be transmitted, thereby enabling multiple passive optical networks. The type of the downstream wavelength channel is identified in the case of system coexistence, thereby enabling wavelength initialization to be correctly performed and interference with other devices can be avoided.
在本发明实施例中, 如图 14所示, 该方法 400还包括:  In the embodiment of the present invention, as shown in FIG. 14, the method 400 further includes:
S430, 接收该 ONU在该上行波长通道上发送的注册响应, 该注册响应 用于请求上行波长校准, 并且该注册响应携带用于指示该 ONU的设备类型 的字段;  S430. Receive a registration response sent by the ONU on the uplink wavelength channel, where the registration response is used to request an uplink wavelength calibration, and the registration response carries a field indicating a device type of the ONU.
其中, 该向光网络单元 ONU发送该波长通道信息, 包括:  The transmitting the wavelength channel information to the ONU to the optical network unit includes:
S421 , 才艮据该注册响应向该 ONU发送该上行波长通道信息。  S421: Send the uplink wavelength channel information to the ONU according to the registration response.
即在 ONU上行波长初始化的过程中, OLT可以接收 ONU发送的注册 响应,该注册响应包括 ONU的设备类型信息,从而使得 OLT能够获知 ONU 的设备类型。 OLT根据该注册响应可以向该 ONU发送该上行波长通道信息, 从而便于 ONU进行上行波长的初始化。  That is, during the initialization of the ONU upstream wavelength, the OLT can receive the registration response sent by the ONU, and the registration response includes the device type information of the ONU, so that the OLT can know the device type of the ONU. The OLT can send the uplink wavelength channel information to the ONU according to the registration response, so that the ONU can facilitate the initialization of the uplink wavelength.
在本发明实施例中, 可选地, 该注册响应携带的用于指示该 ONU的设 备类型的字段包括无源光网络操作控制体 PON OC Body字段或无源光网络 标识 PON ID字段,该 PON OC Body字段和该 PON ID字段用于指示该 ONU 所在的下行波长通道的类型, 以指示该 ONU的设备类型。 其中, 根据本发 明实施例的注册响应例如可以具有如表 2所示的内容和格式, 为了简洁, 在 此不再赘述。  In the embodiment of the present invention, optionally, the field that is used by the registration response to indicate the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identifier PON ID field, and the PON The OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located to indicate the device type of the ONU. The registration response according to the embodiment of the present invention may have, for example, content and format as shown in Table 2. For brevity, no further details are provided herein.
在本发明实施例中, 可选地, 该注册响应携带的用于指示该 ONU的设 备类型的字段包括无源光网络操作控制体 PON OC Body字段或无源光网络 标识 PON ID字段,该 PON OC Body字段和该 PON ID字段用于指示该 ONU 所在的下行波长通道的类型, 以指示该 ONU的设备类型。  In the embodiment of the present invention, optionally, the field that is used by the registration response to indicate the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identifier PON ID field, and the PON The OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located to indicate the device type of the ONU.
在本发明实施例中, OLT例如可以通过如表 3所示的消息格式,向 ONU 发送上行波长通道信息, 为了简洁, 在此不再赘述。  In the embodiment of the present invention, the OLT may send the uplink wavelength channel information to the ONU by using the message format as shown in Table 3. For brevity, details are not described herein again.
在本发明实施例中, 如图 15所示, 该方法 400还包括:  In the embodiment of the present invention, as shown in FIG. 15, the method 400 further includes:
S440, 向该 ONU发送注册请求, 该注册请求携带用于指示允许注册设 备的设备类型的字段;  S440. Send a registration request to the ONU, where the registration request carries a field for indicating a device type of the device to be registered;
其中, 该接收该 ONU在该上行波长通道上向该 OLT发送的注册响应, 包括: S431 , 接收该 ONU在确定该 ONU的设备类型与该允许注册设备的设 备类型匹配时, 在该上行波长通道上发送的该注册响应。 The receiving the registration response sent by the ONU to the OLT on the uplink wavelength channel includes: S431. Receive the registration response sent by the ONU on the uplink wavelength channel when determining that the device type of the ONU matches the device type of the allowed registration device.
即在本发明实施例中, OLT可以先向 ONU发送注册请求, 该 ONU可 以根据该注册请求指示的允许注册设备的设备类型, 确定该 ONU的设备类 型与该允许注册设备的设备类型是否匹配;如果匹配,则 ONU可以向该 OLT 发送用于请求上行波长校准的注册响应, 该注册响应携带用于指示该 ONU 的设备类型的字段;如果不匹配,则 ONU可以不向该 OLT发送该注册响应, 由此能够减少冲突, 并提高波长初始化的效率。  That is, in the embodiment of the present invention, the OLT may first send a registration request to the ONU, and the ONU may determine, according to the device type of the device that is allowed to register, that is determined by the registration request, whether the device type of the ONU matches the device type of the device to be registered. If matched, the ONU may send a registration response for requesting uplink wavelength calibration to the OLT, the registration response carrying a field indicating the device type of the ONU; if not, the ONU may not send the registration response to the OLT Thus, collisions can be reduced and the efficiency of wavelength initialization can be improved.
在本发明实施例中, OLT可以釆用多种方式向 ONU发送注册请求, 以 指示允许注册设备的设备类型。 可选地, 该向该 ONU发送注册请求, 包括: 向该 ONU发送包括分配结构 Allocation structure字段的该注册请求,该 分配结构字段中的分配单元标识 Alloc-ID 字段的取值指示该允许注册设备 的设备类型; 或该分配结构字段包括取值用于指示该允许注册设备的设备类 型的字段。  In the embodiment of the present invention, the OLT may send a registration request to the ONU in multiple manners to indicate the device type of the device to be registered. Optionally, the sending the registration request to the ONU includes: sending the registration request including an allocation structure Allocation structure field to the ONU, where the value of the allocation unit identifier Alloc-ID field in the allocation structure field indicates the permission to register the device Device type; or the allocation structure field includes a field that takes a value indicating the device type of the device that is allowed to be registered.
在本发明实施例中, 可选地, 该向该 ONU发送注册请求, 包括: 通过物理层运行与维护 PLOAM 消息向该 ONU发送该注册请求, 该 PLOAM消息包括用于指示该允许注册设备的设备类型的字段。  In the embodiment of the present invention, optionally, the sending the registration request to the ONU includes: sending the registration request to the ONU by using a physical layer operation and maintenance PLOAM message, where the PLOAM message includes a device for indicating the permission to register the device. Type of field.
在本发明实施例中, 可选地, 如图 16所示, 在该根据该注册响应向该 ONU发送该上行波长通道信息之前, 该方法 400还包括:  In the embodiment of the present invention, optionally, as shown in FIG. 16, before the sending the uplink wavelength channel information to the ONU according to the registration response, the method 400 further includes:
S450, 根据该注册响应向该 ONU发送波长通道切换命令或波长调节命 令, 以指示该 ONU进行上行波长校准。  S450. Send a wavelength channel switching command or a wavelength adjustment command to the ONU according to the registration response, to instruct the ONU to perform uplink wavelength calibration.
优选地, OLT 4艮据该注册响应向该 ONU发送波长调节命令, 以指示该 ONU进行上行波长校准。  Preferably, the OLT 4 sends a wavelength adjustment command to the ONU according to the registration response to instruct the ONU to perform uplink wavelength calibration.
具体而言, 在 ONU向 OLT发送注册响应后, OLT可以根据接收该注册 响应的功率值,确定 ONU发送该注册响应的上行波长是否与 OLT釆用的上 行波长通道完全对应。 例如, 当 OLT根据接收功率小于阔值时, 可以确定 ONU发送注册响应的上行波长与 OLT釆用的上行波长通道并非完全对应, 于是 OLT可以向 ONU发送波长通道切换命令或波长调节命令, 以指示该 ONU进行上行波长校准。优选地, ONU接收 OLT根据该注册响应发送的波 长调节命令, 以指示该 ONU进行上行波长校准。 该波长调节命令例如可以 具有表 4所示的结构和内容, 为了简洁, 在此不再赘述。 例的图 5至图 8所示的方法 200相对应, 并且 OLT侧描述的 OLT与 ONU 的交互及相关特性、 功能等与 ONU侧的描述相应, 为了简洁, 在此不再赘 述。 Specifically, after the ONU sends the registration response to the OLT, the OLT may determine, according to the power value of receiving the registration response, whether the uplink wavelength of the ONU sending the registration response completely corresponds to the uplink wavelength channel used by the OLT. For example, when the OLT is less than the threshold according to the received power, it may be determined that the uplink wavelength of the ONU sending the registration response does not completely correspond to the uplink wavelength channel used by the OLT, and the OLT may send a wavelength channel switching command or a wavelength adjustment command to the ONU to indicate The ONU performs upstream wavelength calibration. Preferably, the ONU receives a wavelength adjustment command sent by the OLT according to the registration response to instruct the ONU to perform uplink wavelength calibration. The wavelength adjustment command may have the structure and content shown in Table 4, for brevity, and details are not described herein again. The method 200 shown in FIG. 5 to FIG. 8 corresponds to the method, and the interaction between the OLT and the ONU described on the OLT side and related features and functions are corresponding to the description on the ONU side. For brevity, details are not described herein again.
应理解, 在才艮据本发明的波长初始化的方法的上述和下列实施例中, 以 It should be understood that in the above and below embodiments of the method of wavelength initialization according to the present invention,
PtP WDM-PON ONU进行波长初始化为例进行说明, 但本发明并不限于此, 行波长初始化。 The PtP WDM-PON ONU performs wavelength initialization as an example, but the present invention is not limited thereto, and the line wavelength is initialized.
还应理解, 在本发明的各种实施例中, 上述各过程的序号的大小并不意 味着执行顺序的先后, 各过程的执行顺序应以其功能和内在逻辑确定, 而不 应对本发明实施例的实施过程构成任何限定。 端接收光网络单元发送的注册响应, 并向光网络单元发送上行波长通道的类 型信息, 从而使得光网络单元在多个无源光网络***共存情况下, 能够识别 上行波长通道的类型和 /或能够传输的下行业务的类型等信息,由此能够正确 地进行波长初始化, 并能够避免对其它设备的干扰。  It should also be understood that, in various embodiments of the present invention, the size of the sequence numbers of the above processes does not imply a sequence of execution orders, and the order of execution of the processes should be determined by its function and internal logic, and should not be implemented by the present invention. The implementation of the examples constitutes any limitation. The terminal receives the registration response sent by the optical network unit, and sends the type information of the uplink wavelength channel to the optical network unit, so that the optical network unit can identify the type of the uplink wavelength channel and/or the coexistence of multiple passive optical network systems. Information such as the type of downlink service that can be transmitted, thereby enabling wavelength initialization to be performed correctly, and interference with other devices can be avoided.
下面将结合图 17至图 20,从 OLT侧详细描述根据本发明实施例的设备 注册的方法。  A method of device registration according to an embodiment of the present invention will be described in detail from the OLT side with reference to Figs. 17 to 20 .
图 17示出了根据本发明实施例的设备注册的方法 500的示意性流程图, 该方法 500可以由 OLT执行, 例如, 该方法 500由 PtP WDM-PON OLT执 行。 如图 17所示, 该方法 500包括:  Figure 17 shows a schematic flow diagram of a method 500 of device registration, which may be performed by an OLT, for example, by a PtP WDM-PON OLT, in accordance with an embodiment of the present invention. As shown in FIG. 17, the method 500 includes:
S510, 接收光网络单元 ONU发送的注册响应, 该注册响应用于请求光 线路终端 OLT分配标识, 并且该注册响应携带用于指示该 ONU的设备类型 的字段;  S510. Receive a registration response sent by the optical network unit ONU, where the registration response is used to request the optical line terminal OLT to allocate an identifier, and the registration response carries a field for indicating a device type of the ONU.
S520, 根据该注册响应确定该 ONU的设备类型与允许注册设备的设备 类型是否匹配;  S520. Determine, according to the registration response, whether the device type of the ONU matches the device type of the device to be registered.
S530,在确定该 ONU的设备类型与该允许注册设备的设备类型匹配时, 向该 ONU发送该 ONU的设备标识。  S530. When it is determined that the device type of the ONU matches the device type of the allowed registration device, send the device identifier of the ONU to the ONU.
具体而言,光线路终端 OLT接收光网络单元 ONU发送的用于请求分配 标识的注册响应, 并且该注册响应携带用于指示光网络单元 ONU的设备类 型的字段; OLT根据该注册响应, 可以确定该 ONU的设备类型与允许注册 设备的设备类型是否匹配, 如果匹配, OLT可以向 ONU发送 ONU的设备 标识; 如果不匹配, OLT可以指示 ONU重新注册等。 由此, OLT在确定该 ONU 的设备类型与允许注册设备的设备类型匹配时, 可以向 ONU发送该 ONU的设备标识, 使得 ONU可以根据该设备标识进行信息的传输, 从而实 现 ONU的注册。 Specifically, the optical line terminal OLT receives the registration response sent by the optical network unit ONU for requesting the allocation of the identifier, and the registration response carries a field for indicating the device type of the optical network unit ONU; the OLT can determine according to the registration response. The device type of the ONU and the registration allowed Whether the device type of the device matches, if it matches, the OLT can send the device identifier of the ONU to the ONU; if it does not match, the OLT can instruct the ONU to re-register. Therefore, when the OLT determines that the device type of the ONU matches the device type of the device to be registered, the OLT can send the device identifier of the ONU to the ONU, so that the ONU can perform information transmission according to the device identifier, thereby implementing registration of the ONU.
因此, 本发明实施例的无源光网络中设备注册的方法, 通过光线路终端 接收光网络单元发送的注册响应, 并在该注册响应中携带用于指示光网络单 元的设备类型的字段,使得光线路终端能够根据该注册响应确定光网络单元 的设备类型与允许注册设备的设备类型是否匹配, 并在匹配时向光网络单元 发送设备标识,从而在多个无源光网络***共存情况下使得光线路终端能够 识别请求注册的设备的类型, 并能够向类型相匹配的光网络单元发送设备标 识, 由此能够正确地进行设备注册, 并能够避免对其它设备的干扰。  Therefore, the device registration method in the passive optical network in the embodiment of the present invention receives the registration response sent by the optical network unit through the optical line terminal, and carries a field indicating the device type of the optical network unit in the registration response, so that The optical line terminal can determine, according to the registration response, whether the device type of the optical network unit matches the device type of the device to be registered, and send the device identifier to the optical network unit when matching, so that the multiple passive optical network systems coexist. The optical line terminal can identify the type of device requesting registration and can transmit the device identification to the optical network unit of the matching type, thereby enabling device registration to be correctly performed and interference with other devices can be avoided.
可选地, 在本发明实施例中, 该注册响应携带的用于指示该 ONU的设 备类型的字段包括无源光网络操作控制体 PON OC Body字段或无源光网络 标识 PON ID字段,该 PON OC Body字段和该 PON ID字段用于指示该 ONU 所在的下行波长通道的类型, 以指示该 ONU的设备类型。 该注册响应可以 具有如表 2所示的结构和内容, 为了简洁, 在此不再赘述。  Optionally, in the embodiment of the present invention, the field that is used by the registration response to indicate the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identifier PON ID field, and the PON The OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located to indicate the device type of the ONU. The registration response may have the structure and content as shown in Table 2. For brevity, no further details are provided herein.
在本发明实施例中, 可选地, 如图 18所示, 该方法 500还包括: S540, 向该 ONU发送注册请求, 该注册请求携带用于指示所示允许注 册设备的设备类型的字段;  In the embodiment of the present invention, optionally, as shown in FIG. 18, the method 500 further includes: S540, sending a registration request to the ONU, where the registration request carries a field for indicating a device type of the device that is allowed to be registered;
其中, S510该接收光网络单元 ONU发送的注册响应, 包括:  The S510 receives the registration response sent by the optical network unit ONU, and includes:
S511 , 接收该 ONU在确定该 ONU的设备类型与该允许注册设备的设 备类型匹配时发送的该注册响应。  S511. Receive the registration response sent by the ONU when determining that the device type of the ONU matches the device type of the allowed registration device.
即在本发明实施例中, OLT可以先向 ONU发送注册请求, 该 ONU可 以根据该注册请求指示的允许注册设备的设备类型, 确定该 ONU的设备类 型与该允许注册设备的设备类型是否匹配;如果匹配,则 ONU可以向该 OLT 发送用于请求分配设备标识的的注册响应,该注册响应携带用于指示该 ONU 的设备类型的字段; 如果不匹配, 则 ONU不向该 OLT发送该注册响应。  That is, in the embodiment of the present invention, the OLT may first send a registration request to the ONU, and the ONU may determine, according to the device type of the device that is allowed to register, that is determined by the registration request, whether the device type of the ONU matches the device type of the device to be registered. If there is a match, the ONU may send a registration response for requesting the allocation of the device identifier to the OLT, the registration response carrying a field indicating the device type of the ONU; if not, the ONU does not send the registration response to the OLT .
在本发明实施例中, OLT可以通过多种方式向 ONU发送注册请求, 以 指示允许注册设备的设备类型。  In the embodiment of the present invention, the OLT may send a registration request to the ONU in multiple manners to indicate the device type of the device to be registered.
可选地, 该向该 ONU发送注册请求, 包括: 向该 ONU发送包括分配 结构 Allocation structure字段的该注册请求, 该分配结构字段中的分配单元 标识 Alloc-ID字段的取值指示该允许注册设备的设备类型;或该分配结构字 段包括取值用于指示该允许注册设备的设备类型的字段。 Optionally, the sending the registration request to the ONU includes: sending the distribution to the ONU The registration request of the structure Allocation structure field, the value of the allocation unit identifier Alloc-ID field in the allocation structure field indicates the device type of the device to be registered; or the allocation structure field includes a value for indicating the permission to register the device The field of the device type.
可选地, 该向该 ONU发送注册请求, 包括: 通过物理层运行与维护 PLOAM消息向该 ONU发送该注册请求, 该 PLOAM消息包括用于指示该 允许注册设备的设备类型的字段。  Optionally, the sending the registration request to the ONU includes: sending the registration request to the ONU by using a physical layer operation and maintenance PLOAM message, where the PLOAM message includes a field for indicating a device type of the device to be registered.
即在本发明实施例中, 用于指示允许注册设备的设备类型的字段既可以 携带在 Allocation structure字段中, 也可以携带在 PLOAM消息, 但本发明 并不限于此, 该字段还可以携带在其它字段或消息中。 为了简洁, 在此不再 赘述。  That is, in the embodiment of the present invention, the field for indicating the device type of the device to be registered may be carried in the Allocation structure field or may be carried in the PLOAM message, but the present invention is not limited thereto, and the field may be carried in other fields. In a field or message. For the sake of brevity, it will not be repeated here.
如图 19所示, 在本发明实施例中, 在该向该 ONU发送该 ONU的设备 标识之后, 该方法 500还包括:  As shown in FIG. 19, in the embodiment of the present invention, after the device identifier of the ONU is sent to the ONU, the method 500 further includes:
S550, 接收该 ONU发送的确认信息, 该确认信息用于指示该 ONU接 收到该设备标识。  S550. Receive an acknowledgment message sent by the ONU, where the acknowledgment message is used to indicate that the ONU receives the device identifier.
即 OLT在向 ONU发送设备标识之后, ONU可以向 OLT发送确认信息, 该确认信息例如可以具有如下表 5所示的结构和内容, 为了简洁, 在此不再 赘述。  That is, after the OLT sends the device identifier to the ONU, the ONU may send the acknowledgment information to the OLT. The acknowledgment information may have the structure and content as shown in Table 5 below. For brevity, details are not described herein again.
在本发明实施例中, 如图 20所示, 该方法 500还包括:  In the embodiment of the present invention, as shown in FIG. 20, the method 500 further includes:
S560, 在确定该 ONU的设备类型与该允许注册设备的设备类型不匹配 时, 向该 ONU发送波长通道切换命令, 以指示该 ONU重新注册。  S560. When it is determined that the device type of the ONU does not match the device type of the allowed registration device, send a wavelength channel switching command to the ONU to instruct the ONU to re-register.
即在本发明实施例中, ONU向 OLT发送注册响应, 并且该注册响应携 带用于指示光网络单元 ONU的设备类型的字段, OLT根据该注册响应, 可 以确定该 ONU的设备类型与允许注册设备的设备类型是否匹配,如果匹配, OLT可以向 ONU发送 ONU的设备标识; 如果不匹配, OLT可以向 ONU发 送波长通道切换命令, 以指示 ONU重新注册。 该波长通道切换命令例如可 以具有如表 6所示的结构和内容, 为了简洁, 在此不再赘述。  That is, in the embodiment of the present invention, the ONU sends a registration response to the OLT, and the registration response carries a field for indicating the device type of the optical network unit ONU, and the OLT can determine the device type of the ONU and the device to be registered according to the registration response. Whether the device types match, if they match, the OLT can send the device identifier of the ONU to the ONU; if not, the OLT can send a wavelength channel switching command to the ONU to instruct the ONU to re-register. The wavelength channel switching command may have the structure and content as shown in Table 6, for brevity, and details are not described herein again.
应理解, OLT侧描述的 ONU注册的方法与根据本发明实施例的图 9至 图 12所示的方法 300相对应, 并且 OLT侧描述的 OLT与 ONU的交互及相 关特性、 功能等与 ONU侧的描述相应, 为了简洁, 在此不再赘述。  It should be understood that the method for registering ONUs on the OLT side corresponds to the method 300 shown in FIG. 9 to FIG. 12 according to the embodiment of the present invention, and the interaction between the OLT and the ONU described on the OLT side and related features, functions, and the like are on the ONU side. Corresponding descriptions, for brevity, will not be repeated here.
应理解, 在根据本发明的设备注册的方法的上述和下列实施例中, 以 It should be understood that in the above and below embodiments of the method of device registration according to the present invention,
PtP WDM-PON ONU进行设备注册为例进行说明, 但本发明并不限于此, 例 设备注册。 The PtP WDM-PON ONU performs device registration as an example, but the present invention is not limited to this example. Device registration.
还应理解, 在本发明的各种实施例中, 上述各过程的序号的大小并不意 味着执行顺序的先后, 各过程的执行顺序应以其功能和内在逻辑确定, 而不 应对本发明实施例的实施过程构成任何限定。  It should also be understood that, in various embodiments of the present invention, the size of the sequence numbers of the above processes does not imply a sequence of execution orders, and the order of execution of the processes should be determined by its function and internal logic, and should not be implemented by the present invention. The implementation of the examples constitutes any limitation.
因此, 本发明实施例的无源光网络中设备注册的方法, 通过光线路终端 接收光网络单元发送的注册响应, 并在该注册响应中携带用于指示光网络单 元的设备类型的字段,使得光线路终端能够根据该注册响应确定光网络单元 的设备类型与允许注册设备的设备类型是否匹配, 并在匹配时向光网络单元 发送设备标识,从而在多个无源光网络***共存情况下使得光线路终端能够 识别请求注册的设备的类型, 并能够向类型相匹配的光网络单元发送设备标 识, 由此能够正确地进行设备注册, 并能够避免对其它设备的干扰。  Therefore, the device registration method in the passive optical network in the embodiment of the present invention receives the registration response sent by the optical network unit through the optical line terminal, and carries a field indicating the device type of the optical network unit in the registration response, so that The optical line terminal can determine, according to the registration response, whether the device type of the optical network unit matches the device type of the device to be registered, and send the device identifier to the optical network unit when matching, so that the multiple passive optical network systems coexist. The optical line terminal can identify the type of device requesting registration and can transmit the device identification to the optical network unit of the matching type, thereby enabling device registration to be correctly performed and interference with other devices can be avoided.
下面将结合上行波长初始化、 下行波长初始化、 注册过程, 一起来详细 说明本发明实施例, 具体如图 21所示, 包括:  The following describes the embodiments of the present invention in detail with reference to the uplink wavelength initialization, the downlink wavelength initialization, and the registration process. Specifically, as shown in FIG. 21, the method includes:
S221, PtP WDM-PON ONU上电初始 4匕后,关闭业务通道,只开启 AMCC 通道, 通过调节接收波长, 扫描下行波长通道, 若检测到接收光信号, 则可 能找到一个下行波长通道, 然后进行下行同步, 接收来自 OLT侧 AMCC通 道的下行帧。  S221, PtP WDM-PON After the ONU is powered on for 4 ,, the service channel is closed, only the AMCC channel is enabled, and the downlink wavelength channel is scanned by adjusting the receiving wavelength. If the received optical signal is detected, a downstream wavelength channel may be found, and then Downlink synchronization, receiving downlink frames from the AMCC channel on the OLT side.
如果 PtP WDM-PON ONU已经预先设定好默认收发波长, 或在布设时 已经设置好可以支持的收发波长对, 则在初始化上电时根据预设波长值, 设 置默认收发波长或从支持的多个收发波长对中随机选择一个波长对, 并据此 设置自己的收发波长。  If the PtP WDM-PON ONU has preset the default transmit/receive wavelength, or if the transmit/receive wavelength pair that has been supported has been set during the setup, set the default transmit/receive wavelength or support from the preset wavelength value when initializing the power-on. A pair of wavelengths is randomly selected from the pair of transceiver wavelengths, and the transmission and reception wavelengths are set accordingly.
5222, OLT通过 AMCC通道广播当前下行波长通道的类型, 据此帮助 ONU识别该下行波长通道类型和用途, 以便正确的进行下行波长初始化。  5222. The OLT broadcasts the type of the current downlink wavelength channel through the AMCC channel, thereby helping the ONU identify the type and purpose of the downlink wavelength channel, so as to correctly perform downlink wavelength initialization.
OLT可以釆用如图 3、 图 4a〜图 4b所述的方式, 来指明下行波长通道的 类型, 这里不再赘述, 具体请参考上述实施例。  The OLT can use the manners as shown in FIG. 3 and FIG. 4a to FIG. 4b to indicate the type of the downlink wavelength channel, which is not described here. For details, refer to the foregoing embodiment.
5223 , PtP WDM-PON ONU解析 OLT在不同下行波长通道下发步骤 S222所述的字段, 学习当前下行波长通道的信息。 ONU也可以重复上述步 骤 S221和 S222, 学习***中所有下行波长通道信息, 然后据此选择合适的 初始下行接收波长。 请求中,可携带设备类型标识,以便于 ONU区分,当前允许哪种类型的 ONU 注册。 具体的实现方式, 请参考上面其他实施例的介绍, 这里不再赘述。 5223. The PtP WDM-PON ONU parses the OLT to send the field described in step S222 to the downlink channel, and learns the information of the current downlink wavelength channel. The ONU may also repeat steps S221 and S222 above to learn all downlink wavelength channel information in the system, and then select an appropriate initial downlink receiving wavelength accordingly. In the request, the device type identifier can be carried in order to facilitate the ONU to distinguish which type of ONU is currently allowed to register. For specific implementation manners, please refer to the introduction of other embodiments above, and details are not described herein again.
S225, PtP WDM-PON ONU收到 OLT下发的注册请求后,按照步骤 S224 所述的设备类型标识方式, 解析当前允许注册的设备类型, 如果和本设备类 型匹配, 则随机设置上行发送波长, 在当前上行发送波长的基础上根据预设 步长进行调节, 然后再新调节的发送波长上, 通过 AMCC通道发送注册响 应。  S225, PtP WDM-PON After receiving the registration request sent by the OLT, the ONU parses the device type that is currently allowed to be registered according to the device type identification mode described in step S224, and if it matches the device type, randomly sets the uplink transmission wavelength. Based on the current uplink transmission wavelength, the adjustment is performed according to the preset step size, and then the newly adjusted transmission wavelength is used to transmit the registration response through the AMCC channel.
S226, PtP WDM-PON ONU收到上报的注册响应中, 需要携带设备类型 标识字段, 具体格式可以如表 3所示。  S226, PtP WDM-PON The ONU needs to carry the device type identifier field in the registration response, as shown in Table 3.
S227, 当多个 PtP WDM-PON ONU同时上报注册响应时, 可能会有两 个以上的 ONU正好调节到相同的发送波长, 从而引起注册冲突而无法正常 注册。 ONU可以等待下一个周期的注册请求, 然后随机调整发送波长进行 注册尝试, 这样有机会避免冲突而让 OLT收到其注册响应。  S227. When multiple PtP WDM-PON ONUs report the registration response at the same time, there may be more than two ONUs that are adjusted to the same transmission wavelength, which causes registration conflict and cannot be registered normally. The ONU can wait for the registration request for the next cycle, and then randomly adjust the transmit wavelength for the registration attempt, so that there is an opportunity to avoid the conflict and let the OLT receive its registration response.
当前标准定义的注册响应消息中,有一个字段用来告知 OLT,当前 ONU 发送该注册响应的目的是仅仅作上行波长校准, 还是要求注册并请求 OLT 分配 ONU-ID。 ONU首次上电注册时,不知道各上行波长通道的类型和用途, 所以会扫描所支持的整个上行发送波长范围, 或尝试所有支持的上行波长。  In the registration response message defined by the current standard, there is a field for informing the OLT whether the current ONU sends the registration response for the purpose of only performing upstream wavelength calibration, or requires registration and requesting the OLT to allocate the ONU-ID. When the ONU registers for the first time, it does not know the type and purpose of each upstream wavelength channel. Therefore, it scans the entire uplink transmission wavelength range supported, or tries all supported upstream wavelengths.
OLT在收到 ONU用来做波长校准的注册响应后, 需要下发携带上行波 长通道类型的上行波长指示, 实现如下表 7所示: 表 7 After receiving the registration response of the ONU for the wavelength calibration, the OLT needs to deliver the upstream wavelength indication carrying the upstream wavelength channel type, as shown in Table 7 below: Table 7
Figure imgf000046_0001
也可以按照上述类似的方法扩展业务类型字段, 指明本下行波长通道需 要承载的业务,字段取值至少包含: 0_PON业务; l_PtP 以太网业务; 2— CPRI; 3_ (X)G-PON reach extender optical。
Figure imgf000046_0001
The service type field may be extended according to the foregoing method to indicate the service to be carried by the downlink wavelength channel. The value of the field includes at least: 0_PON service; l_PtP Ethernet service; 2—CPRI; 3_ (X)G-PON reach extender optical .
OLT在收到 ONU请求 ONU-ID的注册响应后, 分配 ONU-ID并下发给 波长调节命令如下表 8所示:  After receiving the registration response from the ONU requesting the ONU-ID, the OLT assigns the ONU-ID and sends it to the wavelength adjustment command as shown in Table 8 below:
表 8  Table 8
Octet Content Description  Octet Content Description
1-2 ONU-ID Directed message to one ONU.  1-2 ONU-ID Directed message to one ONU.
3 0x21 Message type ID ''Tuning—Control".  3 0x21 Message type ID ''Tuning—Control".
4 SeqNo Unicast PLOAM sequence number.  4 SeqNo Unicast PLOAM sequence number.
5 Operation Code 0 - Request;  5 Operation Code 0 - Request;
1 - Confirm, and byte 10 applies, ignore bytes 5-9 and 11-40; 1 - Confirm, and byte 10 applies, ignore bytes 5-9 and 11-40;
6 0AAA 0BBB Destination wavelengths. 6 0AAA 0BBB Destination wavelengths.
(TBD) AAA: Number of upstream wavelength 0-7 (TBD)  (TBD) AAA: Number of upstream wavelength 0-7 (TBD)
BBB: Number of downstream wavelength 0-7 (TBD) Octet Content Description BBB: Number of downstream wavelength 0-7 (TBD) Octet Content Description
7-40 Padding Set to 0x00 by the transmitter; treated as "don't care" by the receiver.  7-40 Padding Set to 0x00 by the transmitter; treated as "don't care" by the receiver.
41-48 MIC Message integrity check.  41-48 MIC Message integrity check.
S228, PtP WDM-PON ONU通过重复步骤 S225和步骤 S226可以学习 到所有上行波长通道的信息, 选择合适的上行波长通道, 并据此设置发送波 长。 S228, PtP WDM-PON The ONU can learn the information of all the upstream wavelength channels by repeating steps S225 and S226, select an appropriate upstream wavelength channel, and set the transmission wavelength accordingly.
S229, PtP WDM-PON ONU收到分配的 ONU-ID, 可选地, 上报响应消 息给 OLT。 响应消息的格式如下表 9所示:  S229. The PtP WDM-PON ONU receives the assigned ONU-ID, and optionally reports the response message to the OLT. The format of the response message is shown in Table 9 below:
表 9  Table 9
Figure imgf000047_0001
Figure imgf000047_0001
S220, PtP WDM-PON ONU在得到分配的 ONU-ID后, 可以确认已完成 波长初始化和注册, 并开启业务通道正常收发通信。 S220, PtP After the WDM-PON ONU obtains the assigned ONU-ID, it can confirm that the wavelength initialization and registration have been completed, and enable the normal transmission and reception communication of the service channel.
上文中结合图 1至图 21,详细描述了根据本发明实施例的波长初始化的 方法以及设备注册的方法, 下面将结合图 22至图 33, 详细描述根据本发明 实施例的光网絡单元和光线路终端。  The method of wavelength initialization and the method of device registration according to an embodiment of the present invention are described in detail above with reference to FIG. 1 to FIG. 21. Hereinafter, an optical network unit and an optical line according to an embodiment of the present invention will be described in detail with reference to FIG. 22 to FIG. terminal.
如图 22所示, 根据本发明实施例的光网络单元 ONU 10包括: 接收模块 11, 用于接收光线路终端 OLT发送的下行帧, 该下行帧携带 用于指示当前波长通道的下行波长通道信息的字段, 该下行波长通道信息包 括该波长通道的类型;  As shown in FIG. 22, the optical network unit ONU 10 according to the embodiment of the present invention includes: a receiving module 11 configured to receive a downlink frame sent by an optical line terminal OLT, where the downlink frame carries downlink channel information for indicating a current wavelength channel. Field, the downlink wavelength channel information includes a type of the wavelength channel;
确定模块 12,用于根据该波长通道的类型,从至少一个下行波长中确定 该 ONU的目标下行波长通道, 其中, 每个波长通道与一个下行波长通道一 一对应, 与该目标下行波长通道相对应的波长通道的类型与该 ONU的设备 类型相匹配。 a determining module 12, configured to determine from at least one downlink wavelength according to the type of the wavelength channel The target downlink channel of the ONU, wherein each wavelength channel is in one-to-one correspondence with a downlink wavelength channel, and the type of the wavelength channel corresponding to the target downlink wavelength channel matches the device type of the ONU.
因此, 本发明实施例的光网络单元, 通过在光网络单元接收光线路终端 所发送的下行帧中, 携带下行波长通道的类型信息, 从而能够在多个无源光 网络***共存情况下识别下行波长通道的类型, 由此能够将类型相匹配的下 行波长通道的波长确定为 ONU的目标下行波长, 从而能够正确地进行波长 初始化, 并能够避免对其它设备的干扰。  Therefore, the optical network unit of the embodiment of the present invention can carry the type information of the downlink wavelength channel in the downlink frame sent by the optical network unit to receive the optical line terminal, so that the downlink can be identified in the case where multiple passive optical network systems coexist. The type of the wavelength channel, whereby the wavelength of the downlink wavelength channel matched by the type can be determined as the target downstream wavelength of the ONU, so that the wavelength initialization can be correctly performed, and interference with other devices can be avoided.
在本发明实施例中, 可选地, 该接收模块 11接收的该下行帧具体为用 于指示该下行波长通道信息的下行物理同步块 PSBd或模板物理层运行与维 护 Profile PLOAM消息。  In the embodiment of the present invention, the downlink frame received by the receiving module 11 is specifically a downlink physical synchronization block PSBd or a template physical layer operation and maintenance profile PLOAM message for indicating the downlink wavelength channel information.
可选地,该下行物理同步块包括的无源光网络操作控制体 PON OC Body 字段或无源光网络标识 PON ID字段用于指示该下行波长通道信息。  Optionally, the passive optical network operation control body PON OC Body field or the passive optical network identification PON ID field included in the downlink physical synchronization block is used to indicate the downlink wavelength channel information.
在本发明实施例中, 可选地, 该下行波长通道信息还包括该波长通道能 够传输的下行业务的类型; 其中, 该确定模块 12具体用于: 根据该波长通 道的类型和该能够传输的下行业务的类型,从该至少一个下行波长通道中确 定该目标下行波长通道, 其中, 该目标下行波长通道的类型与该 ONU 10的 设备类型相匹配, 并且该目标下行波长通道能够传输的下行业务的类型与该 ONU 10支持的下行业务的类型相匹配。  In the embodiment of the present invention, the downlink wavelength channel information further includes a type of the downlink service that the wavelength channel can transmit. The determining module 12 is specifically configured to: according to the type of the wavelength channel and the And determining, by the at least one downlink wavelength channel, the target downlink wavelength channel, where the type of the target downlink wavelength channel matches the device type of the ONU 10, and the downlink traffic of the target downlink wavelength channel can be transmitted. The type matches the type of downlink service supported by the ONU 10.
在本发明实施例中, 可选地, 该 ONU 10为 PtP WDM-PON ONU。  In the embodiment of the present invention, optionally, the ONU 10 is a PtP WDM-PON ONU.
应理解, 根据本发明实施例的光网络单元 10可对应于本发明实施例中 的 ONU,并且光网络单元 10中的各个模块的上述和其它操作和 /或功能分别 为了实现图 1至图 4c中的方法 100的相应流程, 为了简洁, 在此不再赘述。  It should be understood that the optical network unit 10 according to an embodiment of the present invention may correspond to an ONU in the embodiment of the present invention, and the above and other operations and/or functions of the respective modules in the optical network unit 10 are respectively implemented in order to implement FIGS. 1 to 4c. The corresponding process of the method 100 in the following is omitted for brevity.
因此, 本发明实施例的光网络单元, 通过在光网络单元接收光线路终端 所发送的下行帧中, 携带下行波长通道的类型信息, 从而能够在多个无源光 网络***共存情况下识别下行波长通道的类型, 由此能够将类型相匹配的下 行波长通道的波长确定为 ONU的目标下行波长, 从而能够正确地进行波长 初始化, 并能够避免对其它设备的干扰。  Therefore, the optical network unit of the embodiment of the present invention can carry the type information of the downlink wavelength channel in the downlink frame sent by the optical network unit to receive the optical line terminal, so that the downlink can be identified in the case where multiple passive optical network systems coexist. The type of the wavelength channel, whereby the wavelength of the downlink wavelength channel matched by the type can be determined as the target downstream wavelength of the ONU, so that the wavelength initialization can be correctly performed, and interference with other devices can be avoided.
图 23示出了根据本发明实施例的光网络单元 20的示意性框图,如图 23 所示, 该光网络单元 ONU 20包括:  FIG. 23 shows a schematic block diagram of an optical network unit 20 according to an embodiment of the present invention. As shown in FIG. 23, the optical network unit ONU 20 includes:
接收模块 22, 用于接收光线路终端 OLT响应的下行帧, 该下行帧携带 用于指示当前波长通道的上行波长通道信息的字段, 该上行波长通道信息包 括该波长通道的类型; The receiving module 22 is configured to receive a downlink frame that is responded by the optical line terminal OLT, where the downlink frame carries a field for indicating uplink wavelength channel information of a current wavelength channel, where the uplink wavelength channel information includes a type of the wavelength channel;
确定模块 23,用于根据该波长通道的类型,从至少一个上行波长通道中 确定该 ONU的目标上行波长通道, 其中, 每个波长通道与一个上行波长通 道——对应, 与该目标上行波长通道相对应的波长通道的类型与该 ONU的 设备类型相匹配。  The determining module 23 is configured to determine, according to the type of the wavelength channel, a target uplink wavelength channel of the ONU from the at least one uplink wavelength channel, where each wavelength channel corresponds to an uplink wavelength channel, and the target uplink wavelength channel The type of the corresponding wavelength channel matches the device type of the ONU.
可选地,该 ONU还包括发送模块 21,用于向光线路终端 OLT发送上行 帧, 该上行帧携带用于指示该 ONU的设备类型的字段;  Optionally, the ONU further includes a sending module 21, configured to send, to the optical line terminal OLT, an uplink frame, where the uplink frame carries a field for indicating a device type of the ONU;
其中, 该上行帧也可以称为注册响应。  The uplink frame may also be referred to as a registration response.
因此, 本发明实施例的光网络单元, 通过光网络单元向光线路终端发送 注册响应, 并接收光线路终端发送的上行波长通道的类型信息, 从而能够在 多个无源光网络***共存情况下识别上行波长通道的类型, 由此能够将类型 相匹配的上行波长通道的波长确定为 ONU的目标上行波长, 从而能够正确 地进行波长初始化, 并能够避免对其它设备的干扰。  Therefore, the optical network unit of the embodiment of the present invention sends a registration response to the optical line terminal through the optical network unit, and receives the type information of the uplink wavelength channel sent by the optical line terminal, so that the multiple passive optical network systems can coexist. The type of the upstream wavelength channel is identified, so that the wavelength of the upstream wavelength channel matched by the type can be determined as the target upstream wavelength of the ONU, so that the wavelength initialization can be correctly performed, and interference with other devices can be avoided.
在本发明实施例中, 可选地, 该接收模块 22还用于: 接收该 OLT发送 的注册请求, 该注册请求携带用于指示允许注册设备的设备类型的字段; 其中, 该确定模块 23还用于: 确定该 ONU 20的设备类型与该允许注 册设备的设备类型是否匹配;  In the embodiment of the present invention, the receiving module 22 is further configured to: receive a registration request sent by the OLT, where the registration request carries a field for indicating a device type of the device to be registered; wherein the determining module 23 further For: determining whether the device type of the ONU 20 matches the device type of the device that is allowed to register;
该发送模块 21具体用于: 在该确定模块 23确定该 ONU 20的设备类型 与该允许注册设备的设备类型匹配时, 向该 OLT发送该上行帧。  The sending module 21 is specifically configured to: when the determining module 23 determines that the device type of the ONU 20 matches the device type of the allowed registered device, send the uplink frame to the OLT.
在本发明实施例中, 可选地, 该接收模块 22具体用于: 接收该 OLT发 送的包括分配结构 Allocation structure字段的该注册请求, 该分配结构字段 中的分配单元标识 Alloc-ID字段的取值指示该允许注册设备的设备类型;或 该分配结构字段包括取值用于指示该允许注册设备的设备类型的字段。  In the embodiment of the present invention, the receiving module 22 is specifically configured to: receive the registration request that is sent by the OLT, including an allocation structure, an Allocation structure field, where the allocation unit identifier in the allocation structure field is obtained by using an Alloc-ID field. The value indicates the device type of the device that is allowed to register; or the allocation structure field includes a field that takes a value indicating the device type of the device that is allowed to register.
在本发明实施例中, 可选地, 该接收模块 22具体用于: 接收该 OLT通 过物理层运行与维护 PLOAM消息发送的该注册请求,该 PLOAM消息包括 用于指示该允许注册设备的设备类型的字段。  In the embodiment of the present invention, the receiving module 22 is specifically configured to: receive the registration request sent by the OLT to run and maintain a PLOAM message through a physical layer, where the PLOAM message includes a device type used to indicate the allowed registration device. Field.
在本发明实施例中, 可选地, 该发送模块 21发送的该上行帧携带的用 于指示该 ONU 20的设备类型的字段包括无源光网络操作控制体 PON OC Body字段或无源光网络标识 PON ID字段,该 PON OC Body字段和该 PON ID字段用于指示该 ONU 20所在的下行波长通道的类型, 以指示该 ONU 20 的设备类型。 In the embodiment of the present invention, optionally, the field carried by the sending module 21 for indicating the device type of the ONU 20 includes a passive optical network operation control body PON OC Body field or a passive optical network. Identifying a PON ID field, the PON OC Body field and the PON ID field are used to indicate a type of a downlink wavelength channel in which the ONU 20 is located, to indicate the ONU 20 Type of device.
在本发明实施例中, 可选地, 该接收模块 22接收的该上行波长通道信 息还包括该波长通道能够传输的上行业务的类型;  In the embodiment of the present invention, optionally, the uplink wavelength channel information received by the receiving module 22 further includes a type of uplink service that the wavelength channel can transmit;
其中, 该确定模块 23具体用于: 根据该波长通道的类型和该能够传输 的上行业务的类型, 从该至少一个上行波长通道中确定该目标上行波长, 其 中, 与该目标上行波长相应的该目标上行波长通道的类型与该 ONU 20的设 备类型相匹配, 并且该目标上行波长通道能够传输的上行业务的类型与该 ONU 20支持的上行业务的类型相匹配。  The determining module 23 is specifically configured to: determine the target uplink wavelength from the at least one uplink wavelength channel according to the type of the wavelength channel and the type of the uplink service that can be transmitted, where the target uplink wavelength corresponds to the target uplink wavelength The type of the target upstream wavelength channel matches the device type of the ONU 20, and the type of the uplink service that the target upstream wavelength channel can transmit matches the type of the uplink service supported by the ONU 20.
在本发明实施例中, 可选地, 该接收模块 22还用于: 在接收该 OLT发 送的该上行帧之前, 接收该 OLT根据该上行帧发送的波长通道切换命令或 波长调节命令, 以指示该 ONU 20进行上行波长校准。  In the embodiment of the present invention, the receiving module 22 is further configured to: before receiving the uplink frame sent by the OLT, receive a wavelength channel switching command or a wavelength adjustment command sent by the OLT according to the uplink frame, to indicate The ONU 20 performs upstream wavelength calibration.
应理解, 根据本发明实施例的光网络单元 20可对应于本发明实施例中 的 ONU,并且光网络单元 20中的各个模块的上述和其它操作和 /或功能分别 为了实现图 5至图 8中的方法 200的相应流程, 为了简洁, 在此不再赘述。  It should be understood that the optical network unit 20 according to an embodiment of the present invention may correspond to the ONUs in the embodiments of the present invention, and the above and other operations and/or functions of the respective modules in the optical network unit 20 are respectively implemented in order to implement FIGS. 5 to 8. The corresponding process of the method 200 in the following is omitted for brevity.
因此, 本发明实施例的光网络单元, 通过光网络单元向光线路终端发送 注册响应, 并接收光线路终端发送的上行波长通道的类型信息, 从而能够在 多个无源光网络***共存情况下识别上行波长通道的类型, 由此能够将类型 相匹配的上行波长通道的波长确定为 ONU的目标上行波长, 从而能够正确 地进行波长初始化, 并能够避免对其它设备的干扰。  Therefore, the optical network unit of the embodiment of the present invention sends a registration response to the optical line terminal through the optical network unit, and receives the type information of the uplink wavelength channel sent by the optical line terminal, so that the multiple passive optical network systems can coexist. The type of the upstream wavelength channel is identified, so that the wavelength of the upstream wavelength channel matched by the type can be determined as the target upstream wavelength of the ONU, so that the wavelength initialization can be correctly performed, and interference with other devices can be avoided.
图 24示出了根据本发明实施例的光网络单元 30的示意性框图。如图 24 所示, 光网络单元 ONU 30包括:  Figure 24 shows a schematic block diagram of an optical network unit 30 in accordance with an embodiment of the present invention. As shown in Figure 24, the optical network unit ONU 30 includes:
发送模块 31, 用于向光线路终端 OLT发送注册响应, 该注册响应用于 请求该 OLT分配标识,并且该注册响应携带用于指示该 ONU 30的设备类型 的字段;  The sending module 31 is configured to send a registration response to the optical line terminal OLT, where the registration response is used to request the OLT to allocate an identifier, and the registration response carries a field for indicating a device type of the ONU 30;
接收模块 32,用于接收该 OLT在根据该发送模块 31发送的该注册响应、 确定该 ONU 30 的设备类型与允许注册设备的设备类型匹配时发送的该 ONU 30的设备标识;  The receiving module 32 is configured to receive, by the OLT, the device identifier of the ONU 30 that is sent when the device type of the ONU 30 matches the device type of the device to be registered, according to the registration response sent by the sending module 31;
处理模块 33, 用于根据该接收模块 32接收的该设备标识进行信息的传 输。  The processing module 33 is configured to perform information transmission according to the device identifier received by the receiving module 32.
因此, 本发明实施例的光网络单元, 通过光网络单元向光线路终端发送 注册响应, 并在该注册响应中携带用于指示光网络单元的设备类型的字段, 使得光线路终端能够根据该注册响应确定光网络单元的设备类型与允许注 册设备的设备类型是否匹配, 并在匹配时向光网络单元发送设备标识, 从而 在多个无源光网络***共存情况下使得光线路终端能够识别请求注册的设 备的类型, 并能够向类型相匹配的光网络单元发送设备标识, 由此能够正确 地进行设备注册, 并能够避免对其它设备的干扰。 Therefore, the optical network unit of the embodiment of the present invention sends a registration response to the optical line terminal through the optical network unit, and carries a field indicating the device type of the optical network unit in the registration response, The optical line terminal is configured to determine, according to the registration response, whether the device type of the optical network unit matches the device type of the device to be registered, and send the device identifier to the optical network unit when matching, so that the multiple passive optical network systems coexist. The optical line terminal is enabled to recognize the type of the device requesting registration, and can transmit the device identification to the optical network unit of the matching type, thereby enabling device registration to be correctly performed and interference with other devices can be avoided.
在本发明实施例中, 可选地, 如图 25所示, 该接收模块 32还用于: 接 收该 OLT发送的注册请求, 该注册请求携带用于指示允许注册设备的设备 类型的字段;  In the embodiment of the present invention, optionally, as shown in FIG. 25, the receiving module 32 is further configured to: receive a registration request sent by the OLT, where the registration request carries a field for indicating a device type of the device to be registered;
其中, 该光网络单元还包括确定模块 34, 用于确定该 ONU 30的设备类 型与该允许注册设备的设备类型是否匹配;  The optical network unit further includes a determining module 34, configured to determine whether the device type of the ONU 30 matches the device type of the allowed registered device;
该发送模块 31具体用于: 在该确定模块 34确定该 ONU 30的设备类型 与该允许注册设备的设备类型匹配时, 向该 OLT发送该注册响应。  The sending module 31 is specifically configured to: when the determining module 34 determines that the device type of the ONU 30 matches the device type of the allowed registered device, send the registration response to the OLT.
在本发明实施例中, 可选地, 该接收模块 32具体用于: 接收该 OLT发 送的包括分配结构 Allocation structure字段的该注册请求, 该分配结构字段 中的分配单元标识 Alloc-ID字段的取值指示该允许注册设备的设备类型;或 该分配结构字段包括取值用于指示该允许注册设备的设备类型的字段。  In the embodiment of the present invention, the receiving module 32 is specifically configured to: receive the registration request that is sent by the OLT, including an allocation structure, an Allocation structure field, where the allocation unit identifier in the allocation structure field is determined by the Alloc-ID field. The value indicates the device type of the device that is allowed to register; or the allocation structure field includes a field that takes a value indicating the device type of the device that is allowed to register.
在本发明实施例中, 可选地, 该接收模块 32具体用于: 接收该 OLT通 过物理层运行与维护 PLOAM消息发送的该注册请求,该 PLOAM消息包括 用于指示该允许注册设备的设备类型的字段。  In the embodiment of the present invention, the receiving module 32 is specifically configured to: receive the registration request sent by the OLT to run and maintain a PLOAM message through a physical layer, where the PLOAM message includes a device type used to indicate the device to be registered. Field.
在本发明实施例中, 可选地, 该发送模块 31发送的该注册响应携带的 用于指示该 ONU 30的设备类型的字段包括无源光网络操作控制体 PON OC Body字段或无源光网络标识 PON ID字段,该 PON OC Body字段和该 PON ID字段用于指示该 ONU 30所在的下行波长通道的类型, 以指示该 ONU 30 的设备类型。  In the embodiment of the present invention, optionally, the field carried by the sending module 31 for indicating the device type of the ONU 30 includes a passive optical network operation control body PON OC Body field or a passive optical network. The PON ID field is identified, and the PON OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU 30 is located to indicate the device type of the ONU 30.
在本发明实施例中, 可选地, 该发送模块 31还用于: 在该接收模块 32 接收该 ONU 30的设备标识之后, 向该 OLT发送确认信息,该确认信息用于 指示该 ONU 30接收到该设备标识。  In the embodiment of the present invention, the sending module 31 is further configured to: after the receiving module 32 receives the device identifier of the ONU 30, send an acknowledgement information to the OLT, where the acknowledgement information is used to indicate that the ONU 30 receives Go to the device ID.
在本发明实施例中, 可选地, 该接收模块 32还用于: 接收该 OLT在根 据该注册响应确定该 ONU 30的设备类型与该允许注册设备的设备类型不匹 配时发送的波长通道切换命令, 以指示该 ONU 30重新注册。  In the embodiment of the present invention, the receiving module 32 is further configured to: receive, by the OLT, a wavelength channel switch that is sent when the device type of the ONU 30 does not match the device type of the allowed registered device according to the registration response. Command to instruct the ONU 30 to re-register.
应理解, 根据本发明实施例的光网络单元 30可对应于本发明实施例中 的 ONU,并且光网络单元 30中的各个模块的上述和其它操作和 /或功能分别 为了实现图 9至图 12中的方法 300的相应流程, 为了简洁, 在此不再赘述。 It should be understood that the optical network unit 30 according to an embodiment of the present invention may correspond to the embodiment of the present invention. The above-mentioned and other operations and/or functions of the respective modules in the optical network unit 30 are respectively implemented in order to implement the corresponding processes of the method 300 in FIG. 9 to FIG. 12, and are not described herein again for brevity.
因此, 本发明实施例的光网络单元, 通过光网络单元向光线路终端发送 注册响应, 并在该注册响应中携带用于指示光网络单元的设备类型的字段, 使得光线路终端能够根据该注册响应确定光网络单元的设备类型与允许注 册设备的设备类型是否匹配, 并在匹配时向光网络单元发送设备标识, 从而 在多个无源光网络***共存情况下使得光线路终端能够识别请求注册的设 备的类型, 并能够向类型相匹配的光网络单元发送设备标识, 由此能够正确 地进行设备注册, 并能够避免对其它设备的干扰。  Therefore, the optical network unit of the embodiment of the present invention sends a registration response to the optical line terminal through the optical network unit, and carries a field indicating the device type of the optical network unit in the registration response, so that the optical line terminal can be registered according to the Responding to determine whether the device type of the optical network unit matches the device type of the device to be registered, and send the device identifier to the optical network unit when matching, so that the optical line terminal can recognize the request for registration in the case where multiple passive optical network systems coexist The type of device, and the ability to send the device identification to the optical network unit of the matching type, thereby enabling proper device registration and avoiding interference with other devices.
图 26示出了根据本发明实施例的光线路终端 40的示意性框图。如图 26 所示, 该光线路终端 OLT 40包括:  Figure 26 shows a schematic block diagram of an optical line terminal 40 in accordance with an embodiment of the present invention. As shown in FIG. 26, the optical line terminal OLT 40 includes:
确定模块 41,用于确定波长通道信息,该波长通道信息包括下行波长通 道信息和 /或上行波长通道信息, 其中, 该下行波长通道信息包括该 OLT 40 当前釆用的下行波长通道的类型,该上行波长通道信息包括上行波长通道的 类型;  The determining module 41 is configured to determine the wavelength channel information, where the wavelength channel information includes the downlink wavelength channel information and/or the uplink wavelength channel information, where the downlink wavelength channel information includes a type of the downlink wavelength channel currently used by the OLT 40, where The uplink wavelength channel information includes a type of the uplink wavelength channel;
发送模块 42, 用于向光网络单元 ONU发送该确定模块 41确定的该波 长通道信息。  The sending module 42 is configured to send the wavelength channel information determined by the determining module 41 to the optical network unit ONU.
因此, 本发明实施例的光线路终端, 通过光线路终端确定包括下行波长 通道信息和 /或上行波长通道信息的波长通道信息,并向光网络单元发送该波 长通道信息,使得光网络单元能够获知下行波长通道和 /或上行波长通道的信 息,从而能够在多个无源光网络***共存情况下识别下行波长通道和 /或上行 波长通道的类型和 /或能够传输的下行业务的类型等信息,由此能够正确地进 行波长初始化, 并能够避免对其它设备的干扰。  Therefore, the optical line terminal of the embodiment of the present invention determines the wavelength channel information including the downlink wavelength channel information and/or the uplink wavelength channel information through the optical line terminal, and sends the wavelength channel information to the optical network unit, so that the optical network unit can know The information of the downlink wavelength channel and/or the uplink wavelength channel, so that information such as the type of the downlink wavelength channel and/or the uplink wavelength channel and/or the type of downlink service that can be transmitted can be identified in the case where a plurality of passive optical network systems coexist. Thereby, wavelength initialization can be performed correctly, and interference with other devices can be avoided.
在本发明实施例中, 可选地, 在该确定模块 41确定该波长通道信息包 括该下行波长通道信息时, 该发送模块 42具体用于: 向该 ONU发送下行物 理同步块 PSBd或模板物理层运行与维护 Profile PLOAM消息, 其中, 该下 行物理同步块承载该下行波长通道信息, 该 Profile PLOAM消息包括该下行 波长通道信息。  In the embodiment of the present invention, when the determining module 41 determines that the wavelength channel information includes the downlink wavelength channel information, the sending module 42 is specifically configured to: send a downlink physical synchronization block PSBd or a template physical layer to the ONU. The profile PLOAM message is sent and maintained, where the downlink physical synchronization block carries the downlink wavelength channel information, and the profile PLOAM message includes the downlink wavelength channel information.
在本发明实施例中, 可选地, 该下行物理同步块包括的无源光网络操作 控制体 PON OC Body字段承载该下行波长通道信息; 或该下行物理同步块 包括的无源光网络标识 PON ID字段 7 载该下行波长通道信息。 因此, 本发明实施例的光线路终端, 通过光线路终端确定下行波长通道 信息, 并向光网络单元发送该下行波长通道信息, 使得光网络单元能够获知 下行波长通道的类型和 /或能够传输的下行业务的类型,从而能够在多个无源 光网络***共存情况下识别下行波长通道的类型, 由此能够正确地进行波长 初始化, 并能够避免对其它设备的干扰。 In the embodiment of the present invention, optionally, the downlink optical synchronization block includes a passive optical network operation control body PON OC Body field that carries the downlink wavelength channel information; or the downlink physical synchronization block includes a passive optical network identifier PON. The ID field 7 carries the downlink wavelength channel information. Therefore, the optical line terminal in the embodiment of the present invention determines the downlink wavelength channel information through the optical line terminal, and sends the downlink wavelength channel information to the optical network unit, so that the optical network unit can know the type of the downlink wavelength channel and/or can transmit. The type of downlink service enables identification of the type of downlink wavelength channel in the presence of multiple passive optical network systems, thereby enabling wavelength initialization to be correctly performed and interference with other devices to be avoided.
在本发明实施例中, 可选地, 如图 27所示, 该光线路终端还包括接收 模块 43, 用于接收该 ONU在该上行波长通道上发送的注册响应, 该注册响 应用于请求上行波长校准, 并且该注册响应携带用于指示该 ONU的设备类 型的字段;  In the embodiment of the present invention, optionally, as shown in FIG. 27, the optical line terminal further includes a receiving module 43, configured to receive a registration response sent by the ONU on the uplink wavelength channel, where the registration response is used to request uplink Wavelength calibration, and the registration response carries a field indicating the device type of the ONU;
其中, 该发送模块 42具体用于: 根据该注册响应向该 ONU发送该上行 波长通道信息。  The sending module 42 is specifically configured to: send the uplink wavelength channel information to the ONU according to the registration response.
在本发明实施例中, 可选地, 该发送模块 42还用于: 向该 ONU发送注 册请求, 该注册请求携带用于指示允许注册设备的设备类型的字段;  In the embodiment of the present invention, the sending module 42 is further configured to: send a registration request to the ONU, where the registration request carries a field for indicating a device type of the device to be registered;
其中, 该接收模块 43具体用于: 接收该 ONU在确定该 ONU的设备类 型与该允许注册设备的设备类型匹配时,在该上行波长通道上发送的该注册 口向应。  The receiving module 43 is specifically configured to: receive the registration port sent by the ONU on the uplink wavelength channel when determining that the device type of the ONU matches the device type of the allowed registration device.
在本发明实施例中, 可选地, 该发送模块 42具体用于: 向该 ONU发送 包括分配结构 Allocation structure字段的该注册请求, 该分配结构字段中的 分配单元标识 Alloc-ID字段的取值指示该允许注册设备的设备类型;或该分 配结构字段包括取值用于指示该允许注册设备的设备类型的字段。  In the embodiment of the present invention, the sending module 42 is specifically configured to: send the registration request including an allocation structure Allocation structure field to the ONU, where the allocation unit identifier in the allocation structure field identifies the value of the Alloc-ID field. Indicates the device type of the device that is allowed to register; or the allocation structure field includes a field that takes a value indicating the device type of the device that is allowed to be registered.
在本发明实施例中, 可选地, 该发送模块 42具体用于: 通过物理层运 行与维护 PLOAM消息向该 ONU发送该注册请求, 该 PLOAM消息包括用 于指示该允许注册设备的设备类型的字段。  In the embodiment of the present invention, the sending module 42 is specifically configured to: send the registration request to the ONU by using a physical layer to operate and maintain a PLOAM message, where the PLOAM message includes a device type for indicating the device to be registered. Field.
在本发明实施例中, 可选地, 该接收模块 43接收的该注册响应携带的 用于指示该 ONU 的设备类型的字段包括无源光网络操作控制体 PON OC Body字段或无源光网络标识 PON ID字段,该 PON OC Body字段和该 PON ID字段用于指示该 ONU所在的下行波长通道的类型, 以指示该 ONU的设 备类型。  In the embodiment of the present invention, optionally, the field that is received by the receiving module 43 and used to indicate the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identifier. The PON ID field, the PON OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located to indicate the device type of the ONU.
在本发明实施例中, 可选地, 该发送模块 42还用于: 在根据该注册响 应向该 ONU发送该上行波长通道信息之前, 4艮据该注册响应向该 ONU发 送波长通道切换命令或波长调节命令, 以指示该 ONU进行上行波长校准。 在本发明实施例中, 可选地, 该确定模块 41确定的该下行波长通道信 息还包括该下行波长通道能够传输的下行业务的类型; 该确定模块确定的该 上行波长通道信息还包括该上行波长通道能够传输的上行业务的类型。 In the embodiment of the present invention, the sending module 42 is further configured to: before sending the uplink wavelength channel information to the ONU according to the registration response, send a wavelength channel switching command to the ONU according to the registration response or A wavelength adjustment command to instruct the ONU to perform upstream wavelength calibration. In the embodiment of the present invention, optionally, the downlink wavelength channel information that is determined by the determining module 41 further includes a type of the downlink service that the downlink wavelength channel can transmit; the uplink wavelength channel information determined by the determining module further includes the uplink. The type of upstream service that the wavelength channel can transmit.
应理解, 根据本发明实施例的光线路终端 40可对应于本发明实施例中 的 OLT, 并且光线路终端 40中的各个模块的上述和其它操作和 /或功能分别 为了实现图 13至图 16中的方法 400的相应流程,为了简洁,在此不再赘述。  It should be understood that the optical line terminal 40 according to an embodiment of the present invention may correspond to the OLT in the embodiment of the present invention, and the above and other operations and/or functions of the respective modules in the optical line terminal 40 are respectively implemented in order to implement FIGS. 13 to 16 The corresponding flow of the method 400 in the following is not repeated here for brevity.
因此, 本发明实施例的光线路终端, 通过光线路终端确定包括下行波长 通道信息和 /或上行波长通道信息的波长通道信息,并向光网络单元发送该波 长通道信息,使得光网络单元能够获知下行波长通道和 /或上行波长通道的信 息,从而能够在多个无源光网络***共存情况下识别下行波长通道和 /或上行 波长通道的类型和 /或能够传输的下行业务的类型等信息,由此能够正确地进 行波长初始化, 并能够避免对其它设备的干扰。  Therefore, the optical line terminal of the embodiment of the present invention determines the wavelength channel information including the downlink wavelength channel information and/or the uplink wavelength channel information through the optical line terminal, and sends the wavelength channel information to the optical network unit, so that the optical network unit can know The information of the downlink wavelength channel and/or the uplink wavelength channel, so that information such as the type of the downlink wavelength channel and/or the uplink wavelength channel and/or the type of downlink service that can be transmitted can be identified in the case where a plurality of passive optical network systems coexist. Thereby, wavelength initialization can be performed correctly, and interference with other devices can be avoided.
图 28示出了根据本发明实施例的光线路终端 50的示意性框图。如图 27 所示, 该光线路终端 OLT 50包括:  FIG. 28 shows a schematic block diagram of an optical line terminal 50 in accordance with an embodiment of the present invention. As shown in FIG. 27, the optical line terminal OLT 50 includes:
接收模块 51, 用于接收光网络单元 ONU发送的注册响应, 该注册响应 用于请求该 OLT 50分配标识,并且该注册响应携带用于指示该 ONU的设备 类型的字段;  The receiving module 51 is configured to receive a registration response sent by the optical network unit ONU, where the registration response is used to request the OLT 50 to allocate an identifier, and the registration response carries a field for indicating a device type of the ONU;
确定模块 52, 用于根据该接收模块 51接收的该注册响应确定该 ONU 的设备类型与允许注册设备的设备类型是否匹配;  a determining module 52, configured to determine, according to the registration response received by the receiving module 51, whether a device type of the ONU matches a device type of the device to be registered;
发送模块 53, 用于在该确定模块 52确定该 ONU的设备类型与该允许 注册设备的设备类型匹配时, 向该 ONU发送该 ONU的设备标识。  The sending module 53 is configured to send the device identifier of the ONU to the ONU when the determining module 52 determines that the device type of the ONU matches the device type of the allowed registered device.
因此, 本发明实施例的光线路终端, 通过光线路终端接收光网络单元发 送的注册响应, 并在该注册响应中携带用于指示光网络单元的设备类型的字 段,使得光线路终端能够根据该注册响应确定光网络单元的设备类型与允许 注册设备的设备类型是否匹配, 并在匹配时向光网络单元发送设备标识, 从 而在多个无源光网络***共存情况下使得光线路终端能够识别请求注册的 设备的类型, 并能够向类型相匹配的光网络单元发送设备标识, 由此能够正 确地进行设备注册, 并能够避免对其它设备的干扰。  Therefore, the optical line terminal of the embodiment of the present invention receives the registration response sent by the optical network unit through the optical line terminal, and carries a field indicating the device type of the optical network unit in the registration response, so that the optical line terminal can The registration response determines whether the device type of the optical network unit matches the device type of the device to be registered, and transmits the device identification to the optical network unit when matching, so that the optical line terminal can identify the request in the case where multiple passive optical network systems coexist. The type of device registered, and the device identifier can be sent to the optical network unit of the matching type, thereby enabling device registration to be correctly performed and interference with other devices can be avoided.
在本发明实施例中, 可选地, 该发送模块 53还用于: 向该 ONU发送注 册请求, 该注册请求携带用于指示所示允许注册设备的设备类型的字段; 其中, 该接收模块 51具体用于: 接收该 ONU在确定该 ONU的设备类 型与该允许注册设备的设备类型匹配时发送的该注册响应。 In the embodiment of the present invention, the sending module 53 is further configured to: send a registration request to the ONU, where the registration request carries a field for indicating a device type of the device that is allowed to be registered; wherein the receiving module 51 Specifically used to: receive the ONU in determining the device class of the ONU The registration response sent when the type matches the device type of the device that is allowed to register.
在本发明实施例中, 可选地, 该发送模块 53具体用于: 向该 ONU发送 包括分配结构 Allocation structure字段的该注册请求, 该分配结构字段中的 分配单元标识 Alloc-ID字段的取值指示该允许注册设备的设备类型;或该分 配结构字段包括取值用于指示该允许注册设备的设备类型的字段。  In the embodiment of the present invention, the sending module 53 is specifically configured to: send the registration request including an allocation structure Allocation structure field to the ONU, where the allocation unit identifier in the allocation structure field identifies the value of the Alloc-ID field. Indicates the device type of the device that is allowed to register; or the allocation structure field includes a field that takes a value indicating the device type of the device that is allowed to be registered.
在本发明实施例中, 可选地, 该发送模块 53具体用于: 通过物理层运 行与维护 PLOAM消息向该 ONU发送该注册请求, 该 PLOAM消息包括用 于指示该允许注册设备的设备类型的字段。  In the embodiment of the present invention, the sending module 53 is specifically configured to: send the registration request to the ONU by using a physical layer operation and maintenance PLOAM message, where the PLOAM message includes a device type for indicating the device to be registered. Field.
在本发明实施例中, 可选地, 该接收模块 51接收的该注册响应携带的 用于指示该 ONU 的设备类型的字段包括无源光网络操作控制体 PON OC Body字段或无源光网络标识 PON ID字段,该 PON OC Body字段和该 PON ID字段用于指示该 ONU所在的下行波长通道的类型, 以指示该 ONU的设 备类型。  In the embodiment of the present invention, optionally, the field that is received by the receiving module 51 and used to indicate the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identifier. The PON ID field, the PON OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located to indicate the device type of the ONU.
在本发明实施例中, 可选地, 该接收模块 51还用于: 在该发送模块 53 向该 ONU发送该 ONU的设备标识之后, 接收该 ONU发送的确认信息, 该 确认信息用于指示该 ONU接收到该设备标识。  In the embodiment of the present invention, the receiving module 51 is further configured to: after the sending module 53 sends the device identifier of the ONU to the ONU, receive the confirmation information sent by the ONU, where the confirmation information is used to indicate the The ONU receives the device identification.
在本发明实施例中, 可选地, 该发送模块 53还用于: 在该确定模块 52 确定该 ONU的设备类型与该允许注册设备的设备类型不匹配时,向该 ONU 发送波长通道切换命令, 以指示该 ONU重新注册。  In the embodiment of the present invention, the sending module 53 is further configured to: when the determining module 52 determines that the device type of the ONU does not match the device type of the allowed registered device, send a wavelength channel switching command to the ONU. To indicate that the ONU is re-registered.
应理解, 根据本发明实施例的光线路终端 50可对应于本发明实施例中 的 OLT, 并且光线路终端 50中的各个模块的上述和其它操作和 /或功能分别 为了实现图 17至图 20中的方法 500的相应流程,为了简洁,在此不再赘述。  It should be understood that the optical line terminal 50 according to an embodiment of the present invention may correspond to the OLT in the embodiment of the present invention, and the above and other operations and/or functions of the respective modules in the optical line terminal 50 are respectively implemented in order to implement FIGS. 17 to 20 The corresponding process of the method 500 in the following is omitted for brevity.
因此, 本发明实施例的光线路终端, 通过光线路终端接收光网络单元发 送的注册响应, 并在该注册响应中携带用于指示光网络单元的设备类型的字 段,使得光线路终端能够根据该注册响应确定光网络单元的设备类型与允许 注册设备的设备类型是否匹配, 并在匹配时向光网络单元发送设备标识, 从 而在多个无源光网络***共存情况下使得光线路终端能够识别请求注册的 设备的类型, 并能够向类型相匹配的光网络单元发送设备标识, 由此能够正 确地进行设备注册, 并能够避免对其它设备的干扰。  Therefore, the optical line terminal of the embodiment of the present invention receives the registration response sent by the optical network unit through the optical line terminal, and carries a field indicating the device type of the optical network unit in the registration response, so that the optical line terminal can The registration response determines whether the device type of the optical network unit matches the device type of the device to be registered, and transmits the device identification to the optical network unit when matching, so that the optical line terminal can identify the request in the case where multiple passive optical network systems coexist. The type of device registered, and the device identifier can be sent to the optical network unit of the matching type, thereby enabling device registration to be correctly performed and interference with other devices can be avoided.
应理解, 本文中术语 "***" 和 "网络" 在本文中常被可互换使用。 本 文中术语 "和 /或", 仅仅是一种描述关联对象的关联关系, 表示可以存在三 种关系, 例如, A和 /或 可以表示: 单独存在八, 同时存在八和^ 单独 存在 B这三种情况。 另外, 本文中字符 "/", 一般表示前后关联对象是一种 "或" 的关系。 It should be understood that the terms "system" and "network" are used interchangeably herein. The term "and/or" in this article is merely an association describing the associated object, indicating that there can be three For example, A and/or can mean: There are eight cases alone, and there are three cases where there are eight and ^ alone. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.
还应理解, 在本发明实施例中, "与 A相应的 B" 表示 B与 A相关联, 根据 A可以确定^ 但还应理解, 根据 A确定 B并不意味着仅仅根据 A确 定 还可以根据 A和 /或其它信息确定^  It should also be understood that in the embodiment of the present invention, "B corresponding to A" means that B is associated with A, and can be determined according to A. However, it should be understood that determining B according to A does not mean that it can be determined based only on A. A and / or other information to determine ^
如图 29所示,本发明实施例还提供了一种光网络单元 610,该光网络单 元 610包括处理器 611、 存储器 612、 总线*** 613和接收器 614。 其中, 处 理器 611、 存储器 612和接收器 614通过总线*** 613相连, 该存储器 612 用于存储指令, 该处理器 611用于执行该存储器 612存储的指令, 以控制接 收器 614接收信号。 其中, 该接收器 614用于: 接收光线路终端 OLT发送 的下行帧, 该下行帧携带用于指示当前波长通道的下行波长通道信息的字 段, 该下行波长通道信息包括该波长通道的类型; 该处理器 611用于: 根据 该波长通道的类型, 从至少一个下行波长通道中确定该 ONU的目标下行波 长通道, 其中, 该目标下行波长通道的类型与该 ONU的设备类型相匹配。  As shown in FIG. 29, an embodiment of the present invention further provides an optical network unit 610. The optical network unit 610 includes a processor 611, a memory 612, a bus system 613, and a receiver 614. The processor 611, the memory 612 and the receiver 614 are connected by a bus system 613 for storing instructions, and the processor 611 is configured to execute the instructions stored by the memory 612 to control the receiver 614 to receive signals. The receiver 614 is configured to: receive a downlink frame sent by the optical line terminal OLT, where the downlink frame carries a field for indicating downlink wavelength channel information of the current wavelength channel, where the downlink wavelength channel information includes a type of the wavelength channel; The processor 611 is configured to: determine, according to the type of the wavelength channel, a target downlink wavelength channel of the ONU from the at least one downlink wavelength channel, where the type of the target downlink wavelength channel matches the device type of the ONU.
因此, 本发明实施例的光网络单元, 通过在光网络单元接收光线路终端 所发送的下行帧中, 携带下行波长通道的类型信息, 从而能够在多个无源光 网络***共存情况下识别下行波长通道的类型, 由此能够将类型相匹配的下 行波长通道的波长确定为 ONU的目标下行波长, 从而能够正确地进行波长 初始化, 并能够避免对其它设备的干扰。  Therefore, the optical network unit of the embodiment of the present invention can carry the type information of the downlink wavelength channel in the downlink frame sent by the optical network unit to receive the optical line terminal, so that the downlink can be identified in the case where multiple passive optical network systems coexist. The type of the wavelength channel, whereby the wavelength of the downlink wavelength channel matched by the type can be determined as the target downstream wavelength of the ONU, so that the wavelength initialization can be correctly performed, and interference with other devices can be avoided.
应理解,在本发明实施例中,该处理器 611可以是中央处理单元(Central Processing Unit, 简称为 "CPU" ), 该处理器 611还可以是其他通用处理器、 数字信号处理器(DSP )、专用集成电路(ASIC )、现成可编程门阵列(FPGA ) 或者其他可编程逻辑器件、 分立门或者晶体管逻辑器件、 分立硬件组件等。 通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。  It should be understood that, in the embodiment of the present invention, the processor 611 may be a central processing unit ("CPU"), and the processor 611 may also be other general-purpose processors, digital signal processors (DSPs). An application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, and the like. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
该存储器 612可以包括只读存储器和随机存取存储器, 并向处理器 611 提供指令和数据。存储器 612的一部分还可以包括非易失性随机存取存储器。 例如, 存储器 612还可以存储设备类型的信息。  The memory 612 can include read only memory and random access memory and provides instructions and data to the processor 611. A portion of memory 612 may also include non-volatile random access memory. For example, the memory 612 can also store information of the device type.
该总线*** 613除包括数据总线之外, 还可以包括电源总线、 控制总线 和状态信号总线等。 但是为了清楚说明起见, 在图中将各种总线都标为总线 *** 613。 在实现过程中, 上述方法的各步骤可以通过处理器 611中的硬件的集成 逻辑电路或者软件形式的指令完成。 结合本发明实施例所公开的方法的步骤 可以直接体现为硬件处理器执行完成, 或者用处理器中的硬件及软件模块组 合执行完成。 软件模块可以位于随机存储器, 闪存、 只读存储器, 可编程只 读存储器或者电可擦写可编程存储器、 寄存器等本领域成熟的存储介质中。 该存储介质位于存储器 612, 处理器 611读取存储器 612中的信息, 结合其 硬件完成上述方法的步骤。 为避免重复, 这里不再详细描述。 The bus system 613 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as the bus system 613 in the figure. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 611 or an instruction in a form of software. The steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor. The software modules can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like. The storage medium is located in the memory 612. The processor 611 reads the information in the memory 612 and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
可选地, 作为一个实施例, 该下行帧具体为用于指示该下行波长通道信 息的下行物理同步块 PSBd或模板物理层运行与维护 Profile PLOAM消息。  Optionally, as an embodiment, the downlink frame is specifically a downlink physical synchronization block PSBd or a template physical layer operation and maintenance profile PLOAM message used to indicate the downlink wavelength channel information.
可选地, 作为一个实施例, 该下行物理同步块包括的无源光网络操作控 制体 PON OC Body字段或无源光网络标识 PON ID字段用于指示该下行波 长通道信息。  Optionally, as an embodiment, the downlink optical synchronization block includes a passive optical network operation control PON OC Body field or a passive optical network identification PON ID field for indicating the downlink wavelength channel information.
可选地, 作为一个实施例, 该下行波长通道信息还包括该波长通道能够 传输的下行业务的类型; 其中, 该处理器 611根据该波长通道的类型, 从至 少一个下行波长通道中确定光网络单元 ONU的目标下行波长通道, 包括: 根据该波长通道的类型和该能够传输的下行业务的类型,从该至少一个 下行波长通道中确定该目标下行波长通道, 其中, 该目标下行波长通道的类 型与该 ONU的设备类型相匹配, 并且该目标下行波长通道能够传输的下行 业务的类型与该 ONU支持的下行业务的类型相匹配。  Optionally, as an embodiment, the downlink wavelength channel information further includes a type of downlink service that the wavelength channel can transmit; wherein the processor 611 determines the optical network from the at least one downlink wavelength channel according to the type of the wavelength channel. The target downlink wavelength channel of the unit ONU includes: determining the target downlink wavelength channel from the at least one downlink wavelength channel according to the type of the wavelength channel and the type of the downlink service that can be transmitted, where the type of the target downlink wavelength channel Matching the device type of the ONU, and the type of the downlink service that the target downlink wavelength channel can transmit matches the type of the downlink service supported by the ONU.
可选地, 作为一个实施例, 该光网络单元 610为 PtP WDM-PON ONU。 的 ONU 10, 并且光网络单元 610中的各个模块的上述和其它操作和 /或功能 分别为了实现图 1至图 5中的方法 100的相应流程, 为了简洁, 在此不再赘 述。  Optionally, as an embodiment, the optical network unit 610 is a PtP WDM-PON ONU. The above-mentioned and other operations and/or functions of the respective modules in the optical network unit 610 are respectively implemented in order to implement the corresponding processes of the method 100 in FIGS. 1 to 5, and are not described herein for brevity.
因此, 本发明实施例的光网络单元, 通过在光网络单元接收光线路终端 所发送的下行帧中, 携带下行波长通道的类型信息, 从而能够在多个无源光 网络***共存情况下识别下行波长通道的类型, 由此能够将类型相匹配的下 行波长通道的波长确定为 ONU的目标下行波长, 从而能够正确地进行波长 初始化, 并能够避免对其它设备的干扰。  Therefore, the optical network unit of the embodiment of the present invention can carry the type information of the downlink wavelength channel in the downlink frame sent by the optical network unit to receive the optical line terminal, so that the downlink can be identified in the case where multiple passive optical network systems coexist. The type of the wavelength channel, whereby the wavelength of the downlink wavelength channel matched by the type can be determined as the target downstream wavelength of the ONU, so that the wavelength initialization can be correctly performed, and interference with other devices can be avoided.
如图 30所示,本发明实施例还提供了一种光网络单元 620,该光网络单 元 620包括处理器 621、 存储器 622、 总线*** 623和接收器 624。 其中, 处 理器 621、 存储器 622和接收器 624通过总线*** 623相连, 该存储器 622 用于存储指令, 该处理器 621用于执行该存储器 622存储的指令, 以控制接 收器 624接收信号。 其中, 该接收器 624用于: 接收光线路终端 OLT响应 的下行帧, 该下行帧携带用于指示当前波长通道的上行波长通道信息的字 段, 该上行波长通道信息包括该波长通道的类型; 该处理器 621用于: 根据 该波长通道的类型, 从至少一个上行波长通道中确定该 ONU的目标上行波 长通道, 其中, 该目标上行波长通道的类型与该 ONU的设备类型相匹配。 As shown in FIG. 30, an embodiment of the present invention further provides an optical network unit 620, which includes a processor 621, a memory 622, a bus system 623, and a receiver 624. Among them, The processor 621, the memory 622 and the receiver 624 are connected by a bus system 623 for storing instructions for executing instructions stored by the memory 622 to control the receiver 624 to receive signals. The receiver 624 is configured to: receive a downlink frame that is responded by the optical line terminal OLT, where the downlink frame carries a field for indicating uplink wavelength channel information of the current wavelength channel, where the uplink wavelength channel information includes a type of the wavelength channel; The processor 621 is configured to: determine, according to the type of the wavelength channel, a target uplink wavelength channel of the ONU from the at least one uplink wavelength channel, where the type of the target uplink wavelength channel matches the device type of the ONU.
因此, 本发明实施例的光网络单元, 通过光网络单元向光线路终端发送 注册响应, 并接收光线路终端发送的上行波长通道的类型信息, 从而能够在 多个无源光网络***共存情况下识别上行波长通道的类型, 由此能够将类型 相匹配的上行波长通道的波长确定为 ONU的目标上行波长, 从而能够正确 地进行波长初始化, 并能够避免对其它设备的干扰。  Therefore, the optical network unit of the embodiment of the present invention sends a registration response to the optical line terminal through the optical network unit, and receives the type information of the uplink wavelength channel sent by the optical line terminal, so that the multiple passive optical network systems can coexist. The type of the upstream wavelength channel is identified, so that the wavelength of the upstream wavelength channel matched by the type can be determined as the target upstream wavelength of the ONU, so that the wavelength initialization can be correctly performed, and interference with other devices can be avoided.
可选地, 作为一个实施例, 该接收模块 624还用于: 接收该 OLT发送 的注册请求, 该注册请求携带用于指示允许注册设备的设备类型的字段; 该 ONU 620还包括发送模块 625,用于向光线路终端 OLT发送上行帧, 该上行帧携带用于指示该 ONU的设备类型的字段;  Optionally, as an embodiment, the receiving module 624 is further configured to: receive a registration request sent by the OLT, where the registration request carries a field for indicating a device type of the device to be registered; the ONU 620 further includes a sending module 625. And configured to send an uplink frame to the optical line terminal OLT, where the uplink frame carries a field for indicating a device type of the ONU;
其中, 该确定模块 621还用于: 确定该 ONU的设备类型与该允许注册 设备的设备类型是否匹配;  The determining module 621 is further configured to: determine whether a device type of the ONU matches a device type of the allowed registered device;
该发送模块 625具体用于: 在该确定模块确定该 ONU的设备类型与该 允许注册设备的设备类型匹配时, 向该 OLT发送该上行帧。  The sending module 625 is specifically configured to: when the determining module determines that the device type of the ONU matches the device type of the allowed registered device, send the uplink frame to the OLT.
可选地, 作为一个实施例, 该接收器 624接收该 OLT发送的注册请求, 包括:  Optionally, as an embodiment, the receiver 624 receives the registration request sent by the OLT, including:
接收该 OLT发送的包括分配结构 Allocation structure字段的该注册请 求,该分配结构字段中的分配单元标识 Alloc-ID字段的取值指示该允许注册 设备的设备类型; 或该分配结构字段包括取值用于指示该允许注册设备的设 备类型的字段。  Receiving, by the OLT, the registration request including an allocation structure Allocation structure field, where the allocation unit identifier Alloc-ID field value indicates the device type of the device to be registered; or the allocation structure field includes the value A field indicating the type of device that is allowed to register the device.
可选地, 作为一个实施例, 该接收器 624接收该 OLT发送的注册请求, 包括:  Optionally, as an embodiment, the receiver 624 receives the registration request sent by the OLT, including:
接收该 OLT通过物理层运行与维护 PLOAM消息发送的该注册请求, 该 PLOAM消息包括用于指示该允许注册设备的设备类型的字段。  Receiving the registration request sent by the OLT through the physical layer to run and maintain the PLOAM message, the PLOAM message includes a field for indicating the device type of the device to be registered.
可选地, 作为一个实施例, 该上行帧携带的用于指示该 ONU的设备类 型的字段包括无源光网络操作控制体 PON OC Body字段或无源光网络标识 PON ID字段, 该 PON OC Body字段和该 PON ID字段用于指示该 ONU所 在的下行波长通道的类型, 以指示该 ONU的设备类型。 Optionally, as an embodiment, the device class carried by the uplink frame is used to indicate the ONU. The type field includes a passive optical network operation control body PON OC Body field or a passive optical network identification PON ID field, and the PON OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located, to indicate The device type of the ONU.
可选地, 作为一个实施例, 该上行波长通道信息还包括该波长通道能够 传输的上行业务的类型;  Optionally, as an embodiment, the uplink wavelength channel information further includes a type of uplink service that the wavelength channel can transmit;
其中, 该处理器 621根据该波长通道的类型, 从至少一个上行波长通道 中确定该 ONU的目标上行波长通道, 包括:  The processor 621 determines the target uplink wavelength channel of the ONU from the at least one upstream wavelength channel according to the type of the wavelength channel, including:
根据该波长通道的类型和该能够传输的上行业务的类型,从该至少一个 上行波长通道中确定该目标上行波长, 其中, 该目标上行波长通道的类型与 该 ONU的设备类型相匹配, 并且该目标上行波长通道能够传输的上行业务 的类型与该 ONU支持的上行业务的类型相匹配。  Determining the target uplink wavelength from the at least one uplink wavelength channel according to the type of the wavelength channel and the type of the uplink service that can be transmitted, where the type of the target uplink wavelength channel matches the device type of the ONU, and the The type of uplink service that the target upstream wavelength channel can transmit matches the type of uplink service supported by the ONU.
可选地, 作为一个实施例, 在接收器 624接收该 OLT发送的下行帧之 前, 该接收器 624还用于: 接收该 OLT根据该上行帧发送的波长通道切换 命令或波长调节命令, 以指示该 ONU进行上行波长校准。 的 ONU 20, 并且光网络单元 620中的各个模块的上述和其它操作和 /或功能 分别为了实现图 6至图 8中的方法 200的相应流程, 为了简洁, 在此不再赘 述。  Optionally, as an embodiment, before the receiver 624 receives the downlink frame sent by the OLT, the receiver 624 is further configured to: receive a wavelength channel switching command or a wavelength adjustment command sent by the OLT according to the uplink frame, to indicate The ONU performs upstream wavelength calibration. The ONU 20, and the above-described and other operations and/or functions of the respective modules in the optical network unit 620 are respectively omitted for the sake of brevity in order to implement the corresponding processes of the method 200 in FIG. 6 to FIG.
因此, 本发明实施例的光网络单元, 通过光网络单元向光线路终端发送 注册响应, 并接收光线路终端发送的上行波长通道的类型信息, 从而能够在 多个无源光网络***共存情况下识别上行波长通道的类型, 由此能够将类型 相匹配的上行波长通道的波长确定为 ONU的目标上行波长, 从而能够正确 地进行波长初始化, 并能够避免对其它设备的干扰。  Therefore, the optical network unit of the embodiment of the present invention sends a registration response to the optical line terminal through the optical network unit, and receives the type information of the uplink wavelength channel sent by the optical line terminal, so that the multiple passive optical network systems can coexist. The type of the upstream wavelength channel is identified, so that the wavelength of the upstream wavelength channel matched by the type can be determined as the target upstream wavelength of the ONU, so that the wavelength initialization can be correctly performed, and interference with other devices can be avoided.
如图 31所示,本发明实施例还提供了一种光网络单元 630,该光网络单 元 630包括处理器 631、 存储器 632、 总线*** 633、 接收器 634和发送器 635。 其中, 处理器 631、 存储器 632、 接收器 634和发送器 635通过总线系 统 633相连, 该存储器 632用于存储指令, 该处理器 631用于执行该存储器 632存储的指令, 以控制接收器 634接收信号,并控制发送器 635发送信号。 其中, 该发送器 635用于: 向光线路终端 OLT发送注册响应, 该注册响应 用于请求该 OLT分配标识, 并且该注册响应携带用于指示光网络单元 ONU 的设备类型的字段; 该接收器 634用于: 接收该 OLT在根据该注册响应确 定该 ONU的设备类型与允许注册设备的设备类型匹配时发送的该 ONU的 设备标识; 该处理器 631用于根据该设备标识进行信息的传输。 As shown in FIG. 31, an embodiment of the present invention further provides an optical network unit 630. The optical network unit 630 includes a processor 631, a memory 632, a bus system 633, a receiver 634, and a transmitter 635. The processor 631, the memory 632, the receiver 634 and the transmitter 635 are connected by a bus system 633 for storing instructions for executing instructions stored in the memory 632 to control the receiver 634 to receive. Signal and control transmitter 635 to send a signal. The transmitter 635 is configured to: send a registration response to the optical line terminal OLT, where the registration response is used to request the OLT to allocate an identifier, and the registration response carries a field for indicating a device type of the optical network unit ONU; the receiver 634 is used to: receive the OLT in response to the registration response The device identifier of the ONU sent when the device type of the ONU matches the device type of the device to be registered; the processor 631 is configured to perform information transmission according to the device identifier.
因此, 本发明实施例的光网络单元, 通过光网络单元向光线路终端发送 注册响应, 并在该注册响应中携带用于指示光网络单元的设备类型的字段, 使得光线路终端能够根据该注册响应确定光网络单元的设备类型与允许注 册设备的设备类型是否匹配, 并在匹配时向光网络单元发送设备标识, 从而 在多个无源光网络***共存情况下使得光线路终端能够识别请求注册的设 备的类型, 并能够向类型相匹配的光网络单元发送设备标识, 由此能够正确 地进行设备注册, 并能够避免对其它设备的干扰。  Therefore, the optical network unit of the embodiment of the present invention sends a registration response to the optical line terminal through the optical network unit, and carries a field indicating the device type of the optical network unit in the registration response, so that the optical line terminal can be registered according to the Responding to determine whether the device type of the optical network unit matches the device type of the device to be registered, and send the device identifier to the optical network unit when matching, so that the optical line terminal can recognize the request for registration in the case where multiple passive optical network systems coexist The type of device, and the ability to send the device identification to the optical network unit of the matching type, thereby enabling proper device registration and avoiding interference with other devices.
可选地, 作为一个实施例, 该接收器 634还用于: 接收该 OLT发送的 注册请求, 该注册请求携带用于指示允许注册设备的设备类型的字段; 该处 理器 631还用于: 确定该 ONU的设备类型与该允许注册设备的设备类型是 否匹配; 该发送器 635具体用于: 在确定该 ONU的设备类型与该允许注册 设备的设备类型匹配时, 向该 OLT发送该注册响应。  Optionally, as an embodiment, the receiver 634 is further configured to: receive a registration request sent by the OLT, where the registration request carries a field for indicating a device type of the device to be registered; the processor 631 is further configured to: determine Whether the device type of the ONU matches the device type of the device to be registered; the transmitter 635 is specifically configured to: send the registration response to the OLT when determining that the device type of the ONU matches the device type of the allowed device.
可选地, 作为一个实施例, 该接收器 634接收该 OLT发送的注册请求, 包括:  Optionally, as an embodiment, the receiver 634 receives the registration request sent by the OLT, including:
接收该 OLT发送的包括分配结构 Allocation structure字段的该注册请 求,该分配结构字段中的分配单元标识 Alloc-ID字段的取值指示该允许注册 设备的设备类型; 或该分配结构字段包括取值用于指示该允许注册设备的设 备类型的字段。  Receiving, by the OLT, the registration request including an allocation structure Allocation structure field, where the allocation unit identifier Alloc-ID field value indicates the device type of the device to be registered; or the allocation structure field includes the value A field indicating the type of device that is allowed to register the device.
可选地, 作为一个实施例, 该接收器 634接收该 OLT发送的注册请求, 包括:  Optionally, as an embodiment, the receiver 634 receives the registration request sent by the OLT, including:
接收该 OLT通过物理层运行与维护 PLOAM消息发送的该注册请求, 该 PLOAM消息包括用于指示该允许注册设备的设备类型的字段。  Receiving the registration request sent by the OLT through the physical layer to run and maintain the PLOAM message, the PLOAM message includes a field for indicating the device type of the device to be registered.
可选地, 作为一个实施例, 该注册响应携带的用于指示该 ONU的设备 类型的字段包括无源光网络操作控制体 PON OC Body字段或无源光网络标 识 PON ID字段, 该 PON OC Body字段和该 PON ID字段用于指示该 ONU 所在的下行波长通道的类型, 以指示该 ONU的设备类型。  Optionally, as an embodiment, the field that is used by the registration response to indicate the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identifier PON ID field, and the PON OC Body The field and the PON ID field are used to indicate the type of the downstream wavelength channel in which the ONU is located to indicate the device type of the ONU.
可选地, 作为一个实施例, 在该接收器 634接收该 OLT在根据该注册 响应确定该 ONU 的设备类型与允许注册设备的设备类型匹配时发送的该 ONU的设备标识之后, 该发送器 635还用于: 向该 OLT发送确认信息, 该 确认信息用于指示该 ONU接收到该设备标识。 Optionally, as an embodiment, after the receiver 634 receives the device identifier of the ONU that is sent by the OLT when determining that the device type of the ONU matches the device type of the device to be registered according to the registration response, the transmitter 635 Also used to: send confirmation information to the OLT, The confirmation information is used to indicate that the ONU receives the device identification.
可选地, 作为一个实施例, 接收器 634还用于: 接收该 OLT在根据该 注册响应确定该 ONU的设备类型与该允许注册设备的设备类型不匹配时发 送的波长通道切换命令, 以指示该 ONU重新注册。 的 ONU 30, 并且光网络单元 630中的各个模块的上述和其它操作和 /或功能 分别为了实现图 9至图 12中的方法 300的相应流程, 为了简洁, 在此不再 赘述。  Optionally, as an embodiment, the receiver 634 is further configured to: receive a wavelength channel switching command sent by the OLT when determining, according to the registration response, that the device type of the ONU does not match the device type of the allowed registration device, to indicate The ONU is re-registered. The ONU 30, and the above-described and other operations and/or functions of the respective modules in the optical network unit 630 are respectively omitted for the sake of brevity in order to implement the corresponding processes of the method 300 in FIG. 9 to FIG.
因此, 本发明实施例的光网络单元, 通过光网络单元向光线路终端发送 注册响应, 并在该注册响应中携带用于指示光网络单元的设备类型的字段, 使得光线路终端能够根据该注册响应确定光网络单元的设备类型与允许注 册设备的设备类型是否匹配, 并在匹配时向光网络单元发送设备标识, 从而 在多个无源光网络***共存情况下使得光线路终端能够识别请求注册的设 备的类型, 并能够向类型相匹配的光网络单元发送设备标识, 由此能够正确 地进行设备注册, 并能够避免对其它设备的干扰。  Therefore, the optical network unit of the embodiment of the present invention sends a registration response to the optical line terminal through the optical network unit, and carries a field indicating the device type of the optical network unit in the registration response, so that the optical line terminal can be registered according to the Responding to determine whether the device type of the optical network unit matches the device type of the device to be registered, and send the device identifier to the optical network unit when matching, so that the optical line terminal can recognize the request for registration in the case where multiple passive optical network systems coexist The type of device, and the ability to send the device identification to the optical network unit of the matching type, thereby enabling proper device registration and avoiding interference with other devices.
如图 32所示,本发明实施例还提供了一种光线路终端 640,该光线路终 端 640包括处理器 641、 存储器 642、 总线*** 643、 接收器 644和发送器 645。 其中, 处理器 641、 存储器 642、 接收器 644和发送器 645通过总线系 统 643相连, 该存储器 642用于存储指令, 该处理器 641用于执行该存储器 642存储的指令, 以控制接收器 644接收信号,并控制发送器 645发送信号。 其中, 该处理器 641用于: 确定波长通道信息, 该波长通道信息包括下行波 长通道信息和 /或上行波长通道信息,其中,该下行波长通道信息包括光线路 终端 OLT 当前釆用的下行波长通道的类型, 该上行波长通道信息包括上行 波长通道的类型; 该发送器 651用于: 向光网络单元 ONU发送该波长通道 信息。  As shown in FIG. 32, an embodiment of the present invention further provides an optical line terminal 640. The optical line terminal 640 includes a processor 641, a memory 642, a bus system 643, a receiver 644, and a transmitter 645. The processor 641, the memory 642, the receiver 644 and the transmitter 645 are connected by a bus system 643 for storing instructions for executing instructions stored in the memory 642 to control the receiver 644 to receive. Signal and control transmitter 645 to send a signal. The processor 641 is configured to: determine wavelength channel information, where the wavelength channel information includes downlink wavelength channel information and/or uplink wavelength channel information, where the downlink wavelength channel information includes a downlink wavelength channel currently used by the optical line terminal OLT The type of the upstream wavelength channel information includes the type of the uplink wavelength channel; the transmitter 651 is configured to: send the wavelength channel information to the optical network unit ONU.
因此, 本发明实施例的光线路终端, 通过光线路终端确定包括下行波长 通道信息和 /或上行波长通道信息的波长通道信息,并向光网络单元发送该波 长通道信息,使得光网络单元能够获知下行波长通道和 /或上行波长通道的信 息,从而能够在多个无源光网络***共存情况下识别下行波长通道和 /或上行 波长通道的类型和 /或能够传输的下行业务的类型等信息,由此能够正确地进 行波长初始化, 并能够避免对其它设备的干扰。 可选地, 作为一个实施例, 在该波长通道信息包括该下行波长通道信息 时,该发送器 645向光网络单元 ONU发送该波长通道信息,包括:向该 ONU 发送下行物理同步块 PSBd或模板物理层运行与维护 Profile PLOAM消息, 其中, 该下行物理同步块承载该下行波长通道信息, 该 Profile PLOAM消息 包括该下行波长通道信息。 Therefore, the optical line terminal of the embodiment of the present invention determines the wavelength channel information including the downlink wavelength channel information and/or the uplink wavelength channel information through the optical line terminal, and sends the wavelength channel information to the optical network unit, so that the optical network unit can know The information of the downlink wavelength channel and/or the uplink wavelength channel, so that information such as the type of the downlink wavelength channel and/or the uplink wavelength channel and/or the type of downlink service that can be transmitted can be identified in the case where a plurality of passive optical network systems coexist. Thereby, wavelength initialization can be performed correctly, and interference with other devices can be avoided. Optionally, as an embodiment, when the wavelength channel information includes the downlink wavelength channel information, the transmitter 645 sends the wavelength channel information to the optical network unit ONU, including: sending a downlink physical synchronization block PSBd or a template to the ONU. The physical layer operates and maintains a profile PLOAM message, where the downlink physical synchronization block carries the downlink wavelength channel information, and the profile PLOAM message includes the downlink wavelength channel information.
可选地, 作为一个实施例, 该下行物理同步块包括的无源光网络操作控 制体 PON OC Body字段承载该下行波长通道信息; 或该下行物理同步块包 括的无源光网络标识 PON ID字段 7 载该下行波长通道信息。  Optionally, as an embodiment, the downlink optical synchronization block includes a passive optical network operation control body PON OC Body field that carries the downlink wavelength channel information; or the downlink physical synchronization block includes a passive optical network identifier PON ID field. 7 carries the downlink wavelength channel information.
可选地, 作为一个实施例, 该接收器 644用于: 接收该 ONU在该上行 波长通道上发送的注册响应, 该注册响应用于请求上行波长校准, 并且该注 册响应携带用于指示该 ONU的设备类型的字段;  Optionally, as an embodiment, the receiver 644 is configured to: receive a registration response sent by the ONU on the uplink wavelength channel, where the registration response is used to request uplink wavelength calibration, and the registration response is carried to indicate the ONU Field of device type;
其中, 该发送器 645向光网络单元 ONU发送该波长通道信息, 包括: 才艮据该注册响应向该 ONU发送该上行波长通道信息。  The transmitting, by the transmitter 645, the wavelength channel information to the ONU, includes: sending the uplink wavelength channel information to the ONU according to the registration response.
可选地, 作为一个实施例, 该发送器 645还用于: 向该 ONU发送注册 请求, 该注册请求携带用于指示允许注册设备的设备类型的字段;  Optionally, as an embodiment, the sender 645 is further configured to: send a registration request to the ONU, where the registration request carries a field for indicating a device type of the device to be registered;
其中,该接收器 644接收该 ONU在该上行波长通道上向该 OLT发送的 注册响应, 包括: 接收该 ONU在确定该 ONU的设备类型与该允许注册设 备的设备类型匹配时, 在该上行波长通道上发送的该注册响应。  The receiver 644 receives the registration response sent by the ONU to the OLT on the uplink wavelength channel, and includes: receiving, by the ONU, the upstream wavelength when determining that the device type of the ONU matches the device type of the allowed registration device. The registration response sent on the channel.
可选地, 作为一个实施例, 该发送器 645向该 ONU发送注册请求, 包 括:  Optionally, as an embodiment, the sender 645 sends a registration request to the ONU, including:
向该 ONU发送包括分配结构 Allocation structure字段的该注册请求,该 分配结构字段中的分配单元标识 Alloc-ID 字段的取值指示该允许注册设备 的设备类型; 或该分配结构字段包括取值用于指示该允许注册设备的设备类 型的字段。  Transmitting, to the ONU, the registration request including an allocation structure Allocation structure field, where the value of the allocation unit identifier Alloc-ID field in the allocation structure field indicates the device type of the device to be registered; or the allocation structure field includes a value for A field indicating the device type that is allowed to register the device.
可选地, 作为一个实施例, 该发送器 645向该 ONU发送注册请求, 包 括:  Optionally, as an embodiment, the sender 645 sends a registration request to the ONU, including:
通过物理层运行与维护 PLOAM 消息向该 ONU发送该注册请求, 该 PLOAM消息包括用于指示该允许注册设备的设备类型的字段。  The registration request is sent to the ONU through a physical layer operation and maintenance PLOAM message, the PLOAM message including a field indicating the device type of the device to be registered.
可选地, 作为一个实施例, 该注册响应携带的用于指示该 ONU的设备 类型的字段包括无源光网络操作控制体 PON OC Body字段或无源光网络标 识 PON ID字段, 该 PON OC Body字段和该 PON ID字段用于指示该 ONU 所在的下行波长通道的类型, 以指示该 ONU的设备类型。 Optionally, as an embodiment, the field that is used by the registration response to indicate the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identifier PON ID field, and the PON OC Body Field and the PON ID field are used to indicate the ONU The type of downstream wavelength channel in which it is located to indicate the device type of the ONU.
可选地, 作为一个实施例, 在该发送器 645根据该注册响应向该 ONU 发送该上行波长通道信息之前, 该发送器 645还用于: 根据该注册响应向该 ONU发送波长通道切换命令或波长调节命令,以指示该 ONU进行上行波长 校准。  Optionally, as an embodiment, before the transmitter 645 sends the uplink wavelength channel information to the ONU according to the registration response, the transmitter 645 is further configured to: send a wavelength channel switching command to the ONU according to the registration response or A wavelength adjustment command to instruct the ONU to perform upstream wavelength calibration.
可选地, 作为一个实施例, 该下行波长通道信息还包括该下行波长通道 能够传输的下行业务的类型; 该上行波长通道信息还包括该上行波长通道能 够传输的上行业务的类型。 的 OLT 40, 并且光线路终端 640中的各个模块的上述和其它操作和 /或功能 分别为了实现图 13至图 16中的方法 400的相应流程, 为了简洁, 在此不再 赘述。  Optionally, as an embodiment, the downlink wavelength channel information further includes a type of downlink service that the downlink wavelength channel can transmit; the uplink wavelength channel information further includes a type of uplink service that the uplink wavelength channel can transmit. The OLT 40, and the above-described and other operations and/or functions of the various modules in the optical line terminal 640, respectively, are used to implement the corresponding processes of the method 400 of FIGS. 13-16, and are not described herein again for brevity.
因此, 本发明实施例的光线路终端, 通过光线路终端确定包括下行波长 通道信息和 /或上行波长通道信息的波长通道信息,并向光网络单元发送该波 长通道信息,使得光网络单元能够获知下行波长通道和 /或上行波长通道的信 息,从而能够在多个无源光网络***共存情况下识别下行波长通道和 /或上行 波长通道的类型和 /或能够传输的下行业务的类型等信息,由此能够正确地进 行波长初始化, 并能够避免对其它设备的干扰。  Therefore, the optical line terminal of the embodiment of the present invention determines the wavelength channel information including the downlink wavelength channel information and/or the uplink wavelength channel information through the optical line terminal, and sends the wavelength channel information to the optical network unit, so that the optical network unit can know The information of the downlink wavelength channel and/or the uplink wavelength channel, so that information such as the type of the downlink wavelength channel and/or the uplink wavelength channel and/or the type of downlink service that can be transmitted can be identified in the case where a plurality of passive optical network systems coexist. Thereby, wavelength initialization can be performed correctly, and interference with other devices can be avoided.
如图 33所示,本发明实施例还提供了一种光线路终端 650,该光线路终 端 650包括处理器 651、 存储器 652、 总线*** 653、 接收器 654和发送器 655。 其中, 处理器 651、 存储器 652、 接收器 654和发送器 655通过总线系 统 653相连, 该存储器 652用于存储指令, 该处理器 651用于执行该存储器 652存储的指令, 以控制接收器 654接收信号,并控制发送器 655发送信号。 其中, 该接收器 654用于: 接收光网络单元 ONU发送的注册响应, 该注册 响应用于请求光线路终端 OLT分配标识, 并且该注册响应携带用于指示该 ONU的设备类型的字段; 该处理器 651用于: 根据该注册响应确定该 ONU 的设备类型与允许注册设备的设备类型是否匹配; 该发送器 655用于: 在确 定该 ONU的设备类型与该允许注册设备的设备类型匹配时, 向该 ONU发 送该 ONU的设备标识。  As shown in FIG. 33, an embodiment of the present invention further provides an optical line terminal 650. The optical line terminal 650 includes a processor 651, a memory 652, a bus system 653, a receiver 654, and a transmitter 655. The processor 651, the memory 652, the receiver 654, and the transmitter 655 are connected by a bus system 653 for storing instructions, and the processor 651 is configured to execute instructions stored by the memory 652 to control the receiver 654 to receive. Signal and control transmitter 655 to send a signal. The receiver 654 is configured to: receive a registration response sent by the optical network unit ONU, where the registration response is used to request the optical line terminal OLT to allocate an identifier, and the registration response carries a field for indicating a device type of the ONU; The device 651 is configured to: determine, according to the registration response, whether the device type of the ONU matches the device type of the device to be registered; the transmitter 655 is configured to: when determining that the device type of the ONU matches the device type of the allowed registration device, The device identifier of the ONU is sent to the ONU.
因此, 本发明实施例的光线路终端, 通过光线路终端接收光网络单元发 送的注册响应, 并在该注册响应中携带用于指示光网络单元的设备类型的字 段,使得光线路终端能够根据该注册响应确定光网络单元的设备类型与允许 注册设备的设备类型是否匹配, 并在匹配时向光网络单元发送设备标识, 从 而在多个无源光网络***共存情况下使得光线路终端能够识别请求注册的 设备的类型, 并能够向类型相匹配的光网络单元发送设备标识, 由此能够正 确地进行设备注册, 并能够避免对其它设备的干扰。 Therefore, the optical line terminal of the embodiment of the present invention receives the registration response sent by the optical network unit through the optical line terminal, and carries the word indicating the type of the device of the optical network unit in the registration response. The segment enables the optical line terminal to determine, according to the registration response, whether the device type of the optical network unit matches the device type of the device to be registered, and sends the device identifier to the optical network unit when matching, thereby coexisting in multiple passive optical network systems. In this case, the optical line terminal can identify the type of device requesting registration, and can transmit the device identification to the optical network unit of which the type matches, thereby enabling device registration to be correctly performed and interference with other devices can be avoided.
可选地, 作为一个实施例, 该发送器 655还用于: 向该 ONU发送注册 请求,该注册请求携带用于指示所示允许注册设备的设备类型的字段;其中, 该接收器 654接收光网络单元 ONU发送的注册响应, 包括:  Optionally, as an embodiment, the transmitter 655 is further configured to: send a registration request to the ONU, where the registration request carries a field for indicating a device type of the device that is allowed to be registered; wherein the receiver 654 receives the light. The registration response sent by the network unit ONU, including:
接收该 ONU在确定该 ONU的设备类型与该允许注册设备的设备类型 匹配时发送的该注册响应。  Receiving the registration response sent by the ONU when determining that the device type of the ONU matches the device type of the allowed registration device.
可选地, 作为一个实施例, 该发送器 655向该 ONU发送注册请求, 包 括:  Optionally, as an embodiment, the sender 655 sends a registration request to the ONU, including:
向该 ONU发送包括分配结构 Allocation structure字段的该注册请求,该 分配结构字段中的分配单元标识 Alloc-ID 字段的取值指示该允许注册设备 的设备类型; 或该分配结构字段包括取值用于指示该允许注册设备的设备类 型的字段。  Transmitting, to the ONU, the registration request including an allocation structure Allocation structure field, where the value of the allocation unit identifier Alloc-ID field in the allocation structure field indicates the device type of the device to be registered; or the allocation structure field includes a value for A field indicating the device type that is allowed to register the device.
可选地, 作为一个实施例, 该发送器 655向该 ONU发送注册请求, 包 括:  Optionally, as an embodiment, the sender 655 sends a registration request to the ONU, including:
通过物理层运行与维护 PLOAM 消息向该 ONU发送该注册请求, 该 PLOAM消息包括用于指示该允许注册设备的设备类型的字段。  The registration request is sent to the ONU through a physical layer operation and maintenance PLOAM message, the PLOAM message including a field indicating the device type of the device to be registered.
可选地, 作为一个实施例, 该注册响应携带的用于指示该 ONU的设备 类型的字段包括无源光网络操作控制体 PON OC Body字段或无源光网络标 识 PON ID字段, 该 PON OC Body字段和该 PON ID字段用于指示该 ONU 所在的下行波长通道的类型, 以指示该 ONU的设备类型。  Optionally, as an embodiment, the field that is used by the registration response to indicate the device type of the ONU includes a passive optical network operation control body PON OC Body field or a passive optical network identifier PON ID field, and the PON OC Body The field and the PON ID field are used to indicate the type of the downstream wavelength channel in which the ONU is located to indicate the device type of the ONU.
可选地, 作为一个实施例, 在该发送器 655向该 ONU发送该 ONU的 设备标识之后, 该接收器 654还用于: 接收该 ONU发送的确认信息, 该确 认信息用于指示该 ONU接收到该设备标识。  Optionally, as an embodiment, after the transmitter 655 sends the device identifier of the ONU to the ONU, the receiver 654 is further configured to: receive acknowledgement information sent by the ONU, where the acknowledgement information is used to indicate that the ONU receives the identifier. Go to the device ID.
可选地, 作为一个实施例, 该发送器 655还用于: 在确定该 ONU的设 备类型与该允许注册设备的设备类型不匹配时, 向该 ONU发送波长通道切 换命令, 以指示该 ONU重新注册。 的 OLT 50, 并且光线路终端 650中的各个模块的上述和其它操作和 /或功能 分别为了实现图 17至图 20中的方法 500的相应流程, 为了简洁, 在此不再 赘述。 Optionally, as an embodiment, the transmitter 655 is further configured to: when determining that the device type of the ONU does not match the device type of the allowed registration device, send a wavelength channel switching command to the ONU to indicate that the ONU is re- registered. The OLT 50, and the above-described and other operations and/or functions of the respective modules in the optical line terminal 650 are respectively omitted in order to implement the corresponding processes of the method 500 in FIG. 17 to FIG. 20 for brevity.
因此, 本发明实施例的光线路终端, 通过光线路终端接收光网络单元发 送的注册响应, 并在该注册响应中携带用于指示光网络单元的设备类型的字 段,使得光线路终端能够根据该注册响应确定光网络单元的设备类型与允许 注册设备的设备类型是否匹配, 并在匹配时向光网络单元发送设备标识, 从 而在多个无源光网络***共存情况下使得光线路终端能够识别请求注册的 设备的类型, 并能够向类型相匹配的光网络单元发送设备标识, 由此能够正 确地进行设备注册, 并能够避免对其它设备的干扰。  Therefore, the optical line terminal of the embodiment of the present invention receives the registration response sent by the optical network unit through the optical line terminal, and carries a field indicating the device type of the optical network unit in the registration response, so that the optical line terminal can The registration response determines whether the device type of the optical network unit matches the device type of the device to be registered, and transmits the device identification to the optical network unit when matching, so that the optical line terminal can identify the request in the case where multiple passive optical network systems coexist. The type of device registered, and the device identifier can be sent to the optical network unit of the matching type, thereby enabling device registration to be correctly performed and interference with other devices can be avoided.
本领域普通技术人员可以意识到, 结合本文中所公开的实施例描述的各 示例的单元及算法步骤, 能够以电子硬件、 计算机软件或者二者的结合来实 现, 为了清楚地说明硬件和软件的可互换性, 在上述说明中已经按照功能一 般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执 行, 取决于技术方案的特定应用和设计约束条件。 专业技术人员可以对每个 特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超 出本发明的范围。  Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software or a combination of both, in order to clearly illustrate hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到, 为了描述的方便和简洁, 上述 描述的***、 装置和单元的具体工作过程, 可以参考前述方法实施例中的对 应过程, 在此不再赘述。  A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的***、 装置和 方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示 意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可 以有另外的划分方式, 例如多个单元或组件可以结合或者可以集成到另一个 ***, 或一些特征可以忽略, 或不执行。 另夕卜, 所显示或讨论的相互之间的 耦合或直接辆合或通信连接可以是通过一些接口、装置或单元的间接辆合或 通信连接, 也可以是电的, 机械的或其它的形式连接。 为单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或 者全部单元来实现本发明实施例方案的目的。 另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元 中, 也可以是各个单元单独物理存在, 也可以是两个或两个以上单元集成在 一个单元中。 上述集成的单元既可以釆用硬件的形式实现, 也可以釆用软件 功能单元的形式实现。 In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed. In addition, the mutual coupling or direct connection or communication connection shown or discussed may be an indirect connection or communication connection through some interface, device or unit, or may be an electrical, mechanical or other form. connection. The components displayed for the unit may or may not be physical units, ie may be located in one place, or may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention. In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销 售或使用时, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方 案的全部或部分可以以软件产品的形式体现出来, 该计算机软件产品存储在 一个存储介质中, 包括若干指令用以使得一台计算机设备(可以是个人计算 机, 服务器, 或者网络设备等)执行本发明各个实施例所述方法的全部或部 分步骤。 而前述的存储介质包括: U盘、 移动硬盘、 只读存储器 (ROM, Read-Only Memory ). 随机存取存储器 ( RAM, Random Access Memory )、 磁碟或者光盘等各种可以存储程序代码的介质。  The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到各种等效的修改或替换, 这些修改或替换都应涵盖在本发明的保护范围 之内。 因此, 本发明的保护范围应以权利要求的保护范围为准。  The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any equivalent person can be easily conceived within the technical scope of the present invention. Modifications or substitutions are intended to be included within the scope of the invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权利要求书 Claim
1、 一种无源光网络中波长初始化的方法, 其特征在于, 包括: 光网络单元 ONU接收光线路终端 OLT发送的下行帧, 所述下行帧携带 用于指示当前波长通道的下行波长通道信息的字段, 所述下行波长通道信息 包括所述波长通道的类型;  A method for wavelength initialization in a passive optical network, comprising: an optical network unit ONU receiving a downlink frame sent by an optical line terminal OLT, wherein the downlink frame carries downlink channel information for indicating a current wavelength channel Field, the downlink wavelength channel information includes a type of the wavelength channel;
所述 ONU根据所述波长通道的类型, 从至少一个下行波长通道中确定 所述 ONU的目标下行波长通道, 其中, 所述目标下行波长通道的类型与所 述 ONU的设备类型相匹配。  The ONU determines a target downlink wavelength channel of the ONU from the at least one downlink wavelength channel according to the type of the wavelength channel, where the type of the target downlink wavelength channel matches the device type of the ONU.
2、 根据权利要求 1 所述的方法, 其特征在于, 所述下行帧具体为用于 指示所述下行波长通道信息的下行物理同步块 PSBd或模板物理层运行与维 护 Profile PLOAM消息。  The method according to claim 1, wherein the downlink frame is specifically a downlink physical synchronization block PSBd or a template physical layer operation and maintenance profile PLOAM message for indicating the downlink wavelength channel information.
3、 根据权利要求 2所述的方法, 其特征在于, 所述下行物理同步块包 括的无源光网络操作控制体 PON OC Body字段或无源光网络标识 PON ID 字段用于指示所述下行波长通道信息。  The method according to claim 2, wherein the downlink optical synchronization block includes a passive optical network operation control body PON OC Body field or a passive optical network identification PON ID field for indicating the downlink wavelength Channel information.
4、 根据权利要求 1至 3中任一项所述的方法, 其特征在于, 所述下行 波长通道信息还包括所述波长通道能够传输的下行业务的类型;  The method according to any one of claims 1 to 3, wherein the downlink wavelength channel information further includes a type of downlink service that the wavelength channel can transmit;
其中, 所述 ONU根据所述波长通道的类型, 从至少一个下行波长通道 中确定所述 ONU的目标下行波长通道, 包括:  Determining, by the ONU, the target downlink wavelength channel of the ONU from the at least one downlink wavelength channel according to the type of the wavelength channel, including:
所述 ONU根据所述波长通道的类型和所述能够传输的下行业务的类 型, 从所述至少一个下行波长通道中确定所述目标下行波长通道, 其中, 所 述目标下行波长通道的类型与所述 ONU的设备类型相匹配, 并且所述目标 下行波长通道能够传输的下行业务的类型与所述 ONU支持的下行业务的类 型相匹配。  Determining, by the ONU, the target downlink wavelength channel from the at least one downlink wavelength channel according to the type of the wavelength channel and the type of the downlink service that can be transmitted, where the type and destination of the target downlink wavelength channel are The device types of the ONUs are matched, and the type of the downlink service that the target downlink wavelength channel can transmit matches the type of the downlink service supported by the ONU.
5、 一种无源光网络中波长初始化的方法, 其特征在于, 包括: 光网络单元 ONU接收光线路终端 OLT发送的下行帧, 所述下行帧携带 用于指示当前波长通道的上行波长通道信息的字段, 所述上行波长通道信息 包括所述波长通道的类型;  A method for initializing a wavelength in a passive optical network, comprising: an optical network unit ONU receiving a downlink frame sent by an optical line terminal OLT, wherein the downlink frame carries an uplink wavelength channel information used to indicate a current wavelength channel Field, the uplink wavelength channel information includes a type of the wavelength channel;
所述 ONU根据所述波长通道的类型, 从至少一个上行波长通道中确定 所述 ONU的目标上行波长通道, 其中, 所述目标上行波长通道的类型与所 述 ONU的设备类型相匹配。  And determining, by the ONU, the target uplink wavelength channel of the ONU from the at least one uplink wavelength channel according to the type of the wavelength channel, where the type of the target uplink wavelength channel matches the device type of the ONU.
6、 根据权利要求 5所述的方法, 其特征在于, 所述方法还包括: 接收所述 OLT发送的注册请求, 所述注册请求携带用于指示允许注册 设备的设备类型的字段; The method according to claim 5, wherein the method further comprises: Receiving a registration request sent by the OLT, where the registration request carries a field indicating a device type of the device to be registered;
向所述 OLT发送用于响应所述注册请求的上行帧, 所述上行帧用于携 带指示所述 ONU的设备类型的字段;  Sending, to the OLT, an uplink frame for responding to the registration request, where the uplink frame is used to carry a field indicating a device type of the ONU;
其中, 所述向所述 OLT发送用于响应所述注册请求的上行帧, 包括: 确定所述 ONU的设备类型与所述允许注册设备的设备类型是否匹配; 在确定所述 ONU的设备类型与所述允许注册设备的设备类型匹配时, 向所述 OLT发送所述上行帧。  The sending the uplink frame for responding to the registration request to the OLT includes: determining whether a device type of the ONU matches a device type of the allowed registration device; determining a device type of the ONU When the device type of the registered device is matched, the uplink frame is sent to the OLT.
7、 根据权利要求 6所述的方法, 其特征在于, 所述接收所述 OLT发送 的注册请求, 包括:  The method according to claim 6, wherein the receiving the registration request sent by the OLT comprises:
接收所述 OLT发送的包括分配结构 Allocation structure字段的所述注册 请求,所述分配结构字段中的分配单元标识 Alloc-ID字段的取值指示所述允 许注册设备的设备类型; 或所述分配结构字段包括取值用于指示所述允许注 册设备的设备类型的字段。  Receiving, by the OLT, the registration request including an allocation structure Allocation structure field, where the allocation unit identifier in the allocation structure field indicates that the value of the Alloc-ID field indicates the device type of the device to be registered; or the allocation structure The field includes a field that takes a value indicating the device type of the device that is allowed to be registered.
8、 根据权利要求 6所述的方法, 其特征在于, 所述接收所述 OLT发送 的注册请求, 包括:  The method according to claim 6, wherein the receiving the registration request sent by the OLT comprises:
接收所述 OLT通过物理层运行与维护 PLOAM消息发送的所述注册请 求, 所述 PLOAM消息包括用于指示所述允许注册设备的设备类型的字段。  Receiving, by the OLT, the registration request sent by the physical layer to run and maintain a PLOAM message, where the PLOAM message includes a field for indicating a device type of the device to be registered.
9、 根据权利要求 6至 8中任一项所述的方法, 其特征在于, 所述上行 帧携带的用于指示所述 ONU的设备类型的字段包括无源光网络操作控制体 The method according to any one of claims 6 to 8, wherein the field carried by the uplink frame for indicating the device type of the ONU includes a passive optical network operation control body.
PON OC Body字段或无源光网络标识 PON ID字段, 所述 PON OC Body字 段和所述 PON ID字段用于指示所述 ONU所在的下行波长通道的类型, 以 指示所述 ONU的设备类型。 The PON OC Body field or the passive optical network identifies the PON ID field, and the PON OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located to indicate the device type of the ONU.
10、 根据权利要求 5至 9中任一项所述的方法, 其特征在于, 所述上行 波长通道信息还包括所述波长通道能够传输的上行业务的类型;  The method according to any one of claims 5 to 9, wherein the uplink wavelength channel information further includes a type of uplink service that the wavelength channel can transmit;
其中, 所述 ONU根据所述波长通道的类型, 从至少一个上行波长通道 中确定所述 ONU的目标上行波长通道, 包括:  The ONU determines the target uplink wavelength channel of the ONU from the at least one upstream wavelength channel according to the type of the wavelength channel, including:
所述 ONU根据所述波长通道的类型和所述能够传输的上行业务的类 型, 从所述至少一个上行波长通道中确定所述目标上行波长通道, 其中, 所 述目标上行波长通道的类型与所述 ONU的设备类型相匹配, 并且所述目标 上行波长通道能够传输的上行业务的类型与所述 ONU支持的上行业务的类 型相匹配。 Determining, by the ONU, the target uplink wavelength channel from the at least one upstream wavelength channel according to the type of the wavelength channel and the type of the uplink service that can be transmitted, where the type and destination of the target uplink wavelength channel are The device type of the ONU is matched, and the type of the uplink service that the target uplink wavelength channel can transmit and the class of the uplink service supported by the ONU The type matches.
11、 根据权利要求 6至 10中任一项所述的方法, 其特征在于, 在所述 光网络单元 ONU接收光线路终端 OLT发送的下行帧之前,所述方法还包括: 接收所述 OLT根据所述上行帧发送的波长通道切换命令或波长调节命 令, 以指示所述 ONU进行上行波长校准。  The method according to any one of claims 6 to 10, wherein before the optical network unit ONU receives the downlink frame sent by the optical line terminal OLT, the method further comprises: receiving the OLT according to a wavelength channel switching command or a wavelength adjustment command sent by the uplink frame to instruct the ONU to perform uplink wavelength calibration.
12、 一种无源光网络中设备注册的方法, 其特征在于, 包括:  12. A method for registering a device in a passive optical network, the method comprising:
向光线路终端 OLT发送注册响应, 所述注册响应用于请求所述 OLT分 配标识, 并且所述注册响应携带用于指示光网络单元 ONU的设备类型的字 段;  Sending a registration response to the optical line terminal OLT, the registration response is used to request the OLT to assign an identifier, and the registration response carries a field indicating a device type of the optical network unit ONU;
接收所述 OLT在根据所述注册响应确定所述 ONU的设备类型与允许注 册设备的设备类型匹配时发送的所述 ONU的设备标识;  Receiving, by the OLT, a device identifier of the ONU that is sent when the device type of the ONU is matched according to the registration response and the device type of the device to be registered is matched;
根据所述设备标识进行信息的传输。  The transmission of information is performed according to the device identification.
13、 根据权利要求 12所述的方法, 其特征在于, 所述方法还包括: 接收所述 OLT发送的注册请求, 所述注册请求携带用于指示允许注册 设备的设备类型的字段;  The method according to claim 12, wherein the method further comprises: receiving a registration request sent by the OLT, where the registration request carries a field indicating a device type of the device to be registered;
其中, 所述向光线路终端 OLT发送注册响应, 包括:  The sending the registration response to the optical line terminal OLT includes:
确定所述 ONU的设备类型与所述允许注册设备的设备类型是否匹配; 在确定所述 ONU的设备类型与所述允许注册设备的设备类型匹配时, 向所述 OLT发送所述注册响应。  Determining whether the device type of the ONU matches the device type of the device to be registered; and when determining that the device type of the ONU matches the device type of the device that allows registration, sending the registration response to the OLT.
14、 根据权利要求 13所述的方法, 其特征在于, 所述接收所述 OLT发 送的注册请求, 包括:  The method according to claim 13, wherein the receiving the registration request sent by the OLT comprises:
接收所述 OLT发送的包括分配结构 Allocation structure字段的所述注册 请求,所述分配结构字段中的分配单元标识 Alloc-ID字段的取值指示所述允 许注册设备的设备类型; 或所述分配结构字段包括取值用于指示所述允许注 册设备的设备类型的字段。  Receiving, by the OLT, the registration request including an allocation structure Allocation structure field, where the value of the allocation unit identifier Alloc-ID field in the allocation structure field indicates the device type of the device to be registered; or the allocation structure The field includes a field that takes a value indicating the device type of the device that is allowed to be registered.
15、 根据权利要求 13所述的方法, 其特征在于, 所述接收所述 OLT发 送的注册请求, 包括:  The method according to claim 13, wherein the receiving the registration request sent by the OLT comprises:
接收所述 OLT通过物理层运行与维护 PLOAM消息发送的所述注册请 求, 所述 PLOAM消息包括用于指示所述允许注册设备的设备类型的字段。  Receiving, by the OLT, the registration request sent by the physical layer to run and maintain a PLOAM message, where the PLOAM message includes a field for indicating a device type of the device to be registered.
16、 根据权利要求 12至 15中任一项所述的方法, 其特征在于, 所述注 册响应携带的用于指示所述 ONU的设备类型的字段包括无源光网络操作控 制体 PON OC Body字段或无源光网络标识 PON ID字段,所述 PON OC Body 字段和所述 PON ID字段用于指示所述 ONU所在的下行波长通道的类型, 以指示所述 ONU的设备类型。 The method according to any one of claims 12 to 15, wherein the field carried by the registration response for indicating the device type of the ONU includes passive optical network operation control. The PON OC Body field or the passive optical network identifies the PON ID field, where the PON OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located, to indicate the device type of the ONU. .
17、 根据权利要求 12至 16中任一项所述的方法, 其特征在于, 在所述 接收所述 OLT在根据所述注册响应确定所述 ONU的设备类型与允许注册设 备的设备类型匹配时发送的所述 ONU的设备标识之后, 所述方法还包括: 向所述 OLT发送确认信息, 所述确认信息用于指示所述 ONU接收到所 述设备标识。  The method according to any one of claims 12 to 16, wherein, when the receiving the OLT determines that the device type of the ONU matches the device type of the device to be registered according to the registration response, After the device identifier of the ONU is sent, the method further includes: sending acknowledgment information to the OLT, where the acknowledgment information is used to indicate that the ONU receives the device identifier.
18、 根据权利要求 12至 17中任一项所述的方法, 其特征在于, 所述方 法还包括:  The method according to any one of claims 12 to 17, wherein the method further comprises:
接收所述 OLT在根据所述注册响应确定所述 ONU的设备类型与所述允 许注册设备的设备类型不匹配时发送的波长通道切换命令或波长调节命令, 以指示所述 ONU重新注册。  Receiving, by the OLT, a wavelength channel switching command or a wavelength adjustment command sent when the device type of the ONU does not match the device type of the allowed registration device according to the registration response, to indicate that the ONU re-registers.
19、 一种无源光网络中波长初始化的方法, 其特征在于, 包括: 确定波长通道信息,所述波长通道信息包括下行波长通道信息和 /或上行 波长通道信息, 其中, 所述下行波长通道信息包括光线路终端 OLT 当前釆 用的下行波长通道的类型, 所述上行波长通道信息包括上行波长通道的类 型;  A wavelength initialization method in a passive optical network, comprising: determining wavelength channel information, wherein the wavelength channel information includes downlink wavelength channel information and/or uplink wavelength channel information, wherein the downlink wavelength channel The information includes the type of the downlink wavelength channel currently used by the optical line terminal OLT, and the uplink wavelength channel information includes the type of the uplink wavelength channel;
向光网络单元 ONU发送所述波长通道信息。  Transmitting the wavelength channel information to the optical network unit ONU.
20、 根据权利要求 19所述的方法, 其特征在于, 在所述波长通道信息 包括所述下行波长通道信息时, 所述向光网络单元 ONU发送所述波长通道 信息, 包括:  The method according to claim 19, wherein, when the wavelength channel information includes the downlink wavelength channel information, the transmitting the wavelength channel information to the optical network unit ONU includes:
向所述 ONU发送下行物理同步块 PSBd或模板物理层运行与维护 Profile PLOAM消息, 其中, 所述下行物理同步块承载所述下行波长通道信息, 所 述 Profile PLOAM消息包括所述下行波长通道信息。  The downlink physical synchronization block PSBd or the template physical layer operation and maintenance profile PLOAM message is sent to the ONU, where the downlink physical synchronization block carries the downlink wavelength channel information, and the Profile PLOAM message includes the downlink wavelength channel information.
21、 根据权利要求 20所述的方法, 其特征在于, 所述下行物理同步块 包括的无源光网络操作控制体 PON OC Body字段承载所述下行波长通道信 息; 或所述下行物理同步块包括的无源光网络标识 PON ID字段承载所述下 行波长通道信息。  The method according to claim 20, wherein the downlink optical synchronization block includes a passive optical network operation control body PON OC Body field that carries the downlink wavelength channel information; or the downlink physical synchronization block includes The passive optical network identifier PON ID field carries the downlink wavelength channel information.
22、 根据权利要求 19至 21中任一项所述的方法, 其特征在于, 所述方 法还包括: 接收所述 ONU在所述上行波长通道上发送的注册响应, 所述注册响应 用于请求上行波长校准, 并且所述注册响应携带用于指示所述 ONU的设备 类型的字段; The method according to any one of claims 19 to 21, wherein the method further comprises: Receiving a registration response sent by the ONU on the uplink wavelength channel, the registration response is used to request uplink wavelength calibration, and the registration response carries a field for indicating a device type of the ONU;
其中, 所述向光网络单元 ONU发送所述波长通道信息, 包括: 根据所述注册响应向所述 ONU发送所述上行波长通道信息。  The transmitting the wavelength channel information to the ONU to the optical network unit includes: sending the uplink wavelength channel information to the ONU according to the registration response.
23、 根据权利要求 22所述的方法, 其特征在于, 所述方法还包括: 向所述 ONU发送注册请求, 所述注册请求携带用于指示允许注册设备 的设备类型的字段; 册响应, 包括:  The method according to claim 22, wherein the method further comprises: sending a registration request to the ONU, where the registration request carries a field indicating a device type of the device to be registered; :
接收所述 ONU在确定所述 ONU的设备类型与所述允许注册设备的设 备类型匹配时, 在所述上行波长通道上发送的所述注册响应。  Receiving, by the ONU, the registration response sent on the uplink wavelength channel when determining that the device type of the ONU matches the device type of the allowed registration device.
24、 根据权利要求 23所述的方法, 其特征在于, 所述向所述 ONU发送 注册请求, 包括:  The method according to claim 23, wherein the sending the registration request to the ONU comprises:
向所述 ONU发送包括分配结构 Allocation structure字段的所述注册请 求,所述分配结构字段中的分配单元标识 Alloc-ID字段的取值指示所述允许 注册设备的设备类型; 或所述分配结构字段包括取值用于指示所述允许注册 设备的设备类型的字段。  Transmitting, to the ONU, the registration request including an allocation structure Allocation structure field, where the allocation unit identifier in the allocation structure field indicates that the value of the Alloc-ID field indicates the device type of the device to be registered; or the allocation structure field A field is included that is used to indicate the device type of the device that is allowed to register.
25、 根据权利要求 23所述的方法, 其特征在于, 所述向所述 ONU发送 注册请求, 包括:  The method according to claim 23, wherein the sending the registration request to the ONU includes:
通过物理层运行与维护 PLOAM消息向所述 ONU发送所述注册请求, 所述 PLOAM消息包括用于指示所述允许注册设备的设备类型的字段。  The registration request is sent to the ONU through a physical layer operation and maintenance PLOAM message, and the PLOAM message includes a field for indicating a device type of the device to be registered.
26、 根据权利要求 22至 25中任一项所述的方法, 其特征在于, 所述注 册响应携带的用于指示所述 ONU的设备类型的字段包括无源光网络操作控 制体 PON OC Body字段或无源光网络标识 PON ID字段,所述 PON OC Body 字段和所述 PON ID字段用于指示所述 ONU所在的下行波长通道的类型, 以指示所述 ONU的设备类型。  The method according to any one of claims 22 to 25, wherein the field for indicating the device type of the ONU carried by the registration response includes a passive optical network operation control body PON OC Body field. Or the PON ID field is used by the PON OC Body field and the PON ID field to indicate the type of the downlink wavelength channel in which the ONU is located to indicate the device type of the ONU.
27、 根据权利要求 22至 26中任一项所述的方法, 其特征在于, 在所述 根据所述注册响应向所述 ONU发送所述上行波长通道信息之前, 所述方法 还包括:  The method according to any one of claims 22 to 26, wherein before the sending the uplink wavelength channel information to the ONU according to the registration response, the method further includes:
根据所述注册响应向所述 ONU发送波长通道切换命令或波长调节命 令, 以指示所述 ONU进行上行波长校准。 Transmitting a wavelength channel switching command or a wavelength adjustment command to the ONU according to the registration response In order to instruct the ONU to perform upstream wavelength calibration.
28、 根据权利要求 19至 27中任一项所述的方法, 其特征在于, 所述下 行波长通道信息还包括所述下行波长通道能够传输的下行业务的类型; 所述 上行波长通道信息还包括所述上行波长通道能够传输的上行业务的类型。  The method according to any one of claims 19 to 27, wherein the downlink wavelength channel information further includes a type of downlink service that the downlink wavelength channel can transmit; the uplink wavelength channel information further includes The type of uplink service that the upstream wavelength channel can transmit.
29、 一种无源光网络中设备注册的方法, 其特征在于, 包括:  A method for registering a device in a passive optical network, comprising:
接收光网络单元 ONU发送的注册响应, 所述注册响应用于请求光线路 终端 OLT分配标识, 并且所述注册响应携带用于指示所述 ONU的设备类型 的字段;  Receiving a registration response sent by the optical network unit ONU, the registration response is used to request the optical line terminal OLT to allocate an identifier, and the registration response carries a field for indicating a device type of the ONU;
根据所述注册响应确定所述 ONU的设备类型与允许注册设备的设备类 型是否匹配;  Determining, according to the registration response, whether the device type of the ONU matches the device type of the device to be registered;
在确定所述 ONU的设备类型与所述允许注册设备的设备类型匹配时, 向所述 ONU发送所述 ONU的设备标识。  When it is determined that the device type of the ONU matches the device type of the allowed registration device, the device identifier of the ONU is sent to the ONU.
30、 根据权利要求 29所述的方法, 其特征在于, 所述方法还包括: 向所述 ONU发送注册请求, 所述注册请求携带用于指示所示允许注册 设备的设备类型的字段;  The method according to claim 29, wherein the method further comprises: sending a registration request to the ONU, where the registration request carries a field for indicating a device type of the device that is allowed to be registered;
其中, 所述接收光网络单元 ONU发送的注册响应, 包括:  The registration response sent by the receiving optical network unit ONU includes:
接收所述 ONU在确定所述 ONU的设备类型与所述允许注册设备的设 备类型匹配时发送的所述注册响应。  Receiving the registration response sent by the ONU when determining that the device type of the ONU matches the device type of the allowed registration device.
31、 根据权利要求 30所述的方法, 其特征在于, 所述向所述 ONU发送 注册请求, 包括:  The method according to claim 30, wherein the sending the registration request to the ONU includes:
向所述 ONU发送包括分配结构 Allocation structure字段的所述注册请 求,所述分配结构字段中的分配单元标识 Alloc-ID字段的取值指示所述允许 注册设备的设备类型; 或所述分配结构字段包括取值用于指示所述允许注册 设备的设备类型的字段。  Transmitting, to the ONU, the registration request including an allocation structure Allocation structure field, where the allocation unit identifier in the allocation structure field indicates that the value of the Alloc-ID field indicates the device type of the device to be registered; or the allocation structure field A field is included that is used to indicate the device type of the device that is allowed to register.
32、 根据权利要求 30所述的方法, 其特征在于, 所述向所述 ONU发送 注册请求, 包括:  32. The method according to claim 30, wherein the sending the registration request to the ONU comprises:
通过物理层运行与维护 PLOAM消息向所述 ONU发送所述注册请求, 所述 PLOAM消息包括用于指示所述允许注册设备的设备类型的字段。  The registration request is sent to the ONU through a physical layer operation and maintenance PLOAM message, and the PLOAM message includes a field for indicating a device type of the device to be registered.
33、 根据权利要求 29至 32中任一项所述的方法, 其特征在于, 所述注 册响应携带的用于指示所述 ONU的设备类型的字段包括无源光网络操作控 制体 PON OC Body字段或无源光网络标识 PON ID字段,所述 PON OC Body 字段和所述 PON ID字段用于指示所述 ONU所在的下行波长通道的类型, 以指示所述 ONU的设备类型。 The method according to any one of claims 29 to 32, wherein the field carried by the registration response for indicating the device type of the ONU includes a passive optical network operation control body PON OC Body field. Or a passive optical network identifies a PON ID field, the PON OC Body The field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located to indicate the device type of the ONU.
34、 根据权利要求 29至 33中任一项所述的方法, 其特征在于, 在所述 向所述 ONU发送所述 ONU的设备标识之后, 所述方法还包括:  The method according to any one of claims 29 to 33, wherein after the sending the device identifier of the ONU to the ONU, the method further includes:
接收所述 ONU发送的确认信息, 所述确认信息用于指示所述 ONU接 收到所述设备标识。  And receiving the acknowledgement information sent by the ONU, where the acknowledgement information is used to indicate that the ONU receives the device identifier.
35、 根据权利要求 29至 34中任一项所述的方法, 其特征在于, 所述方 法还包括:  The method according to any one of claims 29 to 34, wherein the method further comprises:
在确定所述 ONU 的设备类型与所述允许注册设备的设备类型不匹配 时, 向所述 ONU发送波长通道切换命令或波长调节命令, 以指示所述 ONU 重新注册。  When it is determined that the device type of the ONU does not match the device type of the allowed registration device, a wavelength channel switching command or a wavelength adjustment command is sent to the ONU to instruct the ONU to re-register.
36、 一种光网络单元 ONU, 其特征在于, 包括:  36. An optical network unit ONU, comprising:
接收模块, 用于接收光线路终端 OLT发送的下行帧, 所述下行帧携带 用于指示当前波长通道的下行波长通道信息的字段, 所述下行波长通道信息 包括所述波长通道的类型;  a receiving module, configured to receive a downlink frame sent by the optical line terminal OLT, where the downlink frame carries a field for indicating downlink wavelength channel information of the current wavelength channel, where the downlink wavelength channel information includes a type of the wavelength channel;
确定模块, 用于根据所述波长通道的类型, 从至少一个下行波长通道中 确定所述 ONU的目标下行波长通道, 其中, 所述目标下行波长通道的类型 与所述 ONU的设备类型相匹配。  And a determining module, configured to determine, according to the type of the wavelength channel, a target downlink wavelength channel of the ONU from at least one downlink wavelength channel, where a type of the target downlink wavelength channel matches a device type of the ONU.
37、 根据权利要求 36所述的光网络单元, 其特征在于, 所述接收模块 接收的所述下行帧具体为用于指示所述下行波长通道信息的下行物理同步 块 PSBd或模板物理层运行与维护 Profile PLOAM消息。  The optical network unit according to claim 36, wherein the downlink frame received by the receiving module is specifically a downlink physical synchronization block PSBd or a template physical layer running for indicating the downlink wavelength channel information. Maintain Profile PLOAM messages.
38、 根据权利要求 37所述的光网络单元, 其特征在于, 所述下行物理 同步块包括的无源光网络操作控制体 PON OC Body字段或无源光网络标识 PON ID字段用于指示所述下行波长通道信息。  The optical network unit according to claim 37, wherein the downlink optical synchronization block includes a passive optical network operation control body PON OC Body field or a passive optical network identification PON ID field for indicating the Downstream wavelength channel information.
39、 根据权利要求 36至 38中任一项所述的光网络单元, 其特征在于, 所述下行波长通道信息还包括所述波长通道能够传输的下行业务的类型; 其 中, 所述确定模块具体用于: 根据所述波长通道的类型和所述能够传输的下 行业务的类型, 从所述至少一个下行波长通道中确定所述目标下行波长通 道, 其中, 所述目标下行波长通道的类型与所述 ONU的设备类型相匹配, 并且所述目标下行波长通道能够传输的下行业务的类型与所述 ONU支持的 下行业务的类型相匹配。 The optical network unit according to any one of claims 36 to 38, wherein the downlink wavelength channel information further includes a type of downlink service that the wavelength channel can transmit; wherein the determining module is specific And determining, according to the type of the wavelength channel and the type of the downlink service that can be transmitted, the target downlink wavelength channel from the at least one downlink wavelength channel, where the type and destination of the target downlink wavelength channel are The device types of the ONUs are matched, and the type of the downlink service that the target downlink wavelength channel can transmit matches the type of the downlink service supported by the ONU.
40、 一种光网络单元 ONU, 其特征在于, 包括: 40. An optical network unit ONU, comprising:
接收模块, 用于接收光线路终端 OLT响应的下行帧, 所述下行帧携带 用于指示当前波长通道的上行波长通道信息的字段, 所述上行波长通道信息 包括所述波长通道的类型;  a receiving module, configured to receive a downlink frame of the optical line terminal OLT response, where the downlink frame carries a field for indicating uplink wavelength channel information of the current wavelength channel, where the uplink wavelength channel information includes a type of the wavelength channel;
确定模块, 用于根据所述波长通道的类型, 从至少一个上行波长通道中 确定所述 ONU的目标上行波长通道, 其中, 所述目标上行波长通道的类型 与所述 ONU的设备类型相匹配。  And a determining module, configured to determine, according to the type of the wavelength channel, a target uplink wavelength channel of the ONU from the at least one uplink wavelength channel, where a type of the target uplink wavelength channel matches a device type of the ONU.
41、 根据权利要求 40所述的光网络单元, 其特征在于, 所述接收模块 还用于: 接收所述 OLT发送的注册请求, 所述注册请求携带用于指示允许 注册设备的设备类型的字段;  The optical network unit according to claim 40, wherein the receiving module is further configured to: receive a registration request sent by the OLT, where the registration request carries a field indicating a device type of the device to be registered. ;
所述 ONU还包括发送模块, 用于向光线路终端 OLT发送上行帧, 所述 上行帧携带用于指示所述 ONU的设备类型的字段;  The ONU further includes a sending module, configured to send an uplink frame to the optical line terminal OLT, where the uplink frame carries a field for indicating a device type of the ONU;
其中, 所述确定模块还用于: 确定所述 ONU的设备类型与所述允许注 册设备的设备类型是否匹配;  The determining module is further configured to: determine whether a device type of the ONU matches a device type of the allowed registration device;
所述发送模块具体用于: 在所述确定模块确定所述 ONU的设备类型与 所述允许注册设备的设备类型匹配时, 向所述 OLT发送所述上行帧。  The sending module is specifically configured to: when the determining module determines that the device type of the ONU matches the device type of the allowed registration device, send the uplink frame to the OLT.
42、 根据权利要求 41 所述的光网络单元, 其特征在于, 所述接收模块 具体用于: 接收所述 OLT发送的包括分配结构 Allocation structure字段的所 述注册请求,所述分配结构字段中的分配单元标识 Alloc-ID字段的取值指示 所述允许注册设备的设备类型; 或所述分配结构字段包括取值用于指示所述 允许注册设备的设备类型的字段。  The optical network unit according to claim 41, wherein the receiving module is specifically configured to: receive the registration request that is sent by the OLT and includes an allocation structure Allocation structure field, where the allocation structure field is The value of the allocation unit identifier Alloc-ID field indicates the device type of the device to be registered; or the allocation structure field includes a field for indicating the device type of the device to be registered.
43、 根据权利要求 41 所述的光网络单元, 其特征在于, 所述接收模块 具体用于: 接收所述 OLT通过物理层运行与维护 PLOAM消息发送的所述 注册请求, 所述 PLOAM消息包括用于指示所述允许注册设备的设备类型的 字段。  The optical network unit according to claim 41, wherein the receiving module is specifically configured to: receive the registration request sent by the OLT to run and maintain a PLOAM message through a physical layer, where the PLOAM message includes A field indicating the device type of the device to be registered.
44、 根据权利要求 40至 43中任一项所述的光网络单元, 其特征在于, 所述发送模块发送的所述上行帧携带的用于指示所述 ONU的设备类型的字 段包括无源光网络操作控制体 PON OC Body字段或无源光网络标识 PON ID 字段, 所述 PON OC Body字段和所述 PON ID字段用于指示所述 ONU所在 的下行波长通道的类型, 以指示所述 ONU的设备类型。  The optical network unit according to any one of claims 40 to 43, wherein the field of the device type used by the sending module to indicate the device type of the ONU includes passive light. The network operation control unit PON OC Body field or the passive optical network identifier PON ID field, the PON OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located, to indicate the ONU Equipment type.
45、 根据权利要求 40至 44中任一项所述的光网络单元, 其特征在于, 所述接收模块接收的所述上行波长通道信息还包括所述波长通道能够传输 的上行业务的类型; The optical network unit according to any one of claims 40 to 44, characterized in that The uplink wavelength channel information received by the receiving module further includes a type of uplink service that can be transmitted by the wavelength channel;
其中, 所述确定模块具体用于: 根据所述波长通道的类型和所述能够传 输的上行业务的类型,从所述至少一个上行波长通道中确定所述目标上行波 长通道, 其中, 所述目标上行波长通道的类型与所述 ONU的设备类型相匹 配, 并且所述目标上行波长通道能够传输的上行业务的类型与所述 ONU支 持的上行业务的类型相匹配。  The determining module is specifically configured to: determine, according to the type of the wavelength channel and the type of the uplink service that can be transmitted, the target uplink wavelength channel from the at least one uplink wavelength channel, where the target The type of the uplink wavelength channel matches the device type of the ONU, and the type of the uplink service that the target uplink wavelength channel can transmit matches the type of the uplink service supported by the ONU.
46、 根据权利要求 41至 45中任一项所述的光网络单元, 其特征在于, 所述接收模块还用于: 在接收所述 OLT发送的所述下行帧之前, 接收所述 OLT根据所述上行帧发送的波长通道切换命令或波长调节命令,以指示所述 ONU进行上行波长校准。  The optical network unit according to any one of claims 41 to 45, wherein the receiving module is further configured to: before receiving the downlink frame sent by the OLT, receive the OLT according to the The wavelength channel switching command or the wavelength adjustment command sent by the uplink frame is used to instruct the ONU to perform uplink wavelength calibration.
47、 一种光网络单元 ONU, 其特征在于, 包括:  47. An optical network unit ONU, comprising:
发送模块, 用于向光线路终端 OLT发送注册响应, 所述注册响应用于 请求所述 OLT分配标识, 并且所述注册响应携带用于指示所述 ONU的设备 类型的字段;  a sending module, configured to send a registration response to the optical line terminal OLT, where the registration response is used to request the OLT to allocate an identifier, and the registration response carries a field for indicating a device type of the ONU;
接收模块, 用于接收所述 OLT在根据所述发送模块发送的所述注册响 应、 确定所述 ONU的设备类型与允许注册设备的设备类型匹配时发送的所 述 ONU的设备标识;  a receiving module, configured to receive, by the OLT, a device identifier of the ONU that is sent when the device type of the ONU matches the device type of the device to be registered, according to the registration response sent by the sending module;
处理模块, 用于根据所述接收模块接收的所述设备标识进行信息的传 输。  And a processing module, configured to perform information transmission according to the device identifier received by the receiving module.
48、 根据权利要求 47所述的光网络单元, 其特征在于, 所述接收模块 还用于: 接收所述 OLT发送的注册请求, 所述注册请求携带用于指示允许 注册设备的设备类型的字段;  The optical network unit according to claim 47, wherein the receiving module is further configured to: receive a registration request sent by the OLT, where the registration request carries a field for indicating a device type of the device to be registered. ;
其中, 所述光网络单元还包括确定模块, 用于确定所述 ONU的设备类 型与所述允许注册设备的设备类型是否匹配;  The optical network unit further includes a determining module, configured to determine whether a device type of the ONU matches a device type of the device that allows registration;
所述发送模块具体用于: 在所述确定模块确定所述 ONU的设备类型与 所述允许注册设备的设备类型匹配时, 向所述 OLT发送所述注册响应。  The sending module is specifically configured to: when the determining module determines that the device type of the ONU matches the device type of the allowed registration device, send the registration response to the OLT.
49、 根据权利要求 48所述的光网络单元, 其特征在于, 所述接收模块 具体用于: 接收所述 OLT发送的包括分配结构 Allocation structure字段的所 述注册请求,所述分配结构字段中的分配单元标识 Alloc-ID字段的取值指示 所述允许注册设备的设备类型; 或所述分配结构字段包括取值用于指示所述 允许注册设备的设备类型的字段。 The optical network unit according to claim 48, wherein the receiving module is specifically configured to: receive the registration request that is sent by the OLT and includes an allocation structure Allocation structure field, where the allocation structure field is The value of the allocation unit identifier Alloc-ID field indicates the device type of the device to be registered; or the allocation structure field includes a value for indicating the A field that allows you to register the device type of the device.
50、 根据权利要求 48所述的光网络单元, 其特征在于, 所述接收模块 具体用于: 接收所述 OLT通过物理层运行与维护 PLOAM消息发送的所述 注册请求, 所述 PLOAM消息包括用于指示所述允许注册设备的设备类型的 字段。  The optical network unit according to claim 48, wherein the receiving module is specifically configured to: receive the registration request that is sent by the OLT to run and maintain a PLOAM message through a physical layer, where the PLOAM message includes A field indicating the device type of the device to be registered.
51、 根据权利要求 47至 50中任一项所述的光网络单元, 其特征在于, 所述发送模块发送的所述注册响应携带的用于指示所述 ONU的设备类型的 字段包括无源光网络操作控制体 PON OC Body字段或无源光网络标识 PON ID字段, 所述 PON OC Body字段和所述 PON ID字段用于指示所述 ONU 所在的下行波长通道的类型, 以指示所述 ONU的设备类型。  The optical network unit according to any one of claims 47 to 50, wherein a field for indicating a device type of the ONU carried by the registration response sent by the sending module includes passive light The network operation control body PON OC Body field or the passive optical network identifier PON ID field, the PON OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located, to indicate the ONU Equipment type.
52、 根据权利要求 47至 51中任一项所述的光网络单元, 其特征在于, 所述发送模块还用于: 在所述接收模块接收所述 ONU的设备标识之后, 向 所述 OLT发送确认信息, 所述确认信息用于指示所述 ONU接收到所述设备 标识。  The optical network unit according to any one of claims 47 to 51, wherein the sending module is further configured to: after the receiving module receives the device identifier of the ONU, send the identifier to the OLT Confirmation information, the confirmation information is used to indicate that the ONU receives the device identifier.
53、 根据权利要求 47至 52中任一项所述的光网络单元, 其特征在于, 所述接收模块还用于:接收所述 OLT在根据所述注册响应确定所述 ONU的 设备类型与所述允许注册设备的设备类型不匹配时发送的波长通道切换命 令或波长调节命令, 以指示所述 ONU重新注册。  The optical network unit according to any one of claims 47 to 52, wherein the receiving module is further configured to: receive, by the OLT, a device type and a location of determining the ONU according to the registration response. A wavelength channel switching command or a wavelength adjustment command sent when the device type of the registered device is not matched, to indicate that the ONU is re-registered.
54、 一种光线路终端 OLT, 其特征在于, 包括:  An optical line terminal OLT, comprising:
确定模块, 用于确定波长通道信息, 所述波长通道信息包括下行波长通 道信息和 /或上行波长通道信息,其中,所述下行波长通道信息包括所述 OLT 当前釆用的下行波长通道的类型, 所述上行波长通道信息包括上行波长通道 的类型;  a determining module, configured to determine wavelength channel information, where the wavelength channel information includes downlink wavelength channel information and/or uplink wavelength channel information, where the downlink wavelength channel information includes a type of a downlink wavelength channel currently used by the OLT, The uplink wavelength channel information includes a type of an uplink wavelength channel;
发送模块, 用于向光网络单元 ONU发送所述确定模块确定的所述波长 通道信息。  And a sending module, configured to send, to the optical network unit ONU, the wavelength channel information determined by the determining module.
55、 根据权利要求 54所述的光线路终端, 其特征在于, 在所述确定模 块确定所述波长通道信息包括所述下行波长通道信息时, 所述发送模块具体 用于: 向所述 ONU发送下行物理同步块 PSBd 或模板物理层运行与维护 Profile PLOAM消息, 其中, 所述下行物理同步块承载所述下行波长通道信 息, 所述 Profile PLOAM消息包括所述下行波长通道信息。  The optical line terminal according to claim 54, wherein, when the determining module determines that the wavelength channel information includes the downlink wavelength channel information, the sending module is specifically configured to: send to the ONU The downlink physical synchronization block PSBd or the template physical layer runs and maintains a profile PLOAM message, where the downlink physical synchronization block carries the downlink wavelength channel information, and the profile PLOAM message includes the downlink wavelength channel information.
56、 根据权利要求 54所述的光线路终端, 其特征在于, 所述下行物理 同步块包括的无源光网络操作控制体 PON OC Body字段承载所述下行波长 通道信息; 或所述下行物理同步块包括的无源光网络标识 PON ID字段承载 所述下行波长通道信息。 The optical line terminal according to claim 54, wherein the downlink physical The passive optical network operation control body PON OC Body field of the synchronization block carries the downlink wavelength channel information; or the passive optical network identifier PON ID field included in the downlink physical synchronization block carries the downlink wavelength channel information.
57、 根据权利要求 54至 56中任一项所述的光线路终端, 其特征在于, 所述光线路终端还包括接收模块, 用于接收所述 ONU在所述上行波长通道 上发送的注册响应, 所述注册响应用于请求上行波长校准, 并且所述注册响 应携带用于指示所述 ONU的设备类型的字段;  The optical line terminal according to any one of claims 54 to 56, wherein the optical line terminal further includes a receiving module, configured to receive a registration response sent by the ONU on the uplink wavelength channel. The registration response is used to request an uplink wavelength calibration, and the registration response carries a field for indicating a device type of the ONU;
其中, 所述发送模块具体用于: 根据所述注册响应向所述 ONU发送所 述上行波长通道信息。  The sending module is specifically configured to: send the uplink wavelength channel information to the ONU according to the registration response.
58、 根据权利要求 57所述的光线路终端, 其特征在于, 所述发送模块 还用于: 向所述 ONU发送注册请求, 所述注册请求携带用于指示允许注册 设备的设备类型的字段;  The optical line terminal according to claim 57, wherein the sending module is further configured to: send a registration request to the ONU, where the registration request carries a field for indicating a device type of the device to be registered;
其中, 所述接收模块具体用于: 接收所述 ONU在确定所述 ONU的设 备类型与所述允许注册设备的设备类型匹配时,在所述上行波长通道上发送 的所述注册响应。  The receiving module is specifically configured to: receive the registration response sent by the ONU on the uplink wavelength channel when determining that the device type of the ONU matches the device type of the allowed registration device.
59、 根据权利要求 58所述的光线路终端, 其特征在于, 所述发送模块 具体用于:向所述 ONU发送包括分配结构 Allocation structure字段的所述注 册请求,所述分配结构字段中的分配单元标识 Alloc-ID字段的取值指示所述 允许注册设备的设备类型; 或所述分配结构字段包括取值用于指示所述允许 注册设备的设备类型的字段。  The optical line terminal according to claim 58, wherein the sending module is specifically configured to: send the registration request including an allocation structure Allocation structure field to the ONU, and allocate in the allocation structure field The value of the unit identifier Alloc-ID field indicates the device type of the device to be registered; or the allocation structure field includes a field for indicating the device type of the device to be registered.
60、 根据权利要求 58所述的光线路终端, 其特征在于, 所述发送模块 具体用于: 通过物理层运行与维护 PLOAM消息向所述 ONU发送所述注册 请求,所述 PLOAM消息包括用于指示所述允许注册设备的设备类型的字段。  The optical line terminal according to claim 58, wherein the sending module is specifically configured to: send, by using a physical layer operation and maintenance PLOAM message, the registration request to the ONU, where the PLOAM message is used to A field indicating the device type of the device to be registered.
61、 根据权利要求 57至 60中任一项所述的光线路终端, 其特征在于, 所述接收模块接收的所述注册响应携带的用于指示所述 ONU的设备类型的 字段包括无源光网络操作控制体 PON OC Body字段或无源光网络标识 PON ID字段, 所述 PON OC Body字段和所述 PON ID字段用于指示所述 ONU 所在的下行波长通道的类型, 以指示所述 ONU的设备类型。  The optical line terminal according to any one of claims 57 to 60, wherein a field for indicating a device type of the ONU carried by the registration response received by the receiving module includes passive light The network operation control body PON OC Body field or the passive optical network identifier PON ID field, the PON OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located, to indicate the ONU Equipment type.
62、 根据权利要求 57至 61中任一项所述的光线路终端, 其特征在于, 所述发送模块还用于: 在根据所述注册响应向所述 ONU发送所述上行波长 通道信息之前, 根据所述注册响应向所述 ONU发送波长通道切换命令或波 长调节命令, 以指示所述 ONU进行上行波长校准。 The optical line terminal according to any one of claims 57 to 61, wherein the sending module is further configured to: before transmitting the uplink wavelength channel information to the ONU according to the registration response, Transmitting a wavelength channel switching command or wave to the ONU according to the registration response Long adjustment command to instruct the ONU to perform upstream wavelength calibration.
63、 根据权利要求 54至 62中任一项所述的光线路终端, 其特征在于, 所述确定模块确定的所述下行波长通道信息还包括所述下行波长通道能够 传输的下行业务的类型; 所述确定模块确定的所述上行波长通道信息还包括 所述上行波长通道能够传输的上行业务的类型。  The optical line terminal according to any one of claims 54 to 62, wherein the downlink wavelength channel information determined by the determining module further includes a type of downlink service that the downlink wavelength channel can transmit; The uplink wavelength channel information determined by the determining module further includes a type of uplink service that can be transmitted by the uplink wavelength channel.
64、 一种光线路终端 OLT, 其特征在于, 包括:  64. An optical line terminal OLT, comprising:
接收模块, 用于接收光网络单元 ONU发送的注册响应, 所述注册响应 用于请求所述 OLT分配标识,并且所述注册响应携带用于指示所述 ONU的 设备类型的字段;  a receiving module, configured to receive a registration response sent by the optical network unit ONU, where the registration response is used to request the OLT to allocate an identifier, and the registration response carries a field for indicating a device type of the ONU;
确定模块, 用于根据所述接收模块接收的所述注册响应确定所述 ONU 的设备类型与允许注册设备的设备类型是否匹配;  a determining module, configured to determine, according to the registration response received by the receiving module, whether a device type of the ONU matches a device type of a device that allows registration;
发送模块, 用于在所述确定模块确定所述 ONU的设备类型与所述允许 注册设备的设备类型匹配时, 向所述 ONU发送所述 ONU的设备标识。  And a sending module, configured to: when the determining module determines that the device type of the ONU matches the device type of the allowed registration device, send the device identifier of the ONU to the ONU.
65、 根据权利要求 64所述的光线路终端, 其特征在于, 所述发送模块 还用于: 向所述 ONU发送注册请求, 所述注册请求携带用于指示所示允许 注册设备的设备类型的字段;  The optical line terminal according to claim 64, wherein the sending module is further configured to: send a registration request to the ONU, where the registration request carries a device type used to indicate that the device is allowed to be registered. Field
其中, 所述接收模块具体用于: 接收所述 ONU在确定所述 ONU的设 备类型与所述允许注册设备的设备类型匹配时发送的所述注册响应。  The receiving module is specifically configured to: receive the registration response that is sent by the ONU when determining that the device type of the ONU matches the device type of the allowed registration device.
66、 根据权利要求 65所述的光线路终端, 其特征在于, 所述发送模块 具体用于:向所述 ONU发送包括分配结构 Allocation structure字段的所述注 册请求,所述分配结构字段中的分配单元标识 Alloc-ID字段的取值指示所述 允许注册设备的设备类型; 或所述分配结构字段包括取值用于指示所述允许 注册设备的设备类型的字段。  The optical line terminal according to claim 65, wherein the sending module is specifically configured to: send the registration request including an allocation structure Allocation structure field to the ONU, and allocate in the allocation structure field The value of the unit identifier Alloc-ID field indicates the device type of the device to be registered; or the allocation structure field includes a field for indicating the device type of the device to be registered.
67、 根据权利要求 65所述的光线路终端, 其特征在于, 所述发送模块 具体用于: 通过物理层运行与维护 PLOAM消息向所述 ONU发送所述注册 请求,所述 PLOAM消息包括用于指示所述允许注册设备的设备类型的字段。  The optical line terminal according to claim 65, wherein the sending module is specifically configured to: send, by using a physical layer operation and maintenance PLOAM message, the registration request to the ONU, where the PLOAM message is used to A field indicating the device type of the device to be registered.
68、 根据权利要求 64至 67中任一项所述的光线路终端, 其特征在于, 所述接收模块接收的所述注册响应携带的用于指示所述 ONU的设备类型的 字段包括无源光网络操作控制体 PON OC Body字段或无源光网络标识 PON ID字段, 所述 PON OC Body字段和所述 PON ID字段用于指示所述 ONU 所在的下行波长通道的类型, 以指示所述 ONU的设备类型。 The optical line terminal according to any one of claims 64 to 67, wherein a field for indicating a device type of the ONU carried by the registration response received by the receiving module includes passive light The network operation control body PON OC Body field or the passive optical network identifier PON ID field, the PON OC Body field and the PON ID field are used to indicate the type of the downlink wavelength channel in which the ONU is located, to indicate the ONU Equipment type.
69、 根据权利要求 64至 68中任一项所述的光线路终端, 其特征在于, 所述接收模块还用于: 在所述发送模块向所述 ONU发送所述 ONU的设备 标识之后,接收所述 ONU发送的确认信息,所述确认信息用于指示所述 ONU 接收到所述设备标识。 The optical line terminal according to any one of claims 64 to 68, wherein the receiving module is further configured to: after the sending module sends the device identifier of the ONU to the ONU, receive The acknowledgment information sent by the ONU is used to indicate that the ONU receives the device identifier.
70、 根据权利要求 64至 69中任一项所述的光线路终端, 其特征在于, 所述发送模块还用于: 在所述确定模块确定所述 ONU的设备类型与所述允 许注册设备的设备类型不匹配时, 向所述 ONU发送波长通道切换命令或波 长调节命令, 以指示所述 ONU重新注册。  The optical line terminal according to any one of claims 64 to 69, wherein the transmitting module is further configured to: determine, by the determining module, a device type of the ONU and the allowable registration device When the device types do not match, a wavelength channel switching command or a wavelength adjustment command is sent to the ONU to instruct the ONU to re-register.
PCT/CN2014/079444 2014-06-09 2014-06-09 Method and apparatus for wavelength initialization and device registration in passive optical network WO2015188298A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2014/079444 WO2015188298A1 (en) 2014-06-09 2014-06-09 Method and apparatus for wavelength initialization and device registration in passive optical network
CN201480008120.4A CN105409142A (en) 2014-06-09 2014-06-09 Method and apparatus for wavelength initialization and device registration in passive optical network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/079444 WO2015188298A1 (en) 2014-06-09 2014-06-09 Method and apparatus for wavelength initialization and device registration in passive optical network

Publications (1)

Publication Number Publication Date
WO2015188298A1 true WO2015188298A1 (en) 2015-12-17

Family

ID=54832678

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/079444 WO2015188298A1 (en) 2014-06-09 2014-06-09 Method and apparatus for wavelength initialization and device registration in passive optical network

Country Status (2)

Country Link
CN (1) CN105409142A (en)
WO (1) WO2015188298A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017206726A1 (en) * 2016-06-01 2017-12-07 中兴通讯股份有限公司 Method and device for determining type of onu, olt, and storage medium
EP3905551A4 (en) * 2018-12-29 2022-10-19 ZTE Corporation Data transmitting and receiving method and device, and wavelength configuration method and device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019102706A1 (en) * 2017-11-22 2019-05-31 住友電気工業株式会社 Pon system, optical network unit, optical line terminal, method for registering optical network unit, and data structure
WO2021194544A1 (en) * 2020-03-23 2021-09-30 Futurewei Technologies, Inc. FRAME CODING AND OPTICAL NETWORK UNIT (ONU) SYNCHRONIZATION IN PASSIVE OPTICAL NETWORKS (PONs)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101742365A (en) * 2008-11-12 2010-06-16 华为技术有限公司 Passive optical network (PON) wavelength assignment method, device and system
CN101902447A (en) * 2009-05-28 2010-12-01 华为技术有限公司 Authentication method and device in passive optical network and passive optical network
CN102833642A (en) * 2012-09-21 2012-12-19 武汉烽火网络有限责任公司 Method and system for managing optical network units (ONU) based on interface capability set
CN103391486A (en) * 2012-05-09 2013-11-13 中兴通讯股份有限公司 Method for wave length adjustment, optical line terminal and optical network unit

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4410789B2 (en) * 2006-12-08 2010-02-03 株式会社日立コミュニケーションテクノロジー Passive optical network system, optical termination device and optical network unit
ES2667691T3 (en) * 2012-07-13 2018-05-14 Huawei Technologies Co., Ltd. Wavelength negotiation method, system and device and multi-wavelength passive optical network device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101742365A (en) * 2008-11-12 2010-06-16 华为技术有限公司 Passive optical network (PON) wavelength assignment method, device and system
CN101902447A (en) * 2009-05-28 2010-12-01 华为技术有限公司 Authentication method and device in passive optical network and passive optical network
CN103391486A (en) * 2012-05-09 2013-11-13 中兴通讯股份有限公司 Method for wave length adjustment, optical line terminal and optical network unit
CN102833642A (en) * 2012-09-21 2012-12-19 武汉烽火网络有限责任公司 Method and system for managing optical network units (ONU) based on interface capability set

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017206726A1 (en) * 2016-06-01 2017-12-07 中兴通讯股份有限公司 Method and device for determining type of onu, olt, and storage medium
EP3905551A4 (en) * 2018-12-29 2022-10-19 ZTE Corporation Data transmitting and receiving method and device, and wavelength configuration method and device
US11595147B2 (en) 2018-12-29 2023-02-28 Zte Corporation Data transceiving method and device, and wavelength configuration method and device

Also Published As

Publication number Publication date
CN105409142A (en) 2016-03-16

Similar Documents

Publication Publication Date Title
JP7308931B2 (en) DATA TRANSMISSION METHOD, RELATED DEVICE, AND SYSTEM
US9793993B2 (en) Method and apparatus of delivering upstream data in ethernet passive optical network over coaxial network
TWI725274B (en) Data communication system, optical line terminal and baseband unit
WO2017049460A1 (en) Optical network unit registration method, device and system
WO2015172279A1 (en) Wavelength switching method, device and system
WO2015172294A1 (en) Optical network unit onu registration method, device and system
EP3082284B1 (en) Communication method, device, and system for passive optical network
WO2013082936A1 (en) Method and system for allocating uplink bandwidth in passive optical network (pon) system
CN108370270A (en) Distribution method, device and the passive optical network of dynamic bandwidth
AU2012381695A1 (en) Optical network terminal management control interface message transmission method and system, and corresponding device
WO2015188298A1 (en) Method and apparatus for wavelength initialization and device registration in passive optical network
US20220116269A1 (en) Apparatus and methods for synchronization pattern configuration in an optical network
WO2016015216A1 (en) Method and apparatus for device registration and wavelength switching in ethernet passive optical network system
JP2017521000A (en) Optical line unit (OLT) support for optical network unit (ONU) calibration
WO2011150759A1 (en) Method, apparatus and system for processing signal of pon network
JP4947729B2 (en) Station side equipment
WO2012028014A1 (en) Uplink bandwidth assigning method in passive optical network and passive optical network system
WO2012149770A1 (en) Method, device and system for converting terminal device identifiers
EP3474490A1 (en) Service activating method, device and system, and storage medium
US20220256264A1 (en) Communication Method Based on Passive Optical Network, Related Device, and System
US20180359235A1 (en) Transmission apparatus and communication method
WO2017049429A1 (en) Information transmission method and apparatus, and passive optical network system
WO2011095022A1 (en) Method and system for correctly locating optical network unit glowing abnormally
JP2015082771A (en) Optical communication system, signal transmission control method, station side optical line termination device, and subscriber side optical line termination device
WO2015100534A1 (en) Ethernet passive optical network communication method, device and system

Legal Events

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

Ref document number: 201480008120.4

Country of ref document: CN

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

Ref document number: 14894387

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

Country of ref document: EP

Kind code of ref document: A1