CN103428022A - Method and system for network element configuration data file backup and recovery - Google Patents
Method and system for network element configuration data file backup and recovery Download PDFInfo
- Publication number
- CN103428022A CN103428022A CN2012101655247A CN201210165524A CN103428022A CN 103428022 A CN103428022 A CN 103428022A CN 2012101655247 A CN2012101655247 A CN 2012101655247A CN 201210165524 A CN201210165524 A CN 201210165524A CN 103428022 A CN103428022 A CN 103428022A
- Authority
- CN
- China
- Prior art keywords
- configuration data
- file
- network element
- file server
- timer
- 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.)
- Granted
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Retry When Errors Occur (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a method and a system for network element configuration data file backup and recovery. The method comprises the steps that file server information which is used for storing a network element configuration data file is configured on a network element; configuration data change events of the network element are monitored; when a configuration data change event occurs, after a predetermined time delay, the network element configuration data file after configuration data changing is backed up to a file server according to the file server information; and when the network element configuration data file needs to be recovered, the network element requests the file server for the backed up network element configuration file, and the configuration data file which is backed up on the file server is recovered on the network element. According to the invention, after the configuration data are changed, the network element configuration data file is backed up on the file server; the problem of configuration data loss, which is caused by a network element configuration data error or a file system error, is solved; and the normal work of the network element is ensured.
Description
Technical field
The present invention relates to communication technical field, relate in particular to the technology that backups to file server on a kind of network element after the configuration data file configuration modification.
Background technology
Along with communication technology development, network element/server architecture is widely used.
Along with increasing new business, new function are introduced in network element, network element is being stored important element configuration data file, when the file system of network element makes a mistake, when even collapse occurs, the important element configuration data file of storing in network element can partly or entirely be lost.
In existing technology, if the file system on network element makes a mistake or collapses, network element collapses system owing to having lacked important configuration data usually.Due to the not backup of important element configuration data file, when the file system recovery of network element, network element can't return to normal operating state.
Summary of the invention
The object of the present invention is to provide the method and system of configuration data file on a kind of backup and recovery network element, can solve better the problem of the element configuration data File lose that on network element, the situation such as file system corruption or collapse causes.
According to an aspect of the present invention, provide the method for configuration data file on a kind of backup and recovery network element, having comprised:
Be configured for the file server information of preserving the element configuration data file on network element;
The configuration data of monitoring network element is changed event, and, when described configuration data change event occurs, after predetermined time delay, the element configuration data file backup after according to described file server information, configuration data being changed is to described file server;
When needs recover the element configuration data file, the element configuration data file that network element has backed up to file server requests, return to the element configuration data file backed up on file server on network element.
Preferably, the step of described configuration file server information comprises:
On network element, configuration comprises the file server information of file server address and file server account, and described file server information is saved in the configuring area or configuration file of network element.
Preferably, configuration modification timer and data backup back off timer are depended in described predetermined time delay, wherein, before the configuration data change event of monitoring network element, configure the duration of described configuration modification back off timer and the duration of described data backup back off timer.
Preferably, the element configuration data file backup after the configuration data change is comprised to the step on described file server:
When described configuration data change event occurs, trigger described configuration modification back off timer, and described configuration modification back off timer or described data backup back off timer overtime after, the element configuration data file backup after configuration data is changed is to described file server.
Preferably, the step that triggers described configuration modification back off timer comprises:
Network element judges whether to exist the configuration modification back off timer;
When judgment result is that while having the configuration modification back off timer, the duration of the described configuration modification back off timer of resetting also starts;
When judgment result is that while not having the configuration modification back off timer, generate the configuration modification back off timer, the duration of described configuration modification back off timer is set and starts.
Preferably, after triggering described configuration modification back off timer, network element judges whether to exist the data backup back off timer, and is determining that while not having the data backup back off timer, generated data backup back off timer, arrange its duration and start.
Preferably, the recovering step of element configuration data file comprises:
When needs recover the element configuration data file, network element utilizes the file server information of its preservation and described file server to set up communication linkage, and the element configuration data file backed up to file server requests by described communication linkage, the configuration data file backed up on file server is returned on network element.
According to a further aspect in the invention, provide the system of configuration data file on a kind of backup and recovery network element, having comprised:
File server, be used for preserving the element configuration data file;
Network element, for configuration file server information, and when configuration data change event occurs, after predetermined time delay, element configuration data file backup after according to described file server information, configuration data being changed is to described file server, and, when needs recover the element configuration data file, the element configuration data file backed up to described file server requests, return to the element configuration data file backed up on file server on network element.
Preferably, described network element comprises:
Dispensing unit, for preserving the file server information that comprises file server address and file server account of configuration;
The data backup unit, for when described configuration data change event occurs, after the predetermined time delay of depending on configuration modification timer and data backup back off timer, the element configuration data file backup after configuration data is changed is to described file server;
Data recovery unit, for when needs recover the element configuration data file, the file server information and the described file server that utilize described dispensing unit to preserve establish a communications link, and the element configuration data file backed up to file server requests by described communication connection, the configuration data file backed up on file server is returned on network element.
Preferably, described network element also comprises configuration modification back off timer and the data backup back off timer for the element configuration data file after the backup configuration data change.
Compared with prior art, beneficial effect of the present invention is:
When the present invention can occur to change at the configuration data of network element, after predetermined time delay the element configuration data file backup to file server, make the configuration data of network element make mistakes or file system while makeing mistakes, can utilize in time the element configuration data file of backup on file server to recover the configuration data on network element.
The accompanying drawing explanation
Fig. 1 is the backup that provides of the embodiment of the present invention and the method block diagram that recovers configuration data file on network element;
Fig. 2 is the flow chart of user's configuration task of providing of the embodiment of the present invention;
Fig. 3 is the flow chart of the backup network elements configuration data file that provides of the embodiment of the present invention;
Fig. 4 is the flow chart of the recovery element configuration data file that provides of the embodiment of the present invention;
Fig. 5 is the backup that provides of the embodiment of the present invention and the system block diagram that recovers configuration data file on network element.
Embodiment
To a preferred embodiment of the present invention will be described in detail, should be appreciated that following illustrated preferred embodiment, only for description and interpretation the present invention, is not intended to limit the present invention below in conjunction with accompanying drawing.
The present invention backups on file server by the configuration data file on network element conditionally, and can recover in time, the condition of backup is after the configuration data of network element is changed, after the condition of backup occurs, start the backup configuration data file after duration of time delay, then the duration that a maximum is set guarantees that backup actions can back up.During file system recovery on network element, can recover correct element configuration data file from file server, thereby make network element return to normal operating state.
Fig. 1 is the backup that provides of the embodiment of the present invention and the method block diagram that recovers configuration data file on network element, and as shown in Figure 1, step comprises:
Step 101: be configured for the file server information of preserving the element configuration data file on network element.
The user need to do following setting to network element:
1) the IP address of file server, the necessary informations such as account number;
2) maximum delay of the time delay of the condition backup of configuration network element and condition backup, the i.e. duration of the duration of configuration modification timer and data backup back off timer.
Step 102: the configuration data of monitoring network element is changed event, and when described configuration data change event occurs, after predetermined time delay, the element configuration data file backup after according to described file server information, configuration data being changed is to described file server.
Configuration modification timer and data backup back off timer are depended in described predetermined time delay.
Step 103: when needs recover the element configuration data file, the element configuration data file that network element has backed up to file server requests, return to the element configuration data file backed up on file server on network element.
While needing to recover the configuration data file on network element, only need the configuration data file backed up from file server download on client computer, wherein the file transfer protocol (FTP) between network element and file server can be TFTP, FTP or Secure File Transfer Protocol.
Fig. 2 is the flow chart of user's configuration task of providing of the embodiment of the present invention, and as shown in Figure 2, to the IP address of file server, the flow chart of the configuration of the necessary informations such as account number specifically comprises the following steps:
Step 200: initial configuration task;
Step 210: network element is waited for user's configuration order;
Step 220: whether what network element judged user's input is the configuration file server order, if so, performs step 221, otherwise, perform step 230;
Step 221: the IP address of file server is set, the necessary informations such as account number, and turn back to step 210 after accomplishing the setting up, continue to wait for user's configuration order;
Step 230: whether what network element judged user input is the order of condition backup configuration, if so, performs step successively 231 and step 232, otherwise, perform step 240;
Step 231: the duration that the configuration modification back off timer is set;
Step 232: the duration of data backup back off timer is set, then turns back to step 210, continue to wait for user's configuration order.
Fig. 3 is the flow chart of the backup network elements configuration data file that provides of the embodiment of the present invention, and as shown in Figure 3, step comprises:
Step 300: initialization condition backup tasks;
Step 310: initial configuration is revised back off timer and data backup back off timer;
Step 320: network element is waited for needs message to be processed;
Step 330: whether the message that network element judgement is waited until is that configuration data has been changed message, if, perform step successively 331 and step 332, otherwise, perform step 340;
Step 331: if the configuration modification back off timer arranges, reset the duration of described configuration modification back off timer and start, otherwise, generate described configuration modification back off timer, its duration is set and starts;
Step 332: if the data backup back off timer does not arrange, generated data backup back off timer, arrange its duration and start, and then turns back to step 320, and continuing wait needs message to be processed;
Step 340: whether the message that network element judgement is waited until is then message of configuration modification timer, if, perform step successively 341 and step 342, otherwise, perform step 350;
Step 341: the element configuration data file backup to file server;
Step 342: if be provided with the data backup back off timer, cancel described data backup back off timer, then turn back to step 320, continuing wait needs message to be processed;
Step 350: whether the message waited until of judgement is then message of data backup timer, if, perform step successively 351 and step 352, otherwise, perform step 360;
Step 351: the element configuration data file backup to file server;
Step 352: if be provided with the configuration modification back off timer, cancel described configuration modification back off timer, then turn back to step 320, continuing to wait for need message to be processed.
Fig. 4 is the flow chart of the recovery element configuration data file that provides of the embodiment of the present invention, and as shown in Figure 4, step comprises:
Step 400: start to recover the configuration data file on network element;
Step 410: network element is set up communication linkage to the file server requests configured;
Step 420: by the communication linkage of setting up, network element is to file server requests element configuration data file;
Step 430: file server is sent to network element by the element configuration data file;
Step 440: file server completes all transmission that need the element configuration data file of recovery, and concerns communication linkage;
Step 450: network element finishes to recover the element configuration data file.
Fig. 5 is the backup that provides of the embodiment of the present invention and the system block diagram that recovers configuration data file on network element, as shown in Figure 5, comprising:
File server, be used for preserving the element configuration data file;
Network element, for configuration file server information, and when configuration data change event occurs, after predetermined time delay, element configuration data file backup after according to described file server information, configuration data being changed is to described file server, and, when needs recover the element configuration data file, the element configuration data file backed up to described file server requests, return to the element configuration data file backed up on file server on network element.
Wherein, described network element comprises:
Dispensing unit, for preserving the file server information that comprises file server address and file server account of configuration;
The data backup unit, for when described configuration data change event occurs, after the predetermined time delay of depending on configuration modification timer and data backup back off timer, the element configuration data file backup after configuration data is changed is to described file server;
Data recovery unit, for when needs recover the element configuration data file, the file server information and the described file server that utilize described dispensing unit to preserve establish a communications link, and the element configuration data file backed up to file server requests by described communication connection, the configuration data file backed up on file server is returned on network element;
Configuration modification back off timer and data backup back off timer, for the element configuration data file after the backup configuration data change.Mean respectively described configuration modification back off timer and described data backup back off timer with T1 and T2, the condition that backup occurs is that configuration data modification event occurs, and at a time configuration data has been revised, so T1 triggers.T1 triggers and that is to say, during overtime the expiring of T1 set timer, backup operation will occur; A moment when T1 does not also expire, the condition of configuration modification occurs again, so T1 has been reset, that is to say the backup operation overtime Shi Caihui of the expiring generation of T1 set timer excessively again, if always backup operation, can not occur in configuration modification before overtime the expiring of T1 set timer always; In order to solve this situation, T2 is set, namely the longest overtime, no matter within a certain period of time the configuration modification of how many times occurred, just be provided with max-timeout T2 when configuration modification for the first time, revised configuration even follow-up, if it is overtime that the T1 timer does not have,, when max-timeout T2 timer expiry expires, trigger backup operation, guaranteed in the situation that repeatedly revise configuration data, the triggering backup operation.
The workflow of described system is as follows:
Step 501: the file server of configuration network element configures the necessary informations such as file server address, file server account number of network element, and, according to user's request, the configuration of file server is saved in configuring area or configuration file.
Step 502: the time delay of the condition backup of configuration network element and the maximum delay of condition backup, configure the duration of configuration modification back off timer of network element and the duration of data backup back off timer, and, according to user's request, the configuration of the condition of network element backup is saved in configuring area or configuration file.
Step 503: after the configuration data of network element is changed, check the configuration modification back off timer, if exist the described configuration modification back off timer of resetting if there is no generates the configuration modification back off timer, its duration is set and starts; And check the data backup back off timer, if there is no, generated data backup back off timer, arrange its duration and start.
Step 504: after the configuration modification back off timer is overtime, start the backup network elements configuration data file, after backing up successfully, cancel the data backup back off timer.
Step 505: after the data backup back off timer is overtime, start the backup network elements configuration data file, after backing up successfully, cancel the configuration modification back off timer.
Step 506: when the needs recovery file, the configuration data file that network element has backed up to file server requests, return to the configuration data file backed up on network element.Particularly, when network element needs the recovery configuring data file, at first, the file server transmission linking request to configuration, after setting up communication linkage, send account to file server; File server receives that account passes through checking, successfully sets up communication linkage.Then, by the communication linkage of setting up, network element is sent to network element to the element configuration data file from file server to file server requests; Finally, after file server transmits all element configuration data files that will recover to network element, the communication close link.
In sum, when the file system corruption on network element or the situation of collapse occur, the user, after the file system of repairing network element, can again recover the element configuration data file backed up, thereby guarantee that network element can work from file server under the catalogue of appointment.
Although above the present invention is had been described in detail, the invention is not restricted to this, those skilled in the art of the present technique can carry out various modifications according to principle of the present invention.Therefore, all modifications of doing according to the principle of the invention, all should be understood to fall into protection scope of the present invention.
Claims (10)
1. a method that backs up and recover configuration data file on network element, is characterized in that, comprising:
Be configured for the file server information of preserving the element configuration data file on network element;
The configuration data of monitoring network element is changed event, and, when described configuration data change event occurs, after predetermined time delay, the element configuration data file backup after according to described file server information, configuration data being changed is to described file server;
When needs recover the element configuration data file, the element configuration data file that network element has backed up to file server requests, return to the element configuration data file backed up on file server on network element.
2. method according to claim 1, is characterized in that, the step of described configuration file server information comprises:
On network element, configuration comprises the file server information of file server address and file server account, and described file server information is saved in the configuring area or configuration file of network element.
3. method according to claim 1 and 2, it is characterized in that, configuration modification timer and data backup back off timer are depended in described predetermined time delay, wherein, before the configuration data change event of monitoring network element, configure the duration of described configuration modification back off timer and the duration of described data backup back off timer.
4. method according to claim 3, is characterized in that, the element configuration data file backup after configuration data is changed comprises to the step on described file server:
When described configuration data change event occurs, trigger described configuration modification back off timer, and described configuration modification back off timer or described data backup back off timer overtime after, the element configuration data file backup after configuration data is changed is to described file server.
5. method according to claim 4, is characterized in that, the step that triggers described configuration modification back off timer comprises:
Network element judges whether to exist the configuration modification back off timer;
When judgment result is that while having the configuration modification back off timer, the duration of the described configuration modification back off timer of resetting also starts;
When judgment result is that while not having the configuration modification back off timer, generate the configuration modification back off timer, the duration of described configuration modification back off timer is set and starts.
6. method according to claim 5, is characterized in that, after triggering described configuration modification back off timer, network element judges whether to exist the data backup back off timer, and determining that while not having the data backup back off timer, generated data backup back off timer, arrange its duration and start.
7. method according to claim 6, is characterized in that, the recovering step of element configuration data file comprises:
When needs recover the element configuration data file, network element utilizes the file server information of its preservation and file server to set up communication linkage, and the element configuration data file backed up to file server requests by described communication linkage, the configuration data file backed up on file server is returned on network element.
8. a system that backs up and recover configuration data file on network element, is characterized in that, comprising:
File server, be used for preserving the element configuration data file;
Network element, for configuration file server information, and when configuration data change event occurs, after predetermined time delay, element configuration data file backup after according to described file server information, configuration data being changed is to described file server, and, when needs recover the element configuration data file, the element configuration data file backed up to described file server requests, return to the element configuration data file backed up on file server on network element.
9. system according to claim 8, is characterized in that, described network element comprises:
Dispensing unit, for preserving the file server information that comprises file server address and file server account of configuration;
The data backup unit, for when described configuration data change event occurs, after the predetermined time delay of depending on configuration modification timer and data backup back off timer, the element configuration data file backup after configuration data is changed is to described file server;
Data recovery unit, for when needs recover the element configuration data file, the file server information and the described file server that utilize described dispensing unit to preserve are set up communication linkage, and the element configuration data file backed up to file server requests by described communication linkage, the configuration data file backed up on file server is returned on network element.
10. system according to claim 8 or claim 9, is characterized in that, described network element also comprises for the configuration modification back off timer of the element configuration data file after the backup configuration data change and data backup back off timer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210165524.7A CN103428022B (en) | 2012-05-25 | 2012-05-25 | A kind of method and system backed up and restore configuration data file on network element |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210165524.7A CN103428022B (en) | 2012-05-25 | 2012-05-25 | A kind of method and system backed up and restore configuration data file on network element |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103428022A true CN103428022A (en) | 2013-12-04 |
CN103428022B CN103428022B (en) | 2018-09-07 |
Family
ID=49652227
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210165524.7A Active CN103428022B (en) | 2012-05-25 | 2012-05-25 | A kind of method and system backed up and restore configuration data file on network element |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103428022B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104301142A (en) * | 2014-10-13 | 2015-01-21 | 杭州华三通信技术有限公司 | Backup method and device for configuration files |
CN104468571A (en) * | 2014-12-05 | 2015-03-25 | 上海斐讯数据通信技术有限公司 | Configuration file backup and recovery method and system |
CN105337781A (en) * | 2015-12-01 | 2016-02-17 | 上海斐讯数据通信技术有限公司 | Network management system and method and network system |
CN110602724A (en) * | 2018-06-12 | 2019-12-20 | 华为技术有限公司 | Network configuration method and communication device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1815974A (en) * | 2005-02-06 | 2006-08-09 | 华为技术有限公司 | Method and system for duplicating and recovering network element configuration data |
CN101106480A (en) * | 2007-06-27 | 2008-01-16 | 杭州华三通信技术有限公司 | Configuration backup method, system and configuration file server and managed devices |
US20120054537A1 (en) * | 2010-08-24 | 2012-03-01 | Tellabs Oy | Protection of a network element of a data transfer network |
-
2012
- 2012-05-25 CN CN201210165524.7A patent/CN103428022B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1815974A (en) * | 2005-02-06 | 2006-08-09 | 华为技术有限公司 | Method and system for duplicating and recovering network element configuration data |
CN101106480A (en) * | 2007-06-27 | 2008-01-16 | 杭州华三通信技术有限公司 | Configuration backup method, system and configuration file server and managed devices |
US20120054537A1 (en) * | 2010-08-24 | 2012-03-01 | Tellabs Oy | Protection of a network element of a data transfer network |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104301142A (en) * | 2014-10-13 | 2015-01-21 | 杭州华三通信技术有限公司 | Backup method and device for configuration files |
CN104301142B (en) * | 2014-10-13 | 2018-12-25 | 新华三技术有限公司 | A kind of backup method and equipment of configuration file |
CN104468571A (en) * | 2014-12-05 | 2015-03-25 | 上海斐讯数据通信技术有限公司 | Configuration file backup and recovery method and system |
CN105337781A (en) * | 2015-12-01 | 2016-02-17 | 上海斐讯数据通信技术有限公司 | Network management system and method and network system |
CN110602724A (en) * | 2018-06-12 | 2019-12-20 | 华为技术有限公司 | Network configuration method and communication device |
CN110602724B (en) * | 2018-06-12 | 2021-05-14 | 华为技术有限公司 | Network configuration method and communication device |
US11736355B2 (en) | 2018-06-12 | 2023-08-22 | Huawei Technologies Co., Ltd. | Network configuration method and communications apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN103428022B (en) | 2018-09-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
USRE47852E1 (en) | Snapshot and replication of a multi-stream application on multiple hosts at near-sync frequency | |
US11397648B2 (en) | Virtual machine recovery method and virtual machine management device | |
JP5075736B2 (en) | System failure recovery method and system for virtual server | |
EP3848809A1 (en) | Data disaster recovery method and site | |
WO2017028375A1 (en) | Version upgrading method and system | |
CN103428022A (en) | Method and system for network element configuration data file backup and recovery | |
CN103713925A (en) | Method and device for avoiding service interruption of storage array in upgrading process | |
CN103634388B (en) | Controller is restarted in treatment storage server method and relevant device and communication system | |
CN104516796A (en) | Command set based network element backup and recovery method and device | |
CN110972497A (en) | Disaster recovery method and device for virtualization platform | |
US20180129668A1 (en) | Intermediate file processing method, client, server, and system | |
EP3499373A1 (en) | Method and apparatus for processing process | |
US9513983B2 (en) | Method for maintaining file system of computer system | |
CN103763137A (en) | Device configuration connection protective method, system and device | |
CN104463014B (en) | A kind of oracle database guard method based on snapshot | |
JP2005301436A (en) | Cluster system and failure recovery method for it | |
CN112416527A (en) | Data recovery method, device, equipment and storage medium | |
CN111090491B (en) | Virtual machine task state recovery method and device and electronic equipment | |
CN115314361B (en) | Server cluster management method and related components thereof | |
CN105117300A (en) | Apparatus for realizing high availability of heartbeat | |
CN106204031A (en) | card application processing method and device | |
CN106911557B (en) | Message transmission method and device | |
JP5466740B2 (en) | System failure recovery method and system for virtual server | |
CN107729170B (en) | Method and device for generating dump file by HBA card | |
CN112306527A (en) | Server upgrading method and device, computer equipment and 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |