RTSP protocol analysis (1)

Source: Internet
Author: User

RTSP protocol analysis
1. Overview:
RTSP (Real Time Streaming Protocol) is an application layer Protocol in the TCP/IP Protocol system. It is an ietf rfc standard submitted by Columbia University, Netscape and RealNetworks. This Protocol defines how one-to-multiple applications can effectively transmit multimedia data over an IP network. It is similar to the HTTP traffic control protocol. Both use plain text to send information, and the rtsp protocol syntax is similar to HTTP. What is different from the HTTP protocol is that RTSP is a stateful protocol, HTTP is a stateless protocol. RTSP maintains a session to maintain its state transition. The default port number of the RTSP protocol is 554, and the default bearer protocol is TCP.

2. RTSP features:
(1). Traffic Control separation: in terms of control logic, RTSP is similar to FTP, and the control flow and data flow are separated.
(2). Scalability: Because RTSP is a text-based protocol, it is highly scalable.
(3). Security: RTSP uses the webpage security mechanism.

3. RTSP protocol format:
The format of the Request command is:
METHOD URL CR LF
Field1: value CR LF
Field2: value CR LF
......
Fieldn: value CR LF
CR LF

The response format is:
RTSP/major_version.minor_version status CR LF
Field1: value CR LF
Field2: value CR LF
......
Fieldn: value CR LF
CR LF

4. Main RTSP commands:

5. RTSP command status conversion table

6. RTSP status code

Status-Code = "100"; Continue
| & Quot; 200 & quot; OK
| & Quot; 201 & quot; Created
| "250"; Low on Storage Space
| "300"; Multiple Choices
| "301"; Moved Permanently
| "302"; Moved Temporarily
| "303"; See Other
| & Quot; 304 & quot; Not Modified
| "305"; Use Proxy
| "400"; Bad Request
| "401"; Unauthorized
| "402"; Payment Required
| "403"; Forbidden
| "404"; Not Found
| "405"; Method Not Allowed
| & Quot; 406 & quot; Not Acceptable
| "407"; Proxy Authentication Required
| "408"; Request Time-out
| "410"; Gone
| "411"; Length Required
| "412"; Precondition Failed
| "413"; Request Entity Too Large
| & Quot; 414 & quot; Request-URI Too Large
| "415"; Unsupported Media Type
| & Quot; 451 & quot; Parameter Not Understood
| "452"; Conference Not Found
| "453"; Not Enough Bandwidth
| "454"; Session Not Found
| "455"; Method Not Valid in This State
| "456"; Header Field Not Valid for Resource
| "457"; Invalid Range
| & Quot; 458 & quot; Parameter Is Read-Only
| "459"; Aggregate operation not allowed
| "460"; Only aggregate operation allowed
| "461"; Unsupported transport
| "462"; Destination unreachable
| "500"; Internal Server Error
| "501"; Not Implemented
| & Quot; 502 & quot; Bad Gateway
| "503"; Service Unavailable
| "504"; Gateway Time-out
| "505"; RTSP Version not supported
| "551"; Option not supported
| Extension-code
Extension-code = 3 DIGIT
Reason-Phrase = * <TEXT, excluding CR, LF

<The next article will show the RTSP instance analysis>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.