MSRP stands for Message Session Relay Protocol. In RCS, MSRP is commonly used as the media-plane protocol for session-mode messaging, 1-to-1 chat, group chat, file transfer signaling support, and other rich messaging sessions. The details of MSRP are specified in RFC 4975.
MSRP is normally negotiated by SIP and SDP. SIP establishes the RCS session, SDP advertises the MSRP media path and attributes, and MSRP then carries message chunks over the negotiated TCP or TLS connection.
Contents
- Role of MSRP in RCS
- SIP/SDP Negotiation
- MSRP Message Exchange
- Important Parameters
- Troubleshooting Points
Role of MSRP in RCS
RCS uses SIP for service/session control and MSRP for the message payload path. When a user starts an RCS chat, SIP INVITE/200 OK/ACK procedures create the session and negotiate the MSRP endpoint information. After that, the actual chat payload is exchanged over MSRP rather than as SIP MESSAGE bodies.
MSRP is useful for RCS because it supports session-based messaging, chunked transfer, reports, and reliable delivery behavior over a stream transport. This makes it suitable for larger message bodies and conversational sessions where multiple messages belong to one established chat context.
SIP/SDP Negotiation
The MSRP path is negotiated in SDP. The SDP offer and answer normally include an MSRP media line and attributes that tell the peer where to connect and how the MSRP session should be used.
m=message 2855 TCP/MSRP *
a=path:msrp://192.0.2.10:2855/iau39soe;tcp
a=accept-types:text/plain message/cpim
a=setup:active
a=sendrecv
This SDP/MSRP clip shows the specific parameters
MSRP Message Exchange
After SIP and SDP complete, the endpoints open the negotiated MSRP transport connection and exchange MSRP requests. A SEND request carries the payload, and a response confirms whether the receiver accepted the MSRP request.
MSRP a786hjs2 SEND
To-Path: msrp://192.0.2.20:7394/2s93i;tcp
From-Path: msrp://192.0.2.10:2855/iau39soe;tcp
Message-ID: 87652491
Byte-Range: 1-18/18
Content-Type: text/plain
Hello over MSRP
-------a786hjs2$
This MSRP clip shows the specific parameters
Important Parameters
When analyzing an RCS MSRP trace, the most important fields are the negotiated SDP path attributes and the MSRP request headers. These fields connect the SIP dialog to the MSRP transport session.
a=path : MSRP URI used to establish the media connection.a=setup : TCP/TLS connection role, such as active or passive.To-Path / From-Path : MSRP routing endpoints used inside MSRP requests.Message-ID : Identifier used to correlate chunks and delivery reporting.Byte-Range : Indicates chunk offset and total message length.Content-Type : Indicates whether the payload is plain text, CPIM, file-transfer metadata, or another supported body type.
Troubleshooting Points
Most MSRP problems in RCS traces come from mismatch between SIP/SDP negotiation and the actual transport connection. Check that both endpoints agree on the MSRP URI, transport security, connection role, accepted content types, and direction attributes.
If the SIP session is established but no chat message is delivered, verify that the TCP/TLS connection is opened toward the negotiated