when Nginx acts as an agent, the ss can see that a TCP connection is created with the client and the server, respectively.
does requesting LVS create a TPC connection when proxying to the server?
when Nginx acts as an agent, the ss can see that a TCP connection is created with the client and the server, respectively.
does requesting LVS create a TPC connection when proxying to the server?
after studying for a day, it is concluded that the client will connect to the LVS cluster (including LVS and real server)) through TCP, but the LVS server will not establish another TCP connection with real server
, but will only forward the TCP message
NAT mode : the principle is to modify the address of the IP
message and the port of the TCP
message, and then forward the packet without TCP connection behavior, but the customer believes that they are connected to an IP address, and the server groups with different IP addresses also think that they are directly connected to the customer
FULLNAT mode : the principle is also to modify the address of the IP
message and the port of the TCP
message. There is no TCP connection behavior, but when forwarding, it changes both the source address and the destination address, so from the client point of view, the connection established with LVS is also established with LVS from the back end.
DR mode : the principle is to modify the requested mac address (layer 2), and then forward the packet. There is no TCP connection behavior
IP tunnel mode : LVS and real server
use IP tunnel technology, no TCP connection is established with real server
if you understand it incorrectly, you are welcome to discuss
IP load balancing Technology in LVS Cluster
1.lvs ip:47.75.177.231 2.webserver: ip:47.75.177.231:80 lvs configuration < H1 >! bin bash < H1 > echo 1 > proc sys net ipv4 ip_forward IPVSADM= sbin ipvsadm $IPVSADM-C $IPVSADM-A-t 47.75.177.231 8088-s wrr $IPVSADM-a-t 47.75.177.2...
I understand that lvs is a four-tier load balancer and nginx is a layer 7, but I still can t understand why we still need lvs? when there is nginx. Are there any good examples to understand? ...
The DR mode is sent to the back-end server by modifying the MAC hair of the packet, but if the back-end server receives the packet but finds that it does not accept the IP address, shouldn t the packet be discarded? What is the means to get the back-end...
DR mode of LVS theoretically VIP accepts requests to modify the MAC address according to the algorithm and forwards it directly to the rear server. But I grabbed the packet through Tcpdump and found that VIP accepted a request, and all the rear servers ...