the invention now will be described more fully hereinafter with reference to the accompanying drawings , which form a part hereof , and which show , by way of illustration , specific exemplary embodiments by which the invention may be practiced . this invention may , however , be embodied in many different forms and should not be construed as limited to the embodiments set forth herein ; rather , these embodiments are provided so that this disclosure will be thorough and complete , and will fully convey the scope of the invention to those skilled in the art . among other things , the invention may be embodied as methods or devices . accordingly , the invention may take the form of an entirely hardware embodiment , an entirely software embodiment or an embodiment combining software and hardware aspects . the following detailed description is , therefore , not to be taken in a limiting sense . throughout the specification and claims , the following terms take the meanings explicitly associated herein , unless the context clearly dictates otherwise . the phrase “ in one embodiment ” as used herein does not necessarily refer to the same embodiment , although it may . nor does the phrase “ in another embodiment ” necessarily refer to a different embodiment , although 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 . the term “ based on ” is not exclusive and allows for being based on additional factors not described , unless the context clearly dictates otherwise . in addition , throughout the specification , the meaning of “ a ,” “ an ,” and “ the ” include plural references . the meaning of “ in ” includes “ in ” and “ on .” a method of seamlessly maintaining connection - oriented communication between end - terminal devices in an ip - based network is accomplished using a specialized arrangement using proxy devices . this architecture includes a first proxy device in communication with an ip - based network and in further communication with an end - terminal device . the first proxy device forwards data traffic between the ip - based network and the end - terminal device . the architecture also includes a second proxy device also in communication with the ip - based network . the first and second proxy devices are coupled through a separate communications link . in operation , the second proxy device monitors data traffic between the ip - based network and the first proxy device . the second proxy device can seamlessly redirect data traffic between the ip - based network and the first proxy device using the separate communications link . the overlay network includes a number of proxy devices . the proxy devices monitor data traffic between the communicating end - terminal devices and seamlessly redirect the data traffic through the overlay network between the same communicating end - terminal devices . the redirection is initiated upon the occurrence of a predetermined event related to the connection - oriented communication . examples of some events that may cause the data traffic to be redirected include component or cable failures . alternatively or in addition , the data traffic may be redirected from a first network path to a second network path in response to automatic load balancing , or even in response to a user &# 39 ; s preference . for example , a network path providing connection - oriented communications path for an application running for an extended period of time may be changed to an alternate network path according to actual loading ( i . e ., load balancing ) or the time of day to obtain more favorable throughput or cost . an exemplary network configuration shown in fig1 includes a first end - terminal device communicating with a second end terminal device across a packet - based network , such as an ip - based network . the configuration of first end - terminal device can include a client workstation 105 a that may be part of a subnet 100 of other end - terminal devices 105 b , 105 c ( generally 105 ). the client workstation 105 a is coupled to a wide area network ( wan ) 125 through a first proxy device 115 and an edge router 120 . at the remote end of the link a second end - terminal device 140 is similarly coupled to the same wan 125 through a remote proxy device 135 and an edge router 130 . the first end - terminal devices 105 can represent a first local area network ( lan ) at a branch office of an enterprise network ; whereas , the remote end - terminal device 145 may represent a second lan at a data center . a second proxy device 145 is also coupled to the wan 125 through an edge router 150 and further coupled to the first proxy device 115 . the first and second proxy devices 115 , 145 are coupled together by a separate communications link 155 interconnecting to the first and second proxy devices 115 , 145 at respective peer interfaces . the interconnected proxy devices 115 , 145 represent part of an overlay network . the overlay network more generally allows the packets to pass the network from any ingress / egress device . a redundant switch 111 may also be provided between the subnet a 100 and the second proxy device 145 . as shown in fig1 , redundant interconnections can be provided to at least one local end terminal to selectively permit signal routing through either of the redundant switches 110 - 111 , proxy devices 115 , 145 , and / or routers 150 . communications between the proxy devices can be accomplished using a dedicated communications link . for example , two proxy devices that are in close physical proximity can be coupled using a dedicated communications cable . any one of a number of standard communications protocols could be used for communicating between the two devices over the dedicated cable . alternatively or in addition , a proprietary protocol could be used between the two devices . however , in a preferred embodiment , the overlay network to a tcp network permits components of the overlay network to reside in physically different locations . thus , the communications link between the first and second proxy devices can be accomplished over the wan 125 ( e . g ., using tci / ip ) or over a dedicated communications link , such as a leased line or dial - up connection . one embodiment of a proxy device is illustrated in fig2 . generally , a proxy server 200 communicates between a wan 125 and a lan . thus , the proxy server 200 includes suitable interfaces , such as a wan interface 215 and a lan interface 210 . a generic proxy module is coupled between the two interfaces 210 , 215 . the proxy module 205 communicates with a generic proxy application 220 . the proxy application 200 , in turn , is in communication with a configuration file 225 . in operation , the proxy server 200 receives connection - oriented communications ( e . g ., packets ) at its lan interface 210 . the proxy module 205 monitors the communications and redirects the communications , as necessary , according to the controlling proxy application 220 . for example , the proxy application 220 can be preconfigured with rules that control the redirection of communications . as control and redirection depend at least in part on the identities of the end - terminals , the proxy application 220 has access to a configuration file 225 storing such information as the addresses of the different end - terminals and other proxy devices . the configuration file 225 also contains information about the second proxy device 145 and may contain further information about other aspects of the network . the configuration file 225 can be reconfigurable and can be maintained automatically , and / or manually by a network manager . a flow diagram of an exemplary embodiment of the invention is illustrated in fig3 . in general , a proxy device , such as a tcp proxy terminates a local connection on one side and terminates a remote connection on the other side . as shown , a proxy device 115 receives a communication ( e . g ., a packet ). the device 115 determines which communication path ( e . g ., tcp connection — virtual lan 1 or 2 ) the communication is associated with . once identified , the device 115 determines whether the related connection is being tracked by the device 115 . if the connection is being tracked , the packet is redirected . a packet may be received from local end - terminals at first proxy device 115 &# 39 ; s lan interface 210 . a packet may also be received from a remote end - terminal at first proxy device 115 &# 39 ; s wan interface 215 . for example , if first proxy device 115 receives a packet at its lan interface 210 , the device 115 inspects certain information within the packet to identify features of the packet . these features may include the packet source , its destination , a port number , or the contents of the packet itself . once identified , the device 115 will determine whether the identified packet should be processed by the proxy device 115 . if the device 115 determines that it should process the packet , it next determines whether the packet belongs to one of any number of active sessions then currently being processed by the proxy device 115 , or whether the packet is intended for a new connection . if the proxy device 115 determines that the identified packet belongs to an active session , then the proxy device 115 processes the packet , forwarding the packet to its intended destination via the wan interface 215 . for example , the packet can be redirected to the proxy application . however , if the proxy device 115 determines that the identified packet does not belong to any of the active sessions , the packet will be forwarded to the second proxy device 145 over the interconnecting communications link 155 . if a packet is received on a peer interface of the first proxy device 115 from a second proxy device 145 , and if the packet was originally sent from the first proxy device 115 to the second proxy device 145 , then the first proxy device 115 bridges the packet by establishing an active connection for the packet to be managed by the first proxy device 115 , and by further forwarding the packet to an end terminal device . otherwise , the first proxy device 115 determines if the received packet belongs to one of its active connections . if it does , the first proxy device 115 processes the packet . however , if the packet does not belong to one of the first proxy device &# 39 ; s active connection , the first proxy device 115 passes the packet back to the second proxy device 145 using the peer interface . similarly , for example , if first proxy device 115 receives a packet from a tcp connection over wan 125 , first proxy device 115 inspects certain information within the packet to identify features of the packet . these features may include those described above , such as packet source , its destination , a port number , or the contents of the packet itself . once identified , first proxy device 115 will determine whether the packet is part of a flow being handled by another proxy device . if so , first proxy device 115 can ignore the packet , allowing the other device to handle routing of the packet . however , if first proxy device 115 determines that the packet is being handled by itself , then first proxy device 115 can refer to any applicable policies to determine how to forward the packet . for example , if first proxy device 115 receives a packet that it is tracking and determines that this packet should be forwarded to an end - terminal associated with second proxy device 145 , then first proxy device 115 may forward the packet across communications link 155 to second proxy device 145 . second proxy device 145 , in turn , receives the packet , identifies it , checks its policies , and forwards the packet to the intended end - terminal destination . the packets can be passed on to the device responsible for processing that specific tcp flow in one of several ways . for example , the packet can be passed using a direct connection or encapsulating it into a protocol . in this manner , the overlay network between inline devices can be used to reconstruct the tcp packet flows by inspecting the packet , determining if the inspected packet is part of a flow that was previously determined should be intercepted , and passing the packet to the device responsible for processing that specific tcp flow . it will be understood that each block of the flowchart illustration , and combinations of blocks in the flowchart illustration , can be implemented by computer program instructions . these program instructions may be provided to a processor to produce a machine , such that the instructions , which execute on the processor , create means for implementing the actions specified in the flowchart block or blocks . the computer program instructions may be executed by a processor to cause a series of operational steps to be performed by the processor to produce a computer implemented process such that the instructions , which execute on the processor to provide steps for implementing the actions specified in the flowchart block or blocks . accordingly , blocks of the flowchart illustration support combinations of means for performing the specified actions , combinations of steps for performing the specified actions and program instruction means for performing the specified actions . it will also be understood that each block of the flowchart illustration , and combinations of blocks in the flowchart illustration , can be implemented by special purpose hardware - based systems which perform the specified actions or steps , or combinations of special purpose hardware and computer instructions . in some embodiments , the network architecture can include a network acceleration feature as described in co - pending u . s . patent application ser . no . 10 / 354 , 438 filed in the u . s . patent office on jan . 29 , 2003 and issued on oct . 24 , 2006 as u . s . pat . no . 7 , 126 , 955 , and incorporated herein by reference in its entirety . appendix a , also incorporated herein in its entirety , describes one embodiment of a proxy &# 39 ; s capability that can support the above - described seamless redirection of connection - oriented communications between end - terminal devices in an ip - based network . appendix b , also incorporated herein in its entirety , describes one embodiment of a redundancy architecture . while this invention has been particularly shown and described with references to preferred embodiments thereof , it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the invention encompassed by the appended claims . the generic proxy application is responsible for data redirection between a lan connection and its corresponding proxy connection . the proxy application communicates with the generic proxy module ( which is responsible for packet redirection ) to add a connection , delete a connection , reset a connection , and add local port information to which lan connections are to be redirected . the main thread is responsible for the initialization and creation of all other threads . it initializes the proxy module with the information loaded from the configuration file . it also checks for the physical memory size in order to determine the following : however , the invention is not limited to these values , and others may be used as well . the main thread creates a proxy listen socket with the port number read from the configuration file . it then creates the working threads , lan listen thread , proxy listen thread and socket queue thread . the thread will eventually listens on , for example , port 51999 for the syscheck command . the lan listen thread may create about 300 ports to listen on . it then checks for new connections about every 5 seconds . this may be done using a call to select for the about 300 sockets for a timeout of about 5 seconds . fig5 is a flow diagram of one embodiment of a lan listen thread . this thread searches for the proxy corresponding to the new lan connection and then tries to establish a connection to that proxy over which it sends a begun message . if the connection fails , the thread informs the proxy module to remove this connection and then sends a reset packet to the client . prior to sending the begin message , the thread may check the lan connection for data . if data is detected , it reads up to about 1400 bytes and sends the data along with the begin message in one stream . the invention is not constrained to 1400 bytes , and another size may also be read . the thread then adds the new ndconnection object to socket queue thread and terminates . an ndconnection object represents the connection pair of a lan connection and its corresponding proxy connection . fig6 is a flow diagram of one embodiment of a new connection completion thread . this thread waits on accept until a new connection request is received . when a connection is received it creates an ndconnection and adds it to the socket queue thread . the working thread is responsible for handling an ndconnection . the thread handles one stream for that connection . the working threads are created once on the application initialization by the plain thread ; their number depends on the total memory of the box ( see section 2 . 1 ). the thread uses a buffer for data between connections either for send or receive for both proxy and client connections . in one embodiment , the buffer is about 120k in size . fig7 is a flow diagram of one embodiment of a working thread . socket queue threads are responsible for checking for data availability on a socket . if data is received on a socket , the socket queue thread gets a free working thread , set the information needed by the working thread then signals the working thread to start handling the connection . each socket queue thread handles connections and owns ( n ) working threads . in one embodiment , each sock queue thread may be configured to handle a maximum number of connections , such as about 100 connections . fig8 is a flow diagram of one embodiment of a socket queue threads . connection port reset may be used to send rst packet to source client a requesting to connect to unavailable destination ip or port . cconnectionreset class is responsible for loading reset port list and maintaining the added connections . cconnectionreset class checks if the destination port is listed in the reset port list . if the port is found , cconnectionreset class adds this connection to an internal list along with a timeout value . then calls the module to add the connection information . so when a new request from lan a to lan b is issued the module sends a rst packet . cconnectionreset class check every one second its internal list to check the connections timeout , when the timeout of a connection expires it calls the module to remove it . this thread is responsible for checking on genericproxy integrity , if the system is working fine , it changes a shared memory value which indicates that its working . icheck checks this value to insure system integrity . if any checks failed for some pre - defined number of times the thread is terminated and icheck reboots the machine . in one embodiment , the pre - defined number of times may be sent to 3 ; however , the invention is not so constrained , and other values may also be used . the proxy protocol may be a 4 bytes header which indicates the type of stream following the header : a ) if the most significant bit is set , this indicates a code ; the low word may hold one of the following code numbers : b ) if the most significant bit is clear this may indicate that the following stream is data and the least 19 bits are the size of the stream . an ndconnection object holds a pair of socket objects representing a lan / proxy connection pair . it is responsible for the handling and forwarding of data over the lan and proxy connections . an ndconnection object may be exclusively owned by one thread at a time ; i . e ., when a thread passes an ndconnection object to another thread , it first unbinds all references to the object from the thread object &# 39 ; s member variables . when a stream ( block ) is received over the lan connection , the thread propends a header containing the size of the stream ( block ) and then sends the stream ( block ) to the related remote proxy over the proxy connection . when the stream ( block ) is received by the proxy , the header is parsed ; the header will contain either a protocol code or the data size , if a begin code is detected , the proxy adds the connection information to the proxy module to enable redirection . it then connects to the corresponding lan connection . lan connection information is sent within the begin packet . if , on the other hand , an end code is detected , the proxy shutdown the corresponding lan connection and waits till the lan client closes its connection to send end code to the remote proxy . if the connection owner receives end code and its lan connection is closed it waits for reuse code . if the connection is not owned and end code is received and its lan connection is closed a reuse code is sent to the other proxy . in error code will cause the proxy to query the proxy module to get information about the connection . it then uses the returned information to reset the connection . fig9 is a flow diagram of one embodiment for handling lan stream . fig1 is a flow diagram of one embodiment for hangling proxy stream . the tos is set per port per remote box . ctosval class is responsible for loading tos values and searching for the appropiate value for a specific lan connection . a ) search for tos value using remote box ep , destination port . the new and delete overloaded operators are overloaded to check the availability of free memory . they also ensure that the application does not run out of memory by freeing up unused application objects . a list keeps track of the allocated objects and their sizes . the overloaded new operator checks if the available memory is not less than about 30m . if true , it tries to free memory by closing unused connections ; if the available free memory is then still less than about 30 mb , it may fail and throw exception . however , another size may also be selected . the overloaded delete operator checks if the passed address to be deleted has an entry in the list of allocated objects ; if no entries are found , it fails and throws an exception . if , however . the address is in the list , the operator frees the memory referred to by the address and removes the related entry from the list . fig1 is a flow diagram of one embodiment of memory management . [ the maximum file descriptors allowed per process ( max fd ) in linux is currently about 1024 , max fd is changed to about 4096 and the kernel was recompiled and the application had to be recompiled with the new headers .] in order to overcome the linux limit on maximum file descriptors ( max fd ) per process ( 1024 ), the kennel was recompiled to allow a maximum of about 4096 . ( the application also had to be re - compiled with the new headers ) the application uses about 73 % of the max fd for lan / proxy connections while the rest is used for files , authentication and link down detection . the application keeps track of the count of currently used fds for all connections ; if the fd count exceeds the percentage allowed , 200 unused connections are closed . the check is done at three different locations in the code : if the check fails after closing the unused connections . in the case of a memory allocation check , the allocation fails and new throws an exception . the newly accepted connection is dropped in the case of lan and proxy listen threads . two socket options may be used : tcp nodelay and so keepalive . sockets representing the proxy - to - proxy connections have , their tcp_nodelay option set . this option disables the nagel algorithm , which speeds up the transfer of small packets . proxy connection reuse aims at reusing each proxy - to - proxy connection to service multiple , consecutive client - to - client connections . this has the advantage of reusing the compression dictionary ( created by the compression module for each proxy - to - proxy connection ). proxy connection reuse also reduces the overall time overhead for client - to - client connection establishment . such overhead may be caused by establishing a tcp proxy - to - proxy connection for each client connection . the proxy maintains a pool of unused connections to other proxies . each unused connection entry has a field that indicates the original destination port ( i . e ., the destination port as seen by the originating client ). when a client “ connect ” is detected , the proxy searches for the proxy responsible for the destination client . it then starts searching for an unused connection to the found proxy based on the destination port . a similar destination port implies that both connections run the same protocol . unused connections are stored in a multi - level sorted data structure . proxy info is stored in an array sorted by their ip addresses . each entry in the array represents a remote proxy ( proxyinfo ). a proxy entry has a reference to yet another array ( portinfo ) with entries representing ports . the port array is sorted by port numbers . each port entry points to a list of unused connections . when a client connection is closed , the proxy uses a binary search to get a reference to the proxy ip from the proxyinfo array . next , a destination port entry is looked up for in the portinfo array . if no matching entries are found , a new entry is created and the portinfo array is binary - sorted . next , a reference to the unused connection is added to the portinfo entry . fig1 is a flow diagram of one embodiment for adding a connection to the pool of unused connections . when a new connection is requested , a search in the proxy info may be made using , for example , a binary search algorithm . if the proxy ip is found a search for the port number is made in the port info using , for example , the binary search algorithm . if any search fails , null is returned to indicate that new unused connection matches the previous information and thus a new connection is made . fig1 is a flow diagram of one embodiment for requesting a new connection . removing least used connections may be called when free memory is less than some size , such as about 30 mb or file descriptors exceed about 73 % of file descriptors allowed per process ( 2048 ). fig1 is a flow diagram of one embodiment for removing connections from main array . the proxy owning unused connections send ping command on every connection every predefined number of minutes to ensure that the connection is still valid and because firewalls closes idle connections after some predetermined time , such as about 2 hours . in one embodiment , the predefined number of minutes may be set to about 55 minutes , or so . fig1 is a flow diagram of one embodiment of unused connection pinging . the connection establishment timeout is set to some predefined number of seconds for connections between the proxy boxes while the connection timeout is set to another predefined number of seconds for connections between the proxy box and the client . in one embodiment , the connection establishment timeout may be set to about 120 seconds , while the connection time out may be set to about 60 seconds . diagnosis check is done by another process . the process communicates with the proxy application through socket api &# 39 ; s to check on the proxy status . the process check for proxy scheduler about every 2 minutes . lan listen thread about every 3 minutes and working threads about every 60 minutes . however , the invention is not so constrained , and other values may be used , without departing from the scope or spirit of the invention . if any of these checks failed the heart beat thread is stopped . 1 . an extra gigabit ethernet link l3 may be added between nc1 and nc2 ; the two ethernet devices at both end of l3 will be set to promiscuous mode . 2 . the l3 will be a trunk link with 5 vlans ; 4 tagged and one untagged 3 . nc1 , nc2 will be aware of each other as redundant ncs . they may exchange heartbeat packets . i . packets coming from the lan - 1side , or l1 / 2 n / c may undergo the following checks : 1 . if the packet is a syn packet , it will be checked against the redirection rules a ) if a matching rule is found , it will be redirected b ) otherwise , it will be added to the bridge - cache and bridged 2 . if the packet is a non - syn packet , it will be checked against the tracked connection records a ) if a matching record is found , it will be redirected b ) the packet is checked against the bridge - cache , if a hit is found it &# 39 ; s bridged c ) otherwise , it will be forwarded over l3 ii . packets coming from the l3 nic may undergo the following checks : 1 . if a tagged packet is received , it may be added to the bridge - cache and transmitted to the router link ( l1 or l2 ) 2 . if the packet belongs to a tracked connection , it may be redirected to the proxy application 3 . if the packet doesn &# 39 ; t belong to any of the tracked connection it may be tagged and forwarded back over l3 r1 is up and in active mode l1 becomes down and r1 enters standby mode lan1 → nc2 → l2 → r2 or lan1 → nc2 → l3 → nc1 → l1 → x ( dropped ) ( connections used to get proxied by nc1 is handled as case 1 ) each ncra box will have 5 extra devices , eth2 , eth2 . 10 , eth2 . 11 , eth2 . 20 , eth2 . 21 bridges are used in order to enable netfilter to intercept promiscuous frames the ncra checks will be added to the gpmod prerouting hook ( hookpreroute ) vlan 10 will be used to send packets coming from bridge port 0 for checking on a remote proxy vlan 11 will be used to send packets coming from bridge port 1 for checking on a remote proxy vlan 20 will be used to send packets back when the above check proves false ( coming from vlan 10 ) vlan 21 will be sued to send packets back when the above check proves false ( coming from vlan 11 ) an arbitrary network device ( one of bridge ports ) will be used as a direction reference ( direction a ); packets coming from the other network device will be checked with their source and destination addresses swapped . this applies only to the bridging cache check . bridging cache connection entries will have a timeout of 120 secs cache cleanup will be performed every 45 seconds , upon connection addition . heart beat connections will be exchanged over the eth0 untagged link . heartbeat data will be exchanged using the authentication code [ gpapp ] if the peer is detected to be down , gpmod is informed via the ioctl gpmod_ncra_peer_down call . the link up event is propagated to gpmod via gpmod_ncra_peer_up ioctl