Which number counts pieces, and which marks their moment?
01RTP adds labels to sound or picture pieces. A packet number counts packets; a media timestamp marks a sampling moment.
Follow these objects, then change one choice below.
Packets are pieces carried to the player
Each arriving packet needs labels for order and media timing.
Count the packets
This count changes for each new packet.
What happens if you change this?
Change one choice and see its effect. Restart restores the original example.
Associate the packet with a synchronization source.
Key idea: Packet numbers count packets. Media timestamps mark sampling moments.
Terms
- Sequence number
- A 16-bit RTP counter incremented for each RTP data packet sent.
- RTP timestamp
- A 32-bit sampling-time value in the media clock’s units. Its rate depends on the media format, not network arrival time.
- SSRC
- Synchronization source identifier: identifies a source within an RTP session. It is not a user password.
Rules & examples
Packet numbers count packets. Media timestamps mark sampling moments.
- The sequence number increments for every RTP data packet.
- The timestamp represents the sampling instant of the first payload octet.
- The SSRC identifies the synchronization source within a session.
The illustration is schematic. Example values are illustrative; profiles and later security guidance can add requirements.
Sequence numbers 100, 101, 102; RTP timestamps 0, 160, 320; clock rate 8000 Hz; payload type 0. Video PT 96 assumes an agreed 90000-Hz format; its payload bytes are illustrative, not a complete video codec. Audio timestamp spacing 160 at 8000 Hz represents 20 ms. Video uses a 90000-Hz fixture: two packets share one frame timestamp; the next is 3000 ticks later. Sequence wraps modulo 65536. All initial values and SSRC 123 are fixed teaching choices, not production randomization. Actual CC=0 RTP packets: 80 00 00 64 00 00 00 00 00 00 00 7b 4c 41 | 80 00 00 65 00 00 00 a0 00 00 00 7b 4c 41 | 80 00 00 66 00 00 01 40 00 00 00 7b 4c 41.
Sources
New to this? Start hereA quick picture + helpful background
Finding a route and sending media are separate jobs.
Some messages set up a conversation or discover a reachable address. Other packets carry the audio or video. Follow those jobs separately.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.
RFC 3550 revises the earlier RTP specification, including more scalable RTCP timing and expanded implementation guidance.
Read the updated RFC section ↗