rfc3158.txt
来自「RFC 的详细文档!」· 文本 代码 · 共 1,236 行 · 第 1/4 页
TXT
1,236 行
The first and second RTP implementations are instructed to send data
packets to the RTP mixer. The mixer combines those packets and sends
them to the third RTP implementation. The mixer should also process
RTCP packets from the other implementations, and should generate its
own RTCP reports.
+----------------+
| Second RTP |
| implementation |
+-------+--------+
|
| +-----------+
+-------+ RTP Mixer +-----+
| +-----------+ |
| |
+-------+--------+ +-------+--------+
| First RTP | | Third RTP |
| implementation | | implementation |
+----------------+ +----------------+
Figure 4: Testing architecture for mixers
Perkins, et al. Informational [Page 17]
RFC 3158 RTP Testing Strategies August 2001
It should be verified that the third RTP implementation can playout
the mixed packets. It should also be verified that
o the CC field in the RTP packets received by the third
implementation is set to 2
o the RTP packets received by the third implementation contain 2
CSRCs corresponding to the first and second RTP implementations
o the RTP packets received by the third implementation contain an
SSRC corresponding to that of the mixer
It should next be verified that the mixer generates SR and RR packets
for each cloud. The mixer should generate RR packets in the
direction of the first and second implementations, and SR packets in
the direction of the third implementation.
It should be verified that the SR packets sent to the third
implementation do not reference the first or second implementations,
and vice versa.
It should be verified that SDES CNAME information is forwarded across
the mixer. Other SDES fields may optionally be forwarded.
Finally, one of the implementations should be quit, and it should be
verified that the other implementations see the BYE packet. This
implementation should then be restarted and the mixer should be quit.
It should be verified that the implementations see both the mixer and
the implementations on the other side of the mixer quit (illustrating
response to BYE packets containing multiple sources).
5 SSRC collision detection
RTP has provision for the resolution of SSRC collisions. These
collisions occur when two different session participants choose the
same SSRC. In this case, both participants are supposed to send a
BYE, leave the session, and rejoin with a different SSRC, but the
same CNAME. The purpose of this test is to verify that this function
is present in the implementation.
The test is straightforward. The RTP implementation is made to join
the multicast group as a receiver. A test instrument waits for the
first RTCP packet. Once it arrives, the test instrument notes the
CNAME and SSRC from the RTCP packet. The test instrument then
generates an RTCP receiver report. This receiver report contains an
SDES chunk with an SSRC matching that of the RTP implementation, but
with a different CNAME. At this point, the implementation should
Perkins, et al. Informational [Page 18]
RFC 3158 RTP Testing Strategies August 2001
send a BYE RTCP packet (containing an SDES chunk with the old SSRC
and CNAME), and then rejoin, causing it to send a receiver report
containing an SDES chunk, but with a new SSRC and the same CNAME.
The test is deemed successful if the RTP implementation sends the
RTCP BYE and RTCP RR as described above within one minute of
receiving the colliding RR from the test instrument.
6 SSRC Randomization
According to the RTP specification, SSRC's are supposed to be chosen
randomly and uniformly over a 32 bit space. This randomization is
beneficial for several reasons:
o It reduces the probability of collisions in large groups.
o It simplifies the process of group sampling [3] which depends
on the uniform distribution of SSRC's across the 32 bit space.
Unfortunately, verifying that a random number has 32 bits of uniform
randomness requires a large number of samples. The procedure below
gives only a rough validation to the randomness used for generating
the SSRC.
The test runs as follows. The RTP implementation joins the group as
a receiver. The test instrument waits for the first RTCP packet. It
notes the SSRC in this RTCP packet. The test is repeated 2500 times,
resulting in a collection of 2500 SSRC.
The are then placed into 25 bins. An SSRC with value X is placed
into bin FLOOR(X/(2**32 / 25)). The idea is to break the 32 bit
space into 25 regions, and compute the number of SSRC in each region.
Ideally, there should be 40 SSRC in each bin. Of course, the actual
number in each bin is a random variable whose expectation is 40.
With 2500 SSRC, the coefficient of variation of the number of SSRC in
a bin is 0.1, which means the number should be between 36 and 44.
The test is thus deemed successful if each bin has no less than 30
and no more than 50 SSRC.
Running this test may require substantial amounts of time,
particularly if there is no automated way to have the implementation
join the session. In such a case, the test can be run fewer times.
With 26 tests, half of the SSRC should be less than 2**31, and the
other half higher. The coefficient of variation in this case is 0.2,
so the test is successful if there are more than 8 SSRC less than
2**31, and less than 26.
Perkins, et al. Informational [Page 19]
RFC 3158 RTP Testing Strategies August 2001
In general, if the SSRC is collected N times, and there are B bins,
the coefficient of variation of the number of SSRC in each bin is
given by:
coeff = SQRT( (B-1)/N )
7 Security Considerations
Implementations of RTP are subject to the security considerations
mentioned in the RTP specification [1] and any applicable RTP profile
(e.g., [2]). There are no additional security considerations implied
by the testing strategies described in this memo.
8 Authors' Addresses
Colin Perkins
USC Information Sciences Institute
3811 North Fairfax Drive
Suite 200
Arlington, VA 22203
EMail: csp@isi.edu
Jonathan Rosenberg
dynamicsoft
72 Eagle Rock Ave.
First Floor
East Hanover, NJ 07936
EMail: jdrosen@dynamicsoft.com
Henning Schulzrinne
Columbia University
M/S 0401
1214 Amsterdam Ave.
New York, NY 10027-7003
EMail: schulzrinne@cs.columbia.edu
Perkins, et al. Informational [Page 20]
RFC 3158 RTP Testing Strategies August 2001
9 References
[1] Schulzrinne, H., Casner, S., Frederick R. and V. Jacobson, "RTP:
A Transport Protocol to Real-Time Applications", Work in Progress
(update to RFC 1889), March 2001.
[2] Schulzrinne H. and S. Casner, "RTP Profile for Audio and Video
Conferences with Minimal Control", Work in Progress (update to
RFC 1890), March 2001.
[3] Rosenberg, J. and Schulzrinne, H. "Sampling of the Group
Membership in RTP", RFC 2762, February 2000.
Perkins, et al. Informational [Page 21]
RFC 3158 RTP Testing Strategies August 2001
Full Copyright Statement
Copyright (C) The Internet Society (2001). All Rights Reserved.
This document and translations of it may be copied and furnished to
others, and derivative works that comment on or otherwise explain it
or assist in its implementation may be prepared, copied, published
and distributed, in whole or in part, without restriction of any
kind, provided that the above copyright notice and this paragraph are
included on all such copies and derivative works. However, this
document itself may not be modified in any way, such as by removing
the copyright notice or references to the Internet Society or other
Internet organizations, except as needed for the purpose of
developing Internet standards in which case the procedures for
copyrights defined in the Internet Standards process must be
followed, or as required to translate it into languages other than
English.
The limited permissions granted above are perpetual and will not be
revoked by the Internet Society or its successors or assigns.
This document and the information contained herein is provided on an
"AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Acknowledgement
Funding for the RFC Editor function is currently provided by the
Internet Society.
Perkins, et al. Informational [Page 22]
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?