The present invention relates to data processing, and more specifically, to synchronization of load balancing switches.
Data centers are generally centralized facilities that provide Internet and intranet services needed to support businesses and organizations. A typical data center can house various types of electronic equipment, such as computers, servers (e.g., email servers, proxy servers, and DNS servers), switches, routers, data storage devices, and other associated components. In addition, data centers typically deploy network security components, such as firewalls, VPN (virtual private network) gateways, and intrusion detection systems.
In traditional networking, routers and switch devices usually refer to tables to track data passing through servers. The data center may employ a network element consisting of both an ingress switch and an egress switch to handle data passing through servers. The ingress and egress switches may work independently of each other to handle distinct packet routing responsibilities; one to forward a packet to a server or servers and one to forward the packet out of the network element.
In some networking approaches, redundancy of switches may be employed as a fail-safe mechanism in case a primary switch falters. Under an Active-Passive scheme, the redundant component may be operated only when its associated primary component fails. This may be considered inefficient because the redundant component is idle most of the time.
According to one embodiment of the present invention, a network element within a data center comprises a master switch; a slave switch; and a plurality of servers in communication with the master and slave switches, wherein the master switch is configured to send synchronization requests to the slave switch to update a slave switch hash table to correspond to a master switch hash table.
According to another embodiment of the present invention, a process of synchronizing switches in a network element comprises determining whether an external synchronization event is being made on the network element; updating a hash table of a master switch based on the external synchronization event; sending a health check request from the master switch to a slave switch; determining availability of a healthy application server from the health check request; sending a synchronization update request from the master switch to the slave switch through the healthy application server; and updating a hash table of the slave switch to correspond with the hash table of the master switch.
According to yet another embodiment of the present invention, a master switch in a network element comprises at least one externally facing port configured to receive data;
According to still yet another embodiment of the present invention, a computer program product for synchronizing load balanced switches in a network element, the computer program product comprising a computer readable storage medium having computer readable program code embodied therewith, the computer readable program code being configured to: determine whether a master switch and a slave switch are processing data traffic through the network element in active-active mode; determine whether an external synchronization event is being made on the network element; send a health check request from the master switch to the slave switch; determine availability of a healthy application server between the master switch and the slave switch, from the health check request; send a synchronization update request from the master switch to the slave switch through the available healthy application server; and synchronize the slave switch with application data to correspond with application data in the master switch.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or computer program product. Accordingly, aspects of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, aspects of the present invention may take the form of a computer program product embodied in one or more computer readable medium(s) having computer readable program code embodied thereon.
Any combination of one or more computer readable medium(s) may be utilized. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).
Aspects of the present invention are described below with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer readable medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
As generally described herein, the network elements of a data center employ traffic orchestration mechanisms for dynamically controlling the distribution of packet traffic into and from a server in the data center.
Referring now to
Referring now to
Each server 26 may be in communication with an ingress switch 20-1 and an egress switch 20-2. The ingress switch 20-1 may be referred to as the master switch; the egress switch 20-2, as the slave. In another aspect, the data center may be configured for active-active operation where both the master switch 20-1 and slave switch 20-2 are actively processing traffic. The master switch 20-1 and the slave switch 20-2 may operate under a heterogeneous software environment. A heterogeneous software environment may be when the software is running on each switch (20-1, 20-2) independently. For example, the configuration may be the same on each switch (20-1, 20-2), but the processing order, steps, and/or timing may be different on independent switches). A heterogeneous software environment may be when the software being processed on the different servers 26 may return information to the switch (20-1 or 20-2) under different applications, for example, different health check metrics. The master switch 20-1 may receive incoming packets, arriving either from client systems (when the master switch 20-1 is at an ingress location of the network element 14) within a data center 10 or from other network elements 14 within the data center 10, and may forward the packets to servers 26 within the network element 14. In an exemplary embodiment, the slave switch 20-2 may receive packet traffic from the servers 26 and forward the packet traffic outside of the network element 14 to other network elements 14 within the data center 10. In another exemplary embodiment, the slave switch 20-2 may receive incoming packets external from the network element 14, arriving either from client systems or from other network elements 14 within the data center 10, similar to the master switch 20-1, and forward the packets to servers 26 within the network element 14.
In general, the networking element 14 may provide switching and server services for packet traffic from the client systems. Through an external management agent (not shown), an administrator of the data center 10 may communicate with one or more network elements 14 in order to manage the packet distribution. A management station (not shown) may connect directly (point-to-point) or indirectly to a given network element 14 of the data center 10 over one of a variety of connections, such as standard telephone lines, digital subscriber line (DSL), asynchronous DSL, LAN or WAN links (e.g., T1, T3), broadband connections (Frame Relay, ATM), and wireless connections (e.g., 802.11(a), 802.11(b), 802.11(g), 802.11(n)). Using a network protocol, such as Telnet or SNMP (Simple Network Management Protocol), the management station (not shown) may access a command-line interface (CLI) of the given network element 14.
Each server 26 may be a computer that provides one or more services to the data center 10, examples of which may include email servers, proxy servers, DNS servers, proxy appliances, or real servers. Examples of services that may be provided by the servers 26 include firewall services, Intrusion Prevention/Intrusion Detection (IPS/IDS) services, Server Load Balancing (SLB), and Application Delivery Centers
(ADC) services. All of the servers 26 in the network element 14 may or may not perform the same function.
Each switch 20-1, 20-2 (generally, 20) may include at least one externally facing port 24 and a plurality of server-facing ports 28. In an exemplary embodiment, the switch 20 may be an Ethernet switch and the ports 24, 28 of the switch may support 10
GB line rates. For a network element 14 at an ingress location of the data center 10, the externally facing port 24 of the master switch 20-1 may be in communication with the client systems. For network elements not at an ingress location, the externally facing port 24 of the master switch 20-1 may be in communication with another network element 14. The externally facing port 24 of the slave switch 20-2 may be in communication with another network element 14 or with client systems. The master and slave switches 20 may have more than one externally facing port 24. Each of the server-facing ports 28 of the master and slave switches 20 may be connected to a port 32 of a server 26. In addition, the master switch 20-1 and slave switch 20-2 may be in communication with each other over an inter-switch network link 30 which may be a dedicated physical path or a dynamically selected path through one of the server-facing ports 28. The network link 30 for example, may provide a path to send health checks and/or synchronization information from the master switch 20-1 to the slave switch 20-2. The master switch 20-1 and slave switch 20-2 may operate independently of each other populating respective hash tables with information from their respective packet traffic. Under a heterogeneous software environment, and in particular, under an active-active mode of operation, the hash tables between the master switch 20-1 and the slave switch 20-2 may benefit from synchronization. Computer program instructions may be resident on each of the master switch 20-1 and the slave switch 20-2. The computer program instructions may provide messages across the servers 26 for coordinating synchronization between the master switch 20-1 and the slave switch 20-2. The computer program instructions may be resident on a processor in the master switch 20-1 and on a processor in the slave switch 20-2 or may be implemented from an external source.
During active-active mode, the ingress switch 20-1 and egress switch 20-2 may be each configured to provide independent, bi-directional pack routing while maintaining server state among the servers 26. It may be appreciated that the bi-directional servicing of the switches 20 may provide increased bandwidth processing within the data center 10. In general, the switches 20 may be configured so that a server 26 connected to one or both of the switches 20 may be enabled to receive and return traffic to the same switch. For example, the ingress switch 20-1 may receive a packet over the externally facing port 24 and routes the packet to one of the servers 26. The server 26 may perform its designated service or services. The server 26 may direct the packet back to the ingress switch 20-1 when processed. The ingress switch 20-1 may forward the packet out of the network element 14 through one or more of its externally facing ports 24. Similarly, the egress switch 20-2 may receive a packet over the externally facing port 24 and distribute the packet traffic across the servers 26. The egress switch 20-2 may process and route the packet to one of the servers 26 where the server 26 performs its designated service or services. The server 26 may direct the packet back to the egress switch 20-2 when processed. The egress switch 20-2 may forward the packet out of the network element 14 through one or more of its externally facing ports 24.
Referring now to
Referring now to
Referring now to
Referring now to
Referring now to
Referring now to
The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, may be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
The corresponding structures, materials, acts, and equivalents of all means or step plus function elements in the claims below are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. The description of the present invention has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the invention. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.
The present continuation application claims the benefit of priority of U.S. application Ser. No.: 13/494,467, filed Jun. 12, 2012, which application is incorporated herein by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
Parent | 13494467 | Jun 2012 | US |
Child | 14071394 | US |