LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Question about PPC

To: Ted Pavlic <tpavlic@xxxxxxxxxxx>
Subject: Re: Question about PPC
Cc: LVS Users Mailing List <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
From: Wensong Zhang <wensong@xxxxxxxxxxxx>
Date: Thu, 09 Sep 1999 00:20:11 +0800

Ted Pavlic wrote:
> 
> How will this affect passive FTP? The second connection made in a passive
> FTP connection is on an unpredictable port, right? So how will that
> connection go back to the same machine?
> 

Once a server is selected for a connection at the first time,
and a template <daddr, maddr, saddr> is created. If a packet
of passive FTP connection, the template will be looked up
by <daddr,maddr> and we get the server, so the packet of
an unpredictable port will be forwarded to this unpredictable
port of the server. The connection works. :)

> Is there still a way to make every port persistent -- like PCC?

try use 0 as port number and plus persistent port. The zero
is just like the wildcard of port numbers.

Regards,

Wensong


> 
> All the best --
> Ted
> 
> ----- Original Message -----
> From: Wensong Zhang <wensong@xxxxxxxxxxxx>
> To: Ratz <ratz@xxxxxx>
> Cc: LVS Mailinglist <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
> Sent: Tuesday, September 07, 1999 10:11 AM
> Subject: Re: Question about PPC
> 
> >
> > Hi,
> >
> > Sorry that I haven't given instruction how to use persistent port
> > with the new patch.
> >
> > To use persistent port, the commands are as follows:
> > ipvsadm -A -t <VIP>:<port> [-s <scheduler>] -p
> > ipvsadm -a -t <VIP>:<port> -R <real server> ...
> > ...
> >
> > If the virtual service port is set persistent, connections
> > from the same clients are gauranteed to direct to the same
> > server. When a client sends request for the service at the
> > first time, the load balancer (director) selects a server
> > by the scheduling method and creates a connection and the
> > template. Then, the following connections from the same
> > client will be forwarded to the same server according to the
> > template in the specified time.
> >



----------------------------------------------------------------------
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
To unsubscribe, e-mail: lvs-users-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx
For additional commands, e-mail: lvs-users-help@xxxxxxxxxxxxxxxxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>