<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hello Luca,<br>
    <br>
    We are still playing with visualization of your data, but I didn't
    want you to wait any longer for some results.  I think I blame both
    DT and the Pi :)<br>
    <br>
    First, a look at the phone side of your Banana Pi.  The first thing
    we noticed is there were a LOT more packets in one direction (north
    towards DT) than the other (towards the phone):<br>
    <br>
    <blockquote><tt>jeff@jasper:~/Personal/StratusTalk/wotinder/Luca/tmp$
        tcpdump -nr testPhone.pcap src 192.168.200.10 | wc -l</tt><br>
      <tt>reading from file testPhone.pcap, link-type EN10MB (Ethernet)</tt><br>
      <tt>7951</tt><br>
      <tt>jeff@jasper:~/Personal/StratusTalk/wotinder/Luca/tmp$ tcpdump
        -nr testPhone.pcap dst 192.168.200.10 | wc -l</tt><br>
      <tt>reading from file testPhone.pcap, link-type EN10MB (Ethernet)</tt><br>
      <tt>3981</tt><br>
    </blockquote>
    <br>
    Note there are almost twice as many packets headed out.  Our tool
    takes a shot at it:<br>
    <br>
    <blockquote><tt>jeff@jasper:~/Personal/StratusTalk/wotinder/Luca/tmp$
        wotinder -I testPhone.pcap</tt><br>
      <tt>input: testPhone.pcap</tt><br>
      <tt>2020/06/16 10:47:16.047401 INVITE 192.168.200.10:25572 (Luca)
        -> 192.168.200.1:25572 (<a class="moz-txt-link-freetext"
          href="sip:035014649215">sip:035014649215</a>)-(81b17560-c0a80101-0-1798,10000)</tt><br>
      <tt>2020/06/16 10:47:16.112866 DUPINVITE 192.168.200.10:25572
        (Luca) -> 192.168.200.1:25572 (<a
          class="moz-txt-link-freetext" href="sip:035014649215">sip:035014649215</a>)-(81b17560-c0a80101-0-1798,10000)</tt><br>
      <tt>2020/06/16 10:48:43.690647 BYE 192.168.200.1:25572(<a
          class="moz-txt-link-freetext" href="sip:035014649215">sip:035014649215</a>)
        -> 192.168.200.10:25572(Luca)</tt><br>
      <tt>    Session: 81b17560-c0a80101-0-1798</tt><br>
      <tt>    RTP 10000 -> 10030</tt><br>
      <tt>    Source total pkts: 7899 (avg err 15934.774414)</tt><br>
      <tt>    Dest total pkts: 3943 (avg err 8307.511719)</tt><br>
    </blockquote>
    The "average error" is the average departure from exactly 50hz, in
    microseconds.  Basically we are wanting to see a packet every
    20,000us, and if it arrives early (because the last one was late) or
    late, then the absolute value of how far off it was is accumulated,
    and in the end averaged.  Its a bit misleading in this case, because
    there has clearly been packet loss in one direction, and I am still
    wrapping my head around why the error isn't much higher (some kind
    of bug in our packet loss penalties).<br>
    <br>
    It does show that from the BPi's perspective, the stream from the
    phone is NOT very steady.  The *average* error was almost a full
    packet length late (16,000us).  Now our tool spits out the raw data
    (time between packets in us) and we can quickly graph it.  I lined
    up the two legs, but of course you are only seeing half of the
    second one, and it makes an interesting visual:<br>
    <br>
    <img moz-do-not-send="false"
      src="cid:part4.064B99F6.AB0F0DD0@stratustalk.com" alt=""
      width="1200" height="742"><br>
    What on earth is causing the very regular spikes?  Roughly every
    second there seems to be a delay introduced, EVEN FROM THE PHONE ON
    THE LAN!  This worries me that we have asked the Pi to do too much. 
    Perhaps capturing the data and writing it while also running
    asterisk is causing something to back up regularly.  We do prefer to
    do this kind of analysis from a span port on a switch...<br>
    <br>
    But that doesn't explain the missing packets from DT.<br>
    <br>
    Similar results on that side:<br>
    <br>
    <blockquote><tt>jeff@jasper:~/Personal/StratusTalk/wotinder/Luca/tmp$
        tcpdump -nr testDSL.pcap src 91.49.58.181 | wc -l</tt><br>
      <tt>reading from file testDSL.pcap, link-type LINUX_SLL (Linux
        cooked)</tt><br>
      <tt>8048</tt><br>
      <tt>jeff@jasper:~/Personal/StratusTalk/wotinder/Luca/tmp$ tcpdump
        -nr testDSL.pcap dst 91.49.58.181 | wc -l</tt><br>
      <tt>reading from file testDSL.pcap, link-type LINUX_SLL (Linux
        cooked)</tt><br>
      <tt>4076</tt><br>
    </blockquote>
    <br>
    I'm making an assumption that 91.49.58.181 is your side of the DSL,
    and the packets towards you seem to be missing a lot!  I can't
    explain that as a Pi issue *unless* something funny is happening on
    the kernel handling inbound public traffic.  You mention you are
    traffic shaping - that could easily be causing something like this. 
    Running our tool on that trace:<br>
    <br>
    <blockquote><tt>jeff@jasper:~/Personal/StratusTalk/wotinder/Luca/tmp$
        wotinder -I DSL.pcap</tt><br>
      <tt>input: DSL.pcap</tt><br>
      <tt>2020/06/16 10:47:16.196746 INVITE 91.49.58.181:25572
        (00493514977290) -> 217.0.27.53:5060 (<a
          class="moz-txt-link-freetext" href="sip:035014649215">sip:035014649215</a>)-(765cb6164b1c122a3b9c8303600ea367,10036)</tt><br>
      <tt>2020/06/16 10:47:16.296309 DUPINVITE 91.49.58.181:25572
        (00493514977290) -> 217.0.27.53:5060 (<a
          class="moz-txt-link-freetext" href="sip:035014649215">sip:035014649215</a>)-(765cb6164b1c122a3b9c8303600ea367,10036)</tt><br>
      <tt>2020/06/16 10:47:16.357971 DUPINVITE 91.49.58.181:25572
        (00493514977290) -> 217.0.27.53:5060 (<a
          class="moz-txt-link-freetext" href="sip:035014649215">sip:035014649215</a>)-(765cb6164b1c122a3b9c8303600ea367,10036)</tt><br>
      <tt>2020/06/16 10:47:16.457280 DUPINVITE 91.49.58.181:25572
        (00493514977290) -> 217.0.27.53:5060 (<a
          class="moz-txt-link-freetext" href="sip:035014649215">sip:035014649215</a>)-(765cb6164b1c122a3b9c8303600ea367,10036)</tt><br>
      <tt>2020/06/16 10:48:43.680671 BYE 217.0.27.53:5060(<a
          class="moz-txt-link-freetext" href="sip:035014649215">sip:035014649215</a>)
        -> 91.49.58.181:25572(00493514977290)</tt><br>
      <tt>    Session: 765cb6164b1c122a3b9c8303600ea367</tt><br>
      <tt>    RTP 10036 -> 6300</tt><br>
      <tt>    Source total pkts: 7898 (avg err 15771.558594)</tt><br>
      <tt>    Dest total pkts: 3943 (avg err 6995.069824)</tt><br>
    </blockquote>
    <br>
    The DUPINVITE packets I think are probably negotiations.  I didn't
    dive into a SIP analysis, but it may be good to look at the SDP and
    confirm codec selection, etc.<br>
    <br>
    Funny enough, a visual of THAT side looks exactly the same:<br>
    <br>
    <img moz-do-not-send="false"
      src="cid:part10.1DF68191.EBFBDAEF@stratustalk.com" alt=""
      width="1200" height="742"><br>
    This really is telling I think about the Pi's ability to keep up
    with everything you are asking it to do, when looked at from the
    *microsecond* perspective.<br>
    <br>
    Still doesn't explain the lack of traffic from DT... I would call
    them, send them the trace you sent me, and this message.<br>
    <br>
    Good luck!<br>
    <br>
    Cheers,<br>
    <br>
    j<br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 6/15/20 3:27 PM, Luca Bertoncello
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:e533f21e-d2de-5932-159d-67ddfc6c9293@lucabert.de">
      <pre class="moz-quote-pre" wrap="">Am 15.06.2020 um 21:50 schrieb Luca Bertoncello:

</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">What do you mean now? If I can use the full available band or if I can
download exactly 50Mbs?
The answer to the first question is: YES! That's why I use a traffic
shaper... ;)
The answer to the second question is: NO. I made a speedtest right now
and I get only ~18Mbps download.
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
And some other information, too.

I checked the xDSL-statistics of my DSL-Modem (which use the BananaPI to
establish the PPPoE connection):

                                        adsl: ADSL driver and PHY status
Status: Showtime
Last Retrain Reason:    2
Last initialization procedure status:   0
Max:    Upstream rate = 1709 Kbps, Downstream rate = 19888 Kbps
Bearer: 0, Upstream rate = 1626 Kbps, Downstream rate = 20113 Kbps
Bearer: 1, Upstream rate = 0 Kbps, Downstream rate = 0 Kbps

So it seems, that my connection is about the half of the theorical one...

I think, I must call Deutsche Telekom, but since I'll change my contract
at 18.06., I'll wait some days. Then I'll have a "business" contract,
and I hope I don't must speak with someone that can just say "you have
to reboot your Fritzbox. What? You don't have a Fritzbox? That's not
possible. Please check your Fritbox, I can't reach it"... ;)

Bye
Luca Bertoncello
(<a class="moz-txt-link-abbreviated" href="mailto:lucabert@lucabert.de">lucabert@lucabert.de</a>)

</pre>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <p style="FONT-SIZE: 10pt; MARGIN-BOTTOM: 5pt; FONT-FAMILY: ARIAL;
        MARGIN-TOP: 0pt">
      </p>
      <table style="width:480px" cellspacing="0" cellpadding="0"
        border="0">
        <tbody>
          <tr>
            <td style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; WIDTH:
              200px" rowspan="2" valign="top"> <img
                src="http://www.stratustalk.com/email/logojeff.gif"
                border="0"> </td>
            <td style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; WIDTH:
              280px; border-left: 1px solid #3d85c6; PADDING-LEFT: 20px"
              valign="top"> <strong style="FONT-SIZE: 18pt;
                FONT-FAMILY: Arial Black">Jeff LaCoursiere</strong><br>
              STRATUSTALK, INC. / CTO<br>
              <br>
              <table style="WIDTH: 255px" cellspacing="0"
                cellpadding="0" border="0">
                <tbody>
                  <tr>
                    <td style="FONT-SIZE: 9pt; FONT-FAMILY: Arial;
                      WIDTH: 80px; COLOR: #000000" valign="top">Phone:</td>
                    <td style="FONT-SIZE: 9pt; FONT-FAMILY: Arial;
                      WIDTH: 175px; COLOR: #000000" valign="top"><strong>+1
                        703.496.4990 x108</strong></td>
                  </tr>
                  <tr>
                    <td style="FONT-SIZE: 9pt; FONT-FAMILY: Arial;
                      WIDTH: 80px; COLOR: #000000" valign="top">Mobile:</td>
                    <td style="FONT-SIZE: 9pt; FONT-FAMILY: Arial;
                      WIDTH: 175px; COLOR: #000000" valign="top"><strong>+1
                        815.546.6599</strong></td>
                  </tr>
                  <tr>
                    <td style="FONT-SIZE: 9pt; FONT-FAMILY: Arial;
                      WIDTH: 80px; COLOR: #000000" valign="top">Email:</td>
                    <td style="FONT-SIZE: 10pt; FONT-FAMILY: Arial;
                      WIDTH: 175px" valign="top"><a style="FONT-SIZE:
                        9pt; TEXT-DECORATION: none; COLOR: #000000"
                        href="mailto:jeff@stratustalk.com"><strong>jeff@stratustalk.com</strong></a>
                    </td>
                  </tr>
                  <tr>
                    <td style="FONT-SIZE: 9pt; FONT-FAMILY: Arial;
                      WIDTH: 80px; COLOR: #000000" valign="top">Website:</td>
                    <td style="FONT-SIZE: 9pt; FONT-FAMILY: Arial;
                      WIDTH: 175px; COLOR: #000000" valign="top"> <a
                        style="FONT-SIZE: 9pt; TEXT-DECORATION: none;
                        COLOR: #000000"
                        href="https://www.stratustalk.com"><strong>https://www.stratustalk.com</strong></a></td>
                  </tr>
                  <tr>
                    <td style="FONT-SIZE: 9pt; FONT-FAMILY: Arial;
                      WIDTH: 80px; COLOR: #000000" valign="top">Address:</td>
                    <td style="FONT-SIZE: 9pt; FONT-FAMILY: Arial;
                      WIDTH: 175px; COLOR: #000000" valign="top"><strong>One
                        Freedom Square<br>
                        13th Floor<br>
                        Reston, VA 20190</strong></td>
                  </tr>
                </tbody>
              </table>
            </td>
          </tr>
          <tr>
            <td style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; WIDTH:
              280px; PADDING-LEFT: 20px" valign="bottom"> <a
                href="https://www.facebook.com/jeff.lacoursiere"><img
                  src="http://www.stratustalk.com/email/fb.png"
                  border="0"></a>  <a
                href="https://linkedin.com/in/jeff-lacoursiere-884361"><img
                  src="http://www.stratustalk.com/email/ln.png"
                  border="0"></a>  <a
                href="https://www.twitter.com/stratustalk"><img
                  src="http://www.stratustalk.com/email/tt.png"
                  border="0"></a>  </td>
          </tr>
        </tbody>
      </table>
      <p><br>
      </p>
    </div>
  </body>
</html>