Author |
Message |
ancysmk Brekeke Member
Joined: 15 Jun 2014 Posts: 15
|
Posted: Wed Aug 05, 2015 11:23 pm Post subject: Brekeke SIP Server drops RTP Packets (G.722/H.264 stream) |
|
|
1. Brekeke Product Name and Version:
Brekeke SIP Server Advanced version 3.4.6.3/411
2. Java version:
1.8.0_40
3. OS type and the version:
Windows 2008 R2 Standard
4. UA (phone), gateway or other hardware/software involved:
SIP UA (tx : 1200kbps/30fps /max frame size is 52400bytes)
5. Your problem:
RTP relay option is enabled.
SIP UA_1(local) send audio/video stream to SIP UA_2(remote) thru
the SIP Server.
SIP Server receive all rtp packets from "UA_2" but SIP Server can't
send some of audio/video packets received from UA_2 to UA_1.
when I capture all packet in sip server with wireshark, some packet
may be droped in relaying.
if you need the packet dump, I can send you. _________________ semin kim |
|
Back to top |
|
Harold Brekeke Master Guru
Joined: 21 Sep 2008 Posts: 289
Location: Japan
|
Posted: Wed Aug 05, 2015 11:39 pm Post subject: |
|
|
Add this setting in [Configuration]->[Advanced] page.
Code: |
net.rtp.video.size = 52400 |
This setting defines the max size of video RTP packet buffer. |
|
Back to top |
|
ancysmk Brekeke Member
Joined: 15 Jun 2014 Posts: 15
|
Posted: Thu Aug 06, 2015 2:13 am Post subject: |
|
|
I have already added the setting like below.
net.rtp.video.size = 8000
I will change the size value and try again.
I need your help about that some audio packet was droped in relay. _________________ semin kim |
|
Back to top |
|
ambrosio Brekeke Master Guru
Joined: 27 Mar 2008 Posts: 215
|
Posted: Thu Aug 06, 2015 12:53 pm Post subject: |
|
|
8000 is too small to buffer 52400's RTP frame.
also how about the max size of audio packet? |
|
Back to top |
|
ancysmk Brekeke Member
Joined: 15 Jun 2014 Posts: 15
|
Posted: Thu Aug 06, 2015 11:32 pm Post subject: |
|
|
I have set the size to 80000, but it is of no effect.
I think the brekeke drops also the audio packets.
Max size of the audio packet is 160 bytes.
I analyzed the packet dump captured with wireshark in sip server machine.
I noticed something strange in the analysis.
Although number of packets transmitted is smaller than packets received in relaying,
Sequence number of which RTP packet is transmitted by sip server is correct.
Dose the brekeke modify sequence number of RTP packet in relaying ?
If you need the packet dump, I can give you.
Below is our RTP setting of Brekeke Sip server.
RTP relay : auto
RTP relay(UA on this machine) : off
RTP relay even with ICE : no
port mapping : source port
Send UA's remote address : auto
Label Attribute : off
Content Attribute : on
Order of the 'm' line : on _________________ semin kim |
|
Back to top |
|
ambrosio Brekeke Master Guru
Joined: 27 Mar 2008 Posts: 215
|
Posted: Fri Aug 07, 2015 11:30 am Post subject: |
|
|
try " net.rtp.native=false " in [Configuration]->[Advanced] page. |
|
Back to top |
|
ancysmk Brekeke Member
Joined: 15 Jun 2014 Posts: 15
|
Posted: Mon Aug 10, 2015 10:40 pm Post subject: |
|
|
it's working well but the brekeke still drops 2~3 video RTP Packets
for 5 minute in relaying.
how does the configuration("net.rtp.native=false") affect the brekeke?
I don't found it in administrator guide.
Specific SIP UA sent rtcp-bye meesage to other side UA after 15minute in relaying between two SIP UA behind same NAT(far-end).
SIP UA is cisco c20/polycom realpresence.
If I restart the brekeke several times, this wouldn't happen.
Do you have idea about that ? _________________ semin kim |
|
Back to top |
|
ambrosio Brekeke Master Guru
Joined: 27 Mar 2008 Posts: 215
|
Posted: Tue Aug 11, 2015 9:51 am Post subject: |
|
|
When does drop happen? Is it at the beginning of RTP session?
The setting "net.rtp.native=false" disables OS's native code for relaying RTP packets. If the value is false, SIP server uses the routine written by Java for RTP-relay.
Could you send the captured file to support@brekeke.com ?
Thanks |
|
Back to top |
|
ancysmk Brekeke Member
Joined: 15 Jun 2014 Posts: 15
|
Posted: Tue Aug 11, 2015 5:38 pm Post subject: |
|
|
I will check when the drop happen and tell you.
If I disable the option,
Does it lack as much performance compared to use TRUE option in relaying rtp packets ? _________________ semin kim |
|
Back to top |
|
ambrosio Brekeke Master Guru
Joined: 27 Mar 2008 Posts: 215
|
Posted: Wed Aug 12, 2015 10:43 am Post subject: |
|
|
> Does it lack as much performance compared to use TRUE option in relaying rtp packets ?
YES.
"net.rtp.native=true" (default) uses OS's native code which provides higher performance.
"net.rtp.native=false" uses Java based code.
If you can send us support@brekeke.com the packet file, our engineer analyzes packets. |
|
Back to top |
|
ancysmk Brekeke Member
Joined: 15 Jun 2014 Posts: 15
|
Posted: Thu Aug 13, 2015 6:43 pm Post subject: |
|
|
I sent the captured file to your email. _________________ semin kim |
|
Back to top |
|
ambrosio Brekeke Master Guru
Joined: 27 Mar 2008 Posts: 215
|
Posted: Thu Aug 13, 2015 10:52 pm Post subject: |
|
|
Hi semin,
Yes we received it. Thank you.
Our developer recommends the following setting in [Configuration]->[Advanced] page.
- Remove "net.rtp.native=false"
- Add the new line.
net.rtp.udp.recv.bufsize=80000 |
|
Back to top |
|
ancysmk Brekeke Member
Joined: 15 Jun 2014 Posts: 15
|
Posted: Fri Aug 14, 2015 1:10 am Post subject: |
|
|
Thanks for your reply.
I applied the option which is "net.rtp.udp.recv.bufsize=80000" you told me but I am afraid the issue might not be cleared.
I sent the captured file and result of test.
thanks, _________________ semin kim |
|
Back to top |
|
ancysmk Brekeke Member
Joined: 15 Jun 2014 Posts: 15
|
Posted: Sun Aug 23, 2015 7:32 pm Post subject: |
|
|
When I applied the option which is " rtp.behindnat.send=true",
Test result is good.
I want to know whether packets is discarded in twenty more rtp session relayed at brekeke (include video/audio).
How can I get log at brekeke to detect whether packet is dropped or not in relaying? because it is difficult to detect the packets discarded in the condition by wireshark. _________________ semin kim |
|
Back to top |
|
|