Haivision / srt

Secure, Reliable, Transport
https://www.srtalliance.org
Mozilla Public License 2.0
3.11k stars 852 forks source link

Bandwidth Loop Test #697

Closed rmsoto closed 5 years ago

rmsoto commented 5 years ago

Hello @maxlovic ,

I´m ready to perform some tests about the BW issue I´m dealing, maybe you can show me how to read the filename.csv and how to tweak the commands to give me some clues.

I executed the commands you have in the readme:

Caller:

./srt-test-messaging "srt://80.84.129.197:4200?nakreport=true&sndbuf=12058624&smoother=live&maxbw=40000000" "" -bitrate 100000000 -msgsize 1456 -reply 0 -repeat 250000 -printmsg 0 -statsfile filename.csv -statsfreq 1
Connect to srt://80.84.129.197:4200?nakreport=true&sndbuf=12058624&smoother=live&maxbw=40000000

ERROR: Still have undelivered bytes 11648

Listener:

./srt-test-messaging "srt://:4200?nakreport=true&rcvbuf=12058624&smoother=live" -reply 0 -msgsize 1456 -printmsg 0

Listen to srt://:4200?nakreport=true&rcvbuf=12058624&smoother=live

I´m also attaching the filename.csv I got from the first test

filename.zip

Thanks! Raúl.

maxsharabayko commented 5 years ago

@rmsoto The CSV file contains SRT stats. The namings are preserved. Refer to CBytePerfMon structure.

From the stats I see the sender is sending at ~350 Mbps, which is 25k packets. 20k packets are reported lost, and are being retransmitted. RTT is 13 ms. sender_packets_plot

The next step is to understand, if this happens due to the network throughput, of it is an issue with SRT. There is a number of utilities: iperf, ethr. If you are familiar with golang, ethr is quite functional. To run UDP bandwidth test run server:

ethr -s -ports control=4287,tcp=4299,udp=4201,http=4289,https=4288

and client:

ethr -c 13.93.115.208 -n 1 -p udp -t b -ports control=4287,tcp=4299,udp=4201,http=4289,https=4288 -l 64KB

Although sometimes ethr does not show receiving speed in UDP tests.

There is also a simple UDP bwcheck utility, it will require you to build boost though.

rmsoto commented 5 years ago

Thanks!

maxsharabayko commented 5 years ago

Hi @rmsoto Do you have updates on this issue?

rmsoto commented 5 years ago

not yet, sorry. Hope to have something anytime soon.

maxsharabayko commented 5 years ago

@rmsoto Looking forward for your feedback on this issue. Will close for now.

rmsoto commented 5 years ago

Sorry for my late answer, finally we´ve found a switch in one of the sites that have one of his ports negotiating at 100Mbps :-S anyway I must continue testing! Thanks for the help!

[Overon]

RAÚL MANSILLA Innovation | R&D

[skype] <skype:raul_mansilla?call> [linkedIn] http://www.linkedin.com/profile/view?id=37659057&trk=tab_pro | OVERON http://www.overon.es/ | C/ Virgilio, 2 | Edificio Overon | 28223 | Madrid | Spain |

De: Maxim Sharabayko notifications@github.com Enviado el: lunes, 24 de junio de 2019 7:20 Para: Haivision/srt srt@noreply.github.com CC: Raul Mansilla Soto raul.mansilla@overon.es; Mention mention@noreply.github.com Asunto: Re: [Haivision/srt] Bandwidth Loop Test (#697)

@rmsotohttps://github.com/rmsoto Looking forward for your feedback on this issue. Will close for now.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Haivision/srt/issues/697?email_source=notifications&email_token=AIEFMHXW6B7TZYJT62SKTEDP4BKOLA5CNFSM4HOJFPY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYLZFDI#issuecomment-504861325, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AIEFMHX7R3AKEV2M7LFWOYDP4BKOLANCNFSM4HOJFPYQ.

maxsharabayko commented 5 years ago

Closing for now. Do not hesitate to reopen would you have an update.