专利汇可以提供Configuration rollback专利检索,专利查询,专利分析的服务。并且A router 10 rolls back 213 a current running configuration 202 to a selected prior running configuration 201 without requiring interruption or reinitialization of the router or of its network connections 15-1,...15-N. The router retrieves command line interface control settings associated with the selected prior running configuration 201 and those associated with the current running configuration 202. The router then generates 203- 212 and executes 213 a rollback script based on the difference 205-207 between the prior control settings 201 and the current control settings 202.,下面是Configuration rollback专利的具体信息内容。
The present application is related to co-pending and commonly assigned U.S. Application Serial Number 09/703,057, entitled "SYSTEM AND METHOD FOR IP ROUTER WITH AN OPTICAL CORE," filed October 31, 2000; and to co-pending and commonly assigned U.S. Application Serial Number 09/852,223, entitled "SYSTEM AND METHOD FOR TCP CONNECTION PROTECTION SWITCHING," filed May 9, 2001; the disclosures of which are hereby incorporated herein by reference.
The invention relates to network routers, and more particularly to configuration rollback in network routers.
FIGURE 1 is a simplified block diagram schematically representing a typical prior art network router 10. Packet forwarding router 10 includes two major subsystems: control plane 12 and data plane 11. Data plane 11 provides the packet forwarding function in interfaces 14 for store-and-forward transit packets. This subsystem relies on a packet forwarding "look-up" table that is created and maintained by control plane 12. The forwarding table instructs data plane 11 where to forward each received packet. Control plane 12 creates the packet forwarding table using information from various sources, including static configuration and dynamic information learned from peer network routers through connections 15-1 through 15-N and interfaces 14, and communicates the forwarding tables to interfaces 14.
In prior art systems, command line interface (CLI) 13 is a text-based system associated with control plane 12 for applying configuration changes to a router's operational state. The router's operational state at any particular time can be queried and displayed as the set of text-based configuration commands that would place a newly started router with no operational state into its current operational state. CLI 13 also provides the ability to execute a sequence of text-based configuration commands. For example:
Text-based configuration commands have a "positive" form (a command that activates a particular operational state attribute) and a "negative" form (a command that turns off a particular operational state attribute). The "negative" form of the configuration command is written as the positive form of the command with the keyword "no" prepended to the text. For example:
CLI 13 also has commands within its command structure belonging to particular configuration "levels". A configuration level is entered by execution of a "level-command" in CLI 13. After entering a configuration level, a user obtains access to "level-specific-commands" associated with that specific level. A configuration level is exited by executing a level-exit command to enter an operational state, known as "base-command-level," from which the user either can enter another configuration level or can access a set of base-level configuration commands directly without entering another level. For example:
Prior art routers are typically configured using a configuration file. To roll back the configuration, in other words to move the router from one configuration in time with one set of operating parameters to another by issuing a single command involved an internal database. To accomplish the rollback required completely reinitializing the router in most respects and reprocessing all of the configuration commands, in effect wiping the slate clean of the current configuration, and then rolling back to the previous configuration.
Prior art solutions are very complex and very difficult to implement, intrusive into software, and very cumbersome to maintain correctly over time. Nevertheless, many users liked the configuration rollback feature on routers. Historically, in the telecommunication industry, the ability to roll back quickly to a previous configuration appears, for example, on PBXs and telephone equipment in some form, but not in a form specifically applicable for routers.
It would therefore be desirable to wipe this slate clean without the router ceasing to operate, thereby eliminating everything that the router currently knows about it's configuration and putting something new in its place, without damaging or interrupting the router in its current operation.
Almost every installed router has a running configuration file of some sort. Accordingly, it would be desirable to provide a configuration rollback process compatible with a large population base of installed routers, that does not require rebooting or interrupting the router or its connections with peer network routers.
The present invention is directed to a system and method which enable a router to roll back a current running configuration to a selected prior running configuration of the router without requiring interruption or reinitialization of the router or of its network connections. In accordance with embodiments of the present invention, the router retrieves command line interface control settings associated with the selected prior running configuration and those associated with the current running configuration. The router then generates and executes a rollback script based on the difference between the prior control settings and the current control settings.
The embodiments of the invention essentially create a set of commands that are independent of the running configuration files. This involves transforming the running configuration files into a different "rollback-running-configuration" format in which a very simple text difference operation generates a rollback script. That difference, the commands that were in the previous running configuration file or commands that are in the new configuration file but are not in the previous one, includes the commands that undo the current running configuration and the added commands that are needed to roll back to the selected previous running configuration.
In the special "rollback-running-configuration" format, the level-command required to enter each level is written explicitly on the same line of text as the configuration command to be executed. The current running-configuration is saved to a file "b", and the selected prior running configuration is saved to a file "a". Then command lines present in file "a" but not in file "b" are stored in sequence to a file "c". Similarly, lines of text present in file "b" but not in file "a" are stored in sequence to a file "d". Lines of text that are identical in files "a" and "b" are discarded. Then to create the rollback script all positive commands are converted to negative and all negative commands are converted to positive in file "d", the sequence of text lines in file "d" is reversed, and the text lines of file "c" are appended in original sequence to the resulting reversed text lines of file "d". This rollback script file is then transformed back into the original command line format and is executed to roll back the router running configuration without disruption of router operation or connections with network routers.
The foregoing has outlined rather broadly the features and technical advantages of the present invention in order that the detailed description of the invention that follows may be better understood. Additional features and advantages of the invention will be described hereinafter which form the subject of the claims of the invention. It should be appreciated by those skilled in the art that the conception and specific embodiment disclosed may be readily utilized as a basis for modifying or designing other structures for carrying out the same purposes of the present invention. It should also be realized by those skilled in the art that such equivalent constructions do not depart from the spirit and scope of the invention as set forth in the appended claims. The novel features which are believed to be characteristic of the invention, both as to its organization and method of operation, together with further objects and advantages will be better understood from the following description when considered in connection with the accompanying figures. It is to be expressly understood, however, that each of the figures is provided for the purpose of illustration and description only and is not intended as a definition of the limits of the present invention.
For a more complete understanding of the present invention, reference is now made to the following descriptions taken in conjunction with the accompanying drawing, in which:
FIGURE 1 is a simplified block diagram schematically representing a typical prior art network router; and
FIGURE 2 is a flow diagram depicting the operation of an algorithm for performing configuration rollback, in accordance with embodiments of the present invention.
Configuration rollback in accordance with embodiments of the present invention provides a process to change the running configuration (control settings) of a router to a prior running configuration without rebooting the router or interrupting its operation. The configuration rollback process retrieves the current running configuration and a selected prior running configuration of the router, and generates from a specially formatted difference of the two configurations a script that when executed by the router will seamlessly restore the router's selected prior running configuration.
FIGURE 2 is a flow diagram depicting the operation of an algorithm for performing configuration rollback, in accordance with embodiments of the present invention. At step 201, the configuration rollback process saves at time (t1) the running configuration at CLI 13. At a future time (t2), as depicted at step 202, the current running configuration at CLI 13 is entered.
For all configuration rollback operations, the running configuration is transformed and displayed at CLI 13 in a special "rollback-running-configuration" format, in which the level-command required to enter each level is written explicitly on the same line of text as the configuration command to be executed, in the order
<level-command> <delimiter> <real-command>
for example:
In the above example, the semicolon (;) is a "delimiter." Configuration commands without a level-command are prepended with "base-command-level". A running configuration saved in this format is called the "rollback-running-configuration".
Referring again to FIGURE 2, the current running-configuration entered at step 202 at time (t2) is transformed to the rollback-running-configuration format at step 203 and is saved to a file "b". The selected prior running configuration saved at time (t1) is transformed to the rollback-running-configuration format at step 204 and is saved to a file "a". In some embodiments, the respective running-configurations are transformed to rollback-running-configuration format prior to saving and entering at steps 201 and 202 respectively, such that step 201 and step 204 are combined together, and/or step 202 and step 203 are combined together. Next, at step 205 files "a" and "b" are compared, and the lines of text that differ between file "a" and file "b" are recorded. At step 206a, command lines present in file "a" but not in file "b" are stored in sequence at step 207 to a file "c". At step 206b, lines of text present in file "b" but not in file "a" are stored in sequence at step 208 to a file "d". At step 206c, lines of text that are identical in files "a" and "b" are discarded, after which the algorithm returns to step 205 to compare the next text command lines, until all of the lines have been compared.
At step 209, the "no" keyword is then prepended in front of each configuration command to create negative commands in file "d". If a configuration command already starts with a "no", then the "no" keyword is removed (two "no"s become a positive command). File "d" represents the commands which must be undone (negative) in order to roll back from current configuration (t2) to selected prior configuration (t1). File "c" represents the commands that must be executed (positive) to roll back to prior configuration (t1).
A rollback-command-script is then constructed by combining files "c" and (negative) "d" in the following prescribed manner:
First, at step 210, the sequence of the text lines in file "d" is reversed. The normal order of lines in a configuration file has objects being created and then having attributes assigned to them, for example: These lines must be reversed in file "d" in order not to destroy the object (e.g., no router bgp10) before first destroying the commands that set up attributes within the object (e.g., the "neighbor" commands in the above example). Otherwise, when "no router bgp 10" is processed, the "router bgp" object is gone from the configuration. However, if the file is reversed, for example: The attributes are removed in proper sequence before the configuration object is removed, and the rollback proceeds correctly.
Then, at step 211, the text lines of file "c" are appended in original sequence to the resulting reversed text lines of file "d".
The resulting rollback-command-script resulting from step 211 is then transformed back at step 212 into a normal running-configuration file format. Finally, at step 213, the rollback-command-script transformed into normal running-configuration file format is executed to restore the router system to the selected prior time (t1) operational state.
An example of the command line interface (CLI) during the configuration rollback process is shown below:
Transforming the rollback command script into a normal running-configuration format file:
The script created in the previous step is executed to roll the system back to the selected prior operational state at time t1.
Configuration rollback as described can be implemented in hardware and/or software utilizing a parser, and is currently implemented in the Chiaro routing software known as "p2d" using MRT (multithreaded routing toolkit) parser. P2d is implemented as an operating system process, which spawns a shell script process in the operating system to perform the difference operation on the running configuration.
Configuration "rollback" allows the user to undo a series of CLI commands (only the ones covered by the current running-configuration file) to "roll back" the configuration to a selected prior configuration. In the present implementation, "rollback" utilizes symmetry in commands (putting a "no" in front of the command creates a command that undoes the command). If a "no" command appears in the "difference", the code doing the difference operation knows to transform "no no <cmd>" into a positive command "<cmd>". Other implementations may utilize a different syntax.
In the p2d implementation, the user saves the current "running-configuration" in "rollback" format, which is an alternate format of display for a running configuration that puts the level command necessary to get to the proper "level" to execute an individual configuration command on the same line of text with that respective configuration command. For example: in which the command character "!" forces a return to base-command-level.
Selected prior rollback-running-configuration:
interface 1o0; ip address 1.2.3.4/24
router bgp 300
router bgp 300 ; neighbor 1.2.3.4 remote-as 33
The "rollback-running-configuration format" is used in performing a "difference" operation between two running configurations (the current running-configuration and the selected prior running-configuration to "roll back" to). When rolling back, text lines that are in the current running configuration but not the prior running-configuration are converted into "no" commands and reversed in sequence. Commands that are in the prior running-configuration but not the current running configuration are added unchanged in sequence.
interface 1o0; ip address 1.2.3.4/24
router bgp 300 ; neighbor 1.2.3.4 remote-as 33
router bgp 300 ; bgp always-compare-med
In the final step, the rollback-command-script is translated back to normal running-configuration format and executed:
Configuration rollback commands in p2d software implementation include the following:
No parameter means create a time-based rollback file. Otherwise "name" is used for the rollback file.
config rollback [name | number]
If no parameters are given, it rolls back to the most recent time-based rollback file. Otherwise, it finds the rollback file with the given name or one with a "number" as displayed by the "show rollback-config" command.
This command displays all of the currently saved rollback configuration files plus various state information (such as commit timers) associated with rollback.
This is used to delete rollback configuration files. If a name or number is given, that rollback configuration point is removed from the system.
This command displays the script that would be executed to perform the rollback without actually executing the rollback. It allows the user to see what will happen before actually executing the rollback.
This command halts the rollback timer started when "start-config" was entered.
This command controls the value of the rollback timeout set by the start-config command.
This command starts a configuration session in which an automatic rollback will be scheduled in the future unless the user executes the "commit" command. It automatically creates a time-based rollback configuration file in the system, such that the rollback (based on a timer) will always come back to the point where start-config was typed.
Although the present invention and its advantages have been described in detail, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims. Moreover, the scope of the present application is not intended to be limited to the particular embodiments of the process, machine, manufacture, composition of matter, means, methods and steps described in the specification. As one of ordinary skill in the art will readily appreciate from the disclosure of the present invention, processes, machines, manufacture, compositions of matter, means, methods, or steps, presently existing or later to be developed that perform substantially the same function or achieve substantially the same result as the corresponding embodiments described herein may be utilized according to the present invention. Accordingly, the appended claims are intended to include within their scope such processes, machines, manufacture, compositions of matter, means, methods, or steps.
标题 | 发布/更新时间 | 阅读量 |
---|---|---|
基于网络欺骗的网络防护方法、装置、设备及存储介质 | 2020-05-16 | 824 |
一种智慧协同网络族群创建的方法和系统 | 2020-05-16 | 919 |
一种实时流数据处理方法及装置 | 2020-05-18 | 712 |
深度学习作业处理方法、装置、设备及存储介质 | 2020-05-20 | 576 |
一种基于Cordova和Typescript的Hybrid开发框架及框架设计方法 | 2020-05-18 | 340 |
超参数管理方法、装置及电子设备 | 2020-05-08 | 214 |
一种高性能网络负载均衡系统及其实现方法 | 2020-05-15 | 335 |
阻塞CLI命令构架下处理非阻塞CLI命令的系统及方法 | 2020-05-15 | 621 |
一种可配置资源的创建方法以及相关装置 | 2020-05-18 | 506 |
一种基于代码注释自动生成开发文档的方法及系统 | 2020-05-08 | 540 |
高效检索全球专利专利汇是专利免费检索,专利查询,专利分析-国家发明专利查询检索分析平台,是提供专利分析,专利查询,专利检索等数据服务功能的知识产权数据服务商。
我们的产品包含105个国家的1.26亿组数据,免费查、免费专利分析。
专利汇分析报告产品可以对行业情报数据进行梳理分析,涉及维度包括行业专利基本状况分析、地域分析、技术分析、发明人分析、申请人分析、专利权人分析、失效分析、核心专利分析、法律分析、研发重点分析、企业专利处境分析、技术处境分析、专利寿命分析、企业定位分析、引证分析等超过60个分析角度,系统通过AI智能系统对图表进行解读,只需1分钟,一键生成行业专利分析报告。