Closed drbw closed 4 years ago
Hi, share the pcap please
Attached is a pcap from a call to Echo, with 5 kbps bandwidth, 100ms +- 100ms delay, 10% loss, 25% reordering. Wireshark can't open it, by the way - is it some proprietary format? Otherwise I'd have looked at it myself.
Screenshot of ping statistics to the PBX is attached as well (avg / minmax as shadow) - it's clearly visible that the restrictions are working. I had the jitter running over night and re-introduced the loss and bandwidth restriction when the line gets torn.
I need pcap which I can open in the wireshark - run the tcpdump during your test and send the raw pcap
Hi, RTP pcap is attached. For a single call for the first time, the f1_min MOS actually dropped to 3.7 now and adapt_min to 4.0, by the way. (Rest still 4.5.) However, listening to the echoed stream, you can hear the single packets trickling in from the PBX - that's more like 1.0 MOS... but at least it means the relevant code is executed. It still looks like it's mostly using the values you initialize the variables with, though.
Also, for the linked pcap, voipmonitor still writes a loss of 0 to the DB and logs "total loss: 0" to console. At the same time, I'm seeing messages like this:
voipmonitor | bc loss[5]: 7 bc loss[117]: 1
voipmonitor | bc loss[7]: 3 bc loss[110]: 1
voipmonitor | bc loss[15]: 2 bc loss[18]: 1 bc loss[127]: 1
The console output is a bit hard to interpret, though, to be honest...
I'm checking the pcap and there is no packet loss at all (I'm checking stream coming from 172.31.0.2)
That's the stream from sipp
whose network stack voipmonitor
is sitting on, it's always going to look good. If I could give you the full traffic, it would be clearer and you could listen to it in Wireshark, but unfortunately that would reveal sensitive information.
However, the issue seems to be resolved. I dropped such large amounts of packets because I wasn't seeing stats in the beginning due to configuration errors and just kept them like that. It seems the quality was just too bad for your model. I tried with less aggressive limits and (1% packet loss and 2% reordering) and b_mos_f1_min instantly crashes to 1.0 and more or less stays there.
Weirdly, the adapt value floats between 3.5-4.5 and f2 is still sitting at 4.5, though, and 0 loss is written to the DB. However, I think the problem may be more in my simple approach to testing - I'll ask our network guys to produce some more realistic issues on the line instead of on the Docker host.
Thanks for responding so quickly! Hope this thread will help people looking for ways to test your sniffer.
I'm currently deploying the sniffer as a Docker container in order to monitor calls being made by
sipp
. For this, I'm usingservice:sipp
networking mode and sniffing outgoing traffic from thesipp
container. This works well for recording jitter and delay which appear to reflect conditions well.The calls are ca. 2min in length and go to echo or to me for testing. It's just one at a time for now - I may sniff our production calls later. The codec is G711a and I'm just playing back the well-known wurlitzer sample in a loop.
However, no matter what I do, my MOS is at a stable 4.5. I've tried introducing massive packet loss (10%) with
emnet
andiptables
on the Docker host, reordering packets a lot and introducing large amounts of jitter. In order to make sure it wasn't a local effect, I also limited the bandwidth to 1 kbit/s on the firewall (we have a cloud PBX). All of these produce clearly audible distortions, delays, reordering, stuttering etc. so the actual MOS was very low.However, with -v 999
sniffer
still reports:voipmonitor.conf
:Is this a bug or am I not getting something?