REDIRECTING CLIENT CONNECTION REQUESTS AMONG SOCKETS PROVIDING A SAME SERVICE
First Claim
1. :
- A method for redirecting connection requests at an operating system kernel level comprising;
receiving at an operating system kernel comprising a socket layer and a transport protocol layer, from a master application server, a request to establish a separate socket for each of a plurality of slave servers, wherein said master application is enabled to spawn said plurality of slave servers and distribute each said separate socket to one of said plurality of slave servers;
receiving at said operating system kernel, from said master application server setting up said plurality of slave servers to provide a same service as provided by said maser application server, a socket option call with a list of each said separate socket for said operating system kernel to set in said socket layer as providing said same service and to bind to a same port number;
responsive to receiving said socket option call at said operating system kernel, binding each said separate socket in said list to said same port number and one of a plurality of internet protocol addresses and setting a separate flag at said socket layer in each said separate socket of said list to designate each said separate socket of said list as a socket which references at least one other socket designated in said list; and
responsive to said operating system kernel receiving an incoming connection request for a first socket from said list that is full and said socket option call is enabled for said first socket, redirecting said connection request to a second socket in said list that is not full, such that said operating system kernel redirects said connection request to said second socket providing said same service as said first socket.
0 Assignments
0 Petitions
Accused Products
Abstract
A method, system, and program for redirecting client connection requests among sockets providing a same service are provided. An application requests multiple sockets from a kernel. In addition, the application generates a socket call option to bind the sockets to a particular port number and passes a list of the sockets to the kernel, where the list indicates that the sockets will all provide access to server systems providing the same service. In response, the kernel sets up the sockets, bound to the same port, and set to reference one another. Then, when a connection request is received for a first socket in the list with a queue that is full, the kernel redirects the connection request to a second socket in the list with available queue space. Thus, rather than drop the connection request from the first socket when it lacks available queue space, the connection request is redirected to another socket providing access to the same service.
19 Citations
4 Claims
-
1. :
- A method for redirecting connection requests at an operating system kernel level comprising;
receiving at an operating system kernel comprising a socket layer and a transport protocol layer, from a master application server, a request to establish a separate socket for each of a plurality of slave servers, wherein said master application is enabled to spawn said plurality of slave servers and distribute each said separate socket to one of said plurality of slave servers; receiving at said operating system kernel, from said master application server setting up said plurality of slave servers to provide a same service as provided by said maser application server, a socket option call with a list of each said separate socket for said operating system kernel to set in said socket layer as providing said same service and to bind to a same port number; responsive to receiving said socket option call at said operating system kernel, binding each said separate socket in said list to said same port number and one of a plurality of internet protocol addresses and setting a separate flag at said socket layer in each said separate socket of said list to designate each said separate socket of said list as a socket which references at least one other socket designated in said list; and responsive to said operating system kernel receiving an incoming connection request for a first socket from said list that is full and said socket option call is enabled for said first socket, redirecting said connection request to a second socket in said list that is not full, such that said operating system kernel redirects said connection request to said second socket providing said same service as said first socket. - View Dependent Claims (2, 3, 4)
- A method for redirecting connection requests at an operating system kernel level comprising;
Specification