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地址,对报文进行源网络地址转 ...
【技术特征摘要】
【专利技术属性】
技术研发人员:孙凯,林涛,
申请(专利权)人:杭州华三通信技术有限公司,
类型:发明
国别省市:86
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。