Computer Engineering and Applications ›› 2013, Vol. 49 ›› Issue (24): 93-96.

Previous Articles     Next Articles

Research of Linux server multiple Ethernet ports load balancing algorithm

XING Fu, YANG Feng, YAN Xiaoxiang, WANG Wenzhi   

  1. Department of Computer Science and Technology, School of Mechanical Electronic & Information Engineering, China University of Mining and Technology(Beijing), Beijing 100083, China
  • Online:2013-12-15 Published:2013-12-11

Linux服务器下多网口负载均衡算法的研究

幸  福,杨  峰,燕霄翔,王文志   

  1. 中国矿业大学(北京) 机电与信息工程学院 计算机科学与技术系,北京 100083

Abstract: Network storage architecture requires a high reliability and high availability back-end storage server to provide network storage services, but the single Ethernet port configuration restricts the server data transfer performance. Linux kernel bonding technology has realized multiple physical network ports aggregate to a single virtual network port. But when receiving data, this technology just through the ARP consultation mechanism realizes statically distributing multiple network port, therefore performance defects exist in the practical. In view of this, after researching related technology and algorithm, this paper puts forward another improved algorithm, which is based on adaptive load balance dynamic receiving algorithm, and realizes this algorithm by netfilter technology and so on. The actual test verification is done. The new algorithm can significantly improve the multiple network port server transfer throughput rate while receiving data.

Key words: Linux bonding, load balancing, Address Resolution Protocol(ARP), netfilter

摘要: 网络存储架构需要一个高可靠性和高可用性的后端存储服务器来提供网络存储服务,而单网口配置制约了服务器数据传输性能。目前Linux内核bonding技术已经实现了将多个物理网口聚合为一个单一虚拟网口的方法。但这种不对称的技术在实现接收数据负载均衡时,只是通过ARP协商机制实现静态分配多网口,因此在实际应用中存在性能上的缺陷。鉴于此,在对现有的相关技术和算法进行研究后,提出了另外一种在此基础上改进的算法,即基于适应性负载均衡的动态接收算法,利用netfilter等技术对此算法进行了实现,进行了实际测试验证。新算法能显著提高多网口服务器接收数据时网络传输吞吐率。

关键词: Linux bonding, 负载均衡, 地址解析协议, netfilter