Title of Invention

"A METHOD FOR MAINTAINING TRANSACTION INTEGRITY ACROSS MULTIPLE REMOTE ACCESS SERVERS"

Abstract A method and system for providing failover redundancy of a gateway for a remote access solution between a client and a back-end server are disclosed. The method involves: executing, by a first gateway designated as a primary gateway (40) between a client (10) and a back-end server (80), a first application instance (44) for an active session (42) of the application; executing, by a second gateway designated as a failover gateway (50, 60, 70) between the client (10) and the back-end server (80), a second application instance (54, 64, 74) for a failover session (52, 62, 72) of the application; forwarding; initiating; intercepting; receiving; detecting a failure of the first gateway (40); and (j) disabling, on the second gateway (50, 60, 70), the filter (58, 68, 78) in response to the detection.
Full Text

Related Application
This application claims the benefit of U.S. Provisional Patent Application Number 60/601,431, entitled "System And Method For Assuring Redundancy In Remote Access Solutions", filed August 13,2004.
Field of the Invention
The illustrative embodiment of the present invention relates generally to remote access servers, and more particularly to a system and method for mamtaining transaction integrity in a remote access solution during failure.
Background
Remote access solutions enable workers away from a company to securely access the company network. Through the use of IPSec VPNs or SSL VPNs remote users are able to access a company network in a secure manner. Access from a client device may be routed through one or more gateway servers which are utilized in maintaining the remote access session. With conventional remote access solutions, failure in a gateway server mamtaining the remote access session results in a terminated session and lost data.
To address the issue of gateway server failure, a number of different conventional techniques have been applied in an attempt to ensure redundancy and full availability of system resources in the event of hardware or software failure. In an active/passive server arrangement an active server hosts a number of executing processes and applications. The active server may be hosting an IPSec VPN-based session or an SSL based session. One or more other servers are designated as backup or "failover" servers. The failover servers include the capability of executing the same applications and processes that are executing on the active server but the failover

server(s) do not execute the applications and processes until notified of a problem with the active server. The failover servers are known as "passive" servers in this arrangement because they may be thought of as quietly waiting to execute the applications and processes that are being executed on the active server while the backup server is operating in failover mode. Once notified of a problem with the active server, one of the failover servers is selected as the new active server, receives the last saved state/session information from the formerly "active" server and proceeds to execute in the manner in which the previous active server was executing prior to the detected failure/problem. Unfortunately, the active/passive arrangement results in a loss of data during the transition from the first active server to the newly designated active server.
It will be appreciated that the failover servers may be located on either the same or a separate physical node. An implementation that includes a failover server on the same physical node runs the risk that the failure causing the failover is associated with a physical node element that will also impact the failover server. Locating the failover server on a separate physical node that includes separate physical resources (e.g. memory, disk arrays, motherboard, etc.) lowers the risk of a single physical element causing both the active and failover servers to fail but increases the cost of the overall system in both hardware acquisition and management.
Another technique to provide redundancy amongst servers is to arrange servers in an active/active arrangement In an active/active arrangement, both the active and passive failover servers are executing the same set of applications and processes. When the first active server goes down, the second active server allocates resources to those application instances and processes that were previously being handled by the failed server.
Unfortunately, neither the active/passive nor the active/active failover server arrangement lend themselves to preserving session state for a remote access session. Neither conventional failover implementation allows a remote session state to be mirrored in a failover server such that the failover server may be transitioned to without terminating the existing session and losing session data. It would be desirable to be able

to preserve an existing remote session and its session data in the event of a failure affecting an active server hosting the remote session.
Brief Summary
The illustrative embodiment of the present invention allows a remote session state to be synchronized between a primary gateway server and active failover servers. Incoming data sent from the client device to the primary gateway server hosting the remote session is transmitted to the active failover servers which are hosting mirror sessions. Acknowledgements of the receipt of the incoming data are not sent back to the client device from the primary gateway device until the distribution of the data to the failover servers has been confirmed. Requests to application resources from the remote session on the primary gateway server are allowed while those from the mirror sessions running on the failover servers are intercepted and discarded so as to prevent application resource conflicts. Data received in response to a request from the primary gateway server to an application resource running on back-end servers is similarly mirrored to the failover servers before being transmitted to the client device. The response is forwarded to the client device from the primary gateway server while being intercepted from the mirror sessions running on the failover servers. In the event of a failure affecting the primary gateway server, one of the failover servers hosting the mirrored sessions is elected as the primary active server and its permissions are changed to allow the newly elected primary gateway to communicate with the client device and with the application resources.
In one aspect of the present invention, a system for providing failover redundancy in a remote access solution includes at least one application resource on a back-end server. The system further includes multiple gateway servers. One of the multiple gateway servers is designated as a primary gateway server while the other servers are designated as failover gateway servers. Each of the multiple gateway servers hosts a session with at least one executing application instance for the same application with each of the sessions on the failover gateway servers being maintained in the same state as the session on the primary gateway server. The primary gateway server is the only one of the gateway servers that is allowed to communicate with the application

resource(s). The system further includes a client device that is in communication over a VPN with the primary gateway server. The client device receives output of the application instance executing in the session on the primary gateway server over the VPN. The client device also sends input to the primary gateway server over the VPN. The received output is displayed on a viewer by the client device.
In another aspect of the present invention, a method for providing failover redundancy in a remote access solution, includes the step of providing at least one application resource on a back-end server. The method further includes the step of designating one of multiple gateway servers as a primary gateway server while designating the other servers as failover gateway servers. Each of the gateway servers hosts a session with at least one executing application instance for the same application. The primary gateway server is the only one of the multiple gateway servers that is allowed to communicate with the at least one application resource. The method further includes the step of maintaining the sessions on the failover gateway servers in the same state as the session on the primary gateway server. Additionally, the method includes the step of receiving at a client device in communication over a VPN with the primary gateway server the output of the at least one application instance executing in the session on the primary gateway server with the received output being displayed on a viewer by the client device.
Brief Description of the Accompanying Drawings
The invention is pointed out with particularity in the appended claims. The advantages of the invention described above, as well as further advantages of the invention, may be better understood by reference to the following description taken in conjunction with the accompanying drawings, in which:
Figure 1 depicts an environment suitable for practicing the illustrative embodiment of the present invention utilizing a front-end server in front of multiple gateway servers;

Figure 2A is a block diagram depicting a typical computer useful in the present invention;
Figure 2B depicts an embodiment of the computer system in which the processor communicates directly with main memory via a memory port;
Figure 3 is a flowchart of the sequence of steps followed by the illustrative embodiment of the present invention to mirror data directed to the active session on the primary gateway server to the failover sessions on the failover servers;
Figure 4 is a flowchart of the sequence of steps followed by the illustrative embodiment of the present invention to request data from an application resource and mirror the response to the failover sessions;
Figure 5 depicts an alternate embodiment in which application screen buffers are kept synchronized for a remote session requested by a thin client or kiosk; and
Figure 6 is a flowchart of the sequence of steps followed by the illustrative embodiment to detect failure in a primary gateway server and transition to a new primary gateway server selected from the failover servers.
Detailed Description
The illustrative embodiment of the present invention provides the ability to mirror session state from an active primary gateway server to an active failover server. By copying all of the received input from the client and all responses received from application resources, the failover sessions are able to be maintained in the same state as the session on the primary gateway server with which the client device is communicating. In the event of failure, the existing session can be transitioned to a failover server (which becomes the primary gateway server) without disrupting the session and with minimal loss of data.
Figure 1 depicts an environment suitable for practicing the illustrative embodiment of the present invention. A client 10 that includes an agent 12 communicates over a network 20 with a front end server 30. The front end server 30 includes a distribution process 32. The distribution process 32 copies and distributes data received from the client device to an active remote session 42 on a primary gateway server 40 and mirror failover sessions 52, 62 and 72 on failover servers 50, 60 and 70.

Application instances 44, 54,64 and 74 running on the respective active and failover sessions 42, 52,62 and 72 may request data from an application resource 82 hosted by a back end server 80. Responses from the application resource 82 to an executing application instance's request for data are returned to the distribution process 32 on the front-end server 30 for distribution to the active session 42 and failover sessions 52, 62 and 72.
Referring now to Mgure 1 in more detail, the client 10 may be communicating
over the network 20 by establishing an IPSEC VPN or an SSL VPN to a remote session
(active session 42) established on the primary gateway server 40. The client may
include a buffer 14 in which the agent 12 buffers a copy of the data sent to the primary
gateway server 40 until receiving an acknowledgement from the primary gateway
server. The network 20 may be the Internet, a local area network (LAN), a wide
area network (WAN), an extranet, an intranet, wireless network, satellite network, or some other type of network capable of allowing the client 10 to communicate with the active session 42 on the primary gateway server 40. The primary gateway server 40, and failover servers 50, 60 and 70 may include Network Address Translation (NAT) tables 46,56,66 and 76 allowing the servers to perform NAT for an IP address assigned to the client 10 during the establishment of the remote session by the primary VPN server. As noted above, active session 42, and failover sessions 52,62 and 72 may include executing application instances 44, 54,64 and 74 which request data from an application resource 82 on a back-end server 80. As will be explained in greater detail below, failover servers 50, 60 and 70 also include filters 58, 68 and 78 which filter and discard requests to the application resource 82 from the failover sessions 52,62, and 72 while the failover servers are acting in failover mode. Responses form the application resource 82 to the request from an executing application instance 44 in active session 42 are routed to the distribution process 32 for distribution to the active session and failover sessions 52,62 and 72. Those skilled in the art will recognize that the location of the distribution process 32 may vary within the scope of the present invention in that it may be located in different network accessible locations other than on the front-end server and still perform the functions described herein.

Still referring to Figure 1, and in more detail, in many embodiments, the client 10, front-end server 30 and the back-end server 80 are provided as personal computers or computer servers, of the sort manufactured by the Hewlett-Packard Corporation of Palo Alto, California or the Dell Corporation of Round Rock, TX. Figures 2A and 2B depict block diagrams of a typical computer 200 useful as the client 10, front-end server 30 and the back-end server 80 in those embodiments. As shown in Figures 2A and 2E, each computer 200 includes a central processing unit 202, and a main memory unit 204. Each computer 200 may also include other optional elements, such as one or more input/output devices 230.a-230n (generally referred to using reference numeral 230), and a cache memory 240 in communication with the central processing unit 202.
The central processing unit 202 is any logic circuitry that responds to and processes instructions fetched from the main memory unit 204. In many embodiments, the central processing unit is provided by a microprocessor unit, such as: the 8088, the 80286, the 80386, the 80486, the Pentium, Pentium Pro, the Pentium n, the Celeron, or the Xeon processor, all of which are manufactured by Intel Corporation of Mountain View, California; the 68000, the 68010, the 68020, the 68030, the 68040, the PowerPC 601, the PowerPC604, the PowerPC604e, the MPC603e, the MPC603ei, the MPC603ev, the MPC603r, the MPC603p, the MPC740, the MPC745, the MPC750, the MPC755, the MPC7400, the MPC7410, the MPC7441, the MPC7445, the MPC7447, the MPC7450, the MPC7451, the MPC7455, the MPC7457 processor, all of which are manufactured by Motorola Corporation of Schaumburg, Illinois; the Crusoe TM5800, the Crusoe TM5600, the Crusoe TM5500, the Crusoe TM5400, the Efficeon TM8600, the Efficeon TM8300, or the Efficeon TM8620 processor, manufactured by Transmeta Corporation of Santa Clara, California; the RS/6000 processor, the RS64, the RS 64 n, the P2SC, the POWER3, the RS64 IE, the POWER3-II, the RS 64 IV, the POWER4, the POWER4+, the POWER5, or the POWER6 processor, all of which are manufactured by International Business Machines of White Plains, New York; or the AMD Opteron, the AMD Athalon 64 FX, the AMD Athalon, or the AMD Duron processor, manufactured by Advanced Micro Devices of Sunnyvale, California.
In the embodiment shown in Figure 2A, the processor 202 communicates with main memory 204 via a system bus 220 (described in more detail below). Figure 2B depicts an embodiment of a computer system 200 in which the processor communicates

directly with main memory 204 via a memory port. For example, in Figure 2B the main memory 204 may be DRDRAM.
Figures 2A and 2B depict embodiments in which the main processor 202 communicates directly with cache memory 240 via a secondary bus, sometimes referred to as a "backside" bus. hi other embodiments, the main processor 202 communicates with cache memory 240 using the system bus 220. Cache memory 240 typically has a faster response time than main memory 204 and is typically provided by SRAM, BSRAM,orEDRAM.
In the embodiment shown in Figure 2A, the processor 202 communicates with various I/O devices 230 via a local system bus 220, Various buses may be used to connect the central processing unit 202 to the I/O devices 230, including a VESA VL bus, an ISA bus, an EISA bus, a MicroChannel Architecture (MCA) bus, a PCI bus, a PCI-X bus, a PCI-Express bus, or a NuBus. For embodiments in which the I/O device is a video display, the processor 202 may use an Advanced Graphics Port (AGP) to communicate with the display. Figure 2B depicts an embodiment of a computer system 200 in which the main processor 202 communicates directly with I/O device 230b via HyperTransport, Rapid I/O, or InfiniBand. Figure 2B also depicts an embodiment in which local buses and direct communication are mixed: the processor 202 communicates with I/O device 230a using a local interconnect bus while communicating with I/O device 230b directly.
A wide variety of I/O devices 230 may be present in the computer system 200. Input devices include keyboards, mice, trackpads, trackballs, microphones, and drawing tablets. Output devices include video displays, speakers, inkjet printers, laser printers, and dye-sublimation printers. An I/O device may also provide mass storage for the computer system 200 such as a hard disk drive, a floppy disk drive for receiving floppy disks such as 3.5-inch, 5.25-inch disks or ZIP disks, a CD-ROM drive, a CD-R/RW drive, a DVD-ROM drive, tape drives of various formats, and USB storage devices such as the USB Flash Drive line of devices manufactured by Twintech Industry, Inc. of Los Alamitos, California.

In further embodiments, an I/O device 230 may be a bridge between the system bus 220 and an external communication bus, such as a USB bus, an Apple Desktop Bus, an RS-232 serial connection, a SCSI bus, a FireWire bus, a FireWire 800 bus, an Ethernet bus, an AppleTalk bus, a Gigabit Ethernet bus, an Asynchronous Transfer Mode bus, a HIPPI bus, a Super EOPPI bus, a SerialPlus bus, a SCI/LAMP bus, a FibreChannel bus, or a Serial Attached small computer system interface bus.
General-purpose desktop computers of the sort depicted in Figures 2A and 2B typically operate under the control of operating systems, which control scheduling of tasks and access to system resources. Typical operating systems include: MICROSOFT WINDOWS, manufactured by Microsoft Corp. of Redmond, Washington; MacOS, manufactured by Apple Computer of Cupertino, California; OS/2, manufactured by International Business Machines of Armonk, New York; and Linux, a freely-available operating system distributed by Caldera Corp. of Salt Lake City, Utah, among others.
For embodiments in which the client 10 is a mobile device, the client device may be a JAVA-enabled cellular telephone, such as the i50sx, i55sr, i58sr, i85s, i88s, i90c, i95cl, or the iml 1000, all of which are manufactured by Motorola Corp. of Schaumburg, Illinois, the 6035 or the 7135, manufactured by Kyocera of Kyoto, Japan, or the i300 or 1330, manufactured by Samsung Electronics Co., Ltd., of Seoul, Korea. In other embodiments in which the client 10 is mobile, it may be a personal digital assistant (PDA) operating under control of the PalmOS operating system, such as the Tungsten W, the VII the VIIx, the i705, all of which are manufactured by palmOne, Inc. of Milpitas, California. In further embodiments, the client device 10 may be a personal digital assistant (PDA) operating under control of the PocketPC operating system, such as the iPAQ 4155, iPAQ 5555, iPAQ 1945, iPAQ 2215, and iPAQ 4255, all of which manufactured by Hewlett-Packard Corporation of Palo Alto, California, the ViewSonic V36, manufactured by ViewSonic of Walnut, California, or the Toshiba PocketPC e405, manufactured by Toshiba America, Inc. of New York, New York, hi still other embodiments the client device is a combination PDA/telephone device such as the Treo 180, Treo 270 or Treo 600, all of which are manufactured by palmOne, Inc. of Milpitas, California, In still further embodiment, the client device 20 is a cellular telephone that operates under control of the PocketPC operating system, such as the MPx200, manufactured by Motorola Corp.

The functions performed by the components depicted in the architecture displayed in Figure 1 may be further explained with reference to Figure 3. Figure 3 is a flowchart of the sequence of steps followed by the present invention to mirror data directed to the active session on the primary gateway server to the failover sessions on the failover servers. Following the establishment of the initial remote active session 42 on the primary gateway server 40(following authentication of the client 10) and the establishment of the corresponding failover sessions 52, 62 and 72 on the failover servers 50, 60 and 70, the front-end server 30 receives input from the client directed to the active session (step 300). The distribution process 32 on the front-end server 30 copies and distributes the input data to the active session 42 and failover sessions 52, 62 and 72 (step 302). The application instances in the active 42 and failover sessions 52, 62 and 72 then process the received data (step 304).
The distribution process 32 then queries the active and failover sessions 42, 52, 62 and 72 to determine if the session states are synchronized (step 306). The verification of synchronization is necessary due to possible variances in processing speed amongst the servers and latency delays in the network. In alternate implementations, the primary gateway server 40 and the failover servers 40, 50 and 60 are configured to report their session state to the distribution process 32 without first being queried. In another implementation, a different process other than the distribution process has the responsibility of verifying the synchronization of the states of the sessions 42,52,62 and 72. If the session states are determined not to be synchronized (step 307), a delay is implemented pending a further query from the distribution process to determine the synchronization status (step 306). If the session states are synchronized (step 307), the results of the processing performed by the application instance 44 in the active session 42 on the primary gateway server 40 are reported to the client (step 308). Attempts by application instances in the failover sessions 52,62 and 72 are filtered by the respective filters 46, 56 and 66 on the network stack and the packets discarded.
A similar process is performed to keep the active and failover session states synchronized during a request by an application instance executing in a session for an application resource. Figure 4 is a flowchart of the sequence of steps followed by the illustrative embodiment of the present invention to request data from an application

resource and mirror the response to the failover sessions. The sequence begins when the application instance 44 in the active session 42 (and the corresponding application instances 54, 64 and 74 in the failover sessions 52, 62. and 72) identify a needed application resource (step 320). The application instances 44, 54, 64 and 74 from all of the sessions then request the application resource 82 from the back-end server 80 (step 322). The requests originating from the application instances 54, 64 and 74 in the failover sessions 52, 62 and 72 are filtered by filters 58, 68 and 78 on the network stack of the respective failover servers 50, 60 and 70. The filtered packets are discarded (step 324). The request from the active session 42 is forwarded to the application resource 82 on the back-end server 80 (step 326). The response to the request is routed to the distribution process 32 on the front-end server (step 328). In one implementation, the response is sent to the primary gateway server 40 which is hosting the active session 42 first and is forwarded to the distribution process 32. In another implementation, a separate distribution process different from the one used to accept input data from the client maybe used to distribute application resource responses.
Continuing with Figure 4, following the receipt of the response from the application resource, the distribution process forwards the response data to the active and failover sessions 42, 52, 62 and 72 (step 330). The application instances 44, 54, 64 and 74 in the active session 42 and failover sessions 52,62 and 72 then process the resource data (step 332). As with the data received from the client, a query is made to determine if the session states are synchronized (step 333). If the states are not synchronized the query is repeated until an affirmative response is received. Once the session states are synchronized, the application instance in the active session 42 communicates the results of its data processing to the client 10. The application instances 54, 64 and 74 on the failover servers also attempt to communicate their results to the client 10, but the packets are intercepted and discarded by the network filters 58, 68 and 78 on the respective failover servers 50,60 and 70 (step 334).
In another aspect of the illustrative embodiment, the present invention may also be implemented in a "thin-client" or kiosk architecture where all of the processing is taking place on the server and only screen data is being pushed down to the client 10 from the remote session 42. Figure 5 depicts an alternate embodiment in which

application screen buffers are kept synchronized for a remote session requested from a thin client or kiosk The client 400 may be a thin client with limited processing power such as a PDA or cell-phone or may be a publicly available kiosk terminal with a display and input device. The client establishes the remote session over the network 402 to a primary gateway server 410. The connection may be use RDP (Remote Display Protocol) from Microsoft Corporation or ICA from Citrix Systems, Inc. of Fort Lauderdale, Florida. The session may be established when the client 400 logs in via a secure web URL exposed by the primary gateway server. The primary gateway server accepts the connection request and establishes the remote active session 412. The illustrative embodiment also establishes failover sessions 422 and 432 on failover servers 420 and 430. The active session 412 and failover sessions 422 and 432 are similarly provisioned and include executing application instances 414, 424- and 434 respectively. Each of the application instances has an associated screen buffer 416,426 and 436 respectively. A distribution process 418 on the primary gateway server copies and distributes input data received from the client 400 to each of the sessions 412,422 and 432 in the manner set forth above. In an alternate implementation, the distribution process 418 may be located on a front end server. The application instances 414, 424 and 434 may request an application resource 442 from a back-end server 440 with the request from the primary gateway server being transmitted and the requests from the failover servers 420 and 430 being intercepted and discarded. As before, following the processing performed by the executing application instances 414,424 and 434, a response to the client 400 is delayed until all of the screen buffers 416,426 and 436 are in the same state. The contents (or changed contents when using optimization techniques) of the screen buffer 416 on the primary gateway server are then pushed down over the connection to the client 400. Attempts by the application instances 424 and 434 to push the contents of their screen buffers 426 and 436 to the client 400 are intercepted and the packets discarded.
The-synchronization of session states performed by the present invention enables the transition of a remote session from a failed gateway server to a replacement gateway server without terminating a remote session and ensures a minimal loss of data. An agent 12 buffers a copy of the data sent from the client 10 (if a reliable protocol is being used such as TCP). The present invention does not return an acknowledgement of the

receipt of data from the client until all of the session states have been synchronized. The agent 10 therefore buffers a copy of any sent data until the acknowledgement is received from the primary gateway server and then discards the data. In the event of any subsequent failure of the primary gateway server 40, the data sent by the client to the primary gateway server is present in one of the failover sessions. Similarly, the data received from the application resource is also distributed to both the active and failover sessions so that they remain synchronized. If an acknowledgement is not received from the primary gateway server, the buffered data is resent to the newly appointed primary gateway server.
Additionally, when the remote connection is initially established, the IP address assigned to the client 10 is distributed not just to the primary gateway server 40 which in one implementation is performing NAT for the client, but also to the failover servers 50, 60 and 70. When a failure of the primary gateway server 40 is detected, one of the failover servers 50, 60 or 70 is selected as the primary gateway server and its attributes are changed to allow it to perform that role. The filter 58,68 or 78 present on the network stack that prevents the failover servers 50,60 and 70 from communicating with the client 10 and application resource 82 is disabled for the newly designated primary gateway server. The newly selected primary gateway server also intercepts any communications received from the client or directed to the client using the previously sent IF address and the NAT table 46, 56, 66 and 76 on the newly selected primary gateway. The combination of a mirrored session state and client IP awareness by the failover servers prior to the primary gateway server failing thus allows a smooth transition with minimal data loss and without the need to reestablish a new remote session.
The detection of a failure of the primary gateway server 40 may happen in a number of different ways. The method used to detect the server failure may be dependent upon the manner in which the servers are deployed. For example, the primary and gateway servers may be arranged as nodes in a clustered computer system. Nodes in a clustered computer system frequently send each other "heartbeat" signals (which are also referred to as "responsive" or "activation" signals) over private communication channels. The heartbeat signals/tokens indicate whether the nodes are active and responsive to other nodes in the clustered computer system. The heartbeat

signals are sent periodically by each of the nodes so that if one or more nodes do not receive the heartbeat signal from another node within a specified period of time., a node failure can be suspected.
The final determination of a gateway server failure may be dictated by a failover policy controlling the gateway servers. The failover policy indicates under what circumstances the primary gateway server may be considered to have failed. For example, in the clustered computing system discussed above, in implementations which have multiple failover servers, the policy may require at least two failover servers to have not received the heartbeat token from the primary gateway server within the specified time period. Alternatively, the failover policy may require all of the failover nodes to have not received the heartbeat token from the primary gateway server. Those skilled in the art will recognize that a number of other techniques may be used alone or in combination to detect gateway server failure such as pinging the primary gateway server to determine its health. The pinging may be performed following the lack of the receipt of the heartbeat token in order to verify the failure of the primary gateway server.
Once a failure of the primary gateway server has been detected, a number of different methods of selecting a new primary gateway server from the failover servers may be employed. The server may be selected based on name or through a mathematical operation performed on a server identifier. Alternatively, the selection may be based on the server processing attributes (speed, memory, etc.) or the next primary gateway server may have been previously designated by a system administrator. Other possibilities will occur to those skilled in the art.
Figure 6 depicts a sequence of steps followed by the present invention to handle primary gateway failures. The sequence begins with the primary and failover gateway servers being designated (step 500). The designation of the failover servers activates the filters on the network stack of those servers and disables the NAT tables. When a remote session is established, the IP address assigned to the client is forwarded to the failover servers. The primary gateway server is then queried to determine its health (step 502). If the primary gateway server is determined to be healthy (step 503), the query is repeated at set intervals. If the primary gateway server is not healthy (step 503),

the new primary gateway server is selected from among the failover servers and its attributes changed so that its filter is disabled, it handles communications to and from the client IP and the NAT table on the server is activated (step 504).
The present invention may he provided as one or more computer-readable programs embodied on or in one or more articles of manufacture. The article of manufacture may be a floppy disk, a hard disk, a compact disc, a digital versatile disc, a flash memory card, a PROM, a RAM, a ROM, or a magnetic tape. In general, the computer-readable programs may be implemented in any programming language. Some examples of languages that can be used rnclude.C, C++, C#, or JAVA. The software programs may be stored on or in one or more articles of manufacture as object code.
Since certain changes may be made without departing from the scope of the present invention, it is intended that all matter contained in the above description or shown in the accompanying drawings be interpreted as illustrative and not in a literal sense. Practitioners of the art will realize that the system configurations depicted and described herein are examples of multiple possible system configurations that fall within the scope of the current invention. Likewise, the sequence of steps utilized in the illustrative flowcharts are examples and not the exclusive sequence of steps possible within the scope of the present invention. Similarly, data structures other than the ones mentioned herein may be used to hold data without departing from the scope of the present invention.

WE CLAIM:
1. A method for providing failover redundancy of a gateway for a remote access solution between a client and a back-end server, the method comprising:
(a) executing, by a first gateway designated as a primary gateway (40) between a client (10) and a back-end server (80), a first application instance (44) for an active session (42) of the application;
(b) executing, by a second gateway designated as a failover gateway (50, 60, 70) between the client (10) and the back-end server (80), a second application instance (54, 64, 74) for a failover session (52, 62, 72) of the application;
(c) forwarding, by a distribution process (32) of a front-end server (30), input from the client (10) to the first application instance (44) and the second application instance (54, 64, 74);
(d) initiating, by the first application instance (44) a first request for an application resource (82) from the back-end server (80) in response to the input, and initiating, by the second application instance (54, 64, 74) a second request for the application resource (82) from the back-end server (80) in response to the input;
(e) forwarding, by the first gateway, the first request for the application resource (82) from the first application instance (44) to the back-end server (80);
(f) intercepting, by a filter (58, 68, 78) of the second gateway, the second request for the application resource from the second application instance (54, 64, 74) and discarding the second request instead of forwarding the second request to the back-end server (80);
(g) receiving, by the distribution process (32), a response from the back-end server (80) comprising the application resource for distribution to the first application instance (44) and the second application instance (54, 64, 74) for processing;
(h) intercepting, by the filter (58, 68, 78), a result of the processing by the second application instance (54, 64, 74) and discarding the result instead of forwarding to the client (10);
(i) detecting a failure of the first gateway (40); and

(j) disabling, on the second gateway (50, 60, 70), the filter (58, 68, 78) in response to the detection.
2. The method as claimed in claim 1, wherein step (c) comprises copying the input received from the client (10) and forwarding the copied input to the second application instance (54, 64, 74) so that the failover session (52, 62, 72) in the second gateway (50, 60, 70) is maintained in the same state as the active session (42) on the first gateway (40).
3. The method as claimed in claim 1, wherein step (b) comprises activating, by the second gateway (50, 60, 70), the filter (58, 68, 78) on a network stack in response to designating the second gateway (50, 60, 70) as the failover gateway.
4. The method as claimed in claim 1, wherein step (j) comprises selecting the second gateway (50, 60, 70) to replace the first gateway (40) as the primary gateway based on one of name, an operation performed on an identifier of a gateway, or processing attributes of a gateway.
5. The method as claimed in claim 1, wherein step (i) comprises detecting the failure in the first gateway (40) via sending of periodic heartbeat signals.
6. The method as claimed in claim 1, wherein step (i) comprises determining the failure of the first gateway (40) in accordance with a failover policy.
7. The method as claimed in claim 1, comprising forwarding to the second gateway (50, 60, 70) an Internet Protocol address assigned to the client (10) by the first gateway (40).
8. The method as claimed in claim 7, comprising performing, by the second gateway (50, 60, 70), network address translation for the Internet Protocol address of the client (10) upon designation of the second gateway (50, 60, 70) as the primary gateway.

9. The method as claimed in claim 1, comprising querying, by the distribution
process (32), a state of the active session (42) and the failover session (52, 62, 72) to
determine if session states are synchronized.
10. The method as claimed in claim 1, wherein step (h) comprises the following steps:
receiving, by the distribution process (32), the application resource (82) from the
back-end server (80) in response to the first request;
forwarding, by the distribution process (32), the application resource (82) to the first application instance (44) and the second application instance (54, 64, 74);
and wherein step (j) comprises forwarding, by the second application instance (54, 64, 74), requests from the second application instance (54, 64, 74) to the back-end server (80) in response to the disabled filter.
11. The method as claimed in claim 10, comprising determining, by the distribution process, session states of the active session (42) and the failover session (52, 62, 72) are synchronized, and forwards the response to the client (10) in response to the determination.
12. The method as claimed in claim 10, comprising receiving a change in a screen buffer (416, 426, 436) for the client in response to the request, the change in the screen buffer transmitted via one of a Remote Display Protocol (RDP), Remote Frame Buffer (RFB) protocol or an Independent Computing Architecture (ICA) protocol.
13. The method as claimed in claim 1, comprising, intercepting by the filter (58, 68, 78) of the second gateway, responses from the second application instance (54, 64, 74) of the failover session (52, 62, 72) to the client (10).
14. A system for providing failover redundancy of a gateway for a remote access solution between a client and a back-end server (80), the system comprising:
a first gateway (40) designated as a primary gateway between a client (10) and a back-end server (80) and configured to execute a first application instance (44) for an active session (42) of an application;

a second gateway (50, 60, 70) designated as a failover gateway between the client (10) and the back-end server (80) and configured to execute a second application instance (54, 64, 74) for a failover session (52, 62, 72) of the application, characterized in that the second gateway (50, 60, 70) comprises a filter (58, 68, 78) configured to intercept requests from the second application instance (54, 64, 74) and discard the requests instead of forwarding the requests to the back-end server (80); and
a distribution process (32) of a front-end server (30), being configured to forward input from the client (10) to the first application instance (44) and the second application instance (54, 64, 74) the first application instance (44) is configured to initiate a first request for an application resource (82) from the back-end server (80) in response to the input, and the second application instance (54, 64, 74) is configured to initiate a second request for the application resource (82) from the back-end server (80) in response to the input, the first application instance (44) forwarding the first request for the application resource (82) from the first application instance (44) to the back-end server (80), the distribution process (32) configured to receive a response from the back-end server (80) comprising the application resource for distribution to the first application instance (44) and the second application instance (54, 64, 74) for processing, and the filter (58, 68, 78) configured to intercept a result of the processing by the second application instance (54, 64, 74) and discarding the result instead of forwarding to the client (10);
wherein the second gateway (50, 60, 70) is configured to disable the filter upon detecting a failure of the first gateway (40).
15. The system as claimed in claim 14, wherein the distribution process (32) is configured to copy the input received from the client (10) and forward the copied input to the second application instance (54, 64, 74) so that the failover session (52, 62, 72) of the second gateway (50, 60, 70) is maintained in the same state as the active session (42) of the first gateway (40).
16. The system as claimed in claim 14, wherein the second gateway comprises the filter (58, 68, 78) on a network stack that is configured to be activated in response to designation of the second gateway (50, 60, 70) as the failover gateway.

17. The system as claimed in claim 14, wherein the second gateway (50, 60, 70) is selected to replace the first gateway (40) as the primary gateway based on one of name, an operation performed on an identifier of a gateway, or processing attributes of a gateway.
18. The system as claimed in claim 14, wherein the second gateway (50, 60, 70) is configured to detect the failure in the first gateway (40) via sending of periodic heartbeat signals via a private communication channel.
19. The system as claimed in claim 14, wherein the second gateway (50, 60, 70) comprises a failover policy for determining the failure of the first gateway in accordance.
20. The system as claimed in claim 14, wherein the first gateway (40) is configured to forward to the second gateway (50, 60, 70) an Internet Protocol address assigned to the client (10) by the first gateway (40).
21. The system as claimed in claim 14, wherein the distribution process (32) is configured to query state of the active session and the failover session to determine if session states are synchronized.
22. The system as claimed in claim 14, wherein the distribution process (32) is configured to receive a response to the request for the application resource and to forward the response to one of the first application instance or the second application instance.
23. The system as claimed in claim 22, wherein the distribution process is configured to determine session states of the active session (42) and the failover session (52, 62, 72) are synchronized, and to forward the response to the client in response to the determination.
24. The system as claimed in claim 22, wherein the response comprises a change in a screen buffer for the client in response to the request, the change in the screen buffer

comprising one of a Remote Display Protocol (RDP), Remote Frame Buffer (RFB) protocol or an Independent Computing Architecture (ICA) protocol.
25. The system as claimed in claim 14, wherein the filter (58, 68, 78) is configured to intercept responses sent from the second application instance (54, 64, 74) to the client (10).


ABSTRACT


A Method for Maintaining Transaction Integrity Across Multiple Remote Access Servers

A method and system for providing failover redundancy of a gateway for a remote access solution between a client and a back-end server are disclosed. The method involves: executing, by a first gateway designated as a primary gateway (40) between a client (10) and a back-end server (80), a first application instance (44) for an active session (42) of the application; executing, by a second gateway designated as a failover gateway (50, 60, 70) between the client (10) and the back-end server (80), a second application instance (54, 64, 74) for a failover session (52, 62, 72) of the application; forwarding; initiating; intercepting; receiving; detecting a failure of the first gateway (40); and (j) disabling, on the second gateway (50, 60, 70), the filter (58, 68, 78) in response to the detection.

Documents:

0537-kolnp-2007 abstract.pdf

0537-kolnp-2007 claims.pdf

0537-kolnp-2007 correspondence others.pdf

0537-kolnp-2007 description (complete).pdf

0537-kolnp-2007 drawings.pdf

0537-kolnp-2007 form-1.pdf

0537-kolnp-2007 form-3.pdf

0537-kolnp-2007 form-5.pdf

0537-kolnp-2007 international publication.pdf

0537-kolnp-2007 international search report.pdf

531-KOLNP-2007-(15-02-2013)-CORRESPONDENCE.pdf

531-KOLNP-2007-(15-02-2013)-OTHERS.pdf

531-KOLNP-2007-(25-06-2013)-ABSTRACT.pdf

531-KOLNP-2007-(25-06-2013)-ANNEXURE TO FORM-3.pdf

531-KOLNP-2007-(25-06-2013)-CLAIMS.pdf

531-KOLNP-2007-(25-06-2013)-CORRESPONDENCE.pdf

531-KOLNP-2007-(25-06-2013)-DESCRIPTION (COMPLETE).pdf

531-KOLNP-2007-(25-06-2013)-DRAWINGS.pdf

531-KOLNP-2007-(25-06-2013)-FORM-1.pdf

531-KOLNP-2007-(25-06-2013)-FORM-13.pdf

531-KOLNP-2007-(25-06-2013)-FORM-2.pdf

531-KOLNP-2007-(25-06-2013)-OTHERS.pdf

531-KOLNP-2007-(25-06-2013)-PA.pdf

531-KOLNP-2007-(25-06-2013)-PETITION UNDER RULE 137.pdf

531-KOLNP-2007-(30-07-2013)-CORRESPONDENCE.pdf

531-KOLNP-2007-ASSIGNMENT.pdf

531-KOLNP-2007-CANCELLED PAGES.pdf

531-KOLNP-2007-CORRESPONDENCE.pdf

531-KOLNP-2007-EXAMINATION REPORT.pdf

531-KOLNP-2007-FORM 13.pdf

531-kolnp-2007-form 18.pdf

531-KOLNP-2007-GPA.pdf

531-KOLNP-2007-GRANTED-ABSTRACT.pdf

531-KOLNP-2007-GRANTED-CLAIMS.pdf

531-KOLNP-2007-GRANTED-DESCRIPTION (COMPLETE).pdf

531-KOLNP-2007-GRANTED-DRAWINGS.pdf

531-KOLNP-2007-GRANTED-FORM 1.pdf

531-KOLNP-2007-GRANTED-FORM 2.pdf

531-KOLNP-2007-GRANTED-FORM 3.pdf

531-KOLNP-2007-GRANTED-FORM 5.pdf

531-KOLNP-2007-GRANTED-SPECIFICATION-COMPLETE.pdf

531-KOLNP-2007-INTERNATIONAL PUBLICATION.pdf

531-KOLNP-2007-INTERNATIONAL SEARCH REPORT & OTHERS.pdf

531-KOLNP-2007-OTHERS.pdf

531-KOLNP-2007-PETITION UNDER RULE 137.pdf

531-KOLNP-2007-REPLY TO EXAMINATION REPORT.pdf

abstract-00531-kolnp-2007.jpg


Patent Number 260103
Indian Patent Application Number 531/KOLNP/2007
PG Journal Number 14/2014
Publication Date 04-Apr-2014
Grant Date 31-Mar-2014
Date of Filing 13-Feb-2007
Name of Patentee CITRIX SYSTEMS, INC.
Applicant Address CAMBOURNE BUSINESS PARK, CAMBOURNE, CAMBRIDGE CB3 6DW
Inventors:
# Inventor's Name Inventor's Address
1 RODRIGUEZ ROBERT 5647 WELLS COURT, SAN JOSE, CA 95123
2 RAO GOUTHAM P 6963 STARLING VALLEY DRIVE, SAN JOSE, CA 95120
3 BRUEGGEMANN ERIC 5642 STEVENS CREEK BOULEVARD, #606, CUPERTINO, CA 95014
PCT International Classification Number H04L 29/08
PCT International Application Number PCT/US2005/028663
PCT International Filing date 2005-08-11
PCT Conventions:
# PCT Application Number Date of Convention Priority Country
1 60/601,431 2004-08-13 U.S.A.