---
title: "RTP Troubleshooting Tip: See a Sample of RTP frames in a Packet - ECG"
description: "Question: How do you make a display filter that filters out most RTP frames, but leaves a representative sample? Sometimes it's convenient to see a samplin"
---

[VoIP & Network Technology Latest News & Insights | ECG](https://www.ecg.co/blog)

# [RTP Troubleshooting Tip: See a Sample of RTP frames in a Packet - ECG](https://www.ecg.co/blog/19-rtp-troubleshooting-tip-see-a-sample-of-rtp-frames-in-a-packet-capture)

 Written by [Mark Lindsey](https://www.ecg.co/blog/author/mark-lindsey) | Aug 19, 2015, 4:00:00 AM

***Question:***

How do you make a display filter that filters out most RTP frames, but leaves a representative sample? Sometimes it's convenient to see a sampling of RTP frames in Wireshark, without having to see 50 per second.

***Answer:***

Rather then see 50 frames per second for every RTP flow, how about one frame every 5 seconds?

Wireshark display filter:

```

rtp[3:1]==0 or rtp.marker==1
```

Shows an RTP packet for each RTP stream  
 -- about every 5 seconds  
 -- or when the stream starts afresh

***How does it work?***

- The 3rd and 4th bytes of the RTP frame are sequence number
- The sequence number increases monotonically (40704, 40705, 40706, etc.)
- rtp\[x:y\] gives the Y-number of bytes that appear at X-offset in the RTP frame, where the first byte in the packet is at 0 offset
- rtp\[3:1\] gives the 1 byte that appears in the 4th byte of the frame (see the "00" in attached screenshot). This is the least-significant byte of the number.
- Normal VoIP RTP sends 1 frame every 20 millseconds
- Since the RTP frame is a 2-byte value, then 1 out of every 256 frames will have a least-significant-byte value of 0
- 256 \[sequence numbers\] \* 20 ms = 5.12 seconds
- I'm glossing over some details in the previous two points
- Each time a new RTP flow starts, the sender should send an RTP frame with rtp.marker==1

[View full post](https://www.ecg.co/blog/19-rtp-troubleshooting-tip-see-a-sample-of-rtp-frames-in-a-packet-capture)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Mark Lindsey"
  },
  "dateModified" : "2024-03-25T07:07:43.445Z",
  "datePublished" : "2015-08-19T04:00:00Z",
  "headline" : "RTP Troubleshooting Tip: See a Sample of RTP frames in a Packet",
  "image" : {
    "@type" : "ImageObject",
    "height" : 60,
    "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
    "width" : 60
  },
  "mainEntityOfPage" : "https://www.ecg.co/blog/19-rtp-troubleshooting-tip-see-a-sample-of-rtp-frames-in-a-packet-capture",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60,
      "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
      "width" : 60
    },
    "name" : "Blog"
  }
}
```