[OpenSIPS-Users] TCP connections for relaying calls
Bogdan-Andrei Iancu
bogdan at opensips.org
Thu Nov 8 17:21:05 CET 2012
Hi Mariana,
Because of the TCP conn reusage, between 2 SIP entities preserving their
IP and port, you will have only 1 TCP conn (per direction). This will
lead to a "tunneling" effect between 2 proxies - all traffic will be
pushed via a single connection.
To avoid this, use multiple TCP interfaces (same ip but different ports)
between the 2 opensips - and when OS1 has to send to OS2 to do
dispatching over all interfaces of OS2 ; and vice versa. This will
create multiple connections between the 2 servers.
I know it is not nice, but it solves the purpose - maybe in long term we
need some logical way to control the connection re-usage (maybe
depending on load/traffic - if too much, avoid reusing, create a new conn).
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 11/08/2012 01:52 PM, Mariana Arduini wrote:
> Hello all,
>
> We are using 2 OpenSIPS servers and TCP between them:
>
> tcp ---> OSIPS1 <--- tcp ---> OPSIPS2 <--- tcp
>
> OSIPS2 has a bunch of children processes running, but we can only see
> few of them actually being used. When we use SIPp scripts instead of
> OPSIPS1 and set it to use 1 TCP connection per call (parameter -t tn),
> then we can see more than just a few OPSIPS2 children processes being
> used.
>
> The problem is this is decreasing OSIPS2 performance, so we need to
> have OSIPS1 using more than just 1 TCP connection. Is this possible?
>
> Thanks in advance for any help!
> Mariana.
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20121108/a3208799/attachment-0001.htm>
More information about the Users
mailing list