[OpenSIPS-Users] tcp keep-alive time
george wu
aihuawu2012 at 163.com
Sun Oct 19 01:46:08 CEST 2014
So it seems the sctp is the best. reliable and scalable.
At 2014-10-18 16:30:02, "Bogdan-Andrei Iancu" <bogdan at opensips.org> wrote:
George,
If the TCP conn closes, it is not much you can do from the server side...you cannot open a TCP conn behind NAT. You have to wait for the UAC to re-connect again.
About your manual UDP defrag - I do not think it is a good it - the UDP stack must to that for you, you cannot simulate it on top of datagram.
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 17.10.2014 14:05, george wu wrote:
Bogdan-Andrei:
Thank you very much for so many helps.
Yes, tcp_connection_lifetime.
As you said before, udp scale up very well. But tcp is not.
However, I have no choice other than tcp. If the tcp get closed often, is it similar to udp?
Recently I modify the udp_server.c so that I defragment the udp package manually.
(For ice, the packet is about 1700+ bytes.)
This approach works 80% of time.
However the udp packages sometimes come out of order
which makes the linphone parser gets a coredump.
I googled a lot, some router's mtu is 1500 (payload 1472), some 1400. the only requirement is minimum 576 bytes.
So I finally give up the udp. I think tcp is the only reliable way to deliver big packet.
Unless your packet is less than 576 bytes. But my packet is 1700 bytes.
George
At 2014-10-17 17:18:43, "Bogdan-Andrei Iancu" <bogdan at opensips.org> wrote:
Hi Geroge,
You want to change the keepalive or the lifetime of the TCP conn ?
As it sounds to me you are more looking for lifetime (to have closed asap):
http://www.opensips.org/Documentation/Script-CoreParameters-1-11#toc91
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 17.10.2014 02:44, george wu wrote:
Hi, guys:
How can I adjust the global tcp keep alive time? what's the default in opensips?
I want it to close as soon as possible so that tcp deployment can scale.
George Wu
_______________________________________________
Users mailing list
Users at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20141019/1be8411d/attachment.htm>
More information about the Users
mailing list