New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TCP packets are Malformed #51
Comments
Question number two is better handled on the sr-users mailing list than in the bug tracker. Can you give us more details on #1 - a TCP packet can be "malformed" in many ways. How did you notice this - kamailio logs, packet dumps? |
Hi oej, Thanks for looking into. As per our observation we are not seeing any PACKET in our media server from kamailio server and we thought that packets might be malformed. But after checking the PCAP in kamailio we are not seeing the packet is malformed but packets are not reaching in the server side. Kamailo Log: Example one: Kamailio Log:
PCAP: https://dl.dropboxusercontent.com/u/263974527/SIP-1183440664-5061-3%40BJC.BGI.B.HD-0.pcap We are not sure what is the problem here ? Thanks again for looking into this. Once we restarted kamilo we can see the successful TCP calls b/w kamilio server and our media server. |
It looks like kamailio was not able to connect to your media server. It could be the limit of active connections, try to increase it if you have a lot of tcp connections. Look in the code at doc/tcp_tunning.txt for hints on heavy use of tcp. |
Thanks Daniel. We will increase the tcp connections to 4096 and will update you the result. |
Any updates? Is this still an issue or can we close the bug report? |
Hi Oej, Yes the issue is still occurring. Today we saw the TCP calls to some set of Media servers is failing. From the PCAP we can see the INVITE packet generated from kamailio is not correct and we are not seeing this error after restarting kamailio. PCAP: https://www.dropbox.com/s/m3nwcdfk8774al8/KAMILIO-TCP-FRAGEMENTED.pcap?dl=0 Could you please advise what might be the issue here ? |
How did you get the pcap file? For example ngrep is usually truncating big packets. |
We captured using ngrep only. Yeah that can be one reason for the packet truncation. But when we restarted the kamailio the issue is resolved. Is there anything else we can monitor in our end for debugging this issue in detail ? |
Do you get any parsing errors in at the destination? That would be the an indication there is a transmission error. If you want to see what kamailio is sending out, add onsend_route and print $snd(buf) -- be sure you have the pv buffer big enough (see core cookbook for the global parameter which controls this value). |
In the destination i can see the PACKETS reached in the machine and Freeswitch (destination sip ) not able to detect those SIP packets. |
You can try to use 'tcpdump -s 0 ...' to see what comes there. Beware that tcp is a stream protocol and network sniffing tools can see parts of the same messages coming as separate packet on the wire, which can be a matter of how the kernel flushes the outbuffer. Also, don't forget about the option with onsend_route to see what kamailio is writting to the socket. |
Thanks Daniel for the inputs. |
No followup in a while, closing it as not looking as potential problem in the code. Re-open and add new details if still an issue. |
Hi Team,
Recently we upgraded our kamailo server to 4.2.1 and it was running successfuly with out any issue. We are seeing some issue with the TCP calls which are relayed from the kamilio.
We have set of physical servers and the calls are distributed by checking the dispacther module. Sometimes we are seeing the TCP packets are malformed from kamilio to one server. We can see the UDP calls are working fine with the same server at the same time TCP packets are malformed. That means there is no issue with the network connectivity between the kamailio server and our media server. Once we restart the kamilio we are not seeing this issue and the TCP calls will start working with kamilio and media server.
Can you help us to answer these questions.
Thanks for looking in to this.
The text was updated successfully, but these errors were encountered: