SYSTEM AND METHOD FOR HIGHLY SCALABLE HIGH-SPEED CONTENT-BASED FILTERING AND LOAD BALANCING IN INTERCONNECTED FABRICS

Abstract: In some embodiments of the present invention, a system includes one or more server computers (44) having multi-channel reliable network hardware and a proxy (48). The proxy is able to receive packet-oriented traffic from a client computer (42), to convert a session of the packet-oriented traffic into transactions, and to send the transactions to one of the server computers. The transactions include remote direct memory access messages.

Description: SYSTEM AND METHOD FOR HIGHLY SCALABLE HIGH-SPEED CONTENT-BASED FILTERING AND LOAD BALANCING IN INTERCONNECTED FABRICS BACKGROUND OF THE INVENTION Current technologies of network traffic enable transmitting of data between computer devices at a data rate of more than one gigabyte per second. However, in existing systems for content filtering and load-balancing, all the network traffic travels through a single input/output port, thus creating a single point of failure and negatively impacting performance. While inspecting and filtering traffic, such systems may divert the traffic to one of a plurality of servers according to their load. These systems usually work with transmission control protocol (TCP) and Internet protocol (IP) and follow the communication state for each session in order to achieve acceptable content filtering and load-balancing. This procedure consumes a lot of processing power and is suitable mainly for well-known simple protocols such as hypertext transfer protocol (HTTP) and file transfer protocol (FTP). The method usually inserts a delay into the transactions and involves redundant communication processing. The existing methods are not suitable for managing load-balancing and fail-over procedure of remote procedure call (RPC), storage traffic, database traffic, and heavy traffic loads. In case of a failure, the procedure of a rollback and retransmit to another machine may not be available. Moreover, when the communication is disconnected, there is no knowledge which parts of the intended traffic have reached the destination prior to the disconnection. There is a demand for efficient high-availability content filtering technologies having better performances and using less central processing unit (CPU) resources. BRIEF DESCRIPTION OF THE DRAWINGS The subject matter regarded as the invention is particularly pointed out and distinctly claimed in the concluding portion of the specification. The invention, however, both as to organization and method of operation, together with objects, features and advantages thereof, may best be understood by reference to the following detailed description when read with the accompanying drawings in which: Fig. 1 is a block diagram illustration of a content filtering and load balancing system according to some embodiments of the present invention; Fig. 2 is a data flow illustration of an exemplary transaction according to some embodiments of the present invention; Fig. 3 is a block diagram illustration of a computer having a transaction-aware communication application according to some embodiments of the present invention; Fig. 4 is a block diagram illustration of a content filtering and load balancing system having a proxy element according to some embodiments of the present invention; and Fig. 5 is a block diagram illustration of a content filtering and load balancing system according to some embodiments of the present invention. It will be appreciated that for simplicity and clarity of illustration, elements shown in the figures have not necessarily been drawn to scale. For example, the dimensions of some of the elements may be exaggerated relative to other elements for clarity. Further, where considered appropriate, reference numerals may be repeated among the figures to indicate corresponding or analogous elements. DETAILED DESCRIPTION OF THE PRESENT INVENTION In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the invention. However, it will be understood by those of ordinary skill in the art that the present invention may be practiced without these specific details. In other instances, well-known methods, procedures, components and circuits have not been described in detail so as not to obscure the present invention. Some embodiments of the present invention are directed to a system that enables filtered peer-to-peer communication with improved performance and load-balancing and fail-over mechanisms. The system, which will be described with respect to Fig. 1, enables one or more routers, coupled to one or more client computers and to one or more server computers, to receive transactions. The system also enables the data associated with that transaction to travel directly between the server and the client in a secured and efficient manner. In some embodiments, the system may be implemented in an efficient multi-channel reliable network having remote direct memory access (RDMA) capabilities. RDMA is a capability that allows data to be sent directly from one computer to the memory of another computer. The processing unit of the receiving computer is freed from involvement with the data transfer, thus speeding up overall computer operation. Non-limiting examples of an efficient multi-channel reliable network include new system area network (SAN), InfiniBand network, Fiber-Channel network, asynchronous transfer mode (ATM) network and RDMA over TCP/IP network. These networks may be termed in general as "interconnects". In other embodiments of the present invention, a transaction-aware communication software implementation may provide the requested functionality. For example, the software may be a kernel software element that may receive RDMA requests and may emulate the RDMA operation (e.g moving memory blocks to and from the requestor) without higher-level layers and/or the application. In some cases, it may not be possible to replace the client networking software and or hardware. In such cases, according to some embodiments of the present invention that will be described with respect to Fig. 4, a proxy element may be added between the router or routers and the client computers. The proxy may collect packets provided by the client (e.g. TCP/IP packets) and may generate transactions instead of the client computer. The proxy may also convert the result data back to packets. Reference is now made to Fig. 1, which is a block diagram illustration of a system for content filtering and load balancing according to some embodiments of the present invention. Throughout the description, the term "content filtering" refers to operations, such as, for example, security, caching, accounting, quality of service and others. System 10 may comprise at least one client computer 12, at least one server computer 14 and at least one router 16 coupled to client computer 12 and to server computer 14. Throughout the description and claims, the term "client computer" refers to a computer initiating a transaction (e.g. web server) and the term "server computer" refers to a computer processing the transaction (e.g. database or a storage device). A computer may be simultaneously a client computer 12 for some applications and a server computer 14 for other applications. Router 16 may be implemented as a software package, an embedded device, an electronic device, and any combination thereof. Routers 16 may be implemented in parallel, serially, in a cascaded manner and any combination thereof. System 10 may be implemented in an RDMA network environment using protocols such as, for example, socket direct protocol (SDP), direct access file system (DAFS), and SCSI RDMA protocol (SRP) over technologies such as, for example VI and Infiniband. System 10 may also be implemented in a standard TCP/IP network environment by expanding TCP/IP protocols to support RDMA. System 10 may integrate a lightweight software implementation that may provide the functionality of RDMA without using special hardware on top of existing networks. For example, implementing a kernel software element that may receive RDMA requests and may emulate the RDMA operation (moving memory blocks to and from the requestor) without involving the higher-level layers and/or the application. There may be several routers having similar or different functionality to increase availability, capacity, and functionality and to share the load. Router 16 may be remotely managed. Router 16 may be secured to reduce its vulnerability to outside attacks. The system may be implemented in a local area network and server environment as well as in wide area networks. Router 16 may be adapted to manage content filtering and routing according to a predefined policy. System 10 may comprise several cascaded routers having at least one filter from a group including security filters, caching filters, accounting filters, and quality of service filters. Router 16 may filter transactions and may route the filtered transactions to one of server computers 14 or to another router 16 for additional filtering. Router 16 may be further adapted to manage the load balancing. Router 16 may select a server computer for command processing based on, for example, momentary availability, load information, quality of service, and others. In existing content filtering systems, all the traffic between the client and the server is transferred via the router. In contrast, according to some embodiments of the present invention, router 16 may receive and process only part of each transaction (i.e. the command) or alternatively router 16 may receive and process only the connection request. The processing of the connection request may involve selecting server 14 according to information in the connection request. This information may comprise opaque data that is not used by the communication protocol. The main part of the transaction (i.e. the data) may travel directly between client 12 and server 14 in a secure manner using efficient peer-to-peer operations that do not consume a lot of CPU resources. Alternatively, the data may travel via router 16 without being processed. Router 16 may decide to divert the transaction to other servers in case of load, failure or based on the traffic content. Many applications use transactions, such as, for example, RPC applications, database applications, storage-access applications, and file-access applications. A transaction is a two-way communication comprising sending a command and receiving a result or requested data. In many applications, there is no need to inspect the received data, which is provided by a trusted machine. Sometimes there is no need even to inspect some of the command's parameters. In some applications, transactions are stateless. Alternatively, the transactions can be made stateless. When the beginning and end of a state is marked, load-balancing and fail-over mechanisms may be implemented (e.g. a rollback operation and a retransmit operation). In some embodiments of the present invention, the shift to another server in case of failure may be transparent to the application. In contrast, most existing fail-over mechanisms tend to lose the connection when the server fails and the client application is requested to issue a reconnect command. A transaction may be divided into several elements: 1. The command -e.g. SQL statement, an RPC object, a file request, and a method to invoke. 2. The Command Parameters (optional) - Additional data that may be needed for processing the command. 3. Returned data and/or Result - data resulted from the processing and/or the completion status of the command (e.g. success, error). According to some embodiments of the present invention, each transaction may be isolated and the inspection, load-balancing and fail-over operations may be performed in transaction granularity, namely as a set of stateless transactions. If a transaction is not completed because of failure, it is reassigned to another server. There may be more than one buffer for receiving data from the server. In the case of large transactions, several result-buffers and parameter-buffers may be created. A large transaction may also be divided into several sub-transactions. Router 16 may use any of the known methods for load balancing. Non-limiting examples of load-balancing methods are: maintaining a watch-dog to all the servers and receiving load information periodically. The load-balancing methods may determine the heart-beat, load, performance and status of the servers. In order to increase security, additional security keys and/or signatures may be added to the parameters and/or result-buffer pointers enabling the server software to check whether the correct (un-tampered) parameters and/or pointers are received. Reference is now made to Fig. 2, which is a data flow illustration of an exemplary transaction according to some embodiments of the present invention. Client computer 12 may send a command to router 16 together with pointers to one or more memory buffers (step 20). In some of the transactions, client computer 12 may further send to router 16 at least one essential command-parameter. Non-limiting examples of essential command-parameters include connection request, SQL, command operation and file operation. At least one memory buffer may optionally store additional command-parameters. At least one memory buffer may store data received from server 14. When system 10 comprises more than one router 16, the application of client computer 12 may determine which of the routers is available. Router 16 may examine the command. If the command complies with a predefined filtering policy, router 16 may look for an available server 14 (using a load-balancing scheduling algorithm). Then, router 16 may send the command and the buffers' pointers to server 14 (step 22). Server 14 may process the command and in parallel may fetch the command-parameters directly from the memory of client computer 12. The fetching process may utilize an RDMA read operation. Once server 14 completes processing the command, it may send the result directly to the memory of client computer 12 (step 24). Alternatively, the parameters and data may travel via router 16 without being processed by it. Server 14 may utilize an RDMA write operation. Client computer 12 may be notified about the completion of the command. The client application may then receive the results. In a network based on Infiniband, VI or other RDMA-capable hardware implementations, a networking device may notify client computer 12 about the completion of the process. Alternatively, mainly in cases of software implementations, a suitable protocol may notify client computer 12 about the completion. Router 16 may also receive the connection request from client 12 including information about the application and the target machine. The router may decide which server may handle the traffic based on a predetermined policy and on the information received in the connection request. From then until the termination of the connection, the traffic may travel directly between client 12 and server 14 or via additional routers for additional content filtering. System 10 may be suitable for a variety of content-based applications, such as, for example, quality of service, caching and billing. Some of these content-based applications route traffic according to its content. Some gather information about the traffic. The use of system 10 may offer the advantages of improved security, fewer fail-over events, scalability, and reduced delays while maintaining the level of machine performance and CPU load as explained below. Firstly, there is no single point of failure in system 10. Secondly, client computer 12 does not directly initiate any communication to server 14. Client computer 12 may not even be aware of the address of server 14, thus eliminating the risk the client attacking the server. Thirdly, most of the traffic travels, without delays, directly from server 14 to client 12 or via router 16 without being processed therein. The direct flow of data from server 14 to client 12 may enable maintaining an existing level of performance and load of the machine's CPU. In some cases, it may also reduce the CPU load compared to standard unsecured TCP/IP client/server communication. Furthermore, RDMA mechanisms may even increase performance. Reference is now made to Fig. 3, which shows a computer having a transaction-aware communication application according to some embodiments of the present invention. The computer may be client 12 or server 14. In a standard network, during communication between users, there is a flow of data through each layer at one end down through the layers in that computer and, at the other end, when the data arrives, another flow of data up through the layers in the receiving computer and ultimately to the end user. In contrast, in some embodiments of the present invention, a multi-channel reliable communication hardware may communicate directly with a transaction-aware communication application as will be explained below. In these embodiments, multi-channel reliable communication hardware may replace the standard network card. In relation to the OSI model, multi-channel reliable communication hardware may replace the lower four OSI layers and some functions of the upper OSI layers as well. A computer 30 may comprise one or more applications 32, one or more application interfaces 34 adapted to capture the network traffic, and multi-channel communication hardware 36. Application interface 34 may be a transport provider and/or a socket application. Computer 30 may also comprise a kernel agent 38. The term "kernel agent" refers to software elements of a kernel system that initialize the hardware elements of the kernel system. These software elements may be further adapted to allocate channels, to handle errors and the like. Commumcation hardware 36 may provide special communication capabilities of transferring data reliably directly from process to process. Non-limiting examples of such communication capabilities include error detection, queuing, memory management, multiplexing and security. Therefore, there may be a significant increase in application-to-application communication performance, because these capabilities no longer need to be provided in the software part of the application-to-application communication. It should be noted that commumcation hardware 36 may comprise a transport communication layer implemented in hardware and may have kernel-bypassing capabilities. Non-limiting examples of communication hardware 36 include new system area network (SAN) technology, for example virtual interfaces (VI), InfiniBand, Fiber-Channel, small computer system interface (SCSI), asynchronous transfer mode (ATM), RDMA over TCP/IP network and even expanded Ethernet. Application interface 34 may be embedded between layers of a standard network. Alternatively, application interface 34 may replace the standard application and/or session network layers of the OSI model. Application interface 34 may also replace the socket application-programming interface (API). Non-limiting examples of API include Berkeley software distribution (BSD), Winsock, and transport data interface (TDI). The standard process of transferring a message between two computers may involve a flow of data through each layer down to the physical layer at one computer and then when the message arrives, another flow of data up though the layers in the receiving computer and ultimately to the application. A client application interface 34 is now described. According to some embodiments of the present invention, application interface 34 may receive the transaction. The data received may include the command, the client computer address, pointers to additional parameter-buffers, and pointers to result-buffers. Application interface 34 may cache the transaction, may divide the transactions into elements, (e.g. command, parameters and returned data) and may send the command and essential parameters to router 16. Client computer 12 may maintain the address of router 16 and in a case of overload or failure of router 16, the address may be replaced to another available router. This procedure may be performed using known load-balancing algorithms. The actual fetch of the parameters and the transfer of the transaction results may utilize RDMA operations without the involvement of application 32 of client 12. Once the transaction is completed, application interface 34 may be notified. Application interface 34 may maintain a timer and in a case of a timeout, client 12 may try to re-send the transaction to another server. It may also be needed to notify router 16 about the failure. Only if a problem persists, client application 32 may be notified about the failure. A server application interface 34 is now described. Server application interface 34 may be adapted to send and receive transactions directly to the hardware through operations such as Send and RDMA. Application interface 34 may be software adapted to convert the transactions and commands received in a new type protocol over technologies such as, for example, Infiniband using RDMA operations to standard applications and/or session layer interfaces of the OSI model. The conversion may be performed in a seamless manner. Non-limiting examples of such protocols include SDP, DAFS, and SRP. Application interface 34 may also be adapted to convert transaction-parameters and the returned result and data. The interface may be an integral part of the operating system supplied by the operating system providers or may be an add-on to a standard operating system. In some cases, it may not be possible to replace the client networking software and/or hardware. For example, when clients 12 are web clients and server 14 is a web server. In such cases, according to some embodiments of the present invention, a proxy element may be added between router 16 and clients 12. The proxy may collect packets provided by client 12 (e.g. TCP/IP packets) and may generate transactions instead of client 12. The proxy may also convert the result data back to packets. Reference is now made to Fig. 4, which is a block diagram of a system for content filtering and load-balancing having a proxy element according to some embodiments of the present invention. A system 40 may comprise at least one client computer 42, at least one server computer 44 and at least one router 46 coupled to server computer 44. System 40 may further comprise one or more proxy element 48 coupled to client computer 42 and to server 46. Proxy 48 may be implemented as software, hardware, an embedded device, an electronic device and any combination thereof. Proxy element 48 may also be integrated into router 46. Proxy element may be adapted to convert packet/frame-oriented communication (e.g. TCP/IP) to transaction-oriented communication, and/or to implement RDMA operations. There may be a need to preserve the true origin (behind the proxy) of the source. In this case, proxy 48 may add the address of client 42 to the command. On the server side the address may be forwarded to the application. Reference is now made to Fig. 5, which is an illustration of a system for content filtering and load-balancing according to some embodiments of the present invention. In these embodiments, a client may be coupled to a standard TCP/IP network, while a server may comprise advanced networking hardware and/or software that have RDMA capabilities (e.g. VI, Infiniband, iSCSI, and TCP/IP with RDMA capabilities). A system 50 may comprise a gateway 56 coupled to at least one server 54 and to a least one client 52. Gateway 56 may comprise both a proxy element and a router and may be adapted to maintain the performance, reliability and offloading benefits of a server farm network while maintaining compliance with the clients' applications and allowing seamless integration. Gateway 56 may be further adapted to add security, content filtering, load balancing, quality of service, accounting, and caching capabilities. Gateway 56 may comprise software packages, embedded devices, electronic devices, and any combination thereof. Gateway 56 may be implemented in more than one machine in any combination. For example, there may be more than one gateway in parallel to allow more availability and increase bandwidth. Additionally, there may be several cascaded gateways in order to add content-based filtering functions such as, for example, security, accounting, quality of service and caching. Gateway 56 may comprise a firewall 60, a decryption/encryption unit 62, and a client-protocol stack 64. Firewall 60 may be a network security unit implemented in software, hardware or any combination thereof. Firewall 60 may be a standard element, which may be adapted to control which network resources (ports) may access gateway 56. If the communication provided to gateway 56 is encrypted and/or authenticated (e.g. IP Sec, SSL, and SET), gateway 56 may have the capabilities to decrypt data. Decryption/encryption unit 62 may be adapted to decrypt information before passing it to the next station. In order to boost performance, decryption/encryption unit 62 may be implemented fully or partially in hardware. Client-protocol stack 64 may be for example, a TCP/IP protocol stack. In such a case, protocol stack 64 may be responsible for transforming TCP/IP packets to a reliable session. In order to boost performance, client-protocol stack 64 may be implemented fully or partially in hardware. Gateway 56 may further comprise a proxy element 66, one or more application-level content filtering filters 68 and a router 70. Proxy element 66 may be adapted to respond to clients 52 as if it is server 54. Proxy element 66 may be adapted to cache the incoming/outgoing data and to form a complete transaction. Proxy 66 may also be enhanced to serve as a cache for servers 54 and to store answers to transactions. When proxy 66 receive a command that match one of the commands stored in its cache, proxy 66 may instantly return the data without having to transfer the command to server 54. For example, in case of a web server, a picture database may be stored in the cache of proxy 66. When a user requests a picture that is stored in the cache, the picture may be provided to that user via client 12 without requesting it from the actual web server. Application-level security filter 68 may be adapted to filter the transactions based on a predefined security policy. Router 70 may be adapted to determine which server to send the command to, base on the server's availability and load. Gateway 56 may further comprise a server-protocol stack 72. Server-protocol stack 72 may be adapted to maintain connection with server 54 using efficient operations (e.g. RDMA). In Infiniband, VI and other new standards, server-protocol stack 72 may be a thin user mode software layer that communicates directly with the hardware. Tunneling over a TCP/IP protocol stack may also be used for load-balancing and/or content filtering without improving performance. The table below describes non-limiting examples of transactions divided to several elements according to some embodiments of the present invention. The transactions may also be divided in a different manner. While certain features of the invention have been illustrated and described herein, many modifications, substitutions, changes, and equivalents will now occur to those of ordinary skill in the art. It is, therefore, to be understood that the appended claims are intended to cover all such modifications and changes as fall within the true spirit of the invention.

Claims: What is claimed is: 1. A method comprising: having a router process a connection request from a first computer having multi-channel reliable network hardware; having said router send an acknowledgment for said connection request to said first computer so that a direct connection is established between said first computer and a second computer having multi-channel reliable network hardware; and having said router select said second computer from a group of computers having multi-channel reliable network hardware according to information in said connection request, said information comprising opaque data. 2. The method of claim 1, wherein said router processes said connection request within or above a transport layer only. 3. The method of claim 1 , further comprising: having said router filter said connection request according to a predefined policy 4. A method comprising: enabling a connection between a first computer having multi-channel reliable network hardware and a second computer having multi-channel reliable network hardware so that upstream traffic from said first computer to said second computer is communicated over said connection via a router and downstream traffic from said second computer to said first computer is communicated directly over said connection. 5. The method of claim 4, further comprising: having said router process said upstream traffic within or above a transport layer only; and/or having said router filter said upstream traffic according to a predefined policy; and/or having said router gather information on said upstream traffic; and/or having said router select said second computer from a group of computers having multi-channel reliable network hardware according to information in said upstream traffic. 6. A method comprising: having a router process traffic over a connection from a first computer to a second computer, both computers having multi-channel reliable network hardware; enabling said second computer to directly transfer data to said first computer over said connection using remote direct memory access messages; and having said router process non-remote-direct-memory-access traffic from said second computer to said first computer over said connection. 7. The method of claim 6, wherein said router processes said traffic within or above a transport layer only. 8. The method of claim 6, further comprising: having said router filter said traffic according to a predefined policy; and/or having said router gather information on said traffic; and/or having said router select said second computer from a group of computers having multi-channel reliable network hardware according to information in said traffic. 9. A method comprising: having a router transfer transaction traffic between a first computer and a second computer while processing only a portion of said transaction traffic, both computers having multi-channel reliable network hardware. lO.The method of claim 9, wherein said portion comprises: commands and command parameters of said transaction traffic and/or a connection request from said first computer to said second computer and/or upstream traffic from said first computer to said second computer. 11.The method of claim 9, wherein said processing comprises: filtering said portion according to a predefined policy; and/or gathering information about said portion. 12.The method of claim 9, further comprising: having said router select said second computer from a group of computers having multi-channel reliable network hardware according to information in said portion. 13.The method of any of claims 1, 4, 6 and 9, further comprising: having said router select said second computer from a group of computers having multi-channel reliable network hardware according to load-balancing considerations. 14. A method comprising: converting a session of packet-oriented traffic into transactions comprising remote direct memory access messages. 15. The method of claim 14, wherein said packet-oriented traffic is transport control protocol traffic. lό.The method of claim 14, wherein said converting comprises: terminating said session of packet-oriented traffic; extracting data from said session; and sending said data as remote direct memory access messages to memory of at least one remote node having multi-channel reliable network hardware. 17.The method of claim 14, further comprising: filtering said traffic according to a predefined policy; and/or gathering information about said traffic according to a predefined policy; and/or routing said transactions according to information in said traffic; and/or routing said transactions according to load-balancing considerations. 18. A system comprising: one or more routers able to process transactions between two or more computers and to direct said transactions among said computers according to information in said transactions, said computers having multi-channel reliable network hardware. 19.The system of claim 18, wherein said routers are arranged in a cascaded manner, and/or wherein one or more of said routers is able to direct said transactions among said routers according to information in said transactions, and/or wherein one or more of said routers is able to direct said transactions among said computers and/or computers according to load-balancing considerations, and/or wherein one or more of said routers is able to filter said transactions according to a predefined policy and/or gather information on said transactions. 20.A system comprising: one or more server computers having multi-channel reliable network hardware; and a proxy able to receive packet-oriented traffic from a client computer, to convert a session of said packet-oriented traffic into transactions comprising remote direct memory access messages, and to send said transactions to one of said server computers. 21. The system of claim 20, wherein said packet-oriented traffic is transport control protocol traffic. 22.The system of claim 20, further comprising: one or more routers able to process said transactions within or above a transport layer only. 23. The system of claim 22, wherein one or more of said routers is able to direct said transactions among said server computers and/or said routers according to information in said transactions and/or load-balancing considerations. 24.The system of claim 22, wherein one or more of said routers is able to filter said transactions according to a predefined policy and/or gather information on said transactions. 25. The system of any of claims 17 and 20, wherein said multi-channel reliable network hardware is selected from a group including: virtual interface hardware, Infiniband hardware, Fiber-Channel hardware, small computer system interface hardware, asynchronous transfer mode hardware, expanded Ethernet hardware, and remote direct memory access over transport control protocol over internet protocol network hardware. 26. The system of any of claims 17 and 20, wherein said transactions are from a group including: database transactions, remote procedure call transactions, storage-access transactions, file-access transactions, and socket transactions.

Inventors: HAVIV YARON, HAVIV, YARON
Applicants: HAVIV YARON, VOLTAIRE ADVANCED DATA SECURIT, HAVIV, YARON, VOLTAIRE ADVANCED DATA SECURITY LTD.
Application year: 2001
Main classification: G06F
IPC codes: G06F13, H04L12, H04L29