GoSecurityHub
Technical Article

What Are the Differences Between RTSP, RTPS, RTP, and RSTP? A Technical Comparison Guide

Sistem Yöneticisi29 min read

What are the differences between RTSP, RTPS, RTP, and RSTP? Explore how these four protocols work, their ports, technical features, and applications in IP camera systems, real-time video transmission, DDS data communication, and network loop prevention.

RTSP, RTPS, RTP ve RSTP protokollerinin güvenlik kameraları, endüstriyel otomasyon, gerçek zamanlı video aktarımı ve ağ altyapıları açısından karşılaştırılması.

RTSP, RTPS, RTP, and RSTP are four different protocols used in networking technologies, electronic security systems, real-time data communication, and industrial automation.

Because their names and abbreviations are similar, these protocols are often confused with one another. They operate at different layers of network architecture and meet different communication needs.

RTSP controls video and audio streams; RTP transports real-time media data; RTPS enables data communication between DDS-based distributed applications; and RSTP prevents loops in Ethernet networks and enables rapid reconfiguration of the network topology.

Understanding the roles of these protocols is particularly important when designing IP camera, NVR, VMS, AI video analytics, people-counting, and industrial security systems.

What Are RTSP, RTPS, RTP, and RSTP?

Protocol

Full name in English

Primary function

RTSP

Real-Time Streaming Protocol

Control of video and audio streams

RTPS

Real-Time Publish-Subscribe

DDS-based real-time data communication

RTP

Real-Time Transport Protocol

Transport of real-time media data

RSTP

Rapid Spanning Tree Protocol

Loop prevention in Ethernet networks

These four protocols are not alternatives to one another. In a professional electronic security project, they can perform different functions over the same network infrastructure.

What Is RTSP? How Does It Work?

RTSP (Real-Time Streaming Protocol) is an application-layer protocol used to start, stop, and control real-time media streams such as video and audio.

It was standardized by the Internet Engineering Task Force (IETF).

RTSP 1.0 is defined in RFC 2326, while RTSP 2.0 is defined in RFC 7826.

RTSP is used especially in IP security cameras, NVR recording devices, video management systems, and media servers.

Key RTSP Features

  • Starting live video sessions

  • Controlling audio and video streams

  • Managing media sessions

  • Selecting the main stream and substream

  • Playing recorded footage on supported systems

  • Configuring RTP and RTCP communication

  • User authentication

  • Managing unicast and multicast media sessions

What Are the RTSP Commands?

RTSP command

Function

OPTIONS

Discovering supported commands

DESCRIBE

Retrieving media and stream properties

SETUP

Setting media transport parameters

PLAY

Starting a media stream

PAUSE

Pausing media playback

GET_PARAMETER

Querying supported parameters

SET_PARAMETER

Changing supported parameters

TEARDOWN

Terminating a media session

RTSP Camera Address Example

A vendor-specific RTSP URL can be used to access an IP camera over RTSP.

rtsp://192.168.1.100:554/Streaming/Channels/101

This address is one of the common URL formats used to access the main video stream of the first channel on certain Hikvision devices.

RTSP addresses can vary according to the camera brand, model, and firmware version.

Which Port Does RTSP Use?

Port

Purpose

554

Default RTSP service port

8554

Alternative RTSP service port

322

Default RTSPS service port

RTSP usually controls the media stream. The actual video and audio data, meanwhile, are commonly transported over RTP.

What Is RTP? How Does It Work?

RTP (Real-Time Transport Protocol) is a real-time data transport protocol that carries video, audio, and other time-sensitive data over a network.

It is defined by the IETF under the RFC 3550 standard.

RTP is widely used in IP camera systems, VoIP telephone systems, video conferencing applications, live-streaming infrastructure, and real-time media communication.

Key RTP Features

RTP transports encoded media data in packets. Sequence numbers and timestamps allow the receiving application to assess packet order, identify missing packets, and manage media playback timing.

RTP does not directly guarantee:

  • Delivery of every packet to the receiver

  • Delivery of packets in the correct order

  • A specified maximum delay

  • Guaranteed network bandwidth

These requirements call for additional mechanisms in the network infrastructure and media-processing methods at the application level.

RTP Packet Structure

The fixed RTP packet header has a basic size of 12 bytes. Its size can increase when additional source information and header extensions are used.

RTP header field

Function

Version

RTP version information

Padding

Padding data information

Extension

Header extension information

CSRC Count

Number of contributing sources

Marker

Media-profile-specific marking

Payload Type

Identification of the format of the transported data

Sequence Number

Packet sequence number

Timestamp

Media timing information

SSRC

Synchronization source identifier

CSRC

Contributing source identifiers

The RTP Timestamp value does not necessarily indicate the device's date and time. It represents the sampling time according to the clock rate of the media type.

Which Port Does RTP Use?

There is no single fixed service port that applies to all RTP applications.

RTP ports can be determined through RTSP, SIP, SDP, or other session-establishment mechanisms.

Port

Example use

5004

Example port used for RTP

5005

Example port used for RTCP

10000–20000

Example range configurable in some media and VoIP systems

554

When interleaved RTP is used within an RTSP connection

Traditionally, consecutive even and odd UDP port pairs can be used for RTP and RTCP. However, the same port can also be used with methods such as RTP/RTCP multiplexing.

Which Video and Audio Formats Does RTP Support?

RTP can work with different media-encoding technologies by using suitable payload formats.

Media type

Example formats

Video

H.264, H.265, JPEG, VP8, VP9, AV1

Audio

G.711, G.722, G.726, AAC, Opus

Other

Time-sensitive data with a suitable payload definition

RTP is not a video compression technology. It transports data encoded by codecs such as H.264 and H.265.

What Is RTCP and How Does It Work with RTP?

RTCP (Real-Time Transport Control Protocol) is a control protocol that works alongside RTP and helps monitor media sessions.

Information such as packet loss, jitter, and sender and receiver statistics can be shared through RTCP.

RTCP message

Function

SR — Sender Report

Sender statistics and timing synchronization

RR — Receiver Report

Receiver statistics

SDES

Source description information

BYE

Session departure notification

APP

Application-specific messages

RTPFB

Supported transport feedback

PSFB

Supported media feedback

RTCP does not directly compress video or retransmit lost packets on its own. It can provide the control information needed for suitable feedback and retransmission mechanisms.

What Is RTPS? How Does It Work?

RTPS (Real-Time Publish-Subscribe) is a communication protocol that enables real-time data communication over a network between DDS-based distributed applications.

It is defined by the Object Management Group (OMG) under the DDSI-RTPS standard.

RTPS uses a communication approach known as Publish-Subscribe.

It is considered especially for systems requiring real-time sensor communication, robotics, industrial automation, and data sharing between different software applications.

Key RTPS Features

Feature

Description

Publish-Subscribe

Publish-subscribe communication model

Discovery

Automatic discovery of participants

Distributed Architecture

Distributed communication architecture

Reliability

Configurable reliable communication

Unicast

Data transfer to specific recipients

Multicast

Data transfer to multiple recipients

QoS

Behavior associated with DDS quality-of-service policies

Fragmentation

Fragmentation of large data samples

Interoperability

Interoperation of compatible DDS products

The Relationship Between DDS and RTPS

DDS is a middleware standard that defines what data applications share and under which communication policies.

RTPS, in turn, defines how compatible DDS applications transmit this data over a network.

DDS component

Relationship to RTPS

DomainParticipant

RTPS Participant

DataWriter

RTPS Writer

DataReader

RTPS Reader

Topic

Endpoint discovery and data matching

QoS

Related network communication behavior

Discovery

SPDP and SEDP mechanisms

RTPS Protocol Messages

RTPS message

Function

DATA

Transmission of data samples

DATA_FRAG

Transport of fragmented data samples

HEARTBEAT

Reporting the Writer's sequence-number status

ACKNACK

Reporting received and missing samples

NACK_FRAG

Requesting missing data fragments

HEARTBEAT_FRAG

Reporting a fragmented data state

GAP

Reporting that the relevant samples will not be transmitted

Which ports does RTPS use?

In the DDSI-RTPS default UDP port-mapping system, port numbers are calculated based on the Domain ID and Participant ID.

Example ports for Domain ID 0 and Participant ID 0:

Port

Protocol

Function

7400

UDP

Multicast Discovery

7401

UDP

Multicast User Data

7410

UDP

Unicast Discovery

7411

UDP

Unicast User Data

Default port formulas:

  • Multicast Discovery = 7400 + (250 × Domain ID)

  • Multicast Data = 7401 + (250 × Domain ID)

  • Unicast Discovery = 7410 + (250 × Domain ID) + (2 × Participant ID)

  • Unicast Data = 7411 + (250 × Domain ID) + (2 × Participant ID)

Port numbers may vary depending on the DDS product in use and the specific network configuration.

Which systems use RTPS?

RTPS technology can be used in robotics systems, autonomous vehicles, industrial automation, IoT applications, sensor networks, smart cities, and electronic security integrations.

RTPS is not a protocol used in place of the RTSP video addresses of standard IP security cameras.

What Is RSTP? How Does It Work?

RSTP (Rapid Spanning Tree Protocol) is a network protocol used in Ethernet networks to prevent network loops that may occur at Layer 2 and to rapidly reconfigure a redundant network topology after connection failures.

It was developed under the IEEE 802.1w standard and incorporated into subsequent IEEE bridging standards. Today, the relevant bridging provisions are covered by IEEE 802.1Q.

It plays an important role in managed switches, fiber-optic backbone networks, industrial Ethernet infrastructures, and redundant CCTV networks.

RSTP is not a protocol for transmitting video or audio. It helps the network infrastructure operate without loops.

What is an Ethernet network loop?

In a Layer 2 Ethernet network, connecting switches to one another through multiple physical paths can cause network loops if appropriate loop-prevention mechanisms are not in place.

Uncontrolled circulation of Ethernet frames can cause the following problems:

  • Broadcast storm

  • Increased multicast traffic

  • MAC address table instability

  • Multiple copies of packets

  • Increased switch processor load

  • IP camera connection failures

  • NVR recording losses

  • Network infrastructure becoming unusable

RSTP creates a loop-free active communication topology in networks with physically redundant connections.

How RSTP works

Switches that support RSTP exchange BPDU (Bridge Protocol Data Unit) messages with one another.

These messages are used to assess the network topology, identify the Root Bridge, and establish active communication paths.

During normal operation, backup paths can be kept unavailable for user traffic. If an active connection fails, an appropriate backup connection can be activated quickly.

RSTP port roles

Port role

Function

Root Port

The best active connection toward the Root Bridge

Designated Port

The forwarding port selected for a network segment

Alternate Port

An alternative connection toward the Root Bridge

Backup Port

A backup connection on the same segment

Disabled Port

A port that does not participate in active protocol communication

RSTP port states

Port state

MAC learning

User traffic forwarding

Discarding

No

No

Learning

Yes

No

Forwarding

Yes

Yes

The RSTP port state is not the same as the physical connection state of a switch port.

Even when the physical connection is active, RSTP can keep the port in a state that does not forward user traffic.

What is RSTP and the Root Bridge?

The Root Bridge is the switch selected as the reference point for the spanning tree topology.

The Bridge ID value is taken into account when selecting the Root Bridge. Components such as Bridge Priority and the MAC address play a role in this selection.

In professional network infrastructures, rather than letting the Root Bridge be selected randomly, it is recommended to plan the priority values of an appropriate switch in the network backbone.

Which port does RSTP use?

RSTP does not use a TCP or UDP service port.

RSTP operates at the Layer 2 Ethernet level using BPDU messages.

The destination MAC address of standard IEEE spanning tree BPDU messages is:

01:80:C2:00:00:00

The RSTP BPDU protocol version identifier is 2.

Technical specification

RSTP

Network layer

Layer 2 — Data Link

TCP port

Not used

UDP port

Not used

IP address requirement

Not required for the protocol's basic operation

Communication message

BPDU

Destination MAC address

01:80:C2:00:00:00

Standard origin

IEEE 802.1w

For RSTP to operate, switches must support the relevant protocol and be configured correctly.

Technical Comparison Table: RTSP, RTPS, RTP, and RSTP

Technical specification

RTSP

RTPS

RTP

RSTP

Standards organization

IETF

OMG

IETF

IEEE

Primary function

Media control

DDS data communication

Media transmission

Network loop prevention

Standard

RFC 2326 / 7826

DDSI-RTPS

RFC 3550

IEEE 802.1w / 802.1Q

Communication model

Client-Server

Publish-Subscribe

Sender-Receiver

Bridge/Switch

Network layer

Application

Upper-layer communication

Upper-layer media transmission

Data Link

TCP usage

Common

Product-dependent

On supported transports

No

UDP usage

Common for media transport

Common

Common

No

Default port

554

7400 base

Session-dependent

Uses no port

Video control

Yes

Not its primary purpose

No

No

Video data transmission

Along with media transport

In custom applications

Yes

No

Sensor data transmission

Not its primary purpose

Yes

In custom applications

No

Network loop prevention

No

No

No

Yes

Automatic discovery

Not a core function

Yes

Not a core function

Topology discovery using BPDU

Unicast

Supported

Supported

Supported

Not applicable

Multicast

During media sessions

Supported

Supported

BPDU group address

QoS policies

No DDS-type QoS

Associated with DDS

No delivery-time guarantee

Not its primary function

Central server

An RTSP server is required

A broker is not mandatory

Session-dependent

Not required

CCTV usage

Common

Custom integrations

Common

Common in network infrastructure

Robotics usage

Media control

Data communication

Media transmission

Network infrastructure

Differences Between RTSP and RTP

RTSP and RTP are two different technologies that complement each other in IP camera systems.

RTSP controls which media stream is started, when, and over which transport method, while RTP carries video and audio data.

Operation

Protocol used

Retrieving camera stream information

RTSP

Creating a media session

RTSP

Starting the live video

RTSP

Transmitting H.264 video packets

RTP

Transmitting H.265 video packets

RTP

Transmitting audio packets

RTP

Packet loss statistics

RTCP

Ending the media session

RTSP

IP Camera RTSP and RTP Communication Process

  1. NVR or VMS software establishes an RTSP connection to the camera.

  2. It retrieves media information using the DESCRIBE command.

  3. It sets the transport parameters using the SETUP command.

  4. It starts media transmission using the PLAY command.

  5. The camera sends encoded video data in RTP packets.

  6. Relevant session statistics can be shared over RTCP.

  7. The session can be ended using the TEARDOWN command.

RTP can also be used with other session-management methods without establishing an RTSP connection. For example, RTP media transmission can be used in SIP-based VoIP systems.

Differences Between RTSP and RTPS

The key difference between RTSP and RTPS lies in the nature of the data they carry and their communication models.

RTSP is used to control media sessions, whereas RTPS enables structured data communication between distributed DDS applications.

Technical specification

RTSP

RTPS

Primary use

Video and audio control

Real-time data communication

Architecture

Client-Server

Publish-Subscribe

Standard

IETF

OMG

Default port

554

7400 base

IP camera connection

Common

Custom integration

Robotic sensor communication

Not a primary use case

Common

DDS integration

Not directly related

Primary use

RTPS is not a secure or encrypted version of RTSP.

The secure URI scheme for RTSP used over TLS RTSPS is called.

Differences Between RTP and RTPS

Although RTP and RTPS have similar names, they were developed for different purposes by different standards organizations.

Technical feature

RTP

RTPS

Primary function

Real-time media transmission

DDS data communication

Common data type

Video and audio

Structured application data

Standard

IETF RFC 3550

OMG DDSI-RTPS

Automatic participant discovery

Not a core function

Supported

Data model

Payload formats

DDS data models

Retransmission

Not guaranteed by basic RTP

Can be supported in a Reliable configuration

Packet sequence number

16-bit RTP sequence number

RTPS data sample sequence number

Central broker

Not required

Not required

Both technologies can be used in time-sensitive applications. However, RTP's approach to real-time media transport differs from RTPS's approach to reliable distributed data communication.

Differences Between RTSP and RSTP

RTSP and RSTP are two abbreviations that are often confused, particularly in the electronic security industry.

RTSP establishes media sessions with IP cameras, whereas RSTP prevents loops in the Ethernet network to which the cameras are connected.

Technical feature

RTSP

RSTP

Devices used

Camera, NVR, VMS

Managed switch

Function

Media session control

Network topology management

TCP/IP-based communication

Yes

Not required for basic operation

Default port

554

No TCP/UDP port

URL address

Used

Not used

Loop prevention

No

Yes

Redundant network management

No

Yes

Live camera monitoring

Directly related

Indirectly related through the network infrastructure

Correct operation of RSTP can help maintain communication continuity in redundant IP camera networks.

Differences Between RSTP and STP

RSTP was developed to respond more quickly to changes in network topology than the classic STP (Spanning Tree Protocol) technology.

Technical feature

STP

RSTP

Standard origin

IEEE 802.1D

IEEE 802.1w

Network loop prevention

Yes

Yes

Topology convergence

Generally slower

Generally faster

Traditional port states

5

3

Alternative port approach

Limited

Enhanced

Proposal/Agreement mechanism

No

Yes

Edge Port support

Similar features depending on the manufacturer

Standard approach

Suitability for redundant CCTV networks

Usable

Generally more suitable

Classic STP convergence can take tens of seconds in some failure scenarios, whereas RSTP can reconverge in under a second or within a few seconds under suitable network conditions.

These durations are not guaranteed values. Network topology, connection type, switch configuration, device compatibility, and failure scenario all affect performance.

Comparison of STP, RSTP, MSTP, ERPS, and MRP

Technology

Primary use

STP

Basic Ethernet loop prevention

RSTP

Fast convergence and redundant Ethernet

MSTP

Multiple spanning tree instances and VLAN management

ERPS

Ethernet ring protection systems

MRP

Industrial Ethernet ring redundancy

LACP

Logical aggregation of multiple links

ERPS is defined under ITU-T G.8032; MRP is defined under IEC 62439-2.

LACP does not directly perform the network-wide loop-prevention function of spanning tree protocols.

Comparison of Network Ports for RTSP, RTPS, RTP, and RSTP

Protocol

Port or address

Description

RTSP

TCP 554

Default media control connection

RTSP

TCP 8554

Alternative RTSP port

RTSPS

TCP 322

RTSP control over TLS

RTP

Dynamic UDP ports

Real-time media data

RTCP

Dynamic UDP ports

Media session control information

RTPS

UDP 7400

Domain 0 multicast discovery

RTPS

UDP 7401

Domain 0 multicast data

RTPS

UDP 7410

Domain 0, Participant 0 unicast discovery

RTPS

UDP 7411

Domain 0, Participant 0 unicast data

RSTP

01:80:C2:00:00:00

Layer 2 BPDU destination MAC address

In professional firewall configurations, fixed ports, dynamic media ports, and application-specific network communication requirements should be assessed separately.

There is no need to open a TCP or UDP port on the IP firewall for RSTP. RSTP is configured on the Layer 2 switch infrastructure.

At Which OSI Layer Do RTSP, RTPS, RTP, and RSTP Operate?

OSI layer

Related technology

Layer 7 — Application

RTSP, DDS, and upper-layer communication mechanisms

Layer 6 — Presentation

Data serialization and related functions such as H.264 and H.265 encoding

Layer 5 — Session

Media session and application session management

Layer 4 — Transport

TCP and UDP

Layer 3 — Network

IPv4 and IPv6

Layer 2 — Data Link

RSTP, Ethernet, VLAN

Layer 1 — Physical

Copper cable, fiber optics, and physical network connections

In a typical TCP/IP architecture, RTP and RTPS are protocols that operate on top of transport protocols such as TCP or UDP.

The presence of the word “Transport” in the name RTP does not mean that it should be classified at the same OSI layer as TCP or UDP.

OSI layer mappings are conceptual explanations. The functions of modern protocols cannot always be precisely confined to a single OSI layer.

How Are RTSP, RTPS, RTP, and RSTP Used in Electronic Security Systems?

Modern electronic security systems require not only the transmission of camera footage, but also the processing of data from various sensors and the creation of network infrastructures that can withstand outages.

The four protocols can serve different parts of these needs.

Security system function

Protocol used

Establishing an IP camera connection

RTSP

Transmitting live video

RTP

Transmitting live audio

RTP

Distributing video analytics events

RTPS

Sharing sensor data

RTPS

Transmitting device health data

RTPS

Managing redundant switch infrastructure

RSTP

Preventing Ethernet loops

RSTP

Monitoring the media session

RTCP

RTPS use must be supported by the relevant security device or integration software. Do not assume that IP cameras support DDS-RTPS as standard.

Example Protocol Architecture in IP Camera and CCTV Systems

Suppose an industrial facility has 100 IP cameras, managed PoE switches, a fiber-optic network backbone, NVR recording devices, and AI video analytics servers.

RTSP layer

NVRs and video management systems can connect to cameras’ media streams through RTSP.

RTP layer

Video data encoded by cameras as H.264 or H.265 can be transmitted to recording and analysis systems in RTP packets.

RTPS layer

Event information generated by AI video analytics servers can be shared with other management systems through an appropriate DDS integration.

Examples of data that can be shared:

  • Intrusion alerts

  • Person and vehicle detection results

  • Area occupancy information

  • Camera connection statuses

  • Technical fault alerts

  • Temperature readings

  • Visitor counts

RSTP layer

Managed switches interconnected by fiber-optic links can prevent Ethernet loops in a redundant network topology by using RSTP.

If one of the active fiber links is cut, it can help restore network communication over an available, suitable alternative link.

System component

Protocol

Function

IP camera

RTSP

Media control

IP camera

RTP

Video transmission

NVR

RTSP/RTP

Video acquisition and recording

VMS

RTSP/RTP

Centralized video management

AI analytics server

DDS/RTPS

Distribution of analytics results

Integration software

DDS/RTPS

Sharing sensor and event data

Managed PoE switch

RSTP

Network loop prevention

Backbone switch

RSTP

Redundant network topology

Protocol Use in People Counting and Retail Analytics Systems

People counting systems require visitor data from sensors to be transmitted to centralized management software.

In a large-scale retail analytics project, the four protocols can be considered for the following tasks.

Analytics or infrastructure function

Relevant protocol

Transmitting camera footage to analytics software

RTSP/RTP

Distributing entry and exit counts

RTPS integration

Real-time store occupancy information

RTPS integration

Checkout queue length

RTPS integration

Visitor data by department

RTPS integration

Customer wait time

RTPS integration

Sensor health status

RTPS integration

Count validation events

RTPS integration

Switch connection redundancy

RSTP

Fiber-optic backbone management

RSTP

In this architecture, RTSP and RTP are used particularly in video-based analytics systems.

RTPS can be used to distribute processed analytics data through a dedicated integration infrastructure.

RSTP, in turn, helps ensure continuity of network communications.

Using these protocols alone does not guarantee the accuracy of the people-counting algorithm or data integrity. Calibration, field validation, missing-data management, and performance measurements must be carried out separately.

Why Is RSTP Important in CCTV Networks?

In large-scale IP camera systems, a failure in the network infrastructure can cause many cameras to lose their connections simultaneously.

Network redundancy is a significant engineering requirement, particularly in shopping malls, factories, ports, airports, hospitals, university campuses, and data centers.

Redundant network topologies supported by RSTP can provide the following benefits:

  • Reducing the impact of a single link failure

  • Preventing Ethernet loops

  • Automatic reconfiguration of network connections

  • Improving NVR and VMS connection continuity

  • Reducing camera access interruptions

  • Making fiber-optic backbone infrastructure more resilient

Does RSTP Completely Prevent Recording Loss?

No. Although RSTP helps the network reconverge, it does not guarantee zero packet loss or zero video loss.

Suppose that, following a network connection failure, the alternative connection becomes active within 2 seconds and the video stream is re-established within 3 seconds.

If these operations occur sequentially, the total video access interruption may be approximately 5 seconds.

Actual recording loss may vary depending on buffering, camera SD card recording support, NVR reconnection behavior, and automatic recording completion features.

Calculating Network Bandwidth for a System with 100 IP Cameras

Video data carried over RTSP and RTP accounts for a significant portion of network capacity in electronic security systems.

Assume that each camera generates an average video stream of 4 Mbps.

Number of cameras

Bitrate per camera

Total video data load

16

4 Mbps

64 Mbps

32

4 Mbps

128 Mbps

64

4 Mbps

256 Mbps

100

4 Mbps

400 Mbps

128

4 Mbps

512 Mbps

256

4 Mbps

1024 Mbps

500

4 Mbps

2000 Mbps

1000

4 Mbps

4000 Mbps

If 100 cameras are assumed to send separate 4 Mbps unicast streams to the NVR and video analytics server, the total video stream load may be 800 Mbps.

Traffic type

Example capacity

NVR video traffic

400 Mbps

AI video analytics traffic

400 Mbps

Total video data load

800 Mbps

25% additional capacity allowance

200 Mbps

Design capacity

1000 Mbps

This example shows that a 1 Gbps backbone connection may not leave an adequate performance reserve.

Higher-capacity links, such as 2.5 Gbps or 10 Gbps, may be considered based on actual traffic measurements, bitrate variations, the number of simultaneous streams, protocol overhead, and failover scenarios.

In an RSTP topology, the capacity of the backup link must also be planned to handle the total load transferred to it if the active link fails.

Cybersecurity Comparison of RTSP, RTPS, RTP, and RSTP

The standard operating modes of these protocols may not, on their own, meet all security requirements.

Protocol

Primary security risk

Recommended approach

RTSP

Unauthorized media access

Authentication, RTSPS, VLAN, and VPN

RTP

Eavesdropping on media data

SRTP or secure transport

RTPS

Unauthorized data access or publisher access

DDS Security and access control

RSTP

Unauthorized BPDU and topology changes

BPDU Guard, Root Guard, and switch access policies

RTCP

Unauthorized access to control and statistics

SRTCP and secure media profiles

What Is RTSPS?

RTSPS is an access scheme for protecting RTSP control communications using TLS.

Example address:

rtsps://192.168.1.100:322/

RTSPS support may not be available on all cameras and NVR devices.

Encrypting the RTSP control connection does not mean that RTP media data carried over separate UDP connections will also be encrypted automatically.

What Is SRTP?

SRTP (Secure Real-Time Transport Protocol) is a secure media transport technology that can provide confidentiality, message authentication, and protection against replay attacks for RTP and related RTCP communications.

It is defined in IETF RFC 3711.

What Is DDS Security?

DDS Security defines security mechanisms such as participant authentication, access control, and cryptographic data protection in DDS-RTPS-based systems.

To use these security features, they must be supported by the relevant DDS software and enabled correctly.

What Is RSTP BPDU Guard?

BPDU Guard is a switch security feature that provides protective behavior when unexpected BPDU messages are received, particularly in Edge Port configurations where endpoint devices are connected.

The ports on which BPDU Guard, Root Guard, and other spanning tree protection mechanisms are applied must be determined according to the network topology.

Incorrectly configuring protection on backbone links between switches can cause communication outages.

Multicast Support for RTSP, RTPS, RTP, and RSTP

Protocol

Relationship to multicast

RTSP

Can enable control of multicast media sessions

RTP

Can carry multicast media

RTPS

Can use multicast for participant discovery and data communication

RSTP

Uses the group MAC address reserved for Layer 2 BPDU messages

The Layer 2 group MAC address used by RSTP and the IP multicast addresses that RTP and RTPS may use are not the same concept.

To optimize IP multicast communication, mechanisms such as IGMP Snooping, IGMP Querier, and, where necessary, multicast routing should be considered.

Connection Issues and Solutions for RTSP, RTPS, RTP, and RSTP

Symptom

Potentially relevant protocol

What to check

IP camera connection cannot be established

RTSP

URL, port, credentials

401 Unauthorized error

RTSP

Authentication

404 Not Found error

RTSP

Media path

461 Unsupported Transport error

RTSP

Transport method compatibility

RTSP connection is established, but there is no video

RTP/RTSP

UDP ports, codec, session settings

Frames are being dropped from the video

RTP

Packet loss, jitter, and network capacity

Audio and video synchronization is lost

RTP/RTCP

Timing information and receiver buffer

DDS participants cannot see one another

RTPS

Domain ID and Discovery

DDS participants are matched, but no data is received

DDS/RTPS

QoS, Topic, data type, and firewall

Multicast data cannot be received

RTP/RTPS

IGMP and network configuration

Broadcast traffic increases across the network

RSTP

Layer 2 loops and switch configuration

The network does not recover when the fiber link is disconnected

RSTP

Backup path, port roles, and topology

Many cameras go offline simultaneously

RSTP/Network

Backbone switch and network capacity

The backup link is physically active, but no traffic passes through it

RSTP

Discarding and Alternate Port state

Camera connections keep dropping

All layers

Network, protocol, and device logs

In large-scale CCTV systems, connection failures may not be caused solely by the IP camera or recording device.

Switch topology, Ethernet loops, multicast configuration, network capacity, and media transport protocols should be assessed together.

How to Analyze RTSP, RTPS, RTP, and RSTP Traffic with Wireshark

Wireshark is network analysis software that enables packet-level inspection of network protocols.

The following display filters can be used on networks for which you are authorized.

Wireshark filter

Purpose

rtsp

Display RTSP control messages

rtp

Display RTP media packets

rtcp

Display RTCP control messages

rtps

Display DDS-RTPS protocol messages

stp

Display STP and RSTP BPDU messages

stp.version == 2

Filter by RSTP protocol version

tcp.port == 554

Display common RTSP port traffic

udp.port == 7400

Display sample RTPS discovery traffic

ip.dst == 239.255.0.1

Default RTPS IPv4 discovery multicast traffic

eth.dst == 01:80:c2:00:00:00

Traffic to the standard spanning tree destination MAC address

If Wireshark does not automatically recognize RTP streams using dynamic UDP ports, the relevant session information or the Decode As feature can be used.

To inspect RSTP messages, the packet capture point must be positioned so it can see the relevant Layer 2 traffic. Switch port mirroring can be used if necessary.

Where Should Each Protocol Be Used?

Project requirement

Technology to use

Initiating a live view from an IP camera

RTSP

Transporting video and audio packets

RTP

Secure RTSP control communication

RTSPS

Encrypted real-time media transport

SRTP

Monitoring media packet loss and jitter

RTCP

DDS-based sensor communication

RTPS

Distributed application data management

DDS

Data sharing between robotic systems

DDS/RTPS

Secure DDS communication

DDS Security

Preventing Ethernet loops

RSTP

Creating a redundant switch topology

RSTP

Multiple-VLAN spanning tree planning

MSTP

Dedicated Ethernet ring protection

ERPS or MRP

Lightweight IoT cloud messaging

MQTT

Camera discovery and device integration

ONVIF

Protocol selection should be based on the technical requirements of the application. More than one protocol may need to be used together in the same project.

Technical Checklist for Professional Security Systems

No.

Inspection criterion

Relevant technology

1

RTSP URL validation

RTSP

2

RTSP port check

RTSP

3

Camera user permissions

RTSP

4

Main Stream and Sub Stream

RTSP/RTP

5

H.264 and H.265 compatibility

RTP

6

Video bitrate configuration

RTP

7

UDP and TCP transport selection

RTSP/RTP

8

RTP packet loss measurement

RTP/RTCP

9

Jitter analysis

RTP/RTCP

10

Media security

RTSPS/SRTP

11

DDS Domain ID

RTPS

12

Participant ID

RTPS

13

DDS network ports

RTPS

14

Topic and data type compatibility

DDS/RTPS

15

Reliability QoS policy

DDS/RTPS

16

Discovery configuration

RTPS

17

DDS Security support

DDS/RTPS

18

Ethernet ring topology

RSTP

19

Root Bridge selection

RSTP

20

Bridge Priority

RSTP

21

Root Port and Alternate Port

RSTP

22

Edge Port configuration

RSTP

23

BPDU Guard and Root Guard

RSTP

24

IGMP Snooping

Network infrastructure

25

Multicast routing

Network infrastructure

26

VLAN segmentation

Network infrastructure

27

Firewall rules

Network infrastructure

28

Fiber-optic backbone capacity

Network infrastructure

29

Backup link capacity

Network infrastructure

30

Maximum network load test

Entire system

31

Connection outage and failover test

Entire system

32

Recording continuity verification

Entire system

33

Data integrity check

Entire system

34

Cybersecurity assessment

Entire system

35

On-site commissioning and validation

Entire system

Frequently Asked Questions

Are RTSP, RTPS, RTP, and RSTP the same protocol?

No. RTSP controls media sessions, RTPS handles DDS network communication, RTP transports real-time media, and RSTP is used to prevent loops in Ethernet networks.

What is the main difference between RTSP and RTP?

RTSP controls video and audio sessions, while RTP carries the associated media data.

What is the difference between RTPS and RTP?

RTPS provides structured data communication between DDS applications, while RTP is used primarily for real-time media transport.

What is the difference between RTSP and RSTP?

RTSP is used with IP cameras and media servers, while RSTP is used in Ethernet switch infrastructure.

Is RTPS a secure version of RTSP?

No. RTPS is a different data communication protocol. RTSPS is used for RTSP control communication over TLS.

Is RTP encrypted?

The basic RTP protocol does not provide encryption. SRTP or suitable secure transport methods can be used for secure media communication.

Which port does RSTP use?

RSTP does not use a TCP or UDP port. It operates at Ethernet Layer 2 using BPDU messages.

Which port does RTPS use?

In the default DDSI-RTPS UDP port mapping, 7400 is the starting value. Other ports are calculated from the Domain ID and Participant ID.

Which port does RTSP use?

The default service port for RTSP is ٥٥٤.

Which port does RTP use?

There is no single fixed port for RTP that applies to all systems. Port numbers are determined by the media session and system configuration.

Is RSTP necessary for IP camera systems?

In redundant Ethernet network topologies that could form loops, RSTP or suitable alternative loop-prevention and redundancy technologies are important. Requirements may differ in simple star topologies.

Does RSTP carry camera video?

No. RSTP helps the Ethernet infrastructure carrying camera video operate without loops.

Can RTPS be used to view IP camera footage?

In standard CCTV applications, RTPS is not a direct alternative to RTSP. Video or analytics data can be carried in specialized DDS applications.

Can RTP work without RTSP?

Yes. RTP communication can be established using SIP and other media session management methods.

Why is there no video even though the RTSP connection is successful?

Video may not be received because RTP media ports are blocked, the video codecs are incompatible, the transport methods do not match, or device resource limits have been reached.

Does RSTP completely prevent connection outages?

No. When suitable alternative links are available, RSTP helps reconfigure the network topology. It does not guarantee uninterrupted or zero-loss data transmission.

Can these four protocols be used together on the same network?

Yes. Since each performs a different function, they can be used together within the same electronic security or industrial automation network.

What is the relationship between ONVIF and RTSP, RTP, RTPS, and RSTP?

ONVIF develops standards for integrating IP-based physical security products. RTSP and RTP can be used for media services. RTPS and RSTP serve different data communication and network infrastructure functions.

Conclusion

RTSP, RTPS, RTP, and RSTP are four important network protocols with similar names but different technical functions.

RTSP controls media streams, RTP transports real-time video and audio data, RTPS enables DDS-based distributed data communication, and RSTP prevents loops in Ethernet networks and manages redundant network topologies.

A sound understanding of the roles of these protocols is important when designing professional electronic security systems, helping ensure reliable camera communications, correct video transmission, real-time data integration, and resilient network infrastructure.

A successful CCTV and electronic security project depends not only on selecting the right camera and recording device, but also on jointly assessing media protocols, network topology, bandwidth, cybersecurity policies, and on-site validation processes.

Technical References

More on the topics covered in this piece

Cookie preferences

Essential storage supports site features and remembers your choice. Consent-based Google analytics depends on your choice and separate activation. Advanced Mode is off by default; if separately enabled, it may send cookieless signals under denied consent. If activated, Umami measures pageviews independently of cookie choices. Read the Cookie Policy

Google analytics and marketing measurement are currently disabled.

Essential — always active

Session security and remembering your cookie preference.

Usage measurement for pages, searches and sponsor interactions; Google Analytics / Google Tag Manager when configured.

Use of advertising-related cookies. Contextual sponsor placements may still appear without this permission.

Preference for sharing user data with Google advertising services. No such transfer occurs unless separately enabled.

Preference for Google ad personalization, independent of analytics permission.

You can change or withdraw your choices using Cookie preferences in the footer.