CN102420754B - A kind of method and system of configuration of routers conversion - Google Patents
A kind of method and system of configuration of routers conversion Download PDFInfo
- Publication number
- CN102420754B CN102420754B CN201110384837.7A CN201110384837A CN102420754B CN 102420754 B CN102420754 B CN 102420754B CN 201110384837 A CN201110384837 A CN 201110384837A CN 102420754 B CN102420754 B CN 102420754B
- Authority
- CN
- China
- Prior art keywords
- configuration
- conversion
- field
- modular converter
- dictionary
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
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 kind of method and system of configuration of routers conversion, this method includes:When router conversion configurations, router establishes configuration conversion dictionary according to conversion command;Configuration modular converter obtains configuration conversion matching result by parsing configuration conversion dictionary;Configuration modular converter obtains latest configuration according to matching result and carries out configuration of routers conversion.The present invention obtains latest configuration by parsing the configuration established according to conversion command conversion dictionary, carries out configuration of routers conversion.
Description
Technical field
The present invention relates to the configuration technology of the router of data communication field, more particularly to a kind of configuration of routers conversion
Method and system.
Background technology
With the development of carrier ethernet, various dedicated networks, catenet has all used router, has handed in large area
It changes planes and waits data equipments, data equipment is referred to as router below.
The data communication protocol that router is supported is various, and whether agreement run, how to run and check the state of operation
It is required for configuring by the form of order, so the configuration order of router is the basic means using router.Configuration is usually
It preserves on the router, when router startup, starts agreement successively according to these configurations being saved, so as to remain original
Service operation.
And on the other hand, with the development of itself of various communication protocols, configuration is also constantly changing.In router program
During upgrading, configuration also usually needs to upgrade, so, the method that different configurations requires conversion so that new configuration
Original configuration can be inherited to maintain the operation of original business.
Existing configuration conversion is all to rely on the order that exhaustive needs convert to form configuration conversion dictionary, turns so as to reach
Change the purpose put, it is envisaged that this method is portable poor, during different router upgrades, even if only subtle difference
Not, it is necessary to modification configuration conversion dictionary, so that the workload of configuration upgrading is huge.
The content of the invention
It is an object of the invention to provide a kind of method and system of configuration of routers conversion, for solving the dynamic of router
State configures transfer problem.
According to an aspect of the invention, there is provided a kind of method of configuration of routers conversion, comprises the following steps:
When router conversion configurations, router establishes configuration conversion dictionary according to conversion command;
Configuration modular converter obtains configuration conversion matching result by parsing configuration conversion dictionary;
Configuration modular converter obtains latest configuration according to matching result and carries out configuration of routers conversion.
Preferably, router establishes configuration conversion dictionary according to conversion command, further includes:
Multiple Transformation Domains are established in dictionary is converted in configuration;
Original configuration field and update configuration field are stored in each Transformation Domain.
Preferably, configure modular converter and obtain configuration conversion matching result by parsing configuration conversion dictionary, including:
Configure the original configuration field in each Transformation Domain of modular converter parsing configuration conversion dictionary reading;
Modular converter is configured by comparing the original configuration field being currently configured in field and each Transformation Domain, configuration is obtained and turns
Change matching result.
Preferably, modular converter is configured by comparing the original configuration field being currently configured in field and each Transformation Domain, is obtained
Matching result is converted to configuration, including:
If there is the content identical with being currently configured field, matching result in the original configuration field in each Transformation Domain
For there are matching fields;
If the content identical with being currently configured field is not present in the original configuration field in each Transformation Domain, knot is matched
Fruit is there is no matching fields.
Preferably, configuration modular converter obtains latest configuration according to matching result and carries out configuration of routers conversion, including:
If matching result is there are matching field, configures modular converter and belong to same conversion according to original configuration field
The update configuration field in domain carries out configuration of routers conversion;
If matching result is there is no matching field, modular converter is configured using current-configuration field as latest configuration.
According to another aspect of the present invention, a kind of system of configuration of routers conversion is provided, including:
Dictionary creating module, for when router conversion configurations, configuration conversion dictionary to be established according to conversion command;
Modular converter is configured, configuration conversion matching result is obtained for parsing configuration conversion dictionary, and according to matching result
It obtains latest configuration and carries out configuration of routers conversion again.
Preferably, dictionary creating module includes:
Transformation Domain creates submodule, for establishing multiple Transformation Domains in configuration conversion dictionary;
Information imports submodule, for storing original configuration field and update configuration field in each Transformation Domain.
Preferably, configuration modular converter includes:
Dictionary analyzing sub-module, for parsing the original configuration field configured in each Transformation Domain of conversion dictionary reading;
Configurations match submodule for passing through the original configuration field that comparison is currently configured in field and each Transformation Domain, obtains
Matching result is converted to configuration;
Wherein, if there is the content identical with being currently configured field in original configuration field in each Transformation Domain,
It is there are matching field, if being not present in original configuration field in each Transformation Domain identical with being currently configured field with result
Content, then matching result is there is no matching fields.
Preferably, configuration modular converter further includes:
Configure transform subblock, for when matching result be there are during matching field, configuration modular converter according to it is original
Configuration field belong to same Transformation Domain update configuration field carry out configuration of routers conversion, if when matching result be there is no
During with field, configuration modular converter is using current-configuration field as latest configuration.
Compared with prior art, the beneficial effects of the present invention are:The present invention is established by parsing according to conversion command
Configuration conversion dictionary obtain latest configuration, carry out configuration of routers conversion.
Description of the drawings
Fig. 1 is the method flow schematic diagram 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 configuration conversion operation flow diagram provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with attached drawing to a preferred embodiment of the present invention will be described in detail, it should be understood that described below is excellent
Embodiment is selected to be merely to illustrate and explain the present invention, is not intended to limit the present invention.
Fig. 1 shows the method flow signal of configuration of routers conversion provided by the invention, as shown in Figure 1:
Step S101, when router conversion configurations, router establishes configuration conversion dictionary according to conversion command, is configuring
Multiple Transformation Domains are established in conversion dictionary, and original configuration field and update configuration field are stored in each Transformation Domain.
Step S102, configuration modular converter obtain configuration conversion matching result by parsing configuration conversion dictionary.
The original configuration field in each Transformation Domain of modular converter parsing configuration conversion dictionary reading is configured, comparison is currently configured
Original configuration field in field and each Transformation Domain, if existing in original configuration field in each Transformation Domain and being currently configured word
The content of Duan Xiangtong, then matching result be there are matching field, if be not present in original configuration field in each Transformation Domain with
The identical content of field is currently configured, then matching result is there is no matching fields.
Step S103, configuration modular converter obtain latest configuration according to matching result and carry out configuration of routers conversion.
If matching result is there are matching field, configures modular converter and belong to same conversion according to original configuration field
The update configuration field in domain carries out configuration of routers conversion, if matching result is there is no matching field, configures modular converter
Using current-configuration field as latest configuration.
Fig. 2 shows the system block diagram of configuration of routers conversion provided by the invention, as shown in Fig. 2, system includes dictionary
Creation module and configuration modular converter, dictionary creating module are established configuration when router conversion configurations, according to conversion command and are turned
Dictionary is changed, configuration modular converter parsing configuration conversion dictionary obtains configuration conversion matching result, and is obtained most according to matching result
New configuration carries out configuration of routers conversion again.
Wherein, dictionary creating module includes Transformation Domain establishment submodule and information imports submodule.Transformation Domain creates submodule
Block establishes multiple Transformation Domains in dictionary is converted in configuration.Information imports submodule and original configuration field is stored in each Transformation Domain
With update configuration field.
Configuring modular converter includes dictionary analyzing sub-module, configurations match submodule and configuration transform subblock.Dictionary solution
Analyse the original configuration field in each Transformation Domain of submodule parsing configuration conversion dictionary reading.Configurations match submodule is worked as by comparison
Original configuration field in preceding configuration field and each Transformation Domain obtains configuration conversion matching result, wherein, if in each Transformation Domain
Original configuration field in exist with being currently configured the identical content of field, then matching result is there are matching field, if each
The content identical with being currently configured field is not present in original configuration field in Transformation Domain, then matching result is there is no matchings
Field.Configure transform subblock when matching result be there are during matching field, configuration modular converter according to original configuration field
The update configuration field for belonging to same Transformation Domain carries out configuration of routers conversion, if when matching result is there is no matching fields
When, configuration modular converter is using current-configuration field as latest configuration.
Fig. 3 shows configuration conversion operation flow signal provided in an embodiment of the present invention, by original configuration as inputting, turns
Mold changing block exports latest configuration after being converted according to dictionary.
Dictionary is made of text, including multiple Transformation Domains, such as:
In Transformation Domain 1:Original configuration field is aaa $ i1 $ aaa $ i2 $ $ c3 $ aaa, and update configuration field is bbb $ i1 $
bbb$i2$$c3$bbb。
In Transformation Domain 2:Original configuration field is bbb $ i1 $ aaa $ i2 $ $ c3 $ aaa, and update configuration field is bbb $ c3 $
bbb$i1$+$i2$bbb。
Wherein $ is parameter delimiter, and i represents shaping in parameter, and c represents single character, and the character after parameter type is ginseng
Several titles, any character visible string can be used as parameter name, and Name Length should be between 1 to 128 characters.
In parameter operator ,+represent addition ,-representing subtraction, * represents multiplication ,/represent division, () represents bracket, can be with
It improves parameter expression and calculates priority.
As shown in figure 3, operating process comprises the following steps:
Step S301 is currently configured in each Transformation Domain of configuration conversion dictionary inquiry and matched original matches somebody with somebody with the presence or absence of its
Put field.Be currently configured with configuration conversion dictionary in each Transformation Domain original configuration field successively compared with, meet the following conditions
Then think to match:
If it 1) is currently configured identical with constant character in original configuration field;
2) space when matching, tab is idle character.
Step S302 judges be currently configured whether find matched original configuration field, if finding matched original
Configuration field then performs step S303, if not finding matched original configuration field, performs step S
Step S303 makes latest configuration according to update configuration field, i.e., order reads update configuration field, if often
Measure character, then slavish copying to latest configuration.
Whether step S304 judges to update configuration field and read to terminate, and flow terminates if end is read, if not reading knot
Beam then performs step S305.
Step S305, whether the character for judging to read is parameter, if so then execute step S306, if otherwise performing step
S307。
Step S306 is used as latest configuration after reading parameter expression result of calculation.
Step S307, is filled into latest configuration as former state.
Step S308, using current-configuration field as latest configuration.
In conclusion the present invention has following technique effect:The present invention is by some character definitions often changed in order
For parameter, and the regular and dynamic conversion configurations of configuration parameter conversion are formulated, add the portability that dictionary is converted in configuration,
Reduce the workload of configuration upgrading.In addition, this method only needs to realize function to text resolution, independent of various
The rule of router configuration command so that method can be general in all-router.
Although the present invention is described in detail above, but the invention is not restricted to this, and those skilled in the art can be with
Principle according to the present invention carry out various modifications.Therefore, all modifications made according to the principle of the invention all should be understood to fall into
Protection scope of the present invention.
Claims (8)
- A kind of 1. method of configuration of routers conversion, which is characterized in that comprise the following steps:When configuration of the router conversion for log-on data communication protocol, router establishes configuration hand-over word according to conversion command Allusion quotation establishes multiple Transformation Domains in dictionary is converted in configuration, and stores original configuration field and update in each Transformation Domain and configure Field;Establish configure conversion dictionary after, configuration modular converter by parse configure conversion dictionary obtain configuration conversion matching knot Fruit;AndConfiguration modular converter is obtained according to the matching result for the latest configuration of log-on data communication protocol, and according to gained The latest configuration arrived carries out configuration of routers conversion.
- 2. according to the method described in claim 1, it is characterized in that, the configuration modular converter configures conversion dictionary by parsing Configuration conversion matching result is obtained, including:Configure the original configuration field in each Transformation Domain of modular converter parsing configuration conversion dictionary reading;AndModular converter is configured by comparing the original configuration field being currently configured in field and each Transformation Domain, configuration is obtained and turns Change matching result.
- 3. according to the method described in claim 2, it is characterized in that, the configuration modular converter is currently configured field by comparing With the original configuration field in each Transformation Domain, configuration conversion matching result is obtained, including:If there is the content identical with the current-configuration field in the original configuration field in each Transformation Domain, match As a result for there are matching fields;AndIf the content identical with the current-configuration field is not present in the original configuration field in each Transformation Domain, With result for there is no matching fields.
- 4. according to the method described in claim 3, it is characterized in that, it is described configuration modular converter obtained according to matching result it is newest It configures and carries out configuration of routers conversion, including:If matching result is there are matching field, configures modular converter and belong to same conversion according to the original configuration field The update configuration field in domain carries out configuration of routers conversion;AndIf matching result is there is no matching field, modular converter is configured using the current-configuration field as latest configuration.
- 5. a kind of system of configuration of routers conversion, which is characterized in that including:Dictionary creating module, for when router conversion is used for the configuration of log-on data communication protocol, being built according to conversion command Vertical configuration conversion dictionary establishes multiple Transformation Domains in dictionary is converted in configuration, and original configuration word is stored in each Transformation Domain Section and update configuration field;Modular converter is configured, for after configuration conversion dictionary is established, parsing configuration conversion dictionary to obtain configuring conversion matching As a result, obtained according to the matching result for the latest configuration of log-on data communication protocol, and newest matched somebody with somebody according to obtained It puts and carries out configuration of routers conversion.
- 6. system according to claim 5, which is characterized in that the dictionary creating module includes:Transformation Domain creates submodule, for establishing multiple Transformation Domains in configuration conversion dictionary;AndInformation imports submodule, for storing original configuration field and update configuration field in each Transformation Domain.
- 7. according to the system described in claim 6, which is characterized in that the configuration modular converter includes:Dictionary analyzing sub-module, for parsing the original configuration field configured in conversion dictionary reading each Transformation Domain;AndConfigurations match submodule for passing through the original configuration field that comparison is currently configured in field and each Transformation Domain, obtains Matching result is converted to configuration;Wherein, if there is the content identical with the current-configuration field in original configuration field in each Transformation Domain, Then matching result is there are matching field, if there is no currently match somebody with somebody with described in original configuration field in each Transformation Domain The identical content of field is put, then matching result is there is no matching fields.
- 8. system according to claim 7, which is characterized in that the configuration modular converter further includes:Configure transform subblock, for when matching result be there are during matching field, configuration modular converter according to it is described original Configuration field belong to same Transformation Domain update configuration field carry out configuration of routers conversion, if when matching result be there is no During with field, configuration modular converter is using the 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 CN102420754A (en) | 2012-04-18 |
CN102420754B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102420754B (en) * | 2011-11-28 | 2018-06-01 | 中兴通讯股份有限公司 | A kind of method and system of configuration of routers conversion |
CN105072044B (en) * | 2015-07-28 | 2018-01-16 | 上海斐讯数据通信技术有限公司 | Utilize the system and method for router guiding system remote restoration route device |
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 |
Also Published As
Publication number | Publication date |
---|---|
WO2013078925A1 (en) | 2013-06-06 |
CN102420754A (en) | 2012-04-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10901470B2 (en) | Power distribution unit self-identification | |
CN113765857B (en) | Message forwarding method, device, equipment and storage medium | |
EP3143511B1 (en) | Method and apparatus for affinity-based network configuration | |
US10972362B2 (en) | Network service configuration method and network management device | |
US20150324305A1 (en) | Change management system, change management method, and change management program | |
CN112511416A (en) | Rule-based data communication protocol conversion system, decoding method and encoding method | |
EP3139549B1 (en) | Packet editing method and related device | |
US10057131B1 (en) | System and method for topology-aware configuration generation | |
CN102724079B (en) | Method and system for auxiliary configuration of Ethernet equipment | |
CN109582289B (en) | Method, system, storage medium and processor for processing rule flow in rule engine | |
CN103532756A (en) | Command line system and command line operation method based on webmaster system | |
US11765033B2 (en) | Multi-fabric deployment and management platform | |
CN110971438A (en) | Method and device for configuring data | |
CN101794318A (en) | URL (Uniform Resource Location) analyzing method and equipment | |
EP4040730A1 (en) | Configuration method, and related apparatus and system | |
CN102420754B (en) | A kind of method and system of configuration of routers conversion | |
CN108388372A (en) | A kind of method, apparatus, equipment and the storage medium of adaptive touch data | |
CN106909435B (en) | Method and device for analyzing command line of network security equipment | |
CN104539651B (en) | A kind of embedded hardware equipment that quickly accesses is to the method for back-stage management platform agent server | |
EP3190751A1 (en) | Method and device for delivering forwarding parameters | |
CN102685238A (en) | Method for managing terminal programs on basis of cloud architecture | |
CN105634831B (en) | A kind of intelligent translation system and method for locating source in communication equipment | |
CN115604115A (en) | Configuration information analysis method and device, electronic equipment and storage medium | |
CN108881502A (en) | A kind of multiple terminals IP address conversion method, apparatus and system | |
CN105871678B (en) | The method of terminal device in long-range management private network |
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 |