Menu

#25 Sometimes the call is choppy

last_release
open
media (4)
5
2011-12-29
2011-12-29
rbesen
No

The call is chopping, sometimes the problem is in the middle of the call, other at the beginning and others not. The problem happen because the rtp packed flow get low, Above you can see a TCPDump:

20:39:54.365614 IP 172.16.16.220.8000 > 172.16.16.201.11950: UDP, length 172
20:39:54.365779 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:54.386614 IP 172.16.16.220.8000 > 172.16.16.201.11950: UDP, length 172
20:39:54.386854 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:54.407613 IP 172.16.16.220.8000 > 172.16.16.201.11950: UDP, length 172
20:39:54.407779 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:54.428612 IP 172.16.16.220.8000 > 172.16.16.201.11950: UDP, length 172
20:39:54.428778 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:54.449620 IP 172.16.16.220.8000 > 172.16.16.201.11950: UDP, length 172
20:39:54.449791 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:54.470612 IP 172.16.16.220.8000 > 172.16.16.201.11950: UDP, length 172
20:39:54.470780 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:54.491614 IP 172.16.16.220.8000 > 172.16.16.201.11950: UDP, length 172
20:39:54.491780 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:54.512613 IP 172.16.16.220.8000 > 172.16.16.201.11950: UDP, length 172
20:39:54.512782 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:54.533611 IP 172.16.16.220.8000 > 172.16.16.201.11950: UDP, length 172
20:39:54.533716 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:54.554609 IP 172.16.16.220.8000 > 172.16.16.201.11950: UDP, length 172
20:39:54.554744 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:54.575621 IP 172.16.16.220.8000 > 172.16.16.201.11950: UDP, length 172
20:39:54.575758 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:54.596616 IP 172.16.16.220.8000 > 172.16.16.201.11950: UDP, length 172
20:39:54.596787 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:54.617614 IP 172.16.16.220.8000 > 172.16.16.201.11950: UDP, length 172
20:39:54.617799 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:57.925171 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:57.969160 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:57.969168 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:57.993722 IP 172.16.16.220.8000 > 172.16.16.201.11950: UDP, length 172
20:39:57.993758 IP 172.16.16.220.8000 > 172.16.16.201.11950: UDP, length 172
20:39:57.993802 IP 172.16.16.220.8000 > 172.16.16.201.11950: UDP, length 172
20:39:57.993830 IP 172.16.16.220.8000 > 172.16.16.201.11950: UDP, length 172
20:39:57.993930 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:58.037158 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:58.037177 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:58.081188 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:58.081199 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:58.081202 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:58.125175 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:58.125186 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:58.169164 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:58.169174 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:58.213163 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:58.213171 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:58.257166 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:58.257175 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:58.301175 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:58.301182 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:58.301185 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:58.345166 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172
20:39:58.345174 IP 172.16.16.201.11950 > 172.16.16.220.8000: UDP, length 172

Looks like something wrong when peers try to capture de audio from microphone, debbuging the RTPSender is possible watch this part of code is taking so much time:

try {
while (!isStopped && numBytesRead < buf_size) {
// expect that the buffer is full
tempBytesRead = encodedData.read(buffer, numBytesRead,
buf_size - numBytesRead);
numBytesRead += tempBytesRead;
}
} catch (IOException e) {
Logger.getLogger(RtpSender.class).error("input/output error", e);
return;
}

Discussion

  • rbesen

    rbesen - 2011-12-29
    • summary: Sometimes the call is chopping --> Sometimes the call is choppy
     
  • yohannmartineau

    yohannmartineau - 2011-12-30

    hi,

    thanks for your detailed report.

    Did you check cpu/memory usage and non-sip network traffic when the sound is choppy?

    thank you

     
  • rbesen

    rbesen - 2011-12-30

    Yes, I did. cpu/memory usage and network traffic are normal. In hardwares where the problem happen the targerDataLine buffer always change, and when the call is choppy the value of buffer is 7998, this is related with sample rate, I try change the sample rate to 4000Hz and the value change to 3998. In hardwares where the problem do not happen the buffer value is always 320.

     
  • yohannmartineau

    yohannmartineau - 2012-01-02

    ok, I think it would be useful to perform standalone tests on target data line on this specific hardware. You mean targetDataLine buffer size always changes? maybe .available() function is not implemented on this hardware?

    is it an exotic jvm or hardware? are you running on android or another embedded platform?

     
  • rbesen

    rbesen - 2012-01-02

    It's a commom PC, the problem happen in more the one hardware. In this PC and also in Tyco touch computer. The Version 0.4.2 the problem do not happen

     
  • yohannmartineau

    yohannmartineau - 2012-01-02

    ok, so let's use 0.4.2 for the moment, i'll take a look at it when i find free time.

     
  • Nobody/Anonymous

    XRD9oc <a href="http://godbhekqkqny.com/">godbhekqkqny</a>, [url=http://bqcphetgcrqo.com/]bqcphetgcrqo[/url], [link=http://xkvndqajeykg.com/]xkvndqajeykg[/link], http://kajmtdtiqmom.com/

     
  • Nobody/Anonymous

    9rhD0S <a href="http://zkczkyggwthb.com/">zkczkyggwthb</a>, [url=http://zpebtlbwqess.com/]zpebtlbwqess[/url], [link=http://kevpyxeflnde.com/]kevpyxeflnde[/link], http://yvkpwzaoyoiy.com/