什么是直通负载平衡器?与代理负载均衡器有何不同? [英] What is pass-through load balancer? How is it different from proxy load balancer?

查看:155
本文介绍了什么是直通负载平衡器?与代理负载均衡器有何不同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google Cloud Network负载均衡器是直通负载均衡器,而不是代理负载均衡器. ( https://cloud.google.com/compute/docs/load-balancing /network/).

我通常无法通过LB找到任何资源. HAProxy和Nginx似乎都是代理LB.我猜想通过LB会将客户端直接重定向到服务器.在什么情况下会是有益的?

除了传递和代理之外,是否还有其他类型的负载均衡器?

解决方案

很难找到用于传递负载平衡的资源,因为每个人都提出了一种不同的调用方式:传递,直接服务器返回(DSR) ,直接路由......

我们在这里称它为直通.

让我尝试解释一下这件事:

关于其他负载均衡器类型,没有明确的列表,下面是一些示例:

关于直通相对于其他方法的优势:

Google Cloud Network load balancer is a pass-through load balancer and not a proxy load balancer. ( https://cloud.google.com/compute/docs/load-balancing/network/ ).

I can not find any resources in general on a pass through LB. Both HAProxy and Nginx seems to be proxy LBs. I'm guessing that pass through LB would be redirecting the clients directly to the servers. In what scenarios it would be beneficial?

Are there any other type of load balancers except pass-through and proxy?

解决方案

It's hard to find resources for pass-through load balancing because everyone came up with a different way of calling it: pass-though, direct server return(DSR), direct routing,...

We'll call it pass-through here.

Let me try to explain the thing:

Regarding other load balancer types there can't be a definitive list, here are a few examples:

As for the advantages of pass-through over other methods:

  • Some applications won't work or need to be adapted if the addresses on the IP packets is changing, for example the SIP protocol. See the Wikipedia for more on applications that don't play along well with NAT https://en.wikipedia.org/wiki/Network_address_translation#NAT_and_TCP/UDP.

    Here the advantage pass-through is that it does not change the source and destination IPs.

    Note that there is a trick for a load balancer working at a higher layer to keep the IPs: the load balancer spoofs the IP of the client when connecting to the backends. As of this writing no load balancing product uses this method in Compute Engine.

  • If you need more control over the TCP connection from the client, for example to tune the TCP parameters. This is an advantage of pass-through or NAT over TCP (or higher layer) proxy.

这篇关于什么是直通负载平衡器?与代理负载均衡器有何不同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆