CN103428022B - A kind of method and system backed up and restore configuration data file on network element - Google Patents

A kind of method and system backed up and restore configuration data file on network element Download PDF

Info

Publication number
CN103428022B
CN103428022B CN201210165524.7A CN201210165524A CN103428022B CN 103428022 B CN103428022 B CN 103428022B CN 201210165524 A CN201210165524 A CN 201210165524A CN 103428022 B CN103428022 B CN 103428022B
Authority
CN
China
Prior art keywords
configuration data
file
timer
network element
configuration
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
CN201210165524.7A
Other languages
Chinese (zh)
Other versions
CN103428022A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201210165524.7A priority Critical patent/CN103428022B/en
Publication of CN103428022A publication Critical patent/CN103428022A/en
Application granted granted Critical
Publication of CN103428022B publication Critical patent/CN103428022B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Computer And Data Communications (AREA)
  • Retry When Errors Occur (AREA)

Abstract

The invention discloses it is a kind of backup and recovery network element on configuration data file method and system, the method includes:It is configured to preserve the file server information of element configuration data file on network element;The configuration data for monitoring network element changes event, and when configuration data change event occurs, after predetermined delay, on the element configuration data file backup to the file server after being changed configuration data according to the file server information;When needing to restore network element configuration data file, the network element configuration file that network element has been backed up to file server requests is restored to the configuration data file backed up on file server on network element.The present invention, on element configuration data file backup to file server, solving the problems, such as the configuration data loss caused by the configuration data error of network element or file system malfunction, can ensure the normal work of network element after configuration data is changed.

Description

A kind of method and system backed up and restore configuration data file on network element
Technical field
The present invention relates to backuped to after configuration data file configuration modification on field of communication technology more particularly to a kind of network element The technology of file server.
Background technology
As the communication technology continues to develop, network element/server architecture is widely used.
As more and more new business, new function are introduced in network element, network element stores important network element configuration number According to file, when mistake occurs for the file system of network element, or even collapse occurs, the important element configuration data that is stored in network element File can partly or entirely be lost.
In current art, if mistake or collapse occur for the file system on network element, network element is typically due to lack weight The configuration data wanted makes system collapse.Since important element configuration data file does not back up, when the file system of network element When system restores, network element can not be restored to normal working condition.
Invention content
The purpose of the present invention is to provide a kind of method and system of configuration data file in backup and recovery network element, can be more Element configuration data file caused by situations such as solving the problems, such as file system corruption on network element well or collapsing is lost.
According to an aspect of the invention, there is provided a kind of method backed up and restore configuration data file on network element, packet It includes:
It is configured to preserve the file server information of element configuration data file on network element;
The configuration data for monitoring network element changes event, and when configuration data change event occurs, by predetermined After delay, element configuration data file backup after being changed configuration data according to the file server information to the file On server;
When needing to restore network element configuration data file, element configuration data that network element has been backed up to file server requests File, having backed up on element configuration data file access pattern to network element on file server.
Preferably, the step of profile service device information includes:
Configuration includes the file server information of file server address and file server account on network element, and by institute File server information is stated to preserve into the configuring area of network element or configuration file.
Preferably, the predetermined delay depends on configuration modification timer and data backup back off timer, wherein is supervising Before the configuration data change event of survey grid member, the duration and the data backup that configure the configuration modification back off timer prolong When timer duration.
Preferably, the step on element configuration data file backup to the file server after configuration data being changed Including:
When configuration data change event occurs, the configuration modification back off timer is triggered, and in the configuration After changing back off timer or the data backup back off timer time-out, the element configuration data text after configuration data is changed Part backups on the file server.
Preferably, the step of triggering the configuration modification back off timer include:
Network element judges whether configuration modification back off timer;
When judging result is to reset the duration of the configuration modification back off timer there are when configuration modification back off timer And start;
When judging result is to generate configuration modification back off timer there is no when configuration modification back off timer, institute is arranged State the duration of configuration modification back off timer and startup.
Preferably, after triggering the configuration modification back off timer, network element judges whether data backup delay timing Device, and determining there is no when data backup back off timer, data backup back off timer is generated, its duration is set and is opened It is dynamic.
Preferably, the recovering step of element configuration data file includes:
When needing to restore network element configuration data file, file server information and the file of the network element using its preservation Server establishes communication linkage, and the element configuration data text backed up to file server requests by the communication linkage The configuration data file backed up on file server is restored on network element by part.
According to another aspect of the present invention, a kind of system backed up and restore configuration data file on network element, packet are provided It includes:
File server, for preserving element configuration data file;
Network element is used for profile service device information, and when configuration data change event occurs, by predetermined delay Afterwards, element configuration data file backup after being changed configuration data according to the file server information is to the file service On device, and when needing to restore network element configuration data file, the element configuration data that has been backed up to the file server requests File, having backed up on element configuration data file access pattern to network element on file server.
Preferably, the network element includes:
Dispensing unit, the file server for including file server address and file server account for preserving configuration Information;
Data backup unit is used for when configuration data change event occurs, by depending on configuration modification timing After the predetermined delay of device and data backup back off timer, element configuration data file backup after configuration data is changed to institute It states on file server;
Data recovery unit, for when needing to restore network element configuration data file, being preserved using the dispensing unit File server information is established with the file server and is communicated to connect, and is communicated to connect to file server requests by described The element configuration data file backed up, the configuration data file backed up on file server is restored on network element.
Preferably, the network element further includes being repaiied for the configuration of the element configuration data file after backup configuration data change Change back off timer and data backup back off timer.
Compared with prior art, the beneficial effects of the present invention are:
The present invention can be standby element configuration data file after predetermined delay when the configuration data of network element is changed On part to file server so that when the configuration data of network element malfunctions or file system malfunctions, backup can be utilized in text in time The configuration data on element configuration data file access pattern network element on part server.
Description of the drawings
Fig. 1 is the method block diagram of configuration data file on backup and recovery network element provided in an embodiment of the present invention;
Fig. 2 is the flow chart of user configuration task provided in an embodiment of the present invention;
Fig. 3 is the flow chart of backup network elements configuration data file provided in an embodiment of the present invention;
Fig. 4 is the flow chart provided in an embodiment of the present invention for restoring network element configuration data file;
Fig. 5 is the system block diagram of configuration data file on backup and recovery network element provided in an embodiment of the present invention.
Specific implementation mode
Below in conjunction with attached drawing to a preferred embodiment of the present invention will be described in detail, it should be understood that described below is excellent Select embodiment only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.
The present invention conditionally backups to the configuration data file on network element on file server, and can be extensive in time Multiple, the condition of backup after the condition of backup occurs, is started after the duration that is delayed standby after the configuration data change of network element Part configuration data file, then a maximum duration is set to ensure that backup actions can back up.When the file system on network element When recovery, correct element configuration data file can be restored from file server, to make network element be restored to normal work Make state.
Fig. 1 is the method block diagram of configuration data file on backup and recovery network element provided in an embodiment of the present invention, such as Fig. 1 institutes Show, step includes:
Step 101:It is configured to preserve the file server information of element configuration data file on network element.
User needs to make network element following setting:
1)The IP address of file server, the necessary informations such as account number;
2)Configure the maximum delay of the delay and condition backup of the condition backup of network element, the i.e. duration of configuration modification timer With the duration of data backup back off timer.
Step 102:The configuration data for monitoring network element changes event, and when configuration data change event occurs, After predetermined delay, the element configuration data file backup after being changed configuration data according to the file server information arrives On the file server.
The predetermined delay depends on configuration modification timer and data backup back off timer.
Step 103:When needing to restore network element configuration data file, network element that network element has been backed up to file server requests Configuration data file, having backed up on element configuration data file access pattern to network element on file server.
It, only need to be from the configuration data text backed up on file server when needing to restore the configuration data file on network element Part downloads in client computer, and wherein the File Transfer Protocol between network element and file server can be TFTP, FTP or SFTP association View.
Fig. 2 is the flow chart of user configuration task provided in an embodiment of the present invention, as shown in Fig. 2, to file server The flow chart of IP address, the configuration of the necessary informations such as account number specifically includes following steps:
Step 200:Initial configuration task;
Step 210:Network element waits for the configuration order of user;
Step 220:Network element judges whether input by user be profile service device order, if so, thening follow the steps 221, otherwise, execute step 230;
Step 221:The IP address of file server, the necessary informations such as account number are set, and are after accomplishing the setting up returning to step Rapid 210, continue waiting for the configuration order of user;
Step 230:Network element judges whether input by user be condition backup configuration order, if it is, executing step successively Rapid 231 and step 232, otherwise, execute step 240;
Step 231:The duration of configuration modification back off timer is set;
Step 232:The duration of data backup back off timer is set, step 210 is then returned to, continues waiting for user's Configuration order.
Fig. 3 is the flow chart of backup network elements configuration data file provided in an embodiment of the present invention, as shown in figure 3, step packet It includes:
Step 300:Initialization condition backup tasks;
Step 310:Initial configuration changes back off timer and data backup back off timer;
Step 320:Network element waits for message to be treated;
Step 330:Network element judges whether the message waited until is that configuration data has changed message, if so, executing step successively Rapid 331 and step 332, otherwise, execute step 340;
Step 331:If configuration modification back off timer has been arranged, the duration of the configuration modification back off timer is reseted And start, otherwise, the configuration modification back off timer is generated, its duration is set and is started;
Step 332:If data backup back off timer is not arranged, data backup back off timer is generated, setting is at that time It grows and starts, then return to step 320, continue waiting for message to be treated;
Step 340:Network element judges whether the message waited until is configuration modification timer then message, if so, holding successively Otherwise row step 341 and step 342 execute step 350;
Step 341:On element configuration data file backup to file server;
Step 342:If being provided with data backup back off timer, cancel the data backup back off timer, then Back to step 320, message to be treated is continued waiting for;
Step 350:Judge whether the message waited until is data backup timer then message, if so, executing step successively Rapid 351 and step 352, otherwise, execute step 360;
Step 351:On element configuration data file backup to file server;
Step 352:If being provided with configuration modification back off timer, cancel the configuration modification back off timer, then Back to step 320, message to be treated is continued waiting for.
Fig. 4 is the flow chart provided in an embodiment of the present invention for restoring network element configuration data file, as shown in figure 4, step packet It includes:
Step 400:Start to restore the configuration data file on network element;
Step 410:Network element establishes communication linkage to configured file server requests;
Step 420:By the communication linkage of foundation, network element is to file server requests element configuration data file;
Step 430:Element configuration data file is transmitted to network element by file server;
Step 440:File server complete institute the element configuration data file of recovery in need transmission, and relationship communication Link;
Step 450:Network element terminates to restore network element configuration data file.
Fig. 5 is the system block diagram of configuration data file on backup and recovery network element provided in an embodiment of the present invention, such as Fig. 5 institutes Show, including:
File server, for preserving element configuration data file;
Network element is used for profile service device information, and when configuration data change event occurs, by predetermined delay Afterwards, element configuration data file backup after being changed configuration data according to the file server information is to the file service On device, and when needing to restore network element configuration data file, the element configuration data that has been backed up to the file server requests File, having backed up on element configuration data file access pattern to network element on file server.
Wherein, the network element includes:
Dispensing unit, the file server for including file server address and file server account for preserving configuration Information;
Data backup unit is used for when configuration data change event occurs, by depending on configuration modification timing After the predetermined delay of device and data backup back off timer, element configuration data file backup after configuration data is changed to institute It states on file server;
Data recovery unit, for when needing to restore network element configuration data file, being preserved using the dispensing unit File server information is established with the file server and is communicated to connect, and is communicated to connect to file server requests by described The element configuration data file backed up, the configuration data file backed up on file server is restored on network element;
Configuration modification back off timer and data backup back off timer, match for the network element after backup configuration data change Set data file.Indicate the configuration modification back off timer and the data backup delay timing respectively with T1 and T2 Device, the condition backed up are that configuration data changes event, and at a time configuration data has modified, and then T1 is triggered. T1 is triggered that is, when expiring backup operation will occur for the time-out of T1 timers setting;One when T1 expires not yet Moment, and the condition of configuration modification occurs, then T1 is reset, that is to say, that backup operation is crossed T1 timers and set again Can just it occur when the time-out set expires, if the always configuration modification before the time-out of T1 timers setting expires, always will not Backup operation occurs;In order to solve this case, setting T2, that is, longest time-out, no matter it has occurred within a certain period of time more Few configuration modification, max-timeout T2 is just provided in first time configuration modification, even if subsequently configuration is had modified, if T1 Timer is not timed-out, then when max-timeout T2 timer expiries expire, triggers backup operation, be ensure that and is matched in multiple modification In the case of setting data, backup operation is triggered.
The workflow of the system is as follows:
Step 501:The file server of network element is configured, that is, configures file server address, the file server account of network element Number etc. necessary informations, and according to the request of user, the configuration of file server is saved in configuring area or configuration file.
Step 502:The maximum delay for configuring the delay and condition backup of the condition backup of network element, that is, configure the configuration of network element The duration of the duration and data backup back off timer of back off timer is changed, and according to the request of user, the condition of network element The configuration of backup is saved in configuring area or configuration file.
Step 503:After the configuration data change of network element, configuration modification back off timer is checked, and if so, resetting The configuration modification back off timer is arranged its duration and starts if there is no configuration modification back off timer is then generated;And It checks data backup back off timer, if it does not exist, then generating data backup back off timer, its duration is set and is started.
Step 504:After configuration modification back off timer time-out, starts backup network elements configuration data file, back up successfully Afterwards, cancel data backup back off timer.
Step 505:After data backup back off timer time-out, starts backup network elements configuration data file, back up successfully Afterwards, cancel configuration modification back off timer.
Step 506:When needing to restore file, the configuration data file that network element has been backed up to file server requests, The configuration data file backed up is restored on network element.Specifically, when network element needs recovery configuring data file, first, to The file server of configuration sends linking request, and after establishing communication linkage, account is sent to file server;File service Device receives account by verification, is successfully established communication linkage.Then, by the communication linkage of foundation, network element takes to file Element configuration data file is transmitted to network element by business device request from file server;Finally, file server transmits institute to network element After having the element configuration data file to be restored, communication close link.
In conclusion when on network element file system corruption or the case where collapse occur when, user is in the text for repairing network element After part system, restore the element configuration data file backed up under the catalogue that can be specified from file server again, to Ensure that network element can work normally.
Although describing the invention in detail above, but the invention is not restricted to this, those skilled in the art of the present technique It can be carry out various modifications with principle according to the present invention.Therefore, all to be changed according to made by the principle of the invention, all it should be understood as Fall into protection scope of the present invention.

Claims (8)

1. a kind of method of configuration data file on backup and recovery network element, which is characterized in that including:
It is configured to preserve the file server information of element configuration data file on network element;
The configuration data for monitoring network element changes event, when monitoring that the configuration data change event occurs, by depending on After the predetermined delay of configuration modification timer and data backup back off timer, it will be configured using the file server information On element configuration data file backup to the file server after data change;
When needing to restore network element configuration data file, the element configuration data that network element has been backed up to file server requests is literary Part, having backed up on element configuration data file access pattern to network element on file server;
Wherein, it is described configuration data is changed after element configuration data file backup to the file server on step Including:When configuration data change event occurs, the configuration modification back off timer is triggered, and in the configuration modification After back off timer or the data backup back off timer time-out, the element configuration data file after configuration data is changed is standby On part to the file server;
Wherein, standby to the duration and data of configuration modification back off timer before the configuration data change event of monitoring network element The duration of part back off timer is configured, and the data backup back off timer is made to have the duration of max-timeout;
Wherein, when the configuration data change event occurs for the first time, it is arranged maximum super described in data backup back off timer When duration and startup.
2. according to the method described in claim 1, it is characterized in that, the step of profile service device information include:
Configuration includes the file server information of file server address and file server account on network element, and by the text Part server info is preserved into the configuring area of network element or configuration file.
3. according to the method described in claim 2, it is characterized in that, the step of triggering the configuration modification back off timer is wrapped It includes:
Network element judges whether configuration modification back off timer;
When judging result is that there are when configuration modification back off timer, reset the duration of the configuration modification back off timer and open It is dynamic;
When judging result is that there is no when configuration modification back off timer, generate configuration modification back off timer, match described in setting Set the duration of modification back off timer and startup.
4. according to the method described in claim 3, it is characterized in that, after triggering the configuration modification back off timer, network element is sentenced It is disconnected to whether there is data backup back off timer, and determining there is no when data backup back off timer, generate data backup Back off timer is arranged its duration and starts.
5. according to the method described in claim 4, it is characterized in that, the recovering step of element configuration data file includes:
When needing to restore network element configuration data file, network element is built using the file server information of its preservation with file server Vertical communication linkage, and the element configuration data file backed up to file server requests by the communication linkage, will be standby Configuration data file of the part on file server is restored on network element.
6. the system of configuration data file on a kind of backup and recovery network element, which is characterized in that including:
File server, for preserving element configuration data file;
Network element is used for profile service device information, and monitors the configuration data change event of network element, according to monitoring result net First configuration data file backups on the file server;And when needing to restore network element configuration data file, to described The element configuration data file that file server requests have backed up, backed up on file server element configuration data text Part is restored on network element;
Wherein, it is described according to monitoring result including on element configuration data file backup to the file server:Work as prison When measuring configuration data change event and occurring, by depending on the pre- of configuration modification timer and data backup back off timer After fixed delay, element configuration data file backup after being changed configuration data using the file server information to the text On part server;
It is described configuration data is changed after element configuration data file backup to the file server on step include: When configuration data change event occurs, the configuration modification back off timer is triggered, and be delayed in the configuration modification After timer or the data backup back off timer time-out, the element configuration data file backup after configuration data is changed arrives On the file server;
Wherein, standby to the duration and data of configuration modification back off timer before the configuration data change event of monitoring network element The duration of part back off timer is configured, and the data backup back off timer is made to have the duration of max-timeout;
Wherein, when the configuration data change event occurs for the first time, it is arranged maximum super described in data backup back off timer When duration and startup.
7. system according to claim 6, which is characterized in that the network element includes:
Dispensing unit includes file server address and the file server letter of file server account for preserve configuration Breath;
Data backup unit, for when the configuration data change event occur when, through depending on configuration modification timer and After the predetermined delay of data backup back off timer, element configuration data file backup after configuration data is changed to the text On part server;
Data recovery unit, the file for when needing to restore network element configuration data file, being preserved using the dispensing unit Server info establishes communication linkage with the file server, and standby to file server requests by the communication linkage The element configuration data file of part, the configuration data file backed up on file server is restored on network element.
8. the system described according to claim 6 or 7, which is characterized in that the network element further includes changing for backup configuration data The configuration modification back off timer and data backup back off timer of element configuration data file after dynamic.
CN201210165524.7A 2012-05-25 2012-05-25 A kind of method and system backed up and restore configuration data file on network element Active CN103428022B (en)

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 CN103428022A (en) 2013-12-04
CN103428022B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN110602724B (en) * 2018-06-12 2021-05-14 华为技术有限公司 Network configuration method and communication device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
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
CN100544283C (en) * 2007-06-27 2009-09-23 杭州华三通信技术有限公司 Configuration backup method, system and configuration file server and managed devices
FI20105878A (en) * 2010-08-24 2012-02-25 Tellabs Oy Security of the network element of the communication network

Also Published As

Publication number Publication date
CN103428022A (en) 2013-12-04

Similar Documents

Publication Publication Date Title
US7000100B2 (en) Application-level software watchdog timer
US8458534B1 (en) Method and system for providing high availability to computer applications
US7409577B2 (en) Fault-tolerant networks
CN109743358A (en) Asynchronous message interface fusing control method, device, computer equipment and storage medium
JPH0731647B2 (en) Remote maintenance and error recovery method and apparatus in a distributed data processing network
WO2020224237A1 (en) Blockchain consensus method, apparatus, device and storage medium
CN103428022B (en) A kind of method and system backed up and restore configuration data file on network element
CN105120005B (en) A kind of hot update method of game server, server and system
WO2020134199A1 (en) Method and apparatus for implementing data consistency, and server and terminal
CN103825777A (en) DMZ server switching method and device
TWI429232B (en) Backup server, system and method for recovering client devices register at primary server
EP3499373A1 (en) Method and apparatus for processing process
JP2005301436A (en) Cluster system and failure recovery method for it
Zhu et al. IT disaster tolerance and application classification for data centers
CN104821889B (en) A kind of processing method and equipment of backup message
CN113254166A (en) Method for processing IO request, storage medium and virtualization simulator
JP2773424B2 (en) Network system and connection computer switching method
JP2015114952A (en) Network system, monitoring control unit, and software verification method
CN101202658A (en) System and method for service take-over of multi-host system
CN103475465A (en) MACsec key update method and device in ISSU process
JP2003345638A (en) Method for controlling storage controller, the storage controller, and program
WO2016101424A1 (en) Method and apparatus for realizing terminal service information processing
CN100361047C (en) Method and apparatus for raising reliability of bus transmission
CN100588161C (en) Information processing device, method and programme
CN101446844B (en) Frequency converter

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