WO2017166576A1 - Registration method and device for optical network unit, and optical line terminal - Google Patents
Registration method and device for optical network unit, and optical line terminal Download PDFInfo
- Publication number
- WO2017166576A1 WO2017166576A1 PCT/CN2016/095357 CN2016095357W WO2017166576A1 WO 2017166576 A1 WO2017166576 A1 WO 2017166576A1 CN 2016095357 W CN2016095357 W CN 2016095357W WO 2017166576 A1 WO2017166576 A1 WO 2017166576A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- onu
- registration
- abnormal
- registry
- registration information
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0062—Network aspects
- H04Q11/0067—Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/07—Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
- H04B10/075—Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
- H04B10/077—Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using a supervisory or additional signal
- H04B10/0773—Network aspects, e.g. central monitoring of transmission parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/27—Arrangements for networking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0062—Network aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0062—Network aspects
- H04Q2011/0064—Arbitration, scheduling or medium access control aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0062—Network aspects
- H04Q2011/0079—Operation or maintenance aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0062—Network aspects
- H04Q2011/0079—Operation or maintenance aspects
- H04Q2011/0081—Fault tolerance; Redundancy; Recovery; Reconfigurability
Definitions
- the present application relates to, but is not limited to, a point-to-multipoint communication technology/system, and in particular, to a method, an apparatus, and an optical line terminal for registering an optical network unit.
- the device is called an xPON network.
- the common networking system consists of an EMS (Element Management System), an OLT (Optical Line Terminal), an Optical Distribution Network (ODN), and several An ONU (Optical Network Unit) consists of an OLT as a central office device.
- the ONU network is used to connect multiple ONU devices.
- the ONU device implements user service access to implement data service and configuration management.
- the xPON network acts as a "point-to-multipoint" topology: the transmission direction from the OLT to the ONU is the downlink direction (downstream), and the downlink direction uses the broadcast method (Broadcast) to transmit data.
- the ONU determines whether the data is valid according to the data identifier and determines the reception. Or discarding; the transmission direction from the ONU to the OLT is the upstream direction (upstream), and the uplink direction is TDMA (Time Division Multiple Access).
- the ONU must allocate the Bwmap (Bandwidth Map) according to the OLT. ) to send an uplink burst (Burst) signal.
- each ONU is assigned a unique identifier in the PON port as the link identifier of the ONU (for example, the LIID (Logical Link Identifier) is used as the ONU in the EPON system.
- the identifier such as the ONUID (ONU Identifier, ONU identifier) in the GPON (Gigabit-Capable PON) system, is used as the unique identifier of the ONU.
- the ONU identifier is uniformly allocated by the OLT when the ONU is registered, and after the ONU is successfully registered, the OLT allocates different uplink bandwidth slots according to the ONU identifier.
- the xPON system adopts the TDMA access mode to periodically initiate the registration process. Only the unregistered new access ONUs in the registration period can respond to the registration authorization frame sent by the OLT (including but not limited to MPCP (Multi-Point Control) in the EPON system. Protocol, Multipoint Control Protocol) Discovery Authorization frame GATE frame, which is assigned a unique ONU identifier by the OLT (including but not limited to LLID in EPON system, ONU ID in GPON system), and finally completes registration completion frame by ONU through interaction (including but not limited to EPON system)
- the registration reply frame of the MPCP sent by the ONU registers the ack frame to complete the registration process.
- the OLT periodically detects the registration request response of the ONU and allocates internal resources thereto.
- the registration request is re-initiated frequently.
- the OLT may exhaust the resources for the ONU registration, or cause the OLT to respond to the registration request of the relevant ONU and process the OLT.
- the workload of the OLT device is increased, and the normal registration request of other ONUs on the PON port may not be obtained in time. deal with.
- the problem of the related art is that the ONU frequently puts the line on the line or the lower line to impose a burden on the OLT, and also affects the normal ONU operation.
- An object of the present invention is to provide a method, a device, and an optical line terminal for registering an optical network unit, which solves the problem that the ONU of the related art frequently causes the OLT to be put on or off the line, and also affects the operation of the normal ONU.
- a method for registering an optical network unit ONU is applied to an optical line terminal OLT, wherein the registration method includes:
- the first preset time set after starting the first timer does not respond to the application registration request, and the first preset is After the time arrives, the registration status of the ONU is re-monitored.
- the registration method further includes: after the basic registration information of the ONU is not recorded in the abnormal registry, after the request for registration, the second timer is started, and The second preset time of the second timer monitors the number of uplinks and downlinks of the ONU.
- the registration information includes: The medium access control MAC address of the ONU, the serial number SN of the ONU, the registration flag of the ONU, the type of the ONU, and the number of uplinks and downlinks of the ONU in the second preset time period. / or the threshold number of times of the ONU and the number of offline lines of the ONU.
- the recording the registration information of the ONU in the exception registry includes:
- the registration flag of the ONU is set to an abnormal registration flag.
- the registration information of the ONU is recorded in the exception registry according to the abnormal registration flag.
- re-monitoring the registration status of the ONU includes:
- the application registration request of the ONU is re-acquired and the second preset time scheduled by the second timer is started.
- the number of uplinks and downlinks of the ONU is monitored.
- the registration state of the ONU is determined to be a non-exception state, and the basic registration information of the ONU in the abnormal registry is deleted, and the ONU is The registration information is recorded in the registration information table, wherein the registration information includes: a MAC address of the ONU, a serial number SN of the ONU, a registration flag of the ONU, a type of the ONU, and the The number of times the uplink and the downlink of the ONU are in the preset time, the threshold number of times of the uplink and the downlink of the ONU, and/or the identifier allocated by the OLT for uniquely identifying the ONU.
- the recording, by the registration information of the ONU, in the registration information table includes:
- the registration information of the ONU is recorded in the registration information table according to the normal registration flag.
- responding to the application registration request includes:
- the basic registration information of the ONU is parsed, and it is determined whether the registration flag of the ONU is a normal registration flag.
- the registration flag of the ONU is a normal registration flag
- a response message for requesting the registration request of the ONU is generated and sent to the ONU, where the response message carries the unique identifier allocated by the OLT.
- the registration method further includes:
- the first preset time length of the first timer is set to normally respond to an ONU application registration request.
- the first preset time length of the first timer is set to a preset maximum time. Threshold.
- the embodiment of the present invention further provides a registration device for an optical network unit ONU, which is applied to an optical line terminal OLT, wherein the registration device includes: an acquisition module, a first determination module, a response module, and a first processing module.
- the obtaining module is configured to obtain an application registration request for the ONU to apply for registration to the passive optical network PON, where the application registration request carries the basic registration information of the ONU.
- the first determining module is configured to determine that the basic registration information in the application registration request is None is recorded in the exception registry.
- the response module is configured to respond to the application registration request when the basic registration information of the ONU is not recorded in the abnormality registry.
- the first processing module is configured to: when the basic registration information of the ONU is recorded in the abnormal registry, not registering the application for registration within a first preset time set after starting the first timer The request, after the arrival of the first preset time, re-monitor the registration status of the ONU.
- the registration device of the optical network unit ONU further includes: a startup module, a second determination module, and a second processing module.
- the startup module is configured to: after the basic registration information of the ONU is not recorded in the abnormal registry, after the response module responds to the application registration request, start a second timer, and The second preset time of the second timer monitors the number of uplinks and downlinks of the ONU.
- the second determining module is configured to determine, when the second preset time arrives, whether the number of the upper and lower lines reaches a threshold number of times.
- the second processing module is configured to determine that the registration status of the ONU is in an unstable state when the number of times of the uplink and the downlink is up to the threshold, and the registration information of the ONU is recorded in the abnormal registry.
- the registration information includes: a media access control MAC address of the ONU, a sequence number SN of the ONU, a registration flag of the ONU, a type of the ONU, and a location in the second preset time. The number of times of the upper and lower lines of the ONU, and/or the number of times of the number of the upper and lower lines of the ONU.
- the second processing module includes: a setting unit and a recording unit.
- the second processing module records the registration information of the ONU in the abnormal registry, including:
- the setting unit is configured to set the registration flag of the ONU to be an abnormal registration flag.
- the recording unit is configured to record, according to the abnormal registration flag, the registration information of the ONU in the abnormal registry.
- the first processing module includes: a starting unit, a monitoring unit, and a processing unit.
- the re-monitoring the registration status of the ONU includes:
- the activation unit is configured to re-acquire the application registration request of the ONU and start the second preset time scheduled by the second timer after the first preset time arrives.
- the monitoring unit is configured to monitor the number of uplinks and downlinks of the ONU during the second preset time.
- the processing unit is configured to determine that the registration status of the ONU is a non-exception state when the number of times the uplink and the downlink of the ONU are not reached, and delete the basic registration of the ONU in the abnormal registry.
- Information, and the registration information of the ONU is recorded in the registration information table, where the registration information includes: a MAC address of the ONU, a serial number SN of the ONU, a registration flag of the ONU, and the The type of the ONU, the number of times the uplink and the downlink of the ONU are in the second preset time, the threshold number of times of the uplink and the downlink of the ONU, and/or the identifier allocated by the OLT for uniquely identifying the ONU Logo.
- the processing unit includes: a setting subunit and a recording subunit.
- the processing unit records the registration information of the ONU in the registration information table, including:
- the setting subunit is configured to set a registration flag of the ONU as a normal registration flag.
- the recording subunit is configured to record registration information of the ONU in the registration information table according to the normal registration flag.
- the response module includes: a parsing unit and a receiving unit.
- responding to the application registration request includes:
- the parsing unit is configured to parse the basic registration information of the application registration request of the ONU and determine whether the registration flag of the ONU is normal when the basic registration information of the ONU is not recorded in the abnormality registry.
- a registration flag when it is determined that the registration flag of the ONU is a normal registration flag, a response message for requesting the registration request of the ONU is generated and sent to the ONU, where the response message carries the A registration frame assigned by the OLT to uniquely identify the identity of the ONU.
- the receiving unit is configured to receive a response message for the response message that is fed back by the ONU, to complete the registration process of the ONU, where the response message carries the indication The registration response frame at the end of the ONU registration process.
- the registration device of the optical network unit ONU further includes: a monitoring module, a first setting module, and a second setting module.
- the monitoring module is configured to monitor a first number of registrable ONUs in the PON before the first processing module re-monitored the registration status of the ONU, wherein the first number of the registrable ONUs The difference between the maximum number of ONUs that can be registered in the PON and the number of registered ONUs in the PON.
- the first setting module is configured to: when the first quantity of the registrable ONU is greater than the second quantity of the ONUs that are not recorded in the abnormal registry, the first preset time length of the first timer Set to the second time multiple of the maximum time when an ONU applies for a registration request.
- the second setting module is configured to: when the first quantity of the registrable ONU is less than or equal to a second quantity of the ONUs that are not recorded in the abnormal registry, the first preset of the first timer The length of time is set to the preset maximum time threshold.
- An optical line terminal OLT comprising a registration device such as the optical network unit ONU described above.
- a computer readable storage medium storing computer executable instructions that, when executed by a processor, implement the registration method of the ONU.
- the registration status of the ONU is re-monitored, and the registration is not abnormal.
- the request for registration of the ONU in the table responds normally. This not only affects the response of the normal ONU request registration request when the ONU is abnormal, but also does not process the abnormal ONU within the preset time, reducing the burden on the OLT.
- the abnormal ONU is processed again, so that the processing of the abnormal ONU is not ignored, and the processing of the application registration request for all OLTs is realized, and the performance of the OLT is improved.
- FIG. 1 is a schematic flowchart of a method for registering an ONU of an optical network unit according to a first embodiment of the present invention
- FIG. 2 is a schematic overall flow chart of a method for registering an ONU of an optical network unit according to a second embodiment of the present invention
- FIG. 3 is a schematic flowchart of an OLT initiating a registration discovery window according to a third embodiment of the present invention.
- FIG. 4 is a schematic structural diagram of an apparatus for registering an ONU of an optical network unit according to a fourth embodiment of the present invention.
- FIG. 5 is a schematic diagram of a topology of a PON network according to a fifth embodiment of the present invention.
- a method for registering an optical network unit ONU according to an embodiment of the present invention is applied to an optical line terminal OLT, where steps 101-104 are included:
- Step 101 Acquire an application registration request for the ONU to apply for registration to the passive optical network PON, where the application registration request carries basic registration information of the ONU.
- the OLT may initiate a registration discovery window, and obtain the basic registration information in the application registration request reported by the ONU.
- the basic registration information here may include: the MAC address of the EPON ONU and the SN (Serial Number) number of the GPON ONU.
- the identification of the ONU can be determined using the basic registration information.
- Step 102 Determine whether the basic registration information in the application registration request is recorded in the abnormal registry.
- the OLT maintains an abnormal registry of the ONU, including but not limited to recording the basic registration information of the ONU.
- the abnormality registry may further include registration information of the ONU registration flag bit being an abnormal registration flag bit, which may facilitate subsequent use of the registration information in the abnormal registry.
- Step 103 When the basic registration information of the ONU is not recorded in the abnormal registry, respond to the application registration request.
- Step 104 When the basic registration information of the ONU is recorded in the abnormal registry, the first preset time set after starting the first timer does not respond to the application registration request, After the first preset time arrives, the registration status of the ONU is re-monitored.
- the first preset time here can be set according to user requirements.
- the ONU that is abnormal during the first preset time does not operate, so that other normal ONUs can operate, and the application for registration of the abnormal ONU that does not handle the abnormal ONU is avoided, which affects the registration of the abnormal ONU after returning to normal.
- the abnormality of the ONU in the abnormal registry may refer to the number of times the ONU goes online and offline (including: offline) reaches the threshold number, or may refer to an abnormality such as an ONU power failure. .
- the abnormality of the ONU in the abnormal registry is used to accurately determine the abnormality of the ONU and facilitate monitoring.
- the first timer started here is a timer that is respectively started for each ONU, wherein each first timer can be associated with each The basic registration information of the ONU is pre-established.
- the step 104 may be: when the basic registration information of the ONU is recorded in the abnormality registry, start a first timer corresponding to the ONU, within a first preset time set, Not responding to the application registration request, after the first preset time arrives, re-monitoring the registration status of the ONU. This can avoid the situation where multiple ONUs use the same timer to generate timing mixed food, which improves the accuracy of each ONU execution action.
- the registration state of the ONU is re-monitored after the first preset time is reached, and the registration state of the ONU is not monitored.
- the ONU's application for registration request is normal, so that it can not only affect the response of the normal ONU's application for registration request when the ONU is abnormal, but also does not handle the abnormal ONU within the preset time, reducing the burden on the OLT.
- the abnormal ONU is processed again, so that the processing of the abnormal ONU is not ignored, and the processing of the application registration request for all OLTs is realized, and the performance of the OLT is improved.
- the method for registering the optical network unit ONU of the embodiment of the present invention further includes the steps of: interacting with the authorization frame and the report frame, the interaction step includes steps 106-107. :
- Step 106 Send an authorization message to the ONU, where the authorization message carries an authorization frame allocated to a time slice of the ONU for transmitting data.
- the OLT sends an authorization message carrying the authorization frame of the authorized time slice to the ONU, and the ONU transmits the data according to the time slice allocated by the OLT, and the ONU reports to the OLT to carry the data.
- a report message with the status of the ONU and the requested report frame.
- the OLT sends an authorization message to allocate an authorized time slice for the ONU to meet the requirement of transmitting data of the subsequent ONU.
- the ONU sends a report message to inform the OLT whether it needs to register and its own registration status, so as to realize the interworking of messages between the OLT and the ONU.
- Step 107 Receive an application registration request returned by the ONU by using the time slice for the authorization message, where the application registration request carries a registration request frame that the ONU needs to register the PON.
- the OLT first automatically finds whether the ONU needs to be registered before receiving the registration request from the ONU. This facilitates subsequent acquisition of the ONU application registration request and clock synchronization.
- the method for registering the optical network unit ONU of the embodiment of the present invention further includes the steps 108-110: after the step 103, that is, the basic registration information of the ONU is not recorded in the abnormal registry.
- the request includes:
- Step 108 Start a second timer, and monitor the number of online and offline lines of the ONU in a second preset time of the second timer.
- the second preset time here can be set according to user requirements. In order to determine the number of uplink and downlink lines of the ONU in a time range, it is also avoided that long-term monitoring makes resources consume resources, and the ONUs of the occasional ONUs can be frequently monitored and offline.
- the ONU's online and offline times refers to the number of times the ONU initiates the application for registration, including but not limited to: the number of times the OLT detects the application for registration of the ONU but the actual registration fails.
- the OLT monitors the ONU's application for registration and the registration is successful again.
- the number of status changes for offline or power down.
- step 108 if the application registration request of multiple ONUs is obtained in step 101, the start second timer here is a timer that is respectively started for each ONU, wherein each second The timer can be pre-established with the basic registration information of each ONU.
- step 108 may be: starting a second timer corresponding to the ONU, and in the foregoing The second preset time of the second timer monitors the number of uplinks and downlinks of the ONU. This can avoid the situation where multiple ONUs use the same timer to generate timing mixed food, which improves the accuracy of each ONU execution action.
- Step 109 When the second preset time arrives, determine whether the number of the upper and lower lines reaches a threshold number of times.
- the threshold number here can be set according to user requirements, or can be set according to industrial requirements, and is not limited herein.
- the threshold number is used to determine whether the registration state of the ONU is stable.
- Step 110 When the number of times of the uplink and the downlink is up to the threshold number, determine that the registration status of the ONU is an unstable state, and record the registration information of the ONU in an abnormal registry, where the registration information is The MAC address of the ONU, the serial number SN of the ONU, the registration flag of the ONU, the type of the ONU, the number of uplinks and downlinks of the ONU in the second preset time, And/or the threshold number of times of the upper and lower lines of the ONU.
- the registration information is The MAC address of the ONU, the serial number SN of the ONU, the registration flag of the ONU, the type of the ONU, the number of uplinks and downlinks of the ONU in the second preset time, And/or the threshold number of times of the upper and lower lines of the ONU.
- the step 110 records the registration information of the ONU in the abnormal registry, including steps 1101-1102:
- step 1101 the registration flag of the ONU is set to an abnormal registration flag.
- the abnormal registration flag in this case may be a digital sign, a text mark, or a letter mark. Any form that can realize the sign of the registration mark belongs to the protection scope of the embodiment of the present invention, and is not exemplified herein. It is convenient to identify whether the registration status of the ONU is stable by the existence of the abnormal registration flag.
- Step 1102 Record registration information of the ONU in the abnormal registry according to the abnormal registration flag.
- the step 1102 may be: recording, according to the abnormal registration flag, the registration information of the ONU in the abnormal registry, and when the second preset time of the second timer arrives, the monitored ONU is online. And the number of offline lines is cleared to facilitate the re-monitoring of the ONU and the number of offline lines in the later period.
- the OLT completes the determination of the registration state of the ONU, and updates the registration flag of the ONU of the ONU in the registration information table, and identifies the abnormal ONU by using the abnormal registration flag bit, thereby conveniently determining the stability of the ONU registration state.
- the abnormal ONU is recorded in the exception registry, which is convenient for directly determining whether the ONU is abnormal by using the basic registration information of the ONU in the abnormal registry, thereby improving the efficiency and accuracy of determining the registration state of the ONU.
- step 104 includes steps 1041-1043:
- Step 1041 After the first preset time arrives, re-acquire the application registration request of the ONU and start a second preset time scheduled by the second timer.
- Step 1042 Monitor the number of uplinks and downlinks of the ONU in the second preset time.
- Step 1043 when it is detected that the number of times the uplink and the downlink of the ONU does not reach the threshold number, determine that the registration status of the ONU is a non-exception state, and delete the basic registration information of the ONU in the abnormal registry, and
- the registration information of the ONU is recorded in the registration information table, where the registration information includes: a MAC address of the ONU, a serial number SN of the ONU, a registration flag of the ONU, a type of the ONU, The number of times of the uplink and the downlink of the ONU in the second preset time, the threshold number of times of the uplink and the downlink of the ONU, and/or the identifier allocated by the OLT for uniquely identifying the ONU.
- the identifier that is used by the OLT to uniquely identify the ONU includes, but is not limited to, an LLID (Logical Link Identifier) in the EPON, and an ONU ID in the GPON (Optical Network Unit identification) Any means for uniquely identifying the ONU is within the scope of protection of the embodiments of the present invention.
- the registration information table here can include an exception registry and a normal registry.
- the exception registry can also be used as a separate registry.
- the exception registry includes at least the registration information of the basic registration information of the ONU, and the abnormal registry may further include the registration information of the ONU registration flag being the abnormal registration flag; the normal registry includes at least the ONU.
- the registration information of the basic registration information may further include registration information of the registration flag of the ONU as a normal registration flag.
- the embodiment of the present invention describes the exception registry and the registration information table, which is convenient for determining whether the ONU is abnormal or not, and is also convenient for updating the abnormal registry and the registration information table later.
- the foregoing determining whether the registration state of the ONU is a non-normal state includes: the registration state of the ONU is a steady state, and after the first preset time of the first timer expires, the abnormal ONU has not completed registration.
- the status of the registration is not completed, the status of the second timer may not be started, and the status of the ONU is normally offline.
- the state of the ONU registration state is that the ONU has completed registration and does not have a steady state of frequent online and offline.
- the abnormal registration is performed.
- the basic registration information of the ONU is deleted in the table, and the registration information of the ONU that has become a non-exception state is recorded in the registration information table, so that when the ONU is subsequently determined, the abnormality registry that has been updated can be used to determine whether the ONU is abnormal or not.
- the abnormal ONU is always recorded in the exception registry, and when the abnormal ONU returns to the normal registration state, it cannot be responded to by the request for registration request, which improves the accuracy of the OLT to determine the ONU.
- the method for registering the optical network unit ONU of the embodiment of the present invention further includes the steps of reporting the registration information table and the abnormality registry.
- the reporting includes steps 111-112:
- Step 111 Obtain an exception registry and a registration information table.
- Step 112 Report the registration information in the exception registry and the registration information table to the terminal.
- Step 112 is to report the registration information of the exception registry and the registration information table to the terminal by means of notification or alarm.
- the notification is a message carrying registration information
- the alarm is an audible alarm or a flashing alarm.
- the terminal here can be a terminal operated by the network management system or a third-party operation and maintenance device.
- the historical registration information of the ONU registered in the PON can not only find the address of the abnormal ONU, but also timely handle the fault, and it is also convenient.
- the terminal operator knows and views the registration information of the ONU registered PON in real time.
- the step 1043 of recording the registration information of the ONU in the registration information table includes steps 10431-10432:
- Step 10431 Set the registration flag of the ONU to be a normal registration flag.
- Step 10432 Record the registration information of the ONU according to the normal registration flag.
- the registration information table The registration information table.
- the normal registration flag in this case may be a digital sign, a text mark, or a letter mark. Any form that can realize the sign of the registration mark belongs to the protection scope of the embodiment of the present invention, and is not exemplified herein. It is convenient to identify whether the registration status of the ONU is stable by the existence of the normal registration flag.
- the OLT completes the determination of the registration status of the ONU, and updates the registration flag of the ONU of the ONU in the registration information table, so as to facilitate subsequent determination of the registration status of the ONU.
- step 103 includes steps 1031-1032:
- Step 1031 When the basic registration information of the ONU is not recorded in the abnormal registry, parse the basic registration information of the application registration request of the ONU, and determine whether the registration status flag of the ONU is a normal registration flag. Bit, when it is determined that the registration flag of the ONU is a normal registration flag, a response message for the application for registration of the ONU is generated and sent to the ONU, where the response message carries the OLT assignment A registration frame for uniquely identifying the identity of the ONU.
- Step 1032 Receive a response message for the response message that is fed back by the ONU, and complete the registration process of the ONU, where the response message carries a registration response frame indicating that the entire registration process of the ONU ends.
- the foregoing authorization frame, the registration request frame, the registration frame (the message used by the OLT to respond to the registration request frame of the ONU), and the registration response frame are used for active discovery, and in the normal mode, only the authorization frame and the report frame are included. Interaction.
- the application registration request of the ONU can be correctly and targetedly responded, and the OLT responds to the ONU application registration request. accuracy.
- the method for registering an optical network unit ONU according to an embodiment of the present invention The method further includes: setting a first preset time of the first timer according to the obtained number of the ONUs, wherein a length of the first preset time is proportional to the number of the ONUs.
- the OLT can only respond to the request registration request of the normal ONU in the first preset time, thereby avoiding the problem that the abnormal ONU affects the response of the normal ONU requesting the registration request, and does not affect the normal ONU application registration.
- the requested response also improves the responsiveness of the OLT.
- the first preset time it needs to be explained that the first preset time cannot be set to be infinite, which affects the update of the abnormal registry and affects the accuracy of the OLT response, so the user can according to the number of ONUs and the first pre-
- the time length of the time is coordinated to select a suitable first preset time, and the first preset time may be set with a maximum time threshold, which is not limited herein.
- the number of the application for the registration of the ONU is not the same as the standard for setting the first preset time, and the registration method of the optical network unit ONU in the embodiment of the present invention is in the step. Before 104, the registration method further includes steps 113-114:
- Step 113 Monitor a first number of registrable ONUs in the PON, where a first quantity of the registrable ONUs is a maximum number of registrable ONUs in the PON and an ONU registered in the PON The difference in quantity.
- Step 114 When the first quantity of the registrable ONU is greater than the second quantity of the ONUs that are not recorded in the abnormal registry, the first preset time length of the first timer may be set to a normal response. The length of time of the second multiple of the maximum time when the ONU applies for registration.
- Step 115 When the first quantity of the registrable ONU is less than or equal to the second quantity of the ONUs that are not recorded in the abnormal registry, the first preset time length of the first timer is set as a preset. The maximum time threshold.
- the number of registrable ONUs of the PON is always in a changeable state, it is necessary to monitor the number of registrable ONUs of the PON in real time.
- the number of registrable ONUs of the PON is large, the number of the ONUs is less than the registrable ONUs.
- the time length of the first preset time may be set to a time length that is normally responded to a second multiple of the maximum time when an ONU applies for the registration request; when the number of registrable ONUs of the PON is small, When the number of the ONUs is greater than the registrable ONUs, the time length of the first preset time may be set to a longer time, that is, the first preset time length is set to a preset maximum time threshold, so that the PON may be updated.
- ONU The newly acquired ONU is registered in an idle location to satisfy the registration requirement of the new ONU's application registration request as much as possible.
- the OLT receives the notification message that the registration of the PON is full, and the OLT sends an application registration request to the ONU to stop receiving the ONU, and monitors the first number of registrable ONUs in the PON in real time.
- the first preset time length is set according to the number of registrable ONUs, so that when the PON registration ONU is updated, the current ONU application registration request is timely responded, so that the ONU is implemented.
- Timely registration also enables PON to be updated in real time.
- Step 201 The OLT maintains a registration information table of the PON, where the registration information table includes registration information, where the registration information includes, but is not limited to, a MAC address of the ONU, a serial number SN of the ONU, a registration flag of the ONU, The type of the ONU, the number of times the uplink and the downlink of the ONU are in the second preset time, the threshold number of times of the ONU and the number of offline lines, and the identifier used by the OLT to uniquely identify the ONU And/or monitoring the number of times the ONU is monitored and the number of times the line is down. The number of times of monitoring can be used to determine that the ONU whose registration status is non-existing state is frequently online or offline during the first preset time or has been in an abnormal registration state, and then processes different abnormal ONUs.
- the registration information table includes registration information, where the registration information includes, but is not limited to, a MAC address of the ONU, a serial number SN of the ONU, a registration
- Step 202 After the OLT obtains the ONU application registration request, the OLT parses the basic registration information of the ONU, starts a second timer, and maintains the second timer for a second preset time.
- the ONU application registration request is based on the PON initiating periodic registration window information, and the monitored ONU application registration request.
- Step 203 The OLT configures the threshold number of times for the ONU to go online and the number of offline lines, and determines whether the ONU registration status is a stable registration state according to the relationship between the ONU uplink and the number of offline lines and the threshold number of times.
- the second preset time of the second timer arrives, the number of uplink and downlink of the ONU is less than or equal to the threshold. If the number of times is determined, the ONU registration state is determined to be a stable registration state, and the second timer is reset after the second timer expires, and the OLT obtains the ONU application registration request again and parses the basic registration information of the ONU (for example, EPON).
- the ONU MAC address, the GPON ONU SN number, etc.) restarts the second timer (that is, the ONU registration status is always monitored); when the second preset time of the second timer arrives, the ONU goes online and offline. If the threshold is greater than the threshold, it is determined that the ONU registration state is an unstable registration state, and the second timer is stopped.
- Step 204 The OLT records that the ONU whose registration status is unstable is in the abnormal registry, and starts a first timer for each abnormal ONU and maintains the first preset time, and does not respond within the first preset time.
- the ONU application registration request in the exception registry responds to the ONU application registration request in the abnormal registry, and completes the registration interaction process to implement the registration anti-shake processing.
- Step 205 After the first preset time arrives, the OLT re-monitorates the registration status of the ONU in the abnormal registry, and restarts the second timing when re-receiving the application registration request of the ONU and parsing the basic registration information in the application registration request.
- the device monitors the ONU and the number of offline lines of the ONU, and responds to the ONU registration request when the ONU with the registered state is unstable and the ONU with the registered state is not abnormal.
- Step 206 The OLT reports the ONU registration information table and the abnormality registry carrying the registration information to the network management system or the third-party maintenance device through notification and warning, and finds the ONU location through the ONU historical registration information and the user information. On-site processing.
- the ONU is not dependent on the abnormality, and the ONU frequently goes online or goes offline, and the impact of the ONU on the OLT affects the registration of other normal ONUs, and the abnormal ONU is added to the abnormal registry.
- the abnormal position of the abnormal ONU is located in the first preset time of the first timer, and the registration request request is not responded. After the first preset time, the registration state of the ONU is re-monitored to implement dynamic processing on the abnormal ONU.
- the solution is flexible, and the first timer and the second timer are used for monitoring, which can also save costs.
- the embodiment of the present invention uses the example of the epon registration to describe the OLT initiation registration discovery window (it is also necessary to describe that the gpon registration is similar), and the application examples are as follows.
- EPON Ethernet Passive Optical Network
- MPCP Multi-Point Control Protocol
- the clock synchronization and dynamic measurement of the ONU are performed.
- the MPCP protocol defines five protocol frames for management operations of the PON network: 1) Authorization frame GATE: Sends an authorized time slice to the ONU in the initialization and normal working mode, and the ONU transmits data according to the allocated time slice (only the allocation can be utilized) The time slot transmits data, otherwise, the data cannot be transmitted); 2) the report frame REPORT: the ONU reports the status and request of the ONU to the OLT; 3) the registration request frame REGISTER_REQ: the ONU sends a registration request to the OLT; 4) the registration frame REGISTER: REGISTER_REQ message for the OLT to respond to the ONU; 5) Registration response frame REGISTER_ACK: The ONU sends the OLT to indicate the end of the entire registration process.
- the above authorization frame, registration request frame, registration frame, and registration response frame are used for the automatic discovery mode, and in the normal mode, only the interaction between the authorization frame and the report frame is included.
- Step 301 The OLT starts the automatic discovery mode and allocates a discovery window, and sends an authorization message for discovering the authorization frame GATE to be registered, and the authorization message carries the start time and length of the discovery time slot of the advertised ONU.
- Step 302 The uninitialized ONU responds to the authorization message of the authorization frame GATE, and completes the clock synchronization between the OLT and the ONU. After the ONU local clock reaches the discovery time slot, the ONU sends an application registration request for the registration request frame REGISTER_REQ after the random delay, the request includes the source address of the ONU and the ONU local clock label on behalf of the transmission.
- Step 303 After the OLT analyzes the application registration request for confirming the registration request frame REGISTER_REQ, the OLT sends a response message of the registration frame REGISTER to the ONU being initialized by using the MAC address of the ONU.
- the message includes an LLID (Logical Link Identifier) assigned by the OLT to uniquely identify the ONU.
- LLID Logical Link Identifier
- Step 304 The OLT sends an authorization message that agrees to the registered authorization frame GATE, and then sends the message to the ONU being initialized.
- Step 305 After receiving the response message of the registration frame REGISTER and the authorization message of the authorized registration frame GATE, the ONU sends a response message of the registration response frame REGISTER_ACK in the allocated authorization time slot to inform the OLT that it has successfully parsed the registration frame REGISTER. Response message. Complete the entire automated discovery process.
- the MPCP does not allow ONU transmission by default. That is, the ONU cannot forward any data (and cannot turn on the laser) before obtaining the OLT authorization, and the MPCP detects the newly connected ONU through the automatic discovery mode.
- the embodiment of the present invention can be applied to an ONU or to multiple ONUs to complete registration of the ONU.
- an apparatus for registering an ONU of an optical network unit is applied to an optical line terminal OLT, where the registration apparatus includes: an obtaining module 401, a first judging module 402, a response module 403, and The first processing module 404.
- the obtaining module 401 is configured to obtain an application registration request for the ONU to apply for registration to the passive optical network PON, where the application registration request carries the basic registration information of the ONU.
- the basic registration information here may include: the MAC address of the EPON ONU and the SN (Serial Number) number of the GPON ONU.
- the identification of the ONU can be determined using the basic registration information.
- the first determining module 402 is configured to determine whether the basic registration information in the application registration request is recorded in the abnormal registry.
- the OLT maintains an abnormal registry of the ONU, including but not limited to recording the basic registration information of the ONU.
- the abnormality registry may further include registration information of the ONU registration flag bit being an abnormal registration flag bit, which may facilitate subsequent use of the registration information in the abnormal registry.
- the response module 403 is configured to respond to the application registration request when the basic registration information of the ONU is not recorded in the abnormality registry.
- the first processing module 404 is configured to: when the basic registration information of the ONU is recorded in the abnormal registry, start the first preset time set by the first timer, and not respond to the application registration request, After the first preset time arrives, the registration status of the ONU is re-monitored.
- the first preset time here can be set according to user requirements.
- the abnormal ONU does not operate during the first preset time, so that other normal ONUs can operate, and the permanent registration request of the abnormal ONU is not processed, which affects the abnormal ONU after returning to normal. Registration issue.
- the abnormality of the ONU in the abnormal registry may refer to the number of times the ONU goes online and offline (including: offline) reaches the threshold number, or may refer to an abnormality such as an ONU power failure. .
- the abnormality of the ONU in the abnormal registry is used to accurately determine the abnormality of the ONU and facilitate monitoring.
- the first processing module 404 starts the first timer, which is a timer that is respectively started for each ONU, wherein each first timer can be used with each
- the basic registration information of the ONUs is pre-established.
- the step 104 may be: when the basic registration information of the ONU is recorded in the abnormality registry, in a first preset time set after starting the first timer corresponding to the ONU, Not responding to the application registration request, after the first preset time arrives, re-monitoring the registration status of the ONU. This can avoid the situation where multiple ONUs use the same timer to generate timing mixed food, which improves the accuracy of each ONU execution action.
- the registration state of the ONU is re-monitored after the first preset time is reached, and the registration state of the ONU is not monitored.
- the ONU's application for registration request is normal, so that it can not only affect the response of the normal ONU's application for registration request when the ONU is abnormal, but also does not handle the abnormal ONU within the preset time, reducing the burden on the OLT.
- the abnormal ONU is processed again, so that the processing of the abnormal ONU is not ignored, and the processing of the application registration request for all OLTs is realized, and the performance of the OLT is improved.
- the device provided by the present invention is a device for registering an ONU of an optical network unit, and all embodiments of the method for registering an ONU of the optical network unit are applicable to the device, and all of the same or similar beneficial effects can be achieved. .
- the registration device of the optical network unit ONU of still another embodiment of the present invention further includes: a startup module, a second determination module, and a second processing module.
- Activating a module configured to: after the basic registration information of the ONU is not recorded in the abnormal registry, after the response module responds to the application registration request, start a second timer, and in the second The number of times the uplink and the downlink of the ONU are monitored in the second preset time of the timer.
- the second determining module is configured to determine, when the second preset time arrives, whether the number of the upper and lower lines reaches a threshold number of times.
- the second processing module is configured to determine that the registration status of the ONU is in an unstable state when the number of times of the uplink and the downlink is up to the threshold, and the registration information of the ONU is recorded in the abnormal registry, where
- the registration information includes at least: a MAC address of the ONU, a sequence number SN of the ONU, a registration flag of the ONU, a type of the ONU, and an on-line of the ONU in the second preset time. And the number of times the line is down, and/or the number of times the number of times the line is up and down.
- the registration device of the optical network unit ONU of still another embodiment of the present invention further includes: a transmitting module and a receiving module.
- a sending module configured to send an authorization message to the ONU, where the authorization message carries an authorization frame allocated to a time slice of the ONU for transmitting data.
- the receiving module is configured to receive an application registration request returned by the ONU for the authorization message by using the time slice, where the application registration request carries a registration request frame that the ONU needs to register the PON.
- the OLT first automatically finds whether it is necessary to register the ONU before receiving the application registration request, so as to facilitate subsequent acquisition of the ONU application registration request and clock synchronization.
- the second processing module includes: a setting unit and a recording unit.
- the setting unit is set to set the registration flag of the ONU to an abnormal registration flag.
- the recording unit is configured to record the registration information of the ONU in the abnormality registry according to the abnormal registration flag.
- the first processing module includes: a starting unit, a monitoring unit, and a processing unit.
- the re-monitoring the registration status of the ONU includes:
- the startup unit is configured to re-acquire the application registration request of the ONU and start the second preset time scheduled by the second timer after the first preset time arrives.
- the monitoring unit is configured to monitor the number of uplinks and downlinks of the ONU during the second preset time.
- the processing unit is configured to determine that the registration status of the ONU is not abnormal when the number of times the uplink and the downlink of the ONU are not reached, and delete the basic registration information of the ONU in the abnormal registry. And registering the registration information of the ONU in the registration information table, where the registration information includes: a MAC address of the ONU, a serial number SN of the ONU, a registration flag of the ONU, and an ONU The type, the number of times of the uplink and the downlink of the ONU in the second preset time, the threshold number of times of the uplink and the downlink of the ONU, and/or the identifier allocated by the OLT for uniquely identifying the ONU.
- the processing unit includes: a setting subunit and a recording subunit.
- the processing unit records the registration information of the ONU in the registration information table, including:
- the recording subunit is configured to record the registration information of the ONU in the registration information table according to the normal registration flag.
- the response module includes: a parsing unit and a receiving unit.
- the parsing unit is configured to parse the basic registration information of the application registration request of the ONU when the basic registration information of the ONU is not recorded in the abnormality registry, and determine whether the registration flag of the ONU is a normal registration a flag, when it is determined that the registration flag of the ONU is a normal registration flag, a response message for requesting the registration request of the ONU is generated and sent to the ONU, where the response message carries the OLT
- the assigned registration frame for uniquely identifying the identity of the ONU.
- a receiving unit configured to receive a response message for the response message fed back by the ONU, to complete a registration process of the ONU, where the response message carries a registration response frame indicating that the entire registration process of the ONU ends .
- the registration device of the optical network unit ONU of still another embodiment of the present invention further includes: a monitoring module, a first setting module, and a second setting module.
- a monitoring module configured to monitor a first number of registrable ONUs in the PON before the first processing module re-monitored the registration status of the ONU, where the first number of the registrable ONUs is The difference between the maximum number of ONUs that can be registered in the PON and the number of registered ONUs in the PON.
- a first setting module configured to set at least a first preset time length of the first timer when a first quantity of the registrable ONU is greater than a second quantity of an ONU that is not recorded in the abnormal registry The length of time that is the second most multiple of the maximum time for a DCU to apply for a registration request.
- a second setting module configured to: when the first quantity of the registrable ONU is less than or equal to a second quantity of the ONUs that are not recorded in the abnormal registry, the first preset time length of the first timer Set to the preset maximum time threshold.
- the apparatus further includes: an acquisition submodule and an acquisition submodule.
- the reporting sub-module is configured to report the registration information in the exception registry and the registration information table to the terminal.
- An embodiment of the present invention further provides an optical line terminal OLT, including a registration device of the optical network unit ONU.
- the device for registering the optical network unit ONU of the embodiment of the present invention is applied to the optical line terminal OLT. Therefore, the embodiment of the present invention further provides an optical line terminal OLT, wherein the optical network unit ONU is registered by the apparatus.
- the implementation embodiments are all applicable to the embodiment of the optical line terminal OLT, and the same technical effects can be achieved.
- the entire network of the embodiment of the present invention cooperates as follows.
- the network management server EMS 501 is configured to configure, manage, and maintain the OLT 502 and the EPON network.
- the EMS network management maintains and manages the historical information of the OLT 502 and the ONU 504 and related alarms and notification messages, and completes specific exceptions according to related alarms and notification messages.
- the ONU 504 judges its physical location.
- the optical line terminal OLT 502 is configured to initiate the discovery process of the ONU 504, assign an LLID to the ONU 504, complete the ONU 504 registration and authentication on the OLT 502, and allocate a corresponding uplink time slot for the ONU 504.
- the ONU 504 uploads data in the time slot allocated by the OLT 502 for its configuration. The normal situation of each time slot in the uplink direction is only exclusive to the ONU 504.
- the optical distribution network ODN 503 is configured to connect the ONUs 504 of different numbers under the OLT 502. As a direct physical connection channel between the OLT 502 and the ONU 504, a plurality of physical devices may be combined.
- the optical network unit ONU 504 is configured to assume the role of the terminal device of the home user, accepts the management of the OLT 502, and accepts the identifier of the ONU allocated by the OLT 502 during the registration process (including but not limited to the LLID of the EPON, the ONU ID of the GPON, etc.); The OLT 502 uniformly allocates the data to complete the service in the slot window, and responds to the authorization message sent by the OLT 502 in the process.
- a computer readable storage medium storing computer executable instructions that, when executed by a processor, implement the registration method of the ONU.
- all or part of the steps of the above embodiments may also be implemented using an integrated circuit.
- the steps may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps may be fabricated into a single integrated circuit module.
- the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
- the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
- the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
- the registration status of the ONU is re-monitored, and the registration is not abnormal.
- the request for registration of the ONU in the table responds normally. This not only affects the response of the normal ONU request registration request when the ONU is abnormal, but also does not process the abnormal ONU within the preset time, reducing the burden on the OLT.
- the abnormal ONU is processed again, so that the processing of the abnormal ONU is not ignored, and the processing of the application registration request for all OLTs is realized, and the performance of the OLT is improved.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Small-Scale Networks (AREA)
Abstract
Provided in the present application are a registration method and device for an optical network unit, and optical line terminal. The registration method for an optical network unit (ONU) is applied to an optical line terminal (OLT). The registration method comprises: acquiring a registration application request of an ONU applying to a passive optical network (PON) for registration, wherein the registration application request carries basic registration information of the ONU; determining whether the basic registration information in the registration application request is recorded in an abnormal registration table; if not, then responding to the registration application request; and if so, then not responding, within a first predetermined period after a first timer is started, to the registration application request, and restarting monitoring of a registration state of the ONU after the first predetermined period expires.
Description
本申请涉及但不限于点对多点的通信技术/***,尤其涉及一种光网络单元的注册方法、装置及光线路终端。The present application relates to, but is not limited to, a point-to-multipoint communication technology/system, and in particular, to a method, an apparatus, and an optical line terminal for registering an optical network unit.
在无源光网络的xPON(无源光网络设备(EPON,Ethernet Passive Optical Network)、千兆无源光网络设备(G-PON,Gigabit-capable Passive Optical Network)以及其它工作机制的无源光网络设备,均称为xPON)网络中,常见组网***由EMS(Element Management System,网元管理器)、OLT(Optical Line Terminal,光线路终端)、ODN(Optical Distribution Network,光分配网络)和若干个ONU(Optical Network Unit,光网络单元)组成:OLT作为中心局端设备通过ODN网络连接汇聚多个ONU设备,ONU设备实现用户业务的接入,从而实现数据业务和配置管理等功能。xPON网络作为“点对多点”的拓扑结构:从OLT到ONU的传输方向为下行方向(downstream),下行方向采用广播方式(Broadcast)发送数据,由ONU根据数据标识判断数据是否有效并决定接收或丢弃;从ONU到OLT的传输方向为上行方向(upstream),上行方向采用TDMA(Time Division Multiple Access,时分多址接入方式),ONU必须根据OLT分配的Bwmap(Bandwidth Map,上行带宽时隙)来发送上行突发(Burst)信号。在xPON网络中,在OLT控制下以PON口为单位为每个ONU分配一个唯一的标识作为ONU的链路标识(如EPON***中采用LIID(Logical Link Identifier,逻辑链路标识)作为ONU的唯一标识,如GPON(Gigabit-Capable PON,无源光接入***)***中采用ONUID(ONU Identifier,ONU标识)作为ONU的唯一标识),用于OLT区分管理每个ONU。ONU标识在ONU注册时由OLT统一分配,并在ONU注册成功后由OLT按ONU标识分配不同的上行带宽时隙。Passive optical network (xPON) (passive optical network equipment (EPON), Gigabit-capable Passive Optical Network (G-PON), and other working mechanisms The device is called an xPON network. The common networking system consists of an EMS (Element Management System), an OLT (Optical Line Terminal), an Optical Distribution Network (ODN), and several An ONU (Optical Network Unit) consists of an OLT as a central office device. The ONU network is used to connect multiple ONU devices. The ONU device implements user service access to implement data service and configuration management. The xPON network acts as a "point-to-multipoint" topology: the transmission direction from the OLT to the ONU is the downlink direction (downstream), and the downlink direction uses the broadcast method (Broadcast) to transmit data. The ONU determines whether the data is valid according to the data identifier and determines the reception. Or discarding; the transmission direction from the ONU to the OLT is the upstream direction (upstream), and the uplink direction is TDMA (Time Division Multiple Access). The ONU must allocate the Bwmap (Bandwidth Map) according to the OLT. ) to send an uplink burst (Burst) signal. In the xPON network, each ONU is assigned a unique identifier in the PON port as the link identifier of the ONU (for example, the LIID (Logical Link Identifier) is used as the ONU in the EPON system. The identifier, such as the ONUID (ONU Identifier, ONU identifier) in the GPON (Gigabit-Capable PON) system, is used as the unique identifier of the ONU. The ONU identifier is uniformly allocated by the OLT when the ONU is registered, and after the ONU is successfully registered, the OLT allocates different uplink bandwidth slots according to the ONU identifier.
采用TDMA接入方式的xPON***,周期性启动注册流程,在注册周期中只有未注册的新接入ONU可以响应OLT发出的注册授权帧(包括但不限于EPON***中的MPCP(Multi-Point Control Protocol,多点控制协议)发现
授权帧GATE帧,由OLT为其分配唯一的ONU标识(包括但不限于EPON***中的LLID,GPON***中的ONU ID),通过交互最终由ONU发出注册完成帧(包括但不限于EPON***中ONU发出的MPCP的注册应答帧register ack帧,完成整个注册过程。The xPON system adopts the TDMA access mode to periodically initiate the registration process. Only the unregistered new access ONUs in the registration period can respond to the registration authorization frame sent by the OLT (including but not limited to MPCP (Multi-Point Control) in the EPON system. Protocol, Multipoint Control Protocol) Discovery
Authorization frame GATE frame, which is assigned a unique ONU identifier by the OLT (including but not limited to LLID in EPON system, ONU ID in GPON system), and finally completes registration completion frame by ONU through interaction (including but not limited to EPON system) The registration reply frame of the MPCP sent by the ONU registers the ack frame to complete the registration process.
在上述xPON网络中,OLT周期性检测ONU的注册请求响应并为其分配内部资源。当某些ONU由于某种自身软硬件异常或外部光链路异常导致该ONU注册成功后频繁离线/掉电后重新注册,或ONU注册失败后频繁重新发起注册请求。可能使得OLT内部用于ONU注册的资源耗尽,或使得OLT频繁响应相关ONU的注册请求并进行处理,加重OLT设备的工作负荷,同时造成该PON口下其他ONU的正常注册请求可能无法得到及时处理。In the above xPON network, the OLT periodically detects the registration request response of the ONU and allocates internal resources thereto. When some ONUs are re-registered after being offline/powered down due to some abnormality of their own software and hardware or an abnormal external optical link, or after the ONU registration fails, the registration request is re-initiated frequently. The OLT may exhaust the resources for the ONU registration, or cause the OLT to respond to the registration request of the relevant ONU and process the OLT. The workload of the OLT device is increased, and the normal registration request of other ONUs on the PON port may not be obtained in time. deal with.
综上所述,相关技术的问题是:ONU频繁上线或下线给OLT造成负担,也影响正常的ONU运行。In summary, the problem of the related art is that the ONU frequently puts the line on the line or the lower line to impose a burden on the OLT, and also affects the normal ONU operation.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例的目的在于提供一种光网络单元的注册方法、装置及光线路终端,解决了相关技术的ONU频繁上线或下线给OLT造成负担,也影响正常的ONU运行的问题。An object of the present invention is to provide a method, a device, and an optical line terminal for registering an optical network unit, which solves the problem that the ONU of the related art frequently causes the OLT to be put on or off the line, and also affects the operation of the normal ONU.
一种光网络单元ONU的注册方法,应用于光线路终端OLT,其中,所述注册方法包括:A method for registering an optical network unit ONU is applied to an optical line terminal OLT, wherein the registration method includes:
获取ONU向无源光网络PON申请注册的申请注册请求,其中,所述申请注册请求中携带有所述ONU的基础注册信息。Obtaining an application registration request for the ONU to apply for registration to the passive optical network PON, where the application registration request carries the basic registration information of the ONU.
判断所述申请注册请求中的基础注册信息是否记录在异常注册表内。Determining whether the basic registration information in the application registration request is recorded in the exception registry.
当所述异常注册表内未记录有所述ONU的基础注册信息时,响应所述申请注册请求。When the basic registration information of the ONU is not recorded in the abnormality registry, the application registration request is responded to.
当所述异常注册表内记录有所述ONU的基础注册信息时,在启动第一定时器后设定的第一预设时间内,不响应所述申请注册请求,在所述第一预设时间到达后,重新监控所述ONU的注册状态。
When the basic registration information of the ONU is recorded in the abnormality registry, the first preset time set after starting the first timer does not respond to the application registration request, and the first preset is After the time arrives, the registration status of the ONU is re-monitored.
可选地,所述注册方法还包括:在所述当所述异常注册表内未记录有所述ONU的基础注册信息时,响应所述申请注册请求之后,启动第二定时器,并在所述第二定时器的第二预设时间内监测所述ONU的上线及下线次数。Optionally, the registration method further includes: after the basic registration information of the ONU is not recorded in the abnormal registry, after the request for registration, the second timer is started, and The second preset time of the second timer monitors the number of uplinks and downlinks of the ONU.
在所述第二预设时间到达时,判断所述上线及下线次数是否达到阈值次数。When the second preset time arrives, it is determined whether the number of the upper and lower lines reaches a threshold number of times.
当所述上线及下线次数达到所述阈值次数时,判定所述ONU的注册状态为不稳定状态,将所述ONU的注册信息记录在异常注册表内,其中,所述注册信息包括:所述ONU的媒体访问控制MAC地址、所述ONU的序列号SN、所述ONU的注册标志位、所述ONU的类型、所述第二预设时间内的所述ONU的上线及下线次数和/或所述ONU的上线及下线次数的阈值次数。Determining that the registration status of the ONU is an unstable state, and registering the registration information of the ONU in an abnormality registry, where the registration information includes: The medium access control MAC address of the ONU, the serial number SN of the ONU, the registration flag of the ONU, the type of the ONU, and the number of uplinks and downlinks of the ONU in the second preset time period. / or the threshold number of times of the ONU and the number of offline lines of the ONU.
可选地,所述将所述ONU的注册信息记录在异常注册表内包括:Optionally, the recording the registration information of the ONU in the exception registry includes:
设置所述ONU的注册标志位为异常注册标志位。The registration flag of the ONU is set to an abnormal registration flag.
根据所述异常注册标志位,将所述ONU的注册信息记录在所述异常注册表内。The registration information of the ONU is recorded in the exception registry according to the abnormal registration flag.
可选地,所述在所述第一预设时间到达后,重新监控所述ONU的注册状态包括:Optionally, after the arrival of the first preset time, re-monitoring the registration status of the ONU includes:
在所述第一预设时间到达后,重新获取ONU的申请注册请求并启动第二定时器预定的第二预设时间。After the first preset time arrives, the application registration request of the ONU is re-acquired and the second preset time scheduled by the second timer is started.
在所述第二预设时间内,监测所述ONU的上线及下线次数。During the second preset time, the number of uplinks and downlinks of the ONU is monitored.
在监测到所述ONU的上线及下线次数未达到阈值次数时,判定所述ONU的注册状态为非异常状态,并删除所述异常注册表内的ONU的基础注册信息,且将所述ONU的注册信息记录在注册信息表内,其中,所述注册信息包括:所述ONU的MAC地址、所述ONU的序列号SN、所述ONU的注册标志位、所述ONU的类型、所述第二预设时间内的所述ONU的上线及下线次数、所述ONU的上线及下线次数的阈值次数、和/或所述OLT分配的用于唯一标识ONU的标识。When it is detected that the number of times of the uplink and the downlink of the ONU does not reach the threshold number, the registration state of the ONU is determined to be a non-exception state, and the basic registration information of the ONU in the abnormal registry is deleted, and the ONU is The registration information is recorded in the registration information table, wherein the registration information includes: a MAC address of the ONU, a serial number SN of the ONU, a registration flag of the ONU, a type of the ONU, and the The number of times the uplink and the downlink of the ONU are in the preset time, the threshold number of times of the uplink and the downlink of the ONU, and/or the identifier allocated by the OLT for uniquely identifying the ONU.
可选地,所述将所述ONU的注册信息记录在注册信息表内包括:Optionally, the recording, by the registration information of the ONU, in the registration information table includes:
设置所述ONU的注册标志位为正常注册标志位。
Set the registration flag of the ONU to the normal registration flag.
根据所述正常注册标志位,将所述ONU的注册信息记录在所述注册信息表内。The registration information of the ONU is recorded in the registration information table according to the normal registration flag.
可选地,所述当所述异常注册表内未记录有所述ONU的基础注册信息时,响应所述申请注册请求包括:Optionally, when the basic registration information of the ONU is not recorded in the abnormal registry, responding to the application registration request includes:
当所述异常注册表内未记录有所述ONU的基础注册信息时,解析所述ONU的申请注册请求的基础注册信息,并判断所述ONU的注册标志位是否为正常注册标志位,当判定所述ONU的注册标志位是正常注册标志位时,产生一针对所述ONU的申请注册请求的响应消息并发送至所述ONU,其中,所述响应消息携带有所述OLT分配的用于唯一标识ONU的标识的注册帧。When the basic registration information of the ONU is not recorded in the abnormality registry, the basic registration information of the application registration request of the ONU is parsed, and it is determined whether the registration flag of the ONU is a normal registration flag. When the registration flag of the ONU is a normal registration flag, a response message for requesting the registration request of the ONU is generated and sent to the ONU, where the response message carries the unique identifier allocated by the OLT. A registration frame that identifies the identity of the ONU.
接收由所述ONU反馈的针对所述响应消息的应答消息,完成所述ONU的注册流程,其中,所述应答消息中携带有指示所述ONU整个注册流程结束的注册应答帧。Receiving a response message for the response message that is fed back by the ONU, completing the registration process of the ONU, where the response message carries a registration response frame indicating that the entire registration process of the ONU ends.
可选地,所述注册方法还包括:Optionally, the registration method further includes:
在重新监控所述ONU的注册状态之前,监测所述PON中可注册的ONU的第一数量,其中,所述可注册的ONU的第一数量为所述PON中可注册的ONU的最大数量与所述PON中已注册的ONU的数量之差。Monitoring a first number of registrable ONUs in the PON before re-monitoring the registration status of the ONU, wherein the first number of the registrable ONUs is a maximum number of registrable ONUs in the PON The difference between the number of registered ONUs in the PON.
在所述可注册的ONU的第一数量大于所述异常注册表内未记录的ONU的第二数量时,所述第一定时器的第一预设时间长度设置为正常响应一个ONU申请注册请求时的最长时间的第二数量倍的时间长度。When the first quantity of the registrable ONU is greater than the second quantity of the ONUs that are not recorded in the abnormal registry, the first preset time length of the first timer is set to normally respond to an ONU application registration request. The length of time of the second maximum number of times.
在所述可注册的ONU的第一数量小于或等于所述异常注册表内未记录的ONU的第二数量时,所述第一定时器的第一预设时间长度设置为预设的最大时间阈值。When the first number of the registrable ONUs is less than or equal to the second number of the ONUs that are not recorded in the abnormal registry, the first preset time length of the first timer is set to a preset maximum time. Threshold.
本发明实施例还提供了一种光网络单元ONU的注册装置,应用于光线路终端OLT,其中,所述注册装置包括:获取模块、第一判断模块、响应模块和第一处理模块。The embodiment of the present invention further provides a registration device for an optical network unit ONU, which is applied to an optical line terminal OLT, wherein the registration device includes: an acquisition module, a first determination module, a response module, and a first processing module.
所述获取模块,设置为获取ONU向无源光网络PON申请注册的申请注册请求,其中,所述申请注册请求中携带有所述ONU的基础注册信息。The obtaining module is configured to obtain an application registration request for the ONU to apply for registration to the passive optical network PON, where the application registration request carries the basic registration information of the ONU.
所述第一判断模块,设置为判断所述申请注册请求中的基础注册信息是
否有记录在异常注册表内。The first determining module is configured to determine that the basic registration information in the application registration request is
Nothing is recorded in the exception registry.
所述响应模块,设置为当所述异常注册表内未记录有所述ONU的基础注册信息时,响应所述申请注册请求。The response module is configured to respond to the application registration request when the basic registration information of the ONU is not recorded in the abnormality registry.
所述第一处理模块,设置为当所述异常注册表内记录有所述ONU的基础注册信息时,在启动第一定时器后设定的第一预设时间内,不响应所述申请注册请求,在所述第一预设时间到达后,重新监控所述ONU的注册状态。The first processing module is configured to: when the basic registration information of the ONU is recorded in the abnormal registry, not registering the application for registration within a first preset time set after starting the first timer The request, after the arrival of the first preset time, re-monitor the registration status of the ONU.
可选地,所述的光网络单元ONU的注册装置还包括:启动模块、第二判断模块和第二处理模块。Optionally, the registration device of the optical network unit ONU further includes: a startup module, a second determination module, and a second processing module.
所述启动模块,设置为在所述当所述异常注册表内未记录有所述ONU的基础注册信息时,所述响应模块响应所述申请注册请求之后,启动第二定时器,并在所述第二定时器的第二预设时间内监测所述ONU的上线及下线次数。The startup module is configured to: after the basic registration information of the ONU is not recorded in the abnormal registry, after the response module responds to the application registration request, start a second timer, and The second preset time of the second timer monitors the number of uplinks and downlinks of the ONU.
所述第二判断模块,设置为在所述第二预设时间到达时,判断所述上线及下线次数是否达到阈值次数。The second determining module is configured to determine, when the second preset time arrives, whether the number of the upper and lower lines reaches a threshold number of times.
所述第二处理模块,设置为当所述上线及下线次数达到所述阈值次数时,判定所述ONU的注册状态为不稳定状态,将所述ONU的注册信息记录在异常注册表内,其中,所述注册信息包括:所述ONU的媒体访问控制MAC地址、所述ONU的序列号SN、所述ONU的注册标志位、所述ONU的类型、所述第二预设时间内的所述ONU的上线及下线次数、和/或所述ONU的上线及下线次数的阈值次数。The second processing module is configured to determine that the registration status of the ONU is in an unstable state when the number of times of the uplink and the downlink is up to the threshold, and the registration information of the ONU is recorded in the abnormal registry. The registration information includes: a media access control MAC address of the ONU, a sequence number SN of the ONU, a registration flag of the ONU, a type of the ONU, and a location in the second preset time. The number of times of the upper and lower lines of the ONU, and/or the number of times of the number of the upper and lower lines of the ONU.
可选地,所述第二处理模块包括:设置单元和记录单元。Optionally, the second processing module includes: a setting unit and a recording unit.
所述第二处理模块将所述ONU的注册信息记录在异常注册表内包括:The second processing module records the registration information of the ONU in the abnormal registry, including:
所述设置单元,设置为设置所述ONU的注册标志位为异常注册标志位。The setting unit is configured to set the registration flag of the ONU to be an abnormal registration flag.
所述记录单元,设置为根据所述异常注册标志位,记录所述ONU的注册信息在所述异常注册表内。The recording unit is configured to record, according to the abnormal registration flag, the registration information of the ONU in the abnormal registry.
可选地,所述第一处理模块包括:启动单元、监测单元和处理单元。Optionally, the first processing module includes: a starting unit, a monitoring unit, and a processing unit.
所述第一处理模块在所述第一预设时间到达后,重新监控所述ONU的注册状态包括:
After the first processing module arrives, the re-monitoring the registration status of the ONU includes:
所述启动单元,设置为在所述第一预设时间到达后,重新获取ONU的申请注册请求并启动第二定时器预定的第二预设时间。The activation unit is configured to re-acquire the application registration request of the ONU and start the second preset time scheduled by the second timer after the first preset time arrives.
所述监测单元,设置为在所述第二预设时间内,监测所述ONU的上线及下线次数。The monitoring unit is configured to monitor the number of uplinks and downlinks of the ONU during the second preset time.
所述处理单元,设置为在监测到所述ONU的上线及下线次数未达到阈值次数时,判定所述ONU的注册状态为非异常状态,并删除所述异常注册表内的ONU的基础注册信息,且将所述ONU的注册信息记录在注册信息表内,其中,所述注册信息包括:所述ONU的MAC地址、所述ONU的序列号SN、所述ONU的注册标志位、所述ONU的类型、所述第二预设时间内的所述ONU的上线及下线次数、所述ONU的上线及下线次数的阈值次数、和/或所述OLT分配的用于唯一标识ONU的标识。The processing unit is configured to determine that the registration status of the ONU is a non-exception state when the number of times the uplink and the downlink of the ONU are not reached, and delete the basic registration of the ONU in the abnormal registry. Information, and the registration information of the ONU is recorded in the registration information table, where the registration information includes: a MAC address of the ONU, a serial number SN of the ONU, a registration flag of the ONU, and the The type of the ONU, the number of times the uplink and the downlink of the ONU are in the second preset time, the threshold number of times of the uplink and the downlink of the ONU, and/or the identifier allocated by the OLT for uniquely identifying the ONU Logo.
可选地,所述处理单元,包括:设置子单元和记录子单元。Optionally, the processing unit includes: a setting subunit and a recording subunit.
所述处理单元将所述ONU的注册信息记录在注册信息表内包括:The processing unit records the registration information of the ONU in the registration information table, including:
所述设置子单元,设置为设置所述ONU的注册标志位为正常注册标志位。The setting subunit is configured to set a registration flag of the ONU as a normal registration flag.
所述记录子单元,设置为根据所述正常注册标志位,将所述ONU的注册信息记录在所述注册信息表内。The recording subunit is configured to record registration information of the ONU in the registration information table according to the normal registration flag.
可选地,所述响应模块包括:解析单元和接收单元。Optionally, the response module includes: a parsing unit and a receiving unit.
所述当所述异常注册表内未记录有所述ONU的基础注册信息地址时,响应所述申请注册请求包括:When the basic registration information address of the ONU is not recorded in the abnormal registry, responding to the application registration request includes:
所述解析单元,设置为当所述异常注册表内未记录有所述ONU的基础注册信息时,解析所述ONU的申请注册请求的基础注册信息并判断所述ONU的注册标志位是否为正常注册标志位,当判定所述ONU的注册标志位是正常注册标志位时,产生一针对所述ONU的申请注册请求的响应消息并发送至所述ONU,其中,所述响应消息携带有所述OLT分配的用于唯一标识ONU的标识的注册帧。The parsing unit is configured to parse the basic registration information of the application registration request of the ONU and determine whether the registration flag of the ONU is normal when the basic registration information of the ONU is not recorded in the abnormality registry. a registration flag, when it is determined that the registration flag of the ONU is a normal registration flag, a response message for requesting the registration request of the ONU is generated and sent to the ONU, where the response message carries the A registration frame assigned by the OLT to uniquely identify the identity of the ONU.
所述接收单元,设置为接收由所述ONU反馈的针对所述响应消息的应答消息,完成所述ONU的注册流程,其中,所述应答消息中携带有指示所述
ONU整个注册流程结束的注册应答帧。The receiving unit is configured to receive a response message for the response message that is fed back by the ONU, to complete the registration process of the ONU, where the response message carries the indication
The registration response frame at the end of the ONU registration process.
其中,所述的光网络单元ONU的注册装置还包括:监测模块、第一设置模块和第二设置模块。The registration device of the optical network unit ONU further includes: a monitoring module, a first setting module, and a second setting module.
所述监测模块,设置为在所述第一处理模块重新监控所述ONU的注册状态之前,监测所述PON中可注册的ONU的第一数量,其中,所述可注册的ONU的第一数量为所述PON中可注册的ONU的最大数量与所述PON中已注册的ONU的数量之差。The monitoring module is configured to monitor a first number of registrable ONUs in the PON before the first processing module re-monitored the registration status of the ONU, wherein the first number of the registrable ONUs The difference between the maximum number of ONUs that can be registered in the PON and the number of registered ONUs in the PON.
所述第一设置模块,设置为在所述可注册的ONU的第一数量大于所述异常注册表内未记录的ONU的第二数量时,所述第一定时器的第一预设时间长度设置为正常响应一个ONU申请注册请求时的最长时间的第二数量倍的时间长度。The first setting module is configured to: when the first quantity of the registrable ONU is greater than the second quantity of the ONUs that are not recorded in the abnormal registry, the first preset time length of the first timer Set to the second time multiple of the maximum time when an ONU applies for a registration request.
所述第二设置模块,设置为在所述可注册的ONU的第一数量小于或等于所述异常注册表内未记录的ONU的第二数量时,所述第一定时器的第一预设时间长度设置为预设的最大时间阈值。The second setting module is configured to: when the first quantity of the registrable ONU is less than or equal to a second quantity of the ONUs that are not recorded in the abnormal registry, the first preset of the first timer The length of time is set to the preset maximum time threshold.
一种光线路终端OLT,包括如上述光网络单元ONU的注册装置。An optical line terminal OLT comprising a registration device such as the optical network unit ONU described above.
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现所述的ONU的注册方法。A computer readable storage medium storing computer executable instructions that, when executed by a processor, implement the registration method of the ONU.
本发明实施例的上述技术方案的有益效果如下:The beneficial effects of the above technical solutions of the embodiments of the present invention are as follows:
本发明实施例的方案中,通过在第一预设时间内不处理处于异常注册表内的ONU的申请注册请求,在第一预设时间到达后,重新监控ONU的注册状态,对于不在异常注册表内的ONU的申请注册请求,正常响应,这样不仅能够在ONU发生异常时,不影响正常ONU的申请注册请求的响应,而且在预设时间内不处理异常ONU,减轻了OLT的负担,并在第一预设时间到达后,再处理异常ONU,这样也不会忽略对异常ONU的处理,实现对所有OLT的申请注册请求的处理,提高了OLT的性能。In the solution of the embodiment of the present invention, by not processing the application registration request of the ONU in the abnormal registry within the first preset time, after the first preset time is reached, the registration status of the ONU is re-monitored, and the registration is not abnormal. The request for registration of the ONU in the table responds normally. This not only affects the response of the normal ONU request registration request when the ONU is abnormal, but also does not process the abnormal ONU within the preset time, reducing the burden on the OLT. After the first preset time arrives, the abnormal ONU is processed again, so that the processing of the abnormal ONU is not ignored, and the processing of the application registration request for all OLTs is realized, and the performance of the OLT is improved.
附图概述BRIEF abstract
图1为本发明第一实施例的光网络单元ONU的注册方法的基本流程示意图;
1 is a schematic flowchart of a method for registering an ONU of an optical network unit according to a first embodiment of the present invention;
图2为本发明第二实施例的光网络单元ONU的注册方法的整体流程示意图;2 is a schematic overall flow chart of a method for registering an ONU of an optical network unit according to a second embodiment of the present invention;
图3为本发明第三实施例的OLT发起注册发现窗口的流程示意图;3 is a schematic flowchart of an OLT initiating a registration discovery window according to a third embodiment of the present invention;
图4为本发明第四实施例的光网络单元ONU的注册装置的结构示意图;4 is a schematic structural diagram of an apparatus for registering an ONU of an optical network unit according to a fourth embodiment of the present invention;
图5为本发明第五实施例的PON网络拓扑示意图。FIG. 5 is a schematic diagram of a topology of a PON network according to a fifth embodiment of the present invention.
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
第一实施例First embodiment
如图1所示,本发明实施例的光网络单元ONU的注册方法,应用于光线路终端OLT,其中,包括步骤101-104:As shown in FIG. 1 , a method for registering an optical network unit ONU according to an embodiment of the present invention is applied to an optical line terminal OLT, where steps 101-104 are included:
步骤101,获取ONU向无源光网络PON申请注册的申请注册请求,其中,所述申请注册请求中携带有所述ONU的基础注册信息。Step 101: Acquire an application registration request for the ONU to apply for registration to the passive optical network PON, where the application registration request carries basic registration information of the ONU.
本步骤101中,OLT可以发起注册发现窗口,获取监听并解析ONU上报的申请注册请求中的基础注册信息。In this step 101, the OLT may initiate a registration discovery window, and obtain the basic registration information in the application registration request reported by the ONU.
这里的基础注册信息可以包括:EPON ONU的MAC地址、GPON ONU的SN(Serial Number,序列号)号。利用基础注册信息可以确定识别ONU。The basic registration information here may include: the MAC address of the EPON ONU and the SN (Serial Number) number of the GPON ONU. The identification of the ONU can be determined using the basic registration information.
步骤102,判断所述申请注册请求中的基础注册信息是否记录在异常注册表内。Step 102: Determine whether the basic registration information in the application registration request is recorded in the abnormal registry.
需要说明的是:OLT维护一个ONU的异常注册表,包括但不限于记录ONU的基础注册信息。所述异常注册表内还可以包括ONU的注册标志位为异常注册标志位的注册信息,这样可以方便后续使用异常注册表内的注册信息。It should be noted that the OLT maintains an abnormal registry of the ONU, including but not limited to recording the basic registration information of the ONU. The abnormality registry may further include registration information of the ONU registration flag bit being an abnormal registration flag bit, which may facilitate subsequent use of the registration information in the abnormal registry.
步骤103,当所述异常注册表内未记录有所述ONU的基础注册信息时,响应所述申请注册请求。Step 103: When the basic registration information of the ONU is not recorded in the abnormal registry, respond to the application registration request.
步骤104,当所述异常注册表内记录有所述ONU的基础注册信息时,在启动第一定时器后设定的第一预设时间内,不响应所述申请注册请求,在所
述第一预设时间到达后,重新监控所述ONU的注册状态。Step 104: When the basic registration information of the ONU is recorded in the abnormal registry, the first preset time set after starting the first timer does not respond to the application registration request,
After the first preset time arrives, the registration status of the ONU is re-monitored.
这里的第一预设时间可以根据用户需求进行设定。通过在第一预设时间内异常的ONU不进行操作,使得其他正常的ONU可以进行操作,也避免出现了永久的不处理异常ONU的申请注册请求,影响异常ONU恢复正常后的注册的问题。The first preset time here can be set according to user requirements. The ONU that is abnormal during the first preset time does not operate, so that other normal ONUs can operate, and the application for registration of the abnormal ONU that does not handle the abnormal ONU is avoided, which affects the registration of the abnormal ONU after returning to normal.
还需要说明的是,上述异常注册表内的ONU的异常可以是指ONU上线及下线(包括:离线)次数达到阈值次数,也可以是指ONU断电等异常,在此不一一例举。此处说明异常注册表内的ONU的异常是为了准确判定ONU的异常,方便监控。It should be noted that the abnormality of the ONU in the abnormal registry may refer to the number of times the ONU goes online and offline (including: offline) reaches the threshold number, or may refer to an abnormality such as an ONU power failure. . Here, the abnormality of the ONU in the abnormal registry is used to accurately determine the abnormality of the ONU and facilitate monitoring.
在步骤104中,如果步骤101中获取了多个ONU的申请注册请求,这里的启动第一定时器是指针对每个ONU分别启动的定时器,其中,每个第一定时器可以与每个ONU的基础注册信息预先建立对应关系。可选地,步骤104可以为,当所述异常注册表内记录有所述ONU的基础注册信息时,启动与所述ONU对应的第一定时器,在设定的第一预设时间内,不响应所述申请注册请求,在所述第一预设时间到达后,重新监控所述ONU的注册状态。这样可以避免出现多个ONU使用同一定时器,产生定时混肴的情况,提高了每个ONU执行动作的准确性。In step 104, if the application registration request of multiple ONUs is obtained in step 101, the first timer started here is a timer that is respectively started for each ONU, wherein each first timer can be associated with each The basic registration information of the ONU is pre-established. Optionally, the step 104 may be: when the basic registration information of the ONU is recorded in the abnormality registry, start a first timer corresponding to the ONU, within a first preset time set, Not responding to the application registration request, after the first preset time arrives, re-monitoring the registration status of the ONU. This can avoid the situation where multiple ONUs use the same timer to generate timing mixed food, which improves the accuracy of each ONU execution action.
本发明实施例中,通过在第一预设时间内不处理处于异常注册表内的ONU的申请注册请求,在第一预设时间到达后,重新监控ONU的注册状态,对于不在异常注册表内的ONU的申请注册请求,正常响应,这样不仅能够在ONU发生异常时,不影响正常ONU的申请注册请求的响应,而且在预设时间内不处理异常ONU,减轻了OLT的负担,并在第一预设时间到达后,再处理异常ONU,这样也不会忽略对异常ONU的处理,实现对所有OLT的申请注册请求的处理,提高了OLT的性能。In the embodiment of the present invention, after the application registration request of the ONU in the abnormal registry is not processed within the first preset time, the registration state of the ONU is re-monitored after the first preset time is reached, and the registration state of the ONU is not monitored. The ONU's application for registration request is normal, so that it can not only affect the response of the normal ONU's application for registration request when the ONU is abnormal, but also does not handle the abnormal ONU within the preset time, reducing the burden on the OLT. After a preset time arrives, the abnormal ONU is processed again, so that the processing of the abnormal ONU is not ignored, and the processing of the application registration request for all OLTs is realized, and the performance of the OLT is improved.
本发明实施例以应用于EPON的实例进行说明,在步骤101之前本发明实施例的光网络单元ONU的注册方法还包括:授权帧及报告帧的交互的步骤,该交互步骤包括步骤106-107:The embodiment of the present invention is described in the example of the application of the EPON. Before the step 101, the method for registering the optical network unit ONU of the embodiment of the present invention further includes the steps of: interacting with the authorization frame and the report frame, the interaction step includes steps 106-107. :
步骤106,发送一授权消息至所述ONU,其中,所述授权消息携带有分配给所述ONU用于传送数据的时间片的授权帧。
Step 106: Send an authorization message to the ONU, where the authorization message carries an authorization frame allocated to a time slice of the ONU for transmitting data.
这里的步骤106中,在初始化与普通工作模式中,通过OLT发送携带有授权时间片的授权帧的授权消息给ONU,由ONU根据OLT所分配的时间片传送数据,并且由ONU向OLT报告携带有ONU的状态以及请求的报告帧的报告消息。其中,OLT发送授权消息是为需要进行注册ONU分配一个授权时间片,来满足后续ONU的传送数据的需求。ONU发送报告消息是为了告知OLT自身是否需要进行注册以及自身的注册状态,从而实现OLT与ONU之间消息的互通。In the step 106, in the initialization and the normal working mode, the OLT sends an authorization message carrying the authorization frame of the authorized time slice to the ONU, and the ONU transmits the data according to the time slice allocated by the OLT, and the ONU reports to the OLT to carry the data. A report message with the status of the ONU and the requested report frame. The OLT sends an authorization message to allocate an authorized time slice for the ONU to meet the requirement of transmitting data of the subsequent ONU. The ONU sends a report message to inform the OLT whether it needs to register and its own registration status, so as to realize the interworking of messages between the OLT and the ONU.
步骤107,接收由所述ONU通过所述时间片针对所述授权消息返回的申请注册请求,其中,所述申请注册请求携带有所述ONU所需注册所述PON的注册请求帧。Step 107: Receive an application registration request returned by the ONU by using the time slice for the authorization message, where the application registration request carries a registration request frame that the ONU needs to register the PON.
本发明实施例中,通过在接收ONU申请注册请求之前,OLT先自动发现是否需要注册ONU,这样方便后续获取ONU的申请注册请求以及时钟同步。In the embodiment of the present invention, the OLT first automatically finds whether the ONU needs to be registered before receiving the registration request from the ONU. This facilitates subsequent acquisition of the ONU application registration request and clock synchronization.
可选地,本发明实施例的光网络单元ONU的注册方法还包括步骤108-110:在步骤103之后,即,在所述当所述异常注册表内未记录有所述ONU的基础注册信息时,响应所述申请注册请求之后包括:Optionally, the method for registering the optical network unit ONU of the embodiment of the present invention further includes the steps 108-110: after the step 103, that is, the basic registration information of the ONU is not recorded in the abnormal registry. In response to the request to register, the request includes:
步骤108,启动第二定时器,并在所述第二定时器的第二预设时间内监测所述ONU的上线及下线次数。Step 108: Start a second timer, and monitor the number of online and offline lines of the ONU in a second preset time of the second timer.
这里的第二预设时间可以根据用户需求进行设定。为了确定在一个时间范围内,监测ONU的上线及下线次数,也避免出现了长时间监控使得资源消耗资源,也可以对偶发的ONU频繁上线及下线进行监控。The second preset time here can be set according to user requirements. In order to determine the number of uplink and downlink lines of the ONU in a time range, it is also avoided that long-term monitoring makes resources consume resources, and the ONUs of the occasional ONUs can be frequently monitored and offline.
这里的ONU的上线及下线次数是指ONU发起申请注册请求次数,包括但不限于:OLT监测到ONU的申请注册请求但实际注册失败的次数,OLT监控到ONU的申请注册请求且注册成功再次离线或掉电的状态变化次数。The ONU's online and offline times refers to the number of times the ONU initiates the application for registration, including but not limited to: the number of times the OLT detects the application for registration of the ONU but the actual registration fails. The OLT monitors the ONU's application for registration and the registration is successful again. The number of status changes for offline or power down.
还需要说明的是:在步骤108中,如果步骤101中获取了多个ONU的申请注册请求,这里的启动第二定时器是指针对每个ONU分别启动的定时器,其中,每个第二定时器可以与每个ONU的基础注册信息预先建立对应关系。可选地,步骤108可以为,启动与所述ONU对应的第二定时器,并在所述第
二定时器的第二预设时间内监测所述ONU的上线及下线次数。这样可以避免出现多个ONU使用同一定时器,产生定时混肴的情况,提高了每个ONU执行动作的准确性。It should be noted that, in step 108, if the application registration request of multiple ONUs is obtained in step 101, the start second timer here is a timer that is respectively started for each ONU, wherein each second The timer can be pre-established with the basic registration information of each ONU. Optionally, step 108 may be: starting a second timer corresponding to the ONU, and in the foregoing
The second preset time of the second timer monitors the number of uplinks and downlinks of the ONU. This can avoid the situation where multiple ONUs use the same timer to generate timing mixed food, which improves the accuracy of each ONU execution action.
步骤109,在所述第二预设时间到达时,判断所述上线及下线次数是否达到阈值次数。Step 109: When the second preset time arrives, determine whether the number of the upper and lower lines reaches a threshold number of times.
这里的阈值次数可以根据用户需求进行设定,也可以根据工业需求进行设定,在此不做限定。这里利用该阈值次数判断ONU的注册状态是否稳定。The threshold number here can be set according to user requirements, or can be set according to industrial requirements, and is not limited herein. Here, the threshold number is used to determine whether the registration state of the ONU is stable.
步骤110,当所述上线及下线次数达到所述阈值次数时,判定所述ONU的注册状态为不稳定状态,将所述ONU的注册信息记录在异常注册表内,其中,所述注册信息包括:所述ONU的MAC地址、所述ONU的序列号SN、所述ONU的注册标志位、所述ONU的类型、所述第二预设时间内的所述ONU的上线及下线次数、和/或所述ONU的上线及下线次数的阈值次数。Step 110: When the number of times of the uplink and the downlink is up to the threshold number, determine that the registration status of the ONU is an unstable state, and record the registration information of the ONU in an abnormal registry, where the registration information is The MAC address of the ONU, the serial number SN of the ONU, the registration flag of the ONU, the type of the ONU, the number of uplinks and downlinks of the ONU in the second preset time, And/or the threshold number of times of the upper and lower lines of the ONU.
本发明实施例中,通过监测上线及下线次数,来判定ONU的注册状态是否稳定,进而准确地得出ONU的注册状态并进行记录,为后续响应ONU的申请注册请求做好基础。In the embodiment of the present invention, it is determined whether the registration status of the ONU is stable by monitoring the number of online and offline lines, thereby accurately obtaining the registration status of the ONU and recording, and preparing a basis for the subsequent application for registration of the ONU.
本发明实施例的光网络单元ONU的注册方法中,步骤110中将所述ONU的注册信息记录在异常注册表内包括步骤1101-1102:In the method for registering the optical network unit ONU in the embodiment of the present invention, the step 110 records the registration information of the ONU in the abnormal registry, including steps 1101-1102:
步骤1101,设置所述ONU的注册标志位为异常注册标志位。In step 1101, the registration flag of the ONU is set to an abnormal registration flag.
这里的异常注册标志位可以是数字标志,也可以是文字标志,也可以是字母标志,任何可以实现标识注册标志位的形式,均属于本发明实施例的保护范围,在此不一一举例。通过异常注册标志位的存在,方便识别ONU的注册状态是否稳定。The abnormal registration flag in this case may be a digital sign, a text mark, or a letter mark. Any form that can realize the sign of the registration mark belongs to the protection scope of the embodiment of the present invention, and is not exemplified herein. It is convenient to identify whether the registration status of the ONU is stable by the existence of the abnormal registration flag.
步骤1102,根据所述异常注册标志位,将所述ONU的注册信息记录在所述异常注册表内。Step 1102: Record registration information of the ONU in the abnormal registry according to the abnormal registration flag.
这里步骤1102还可以为:根据所述异常注册标志位,将所述ONU的注册信息记录在所述异常注册表内,并将第二定时器的第二预设时间到达时,监测的ONU上线及下线次数清零,以方便后期再对ONU重新监测上线及下线次数。
The step 1102 may be: recording, according to the abnormal registration flag, the registration information of the ONU in the abnormal registry, and when the second preset time of the second timer arrives, the monitored ONU is online. And the number of offline lines is cleared to facilitate the re-monitoring of the ONU and the number of offline lines in the later period.
本发明实施例中,OLT完成ONU的注册状态的判定,并更新ONU在注册信息表中的ONU的注册标志位,通过异常注册标志位来标识出现异常的ONU,方便判断ONU的注册状态的稳定性,同时将异常的ONU记录在异常注册表内,有利于直接利用异常注册表内ONU的基础注册信息判定ONU是否异常,提高了判定ONU的注册状态的效率及准确性。In the embodiment of the present invention, the OLT completes the determination of the registration state of the ONU, and updates the registration flag of the ONU of the ONU in the registration information table, and identifies the abnormal ONU by using the abnormal registration flag bit, thereby conveniently determining the stability of the ONU registration state. At the same time, the abnormal ONU is recorded in the exception registry, which is convenient for directly determining whether the ONU is abnormal by using the basic registration information of the ONU in the abnormal registry, thereby improving the efficiency and accuracy of determining the registration state of the ONU.
本发明实施例的光网络单元ONU的注册方法中,步骤104包括步骤1041-1043:In the method for registering an optical network unit ONU in the embodiment of the present invention, step 104 includes steps 1041-1043:
步骤1041,在所述第一预设时间到达后,重新获取到ONU的申请注册请求并启动第二定时器预定的第二预设时间。Step 1041: After the first preset time arrives, re-acquire the application registration request of the ONU and start a second preset time scheduled by the second timer.
步骤1042,在所述第二预设时间内,监测所述ONU的上线及下线次数。Step 1042: Monitor the number of uplinks and downlinks of the ONU in the second preset time.
步骤1043,在监测到所述ONU的上线及下线次数未达到阈值次数时,判定所述ONU的注册状态为非异常状态,并删除所述异常注册表内的ONU的基础注册信息,且将所述ONU的注册信息记录在注册信息表内,其中,所述注册信息包括:所述ONU的MAC地址、所述ONU的序列号SN、所述ONU的注册标志位、所述ONU的类型、所述第二预设时间内的所述ONU的上线及下线次数、所述ONU的上线及下线次数的阈值次数和/或所述OLT分配的用于唯一标识ONU的标识。Step 1043, when it is detected that the number of times the uplink and the downlink of the ONU does not reach the threshold number, determine that the registration status of the ONU is a non-exception state, and delete the basic registration information of the ONU in the abnormal registry, and The registration information of the ONU is recorded in the registration information table, where the registration information includes: a MAC address of the ONU, a serial number SN of the ONU, a registration flag of the ONU, a type of the ONU, The number of times of the uplink and the downlink of the ONU in the second preset time, the threshold number of times of the uplink and the downlink of the ONU, and/or the identifier allocated by the OLT for uniquely identifying the ONU.
其中,所述OLT分配的用于唯一标识ONU的标识包括但不限于:EPON中为LLID(Logical Link Identifier,逻辑链路标记),GPON中为ONU ID(Optical Network Unit identification光网络单元身份标识号码),任何能够实现唯一标识ONU的方式,均属于本发明实施例的保护范围。The identifier that is used by the OLT to uniquely identify the ONU includes, but is not limited to, an LLID (Logical Link Identifier) in the EPON, and an ONU ID in the GPON (Optical Network Unit identification) Any means for uniquely identifying the ONU is within the scope of protection of the embodiments of the present invention.
这里的注册信息表可以是包括异常注册表及正常注册表。异常注册表也可以单独作为一个注册表使用。其中,所述异常注册表内至少包括ONU的基础注册信息的注册信息,所述异常注册表内还可以包括ONU的注册标志位为异常注册标志位的注册信息;正常注册表中至少包括ONU的基础注册信息的注册信息,所述正常注册表中还可以包括ONU的注册标志位为正常注册标志位的注册信息。本发明实施例说明异常注册表和注册信息表,是为了在判定ONU是否异常时,方便判定,也方便后期对异常注册表和注册信息表的更新。
The registration information table here can include an exception registry and a normal registry. The exception registry can also be used as a separate registry. The exception registry includes at least the registration information of the basic registration information of the ONU, and the abnormal registry may further include the registration information of the ONU registration flag being the abnormal registration flag; the normal registry includes at least the ONU. The registration information of the basic registration information may further include registration information of the registration flag of the ONU as a normal registration flag. The embodiment of the present invention describes the exception registry and the registration information table, which is convenient for determining whether the ONU is abnormal or not, and is also convenient for updating the abnormal registry and the registration information table later.
还需要说明的是:上述判断ONU的注册状态是否为非异常状态包括:ONU的注册状态为稳定状态、在第一定时器的第一预设时间超时后,该异常ONU还没有完成注册(该没有完成注册是指可能也没有开始注册,也没有启动第二定时器)的状态和/或ONU正常离线的状态。其中,ONU的注册状态稳定状态为是指ONU已经完成注册且没有频繁上线及下线的稳定状态。It should be noted that the foregoing determining whether the registration state of the ONU is a non-normal state includes: the registration state of the ONU is a steady state, and after the first preset time of the first timer expires, the abnormal ONU has not completed registration. The status of the registration is not completed, the status of the second timer may not be started, and the status of the ONU is normally offline. The state of the ONU registration state is that the ONU has completed registration and does not have a steady state of frequent online and offline.
本发明实施例中,通过在第一定时器的第一预设时间内不响应异常注册表内的ONU,在第一预设时间达到之后,判断ONU的注册状态为非异常状态,从异常注册表内删除该ONU的基础注册信息,并记录变为非异常状态的ONU的注册信息在注册信息表中,这样在后续判断ONU时,可以通过已经更新的异常注册表判断ONU是否异常,避免出现一直将异常的ONU记录在异常注册表内,而在异常ONU恢复正常的注册状态时,也无法被响应申请注册请求的问题,提高了OLT判定ONU的准确性。In the embodiment of the present invention, by not responding to the ONU in the abnormal registry within the first preset time of the first timer, after the first preset time is reached, it is determined that the registration state of the ONU is a non-exception state, and the abnormal registration is performed. The basic registration information of the ONU is deleted in the table, and the registration information of the ONU that has become a non-exception state is recorded in the registration information table, so that when the ONU is subsequently determined, the abnormality registry that has been updated can be used to determine whether the ONU is abnormal or not. The abnormal ONU is always recorded in the exception registry, and when the abnormal ONU returns to the normal registration state, it cannot be responded to by the request for registration request, which improves the accuracy of the OLT to determine the ONU.
需要说明的是:步骤1042之后,本发明实施例的光网络单元ONU的注册方法还包括:上报注册信息表及异常注册表的步骤。该上报包括步骤111-112:It should be noted that, after the step 1042, the method for registering the optical network unit ONU of the embodiment of the present invention further includes the steps of reporting the registration information table and the abnormality registry. The reporting includes steps 111-112:
步骤111,获取异常注册表及注册信息表。Step 111: Obtain an exception registry and a registration information table.
步骤112,将所述异常注册表及注册信息表中的注册信息,上报至终端。Step 112: Report the registration information in the exception registry and the registration information table to the terminal.
这里步骤112为将所述异常注册表及注册信息表的注册信息,通过通知或警报的方式上报至终端。其中,所述通知为携带有注册信息的消息,所述警报为声音报警或闪烁报警。Step 112 is to report the registration information of the exception registry and the registration information table to the terminal by means of notification or alarm. The notification is a message carrying registration information, and the alarm is an audible alarm or a flashing alarm.
这里的终端可以是指网管操作的终端,也可以是第三方运维设备,通过在PON注册下的ONU的历史注册信息,不仅可以找到出现异常的ONU的地址,及时进行故障处理,而且也方便终端操作者实时了解及查看注册PON的ONU的注册信息。The terminal here can be a terminal operated by the network management system or a third-party operation and maintenance device. The historical registration information of the ONU registered in the PON can not only find the address of the abnormal ONU, but also timely handle the fault, and it is also convenient. The terminal operator knows and views the registration information of the ONU registered PON in real time.
本发明实施例的光网络单元ONU的注册方法中,所述步骤1043中将所述ONU的注册信息记录在注册信息表内包括步骤10431-10432:In the method for registering the optical network unit ONU in the embodiment of the present invention, the step 1043 of recording the registration information of the ONU in the registration information table includes steps 10431-10432:
步骤10431,设置所述ONU的注册标志位为正常注册标志位。Step 10431: Set the registration flag of the ONU to be a normal registration flag.
步骤10432,根据所述正常注册标志位,将所述ONU的注册信息记录在
所述注册信息表内。Step 10432: Record the registration information of the ONU according to the normal registration flag.
The registration information table.
这里的正常注册标志位可以是数字标志,也可以是文字标志,也可以是字母标志,任何可以实现标识注册标志位的形式,均属于本发明实施例的保护范围,在此不一一举例。通过正常注册标志位的存在,方便识别ONU的注册状态是否稳定。The normal registration flag in this case may be a digital sign, a text mark, or a letter mark. Any form that can realize the sign of the registration mark belongs to the protection scope of the embodiment of the present invention, and is not exemplified herein. It is convenient to identify whether the registration status of the ONU is stable by the existence of the normal registration flag.
本发明实施例中,OLT完成ONU的注册状态的判定,并更新ONU在注册信息表中的ONU的注册标志位,方便后续对ONU的注册状态的判定。In the embodiment of the present invention, the OLT completes the determination of the registration status of the ONU, and updates the registration flag of the ONU of the ONU in the registration information table, so as to facilitate subsequent determination of the registration status of the ONU.
可选地,本发明实施例以应用于EPON的实例进行说明,本发明实施例的光网络单元ONU的注册方法中,步骤103包括步骤1031-1032:Optionally, the embodiment of the present invention is applied to an example of the application of the EPON. In the method for registering the optical network unit ONU in the embodiment of the present invention, step 103 includes steps 1031-1032:
步骤1031,当所述异常注册表内未记录有所述ONU的基础注册信息时,解析所述ONU的申请注册请求的基础注册信息,并判断所述ONU的注册状态标志位是否为正常注册标志位,当判定所述ONU的注册标志位是正常注册标志位时,产生一针对所述ONU的申请注册请求的响应消息并发送至所述ONU,其中,所述响应消息携带有所述OLT分配的用于唯一标识ONU的标识的注册帧。Step 1031: When the basic registration information of the ONU is not recorded in the abnormal registry, parse the basic registration information of the application registration request of the ONU, and determine whether the registration status flag of the ONU is a normal registration flag. Bit, when it is determined that the registration flag of the ONU is a normal registration flag, a response message for the application for registration of the ONU is generated and sent to the ONU, where the response message carries the OLT assignment A registration frame for uniquely identifying the identity of the ONU.
步骤1032,接收由所述ONU反馈的针对所述响应消息的应答消息,完成所述ONU的注册流程,其中,所述应答消息中携带有指示所述ONU整个注册流程结束的注册应答帧。Step 1032: Receive a response message for the response message that is fed back by the ONU, and complete the registration process of the ONU, where the response message carries a registration response frame indicating that the entire registration process of the ONU ends.
需要说明的是:上述授权帧、注册请求帧、注册帧(用于OLT响应ONU的注册请求帧的消息)及注册应答帧,用于主动发现,而普通模式时,只包括授权帧及报告帧的交互。It should be noted that: the foregoing authorization frame, the registration request frame, the registration frame (the message used by the OLT to respond to the registration request frame of the ONU), and the registration response frame are used for active discovery, and in the normal mode, only the authorization frame and the report frame are included. Interaction.
本发明实施例中,通过解析ONU的基础注册信息及ONU的注册标志位为正常注册标志位,可以正确且具有针对性的响应该ONU的申请注册请求,提高了OLT响应ONU的申请注册请求的准确性。In the embodiment of the present invention, by analyzing the basic registration information of the ONU and the registration flag of the ONU as the normal registration flag, the application registration request of the ONU can be correctly and targetedly responded, and the OLT responds to the ONU application registration request. accuracy.
还需要说明的是:为了保证在第一定时器的第一预设时间内,除了将异常的ONU不响应申请注册请求,还需要响应正常的ONU的申请注册请求。如果此时获取到的ONU的申请注册请求较大,则会将第一定时器的第一预设时间设置较长的时间。可选地,本发明实施例的光网络单元ONU的注册方法
还包括:根据获取到的所述ONU的数量,设置所述第一定时器的第一预设时间,其中,所述第一预设时间的时间长度与所述ONU的数量成正比。这样可以通过在第一预设时间内,OLT只响应正常的ONU的申请注册请求,避免出现了异常的ONU影响正常的ONU的申请注册请求的响应的问题,不仅不影响正常的ONU的申请注册请求的响应,也提高了OLT的响应效率。但关于第一预设时间还需要说明,第一预设时间不能设置的无限大,这样会影响异常注册表的更新,也影响OLT响应的准确性,因此用户可以根据ONU的数量及第一预设时间的时间长度协调平衡选择适合的第一预设时间,所述第一预设时间可以设置有一个最大时间阈值,在此不做限定。It should also be noted that in order to ensure that the abnormal ONU does not respond to the application registration request in the first preset time of the first timer, it also needs to respond to the normal ONU application registration request. If the request for registration of the ONU obtained at this time is large, the first preset time of the first timer is set to a longer time. Optionally, the method for registering an optical network unit ONU according to an embodiment of the present invention
The method further includes: setting a first preset time of the first timer according to the obtained number of the ONUs, wherein a length of the first preset time is proportional to the number of the ONUs. In this way, the OLT can only respond to the request registration request of the normal ONU in the first preset time, thereby avoiding the problem that the abnormal ONU affects the response of the normal ONU requesting the registration request, and does not affect the normal ONU application registration. The requested response also improves the responsiveness of the OLT. However, regarding the first preset time, it needs to be explained that the first preset time cannot be set to be infinite, which affects the update of the abnormal registry and affects the accuracy of the OLT response, so the user can according to the number of ONUs and the first pre- The time length of the time is coordinated to select a suitable first preset time, and the first preset time may be set with a maximum time threshold, which is not limited herein.
上述ONU的申请注册请求的数量不能作为单一设定第一预设时间的标准,而且由于PON的注册资源有限,不能无限制注册ONU,本发明实施例的光网络单元ONU的注册方法,在步骤104之前,所述注册方法还包括步骤113-114:The number of the application for the registration of the ONU is not the same as the standard for setting the first preset time, and the registration method of the optical network unit ONU in the embodiment of the present invention is in the step. Before 104, the registration method further includes steps 113-114:
步骤113,监测所述PON中可注册的ONU的第一数量,其中,所述可注册的ONU的第一数量为所述PON中可注册的ONU的最大数量与所述PON中已注册ONU的数量之差。Step 113: Monitor a first number of registrable ONUs in the PON, where a first quantity of the registrable ONUs is a maximum number of registrable ONUs in the PON and an ONU registered in the PON The difference in quantity.
步骤114,在所述可注册的ONU的第一数量大于所述异常注册表内未记录的ONU的第二数量时,所述第一定时器的第一预设时间长度可以设置为正常响应一个ONU申请注册请求时的最长时间的第二数量倍的时间长度。Step 114: When the first quantity of the registrable ONU is greater than the second quantity of the ONUs that are not recorded in the abnormal registry, the first preset time length of the first timer may be set to a normal response. The length of time of the second multiple of the maximum time when the ONU applies for registration.
步骤115,在所述可注册的ONU的第一数量小于或等于所述异常注册表内未记录的ONU的第二数量时,所述第一定时器的第一预设时间长度设置为预设的最大时间阈值。Step 115: When the first quantity of the registrable ONU is less than or equal to the second quantity of the ONUs that are not recorded in the abnormal registry, the first preset time length of the first timer is set as a preset. The maximum time threshold.
这里的由于PON的可注册ONU的数量一直处于可变化的状态,因此需要实时监控PON的可注册ONU的数量,在PON的可注册ONU的数量较多时,所述ONU的数量少于可注册ONU时,可以将第一预设时间的时间长度,设置为正常响应一个ONU申请注册请求时的最长时间的第二数量倍的时间长度;在所述PON的可注册ONU的数量较少时,所述ONU的数量大于可注册ONU时,可以将第一预设时间的时间长度设置较长的时间,即第一预设时间长度设置为预设最大时间阈值,这样可以等待PON中有更新的ONU的
空闲位置来注册的新获取到的ONU,以尽可能满足新的ONU的申请注册请求的注册需求。Here, since the number of registrable ONUs of the PON is always in a changeable state, it is necessary to monitor the number of registrable ONUs of the PON in real time. When the number of registrable ONUs of the PON is large, the number of the ONUs is less than the registrable ONUs. The time length of the first preset time may be set to a time length that is normally responded to a second multiple of the maximum time when an ONU applies for the registration request; when the number of registrable ONUs of the PON is small, When the number of the ONUs is greater than the registrable ONUs, the time length of the first preset time may be set to a longer time, that is, the first preset time length is set to a preset maximum time threshold, so that the PON may be updated. ONU
The newly acquired ONU is registered in an idle location to satisfy the registration requirement of the new ONU's application registration request as much as possible.
对第一预设时间的时间长度的最大时间阈值达到以后还需要说明:在所述第一预设时间的时间长度的最大时间阈值达到以后,检测到PON没有可注册的ONU的空闲位置,所述OLT接收所述PON发送的注册已满的通知消息,所述OLT向所述ONU发送停止接收ONU的申请注册请求,并实时监测所述PON中可注册ONU的第一数量。After the maximum time threshold of the time length of the first preset time is reached, it is also required to be described that after the maximum time threshold of the time length of the first preset time is reached, it is detected that the PON has no vacant position of the registrable ONU. The OLT receives the notification message that the registration of the PON is full, and the OLT sends an application registration request to the ONU to stop receiving the ONU, and monitors the first number of registrable ONUs in the PON in real time.
本发明实施例中,由于PON注册的数量有限,根据可注册ONU的数量,设置第一预设时间长度,这样可以在PON的注册ONU更新时,及时响应当前ONU的申请注册请求,使得ONU实现及时的注册,也使得PON实现实时更新。In the embodiment of the present invention, because the number of PON registrations is limited, the first preset time length is set according to the number of registrable ONUs, so that when the PON registration ONU is updated, the current ONU application registration request is timely responded, so that the ONU is implemented. Timely registration also enables PON to be updated in real time.
第二实施例Second embodiment
如图2所示,本发明实施例实现的整体流程举例如下。As shown in FIG. 2, the overall process implemented by the embodiment of the present invention is as follows.
步骤201,OLT维护PON的注册信息表,其中,注册信息表包括注册信息,该注册信息包括但不限于所述ONU的MAC地址、所述ONU的序列号SN、所述ONU的注册标志位、所述ONU的类型、所述第二预设时间内的所述ONU的上线及下线次数、所述ONU的上线及下线次数的阈值次数、所述OLT分配的用于唯一标识ONU的标识、和/或监测所述ONU的上线及下线次数的监测次数。利用该监测次数可以判定注册状态为非异常状态的ONU,在第一预设时间内出现频繁上线或下线或者一直处于异常注册状态,进而对不同的异常ONU进行处理。Step 201: The OLT maintains a registration information table of the PON, where the registration information table includes registration information, where the registration information includes, but is not limited to, a MAC address of the ONU, a serial number SN of the ONU, a registration flag of the ONU, The type of the ONU, the number of times the uplink and the downlink of the ONU are in the second preset time, the threshold number of times of the ONU and the number of offline lines, and the identifier used by the OLT to uniquely identify the ONU And/or monitoring the number of times the ONU is monitored and the number of times the line is down. The number of times of monitoring can be used to determine that the ONU whose registration status is non-existing state is frequently online or offline during the first preset time or has been in an abnormal registration state, and then processes different abnormal ONUs.
步骤202,在OLT获取到ONU申请注册请求后,OLT解析ONU的基础注册信息,并启动第二定时器且维持第二定时器开启第二预设时间。其中,该ONU申请注册请求是基于PON发起周期性注册窗口信息,监听到的ONU的申请注册请求。Step 202: After the OLT obtains the ONU application registration request, the OLT parses the basic registration information of the ONU, starts a second timer, and maintains the second timer for a second preset time. The ONU application registration request is based on the PON initiating periodic registration window information, and the monitored ONU application registration request.
步骤203,OLT配置该ONU上线及下线次数的阈值次数,根据ONU上线及下线次数与阈值次数的关系,判定ONU注册状态是否为稳定注册状态。当第二定时器的第二预设时间到达时,ONU的上线及下线次数小于或等于阈
值次数,则判定ONU注册状态为稳定注册状态,并在第二定时器超时后重置该第二定时器,并在OLT再次获取到ONU申请注册请求并解析ONU的基础注册信息(比如:EPON的ONU MAC地址,GPON的ONU SN号等)后重启第二定时器(也就是一直监控ONU的注册状态);当第二定时器的第二预设时间到达时,ONU的上线及下线次数大于阈值次数,则判定ONU注册状态为不稳定注册状态,并停止第二定时器。Step 203: The OLT configures the threshold number of times for the ONU to go online and the number of offline lines, and determines whether the ONU registration status is a stable registration state according to the relationship between the ONU uplink and the number of offline lines and the threshold number of times. When the second preset time of the second timer arrives, the number of uplink and downlink of the ONU is less than or equal to the threshold.
If the number of times is determined, the ONU registration state is determined to be a stable registration state, and the second timer is reset after the second timer expires, and the OLT obtains the ONU application registration request again and parses the basic registration information of the ONU (for example, EPON). The ONU MAC address, the GPON ONU SN number, etc.) restarts the second timer (that is, the ONU registration status is always monitored); when the second preset time of the second timer arrives, the ONU goes online and offline. If the threshold is greater than the threshold, it is determined that the ONU registration state is an unstable registration state, and the second timer is stopped.
步骤204,OLT记录注册状态为不稳定状态的ONU在异常注册表内,并对每一个异常ONU分别启动一个第一定时器且维持第一预设时间,在第一预设时间内,不响应异常注册表内的ONU的申请注册请求,响应不在异常注册表内ONU的申请注册请求,且完成注册交互流程,实现注册防抖处理。Step 204: The OLT records that the ONU whose registration status is unstable is in the abnormal registry, and starts a first timer for each abnormal ONU and maintains the first preset time, and does not respond within the first preset time. The ONU application registration request in the exception registry responds to the ONU application registration request in the abnormal registry, and completes the registration interaction process to implement the registration anti-shake processing.
步骤205,在第一预设时间到达后,OLT重新监控异常注册表内的ONU的注册状态,在重新接收ONU的申请注册请求并解析申请注册请求中的基础注册信息时,重新启动第二定时器来监控该ONU的上线及下线次数,在注册状态为不稳定状态的ONU、设置为注册状态为非异常状态的ONU时,重新响应该ONU的注册请求。Step 205: After the first preset time arrives, the OLT re-monitorates the registration status of the ONU in the abnormal registry, and restarts the second timing when re-receiving the application registration request of the ONU and parsing the basic registration information in the application registration request. The device monitors the ONU and the number of offline lines of the ONU, and responds to the ONU registration request when the ONU with the registered state is unstable and the ONU with the registered state is not abnormal.
步骤206,OLT将携带有注册信息的ONU注册信息表及异常注册表,通过通知及警告的方式上报至网管或第三方维护设备,通过ONU历史注册信息并结合用户信息,查找到ONU位置并进行现场处理。Step 206: The OLT reports the ONU registration information table and the abnormality registry carrying the registration information to the network management system or the third-party maintenance device through notification and warning, and finds the ONU location through the ONU historical registration information and the user information. On-site processing.
本发明实施例中,不依赖可能出现异常的ONU的配合,来解决ONU频繁上线或下线,以及ONU对OLT的冲击,影响其他正常ONU注册的问题,通过将异常ONU加入异常注册表中以及定位异常ONU的异常位置,在第一定时器的第一预设时间内,不响应注册申请请求,在第一预设时间之后,重新监控ONU的注册状态,实现对异常ONU的动态处理,实现方案灵活,通过第一定时器及第二定时器进行监控,也可以节约成本。In the embodiment of the present invention, the ONU is not dependent on the abnormality, and the ONU frequently goes online or goes offline, and the impact of the ONU on the OLT affects the registration of other normal ONUs, and the abnormal ONU is added to the abnormal registry. The abnormal position of the abnormal ONU is located in the first preset time of the first timer, and the registration request request is not responded. After the first preset time, the registration state of the ONU is re-monitored to implement dynamic processing on the abnormal ONU. The solution is flexible, and the first timer and the second timer are used for monitoring, which can also save costs.
第三实施例Third embodiment
如图3所示,本发明实施例以epon注册的实例进行说明OLT发起注册发现窗口(还需要说明的是gpon注册也类似),应用举例如下。As shown in FIG. 3, the embodiment of the present invention uses the example of the epon registration to describe the OLT initiation registration discovery window (it is also necessary to describe that the gpon registration is similar), and the application examples are as follows.
EPON(Ethernet Passive Optical Network,无源光网络设备)***采用
MPCP(Multi-Point Control Protocol,多点控制协议)定义了点到多点光网络的MAC控制机制,通过MPCP协议,在自动发现模式中完成ONU的自动发现和注册,ONU的时钟同步以及动态测距;在普通工作模式中完成对ONU注册状态的监控以及ONU的动态带宽分配。EPON (Ethernet Passive Optical Network) system adopts
MPCP (Multi-Point Control Protocol) defines the MAC control mechanism of the point-to-multipoint optical network. Through the MPCP protocol, the automatic discovery and registration of the ONU is completed in the automatic discovery mode. The clock synchronization and dynamic measurement of the ONU are performed. Distance; monitoring of the ONU registration status and dynamic bandwidth allocation of the ONU in the normal working mode.
MPCP协议定义了5种协议帧用于PON网络的管理操作:1)授权帧GATE:在初始化与普通工作模式中发送授权时间片给ONU,ONU根据所分配的时间片传送数据(只能利用分配的时隙传送数据,否则,不可以传数据);2)报告帧REPORT:ONU向OLT报告ONU的状态以及请求;3)注册请求帧REGISTER_REQ:ONU向OLT发送注册请求;4)注册帧REGISTER:用于OLT响应ONU的REGISTER_REQ消息;5)注册应答帧REGISTER_ACK:ONU发给OLT指示整个注册过程的结束。上述授权帧、注册请求帧、注册帧以及注册应答帧,是用于自动发现模式,而普通模式时,只包括授权帧与报告帧的交互。The MPCP protocol defines five protocol frames for management operations of the PON network: 1) Authorization frame GATE: Sends an authorized time slice to the ONU in the initialization and normal working mode, and the ONU transmits data according to the allocated time slice (only the allocation can be utilized) The time slot transmits data, otherwise, the data cannot be transmitted); 2) the report frame REPORT: the ONU reports the status and request of the ONU to the OLT; 3) the registration request frame REGISTER_REQ: the ONU sends a registration request to the OLT; 4) the registration frame REGISTER: REGISTER_REQ message for the OLT to respond to the ONU; 5) Registration response frame REGISTER_ACK: The ONU sends the OLT to indicate the end of the entire registration process. The above authorization frame, registration request frame, registration frame, and registration response frame are used for the automatic discovery mode, and in the normal mode, only the interaction between the authorization frame and the report frame is included.
步骤301,OLT启动自动发现模式并分配一个发现窗口,以广播方式发送发现待注册的授权帧GATE的授权消息,该授权消息携带有通告ONU的发现时隙的起始时间及长度。Step 301: The OLT starts the automatic discovery mode and allocates a discovery window, and sends an authorization message for discovering the authorization frame GATE to be registered, and the authorization message carries the start time and length of the discovery time slot of the advertised ONU.
步骤302,未初始化的ONU响应发现授权帧GATE的授权消息,完成OLT与ONU的时钟同步。ONU本地时钟达到发现时隙后,在随机时延后ONU发送注册请求帧REGISTER_REQ的申请注册请求,该请求包含ONU的源地址以及代表发送时的ONU本地时钟标签。Step 302: The uninitialized ONU responds to the authorization message of the authorization frame GATE, and completes the clock synchronization between the OLT and the ONU. After the ONU local clock reaches the discovery time slot, the ONU sends an application registration request for the registration request frame REGISTER_REQ after the random delay, the request includes the source address of the ONU and the ONU local clock label on behalf of the transmission.
步骤303,OLT解析确认注册请求帧REGISTER_REQ的申请注册请求后,用ONU的MAC地址将注册帧REGISTER的响应消息发送给正在初始化的ONU。该消息包含OLT分配用于唯一标识ONU的LLID(Logical Link Identifier,逻辑链路标记)。Step 303: After the OLT analyzes the application registration request for confirming the registration request frame REGISTER_REQ, the OLT sends a response message of the registration frame REGISTER to the ONU being initialized by using the MAC address of the ONU. The message includes an LLID (Logical Link Identifier) assigned by the OLT to uniquely identify the ONU.
步骤304,OLT发送同意注册的授权帧GATE的授权消息后发送给正在初始化的ONU。Step 304: The OLT sends an authorization message that agrees to the registered authorization frame GATE, and then sends the message to the ONU being initialized.
步骤305,ONU接收注册帧REGISTER的响应消息和同意注册的授权帧GATE的授权消息后,将在分配的授权时隙中发送一个注册应答帧REGISTER_ACK的应答消息告知OLT它已经成功解析了注册帧REGISTER
的响应消息。完成整个自动发现过程。Step 305: After receiving the response message of the registration frame REGISTER and the authorization message of the authorized registration frame GATE, the ONU sends a response message of the registration response frame REGISTER_ACK in the allocated authorization time slot to inform the OLT that it has successfully parsed the registration frame REGISTER.
Response message. Complete the entire automated discovery process.
本发明实施例中,MPCP默认不允许ONU传输,即ONU在获得OLT授权前,不能转发任何数据(也不能开启激光器),MPCP通过自动发现模式检测新连接的ONU。In the embodiment of the present invention, the MPCP does not allow ONU transmission by default. That is, the ONU cannot forward any data (and cannot turn on the laser) before obtaining the OLT authorization, and the MPCP detects the newly connected ONU through the automatic discovery mode.
本发明实施例可以应用在一个ONU上,也可以应用在多个ONU上,以完成ONU的注册。The embodiment of the present invention can be applied to an ONU or to multiple ONUs to complete registration of the ONU.
第四实施例Fourth embodiment
如图4所示,本发明实施例的一种光网络单元ONU的注册装置,应用于光线路终端OLT,其中,所述注册装置包括:获取模块401、第一判断模块402、响应模块403和第一处理模块404。As shown in FIG. 4, an apparatus for registering an ONU of an optical network unit according to an embodiment of the present invention is applied to an optical line terminal OLT, where the registration apparatus includes: an obtaining module 401, a first judging module 402, a response module 403, and The first processing module 404.
获取模块401,设置为获取ONU向无源光网络PON申请注册的申请注册请求,其中,所述申请注册请求中携带有所述ONU的基础注册信息。The obtaining module 401 is configured to obtain an application registration request for the ONU to apply for registration to the passive optical network PON, where the application registration request carries the basic registration information of the ONU.
这里的基础注册信息可以包括:EPON ONU的MAC地址、GPON ONU的SN(Serial Number,序列号)号。利用基础注册信息可以确定识别ONU。The basic registration information here may include: the MAC address of the EPON ONU and the SN (Serial Number) number of the GPON ONU. The identification of the ONU can be determined using the basic registration information.
第一判断模块402,设置为判断所述申请注册请求中的基础注册信息是否有记录在异常注册表内。The first determining module 402 is configured to determine whether the basic registration information in the application registration request is recorded in the abnormal registry.
需要说明的是:OLT维护一个ONU的异常注册表,包括但不限于记录ONU的基础注册信息。所述异常注册表内还可以包括ONU的注册标志位为异常注册标志位的注册信息,这样可以方便后续使用异常注册表内的注册信息。It should be noted that the OLT maintains an abnormal registry of the ONU, including but not limited to recording the basic registration information of the ONU. The abnormality registry may further include registration information of the ONU registration flag bit being an abnormal registration flag bit, which may facilitate subsequent use of the registration information in the abnormal registry.
响应模块403,设置为当所述异常注册表内未记录有所述ONU的基础注册信息时,响应所述申请注册请求。The response module 403 is configured to respond to the application registration request when the basic registration information of the ONU is not recorded in the abnormality registry.
第一处理模块404,设置为当所述异常注册表内记录有所述ONU的基础注册信息时,启动第一定时器设定的第一预设时间内,不响应所述申请注册请求,在所述第一预设时间到达后,重新监控所述ONU的注册状态。The first processing module 404 is configured to: when the basic registration information of the ONU is recorded in the abnormal registry, start the first preset time set by the first timer, and not respond to the application registration request, After the first preset time arrives, the registration status of the ONU is re-monitored.
这里的第一预设时间可以根据用户需求进行设定。通过在第一预设时间内异常的ONU不进行操作,使得其他正常的ONU可以进行操作,也避免出现了永久的不处理异常ONU的申请注册请求,影响异常ONU恢复正常后的
注册的问题。The first preset time here can be set according to user requirements. The abnormal ONU does not operate during the first preset time, so that other normal ONUs can operate, and the permanent registration request of the abnormal ONU is not processed, which affects the abnormal ONU after returning to normal.
Registration issue.
还需要说明的是,上述异常注册表内的ONU的异常可以是指ONU上线及下线(包括:离线)次数达到阈值次数,也可以是指ONU断电等异常,在此不一一例举。此处说明异常注册表内的ONU的异常是为了准确判定ONU的异常,方便监控。It should be noted that the abnormality of the ONU in the abnormal registry may refer to the number of times the ONU goes online and offline (including: offline) reaches the threshold number, or may refer to an abnormality such as an ONU power failure. . Here, the abnormality of the ONU in the abnormal registry is used to accurately determine the abnormality of the ONU and facilitate monitoring.
如果获取模块401中获取了多个ONU的申请注册请求,这里的第一处理模块404启动第一定时器是指针对每个ONU分别启动的定时器,其中,每个第一定时器可以与每个ONU的基础注册信息预先建立对应关系。可选地,步骤104可以为,当所述异常注册表内记录有所述ONU的基础注册信息时,在启动与所述ONU对应的第一定时器后设定的第一预设时间内,不响应所述申请注册请求,在所述第一预设时间到达后,重新监控所述ONU的注册状态。这样可以避免出现多个ONU使用同一定时器,产生定时混肴的情况,提高了每个ONU执行动作的准确性。If the application module 401 obtains the application registration request of the multiple ONUs, the first processing module 404 starts the first timer, which is a timer that is respectively started for each ONU, wherein each first timer can be used with each The basic registration information of the ONUs is pre-established. Optionally, the step 104 may be: when the basic registration information of the ONU is recorded in the abnormality registry, in a first preset time set after starting the first timer corresponding to the ONU, Not responding to the application registration request, after the first preset time arrives, re-monitoring the registration status of the ONU. This can avoid the situation where multiple ONUs use the same timer to generate timing mixed food, which improves the accuracy of each ONU execution action.
本发明实施例中,通过在第一预设时间内不处理处于异常注册表内的ONU的申请注册请求,在第一预设时间到达后,重新监控ONU的注册状态,对于不在异常注册表内的ONU的申请注册请求,正常响应,这样不仅能够在ONU发生异常时,不影响正常ONU的申请注册请求的响应,而且在预设时间内不处理异常ONU,减轻了OLT的负担,并在第一预设时间到达后,再处理异常ONU,这样也不会忽略对异常ONU的处理,实现对所有OLT的申请注册请求的处理,提高了OLT的性能。In the embodiment of the present invention, after the application registration request of the ONU in the abnormal registry is not processed within the first preset time, the registration state of the ONU is re-monitored after the first preset time is reached, and the registration state of the ONU is not monitored. The ONU's application for registration request is normal, so that it can not only affect the response of the normal ONU's application for registration request when the ONU is abnormal, but also does not handle the abnormal ONU within the preset time, reducing the burden on the OLT. After a preset time arrives, the abnormal ONU is processed again, so that the processing of the abnormal ONU is not ignored, and the processing of the application registration request for all OLTs is realized, and the performance of the OLT is improved.
需要说明的是,本发明提供的装置是光网络单元ONU的注册方法的装置,则上述光网络单元ONU的注册方法的所有实施例均适用于该装置,且均能达到相同或相似的有益效果。It should be noted that, the device provided by the present invention is a device for registering an ONU of an optical network unit, and all embodiments of the method for registering an ONU of the optical network unit are applicable to the device, and all of the same or similar beneficial effects can be achieved. .
本发明的又一实施例的光网络单元ONU的注册装置还包括:启动模块、第二判断模块和第二处理模块。The registration device of the optical network unit ONU of still another embodiment of the present invention further includes: a startup module, a second determination module, and a second processing module.
启动模块,设置为在所述当所述异常注册表内未记录所述ONU的基础注册信息时,所述响应模块响应所述申请注册请求之后,启动第二定时器,并在所述第二定时器的第二预设时间内监测所述ONU的上线及下线次数。
Activating a module, configured to: after the basic registration information of the ONU is not recorded in the abnormal registry, after the response module responds to the application registration request, start a second timer, and in the second The number of times the uplink and the downlink of the ONU are monitored in the second preset time of the timer.
第二判断模块,设置为在所述第二预设时间到达时,判断所述上线及下线次数是否达到阈值次数。The second determining module is configured to determine, when the second preset time arrives, whether the number of the upper and lower lines reaches a threshold number of times.
第二处理模块,设置为当所述上线及下线次数达到所述阈值次数时,判定所述ONU的注册状态为不稳定状态,将所述ONU的注册信息记录在异常注册表内,其中,所述注册信息至少包括:所述ONU的MAC地址、所述ONU的序列号SN、所述ONU的注册标志位、所述ONU的类型、所述第二预设时间内的所述ONU的上线及下线次数、和/或所述ONU的上线及下线次数的阈值次数。The second processing module is configured to determine that the registration status of the ONU is in an unstable state when the number of times of the uplink and the downlink is up to the threshold, and the registration information of the ONU is recorded in the abnormal registry, where The registration information includes at least: a MAC address of the ONU, a sequence number SN of the ONU, a registration flag of the ONU, a type of the ONU, and an on-line of the ONU in the second preset time. And the number of times the line is down, and/or the number of times the number of times the line is up and down.
本发明的又一实施例的光网络单元ONU的注册装置还包括:发送模块和接收模块。The registration device of the optical network unit ONU of still another embodiment of the present invention further includes: a transmitting module and a receiving module.
发送模块,设置为发送一授权消息至所述ONU,其中,所述授权消息携带有分配给所述ONU用于传送数据的时间片的授权帧。And a sending module, configured to send an authorization message to the ONU, where the authorization message carries an authorization frame allocated to a time slice of the ONU for transmitting data.
接收模块,设置为接收由所述ONU通过所述时间片针对所述授权消息返回的申请注册请求,其中,所述申请注册请求携带有所述ONU所需注册所述PON的注册请求帧。The receiving module is configured to receive an application registration request returned by the ONU for the authorization message by using the time slice, where the application registration request carries a registration request frame that the ONU needs to register the PON.
本发明实施例中,通过在接收申请注册请求之前,OLT先自动发现是否有需要注册ONU,这样方便后续获取ONU的申请注册请求以及时钟同步。In the embodiment of the present invention, the OLT first automatically finds whether it is necessary to register the ONU before receiving the application registration request, so as to facilitate subsequent acquisition of the ONU application registration request and clock synchronization.
本发明的又一实施例的光网络单元ONU的注册装置中,所述第二处理模块包括:设置单元和记录单元。In a registration apparatus of an optical network unit ONU according to still another embodiment of the present invention, the second processing module includes: a setting unit and a recording unit.
设置单元,设置为设置所述ONU的注册标志位为异常注册标志位。The setting unit is set to set the registration flag of the ONU to an abnormal registration flag.
记录单元,设置为根据所述异常注册标志位,记录所述ONU的注册信息在所述异常注册表内。The recording unit is configured to record the registration information of the ONU in the abnormality registry according to the abnormal registration flag.
本发明的又一实施例的光网络单元ONU的注册装置中,所述第一处理模块包括:启动单元、监测单元和处理单元。In a registration device of an optical network unit ONU according to still another embodiment of the present invention, the first processing module includes: a starting unit, a monitoring unit, and a processing unit.
所述第一处理模块在所述第一预设时间到达后,重新监控所述ONU的注册状态包括:After the first processing module arrives, the re-monitoring the registration status of the ONU includes:
启动单元,设置为在所述第一预设时间到达后,重新获取到ONU的申请注册请求并启动第二定时器预定的第二预设时间。
The startup unit is configured to re-acquire the application registration request of the ONU and start the second preset time scheduled by the second timer after the first preset time arrives.
监测单元,设置为在所述第二预设时间内,监测所述ONU的上线及下线次数。The monitoring unit is configured to monitor the number of uplinks and downlinks of the ONU during the second preset time.
处理单元,设置为在监测到所述ONU的上线及下线次数未达到阈值次数时,判定所述ONU的注册状态为非异常状态,并删除所述异常注册表内的ONU的基础注册信息,且将所述ONU的注册信息记录在注册信息表内,其中,所述注册信息包括:所述ONU的MAC地址、所述ONU的序列号SN、所述ONU的注册标志位、所述ONU的类型、所述第二预设时间内的所述ONU的上线及下线次数、所述ONU的上线及下线次数的阈值次数和/或所述OLT分配的用于唯一标识ONU的标识。The processing unit is configured to determine that the registration status of the ONU is not abnormal when the number of times the uplink and the downlink of the ONU are not reached, and delete the basic registration information of the ONU in the abnormal registry. And registering the registration information of the ONU in the registration information table, where the registration information includes: a MAC address of the ONU, a serial number SN of the ONU, a registration flag of the ONU, and an ONU The type, the number of times of the uplink and the downlink of the ONU in the second preset time, the threshold number of times of the uplink and the downlink of the ONU, and/or the identifier allocated by the OLT for uniquely identifying the ONU.
本发明的又一实施例的光网络单元ONU的注册装置中,所述处理单元,包括:设置子单元和记录子单元。In a registration apparatus of an optical network unit ONU according to still another embodiment of the present invention, the processing unit includes: a setting subunit and a recording subunit.
所述处理单元将所述ONU的注册信息记录在注册信息表内包括:The processing unit records the registration information of the ONU in the registration information table, including:
设置子单元,设置为设置所述ONU的注册标志位为正常注册标志位。Set the subunit, set to set the registration flag of the ONU to the normal registration flag.
记录子单元,设置为根据所述正常注册标志位,将所述ONU的注册信息记录在所述注册信息表内。The recording subunit is configured to record the registration information of the ONU in the registration information table according to the normal registration flag.
本发明的又一实施例的光网络单元ONU的注册装置中,所述响应模块包括:解析单元和接收单元。In a registration apparatus of an optical network unit ONU according to still another embodiment of the present invention, the response module includes: a parsing unit and a receiving unit.
解析单元,设置为当所述异常注册表内未记录有所述ONU的基础注册信息时,解析所述ONU的申请注册请求的基础注册信息,并判断所述ONU的注册标志位是否为正常注册标志位,当判定所述ONU的注册标志位是正常注册标志位时,产生一针对所述ONU的申请注册请求的响应消息并发送至所述ONU,其中,所述响应消息携带有所述OLT分配的用于唯一标识ONU的标识的注册帧。The parsing unit is configured to parse the basic registration information of the application registration request of the ONU when the basic registration information of the ONU is not recorded in the abnormality registry, and determine whether the registration flag of the ONU is a normal registration a flag, when it is determined that the registration flag of the ONU is a normal registration flag, a response message for requesting the registration request of the ONU is generated and sent to the ONU, where the response message carries the OLT The assigned registration frame for uniquely identifying the identity of the ONU.
接收单元,设置为接收由所述ONU反馈的针对所述响应消息的应答消息,完成所述ONU的注册流程,其中,所述应答消息中携带有指示所述ONU整个注册流程结束的注册应答帧。a receiving unit, configured to receive a response message for the response message fed back by the ONU, to complete a registration process of the ONU, where the response message carries a registration response frame indicating that the entire registration process of the ONU ends .
本发明的又一实施例的光网络单元ONU的注册装置还包括:监测模块、第一设置模块和第二设置模块。
The registration device of the optical network unit ONU of still another embodiment of the present invention further includes: a monitoring module, a first setting module, and a second setting module.
监测模块,设置为在所述第一处理模块重新监控所述ONU的注册状态之前,监测所述PON中可注册ONU的第一数量,其中,所述可注册的ONU的第一数量为所述PON中可注册的ONU的最大数量与所述PON中已注册的ONU的数量之差。a monitoring module, configured to monitor a first number of registrable ONUs in the PON before the first processing module re-monitored the registration status of the ONU, where the first number of the registrable ONUs is The difference between the maximum number of ONUs that can be registered in the PON and the number of registered ONUs in the PON.
第一设置模块,设置为在所述可注册的ONU的第一数量大于所述异常注册表内未记录的ONU的第二数量时,所述第一定时器的第一预设时间长度至少设置为正常响应一个ONU申请注册请求时的最长时间的第二数量倍的时间长度。a first setting module, configured to set at least a first preset time length of the first timer when a first quantity of the registrable ONU is greater than a second quantity of an ONU that is not recorded in the abnormal registry The length of time that is the second most multiple of the maximum time for a DCU to apply for a registration request.
第二设置模块,设置为在所述可注册的ONU的第一数量小于或等于所述异常注册表内未记录的ONU的第二数量时,所述第一定时器的第一预设时间长度设置为预设的最大时间阈值。a second setting module, configured to: when the first quantity of the registrable ONU is less than or equal to a second quantity of the ONUs that are not recorded in the abnormal registry, the first preset time length of the first timer Set to the preset maximum time threshold.
本发明的又一实施例的光网络单元ONU的注册装置中,该装置还包括:获取子模块和获取子模块。In a registration apparatus of an optical network unit ONU according to still another embodiment of the present invention, the apparatus further includes: an acquisition submodule and an acquisition submodule.
获取子模块,设置为获取异常注册表及注册信息表。Get the submodule, set to get the exception registry and registration information table.
上报子模块,设置为将所述异常注册表及注册信息表中的注册信息,上报至终端。The reporting sub-module is configured to report the registration information in the exception registry and the registration information table to the terminal.
第五实施例Fifth embodiment
本发明实施例还提供了一种光线路终端OLT,包括如上述光网络单元ONU的注册装置。An embodiment of the present invention further provides an optical line terminal OLT, including a registration device of the optical network unit ONU.
由于本发明实施例的光网络单元ONU的注册装置,应用于光线路终端OLT,因此,本发明实施例还提供了一种光线路终端OLT,其中,上述光网络单元ONU的注册装置的所述实现实施例均适用于该光线路终端OLT的实施例中,也能达到相同的技术效果。The device for registering the optical network unit ONU of the embodiment of the present invention is applied to the optical line terminal OLT. Therefore, the embodiment of the present invention further provides an optical line terminal OLT, wherein the optical network unit ONU is registered by the apparatus. The implementation embodiments are all applicable to the embodiment of the optical line terminal OLT, and the same technical effects can be achieved.
如图5所示,本发明实施例的整个网络配合如下。As shown in FIG. 5, the entire network of the embodiment of the present invention cooperates as follows.
网管服务器EMS501,设置为对OLT502以及EPON网络的配置、管理以及维护等工作;EMS网管维护并管理OLT502、ONU504的历史信息以及相关告警与通知消息,并可根据相关告警与通知消息完成对具体异常ONU504的判断与其物理位置的查找。
The network management server EMS 501 is configured to configure, manage, and maintain the OLT 502 and the EPON network. The EMS network management maintains and manages the historical information of the OLT 502 and the ONU 504 and related alarms and notification messages, and completes specific exceptions according to related alarms and notification messages. The ONU 504 judges its physical location.
光线路终端OLT502,设置为启动ONU504的发现过程,为ONU504分配LLID完成ONU504在OLT502上注册与认证,并为ONU504分配相应的上行时隙,ONU504在OLT502为其配置分配的时隙中上传数据。上行方向各个时隙正常情况只被该ONU504独占。The optical line terminal OLT 502 is configured to initiate the discovery process of the ONU 504, assign an LLID to the ONU 504, complete the ONU 504 registration and authentication on the OLT 502, and allocate a corresponding uplink time slot for the ONU 504. The ONU 504 uploads data in the time slot allocated by the OLT 502 for its configuration. The normal situation of each time slot in the uplink direction is only exclusive to the ONU 504.
光分配网络ODN503,设置为在OLT502下连接数量不等的ONU504,作为OLT502和ONU504之间直接的物理连接通道,可能由多个物理器件组合而成。The optical distribution network ODN 503 is configured to connect the ONUs 504 of different numbers under the OLT 502. As a direct physical connection channel between the OLT 502 and the ONU 504, a plurality of physical devices may be combined.
光网络单元ONU504,设置为承担家庭用户的终端设备的角色,接受OLT502的管理,在注册过程中接受OLT502分配的ONU的标识(包括但不限于EPON的LLID、GPON的ONU ID等);并根据OLT502统一分配时隙窗口中上传数据完成业务,并在此过程中响应OLT502发出的授权消息。The optical network unit ONU 504 is configured to assume the role of the terminal device of the home user, accepts the management of the OLT 502, and accepts the identifier of the ONU allocated by the OLT 502 during the registration process (including but not limited to the LLID of the EPON, the ONU ID of the GPON, etc.); The OLT 502 uniformly allocates the data to complete the service in the slot window, and responds to the authorization message sent by the OLT 502 in the process.
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现所述的ONU的注册方法。A computer readable storage medium storing computer executable instructions that, when executed by a processor, implement the registration method of the ONU.
应理解,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that the term "and/or" herein is merely an association relationship describing an associated object, indicating that there may be three relationships, for example, A and/or B, which may indicate that A exists separately, and A and B exist simultaneously. There are three cases of B alone. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.
应理解,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。It will be understood that relational terms such as "first" and "second" are used to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying such entities or There is any such actual relationship or order between operations.
在本发明的每种实施例中,应理解,上述每个过程的序号的大小并不意味着执行顺序的先后,每个过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。In each embodiment of the present invention, it should be understood that the size of the sequence number of each process described above does not imply a sequence of execution orders, and the order of execution of each process should be determined by its function and internal logic, and should not be directed to the present invention. The implementation of the embodiments constitutes any limitation.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如***、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这
些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。Alternatively, all or part of the steps of the above embodiments may also be implemented using an integrated circuit.
The steps may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps may be fabricated into a single integrated circuit module.
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
本发明实施例的方案中,通过在第一预设时间内不处理处于异常注册表内的ONU的申请注册请求,在第一预设时间到达后,重新监控ONU的注册状态,对于不在异常注册表内的ONU的申请注册请求,正常响应,这样不仅能够在ONU发生异常时,不影响正常ONU的申请注册请求的响应,而且在预设时间内不处理异常ONU,减轻了OLT的负担,并在第一预设时间到达后,再处理异常ONU,这样也不会忽略对异常ONU的处理,实现对所有OLT的申请注册请求的处理,提高了OLT的性能。
In the solution of the embodiment of the present invention, by not processing the application registration request of the ONU in the abnormal registry within the first preset time, after the first preset time is reached, the registration status of the ONU is re-monitored, and the registration is not abnormal. The request for registration of the ONU in the table responds normally. This not only affects the response of the normal ONU request registration request when the ONU is abnormal, but also does not process the abnormal ONU within the preset time, reducing the burden on the OLT. After the first preset time arrives, the abnormal ONU is processed again, so that the processing of the abnormal ONU is not ignored, and the processing of the application registration request for all OLTs is realized, and the performance of the OLT is improved.
Claims (15)
- 一种光网络单元ONU的注册方法,应用于光线路终端OLT,所述注册方法包括:A method for registering an optical network unit ONU is applied to an optical line terminal OLT, and the registration method includes:获取ONU向无源光网络PON申请注册的申请注册请求,其中,所述申请注册请求中携带有所述ONU的基础注册信息;Obtaining an application registration request for the ONU to apply for registration to the passive optical network PON, where the application registration request carries the basic registration information of the ONU;判断所述申请注册请求中的基础注册信息是否记录在异常注册表内;Determining whether the basic registration information in the application registration request is recorded in an abnormal registry;当所述异常注册表内未记录有所述ONU的基础注册信息地址时,响应所述申请注册请求;When the basic registration information address of the ONU is not recorded in the abnormality registry, responding to the application registration request;当所述异常注册表内记录有所述ONU的基础注册信息时,在启动第一定时器后设定的第一预设时间内,不响应所述申请注册请求,在所述第一预设时间到达后,重新监控所述ONU的注册状态。When the basic registration information of the ONU is recorded in the abnormality registry, the first preset time set after starting the first timer does not respond to the application registration request, and the first preset is After the time arrives, the registration status of the ONU is re-monitored.
- 如权利要求1所述的光网络单元ONU的注册方法,所述注册方法还包括:The method for registering an optical network unit ONU according to claim 1, wherein the registration method further comprises:在所述当所述异常注册表内未记录有所述ONU的基础注册信息时,响应所述申请注册请求之后,启动第二定时器,并在所述第二定时器的第二预设时间内监测所述ONU的上线及下线次数;When the basic registration information of the ONU is not recorded in the abnormal registry, after the request for registration, the second timer is started, and the second preset time of the second timer is started. Monitoring the number of online and offline lines of the ONU;在所述第二预设时间到达时,判断所述上线及下线次数是否达到阈值次数;When the second preset time arrives, determining whether the number of the upper and lower lines reaches a threshold number of times;当所述上线及下线次数达到所述阈值次数时,判定所述ONU的注册状态为不稳定状态,将所述ONU的注册信息记录在异常注册表内,其中,所述注册信息包括:所述ONU的媒体访问控制MAC地址、所述ONU的序列号SN、所述ONU的注册标志位、所述ONU的类型、所述第二预设时间内的所述ONU的上线及下线次数和/或所述ONU的上线及下线次数的阈值次数。Determining that the registration status of the ONU is an unstable state, and registering the registration information of the ONU in an abnormality registry, where the registration information includes: The medium access control MAC address of the ONU, the serial number SN of the ONU, the registration flag of the ONU, the type of the ONU, and the number of uplinks and downlinks of the ONU in the second preset time period. / or the threshold number of times of the ONU and the number of offline lines of the ONU.
- 如权利要求2所述的光网络单元ONU的注册方法,其中,The method of registering an optical network unit ONU according to claim 2, wherein所述将所述ONU的注册信息记录在异常注册表内包括:The recording the registration information of the ONU in the abnormal registry includes:设置所述ONU的注册标志位为异常注册标志位;Setting a registration flag of the ONU as an abnormal registration flag;根据所述异常注册标志位,将所述ONU的注册信息记录在所述异常注册 表内。Recording the registration information of the ONU in the abnormal registration according to the abnormal registration flag Inside the table.
- 如权利要求1所述的光网络单元ONU的注册方法,其中,The method of registering an optical network unit ONU according to claim 1, wherein所述在所述第一预设时间到达后,重新监控所述ONU的注册状态包括:After the arrival of the first preset time, re-monitoring the registration status of the ONU includes:在所述第一预设时间到达后,重新获取ONU的申请注册请求并启动第二定时器预定的第二预设时间;After the first preset time arrives, re-acquiring the application registration request of the ONU and starting a second preset time scheduled by the second timer;在所述第二预设时间内,监测所述ONU的上线及下线次数;Monitoring the number of uplinks and downlinks of the ONU during the second preset time;在监测到所述ONU的上线及下线次数未达到阈值次数时,判定所述ONU的注册状态为非异常状态,并删除所述异常注册表内的ONU的基础注册信息,且将所述ONU的注册信息记录在注册信息表内,其中,所述注册信息包括:所述ONU的MAC地址、所述ONU的序列号SN、所述ONU的注册标志位、所述ONU的类型、所述第二预设时间内的所述ONU的上线及下线次数、所述ONU的上线及下线次数的阈值次数、和/或所述OLT分配的用于唯一标识ONU的标识。When it is detected that the number of times of the uplink and the downlink of the ONU does not reach the threshold number, the registration state of the ONU is determined to be a non-exception state, and the basic registration information of the ONU in the abnormal registry is deleted, and the ONU is The registration information is recorded in the registration information table, wherein the registration information includes: a MAC address of the ONU, a serial number SN of the ONU, a registration flag of the ONU, a type of the ONU, and the The number of times the uplink and the downlink of the ONU are in the preset time, the threshold number of times of the uplink and the downlink of the ONU, and/or the identifier allocated by the OLT for uniquely identifying the ONU.
- 如权利要求4所述的光网络单元ONU的注册方法,其中,A method of registering an optical network unit ONU according to claim 4, wherein所述将所述ONU的注册信息记录在注册信息表内包括:The recording the registration information of the ONU in the registration information table includes:设置所述ONU的注册标志位为正常注册标志位;Setting a registration flag of the ONU as a normal registration flag;根据所述正常注册标志位,将所述ONU的注册信息记录在所述注册信息表内。The registration information of the ONU is recorded in the registration information table according to the normal registration flag.
- 如权利要求1所述的光网络单元ONU的注册方法,其中,The method of registering an optical network unit ONU according to claim 1, wherein所述当所述异常注册表内未记录有所述ONU的基础注册信息地址时,响应所述申请注册请求包括:When the basic registration information address of the ONU is not recorded in the abnormal registry, responding to the application registration request includes:当所述异常注册表内未记录有所述ONU的基础注册信息时,解析所述ONU的申请注册请求的基础注册信息,并判断所述ONU的注册标志位是否为正常注册标志位,当判定所述ONU的注册标志位是正常注册标志位时,产生一针对所述ONU的申请注册请求的响应消息并发送至所述ONU,其中,所述响应消息携带有所述OLT分配的用于唯一标识ONU的标识的注册帧;When the basic registration information of the ONU is not recorded in the abnormality registry, the basic registration information of the application registration request of the ONU is parsed, and it is determined whether the registration flag of the ONU is a normal registration flag. When the registration flag of the ONU is a normal registration flag, a response message for requesting the registration request of the ONU is generated and sent to the ONU, where the response message carries the unique identifier allocated by the OLT. a registration frame identifying the identity of the ONU;接收由所述ONU反馈的针对所述响应消息的应答消息,完成所述ONU 的注册流程,其中,所述应答消息中携带有指示所述ONU整个注册流程结束的注册应答帧。Receiving a response message for the response message fed back by the ONU, completing the ONU The registration process, wherein the response message carries a registration response frame indicating that the entire registration process of the ONU ends.
- 如权利要求1所述的光网络单元ONU的注册方法,其中,所述注册方法还包括:在重新监控所述ONU的注册状态之前,监测所述PON中可注册的ONU的第一数量,其中,所述可注册的ONU的第一数量为所述PON中可注册ONU的最大数量与所述PON中已注册的ONU的数量之差;The method of registering an optical network unit ONU according to claim 1, wherein the registration method further comprises: monitoring a first number of registerable ONUs in the PON before re-monitoring a registration status of the ONU, wherein The first number of the registrable ONUs is the difference between the maximum number of registrable ONUs in the PON and the number of registered ONUs in the PON;在所述可注册的ONU的第一数量大于所述异常注册表内未记录的ONU的第二数量时,所述第一定时器的第一预设时间长度设置为正常响应一个ONU申请注册请求时的最长时间的第二数量倍的时间长度;When the first quantity of the registrable ONU is greater than the second quantity of the ONUs that are not recorded in the abnormal registry, the first preset time length of the first timer is set to normally respond to an ONU application registration request. The second time multiple of the maximum time of time;在所述可注册的ONU的第一数量小于或等于所述异常注册表内未记录的ONU的第二数量时,所述第一定时器的第一预设时间长度设置为预设的最大时间阈值。When the first number of the registrable ONUs is less than or equal to the second number of the ONUs that are not recorded in the abnormal registry, the first preset time length of the first timer is set to a preset maximum time. Threshold.
- 一种光网络单元ONU的注册装置,应用于光线路终端OLT,所述注册装置包括:获取模块、第一判断模块、响应模块和第一处理模块;A registration device for an optical network unit ONU is applied to an optical line terminal OLT, and the registration device includes: an acquisition module, a first determination module, a response module, and a first processing module;所述获取模块,设置为获取ONU向无源光网络PON申请注册的申请注册请求,其中,所述申请注册请求中携带有所述ONU的基础注册信息;The obtaining module is configured to obtain an application registration request for the ONU to apply for registration to the passive optical network PON, where the application registration request carries basic registration information of the ONU;所述第一判断模块,设置为判断所述申请注册请求中的基础注册信息是否记录在异常注册表内;The first determining module is configured to determine whether the basic registration information in the application registration request is recorded in an abnormal registry;所述响应模块,设置为当所述异常注册表内未记录有所述ONU的基础注册信息时,响应所述申请注册请求;The response module is configured to respond to the application registration request when the basic registration information of the ONU is not recorded in the abnormality registry;所述第一处理模块,设置为当所述异常注册表内记录有所述ONU的基础注册信息时,在启动第一定时器后设定的第一预设时间内,不响应所述申请注册请求,在所述第一预设时间到达后,重新监控所述ONU的注册状态。The first processing module is configured to: when the basic registration information of the ONU is recorded in the abnormal registry, not registering the application for registration within a first preset time set after starting the first timer The request, after the arrival of the first preset time, re-monitor the registration status of the ONU.
- 如权利要求8所述的光网络单元ONU的注册装置,The registration device of the optical network unit ONU according to claim 8,所述注册装置还包括:启动模块、第二判断模块和第二处理模块;The registration device further includes: a startup module, a second determination module, and a second processing module;所述启动模块,设置为在所述当所述异常注册表内未记录所述ONU的基础注册信息时,所述响应模块响应所述申请注册请求之后,启动第二定时器,并在所述第二定时器的第二预设时间内监测所述ONU的上线及下线次数; The startup module is configured to: after the basic registration information of the ONU is not recorded in the abnormal registry, after the response module responds to the application registration request, start a second timer, and in the Monitoring the number of times of the ONU and the offline of the ONU in the second preset time of the second timer;所述第二判断模块,设置为在所述第二预设时间到达时,判断所述上线及下线次数是否达到阈值次数;The second determining module is configured to determine, when the second preset time arrives, whether the number of the uplink and the downlink is up to a threshold number of times;第二处理模块,设置为当所述上线及下线次数达到所述阈值次数时,判定所述ONU的注册状态为不稳定状态,将所述ONU的注册信息记录在异常注册表内,其中,所述注册信息包括:所述ONU的媒体访问控制MAC地址、所述ONU的序列号SN、所述ONU的注册标志位、所述ONU的类型、所述第二预设时间内的所述ONU的上线及下线次数和/或所述ONU的上线及下线次数的阈值次数。The second processing module is configured to determine that the registration status of the ONU is in an unstable state when the number of times of the uplink and the downlink is up to the threshold, and the registration information of the ONU is recorded in the abnormal registry, where The registration information includes: a media access control MAC address of the ONU, a sequence number SN of the ONU, a registration flag of the ONU, a type of the ONU, and the ONU in the second preset time. The number of times of the upper and lower lines and/or the number of times the number of the upper and lower lines of the ONU is thresholded.
- 如权利要求9所述的光网络单元ONU的注册装置,其中,The registration device of the optical network unit ONU according to claim 9, wherein所述第二处理模块包括:设置单元和记录单元;The second processing module includes: a setting unit and a recording unit;所述第二处理模块将所述ONU的注册信息记录在异常注册表内包括:The second processing module records the registration information of the ONU in the abnormal registry, including:所述设置单元,设置为设置所述ONU的注册标志位为异常注册标志位;The setting unit is configured to set a registration flag of the ONU to be an abnormal registration flag bit;所述记录单元,设置为根据所述异常注册标志位,记录所述ONU的注册信息在所述异常注册表内。The recording unit is configured to record, according to the abnormal registration flag, the registration information of the ONU in the abnormal registry.
- 如权利要求8所述的光网络单元ONU的注册装置,其中,The registration device of the optical network unit ONU according to claim 8, wherein所述第一处理模块包括:启动单元、监测单元和处理单元;The first processing module includes: a starting unit, a monitoring unit, and a processing unit;所述第一处理模块在所述第一预设时间到达后,重新监控所述ONU的注册状态包括:After the first processing module arrives, the re-monitoring the registration status of the ONU includes:所述启动单元,设置为在所述第一预设时间到达后,重新获取ONU的申请注册请求并启动第二定时器预定的第二预设时间;The activation unit is configured to re-acquire the application registration request of the ONU and start a second preset time scheduled by the second timer after the first preset time arrives;所述监测单元,设置为在所述第二预设时间内,监测所述ONU的上线及下线次数;The monitoring unit is configured to monitor the number of uplinks and downlinks of the ONU during the second preset time;所述处理单元,设置为在监测到所述ONU的上线及下线次数未达到阈值次数时,判定所述ONU的注册状态为非异常状态,并删除所述异常注册表内的ONU的基础注册信息,且将所述ONU的注册信息记录在注册信息表内,其中,所述注册信息包括:所述ONU的MAC地址、所述ONU的序列号SN、所述ONU的注册标志位、所述ONU的类型、所述第二预设时间内的所述ONU的上线及下线次数、所述ONU的上线及下线次数的阈值次数和/或所述 OLT分配的用于唯一标识ONU的标识。The processing unit is configured to determine that the registration status of the ONU is a non-exception state when the number of times the uplink and the downlink of the ONU are not reached, and delete the basic registration of the ONU in the abnormal registry. Information, and the registration information of the ONU is recorded in the registration information table, where the registration information includes: a MAC address of the ONU, a serial number SN of the ONU, a registration flag of the ONU, and the The type of the ONU, the number of times the uplink and the downlink of the ONU are in the second preset time, the threshold number of times of the ONU and the number of offline lines of the ONU, and/or the An identifier assigned by the OLT to uniquely identify the ONU.
- 如权利要求11所述的光网络单元ONU的注册装置,其中,The registration device of the optical network unit ONU according to claim 11, wherein所述处理单元,包括:设置子单元和记录子单元;The processing unit includes: a setting subunit and a recording subunit;所述处理单元将所述ONU的注册信息记录在注册信息表内包括:The processing unit records the registration information of the ONU in the registration information table, including:所述设置子单元,设置为设置所述ONU的注册标志位为正常注册标志位;The setting subunit is configured to set a registration flag of the ONU as a normal registration flag bit;所述记录子单元,设置为根据所述正常注册标志位,将所述ONU的注册信息记录在所述注册信息表内。The recording subunit is configured to record registration information of the ONU in the registration information table according to the normal registration flag.
- 如权利要求8所述的光网络单元ONU的注册装置,其中,The registration device of the optical network unit ONU according to claim 8, wherein所述响应模块包括:解析单元和接收单元;The response module includes: a parsing unit and a receiving unit;所述当所述异常注册表内未记录有所述ONU的基础注册信息地址时,响应所述申请注册请求包括:When the basic registration information address of the ONU is not recorded in the abnormal registry, responding to the application registration request includes:所述解析单元,设置为当所述异常注册表内未记录有所述ONU的基础注册信息时,解析所述ONU的申请注册请求的基础注册信息,并判断所述ONU的注册标志位是否为正常注册标志位,当判定所述ONU的注册标志位是正常注册标志位时,产生一针对所述ONU的申请注册请求的响应消息并发送至所述ONU,其中,所述响应消息携带有所述OLT分配的用于唯一标识ONU的标识的注册帧;The parsing unit is configured to parse the basic registration information of the application registration request of the ONU when the basic registration information of the ONU is not recorded in the abnormality registry, and determine whether the registration flag of the ONU is a normal registration flag, when it is determined that the registration flag of the ONU is a normal registration flag, a response message for the application request for the ONU is generated and sent to the ONU, where the response message carries Decoding a registration frame allocated by the OLT for uniquely identifying an identifier of the ONU;所述接收单元,设置为接收由所述ONU反馈的针对所述响应消息的应答消息,完成所述ONU的注册流程,其中,所述应答消息中携带有指示所述ONU整个注册流程结束的注册应答帧。The receiving unit is configured to receive a response message for the response message fed back by the ONU, and complete a registration process of the ONU, where the response message carries a registration indicating that the entire registration process of the ONU ends. Answer frame.
- 如权利要求8所述的光网络单元ONU的注册装置,其中,所述注册装置还包括:监测模块、第一设置模块和第二设置模块;The registration device of the optical network unit ONU according to claim 8, wherein the registration device further comprises: a monitoring module, a first setting module, and a second setting module;所述监测模块,设置为在所述第一处理模块重新监控所述ONU的注册状态之前,监测所述PON中可注册的ONU的第一数量,其中,所述可注册的ONU的第一数量为所述PON中可注册的ONU的最大数量与所述PON中已注册的ONU的数量之差; The monitoring module is configured to monitor a first number of registrable ONUs in the PON before the first processing module re-monitored the registration status of the ONU, wherein the first number of the registrable ONUs a difference between a maximum number of ONUs that can be registered in the PON and a number of registered ONUs in the PON;所述第一设置模块,设置为在所述可注册的ONU的第一数量大于所述异常注册表内未记录的ONU的第二数量时,所述第一定时器的第一预设时间长度设置为正常响应一个ONU申请注册请求时的最长时间的第二数量倍的时间长度;The first setting module is configured to: when the first quantity of the registrable ONU is greater than the second quantity of the ONUs that are not recorded in the abnormal registry, the first preset time length of the first timer Set the length of time to the second most multiple of the maximum time when an ONU applies for a registration request;所述第二设置模块,设置为在所述可注册的ONU的第一数量小于或等于所述异常注册表内未记录的ONU的第二数量时,所述第一定时器的第一预设时间长度设置为预设的最大时间阈值。The second setting module is configured to: when the first quantity of the registrable ONU is less than or equal to a second quantity of the ONUs that are not recorded in the abnormal registry, the first preset of the first timer The length of time is set to the preset maximum time threshold.
- 一种光线路终端OLT,包括如权利要求8至14任一项所述光网络单元ONU的注册装置。 An optical line terminal OLT comprising the registration device of the optical network unit ONU according to any one of claims 8 to 14.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610196880.3 | 2016-03-31 | ||
CN201610196880.3A CN107295428B (en) | 2016-03-31 | 2016-03-31 | Optical network unit registration method and device and optical line terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017166576A1 true WO2017166576A1 (en) | 2017-10-05 |
Family
ID=59963311
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/095357 WO2017166576A1 (en) | 2016-03-31 | 2016-08-15 | Registration method and device for optical network unit, and optical line terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107295428B (en) |
WO (1) | WO2017166576A1 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113993011A (en) * | 2021-10-28 | 2022-01-28 | 中国电信股份有限公司 | Network unit online method, system, equipment and storage medium of passive optical network |
CN115150460A (en) * | 2022-06-30 | 2022-10-04 | 济南浪潮数据技术有限公司 | Node secure registration method, device, equipment and readable storage medium |
CN115514615A (en) * | 2021-06-07 | 2022-12-23 | ***通信集团有限公司 | Fault detection method and device for broadband network |
CN116056123A (en) * | 2023-03-24 | 2023-05-02 | 新华三技术有限公司 | Equipment detection method and device, electronic equipment and storage medium |
WO2023226809A1 (en) * | 2022-05-24 | 2023-11-30 | 华为技术有限公司 | Ranging method and apparatus in optical communication network |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111386680B (en) * | 2017-11-22 | 2022-01-18 | 住友电气工业株式会社 | PON system, optical network unit, optical line terminal and method for registering optical network unit |
CN110677748B (en) * | 2019-09-06 | 2022-03-11 | 四川天邑康和通信股份有限公司 | Safety risk control method for GPON optical modem |
CN111464887B (en) * | 2020-03-06 | 2022-02-01 | 烽火通信科技股份有限公司 | ONU registration authorization management method and device applied to PON system |
CN116436761B (en) * | 2023-06-12 | 2023-08-25 | 深圳和润达科技有限公司 | Method and device for realizing on-line identification and on-line registration of equipment position |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101783808A (en) * | 2010-03-31 | 2010-07-21 | 烽火通信科技股份有限公司 | Registration method of ONU in GPON system |
US20140010529A1 (en) * | 2012-07-04 | 2014-01-09 | Ubiquoss Inc. | Method for Detecting and Excluding Failed Optical Network Termination |
CN105375979A (en) * | 2015-11-19 | 2016-03-02 | 上海斐讯数据通信技术有限公司 | Method and device for checking abnormal optical network units (ONUs) in passive optical network |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7688843B2 (en) * | 2002-09-13 | 2010-03-30 | Pmc-Sierra Israel Ltd. | Operations method in an ethernet passive optical network that includes a network unit with multiple entities |
CN101159620B (en) * | 2007-11-26 | 2010-06-02 | 中国电信股份有限公司 | Login method of optical network unit |
CN101827099B (en) * | 2010-04-15 | 2014-07-16 | 中兴通讯股份有限公司 | Method and device for allocating logical link identifiers for optical network unit |
-
2016
- 2016-03-31 CN CN201610196880.3A patent/CN107295428B/en active Active
- 2016-08-15 WO PCT/CN2016/095357 patent/WO2017166576A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101783808A (en) * | 2010-03-31 | 2010-07-21 | 烽火通信科技股份有限公司 | Registration method of ONU in GPON system |
US20140010529A1 (en) * | 2012-07-04 | 2014-01-09 | Ubiquoss Inc. | Method for Detecting and Excluding Failed Optical Network Termination |
CN105375979A (en) * | 2015-11-19 | 2016-03-02 | 上海斐讯数据通信技术有限公司 | Method and device for checking abnormal optical network units (ONUs) in passive optical network |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115514615A (en) * | 2021-06-07 | 2022-12-23 | ***通信集团有限公司 | Fault detection method and device for broadband network |
CN113993011A (en) * | 2021-10-28 | 2022-01-28 | 中国电信股份有限公司 | Network unit online method, system, equipment and storage medium of passive optical network |
CN113993011B (en) * | 2021-10-28 | 2024-03-19 | 中国电信股份有限公司 | Network element online method, system, equipment and storage medium of passive optical network |
WO2023226809A1 (en) * | 2022-05-24 | 2023-11-30 | 华为技术有限公司 | Ranging method and apparatus in optical communication network |
CN115150460A (en) * | 2022-06-30 | 2022-10-04 | 济南浪潮数据技术有限公司 | Node secure registration method, device, equipment and readable storage medium |
CN116056123A (en) * | 2023-03-24 | 2023-05-02 | 新华三技术有限公司 | Equipment detection method and device, electronic equipment and storage medium |
CN116056123B (en) * | 2023-03-24 | 2023-06-20 | 新华三技术有限公司 | Equipment detection method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107295428B (en) | 2020-07-31 |
CN107295428A (en) | 2017-10-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017166576A1 (en) | Registration method and device for optical network unit, and optical line terminal | |
JP5106683B2 (en) | COMMUNICATION METHOD, OPTICAL COMMUNICATION SYSTEM, USER-SIDE OPTICAL LINE TERMINAL DEVICE, STATION-SIDE OPTICAL LINE TERMINAL DEVICE, AND CONTROL DEVICE | |
JP5372960B2 (en) | Protected passive optical communication system | |
US20030177216A1 (en) | Isolation technique for networks | |
CN101827099B (en) | Method and device for allocating logical link identifiers for optical network unit | |
CN101056199B (en) | An uplink burst performance monitoring method of point-to-multipoint access network, head device and access network system | |
WO2016188196A1 (en) | Method and device for detecting abnormal pon terminal | |
WO2020063991A1 (en) | Pon network, method and apparatus for pon network and robot system | |
US10110301B2 (en) | Method, apparatus, and system for detecting rogue optical network unit | |
WO2008128478A1 (en) | Method for measuring the length of optical fiber, optical line terminal and optical network system | |
CN108370271A (en) | Detection method, device and the passive optical network of optical network unit | |
CN102739539A (en) | Method for carrying out topology association on optical network unit (ONU) and Ethernet over coax (EOC) | |
TWI474682B (en) | System and method for applying an extended multipoint protocol to wireless access systems | |
KR102061498B1 (en) | Control method for onu in sleep mode | |
WO2008037178A1 (en) | The optical network unit and its accessing method, the optical line terminal and the passive optical network system | |
JP2010263620A (en) | Method for preparing take over of access control of type-b protected passive optical network (pon) by protection optical line terminal (olt), method for protecting type-b passive optical network (pon), and protected type b passive optical network (pon) | |
US8165173B2 (en) | Data transmission method, system and terminal | |
CN104320727B (en) | Automatically determine the method and system of EOC head end first line of a couplet information | |
JP5456131B2 (en) | Communication method, optical communication system, user side optical line terminator, station side optical line terminator | |
TWI487305B (en) | Method and apparatus for extending multipoint control protocols to mixed media access systems | |
CN106161070B (en) | xPON multicast service monitoring method and device and OLT equipment | |
WO2017032136A1 (en) | Method and apparatus for switching of gigabit-capable passive optical network system, optical network unit, and optical line terminal | |
JP2016119612A (en) | Station side communication apparatus, passive optical network system and re-registration processing method | |
JP2008011287A (en) | Alarm notifying method in pon system, subscriber's premise side terminating apparatus, and station side terminal apparatus | |
CN101594288A (en) | Query facility selecting method, router and network system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16896348 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16896348 Country of ref document: EP Kind code of ref document: A1 |