Table of Contents

RTP Analysis

Troubleshooting Quality and One-Way-/No-Audio Issues in VoIP environments

Intro

Despite other methods of communication, such as email and messaging, telephony is and remains an important means of communication. Bandwidth requirements are low for it, but it has strict requirements regarding low delay, jitter, and packet loss to achieve good quality. As an additional point, bidirectional RTP streams, combined with SIP and the exchange of media attributes via Session Description Protocol (SDP), can lead to unidirectional or no audio problems with firewalls. Packet analysis can prove the relevant quality metrics for RTP streams. The following workflow shows how RTP packets can be captured and analyzed using a Profitap IOTA running IOTA v6 software.

Workflow

In this workflow, we will be using an IOTA 10 CORE+ model.

Start Capturing

First, we need to set up the capture interfaces, as shown in Figure 1. For this, go to Capture Management in the menu on the left side, then use the cards at the top of the page to open the Capture Interfaces tab.

Review the Capture Interface Configuration section on the bottom-left side of the page. There, you can set the capture interface speed according to your transceiver speeds. In this case, the available options are 2x1G and 2x10G. In addition, two capture modes are available: Inline and SPAN. In Inline mode, traffic flows between both ports, and is captured from both receive directions on the device's SFP+ ports. In SPAN mode, either or both ports can receive traffic from SPAN ports or external TAPs; traffic is not transmitted between ports, and is only received (and captured). If you change the capture interface speed or capture mode, click Apply at the bottom of the section to confirm the new configuration.

In the Timestamp Synchronization section, you can control which time source to use for capture timestamping, and which synchronization sources to use for timestamp clock synchronization. The Capture Time Source is the time source used to initialize the capture time, and can be set to System Time (PTP or NTP) or GPS Time (from a GPS antenna). The Synchronization Sources are used to keep the capture time synchronized over time. The available sources are Precision Time Protocol (PTP), Global Positioning System (GPS) or an external Pulse Per Second (PPS) source, and you can change their order of priority and enable or disable them individually. In this section, you can also see the current time source and the states of available time sources.


Figure 1: Capture Interface and Timestamp Synchronization settings.

Afterward, you need to set up traffic analysis in the corresponding tab. Under Traffic Analysis Settings on the right side, set Analysis Mode to Complete and activate RTP Performance Analysis to use deep packet inspection with protocol decoding and application classification, as well as RTP performance metrics.

After you set everything up as needed, click the Start button in the Analysis Session section to begin the traffic capture process.


Figure 2: Traffic analysis settings to enable DPI and RTP performance metrics.

On the Data Storage tab, check that RTP traffic is not excluded from capturing and is captured in full length, as in Figure 3, to get the payload if needed. The example shows a UDP port range from a well-known vendor, but you should make sure that UDP port range fits your environmental needs. You could also implement packet slicing to remove the payload with audio information for privacy reasons while keeping header information to be able to calculate quality metrics. So audio streams could be analyzed regarding quality but not heard in tools like the RTP Player in Wireshark.


Figure 3: Packet capture filtering settings.

RTP Analysis

To analyze RTP, go to Dashboards > RTP Traffic Analysis in the left menu bar. There, you can see colored cards with quality indicators for MOS, Jitter, and Packet Loss (see Figure 4). These cards change color between green and red according to quality indicators. In the case of MOS, the color changes if it falls below 3; for Jitter, if it exceeds 50 milliseconds; and for Packet Loss, if it goes over 10 percent. With a single click on these cards, you can filter RTP stream pairs that exceed these thresholds.

This leads you directly to problematic streams in the table below, which displays RTP Stream pairs. It shows you one line for every pair and varies depending on your filters and timeframes. By default, for every stream, you get average jitter, percentage of packet loss, estimated MOS, number of streams per direction, and number of packets.

The color of the quality indicators can switch between green and red according to their value, so you can easily spot problems in your streams. You can easily sort by the content of a specific column by clicking on the arrows next to it. If you need more or less information on a specific stream pair, open the table options by clicking the hamburger button near the upper right side of the table and select the information you would like to display. For RTP, this could be the following for client and/or server:


Figure 4: RTP Traffic Analysis dashboard.

In addition, from the table options, you can also request a report as CSV or PDF, which is directly downloaded after a single click. You can find an example in Figure 5.


Figure 5: RTP Traffic Analysis Report as PDF.

On the left side of each line of the table, you can click on the download button to get a PCAPNG file of the corresponding stream pair. If you click the radio button next to the download button, you can select the stream pair for which you would like to see minimum MOS, average jitter, and packet loss percentage.

Overview

If you would like to get an overview of the RTP traffic flowing in your network, navigate to Dashboards > RTP Traffic Overview. There, you get a timegraph which by default shows an overview of your sent RTP packets, and you can also switch to lost, overhead, out-of-order and duplicate packets as well as jitter and MOS Estimation in the selected timeframe.

In the timegraph, you can click and drag over a specific timeframe to restrict the stream pair in the Top RTP Connections table on the lower left side. In this table, you can select different column contents in the table options to see different quality indicators, and click an IP address to add include and exclude filters in this view or open the details dashboard for this IP address. If you would like to get detailed data, you are able to download a PCAPNG file with a single click on the download button to the left of the RTP stream pair.


Figure 6: RTP Traffic Overview dashboard.