A method and system for enhancing a load balancing network's ability to load
balance
sessions is presented. A session identifier is placed within the TCP packet to
enable a new mechanism of load distribution and connection grouping within a load
balancing system. Specifically, TCP is invoked by a user application to obtain
a unique session identifier value. On receiving such a packet, the destination
load balancing system hashes over at least the session identifier value, and the
node corresponding to the results of the hash algorithm acquires the packet. This
method of hashing ensures that the same node acquires all subsequently received
TCP packets possessing the same session identifier regardless of the source IP
address or source port information. The node then places an identical session identifier
value in the form of a response session identifier in its TCP response packet.
When the TCP packet with response session identifier is received at a load balancing
system, the node whose session identifier matches the response session identifier
acquires it.