CN102420754A - Router configuration conversion method and system - Google Patents
Router configuration conversion method and system Download PDFInfo
- Publication number
- CN102420754A CN102420754A CN2011103848377A CN201110384837A CN102420754A CN 102420754 A CN102420754 A CN 102420754A CN 2011103848377 A CN2011103848377 A CN 2011103848377A CN 201110384837 A CN201110384837 A CN 201110384837A CN 102420754 A CN102420754 A CN 102420754A
- Authority
- CN
- China
- Prior art keywords
- configuration
- field
- transitions
- conversion
- territory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 86
- 238000000034 method Methods 0.000 title claims abstract description 23
- 230000007704 transition Effects 0.000 claims description 99
- 230000008676 import Effects 0.000 claims description 4
- 230000008878 coupling Effects 0.000 description 5
- 238000010168 coupling process Methods 0.000 description 5
- 238000005859 coupling reaction Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000013011 mating Effects 0.000 description 1
- 238000012797 qualification Methods 0.000 description 1
- 238000007493 shaping process Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a method and a system for converting router configuration, wherein the method comprises the following steps: when the router converts the configuration, the router establishes a configuration conversion dictionary according to the conversion command; the configuration conversion module obtains a configuration conversion matching result by analyzing the configuration conversion dictionary; and the configuration conversion module obtains the latest configuration according to the matching result and performs router configuration conversion. The invention obtains the latest configuration by analyzing the configuration conversion dictionary established according to the conversion command, and performs the router configuration conversion.
Description
Technical field
The present invention relates to the configuring technical of the router of data communication field, particularly a kind of method and system of configuration of routers conversion.
Background technology
Along with the development of carrier class Ethernet, various dedicated networks, catenet have all used data equipments such as router, switch in large area, below data equipment are referred to as router.
The data communication protocol that router is supported is various, and whether agreement moves, how to move and check that the state of operation all need be through the form configuration of order, so the configuration order of router is to use the basic means of router.Configuration usually is kept on the router, when router startup, starts agreement successively according to these configurations of being preserved, thereby keeps original service operation.
And on the other hand, along with the development of various communication protocols self, configuration is also in continuous variation.When router program was upgraded, configuration also usually needed upgrading, and so, different configurations just needs the method for conversion, makes new configuration can inherit original operation that is configured to keep original business.
Existing configuration transitions all is to rely on the exhaustive order that needs to transform to form the configuration transitions dictionary, thereby reaches the purpose of conversion configurations; Can imagine; This method is portable poor, during the different routers upgrading, even have only fine distinction; All must revise the configuration transitions dictionary, thereby make that the workload of configuration upgrading is huge.
Summary of the invention
The object of the present invention is to provide a kind of method and system of configuration of routers conversion, be used to solve the dynamic-configuration transfer problem of router.
According to an aspect of the present invention, a kind of method of configuration of routers conversion is provided, has may further comprise the steps:
When the router conversion configurations, router is set up the configuration transitions dictionary according to conversion command;
The configuration transitions module obtains the configuration transitions matching result through resolving the configuration transitions dictionary;
The configuration transitions module obtains latest configuration and carries out the router configuration transitions according to matching result.
Preferably, router is set up the configuration transitions dictionary according to conversion command, also comprises:
In the configuration transitions dictionary, set up a plurality of conversions territory;
Storage original configuration field and renewal configuration field in each conversion territory.
Preferably, the configuration transitions module obtains the configuration transitions matching result through resolving the configuration transitions dictionary, comprising:
Configuration transitions module parses configuration transitions dictionary reads the original configuration field of respectively changing in the territory;
The configuration transitions module is changed the original configuration field in territory through the current configuration field of contrast and each, obtains the configuration transitions matching result.
Preferably, the configuration transitions module is changed the original configuration field in territory through the current configuration field of contrast and each, obtains the configuration transitions matching result, comprising:
If have the content identical with current configuration field in the original configuration field in each conversion territory, then matching result is for existing matching field;
If do not have the content identical with current configuration field in the original configuration field in each conversion territory, then matching result is not for existing matching field.
Preferably, the configuration transitions module obtains latest configuration and carries out the router configuration transitions according to matching result, comprising:
If matching result is for existing matching field, then configuration transitions module basis is carried out the configuration of routers conversion with the renewal configuration field that the original configuration field belongs to same conversion territory;
If matching result is for existing matching field, then the configuration transitions module current configuration field as latest configuration.
According to a further aspect in the invention, a kind of system of configuration of routers conversion is provided, has comprised:
The dictionary creating module is used for when the router conversion configurations, setting up the configuration transitions dictionary according to conversion command;
The configuration transitions module is used to resolve the configuration transitions dictionary and obtains the configuration transitions matching result, and obtains latest configuration according to matching result and carry out configuration of routers conversion again.
Preferably, the dictionary creating module comprises:
Submodule is created in the conversion territory, is used for setting up a plurality of conversions territory at the configuration transitions dictionary;
Information imports submodule, is used in each conversion territory storage original configuration field and renewal configuration field.
Preferably, the configuration transitions module comprises:
The dictionary analyzing sub-module is used for resolving the configuration transitions dictionary and reads the original configuration field of respectively changing the territory;
The configurations match submodule is used for obtaining the configuration transitions matching result through contrasting the original configuration field in current configuration field and each conversion territory;
Wherein, If have the content identical in the original configuration field in each conversion territory with current configuration field; Then matching result is for existing matching field, if do not have the content identical with current configuration field in the original configuration field in each conversion territory, then matching result is not for existing matching field.
Preferably, the configuration transitions module also comprises:
The configuration transitions submodule; Be used for when matching result when having matching field; Configuration transitions module basis is carried out the configuration of routers conversion with the renewal configuration field that the original configuration field belongs to same conversion territory; When if matching result is not when existing matching field, the configuration transitions module current configuration field as latest configuration.
Compared with prior art, beneficial effect of the present invention is: the present invention obtains latest configuration through resolving the configuration transitions dictionary of setting up according to conversion command, carries out the configuration of routers conversion.
Description of drawings
Fig. 1 is the method flow sketch map of configuration of routers conversion provided by the invention;
Fig. 2 is the system block diagram of configuration of routers conversion provided by the invention;
Fig. 3 is the configuration transitions operating process sketch map that the embodiment of the invention provides.
Embodiment
, should be appreciated that following illustrated preferred embodiment only is used for explanation and explains the present invention, and be not used in qualification the present invention a preferred embodiment of the present invention will be described in detail below in conjunction with accompanying drawing.
Fig. 1 has shown the method flow signal of configuration of routers conversion provided by the invention, and is as shown in Figure 1:
Step S101, when the router conversion configurations, router is set up the configuration transitions dictionary according to conversion command, in the configuration transitions dictionary, sets up a plurality of conversions territory, and in each conversion territory, stores the original configuration field and upgrade configuration field.
Step S102, the configuration transitions module obtains the configuration transitions matching result through resolving the configuration transitions dictionary.
Configuration transitions module parses configuration transitions dictionary reads the original configuration field of respectively changing in the territory; Contrast current configuration field and change the original configuration field in territory with each; If have the content identical in the original configuration field in each conversion territory with current configuration field; Then matching result is for existing matching field, if do not have the content identical with current configuration field in the original configuration field in each conversion territory, then matching result is not for existing matching field.
Step S103, the configuration transitions module obtains latest configuration and carries out the router configuration transitions according to matching result.
If matching result is for existing matching field; Then configuration transitions module basis is carried out the configuration of routers conversion with the renewal configuration field that the original configuration field belongs to same conversion territory; If matching result is for existing matching field, then the configuration transitions module current configuration field as latest configuration.
Fig. 2 has shown the system block diagram of configuration of routers conversion provided by the invention; As shown in Figure 2; System comprises dictionary creating module and configuration transitions module, and the dictionary creating module is set up the configuration transitions dictionary according to conversion command when the router conversion configurations; Configuration transitions module parses configuration transitions dictionary obtains the configuration transitions matching result, and obtains latest configuration according to matching result and carry out configuration of routers conversion again.
Wherein, the dictionary creating module comprises that submodule is created in the conversion territory and information imports submodule.The conversion territory is created submodule and in the configuration transitions dictionary, is set up a plurality of conversions territory.Information imports submodule storage original configuration field and renewal configuration field in each conversion territory.
The configuration transitions module comprises dictionary analyzing sub-module, configurations match submodule and configuration transitions submodule.The dictionary analyzing sub-module is resolved the configuration transitions dictionary and is read the original configuration field of respectively changing in the territory.The configurations match submodule is changed the original configuration field in territory through the current configuration field of contrast and each; Obtain the configuration transitions matching result; Wherein, if having the content identical with current configuration field in the original configuration field in each conversion territory, then matching result is for existing matching field; If do not have the content identical with current configuration field in the original configuration field in each conversion territory, then matching result is not for existing matching field.The configuration transitions submodule when matching result when having matching field; Configuration transitions module basis is carried out the configuration of routers conversion with the renewal configuration field that the original configuration field belongs to same conversion territory; When if matching result is not when existing matching field, the configuration transitions module current configuration field as latest configuration.
Fig. 3 has shown the configuration transitions operating process signal that the embodiment of the invention provides, and as input, modular converter is according to dictionary conversion back output latest configuration by original configuration.
Dictionary is made up of text, comprises a plurality of conversions territory, for example:
In the conversion territory 1: the original configuration field is aaa$i1$aaa$i2$$c3$aaa, and the renewal configuration field is bbb$i1$bbb$i2$$c3$bbb.
In the conversion territory 2: the original configuration field is bbb$i1$aaa$i2$$c3$aaa, upgrades configuration field for being bbb$c3$bbb$i1$+$i2$bbb.
Be parameter delimiter wherein, i representes shaping in the parameter, and c representes single character, and the character behind the parameter type is the parameter title, and any character visible string all can be used as the parameter title, and title length should be between 1 to 128 character.
In the parameter operator ,+expression addition ,-expression subtraction, * representes multiplication ,/expression division, () expression bracket can improve the parameter expression calculating priority level.
As shown in Figure 3, operating process may further comprise the steps:
Step S301, the current original configuration field whether inquiry exists its coupling of respectively changing in the territory that is configured in the configuration transitions dictionary.The original configuration field in each conversion territory compares successively in current configuration and the configuration transitions dictionary, meets the following conditions and then thinks coupling:
1) if the constant character is identical in current configuration and the original configuration field;
Space when 2) mating, tab is idle character.
Step S302 judges whether current configuration finds the original configuration field with its coupling, if find the original configuration field of coupling, execution in step S303 then is not if find the original configuration field of coupling, then execution in step S
Step S303 makes latest configuration according to upgrading configuration field, and promptly order reads the renewal configuration field, if the constant character, then slavish copying is to latest configuration.
Step S304 judges whether read end, finish then flow process end if read if upgrading configuration field, do not finish then execution in step S305 if read.
Step S305 judges whether the character read is parameter, if execution in step S306 then, execution in step S307 then if not.
Step S306 reads after the parameter expression result of calculation as latest configuration.
Step S307, former state is filled into latest configuration.
Step S308, current configuration field as latest configuration.
In sum; The present invention has following technique effect: some character definition that often changes was a parameter during the present invention will order; And formulate the rule and dynamic conversion configurations that configuration parameter transforms, and increased the portability of configuration transitions dictionary, reduced the workload of configuration upgrading.In addition, this method only need can realize function to text resolution, does not rely on the rule of various router configuration commands, and the method that makes can be general in all-router.
Although preceding text specify the present invention, the invention is not restricted to this, those skilled in the art can carry out various modifications according to principle of the present invention.Therefore, all modifications of doing according to the principle of the invention all are to be understood that to falling into protection scope of the present invention.
Claims (9)
1. the method for a configuration of routers conversion is characterized in that, may further comprise the steps:
When the router conversion configurations, router is set up the configuration transitions dictionary according to conversion command;
The configuration transitions module obtains the configuration transitions matching result through resolving the configuration transitions dictionary; And
The configuration transitions module obtains latest configuration and carries out the router configuration transitions according to said matching result.
2. method according to claim 1 is characterized in that, said router is set up the configuration transitions dictionary according to conversion command, also comprises:
In the configuration transitions dictionary, set up a plurality of conversions territory; And
Storage original configuration field and renewal configuration field in each conversion territory.
3. method according to claim 2 is characterized in that, said configuration transitions module obtains the configuration transitions matching result through resolving the configuration transitions dictionary, comprising:
Configuration transitions module parses configuration transitions dictionary reads the original configuration field of respectively changing in the territory; And
The configuration transitions module obtains the configuration transitions matching result through contrasting current configuration field and the said original configuration field of respectively changing in the territory.
4. method according to claim 3 is characterized in that, said configuration transitions module obtains the configuration transitions matching result through contrasting current configuration field and the said original configuration field of respectively changing in the territory, comprising:
If in the said original configuration field of respectively changing in the territory, exist and the identical content of said current configuration field, then matching result is for existing matching field; And
If in the said original configuration field of respectively changing in the territory, do not exist and the identical content of said current configuration field, then matching result is not for existing matching field.
5. method according to claim 4 is characterized in that, said configuration transitions module obtains latest configuration and carries out the router configuration transitions according to matching result, comprising:
If matching result is for existing matching field, then configuration transitions module basis is carried out the configuration of routers conversion with the renewal configuration field that said original configuration field belongs to same conversion territory; And
If matching result is for existing matching field, then the configuration transitions module said current configuration field as latest configuration.
6. the system of a configuration of routers conversion is characterized in that, comprising:
The dictionary creating module is used for when the router conversion configurations, setting up the configuration transitions dictionary according to conversion command;
The configuration transitions module is used to resolve the configuration transitions dictionary and obtains the configuration transitions matching result, and obtains latest configuration according to said matching result and carry out configuration of routers conversion again.
7. system according to claim 6 is characterized in that, said dictionary creating module comprises:
Submodule is created in the conversion territory, is used for setting up a plurality of conversions territory at the configuration transitions dictionary; And
Information imports submodule, is used in each conversion territory storage original configuration field and renewal configuration field.
8. according to the described system of claim 7, it is characterized in that said configuration transitions module comprises:
The dictionary analyzing sub-module is used for resolving the configuration transitions dictionary and reads the said original configuration field of respectively changing the territory; And
The configurations match submodule is used for obtaining the configuration transitions matching result through contrasting current configuration field and the said original configuration field of respectively changing the territory;
Wherein, If in the said original configuration field of respectively changing in the territory, exist and the identical content of said current configuration field; Then matching result is for existing matching field; If in the said original configuration field of respectively changing in the territory, do not exist and the identical content of said current configuration field, then matching result is not for existing matching field.
9. system according to claim 8 is characterized in that, said configuration transitions module also comprises:
The configuration transitions submodule; Be used for when matching result when having matching field; Configuration transitions module basis is carried out the configuration of routers conversion with the renewal configuration field that said original configuration field belongs to same conversion territory; When if matching result is not when existing matching field, the configuration transitions module said current configuration field as latest configuration.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110384837.7A CN102420754B (en) | 2011-11-28 | 2011-11-28 | A kind of method and system of configuration of routers conversion |
PCT/CN2012/083334 WO2013078925A1 (en) | 2011-11-28 | 2012-10-22 | Method and system for converting router configuration |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110384837.7A CN102420754B (en) | 2011-11-28 | 2011-11-28 | A kind of method and system of configuration of routers conversion |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102420754A true CN102420754A (en) | 2012-04-18 |
CN102420754B CN102420754B (en) | 2018-06-01 |
Family
ID=45944994
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110384837.7A Active CN102420754B (en) | 2011-11-28 | 2011-11-28 | A kind of method and system of configuration of routers conversion |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102420754B (en) |
WO (1) | WO2013078925A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013078925A1 (en) * | 2011-11-28 | 2013-06-06 | 中兴通讯股份有限公司 | Method and system for converting router configuration |
CN105072044A (en) * | 2015-07-28 | 2015-11-18 | 上海斐讯数据通信技术有限公司 | System and method for remotely recovering router by using router guide system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1455549A (en) * | 2002-04-30 | 2003-11-12 | 华为技术有限公司 | Method of configuration and upgrade of network apparatus in communication system |
US7188160B2 (en) * | 2002-01-22 | 2007-03-06 | Ericsson Ab | Method and apparatus for updating network device configuration information in a network management system |
CN102082730A (en) * | 2011-02-09 | 2011-06-01 | 中兴通讯股份有限公司 | Router upgrading method and router |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6760761B1 (en) * | 2000-03-27 | 2004-07-06 | Genuity Inc. | Systems and methods for standardizing network devices |
US7145871B2 (en) * | 2002-03-02 | 2006-12-05 | At&T Corp. | Automatic router configuration based on traffic and service level agreements |
CN102420754B (en) * | 2011-11-28 | 2018-06-01 | 中兴通讯股份有限公司 | A kind of method and system of configuration of routers conversion |
-
2011
- 2011-11-28 CN CN201110384837.7A patent/CN102420754B/en active Active
-
2012
- 2012-10-22 WO PCT/CN2012/083334 patent/WO2013078925A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7188160B2 (en) * | 2002-01-22 | 2007-03-06 | Ericsson Ab | Method and apparatus for updating network device configuration information in a network management system |
CN1455549A (en) * | 2002-04-30 | 2003-11-12 | 华为技术有限公司 | Method of configuration and upgrade of network apparatus in communication system |
CN102082730A (en) * | 2011-02-09 | 2011-06-01 | 中兴通讯股份有限公司 | Router upgrading method and router |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013078925A1 (en) * | 2011-11-28 | 2013-06-06 | 中兴通讯股份有限公司 | Method and system for converting router configuration |
CN105072044A (en) * | 2015-07-28 | 2015-11-18 | 上海斐讯数据通信技术有限公司 | System and method for remotely recovering router by using router guide system |
Also Published As
Publication number | Publication date |
---|---|
WO2013078925A1 (en) | 2013-06-06 |
CN102420754B (en) | 2018-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102694861B (en) | A kind of terminal application software sorting technique, Apparatus and system based on cloud | |
CN110324169B (en) | Interface management method and device | |
CN103207794B (en) | The sharing method of application program between mobile terminal in LAN | |
CN112511416A (en) | Rule-based data communication protocol conversion system, decoding method and encoding method | |
EP3564822A1 (en) | Software update device and software update system | |
CN101827302A (en) | Multi-service unified processing method and unified service platform | |
CN104820611A (en) | Equipment software upgrade method based on Bluetooth and upgrade device | |
CN103532756A (en) | Command line system and command line operation method based on webmaster system | |
CN103902305A (en) | Software long-distance loading and solidifying method based on TI DSP | |
CN103457761A (en) | Cross-platform command line configuration interface implementation method | |
CN105553684B (en) | A kind of communication system and its router upgrade method of application | |
CN103345410A (en) | Mobile working service customization interface implementation method and system | |
CN103345386A (en) | Software production method, device and operation system | |
CN104765603A (en) | Application program building method and device | |
CN104102501A (en) | Mobile terminal and upgrading method thereof | |
CN112328257A (en) | Code conversion method and device | |
CN112130830A (en) | Interface generation method and device and electronic equipment | |
US10210177B2 (en) | Distribution management system | |
CN111722862A (en) | Voice scene updating method, device, terminal, server and system | |
CN102420754A (en) | Router configuration conversion method and system | |
CN110457065A (en) | For obtaining the method and device of compatible multi version systematic difference | |
CN104063377A (en) | Information processing method and electronic equipment using same | |
CN101179444B (en) | Configuration take-effective method, configuration system and configuration gateway | |
CN103793240A (en) | Interface scanning method, interface scanning device and corresponding plug-in updating method | |
KR101746934B1 (en) | Management server, telematics terminal and method thereof to support and provide optimum delta update |
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 |