LVS/TUN mode with FreeBSD and Solaris realser…

2009-05-13 09:13:50来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折


Contents[
[url=javascript:toggleToc()]hide[/url]
]
1 Introduction

2 Normal Linux Solaris/FreeBSD IP-tunneling

2.1 Testing environment

2.2 Config Linux box

2.3 Config Solaris box

2.4 Config FreeBSD box

2.5 Using IP-tunneling

3 Working example of VS/TUN

3.1 Topological graph

3.2 Config FreeBSD box

3.3 Config Solaris box

3.4 Config Load balancer

4 Conclusions and Future Work

[
edit
] Introduction
The Linux Virtual Server Project (
LVS
) is a project started by Dr. Wensong Zhang. LVS implements three load balance technology.
a. Network Address Translation (
VS/NAT
)
b. Direct Routing (
VS/DR
)
c. IP Tunneling (
VS/TUN
)
VS/NAT
is easy to setup. The load balancer may be a bottleneck of the whole system where the number of servers is more than 20, because both the request packets and response packets need to be rewritten by the
load balancer
.
VS/DR
has the best performance. VS/DR uses MAC-spoofing technology, so it requires that one of the load balancer’s NIC and the
real server
’s NIC must be in the same IP network segment, and physical segment as well.
VS/TUN
is the most scalable. The advantage is that since servers connect each other by using IP-tunneling, the load balancer and the real servers can reside on different LAN , or even WAN.
I plan to setup a set of servers with
load balancing
technique.
Real servers
run FreeBSD and Solaris system in different places on our business. So it is the only choice for us to use VS/TUN.
We install Fedora Core 5 Linux on our Load Balance server. Kernel-2.6.15 is default.
FreeBSD version is 5.4, we recompile the kernel in order to improve the performance. The default kernel can work too.
Solaris box runs Solaris 10 x86.
[
edit
] Normal Linux Solaris/FreeBSD IP-tunneling
IP tunneling (IP encapsulation) is a technique to encapsulate IP datagram within IP datagram, which allows datagram destined for one IP address to be wrapped and redirected to another IP address. Many modern OS support IP tunneling, such as Linux, FreeBSD and Solaris.

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:有意思:VNC到KDE的屏保BUG

下一篇:FreeBSD下的电驴