Embodiments of the present invention relate to optical communications technologies, and in particular, to an optical network unit registration method, an apparatus, and a system.
As optical communications technologies rapidly develop, a Passive Optical Network (PON) system is more widely applied in the optical communications technologies. The PON system may include a Time Division Multiplexing (TDM) PON including a Gigabit Passive Optical Network (GPON) and a 10G-GPON, and an Ethernet Passive Optical Network (EPON) and a 10G-EPON; and include a Time Wavelength Division Multiplexing (TWDM) PON, a Point to Point (PtP) PON, a Wavelength Division Multiplexing (WDM) PON, and the like.
As shown in
A TWDM PON system is a point-to-multipoint communications system. An OLT at a central office end in the TWDM PON system transceives data to/from user-side ONU using a plurality of wavelength channels, and each ONU works on one of the wavelength channels. In a downstream direction, the OLT broadcasts, using a downstream wavelength corresponding to each of the wavelength channels, downstream data to the plurality of ONUs that work on the wavelength channels. In an upstream direction, an ONU on each wavelength channel may send, using an upstream wavelength of the wavelength channel, upstream data to the OLT in a timeslot allocated by the OLT.
The GPON has a relatively high bandwidth efficiency, still uses a conventional SDH as a synchronization timer mechanism, and uses GEM encapsulation to adapt to services of different rates. Therefore, the GPON is currently the most popular access system in operators in most of the countries. Based on a point-to-multipoint network structure of the GPON, one OLT communicates with multiple ONUs at the same time. To distinguish between different ONUs, a unique ONU-ID needs to be set for each ONU as an identifier of the ONU. When the ONUs send data to the OLT at the same time, a signal conflict may occur, and normal transmission by the OLT is affected. Therefore, the OLT needs to coordinate sending by the ONUs in a time slice grant manner, to ensure that only one ONU is allowed to send data in a specific time period, so as to effectively avoid a conflict. To ensure quality of service (QoS) of different services on an ONU, multiple allocation units need to be disposed, and each allocation unit is corresponding to service flows with the same traffic feature. Therefore, the OLT grants time slices to the allocation units on the ONU, and an Alloc-ID identifier is used.
EPON-related technologies and standards are developed on a basis of IEEE802.3. The EPON is compatible with common ETH technologies and devices, and may reuse a large quantity of existing mature devices and circuits. The EPON has low risk in design and implementation, relatively mature technologies and industry chains, and low costs. Therefore, the EPON is favored by Chinese telecommunications operators. Based on a point-to-multipoint network structure of the EPON, one OLT communicates with multiple ONUs at the same time. To distinguish between different ONUs, a unique Logical Link Identifier (LLID) needs to be set for each ONU as an identifier of the ONU. Before normally communicating with the OLT, the ONU first needs to register. A registration process is mainly completed by exchanging an MPCP message. The OLT first delivers a specially-granted discovery gate, to ensure that all normal ONUs stop sending, thereby creating an idle time period (hereinafter referred to as a quiet window). A new registered ONU sends, in the quiet window, a registe_REQ MPCP message that includes a media access control (MAC) address of the new registered ONU, and after the OLT receives the message, the OLT delivers an allocated LLID to the ONU by delivering a register MPCP message. The LLID is used to identify the ONU. Ranging between the OLT and the ONU is performed by using respective local timers of the OLT and the ONU and a timestamp carried in the MPCP, and therefore the OLT does not need to perform ranging grant independently. After the OLT receives a register_ACK MPCP message from the ONU, a whole registration process ends, and the ONU can normally communicate with the OLT.
In a common PON, an ONU has only one wavelength channel (one wavelength channel includes one downstream wavelength and one upstream wavelength), and in this case, a maximum bandwidth of the ONU is merely 10 Gbps. Currently, the industry puts forward a requirement that an ONU has a bandwidth of more than 10 and each ONU needs to have more than one wavelength channel. A technical problem that how to provide an efficient ONU registration mechanism to enable a single ONU to support more wavelength channels and increase a bandwidth needs to be urgently resolved.
Embodiments of the present invention provide a passive optical network communications method, an apparatus, and a system, to resolve an industrial technical problem about how to enable a port on an ONU to independently complete registration with an OLT, so as to increase a supported bandwidth and a quantity of supported wavelength channels of the ONU when the ONU needs a relatively large bandwidth.
An embodiment of the present invention provides an ONU registration method, including: scanning, by an ONU port, a downstream wavelength channel, where the ONU port is one of the ONU ports on an ONU; receiving, by the ONU port, a discovery grant message from an OLT, where the discovery grant message includes a channel identifier of a downstream wavelength channel on which the discovery grant message is being transmitted; sending, by the ONU port, a register request message to the OLT, where the register request message includes a port number of the ONU port; and receiving, by the ONU port, a register message from the OLT, where the register message includes the port number of the ONU port and an ONU logical identifier allocated by the OLT to the ONU port.
An embodiment of the present invention further provides an ONU registration method, including: sending a discovery grant message to an ONU port, where the discovery grant message includes a channel identifier of a downstream wavelength channel on which the discovery grant message is being transmitted, and the ONU port is one of the ONU ports on an ONU; receiving a register request message from the ONU port, where the register request message includes a port number of the ONU port; and sending a register message to the ONU port, where the register message includes the port number of the ONU port and an ONU logical identifier allocated to the ONU port.
An embodiment of the present invention further provides an ONU, including an ONU port, where the ONU port is one of the ONU ports on the ONU, and the ONU port includes: a scanning module, configured to scan a downstream wavelength channel; and a transceiver module, configured to: receive a discovery grant message from an optical line terminal OLT, where the discovery grant message includes a channel identifier of a downstream wavelength channel on which the discovery grant message is being transmitted; send a register request message to the OLT, where the register request message includes a port number of the ONU port; and receive a register message from the OLT, where the register message includes the port number of the ONU port and an ONU logical identifier allocated by the OLT to the ONU port.
An embodiment of the present invention further provides a passive optical network device, including: a sending module, configured to send a discovery grant message to an ONU port, where the discovery grant message includes a channel identifier of a downstream wavelength channel on which the discovery grant message is being transmitted, and the ONU port is one of the ONU ports on an ONU; and a receiving module, configured to receive a register request message from the ONU port, where the register request message includes a port number of the ONU port, where the sending module is further configured to send a register message to the ONU port, where the register message includes the port number of the ONU port and an ONU logical identifier allocated to the ONU port.
An embodiment of the present invention further provides a PON system, where the system includes an OLT and an ONU, the ONU includes an ONU port, the ONU port is one of the ONU ports on the ONU, and the ONU port is configured to: scan a downstream wavelength channel; receive a discovery grant message from the OLT, where the discovery grant message includes a channel identifier of a downstream wavelength channel on which the discovery grant message is being transmitted; send a register request message to the OLT, where the register request message includes a port number of the ONU port; and receive a register message from the OLT, where the register message includes the port number of the ONU port and an ONU logical identifier allocated by the OLT to the ONU port.
In the embodiments of the present invention, the ONU port receives the discovery grant from the OLT, sends the register request to the OLT, and receives, from the OLT, the ONU logical identifier allocated to the ONU port. This provides an efficient ONU registration mechanism, to perform ONU management and maintenance at a granularity of an ONU port, so that the ONU can support more bandwidth channels, and a bandwidth is increased.
To describe the technical solutions in the embodiments of the present invention or in the prior art more clearly, the following briefly describes the accompanying drawings required for describing the embodiments or the prior art. Apparently, the accompanying drawings in the following description show some embodiments of the present invention, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following clearly and completely describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
For ease of description, in
The OLT 110 may include an optical coupler 111, a wavelength division multiplexer 112, a second wavelength division multiplexer 113, downstream optical transmitters Tx 1 to Tx 4, upstream optical receivers Rx 1 to Rx 4, and a processing module 114. The downstream optical transmitters Tx 1 to Tx 4 are connected to the optical coupler 111 using the wavelength division multiplexer 112, the upstream optical receivers Rx 1 to Rx 4 are connected to the optical coupler 111 using the second wavelength division multiplexer 113, and the coupler 111 is further connected to the feeder fiber 131 of the ODN 130.
Transmitter wavelengths of the downstream optical transmitters Tx 1 to Tx 4 are different from each other, and each of the downstream optical transmitters Tx 1 to Tx 4 may be corresponding to one wavelength channel in the TWDM-PON system 100. For example, the transmitter wavelengths of the downstream optical transmitters Tx 1 to Tx 4 may be respectively λd 1 to λd 4. The downstream optical transmitters Tx 1 to Tx 4 may separately transmit downstream data to corresponding wavelength channels using the transmitter wavelengths λd 1 to λd 4 of the downstream optical transmitters Tx 1 to Tx 4, so that ONUs 120 that work on the corresponding wavelength channels receive the downstream data. Correspondingly, receiver wavelengths of the plurality of upstream optical receivers Rx 1 to Rx 4 may be different from each other, and each of the upstream optical receivers Rx 1 to Rx 4 is also corresponding to one wavelength channel in the TWDM-PON system 100. For example, the receiver wavelengths of the upstream optical receivers Rx 1 to Rx 4 may be respectively λu 1 to λu 4. The upstream optical receivers Rx 1 to Rx 4 may separately receive, using the receiver wavelengths λu1 to λu 4 of the upstream optical receivers Rx 1 to Rx 4, upstream data sent by ONUs 120 that work on the corresponding wavelength channels.
The wavelength division multiplexer 112 is configured to perform wavelength division multiplexing processing on the downstream data that is transmitted by the downstream optical transmitters Tx 1 to Tx 4 and whose wavelengths are respectively λd 1 to λd 4, and send the downstream data to the feeder fiber 131 of the ODN 130 using the optical coupler 111, so as to provide the downstream data to the ONUs 120 by using the ODN 130. In addition, the optical coupler 111 may further be configured to provide the upstream data that is from the plurality of ONUs 120 and whose wavelengths are respectively λu 1 to λu 4 to the second wavelength division multiplexer 113, and the second wavelength division multiplexer 113 may demultiplex the upstream data whose wavelengths are respectively λu 1 to λu 4 to the upstream optical receivers Rx 1 to Rx 4 for data receiving.
The processing module 114 may be a MAC module. The processing module 114 may specify operating wavelength channels for the ONUs 120 via wavelength negotiation, and provide, according to an operating wavelength channel of an ONU 120, downstream data that is to be sent to the ONU 120 to one of the downstream optical transmitters Tx 1 to Tx 4 that is corresponding to the wavelength channel, so that the one of the downstream optical transmitters Tx 1 to Tx 4 transmits the downstream data to the corresponding wavelength channel. In addition, the processing module 114 may further perform upstream sending dynamic bandwidth allocation (DBA) for each wavelength channel, and allocate upstream sending timeslots to ONUs 120 that are multiplexed on a same wavelength channel in a TDM manner, to grant the ONUs 120 to send, in the specified timeslots, upstream data by using wavelength channels corresponding to the ONUs 120.
An upstream transmitter wavelength and a downstream receiver wavelength of each ONU 120 are adjustable, and the ONU 120 may respectively adjust, according to a wavelength channel specified by the OLT 110, the upstream transmitter wavelength and the downstream receiver wavelength of the ONU 120 to an upstream wavelength and a downstream wavelength of the wavelength channel, so as to send upstream data and receive downstream data by using the wavelength channel. For example, if the OLT 110 instructs, in a wavelength negotiation process, an ONU 120 to work on the wavelength channel 1, the ONU 120 may respectively adjust an upstream transmitter wavelength and a downstream receiver wavelength of the ONU 120 to the upstream wavelength λu 1 and the downstream wavelength λd 1. If the OLT 110 instructs an ONU 120 to work on the wavelength channel 3, the ONU 120 may respectively adjust an upstream transmitter wavelength and a downstream receiver wavelength of the ONU 120 to the third upstream wavelength λu 3 and the downstream wavelength λd 3.
The ONU 120 may include an optical coupler 121, a downstream optical receiver 122, an upstream optical transmitter 123, and a processing module 124. The downstream optical receiver 122 and the upstream optical transmitter 123 are connected, by using the optical coupler 121, to a distribution fiber 133 corresponding to the ONU 120. The optical coupler 121 may provide upstream data sent by the upstream optical transmitter 123 to the distribution fiber 133 of the ODN 130, to send the upstream data to the OLT 110 using the OND 130. In addition, the optical coupler 121 may further provide downstream data sent by the OLT 110 by using the ODN 130 to the downstream optical receiver 122 for receiving.
The processing module 124 may be a MAC module. The processing module 124 may perform wavelength negotiation with the OLT 110, and adjust a receiver wavelength of the downstream optical receiver 122 and a transmitter wavelength of the upstream optical transmitter 123 (that is, adjust the downstream receiver wavelength and the upstream transmitter wavelength of the ONU 120) according to the wavelength channel specified by the OLT 110, so that the ONU 120 works on the wavelength channel specified by the OLT 110. In addition, the processing module 124 may further control, according to a dynamic bandwidth allocation result of the OLT 110, the upstream optical transmitter 123 to send upstream data in a specified timeslot.
During operations of the TWDM-PON system 100, if there is a large quantity of ONUs 120 getting online, an ideal case is as follows: Some ONUs 120 work on the wavelength channel 1, some ONUs 120 work on the wavelength channel 2, some ONUs 120 work on the wavelength channel 3, and some ONUs 120 work on the wavelength channel 4; and quantities of ONUs 120 that work on the wavelength channels are basically equal.
As shown in
In operation S401, an ONU port scans a downstream wavelength channel, where the ONU port is one of a plurality of ports on an ONU.
When the ONU is powered on and initialized, each port on the ONU scans a downstream wavelength signal, to initialize and calibrate the downstream wavelength channel. The ONU port is a port on a PON side, and is specifically a port that is on the ONU and that connects to and communicates with a port on an OLT PON side by using an ODN.
In operation S402, the ONU port receives a discovery grant message from the OLT, where the discovery grant message includes a channel identifier of a downstream wavelength channel on which the discovery grant is located.
In this embodiment of the present invention, a message exchanged between the ONU port and the OLT may be a message based on a Multi-Point Control Protocol (MPCP), or may be a message based on operation, administration and maintenance (OAM), or may be a message based on physical layer operation, administration and maintenance (PLOAM), or may be a message based on an operation management control interface (OMCI), or has a self-defined message format. Herein, the discovery grant message received by the ONU port from the OLT may be specifically a gate MPCP message. The gate MPCP message may include not only the channel identifier of the downstream wavelength channel, but also a port number of the ONU port.
In operation S403, the ONU port sends a register request to the OLT, where the register request includes a port number of the ONU port.
In one scenario, each ONU port on the ONU may send a register request to the OLT. In another scenario, the ONU selects a default ONU port to perform a registration, and only the selected default ONU port sends a register request to the OLT. In another scenario, the ONU port that sends the register request may be specified by the OLT. The specified ONU port has previously registered with the OLT, and the OLT may specify, using the port number of the ONU port that is carried in the gate MPCP message in operation S402, the ONU port that needs to send the register request to the OLT.
The ONU may store a correspondence between the channel identifier of the downstream wavelength channel and a channel identifier of an upstream wavelength channel, the downstream wavelength channel and the upstream wavelength channel form a wavelength channel group, and the sending, by the ONU port, a register request message to the OLT may include: sending, by the ONU port, the register request message to the OLT using the upstream wavelength channel.
In operation S404, the ONU port receives a register message from the OLT, where the register message includes the port number of the ONU port and an ONU logical identifier allocated by the OLT to the ONU port.
After receiving, from the OLT, the ONU logical identifier allocated to the ONU port, the ONU port may further send a register response message to the OLT. The register response message is used to instruct the OLT to confirm whether the ONU logical identifier is allocated to the ONU port, and the register response message includes the port number of the ONU port.
When the ONU on which the ONU port is located is an ONU in a GPON, the ONU logical identifier may be specifically an ONU ID. When the ONU on which the ONU port is located is an ONU in an EPON, the ONU logical identifier may be specifically an LLID.
In this embodiment of the present invention, the ONU port receives the discovery grant message from the OLT, sends the register request to the OLT, and receives, from the OLT, the ONU logical identifier allocated to the ONU port. This provides an efficient ONU registration mechanism, so that the ONU can support more bandwidth channels, and a bandwidth is increased.
In operation S501, an ONU port scans a downstream wavelength channel, where the ONU port is one of a plurality of ports on an ONU.
When the ONU is powered on and initialized, each port on the ONU scans a downstream wavelength signal, to initialize and calibrate the downstream wavelength channel. The ONU port may be a wavelength channel terminal that is on a PON side and that communicates with an OLT PON port.
In operation S502, the ONU port receives a discovery grant message from the OLT, where the discovery grant message includes a channel identifier of a downstream wavelength channel on which the discovery grant is located.
In this embodiment of the present invention, a message exchanged between the ONU port and the OLT may be a message based on a MPCP, or may be a message based on operation, OAM, or may be a message based on PLOAM, or may be a message based on an OMCI, or has a self-defined message format. Herein, the discovery grant message received by the ONU port from the OLT may be specifically a gate MPCP message. The gate MPCP message may include not only the channel identifier of the downstream wavelength channel, but also a port number of the ONU port. Herein, an MPCP message is used as an example to describe a format of information exchanged between the ONU port and the OLT. A format of the MPCP message may be as follows according to one embodiment:
Table 1 shows a frame format of an existing MPCP protocol. The destination address (DA) occupies six bytes, and is used to mark an IP address to which the packet is sent.
The source address (SA) occupies six bytes, and is used to mark an IP address from which the packet is sent.
The packet length/type occupies two bytes, and is used to mark a length and a type of the packet.
The operation code occupies two bytes, and is used to mark a number of the MPCP frame.
The timestamp occupies four bytes, and is used to mark a time at which the packet is sent.
The data information/reserved field (Data/Reserved/Pad) occupies 40 bytes, and is used to carry data information or is used as a reserved field for extension.
The frame check sequence (FCS) occupies four bytes, and is parity bits.
An existing standard records five types of MPCP frames, including a gate frame, a report frame, a register_req frame, a register frame, and a register_ack frame. The five types of frames each include the foregoing fields, such as the destination address, the source address, the length/type, the operation code, the timestamp, the data/reserved field, and the frame check sequence, and content of the fields varies with different frames. Opcodes of the five types of frames are respectively 0002, 0003, 0004, 0005, and 0006.
A possible format of the gate MPCP message may be as follows according to one embodiment.
In operation S503, the ONU port sends a register request message to the OLT, where the register request message includes a port number of the ONU port.
In a case, each ONU port on the ONU may send a register request message to the OLT. In another case, the ONU selects a default ONU port to perform registration, and only the selected default ONU port sends a register request message to the OLT. In another case, the ONU port that sends the register request may be specified by the OLT. The specified ONU port has previously registered with the OLT, and the OLT may specify, by using the port number of the ONU port that is carried in the gate MPCP message in operation S502, the ONU port that needs to send the register request to the OLT.
For ease of recognition by the OLT, when the ONU port sends the register request, the register request message may carry not only the port number of the ONU port, but also an attribute related to the ONU port, for example, a channel identifier of a downstream receiver wavelength channel which the ONU port is currently using, and a rate supported by the ONU port. The following table shows a possible format of the register request (Register_req MPCP) sent by the ONU port according to one embodiment.
In operation S504, the ONU port receives a re-calibration request message from the OLT, where the re-calibration request message includes the port number of the ONU port, a channel identifier of an upstream wavelength channel which the ONU port is currently using, a channel identifier of a target upstream wavelength channel that the ONU port needs to obtain by means of calibration, and a channel identifier of a target downstream wavelength channel that the ONU port needs to obtain by means of calibration.
The re-calibration request message may be sent by the OLT to the ONU port when the OLT finds that the ONU port is not located on an expected upstream wavelength channel, and the OLT may send the re-calibration request message to only the ONU port that is not located on the expected upstream wavelength channel.
The following table shows a possible format of the re-calibration request message sent to the ONU port according to one embodiment.
In operation S505, the ONU port performs calibration according to the channel identifier of the target upstream wavelength channel that the ONU port needs to obtain by means of calibration, and the channel identifier of the target downstream wavelength channel that the ONU port needs to obtain by means of calibration.
The ONU port undergoing re-calibration works on the expected target upstream wavelength channel and target downstream wavelength channel.
In operation S506, the ONU port receives an upstream wavelength adjustment request message from the OLT, where the upstream wavelength adjustment request message includes the port number of the ONU port, an upstream wavelength adjustment direction, and an upstream wavelength adjustment magnitude.
When the OLT finds that the ONU port is located on the expected upstream wavelength channel, but an upstream wavelength of the ONU port is unaligned with a center wavelength of a receiver filter, the OLT sends the upstream wavelength adjustment request to the ONU.
The following table shows a possible format of the upstream wavelength adjustment request message (an MPCP message) sent to the ONU port according to one embodiment.
In operation S507, the ONU port adjusts the upstream wavelength of the ONU port according to the upstream wavelength adjustment direction and the upstream wavelength adjustment magnitude.
An upstream wavelength of the ONU port that undergoes upstream wavelength adjustment is aligned with the center wavelength of the receiver filter.
It should be noted that wavelength channel re-calibration in operations S504 and S505 is triggered when the ONU port is not located on the expected wavelength channel. If the ONU port is located on the expected wavelength channel, the wavelength channel re-calibration step does not need to be performed. Similarly, upstream wavelength adjustment in operations S506 and S507 may be triggered only when the upstream wavelength of the ONU port is unaligned with the center wavelength of the receiver filter. If the upstream wavelength of the ONU port is aligned with the center wavelength of the receiver filter, the upstream wavelength adjustment step does not need to be performed.
In operation S508, the ONU port receives a register message from the OLT, where the register message includes the port number of the ONU port and an ONU logical identifier allocated by the OLT to the ONU port.
When the ONU on which the ONU port is located is an ONU in a GPON, the ONU logical identifier may be specifically an ONU ID. When the ONU on which the ONU port is located is an ONU in an EPON, the ONU logical identifier may be specifically an LLID.
The following table shows a possible format of the register message (Register MPCP) received by the ONU port from the OLT according to one embodiment.
In operation S509, the ONU port sends a register acknowledgement message to the OLT, where the register acknowledgement message is used to confirm that the ONU port has registered, and the register acknowledgement message carries the port number of the ONU port.
After receiving, from the OLT, the ONU logical identifier allocated to the ONU port, the ONU port may further send a register acknowledgement message to the OLT. The register acknowledgement message is used to instruct the OLT to confirm whether the ONU logical identifier is allocated to the ONU port, and the register acknowledgement message includes the port number of the ONU port.
The following table shows a possible format of the register acknowledgement message (Register_ack MPCP) sent by the ONU port to the OLT according to one embodiment.
In this embodiment of the present invention, the ONU port receives the discovery grant message from the OLT, sends the register request to the OLT, and receives, from the OLT, the ONU logical identifier allocated to the ONU port. This provides an efficient ONU registration mechanism, so that the ONU can support more bandwidth channels, and a bandwidth is increased.
a scanning module 601, configured to scan a downstream wavelength channel; and
a transceiver module 602, configured to: receive a discovery grant message from an optical line terminal OLT, where the discovery grant message includes a channel identifier of a downstream wavelength channel on which the discovery grant message is being transmitted;
send a register request message to the OLT, where the register request message includes a port number of the ONU port; and
receive a register message from the OLT, where the register message includes the port number of the ONU port and an ONU logical identifier allocated by the OLT to the ONU port.
The transceiver module 602 may further be configured to: send a register acknowledgement message to the OLT, where the register acknowledgement message is used to confirm that the ONU port has registered, and the register acknowledgement message carries the port number of the ONU port.
Herein, a function of the scanning module may be specifically implemented by a processor, and a function of the transceiver module may be specifically implemented by a transceiver.
When the ONU on which the ONU port is located is an ONU in a GPON, the ONU logical identifier may be specifically an ONU ID. When the ONU on which the ONU port is located is an ONU in an EPON, the ONU logical identifier may be specifically an LLID.
The ONU port 610 may further include a calibration module 603, and when the ONU port 610 is not located on an expected wavelength channel, the transceiver module 602 may further be configured to: receive a re-calibration request message from the OLT, where the re-calibration request message includes the port number of the ONU port 610, a channel identifier of an upstream wavelength channel on which the ONU port 610 is currently located, a channel identifier of a target upstream wavelength channel that the ONU port 610 needs to obtain by means of calibration, and a channel identifier of a target downstream wavelength channel that the ONU port 610 needs to obtain by means of calibration; and the calibration module 603 is configured to perform calibration according to the channel identifier of the target upstream wavelength channel that the ONU port 610 needs to obtain by means of calibration, and the channel identifier of the target downstream wavelength channel that the ONU port 610 needs to obtain by means of calibration.
The ONU port 610 further includes an adjustment module 604. When the ONU port 610 is located on an expected upstream wavelength channel, but an upstream wavelength of the ONU port 610 is unaligned with a center wavelength of a receiver filter, the transceiver module 602 is further configured to: receive an upstream wavelength adjustment request message from the OLT, where the upstream wavelength adjustment request message includes the port number of the ONU port 610, an upstream wavelength adjustment direction, and an upstream wavelength adjustment magnitude; and the adjustment module 604 is configured to adjust the upstream wavelength of the ONU port 610 according to the upstream wavelength adjustment direction and the upstream wavelength adjustment magnitude.
The ONU port 701 may further be configured to send a register acknowledgement message to the OLT 710, where the register acknowledgement message is used to confirm that the ONU port 701 has registered, and the register acknowledgement message carries the port number of the ONU port 701.
In operation S801, a discovery grant message is sent to an ONU port, where the discovery grant message includes a channel identifier of a downstream wavelength channel on which the discovery grant message is being transmitted, and the ONU port is one of the ports on an ONU.
In this embodiment of the present invention, an OLT sends the discovery grant message to the ONU port. A message exchanged between the ONU port and the OLT may be a message based on a MPCP, or may be a message based on OAM, or may be a message based on PLOAM, or may be a message based on an OMCI, or has a self-defined message format. Herein, the discovery grant message sent by the OLT to the ONU port may be specifically a gate MPCP message. The gate MPCP message may include not only the channel identifier of the downstream wavelength channel, but also a port number of the ONU port.
In operation S802, a register request message is received from the ONU port, where the register request message includes a port number of the ONU port.
In one scenario, an OLT may receive a register request message from each ONU port on the ONU. In another scenario, the ONU selects a default ONU port to perform registration, and the OLT receives a register request message from the selected default ONU port. In another scenario, the ONU port that sends the register request may be specified by the OLT. The specified ONU port has previously registered with the OLT, and the OLT may specify, by using the port number of the ONU port that is carried in the gate MPCP message in operation S502, the ONU port that needs to send the register request to the OLT.
For ease of recognition by the OLT, when the ONU port sends the register request, the register request message may include not only the port number of the ONU port, but also an attribute related to the ONU port, for example, a channel identifier of a downstream receiver wavelength channel which the ONU port is currently using, and a rate supported by the ONU port.
In operation S803, a re-calibration request message is sent to the ONU port, where the re-calibration request message includes the port number of the ONU port, a channel identifier of an upstream wavelength channel which the ONU port is currently using, a channel identifier of a target upstream wavelength channel that the ONU port needs to obtain via calibration, and a channel identifier of a target downstream wavelength channel that the ONU port needs to obtain via calibration, and the channel identifier of the target upstream wavelength channel and the channel identifier of the target downstream wavelength channel are used to calibrate the ONU port.
In operation S804, an upstream wavelength adjustment request message is sent to the ONU port, where the upstream wavelength adjustment request message includes the port number of the ONU port, an upstream wavelength adjustment direction, and an upstream wavelength adjustment magnitude, and the upstream wavelength adjustment direction and the upstream wavelength adjustment magnitude are used to adjust an upstream wavelength of the ONU port.
When the OLT finds that the ONU port is located on the expected upstream wavelength channel, but an upstream wavelength of the ONU port is unaligned with a center wavelength of a receiver filter, the OLT sends the upstream wavelength adjustment request to the ONU.
It should be noted that wavelength channel re-calibration in operation S803 is triggered when the ONU port is not located on the expected wavelength channel. If the ONU port is located on the expected wavelength channel, the wavelength channel re-calibration step does not need to be performed. Similarly, upstream wavelength adjustment in step S804 may be triggered only when the upstream wavelength of the ONU port is unaligned with the center wavelength of the receiver filter. If the upstream wavelength of the ONU port is aligned with the center wavelength of the receiver filter, the upstream wavelength adjustment step does not need to be performed.
In operation S805, a register message is sent to the ONU port, where the register message includes the port number of the ONU port and an ONU logical identifier allocated by the OLT to the ONU port.
In operation S806, a register acknowledgement message is received from the ONU port, where the register acknowledgement message is used to confirm that the ONU port has registered, and the register acknowledgement message carries the port number of the ONU port.
After receiving, from the OLT, the ONU logical identifier allocated to the ONU port, the ONU port may further send a register acknowledgement message to the OLT. The register acknowledgement message is used to instruct the OLT to confirm whether the ONU logical identifier is allocated to the ONU port, and the register acknowledgement message includes the port number of the ONU port.
When the ONU on which the ONU port is located is an ONU in a GPON, the ONU logical identifier may be specifically an ONU ID. When the ONU on which the ONU port is located is an ONU in an EPON, the ONU logical identifier may be specifically an LLID.
In this embodiment of the present invention, the ONU port receives the discovery grant from the OLT, sends the register request to the OLT, and receives, from the OLT, the ONU logical identifier allocated to the ONU port. This provides an efficient ONU registration mechanism, so that the ONU can support more bandwidth channels, and a bandwidth is increased.
a sending module 901, configured to send a discovery grant message to an ONU port, where the discovery grant message includes a channel identifier of a downstream wavelength channel on which the discovery grant message is being transmitted, and the ONU port is one of a plurality of ports on an ONU; and
a receiving module 902, configured to receive a register request message from the ONU port, where the register request message includes a port number of the ONU port.
The sending module 901 is further configured to send a register message to the ONU port, where the register message includes the port number of the ONU port and an ONU logical identifier allocated to the ONU port.
The receiving module 902 may further be configured to: receive a register acknowledgement message sent by the ONU port, where the register acknowledgement message is used to confirm that the ONU port has registered, and the register acknowledgement message carries the port number of the ONU port.
If the ONU port is not located on an expected wavelength channel, the sending module 901 may further be configured to: send a re-calibration request message to the ONU port, where the re-calibration request message includes the port number of the ONU port, a channel identifier of an upstream wavelength channel which the ONU port is currently using, a channel identifier of a target upstream wavelength channel that the ONU port needs to obtain by means of calibration, and a channel identifier of a target downstream wavelength channel that the ONU port needs to obtain by means of calibration, and the channel identifier of the target upstream wavelength channel and the channel identifier of the target downstream wavelength channel are used to calibrate the ONU port.
If the ONU port is located on an expected upstream wavelength channel, but an upstream wavelength of the ONU port is unaligned with a center wavelength of a receiver filter, the sending module 901 may further be configured to: send an upstream wavelength adjustment request message to the ONU port, where the upstream wavelength adjustment request message includes the port number of the ONU port, an upstream wavelength adjustment direction, and an upstream wavelength adjustment magnitude, and the upstream wavelength adjustment direction and the upstream wavelength adjustment magnitude are used to adjust the upstream wavelength of the ONU port.
Herein, the sending module 901 may be a transmitter, the receiving module 902 may be a receiver, and the transmitter and the receiver may form a transceiver.
In this embodiment of the present invention, the ONU port receives the discovery grant from an OLT, sends the register request to the OLT, and receives, from the OLT, the ONU logical identifier allocated to the ONU port. This provides an efficient ONU registration mechanism, to perform ONU management and maintenance at a granularity of an ONU port, so that the ONU can support more bandwidth channels, and a bandwidth is increased.
A person of ordinary skill in the art may understand that, each aspect of the present invention or a possible implementation of each aspect may be specifically implemented as a system, a method, or a computer program product. Therefore, each aspect of the present invention or a possible implementation of each aspect may use forms of hardware only embodiments, software only embodiments (including firmware, resident software, and the like), or embodiments with a combination of software and hardware, which are uniformly referred to as “circuit”, “module”, or “system” herein. In addition, each aspect of the present invention or the possible implementation of each aspect may take a form of a computer program product, where the computer program product refers to computer-readable program code stored in a computer-readable medium.
The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium includes but is not limited to an electronic, magnetic, optical, electromagnetic, infrared, or semi-conductive system, device, or apparatus, or any appropriate combination thereof, such as a random access memory (RAM), a read-only memory (ROM), an erasable programmable read only memory (EPROM or flash memory), an optical fiber, and a compact disc read only memory (CD-ROM).
A processor in a computer reads computer-readable program code stored in a computer-readable medium, so that the processor can perform a function and an action specified in each step or a combination of steps in a flowchart; an apparatus is generated to implement a function and an action specified in each block or a combination of blocks in a block diagram.
All computer-readable program code may be executed on a user computer, or some may be executed on a user computer as a standalone software package, or some may be executed on a computer of a user while some is executed on a remote computer, or all the code may be executed on a remote computer or a server. It should also be noted that, in some alternative implementation solutions, each step in the flowcharts or functions specified in each block in the block diagrams may not occur in the illustrated order. For example, two consecutive steps or two blocks in the illustration, which are dependent on an involved function, may actually be executed substantially at the same time, or these blocks may sometimes be executed in reverse order.
A person of ordinary skill in the art may be aware that, in combination with the examples described in the embodiments disclosed in this specification, units and algorithm steps may be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed by hardware or software depends on particular applications and design constraint conditions of the technical solutions. A person skilled in the art may use different methods to implement the described functions for each particular application, but it should not be considered that the implementation goes beyond the scope of the present invention.
Finally, it should be noted that the foregoing embodiments are merely intended for describing the technical solutions of the present invention, but not for limiting the present invention. Although the present invention is described in detail with reference to the foregoing embodiments, a person of ordinary skill in the art should understand that they may still make modifications to the technical solutions described in the foregoing embodiments or make equivalent replacements to some or all technical features thereof. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
This application is a continuation of International Application No. PCT/CN2015/090298, filed on Sep. 22, 2015, the disclosure of which is hereby incorporated by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2015/090298 | Sep 2015 | US |
Child | 15927964 | US |