3986.net
小网站 大容量 大智慧
相关标签
当前位置:首页 >> 调查/报告 >>

一篇关于RTP介绍比较全的文章


Description:

Protocol suite: TCP/IP. Type: Application layer protocol. Port: 5004 (UDP). SNMP MIBs: iso.org.dod.internet.mgmt.mib-2.rtpMIB (1.3.6.1.2.1.10.87). iso.org.dod.internet.mgmt.mib-2.rohcRtpMIB (1.3.6.1.2.1.114). Working groups: avt, Audio/Video Transport. Links: RTP parameters. www.cs.columbia.edu/~hgs/rtp

RFC 3550: RTP provides end-to-end network transport functions suitable for applications transmitting real-time data, such as audio, video or simulation data, over multicast or unicast network services. RTP does not address resource reservation and does not guarantee quality-of-service for real-time services. The data transport is augmented by a control protocol (RTCP) to allow monitoring of the data delivery in a manner scalable to large multicast networks, and to provide minimal control and identification functionality. RTP and RTCP are designed to be independent of the underlying transport and network layers. The protocol supports the use of RTP-level translators and mixers.

MAC header IP header UDP header RTP message

RTP header, version 2:

0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 Ver P X CC M PT Sequence Number

Timestamp SSRC CSRC [0..15] :::

Ver, Version. 2 bits. RTP version number. Always set to 2. P, Padding. 1 bit. If set, this packet contains one or more additional padding bytes at the end which are not part of the payload. The last byte of the padding contains a count of how many padding bytes should be ignored. Padding may be needed by some encryption algorithms with fixed block sizes or for carrying several RTP packets in a lower-layer protocol data unit.

X, Extension. 1 bit. If set, the fixed header is followed by exactly one header extension. CC, CSRC count. 4 bits. The number of CSRC identifiers that follow the fixed header. M, Marker. 1 bit. The interpretation of the marker is defined by a profile. It is intended to allow significant events such as frame boundaries to be marked in the packet stream. A profile may define additional marker bits or specify that there is no marker bit by changing the number of bits in the payload type field. PT, Payload Type. 7 bits. Identifies the format of the RTP payload and determines its interpretation by the application. A profile specifies a default static mapping of payload type codes to payload formats. Additional payload type codes may be defined dynamically through non-RTP means. An RTP sender emits a single RTP payload type at any given time; this field is not intended for multiplexing separate media streams.

PT 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19

Name PCMU 1016 G721 GSM G723 DVI4 DVI4 LPC PCMA G722 L16 L16 QCELP CN MPA G728 DVI4 DVI4 G729 reserved

Type Audio Audio Audio Audio Audio Audio Audio Audio Audio Audio Audio Audio Audio Audio Audio Audio Audio Audio Audio Audio

Clock rate (Hz) Audio channels 8000 8000 8000 8000 8000 8000 16000 8000 8000 8000 44100 44100 8000 8000 90000 8000 11025 22050 8000

References

1 RFC 3551 1 RFC 3551 1 RFC 3551 1 RFC 3551 1 1 RFC 3551 1 RFC 3551 1 RFC 3551 1 RFC 3551 1 RFC 3551 2 RFC 3551 1 RFC 3551 1 1 RFC 3389 RFC 2250, RFC 3551 1 RFC 3551 1 1 1

20 24 25 26 27 28 29 30 31 32 33 34 35 71 72 76 77 95 96 127 dynamic GSM-HR dynamic GSM-EFR dynamic L8 dynamic RED dynamic VDVI dynamic BT656 Audio Audio Audio Audio Audio Video variable 90000 90000 90000 90000 90000 1 8000 8000 variable 1 1 variable dynamic RFC 3551 reserved RFC 3550 H261 MPV MP2T H263 Video Video Audio/Video Video 90000 90000 90000 90000 RFC 2032 RFC 2250 RFC 2250 nv Video 90000 RFC 3551 CellB JPEG Video Video 90000 90000 RFC 2029 RFC 2435

dynamic H263-1998 Video dynamic MP1S dynamic MP2P dynamic BMPEG Video Video Video

Sequence Number. 16 bits. The sequence number increments by one for each RTP data packet sent, and may be used by the receiver to detect packet loss and to restore packet sequence. The initial value of the sequence number is random (unpredictable) to make known-plaintext attacks on encryption

more difficult, even if the source itself does not encrypt, because the packets may flow through a translator that does. Timestamp. 32 bits. The timestamp reflects the sampling instant of the first octet in the RTP data packet. The sampling instant must be derived from a clock that increments monotonically and linearly in time to allow synchronization and jitter calculations. The resolution of the clock must be sufficient for the desired synchronization accuracy and for measuring packet arrival jitter (one tick per video frame is typically not sufficient). The clock frequency is dependent on the format of data carried as payload and is specified statically in the profile or payload format specification that defines the format, or may be specified dynamically for payload formats defined through non-RTP means. If RTP packets are generated periodically, the nominal sampling instant as determined from the sampling clock is to be used, not a reading of the system clock. As an example, for fixed-rate audio the timestamp clock would likely increment by one for each sampling period. If an audio application reads blocks covering 160 sampling periods from the input device, the timestamp would be increased by 160 for each such block, regardless of whether the block is transmitted in a packet or dropped as silent. SSRC, Synchronization source. 32 bits. Identifies the synchronization source. The value is chosen randomly, with the intent that no two synchronization sources within the same RTP session will have the same SSRC. Although the probability of multiple sources choosing the same identifier is low, all RTP implementations must be prepared to detect and resolve collisions. If a source changes its source transport address, it must also choose a new SSRC to avoid being interpreted as a looped source. CSRC, Contributing source. 32 bits. An array of 0 to 15 CSRC elements identifying the contributing sources for the payload contained in this packet. The number of identifiers is given by the CC field. If there are more than 15 contributing sources, only 15 may be identified. CSRC identifiers are inserted by mixers, using the SSRC identifiers of contributing sources. For example, for audio packets the SSRC identifiers of all sources that were mixed together to create a packet are listed, allowing correct talker indication at the receiver.

Glossary: CSRC, Contributing source. (RFC 1889). A source of a stream of RTP packets that has contributed to the combined stream produced by an RTP mixer. The mixer inserts a list of the SSRC identifiers of the sources that contributed to the generation of a particular packet into the RTP header of that packet. This list is called the CSRC list. An example application is audio conferencing where a mixer indicates all the talkers whose speech was combined to produce the outgoing packet,

allowing the receiver to indicate the current talker, even though all the audio packets contain the same SSRC identifier. End system. (RFC 1889). An application that generates the content to be sent in RTP packets and/or consumes the content of received RTP packets. An end system can act as one or more synchronization sources in a particular RTP session, but typically only one. Mixer. (RFC 3550). An intermediate system that receives RTP packets from one or more sources, possibly changes the data format, combines the packets in some manner and then forwards a new RTP packet. Since the timing among multiple input sources will not generally be synchronized, the mixer will make timing adjustments among the streams and generate its own timing for the combined stream. Thus, all data packets originating from a mixer will be identified as having the mixer as their synchronization source. Monitor. (RFC 1889). An application that receives RTCP packets sent by participants in an RTP session, in particular the reception reports, and estimates the current quality of service for distribution monitoring, fault diagnosis and long-term statistics. The monitor function is likely to be built into the application(s) participating in the session, but may also be a separate application that does not otherwise participate and does not send or receive the RTP data packets. These are called third party monitors. RTP packet. (RFC 1889). A data packet consisting of the fixed RTP header, a possibly empty list of contributing sources, and the payload data. Some underlying protocols may require an encapsulation of the RTP packet to be defined. Typically one packet of the underlying protocol contains a single RTP packet, but several RTP packets may be contained if permitted by the encapsulation method. RTP payload. (RFC 1889). The data transported by RTP in a packet, for example audio samples or compressed video data. RTP session. (RFC 1889). The association among a set of participants communicating with RTP. For each participant, the session is defined by a particular pair of destination transport addresses (one network address plus a port pair for RTP and RTCP). The destination transport address pair may be common for all participants, as in the case of IP multicast, or may be different for each, as in the case of individual unicast network addresses plus a common port pair. In a multimedia session, each medium is carried in a separate RTP session with its own RTCP packets. The multiple RTP sessions are distinguished by different port number pairs and/or different multicast addresses.

SSRC, Synchronization source. (RFC 1889). The source of a stream of RTP packets, identified by a 32-bit numeric SSRC identifier carried in the RTP header so as not to be dependent upon the network address. All packets from a synchronization source form part of the same timing and sequence number space, so a receiver groups packets by synchronization source for playback. Examples of synchronization sources include the sender of a stream of packets derived from a signal source such as a microphone or a camera, or an RTP mixer. A synchronization source may change its data format, e.g., audio encoding, over time. The SSRC identifier is a randomly chosen value meant to be globally unique within a particular RTP session. A participant need not use the same SSRC identifier for all the RTP sessions in a multimedia session; the binding of the SSRC identifiers is provided through RTCP. If a participant generates multiple streams in one RTP session, for example from separate video cameras, each must be identified as a different SSRC. Translator. (RFC 1889). An intermediate system that forwards RTP packets with their synchronization source identifier intact. Examples of translators include devices that convert encodings without mixing, replicators from multicast to unicast, and application- level filters in firewalls.

RFCs: [RFC 2029] RTP Payload Format of Sun's CellB Video Encoding. [RFC 2032] RTP Payload Format for H.261 Video Streams. [RFC 2190] RTP Payload Format for H.263 Video Streams. [RFC 2198] RTP Payload for Redundant Audio Data. [RFC 2250] RTP Payload Format for MPEG1/MPEG2 Video.

? Obsoletes: RFC 2038.
[RFC 2343] RTP Payload Format for Bundled MPEG. [RFC 2429] RTP Payload Format for the 1998 Version of ITU-T Rec. H.263 Video (H.263+). [RFC 2431] RTP Payload Format for BT.656 Video Encoding. [RFC 2435] RTP Payload Format for JPEG-compressed Video.

? Obsoletes: RFC 2035.
[RFC 2508] Compressing IP/UDP/RTP Headers for Low-Speed Serial Links.

[RFC 2658] RTP Payload Format for PureVoice(tm) Audio. [RFC 2733] An RTP Payload Format for Generic Forward Error Correction. [RFC 2736] Guidelines for Writers of RTP Payload Format Specifications. [RFC 2762] Sampling of the Group Membership in RTP. [RFC 2793] RTP Payload for Text Conversation. [RFC 2833] RTP Payload for DTMF Digits, Telephony Tones and Telephony Signals. [RFC 2862] RTP Payload Format for Real-Time Pointers. [RFC 2959] Real-Time Transport Protocol Management Information Base.

? Defines SNMP MIB iso.org.dod.internet.mgmt.mib-2.rtpMIB (1.3.6.1.2.1.10.87).
[RFC 3009] Registration of parityfec MIME types. [RFC 3016] RTP Payload Format for MPEG-4 Audio/Visual Streams. [RFC 3047] RTP Payload Format for ITU-T Recommendation G.722.1. [RFC 3095] RObust Header Compression (ROHC): Framework and four profiles: RTP, UDP, ESP, and uncompressed. [RFC 3119] A More Loss-Tolerant RTP Payload Format for MP3 Audio. [RFC 3158] RTP Testing Strategies. [RFC 3189] RTP Payload Format for DV (IEC 61834) Video. [RFC 3190] RTP Payload Format for 12-bit DAT Audio and 20- and 24-bit Linear Sampled Audio. [RFC 3267] Real-Time Transport Protocol (RTP) Payload Format and File Storage Format for the Adaptive Multi-Rate (AMR) and Adaptive Multi-Rate Wideband (AMR-WB) Audio Codecs. [RFC 3389] Real-time Transport Protocol (RTP) Payload for Comfort Noise (CN).

? Defines MIME media subtype audio/CN. ? Defines RTP payload type CN.
[RFC 3497] RTP Payload Format for Society of Motion Picture and Television Engineers (SMPTE) 292M Video.

? Defines MIME media subtype video/SMPTE292M.
[RFC 3558] RTP Payload Format for Enhanced Variable Rate Codecs (EVRC) and Selectable Mode Vocoders (SMV).

? Defines MIME media subtypes audio/EVRC, audio/EVRC0, audio/SMV and
audio/SMV0. [RFC 3545] Enhanced Compressed RTP (CRTP) for Links with High Delay, Packet Loss and Reordering. [RFC 3550] RTP: A Transport Protocol for Real-Time Applications.

? Obsoletes: RFC 1889.
[RFC 3551] RTP Profile for Audio and Video Conferences with Minimal Control.

? Obsoletes: RFC 1890.
[RFC 3555] MIME Type Registration of RTP Payload Formats.

? Updated by: RFC 3625.
[RFC 3557] RTP Payload Format for European Telecommunications Standards Institute (ETSI) European Standard ES 201 108 Distributed Speech Recognition Encoding.

? Defines MIME media subtype audio/dsr-es201108.
[RFC 3640] RTP Payload Format for Transport of MPEG-4 Elementary Streams. [RFC 3711] The Secure Real-time Transport Protocol (SRTP).

? Defines RTP profile RTP/SAVP.
[RFC 3816] Definitions of Managed Objects for RObust Header Compression (ROHC).

? iso.org.dod.internet.mgmt.mib-2.rohcMIB (1.3.6.1.2.1.112) ? iso.org.dod.internet.mgmt.mib-2.rohcUncmprMIB (1.3.6.1.2.1.113) ? iso.org.dod.internet.mgmt.mib-2.rohcRtpMIB (1.3.6.1.2.1.114)

Obsolete RFCs: [RFC 1889] RTP: A Transport Protocol for Real-Time Applications.

? Obsoleted by: RFC 3550.
[RFC 1890] RTP Profile for Audio and Video Conferences with Minimal Control.

? Obsoleted by: RFC 3551.
[RFC 2035] RTP Payload Format for JPEG-compressed Video.

? Obsoleted by: RFC 2435.
[RFC 2038] RTP Payload Format for MPEG1/MPEG2 Video.

? Obsoleted by: RFC 2250.


推荐相关:

一篇关于陈奕迅的文章

一篇关于陈奕迅的文章_小学作文_小学教育_教育专区。如果以相貌来判断,陈奕迅这个...在这一点,EASON 绝对具备。 他的声音美,有磁性,有同时代男歌手所不能...


有关C++一篇不错的文章

有关C++一篇不错的文章_计算机软件及应用_IT/计算机...??相比起教科书来, 那些以“教条”方式介绍 C++...这方面比较好的书包括:《 C++编程思想》(1、2 版...


转载一篇关于超级分布的文章

转载一篇关于超级分布的文章_初一数学_数学_初中教育...因为我们只考虑中 1 位的号码,不考虑全中的情 况...超级经典易懂的介绍滤波... 15页 免费 10篇大学生...


史上最完整的调研报告格式及一篇范文示例

史上最完整的调研报告格式及一篇范文示例_调查/报告...关于大学生网络购物行为的调研报告(黑体二号)摘要(...您是从何种方式得知购物网站的( A.朋友介绍 他 ?...


写一篇关于中国传统文化方面的作文

一篇关于中国传统文化方面的作文(小学三年级) 2005...自然由百姓来鉴定一下更好: ”于是传下旨意,让...今天,我来为大家介绍一下剪纸 吧! 剪纸的内容包含...


RTP格式

RTP格式介绍 RTP 协议的报文头格式结构 2010-07-22...作者同类文章 X 版权声明:本文为博主原创文章,未经...封装中应该有同步源和时戳等字段,但完整的封装...


我的大学六年(郭天祥)——一篇绝对值得大学生看的文章

(郭天祥)——一篇绝对值得大学生看的文章_其它_...付老师又 给我俩介绍了一位正在做毕业设计的大四...很多人说, 学单片机最好先学汇编语言,以我的经验...


一篇有关销售的文章相当好

一篇有关销售的文章相当好_经管营销_专业资料。业务是从市场上学出来的,不是从...5、但我个人认为最好的找客户的方法是通过交际网络的相互介绍来发展客户。以后...


一篇关于中药的文章

一篇关于中药的文章_中医中药_医药卫生_专业资料。一篇...汞中毒的问题,以前中医有认识, 但并不全面。现在...专家简介 陈可冀,中国科学院院士,中国中医科学院首席...


软文经典范文

软文经典范文: 《等待来的爱情》内容简介:网络时代,...在此为大家提供一篇软文经典范文,从经典的软文中感受...隐藏好你要推广的网站, 让他们以为那个是对他们很...

网站首页 | 网站地图
3986 3986.net
文档资料库内容来自网络,如有侵犯请联系客服。zhit325@qq.com