Mailing List Archive

[lvs-users] SIP over TCP packet load balancing in LVS-NAT
Hi There,
Round-Robin algorithm for TCP connection is not working. I am trying to load balance SIP packets over TCP connection between multiple real server, But every time LVS is sending traffic to same real server if the packet is coming from same client.
Is there any way to load balance SIP TCP packets between multiple real sever using round-robin algorithm?
Any lead will be much appreciated.

Thanks in advance.

Regards,
Suman Pandit
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
Re: [lvs-users] SIP over TCP packet load balancing in LVS-NAT [ In reply to ]
Suman,

As far as I know: You can't round robin TCP packets from a single
source IP - UNLESS the connection times out, i.e. you could reduce the
timeouts?
UDP has an OPS (one packet scheduler) - But it makes no sense for TCP.



Regards,

Malcolm Turnbull

Loadbalancer.org


On 18 June 2018 at 09:04, Pandit, Suman <suman.pandit@hpe.com> wrote:
> Hi There,
> Round-Robin algorithm for TCP connection is not working. I am trying to load balance SIP packets over TCP connection between multiple real server, But every time LVS is sending traffic to same real server if the packet is coming from same client.
> Is there any way to load balance SIP TCP packets between multiple real sever using round-robin algorithm?
> Any lead will be much appreciated.
>
> Thanks in advance.
>
> Regards,
> Suman Pandit
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
> Send requests to lvs-users-request@LinuxVirtualServer.org
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
Re: [lvs-users] SIP over TCP packet load balancing in LVS-NAT [ In reply to ]
Hi Malcolm,
Thanks for your prompt reply,
I have tried with keeping 5 seconds timeout value for TCP connection, but no improvement.
Command tried: ipvsadm --set 5 5 0
Do you think I missed something here? do you know any other algorithm which works with TCP?

Thanks in advance.

Regards,
Suman

-----Original Message-----
From: lvs-users-bounces@linuxvirtualserver.org [mailto:lvs-users-bounces@linuxvirtualserver.org] On Behalf Of Malcolm Turnbull
Sent: Monday, June 18, 2018 2:45 PM
To: LinuxVirtualServer.org users mailing list. <lvs-users@linuxvirtualserver.org>
Subject: Re: [lvs-users] SIP over TCP packet load balancing in LVS-NAT

Suman,

As far as I know: You can't round robin TCP packets from a single source IP - UNLESS the connection times out, i.e. you could reduce the timeouts?
UDP has an OPS (one packet scheduler) - But it makes no sense for TCP.



Regards,

Malcolm Turnbull

Loadbalancer.org


On 18 June 2018 at 09:04, Pandit, Suman <suman.pandit@hpe.com> wrote:
> Hi There,
> Round-Robin algorithm for TCP connection is not working. I am trying to load balance SIP packets over TCP connection between multiple real server, But every time LVS is sending traffic to same real server if the packet is coming from same client.
> Is there any way to load balance SIP TCP packets between multiple real sever using round-robin algorithm?
> Any lead will be much appreciated.
>
> Thanks in advance.
>
> Regards,
> Suman Pandit
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
> Send requests to lvs-users-request@LinuxVirtualServer.org
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
Re: [lvs-users] SIP over TCP packet load balancing in LVS-NAT [ In reply to ]
Suman,

Are you testing with multiple clients?
If you only have one then - IF the single connection closes, then the
next one will just hit the same empty server.
Round Robin will work when you have more than one connection but
testing with a single client can be confusing.


Malcolm Turnbull

Loadbalancer.org Ltd.

www.loadbalancer.org

+44 (0)330 380 1064
malcolm@loadbalancer.org

FREE TRIAL | ONLINE DEMO | REVIEWS | BLOG


On 18 June 2018 at 10:24, Pandit, Suman <suman.pandit@hpe.com> wrote:
> Hi Malcolm,
> Thanks for your prompt reply,
> I have tried with keeping 5 seconds timeout value for TCP connection, but no improvement.
> Command tried: ipvsadm --set 5 5 0
> Do you think I missed something here? do you know any other algorithm which works with TCP?
>
> Thanks in advance.
>
> Regards,
> Suman
>
> -----Original Message-----
> From: lvs-users-bounces@linuxvirtualserver.org [mailto:lvs-users-bounces@linuxvirtualserver.org] On Behalf Of Malcolm Turnbull
> Sent: Monday, June 18, 2018 2:45 PM
> To: LinuxVirtualServer.org users mailing list. <lvs-users@linuxvirtualserver.org>
> Subject: Re: [lvs-users] SIP over TCP packet load balancing in LVS-NAT
>
> Suman,
>
> As far as I know: You can't round robin TCP packets from a single source IP - UNLESS the connection times out, i.e. you could reduce the timeouts?
> UDP has an OPS (one packet scheduler) - But it makes no sense for TCP.
>
>
>
> Regards,
>
> Malcolm Turnbull
>
> Loadbalancer.org
>
>
> On 18 June 2018 at 09:04, Pandit, Suman <suman.pandit@hpe.com> wrote:
>> Hi There,
>> Round-Robin algorithm for TCP connection is not working. I am trying to load balance SIP packets over TCP connection between multiple real server, But every time LVS is sending traffic to same real server if the packet is coming from same client.
>> Is there any way to load balance SIP TCP packets between multiple real sever using round-robin algorithm?
>> Any lead will be much appreciated.
>>
>> Thanks in advance.
>>
>> Regards,
>> Suman Pandit
>> _______________________________________________
>> Please read the documentation before posting - it's available at:
>> http://www.linuxvirtualserver.org/
>>
>> LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
>> Send requests to lvs-users-request@LinuxVirtualServer.org
>> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org Send requests to lvs-users-request@LinuxVirtualServer.org
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
> Send requests to lvs-users-request@LinuxVirtualServer.org
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
Re: [lvs-users] SIP over TCP packet load balancing in LVS-NAT [ In reply to ]
Hi Malcolm,

I had tried with multiple client which works fine. i.e. LVS load balanced the packets between multiple real server if packet received from multiple clients.
But based on requirement LVS will get packets from a single client(same source IP and Port). Is there any tuning will help?
Thanks in advance

Regards,
Suman

-----Original Message-----
From: lvs-users-bounces@linuxvirtualserver.org [mailto:lvs-users-bounces@linuxvirtualserver.org] On Behalf Of Malcolm Turnbull
Sent: Monday, June 18, 2018 3:06 PM
To: LinuxVirtualServer.org users mailing list. <lvs-users@linuxvirtualserver.org>
Subject: Re: [lvs-users] SIP over TCP packet load balancing in LVS-NAT

Suman,

Are you testing with multiple clients?
If you only have one then - IF the single connection closes, then the next one will just hit the same empty server.
Round Robin will work when you have more than one connection but testing with a single client can be confusing.


Malcolm Turnbull

Loadbalancer.org Ltd.

www.loadbalancer.org

+44 (0)330 380 1064
malcolm@loadbalancer.org

FREE TRIAL | ONLINE DEMO | REVIEWS | BLOG


On 18 June 2018 at 10:24, Pandit, Suman <suman.pandit@hpe.com> wrote:
> Hi Malcolm,
> Thanks for your prompt reply,
> I have tried with keeping 5 seconds timeout value for TCP connection, but no improvement.
> Command tried: ipvsadm --set 5 5 0
> Do you think I missed something here? do you know any other algorithm which works with TCP?
>
> Thanks in advance.
>
> Regards,
> Suman
>
> -----Original Message-----
> From: lvs-users-bounces@linuxvirtualserver.org
> [mailto:lvs-users-bounces@linuxvirtualserver.org] On Behalf Of Malcolm
> Turnbull
> Sent: Monday, June 18, 2018 2:45 PM
> To: LinuxVirtualServer.org users mailing list.
> <lvs-users@linuxvirtualserver.org>
> Subject: Re: [lvs-users] SIP over TCP packet load balancing in LVS-NAT
>
> Suman,
>
> As far as I know: You can't round robin TCP packets from a single source IP - UNLESS the connection times out, i.e. you could reduce the timeouts?
> UDP has an OPS (one packet scheduler) - But it makes no sense for TCP.
>
>
>
> Regards,
>
> Malcolm Turnbull
>
> Loadbalancer.org
>
>
> On 18 June 2018 at 09:04, Pandit, Suman <suman.pandit@hpe.com> wrote:
>> Hi There,
>> Round-Robin algorithm for TCP connection is not working. I am trying to load balance SIP packets over TCP connection between multiple real server, But every time LVS is sending traffic to same real server if the packet is coming from same client.
>> Is there any way to load balance SIP TCP packets between multiple real sever using round-robin algorithm?
>> Any lead will be much appreciated.
>>
>> Thanks in advance.
>>
>> Regards,
>> Suman Pandit
>> _______________________________________________
>> Please read the documentation before posting - it's available at:
>> http://www.linuxvirtualserver.org/
>>
>> LinuxVirtualServer.org mailing list -
>> lvs-users@LinuxVirtualServer.org Send requests to
>> lvs-users-request@LinuxVirtualServer.org
>> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
> Send requests to lvs-users-request@LinuxVirtualServer.org
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
> Send requests to lvs-users-request@LinuxVirtualServer.org
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
Re: [lvs-users] SIP over TCP packet load balancing in LVS-NAT [ In reply to ]
Hi Suman,

I'm afraid not, it would be required that the three-way handshake
happens against one server with TCP traffic and then data is sent.

As such one client must talk to one server for a single ESTABLISHED
TCP connection.

UDP is different, it's stateless so no handshake so you can use
OPS(One Packet Scheduling) to spray packets in a round robin fashion,
another trick with UDP when not using OPS is setting the timeout for
UDP to 1 sec which can give you a pseudo OPS when it's not available.

Aaron West

Loadbalancer.org Ltd.

www.loadbalancer.org
Aaron West

Loadbalancer.org Ltd.

www.loadbalancer.org

+1 888 867 9504 / +44 (0)330 380 1064
aaron@loadbalancer.org

LEAVE A REVIEW | DEPLOYMENT GUIDES | BLOG



On Mon, 18 Jun 2018 at 10:54, Pandit, Suman <suman.pandit@hpe.com> wrote:
>
> Hi Malcolm,
>
> I had tried with multiple client which works fine. i.e. LVS load balanced the packets between multiple real server if packet received from multiple clients.
> But based on requirement LVS will get packets from a single client(same source IP and Port). Is there any tuning will help?
> Thanks in advance
>
> Regards,
> Suman
>
> -----Original Message-----
> From: lvs-users-bounces@linuxvirtualserver.org [mailto:lvs-users-bounces@linuxvirtualserver.org] On Behalf Of Malcolm Turnbull
> Sent: Monday, June 18, 2018 3:06 PM
> To: LinuxVirtualServer.org users mailing list. <lvs-users@linuxvirtualserver.org>
> Subject: Re: [lvs-users] SIP over TCP packet load balancing in LVS-NAT
>
> Suman,
>
> Are you testing with multiple clients?
> If you only have one then - IF the single connection closes, then the next one will just hit the same empty server.
> Round Robin will work when you have more than one connection but testing with a single client can be confusing.
>
>
> Malcolm Turnbull
>
> Loadbalancer.org Ltd.
>
> www.loadbalancer.org
>
> +44 (0)330 380 1064
> malcolm@loadbalancer.org
>
> FREE TRIAL | ONLINE DEMO | REVIEWS | BLOG
>
>
> On 18 June 2018 at 10:24, Pandit, Suman <suman.pandit@hpe.com> wrote:
> > Hi Malcolm,
> > Thanks for your prompt reply,
> > I have tried with keeping 5 seconds timeout value for TCP connection, but no improvement.
> > Command tried: ipvsadm --set 5 5 0
> > Do you think I missed something here? do you know any other algorithm which works with TCP?
> >
> > Thanks in advance.
> >
> > Regards,
> > Suman
> >
> > -----Original Message-----
> > From: lvs-users-bounces@linuxvirtualserver.org
> > [mailto:lvs-users-bounces@linuxvirtualserver.org] On Behalf Of Malcolm
> > Turnbull
> > Sent: Monday, June 18, 2018 2:45 PM
> > To: LinuxVirtualServer.org users mailing list.
> > <lvs-users@linuxvirtualserver.org>
> > Subject: Re: [lvs-users] SIP over TCP packet load balancing in LVS-NAT
> >
> > Suman,
> >
> > As far as I know: You can't round robin TCP packets from a single source IP - UNLESS the connection times out, i.e. you could reduce the timeouts?
> > UDP has an OPS (one packet scheduler) - But it makes no sense for TCP.
> >
> >
> >
> > Regards,
> >
> > Malcolm Turnbull
> >
> > Loadbalancer.org
> >
> >
> > On 18 June 2018 at 09:04, Pandit, Suman <suman.pandit@hpe.com> wrote:
> >> Hi There,
> >> Round-Robin algorithm for TCP connection is not working. I am trying to load balance SIP packets over TCP connection between multiple real server, But every time LVS is sending traffic to same real server if the packet is coming from same client.
> >> Is there any way to load balance SIP TCP packets between multiple real sever using round-robin algorithm?
> >> Any lead will be much appreciated.
> >>
> >> Thanks in advance.
> >>
> >> Regards,
> >> Suman Pandit
> >> _______________________________________________
> >> Please read the documentation before posting - it's available at:
> >> http://www.linuxvirtualserver.org/
> >>
> >> LinuxVirtualServer.org mailing list -
> >> lvs-users@LinuxVirtualServer.org Send requests to
> >> lvs-users-request@LinuxVirtualServer.org
> >> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> >
> > _______________________________________________
> > Please read the documentation before posting - it's available at:
> > http://www.linuxvirtualserver.org/
> >
> > LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
> > Send requests to lvs-users-request@LinuxVirtualServer.org
> > or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> >
> > _______________________________________________
> > Please read the documentation before posting - it's available at:
> > http://www.linuxvirtualserver.org/
> >
> > LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
> > Send requests to lvs-users-request@LinuxVirtualServer.org
> > or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org Send requests to lvs-users-request@LinuxVirtualServer.org
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
> Send requests to lvs-users-request@LinuxVirtualServer.org
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
Re: [lvs-users] SIP over TCP packet load balancing in LVS-NAT [ In reply to ]
Hello Suman,

On Monday, June 18 2018 11:53, Pandit, Suman wrote:
> I had tried with multiple client which works fine. i.e. LVS load balanced
the
> packets between multiple real server if packet received from multiple
clients.
> But based on requirement LVS will get packets from a single client(same
> source IP and Port). Is there any tuning will help?

No, new connections from one client will always terminate on the same real
server while at least one connection from that client to a real server is
open.

If you need real round robin forwarding of tcp connections from one client
to multiple real servers, have a look at haproxy in tcp mode.

Best regards,
i.A. Thomas B?tzler
--
BRINGE Informationstechnik GmbH
Zur Seeplatte 12
D-76228 Karlsruhe
Germany

Fon: +49 721 94246-0
Fon: +49 171 5438457
Fax: +49 721 94246-66
Web: http://www.bringe.de/

Gesch?ftsf?hrer: Dipl.-Ing. (FH) Martin Bringe
Ust.Id: DE812936645, HRB 108943 Mannheim


> -----Urspr?ngliche Nachricht-----
> Von: lvs-users-bounces@linuxvirtualserver.org [.mailto:lvs-users-
> Thanks in advance
>
> Regards,
> Suman
>
> -----Original Message-----
> From: lvs-users-bounces@linuxvirtualserver.org [mailto:lvs-users-
> bounces@linuxvirtualserver.org] On Behalf Of Malcolm Turnbull
> Sent: Monday, June 18, 2018 3:06 PM
> To: LinuxVirtualServer.org users mailing list. <lvs-
> users@linuxvirtualserver.org>
> Subject: Re: [lvs-users] SIP over TCP packet load balancing in LVS-NAT
>
> Suman,
>
> Are you testing with multiple clients?
> If you only have one then - IF the single connection closes, then the next
one
> will just hit the same empty server.
> Round Robin will work when you have more than one connection but testing
> with a single client can be confusing.
>
>
> Malcolm Turnbull
>
> Loadbalancer.org Ltd.
>
> www.loadbalancer.org
>
> +44 (0)330 380 1064
> malcolm@loadbalancer.org
>
> FREE TRIAL | ONLINE DEMO | REVIEWS | BLOG
>
>
> On 18 June 2018 at 10:24, Pandit, Suman <suman.pandit@hpe.com> wrote:
> > Hi Malcolm,
> > Thanks for your prompt reply,
> > I have tried with keeping 5 seconds timeout value for TCP connection,
but
> no improvement.
> > Command tried: ipvsadm --set 5 5 0
> > Do you think I missed something here? do you know any other algorithm
> which works with TCP?
> >
> > Thanks in advance.
> >
> > Regards,
> > Suman
> >
> > -----Original Message-----
> > From: lvs-users-bounces@linuxvirtualserver.org
> > [mailto:lvs-users-bounces@linuxvirtualserver.org] On Behalf Of Malcolm
> > Turnbull
> > Sent: Monday, June 18, 2018 2:45 PM
> > To: LinuxVirtualServer.org users mailing list.
> > <lvs-users@linuxvirtualserver.org>
> > Subject: Re: [lvs-users] SIP over TCP packet load balancing in LVS-NAT
> >
> > Suman,
> >
> > As far as I know: You can't round robin TCP packets from a single source
IP -
> UNLESS the connection times out, i.e. you could reduce the timeouts?
> > UDP has an OPS (one packet scheduler) - But it makes no sense for TCP.
> >
> >
> >
> > Regards,
> >
> > Malcolm Turnbull
> >
> > Loadbalancer.org
> >
> >
> > On 18 June 2018 at 09:04, Pandit, Suman <suman.pandit@hpe.com> wrote:
> >> Hi There,
> >> Round-Robin algorithm for TCP connection is not working. I am trying to
> load balance SIP packets over TCP connection between multiple real server,
> But every time LVS is sending traffic to same real server if the packet is
> coming from same client.
> >> Is there any way to load balance SIP TCP packets between multiple real
> sever using round-robin algorithm?
> >> Any lead will be much appreciated.
> >>
> >> Thanks in advance.
> >>
> >> Regards,
> >> Suman Pandit
> >> _______________________________________________
> >> Please read the documentation before posting - it's available at:
> >> http://www.linuxvirtualserver.org/
> >>
> >> LinuxVirtualServer.org mailing list -
> >> lvs-users@LinuxVirtualServer.org Send requests to
> >> lvs-users-request@LinuxVirtualServer.org
> >> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> >
> > _______________________________________________
> > Please read the documentation before posting - it's available at:
> > http://www.linuxvirtualserver.org/
> >
> > LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
> > Send requests to lvs-users-request@LinuxVirtualServer.org
> > or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> >
> > _______________________________________________
> > Please read the documentation before posting - it's available at:
> > http://www.linuxvirtualserver.org/
> >
> > LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
> > Send requests to lvs-users-request@LinuxVirtualServer.org
> > or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send
> requests to lvs-users-request@LinuxVirtualServer.org
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send
> requests to lvs-users-request@LinuxVirtualServer.org
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
Re: [lvs-users] SIP over TCP packet load balancing in LVS-NAT [ In reply to ]
Hi Thomas & Aaron,

Thanks for the explanation.
One question, does haproxy supports SIP over TCP?

Thanks & Regards,
Suman Pandit

-----Original Message-----
From: lvs-users-bounces@linuxvirtualserver.org [mailto:lvs-users-bounces@linuxvirtualserver.org] On Behalf Of Thomas B?tzler
Sent: Monday, June 18, 2018 3:55 PM
To: LinuxVirtualServer.org users mailing list. <lvs-users@linuxvirtualserver.org>
Subject: Re: [lvs-users] SIP over TCP packet load balancing in LVS-NAT

Hello Suman,

On Monday, June 18 2018 11:53, Pandit, Suman wrote:
> I had tried with multiple client which works fine. i.e. LVS load
> balanced
the
> packets between multiple real server if packet received from multiple
clients.
> But based on requirement LVS will get packets from a single
> client(same source IP and Port). Is there any tuning will help?

No, new connections from one client will always terminate on the same real server while at least one connection from that client to a real server is open.

If you need real round robin forwarding of tcp connections from one client to multiple real servers, have a look at haproxy in tcp mode.

Best regards,
i.A. Thomas B?tzler
--
BRINGE Informationstechnik GmbH
Zur Seeplatte 12
D-76228 Karlsruhe
Germany

Fon: +49 721 94246-0
Fon: +49 171 5438457
Fax: +49 721 94246-66
Web: http://www.bringe.de/

Gesch?ftsf?hrer: Dipl.-Ing. (FH) Martin Bringe
Ust.Id: DE812936645, HRB 108943 Mannheim


> -----Urspr?ngliche Nachricht-----
> Von: lvs-users-bounces@linuxvirtualserver.org [.mailto:lvs-users-
> Thanks in advance
>
> Regards,
> Suman
>
> -----Original Message-----
> From: lvs-users-bounces@linuxvirtualserver.org [mailto:lvs-users-
> bounces@linuxvirtualserver.org] On Behalf Of Malcolm Turnbull
> Sent: Monday, June 18, 2018 3:06 PM
> To: LinuxVirtualServer.org users mailing list. <lvs-
> users@linuxvirtualserver.org>
> Subject: Re: [lvs-users] SIP over TCP packet load balancing in LVS-NAT
>
> Suman,
>
> Are you testing with multiple clients?
> If you only have one then - IF the single connection closes, then the
> next
one
> will just hit the same empty server.
> Round Robin will work when you have more than one connection but
> testing with a single client can be confusing.
>
>
> Malcolm Turnbull
>
> Loadbalancer.org Ltd.
>
> www.loadbalancer.org
>
> +44 (0)330 380 1064
> malcolm@loadbalancer.org
>
> FREE TRIAL | ONLINE DEMO | REVIEWS | BLOG
>
>
> On 18 June 2018 at 10:24, Pandit, Suman <suman.pandit@hpe.com> wrote:
> > Hi Malcolm,
> > Thanks for your prompt reply,
> > I have tried with keeping 5 seconds timeout value for TCP
> > connection,
but
> no improvement.
> > Command tried: ipvsadm --set 5 5 0
> > Do you think I missed something here? do you know any other
> > algorithm
> which works with TCP?
> >
> > Thanks in advance.
> >
> > Regards,
> > Suman
> >
> > -----Original Message-----
> > From: lvs-users-bounces@linuxvirtualserver.org
> > [mailto:lvs-users-bounces@linuxvirtualserver.org] On Behalf Of
> > Malcolm Turnbull
> > Sent: Monday, June 18, 2018 2:45 PM
> > To: LinuxVirtualServer.org users mailing list.
> > <lvs-users@linuxvirtualserver.org>
> > Subject: Re: [lvs-users] SIP over TCP packet load balancing in
> > LVS-NAT
> >
> > Suman,
> >
> > As far as I know: You can't round robin TCP packets from a single
> > source
IP -
> UNLESS the connection times out, i.e. you could reduce the timeouts?
> > UDP has an OPS (one packet scheduler) - But it makes no sense for TCP.
> >
> >
> >
> > Regards,
> >
> > Malcolm Turnbull
> >
> > Loadbalancer.org
> >
> >
> > On 18 June 2018 at 09:04, Pandit, Suman <suman.pandit@hpe.com> wrote:
> >> Hi There,
> >> Round-Robin algorithm for TCP connection is not working. I am
> >> trying to
> load balance SIP packets over TCP connection between multiple real
> server, But every time LVS is sending traffic to same real server if
> the packet is coming from same client.
> >> Is there any way to load balance SIP TCP packets between multiple
> >> real
> sever using round-robin algorithm?
> >> Any lead will be much appreciated.
> >>
> >> Thanks in advance.
> >>
> >> Regards,
> >> Suman Pandit
> >> _______________________________________________
> >> Please read the documentation before posting - it's available at:
> >> http://www.linuxvirtualserver.org/
> >>
> >> LinuxVirtualServer.org mailing list -
> >> lvs-users@LinuxVirtualServer.org Send requests to
> >> lvs-users-request@LinuxVirtualServer.org
> >> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> >
> > _______________________________________________
> > Please read the documentation before posting - it's available at:
> > http://www.linuxvirtualserver.org/
> >
> > LinuxVirtualServer.org mailing list -
> > lvs-users@LinuxVirtualServer.org Send requests to
> > lvs-users-request@LinuxVirtualServer.org
> > or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> >
> > _______________________________________________
> > Please read the documentation before posting - it's available at:
> > http://www.linuxvirtualserver.org/
> >
> > LinuxVirtualServer.org mailing list -
> > lvs-users@LinuxVirtualServer.org Send requests to
> > lvs-users-request@LinuxVirtualServer.org
> > or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send
> requests to lvs-users-request@LinuxVirtualServer.org
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send
> requests to lvs-users-request@LinuxVirtualServer.org
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
Re: [lvs-users] SIP over TCP packet load balancing in LVS-NAT [ In reply to ]
On Monday, June 18 2018 14:26, Pandit, Suman wrote:
> Thanks for the explanation.
> One question, does haproxy supports SIP over TCP?

HAProxy, although primarily a HTTP(S) proxy and loadbalancer, supports plain
TCP load balancing, too. As such, support for any protocol over TCP is
implied.

See http://cbonte.github.io/haproxy-dconv/1.8/intro.html#3.1


Best regards,
i.A. Thomas B?tzler
--
BRINGE Informationstechnik GmbH
Zur Seeplatte 12
D-76228 Karlsruhe
Germany

Fon: +49 721 94246-0
Fon: +49 171 5438457
Fax: +49 721 94246-66
Web: http://www.bringe.de/

Gesch?ftsf?hrer: Dipl.-Ing. (FH) Martin Bringe
Ust.Id: DE812936645, HRB 108943 Mannheim
Re: [lvs-users] SIP over TCP packet load balancing in LVS-NAT [ In reply to ]
Thanks a lot guys for helping me to understand lvs internals.

Thanks & Regards,
Suman

-----Original Message-----
From: lvs-users-bounces@linuxvirtualserver.org [mailto:lvs-users-bounces@linuxvirtualserver.org] On Behalf Of Thomas B?tzler
Sent: Monday, June 18, 2018 3:55 PM
To: LinuxVirtualServer.org users mailing list. <lvs-users@linuxvirtualserver.org>
Subject: Re: [lvs-users] SIP over TCP packet load balancing in LVS-NAT

Hello Suman,

On Monday, June 18 2018 11:53, Pandit, Suman wrote:
> I had tried with multiple client which works fine. i.e. LVS load
> balanced
the
> packets between multiple real server if packet received from multiple
clients.
> But based on requirement LVS will get packets from a single
> client(same source IP and Port). Is there any tuning will help?

No, new connections from one client will always terminate on the same real server while at least one connection from that client to a real server is open.

If you need real round robin forwarding of tcp connections from one client to multiple real servers, have a look at haproxy in tcp mode.

Best regards,
i.A. Thomas B?tzler
--
BRINGE Informationstechnik GmbH
Zur Seeplatte 12
D-76228 Karlsruhe
Germany

Fon: +49 721 94246-0
Fon: +49 171 5438457
Fax: +49 721 94246-66
Web: http://www.bringe.de/

Gesch?ftsf?hrer: Dipl.-Ing. (FH) Martin Bringe
Ust.Id: DE812936645, HRB 108943 Mannheim


> -----Urspr?ngliche Nachricht-----
> Von: lvs-users-bounces@linuxvirtualserver.org [.mailto:lvs-users-
> Thanks in advance
>
> Regards,
> Suman
>
> -----Original Message-----
> From: lvs-users-bounces@linuxvirtualserver.org [mailto:lvs-users-
> bounces@linuxvirtualserver.org] On Behalf Of Malcolm Turnbull
> Sent: Monday, June 18, 2018 3:06 PM
> To: LinuxVirtualServer.org users mailing list. <lvs-
> users@linuxvirtualserver.org>
> Subject: Re: [lvs-users] SIP over TCP packet load balancing in LVS-NAT
>
> Suman,
>
> Are you testing with multiple clients?
> If you only have one then - IF the single connection closes, then the
> next
one
> will just hit the same empty server.
> Round Robin will work when you have more than one connection but
> testing with a single client can be confusing.
>
>
> Malcolm Turnbull
>
> Loadbalancer.org Ltd.
>
> www.loadbalancer.org
>
> +44 (0)330 380 1064
> malcolm@loadbalancer.org
>
> FREE TRIAL | ONLINE DEMO | REVIEWS | BLOG
>
>
> On 18 June 2018 at 10:24, Pandit, Suman <suman.pandit@hpe.com> wrote:
> > Hi Malcolm,
> > Thanks for your prompt reply,
> > I have tried with keeping 5 seconds timeout value for TCP
> > connection,
but
> no improvement.
> > Command tried: ipvsadm --set 5 5 0
> > Do you think I missed something here? do you know any other
> > algorithm
> which works with TCP?
> >
> > Thanks in advance.
> >
> > Regards,
> > Suman
> >
> > -----Original Message-----
> > From: lvs-users-bounces@linuxvirtualserver.org
> > [mailto:lvs-users-bounces@linuxvirtualserver.org] On Behalf Of
> > Malcolm Turnbull
> > Sent: Monday, June 18, 2018 2:45 PM
> > To: LinuxVirtualServer.org users mailing list.
> > <lvs-users@linuxvirtualserver.org>
> > Subject: Re: [lvs-users] SIP over TCP packet load balancing in
> > LVS-NAT
> >
> > Suman,
> >
> > As far as I know: You can't round robin TCP packets from a single
> > source
IP -
> UNLESS the connection times out, i.e. you could reduce the timeouts?
> > UDP has an OPS (one packet scheduler) - But it makes no sense for TCP.
> >
> >
> >
> > Regards,
> >
> > Malcolm Turnbull
> >
> > Loadbalancer.org
> >
> >
> > On 18 June 2018 at 09:04, Pandit, Suman <suman.pandit@hpe.com> wrote:
> >> Hi There,
> >> Round-Robin algorithm for TCP connection is not working. I am
> >> trying to
> load balance SIP packets over TCP connection between multiple real
> server, But every time LVS is sending traffic to same real server if
> the packet is coming from same client.
> >> Is there any way to load balance SIP TCP packets between multiple
> >> real
> sever using round-robin algorithm?
> >> Any lead will be much appreciated.
> >>
> >> Thanks in advance.
> >>
> >> Regards,
> >> Suman Pandit
> >> _______________________________________________
> >> Please read the documentation before posting - it's available at:
> >> http://www.linuxvirtualserver.org/
> >>
> >> LinuxVirtualServer.org mailing list -
> >> lvs-users@LinuxVirtualServer.org Send requests to
> >> lvs-users-request@LinuxVirtualServer.org
> >> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> >
> > _______________________________________________
> > Please read the documentation before posting - it's available at:
> > http://www.linuxvirtualserver.org/
> >
> > LinuxVirtualServer.org mailing list -
> > lvs-users@LinuxVirtualServer.org Send requests to
> > lvs-users-request@LinuxVirtualServer.org
> > or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> >
> > _______________________________________________
> > Please read the documentation before posting - it's available at:
> > http://www.linuxvirtualserver.org/
> >
> > LinuxVirtualServer.org mailing list -
> > lvs-users@LinuxVirtualServer.org Send requests to
> > lvs-users-request@LinuxVirtualServer.org
> > or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send
> requests to lvs-users-request@LinuxVirtualServer.org
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send
> requests to lvs-users-request@LinuxVirtualServer.org
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users