RTSP 协议分析
1.概述:
 RTSP(Real Time Streaming Protocol),实时流传输协议,是TCP/IP协议体系中的一个应用层协议,由哥伦比亚大学、网景和RealNetworks公司提交的IETF RFC标准。该协议定义了一对多应用程序如何有效地通过IP网络传送多媒体数据。类似HTTP协议的流控制协议。它们都使用纯文本来发送信息,而且rtsp协议的语法也和HTTP类似,和HTTP协议相比RTSP协议所不同的地方是,RTSP协议是有状态的协议,而HTTP是无状态的协议。RTSP通过维护一个session来维护其状态的转换。RTSP协议的默认端口是554,默认的承载协议为TCP。

2.RTSP的特性:
(1).流控分离:从控制逻辑上来说RTSP和FTP相似,控制流和数据流是分开的。
(2).可扩展性:因为RTSP协议是基于文本的协议所以其具有较强的可扩展性。
(3).安全:RTSP 使用网页安全机制。

3.RTSP 协议格式:
请求命令的格式为:
METHOD URL CR LF
Field1:value CR LF
Field2:value CR LF
......
Fieldn:value CR LF
CR LF

应答的格式为:
RTSP/major_version.minor_version status CR LF
Field1:value CR LF
Field2:value CR LF
......
Fieldn:value CR LF
CR LF

4.RTSP的主要命令:

5.RTSP命令的状态转换表

6.RTSP状态码

Status-Code = "100" ; Continue
| "200" ; OK
| "201" ; Created
| "250" ; Low on Storage Space
| "300" ; Multiple Choices
| "301" ; Moved Permanently
| "302" ; Moved Temporarily
| "303" ; See Other
| "304" ; Not Modified
| "305" ; Use Proxy
| "400" ; Bad Request
| "401" ; Unauthorized
| "402" ; Payment Required
| "403" ; Forbidden
| "404" ; Not Found
| "405" ; Method Not Allowed
| "406" ; Not Acceptable
| "407" ; Proxy Authentication Required
| "408" ; Request Time-out
| "410" ; Gone
| "411" ; Length Required
| "412" ; Precondition Failed
| "413" ; Request Entity Too Large
| "414" ; Request-URI Too Large
| "415" ; Unsupported Media Type
| "451" ; 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
| "458" ; 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
| "502" ; Bad Gateway
| "503" ; Service Unavailable
| "504" ; Gateway Time-out
| "505" ; RTSP Version not supported
| "551" ; Option not supported
| extension-code
extension-code = 3DIGIT
Reason-Phrase = *<TEXT, excluding CR, LF

<下一篇将给出RTSP协议的实例分析>

最新文章

  1. 在 Windows 上安装Rabbit MQ 指南
  2. linux heartbeat v2/v3 的一点资料
  3. 【iOS】使用CoreText实现图文混排
  4. 整理一下Entity Framework的查询
  5. SQL笔记----在一个关系表中操作列
  6. linux下的网络配置
  7. 【第40套模拟题】【noip2011_mayan】解题报告【map】【数论】【dfs】
  8. .NET_Framework_version_history
  9. 开发者需要知道的11条HTML5小常识
  10. 再谈Redirect(客户端重定向)和Dispatch(服务器端重定向)
  11. EasyUI 使用
  12. 提高mindmanager 8的启动速度
  13. 用VUEJS做一个网易云音乐
  14. webpack构建本地服务器
  15. ubuntu 添加右键打开方式,无法添加程序打开方式
  16. hive parition的使用,分dynamic和static两种
  17. 内核空间内存申请函数kmalloc kzalloc vmalloc的区别
  18. jQuery+php+Ajax文章列表点击加载更多功能
  19. Elastic Stack之ElasticSearch分布式集群yum方式搭建
  20. Jquery,全选,反选,

热门文章

  1. 【BZOJ2115】[Wc2011] Xor 高斯消元求线性基+DFS
  2. 【BZOJ3640】JC的小苹果 概率DP+高斯消元
  3. QQpet exploratory park(DP)
  4. [转]React表单无法输入原因----约束性和非约束性组件
  5. visual studio2017 无法添加引用 未能加载包ReferenceManagerPackage not such interface support 解决方法
  6. Python菜鸟之路:Python基础-逼格提升利器:装饰器Decorator
  7. Action获取表单数据的三种方式
  8. CentOS 7.0 systemd
  9. C#BackgroundWorker组件
  10. jQuery悬浮焦点图宽屏