US 7184942 B2
Methods and systems for verifying that a virtual network is properly configured are described. Configuration information from devices in the virtual network is received. The configuration information is compared against reference information. The reference information represents the design of the virtual network. Discrepancies between the configuration of the devices and the design of the virtual network are identified.
1. A method of verifying that a virtual network is properly configured, said method comprising:
receiving configuration information from configurable devices included in said virtual network;
comparing said configuration information against reference information representing a design of said virtual network;
identifying discrepancies between said configuration information and said reference information;
defining corrective actions for resolving the discrepancies; and
generating computer-readable program code that resolves said discrepancies when executed.
2. The method of
3. The method of
4. The method of
generating a report identifying instances in which said reference information and said configuration information are in agreement.
5. The method of
automatically resolving said discrepancies in response to said identifying.
6. The method of
sending a command to said configurable devices, wherein said configuration information is provided according to said command.
7. The method of
reading said configuration information from storage resident on said configurable devices.
8. The method of
validating a map of said virtual network from said configuration information.
9. The method of
10. The method of
11. A computer system for checking proper configuration of a virtual network comprising:
a memory unit storing instructions for verifying the configuration of said virtual network; and
a processor coupled to said memory unit, said processor for executing said instructions for verifying the configuration of said virtual network, said instructions for:
processing configuration information provided by configurable devices included in said virtual network;
evaluating said configuration information against reference information describing a design configuration of said virtual network;
identifying differences between said configuration information and said reference information; and
providing instructions for synchronizing said configuration information with said reference information.
12. The computer system of
13. The computer system of
producing a report listing said differences.
14. The computer system of
automatically reconfiguring said configurable devices according to said reference information to resolve said differences.
15. The computer system of
16. The computer system of
17. A computer-readable recording medium having computer-readable program code embodied therein for causing a computer system to execute instructions for checking proper configuration of a virtual network, said program code comprising instructions for:
accessing configuration information describing an as-built configuration of a device in said virtual network;
accessing reference information describing a design configuration of said device;
comparing said as-built configuration with said design configuration; and
generating a message when there is a difference between said design configuration and said as-built configuration; and
generating computer-readable instructions that synchronize said configuration information with said reference information.
18. The computer-readable recording medium of
generating command script for making said as-built configuration compliant with said design configuration.
19. The computer-readable recording medium of
executing said command script, causing said device to be reconfigured according to said design configuration.
20. The computer-readable recording medium of
21. The computer-readable recording medium of
22. The computer-readable recording medium of
generating a message indicating said virtual network is properly configured.
Embodiments of the present invention relate to virtual networks (e.g., virtual local area networks). More specifically, embodiments of the present invention relate to virtual networks used as utility data centers and server farms, for example.
Devices such as computer systems, routers, switches, load balancers, firewalls, and the like, are commonly linked to each other in networks. These networks are configured in different ways depending on implementation-specific details such as the hardware used and the physical location of the equipment, and also depending on the particular objectives of the network. One common type of network configuration includes a number of “virtual” networks, commonly known as virtual local area networks (VLANs). A VLAN is, in essence, a logical segmentation of a physical local area network (LAN).
An advantage of VLANs is that the devices associated with a particular virtual network do not need to all be in the same physical location, yet all will appear to be on the same LAN. Prior Art
In the simplified example of Prior Art
For reasons such as security or privacy, communication between VLANs may not be permitted. In LAN 10, access to a particular VLAN is controlled by the switches 11–16. For example, switch 16 can be configured to forward a message from computer system 30 (VLAN 1) to computer system 37 (VLAN 1) but to not forward a message from computer system 30 (VLAN 1) to computer system 36 (VLAN 2). In a similar manner, communication from a remote device can be controlled so that the remote device can only communicate with certain devices in LAN 10. Therefore, even though VLANs can share resources such as switches, VLANs can be prevented from sharing traffic and information.
Another advantage of VLANs is that the management and cabling of groups of devices are simplified, particularly when the allocation of resources within the LAN is changed. For instance, in the simplified example of Prior Art
In actual practice, a typical LAN will include large numbers of computer systems and switches (as well as other devices), with frequent changes to the allocation of these resources among the various VLANs. Each change may result in the reconfiguring of multiple switches. Typically, when a change is made, a human operator inputs/issues commands to reconfigure the affected switches. When done manually, this can be a tedious and time-consuming process that is also prone to human error.
Automated processes are becoming available to assist in the configuring of VLANs. However, these processes still have their shortcomings, particularly with regard to the verification of proper configuration of switches and therefore of VLANs. Some prior art techniques rely on manual procedures to verify correctness of the switch configurations. Typically, these procedures require logging into each switch, issuing commands to view their existing configurations, comparing those configurations to documentation of the desired (design) state, and then issuing commands to correct any discrepancies. Once the switches are reconfigured to correct any discrepancies, it may even be necessary to repeat the verification process. In general, manual verification is slow, costly and prone to human error.
Other prior art techniques essentially rely on the automated configuration process itself to ensure correct configuration of the switches and VLANs. For example, using information from a database, an automated procedure may exist for sending configuration commands to a switch. Such procedures may eliminate one source of human error, but they still have their shortcomings. Significantly, such procedures do not provide the capability to check that the switch configuration matches that of the database. Commands may go awry, may be misdirected to an incorrect switch, or may not be implemented as intended. Switches may malfunction during operation, perhaps losing some of their programming. A switch may be hacked with malicious intent, perhaps causing it to direct traffic to an unauthorized destination or to not forward traffic at all to certain destinations.
For these and other reasons, a method and/or system that can verify that switches and hence VLANs are properly configured would be of value. Embodiments of the present invention provide this and other advantages.
Embodiments of the present invention pertain to methods and systems for verifying that a virtual network is properly configured. In one embodiment, configuration information from devices in the virtual network is received. The configuration information is compared against reference information. The reference information represents the design of the virtual network. Discrepancies between the configuration of the devices and the design of the virtual network are identified.
The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention:
The drawings referred to in this description should not be understood as being drawn to scale except if specifically noted.
Reference will now be made in detail to various embodiments of the invention, examples of which are illustrated in the accompanying drawings. While the invention will be described in conjunction with these embodiments, it will be understood that they are not intended to limit the invention to these embodiments. On the contrary, the invention is intended to cover alternatives, modifications and equivalents, which may be included within the spirit and scope of the invention as defined by the appended claims. Furthermore, in the following description of the present invention, numerous specific details are set forth in order to provide a thorough understanding of the present invention. In other instances, well-known methods, procedures, components, and circuits have not been described in detail as not to unnecessarily obscure aspects of the present invention.
Aspects of the present invention may be practiced on a computer system that includes, in general, a processor for processing information and instructions, random access (volatile) memory (RAM) for storing information and instructions, read-only (non-volatile) memory (ROM) for storing static information and instructions, a data storage device such as a magnetic or optical disk and disk drive for storing information and instructions, an optional user output device such as a display device (e.g., a monitor) for displaying information to the computer user, an optional user input device including alphanumeric and function keys (e.g., a keyboard) for communicating information and command selections to the processor, and an optional user input device such as a cursor control device (e.g., a mouse) for communicating user input information and command selections to the processor.
In general, LAN 110 utilizes a programmable infrastructure that enables the virtual connection of selected computing resources as well as the isolation of selected computing resources, thereby ensuring the security and segregation of computing resources at the lowest infrastructure level. The pool of computing resources in the LAN 110 includes pre-wired, pre-integrated, and pre-tested physical resources. The computing resources in the LAN 110 can be dynamically and logically reconfigured into various virtual local area networks (VLANs). A number of such VLANs can be created and managed by the utility controller software.
In the present embodiment, LAN 110 includes a number of switches 111 through 116, and a number of computers 130–138 that are couplable to the switches 111–116. Typically, the computers 130–138 are physically located in computer racks 120, 121 and 122, although this may not always be the case. In this embodiment, the switches and computer systems are interconnected using cables or the like. However, wireless connections between devices in LAN 110 are also contemplated.
In the present embodiment, the switches 111–116 can be programmed or configured such that LAN 110 is logically separated into a number of VLANs. The programming or configuring of these switches can be changed, thereby changing the resources allocated to the various VLANs. For example, by changing the configuration of switch 114, computer system 130 can be “moved” from one VLAN to another. The allocation and reallocation of resources between VLANs can be achieved without changing the physical wiring between devices.
In addition to computer systems and switches, LAN 110 can include other types of devices such as, but not limited to, routers, load balancers, firewalls, and hubs. These other types of devices may also be programmable or configurable. As will be seen, the features of the present invention can be used with these types of devices as well as with switches. That is, although described primarily in the context of switches, the features of the present invention are not so limited.
The term “configurable device” is used herein to refer to devices that can be programmed or configured. The term “configuration information” is used herein to refer to information that describes the configuration of a configurable device. If, for example, a configurable device is reallocated from one VLAN to another, its configuration information is updated to effect the change. In the present embodiment, the configuration information for a configurable device resides on the device, from which it can be read or retrieved. The actual configuration of a configurable device is also referred to herein as the “as-built” configuration of the device.
In the present embodiment, LAN 110 includes or is coupled to a server 140. Server 140 executes utility controller software for managing the resources in LAN 110, and as such server 140 can also be referred to as a utility controller. For example, the utility controller software executed by server 140 enables the deployment, allocation, and management of VLANs. The utility controller software monitors deployed VLANs, and automatically reallocates resources when there is a reason to do so.
In the present embodiment, server 140 includes a utility controller database 150; alternatively, utility controller database 150 can reside in a separate storage device that is coupled to the server 140. Utility controller database 150 includes information pertaining to the various resources in LAN 110. Importantly, utility controller database 150 includes information that is regarded as a correct and accurate representation of the LAN 110 as it is designed and as it should be implemented.
The utility controller database 150 is also referred to herein as “reference information,” “design information,” or “design basis information.” As resources in LAN 110 are reallocated, the information in utility controller database 150 is also changed. Changes to the utility controller database 150 can also be used to drive changes to the allocation of resources in LAN 110. As will be seen, the present invention in its various embodiments verifies that the configuration or as-built information for each of the configurable devices in LAN 110 is correct relative to the reference or design information in utility controller database 150. In other words, embodiments of the present invention verify that the configurations of the configurable devices and the reference information in the utility controller database 150 are synchronized.
Utility controller database 150 includes information such as the types of devices in LAN 110 and a representation of each VLAN. Other information included in utility controller database 150 includes, but is not limited to: the network or MAC (media access control) address for the resources of LAN 110; the port numbers of the configurable devices; the VLAN identifiers associated with each of the port numbers; the socket identifier for each cable connected to each of the resources of LAN 110; manufacturer and model numbers; and serial numbers.
In one embodiment, utility controller database 150 is embodied as a computer-readable network map. It is understood that such a map need not exist in the form conventionally associated with human-readable maps. It is also appreciated that a computer-readable network map can be synthesized on-the-fly from the information stored in utility controller database 150.
In the example of
In the present embodiment, the VLAN verifier (e.g., the VLAN verification software) is coupled to the utility controller database 150. As described above, utility controller database 150 includes reference or design information for LAN 110. The VLAN verifier is also coupled to the fabric 160 of configurable devices (e.g., switches 111–116). In general, the VLAN verifier has access to the configuration information for each of the switches 111–116. This can be accomplished by communicating with one of the switches that in turn communicates with each of the other switches, by directly communicating with each switch either in series or in parallel, or by some combination of these actions.
Flowchart 400 of
In step 410, in the present embodiment, configuration information is received for each of the configurable devices in a virtual network. In one embodiment, the configuration information is received in response to a command issued to the configurable devices by, for example, the VLAN verifier (e.g., the VLAN verification software of
In another embodiment, the configuration information is provided to the VLAN verifier in response to some sort of triggering event. For example, if the configurable device experiences a change in its configuration information (e.g., the device is allocated to a different VLAN), then it can automatically provide its configuration information to the VLAN verifier. In yet another embodiment, the configuration information resident on each configurable device is accessed and read by the VLAN verifier. For example, instead of requesting the information and waiting for a response, the VLAN verifier accesses a known memory location on the configurable device and reads the configuration information that is stored there. Other methods for exchanging information between the configurable devices and the VLAN verification software can be used.
In step 420 of
In step 430 of
In step 440, the results of the comparison of step 430 are reported and any corrective actions are identified. The report and corrective actions can be of various forms, either human-readable or computer-readable or both. In one embodiment, if the configuration information and the reference information agree, then a report message is generated indicating that the as-built configuration of the VLAN is correct. A report message can optionally be generated for each instance of agreement between the configuration information and the reference information. In other words, a report message can be generated for each device in the VLAN, or even for the various elements of each device (e.g., for each port on each device).
In the present embodiment, a report message is also generated for each discrepancy between the configuration information and the reference information. This message can indicate that the as-built configuration of the VLAN is not correct, and can provide relevant information identifying the specifics of each discrepancy.
As mentioned, corrective actions can also be identified. In one embodiment, lines of text describing commands that can be used to bring the VLAN into compliance with the reference information are generated. Command lines specific to the various types of configurable devices present in the VLAN can be generated. In one embodiment, corrective actions can be implemented via electronically-transmitted commands by a program (e.g., by VLAN verification software 140 of
In one embodiment, a human-readable report and/or a computer-readable report file are generated, summarizing the messages described above. In another embodiment, a human-readable set of commands and/or a computer-readable command file are generated. These commands include the corrective actions for bring the configuration information (and hence the as-built configuration of the VLAN) into compliance with the reference information in the utility controller database 150 (
In step 450 of
The discussion above is based on the presumption that the reference information (e.g., utility controller database 150 of
In the embodiment of
In summary, embodiments of the present invention provide methods and systems that can verify that configurable devices (e.g., switches) and hence VLANs are properly configured. By virtue of automation, correctness of the VLANs can be verified in less time, at less expense, and as often as desired. Each instance of an incorrect or otherwise unsatisfactory VLAN can be pinpointed quickly and early. Corrective actions are generated and readily implemented. Because these corrective actions can be computer-generated and, in some instances, automatically implemented, the risk of human error is reduced.
In addition to verifying correctness of the VLANs, embodiments of the present invention also facilitate improving the performance of the VLANs. For example, if VLAN performance is less than expected, the configuration of the VLAN can be quickly eliminated as a source of the problem, allowing administrators to focus on other possible sources of trouble.
As mentioned, the VLAN verification software and method thereof can be executed periodically or on demand. Accordingly, configurable devices can be checked for correctness even when a change in configuration information is not anticipated. In other words, a change in the configuration information of a configurable device due to a hardware malfunction, intervention by an unauthorized third party, or the like, would be detectable, even if the configurable device is not being used as part of a VLAN. In addition, configurable devices can be confidently replaced or removed from service (e.g., for maintenance), because the VLAN verification software provides assurance that the new hardware is properly configured.
Embodiments of the present invention are thus described. While the present invention has been described in particular embodiments, it should be appreciated that the present invention should not be construed as limited by such embodiments, but rather construed according to the following claims.