[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN106209438B - A kind of configuration recovery method and device - Google Patents

A kind of configuration recovery method and device Download PDF

Info

Publication number
CN106209438B
CN106209438B CN201610509569.XA CN201610509569A CN106209438B CN 106209438 B CN106209438 B CN 106209438B CN 201610509569 A CN201610509569 A CN 201610509569A CN 106209438 B CN106209438 B CN 106209438B
Authority
CN
China
Prior art keywords
configuration
storage medium
power failure
functional element
storage
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.)
Active
Application number
CN201610509569.XA
Other languages
Chinese (zh)
Other versions
CN106209438A (en
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.)
Raisecom Technology Co Ltd
Original Assignee
Raisecom Technology Co Ltd
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 Raisecom Technology Co Ltd filed Critical Raisecom Technology Co Ltd
Priority to CN201610509569.XA priority Critical patent/CN106209438B/en
Publication of CN106209438A publication Critical patent/CN106209438A/en
Application granted granted Critical
Publication of CN106209438B publication Critical patent/CN106209438B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0659Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities
    • H04L41/0661Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities by reconfiguring faulty entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0846Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Retry When Errors Occur (AREA)

Abstract

The invention discloses a kind of configuration recovery method and devices.This method, comprising: after newly getting one to the configuration message of power down loss configuration feature element on communication equipment, the configuration message that this is newly got is stored to third storage medium, and is backed up and be stored in the second storage medium;When triggering the configuration storage instruction for losing configuration feature element to power down, all configuration messages that third storage medium is stored, backup is stored to the first storage medium, and is deleted and stored in the second storage medium to the configuration message of the first storage medium after backup stores successfully;According to the configuration message that the first storage medium and the second storage medium store, configuration feature element is lost to power down and carries out configuration recovery.Communication equipment caused by losing the invention avoids the configuration message stored due to third storage medium can not normally be restored, and then improve the reliability and ease for use of communication equipment.

Description

Configuration recovery method and device
Technical Field
The present invention relates to communications technologies, and in particular, to a configuration recovery method and apparatus.
Background
With the development of communication technology and computer technology, embedded communication devices have been widely used in communication systems.
Generally, a user can set the embedded communication device through a network management server. A Central Processing Unit (CPU) in the embedded communication device obtains a configuration message sent by a network management server, where the configuration message includes setting information, and then the CPU processes the setting information to convert the setting information into configuration information of a power-down missing configuration function element on the embedded communication device, and at the same time, the configuration message can be stored in a Random-Access Memory (RAM), that is, all configuration information of a user is recorded in the RAM; because the RAM is a volatile storage element, a configuration message stored in the RAM needs to be stored in an equipment configuration file in a large FLASH memory (FLASH) storage element through a timing mechanism, so that the CPU can execute configuration recovery operation on the power failure loss configuration functional element after the embedded communication equipment is restarted due to a fault, thereby ensuring that the original configuration information of the power failure loss configuration functional element is not lost and recovering the original service borne by the equipment as soon as possible.
However, in the process of implementing the foregoing prior art, the inventor of the present invention finds that, before the next time of successful writing into the large FLASH at a fixed time, if the embedded communication device fails, the configuration packet stored in the RAM at the fixed time interval is lost, which may cause that the embedded communication device may not be normally recovered after the restart, thereby resulting in poor reliability and usability of the embedded communication device.
Disclosure of Invention
In order to solve the above technical problems, the present invention provides a configuration recovery method and apparatus, which are used to solve the problem of poor reliability and usability of embedded communication devices.
In order to achieve the object of the present invention, the present invention provides a configuration recovery method, including: the method is applied to communication equipment comprising a first storage medium, a second storage medium and a third storage medium, wherein the first storage medium and the second storage medium are both nonvolatile memories, and the third storage medium is a volatile memory; the method comprises the following steps:
after a configuration message for a configuration functional element lost in power failure on the communication equipment is newly acquired, storing the newly acquired configuration message to the third storage medium, and backing up and storing the configuration message in the second storage medium;
when a configuration storage indication of the power failure loss configuration functional element is triggered, backing up and storing all configuration messages stored in the third storage medium to the first storage medium, and deleting the configuration messages stored in the second storage medium to the first storage medium after the backing up and storing are successful;
and recovering the configuration of the power failure loss configuration functional element according to the configuration messages stored in the first storage medium and the second storage medium.
Further, the method further comprises: and triggering configuration storage indication of the power failure loss configuration functional element once every set time interval.
Further, the method further comprises: when a configuration storage instruction for the power failure loss configuration functional element is triggered, locking a set file for storing a configuration message in the second storage medium, and creating a new temporary file;
storing the newly acquired configuration message backup for the power failure loss configuration functional element on the communication device in the second storage medium, including:
detecting whether the setting file is locked; if so, storing the newly acquired configuration message for the power failure missing configuration functional element on the communication equipment into the temporary file; otherwise, storing the data in the setting file;
the deleting the configuration packet stored in the second storage medium to the first storage medium after the backup storage is successful includes:
and deleting the locked setting file after the backup storage is successful, and setting the temporary file as the setting file.
Further, according to the configuration messages stored in the first storage medium and the second storage medium, performing configuration recovery on the power failure loss configuration functional element, including:
after the communication equipment is restarted after power failure, acquiring a configuration recovery instruction;
reading all configuration messages stored in the first storage medium, and performing first configuration recovery on the power failure loss configuration functional element;
reading all configuration messages stored in the setting file in the second storage medium, and performing second configuration recovery on the power failure loss configuration functional element;
reading all configuration messages stored in the temporary file in the second storage medium, and performing third configuration recovery on the power failure loss configuration functional element;
after the configuration of the power loss configuration functional element is recovered according to the configuration messages stored in the first storage medium and the second storage medium, the method further includes:
and deleting the setting file and the temporary file in the second storage medium, and newly creating an empty setting file.
Further, the method further comprises:
and receiving each configuration message which is issued by the network management server through the communication link in sequence and is used for configuring the functional elements on the communication equipment in a power failure loss manner.
Further, after storing the configuration packet in the third storage medium, the method further includes:
analyzing the configuration message, and configuring the power failure loss configuration functional element based on the analysis result;
if the configuration is successful, returning a first notification message that the assembly error code is successful to the network management server, and triggering and executing the operation of the backup storage in the second storage medium; otherwise, deleting the configuration message stored in the third storage medium, and returning a notification message that the assembly error code is failed to the network management server.
The present invention also provides a configuration recovery apparatus, including:
the first storage module is used for storing the newly acquired configuration message to the third storage medium and backing up and storing the configuration message in the second storage medium after the configuration message of the power failure lost configuration functional element on the communication equipment is newly acquired;
the second storage module is configured to, when a configuration storage indication for the power failure loss configuration functional element is triggered, backup-store all configuration messages stored in the third storage medium to the first storage medium, and delete the configuration messages stored in the second storage medium to the first storage medium after the backup-store is successful;
and the recovery module is used for recovering the configuration of the power failure loss configuration functional element according to the configuration messages stored in the first storage medium and the second storage medium.
Further, the apparatus further comprises: a triggering module;
and the triggering module is used for triggering the configuration storage indication of the power failure loss configuration functional element once every set time interval.
Further, the apparatus further comprises: the processing module is used for locking a set file for storing a configuration message in the second storage medium and creating a new temporary file when a configuration storage instruction for the power failure loss configuration functional element is triggered;
the second storage module is specifically configured to: detecting whether the setting file is locked; if so, storing the newly acquired configuration message for the power failure missing configuration functional element on the communication equipment into the temporary file; otherwise, storing the data in the setting file; and deleting the locked setting file after the backup storage is successful, and setting the temporary file as the setting file.
Further, the recovery module is specifically configured to:
after the communication equipment is restarted after power failure, acquiring a configuration recovery instruction;
reading all configuration messages stored in the first storage medium, and performing first configuration recovery on the power failure loss configuration functional element; reading all configuration messages stored in the setting file in the second storage medium, and performing second configuration recovery on the power failure loss configuration functional element; reading all configuration messages stored in the temporary file in the second storage medium, and performing third configuration recovery on the power failure loss configuration functional element;
the second storage module is further configured to delete the setting file and the temporary file in the second storage medium after the recovery module completes the third configuration recovery, and create an empty setting file.
Further, the method also comprises the following steps: a receiving module;
the receiving module is used for receiving each configuration message which is issued by the network management server in sequence through the communication link and is used for the power failure loss configuration functional element on the communication equipment.
Further, the method also comprises the following steps: a configuration module;
the configuration module is used for analyzing the configuration message received by the receiving module and issued by the network management server, and configuring the power failure loss configuration functional element based on the analysis result; if the configuration is successful, a first notification message that the assembly error code is successful is returned to the network management server, and the first storage module is triggered to execute the operation of the backup storage in the second storage medium; otherwise, deleting the configuration message stored in the third storage medium, and returning a notification message that the assembly error code is failed to the network management server.
Compared with the prior art, the configuration recovery method and the configuration recovery device provided by the invention comprise the following steps: after a configuration message for a configuration functional element lost in power failure on the communication equipment is newly acquired, storing the newly acquired configuration message to the third storage medium, and backing up and storing the configuration message in the second storage medium; when a configuration storage indication of the power failure loss configuration functional element is triggered, backing up and storing all configuration messages stored in the third storage medium to the first storage medium, and deleting the configuration messages stored in the second storage medium to the first storage medium after the backing up and storing are successful; and recovering the configuration of the power failure loss configuration functional element according to the configuration messages stored in the first storage medium and the second storage medium. The embodiment of the invention realizes the configuration recovery operation of the communication equipment through the configuration message stored in the first storage medium and the configuration message stored in the second storage medium, avoids the problem that the communication equipment cannot be normally recovered due to the loss of the configuration message stored in the third storage medium, and further improves the reliability and the usability of the communication equipment.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
FIG. 1 is a flowchart illustrating a configuration recovery method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a communication device according to an embodiment of the configuration recovery method of the present invention;
FIG. 3 is a schematic structural diagram of an embodiment of a configuration recovery apparatus according to the present invention;
fig. 4 is a schematic structural diagram of a configuration recovery apparatus according to a second embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The configuration recovery method provided by the embodiment of the invention can be particularly applied to but not limited to the configuration recovery of the embedded communication equipment. The configuration recovery method provided in this embodiment may be specifically executed by a configuration recovery apparatus, and the configuration recovery apparatus may be integrated in an embedded communication device or separately configured, where the configuration recovery apparatus may be implemented in a software and/or hardware manner. The configuration recovery method and apparatus provided in the present embodiment will be described in detail below.
Fig. 1 is a flowchart illustrating a configuration recovery method according to an embodiment of the present invention, and fig. 2 is a schematic structural diagram illustrating a communication device according to an embodiment of the configuration recovery method. As shown in fig. 1, an execution subject in this embodiment may be a configuration recovery apparatus, and the configuration recovery method provided by the present invention is applied to a communication device including a first storage medium, a second storage medium, and a third storage medium, where the first storage medium and the second storage medium are both nonvolatile memories, and the third storage medium is a volatile memory; the method comprises the following steps:
step 101, after a configuration message for a power failure missing configuration functional element on the communication device is newly acquired, storing the newly acquired configuration message to a third storage medium, and backing up and storing the configuration message in a second storage medium.
As shown in fig. 2, the communication device may be an embedded communication device connected to the network management server through a communication link, and includes a CPU, where the CPU is connected to the first storage medium, the second storage medium, the third storage medium, and the power failure loss configuration functional element, respectively. Of course, the communication device described in the embodiment of the present invention may also be any other device provided with a power loss configuration functional element. For example, the first storage medium and the second storage medium may be different FLASH memory chips, the third storage medium may be a RAM, and the power loss configuration functional element may be a Field-Programmable Gate Array (FPGA).
And step 102, when a configuration storage indication of the power failure loss configuration functional element is triggered, backing up and storing all configuration messages stored in the third storage medium to the first storage medium, and deleting the configuration messages stored in the second storage medium to the first storage medium after the backing up and storing are successful.
When the configuration storage indication of the power loss configuration functional element is triggered, the method may be one of the following two triggering modes:
and the first trigger mode triggers the configuration storage indication of the power failure loss configuration functional element once every set time interval.
And a second trigger mode is that a user manually triggers the configuration storage indication of the power failure loss configuration functional element.
103, according to the configuration messages stored in the first storage medium and the second storage medium, performing configuration recovery on the power failure loss configuration functional element.
If the obtained configuration messages have a sequence, for example, a time sequence of obtaining when the configuration of the communication device is restored, in this embodiment of the present invention, the configuration messages may be stored in the storage media according to the order of obtaining the configuration messages. Typically, if each configuration message is obtained by being issued by a network management server connected to the communication device, the storage sequence of the configuration messages may be the sequence in which the network management server issues the messages. Considering the influence of network environment, the receiving sequence of the configuration message by the communication device is not always consistent with the issuing sequence of the message by the network management server, so the network management server can add a configuration sequence label in each issued configuration message. And storing each configuration message in each storage medium according to the configuration sequence label size on the communication equipment side. Correspondingly, when the communication device has a fault and needs to be configured and restored, the configuration restoration can be performed through the configuration message stored in the first storage medium, and then the configuration restoration can be performed through the configuration message stored in the second storage medium. And when the configuration is recovered, the reading sequence of the configuration messages in each storage medium is a storage sequence. That is, the configuration recovery is performed according to the configuration order of each configuration packet.
In the configuration recovery method provided by this embodiment, by adding a nonvolatile storage medium in a communication device, in a storage interval in which all configuration files stored in a volatile storage medium are stored in an original nonvolatile storage medium, a newly acquired configuration file in the storage interval can be backed up by using the added storage medium, so that before all configuration files in a volatile storage medium are stored in the original nonvolatile storage medium next time successfully, if a failure occurs in the communication device, the configuration of a power failure loss configuration functional element in the device can be recovered based on files in two nonvolatile storage media, thereby solving the problem of successfully deployed configuration loss in a configuration timing storage mechanism in the prior art, and improving reliability and usability of the communication device.
In this embodiment, the configuration recovery operation of the communication device is performed through the configuration packet stored in the first storage medium and the configuration packet stored in the second storage medium, which avoids that the communication device cannot be recovered normally due to the loss of the configuration packet stored in the third storage medium, thereby improving the reliability and usability of the communication device.
On the basis of the above embodiment, the method may further include:
when a configuration storage instruction for the power failure loss configuration functional element is triggered, locking a set file for storing a configuration message in the second storage medium, and creating a new temporary file;
storing the newly acquired configuration message backup for the power failure loss configuration functional element on the communication device in the second storage medium, including:
detecting whether the setting file is locked; if so, storing the newly acquired configuration message for the power failure missing configuration functional element on the communication equipment into the temporary file; otherwise, storing the data in the setting file;
the deleting the configuration packet stored in the second storage medium to the first storage medium after the backup storage is successful includes:
and deleting the locked setting file after the backup storage is successful, and setting the temporary file as the setting file.
Specifically, when a configuration storage indication for a power-down missing configuration functional element on the communication device is triggered, a setting file for storing configuration messages in the second storage medium may be first locked, and then all configuration messages in the third storage medium may be written to the first storage medium. The locking indicates that the configuration message content in the setting file is in an intermediate state written to the first storage medium, and the setting file needs to be deleted if the writing to the first storage medium is successful. If the communication equipment fails before the first storage medium is written, the configuration recovery of the power failure loss configuration functional element needs to be carried out by using the setting file. The user does not perceive the process of writing all the configuration files in the third storage medium into the first storage medium, the user can still normally perform service configuration on the communication equipment in the process, and the configuration files newly acquired in the process are all written into another file, namely a temporary file, in the second storage medium for storing the configuration message.
To more clearly illustrate the technical solutions provided by the embodiments of the present invention, a manner of storing the timing trigger configuration will be described as an example. For example, assume that the period of writing the configuration packet in the third storage medium to the first storage medium (e.g., the main FLASH) at a fixed time is T; at a certain time t1 (set as a first time), N configuration messages (for example, three configuration messages including configuration message 1, configuration message 2, and configuration message 3) are stored in a third storage medium (for example, RAM), the N configuration messages are backed up in the configuration message file 3 in the first storage medium, and a second storage medium (for example, a spare FLASH) is empty;
(1) in a time period from T1 to T1+ T, newly receiving M configuration messages (for example, two configuration messages 4 and 5) sent by a network management server, storing the M configuration messages in an RAM, and if there is no configuration file write operation triggered by a user in the process, synchronously backing up the M configuration messages to a standby FLASH for storing a setting file of the configuration messages;
(2) at a time node T1+ T (set as a second time T2), when the timer expires, an execution operation of writing a file into the primary FLASH is triggered, at this time, a set file for storing a configuration message in the backup FLASH is locked, and all (M + N) configuration messages in the RAM are rewritten into the configuration message file 3 in the primary FLASH in sequence (for example, the sequence of messages issued by the network management server, or the sequence rearranged to ensure the efficiency of configuration recovery); in the process of writing the configuration message file 3, if the webmaster server issues L configuration messages (for example, a configuration message 6), the L configuration messages are newly added to the RAM, and the L configuration messages are stored in a temporary file for storing the configuration messages; after the configuration message file 3 in the main FLASH is successfully written, deleting the original set file in the second storage medium, renaming the temporary file to be the set file, and if no temporary file exists, newly building an empty set file;
(3) after successfully writing the configuration message file 3 in the main FLASH to a certain time point (the time point is less than T1+2T and is set as a third time T3), newly receiving K configuration messages (two configuration messages 7 and 8 are set) sent by the webmaster server, storing (M + N + L + K) messages in the RAM, storing (L + K) messages in the set file in the standby FLASH, and storing (M + N) messages in the configuration message file 3 in the main FLASH; at time t3, after receiving a configuration message instruction triggered by a user, locking the setting file in the second storage medium, and writing all the configuration messages stored in the RAM into the configuration message file 3 in the main FLASH, the network management server does not issue the configuration messages in the process, so that after the configuration message file 3 is successfully written, only the setting file needs to be deleted, and then a blank setting file is newly built in the second storage medium.
For the configuration recovery flow after the communication equipment failure: the configuration recovery of the power failure loss configuration functional element on the equipment can be firstly carried out by adopting a configuration message file 3 in a main FLASH, after the configuration recovery is finished, each configuration message in a setting file in a standby FLASH is read to carry out the configuration recovery of the power failure loss configuration functional element on the equipment, and each configuration message stored in a temporary file in a second storage medium is read to carry out the configuration recovery of the power failure loss configuration functional element on the equipment; further, after the configuration recovery is completed, the original setting file and the temporary file for storing the configuration message in the standby FLASH may be deleted, and an empty setting file is newly created, so that the operation of storing the configuration file into the first storage medium at regular time may be performed subsequently.
The standby FLASH only stores each newly acquired configuration message within a timing interval, and the configuration messages have much smaller capacity than all the configuration messages stored in the RAM, so that the read-write speed of the standby FLASH is higher, the configuration messages can be stored in time, and the power failure loss of the standby FLASH is effectively prevented.
It should be noted that, in the embodiment of the present invention, the manner of storing data in each nonvolatile storage medium is an overwriting manner, that is, the original data in the storage medium is erased first, and then the data is written into the storage medium.
Further, on the basis of the above embodiment, the method may further include:
and receiving each configuration message which is issued by the network management server through the communication link in sequence and is used for configuring the functional elements on the communication equipment in a power failure loss manner.
For example, after obtaining each configuration message to the communication device sequentially issued by the network management server through the communication link, first checking whether a setting file for storing the configuration message in the second storage medium is locked, if not, writing the message into the setting file, and if so, writing the obtained configuration message into a temporary file. Or, the setting file is not locked, and in the process of writing the configuration file into the main FLASH, if the configuration message is newly received, the configuration message is also stored in the setting file of the standby FLASH for storing the configuration message, and the newly received message is marked with a special identifier; and then, after the writing operation to the first storage medium configuration file is completed, reserving the configuration content with the special identifier in the setting file of the configuration message, and deleting the other configuration contents.
Further, on the basis of the foregoing embodiment, after storing the configuration packet in the third storage medium, the method further includes:
analyzing the configuration message, and configuring the power failure loss configuration functional element based on the analysis result;
if the configuration is successful, returning a first notification message that the assembly error code is successful to the network management server, and triggering and executing the operation of the backup storage in the second storage medium; otherwise, deleting the configuration message stored in the third storage medium, and returning a notification message that the assembly error code is failed to the network management server.
Fig. 3 is a schematic structural diagram of an embodiment of the configuration recovery apparatus of the present invention, and as shown in fig. 3, the configuration recovery apparatus provided by the present invention includes: a first storage module 31, a second storage module 32 and a recovery module 33. Wherein,
the first storage module 31 is configured to, after a configuration packet for a power failure missing configuration functional element on the communication device is newly acquired, store the newly acquired configuration packet to the third storage medium, and back up and store the configuration packet in the second storage medium;
a second storage module 32, configured to, when a configuration storage indication for the power failure loss configuration functional element is triggered, backup-store all configuration packets stored in the third storage medium to the first storage medium, and delete a configuration packet stored in the second storage medium to the first storage medium after the backup-storage is successful;
a recovering module 33, configured to recover the configuration of the power failure loss configuration functional element according to the configuration messages stored in the first storage medium and the second storage medium.
In this embodiment, after a configuration packet for a configuration functional element lost in power failure on the communication device is newly acquired, the newly acquired configuration packet is stored in the third storage medium and backed up and stored in the second storage medium; when a configuration storage indication of the power failure loss configuration functional element is triggered, backing up and storing all configuration messages stored in the third storage medium to the first storage medium, and deleting the configuration messages stored in the second storage medium to the first storage medium after the backing up and storing are successful; and recovering the configuration of the power failure loss configuration functional element according to the configuration messages stored in the first storage medium and the second storage medium. The configuration recovery operation of the communication equipment is realized through the configuration message stored in the first storage medium and the configuration message stored in the second storage medium, the problem that the communication equipment cannot be recovered normally due to the loss of the configuration message stored in the third storage medium is avoided, and the reliability and the usability of the communication equipment are further improved.
Fig. 4 is a schematic structural diagram of a second embodiment of the configuration recovery apparatus of the present invention, and as shown in fig. 4, on the basis of the above embodiment, the configuration recovery apparatus provided in the present invention may further include: a triggering module 34, where the triggering module 34 is configured to trigger the configuration storage indication of the power loss configuration functional element once every set time interval.
Further, the apparatus may further include: a processing module 35.
The processing module 35 is configured to lock a setting file for storing a configuration packet in the second storage medium and create a new temporary file when a configuration storage indication for the power failure loss configuration functional element is triggered;
the second storage module 32 is specifically configured to detect whether the setting file is locked; if so, storing the newly acquired configuration message for the power failure missing configuration functional element on the communication equipment into the temporary file; otherwise, storing the data in the setting file; and deleting the locked setting file after the backup storage is successful, and setting the temporary file as the setting file.
Further, on the basis of the foregoing embodiment, the recovery module 33 is specifically configured to:
after the communication equipment is restarted after power failure, acquiring a configuration recovery instruction;
reading all configuration messages stored in the first storage medium, and performing first configuration recovery on the power failure loss configuration functional element; reading all configuration messages stored in the setting file in the second storage medium, and performing second configuration recovery on the power failure loss configuration functional element; reading all configuration messages stored in the temporary file in the second storage medium, and performing third configuration recovery on the power failure loss configuration functional element;
the second storage module 32 is further configured to delete the setting file and the temporary file in the second storage medium after the recovery module completes the third configuration recovery, and create an empty setting file.
Further, on the basis of the above embodiment, the method further includes: a receiving module 36;
the receiving module 36 is configured to receive each configuration message of the communication device, where the network management server sequentially issues the power-up and power-down missing configuration functional elements through the communication link.
Further, on the basis of the above embodiment, the method may further include: a configuration module 37;
the configuration module 37 is configured to analyze the configuration message received by the receiving module and issued by the network management server, and configure the power failure loss configuration functional element based on an analysis result; if the configuration is successful, a first notification message that the assembly error code is successful is returned to the network management server, and the first storage module is triggered to execute the operation of the backup storage in the second storage medium; otherwise, deleting the configuration message stored in the third storage medium, and returning a notification message that the assembly error code is failed to the network management server.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A configuration recovery method is applied to communication equipment comprising a first storage medium, a second storage medium and a third storage medium, wherein the first storage medium and the second storage medium are both nonvolatile memories, and the third storage medium is a volatile memory; the method comprises the following steps:
after a configuration message for a configuration functional element lost in power failure on the communication equipment is newly acquired, storing the newly acquired configuration message to the third storage medium, and backing up and storing the configuration message in the second storage medium;
when a configuration storage indication of the power failure loss configuration functional element is triggered, backing up and storing all configuration messages stored in the third storage medium to the first storage medium, and deleting the configuration messages stored in the second storage medium to the first storage medium after the backing up and storing are successful;
and recovering the configuration of the power failure loss configuration functional element according to the configuration messages stored in the first storage medium and the second storage medium.
2. The method of claim 1, further comprising: and triggering configuration storage indication of the power failure loss configuration functional element once every set time interval.
3. The method of claim 2, further comprising: when a configuration storage instruction for the power failure loss configuration functional element is triggered, locking a set file for storing a configuration message in the second storage medium, and creating a new temporary file;
storing the newly acquired configuration message backup for the power failure loss configuration functional element on the communication device in the second storage medium, including:
detecting whether the setting file is locked; if so, storing the newly acquired configuration message for the power failure missing configuration functional element on the communication equipment into the temporary file; otherwise, storing the data in the setting file;
the deleting the configuration packet stored in the second storage medium to the first storage medium after the backup storage is successful includes:
and deleting the locked setting file after the backup storage is successful, and setting the temporary file as the setting file.
4. The method according to claim 3, wherein performing configuration recovery on the power loss configuration function according to the configuration packets stored in the first storage medium and the second storage medium comprises:
after the communication equipment is restarted after power failure, acquiring a configuration recovery instruction;
reading all configuration messages stored in the first storage medium, and performing first configuration recovery on the power failure loss configuration functional element;
reading all configuration messages stored in the setting file in the second storage medium, and performing second configuration recovery on the power failure loss configuration functional element;
reading all configuration messages stored in the temporary file in the second storage medium, and performing third configuration recovery on the power failure loss configuration functional element;
after the configuration of the power loss configuration functional element is recovered according to the configuration messages stored in the first storage medium and the second storage medium, the method further includes:
and deleting the setting file and the temporary file in the second storage medium, and newly creating an empty setting file.
5. The method according to any one of claims 1-4, further comprising:
and receiving each configuration message which is issued by the network management server through the communication link in sequence and is used for configuring the functional elements on the communication equipment in a power failure loss manner.
6. The method of claim 5, further comprising, after storing the configuration message to the third storage medium:
analyzing the configuration message, and configuring the power failure loss configuration functional element based on the analysis result;
if the configuration is successful, returning a first notification message that the assembly error code is successful to the network management server, and triggering and executing the operation of the backup storage in the second storage medium; otherwise, deleting the configuration message stored in the third storage medium, and returning a notification message that the assembly error code is failed to the network management server.
7. A configuration restoration apparatus, comprising:
the first storage module is used for storing the newly acquired configuration message to a third storage medium and backing up and storing the configuration message in a second storage medium after the configuration message of the power failure lost configuration functional element on the communication equipment is newly acquired;
the second storage module is configured to, when a configuration storage indication for the power failure loss configuration functional element is triggered, backup-store all configuration messages stored in the third storage medium to the first storage medium, and delete the configuration messages stored in the second storage medium to the first storage medium after the backup-store is successful;
and the recovery module is used for recovering the configuration of the power failure loss configuration functional element according to the configuration messages stored in the first storage medium and the second storage medium.
8. The apparatus of claim 7, further comprising: a triggering module;
and the triggering module is used for triggering the configuration storage indication of the power failure loss configuration functional element once every set time interval.
9. The apparatus of claim 8, further comprising: the processing module is used for locking a set file for storing a configuration message in the second storage medium and creating a new temporary file when a configuration storage instruction for the power failure loss configuration functional element is triggered;
the second storage module is specifically configured to: detecting whether the setting file is locked; if so, storing the newly acquired configuration message for the power failure missing configuration functional element on the communication equipment into the temporary file; otherwise, storing the data in the setting file; and deleting the locked setting file after the backup storage is successful, and setting the temporary file as the setting file.
10. The apparatus according to claim 9, wherein the recovery module is specifically configured to obtain a configuration recovery instruction after the communication device is restarted after power failure;
reading all configuration messages stored in the first storage medium, and performing first configuration recovery on the power failure loss configuration functional element; reading all configuration messages stored in the setting file in the second storage medium, and performing second configuration recovery on the power failure loss configuration functional element; reading all configuration messages stored in the temporary file in the second storage medium, and performing third configuration recovery on the power failure loss configuration functional element;
the second storage module is further configured to delete the setting file and the temporary file in the second storage medium after the recovery module completes the third configuration recovery, and create an empty setting file.
11. The apparatus of any one of claims 7-10, further comprising: a receiving module;
the receiving module is used for receiving each configuration message which is issued by the network management server in sequence through the communication link and is used for the power failure loss configuration functional element on the communication equipment.
12. The apparatus of claim 11, further comprising: a configuration module;
the configuration module is used for analyzing the configuration message received by the receiving module and issued by the network management server, and configuring the power failure loss configuration functional element based on the analysis result; if the configuration is successful, a first notification message that the assembly error code is successful is returned to the network management server, and the first storage module is triggered to execute the operation of the backup storage in the second storage medium; otherwise, deleting the configuration message stored in the third storage medium, and returning a notification message that the assembly error code is failed to the network management server.
CN201610509569.XA 2016-06-30 2016-06-30 A kind of configuration recovery method and device Active CN106209438B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610509569.XA CN106209438B (en) 2016-06-30 2016-06-30 A kind of configuration recovery method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610509569.XA CN106209438B (en) 2016-06-30 2016-06-30 A kind of configuration recovery method and device

Publications (2)

Publication Number Publication Date
CN106209438A CN106209438A (en) 2016-12-07
CN106209438B true CN106209438B (en) 2019-04-26

Family

ID=57462862

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610509569.XA Active CN106209438B (en) 2016-06-30 2016-06-30 A kind of configuration recovery method and device

Country Status (1)

Country Link
CN (1) CN106209438B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101111017A (en) * 2006-07-19 2008-01-23 中兴通讯股份有限公司 Mobile terminal and method capable of backing up and recovering software and data
CN101136940A (en) * 2006-08-31 2008-03-05 国际商业机器公司 Method and system for backup of hierarchically structured storage pools
CN101183801A (en) * 2007-12-07 2008-05-21 杭州华三通信技术有限公司 Power-off protection method, system and device
CN101634958A (en) * 2008-07-23 2010-01-27 佛山市顺德区顺达电脑厂有限公司 Flash memory with secondary backup mechanism
CN103268294A (en) * 2013-04-19 2013-08-28 深圳创维数字技术股份有限公司 Operation method of access data and data processing equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4712102B2 (en) * 2009-05-26 2011-06-29 富士通株式会社 Storage device, data processing method, and data processing program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101111017A (en) * 2006-07-19 2008-01-23 中兴通讯股份有限公司 Mobile terminal and method capable of backing up and recovering software and data
CN101136940A (en) * 2006-08-31 2008-03-05 国际商业机器公司 Method and system for backup of hierarchically structured storage pools
CN101183801A (en) * 2007-12-07 2008-05-21 杭州华三通信技术有限公司 Power-off protection method, system and device
CN101634958A (en) * 2008-07-23 2010-01-27 佛山市顺德区顺达电脑厂有限公司 Flash memory with secondary backup mechanism
CN103268294A (en) * 2013-04-19 2013-08-28 深圳创维数字技术股份有限公司 Operation method of access data and data processing equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高速大容量数据存储系统的研究;周秀娟;《中国优秀硕士学位论文全文数据库信息科技辑》;20080815;全文

Also Published As

Publication number Publication date
CN106209438A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
US8281093B1 (en) Systems and methods for creating consolidated backups of snapshot hierarchies
AU2010347733B2 (en) Systems and methods for garbage collection in deduplicated data systems
CN108646982B (en) Automatic data restoration method and device based on UBIFS
US9436557B2 (en) Method and computation node for processing application data
WO2017107900A1 (en) Virtual machine recovery method and virtual machine management device
US10860447B2 (en) Database cluster architecture based on dual port solid state disk
US20190227710A1 (en) Incremental data restoration method and apparatus
CN110008129B (en) Reliability test method, device and equipment for storage timing snapshot
CN110647333A (en) Firmware upgrading method and equipment configured to upgrade firmware therein
CN114138549A (en) Data backup and recovery method based on kubernets system
CN103942126A (en) Electronic device and data backup method thereof
CN103064759B (en) The method of data restore and device
CN107329699B (en) Erasure rewriting method and system
CN106209438B (en) A kind of configuration recovery method and device
CN106599006B (en) Data recovery method and device
CN112162882A (en) Data hot snapshot method, device, equipment and computer readable storage medium
CN103189840A (en) Method for backing up startup information about storage device
CN116680055A (en) Asynchronous task processing method and device, computer equipment and storage medium
CN106161061B (en) Service configuration rollback method and network equipment
CN117785546A (en) Database backup method, system and computing device cluster
CN109426589B (en) File repair method and device
CN115309586A (en) File recovery method, backup method, device, equipment and storage medium
CN118245318A (en) Log management method, system and equipment
CN117453653A (en) Cross-cluster data migration method based on disk-rsync
CN114048071A (en) Fault recovery method, device and equipment and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100094 First to Fifth Floors of Building 11, East Yard, No. 10 Wangdong Road, Northwest Haidian District, Beijing

Applicant after: Raisecom Technology Inc.

Address before: 100085 No. 2 Building, No. 28 Shangdi Sixth Street, Haidian District, Beijing

Applicant before: Raisecom Technology Inc.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant