2.3. RTCP µÄ·â×° RTP ÐèÒª RTCP ΪÆä·þÎñÖÊÁ¿Ìṩ±£Ö¤£¬Òò´ËÏÂÃæ½éÉÜһϠRTCP µÄÏà¹Ø֪ʶ¡£ RTCP µÄÖ÷Òª¹¦ÄÜÊÇ£º·þÎñÖÊÁ¿µÄ¼àÊÓÓë·´À ¢Ã½Ìå¼äµÄͬ²½£¬ÒÔ¼°¶à²¥×éÖгÉÔ±µÄ±êʶ¡£ÔÚ RTP »á»°ÆÚ ¼ä£¬¸÷²ÎÓëÕßÖÜÆÚÐÔ
2.3. RTCPµÄ·â×°
RTPÐèÒªRTCPΪÆä·þÎñÖÊÁ¿Ìṩ±£Ö¤£¬Òò´ËÏÂÃæ½éÉÜÒ»ÏÂRTCPµÄÏà¹Ø֪ʶ¡£
RTCPµÄÖ÷Òª¹¦ÄÜÊÇ£º·þÎñÖÊÁ¿µÄ¼àÊÓÓë·´À¡¡¢Ã½Ìå¼äµÄͬ²½£¬ÒÔ¼°¶à²¥×éÖгÉÔ±µÄ±êʶ¡£ÔÚRTP»á»°ÆÚ ¼ä£¬¸÷²ÎÓëÕßÖÜÆÚÐԵش«ËÍRTCP°ü¡£RTCP°üÖк¬ÓÐÒÑ·¢Ë͵ÄÊý¾Ý°üµÄÊýÁ¿¡¢¶ªÊ§µÄÊý¾Ý°üµÄÊýÁ¿µÈͳ¼Æ×ÊÁÏ£¬Òò´Ë£¬¸÷²ÎÓëÕß¿ÉÒÔÀûÓÃÕâЩÐÅÏ¢¶¯Ì¬µØ¸Ä±ä´«ÊäËÙÂÊ£¬ÉõÖÁ¸Ä±äÓÐЧÔغÉÀàÐÍ¡£RTPºÍRTCPÅäºÏʹÓã¬ËüÃÇÄÜÒÔÓÐЧµÄ·´À¡ºÍ×îСµÄ¿ªÏúʹ´«ÊäЧÂÊ×î¼Ñ»¯£¬Òò¶øÌرðÊʺϴ«ËÍÍøÉϵÄʵʱÊý¾Ý¡£
´Óͼ 1¿ÉÒÔ¿´µ½£¬RTCPÒ²ÊÇÓÃUDPÀ´´«Ë͵ģ¬µ«RTCP·â×°µÄ½ö½öÊÇһЩ¿ØÖÆÐÅÏ¢£¬Òò¶ø·Ö×éºÜ¶Ì£¬ËùÒÔ¿ÉÒÔ½«¶à¸öRTCP·Ö×é·â×°ÔÚÒ»¸öUDP°üÖС£RTCPÓÐÈçÏÂÎåÖÖ·Ö×é
±í 1 RTCPµÄ5ÖÖ·Ö×éÀàÐÍ
ÉÏÊöÎåÖÖ·Ö×éµÄ·â×°´óͬСÒ죬ÏÂÃæÖ»½²ÊöSRÀàÐÍ£¬¶øÆäËüÀàÐÍÇë²Î¿¼RFC3550¡£
·¢ËͶ˱¨¸æ·Ö×éSR£¨Sender Report£©ÓÃÀ´Ê¹·¢ËͶËÒԶಥ·½Ê½ÏòËùÓнÓÊն˱¨¸æ·¢ËÍÇé¿ö¡£SR·Ö×éµÄÖ÷ÒªÄÚÈÝÓУºÏàÓ¦µÄRTPÁ÷µÄSSRC£¬RTPÁ÷ÖÐ×îвúÉúµÄRTP·Ö×éµÄʱ¼ä´ÁºÍNTP£¬RTPÁ÷°üº¬µÄ·Ö×éÊý£¬RTPÁ÷°üº¬µÄ×Ö½ÚÊý¡£SR°üµÄ·â×°Èçͼ3Ëùʾ¡£
ͼ 3 RTCPÍ·²¿µÄ¸ñʽ
°æ±¾£¨V£©£ºÍ¬RTP°üÍ·Óò¡£
Ìî³ä£¨P£©£ºÍ¬RTP°üÍ·Óò¡£
½ÓÊÕ±¨¸æ¼ÆÊýÆ÷£¨RC£©£º5±ÈÌØ£¬¸ÃSR°üÖеĽÓÊÕ±¨¸æ¿éµÄÊýÄ¿£¬¿ÉÒÔΪÁã¡£
°üÀàÐÍ£¨PT£©£º8±ÈÌØ£¬SR°üÊÇ200¡£
³¤¶ÈÓò£¨Length£©£º16±ÈÌØ£¬ÆäÖдæ·ÅµÄÊǸÃSR°üÒÔ32±ÈÌØΪµ¥Î»µÄ×ܳ¤¶È¼õÒ»¡£
ͬ²½Ô´£¨SSRC£©£ºSR°ü·¢ËÍÕßµÄͬ²½Ô´±êʶ·û¡£Óë¶ÔÓ¦RTP°üÖеÄSSRCÒ»Ñù¡£
NTP Timestamp£¨Network time protocol£©SR°ü·¢ËÍʱµÄ¾ø¶Ôʱ¼äÖµ¡£NTPµÄ×÷ÓÃÊÇͬ²½²»Í¬µÄRTPýÌåÁ÷¡£
RTP Timestamp£ºÓëNTPʱ¼ä´Á¶ÔÓ¦£¬ÓëRTPÊý¾Ý°üÖеÄRTPʱ¼ä´Á¾ßÓÐÏàͬµÄµ¥Î»ºÍËæ»ú³õʼֵ¡£
Sender’s packet count£º´Ó¿ªÊ¼·¢ËÍ°üµ½²úÉúÕâ¸öSR°üÕâ¶Îʱ¼äÀ·¢ËÍÕß·¢Ë͵ÄRTPÊý¾Ý°üµÄ×ÜÊý. SSRC¸Ä±äʱ£¬Õâ¸öÓòÇåÁã¡£
Sender`s octet count£º´Ó¿ªÊ¼·¢ËÍ°üµ½²úÉúÕâ¸öSR°üÕâ¶Îʱ¼äÀ·¢ËÍÕß·¢Ë͵ľ»ºÉÊý¾ÝµÄ×Ü×Ö½ÚÊý£¨²»°üÀ¨Í·²¿ºÍÌî³ä£©¡£·¢ËÍÕ߸ıäÆäSSRCʱ£¬Õâ¸öÓòÒªÇåÁã¡£
ͬ²½Ô´nµÄSSRC±êʶ·û£º¸Ã±¨¸æ¿éÖаüº¬µÄÊÇ´Ó¸ÃÔ´½ÓÊÕµ½µÄ°üµÄͳ¼ÆÐÅÏ¢¡£
¶ªÊ§ÂÊ£¨Fraction Lost£©£º±íÃ÷´ÓÉÏÒ»¸öSR»òRR°ü·¢³öÒÔÀ´´Óͬ²½Ô´n(SSRC_n)À´µÄRTPÊý¾Ý°üµÄ¶ªÊ§ÂÊ¡£
ÀۼƵİü¶ªÊ§ÊýÄ¿£º´Ó¿ªÊ¼½ÓÊÕµ½SSRC_nµÄ°üµ½·¢ËÍSR,´ÓSSRC_n´«¹ýÀ´µÄRTPÊý¾Ý°üµÄ¶ªÊ§×ÜÊý¡£
ÊÕµ½µÄÀ©Õ¹×î´óÐòÁкţº´ÓSSRC_nÊÕµ½µÄRTPÊý¾Ý°üÖÐ×î´óµÄÐòÁкţ¬
½ÓÊÕ¶¶¶¯£¨Interarrival jitter£©£ºRTPÊý¾Ý°ü½ÓÊÜʱ¼äµÄͳ¼Æ·½²î¹À¼Æ
ÉÏ´ÎSRʱ¼ä´Á£¨Last SR,LSR£©£ºÈ¡×î½ü´ÓSSRC_nÊÕµ½µÄSR°üÖеÄNTPʱ¼ä´ÁµÄÖмä32±ÈÌØ¡£Èç¹ûÄ¿Ç°»¹Ã»ÊÕµ½SR°ü£¬Ôò¸ÃÓòÇåÁã¡£
ÉÏ´ÎSRÒÔÀ´µÄÑÓʱ£¨Delay since last SR,DLSR£©£ºÉϴδÓSSRC_nÊÕµ½SR°üµ½·¢Ëͱ¾±¨¸æµÄÑÓʱ¡£