A method and device for OLT to manage ONU status

By periodically detecting the ONU identification and comparing the occupancy table with the authorization table, and identifying and processing the forgotten ONU, the state inconsistency problem caused by the forgetting ONU of the OLT device is solved, ensuring the effectiveness of PON resources and the rapid launch of the new ONU.

CN115515028BActive Publication Date: 2024-12-03FIBERHOME TELECOMMUNICATION TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110629872.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-07
Publication Date
2024-12-03
Estimated Expiration
2041-06-07

AI Technical Summary

Technical Problem

In PON system, OLT devices are prone to forget ONU devices, resulting in inconsistent status and inability to manage and maintain normally, which in turn affects data transmission and resource use.

Method used

Through periodic trigger detection of ONU identifiers, record them in the ONU identification occupation table, compare the occupation table with the authorization table, identify the forgotten ONU and perform offline processing or resource synchronization to avoid resource conflicts.

Benefits of technology

It effectively solves the problem that the ONU status maintained by the OLT device is inconsistent with the ONU device's own status, ensures the effectiveness of PON resources, avoids resource conflicts between the new ONU and the forgotten ONU, and ensures that the new ONU quickly enters the working state.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115515028B_ABST
    Figure CN115515028B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and device for managing ONU status by OLT. The OLT device periodically performs trigger detection on each ONU identifier within the allocation range. If it is detected that the ONU identifier is occupied by the ONU device, the ONU identifier is recorded in the ONU identifier occupation table; the OLT device compares the ONU identifier occupation table with the ONU authorization table. If the ONU identifier recorded in the ONU identifier occupation table does not exist in the ONU authorization table, it is determined that the ONU identifier is illegally occupied, and the corresponding ONU device is regarded as a forgotten ONU; the OLT device processes the forgotten ONU according to a preset forgotten ONU processing strategy, and the forgotten ONU processing strategy includes offline processing or resource synchronization of the forgotten ONU. The present invention can effectively solve the problem that the ONU status maintained by the OLT device is inconsistent with the status of the ONU device itself, and maintain the validity of PON resources.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention belongs to the technical field of passive optical networks, and more specifically, relates to a method and device for an OLT to manage an ONU state. [Background technology]

[0002] The PON (Passive Optical Network) system consists of three parts, namely the central office equipment OLT (Optical Line Terminal), ODN (Optical Distribution Network) and remote equipment ONU (Optical Network Unit), which together carry the business. In order to ensure the normal transmission of data between OLT and ONU devices, the OLT device needs to manage the status of each ONU device, and make the ONU device enter the working state through discovery, registration, authorization, etc. In the working state, in order to ensure the correctness of the data in the PON system, the OLT also needs to maintain the status of each ONU and make the actual status of each ONU consistent with the ONU status maintained by the OLT.

[0003] For GPON (Gigabit-Capable PON, i.e. Gigabit-capable passive optical network), XG-PON (i.e. asymmetric mode of 10G-GPON), XGS-PON (i.e. symmetric mode of 10G-GPON), high-speed PON system, EPON (EthernetPON, i.e. Ethernet passive optical network) and 10G-EPON, the OLT device is responsible for managing and maintaining the PON MAC (Media Access Control) status of each ONU device. The consistency of the PON MAC status of the OLT and ONU is the basic condition for the normal operation of the PON system. However, due to the different upstream and downstream working modes of the PON system, specifically the upstream adopts the TDMA (Time Division Multiple Access) mode and the downstream uses the broadcast mode for management and service transmission, it is difficult to keep the PON MAC status consistent between the OLT and ONU devices.

[0004] At present, the common practice is that the OLT device detects the abnormality of the ONU device by checking the optical link status, but in the existing actual opened projects, the network often has the following abnormal problems: the optical link status of the system is intact, and a certain ONU device on the user side is in normal working state (having the ONU identifier assigned by the OLT), but the OLT device in the computer room forgets the ONU and thinks that the ONU is not online, so that the ONU cannot normally receive / send data although it is in working state, and there is no fault performance (because the optical link is in normal and intact state). In this case, when the user cannot use the ONU device for service transmission, since the ONU device has no fault performance, the operation and maintenance personnel are completely unable to locate the specific cause of the problem, and it is difficult to solve this problem and restore the user's business, affecting the user's business experience. Further, if the OLT device allocates the ONU identifier to the newly added ONU, the newly added ONU device and the ONU have resource conflicts, resulting in the newly added ONU being unable to normally complete the necessary ranging process of the ONU device access system in the PON system, and the newly added ONU device cannot work normally.

[0005] Taking the GPON system (including but not limited to conventional GPON, XG-PON, XGS-PON and high-speed PON) as an example, the ONU status change process is as follows: Figure 1 As shown, from top to bottom, they are: O1-initial state, O2-O3-serial number state, O4-ranging state, O5-working state, O6-intermittent downlink out-of-sync state, O7-emergency stop state. Under normal circumstances, the ONU device is in the initial state O1 after powering on; the ONU receives the synchronization signal from the OLT, locks the clock, obtains optical link parameters, etc., and enters the serial number state O2-O3. The OLT will use the timer TO1 to periodically start the SN (Serial Number) discovery process. The ONU in the O2-O3 state will report its unique SN for OLT identification, and the OLT will assign an ONU ID to each ONU whose SN is identified; the ONU device assigned to the ONU ID enters the ranging state O4, and the OLT device completes the ranging and sends the equalization delay to the ONU. At this time, the ONU can enter the working state O5 and send and receive data according to the bandwidth allocated by the OLT.

[0006] Depend on Figure 1It can be seen that in the GPON system, when the ONU is in the working state O5, there are only two ways to make it exit from the working state O5 and return to the initial state O1: optical link failure (such as fiber breakage), ONU receives a deactivation message (deactive request) or a disable message (disable request) sent by the OLT. In the GPON system, the so-called forgotten ONU means that the ONU is in the working state O5 but the OLT device does not have any information about the ONU, so that the OLT cannot manage and maintain the state of the ONU. Since the ONU in the working state O5 no longer reports its SN for OLT to identify, and cannot exit the working state O5 through the failure of the optical link, the ONU cannot get the opportunity to let the OLT identify its SN through the SN discovery process. The OLT does not have any information about the ONU, and cannot obtain its SN again in the subsequent discovery process, resulting in the OLT being unable to perceive the existence of the ONU, so the OLT will not grant bandwidth authorization to the ONU to enable it to transmit data; and if the OLT allocates PON resources such as the ONU identification occupied by the ONU to other ONU devices again, it will cause upstream optical conflicts and even downstream data leakage.

[0007] For EPON systems (including but not limited to conventional EPON and 10G-EPON), the ONU status change process is simpler than that of GPON systems. The whole process can be referred to Figure 2, there are only unregistered state and registered state (similar to the initial state O1 and working state O5 in the GPON system). Its processing also requires SN discovery process and ranging process, that is, ONU will report its unique SN for OLT to identify, and OLT will assign LLID (Logical link ID) to each ONU whose SN is identified, and the ONU device assigned to LLID will perform ranging. After the ranging is completed, the ONU enters the registered state, and thereafter the ONU can send and receive data according to the bandwidth allocated by the OLT. In the EPON system, when the ONU is in the registered state, there are also only two ways to exit the registered state and return to the unregistered state: optical link failure (such as fiber breakage) and the ONU receives a deregistration message sent by the OLT. At this time, the so-called forgotten ONU means that the ONU is in the registered state but the OLT device does not have any information about the ONU, making it impossible for the OLT to manage and maintain the state of the ONU. Similar to the GPON system, since the ONU in the registered state no longer reports its SN for OLT identification, and cannot exit the registered state through the optical link failure, the ONU cannot get the opportunity for the OLT to identify its SN through the SN discovery process. The OLT does not have any information about the ONU, so the OLT will not grant bandwidth to the ONU; moreover, if the OLT allocates the PON resources such as the ONU ID occupied by the ONU to other ONU devices again, it will cause upstream optical conflicts.

[0008] In view of this, overcoming the defects of the above-mentioned prior art is an urgent problem to be solved in the field of this technology. [Summary of the invention]

[0009] In view of the above defects or improvement needs of the prior art, the present invention provides a method and device for OLT management of ONU status, which aims to timely discover and process the ONU forgotten by the OLT device through periodic triggered detection in the PON system, solve the problem of inconsistency between the ONU status maintained by the OLT device and the status of the ONU device itself, and avoid the problem of resource occupation conflict between the newly added ONU device and the forgotten ONU.

[0010] To achieve the above object, according to one aspect of the present invention, a method for an OLT to manage an ONU state is provided, comprising:

[0011] The OLT device periodically performs a trigger detection on each ONU identifier within the allocation range. If it is detected that the ONU identifier is occupied by an ONU device, the ONU identifier is recorded in the ONU identifier occupation table;

[0012] The OLT device compares the ONU identification occupation table with the ONU authorization table. If the ONU identification recorded in the ONU identification occupation table does not exist in the ONU authorization table, it is determined that the ONU identification is illegally occupied, and the corresponding ONU device is regarded as a forgotten ONU;

[0013] The OLT device processes the forgotten ONU according to a preset forgotten ONU processing strategy; wherein the forgotten ONU processing strategy includes offline processing of the forgotten ONU or resource synchronization of the forgotten ONU.

[0014] Preferably, for any ONU identifier, when the ONU identifier is detected as illegally occupied by the OLT device for N consecutive detection cycles, it is determined that the ONU identifier is abnormal, and the OLT device marks the ONU identifier in the ONU identifier occupancy table; wherein N≥2.

[0015] Preferably, when the ONU identifier is detected as illegally occupied by the OLT device for N consecutive detection cycles, it is determined that the ONU identifier is abnormal, and the OLT device marks the ONU identifier in the ONU identifier occupancy table, specifically:

[0016] During the first detection cycle, a counting flag is set for the ONU identifier in the ONU identifier occupancy table and initialized to 0;

[0017] During the periodic detection process, whenever it is detected that the ONU identifier is illegally occupied, the count flag of the ONU identifier is increased by 1; when it is detected that the ONU identifier is no longer illegally occupied, the count flag of the ONU identifier is cleared;

[0018] When the count flag of the ONU identifier reaches a preset value N, it is determined that the ONU identifier is abnormal and can no longer be managed by the OLT device, and the OLT device marks the ONU identifier in the ONU identifier occupancy table.

[0019] Preferably, when it is determined that the ONU identifier is abnormal, the OLT device also reports the ONU identifier to the operation and maintenance network manager, reminding the operation and maintenance network manager that the ONU identifier cannot be allocated and used again in the system; then when a new ONU device comes online, the operation and maintenance network manager selects an ONU identifier that has not been reported by the OLT device for allocation.

[0020] Preferably, when a new ONU device is online, the method further includes:

[0021] The OLT device detects whether the ONU identifier assigned by the operation and maintenance network management is currently abnormal and whether it is occupied. If the ONU identifier is currently normal and not occupied, the OLT device assigns the ONU identifier to the new ONU device and performs a ranging process on the new ONU device.

[0022] Preferably, the OLT device detects whether the ONU identifier assigned by the operation and maintenance network management is currently abnormal and whether it is occupied. If the ONU identifier is currently normal and not occupied, the OLT device assigns the ONU identifier to the new ONU device, specifically:

[0023] The OLT device detects whether the ONU identifier assigned by the operation and maintenance network manager is currently marked in the ONU identifier occupancy table; if it is marked, an error is reported to the operation and maintenance network manager, the online process of the new ONU device is stopped, and the operation and maintenance network manager is requested to reallocate the ONU identifier to the new ONU device; if it is not marked, the ONU identifier is continuously detected to see whether it is currently occupied;

[0024] If it is occupied, an error is reported to the operation and maintenance network manager, the online process of the new ONU device is stopped, and the operation and maintenance network manager is requested to reallocate the ONU identifier to the new ONU device; if it is not occupied, the ONU identifier is allocated to the new ONU device.

[0025] Preferably, in each detection cycle, the trigger detection process of each ONU identification is specifically as follows:

[0026] The OLT device sends a detection message of the ONU identifier to each ONU device in the existing network, requiring the ONU device occupying the ONU identifier to respond;

[0027] If the OLT device receives a response to the ONU identifier returned by the ONU device, it is considered that the ONU identifier is occupied, and the ONU identifier is recorded in the ONU identifier occupation table;

[0028] If the OLT device does not receive a response to the ONU identifier returned by the ONU device, it is considered that the ONU identifier is not occupied, and the detection continues for the next ONU identifier within the allocation range.

[0029] Preferably, the process of the OLT device taking the forgotten ONU offline is specifically as follows:

[0030] The OLT device sends one or more ONU offline messages to the forgotten ONU, instructing the forgotten ONU to exit from a working state to an initial state, or from a registered state to an unregistered state, and releasing PON resources illegally occupied by the forgotten ONU.

[0031] Preferably, the process of the OLT device performing resource synchronization on the forgotten ONU is specifically as follows:

[0032] The PON resources occupied by the forgotten ONU are uploaded to the OLT device through the management channel, and the OLT device synchronizes the received PON resources to its own PON MAC and reports them to the operation and maintenance network management.

[0033] Preferably, in the GPON system, the ONU identifier adopts an ONU ID, and the OLT device detects whether the ONU ID is occupied by performing bandwidth authorization on the ONU ID or by using a PLOAM message or a management channel OMCI message.

[0034] Preferably, in the EPON system, the ONU identifier adopts LLID, and the OLT device detects whether the LLID is occupied through an MPCP message.

[0035] According to another aspect of the present invention, a device for an OLT to manage the ONU status is provided, comprising at least one processor and a memory, wherein the at least one processor and the memory are connected via a data bus, and the memory stores instructions executable by the at least one processor, wherein the instructions, after being executed by the processor, are used to complete the method for an OLT to manage the ONU status described in the first aspect above.

[0036] In general, the above technical scheme conceived by the present invention has the following beneficial effects compared with the prior art: in the OLT management ONU status method provided by the present invention, the OLT device can periodically trigger detection of the ONU identifier, detect the forgotten ONU by comparing the ONU identifier occupancy table and the ONU authorization table, and timely perform offline processing or resource synchronization on the forgotten ONU, which can effectively solve the problem of inconsistency between the ONU status maintained by the OLT device and the state of the ONU device itself, and maintain the validity of PON resources; in addition, by marking the ONU identifier as abnormal, the operation and maintenance network manager can be reminded that the ONU identifier can no longer be allocated and used, effectively avoiding the problem of resource occupation conflict between the newly added ONU device and the forgotten ONU, so that the new ONU can quickly and normally enter the working state.

Brief Description of the Drawings

[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0038] Figure 1This is a state change process diagram of an ONU in a GPON system provided by an embodiment of the present invention;

[0039] Figure 2 This is a state change process diagram of an ONU in an EPON system provided by an embodiment of the present invention;

[0040] Figure 3 It is a flow chart of a method for OLT to manage ONU status provided by an embodiment of the present invention;

[0041] Figure 4 It is a flow chart of a method for OLT to manage ONU status in a GPON system provided by an embodiment of the present invention;

[0042] Figure 5 It is a flow chart of a method for OLT to manage ONU status in an EPON system provided by an embodiment of the present invention;

[0043] Figure 6 The present invention provides an OLT device architecture diagram for managing ONU status. [Specific implementation method]

[0044] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0045] In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other. The present invention will be described in detail below with reference to the accompanying drawings and embodiments.

[0046] Example 1

[0047] In order to solve the problem of forgotten ONUs in the OLT device and make the ONU status maintained by the OLT device consistent with the status of the ONU device itself, an embodiment of the present invention provides a method for OLT to manage ONU status, which mainly includes two parts: detection and processing of forgotten ONUs. Figure 3 , the specific steps are as follows:

[0048] Step 101: The OLT device periodically performs a trigger detection on each ONU identifier within the allocation range. If it is detected that the ONU identifier is occupied by an ONU device, the ONU identifier is recorded in an ONU identifier occupation table.

[0049] The OLT device first determines the ONU identifier allocation range of the ONU device, and then starts a timer T to periodically perform trigger detection on each ONU identifier within the ONU identifier allocation range, requiring the ONU device occupying a specific ONU identifier to respond to the uplink data, and then detects whether each ONU identifier within the allocation range is occupied.

[0050] It should be noted that the PON system can be a GPON system (including but not limited to conventional GPON, XG-PON, XGS-PON and high-speed PON) or an EPON system (including but not limited to conventional EPON and 10G-EPON). In the GPON system, the ONU identifier adopts ONU ID, and the OLT device can detect whether the ONU ID is occupied by authorizing the bandwidth of the ONU ID or through PLOAM (Physical Layer Operations Administration and Maintenance) message or through the management channel OMCI (ONT Management and Control Interface) message. In the EPON system, the ONU identifier adopts LLID, and the OLT device can detect whether the LLID is occupied through MPCP (Multi-Point Control Protocol) message.

[0051] Among them, no matter which PON system or which detection method is used, the essence is to complete the detection by sending a detection message to obtain a response. Then, in each detection cycle, the trigger detection process of each ONU identifier is as follows: the OLT device sends a detection message of the ONU identifier to each ONU device in the existing network (i.e., sends a broadcast message), requiring the ONU device occupying the ONU identifier to respond; if the OLT device receives a response to the ONU identifier returned by the ONU device, it is considered that the ONU identifier is occupied, and the OLT device records the ONU identifier in the ONU identifier occupation table; if the OLT device does not receive a response to the ONU identifier returned by the ONU device, it is considered that the ONU identifier is not occupied, and the detection of the ONU identifier is completed, and the next ONU identifier in the allocation range is continuously detected in the above manner until the detection of each ONU identifier in the allocation range is completed.

[0052] Step 102, the OLT device compares the ONU identifier occupation table with the ONU authorization table. If the ONU identifier recorded in the ONU identifier occupation table does not exist in the ONU authorization table, it is determined that the ONU identifier is illegally occupied, and the corresponding ONU device is regarded as a forgotten ONU.

[0053] The OLT device internally stores an ONU authorization table for normal ONU authorization, and the ONU authorization table is the ONU device and its ONU identification that are officially issued by the operation and maintenance network management and recorded by the OLT device and are officially permitted to perform service transmission. If the ONU identification recorded in the ONU identification occupation table is not in the ONU authorization table, it indicates that the ONU identification is illegally occupied, and the ONU device that illegally occupies the ONU identification can be considered as an ONU device forgotten by the OLT device, that is, a forgotten ONU, and needs to be further processed according to the preset forgotten ONU processing strategy. If the ONU identification recorded in the ONU identification occupation table is in the ONU authorization table, it indicates that the ONU identification is not illegally occupied, and the forgetting detection of the ONU identification is terminated.

[0054] Step 103, the OLT device processes the forgotten ONU according to a preset forgotten ONU processing strategy; wherein the forgotten ONU processing strategy includes offline processing of the forgotten ONU or resource synchronization of the forgotten ONU.

[0055] The process of the OLT device carrying out offline processing on the forgotten ONU is specifically as follows: the OLT device sends one or more ONU offline messages (specifically, the PLOAM of the deactive ONU or the MPCP of the deregistered ONU) to the forgotten ONU, and specifies that the forgotten ONU exits from the working state O5 to the initial state O1, or exits from the registered state to the unregistered state, so as to release the PON resources illegally occupied by the forgotten ONU. To ensure that the forgotten ONU can receive the ONU offline message, the ONU offline message can be sent multiple times. Among them, the PON resources include but are not limited to the ONU identification (i.e., ONU ID or LLID), physical identification (serial number SN or MAC address), bandwidth, ALLOCID (Allocation Identifier, i.e., allocation identifier or allocation address), GEM-ID (GPON Encapsulation Method-Identifier, i.e., gigabit passive optical network encapsulation address), XGEM-ID (10G-GPON Encapsulation Method-Identifier, i.e., 10G gigabit passive optical network encapsulation address) and other series of resources occupied by the ONU device.

[0056] The process of the OLT device synchronizing resources for the forgotten ONU is specifically as follows: uploading the PON resources occupied by the forgotten ONU to the OLT device through the OMCI or OAM (Operations Administration and Maintenance) management channel, and the OLT device synchronizes the received PON resources to its own PON MAC, and reports it to the operation and maintenance network management. Among them, the ONU identifier occupied by the forgotten ONU can be included in the ONU authorization table, and the forgotten ONU is marked as working state O5 or registered state, so that the forgotten ONU continues to be in working state O5 or registered state.

[0057] Two processing strategies are mainly provided here for the forgotten ONU, namely, forced offline and resource synchronization; of course, in an optional embodiment, other suitable strategies may also be selected to process the forgotten ONU, which is not specifically limited here.

[0058] Further, for any ONU identifier, when the ONU identifier is detected as illegally occupied by the OLT device for N consecutive detection cycles, it is determined that the ONU identifier is abnormal, and the OLT device marks the ONU identifier in the ONU identifier occupation table; wherein N≥2. Specifically as follows:

[0059] During the first detection cycle, a counting flag is set for the ONU identifier in the ONU identifier occupancy table and initialized to 0. In the subsequent periodic detection process, each time the ONU identifier is detected to be illegally occupied, the counting flag of the ONU identifier is increased by 1; when it is detected that the ONU identifier is no longer illegally occupied, the counting flag of the ONU identifier is cleared. When the counting flag of the ONU identifier reaches the preset value N, it is determined that the ONU identifier is abnormal and can no longer be managed by the OLT device, and the ONU identifier can no longer be allocated and used by the OLT device again, then the OLT device marks the ONU identifier in the ONU identifier occupancy table. Among them, the preset value N can be flexibly selected according to actual needs. The higher the use requirements, the smaller the N value is set; when N=2, the ONU identifier is considered to be abnormal if illegal occupation is detected twice in a row.

[0060] In addition, when it is determined that the ONU identifier is abnormal, the OLT device can also actively report the ONU identifier to the operation and maintenance network manager to remind the operation and maintenance network manager that the ONU identifier cannot be allocated and used again in the system; then when a new ONU device comes online, the operation and maintenance network manager will select an ONU identifier that has not been reported by the OLT device (i.e., an ONU identifier without abnormalities) for allocation.

[0061] When a new ONU device comes online, the operation and maintenance network manager will assign an ONU identifier to the new ONU device according to the reporting result, and then the OLT device will assign the ONU identifier to the new ONU device and perform the ranging process. The general process is: the OLT device detects whether the ONU identifier assigned by the operation and maintenance network manager is currently abnormal and occupied. If the ONU identifier is not abnormal and not occupied, the OLT device will assign the ONU identifier to the new ONU device and perform the ranging process on the new ONU device. The details are as follows:

[0062] The OLT device first detects whether the ONU identifier assigned by the operation and maintenance network manager is currently marked in the ONU identifier occupancy table; if it is marked, it proves that the ONU identifier is abnormal and can no longer be allocated and used, then the OLT device reports an error to the operation and maintenance network manager, stops the online process of the new ONU device, and requests the operation and maintenance network manager to reallocate the ONU identifier to the new ONU device; if it is not marked, it proves that the ONU identifier is not abnormal, then the OLT device continues to detect whether the ONU identifier is currently occupied. If it is occupied, the OLT device reports an error to the operation and maintenance network manager, stops the online process of the new ONU device, and requests the operation and maintenance network manager to reallocate the ONU identifier to the new ONU device; if it is not occupied, the OLT device allocates the ONU identifier to the new ONU device, and performs a ranging process on the new ONU device. Among them, the specific detection method of whether the ONU identifier is occupied can refer to the introduction in step 101, which will not be repeated here.

[0063] It should be noted that, although the OLT device has actively reported to the operation and maintenance network manager when the abnormal ONU identifier is determined, and the operation and maintenance network manager has theoretically allocated a normal ONU identifier, the OLT device may detect a new abnormal ONU identifier during the allocation process of the operation and maintenance network manager, and it has not yet been reported to the operation and maintenance network manager for reference, so the operation and maintenance network manager may still allocate an abnormal ONU identifier at this time. Therefore, the preferred solution is that the OLT device performs another verification after the operation and maintenance network manager allocates it, and at this time, it can be detected according to the latest mark record in the ONU identifier occupancy table to directly verify whether the ONU identifier allocated by the operation and maintenance network manager is abnormal. For example, after the OLT device detects two abnormal ONU identifiers a and b, it will report to the operation and maintenance network manager. At this time, if a new ONU device is online, the operation and maintenance network manager avoids a and b and allocates ONU identifier c to the new ONU device; however, during the allocation process, the OLT device may have just detected that c is also an abnormal ONU identifier and marked it. At this time, the OLT device can effectively prevent the online process by verifying the ONU identifier c.

[0064] The method provided by the embodiment of the present invention can effectively solve the problem that the state of OLT device maintenance is inconsistent with the state of ONU device itself, which is more conducive to operation and maintenance; it can solve the resource conflict between the new ONU device and the forgotten ONU, so that the new ONU can quickly and normally enter the working state; it can solve the problem that two ONU devices with the same ONU identifier appear in the same PON at the same time, avoiding the appearance of rogue ONU; it is conducive to the maintenance of the existing network, and only the OLT device needs to be upgraded, and there is no need to upgrade all ONU devices in the PON system; the operations that can be performed on the forgotten ONU device are flexible, for example, it can be forced to go offline, mark the ONU identifier, or update the OLT's own table item so that the ONU continues to work normally; it can effectively maintain the validity of PON resources and recycle PON resources in time.

[0065] Example 2

[0066] On the basis of the above-mentioned embodiment 1, the embodiment of the present invention further takes the GPON system (including but not limited to conventional GPON, XG-PON, XGS-PON and high-speed PON) as an example, and the ONU identification adopts the ONU ID at this time, and provides a method for the OLT to manage the ONU status in the GPON system, such as Figure 4 As shown, the details are as follows:

[0067] Step 201: The OLT device periodically performs a trigger detection on each ONU ID within the ONU ID allocation range. If it is detected that the ONU ID is occupied by an ONU device, the ONU ID is recorded in an ONU ID occupation table.

[0068] The OLT device first determines the ONU ID allocation range of the ONU device, for example, 1 to 64; then the OLT device can start a timer T to periodically perform trigger detection on each ONU ID within the ONU ID allocation range, specifically, to perform trigger inspection within the range of 1 to 64, requiring the ONU device occupying a specific ONU ID to respond to the uplink data, and then detect whether each ONU ID within the ONU ID allocation range is occupied. In the GPON system, the OLT device can detect whether the ONU ID is occupied by methods such as bandwidth authorization for the ONU ID or by PLOAM messages or management channel OMCI messages. Among them, for each ONU ID:

[0069] The bandwidth authorization method is specifically as follows: the OLT device sets ALLOCID equal to the minimum bandwidth authorization of the ONU ID in the BWmap (BandwidthMap) structure of the downstream GEM frame or the downstream XGEM frame, and broadcasts the downstream GEM frame or the downstream XGEM frame to each ONU device in the existing network, requiring the ONU device occupying the ONU ID to respond. After receiving the downstream GEM frame or the downstream XGEM frame, the ONU device with the ONU ID detects the ALLOCID and responds with a piece of data to the upstream burst frame (i.e., the upstream burst frame) in the time slot specified by the BWmap; after the OLT device detects the upstream burst frame in the corresponding time slot, it considers that the ONU ID is currently occupied, and then records the ONU ID in the local ONU ID occupancy table.

[0070] The PLOAM message method is specifically as follows: the OLT device broadcasts a downstream PLOAM message to each ONU device in the existing network, such as sending a PLOAM of Request_Registration (i.e., requesting registration), and designating an ONU device with the ONU ID to respond to the PLOAM and respond to its corresponding Registration information; after the OLT device receives the Registration information responded by the ONU ID, it considers that the ONU ID is currently occupied, and thus records the ONU ID in the local ONU ID occupancy table.

[0071] The OMCI message method is specifically as follows: the OLT device broadcasts the self-organized OMCI message to the ONU ID to each ONU device in the existing network through the management channel OMCI interface, and specifies the ONU device with the ONU ID to respond to the OMCI message; after the OLT device receives the response of the ONU ID, it is considered that the ONU ID is currently occupied, so the ONU ID is recorded in the local ONU ID occupancy table.

[0072] Step 202, the OLT device compares the ONU ID occupation table with the ONU authorization table. If the ONU ID recorded in the ONU ID occupation table does not exist in the ONU authorization table, it is determined that the ONU ID is illegally occupied, and the corresponding ONU device is regarded as a forgotten ONU.

[0073] For the GPON system, the ONU equipment and ONU ID thereof that can carry out service transmission of formal permission are stored in the described ONU authorization table. If the ONU ID recorded in the described ONU ID occupies the table is not in the described ONU authorization table, then it shows that this ONU ID is illegally occupied, and the ONU equipment that illegally occupies this ONU ID is exactly the forgotten ONU, and needs to further process according to the preset strategy. If the ONU ID recorded in the described ONU ID occupies the table is in the described ONU authorization table, then it shows that this ONU ID is not illegally occupied, and the forgotten detection of this ONU ID ends.

[0074] Step 203, the OLT device processes the forgotten ONU according to a preset forgotten ONU processing strategy; wherein the forgotten ONU processing strategy includes offline processing of the forgotten ONU or resource synchronization of the forgotten ONU.

[0075] The process of the OLT device taking the forgotten ONU offline is specifically as follows: the OLT device sends one or more deactive ONU PLOAMs to the forgotten ONU, designating the forgotten ONU to Figure 1 The working state O5 in the deactive ONU is exited to the initial state O1 to release the PON resources illegally occupied by the forgotten ONU. To ensure that the forgotten ONU can receive the PLOAM of the deactive ONU, the PLOAM can be sent multiple times.

[0076] The process of the OLT device synchronizing resources for the forgotten ONU is specifically as follows: using Mib Upload (Management Information Base Upload, i.e., management information base, which is a conventional operation specified by OMCI management) operation, uploading the PON resources occupied by the forgotten ONU to the OLT device through the OMCI management channel, and the OLT device synchronizing the received PON resources to its own PON MAC and reporting them to the operation and maintenance network management.

[0077] Two processing strategies are mainly provided here for the forgotten ONU, namely, forced offline and resource synchronization; of course, in an optional embodiment, other suitable strategies may also be selected to process the forgotten ONU, which is not specifically limited here.

[0078] Further, for any ONU ID, when the ONU ID is detected as illegally occupied by the OLT device for N consecutive detection cycles, it is determined that the ONU ID is abnormal, and the OLT device marks the ONU ID in the ONU ID occupation table. Specifically as follows:

[0079] During the first detection cycle, a count flag is set for the ONU ID in the ONU ID occupancy table and initialized to 0. In the subsequent periodic detection process, whenever the ONU ID is detected to be illegally occupied, the count flag of the ONU ID is increased by 1; when it is detected that the ONU ID is no longer illegally occupied, the count flag of the ONU ID is cleared. When the count flag of the ONU ID reaches the preset value N, it is determined that the ONU ID is abnormal and can no longer be managed by the OLT device, and the ONU ID can no longer be allocated and used by the OLT device again, then the OLT device marks the ONU ID in the ONU ID occupancy table. In addition, when it is determined that the ONU ID is abnormal, the OLT device can also actively report the ONUID to the operation and maintenance network manager to remind the operation and maintenance network manager that the ONU ID cannot be allocated and used again in the system; then when a new ONU device is online, the operation and maintenance network manager will select the ONU ID that has not been reported by the OLT device for allocation.

[0080] When a new ONU device is online, the operation and maintenance network management will allocate an ONUID to the new ONU device according to the reporting result, and the OLT device will allocate the ONU ID to the new ONU device and perform the ranging process, which is as follows:

[0081] The OLT device detects whether the ONU ID assigned by the operation and maintenance network manager is marked in the ONU ID occupancy table; if it is marked, it proves that the ONU ID is abnormal and can no longer be assigned and used, then the OLT device reports an error to the operation and maintenance network manager, stops the online process of the new ONU device, and requests the operation and maintenance network manager to reallocate the ONU ID to the new ONU device; if it is not marked, it proves that the ONU ID is not abnormal, then the OLT device continues to detect whether the ONU ID is currently occupied. If it is occupied, the OLT device reports an error to the operation and maintenance network manager, stops the online process of the new ONU device, and requests the operation and maintenance network manager to reallocate the ONU ID to the new ONU device; if it is not occupied, the OLT device allocates the ONU ID to the new ONU device, and performs a ranging process on the new ONU device. Among them, the specific detection method of whether the ONU ID is occupied can refer to the introduction in step 201, which will not be repeated here.

[0082] The method provided by the embodiment of the present invention can effectively solve the problem that the state of the OLT device maintenance in the GPON system is inconsistent with the state of the ONU device itself, which is more conducive to operation and maintenance; it can solve the resource conflict between the new ONU device and the forgotten ONU, so that the new ONU can quickly and normally enter the working state; it can solve the problem that two ONU devices with the same ONU ID appear in the same GPON at the same time, and avoid the appearance of rogue ONUs; it is conducive to the maintenance of the existing network, and only the OLT device needs to be upgraded, and there is no need to upgrade all ONU devices in the GPON system; the operations that can be performed on the forgotten ONU device are flexible, for example, it can be forced to go offline, mark the ONU ID, or update the OLT's own table items so that the ONU continues to work normally; the validity of PON resources can be effectively maintained, and PON resources can be recovered in time.

[0083] Example 3

[0084] On the basis of the above-mentioned embodiment 1, the embodiment of the present invention further takes the EPON system (including but not limited to conventional EPON and 10G-EPON) as an example, in which the ONU identifier adopts LLID, and provides a method for the OLT to manage the ONU status in the EPON system, such as Figure 5 As shown, the details are as follows:

[0085] Step 301: The OLT device periodically performs a trigger detection on each LLID within the LLID allocation range. If it is detected that the LLID is occupied by an ONU device, the LLID is recorded in the LLID occupation table.

[0086] The OLT device first determines the LLID allocation range of the ONU device, and then starts a timer T to periodically perform trigger detection on each LLID within the LLID allocation range, requiring the ONU device occupying a specific LLID to respond to the uplink data, and then detect whether each LLID within the LLID allocation range is occupied. In the EPON system, the OLT device can detect whether the LLID is occupied through the MPCP message. For each LLID, the MPCP message method is specifically as follows: the OLT device broadcasts a downstream MPCP message to each ONU device in the existing network, such as sending an MPCP for LLID bandwidth authorization, specifying that the ONU device with the LLID responds to the MPCP; after the OLT device receives a data response to the time slot allocated to the LLID, it considers that the LLID is currently occupied, and then records the LLID in the local LLID occupancy table.

[0087] Step 302: The OLT device compares the LLID occupation table with the ONU authorization table. If the LLID recorded in the LLID occupation table does not exist in the ONU authorization table, it is determined that the LLID is illegally occupied, and the corresponding ONU device is regarded as a forgotten ONU.

[0088] For the EPON system, the ONU authorization table stores the ONU equipment and LLID of the service transmission that are formally permitted. If the LLID recorded in the LLID occupancy table is not in the ONU authorization table, it indicates that the LLID is illegally occupied, and the ONU equipment that illegally occupies the LLID is the forgotten ONU, which needs to be further processed according to the preset strategy. If the LLID recorded in the LLID occupancy table is in the ONU authorization table, it indicates that the LLID is not illegally occupied, and the forgetting detection of the LLID ends.

[0089] Step 303: the OLT device processes the forgotten ONU according to a preset forgotten ONU processing strategy; wherein the forgotten ONU processing strategy includes offline processing of the forgotten ONU or resource synchronization of the forgotten ONU.

[0090] The process of the OLT device taking the forgotten ONU offline is specifically as follows: the OLT device sends one or more deregistration MPCP messages to the forgotten ONU, specifying the forgotten ONU to Figure 2 The registered state in the ONU is exited to the unregistered state to release the PON resources illegally occupied by the forgotten ONU. To ensure that the forgotten ONU can receive the MPCP message for deregistration, the MPCP message can be sent multiple times.

[0091] The process of the OLT device synchronizing resources for the forgotten ONU is specifically as follows: uploading the PON resources occupied by the forgotten ONU to the OLT device through the OAM management channel, and the OLT device synchronizing the received PON resources to its own PON MAC and reporting them to the operation and maintenance network management.

[0092] Two processing strategies are mainly provided here for the forgotten ONU, namely, forced offline and resource synchronization; of course, in an optional embodiment, other suitable strategies may also be selected to process the forgotten ONU, which is not specifically limited here.

[0093] Further, for any LLID, when the LLID is detected as illegally occupied by the OLT device for N consecutive detection cycles, it is determined that the LLID is abnormal, and the OLT device marks the LLID in the LLID occupation table. Specifically:

[0094] During the first detection cycle, a count flag is set for the LLID in the LLID occupancy table and initialized to 0. In the subsequent periodic detection process, whenever the LLID is detected to be illegally occupied, the count flag of the LLID is increased by 1; when it is detected that the LLID is no longer illegally occupied, the count flag of the LLID is cleared. When the count flag of the LLID reaches the preset value N, it is determined that the LLID is abnormal and can no longer be managed by the OLT device, and the LLID can no longer be allocated and used by the OLT device again, then the OLT device marks the LLID in the LLID occupancy table. In addition, when it is determined that the LLID is abnormal, the OLT device can also actively report the LLID to the operation and maintenance network manager to remind the operation and maintenance network manager that the LLID cannot be allocated and used again in the system; then when a new ONU device is online, the operation and maintenance network manager will select the LLID that has not been reported by the OLT device for allocation.

[0095] When a new ONU device is online, the operation and maintenance network management will allocate LLID to the new ONU device according to the reporting result, and the OLT device will allocate the LLID to the new ONU device and perform the ranging process, which is as follows:

[0096] The OLT device detects whether the LLID assigned by the operation and maintenance network manager is marked in the LLID occupancy table; if it is marked, it proves that the LLID is abnormal and can no longer be allocated and used, then the OLT device reports an error to the operation and maintenance network manager, stops the online process of the new ONU device, and requests the operation and maintenance network manager to reallocate the LLID to the new ONU device; if it is not marked, it proves that the LLID is not abnormal, then the OLT device continues to detect whether the LLID is currently occupied. If it is occupied, the OLT device reports an error to the operation and maintenance network manager, stops the online process of the new ONU device, and requests the operation and maintenance network manager to reallocate the LLID to the new ONU device; if it is not occupied, the OLT device allocates the LLID to the new ONU device and performs a ranging process on the new ONU device. Among them, the specific detection method of whether the LLID is occupied can refer to the introduction in step 301, which will not be repeated here.

[0097] The method provided by the embodiment of the present invention can effectively solve the problem that the state of the OLT device maintenance in the EPON system is inconsistent with the state of the ONU device itself, which is more conducive to operation and maintenance; it can solve the resource conflict between the new ONU device and the forgotten ONU, so that the new ONU can quickly and normally enter the working state; it can solve the problem that two ONU devices with the same LLID appear in the same EPON at the same time, avoiding the appearance of rogue ONUs; it is conducive to the maintenance of the existing network, and only the OLT device needs to be upgraded, and there is no need to upgrade all ONU devices in the EPON system; the operations that can be performed on the forgotten ONU device are flexible, for example, it can be forced to go offline, mark the LLID, or update the OLT's own table items so that the ONU continues to work normally; it can effectively maintain the validity of PON resources and recycle PON resources in time.

[0098] Example 4

[0099] Based on the method for OLT to manage ONU status provided in the above-mentioned embodiments 1 to 3, the present invention further provides a device for OLT to manage ONU status that can be used to implement the above-mentioned method, such as Figure 6 , which is a schematic diagram of the device architecture of an embodiment of the present invention. The device for managing the ONU status of the OLT in this embodiment includes one or more processors 21 and a memory 22. Figure 6 A processor 21 is taken as an example.

[0100] The processor 21 and the memory 22 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.

[0101] The memory 22 is a non-volatile computer-readable storage medium as a method for OLT managing ONU status, and can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as the method for OLT managing ONU status in Example 1. The processor 21 executes various functional applications and data processing of the device for OLT managing ONU status by running the non-volatile software programs, instructions and modules stored in the memory 22, that is, implements the method for OLT managing ONU status in Examples 1 to 3.

[0102] The memory 22 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the memory 22 may optionally include a memory remotely arranged relative to the processor 21, and these remote memories may be connected to the processor 21 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0103] The program instructions / modules are stored in the memory 22, and when executed by the one or more processors 21, the method for OLT to manage ONU status in the above-mentioned embodiments 1 to 3 is executed, for example, the method described above is executed. Figure 3-Figure 5 The steps shown.

[0104] A person skilled in the art may understand that all or part of the steps in the various methods of the embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0105] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for OLT to manage ONU status, characterized in that: include: The OLT device periodically performs a trigger detection on each ONU identifier within the allocation range. If it is detected that the ONU identifier is occupied by the ONU device, the ONU identifier is recorded in the ONU identifier occupation table; in each detection cycle, the trigger detection process of each ONU identifier is specifically as follows: the OLT device sends a detection message of the ONU identifier to each ONU device in the existing network, requiring the ONU device occupying the ONU identifier to respond; if the OLT device receives a response to the ONU identifier returned by the ONU device, it is considered that the ONU identifier is occupied, and the ONU identifier is recorded in the ONU identifier occupation table; if the OLT device does not receive a response to the ONU identifier returned by the ONU device, it is considered that the ONU identifier is not occupied, and the detection of the next ONU identifier within the allocation range is continued; The OLT device compares the ONU identification occupation table with the ONU authorization table. If the ONU identification recorded in the ONU identification occupation table does not exist in the ONU authorization table, it is determined that the ONU identification is illegally occupied, and the corresponding ONU device is used as a forgotten ONU; The OLT device processes the forgotten ONU according to a preset forgotten ONU processing strategy; wherein the forgotten ONU processing strategy includes offline processing of the forgotten ONU or resource synchronization of the forgotten ONU.

2. The method for OLT to manage ONU status according to claim 1, characterized in that: For any ONU identifier, when the ONU identifier is detected as illegally occupied by the OLT device for N consecutive detection cycles, it is determined that the ONU identifier is abnormal, and the OLT device marks the ONU identifier in the ONU identifier occupation table; wherein N≥2.

3. The method for OLT to manage ONU status according to claim 2, characterized in that: When the ONU identifier is detected as illegally occupied by the OLT device for N consecutive detection cycles, it is determined that the ONU identifier is abnormal, and the OLT device marks the ONU identifier in the ONU identifier occupancy table, specifically: During the first detection cycle, a counting flag is set for the ONU identifier in the ONU identifier occupancy table and initialized to 0; During the periodic detection process, whenever it is detected that the ONU identifier is illegally occupied, the count flag of the ONU identifier is increased by 1; when it is detected that the ONU identifier is no longer illegally occupied, the count flag of the ONU identifier is cleared; When the count flag of the ONU identifier reaches a preset value N, it is determined that the ONU identifier is abnormal and can no longer be managed by the OLT device, and the OLT device marks the ONU identifier in the ONU identifier occupancy table.

4. The method for OLT to manage ONU status according to claim 2, characterized in that: When it is determined that the ONU identifier is abnormal, the OLT device also reports the ONU identifier to the operation and maintenance network manager, reminding the operation and maintenance network manager that the ONU identifier cannot be allocated and used again in the system; when a new ONU device comes online, the operation and maintenance network manager selects the ONU identifier that has not been reported by the OLT device for allocation.

5. The method for OLT to manage ONU status according to claim 2, characterized in that: When a new ONU device is online, the method further includes: The OLT device detects whether the ONU identifier assigned by the operation and maintenance network management is currently abnormal and whether it is occupied. If the ONU identifier is currently normal and not occupied, the OLT device assigns the ONU identifier to the new ONU device and performs a ranging process on the new ONU device.

6. The method for OLT to manage ONU status according to claim 5, characterized in that: The OLT device detects whether the ONU identifier assigned by the operation and maintenance network management is currently abnormal and whether it is occupied. If the ONU identifier is currently normal and not occupied, the OLT device assigns the ONU identifier to the new ONU device, specifically: The OLT device detects whether the ONU identifier assigned by the operation and maintenance network manager is currently marked in the ONU identifier occupancy table; if it is marked, an error is reported to the operation and maintenance network manager, the online process of the new ONU device is stopped, and the operation and maintenance network manager is requested to reallocate the ONU identifier to the new ONU device; If it is not marked, continue to check whether the ONU identifier is currently occupied; If it is occupied, an error is reported to the operation and maintenance network manager, the online process of the new ONU device is stopped, and the operation and maintenance network manager is requested to reallocate the ONU identifier to the new ONU device; If it is not occupied, the ONU identifier is allocated to the new ONU device.

7. The method for OLT to manage ONU status according to claim 1, characterized in that: The specific process of the OLT device taking the forgotten ONU offline is as follows: The OLT device sends one or more ONU offline messages to the forgotten ONU, instructing the forgotten ONU to exit from a working state to an initial state, or from a registered state to an unregistered state, and releasing PON resources illegally occupied by the forgotten ONU.

8. The method for OLT to manage ONU status according to claim 1, characterized in that: The process of the OLT device performing resource synchronization on the forgotten ONU is specifically as follows: The PON resources occupied by the forgotten ONU are uploaded to the OLT device through the management channel, and the OLT device synchronizes the received PON resources to its own PON MAC and reports them to the operation and maintenance network management.

9. The method for OLT to manage ONU status according to any one of claims 1 to 8, characterized in that: In the GPON system, the ONU identifier adopts an ONU ID, and the OLT device detects whether the ONU ID is occupied by performing bandwidth authorization on the ONU ID or by using a PLOAM message or a management channel OMCI message.

10. The method for OLT to manage ONU status according to any one of claims 1 to 8, characterized in that: In the EPON system, the ONU identifier adopts LLID, and the OLT device detects whether the LLID is occupied through MPCP messages.

11. A device for OLT to manage ONU status, characterized in that: The method comprises at least one processor and a memory, wherein the at least one processor and the memory are connected via a data bus, and the memory stores instructions executable by the at least one processor, and after the instructions are executed by the processor, the method for OLT managing ONU status described in any one of claims 1 to 10 is used to complete.