负载均衡方法及装置制造方法及图纸

技术编号:6069840 阅读:225 留言:0更新日期:2012-04-11 18:40
本发明专利技术公开了负载均衡方法及装置。方法包括:对于每个负载均衡设备,在该负载均衡设备与后端服务器群相连的接口上配置IP地址,IP地址的协议版本与后端服务器群支持的IP地址协议版本相对应;负载均衡设备接收客户端发来的业务访问请求报文,利用预设的负载均衡算法确定报文应发往的服务器,判断该服务器与该客户端使用的IP地址协议版本是否一致,若否,在与后端服务器群相连接口上配置的IP地址中,选择一个与应发往的服务器的IP地址协议版本相同的IP地址,对报文进行SNAT处理,其中,SNAT处理后的源IP地址为选定的IP地址,将报文发送给应发往的服务器。本发明专利技术实现了在负载均衡设备的前端和后端的IP地址协议版本不完全相同情况下的负载均衡。

Load balancing method and device

The invention discloses a load balancing method and device. The method includes: for each load balancing device, the load balancing equipment and back-end server group connected to the interface configuration of IP address, IP address protocol version and a backend server support IP address protocol version corresponding; load balancing device to receive the client service access request message, use the default load balancing algorithm to determine the message should be sent to the server, the server and the client to determine the use of IP address protocol version is consistent, if not, when connected to the interface with IP address configuration and back-end server group, select the version of IP protocol and an address should be sent to the server in the same IP address, the message is processed by SNAT among them, the source IP address after SNAT treatment for the selected IP address, transmits the message to be sent to the server. The invention realizes load balancing under the condition that the IP address protocol version of the load balancing device is different from the front end and the back end.

【技术实现步骤摘要】

【技术保护点】
一种负载均衡方法,应用于负载均衡设备上,所述负载均衡设备位于后端服务器群前为后端服务器提供负载均衡服务,所述负载均衡设备与后端服务器群相连的接口上配置有IP地址,且配置的IP地址的协议版本与后端服务器群支持的IP地址协议版本相对应,其特征在于,该方法包括:负载均衡设备接收客户端发来的业务访问请求报文,利用预设的负载均衡算法确定该报文应发往的服务器;负载均衡设备判断该服务器使用的IP地址协议版本与客户端使用的IP地址协议版本是否一致,若不一致,则在本设备与后端服务器群相连的接口上配置的IP地址中,选择一个与应发往的服务器的IP地址协议版本相同的IP地址,对报文进行源网络地址转换SNAT处理,其中...

【技术特征摘要】

【专利技术属性】
技术研发人员:孙凯林涛
申请(专利权)人:杭州华三通信技术有限公司
类型:发明
国别省市:86

网友询问留言 已有0条评论
  • 还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。

1