CN114390377A - Fault recovery method and device of broadband access system - Google Patents

Fault recovery method and device of broadband access system Download PDF

Info

Publication number
CN114390377A
CN114390377A CN202011116278.7A CN202011116278A CN114390377A CN 114390377 A CN114390377 A CN 114390377A CN 202011116278 A CN202011116278 A CN 202011116278A CN 114390377 A CN114390377 A CN 114390377A
Authority
CN
China
Prior art keywords
onu
olt
database partition
target database
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011116278.7A
Other languages
Chinese (zh)
Inventor
胡新天
周文辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN202011116278.7A priority Critical patent/CN114390377A/en
Publication of CN114390377A publication Critical patent/CN114390377A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects
    • H04Q2011/0081Fault tolerance; Redundancy; Recovery; Reconfigurability

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a fault recovery method and a device of a broadband access system, wherein the method comprises the following steps: monitoring an ONU management example corresponding to an ONU management module of a broadband access system; if the ONU management instance is monitored to be abnormal, a new ONU management instance is created; determining a target database partition corresponding to the new ONU management instance; establishing connection between a new ONU management instance and a target database partition; according to ONU ME data in the target database partition, fault recovery is carried out on the service unit of the new ONU management example, and the fault recovery comprises the following steps: connection with the OLT is restored, and ONU ME data, OLT information and/or ONU information is restored. In the invention, an ONU management example is established for an ONU management module in a broadband access system and is monitored, and if the ONU management example is monitored to be in fault, the fault is quickly and automatically recovered by establishing a new ONU management example.

Description

Fault recovery method and device of broadband access system
Technical Field
The embodiment of the invention relates to the technical field of wired broadband networks, in particular to a fault recovery method and a fault recovery device for a broadband access system.
Background
The traditional wired broadband network has various limitations including difficult intercommunication, slow speed of new function launch, weak end-to-end differentiated service capability and the like, and the problems can be solved by introducing a virtual Optical Line Terminal (olt) architecture.
Referring to fig. 1, under the vOLT architecture, OLT (Optical Line Terminal) -UP (user plane) forwarding is separated from OLT-CP (control plane) management and control, and CP cloud deployment is implemented. The cloud ONU Management module in the CP can better shield the diversity of multi-manufacturer EMS (Element Management System), OMCI (ONU Management and Control Interface) understanding difference and OLT-UP equipment difference so as to achieve the purpose of high-efficiency intercommunication decoupling.
After the ONU management modules are clouded and centralized, ONUs (Optical Network units) (i.e. gateways in fig. 1) in charge of management are rapidly increasing, and once a problem occurs, a lot of complaints will be brought. Therefore, the ONU management module is required to be quickly and automatically recovered after a fault occurs, and the influence on the service of the online ONU is avoided. In the prior art, a method for automatically recovering an ONU management module after a fault is not provided.
Disclosure of Invention
The embodiment of the invention provides a fault recovery method and a fault recovery device for a virtualized optical line terminal system, which are used for solving the problem of how to quickly and automatically recover an ONU (optical network unit) management module in a vOLT (virtual optical line terminal) system after the ONU management module fails.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for recovering a failure of a broadband access system, including:
monitoring an ONU management example corresponding to an ONU management module of a broadband access system;
if the ONU management instance is monitored to be abnormal, a new ONU management instance is created;
determining a target database partition corresponding to the new ONU management instance;
establishing connection between the new ONU management instance and the target database partition;
and according to the ONU ME data in the target database partition, performing fault recovery on the service unit of the new ONU management instance, wherein the fault recovery comprises the following steps: connection with the OLT is restored, and ONU ME data, OLT information and/or ONU information is restored.
Optionally, the monitoring an ONU management instance corresponding to an ONU management module of the broadband access system further includes:
creating an ONU management instance for the ONU management module for the first time, wherein the ONU management instance corresponds to a target ID;
establishing a target database partition corresponding to the target ID in the database;
and storing the corresponding relation between the target ID and the target database partition.
Optionally, determining the target database partition corresponding to the new ONU management instance includes:
and searching a target database partition corresponding to the target ID according to the corresponding relation between the ID and the database partition.
Optionally, finding out the target database partition corresponding to the target ID according to the correspondence between the ID and the database partition includes:
reading the corresponding relation between the ID in the local global configuration file and the data partition;
searching a target database partition corresponding to the target ID from the corresponding relation;
or
Loading a specified database partition of the database, wherein the specified database partition is used for storing the corresponding relation between the ID and the data partition;
searching a target database partition corresponding to the target ID from the corresponding relation;
or
Searching a target database partition corresponding to the target ID from the corresponding relation between the externally stored ID and the data partition;
and transmitting the identifier of the target database partition to the ONU management example in a parameter form through an ONU management configuration interface.
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:
reading OLT information from the target database partition;
establishing connection with the OLT according to the read OLT information;
reading ONU information corresponding to each OLT from the target database partition according to the read OLT information;
reading parameter information of the ONU from the target database partition according to the read OLT information and the read ONU information, wherein the parameter information comprises at least one of the following items: status information of the ONU and an ONU MIB count value.
The service unit comprises an OMCI protocol process, and the fault recovery of the OMCI protocol process of the new ONU management instance comprises the following steps:
and recovering ME data uploaded by the ONU and configured by the OLT.
Optionally, the recovering ME data uploaded by the ONU and configured by the OLT includes:
reading ONU records in an ONU information table, and reading the names of OLT and ONU by using a specified identification field;
using the names of the OLT and the ONU to query an ONU ME table corresponding to the ONU;
reading the record in the ONU ME table to obtain ME information, wherein the ME information comprises: ME name, all parameter names of the ME after decapsulation, corresponding parameter values, ME category and ME instance number;
and storing the ME information by using a memory linked list.
Optionally, at least one of the following is also included:
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;
when the ONU management instance or the new ONU management instance receives an operation request of the OLT and/or the ONU and completes the verification of the OLT and/or the ONU configuration data, writing the verified OLT and/or ONU configuration data into the target database partition, where the operation request includes at least one of: create requests, delete requests, and modify requests.
Optionally, writing the ONU ME data into the target database partition includes:
and if the ONU MIB data is synchronous or the ONU OMCI is configured or inquired successfully, encapsulating the ONU ME data to form a value, and writing the key word and the value into the target database partition by taking the appointed identification field as the key word.
Optionally, writing the verified OLT and/or ONU configuration data into the target database partition includes:
and mapping the verified OLT and/or ONU configuration data into parameter values one by one, and writing the key words and the values into the target database partition by taking the designated identification field as the key words.
In a second aspect, an embodiment of the present invention provides a failure recovery apparatus for a broadband access system, including:
the monitoring module is used for monitoring an ONU management example corresponding to the ONU management module of the broadband access system;
the first establishing module is used for establishing a new ONU management example if the ONU management example is monitored to be abnormal;
a determining module, configured to determine a target database partition corresponding to the new ONU management instance;
the connection module is used for establishing the connection between the new ONU management instance and the target database partition;
a failure recovery module, configured to perform failure recovery on the service unit of the new ONU management instance according to the ONU ME data in the target database partition, where the failure recovery includes: connection with the OLT is restored, and ONU ME data, OLT information and/or ONU information is restored.
Optionally, the failure recovery apparatus of the broadband access system further includes:
the second creation module is used for creating an ONU management instance for the ONU management module for the first time, and the ONU management instance corresponds to the target ID;
the establishing module is used for establishing a target database partition corresponding to the target ID in the database;
and the storage module is used for storing the corresponding relation between the target ID and the target database partition.
Optionally, the determining module is configured to find out the target database partition corresponding to the target ID according to the correspondence between the ID and the database partition.
Optionally, the determining module includes:
the first determining submodule is used for reading the corresponding relation between the ID in the local global configuration file and the data partition; searching a target database partition corresponding to the target ID from the corresponding relation;
or
The second determining submodule is used for loading a specified database partition of the database, and the specified database partition is used for storing the corresponding relation between the ID and the data partition; searching a target database partition corresponding to the target ID from the corresponding relation;
or
The third determining submodule is used for searching a target database partition corresponding to the target ID from the corresponding relation between the externally stored ID and the data partition; and transmitting the identifier of the target database partition to the ONU management example in a parameter form through an ONU management configuration interface.
Optionally, the service unit includes an ONU management configuration management process, and the fault recovery is configured to read OLT information from the target database partition; establishing connection with the OLT according to the read OLT information; reading ONU information corresponding to each OLT from the target database partition according to the read OLT information; reading parameter information of the ONU from the target database partition according to the read OLT information and the read ONU information, wherein the parameter information comprises at least one of the following items: status information of the ONU and an ONU MIB count value.
Optionally, the service unit includes an OMCI protocol process, and the fault recovery is configured to recover ME data uploaded by the ONU and configured by the OLT.
Optionally, the recovering ME data uploaded by the ONU and configured by the OLT includes:
reading ONU records in an ONU information table, and reading the names of OLT and ONU by using a specified identification field;
using the names of the OLT and the ONU to query an ONU ME table corresponding to the ONU;
reading the record in the ONU ME table to obtain ME information, wherein the ME information comprises: ME name, all parameter names of the ME after decapsulation, corresponding parameter values, ME category and ME instance number;
and storing the ME information by using a memory linked list.
Optionally, the failure recovery apparatus of the broadband access system further includes at least one of:
the first write-in 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;
a second writing module, configured to write verified OLT and/or ONU configuration data into the target database partition after the ONU management instance or the new ONU management instance receives an operation request of the OLT and/or the ONU and completes verification of OLT and/or ONU configuration data, where the operation request includes at least one of the following: create requests, delete requests, and modify requests.
Optionally, the first write-in module is configured to, if ONU MIB data is synchronized or ONU OMCI is configured or queried successfully, encapsulate the ONU ME data to form a value, and write the key and the value into the target database partition by using a specified identification field as a key.
Optionally, the second writing module is configured to map the verified OLT and/or ONU configuration data into parameter values one by one, and write the key and the value into the target database partition with a specified identification field as a key.
In a third aspect, an embodiment of the present invention provides a network device, including: a processor, a memory and a program stored on the memory and executable on the processor, the program, when executed by the processor, implementing the steps of the method for fault recovery of a broadband access system of the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the fault recovery method of the first aspect.
In the invention, an ONU management example is established for an ONU management module in a broadband access system and is monitored, if the ONU management example is monitored to be in fault, the fault is quickly and automatically recovered by establishing a new ONU management example, and the influence on the service of the on-line ONU is avoided.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a schematic architecture diagram of a broadband access system;
fig. 2 is a flowchart illustrating a method for recovering from a failure in a broadband access system according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a monitoring method of an ONU management embodiment according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a failure recovery apparatus of a broadband access system according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a network device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 2, an embodiment of the present invention provides a method for recovering from a failure in a broadband access system, including:
step 1: monitoring an ONU management example corresponding to an ONU management module of a broadband access system;
alternatively, the broadband access system may be a VOLT system, or may be another type of broadband access system.
Optionally, the ONU management module may be an ONU management module. Referring to fig. 1, the ONU management module is a module located in the OLT-CP for managing the ONU.
And the ONU management example is a process corresponding to the ONU management module and is responsible for interacting with the database, finishing internal data storage and import of the ONU management module, and scheduling processes work in sequence.
And the storage medium of the database data realizes the persistent storage of the ONU management data.
Step 2: if the ONU management instance is monitored to be abnormal, a new ONU management instance is created;
and step 3: determining a target database partition corresponding to the new ONU management instance;
the target database partition is configured to store ONU ME (Managed Entities) data of the ONU management instance.
And 4, step 4: establishing connection between the new ONU management instance and the target database partition;
and 5: and according to the ONU ME data in the target database partition, performing fault recovery on the service unit of the new ONU management instance, wherein the fault recovery comprises the following steps: connection with the OLT is restored, and ONU ME data, OLT information and/or ONU information is restored.
Optionally, the service unit may be a service process.
In the invention, an ONU management example is established for an ONU management module in a broadband access system and is monitored, if the ONU management example is monitored to be in fault, the fault is quickly and automatically recovered by establishing a new ONU management example, and the influence on the service of the on-line ONU is avoided.
The following is a detailed description of each step in the above-described method.
Before step 1 (monitoring an ONU management instance corresponding to an ONU management module of the broadband access system), the method further includes:
step 01: creating an ONU management instance for the ONU management module for the first time, wherein the ONU management instance corresponds to a target ID;
each ONU management instance has a globally unique ID, which may include: numbers and/or character strings, etc.
Step 02: establishing a target database partition corresponding to the target ID in the database;
step 03: and storing the corresponding relation between the target ID and the target database partition.
When storing the corresponding relationship between the target ID and the partition value of the target database, the corresponding relationship may be stored in the local global configuration file, or stored in a specific data partition of the database, or stored outside the ONU management instance.
In step 2, optionally, the created new ONU management instance uses the same ID as the ONU management instance.
The step 3 (determining the target database partition corresponding to the new ONU management instance) may include: and searching a target database partition corresponding to the target ID according to the corresponding relation between the ID and the database partition.
In some embodiments of the present invention, finding out the target database partition corresponding to the target ID according to the correspondence between the ID and the database partition includes: reading the corresponding relation between the ID in the local global configuration file and the data partition; and searching a target database partition corresponding to the target ID from the corresponding relation.
In some embodiments of the present invention, finding out the target database partition corresponding to the target ID according to the correspondence between the ID and the database partition includes: loading a specified database partition of the database, such as database partition 0, wherein the specified database partition is used for storing the corresponding relation between the ID and the data partition; and searching a target database partition corresponding to the target ID from the corresponding relation.
In some embodiments of the present invention, finding out the target database partition corresponding to the target ID according to the correspondence between the ID and the database partition includes: searching a target database partition corresponding to the target ID from the corresponding relation between the externally stored ID and the data partition; and transmitting the identifier of the target database partition to the ONU management instance in a parameter form (such as int database ═ 1) through an ONU management configuration interface.
In an embodiment of the present invention, step 1 (monitoring an ONU management instance corresponding to an ONU management module of a broadband access system) includes: when the ONU management instance is working normally, the state of the ONU management instance may be monitored in real time by setting a monitor, please refer to fig. 3. The monitor may be a monitoring process.
Optionally, the monitor and the ONU management instance are deployed in a distributed manner and located on different physical machines, virtual machines, or containers.
After the ONU management instance is created, the monitor starts monitoring the status of the ONU management instance.
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, and the ONU management instance sends a heartbeat response to the monitor after receiving the heartbeat request. And the monitor judges the state of the ONU management instance according to whether the heartbeat response is received or not. For example, the ONU management instance is considered to be working normally when the response is received, and the ONU management instance is considered to be abnormal when the response is not received.
The step 4 (establishing the 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 the connection between the new ONU management instance and the target database partition.
Wherein initializing the database process comprises: initializing a database connection pool, and setting at least one of the following parameters of the connection pool: initial connection number, maximum connection number, IP (Internet Protocol) address and port of database
Wherein loading the target database partition and establishing the connection between the new ONU management instance and the target database partition comprises: and calling a connection pool to load the target database partition, establishing connection between the new ONU management instance and the target database partition, and maintaining the life cycle of the connection.
In the embodiment of the invention, the database process is initialized, and the service process can be initialized at the same time, so that the recovery speed is improved. Before performing fault recovery on the service process of the new ONU management instance according to the ONU ME data in the target database partition, the method further includes: and initializing the business process.
The business process may include: an ONU management configuration management process, an OMCI (optical network unit management control interface) protocol process, and the like.
The initialization of the database process and the business process at least comprises the following steps: local memory initialization and data initialization.
In the above embodiment, after the initialization of the database process and the loading of the target database partition are completed, and the initialization of the service process is completed, 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 may be performed.
The following describes a process of performing fault recovery on the service process of the new ONU management instance.
In the embodiment of the invention, the fault recovery of the ONU management configuration management process can be firstly carried out; the fault recovery of the ONU management configuration management process of the new ONU management instance includes:
1) reading OLT information from the target database partition; the OLT information includes at least one of: information such as IP address, port number, etc.;
2) establishing connection with the OLT according to the read OLT information;
3) reading ONU information corresponding to each OLT from the target database partition according to the read OLT information;
4) reading parameter information of the ONU from the target database partition according to the read OLT information and the read ONU information, wherein the parameter information comprises at least one of the following items: status Information of the ONU and an ONU MIB (protocol-independent Management Information Base) count value. The status information of the ONU includes at least one of: presence status, configuration status, etc.
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 may be performed, and performing fault recovery on the OMCI protocol process of the new ONU management instance includes: and recovering ME data uploaded by the ONU and configured by the OLT.
In the embodiment of the present invention, the recovering the ME data uploaded by the ONU and configured by the OLT means that the ME information uploaded by the ONU and the ME information configured by the OLT in the database are restored into a memory linked list that can be called at will, and the specific process may be as follows:
1) using the table name of the ONU information table to inquire the ONU information table;
the table name of the ONU information table is ONU-INFO.
2) Reading ONU records in the ONU information table, and reading the names of OLT and ONU by using a specified identification field;
each row of ONU records in the ONU information table at least comprises the following two types of contents:
an ONU name;
basic information such as the physical location, device identification, and/or software and hardware versions of the ONU.
In the embodiment of the invention, ONU records in the ONU information table are read line by line, and the names of OLT and ONU are read by using the appointed identification field;
the specified identification field may be a name field of the ONU and the OLT.
3) Using the names of the OLT and the ONU to query an ONU ME table corresponding to the ONU and obtain the number of recording lines of the ONU ME table;
for example, using "ONU ME: ONU globally unique id: and querying the number of the ONU ME data recording lines corresponding to the ONU.
4) Reading the record in the ONU ME table to obtain ME information, wherein the ME information comprises: ME name, all parameter names of the ME after decapsulation, corresponding parameter values, ME category and ME instance number;
optionally, the records of the ONU ME table are read line by line, the recorded ME name and the encapsulated data corresponding to the ME are read first, then the encapsulated data is decapsulated to obtain all the parameter names and corresponding parameter values of the ME, and then the ME category and the ME instance number are read.
4) And storing the ME information by using a memory linked list.
The memory linked list may include an OLT name, an ONU name, an ME category, an ME instance number, a decapsulated ME parameter, and a corresponding parameter value.
And after all services complete fault recovery, the new ONU management instance carries out a normal working state.
In the above embodiment, the fault recovery of the ONU management configuration management process is performed first, then the fault recovery of the OMCI protocol process is performed, and the processes are sequentially recovered to realize the ordered recovery of the correlated data, thereby avoiding the occurrence of data recovery errors.
In this embodiment of the present invention, in order to recover the ONU management instance when the ONU management instance fails, the method in this embodiment of the present invention may further include: and when the ONU management example (comprising the ONU management example created for the first time and the ONU management example newly created after the fault occurs) completes the synchronization of ONU MIB data or the ONU OMCI configuration or inquiry, writing the ONU ME data into the target database partition.
In this embodiment of the present invention, optionally, writing the ONU ME data into the target database partition includes: and if the ONU MIB data is synchronized or the ONU OMCI is configured or inquired successfully, encapsulating the ONU ME data to form a value, and writing the key and the value into the target database partition by taking a designated identification field (such as the names of an OLT and an ONU) as a key.
In the embodiment of the invention, the multi-level nested data storage and recovery (namely encapsulation and decapsulation) are realized, and the problem of deviation introduced in the data storage process is effectively solved.
In the embodiment of the invention, when the ONU ME data is packaged, the ONU ME data can be packaged by adopting a uniform format, such as a JSON format. And the ONU ME is packaged into a value in a uniform format, so that new ambiguity introduced in the process of writing in the database can be effectively avoided.
For example: and taking the table name, the ONU global unique ID, the ME category and the ME instance number as key words, and storing ME parameters and parameter values by adopting a JSON data structure, wherein the ONU global unique ID is formed by splicing an OLT name and an ONU name.
For example: the key words are: ONUME OLT1ONU1:235:52, the value formed by encapsulating ONU ME is:
Figure BDA0002730300240000121
in the embodiment of the invention, the keywords and the values can be written into the target database partition through a database proxy interface or a database direct interface.
In the embodiment of the invention, if ONU MIB data synchronization or ONU OMCI configuration or query fails, ONU ME data is not written into the database.
The ONU MIB data synchronization is mainly used for acquiring ONU self-created MIB information, and the OUN management module is mainly used for modifying or acquiring the ONU MIB information created by the OLT-CP remote end through OMCI configuration/query. And the ONU management example stores the ONU ME created by the OLT-CP far end and the ME created by the ONU in a database, and is used for recovering data when restarting the ONU management example after the ONU management example fails, so that no perception is given to the ONU, and the user service is not influenced.
In this embodiment of the present invention, in order to recover the ONU management instance when the ONU management instance fails, the method in this embodiment of the present invention may further include: when the ONU management instance or the new ONU management instance receives an operation request of the OLT and/or the ONU and completes the verification of the OLT and/or the ONU configuration data, writing the verified OLT and/or ONU configuration data into the target database partition, where the operation request includes at least one of: create requests, delete requests, and modify requests.
In the embodiment of the present invention, writing the verified OLT and/or ONU configuration data into the target database partition includes: and mapping the verified OLT and/or ONU configuration data into parameter values one by one, and writing the keywords and the values into the target database partition by taking specified identification fields (such as OLT and ONU names) as keywords.
In the embodiment of the invention, the keywords and the values can be written into the target database partition through a database proxy interface or a database direct interface. For example: taking the name of OLT as a key word, taking the parameter: OLT IP, parameter value: 3.3.3.3 "," parameter: OLT Port, parameter value: 5543 "is a value.
In the embodiment of the invention, if the OLT and/or ONU configuration data is not qualified, the OLT and/or ONU configuration data is not stored.
Based on the same inventive concept, referring to fig. 4, an embodiment of the present invention provides a failure recovery apparatus 40 for a broadband access system, including:
the monitoring module 41 is configured to monitor an ONU management instance corresponding to an ONU management module of the broadband access system;
a first creating module 42, configured to create a new ONU management instance if it is monitored that the ONU management instance is abnormal;
a determining module 43, configured to determine a target database partition corresponding to the new ONU management instance;
a connection module 44, configured to establish a connection between the new ONU management instance and the target database partition;
a failure recovery module 45, configured to perform failure recovery on the service process of the new ONU management instance according to the ONU ME data in the target database partition, where the failure recovery includes: connection with the OLT is restored, and ONU ME data, OLT information and/or ONU information is restored.
Optionally, the failure recovery apparatus of the broadband access system further includes:
the second creation module is used for creating an ONU management instance for the ONU management module for the first time, and the ONU management instance corresponds to the target ID;
the establishing module is used for establishing a target database partition corresponding to the target ID in the database;
and the storage module is used for storing the corresponding relation between the target ID and the target database partition.
Optionally, the determining module is configured to find out the target database partition corresponding to the target ID according to the correspondence between the ID and the database partition.
Optionally, the determining module includes:
the first determining submodule is used for reading the corresponding relation between the ID in the local global configuration file and the data partition; searching a target database partition corresponding to the target ID from the corresponding relation;
or
The second determining submodule is used for loading a specified database partition of the database, and the specified database partition is used for storing the corresponding relation between the ID and the data partition; searching a target database partition corresponding to the target ID from the corresponding relation;
or
The third determining submodule is used for searching a target database partition corresponding to the target ID from the corresponding relation between the externally stored ID and the data partition; and transmitting the identifier of the target database partition to the ONU management example in a parameter form through an ONU management configuration interface.
Optionally, the service unit includes an ONU management configuration management process, and the fault recovery module is configured to read OLT information from the target database partition; establishing connection with the OLT according to the read OLT information; reading ONU information corresponding to each OLT from the target database partition according to the read OLT information; reading parameter information of the ONU from the target database partition according to the read OLT information and the read ONU information, wherein the parameter information comprises at least one of the following items: status information of the ONU and an ONU MIB count value.
Optionally, the service unit includes an OMCI protocol process, and the fault recovery module is configured to recover ME data uploaded by the ONU and configured by the OLT.
Optionally, the recovering ME data uploaded by the ONU and configured by the OLT includes:
reading ONU records in the ONU information table, and reading the names of OLT and ONU by using a specified identification field;
using the names of the OLT and the ONU to query an ONU ME table corresponding to the ONU;
reading the record in the ONU ME table to obtain ME information, wherein the ME information comprises: ME name, all parameter names of the ME after decapsulation, corresponding parameter values, ME category and ME instance number;
and storing the ME information by using a memory linked list.
Optionally, the failure recovery apparatus of the broadband access system further includes at least one of:
the first write-in 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;
a second writing module, configured to write verified OLT and/or ONU configuration data into the target database partition after the ONU management instance or the new ONU management instance receives an operation request of the OLT and/or the ONU and completes verification of OLT and/or ONU configuration data, where the operation request includes at least one of the following: create requests, delete requests, and modify requests.
Optionally, the first write-in module is configured to, if ONU MIB data is synchronized or ONU OMCI is configured or queried successfully, encapsulate the ONU ME data to form a value, and write the key and the value into the target database partition by using a specified identification field as a key.
Optionally, the second writing module is configured to map the verified OLT and/or ONU configuration data into parameter values one by one, and write the key and the value into the target database partition with a specified identification field as a key.
Referring to fig. 5, an embodiment of the present invention further provides a network device 50, which includes a processor 51, a memory 52, and a computer program stored in the memory 52 and capable of running on the processor 51, where the computer program, when executed by the processor 51, implements the processes of the above-mentioned embodiment of the method for recovering from a failure of a broadband access system, and can achieve the same technical effects, and therefore, in order to avoid repetition, the details are not repeated here.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned embodiment of the method for recovering a fault of a broadband access system, and can achieve the same technical effect, and is not described herein again to avoid repetition. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (22)

1. A method for recovering from a failure in a broadband access system, comprising:
monitoring an ONU management example corresponding to an ONU management module of a broadband access system;
if the ONU management instance is monitored to be abnormal, a new ONU management instance is created;
determining a target database partition corresponding to the new ONU management instance;
establishing connection between the new ONU management instance and the target database partition;
and according to the ONU ME data in the target database partition, performing fault recovery on the service unit of the new ONU management instance, wherein the fault recovery comprises the following steps: connection with the OLT is restored, and ONU ME data, OLT information and/or ONU information is restored.
2. The method of claim 1, wherein monitoring ONU management instances corresponding to ONU management modules of the broadband access system further comprises:
creating an ONU management instance for the ONU management module for the first time, wherein the ONU management instance corresponds to a target ID;
establishing a target database partition corresponding to the target ID in the database;
and storing the corresponding relation between the target ID and the target database partition.
3. The method of claim 1, wherein determining the target database partition corresponding to the new ONU management instance comprises:
and finding out the target database partition corresponding to the target ID according to the corresponding relation between the ID and the database partition.
4. The method of claim 3, wherein finding the target database partition corresponding to the target ID according to the correspondence between the ID and the database partition comprises:
reading the corresponding relation between the ID in the local global configuration file and the data partition;
searching a target database partition corresponding to the target ID from the corresponding relation;
or
Loading a specified database partition of the database, wherein the specified database partition is used for storing the corresponding relation between the ID and the data partition;
searching a target database partition corresponding to the target ID from the corresponding relation;
or
Searching a target database partition corresponding to the target ID from the corresponding relation between the externally stored ID and the data partition;
and transmitting the identifier of the target database partition to the ONU management example in a parameter form through an ONU management configuration interface.
5. The method of claim 1, wherein the service unit comprises an ONU management configuration management process, and wherein performing fault recovery on the ONU management configuration management process of the new ONU management instance comprises:
reading OLT information from the target database partition;
establishing connection with the OLT according to the read OLT information;
reading ONU information corresponding to each OLT from the target database partition according to the read OLT information;
reading parameter information of the ONU from the target database partition according to the read OLT information and the read ONU information, wherein the parameter information comprises at least one of the following items: status information of the ONU and an ONU MIB count value.
6. The method of claim 1, wherein the service unit comprises an OMCI protocol process, and wherein performing fault recovery on the OMCI protocol process of the new ONU management instance comprises:
and recovering ME data uploaded by the ONU and configured by the OLT.
7. The method of claim 6, wherein recovering the ME data uploaded by the ONU and configured by the OLT comprises:
reading ONU records in an ONU information table, and reading the names of OLT and ONU by using a specified identification field;
using the names of the OLT and the ONU to query an ONU ME table corresponding to the ONU;
reading the record in the ONU ME table to obtain ME information, wherein the ME information comprises: ME name, all parameter names of the ME after decapsulation, corresponding parameter values, ME category and ME instance number;
and storing the ME information by using a memory linked list.
8. The method of claim 1, further comprising at least one of:
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;
when the ONU management instance or the new ONU management instance receives an operation request of the OLT and/or the ONU and completes the verification of the OLT and/or the ONU configuration data, writing the verified OLT and/or ONU configuration data into the target database partition, where the operation request includes at least one of: create requests, delete requests, and modify requests.
9. The method of claim 8, wherein writing ONU ME data into the target database partition comprises:
and if the ONU MIB data is synchronous or the ONU OMCI is configured or inquired successfully, encapsulating the ONU ME data to form a value, and writing the key word and the value into the target database partition by taking the appointed identification field as the key word.
10. The method of claim 8, wherein writing the verified OLT and/or ONU configuration data into the target database partition comprises:
and mapping the verified OLT and/or ONU configuration data into parameter values one by one, and writing the key words and the values into the target database partition by taking the designated identification field as the key words.
11. A failure recovery apparatus of a broadband access system, comprising:
the monitoring module is used for monitoring an ONU management example corresponding to the ONU management module of the broadband access system;
the first establishing module is used for establishing a new ONU management example if the ONU management example is monitored to be abnormal;
a determining module, configured to determine a target database partition corresponding to the new ONU management instance;
the connection module is used for establishing the connection between the new ONU management instance and the target database partition;
a failure recovery module, configured to perform failure recovery on the service unit of the new ONU management instance according to the ONU ME data in the target database partition, where the failure recovery includes: connection with the OLT is restored, and ONU ME data, OLT information and/or ONU information is restored.
12. The apparatus of claim 11, further comprising:
the second creation module is used for creating an ONU management instance for the ONU management module for the first time, and the ONU management instance corresponds to the target ID;
the establishing module is used for establishing a target database partition corresponding to the target ID in the database;
and the storage module is used for storing the corresponding relation between the target ID and the target database partition.
13. The apparatus of claim 11,
and the determining module is used for finding out the target database partition corresponding to the target ID according to the corresponding relation between the ID and the database partition.
14. The apparatus of claim 13, wherein the determining module comprises:
the first determining submodule is used for reading the corresponding relation between the ID in the local global configuration file and the data partition; searching a target database partition corresponding to the target ID from the corresponding relation;
or
The second determining submodule is used for loading a specified database partition of the database, and the specified database partition is used for storing the corresponding relation between the ID and the data partition; searching a target database partition corresponding to the target ID from the corresponding relation;
or
The third determining submodule is used for searching a target database partition corresponding to the target ID from the corresponding relation between the externally stored ID and the data partition; and transmitting the identifier of the target database partition to the ONU management example in a parameter form through an ONU management configuration interface.
15. The apparatus of claim 11, wherein the traffic unit comprises an ONU management configuration management process;
the fault recovery module is used for reading OLT information from the target database partition; establishing connection with the OLT according to the read OLT information; reading ONU information corresponding to each OLT from the target database partition according to the read OLT information; reading parameter information of the ONU from the target database partition according to the read OLT information and the read ONU information, wherein the parameter information comprises at least one of the following items: status information of the ONU and an ONU MIB count value.
16. The apparatus of claim 11, wherein the service unit comprises an OMCI protocol process, and wherein the fault recovery module is configured to recover ME data uploaded by the ONU and configured by the OLT.
17. The apparatus of claim 16, wherein recovering the ME data uploaded by the ONU and configured by the OLT comprises:
reading ONU records in an ONU information table, and reading the names of OLT and ONU by using a specified identification field;
using the names of the OLT and the ONU to query an ONU ME table corresponding to the ONU;
reading the record in the ONU ME table to obtain ME information, wherein the ME information comprises: ME name, all parameter names of the ME after decapsulation, corresponding parameter values, ME category and ME instance number;
and storing the ME information by using a memory linked list.
18. The apparatus of claim 11, further comprising at least one of:
the first write-in 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;
a second writing module, configured to write verified OLT and/or ONU configuration data into the target database partition after the ONU management instance or the new ONU management instance receives an operation request of the OLT and/or the ONU and completes verification of OLT and/or ONU configuration data, where the operation request includes at least one of the following: create requests, delete requests, and modify requests.
19. The apparatus of claim 18, wherein the first write module is configured to encapsulate the ONU ME data to form a value if ONU MIB data synchronization or ONU OMCI configuration or query is successful, and write the key and the value into the target database partition using a specified identification field as a key.
20. The apparatus of claim 18, wherein the second writing module is configured to map the verified OLT and/or ONU configuration data into parameter values one by one, and write the key and the value into the target database partition using a specified identification field as a key.
21. A network device, comprising: processor, memory and program stored on and executable on said memory, which when executed by said processor implements the steps of a method of fault recovery for a broadband access system according to any one of claims 1 to 10.
22. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method for failure recovery of a broadband access system according to any one of claims 1 to 10.
CN202011116278.7A 2020-10-19 2020-10-19 Fault recovery method and device of broadband access system Pending CN114390377A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011116278.7A CN114390377A (en) 2020-10-19 2020-10-19 Fault recovery method and device of broadband access system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011116278.7A CN114390377A (en) 2020-10-19 2020-10-19 Fault recovery method and device of broadband access system

Publications (1)

Publication Number Publication Date
CN114390377A true CN114390377A (en) 2022-04-22

Family

ID=81194126

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011116278.7A Pending CN114390377A (en) 2020-10-19 2020-10-19 Fault recovery method and device of broadband access system

Country Status (1)

Country Link
CN (1) CN114390377A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764647A (en) * 2009-12-17 2010-06-30 浙江工业大学 ONU (Optical Network Unit) management and control platform of GPON (Gigabit Passive Optical Network) network management system
WO2011079632A1 (en) * 2009-12-31 2011-07-07 中兴通讯股份有限公司 Protection method and system under abnormal conditions in upgrade gigabit passive optical network terminal
CN102480321A (en) * 2010-11-29 2012-05-30 中兴通讯股份有限公司 Method and system for managing relevant parameters of home gateway in GPON (Gigabit Passive Optical Network) system
CN104252500A (en) * 2013-06-29 2014-12-31 北京新媒传信科技有限公司 Method and device for carrying out fault repairing on database management platform
WO2016034120A1 (en) * 2014-09-03 2016-03-10 烽火通信科技股份有限公司 System and method for implementing centralized configuration and management for onu wireless function
WO2017097008A1 (en) * 2015-12-07 2017-06-15 深圳市中兴微电子技术有限公司 Access method and apparatus for multiple optical network units, and storage medium
CN107294858A (en) * 2016-03-30 2017-10-24 中兴通讯股份有限公司 multicast service monitoring method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764647A (en) * 2009-12-17 2010-06-30 浙江工业大学 ONU (Optical Network Unit) management and control platform of GPON (Gigabit Passive Optical Network) network management system
WO2011079632A1 (en) * 2009-12-31 2011-07-07 中兴通讯股份有限公司 Protection method and system under abnormal conditions in upgrade gigabit passive optical network terminal
CN102480321A (en) * 2010-11-29 2012-05-30 中兴通讯股份有限公司 Method and system for managing relevant parameters of home gateway in GPON (Gigabit Passive Optical Network) system
CN104252500A (en) * 2013-06-29 2014-12-31 北京新媒传信科技有限公司 Method and device for carrying out fault repairing on database management platform
WO2016034120A1 (en) * 2014-09-03 2016-03-10 烽火通信科技股份有限公司 System and method for implementing centralized configuration and management for onu wireless function
WO2017097008A1 (en) * 2015-12-07 2017-06-15 深圳市中兴微电子技术有限公司 Access method and apparatus for multiple optical network units, and storage medium
CN107294858A (en) * 2016-03-30 2017-10-24 中兴通讯股份有限公司 multicast service monitoring method and device

Similar Documents

Publication Publication Date Title
US11729085B2 (en) Cluster wide packet tracing
CN105447046A (en) Distributed system data consistency processing method, device and system
CN112217656B (en) Method and device for synchronizing configuration information of network equipment in SD-WAN (secure digital-to-Wide area network) system
CN111225082B (en) Identity management method and device of Internet of things intelligent equipment and Internet of things platform
CN110673941A (en) Migration method of micro-services in multiple computer rooms, electronic equipment and storage medium
CN113077259A (en) Block chain-based evidence storing method and device and electronic equipment
CN105592162A (en) Uploading method and system based on multi-type files
CN113315754A (en) Intelligent linkage method, device, equipment and medium for firewall of container visit
WO2018068655A1 (en) License management method and system
CN113193986A (en) Cloud resource configuration method and physical machine for realizing cloud resource configuration
CN111866197B (en) Domain name resolution method and system
CN114390377A (en) Fault recovery method and device of broadband access system
CN111726367A (en) User equipment CPE access binding method, device, system and equipment
CN113010600B (en) Data management system, method, related device and medium based on block chain
CN111741102B (en) Upgrading method and device for distributed micro-service application
CN105791350B (en) Project data processing method and system
US11582345B2 (en) Context data management interface for contact center
CN113238807A (en) Module compatibility method, platform and server based on android system
CN113542409A (en) Management system and processing method for instances of RocktMQ message queues
CN113612811A (en) Method, system, equipment and medium for client mounting in multiple channels
CN110515905A (en) A kind of method, apparatus and server of the configuration of routing
CN115250269B (en) File distribution method and device, storage medium and electronic equipment
CN108762677A (en) A kind of intelligent scanning method and system of storage device
CN108768673B (en) Method and device for ending charging
CN114070824B (en) Registration method of Internet of things equipment, registration cloud server and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination