CN108418720A - A kind of restoration methods, device and the routing device of routing device configuration information - Google Patents

A kind of restoration methods, device and the routing device of routing device configuration information Download PDF

Info

Publication number
CN108418720A
CN108418720A CN201810371712.2A CN201810371712A CN108418720A CN 108418720 A CN108418720 A CN 108418720A CN 201810371712 A CN201810371712 A CN 201810371712A CN 108418720 A CN108418720 A CN 108418720A
Authority
CN
China
Prior art keywords
configuration information
routing device
backup subregion
current
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810371712.2A
Other languages
Chinese (zh)
Inventor
阮鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Phoenix Communication Technology Ltd By Share Ltd
Original Assignee
Shenzhen Phoenix Communication Technology Ltd By Share 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 Shenzhen Phoenix Communication Technology Ltd By Share Ltd filed Critical Shenzhen Phoenix Communication Technology Ltd By Share Ltd
Priority to CN201810371712.2A priority Critical patent/CN108418720A/en
Publication of CN108418720A publication Critical patent/CN108418720A/en
Pending legal-status Critical Current

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/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
    • 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/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0853Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information
    • H04L41/0856Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information by backing up or archiving configuration information
    • 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/0866Checking the configuration
    • H04L41/0869Validating the configuration within one network element
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/60Router architectures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Abstract

The present invention discloses a kind of restoration methods, device and the routing device of routing device configuration information, and method includes:While backstage configuration file is written in the configuration information of routing device, it is written to backup subregion, when restarting routing device, compare the configuration information of the configuration information and the backup subregion of current routing device, when the configuration information of the configuration information and the backup subregion that compare current routing device differs, the configuration information of the backup subregion is then replaced to the configuration information of current routing device, realize that routing device unexpected is lost with postponing due to various to reach, it can be by restarting automatic smoothing recovery configuring, without taking other any nuisance operations, without any external equipment, resource can more be saved, efficiently, greatly improve the stability and user experience of routing device.

Description

A kind of restoration methods, device and the routing device of routing device configuration information
Technical field
The present invention relates to routing device technical field more particularly to a kind of restoration methods of routing device configuration information, dresses It sets and routing device.
Background technology
With the continuous development of the communication technology, internet becomes a part indispensable in people's daily life.Routing An important ring of the equipment as connection terminal and internet, is greatly welcome and is widely applied by people.But using road When by equipment, various problem also will produce.And routing device is after long-play, automatic recovery configuring setting is also One very common problem, and the case where this loss configures, might have various reason, can not position or very Difficult positioning comprehensively.
Under existence conditions, other than developer finds out its basic reason as possible, the scheme generally used is to need user hand The storage device of trend oneself exports a configuration file, when there is configuration loss, then imports configuration file route manually Then equipment restarts routing device.The program has several drawbacks in that:
One, it is desirable that user hand is dynamic to go to operate, and can influence user experience in this way;
Second, not all user can go export to preserve a configuration, most users usually will not all be gone so Operation;
Third, being exactly to be necessarily required to a storage device to store derived configuration;
Fourth, and the most important, the configuration of user setting routing device is instant, if setting up every time A configuration will be exported with postponing, operation complexity can be increased, is a thing beyond affordability, user for a user Experience is general.
Invention content
The present invention provides a kind of restoration methods, device and the routing device of routing device configuration information, existing to solve There is technology, since various unexpected loss are with postponing, to need by external equipment and take to external equipment, routing in routing device The operation of equipment carrys out the configuration of restoration route equipment, and efficiency is low, the general technical problem of user experience.
In order to solve the above technical problems, the present invention provides a kind of restoration methods of routing device configuration information, including:It is inciting somebody to action While the configuration information write-in backstage configuration file of routing device, it is written to backup subregion;
When restarting routing device, the configuration information of the configuration information of more current routing device and the backup subregion, When the configuration information of the configuration information and the backup subregion that compare current routing device differs, then by the backup subregion Configuration information replace the configuration information of current routing device.
It is wherein, described to be written to backup subregion while backstage configuration file is written in the configuration information of routing device, Including:
Text is configured backstage will be written in the configuration information of the routing device of the setting and preservation of routing device administration web page While part, it is written to backup subregion;
Described while backstage configuration file is written in the configuration information of routing device, be written to backup subregion it Before, further include:
Backup subregion of one piece of storage region as routing device configuration information is divided in memory.
Wherein, described when restarting routing device, the configuration information of more current routing device and the backup subregion When the configuration information of configuration information, the configuration information and the backup subregion that compare current routing device differs, then by institute The configuration information for stating backup subregion replaces the configuration information of current routing device, including:
When restarting routing device, in such a way that establishment is switched on the self-starting script of recovery configuring, relatively more current routing The configuration information of the configuration information of equipment and the backup subregion compares the configuration information of current routing device and the backup When the configuration information of subregion differs, then the configuration information of the backup subregion is replaced to the configuration information of current routing device.
Wherein, described when restarting routing device, in such a way that establishment is switched on the self-starting script of recovery configuring, compare The configuration information of the configuration information and the backup subregion of current routing device, compare current routing device configuration information and When the configuration information of the backup subregion differs, then the configuration information of the backup subregion is replaced into matching for current routing device Confidence ceases, including:
When restarting routing device, in such a way that establishment is switched on the self-starting script of recovery configuring, selection includes message The comparison algorithm of the 5th edition MD5 of digest algorithm, order comparing text based documents diff, the configuration information of more current routing device with The configuration information of the configuration information of the backup subregion, the configuration information for comparing current routing device and the backup subregion is not When identical, then the configuration information of the backup subregion is replaced to the configuration information of current routing device.
Wherein, described when restarting routing device, the configuration information of more current routing device and the backup subregion When the configuration information of configuration information, the configuration information and the backup subregion that compare current routing device differs, then by institute The configuration information for stating backup subregion replaces the configuration information of current routing device, further includes:
When restarting routing device, the configuration information of the configuration information of more current routing device and the backup subregion, When to compare the configuration information of current routing device with the configuration information of the backup subregion be identical, then replacement processing is not done.
In order to solve the above technical problems, the present invention also provides a kind of recovery devices of routing device configuration information, including:It writes Enter module, starting module, comparison module, replacement module;
Said write module, for while backstage configuration file is written in the configuration information of routing device, being written to Backup subregion;
The starting module, for restarting routing device;
The comparison module, for when the starting module restarts routing device, the configuration of more current routing device The configuration information of information and the backup subregion;
The replacement module, the configuration information for comparing current routing device in the comparison module and the backup When the configuration information of subregion differs, the configuration information of the backup subregion is replaced to the configuration information of current routing device.
Wherein, said write module, specifically for will set in the setting of routing device administration web page and the routing of preservation While backstage configuration file is written in standby configuration information, it is written to backup subregion;
The recovery device of the routing device configuration information further includes:
Creation module, for when the starting module restarts routing device, creating the self-starting foot of booting recovery configuring This.
Wherein, the comparison module, specifically for when the starting module restarts routing device, passing through the establishment mould The mode of the self-starting script for the booting recovery configuring that block is created, the configuration information of more current routing device and the backup The configuration information of subregion;
The recovery device of the routing device configuration information further includes:
Selecting module, for when the starting module restarts routing device, selection to include Message Digest Algorithm 5 The comparison algorithm of MD5, order comparing text based documents diff.
The comparison module, specifically for when the starting module restarts routing device, passing through the creation module institute The mode of the self-starting script of the booting recovery configuring of establishment, and selected by the selecting module includes that eap-message digest is calculated The comparison algorithm of the 5th edition MD5 of method, order comparing text based documents diff, the configuration information of more current routing device with it is described standby The configuration information of part subregion.
Wherein, the replacement module, be additionally operable to the comparison module compare the configuration information of current routing device with When the configuration information of the backup subregion is identical, replacement processing is not done;
The recovery device of the routing device configuration information further includes:
Memory, for dividing backup subregion of one piece of storage region as routing device configuration information.
In order to solve the above technical problems, the present invention provides a kind of routing device, including routing device provided by the invention again All technical solutions of the recovery device of configuration information.
The restoration methods of routing device configuration information provided by the invention, including:It is write by the configuration information of routing device While entering backstage configuration file, it is written to backup subregion, when restarting routing device, more current routing device matches confidence The configuration information of the configuration information of breath and the backup subregion, the configuration information for comparing current routing device and the backup subregion is not When identical, then the configuration information of the backup subregion is replaced to the configuration information of current routing device, realizes that routing is set to reach It is standby surprisingly to be lost due to various with postponing, it can be by restarting automatic smoothing recovery configuring, without taking other any extra behaviour Make, be not necessarily to any external equipment, can more save resource, efficiently, greatly improve stability and the user of routing device Experience.
The recovery device of routing device configuration information provided by the invention, including:Writing module, compares mould at starting module Block, replacement module;Writing module, for while backstage configuration file is written in the configuration information of routing device, being written to Backup subregion;Starting module, for restarting routing device;Comparison module, for when starting module restarts routing device, comparing The configuration information of the configuration information and the backup subregion of current routing device;Replacement module is worked as being compared in comparison module When the configuration information of preceding routing device and the configuration information of the backup subregion differ, the configuration information of the backup subregion is replaced The configuration information of current routing device;Realize that routing device since various unexpected loss are with postponing, can pass through weight to reach Automatic smoothing recovery configuring is opened, without taking other any nuisance operations, any external equipment is not necessarily to, can more save money Source, efficiently, greatly improve the stability and user experience of routing device.
Routing device provided by the invention includes all of the recovery device of routing device configuration information provided by the invention Technical solution, it is real to reach the realization purpose for realizing the recovery device for including routing device configuration information provided by the invention Existing routing device, can be by restarting automatic smoothing recovery configuring, without taking other since various unexpected loss are with postponing What nuisance operation is not necessarily to any external equipment, can more save resource, efficiently, greatly improve the stabilization of routing device Property and user experience.
Description of the drawings
Fig. 1 is the flow diagram of the restoration methods of routing device configuration information of the present invention;
Fig. 2 is the structural schematic diagram of the recovery device of routing device configuration information of the present invention.
Specific implementation mode
With reference to the accompanying drawings and examples, the present invention is described in further detail.It is emphasized that following implement Example is merely to illustrate the present invention, but is not defined to the scope of the present invention.Likewise, following embodiment is only the portion of the present invention Point embodiment and not all embodiments, the institute that those of ordinary skill in the art are obtained without creative efforts There are other embodiments, shall fall within the protection scope of the present invention.
The present invention provides a kind of restoration methods of routing device configuration information.
Fig. 1 is referred to, Fig. 1 is the flow diagram of the restoration methods of routing device configuration information of the present invention, road of the present invention By the restoration methods of device configuration information, including:
S101:While backstage configuration file is written in the configuration information of routing device, it is written to backup subregion.
Wherein, while backstage configuration file is written in the configuration information of routing device, it is written to backup subregion, is wrapped It includes:
Text is configured backstage will be written in the configuration information of the routing device of the setting and preservation of routing device administration web page While part, it is written to backup subregion.
Wherein, while backstage configuration file is written in the configuration information of routing device, be written to backup subregion it Before, further include:
Backup subregion of one piece of storage region as routing device configuration information is divided in memory.
S102:When restarting routing device, the configuration information of more current routing device matches confidence with the backup subregion Breath, when the configuration information of the configuration information and the backup subregion that compare current routing device differs, then by the backup subregion Configuration information replace the configuration information of current routing device.
Wherein, when restarting routing device, the configuration information of more current routing device matches confidence with the backup subregion Breath, when the configuration information of the configuration information and the backup subregion that compare current routing device differs, then by the backup subregion Configuration information replace the configuration information of current routing device, including:
When restarting routing device, in such a way that establishment is switched on the self-starting script of recovery configuring, relatively more current routing The configuration information of the configuration information of equipment and the backup subregion compares the configuration information and the backup subregion of current routing device Configuration information when differing, then the configuration information of the backup subregion is replaced to the configuration information of current routing device.
Wherein, relatively more current in such a way that establishment is switched on the self-starting script of recovery configuring when restarting routing device The configuration information of the configuration information of routing device and the backup subregion compares configuration information and the backup of current routing device When the configuration information of subregion differs, then the configuration information of the backup subregion is replaced to the configuration information of current routing device, wraps It includes:
When restarting routing device, in such a way that establishment is switched on the self-starting script of recovery configuring, selection includes message The comparison algorithm of digest algorithm the 5th edition (MD5), order comparing text based documents (diff) etc., the configuration of more current routing device The configuration information of information and the backup subregion compares the configuration information of the configuration information and the backup subregion of current routing device When differing, then the configuration information of the backup subregion is replaced to the configuration information of current routing device.
Wherein, when restarting routing device, the configuration information of more current routing device matches confidence with the backup subregion Breath, when the configuration information of the configuration information and the backup subregion that compare current routing device differs, then by the backup subregion Configuration information replace the configuration information of current routing device, further include:
When restarting routing device, the configuration information of the configuration information of more current routing device and the backup subregion, than When relatively to go out the configuration information of current routing device with the configuration information of the backup subregion be identical, then replacement processing is not done.
The present invention also provides a kind of recovery devices of routing device configuration information.
Fig. 2 is referred to, Fig. 2 is the structural schematic diagram of the recovery device of routing device configuration information of the present invention, road of the present invention By the recovery device of device configuration information, including:Writing module 201, starting module 202, comparison module 203, replacement module 204。
Writing module 201, for while backstage configuration file is written in the configuration information of routing device, being written to standby Part subregion.
Starting module 202, for restarting routing device.
Comparison module 203, for when starting module 202 restarts routing device, more current routing device to match confidence The configuration information of breath and the backup subregion.
Replacement module 204, configuration information and the backup subregion for comparing current routing device in comparison module 203 Configuration information when differing, the configuration information of the backup subregion is replaced to the configuration information of current routing device.
Wherein, writing module 201 are specifically used for will be in the routing device of the setting of routing device administration web page and preservation Configuration information write-in backstage configuration file while, be written to backup subregion.
Wherein, the recovery device of routing device configuration information of the present invention further includes:
Memory (does not indicate) in figure, for dividing backup point of one piece of storage region as routing device configuration information Area.
Wherein, the recovery device of routing device configuration information of the present invention further includes:
Creation module (does not indicate) in figure, for when starting module 202 restarts routing device, creating booting recovery configuring Self-starting script.
Wherein, comparison module 203, specifically for when starting module 202 restarts routing device, passing through the creation module institute The mode of the self-starting script of the booting recovery configuring of establishment, the configuration information of more current routing device and the backup subregion Configuration information.
Wherein, the recovery device of routing device configuration information of the present invention further includes:
Selecting module (does not indicate) in figure, for when starting module 202 restarts routing device, selection to include eap-message digest The comparison algorithm of the 5th edition MD5 of algorithm, order comparing text based documents diff etc..
Wherein, comparison module 203, specifically for when starting module 202 restarts routing device, passing through the creation module institute The mode of the self-starting script of the booting recovery configuring of establishment, and selected by the selection module includes Message Digest 5 The comparison algorithm of 5th edition MD5, order comparing text based documents diff etc., the configuration information of more current routing device and the backup The configuration information of subregion.
Wherein, replacement module 204 are additionally operable to compare the configuration information of current routing device in comparison module 203 and be somebody's turn to do When the configuration information of backup subregion is identical, replacement processing is not done.
The present invention provides a kind of routing device again.
Routing device provided by the invention includes all of the recovery device of routing device configuration information provided by the invention Technical solution, details are not described herein again.
The restoration methods of routing device configuration information provided by the invention, including:It is write by the configuration information of routing device While entering backstage configuration file, it is written to backup subregion, when restarting routing device, more current routing device matches confidence The configuration information of the configuration information of breath and the backup subregion, the configuration information for comparing current routing device and the backup subregion is not When identical, then the configuration information of the backup subregion is replaced to the configuration information of current routing device, realizes that routing is set to reach It is standby surprisingly to be lost due to various with postponing, it can be by restarting automatic smoothing recovery configuring, without taking other any extra behaviour Make, be not necessarily to any external equipment, can more save resource, efficiently, greatly improve stability and the user of routing device Experience.
The recovery device of routing device configuration information provided by the invention, including:Writing module 201, starting module 202, Comparison module 203, replacement module 204;Writing module 201, for the configuration information write-in backstage of routing device to be configured text While part, it is written to backup subregion;Starting module 202, for restarting routing device;Comparison module 203, for starting mould When block 202 restarts routing device, the configuration information of the configuration information of more current routing device and the backup subregion;Replacement module 204, it is differed for comparing the configuration information of configuration information and the backup subregion of current routing device in comparison module 203 When, the configuration information of the backup subregion is replaced to the configuration information of current routing device;To reach realize routing device due to Various unexpected loss, without taking other any nuisance operations, can be not necessarily to postponing by restarting automatic smoothing recovery configuring Any external equipment, can more save resource, efficiently, greatly improve the stability and user experience of routing device.
Routing device provided by the invention includes all of the recovery device of routing device configuration information provided by the invention Technical solution, it is real to reach the realization purpose for realizing the recovery device for including routing device configuration information provided by the invention Existing routing device, can be by restarting automatic smoothing recovery configuring, without taking other since various unexpected loss are with postponing What nuisance operation is not necessarily to any external equipment, can more save resource, efficiently, greatly improve the stabilization of routing device Property and user experience.
Restoration methods, device and the routing device of routing device configuration information provided by the invention, by memory It is being write in the configuration of the setting of routing device administration web page and preservation as the backup subregion of configuration in one piece of region of middle division While entering backstage configuration file, it is written to backup subregion, when there is unexpected the case where losing in the configuration file of routing device, Restart routing device, in the process, the file of the configuration file of more current routing device and the configuration of backup subregion is identical It is then not processed, differs, the configuration file of backup subregion is allowed to replace the configuration file of current routing device, it is smooth to reach Recovery configuring.
Restoration methods, device and the routing device of routing device configuration information provided by the invention, in routing device A block is individually divided in memory, only does the backup subregion configured, backs up size the matching by practical routing device of subregion The size for setting file corresponding goes suitably to divide.
Restoration methods, device and the routing device of routing device configuration information provided by the invention, by powering on manually When startup or dynamic system reboot, in such a way that establishment is switched on the self-starting script of recovery configuring, script is allowed to execute two pieces thing:
First, backup subregion and corresponding file system are mounted, a judgement is done in mounting, if be already provided with It is already provided with corresponding file system, is just not required to that file system is arranged again, if being not provided with file system, is just drawn to be new File system is arranged in the backup subregion divided.
Second, after mounting, compare the configuration file of the configuration file and backup subregion that currently route.When comparison, Ke Yigen It selects to compare using MD5 values according to actual conditions, or directly compares tool comparison document with diff etc. and press from both sides file:
First, it is determined that the configuration file of backup subregion whether there is, start if it does not, current routing is normal, simultaneously To a backup file currently routeing of backup subregion write-in;If it does, and the configuration file that currently route and backup subregion Configuration file it is identical, then it is without any processing, route normal start;If it does, and the configuration file that currently route with it is standby The configuration file of part subregion differs, then the configuration file of current routing device is replaced with the configuration file of backup subregion;
Then, routing device continues subsequent workflow, normally completes startup;It must be noted that the script It executes timing node selection to be critical, need before every program starts and reads current routing device configuration, in other words, Before seeking to abut against every configuration take-effective, when to avoid subsequently being configured if necessary to be imported again from backup subregion, again The infirm situation of configuration of importing.
Restoration methods, device and the routing device of routing device configuration information provided by the invention, routing device management When webpage does any module option setting, change can all be written into associated profile, it requires and do an action Order needs to be written into the configuration file of backup subregion, be matched with being kept for two parts from webpage to while the write-in configuration of backstage Set the consistency of file.
Restoration methods, device and the routing device of routing device configuration information provided by the invention are being route in user Administration web page is emptied configuration, imports previously derived configuration and restored using hardware button when doing factory reset, upgrading In the case of default setting, an action command for wanting the configuration file of synchronization removal backup subregion is done, when avoiding restarting, and is write Routing device is returned to be currently configured.
Restoration methods, device and the routing device of routing device configuration information provided by the invention, when routing device is matched Set it is unexpected lose when automatically restored to default setting in other words, when restarting routing device, current routing device can be compared Configuration information and the backup subregion configuration information, compare the configuration information of current routing device and matching for the backup subregion When confidence breath differs, then the configuration information of the backup subregion is replaced to the configuration information of current routing device.
Restoration methods, device and the routing device of routing device configuration information provided by the invention, it is independent by dividing Backup subregion needed when routing device is restarted for the synchronous configuration for preserving the operation of routing device administration web page and generating It finds a node location accurately, establishment one is gone to be intended to recovery configuring self-starting script.The position must be opened certainly against all Before dynamic process reads every configuration and is allowed to come into force.The script include mounting backup subregion and corresponding file, compared with work as The judgement of preceding configuration file and backup partition profile.
Restoration methods, device and the routing device of routing device configuration information provided by the invention, in script therein Hold logic, including:
A judgement is done in mounting to be just not required to again if being already provided with corresponding file system File system is set, if being not provided with file system, just file system is arranged in the backup subregion newly to divide;
After mounting, the configuration file of the configuration file and backup subregion that currently route is compared.If backup subregion is sky, when Preceding routing is normal to be started, while to a backup file currently routeing of backup subregion write-in, if backup subregion is not sky, and The configuration file currently routeing is identical as the configuration file of backup subregion, then without any processing, normal startup is route, if standby Part subregion is not sky, and the configuration file of the configuration file currently routeing and backup subregion differs, then matching with backup subregion Set the configuration file that file replaces current routing device.
Restoration methods, device and the routing device of routing device configuration information provided by the invention, for wireless routing The case where device configuration is surprisingly lost only need to restart routing device, and in start-up course, routing device executes recovery configuring Self-starting script makes a decision and accordingly executes.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can To realize by another way.For example, device embodiments described above are only schematical, for example, module or The division of unit, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units Or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, institute Display or the mutual coupling, direct-coupling or communication connection discussed can be by some interfaces, device or unit INDIRECT COUPLING or communication connection can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, and be shown as unit Component may or may not be physical unit, you can be located at a place, or may be distributed over multiple networks On unit.Some or all of unit therein can be selected according to the actual needs to realize the mesh of present embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also may be used It, can also be during two or more units be integrated in one unit to be that each unit physically exists alone.It is above-mentioned integrated The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.
It, can if integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product To be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention substantially or Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products Out, which is stored in a storage medium, including some instructions are used so that a computer equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute each implementation of the present invention The all or part of step of methods.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. it is various The medium of program code can be stored.
The foregoing is merely the section Examples of the present invention, are not intended to limit protection scope of the present invention, every utilization Equivalent device or equivalent process transformation made by description of the invention and accompanying drawing content are applied directly or indirectly in other correlations Technical field, be included within the scope of the present invention.

Claims (10)

1. a kind of restoration methods of routing device configuration information, which is characterized in that including:
While backstage configuration file is written in the configuration information of routing device, it is written to backup subregion;
When restarting routing device, the configuration information of the configuration information of more current routing device and the backup subregion compares When the configuration information of the configuration information and the backup subregion that go out current routing device differs, then matching the backup subregion Confidence breath replaces the configuration information of current routing device.
2. the restoration methods of routing device configuration information as described in claim 1, which is characterized in that described by routing device Configuration information write-in backstage configuration file while, be written to backup subregion, including:
Backstage configuration file will be written in the configuration information of the routing device of the setting and preservation of routing device administration web page Meanwhile being written to backup subregion;
It is written to before backup subregion while backstage configuration file is written in the configuration information of routing device described, also Including:
Backup subregion of one piece of storage region as routing device configuration information is divided in memory.
3. the restoration methods of routing device configuration information as claimed in claim 1 or 2, which is characterized in that described to restart road When by equipment, the configuration information of the configuration information of more current routing device and the backup subregion compares current routing and sets When the configuration information of standby configuration information and the backup subregion differs, then the replacement of the configuration information of the backup subregion is worked as The configuration information of preceding routing device, including:
When restarting routing device, in such a way that establishment is switched on the self-starting script of recovery configuring, more current routing device Configuration information and the backup subregion configuration information, compare the configuration information of current routing device and the backup subregion Configuration information when differing, then the configuration information of the backup subregion is replaced to the configuration information of current routing device.
4. the restoration methods of routing device configuration information as claimed in claim 3, which is characterized in that described to set restarting routing When standby, in such a way that establishment is switched on the self-starting script of recovery configuring, the configuration information of more current routing device with it is described The configuration information of backup subregion, the configuration information for comparing the configuration information and the backup subregion of current routing device differ When, then the configuration information of the backup subregion is replaced to the configuration information of current routing device, including:
When restarting routing device, in such a way that establishment is switched on the self-starting script of recovery configuring, selection includes eap-message digest The comparison algorithm of the 5th edition MD5 of algorithm, order comparing text based documents diff, the configuration information of more current routing device with it is described The configuration information of backup subregion, the configuration information for comparing the configuration information and the backup subregion of current routing device differ When, then the configuration information of the backup subregion is replaced to the configuration information of current routing device.
5. the restoration methods of routing device configuration information as described in claim 1, which is characterized in that described to set restarting routing When standby, the configuration information of the configuration information of more current routing device and the backup subregion compares current routing device When the configuration information of configuration information and the backup subregion differs, then the configuration information of the backup subregion is replaced into current road By the configuration information of equipment, further include:
When restarting routing device, the configuration information of the configuration information of more current routing device and the backup subregion compares When to go out the configuration information of current routing device with the configuration information of the backup subregion be identical, then replacement processing is not done.
6. a kind of recovery device of routing device configuration information, which is characterized in that including:Writing module, compares mould at starting module Block, replacement module;
Said write module, for while backstage configuration file is written in the configuration information of routing device, being written to backup Subregion;
The starting module, for restarting routing device;
The comparison module, for when the starting module restarts routing device, the configuration information of more current routing device With the configuration information of the backup subregion;
The replacement module, the configuration information for comparing current routing device in the comparison module and the backup subregion Configuration information when differing, the configuration information of the backup subregion is replaced to the configuration information of current routing device.
7. the recovery device of routing device configuration information as claimed in claim 6, which is characterized in that said write module, tool Body is used to backstage configuration file will be written in the configuration information of the routing device of the setting and preservation of routing device administration web page While, it is written to backup subregion;
The recovery device of the routing device configuration information further includes:
Creation module, for when the starting module restarts routing device, creating the self-starting script of booting recovery configuring.
8. the recovery device of routing device configuration information as claimed in claim 7, which is characterized in that the comparison module, tool Body is used for when the starting module restarts routing device, and the booting recovery configuring created by the creation module opens certainly The mode of dynamic script, the configuration information of the configuration information of more current routing device and the backup subregion;
The recovery device of the routing device configuration information further includes:
Selecting module, for when the starting module restarts routing device, selection include Message Digest Algorithm 5 MD5, The comparison algorithm of order comparing text based documents diff.
The comparison module, specifically for when the starting module restarts routing device, being created by the creation module Booting recovery configuring self-starting script mode, and selected by the selecting module includes Message Digest 5 the The comparison algorithm of five editions MD5, order comparing text based documents diff, the configuration information of more current routing device and the backup point The configuration information in area.
9. the recovery device of the routing device configuration information as described in claim 6 or 7 or 8, which is characterized in that the replacement mould Block, the configuration information for being additionally operable to compare the configuration information and the backup subregion of current routing device in the comparison module are When identical, replacement processing is not done;
The recovery device of the routing device configuration information further includes:
Memory, for dividing backup subregion of one piece of storage region as routing device configuration information.
10. a kind of routing device, which is characterized in that include that routing device as described in claim 6 to 9 any one matches confidence The recovery device of breath.
CN201810371712.2A 2018-04-24 2018-04-24 A kind of restoration methods, device and the routing device of routing device configuration information Pending CN108418720A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810371712.2A CN108418720A (en) 2018-04-24 2018-04-24 A kind of restoration methods, device and the routing device of routing device configuration information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810371712.2A CN108418720A (en) 2018-04-24 2018-04-24 A kind of restoration methods, device and the routing device of routing device configuration information

Publications (1)

Publication Number Publication Date
CN108418720A true CN108418720A (en) 2018-08-17

Family

ID=63136424

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810371712.2A Pending CN108418720A (en) 2018-04-24 2018-04-24 A kind of restoration methods, device and the routing device of routing device configuration information

Country Status (1)

Country Link
CN (1) CN108418720A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109639509A (en) * 2019-01-21 2019-04-16 新华三技术有限公司合肥分公司 A kind of method for configuring network equipment and device
CN114780019A (en) * 2022-03-22 2022-07-22 江苏泽景汽车电子股份有限公司 Electronic device management method and device, electronic device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447864A (en) * 2007-11-28 2009-06-03 华为技术有限公司 Method and system for realizing password configuration and device for realizing password backup and configuration
CN102110032A (en) * 2011-02-23 2011-06-29 杭州海康威视数字技术股份有限公司 Method and device for improving reliability of configuration file
CN104301142A (en) * 2014-10-13 2015-01-21 杭州华三通信技术有限公司 Backup method and device for configuration files
CN105917306A (en) * 2014-01-22 2016-08-31 惠普发展公司,有限责任合伙企业 System firmware configuration data
CN106445529A (en) * 2016-09-27 2017-02-22 乐视控股(北京)有限公司 Backup method and system for configuration information of continuous integration server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447864A (en) * 2007-11-28 2009-06-03 华为技术有限公司 Method and system for realizing password configuration and device for realizing password backup and configuration
WO2009074060A1 (en) * 2007-11-28 2009-06-18 Huawei Technologies Co., Ltd. Method and system for password configuration and apparatus for password backup and configuration
CN102110032A (en) * 2011-02-23 2011-06-29 杭州海康威视数字技术股份有限公司 Method and device for improving reliability of configuration file
CN105917306A (en) * 2014-01-22 2016-08-31 惠普发展公司,有限责任合伙企业 System firmware configuration data
CN104301142A (en) * 2014-10-13 2015-01-21 杭州华三通信技术有限公司 Backup method and device for configuration files
CN106445529A (en) * 2016-09-27 2017-02-22 乐视控股(北京)有限公司 Backup method and system for configuration information of continuous integration server

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109639509A (en) * 2019-01-21 2019-04-16 新华三技术有限公司合肥分公司 A kind of method for configuring network equipment and device
CN109639509B (en) * 2019-01-21 2021-12-07 新华三技术有限公司合肥分公司 Network equipment configuration method and device
CN114780019A (en) * 2022-03-22 2022-07-22 江苏泽景汽车电子股份有限公司 Electronic device management method and device, electronic device and storage medium

Similar Documents

Publication Publication Date Title
US9489213B2 (en) Shutdown method, startup method, and communication terminal
CN100377085C (en) Method for implementing hardware image starting optimizing of embedded operating system
CN106155915B (en) Data storage processing method and device
CN102521289B (en) File synchronization method, device and system
US7934213B2 (en) Device driver rollback
CN107870968A (en) Real-time update is performed to file system volume
CN110825495A (en) Container cloud platform recovery method, device, equipment and readable storage medium
CN103136019A (en) Method and device used for uploading configuration information
WO2017045491A1 (en) Method and system for upgrading sqlite3 embedded database
CN111309354A (en) OTA (over the air) upgrading method and device of networking equipment
CN108418720A (en) A kind of restoration methods, device and the routing device of routing device configuration information
CN108037932B (en) SPI-NAND configuration file acquisition method and device
CN109408297A (en) A kind of method, apparatus of main and standby competition, equipment and storage medium
CN109857471A (en) Method, apparatus, terminal and the storage medium of the tactful real-time synchronization of electricity under a kind of BIOS and BMC
CN114528029B (en) Method, system, equipment and storage medium for realizing BIOS option setting
CN113835770B (en) Online replacement method and system for server management module
JP2016122268A (en) Information processing device, bios setting information change method, and computer program
CN103559063A (en) Update method and update system of application, application system and parameter configuration system
CN113064625B (en) Method, device, equipment and medium for upgrading BIOS (basic input output system) out of band
CN111367722B (en) Virtual machine backup method, device and equipment and readable storage medium
EP2835737A1 (en) Data terminal running mode switching method, device, and data terminal
CN111124536A (en) Data isolation-based dual-system data sharing method and device and terminal equipment
CN116841728A (en) Cluster resource scheduling method and device, electronic equipment and storage medium
CN113238778B (en) Method, system, equipment and medium for upgrading BIOS firmware
CN114281890A (en) BIOS out-of-band management system and method

Legal Events

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