# Patent

## Title
Method and system for providing persistence in a secure network access

## Abstract

A system and method for providing persistence in a secure network access by using a client certificate sent by a client device to maintain the identity of a target. A security handshake is performed with a client device to establish a secure session. A target is determined. A client certificate is associated with the target. During subsequent secure sessions, the client certificate is used to maintain persistent communications between the client and a target. A session ID can be used in combination with the client certificate, by identifying the target based on the session ID or the client certificate, depending on which one is available in a client message.

## Background
FIELD OF THE INVENTION
This application relates generally to distributing client requests among servers on a network, and, more specifically, to techniques for consistently distributing requests between clients and servers during secure conversations.
BACKGROUND
Many web sites on the World Wide Web (WWW) today use the Secure Sockets Layer and Transport Layer Security (SSL) protocols to achieve end-to-end secure communications, particularly in the areas of electronic commerce and financial services. The TLS protocol is derived from SSL, and is described in “The TLS Protocol, Version 1.0, RFC 2246 (Jan. 1999).” As used throughout this application, including the claims, SSL refers to SSL, TLS, and all secure communications protocols derived therefrom.
IPSecurity (IPSEC) is a set of protocols and associated algorithms designed for providing security for Internet traffic, at the IP layer. IPSEC is described in “Security Architecture for the Internet Protocol, RFC 2401 (November 1998).”
The most widely used SSL-enabled protocol today is the Hypertext Transport Protocol (HTTP) encapsulated in an SSL connection, commonly known as HTTPS. The HTTP protocol is described in “Hypertext Transport Protocol (HTTP) version 1.1, RFC 2616 (June 1999).” Other SSL-enabled protocols include File Transfer Protocol (FTP), Simple Mail Transfer Protocol (SMTP), Lightweight Directory Access Protocol (LDAP), TELNET, Internet Relay Chat (IRC), Internet Message Access Protocol (IMAP), and Post Office Protocol (POP).
The Wireless Application Protocol (WAP) Wireless Transport Layer Security (WTLS) protocol is applicable to wireless communications. The WAP WTLS is described in “Wireless Transport Layer Security, Version 6 Apr. 2001.”
A digital certificate is a digital statement used for authenticating an entity. Often, the digital statement is cryptographically signed by a trusted authority. The format of one type of certificate is specified in “Internet X.509 Public Key Infrastructure Certificate and CRL Profile, RFC 2459 (January 1999).”Alternative certificate formats are also available.
The Hyper Text Transfer Protocol (HTTP) is an application level protocol for transferring resources across the Internet, e.g., a network data object or server, where the resource is specified by a Uniform Resource Locator (URL). The Hyper Text Mark-up Language (HTML) is a simple data format that is used to create hypertext documents that are supported by the HTTP protocol. These standards are commonly relied upon in technology of the World Wide Web (WWW) on the Internet.
A server array controller is an Internet traffic management device. Server array controllers (hereinafter referred to simply a “controller” or “controllers”) control the flow of data packets to and from an array of application servers. The controller manages and distributes Internet, intranet and other user requests across redundant arrays of network servers, regardless of the platform type. Controllers support a wide variety of network applications such as web browsing, e-mail, telephony, streaming multimedia and other network protocol traffic.
SUMMARY
These and various other features as well as advantages, which characterize the present invention, will be apparent from a reading of the following detailed description and a review of the associated drawings.
Briefly, described is a system and method for providing persistence in a secure network access by using a client certificate sent by a client device to maintain the identity of a target. The target can be a server, another type of device, or a software process. A security handshake is performed with a client device to establish a secure session. A target is determined. A client certificate is associated with the client device. During subsequent secure sessions, the client certificate is used to maintain persistent communications between the client and a target.
In one aspect of the invention, a message is received from a client device, the message including a first client certificate associated with the client device. A target for the client device is determined. A second message from the client device is received, including a second client certificate, equivalent to the first client certificate. The target is determined based on the second client security certificate.
In another aspect of the invention, after receiving the first message, at least one data message is received from the client, and the data message is forwarded to the target server. After receiving the second security message, a second data message is received from the client and forwarded to the target server.
In another aspect of the invention, a secure communication protocol handshake is performed with the client device, the handshake including the first security message. The secure communication protocol can be SSL. The handshake establishes a secure communication session.
In another aspect of the invention, a second secure communication protocol handshake is performed with the client device, the second handshake including the second security message. The second handshake can be performed within the first secure communication session.
In another aspect of the invention, an identification of the target server is sent to a traffic manager by inserting the identification into an HTTP header. This can be implemented by inserting the identification into an HTTP cookie.
In another aspect of the invention, a secure session ID is used to maintain persistence with the target server. The invention can optionally use either a session ID or a client certificate, depending on which one is available at the time of a security handshake.
In another aspect of the invention, data is stored that maps two or more of the session ID, the client certificate, and the target. The mapping is used to identify the target and to maintain persistence.
In another aspect of the invention, a load balancer communicates with more than one SSL proxy, and receives identifying data from the SSL proxies. The identifying data can be a client certificate, a session identifier, or both. The load balancer includes instructions for maintaining a persistent communications between the client server and the target server, based on the identifying data.
In another aspect of the invention, persistence is maintained when the second client certificate, equivalent to the first certificate, is received from a second client device. The client certificate can be transferred from the first client device to the second client device.
Aspects of the invention can be embodied in software and/or hardware and on a computer-readable medium and/or in a modulated data signal.
These and various other features as well as advantages, which characterize the present invention, will be apparent from a reading of the following detailed description and a review of the associated drawings.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a system diagram of a computer network in which the invention may be practiced;
FIG. 2 is a block diagram of an exemplary network device that may be employed to perform the invention;
FIGS. 3A-C are block diagrams illustrating configurations in which the invention may be practiced;
FIG. 4 illustrates an SSL client—SSL server message flow, in accordance with an SSL protocol;
FIG. 5 is a flow chart illustrating a process for performing load balancing in accordance with the present invention;
FIG. 6 is a flow chart illustrating a process for performing load balancing in accordance with one embodiment of the present invention;
FIGS. 7A-D are block diagrams illustrating configurations in which the invention may be practiced;
FIG. 8 is a block diagram illustrating a configuration in which the invention may be practiced;
FIG. 9 is a flow chart illustrating a process for performing load balancing in accordance with the present invention; and
FIG. 10 is a block diagram illustrating a configuration in which the invention may be practiced.



DETAILED DESCRIPTION
In the following detailed description of exemplary embodiments of the invention, reference is made to the accompanied drawings, which form a part hereof, and which are shown by way of illustration, specific exemplary embodiments of which the invention may be practiced. These embodiments are described in sufficient detail to enable those skilled in the art to practice the invention, and it is to be understood that other embodiments can be utilized, and other changes can be made, without departing from the spirit or scope of the present invention. The following detailed description is, therefore, not to be taken in a limiting sense, and the scope of the present invention is defined by the appended claims. The phrase “in one embodiment” as used herein does not necessarily refer to the same embodiment, though it may. As used herein, the term “or” is an inclusive “or” operator, and is equivalent to the term “and/or”, unless the context clearly dictates otherwise.
FIG. 1 illustrates an exemplary environment 100 in which the invention operates, according to one embodiment of the invention. The environment 100 includes a network 106. The network 106 can be a wide area network (WAN), a local area network (LAN), or a combination of interconnected WANs and LANs. The Internet is made up of a vast number of such interconnected networks, computers, and network devices that use the Transmission Control Protocol/Internet Protocol (“TCP/IP”) suite of protocols to communicate with one another. The environment further includes client devices 102-104 (also referred to as clients), router 108, server array controller 110, and a server array. The server array includes servers 112-116. Network 106 couples clients 102-104 to the server array controller 110 through the router 108. Server array controller 110 couples the server array to network 106 through the router 108. An exemplary server array controller that can connect with network 106 is network device 200 of FIG. 2. A router 108 is an intermediary device on a communications network that expedites packet delivery.
Clients 102-104 are computing devices capable of connecting with network 106. The set of such devices can include devices that connect using one or more wired communications mediums, a wireless communications medium, or a combination of wired and wireless communications mediums. Clients 102-104 include such devices as personal computers, multiprocessor systems, microprocessor-based or programmable consumer electronics, network PCs, cell phones, smart phones, pagers, PDAs, Pocket PCs, wearable computers, walkie talkies, radio frequency (RF) devices, infrared (IR) devices, CBs, integrated devices combining one or more of the preceding devices, and the like.
Servers 112-116 are computing devices that provide information and/or services to clients 102-104. Servers 112-116 can, for example, store web pages or components thereof, dynamically create web pages or components thereof, store data and/or files for access by other servers or clients, or any combination of these functions.
In general, clients 102-104 are sites where a human user operates the computing device to make requests for data or services from other computers on the network. Often, the requested data resides in computing devices such as servers 112-116. In this specification, the term “client” refers to a computer's general role as a requester of data or services, and the term “server” refers to a computer's role as a provider of data or services. In general, it is possible that a computer can act as a client, requesting data or services in one transaction and act as a server, providing data or services in another transaction, thus changing its role from client to server or vice versa.
Server array controller 110 receives packets from network 106, through the router 108, and also receives packets from the servers 112-116. In some operations, server array controller 110 acts like a layer 7 switch. That is, it may look at content associated with higher TCP/IP layers of the packet, e.g. a request for an HTML page, the request including a Uniform Resource Locator (URL) and information that identifies the user, such as a cookie, etc. It can store information in memory so that the next time the requestor requests more information from the same web site each request is sent to the same server. A server array controller 110 can do this, in part, to ensure that the user is connected to the server that the user previously connected to. This helps prevent the loss of transaction data, such as items in an electronic shopping cart.
FIG. 2 shows an exemplary network device 200 that can operate as a server array controller in accordance with the present invention. It will be appreciated that not all components of network device 200 are illustrated, and that network device 200 can include more or fewer components than those shown in FIG. 2. Network device 200 can operate, for example, as a router, bridge, firewall, gateway, traffic management device (also referred to as a traffic manager), distributor, load balancer, server array controller, or proxy server. It is to be noted that these functions are not necessarily distinct from each other. For example, a traffic manager may perform load balancing and control an array of servers. The communications can take place over network 106 (FIG. 1), or some other communications network known to those skilled in the art.
As illustrated in FIG. 2, network device 200 includes a central processing unit (CPU) 202, mass memory, and a network interface unit 212 connected via a bus 204. Network interface unit 212 includes the necessary circuitry for connecting network device 200 to network 106, and is constructed for use with various communication protocols, including the TCP/IP protocol. Network interface unit 212 can include or interface with circuitry and components for transmitting messages and data over a wired and/or wireless communications medium.
The mass memory generally includes random access memory (“RAM”) 206, read-only memory (“ROM”) 214, and one or more permanent mass storage devices, such as hard disk drive 208. The mass memory stores operating system 216 for controlling the operation of network device 200. The operating system 216 may comprise an operating system such as UNIX®, LINUX®, or Windows®.
In one embodiment, the mass memory stores program code and data for implementing a hash function 218, and program code and data for implementing a persistence engine 220, in accordance with the present invention. The mass memory can also store additional program code 224 and data for performing the functions of network device 200.
In one embodiment, the network device 200 includes one or more Application Specific Integrated Circuit (ASIC) chips 226 connected to the bus 204. The ASIC chip 226 includes logic that performs some of the functions of network device 200. For example, in one embodiment, the ASIC chip 226 performs a number of packet processing functions, to process incoming packets. In one embodiment, the logic of the hash function 218 is performed by the ASIC chip 226. In one embodiment, the network device 200 includes one or more field-programmable gate arrays (FPGA) (not shown), instead of, or in addition to, the ASIC chip 226. A number of functions of the network device can be performed by the ASIC chip 226, by an FPGA, by the CPU 202 with the logic of program code stored in mass memory, or by any combination of the ASIC chip, the FPGA, and the CPU.
In one embodiment, the network device 200 includes an SSL proxy 230. The SSL proxy 230 can include a controlling application 232 and an SSL hardware accelerator 234. The SSL proxy can include other components, such as an SSL cryptographic toolkit (not shown). The functions of an SSL proxy 230 can be distributed between software and hardware in a number of different ways. In one embodiment, the SSL proxy is a separate network device from the server array controller. In one embodiment, a separate network device performs the functions of the persistence engine 220.
Computer storage media can include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules or other data. Examples of computer storage media include RAM 206, ROM 214, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that can store the information and that can be accessed by a computing device.
Network device 200 can also include an input/output interface (not shown) for communicating with external devices or users.
Network device 200 can be implemented as one or more “blades” where the term “blade” refers to one of multiple electronic circuit boards or cards that are installed in a hardware chassis with a backplane. An exemplary blade can include one or more processors, volatile and non-volatile memory, interfaces suitable for communicating information to and from the blade, and other components for enabling the operation of one or more applications. A blade can also include a specialized interface for the backplane and other interfaces, such as a USB port, FIREWIRE port, serial port, RF interface, IR interface, Ethernet interface, IDE controller, and the like. An application running on a blade can employ any of these interfaces to communicate information to other applications running on other blades and/or devices coupled to the blade server. Network device 200 can also be implemented as a combination of blades and additional components in chassis.
The server array controller 110 (hereinafter referred to simply as a “controller”) shown in FIG. 1 typically includes one or more network interfaces, and performs one or more of the operations of routing, translating, and switching packets. A controller having a single network connection is also within the scope of the present invention.
In one example of the invention, the controller is a load-balancing server array controller. In this example, the controller includes load-balancing and control logic that can be implemented in software, hardware, or a combination of software and hardware.
In one embodiment, the server array controller 110 intelligently distributes web site connections across the server array. The controller 110 can manage connections to one or multiple Internet or intranet sites, and it can support a wide variety of Internet protocols and services such as TCP/IP (transmission control protocol/Internet protocol) and HTTP. Additionally, the controller 110 can support any one or more of a suite of communications protocols that are used to connect nodes on the Internet, including HTTP, file transfer (FTP), secure sockets layer (SSL), streaming media, DNS, UDP/IP, and email (SMTP).
Referring to FIG. 1, each server 112-116 is identified by a unique identifier. The identifier can be a combination of a node address and a node port number on the intranet behind the server array controller 110, which can monitor several aspects of the servers. The identifier can be a VLAN, or other identifier. The controller 110 can load balance each connection to the intranet of servers by selecting a server to provide optimal access to a requested resource. To perform load balancing, the controller 110 employs one or more algorithms for directing network traffic to a specific server. These algorithms include random distribution, server load, and URL parsing.
If a client 102-104 connects to one server 112-116 when requesting information, it may be desirable for the client to reconnect to that same server in a second request. This is desirable, for example, during an ecommerce transaction, when a server has stored data associated with the customer, and the data is not dynamically shared with the other servers. This is often the case when a customer uses a “shopping cart” at a web site server. During a second request, if the client is connected by the controller to a second server, the second server may not have the information about the client and his shopping cart. In this situation, it is desirable that the controller bypasses the load-balancing algorithm during the second request and directs the client to the prior server. This procedure is referred to as persistence.
FIGS. 3A-C illustrate three ways in which a controller 304a-c can connect a client 302a-c with a server 306a-c. The controller 304a-c, the client 302a-c, and the server 306a-c may correspond to the controller 110, the client 102-104, and the servers 112-116, respectively of FIG. 1. In FIG. 3A, the controller 304a maintains one or more SSL sessions with the client 302a, represented by the SSL communication 308a. The controller 304a is referred to as the SSL server for these sessions. The client 302a is referred to as the SSL client for these sessions. As described in further detail below, the client 302a and the controller 304a engage in SSL handshakes, and transmit encrypted or unencrypted data back and forth over the SSL communication 308a during each SSL session.
The SSL protocol is one standard secure communications protocol that is commonly used for network communication. Alternative secure communication protocols can also be employed with the present invention. For discussion purposes, the SSL protocol is used as an example of possible secure communication protocols.
Data sent from the client 302a to the controller 304a that is intended for the server 306a is encrypted by the client 302a and decrypted by the controller 304a. It is then forwarded to the server 306a over an optionally secure communication (OSC) 310. As used herein, OSC refers to communication that can be encrypted or plaintext. Plaintext is ordinary unencrypted text and/or binary data. In this document, communication that is referred to as OSC can be plaintext or encrypted, or a combination of plaintext and encrypted data, in accordance with the invention. When OSC includes encrypted data, the encryption mechanism used may be different than the encryption used for other encrypted data, such as encrypted data within the SSL protocol. For example, some or all OSC data can include data encrypted with a less secure or a lower cost encryption mechanism than is used within SSL. IPSecurity (IPSec) is an example of a protocol that can be used to provide security for an OSC communication.
Because the controller 304a has access to the unencrypted data, it is able to use this data to perform load balancing and persistence, in accordance with aspects of the invention, as described in further detail below. In one embodiment, some of the data is processed, and possibly modified by the controller prior to forwarding it to the server 306a. In one embodiment, some of the data might not be forwarded to the server.
In FIG. 3B, the controller 304b maintains one or more SSL sessions with the client 302b, represented by the SSL communication 308b. SSL sessions between the client 302b and the controller 304b are referred to as “client side” SSL sessions. Additionally, the controller 304b maintains one or more SSL sessions with the server 306a, as represented by the SSL communication 312. SSL sessions between the server 306a and the controller 304b are referred to as “server side” SSL sessions. In one embodiment, in the client side SSL sessions, the client 302b acts as the SSL client and the controller 304b acts as the SSL server. In one embodiment, the client 302b acts as the SSL server, and the controller 304b acts as the SSL client. In the server side sessions, in one embodiment, the controller 304b acts as the SSL client and the server 306b acts as the SSL server. In one embodiment, the controller 304b acts as the SSL server and the server 306b acts as the SSL client. In one embodiment, there is a one to one correspondence between client side SSL sessions and server side SSL sessions. In one embodiment, a server side SSL session can have multiple corresponding client side SSL sessions. In this embodiment, the controller 304b uses the server side SSL session to communicate data from the multiple client side SSL sessions.
Data sent from the client 302b to the controller 304b that is intended for the server 306b is encrypted by the client 302b and decrypted by the controller 304b. It is then reencrypted and forwarded to the server 306b over the SSL communication 312. Because the controller 304b has access to the decrypted data, it is able to use this data to perform load balancing and persistence, as described in further detail below. In one embodiment, the data is not reencrypted when sending it to the server 306b over the SSL communication 312. The SSL protocol allows data to be sent as plaintext within the SSL session, rather than encrypted. The controller 304b can modify data prior to forwarding. It may also “drop” some data—that is, not forward the data at all.
As discussed above, the SSL protocol is used herein as an example of secure communications protocols. It is to be noted that in exemplary configurations that include more than one secure communication protocol sessions, such as FIG. 3B, SSL may be used in one or more of the communication sessions. Multiple communication protocols may also be used. For example, in FIG. 3B, the two secure communication sessions represented by SSL communications 308b and 312 can use different secure communication protocols. IPSecurity (IPSec) is an example of a protocol that may be used instead of SSL in the SSL communication 312.
In FIG. 3C, the server 306c maintains one or more SSL sessions with the client 302c, represented by the SSL communication 314. In this configuration, the client 302c acts as the SSL client, and the server 306c acts as the SSL server.
Data sent from the client 302c to the server 306c may pass through the controller 304c and be forwarded to the server 306c. The data is encrypted by the client 302c, remains encrypted when it is passing through the controller, and cannot be read by the controller if it does not have the proper session key.
The SSL protocol includes a protocol for performing a handshake between an SSL client and an SSL server. The handshake protocol allows the server and client to authenticate each other and to negotiate an encryption algorithm and cryptographic keys before the application protocol transmits or receives its first byte of data. RFC 2246, referred to above, describes this protocol in detail. FIG. 4 illustrates selected elements of the secure communication handshake protocol 402 that relate to the present invention.
As illustrated in FIG. 4, an SSL client 404 and an SSL server 406 implement a series of message transfers adhering to a secure communication handshake protocol 402. In an SSL session, one device is the SSL client and one device is the SSL server. In each of the SSL sessions illustrated in FIGS. 3A-C, either of the devices can act as the SSL client, with the other device in the same session acting as the SSL server.
As illustrated in FIG. 4, the SSL client 404 sends a “Client Hello” message 408 to the SSL server 406. The Client Hello message optionally includes an SSL session ID. If the SSL client desires to create a new session, it does not include a session ID. If the SSL client desires to resume a prior session or duplicate an existing session, it includes the session ID of the prior or existing session.
The SSL server 406 responds to the Client Hello message by sending a series of one or more messages. The “Server Hello” message 410 includes an SSL session ID that refers to the session being negotiated. If the SSL client attempted to resume or duplicate a session, and the server allows this, the returned session ID is the identifier of the resumed or duplicated session. If the SSL client requested a new session, or if the SSL server does not allow resumption or duplication of the requested session, the session ID sent by the SSL server is an identifier of a new session. The SSL server can allow a new session without sending the session ID to the client, effectively preventing a client from resuming or duplicating the session. The SSL server also optionally sends a “Server Certificate” message 412 and a “Certificate Request” message 414.
If the SSL server sent a “Certificate Request” message, the SSL client 404 then sends a “Client Certificate” message, which includes a cryptographic certificate, such as the Internet X.509 public key certificate discussed above. The SSL client also sends a “Client Key Exchange” message 418 and a “Finished” message 420. The SSL server responds by sending a “Finished” message 424. Following reception of the “Finished” messages, the SSL client 404 and the SSL server 406 exchange application data 430a-b in a series of messages.
An abbreviated handshake protocol is specified in the SSL protocol. The abbreviated protocol applies when the SSL client desires to resume or duplicate a prior or existing session. In an abbreviated handshake, the “Certificate Request” message 414 and the “Client Certificate” message 416 might not be sent. In one embodiment, the “Certificate Request” message is sent in an abbreviated handshake. In one embodiment, the “Certificate Request” message is not sent. In one embodiment, the SSL client does not always send its client certificate in response to a “Certificate Request” message. The complete protocol, as described in the above-named reference, includes additional details not described herein.
FIG. 5 is a flow chart illustrating a process 502 for performing load balancing in accordance with the present invention. In one configuration employing the invention, a client 102 or 104 (FIG. 1) performs the role of an SSL Client, as discussed with reference to FIG. 4, and a controller 110 (FIG. 1) performs the role of an SSL Server. After beginning at a Start block, the process 502 proceeds to a block 504. At block 504, the client and the controller perform an SSL handshake. As discussed with reference to FIG. 4, the SSL handshake includes the client sending a client certificate associated with the client to the controller.
At a block 506, the controller determines a target from among the targets available to it. A target can be a target server, such as the servers 112-116 (FIG. 1). A target can also be a pool of servers, or another type of network device. In one embodiment, each target is a set of rules. For example, in one embodiment, the controller has a number of sets of rules. Each set of rules is used to process incoming data, and the present invention is employed to determine a set of rules. Functions or software objects can also be used to process the incoming data, and can be targets, in a similar manner.
The determination of a target at block 506 can be made using any of a number of load balancing algorithms, including random distribution, server load, URL parsing, and response time. In one embodiment, the determination is deterministic. That is, provided with the same input, such as the client certificate, the determination algorithm will always result in the same target. In one embodiment, the determination is performed using an algorithm, such as a hash function, that translates a certificate into a specification of a target. The use of hash functions is described in further detail below.
At a block 508, the client and the controller exchange application data. The controller performs as an intermediary between the client and the target, forwarding data received from the client to the target, and forwarding data received from the target to the client. In one configuration, as illustrated in FIG. 3A and the associated discussion above, the controller sends data to the target in plaintext, and receives data from the server in plaintext. In one configuration, as illustrated in FIG. 3B and the associated discussion above, the controller establishes a secure communication session with the target, and data is sent back and forth between the controller and the target within the secure communication session, in encrypted form. Data can also be sent between the controller and target using a secure communication protocol that differs from the secure communication protocol used between the client and the controller.
At a block 510, the client and the controller perform a second handshake. As discussed with reference to FIG. 4, the second SSL handshake includes the client sending a client certificate associated with the client to the controller. In one embodiment, the second handshake is performed by communicating within the first SSL session, so that the handshake itself is within a secure session. In one embodiment, the second handshake is performed outside of the first SSL session.
At a block 516, the controller determines which of the available servers 112-116 (FIG. 1) is the target previously selected at the block 506. In one embodiment, the determination of the target at the block 506 and the determination at the block 516 are performed using the same algorithm, such as a hash function, that translates a certificate into specification of a server.
A hash is a function or algorithm that maps a set of input values to a set of output values. A hash function can be used when the set of input values has more elements than the set of output values. Some hashes, when applied to a set of input values, will map the input values with approximate equal distribution on the set of output values. Other hashes will map the input values with uneven distribution on a set of output values. A hash is deterministic. That is, the hash will produce the same output value whenever a particular input value is hashed on. For example, the controller may perform a calculation of

(HASH(certificate))modulo N

where N is equal to the number of available servers, and where the resultant value is used to indicate one of the N available servers. With this calculation, the target determined at the block 516 will be the same as the target determined at the block 506, if the same hash function is used, N is unchanged and the same certificate is presented at both blocks. Therefore, the controller does not need to store information mapping the target with the client in order to correctly perform the determination at the block 516. In configurations where there is more than one controller receiving SSL handshakes with clients, having a mechanism where the mapping does not need to be stored simplifies the process of maintaining persistence on each controller.

In one embodiment of the invention, the process 502 further includes storing information that maps the client certificate with the target determined at the block 506. In this embodiment, at the block 516, the determination includes using the client certificate to retrieve the stored information specifying the target. For example, at the block 506, the controller can hash the client certificate, and store the mapping of the hash value and the target. At the block 516, the controller can hash the client certificate and retrieve the identification of the target mapped to the hash value. This mechanism is useful when the determination at the block 506 is at least partly based on information that is not constant. Examples of this type of information are the load on each server, the response time of each server, and contents of a URL. In one embodiment, the determination at the block 506 uses a hash of the client certificate and also uses dynamic information, such as the load or response time of each server. In this embodiment, the mapping between the client certificate and the target can be stored, for example at the block 506, because at a later time the dynamic information may change.
At a block 518, the client and the controller exchange application data. As discussed above, the controller performs as an intermediary between the client and the target, forwarding data received from the client to the target, and forwarding data received from the target to the client. As discussed above, in one configuration, as illustrated in FIG. 3A and the associated discussion above, the controller sends data to the target in plaintext, and receives data from the server in plaintext. In one configuration, as illustrated in FIG. 3B and the associated discussion above, the controller establishes a secure communication session with the target, and data is sent back and forth between the controller and the target within the secure communication session, in encrypted form.
The actions at blocks 510-518 can be repeated a number of times, each time resulting in the determination of the same target as determined at the block 506.
In one embodiment, more than one client maintains a unified persistence with a target. This can occur, for example, in a configuration having a client certificate on a removable media, such as a smart card. With reference to FIGS. 1 and 5, at the block 504, a user can employ client 102 to perform a handshake, including sending a client certificate that is stored on a smart card communicating with client 102. At the block 510, the user can employ a second client, such as client 104, to perform a second handshake, including sending the same client certificate, the user having transferred the smart card to client 104. The second SSL session is created with the second client as the SSL client. Other aspects of the process 502 are as discussed above. In this way, the user is able to maintain a persistent connection with a target server, even when changing from the first client to the second client. The user can also use other mechanisms to transfer the client certificate, or a copy of the client certificate, from the first client to the second client.
In one embodiment, at the block 510, the SSL client sends a second client certificate that is not identical to the first client certificate sent by the client at the block 504. The first and second client certificates are equivalent, with respect to the process of determining a target. This may occur, for example, if a client certificate is made up of more than one component, and the hash function uses a subset of the components, called the hash components. If the hash components are identical, then the first and second client certificates are considered equivalent. A component can be any one or more bits within a bit string. Similarly, if a hash of the first client certificate always derives the same target as the second client certificate, both client certificates are considered equivalent with respect to the present invention. As used herein, the term “equivalent certificates” includes identical certificates. Also, an identical copy of a digital certificate is considered to be the same certificate as the original. Thus, after referring to a certificate, a subsequent reference to “the certificate” is satisfied if the second reference actually refers to a copy of the certificate.
FIG. 6 is a flow chart illustrating a process 602 for performing load balancing in accordance with an embodiment of the present invention, in which the client might not send a client certificate during certain SSL handshakes. The process 602 is similar to the process 502 discussed above, and much of the discussion regarding FIG. 5 applies to the process 602.
At a block 604, the client and the controller perform an SSL handshake. As discussed with reference to FIG. 4, the SSL handshake includes the client sending a client certificate associated with the client to the controller. At a block 606, the controller determines a target from among the targets, such as servers 112-116 (FIG. 1) available to it. The determination of a target can be performed before the SSL handshake of block 604, during the SSL handshake, or after the SSL handshake.
In one embodiment, the determination of the target is performed either before or during the SSL handshake, and the controller selects a session ID that identifies the determined target directly from the session ID—that is, without the use of dynamic stored mappings between session IDs and the targets. For example, the controller can select a session ID such that the target can be derived directly from a computation on the session ID. The use of a static table associating hash values with targets, together with a selection of a session ID that hashes to one of the hash values in the table, is considered to be a technique that allows direct determination of the target from the session ID, because the table does not need to be dynamically updated to accommodate new session IDs. This allows the controller to use any of a number of algorithms for determining the target, and subsequently derive the target from the session ID without having to store mappings between session IDs and target.
At a block 608, the client and the controller exchange application data. The controller performs as an intermediary between the client and the target, as discussed above. The controller and the target can communicate using plaintext or encrypted messages.
At a block 610, the client and the controller perform a second handshake. In this handshake, the client might not send a client certificate associated with the client to the controller. For example, the second handshake can be setting up a resumed session. When the client desires to resume an SSL session, it sends to the controller a session ID of a prior session. In this case, the client might not send a client certificate during the handshake. In another example, the client may desire to duplicate an existing session, by sending the controller a session ID of an existing session. As for the resumed session, the client might not send a client certificate during the handshake, when duplicating an SSL session. Therefore, the client may send the session ID, the client certificate, or both, to the controller.
At a block 612, the controller determines whether it has received the session ID or the client certificate during the second handshake. If the controller has received the client certificate and not the session ID, process flow proceeds to a block 614. If the controller has received the session ID and not the client certificate, process flow proceeds to a block 616. If the controller has received both the session ID and the client certificate during the second handshake, process flow can proceed to either one of the block 614 or the block 616.
At a block 614, the controller determines which of the available targets, such as servers 112-116 (FIG. 1) is the target previously selected at the block 606, the determination being based on the client certificate. In one embodiment of the invention, the process 602 includes storing information that maps the session ID with the target determined at the block 606. At the block 614, the determination might include using the session ID to retrieve the information specifying the target. In one embodiment, for example, at the block 606, the controller can hash the client certificate, and store the mapping of the hash value, the session ID, and the target server. At the block 612, the controller can retrieve the identification of the target mapped to the session ID.
At a block 618, the client and the controller exchange application data. As discussed above, the controller performs as an intermediary between the client and the target, forwarding data received from the client to the target, and forwarding data received from the target to the client.
If, at the decision block 612, it is determined that a session ID is received, and the session ID is to be used to determine the previous target, flow proceeds to a block 616. At the block 616 the controller determines the target based on the session ID. In one embodiment, the process 602 includes storing a mapping between a session ID, a client certificate (or a hash of the client certificate), and the target, after the target has been determined at the block 606. In this embodiment, the block 616 can include the controller using the session ID to retrieve the mapping, and to determine the previous target. In one embodiment, the process 602 includes storing a mapping between a session ID and a client certificate, and the target is determined from the client certificate. In this embodiment, the block 616 includes using the session ID to retrieve the mapping, and then identifying the target based on the certificate.
Flow then proceeds to the block 618, where the client and the controller exchange application data. As discussed above, in one embodiment, a session ID is selected that identifies the target. In this embodiment, at the block 616, the target can be identified from the session ID, without having stored mappings.
The actions at blocks 610-618 can be repeated a number of times, each time resulting in the determination of the same target as determined at the block 606. During a series of persistent transactions between a client and a target, the process can proceed through either block 614 or 616, resulting in various combinations of determination techniques.
In one embodiment, at the decision block 612, if neither the client certificate nor the session ID are available, flow can proceed to another determination block (not shown), where the controller determines the previous target based on a third type of identifying data. For example, the IP address, the combination of IP address and port number of the client, or other information can serve to identify the client and to connect the packet with a prior client certificate, in order to determine the previous target. If a new SSL session is initiated within an existing SSL session, the handshake at block 610 may be performed within the existing SSL session. In this situation, the TCP connection underlying the SSL session may be used to connect the packet with the prior client certificate and identify the previous target.
In one embodiment of the invention, the process 602 includes storing information that maps the client IP address and port number with the target determined at the block 606. In this embodiment, the controller can determine the previous target using the client IP address to retrieve the information specifying the target. In one embodiment, for example, at the block 606, the controller can hash the client certificate, and store the mapping of the hash value, the source IP address plus port number, and the target.
As can be understood by the above discussion, in some embodiments, the process 602 includes receiving at least two identifiers associated with the client, where the identifiers can be a client certificate, a session ID, an IP address plus port number, a TCP connection, HTTP cookie information, or other data. A mapping of the two or more identifiers is stored, for later retrieval to determine the previous target. It is to be noted that some identifiers can be transitory. For example, a TCP connection is only valid for the duration of the TCP connection. It may be useful during this time to identify a client and to determine a target for a client when the client certificate is unavailable.
In one embodiment, at the decision block 612, if the client certificate is not available the controller may elect to not perform persistence on the second handshake. In this embodiment, the controller can determine the target in the same manner as discussed above with reference to the block 606, or use a different target selection mechanism. In this situation, a target that is different from the prior target can be selected.
The above discussion includes different ways in which the client certificate can be used to maintain persistence. These ways include, in addition to using the client certificate, using the session ID, the client IP address plus port number, a TCP connection, or HTTP cookie information, and breaking persistence when the client certificate is not available. It should be noted that the present invention can be employed with any one or any combination of these different techniques, and other load balancing and persistence algorithms not described.
The functions and components of controller 110 (FIG. 1) can have a number of possible architectures. FIGS. 7A-D are block diagrams illustrating some configurations of traffic management systems implementing the functions of the controller 110 in accordance with the invention. Additional configurations can also be employed when practicing the current invention. Each of the components in FIGS. 7A-D can comprise a network device, such as the network device 200 (FIG. 2), and can include a subset of the components illustrated in FIG. 2. Each of the components illustrated in FIGS. 7A-D can comprise a software process, a software thread, a CPU and associated software, a blade, or other combinations of hardware and/or software sub-components.
As illustrated in FIG. 7A, the traffic management system 702 includes an SSL proxy 704 and a persistence engine 706. The SSL proxy 704 receives encrypted messages 708 from client devices, decrypts the messages, and sends OSC messages 710 to the persistence engine. As discussed above, OSC data refers to data that can be plaintext or encrypted data. Implementing OSC data as encrypted data in communication between physical devices provides an additional amount of security. The SSL proxy 704 performs SSL handshakes as discussed above. It can act as an SSL client or an SSL server in any SSL session. The persistence engine can use the decrypted messages, the client certificates, the session IDs, or any combination of these, to perform load balancing and to maintain persistent connections with target servers. The persistence engine 706 sends OSC messages 712 to the target servers. The traffic management system 702 of FIG. 7A corresponds to the controller 104a of FIG. 3A.
FIG. 7B illustrates a configuration of a traffic management 720 having an incoming SSL proxy 722, an outgoing SSL proxy 726, and a persistence engine 724. The incoming SSL proxy 722 receives encrypted messages 728 from client devices, and performs the operations discussed above regarding SSL proxy 704, including sending OSC messages 730 to the persistence engine 724. The persistence engine performs the operations discussed above regarding persistence engine 706, but sends OSC messages 732 to the outgoing SSL proxy 726 instead of directly to the target servers. The outgoing SSL proxy establishes SSL sessions with target servers, encrypts messages, and sends the encrypted messages 734 to the target servers. The load balancing system 720 of FIG. 7B corresponds to the controller 304b of FIG. 3B.
FIG. 7C illustrates a configuration of a load balancing system 740 having an SSL proxy 742 and a persistence engine 744. The SSL proxy 742 receives encrypted messages 746 from client devices, and performs the operations discussed above regarding SSL proxy 704. The SSL proxy 742 sends OSC messages 748 to the persistence engine 744. The persistence engine 744 performs the operations discussed above regarding persistence engine 706, but sends OSC messages 748 to SSL proxy 742. SSL proxy 742 performs SSL handshakes with target servers, encrypts messages, and sends the encrypted messages 752 to the target servers. SSL proxy 742 can also send some or all messages as plaintext messages 750 to any one or more target servers. The determination of when plaintext messages are sent and when encrypted messages are sent by the SSL proxy 742 to the target servers is configurable. The determination can be based on one or more criteria, including the type of message, the content of the message, the target server, and other user-specified criteria. Additionally, persistence engine 744 can send some OSC messages to target servers without going through the SSL proxy 742.
In one variation of FIG. 7C, SSL proxy 742 does not send the message received from the client to the persistence engine 744, but sends the information that the persistence engine 744 uses to perform its actions. Specifically, the SSL proxy 742 sends the client certificate and/or the session ID to the persistence engine. The persistence engine determines the target server and sends the result of this determination back to the SSL proxy 742. The SSL proxy then uses the identification of the target server to send the message to the appropriate target server. In one embodiment, the communication of the persistence information and target server determinations between SSL proxy 742 and persistence engine 744 is performed out of band, through a proprietary network or communication protocol, or by proprietary extensions to standard network protocols. For example, the persistence information can be embedded in the initial SYN packet of a TCP handshake between the SSL proxy 742 and the persistence engine 744. The identification of the target server can then be returned by the persistence engine to the SSL proxy.
FIG. 7D illustrates a configuration of a load balancing system 760 having an SSL proxy 762 and a persistence engine 764. The persistence engine 764 receives encrypted messages 766 from client devices, and forwards the messages (arrow 768) to the SSL proxy 762. SSL proxy 762 performs the operations discussed above regarding SSL proxy 704, sending OSC messages 772 to the persistence engine 764. The persistence engine 724 performs the operations discussed above regarding persistence engine 706. It then sends OSC messages 774 to the target servers. In one variation of FIG. 7D, after processing OSC messages 772, the persistence engine 764 sends the OSC to SSL proxy 762, or to a second SSL proxy (not shown) for reencryption. The reencrypted messages are then sent to the target server, either by the SSL proxy or by the persistence engine. As discussed above, with reference to FIG. 7C, the communication of the persistence information and target server determinations between the SSL proxy 762 and persistence engine 764 can be performed out of band, through a proprietary network or communication protocol, or by proprietary extensions to standard network protocols.
FIG. 8 illustrates a configuration of a load balancing system 802 that includes additional aspects of the invention. The load balancing system 802 of FIG. 8 includes a controller 804 and an SSL proxy 806. The controller 804 includes a persistence engine 808. The controller 804 receives encrypted messages 810 and OSC messages 812 from client devices (not shown). In one embodiment, OSC messages 812 include HTTP messages that include information used for maintaining persistent communications with target servers. The information can include a value that uniquely corresponds to the client device, such that it can be used as a client identifier. The persistence engine 808 uses this information to maintain persistence in accordance with the teachings of the present invention. In one embodiment, the information is included in an HTTP cookie. For example, in one embodiment, when the controller first determines a target server for the client, the persistence engine stores a mapping between the client identifier and the target server. In subsequent messages, the persistence engine determines the target server based on the client identifier and the stored mapping.
As illustrated in the exemplary embodiment of FIG. 8, when the controller 804 receives an encrypted message 810 from a client, it sends the message to the SSL proxy 806, as shown by message 814. The SSL proxy 806 decrypts the message, and sends the message as OSC message 816 back to the controller 804. The SSL proxy 806 also inserts a unique value corresponding to the client in an HTTP cookie, as part of the OSC messages 816 sent to the controller. The unique value can be the client certificate, or an algorithmic derivation of the client certificate, such as a hash of the certificate. In one embodiment, the SSL proxy 806 stores a mapping between each client certificate and a corresponding session ID for the SSL session with the client. This association is available during the SSL handshake session between the SSL proxy 806 and the client device. In subsequent handshakes that include a session ID and not a client certificate, the SSL proxy 806 uses the stored mappings to determine the corresponding client certificate, and stores the same unique value in the HTTP cookie as previously stored in a prior handshake. During a handshake that includes a client certificate and a new session ID, the SSL proxy stores the new association. For example, when an SSL session is resumed, the client can send a session ID and not send the client certificate. When a client begins a new SSL session without resuming a prior session, the SSL proxy receives the client certificate and the new session ID. In this manner, the persistence engine does not need to be concerned with the details of SSL handshakes, and does not need to have a specific knowledge of certificates and session IDs.
The persistence engine 808 receives the OSC messages 816 and processes it in accordance with the teachings of the present invention. The controller 804 sends OSC messages 818 to the target server. In one embodiment, the persistence engine 808 processes the messages 816 by using the unique value in the HTTP cookie as a client identifier, in order to associate the client with a corresponding target server. Techniques for inserting client certificates and/or session IDs in HTTP cookies can also be employed in the various configurations illustrated in FIGS. 7A-D.
In one embodiment, the SSL proxy 806 stores client certificates (or algorithmic derivatives of the certificate) and session IDs in one or more predetermined HTTP headers that the persistence engine, or other component of the controller, recognizes. For example, the predetermined HTTP headers can include header names such as SSLInitialSessionID, SSLCurrentSessionID, SSLClientCertificate, and SSLCLientCertificateHash. In this embodiment, the SSL proxy 806 does not store mappings between the client certificate and the session ID. Instead, the persistence engine (or an associated component) stores the mappings, in order to maintain persistence based on these values.
In the exemplary embodiments illustrated in FIGS. 7A-D and 8, the persistence engine is discussed as performing both the functions of maintaining persistence and of load balancing. In each of these embodiments, and in other embodiments not shown, the functions of persistence and load balancing can be separated among different processes or separate physical devices.
FIG. 9 illustrates a process 902 for using HTTP cookies in combination with client certificates and session IDs to maintain persistence. After the start box, at a box 904, an SSL proxy, such as SSL proxy 806 (FIG. 8), performs an SSL handshake with a client device, such as client 102 or 104 (FIG. 1). The SSL proxy decrypts any handshake messages that require decryption. As discussed above, in some situations, the entire handshake is performed within an SSL session, and all messages are encrypted. In other situations, some, or possibly all, messages are received as OSC messages.
At a box 908, the SSL proxy extracts a client certificate, a session ID, or both, from the handshake. This can include the situation where a session ID is sent from the SSL proxy to the client, in which case the SSL proxy is originating the session ID.
At a box 910, a mapping between the client certificate and the session ID is stored by the SSL proxy. This action is performed if the handshake involves both values, and the mapping is not already stored. In handshakes where only a certificate or only a session ID is transferred, this action is not performed.
At a box 912, the SSL proxy inserts an HTTP cookie with a client identifier in an HTTP message to be sent to the controller. As discussed above, the client identifier can be the client certificate or an algorithmic derivative of the client certificate. If the handshake includes receiving the session ID and not the client certificate from the client, the SSL proxy may need to retrieve the client certificate (or client identifier) from a previously stored mapping.
At a box 914, the SSL proxy sends a message to the controller 804 (FIG. 8), the message including the HTTP cookie. At a block 916, the controller (and more specifically, the persistence engine 808) performs persistence actions based on the client identifier in the HTTP cookie. The persistence actions may include using the client identifier to determine the target server corresponding to the client, as well as other persistence actions described herein.
As discussed above in the text accompanying FIG. 8, in one embodiment, at box 910, the action of storing a mapping between the client certificate and the session ID is performed by the persistence engine, and not the SSL proxy. In this embodiment, at the box 912, the SSL proxy inserts the client certificate, the session ID, or both, in an HTTP cookie or in designated HTTP headers.
In one embodiment, the process 902 is performed without using the session ID to maintain persistence. The source IP address and port number, or other information, may be used to handle situations where the client certificate is unavailable, as discussed above. In one embodiment, if the client certificate is unavailable, persistence is not maintained, and the client is connected with a different target server.
FIG. 10 illustrates a configuration of a load balancing system 1002 in accordance with an embodiment of the present invention. As illustrated in FIG. 10, a router 1004 receives messages from one or more client devices (not shown). The load balancing system 1002 includes two controllers 1006 and 1008, and three SSL proxies 1010-1014. The router 1004 forwards each message from the client devices to one of the controllers 1006-1008. In one embodiment, one controller is selected as the active controller, and the second controller is selected as the backup controller. In normal operation, the router directs all messages received from client devices to the active controller. If the active controller fails, or another problem is detected, the backup controller takes on the role of active controller, and the router directs subsequent messages to the backup (now active) controller. In one embodiment, both controllers are active controllers.
When a controller 1006 or 1008 receives a client message, if the message is part of a connection handled by an SSL proxy, the message is forwarded to one of the SSL proxies 1010-1014. The controller may use a load balancing algorithm to determine which of the SSL proxies to direct messages to. The SSL proxy receiving the message processes the message. If the message requires forwarding to a target server 1016-1020, the SSL proxy sends the decrypted message back to the controller, which then forwards the message to the appropriate target server. The controller performs load balancing to determine the proper target server the first time. For subsequent messages, the controller maintains persistence by using the client certificate and/or session ID, as previously discussed.
As discussed with reference to FIGS. 8 and 9, the SSL proxies 1010-1014 can send the client certificate (or an algorithmic derivation of the certificate) and/or the session ID to the controller using an HTTP cookie or a designated HTTP header.
In one embodiment, the controller 1006 or 1008 sends messages to one of the SSL proxies 1010-1014 to be reencrypted and forwarded to the target server. The SSL proxy used for a server side SSL session does not need to be the same SSL proxy used for the corresponding client side SSL session.
The above specification, examples and data provide a complete description of the manufacture and use of the composition of the invention. Since many embodiments of the invention can be made without departing from the spirit or scope of the invention, the invention resides in the claims hereinafter appended.

## Claims

1. A method of maintaining a communication between a client device and a target on a network having a plurality of targets, the method comprising:
(a) receiving, from the client device, a first message including a first client security certificate associated with the client device, wherein the first message comprises a Secure Socket Layer (SSL) handshake message;
(b) determining the target for the client device from the plurality of targets;
(c) receiving, from the client device, a second message including a second client security certificate associated with the client device, the second client security certificate being equivalent to the first client security certificate, wherein the second message comprises another SSL handshake message;
(d) identifying the target for the client device based on the second client security certificate, wherein the second client security certificate includes a public key security certificate;
(e) performing a first secure communication protocol handshake with the client device the first secure communication protocol handshake comprising the first message; and
(f) performing a second secure communication protocol handshake with the client device, the second handshake comprising the second message wherein the first secure communication protocol handshake establishes a first secure communication session the second secure communication protocol handshake establishes a second communication session and wherein the second message is received within the first secure communication session.

2. The method of claim 1, further comprising:
(a) after receiving the first message, receiving at least one data message from the client device;
(b) forwarding the at least one data message to the target;
(c) after receiving the second message, receiving at least one additional data message from the client device; and
(d) forwarding the at least one additional data message from the client device.

3. The method of claim 1, further comprising:
(a) creating a secure communication connection with the target;
(b) receiving at least one data message from the client device;
(c) forwarding the at least one data message to the target using the secure communication connection.

4. The method of claim 1, the determining the target comprising employing a load balancing algorithm to determine the target.

5. The method of claim 1, further comprising sending an identification of the target to a traffic manager by inserting the identification into an HTTP header.

6. The method of claim 1, further comprising sending an identification of the target to a traffic manager by inserting the identification into an HTTP header as an HTTP cookie.

7. The method of claim 1, wherein the first client certificate and the second client certificate are identical.

8. The method of claim 1, further comprising:
(a) receiving, from the client device, a third message comprising identifying data and not including a client security certificate; and
(b) determining the target for the client device based on the identifying data.

9. The method of claim 1, further comprising:
(a) receiving, from the client device, a third message comprising identifying data;
(b) if the identifying data comprises a secure communications session identifier, determining the target for the client device based on the secure communications session identifier; and
(c) if the identifying data comprises a third client certificate, determining the target for the client device based on the third client certificate.

10. A method of facilitating a series of at least two transactions between a client and a server, comprising:
(a) receiving, a first client certificate from the client, the first client security certificate sent by the client as a component of a first transaction with the server, wherein the first client certificate with a Secure Socket Layer (SSL) handshake message;
(b) receiving, a second client security certificate from the client, the second client security certificate sent by the client as a component of a request for a second transaction, wherein the second client certificate is received with another SSL handshake message;
(c) identifying the server based on the second client security certificate, wherein the second client security certificate includes a public key security certificate;
(d) performing a first secure communication protocol handshake with the client the first secure communication protocol handshake comprising the first message;
(e) performing a second secure communication protocol handshake with the client the second handshake comprising the second message wherein the first secure communication protocol handshake establishes a first secure communication session the second secure communication protocol handshake establishes a second communication session and wherein the second message is received within the first secure communication session; and
(f) transmitting data to facilitate a completion of the second transaction with the server.

11. The method of claim 10, the transmitting data comprising transmitting an identity of the server to a network device.

12. The method of claim 10, the transmitting data comprising transmitting at least a portion of the request for a second transaction to the server.

13. A method of load balancing access by a client to a resource provided by at least one of a plurality of server, comprising:
(a) performing a first security handshake with the client at a first network device, the security handshake comprising receiving a first client certificate from the client, wherein the first security handshake comprises a Secure Socket Layer (SSL) handshake;
(b) determining a target server for providing the resource from the plurality of target servers;
(c) performing a second security handshake with the client at a second network device, the second security handshake comprising receiving identifying data, wherein the second security handshake comprises a Secure Socket Layer (SSL) handshake;
(d) if the identifying data comprises a second client certificate and not a session ID, identifying the target ser based on the second client certificate, wherein the second client certificate includes a public key security certificate;
(e) if the identifying data comprises a session ID and not a second client certificate, identifying the target server based on the session ID”,
(f) performing a first secure communication protocol handshake with the client the first secure communication protocol handshake comprising the first message;
(g) performing a second secure communication protocol handshake with the client the second handshake comprising the second message wherein the first secure communication protocol handshake establishes a first secure communication session, the second secure communication protocol handshake establishes a second communication session and wherein the second message is received within the first secure communication session.

14. The method of claim 13, further comprising if the identifying data does not include the session ID and does not include the second client certificate, identifying the target server based on the identifying data.

15. The method of claim 13, further comprising if the identifying data does not include the session ID and does not include the second client certificate, identifying the target server based on a client IP address.

16. The method of claim 13, further comprising if the identifying data does not include the session ID and does not include the second client certificate, identifying the target server based on a TCP connection with the client.

17. The method of claim 13, further comprising:
(a) storing data indicating a mapping between the client certificate and the session ID; and
(b) identifying the target server based on the stored data.

18. The method of claim 13, wherein the first secure communication protocol handshake establishes a secure communication session, and wherein the second secure communication protocol handshake resumes or duplicates the secure communication session.

19. A network device for maintaining communication between a client device and a target on a network having a plurality of targets, comprising:
a transceiver for sending and receiving data over the network; and
a processor operable to execute an action with at least one of a plurality of modules, including:
a first module to receive client messages from a plurality of clients and distribute the client messages among a plurality of servers;
a second module to perform a first security handshake with one of the plurality of clients, the first security handshake including a first identifying data comprising a first client certificate, wherein the first security handshake is a Secure Socket Layer (SSL) handshake;
a third module to associate the one of the plurality of clients with a target server;
a fourth module to perform a second security handshake with the one of the plurality of clients, wherein the second security handshake includes a second identifying data comprising a second client certificate, wherein the second security handshake is a Secure Socket Layer (SSL) and the first security handshake establishes a first secure communication session, the second security handshake establishes a second secure communication session, and wherein the second security handshake is performed within the first secure communication session; and
a fifth module to identify the target server based on the second client certificate, wherein the second client certificate includes a public key security certificate.

20. The network device of claim 19, wherein the plurality of modules further include:
a sixth module to perform a third security handshake with the one of the plurality of clients, wherein the third security handshake includes a third identifying data comprising at least one of a third client certificate and a session identifier; and
a seventh module to identify the target server based on the third client certificate if the identifying data does not include the session identifier and identifying the target server based on the session identifier if the identifying data does not include the third client certificate.

21. The network device of claim 20, wherein the first secure security handshake establishes a secure communication session, and wherein the third security handshake resumes or duplicates the secure communication session.

22. A network device for maintaining communication between a client device and a target on a network having a plurality of targets, comprising:
a transceiver for sending and receiving data over the network; and
a processor operable to execute an action with at least one of a plurality of modules, including:
a first module to receive a first client certificate associated with a client, wherein the first client certificate is received with a Secure Socket Layer (SSL) handshake message;
a second module to associate the first client certificate with a target server;
a third module to receive a second client certificate associated with the client, wherein the second client certificate is received with a Secure Socket Layer (SSL) handshake message, and the first security handshake establishes a first secure communication session, the second security handshake establishes a second secure communication session, and wherein the second security handshake is performed within the first secure communication session; and
a fourth module to determine the target server based on the second client certificate, wherein the second client certificate includes a public key security certificate.

23. The network device of claim 22, wherein the plurality of modules further include:
a fifth module to receive a secure communications session identifier;
a sixth module to store a mapping between the first client certificate and the secure communications session identifier; and
a seventh module to determine the target server based on the secure communications session identifier and the mapping between the first client certificate and the secure communications session identifier.

24. A computer-readable medium having a plurality of computer-executable modules for performing a method of actions comprising:
(a) a first module for performing a first secure communications handshake with a client device, the first secure communications handshake comprising receiving a first client security certificate associated with client device;
(b) a second module for determining a target server for the client device from a plurality of servers;
(c) a third module for performing a second secure communications handshake with the client device, the second handshake comprising receiving a second client security certificate associated with the client device, wherein the first secure communications handshake establishes a first secure communication session, the second secure communications handshake establishes a second communication session, and wherein the second message is received within the first secure communication session
(d) a fourth module for identifying the target server based on the second client security certificate, wherein the second client security certificate includes a public key security certificate, and
(e) a fifth module for forwarding an application data message between the client device and the identified target.

25. The computer-readable medium of claim 24, the plurality of modules further comprising:
(a) a fifth module for receiving, from the client device, a secure communications session identifier; and
(b) a sixth module for identifying the target server based on the secure communications session identifier.

26. A method of load balancing access by a client to a resource provided by at least one of a plurality of targets, the method comprising:
(a) receiving, from the client, a first identifier of a first type;
(b) receiving, from the client, a second identifier of a second type, wherein the second type is a public key security certificate type of identifier, wherein the receiving the first identifier comprises performing a first secure communication protocol handshake, that receiving the second identifier comprises performing a second secure communication protocol handshake within the first secure communication session;
(c) determining a target for providing the resource from the plurality of targets;
(d) storing a mapping of the first identifier and the second identifier;
(e) receiving a message from the client, the message comprising a third identifier;
(f) if the third identifier is the first type identifier, using the first identifier to identify the target; and
(g) if the third identifier is the second type of identifier, using the third identifier and the mapping of the first identifier and the second identifier to identify the target.

27. The method of claim 26, wherein exactly one of the first type of identifier and the second type of identifier, is a client certificate type of identifier.

28. The method of claim 27, wherein exactly one of the first type of identifier and the second type of identifier, is a secure session ID type of identifier.

29. The method of claim 27, wherein exactly one of the first type of identifier and the second type of identifier, is a TCP connection type of identifier.

30. A method of maintaining a communication with a sever on a network having a plurality of servers, and at least two client devices, including a first client device and a second client device, the method comprising:
(a) performing a first security handshake with the first client device, the first security handshake comprising receiving a first client certificate from the client;
(b) determining a target server from the plurality of servers, based on a load balancing algorithm;
(c) performing a second security handshake with the second client device, the second security handshake comprising receiving a second client certificate equivalent to the first client certificate, from the second client;
(d) determining the target server based on the second client security certificate, wherein the second client security certificate includes a public key security certificate;
(e) performing a first secure communication protocol handshake with the client device the first secure communication protocol handshake comprising the first message; and
(f) performing a second secure communication protocol handshake with the client device, the second handshake comprising the second message, wherein the first secure communication protocol handshake establishes a first secure communication session, the second secure communication protocol handshake establishes a second communication session, and wherein the second message is received within the first secure communication session.

31. The method of claim 30, further comprising transferring the first client certificate from the first client device to the second client device, and wherein the second client certificate is the same as the first client certificate.