Design and Implementation Load Balance System on Keepalive TCP Connection

Author
KeLiuYang
Advisor
FengYong
School
University of Electronic Science and Technology
Major
Computer Software and Theory
Classification
TP393.05 Network equipment
Degree
Master's thesis
Year
2012
Downloads
53
Citations
0

Request the full text

Abstract

With the rapid growth of Internet technology, online payment become more andmore frequent, online real-time business payment system needs Internet`s high saftyand concurrence because it require high availability and processing speed. Althoughthe expand of Internet bandwidth and enhance of physical equipment can meetsreal-time processing system`s needs, but the model base on C/S structure loose thepace to follow needs of huge concurrence. Besides, with the amount of real-timedealing growth, the switch center in business processing system gradually become abottle-neck, and it’s a single point in the whole processing system. If the switch centercrash, all business will terminate, so enhace the processing ability of switch center andfix the singal hole became emergency.Deploy a load balance cluster is a doable way to fix the problem of lackingprocessing ability, but due to the especial of real-time processing system, which usekeepalived TCP connection, and we can hardly find a load balance technology tosupport keepalived TCP connection, so we try to fix that problem. We do a lot ofresearch in analyse the popular load balance technology, keepalived TCP connectionand real-time business processing system. Finally, we introduce a model of keepalivedload balance system and implement it.The works contain in the whole article is below.1) We bring forward a way and technology to realize keepalived load balancesystem which can be used in the real-time business processing system, we achieve it byresearch and analyze the regular load balance system now a days. Then we finish thekeepalived load balance system`s design, programming and testing, that keepalivedload balance system have been using in the real-time business processing system andruns steady.2) Implement a nonblocking programming model based on thread with priority, theload balance system use this programming model to handle all dispatch jobs, and communicate between different processes, guarantee the high availability ofresponding and dispatching processing package.3) Fix the single hole problem, we develop a protocol to handle communicationbetween master load balance system and the backup based on Virtual RouterRedundant Protocol, we use virtual ip address to access the switch center, when oneswitch center crash, the backup switch will take the job, that`s implement the highavailability4) we do a full-scale testing to validate the load balance system, we do it fromsome aspect such as functional, exceptional, performance and stability, and we suggesta way to enhance the system at last.

Table of contents

Summary 5-6 ABSTRACT 6-12 first chapter 12-17 1.1 Background 12 <br / > 1.2 Current Situation analysis 12-14 1.3 research program 14-16 1.3.1 research objectives 14-15 1.3.2 Research content structural arrangements 15-16 1.4 papers 16-17 chapter load balancing system and real-time payment system Introduction 17-29 2.1 TCP connections and load balancing techniques long Introduction 17-23 2.1.1 load balancing implementations 18-20 2.1.2 load balancing algorithm 20 - 22 2.1.3 load balancing policy analysis 22-23 2.2 real-time payment system Introduction 23-27 2.2.1 Introduction to real-time transaction processing payment system 23-24 2.2.2 Introduction payment transaction system messages 24-25 2.2.3 Introduction exchange trading systems and 25-26 2.2 .4 network controller Introduction 26 2.2.5 Clearinghouse load balancing demand 26-27 2.2.6 current problems of load balancer 27 2.3 Summary 27-29 Chapter III long connection load balancing design and implementation 29-52 3.1 system design requirements and background 29 3.2 overall system design 29-31 3.2.1 design Goals 29-30 3.2.2 design Principles 30-31 <br / > 3.3 load balancer access design 31-34 3.3.1 network design 31-33 3.3.2 long connection of asynchronous non-blocking connections 33-34 3.3.4 connection Manager 34 3.4 long connection load balancing design 34-40 3.4.2 non-blocking I / O operations 35-36 3.4.3 non-blocking packet reception 36-37 3.4.4 nonblocking packet transmission 37-38 <br / > 3.4.5 packet transmission path selection 38-39 3.4.6 with the weight load balancing scheduling algorithm 39-40 3.5 health check function design 40 -43 3.5.1 health discovery mechanism functional requirements 40 3.5.2 health inspection model 40-41 3.5.3 exception Handling 41-43 3.6 hot standby function design 43-45 3.6.1 virtual Router Redundancy Protocol 43 inter- process communication design nbsp 3.6.2 ; 43-44 3.6.3 load balancing process with hot standby process communication protocol design 44-45 3.7 high-availability design 45-50 <br / > 3.7.1 process design 45-46 3.7.2 load balancer startup process 46-48 3.7.3 auxiliary monitoring and management tools designed 48 -50 3.7.4 system signal processing design 50 3.8 Summary 50-52 Chapter IV long connection load balancer installation and deployment 52-63 4.1 installation package before installation instructions and prepare 52-53 4.2 installation steps 53 4.3 configuration file description 53-54 4.4 start-stop command 54-56 4.4.1 start the load balancer 54-55 4.4.2 View current status 55 <br / > 4.4.3 stop load balancer 55-56 4.5 to view the status 56-57 4.5.1 view the process pid file 56 4.5 .2 View VRRP packets and VIP 56 4.5.3 load balancing using htop View thread 56-57 4.5.4 load balancing using top view thread 57 4.6 View Log 57-60 4.6.1 start properly complete log 58 4.6.2 standby switch log 58-59 4.6.3 warning log information 59 4.6.4 error log information 59-60 4.6.5 statistical log 60 4.7 Check pipe file 60 4.8 management tool 60-62 4.8.1 restart the specified load balancing thread 61 4.8.2 Check the load equalizer current state of 61-62 4.9 Summary 62-63 Chapter detailed testing and performance analysis 63-81 5.1 testing Objective and Methods 63 5.2 test deployment 63-64 5.2.1 test Equipment 63-64 5.2.2 network Topology 64 5.3 unit testing 64-66 5.3.1 nonblocking connect test 65 5.3.2 nonblocking accept test 65 <br / > 5.3.3 newspaper article atomic test 65 5.3.4 weighted round-robin scheduling module test 65-66 5.4 functional Test 66-71 5.4.2 test load balancing 67-68 5.4.3 test health checks 68 5.4.4 testing hot standby function 68-71 5.4.5 high Availability test 71 5.5 abnormal test 71-73 5.5.1 real server off / resume testing 71 -72 5.5.2 load balancer standby switch test 72-73 5.6 performance test 73-76 5.7 stability Test 76 -78 5.9 test results and performance evaluation 78-79 5.10 Summary 79-81 Chapter VI Conclusion and Outlook 81-85 6.1 Full Summary 81-82 6.2 follow-up 82-85 Thanks 85-86 References 86-89

Related dissertations

  1. Research and Implementation on Power Supply Enterprises Security Apparatus Management System
  2. Design of supervisory control configuration software based on XML document
  3. Research on the Optimization Mechanisms for Hot Standby Based on Remus
  4. The Optimization Research on Balise On-board Antenna
    GongShuiQing ·Beijing Jiaotong University ·2014 ·Master's thesis
  5. The Research and Application of Hot-standby Technology in Central Control System of EMU Depot
    WangFei ·China Academy of Railway Sciences ·2013 ·Master's thesis
  6. Load Banlance for Clound Computing Based on Ant Colony Algorithm
    LiFengHua ·Yunnan University ·2013 ·Master's thesis
  7. The Design and Implementation of Data Transmission and Synchronization in the Prime Rack Firewall System
    ChengYiMing ·Beijing Jiaotong University ·2012 ·Master's thesis
  8. Research on the Availability of Virtual Machine Hot Standby Based on Xen
    RenZhenFang ·Zhengzhou University ·2012 ·Master's thesis
  9. The Design and Implemention of High Availability Engine of URL Classfication
  10. Research and Implementation of Office Automation System Based on Knowledge Management
    WangYing ·Jilin University ·2012 ·Master's thesis
  11. The Application Research of PDM in Aerospace Enterprise
  12. Design and Implementation of a High Availability Server Cluster System Module
  13. Research on Availability of Virtual Machine Hot Standby Based on Double Shadow Page Tables
    WangHuiLing ·Zhengzhou University ·2013 ·Master's thesis
  14. Key Technique Research of High Redundancy for Broadband Remote Access Server
  15. Realization and Software Simulation of High-Speed Railway Disaster Prevention System’s Station Computer Layer
    WangDaWei ·Southwest Jiaotong University ·2012 ·Master's thesis
  16. Research on Key Techniques of Workflow for Grid Computing Environments
    ZhengRan ·Huazhong University of Science and Technology ·2006 ·Doctoral dissertation
  17. Standby Allocation of Reliability Systems and Stochastic Comparisons of Coherent Structures
    ZhangZhengCheng ·Lanzhou University ·2008 ·Doctoral dissertation
  18. Design and Implementation of Order Processing System Based on Fault-tolerant Software Bus
    WangSaiFeng ·Zhejiang University ·2008 ·Master's thesis
  19. Study on On-Board Control System of Electric Locomotive Based on CAN Bus
    FengHao ·Southwest Jiaotong University ·2003 ·Master's thesis
  20. Application on Computer Network System Based on Stratus Technologies
    ZhangXiaoHong ·Harbin Engineering University ·2003 ·Master's thesis