Fault recovery method and device for broadband access system

By monitoring the exceptions of the ONU management module in the vOLT system and creating new instances, establishing database connections, and recovering ONU and OLT information, the problem of automatic recovery after ONU management module failure is solved, ensuring the continuity of online services and system stability .

CN114390377BActive Publication Date: 2024-11-12CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011116278.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-19
Publication Date
2024-11-12
Estimated Expiration
2040-10-19

AI Technical Summary

Technical Problem

In the vOLT system, the ONU management module fails to achieve rapid automatic recovery after failure, resulting in an impact on the online ONU business.

Method used

By monitoring exceptions of the ONU management module, create a new ONU management instance, and establish a connection to the target database partition, and fail-recovery based on ONU ME data, including restoring OLT connections and ONU/OLT information.

Benefits of technology

It realizes rapid automatic recovery after ONU management module failure, avoids the impact on online ONU services, and improves the reliability and stability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114390377B_ABST
    Figure CN114390377B_ABST
Patent Text Reader

Abstract

The present invention provides a fault recovery method and device for a broadband access system, the method comprising: monitoring an ONU management instance corresponding to an ONU management module of the broadband access system; if an abnormality of the ONU management instance is detected, creating a new ONU management instance; determining a target database partition corresponding to the new ONU management instance; establishing a connection between the new ONU management instance and the target database partition; and performing fault recovery on a service unit of the new ONU management instance according to ONU ME data in the target database partition, the fault recovery comprising: connection recovery with an OLT, and recovery of ONU ME data, OLT information and / or ONU information. In the present invention, an ONU management instance is created for an ONU management module in a broadband access system and the ONU management instance is monitored. If an ONU management instance fault is detected, a new ONU management instance is created to achieve rapid and automatic fault recovery.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of wired broadband networks, and in particular to a fault recovery method and device for a broadband access system. Background Art

[0002] Traditional wired broadband networks have many limitations, including difficulty in interoperability, slow launch of new features, and weak end-to-end differentiated service capabilities. The introduction of the vOLT (virtual Optical Line Terminal) architecture can solve these problems.

[0003] Please refer to Figure 1 Under the vOLT architecture, OLT (Optical Line Terminal)-UP (user plane) forwarding and OLT-CP (control plane) management and control are separated, and CP cloud deployment is realized. The cloud ONU management module in CP can better shield the diversity of EMS (Element Management System) of multiple manufacturers, OMCI (ONUManagement and Control Interface) understanding differences and OLT-UP equipment differences, so as to achieve the purpose of efficient intercommunication and decoupling.

[0004] After the ONU management module is cloud-based and centralized, the ONU (Optical Network Unit) (i.e. Figure 1 The number of gateways in the ONU network has increased dramatically, and once a problem occurs, a large number of complaints will be caused. Therefore, it is required that the ONU management module can be quickly and automatically restored after a failure to avoid affecting the services of online ONUs. The prior art does not propose a method for automatically restoring the ONU management module after a failure. Summary of the invention

[0005] The embodiment of the present invention provides a fault recovery method and device for a virtualized optical line terminal system, which are used to solve the problem of how to quickly and automatically recover after an ONU management module in a vOLT system fails.

[0006] In order to solve the above-mentioned technical problems, the present invention is achieved as follows:

[0007] In a first aspect, an embodiment of the present invention provides a fault recovery method for a broadband access system, comprising:

[0008] Monitor the ONU management instance corresponding to the ONU management module of the broadband access system;

[0009] If the ONU management instance is detected to be abnormal, a new ONU management instance is created;

[0010] Determine a target database partition corresponding to the new ONU management instance;

[0011] Establishing a connection between the new ONU management instance and the target database partition;

[0012] According to the ONU ME data in the target database partition, the service unit of the new ONU management instance is restored, and the restoration includes: restoration of connection with the OLT, and restoration of the ONU ME data, OLT information and / or ONU information.

[0013] Optionally, the ONU management instance corresponding to the ONU management module for monitoring the broadband access system further includes:

[0014] Create an ONU management instance for the first time for the ONU management module, and the ONU management instance corresponds to a target ID;

[0015] Establishing a target database partition corresponding to the target ID in the database;

[0016] The correspondence between the target ID and the target database partition is stored.

[0017] Optionally, determining a target database partition corresponding to the new ONU management instance includes:

[0018] According to the correspondence between the ID and the database partition, the target database partition corresponding to the target ID is found.

[0019] Optionally, according to the correspondence between the ID and the database partition, finding out the target database partition corresponding to the target ID includes:

[0020] Read the correspondence between ID and data partition in the local global configuration file;

[0021] Searching for a target database partition corresponding to the target ID from the corresponding relationship;

[0022] or

[0023] Loading a specified database partition of the database, wherein the specified database partition is used to store a corresponding relationship between an ID and a data partition;

[0024] Searching for a target database partition corresponding to the target ID from the corresponding relationship;

[0025] or

[0026] Find the target database partition corresponding to the target ID from the corresponding relationship between the externally stored ID and the data partition;

[0027] The identifier of the target database partition is passed to the ONU management instance in the form of a parameter through the ONU management configuration interface.

[0028] Optionally, the service unit includes an ONU management configuration management process, and performing fault recovery on the ONU management configuration management process of the new ONU management instance includes:

[0029] Reading OLT information from the target database partition;

[0030] Create a connection with the OLT based on the read OLT information;

[0031] According to the read OLT information, read the ONU information corresponding to each OLT from the target database partition;

[0032] According to the read OLT information and ONU information, parameter information of the ONU is read from the target database partition, where the parameter information includes at least one of the following: status information of the ONU and an ONU MIB count value.

[0033] The business unit includes an OMCI protocol process, and the OMCI protocol process of the new ONU management instance is restored to a fault and includes:

[0034] Restore the ME data uploaded by the ONU and configured by the OLT.

[0035] Optionally, restoring the ME data uploaded by the ONU and configured by the OLT includes:

[0036] Read the ONU record in the ONU information table and use the specified identification field to read the names of the OLT and ONU;

[0037] Use the names of OLT and ONU to query the ONU ME table corresponding to the ONU;

[0038] Read the records in the ONU ME table to obtain ME information, wherein the ME information includes: ME name, all parameter names and corresponding parameter values ​​of the decapsulated ME, ME category and ME instance number;

[0039] A memory linked list is used to store the ME information.

[0040] Optionally, at least one of the following is also included:

[0041] After the ONU management instance or new ONU management instance completes ONU MIB data synchronization or ONU OMCI configuration or query, the ONU ME data is written into the target database partition;

[0042] When the ONU management instance or the new ONU management instance receives an operation request from the OLT and / or ONU and completes the verification of the OLT and / or ONU configuration data, the verified OLT and / or ONU configuration data is written into the target database partition, and the operation request includes at least one of the following: a create request, a delete request, and a modify request.

[0043] Optionally, writing the ONU ME data into the target database partition includes:

[0044] If the ONU MIB data synchronization or the ONU OMCI configuration or query is successful, the ONU ME data is encapsulated to form a value, and the designated identification field is used as a keyword, and the keyword and the value are written into the target database partition.

[0045] Optionally, writing the verified OLT and / or ONU configuration data into the target database partition includes:

[0046] The verified OLT and / or ONU configuration data are mapped into parameter values ​​one by one, and the keyword and value are written into the target database partition using the designated identification field as a keyword.

[0047] In a second aspect, an embodiment of the present invention provides a fault recovery device for a broadband access system, comprising:

[0048] A monitoring module, used for monitoring an ONU management instance corresponding to an ONU management module of a broadband access system;

[0049] A first creation module is used to create a new ONU management instance if the ONU management instance is detected to be abnormal;

[0050] A determination module, used to determine a target database partition corresponding to the new ONU management instance;

[0051] A connection module, used for establishing a connection between the new ONU management instance and the target database partition;

[0052] A fault recovery module is used to perform fault recovery on the service unit of the new ONU management instance according to the ONU ME data in the target database partition, wherein the fault recovery includes: connection recovery with the OLT, and recovery of the ONU ME data, OLT information and / or ONU information.

[0053] Optionally, the fault recovery device of the broadband access system further includes:

[0054] A second creation module is used to create an ONU management instance for the first time for the ONU management module, and the ONU management instance corresponds to a target ID;

[0055] An establishing module, used for establishing a target database partition corresponding to the target ID in the database;

[0056] The storage module is used to store the corresponding relationship between the target ID and the target database partition.

[0057] Optionally, the determination module is used to find out the target database partition corresponding to the target ID according to the correspondence between the ID and the database partition.

[0058] Optionally, the determining module includes:

[0059] The first determination submodule is used to read the correspondence between the ID and the data partition in the local global configuration file; and search for the target database partition corresponding to the target ID from the correspondence;

[0060] or

[0061] The second determination submodule is used to load a designated database partition of the database, wherein the designated database partition is used to store a correspondence between an ID and a data partition; and to search for a target database partition corresponding to the target ID from the correspondence;

[0062] or

[0063] The third determination submodule is used to find out the target database partition corresponding to the target ID from the corresponding relationship between the externally stored ID and the data partition; and pass the identifier of the target database partition to the ONU management instance in the form of parameters through the ONU management configuration interface.

[0064] Optionally, the business unit includes an ONU management configuration management process, and the fault recovery is used to read OLT information from the target database partition; create a connection with the OLT based on the read OLT information; read ONU information corresponding to each OLT from the target database partition based on the read OLT information; read parameter information of the ONU from the target database partition based on the read OLT information and ONU information, and the parameter information includes at least one of the following: status information of the ONU and ONU MIB count value.

[0065] Optionally, the service unit includes an OMCI protocol process, and the fault recovery is used to recover the ME data uploaded by the ONU and configured by the OLT.

[0066] Optionally, restoring the ME data uploaded by the ONU and configured by the OLT includes:

[0067] Read the ONU record in the ONU information table and use the specified identification field to read the names of the OLT and ONU;

[0068] Use the names of OLT and ONU to query the ONU ME table corresponding to the ONU;

[0069] Read the records in the ONU ME table to obtain ME information, wherein the ME information includes: ME name, all parameter names and corresponding parameter values ​​of the decapsulated ME, ME category and ME instance number;

[0070] A memory linked list is used to store the ME information.

[0071] Optionally, the fault recovery device of the broadband access system further includes at least one of the following:

[0072] A first writing module is used for writing ONU ME data into the target database partition after the ONU management instance or the new ONU management instance completes ONU MIB data synchronization or ONU OMCI configuration or query;

[0073] The second writing module is used to write the verified OLT and / or ONU configuration data into the target database partition when the ONU management instance or the new ONU management instance receives an operation request from the OLT and / or ONU and completes the verification of the OLT and / or ONU configuration data, wherein the operation request includes at least one of the following: a create request, a delete request, and a modify request.

[0074] Optionally, the first writing module is used to encapsulate the ONU ME data to form a value if ONU MIB data synchronization or ONU OMCI configuration or query is successful, and use a designated identification field as a keyword to write the keyword and value into the target database partition.

[0075] Optionally, the second writing module is used to map the verified OLT and / or ONU configuration data into parameter values ​​one by one, and write the keyword and value into the target database partition using a designated identification field as a keyword.

[0076] In a third aspect, an embodiment of the present invention provides a network device, comprising: a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the steps of the fault recovery method for the broadband access system of the first aspect.

[0077] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the fault recovery method of the first aspect are implemented.

[0078] In the present invention, an ONU management instance is created for an ONU management module in a broadband access system and the ONU management instance is monitored. If an ONU management instance failure is detected, a new ONU management instance is created to achieve rapid and automatic recovery of the failure, thereby avoiding impact on the services of online ONUs. BRIEF DESCRIPTION OF THE DRAWINGS

[0079] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0080] Figure 1 It is a schematic diagram of the architecture of the broadband access system;

[0081] Figure 2 A schematic diagram of a flow chart of a fault recovery method for a broadband access system according to an embodiment of the present invention;

[0082] Figure 3 A schematic diagram of a monitoring method for an ONU management example according to an embodiment of the present invention;

[0083] Figure 4 A schematic diagram of the structure of a fault recovery device for a broadband access system according to an embodiment of the present invention;

[0084] Figure 5 The figure is a schematic diagram of the structure of a network device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0085] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0086] Please refer to Figure 2 The embodiment of the present invention provides a fault recovery method for a broadband access system, comprising:

[0087] Step 1: Monitor the ONU management instance corresponding to the ONU management module of the broadband access system;

[0088] Optionally, the broadband access system may be a VOLT system or other types of broadband access systems.

[0089] Optionally, the ONU management module may be an ONU management module. Figure 1The ONU management module is a module located in the OLT-CP and used to manage the ONU.

[0090] The ONU management instance is the process corresponding to the ONU management module, which is responsible for interacting with the database, completing the storage and import of internal data in the ONU management module, and scheduling the process to work in sequence.

[0091] The storage medium for database data realizes the persistent storage of ONU management data.

[0092] Step 2: If the ONU management instance is detected to be abnormal, a new ONU management instance is created;

[0093] Step 3: Determine the target database partition corresponding to the new ONU management instance;

[0094] The target database partition is used to store ONU ME (Managed Entities) data of the ONU management instance.

[0095] Step 4: Establish a connection between the new ONU management instance and the target database partition;

[0096] Step 5: According to the ONU ME data in the target database partition, the service unit of the new ONU management instance is restored, wherein the restoration includes: restoration of connection with the OLT, and restoration of the ONU ME data, OLT information and / or ONU information.

[0097] Optionally, the business unit may be a business process.

[0098] In the present invention, an ONU management instance is created for an ONU management module in a broadband access system and the ONU management instance is monitored. If an ONU management instance failure is detected, a new ONU management instance is created to achieve rapid and automatic recovery of the failure, thereby avoiding impact on the services of online ONUs.

[0099] Each step in the above method is described in detail below.

[0100] The above step 1 (monitoring the ONU management instance corresponding to the ONU management module of the broadband access system) also includes:

[0101] Step 01: Create an ONU management instance for the first time for the ONU management module, and the ONU management instance corresponds to a target ID;

[0102] Each ONU management instance has a globally unique ID, and the ID may include: a number and / or a character string, etc.

[0103] Step 02: Establishing a target database partition corresponding to the target ID in the database;

[0104] Step 03: Store the correspondence between the target ID and the target database partition.

[0105] When storing the correspondence between the target ID and the target database partition value, the correspondence may be stored in a local global configuration file, or in a designated data partition of the database, or outside the ONU management instance.

[0106] In the above step 2, optionally, the newly created ONU management instance adopts the same ID as the ONU management instance.

[0107] The above step 3 (determining the target database partition corresponding to the new ONU management instance) may include: searching for the target database partition corresponding to the target ID according to the corresponding relationship between the ID and the database partition.

[0108] In some embodiments of the present invention, according to the correspondence between the ID and the database partition, finding the target database partition corresponding to the target ID includes: reading the correspondence between the ID and the data partition in the local global configuration file; and finding the target database partition corresponding to the target ID from the correspondence.

[0109] In some embodiments of the present invention, according to the correspondence between the ID and the database partition, finding the target database partition corresponding to the target ID includes: loading a specified database partition of the database, such as database partition 0, the specified database partition being used to store the correspondence between the ID and the data partition; and finding the target database partition corresponding to the target ID from the correspondence.

[0110] In some embodiments of the present invention, according to the correspondence between the ID and the database partition, finding out the target database partition corresponding to the target ID includes: finding out the target database partition corresponding to the target ID from the correspondence between the ID and the data partition stored externally; and passing the identifier of the target database partition to the ONU management instance in the form of a parameter (such as int database=1) through the ONU management configuration interface.

[0111] In the embodiment of the present invention, the above step 1 (monitoring the ONU management instance corresponding to the ONU management module of the broadband access system) includes: when the ONU management instance is working normally, a monitor can be set to monitor the status of the ONU management instance in real time, see Figure 3 The monitor may be a monitoring process.

[0112] Optionally, the monitor and the ONU management instance are deployed in a distributed manner and are located on different physical machines, virtual machines, or containers.

[0113] After the ONU management instance is created, the monitor starts to monitor the status of the ONU management instance.

[0114] Optionally, the monitor monitors the state of the ONU management instance in a heartbeat manner. The monitor periodically sends a heartbeat request to the ONU management instance. After receiving the heartbeat request, the ONU management instance sends a heartbeat response to the monitor. The monitor determines the state of the ONU management instance based on whether the heartbeat response is received. For example, if a response is received, the ONU management instance is considered to be working normally, and if no response is received, the ONU management instance is considered to be abnormal.

[0115] The above step 4 (establishing a connection between the new ONU management instance and the target database partition) may include: initializing a database process, loading the target database partition, and establishing a connection between the new ONU management instance and the target database partition.

[0116] The process of initializing the database includes: initializing the database connection pool and setting at least one of the following parameters of the connection pool: the initial number of connections, the maximum number of connections, the IP (Internet Protocol) address and port of the database

[0117] Wherein, loading the target database partition and establishing a connection between the new ONU management instance and the target database partition includes: calling a connection pool to load the target database partition, establishing a connection between the new ONU management instance and the target database partition, and maintaining the life cycle of the connection.

[0118] In the embodiment of the present invention, while initializing the database process, the service process can also be initialized to improve the recovery speed. That is, before the service process of the new ONU management instance is restored according to the ONU ME data in the target database partition, the service process is also initialized.

[0119] The service process may include: ONU management configuration management process, OMCI (Optical Network Unit Management Control Interface) protocol process, etc.

[0120] The initialization of the above database process and business process at least includes: local memory initialization and data initialization.

[0121] In the above embodiment, after the database process is initialized and the target database partition is loaded, and the service process is initialized, the step of performing fault recovery on the service process of the new ONU management instance according to the ONU ME data in the target database partition can be executed.

[0122] The following describes the process of performing fault recovery on the service process of the new ONU management instance.

[0123] In the embodiment of the present invention, the fault recovery of the ONU management configuration management process may be performed first; and the fault recovery of the ONU management configuration management process of the new ONU management instance includes:

[0124] 1) reading OLT information from the target database partition; the OLT information includes at least one of the following: IP address, port number and other information;

[0125] 2) Create a connection with the OLT based on the read OLT information;

[0126] 3) Reading the ONU information corresponding to each OLT from the target database partition according to the read OLT information;

[0127] 4) Reading parameter information of the ONU from the target database partition according to the read OLT information and ONU information, wherein the parameter information includes at least one of the following: status information of the ONU and ONU MIB (protocol-independent Management Information Base) count value. The status information of the ONU includes at least one of the following: online status, configuration status, etc.

[0128] In the embodiment of the present invention, after performing fault recovery of the ONU management configuration management process, fault recovery of the OMCI protocol process can be performed, and fault recovery of the OMCI protocol process of the new ONU management instance includes: recovering the ME data uploaded by the ONU and configured by the OLT.

[0129] In the embodiment of the present invention, restoring the ME data uploaded by the ONU and configured by the OLT refers to restoring the ME information uploaded by the ONU and the ME information configured by the OLT in the database into a memory linked list that can be called at will. The specific process can be as follows:

[0130] 1) Use the table name of the ONU information table to query the ONU information table;

[0131] The name of the ONU information table is, for example, ONU-INFO.

[0132] 2) Read the ONU record in the ONU information table and use the specified identification field to read the names of the OLT and ONU;

[0133] Each row of ONU records in the ONU information table includes at least the following two types of content:

[0134] ONU name;

[0135] Basic information of the ONU, such as its physical location, device identification, and / or software and hardware versions.

[0136] In the embodiment of the present invention, the ONU records in the ONU information table are read line by line, and the names of the OLT and the ONU are read using the designated identification field;

[0137] The designated identification field may be a name field of the ONU and the OLT.

[0138] 3) Use the names of OLT and ONU to query the ONU ME table corresponding to the ONU and obtain the number of record rows in the ONU ME table;

[0139] For example, use "ONU ME:ONU globally unique id:*" to query the number of ONU ME data record rows corresponding to the ONU.

[0140] 4) reading the records in the ONU ME table to obtain ME information, wherein the ME information includes: ME name, all parameter names and corresponding parameter values ​​of the decapsulated ME, ME category and ME instance number;

[0141] Optionally, read the records of the ONU ME table line by line, first read the recorded ME name and the encapsulated data corresponding to the ME, then decapsulate the encapsulated data to obtain all parameter names and corresponding parameter values ​​of the ME, and then read the ME category and ME instance number.

[0142] 4) Use a memory linked list to store the ME information.

[0143] The memory linked list may include an OLT name, an ONU name, an ME category, an ME instance number, decapsulated ME parameters and corresponding parameter values.

[0144] After all services have completed fault recovery, the new ONU management instance will be in normal working state.

[0145] In the above embodiment, the fault recovery of the ONU management configuration management process is first performed, and then the fault recovery of the OMCI protocol process is performed. The processes are restored in order to achieve orderly recovery of the interrelated data to avoid data recovery errors.

[0146] In the embodiment of the present invention, in order to be able to recover the ONU management instance when the ONU management instance fails, the method in the embodiment of the present invention may also include: when the ONU management instance (including the ONU management instance created for the first time and the ONU management instance newly created after the above-mentioned failure occurs) completes ONU MIB data synchronization or ONU OMCI configuration or query, the ONU ME data is written into the target database partition.

[0147] In the embodiment of the present invention, optionally, writing the ONU ME data into the target database partition includes: if the ONU MIB data synchronization or the ONU OMCI configuration or query is successful, encapsulating the ONU ME data to form a value, and using a designated identification field (such as the name of the OLT and the ONU) as a keyword, writing the keyword and the value into the target database partition.

[0148] In the embodiment of the present invention, multi-level nested data storage and recovery (ie, encapsulation and decapsulation) is implemented, effectively solving the problem of introducing deviations in the data storage process.

[0149] In the embodiment of the present invention, when encapsulating the ONU ME data, a unified format, such as JSON format, can be used to encapsulate the ONU ME data. Encapsulating the ONU ME in a unified format to form a value can effectively avoid introducing new ambiguities in the process of writing into the database.

[0150] For example: using "table name:ONU globally unique ID:ME category:ME instance number" as a keyword, a JSON data structure is used to store ME parameters and parameter values, where the ONU globally unique ID is composed of the concatenation of the OLT name and the ONU name.

[0151] For example, if the keyword is: ONUME:OLT1ONU1:235:52, the value formed by encapsulating ONU ME is:

[0152]

[0153] In the embodiment of the present invention, the keywords and values ​​may be written into the target database partition through a database proxy interface or a database direct interface.

[0154] In the embodiment of the present invention, if the ONU MIB data synchronization or the ONU OMCI configuration or query fails, the ONU ME data is not written into the database.

[0155] ONU MIB data synchronization is mainly used to obtain the MIB information created by the ONU itself. The OUN management module is mainly used to modify or obtain the ONU MIB information created remotely by the OLT-CP through OMCI configuration / query. The ONU management instance stores both the ONU ME created remotely by the OLT-CP and the ME created by the ONU in the database, which is used to restore data when the ONU management instance is restarted after a failure of the ONU management instance, so as to achieve no perception of the ONU and no impact on user services.

[0156] In an embodiment of the present invention, in order to be able to recover the ONU management instance when the ONU management instance fails, the method in the embodiment of the present invention may also include: when the ONU management instance or a new ONU management instance receives an operation request from the OLT and / or ONU and completes the verification of the OLT and / or ONU configuration data, the verified OLT and / or ONU configuration data is written into the target database partition, and the operation request includes at least one of the following: a create request, a delete request, and a modify request.

[0157] In an embodiment of the present invention, writing the verified OLT and / or ONU configuration data into the target database partition includes: mapping the verified OLT and / or ONU configuration data into parameter values ​​one by one, and using designated identification fields (such as OLT and ONU names) as keywords, and writing the keywords and values ​​into the target database partition.

[0158] In the embodiment of the present invention, keywords and values ​​can be written into the target database partition through a database proxy interface or a database direct interface. For example, the OLT name is used as the keyword, and "parameter: OLT IP, parameter value: =3.3.3.3" and "parameter: OLT Port, parameter value: 5543" are used as the value.

[0159] In the embodiment of the present invention, if the OLT and / or ONU configuration data verification fails, the OLT and / or ONU configuration data will not be stored.

[0160] Based on the same invention concept, please refer to Figure 4 The embodiment of the present invention provides a fault recovery device 40 for a broadband access system, comprising:

[0161] A monitoring module 41, used for monitoring an ONU management instance corresponding to an ONU management module of a broadband access system;

[0162] A first creation module 42 is used to create a new ONU management instance if the ONU management instance is detected to be abnormal;

[0163] A determination module 43, used to determine a target database partition corresponding to the new ONU management instance;

[0164] A connection module 44, used to establish a connection between the new ONU management instance and the target database partition;

[0165] The fault recovery module 45 is used to perform fault recovery on the service process of the new ONU management instance according to the ONU ME data in the target database partition, wherein the fault recovery includes: connection recovery with the OLT, and recovery of the ONU ME data, OLT information and / or ONU information.

[0166] Optionally, the fault recovery device of the broadband access system further includes:

[0167] A second creation module is used to create an ONU management instance for the first time for the ONU management module, and the ONU management instance corresponds to a target ID;

[0168] An establishing module, used for establishing a target database partition corresponding to the target ID in the database;

[0169] The storage module is used to store the corresponding relationship between the target ID and the target database partition.

[0170] Optionally, the determination module is used to find out the target database partition corresponding to the target ID according to the correspondence between the ID and the database partition.

[0171] Optionally, the determining module includes:

[0172] The first determination submodule is used to read the correspondence between the ID and the data partition in the local global configuration file; and search for the target database partition corresponding to the target ID from the correspondence;

[0173] or

[0174] The second determination submodule is used to load a designated database partition of the database, wherein the designated database partition is used to store a correspondence between an ID and a data partition; and to search for a target database partition corresponding to the target ID from the correspondence;

[0175] or

[0176] The third determination submodule is used to find out the target database partition corresponding to the target ID from the corresponding relationship between the externally stored ID and the data partition; and pass the identifier of the target database partition to the ONU management instance in the form of parameters through the ONU management configuration interface.

[0177] Optionally, the business unit includes an ONU management configuration management process, and the fault recovery module is used to read OLT information from the target database partition; create a connection with the OLT based on the read OLT information; read ONU information corresponding to each OLT from the target database partition based on the read OLT information; read parameter information of the ONU from the target database partition based on the read OLT information and ONU information, and the parameter information includes at least one of the following: status information of the ONU and ONU MIB count value.

[0178] Optionally, the service unit includes an OMCI protocol process, and the fault recovery module is used to recover the ME data uploaded by the ONU and configured by the OLT.

[0179] Optionally, restoring the ME data uploaded by the ONU and configured by the OLT includes:

[0180] Read the ONU record in the ONU information table, and use the specified identification field to read the names of the OLT and the ONU;

[0181] Use the names of OLT and ONU to query the ONU ME table corresponding to the ONU;

[0182] Read the records in the ONU ME table to obtain ME information, wherein the ME information includes: ME name, all parameter names and corresponding parameter values ​​of the decapsulated ME, ME category and ME instance number;

[0183] A memory linked list is used to store the ME information.

[0184] Optionally, the fault recovery device of the broadband access system further includes at least one of the following:

[0185] A first writing module is used for writing ONU ME data into the target database partition after the ONU management instance or the new ONU management instance completes ONU MIB data synchronization or ONU OMCI configuration or query;

[0186] The second writing module is used to write the verified OLT and / or ONU configuration data into the target database partition when the ONU management instance or the new ONU management instance receives an operation request from the OLT and / or ONU and completes the verification of the OLT and / or ONU configuration data, wherein the operation request includes at least one of the following: a create request, a delete request, and a modify request.

[0187] Optionally, the first writing module is used to encapsulate the ONU ME data to form a value if ONU MIB data synchronization or ONU OMCI configuration or query is successful, and use a designated identification field as a keyword to write the keyword and value into the target database partition.

[0188] Optionally, the second writing module is used to map the verified OLT and / or ONU configuration data into parameter values ​​one by one, and write the keyword and value into the target database partition using a designated identification field as a keyword.

[0189] Please refer to Figure 5 The embodiment of the present invention further provides a network device 50, including a processor 51, a memory 52, and a computer program stored in the memory 52 and executable on the processor 51. When the computer program is executed by the processor 51, each process of the above-mentioned broadband access system fault recovery method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0190] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned broadband access system fault recovery method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0191] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0192] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0193] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A fault recovery method for a broadband access system, characterized in that: include: Monitor the ONU management instance corresponding to the ONU management module of the broadband access system; If the ONU management instance is detected to be abnormal, a new ONU management instance is created; Determine a target database partition corresponding to the new ONU management instance; Establishing a connection between the new ONU management instance and the target database partition; Performing fault recovery on the service unit of the new ONU management instance according to the ONU ME data in the target database partition, wherein the fault recovery includes: restoring the connection with the OLT, and restoring the ONU ME data, OLT information and / or ONU information; Wherein, the business unit includes an ONU management configuration management process, and performing fault recovery on the ONU management configuration management process of the new ONU management instance includes: Reading OLT information from the target database partition; Create a connection with the OLT based on the read OLT information; According to the read OLT information, read the ONU information corresponding to each OLT from the target database partition; According to the read OLT information and ONU information, parameter information of the ONU is read from the target database partition, wherein the parameter information includes at least one of the following: status information of the ONU and an ONU MIB count value; The service unit includes an OMCI protocol process, and performing fault recovery on the OMCI protocol process of the new ONU management instance includes: recovering ME data uploaded by the ONU and configured by the OLT.

2. The method according to claim 1, characterized in that The ONU management instance corresponding to the ONU management module for monitoring the broadband access system also includes: Create an ONU management instance for the first time for the ONU management module, and the ONU management instance corresponds to a target ID; Establishing a target database partition corresponding to the target ID in the database; The correspondence between the target ID and the target database partition is stored.

3. The method according to claim 1, characterized in that Determining the target database partition corresponding to the new ONU management instance includes: According to the correspondence between the ID and the database partition, find out the target database partition corresponding to the target ID.

4. The method according to claim 3, characterized in that According to the correspondence between the ID and the database partition, the target database partition corresponding to the target ID is found to include: Read the correspondence between ID and data partition in the local global configuration file; Searching for a target database partition corresponding to the target ID from the corresponding relationship; or Loading a specified database partition of the database, wherein the specified database partition is used to store a corresponding relationship between an ID and a data partition; Searching for a target database partition corresponding to the target ID from the corresponding relationship; or Find the target database partition corresponding to the target ID from the corresponding relationship between the externally stored ID and the data partition; The identifier of the target database partition is passed to the ONU management instance in the form of a parameter through the ONU management configuration interface.

5. The method according to claim 1, characterized in that Restoring the ME data uploaded by the ONU and configured by the OLT includes: Read the ONU record in the ONU information table and use the specified identification field to read the names of the OLT and ONU; Use the names of OLT and ONU to query the ONU ME table corresponding to the ONU; Read the records in the ONU ME table to obtain ME information, wherein the ME information includes: ME name, all parameter names and corresponding parameter values ​​of the decapsulated ME, ME category and ME instance number; A memory linked list is used to store the ME information.

6. The method according to claim 1, characterized in that Also includes at least one of the following: After the ONU management instance or new ONU management instance completes ONU MIB data synchronization or ONU OMCI configuration or query, the ONU ME data is written into the target database partition; When the ONU management instance or the new ONU management instance receives an operation request from the OLT and / or ONU and completes the verification of the OLT and / or ONU configuration data, the verified OLT and / or ONU configuration data is written into the target database partition, and the operation request includes at least one of the following: a create request, a delete request, and a modify request.

7. The method according to claim 6, characterized in that Writing the ONU ME data into the target database partition includes: If the ONU MIB data synchronization or the ONU OMCI configuration or query is successful, the ONU ME data is encapsulated to form a value, and the designated identification field is used as a keyword, and the keyword and the value are written into the target database partition.

8. The method according to claim 6, characterized in that Writing the verified OLT and / or ONU configuration data into the target database partition comprises: The verified OLT and / or ONU configuration data are mapped into parameter values ​​one by one, and the keyword and value are written into the target database partition using the designated identification field as a keyword.

9. A fault recovery device for a broadband access system, characterized in that: include: A monitoring module, used for monitoring an ONU management instance corresponding to an ONU management module of a broadband access system; A first creation module is used to create a new ONU management instance if the ONU management instance is detected to be abnormal; A determination module, used to determine a target database partition corresponding to the new ONU management instance; A connection module, used for establishing a connection between the new ONU management instance and the target database partition; A fault recovery module, used for performing fault recovery on the service unit of the new ONU management instance according to the ONU ME data in the target database partition, wherein the fault recovery includes: connection recovery with the OLT, and recovery of the ONU ME data, OLT information and / or ONU information; The business unit includes an ONU management configuration management process; the fault recovery module is used to read OLT information from the target database partition; create a connection with the OLT according to the read OLT information; read ONU information corresponding to each OLT from the target database partition according to the read OLT information; read parameter information of the ONU from the target database partition according to the read OLT information and ONU information, and the parameter information includes at least one of the following: status information of the ONU and ONU MIB count value; The service unit includes an OMCI protocol process, and the fault recovery module is used to recover the ME data uploaded by the ONU and configured by the OLT.

10. The device according to claim 9, characterized in that Also includes: A second creation module is used to create an ONU management instance for the first time for the ONU management module, and the ONU management instance corresponds to a target ID; An establishing module, used for establishing a target database partition corresponding to the target ID in the database; The storage module is used to store the corresponding relationship between the target ID and the target database partition.

11. The device according to claim 9, characterized in that The determination module is used to find out the target database partition corresponding to the target ID according to the corresponding relationship between the ID and the database partition.

12. The device according to claim 11, characterized in that The determination module comprises: The first determination submodule is used to read the correspondence between the ID and the data partition in the local global configuration file; and search for the target database partition corresponding to the target ID from the correspondence; or The second determination submodule is used to load a designated database partition of the database, wherein the designated database partition is used to store a correspondence between an ID and a data partition; and to search for a target database partition corresponding to the target ID from the correspondence; or The third determination submodule is used to find out the target database partition corresponding to the target ID from the corresponding relationship between the externally stored ID and the data partition; and pass the identifier of the target database partition to the ONU management instance in the form of parameters through the ONU management configuration interface.

13. The device according to claim 9, characterized in that Restoring the ME data uploaded by the ONU and configured by the OLT includes: Read the ONU record in the ONU information table and use the specified identification field to read the names of the OLT and ONU; Use the names of OLT and ONU to query the ONU ME table corresponding to the ONU; Read the records in the ONU ME table to obtain ME information, wherein the ME information includes: ME name, all parameter names and corresponding parameter values ​​of the decapsulated ME, ME category and ME instance number; A memory linked list is used to store the ME information.

14. The device according to claim 9, characterized in that Also includes at least one of the following: A first writing module is used for writing ONU ME data into the target database partition after the ONU management instance or the new ONU management instance completes ONU MIB data synchronization or ONU OMCI configuration or query; The second writing module is used to write the verified OLT and / or ONU configuration data into the target database partition when the ONU management instance or the new ONU management instance receives an operation request from the OLT and / or ONU and completes the verification of the OLT and / or ONU configuration data, wherein the operation request includes at least one of the following: a create request, a delete request, and a modify request.

15. The device according to claim 14, characterized in that The first writing module is used for encapsulating the ONU ME data into values ​​if ONU MIB data synchronization or ONU OMCI configuration or query is successful, and writing the keywords and values ​​into the target database partition using the designated identification field as keywords.

16. The device according to claim 14, characterized in that The second writing module is used to map the verified OLT and / or ONU configuration data into parameter values ​​one by one, and write the keyword and value into the target database partition using the designated identification field as a keyword.

17. A network device, characterized in that: include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of the fault recovery method for a broadband access system as claimed in any one of claims 1 to 8 are implemented.

18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the fault recovery method for a broadband access system according to any one of claims 1 to 8 are implemented.