What Are the Differences Between RTSP and RTPS? Applications and Technical Comparison
RTSP and RTPS are network protocols with similar names but different purposes. RTSP controls audio and video streams, while RTPS enables data communication between real-time distributed systems. Explore how the two protocols work, their technical differences, and their applications in security systems.

Different network protocols are used in IP camera systems, industrial automation, the Internet of Things (IoT), robotics, and real-time data communication applications. RTSP and RTPS are often confused because their names are similar, but technically they serve different purposes.
RTSP is used to manage audio and video streams, whereas RTPS was developed to enable real-time data sharing between distributed systems.
The electronic security industry also uses a secure RTSP connection method known as RTSPS.
RTSP, RTPS, and RTSPS are distinct concepts. RTPS is not an encrypted or secure version of the RTSP protocol.
What Is RTSP?
RTSP (Real-Time Streaming Protocol) is an application-layer protocol that enables control of audio and video streams delivered over a network.
The first version was defined in 1998 in RFC 2326, while RTSP 2.0 was published in 2016 as RFC 7826.
In IP camera systems, cameras generally operate as RTSP servers, while NVR devices, video management software, and video analytics platforms act as clients.
The main uses of RTSP are:
Accessing live feeds from IP cameras
Creating a media session
Starting and stopping a video stream
Pausing video on supported systems
Specifying media transport parameters
Integrating viewing systems from different manufacturers
RTSP controls the media session, while audio and video packets are generally transported over RTP.
What Is RTPS?
RTPS (Real-Time Publish-Subscribe Protocol) is a communications protocol that enables data sharing between real-time distributed systems.
The DDSI-RTPS standard, published by the Object Management Group (OMG), enables different applications in a Data Distribution Service (DDS) infrastructure to interoperate over a network.
RTPS is based on a publish-subscribe architecture. Systems that produce data publish it under specific topics, and interested systems subscribe to that data.
The main uses of RTPS are:
Distributing real-time sensor data
Communication between industrial automation systems
Coordinating robotic systems
Data sharing in autonomous vehicles
Integrating smart city infrastructure
Communications in distributed control systems
Sharing critical event and status information
RTPS was not developed for directly viewing IP camera footage or connecting NVR devices to camera streams. However, it can also carry image data within application-specific data structures.
Technical Differences Between RTSP and RTPS
Technical feature | RTSP | RTPS |
|---|---|---|
Full name | Real-Time Streaming Protocol | Real-Time Publish-Subscribe Protocol |
Primary purpose | Media stream control | Real-time data distribution |
Standards organization | IETF | OMG |
Standard | RFC 7826 | DDSI-RTPS |
Communication model | Client-server | Publish-subscribe |
Message structure | Predominantly text-based control messages | Binary protocol messages |
Primary application | Audio and video systems | Distributed data systems |
Transport infrastructure | TCP/TLS for control, with various transport options for media | Typically UDP/IP |
Automatic participant discovery | No built-in DDS-like discovery | Yes |
Port configuration | Default: 554 | Depends on domain and participant configuration |
Unicast support | Yes | Yes |
Multicast support | Available for media transport | Yes |
Data reliability | Depends on the media transport method used | Reliable or Best Effort |
QoS | Depends on the network and media infrastructure | Associated with DDS QoS policies |
Encryption | RTSPS and secure media methods | Depends on DDS Security support |
Use in CCTV systems | Common | In specialized integrations |
Use in robotic systems | For video streams | For sensor and control data |
The two protocols are not alternatives to each other. Depending on the system architecture, they can be used together in the same project.
How Does RTSP Work?
RTSP establishes a control session between a media source and a media client.
For example, when an NVR device connects to an IP camera, the following operations may be performed:
The NVR connects to the camera's RTSP address.
It retrieves the media stream's properties using the DESCRIBE command.
It specifies media transport parameters using the SETUP command.
It starts the video stream using the PLAY command.
The camera sends encoded video packets to the client.
The media session is terminated using the TEARDOWN command.
Example of an RTSP connection address
rtsp://192.168.1.100:554/Streaming/Channels/101
This example specifies the IP address, RTSP port, and video stream path. The stream path may vary by device manufacturer and model.
RTSP protocol commands
Command | Function |
|---|---|
OPTIONS | Querying supported commands |
DESCRIBE | Retrieving media stream information |
SETUP | Creating a media session |
PLAY | Starting the media stream |
PAUSE | Pausing the stream |
TEARDOWN | Terminating the session |
How Does RTPS Work?
RTPS enables connected systems to communicate through specific data topics.
For example, in an industrial facility, temperature sensors, thermal cameras, robots, and central control systems can all be part of the same distributed communications infrastructure.
A temperature sensor can publish its measured values, while central control software and an alarm management system subscribe to that data.
Core components of the RTPS architecture
Component | Function |
|---|---|
DomainParticipant | Represents an application that joins a specific communication domain. |
Topic | Defines the shared data topic. |
Publisher | Organizes DDS publishing operations. |
Subscriber | Organizes DDS subscription operations. |
DataWriter | Publishes DDS data. |
DataReader | Receives DDS data. |
RTPS Writer | Sends data at the protocol level. |
RTPS Reader | Receives data at the protocol level. |
Discovery | Enables discovery of participants and endpoints. |
Publisher, Subscriber, DataWriter, and DataReader are concepts in the DDS application layer. RTPS defines the protocol-level mechanisms that enable these structures to interoperate over a network.
Example of RTPS communication
The following data topics can be created in an industrial temperature-monitoring application:
Data topic | Sample data |
|---|---|
Temperature | 42.5 °C |
DeviceStatus | Online |
AlarmStatus | Alarm active |
Occupancy | 128 people |
RobotPosition | Position information |
SensorHealth | Normal |
Multiple applications can subscribe to the data topics they need and receive the relevant updates.
Differences Between RTSP and RTPS Communication Architectures
In an RTSP architecture, a client requests a media stream from a specific server. IP camera, NVR, and VMS integrations are examples of this model.
In an RTPS architecture, data-producing and data-consuming applications are matched through specific data topics. A central message broker is not required by the core protocol architecture.
For example, measurement values published by a temperature sensor can be received simultaneously by central monitoring software, an alarm system, and an industrial control system.
What Is the Relationship Between RTPS and DDS?
DDS (Data Distribution Service) is a middleware standard that governs data sharing in real-time distributed applications.
RTPS is the communications protocol used to enable DDS applications to interoperate over a network.
Technology | Primary function |
|---|---|
DDS | Data sharing, subscriptions, and QoS management |
DDSI-RTPS | Network-level data transmission and interoperability |
DDS Security | Authentication, access control, and cryptographic security |
RTPS-based DDS infrastructures can be used in robotics, industrial automation, energy, transportation, and critical infrastructure applications.
DDS/RTPS-based communications solutions are also widely used in the ROS 2 robotics software ecosystem. However, not all communications infrastructures supported by ROS 2 have to be DDS-based.
RTSP and RTPS Port Numbers
The standard port number for RTSP is 554. RTPS uses a different port-mapping mechanism.
Protocol | Port |
|---|---|
RTSP | 554 |
Alternative RTSP | 8554 |
RTSPS | 322 |
DDSI-RTPS | Depends on the domain and participant number |
The commonly used default UDP port-mapping formula for DDSI-RTPS is calculated using 7400 as the base port value.
An example port allocation for Domain 0 and Participant 0 is as follows:
UDP port | Purpose |
|---|---|
7400 | Multicast discovery traffic |
7401 | Multicast user data |
7410 | Unicast discovery traffic |
7411 | Unicast user data |
These values are calculated according to the default port-mapping parameters. They may vary depending on the application, DDS domain number, participant number, and vendor configuration.
What Is the Difference Between RTSP, RTPS, and RTSPS?
Using these three abbreviations correctly is particularly important in electronic security systems.
Feature | RTSP | RTPS | RTSPS |
|---|---|---|---|
Primary purpose | Media control | Real-time data distribution | Secure media control |
IP camera use | Common | Special applications | Depends on device support |
Communication model | Client-server | Publisher-subscriber | Client-server |
TLS usage | Not available with a standard RTSP connection | Depends on the security architecture | Yes |
Protocol relationship | Media control protocol | Independent protocol | Using RTSP over TLS |
Example use | NVR live video | Sensor data | Secure camera access |
What is RTSPS?
RTSPS is a connection method that protects RTSP control communication over TLS.
RTSP connection address:
rtsp://192.168.1.100:554/video
RTSPS connection address:
rtsps://192.168.1.100:322/video
In an RTSPS connection, TLS can be used to protect the confidentiality and integrity of control communication.
However, appropriate media security mechanisms must also be used to encrypt RTP media packets carried over separate UDP channels.
In IP camera systems, the secure connection method for RTSP is RTSPS, not RTPS.
Comparison of RTSP, RTP, RTCP, RTPS, RTSPS, and SRTP
The functions of other media and communication protocols with similar names should also be distinguished from one another.
Protocol | Full name | Function |
|---|---|---|
RTSP | Real-Time Streaming Protocol | Media session control |
RTP | Real-time Transport Protocol | Transport of real-time media packets |
RTCP | RTP Control Protocol | Control and statistical information related to media transmission |
RTPS | Real-Time Publish-Subscribe Protocol | Data communication between distributed systems |
RTSPS | RTSP over TLS | Protection of the RTSP control connection |
SRTP | Secure Real-time Transport Protocol | Cryptographic protection of RTP media packets |
In a secure IP camera infrastructure, technologies such as RTSPS and SRTP can be considered together. However, the camera, recording device, and client software must support the relevant features.
RTSP and RTPS Security Features
RTSP security
A standard RTSP connection does not provide encryption on its own. Authenticating users does not mean that the video data is encrypted.
The following methods can be used to secure RTSP-based IP camera systems:
RTSPS support
SRTP media transmission
VPN connections
Dedicated VLAN configuration for the camera network
Firewall rules
User accounts with restricted permissions
Up-to-date device firmware
It is not recommended to expose RTSP ports directly to the internet.
RTPS security
Basic RTPS communication does not, by itself, guarantee encryption of all data traffic.
Applications that support DDS Security can use the following security features:
Participant authentication
Access control for data topics
Data encryption
Message integrity protection
Enforcement of security policies
Security features should be assessed according to the DDS application and its configuration.
RTSP and RTPS Latency Performance
Both protocols can be used in real-time applications. However, their latency requirements and data types differ.
Performance criterion | RTSP | RTPS |
|---|---|---|
Video encoding latency | Relevant | Not relevant unless video is being transported |
Client buffering | Can be relevant | Depends on the application and QoS settings |
Packet loss | Can affect image quality | Depends on the reliability policy |
Data retransmission | Depends on the transport method | Possible with reliable communication |
Time-critical sensor data | Not a primary use case | Suitable use case |
Real-time control | Limited use | Can be used with a suitable infrastructure |
Using RTPS alone does not provide deterministic or guaranteed latency. The operating system, network infrastructure, hardware, message size, and QoS policies should be assessed together.
What Are RTPS QoS Policies?
In DDS-based communication systems, Quality of Service (QoS) policies allow data sharing to be tailored to application requirements.
QoS policy | Function |
|---|---|
Reliability | Determines the reliability of data delivery. |
Durability | Manages the availability of historical data to new subscribers. |
Deadline | Defines the expected interval between data updates. |
History | Determines the scope of data samples to be retained. |
Lifespan | Determines how long data remains valid. |
Liveliness | Enables publishers' active status to be assessed. |
Resource Limits | Limits the system resources that can be used. |
Ownership | Defines the rules governing data-source ownership. |
These features are defined at the DDS layer, and RTPS communication mechanisms can be used to implement the relevant policies.
Use of RTSP and RTPS in Electronic Security Systems
Application | RTSP | RTPS |
|---|---|---|
IP camera live video | Suitable | Not standard use |
NVR camera integration | Suitable | Not standard use |
VMS video transmission | Suitable | Custom integration |
Thermal camera video | Suitable | Custom integration |
Temperature measurement data | Limited | Suitable |
People-counting statistics | Not a primary use case | Suitable with custom DDS integration |
Robotic security systems | For camera video | For sensor and control data |
Industrial alarm integration | For video verification | For event-data distribution |
Smart city applications | For camera video | For distributed data sharing |
Autonomous vehicle systems | In video monitoring applications | For sensor and system data |
RTSP is far more widely used in traditional CCTV projects. RTPS may be considered for specialized projects that require distributed data communication.
Can RTSP and RTPS Be Used in the Same Project?
Yes. In advanced electronic security and industrial automation projects, the two protocols can complement each other.
Example: Security system for a smart industrial facility
Consider an industrial facility where IP cameras, thermal cameras, temperature sensors, fire detection systems, and central control software are integrated.
System | Example communication method |
|---|---|
IP camera video | RTSP or RTSPS |
Thermal camera live video | RTSP or RTSPS |
Temperature sensor readings | DDS/RTPS |
Industrial status information | DDS/RTPS |
Analytical event data | DDS/RTPS or a suitable API |
Centralized video management | RTSP, ONVIF |
Centralized event management | DDS, APIs, and other integration methods |
In this example architecture, camera video can be sent to the video management system, while measurement and event information can be distributed over a DDS/RTPS-based infrastructure.
It should not be assumed that every device natively supports the relevant protocol. Appropriate software integrations and gateways should be used when necessary.
RTSP and RTPS in People-Counting and Video Analytics Systems
In AI-powered people-counting and video analytics applications, accessing video sources and distributing the resulting analytics data are different operations.
RTSP can be used to provide video from compatible IP cameras to analytics software.
In a system specifically designed around DDS, RTPS can be used to distribute data generated by analysis to different applications.
This data may include the following:
Store entry and exit counts
Real-time visitor density
Queue length
Area occupancy information
Vehicle counts
Alarm events
Sensor health status
REST APIs, MQTT, HTTP, and WebSocket are also widely used communication methods in commercial people-counting systems. RTPS support is not a standard feature found in every people-counting sensor.
Should You Choose RTSP or RTPS?
The protocol should be selected according to what data the system will share, for what purpose, and within which architecture.
System requirement | Technology to consider |
|---|---|
Viewing IP camera video | RTSP |
Establishing a secure RTSP control connection | RTSPS |
Protecting RTP media packets | SRTP |
Integrating an IP camera with an NVR | RTSP and ONVIF |
Sharing distributed sensor data | DDS/RTPS |
Enabling communication between robotic systems | DDS/RTPS |
Real-time industrial data distribution | DDS/RTPS |
Low-latency video in a browser | WebRTC |
Large-scale internet video streaming | Suitable streaming technologies such as HLS |
When choosing between RTSP and RTPS, security needs, network architecture, device compatibility, latency requirements, and integration costs should be taken into account.
Frequently Asked Questions
Are RTSP and RTPS the same protocol?
No. RTSP controls media streams, while RTPS enables real-time data communication between distributed systems.
Is RTPS the secure version of RTSP?
No. The secure method for using RTSP over TLS is called RTSPS.
Can IP camera video be viewed using RTPS?
RTPS is not a standard IP camera viewing protocol. Video data can be transported through custom software development, but RTSP is preferred for traditional camera integrations.
Do RTSP and RTPS use the same port?
No. RTSP uses port 554 by default, whereas DDSI-RTPS uses different port-mapping mechanisms.
Does RTPS work without internet access?
Yes. It can work without an internet connection on appropriately configured local networks.
Is RTPS encrypted?
The basic RTPS protocol is not encrypted automatically. Security mechanisms such as DDS Security must be supported and configured.
Is RTPS the same as MQTT?
No. Both can support the publish-subscribe model, but their communication architectures, data models, and QoS mechanisms differ. MQTT typically operates through a message broker, whereas DDS/RTPS supports direct distributed communication.
Is RTSP faster than RTPS?
It is not appropriate to make such a direct comparison. The protocols are designed for different functions. Performance depends on the application's data type and technical infrastructure.
Is RTPS the same as ONVIF?
No. ONVIF focuses on interoperability among IP-based physical security products, while RTPS focuses on distributed data communication.
Conclusion
RTSP and RTPS are two communication protocols used in real-time network applications, but they serve different technical purposes.
RTSP enables the control of media streams, particularly in IP camera systems, NVR devices, VMS software, and video analytics applications.
RTPS, in turn, enables the real-time sharing of sensor data, status information, and application messages in DDS-based distributed systems.
To establish a secure RTSP connection in electronic security systems, RTSPS—not RTPS—should be considered.
When designing professional systems, protocol selection should be based on technical functions and application requirements, not on similar names.