Dear Wasong:
I am sorry that the codes are ulgy enough, and less comments.
Now, in my implement, I only support 255 content types.
the rule is file ext. match such as *.htm will redirect to
server A and *.gif will redirect to server B.
A type of content means a service in LVS.
A special type 0xff, means not match any contents.
At first, a syn packet comes to load balance, and it will match
a service(0xff) , and redirect it to back end.
After three-way handshae, client sends a packet with HTTP header,
and the load balancer parses the header to find out the content
type. And then, It find out a service that serives the content.
If the dest. is the same as pervious back-end, the packet will
be sent to that back-end. otherwise,the packet will be sent to
a new server that services the content.
........................................
@ @~ my english is poor. I will write down the key idea in my
paper soon.
sorry again.
Motse
On Fri, 12 Apr 2002, Wensong Zhang wrote:
>
>
> Hi,
>
> On Fri, 12 Apr 2002, motse wrote:
>
> > Hi,
> >
> > I have implemented a direct routed web switch, which is a layer 7 load
> > balancer with three new mechanisms. The codes are implemented into ipvs
> > 0.9.8, and you can get it from http://speed.cis.nctu.edu.tw/~motse/drws.htm
> > .
>
> I don't get time to read your code now.
>
> Since the IPVS is working on Layer-4, it must choose a real server after
> receiving the first SYN packet. I don't know how you extend IPVS to do
> layer-7 load balancing.
>
> Anyway, I have to read your code first, :) will get back to you later.
>
> Regards,
>
> Wensong
>
>
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> or go to http://www.in-addr.de/mailman/listinfo/lvs-users
>
|