Network Load Balancing System Design and Implementation
- Author
- HuYongPei
- Advisor
- ChenJingChun
- School
- University of Electronic Science and Technology
- Major
- Computer Software and Theory
- Classification
- TP393.03 Network interconnect technology
- Degree
- Master's thesis
- Year
- 2001
- Downloads
- 174
- Citations
- 1
Abstract
With the explosive growth of the Internet and its increasingly important role in our lives, the traffic on the Internet is increasing dramatically, which has been growing at over 100% annual rate. The workload on the servers is increasing rapidly so that servers will be easily overloaded for a short time, especially for a popular web server. So that there must be a method to overcome the overloading problem of the servers. This paper describe a method to design and implement a Network Application Workload Balancing System .It solves two problems:(l)How to correctly capture the users requests and send it to the real server.(2)How to dynamically control and configure the workload balancing system in the kernel level of the operating system .This paper demonstrates how to design and implement the system by adding kernel modules into the TCP/IP kernel stack and using virtual device driver to control and configure the system. This paper can be separated into five parts.The first part describes the whole system in brief.Then it describes the related network technology, analyses the TCP/IP protocol and gives an introduction to some of the Load Balancing methods. Because the Network Load Balancing System is designed on a given operating system ,so this paper analyses how the TCP/IP protocol suite is designed and implemented in Linux and how to design the device driver in Linux.Both of them are important in the design and implement of the Network Load Balancing System.In the end of the paper, I give a simple test of the whole system and point out some problems which should be considerated to improve the system.
Table of contents
The Chinese summary 5-6
English summary 6-7
Chapter 1 Overview 7-9
Chapter II technical foundation 9-37
2.1 Basic knowledge of network protocols 9-30 2.1.1 TCP / IP protocol
Introduction 9-15
2.1 .2 IP protocol the 15-18 2.1.3 TCP
18-28
2.1.3.1 TCP data segment header structure 18 -22
2.1.3.2 TCP the transmission strategy 22-23
2.1.3.3 TCP connection is established with the removal 23-26
the 2.1.3.4 TCP state transformation 26-28
2.1.3 UDP protocol 28-30
2.2 Load Balancing Technology 30-37
2.2.1 main technical 30-37
2.2.1.1 cluster technology 31
2.2.1. load balancing based on a specific server software the 31-32
2.2.1.3 DNS-based load balancing 32-33
2.2.1.4 Anti- load balancing to the agent the 33-34
2.2.1.5 NAT-based load balancing techniques 34-37
Chapter LINUX system environment and the core of the program design 37-64
3.1 LINUX operating system TCP / IP network model 37-39
3.2 BSD socket interface 39-41 < br /> 3.3 INET Sockets Layer 41-42
3.4 socket buffer SK_BUFF 42-44
3.4.1 socket the word buffers characteristics 42
3.4.2 sk_buff data structure 42-44
3.5 Network Device Interface 44-47
3.5.1 Basic structure 45
3.5.2 Basic equipment data structure of the 45-47 network device initialization
3.5.3 47
3.6 system interruption and the lower half 47-49
3.6.1 interrupt 47-48
3.6.2 second half Ministry 48-49
3.7 Linux IP module data packet handling 49-53
3.7.1 receive IP data packets 50-51
3.7.2 send (forward) data IP packet 51-53
3.8 Linux device drivers 53-58
3.8.1 Linux Device Driver Overview the 53-54
3.8.2 device driver program framework and kernel interface 54-58
3.8.2.1 character device driver briefly 55-57
the 3.8.2.2 block device drivers Descriptions 57-58
3. 9 LINUX modular programming 58-64
3.9.1 Module Introduction 58-60
3.9.2 core load module 60 - 61
3.9.3 core the uninstall module the 61-64
Chapter load balancing system design and implementation 64-96
4.1 Load Balancing system design 64-65
4.1.1 Functional description are found; 64-65
4.1.2 Design goals 65
4. 2 system logic structure 65-67
the 4.2.1 system architecture the 65-66
4.2.2 system module is divided 66-67 < br /> 4.3 core shunt module the 67-86
4.3.1 design ideas 67-73
4.3.1.1 Application Service Request capture 67-69
4.3.1.2 Network Address Translation principles and design 69-73
the 4.3.2 main process 73 - 80
4.3.2.1 Data structure nbsp 73-78
4.3.2.2 load shunt module works; 78-80
.3.3 scheduling method 80-83
4.3.3.1 Round-Robin scheduling method 80-81
4.3.3.2 with weights Round-Robin scheduling method 81
4.3.3.3 least connection scheduling method (Least-Connection) 81-82
4.3.3.4 with entitled to the minimum value of linking (Weighted Least-Connection) scheduling method 82-83
4.3.4 kernel timer 83-85
4.3.5 function 85-86
4.4 virtual core device driver management module the 86-93 4.4.1 principle
86
4.4 .2 Design and Implementation 86-91
the 4.4.3 key data structure and processes 91-93
4.5 system monitoring module nbsp the; 93-96
4.5.1 module features the 4.5.2 design method 93
the 93-94
4.5.3 main flow 94 -96
Chapter system performance testing and has yet to consider the problem 96-99
5.1 System Performance Testing 96-97
5.2 still be considered nbsp 97-98
5.2.1 security issues; 97-98
5.2.2 system redundancy 98 <br / > 5.3 Conclusion the
Acknowledgements nbsp 98-99; 99-100
Reference 100
Related dissertations
- Analysis and reliability of Linux device driver
- Real-time Operating System Customization of Linux and Development of Device Driver
- Design and Implementation of Experiment Platform for Operating System Based on Linux
- Research on GPS Vehicle Navigation System Based on ARM9
- Research and Design of Online Monitoring System of Metal Sawing Machine Saw Blade Displacement
- Design of Embedded 8 Channels High Speed Data Acquisition System
- Design and implementation of remote control system based on Embedded Intelligent Home Furnishing
- Research and Implementation of Intelligent Home Control System Base on the TCP/IP Network
- Research and Implementation of User Mode Driver for Network Device Based on Embedded Linux
- Design and Implementation of Driver Module Based on Android System
- Study of Real-time Based on Embedded Linux Operating System
- The System Migration and Development of Embeded Linux Based on MagicARM2410
- Linux operating system on the ARM hardware platform transplantation
- Design and Implementation of Software System of Industrial Controlling Display Device
- The Research and Implementation of an Embedded TCP/IP Protocol Stack
- Embedded Linux system migration and application development technology research
- Porting Embedded Linux OS Based on ARM
- Dedicated file server network design and implementation
- Study on USB Driver Program for Network Devices Based on Linux
- Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform