Multi-card under Linux server load balancing and Implementation

Author
LuMingHuai
Advisor
GongZhengHu
School
National University of Defense Science and Technology
Major
Software Engineering
Classification
TP393.05 Network equipment
Degree
Master's thesis
Year
2006
Downloads
161
Citations
1

Request the full text

Abstract

As network traffic increases and the increasing complexity of network structure , the possibility of network congestion is also growing . If we do not effectively control the network load , it will make the network load imbalance and even congestion and waste of resources. Therefore, the current network load balancing technology to become one of the focus areas . Load balancing technology includes two aspects: First, the server cluster system to achieve load balancing , and second, within a single server load balancing on multiple NICs . This paper first discusses the load balancing and high availability of the basic concepts and principles , analyzes the server cluster system's load balancing technology and the Linux Virtual Server concepts and implementation mechanisms . Then, the paper focuses on the Linux server multi-card (NIC) to bind environment (bonding) technology and load balancing technology . The bonding is achieved by Linux NIC driver on top of the data link layer under the virtual network adapter software implementation . Through this technique , the server on the switch connected to multiple network cards are not only bound to an IP, while the MAC address is also set to the same , and thus constitute a virtual network adapter . Intelligent virtual NIC decided according to some algorithm that physical NIC to transfer data , load balancing , and improve server throughput and availability. Finally, analysis of the current linux bonding of several load-balancing algorithm and its shortcomings and deficiencies raised against these three multi-card case TCP / IP based transmission algorithm. The first one is based on the IP stream transmission scheduling algorithm that sends data packets based on source and destination IP decides to send the interface, the second algorithm is based on the TCP stream transmission scheduling algorithm that number by the destination host , destination host subnet subnet number and destination port number for the session jointly decided to send a data packet interface number and MAC address of this algorithm XOR algorithm is somewhat similar , because it is also a XOR calculations , the third algorithm the second algorithm is proposed based on the state of the transmission based on traffic scheduling algorithm, this algorithm is analyzed. Paper gives the first two algorithms. Test results show that the algorithm has better load balancing and high throughput and availability.

Table of contents

Abstract 9-10 ABSTRACT 10-11 The first chapter 11-16 1.1 project background 11-12 1.2 Research Overview 12-14 1.2.1 linux bonding technology and several load balancing algorithm 12-13 1.2.2 server load balancing cluster system research 13-14 1.3 Research objectives and research 14-15 1.3.1 load balancing technology and high-availability technologies 14 1.3.2 linux server load balancing technology and multi-card balancing algorithm 14-15 1.3.3 TCP / IP based protocol load balancing algorithm 15 1.3.4 testing and analysis 15 1.4 paper structure 15-16 Chapter Web server load balancing 16-23 2.1 Basic concepts and theories 16-17 2.1.1 Load Balancing Technical Overview 16 2.1.2 Network equalization principle 16-17 2.2 load balancing to achieve strategic 17-18 2.3 load balancing technology to achieve the level 18-23 Chapter III multi-card under Linux server load balancing algorithm 23-37 3.1 linux bonding technology 23-24 3.2 linux server sends multiple NICs algorithm 24-26 3.3 based on TCP / IP protocol proposed transmission scheduling algorithm 26-33 3.3.1 TCP flow-based transmission scheduling algorithm 26-29 3.3.2 IP flow-based transmission scheduling algorithm 29-30 3.3.3 Flow-based transmission scheduling algorithm state 30-33 3.4 linux server load balancing algorithm in multi-card analysis and comparison 33-37 3.4.1 Analysis of rotary transmission scheduling algorithm 33-34 3.4.2 Backup sends scheduling algorithm analysis 34 3.4.3 MAC address to send scheduling algorithm analysis 34 3.4.4 IP-based transmission scheduling algorithm for flow analysis 34 3.4.5 sends scheduling algorithm based on TCP flow analysis 34-35 3.4.6 sends scheduling algorithm based on traffic state analysis 35-37 Chapter multi-card under linux server load balancing software design 37-66 4.1 linux server load balancing multiple NICs overall structural design 37 4.1.1 linux bonding technology 37 4.2 driver design 37-40 4.2.1 Linux driver design process 37-38 4.2.2 linux bonding driver installation and configuration 38-40 4.3 scheduler design 40-62 4.3.1 Linux network stack processing of data 40-41 4.3.2 scheduler used in the design process and related data structures 41-48 4.3.3 IP flow-based transmission scheduling algorithm design 48-54 4.3.4 TCP flow-based transmission scheduling algorithm design 54-59 4.3.5 Flow-based transmission scheduling algorithm design state 59-62 4.3.6 scheduling configurability 62 4.4 fault migration implementations 62-63 4.5 Test Results and Analysis 63-66 Chapter server cluster load balancing technology research 66-80 5.1 main cluster software research 66-76 5.1.1 Linux Virtual Server Concepts (lvs) 66-67 5.1.2 implementation 67-73 5.1.3 kernel connection scheduling algorithm 73-76 5.2 A new dynamic load balancing cluster solution 76-80 5.2.1 Dynamic load balancing mechanism 76-77 5.2.2 weight calculation 77-80 Chapter VI Conclusion 80-83 6.1 This major work 80-81 6.1.1 linux kernel-based load balancing technology research 80-81 6.1.2 linux kernel-based load balancing algorithm 81 6.1.3 server cluster load balancing technology research 81 6.2 next major work 81-83 Thanks 83-84 References 84-86 authors during the study period academic achievements 86

Related dissertations

  1. Research and Design of Scalable Network Server Based on Linux
  2. A Successful Design on Load Balancing Method Based on Campus Network Program
    HuangChengBing ·Southwest Jiaotong University ·2013 ·Master's thesis
  3. Research and Design of Large Scale Video Tran-Scoding Scheduling Algorithm
  4. The Application of Load Balance for E-business Website
    JieZhen ·Tianjin University ·2012 ·Master's thesis
  5. Research and Application of Multi-Processing Load Balancing Technology Based on Multi-Core in Cloud Computing
    WuHeSheng ·Nanjing University ·2013 ·Doctoral dissertation
  6. Research on the Technologies of Internet Traffic Localiztion
    YuJiang ·Jilin University ·2013 ·Master's thesis
  7. The Research of Dynamic Resource Management Key Technologies in Cloud Computing
    FanYing ·Zhejiang Sci-Tech University ·2014 ·Master's thesis
  8. Research and application of pushing send technology of server cluster based on
  9. The Research for Distributed Control and Addressing Mode of Software Defined Network
  10. Research on Cloud Resource Scheduling Method Across Cloud Computing Federation
    LvQiuYun ·Wuhan University of Technology ·2013 ·Master's thesis
  11. Simulation and Implementation for Robust Energy-efficient Routing Algorithms Based on Network Topology in IP Backbone Networks
    LiuJinZuo ·Northeastern University ·2013 ·Master's thesis
  12. Research on Resource Scheduling Algorithms in Cloud Computing Environment
    FanZongQin ·Beijing Jiaotong University ·2014 ·Master's thesis
  13. Design and Implementation of Crawler Subsystem of Alipay Merchant Risk Monitoring System
    QianXuanTong ·Harbin Institute of Technology ·2012 ·Master's thesis
  14. Application and Research of Digital Room Service System Based on Cluster Server
  15. Design and Implementation of Video Monitoring Management and Load Balancing in Fuzhou
  16. Design and Implement of Reapply System of China Graduate Student
  17. The Design and Implementation of the Intelligent Cluster Rendering System
    MaHaiYin ·Shandong University ·2013 ·Master's thesis
  18. Shandong Unicom Online Self-service Research and Design
    LiWeiXia ·Shandong University ·2013 ·Master's thesis
  19. Office system design and implementation of mobile collaboration
    ZhangWanJiang ·Heilongjiang University ·2013 ·Master's thesis
  20. Research and Implementation of Real-time Backup Platform