CN105429788A - Configuration loading method and system and router - Google Patents

Configuration loading method and system and router Download PDF

Info

Publication number
CN105429788A
CN105429788A CN201510736865.9A CN201510736865A CN105429788A CN 105429788 A CN105429788 A CN 105429788A CN 201510736865 A CN201510736865 A CN 201510736865A CN 105429788 A CN105429788 A CN 105429788A
Authority
CN
China
Prior art keywords
file
configuration
configuration file
verification
router
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
CN201510736865.9A
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201510736865.9A priority Critical patent/CN105429788A/en
Publication of CN105429788A publication Critical patent/CN105429788A/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/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for supporting authentication of entities communicating through a packet data network
    • H04L63/0815Network architectures or network communication protocols for network security for supporting authentication of entities communicating through a packet data network providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for supporting authentication of entities communicating through a packet data network
    • H04L63/083Network architectures or network communication protocols for network security for supporting authentication of entities communicating through a packet data network using passwords

Abstract

The invention provides a configuration loading method and system and a router. According to configuration operation in advance, a main configuration file and a standby configuration file corresponding to the main configuration file are generated and stored; when a loading command is detected, the main configuration file is obtained; whether the main configuration file obtained at present is abnormal is determined, and if yes, the standby configuration file is selected for the configuration file loading operation; and if the main configuration file obtained at present is not abnormal, the configuration file loading operation is carried out according to the main configuration file. Namely, the configuration file to be loaded is examined before being loaded; when the configuration file to be loaded is examined to be qualified; the main configuration file is continued to be loaded; when the configuration file to be loaded is examined to be unqualified, the standby configuration file is loaded; and normal loading of the configuration file can be ensured, and the reliability is high.

Description

A kind of configuring load application method, system and a kind of router
Technical field
The present invention relates to network system field of configuration, particularly relate to a kind of configuring load application method, system and a kind of router.
Background technology
Traditional approach is loading configuration file in routing device start-up course, do not check, once occur that configuration file is abnormal, customer service will be affected, and routing device particularly family expenses routing device, subscriber switch machine frequent operation, triggering arrangement abnormalities probability significantly raises, if so the fail safe that configuration file loads and accuracy can be ensured, good experience will be brought to user.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of configuring load application method, system and a kind of router, for solving the problem of the reliability that can not ensure configuration file load operation in prior art.
For achieving the above object and other relevant objects, the invention provides a kind of configuring load application method, it is characterized in that, comprise the following steps: according to configuration operation in advance, generate and store master configuration file and the standby configuration file corresponding with described master configuration file; When a loading command being detected, obtain described master configuration file; Judge that whether the described master configuration file of current acquisition is abnormal, if abnormal, then select described standby configuration file to be configured the load operation of file; If without exception, be then configured the load operation of file according to described master configuration file.
In a specific embodiment of the present invention, while generation master configuration file, also carry out computing according to a preset algorithm to described master configuration file, generate one first verification file, described first verification file is stored in alone in a buffer area.
In a specific embodiment of the present invention, when obtaining described master configuration file according to described loading command, computing is carried out according to the described master configuration file of described preset algorithm to current acquisition, generate one second verification file, and when described second verification file is identical with described first verification file, judge that the described main configuration of current acquisition is without exception; And when described second verification file is not identical with described first verification file, judge the described main arrangement abnormalities of current acquisition.
In a specific embodiment of the present invention, described configuring load application method runs in a router, described configuration operation comprise following in one or more: 1) configuration logs in the operation of the user name of described router; 2) configuration logs in the operation of the password of described router; And 3) operation of configuration cipher authentication mode.
In a specific embodiment of the present invention, generate corresponding daily record according to described load operation, and store.
For achieving the above object and other relevant objects, the present invention also provides a kind of configuration loading system, comprising: file generating module, in order to according to configuration operation in advance, generates and stores master configuration file and the standby configuration file corresponding with described master configuration file; File acquisition module, in order to when a loading command being detected, obtains described master configuration file; File load module, whether abnormal in order to judge the described master configuration file of current acquisition, if abnormal, then select described standby configuration file to be configured the load operation of file; If without exception, be then configured the load operation of file according to described master configuration file.
In a specific embodiment of the present invention, described file generating module is while generation master configuration file, also carry out computing according to a preset algorithm to described master configuration file, generate one first verification file, described first verification file is stored in alone in a buffer area.
In a specific embodiment of the present invention, described file load module is when obtaining described master configuration file according to described loading command, computing is carried out according to the described master configuration file of described preset algorithm to current acquisition, generate one second verification file, and when described second verification file is identical with described first verification file, judge that the described main configuration of current acquisition is without exception; And when described second verification file is not identical with described first verification file, judge the described main arrangement abnormalities of current acquisition.
In a specific embodiment of the present invention, described configuration-system runs in a router, described configuration operation comprise following in one or more: 1) configuration logs in the operation of the user name of described router; 2) configuration logs in the operation of the password of described router; And 3) operation of configuration cipher authentication mode.。
In a specific embodiment of the present invention, the load operation of described file load module also in order to perform according to described file load module generates corresponding daily record, and stores.
For achieving the above object and other relevant objects, the present invention also provides a kind of router, has the configuration loading system as above described in any one, and utilizes described configuration loading system to be configured the load operation of file.
As mentioned above, a kind of configuring load application method of the present invention, system and a kind of router, according to configuration operation in advance, generate and store master configuration file and the standby configuration file corresponding with described master configuration file; When a loading command being detected, obtain described master configuration file; Judge that whether the described master configuration file of current acquisition is abnormal, if abnormal, then select described standby configuration file to be configured the load operation of file; If without exception, be then configured the load operation of file according to described master configuration file.Namely, before configuration file loads, the configuration file being about to load is tested, and when being up to the standards, continue to perform the operation loading master configuration file, during disqualified upon inspection, load standby configuration file, can ensure that configuration file loads normal, reliability is high.
Accompanying drawing explanation
Fig. 1 is shown as configuring load application method of the present invention schematic flow sheet in one embodiment.
Fig. 2 is shown as the module diagram in a specific embodiment of configuration loading system of the present invention.
Fig. 3 is shown as the module diagram in a specific embodiment of router of the present invention.
Element numbers explanation
1,21 configuration loading systems
11 file generating module
12 file acquisition modules
13 file load module
2 routers
S11 ~ S15 step
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this specification can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this specification also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.It should be noted that, when not conflicting, the feature in following examples and embodiment can combine mutually.
It should be noted that, the diagram provided in following examples only illustrates basic conception of the present invention in a schematic way, then only the assembly relevant with the present invention is shown in diagram but not component count, shape and size when implementing according to reality is drawn, it is actual when implementing, and the kenel of each assembly, quantity and ratio can be a kind of change arbitrarily, and its assembly layout kenel also may be more complicated.
Router is widely used in daily life, ensures its normality run, and will have good effect to raising Consumer's Experience.For home router, the frequency height very of its switch, restarts at every turn and needs to reload relevant configuration file, so ensure the normal operation in configuration file loading procedure, has larger meaning for the experience improving router.The invention provides a kind of configuring load application method, comprise the following steps:
According to configuration operation in advance, generate and store master configuration file and the standby configuration file corresponding with described master configuration file;
When a loading command being detected, obtain described master configuration file;
Judge that whether the described master configuration file of current acquisition is abnormal, if abnormal, then select described standby configuration file to be configured the load operation of file; If without exception, be then configured the load operation of file according to described master configuration file.
Be specially, refer to Fig. 1, be shown as configuring load application method of the present invention schematic flow sheet in one embodiment.Comprise the following steps:
S11: according to configuration operation in advance, generates and stores master configuration file and the standby configuration file corresponding with described master configuration file.
S12: when a loading command being detected, obtains described master configuration file.
S13: judge that whether the described master configuration file of current acquisition is abnormal; As described in configuration file abnormal, then perform step S14; If described configuration file is without exception, then perform step S15.
S14: then select described standby configuration file to be configured the load operation of file.
S15: the load operation being then configured file according to described master configuration file.
In a specific embodiment of the present invention, while generation master configuration file, also carry out computing according to a preset algorithm to described master configuration file, generate one first verification file, described first verification file is stored in alone in a buffer area.Described prediction algorithm is such as hash algorithm, ensures the integrality of described master configuration file.
And, when obtaining described master configuration file according to described loading command, computing is carried out according to the described master configuration file of described default hash algorithm to current acquisition, generate one second verification file, and when described second verification file is identical with described first verification file, judge that the described main configuration of current acquisition is without exception; And when described second verification file is not identical with described first verification file, judge the described main arrangement abnormalities of current acquisition.
In a specific embodiment of the present invention, described configuring load application method runs in a router, described router is such as a home router, and described configuration operation such as comprise following in one or more: the configuration operation 1) logging in described router; Such as, the user name of described router, password and authentication mode etc. are logged in.2) configuration operation of described router interconnection network is made; The address etc. of the network that such as configuration router connects.And 3) make described router connect the configuration operation of a user terminal, such as configure the identification number allowing the user terminal logged in or IP address etc.
Further, generate corresponding daily record according to described load operation, and store, to facilitate follow-up checking.
Refer to Fig. 2, be shown as configuration loading system of the present invention module diagram in one embodiment.The technical scheme of described configuration loading system 1 is corresponding with the configuring load application method described in the embodiment of Fig. 1, and described configuration loading system comprises:
File generating module 11, in order to according to configuration operation in advance, generates and stores master configuration file and the standby configuration file corresponding with described master configuration file.
File acquisition module 12, in order to when a loading command being detected, obtains described master configuration file.
Whether file load module 13 is abnormal in order to judge the described master configuration file of current acquisition, if abnormal, then selects described standby configuration file to be configured the load operation of file; If without exception, be then configured the load operation of file according to described master configuration file.
In a specific embodiment of the present invention, described file generating module 11 is while generation master configuration file, also carry out computing according to a preset algorithm to described master configuration file, generate one first verification file, described first verification file is stored in alone in a buffer area.Described preset algorithm is such as a hash algorithm, for ensureing the integrality of the master configuration file loaded.
And, described file load module 13 is when obtaining described master configuration file according to described loading command, computing is carried out according to the described master configuration file of described preset algorithm to current acquisition, generate one second verification file, and when described second verification file is identical with described first verification file, judge that the described main configuration of current acquisition is without exception; And when described second verification file is not identical with described first verification file, judge the described main arrangement abnormalities of current acquisition.
In a specific embodiment of the present invention, described configuration-system 1 runs in a router, described configuration operation comprise following in one or more: the configuration operation 1) logging in described router; Such as, the user name of described router, password and authentication mode etc. are logged in.2) configuration operation of described router interconnection network is made; The address etc. of the network that such as configuration router connects.And 3) make described router connect the configuration operation of a user terminal, such as configure the identification number allowing the user terminal logged in or IP address etc.
Further, the load operation of described file load module 13 also in order to perform according to described file load module generates corresponding daily record, and stores.
Refer to Fig. 3, be shown as router of the present invention module diagram in one embodiment.
Described router two has configuration loading system 1 as described in Figure 2, and utilizes described configuration loading system 1 to be configured the load operation of file.
Described router two is such as being applied to the home router in family, and the opening and closing of home router is comparatively frequent, higher to the demand of the Reliability Assurance that its configuration loads.
In sum, a kind of configuring load application method of the present invention, system and a kind of router, according to configuration operation in advance, generate and store master configuration file and the standby configuration file corresponding with described master configuration file; When a loading command being detected, obtain described master configuration file; Judge that whether the described master configuration file of current acquisition is abnormal, if abnormal, then select described standby configuration file to be configured the load operation of file; If without exception, be then configured the load operation of file according to described master configuration file.Namely, before configuration file loads, the configuration file being about to load is tested, and when being up to the standards, continue to perform the operation loading master configuration file, during disqualified upon inspection, load standby configuration file, can ensure that configuration file loads normal, reliability is high.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.

Claims (11)

1. a configuring load application method, is characterized in that, comprises the following steps:
According to configuration operation in advance, generate and store master configuration file and the standby configuration file corresponding with described master configuration file;
When a loading command being detected, obtain described master configuration file;
Judge that whether the described master configuration file of current acquisition is abnormal, if abnormal, then select described standby configuration file to be configured the load operation of file; If without exception, be then configured the load operation of file according to described master configuration file.
2. configuring load application method according to claim 1, it is characterized in that: while generation master configuration file, also carry out computing according to a preset algorithm to described master configuration file, generate one first verification file, described first verification file is stored in alone in a buffer area.
3. configuring load application method according to claim 2, it is characterized in that: when obtaining described master configuration file according to described loading command, computing is carried out according to the described master configuration file of described preset algorithm to current acquisition, generate one second verification file, and when described second verification file is identical with described first verification file, judge that the described main configuration of current acquisition is without exception; And when described second verification file is not identical with described first verification file, judge the described main arrangement abnormalities of current acquisition.
4. configuring load application method according to claim 1, is characterized in that: described configuring load application method runs in a router, described configuration operation comprise following in one or more: the configuration operation 1) logging in described router; 2) configuration operation of described router interconnection network is made; And 3) make described router connect the configuration operation of a user terminal.
5. configuring load application method according to claim 1, is characterized in that: generate corresponding daily record according to described load operation, and store.
6. configure a loading system, it is characterized in that, comprising:
File generating module, in order to according to configuration operation in advance, generates and stores master configuration file and the standby configuration file corresponding with described master configuration file;
File acquisition module, in order to when a loading command being detected, obtains described master configuration file;
File load module, whether abnormal in order to judge the described master configuration file of current acquisition, if abnormal, then select described standby configuration file to be configured the load operation of file; If without exception, be then configured the load operation of file according to described master configuration file.
7. configuration loading system according to claim 6, it is characterized in that: described file generating module is while generation master configuration file, also according to a preset algorithm, computing is carried out to described master configuration file, generate one first verification file, described first verification file is stored in alone in a buffer area.
8. configuration loading system according to claim 7, it is characterized in that: described file load module is when obtaining described master configuration file according to described loading command, computing is carried out according to the described master configuration file of described preset algorithm to current acquisition, generate one second verification file, and when described second verification file is identical with described first verification file, judge that the described main configuration of current acquisition is without exception; And when described second verification file is not identical with described first verification file, judge the described main arrangement abnormalities of current acquisition.
9. configuration loading system according to claim 6, is characterized in that: described configuration-system runs in a router, described configuration operation comprise following in one or more: the configuration operation 1) logging in described router; 2) configuration operation of described router interconnection network is made; And 3) make described router connect the configuration operation of a user terminal.
10. configuration loading system according to claim 6, is characterized in that: the load operation of described file load module also in order to perform according to described file load module generates corresponding daily record, and stores.
11. 1 kinds of routers, is characterized in that, have the configuration loading system according to any one of claim 6 ~ 10, and utilize described configuration loading system to be configured the load operation of file.
CN201510736865.9A 2015-11-03 2015-11-03 Configuration loading method and system and router Pending CN105429788A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510736865.9A CN105429788A (en) 2015-11-03 2015-11-03 Configuration loading method and system and router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510736865.9A CN105429788A (en) 2015-11-03 2015-11-03 Configuration loading method and system and router

Publications (1)

Publication Number Publication Date
CN105429788A true CN105429788A (en) 2016-03-23

Family

ID=55507739

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510736865.9A Pending CN105429788A (en) 2015-11-03 2015-11-03 Configuration loading method and system and router

Country Status (1)

Country Link
CN (1) CN105429788A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108809647A (en) * 2017-04-26 2018-11-13 国基电子(上海)有限公司 The startup method and system of cable modem
CN109496299A (en) * 2016-12-30 2019-03-19 深圳配天智能技术研究院有限公司 A kind of power-off protection method, device and computer

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030179873A1 (en) * 2001-05-16 2003-09-25 Yihua Chen Method and networking architecture for implementing service voice dynamic loading on intelligent network
CN104407888A (en) * 2014-11-12 2015-03-11 苏州科达科技股份有限公司 Method and system for starting embedded type equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030179873A1 (en) * 2001-05-16 2003-09-25 Yihua Chen Method and networking architecture for implementing service voice dynamic loading on intelligent network
CN104407888A (en) * 2014-11-12 2015-03-11 苏州科达科技股份有限公司 Method and system for starting embedded type equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李正军: "《现场总线及其应用技术》", 31 January 2005, 机械工业出版社 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109496299A (en) * 2016-12-30 2019-03-19 深圳配天智能技术研究院有限公司 A kind of power-off protection method, device and computer
CN108809647A (en) * 2017-04-26 2018-11-13 国基电子(上海)有限公司 The startup method and system of cable modem
CN108809647B (en) * 2017-04-26 2021-02-19 国基电子(上海)有限公司 Starting method and system of cable modem

Similar Documents

Publication Publication Date Title
US10135702B2 (en) Methods, systems, and computer readable media for testing network function virtualization (NFV)
CN107873129A8 (en) Security services for unmanaged devices
US10121359B2 (en) Methods and devices for prompting information of a smart socket
US9519537B2 (en) Apparatus, system and method for application log data processing
US9256828B2 (en) Alarm correlation analysis method, apparatus and system
CN104937578A (en) Uninterruptible power supply communication
CN105429788A (en) Configuration loading method and system and router
CN105955878A (en) Server-side test method and system
CN108173813B (en) Vulnerability detection method and device
CN106294036A (en) A kind of hardware fault verification method, device and client
CN107203373B (en) Interface control acquiring method, interface control testing method, interface control acquiring device and interface control testing device
CN104267284A (en) One-click cooperative testing and detecting method and device for stability control system
CN106600461A (en) data verification method, device and equipment
CN109450703A (en) The processing method and processing device of failure, storage medium
CN112269744A (en) System abnormity testing method and device, computer equipment and storage medium
CN105242993A (en) Data backup method and system
WO2014180450A1 (en) Communications provider network management equipment detection method, device, and computer storage medium
CN106033210B (en) A kind of wafer test data processing method and processing device
CN104581808B (en) Test the method, device and mobile terminal of mobile network property
CN104283943A (en) Communication optimizing method for cluster server
CN103986595A (en) Fault analyzing and upgrading method and server
CN103281221A (en) Fire protection Internet-of-things system testing method
CN107222332A (en) Method of testing, device, system and machinable medium
CN104052638B (en) Intermodule collision detection method, device and server
CN109962820B (en) Detection method and detection platform of cloud platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160323

RJ01 Rejection of invention patent application after publication