H3C Technologies H3C SecBlade LB Cards User Manual
Page 12
6
Figure 6 Work flow of Layer 7 server load balancing
Layer 7 server load balancing operates in the following way:
Step 1 through 3—Host and the LB product establish a TCP connection.
4.
Host sends a service request, using VSIP as the destination address.
5.
Upon receiving the request, the LB product selects an appropriate server group for the request
according to a real service group method, uses an algorithm to calculate to which server in the
server group it distributes the request, and then caches the request.
6.
The LB product sends an SYN packet to Server. The sequence number is the sequence number of
the SYN packet sequence number sent by the host.
7.
Server sends an SYN ACK packet, using the destination IP as Host IP.
8.
After receiving the SYN ACK packet, the LB product responds with an ACK packet.
9.
The LB product changes the destination IP and TCP sequence number of the request cached at step
5, and sends them to Server.
10.
Server sends a response to the LB product, using the destination IP as Host IP.
11.
The LB product changes the source IP and TCP sequence number in the response, and sends them
to Host.