draft-ietf-avt-rtptest-01.txt   draft-ietf-avt-rtptest-02.txt 
INTERNET-DRAFT 16 August 1999 INTERNET-DRAFT 21 October 1999
Colin Perkins Colin Perkins
University College London University College London
Jonathan Rosenberg Jonathan Rosenberg
Bell Laboratories Bell Laboratories
Henning Schulzrinne Henning Schulzrinne
Columbia University Columbia University
RTP Testing Strategies RTP Testing Strategies
draft-ietf-avt-rtptest-01.txt draft-ietf-avt-rtptest-02.txt
Status of this memo Status of this memo
This document is an Internet-Draft and is in full conformance with This document is an Internet-Draft and is in full conformance with
all provisions of Section 10 of RFC2026. all provisions of Section 10 of RFC2026.
Internet-Drafts are working documents of the Internet Engineering Internet-Drafts are working documents of the Internet Engineering
Task Force (IETF), its areas, and its working groups. Note that Task Force (IETF), its areas, and its working groups. Note that
other groups may also distribute working documents as Internet-Drafts. other groups may also distribute working documents as Internet-Drafts.
Internet-Drafts are draft documents valid for a maximum of six months Internet-Drafts are draft documents valid for a maximum of six months and
and may be updated, replaced, or obsoleted by other documents at may be updated, replaced, or obsoleted by other documents at any time. It
any time. It is inappropriate to use Internet-Drafts as reference is inappropriate to use Internet-Drafts as reference material or to cite
material or to cite them other than as work in progress. them other than as work in progress.
The list of current Internet-Drafts can be accessed at The list of current Internet-Drafts can be accessed at
http://www.ietf.org/ietf/1id-abstracts.txt http://www.ietf.org/ietf/1id-abstracts.txt
The list of Internet-Draft Shadow Directories can be accessed at The list of Internet-Draft Shadow Directories can be accessed at
http://www.ietf.org/shadow.html. http://www.ietf.org/shadow.html.
Distribution of this document is unlimited. Distribution of this document is unlimited.
Comments are solicited and should be addressed to the author and/or the Comments are solicited and should be addressed to the author and/or the
IETF Audio/Video Transport working group's mailing list at rem-conf@es.net. IETF Audio/Video Transport working group's mailing list at rem-conf@es.net.
Abstract Abstract
This memo describes a possible testing strategy for RTP This memo describes a possible testing strategy for RTP
implementations and is intended as an aid to implementors. implementations. It is intended as an aid to implementors
It does not specify a standard of any kind. and does not specify a standard of any kind.
1 Introduction 1 Introduction
This memo describes a possible testing strategy for RTP implementations. This memo describes a possible testing strategy for RTP implementations.
The tests are intended to help demonstrate interoperability of multiple The tests are intended to help demonstrate interoperability of multiple
implementations, and to illustrate common implementation errors. They implementations, and to illustrate common implementation errors. They
are not intended to be an exhaustive set of tests and passing these are not intended to be an exhaustive set of tests and passing these
tests does not necessarily imply conformance to the complete RTP tests does not necessarily imply conformance to the complete RTP
specification. specification.
skipping to change at page 2, line 25 skipping to change at page 2, line 25
+-------+ Test instrument +-----+ +-------+ Test instrument +-----+
| +-----------------+ | | +-----------------+ |
| | | |
+--------+-------+ +-------+--------+ +--------+-------+ +-------+--------+
| First RTP | | Second RTP | | First RTP | | Second RTP |
| implementation | | implementation | | implementation | | implementation |
+----------------+ +----------------+ +----------------+ +----------------+
Figure 1: Testing architecture Figure 1: Testing architecture
Both RTP implementations are instructed to send packets to the test Both RTP implementations send packets to the test instrument, which
instrument, which forwards packets from one implementation to the forwards packets from one implementation to the other. Unless otherwise
other. Unless otherwise specified, packets are forwarded with no specified, packets are forwarded with no additional delay and without
additional delay or loss. The test instrument is also required to loss. The test instrument is required to delay or discard packets
delay or discard packets in some of the tests. The test instrument in some of the tests. The test instrument is invisible to the RTP
is invisible to the RTP implementations - it merely simulates poor implementations - it merely simulates poor network conditions.
network conditions.
The test instrument is also capable of logging packet contents for The test instrument is also capable of logging packet contents for
inspection of their correctness. inspection of their correctness.
A typical test setup might comprise three machines on a single Ethernet A typical test setup might comprise three machines on a single Ethernet
segment. Two of these machines run the RTP implementations, the segment. Two of these machines run the RTP implementations, the
third runs the test instrument. The test instrument is an application third runs the test instrument. The test instrument is an application
level packet forwarder. Both RTP implementations are instructed to level packet forwarder. Both RTP implementations are instructed to
send unicast RTP packets to the test instrument, which forwards packets send unicast RTP packets to the test instrument, which forwards packets
between them. between them.
skipping to change at page 4, line 33 skipping to change at page 4, line 33
by each implementation, and that those packets are correctly received by each implementation, and that those packets are correctly received
by the other implementation. It should also be verified that: by the other implementation. It should also be verified that:
o all RTCP packets sent are compound packets o all RTCP packets sent are compound packets
o all RTCP compound packets start with an empty RR packet o all RTCP compound packets start with an empty RR packet
o all RTCP compound packets contain an SDES CNAME packet o all RTCP compound packets contain an SDES CNAME packet
The first implementation should then be made to transmit data packets. The first implementation should then be made to transmit data packets.
It should be verified that the first implementation now generates It should be verified that that implementation now generates SR packets
SR packets in place of RR packets, and that the second application in place of RR packets, and that the second application now generates
now generates RR packets containing a single report block. It should RR packets containing a single report block. It should be verified
be verified that these SR and RR packets are correctly received. that these SR and RR packets are correctly received. The following
The following features of the SR packets should also be verified: features of the SR packets should also be verified:
o that the length field is consistent with both the length of o that the length field is consistent with both the length of
the packet and the RC field the packet and the RC field
o that the SSRC in SR packets is consistent with that in RTP data o that the SSRC in SR packets is consistent with that in RTP data
packets packets
o that the NTP timestamp in a SR is sensible o that the NTP timestamp in a SR is sensible (matches the wall
clock time on the sending machine)
o that the RTP timestamp in a SR is consistent with that in the o that the RTP timestamp in a SR is consistent with that in the
RTP data packets RTP data packets
o that the sender's packet and octet count fields are consistent o that the packet and octet count fields in the SR packets are
with the RTP data packets transmitted consistent with the number of RTP data packets transmitted
In addition, the following features of the RR packets should also In addition, the following features of the RR packets should also
be verified: be verified:
o that the SSRC in the report block is consistent with that in o that the SSRC in the report block is consistent with that in
the data packets being received the data packets being received
o that the fraction lost is zero o that the fraction lost is zero
o that the cumulative number of packets lost is zero o that the cumulative number of packets lost is zero
skipping to change at page 6, line 8 skipping to change at page 6, line 8
amount depends on the media type, but a small fraction of the average amount depends on the media type, but a small fraction of the average
interarrival time is reasonable). The effect of this should be to interarrival time is reasonable). The effect of this should be to
increase the reported interarrival jitter in the RR packets. increase the reported interarrival jitter in the RR packets.
If these tests succeed, the process should be repeated with the second If these tests succeed, the process should be repeated with the second
implementation transmitting and the first receiving. implementation transmitting and the first receiving.
2.4 RTCP source description packets 2.4 RTCP source description packets
Both implementations should be run, but neither is required to transmit Both implementations should be run, but neither is required to transmit
data packets. The RTCP packets should be observed and it should data packets. The RTCP packets should be observed and it should be
be verified that each compound packet contains an SDES packet, that verified that each compound packet contains an SDES packet, that that
that packet contains a CNAME item and that the CNAME is chosen according packet contains a CNAME item and that the CNAME is chosen according to the
to the rules in the RTP specification and profile. rules in the RTP specification and profile (in many cases the CNAME should
be of the form `example@10.0.0.1' but this may be overridden by a profile
definition).
If an application supports additional SDES items then it should be If an application supports additional SDES items then it should be
verified that they are sent in addition to the CNAME with some SDES verified that they are sent in addition to the CNAME with some SDES
packets (the exact rate at which these additional items are included packets (the exact rate at which these additional items are included
is dependent on the application and profile). is dependent on the application and profile).
It should be verified that an implementation can correctly receive It should be verified that an implementation can correctly receive NAME,
NAME, EMAIL, PHONE, LOC, NOTE, TOOL and PRIV items, even if it does EMAIL, PHONE, LOC, NOTE, TOOL and PRIV items, even if it does not send
not send them. This is because it may reasonably be expected to them. This is because it may reasonably be expected to interwork with
interwork with other implementations which support those items. Receiving other implementations which support those items. Receiving and ignoring
and ignoring such packets is valid behaviour. such packets is valid behaviour.
It should be verified that an implementation correctly sets the length It should be verified that an implementation correctly sets the length
fields in the SDES items it sends, and that the source count and fields in the SDES items it sends, and that the source count and
packet length fields are correct. packet length fields are correct.
It should be verified that an implementation correctly receives SDES It should be verified that an implementation correctly receives SDES
items which do not terminate in a zero byte. items which do not terminate in a zero byte.
2.5 RTCP BYE packets 2.5 RTCP BYE packets
Both implementations should be run, but neither is required to transmit Both implementations should be run, but neither is required to transmit
data packets. The first implementation is then quit and it should data packets. The first implementation is then made to exit and it should
be verified that an RTCP BYE packet is sent. If should be verified be verified that an RTCP BYE packet is sent. It should be verified that
that the second implementation reacts to this BYE packet and notes the second implementation reacts to this BYE packet and notes that the
that the first implementation has left the conference. first implementation has left the session. If the test succeeds, the
implementations should be restarted and the process repeated with the
second implementation leaving the session.
If the test succeeds, the implementations should be restarted and
the process repeated with the second implementation leaving the conference.
It should be verified that implementations handle BYE packets containing It should be verified that implementations handle BYE packets containing
the optional reason for leaving. the optional reason for leaving text (ignoring the text is acceptable).
2.6 RTCP application defined packets 2.6 RTCP application defined packets
Tests for the correct response to application defined packets are Tests for the correct response to application defined packets are
difficult to specify, since the response is clearly implementation difficult to specify, since the response is clearly implementation
dependent. It should be verified that an implementation ignores APP dependent. It should be verified that an implementation ignores APP
packets where the 4 octet name field is unrecognised. Implementations packets where the 4 octet name field is unrecognised. Implementations
which use APP packets should verify that they behave as expected. which use APP packets should verify that they behave as expected.
2.7 RTCP transmission interval 2.7 RTCP transmission interval
The basic architecture for performing the tests is shown in figure 2. The basic architecture for performing tests of the RTCP transmission
interval is shown in figure 2.
+--------------+ +--------------+
| test | | test |
| instrument | | instrument |
+-----+--------+ +-----+--------+
| |
------+-----------+------------- LAN ------+----------+-------------- LAN
| |
+-------+--------+ +--------+-------+
| RTP | | RTP |
| implementation | | implementation |
+----------------+ +----------------+
Figure 2: Testing architecture for RTCP Figure 2: Testing architecture for RTCP
The test instrument is connected on the same LAN as the RTP implementation The test instrument is connected to the same LAN as the RTP implementation
being tested. It is assumed that the test instrument is preconfigured being tested. It is assumed that the test instrument is preconfigured with
with the addresses and ports used by the RTP implementation, and the addresses and ports used by the RTP implementation, and is also aware
is also aware of the RTCP bandwidth and sender/receiver fractions. of the RTCP bandwidth and sender/receiver fractions. The tests can be
The tests can be conducted using either multicast or unicast. conducted using either multicast or unicast.
The test instrument must be capable of sending arbitrarily crafted The test instrument must be capable of sending arbitrarily crafted RTP and
RTP and RTCP packets to the RTP implementation. The instrument should RTCP packets to the RTP implementation. The test instrument should also be
also be capable of receiving packets sent by the RTP implementation, capable of receiving packets sent by the RTP implementation, parsing them,
parsing them, and computing metrics based on those packets. and computing metrics based on those packets.
It is furthermore assumed that a number of basic controls over the It is furthermore assumed that a number of basic controls over the
RTP implementation exist. These controls are: RTP implementation exist. These controls are:
o the ability to force the implementation to send or not send o the ability to force the implementation to send or not send
RTP packets at any desired point in time; RTP packets at any desired point in time
o the ability to force the application to terminate its involvement o the ability to force the application to terminate its involvement
in the RTP session, and for this termination to be known immediately in the RTP session, and for this termination to be known immediately
to the test instrument; to the test instrument
o the ability to set the session bandwidth and RTCP sender and o the ability to set the session bandwidth and RTCP sender and
receiver fractions; receiver fractions
The second of these is required only for the test of BYE reconsideration, The second of these is required only for the test of BYE reconsideration,
and is the only aspect of these tests not easily implementable by and is the only aspect of these tests not easily implementable by pure
pure automation. It will generally require manual intervention to automation. It will generally require manual intervention to terminate the
terminate the session from the RTP implementation and to convey this session from the RTP implementation and to convey this to the test
to the test instrument through some non-RTP means. instrument through some non-RTP means.
2.7.1 Basic Behavior 2.7.1 Basic Behavior
The first test is to verify basic correctness of the implementation The first test is to verify basic correctness of the implementation
of the RTCP transmission rules. This basic behavior consists of: of the RTCP transmission rules. This basic behavior consists of:
o periodic transmission of RTCP packets; o periodic transmission of RTCP packets
o randomization of the interval for RTCP packet transmission; o randomization of the interval for RTCP packet transmission
o correct implementation of the randomization interval computations, o correct implementation of the randomization interval computations,
with unconditional reconsideration. with unconditional reconsideration
These features are tested in the following manner. The RTP implementation The RTP implementation acts as a receiver, and never sends any RTP
acts as a session receiver, and never sends any RTP packets. The data packets. The implementation is configured with a large session
implementation is configured with a large session bandwidth, say 1 bandwidth, say 1 Mbit/s. This will cause the implementation to use
Mb/s. This will cause the implementation to use the minimal interval the minimal interval of 5s rather than the small interval based on
of 5s rather than the small interval based on the session bandwidth the session bandwidth and membership size. The implementation will
and membership size. The implementation will generate RTCP packets generate RTCP packets at this minimal interval, on average. The
at this minimal interval, on average. The test instrument generates test instrument generates no packets, but receives the RTCP packets
no packets, but receives the RTCP packets generated by the implementation. generated by the implementation. When an RTCP packet is received,
When an RTCP packet is received, the time is noted by the test instrument. the time is noted by the test instrument. The difference in time
The difference in time between each pair of subsequent packets (called between each pair of subsequent packets (called the interval) is
the interval) is computed. These intervals are stored, so that statistics computed. These intervals are stored, so that statistics based on
based on these intervals can be computed. It is recommended that these intervals can be computed. It is recommended that this observation
this observation process operate for at least 20 minutes. process operate for at least 20 minutes.
An implementation passes this test if the intervals have the following An implementation passes this test if the intervals have the following
properties: properties:
o the minimum interval is never less than 2 seconds or more than o the minimum interval is never less than 2 seconds or more than
2.5 seconds; 2.5 seconds;
o the maximum interval is never more than 7 seconds or less than o the maximum interval is never more than 7 seconds or less than
5.5 seconds; 5.5 seconds;
skipping to change at page 10, line 20 skipping to change at page 10, line 17
In addition to the basic behavior in section 2.7.1, an implementation In addition to the basic behavior in section 2.7.1, an implementation
should correctly implement a number of other, slightly more advanced should correctly implement a number of other, slightly more advanced
features: features:
o scale the RTCP interval with the group size; o scale the RTCP interval with the group size;
o correctly divide bandwidth between senders and receivers; o correctly divide bandwidth between senders and receivers;
o correctly compute the RTCP interval when the user is a sender o correctly compute the RTCP interval when the user is a sender
The following tests are meant to test these features.
The implementation begins operation as a receiver. The test instrument The implementation begins operation as a receiver. The test instrument
waits for the first RTCP packet from the implementation. When it waits for the first RTCP packet from the implementation. When it
arrives, the test instrument notes the time, and immediately sends arrives, the test instrument notes the time, and immediately sends
50 RTCP RR packets and 50 RTCP SR packets to the implementation, 50 RTCP RR packets and 50 RTCP SR packets to the implementation,
each with a different SSRC and SDES CNAME. The test instrument then each with a different SSRC and SDES CNAME. The test instrument then
sends 50 RTP packets, using the 50 SSRC from the RTCP SR packets. sends 50 RTP packets, using the 50 SSRC from the RTCP SR packets.
The test instrument should ensure that each RTCP packet is of the The test instrument should ensure that each RTCP packet is of the
same length. The instrument should then wait until the next RTCP same length. The instrument should then wait until the next RTCP
packet is received from the implementation, and the time of such packet is received from the implementation, and the time of such
reception is noted. The difference between the reception of the reception is noted. The difference between the reception of the
skipping to change at page 11, line 27 skipping to change at page 11, line 19
2.7.4 Reverse Reconsideration 2.7.4 Reverse Reconsideration
The reverse reconsideration algorithm is effectively the opposite The reverse reconsideration algorithm is effectively the opposite
of the normal reconsideration algorithm. It causes the RTCP interval of the normal reconsideration algorithm. It causes the RTCP interval
to be reduced more rapidly in response to decreases in the group to be reduced more rapidly in response to decreases in the group
membership. This is advantageous in that it keeps the RTCP information membership. This is advantageous in that it keeps the RTCP information
as fresh as possible, and helps avoids some premature timeout problems. as fresh as possible, and helps avoids some premature timeout problems.
In the first test, the implementation joins the session as a receiver. In the first test, the implementation joins the session as a receiver.
As soon as it sends its first RTCP packet, the test instrument sends As soon as the implementation sends its first RTCP packet, the test
100 RTCP RR packets, each of the same length S, and a different SDES instrument sends 100 RTCP RR packets, each of the same length S,
CNAME and SSRC in each. It then waits for the implementation to and a different SDES CNAME and SSRC in each. It then waits for the
send another RTCP packet. Once it does, the test instrument sends implementation to send another RTCP packet. Once it does, the test
100 BYE packets, each one containing a different SSRC, but matching instrument sends 100 BYE packets, each one containing a different
an SSRC from one of the initial RTCP packets. Each BYE should also SSRC, but matching an SSRC from one of the initial RTCP packets.
be the same size as the RTCP packets sent by the test instrument. Each BYE should also be the same size as the RTCP packets sent by
This is easily accomplished by using a BYE reason to pad out the the test instrument. This is easily accomplished by using a BYE
length. The time of the next RTCP packet from the implementation reason to pad out the length. The time of the next RTCP packet from
is then noted. The delay T between this (the third RTCP packet) the implementation is then noted. The delay T between this (the
and the previous should be no more than: third RTCP packet) and the previous should be no more than:
T < 3 * S / (B * Fr * (e-1.5) * 2) T < 3 * S / (B * Fr * (e-1.5) * 2)
Where S is the size of the RTCP and BYE packets sent by the test Where S is the size of the RTCP and BYE packets sent by the test
instrument, B is the RTCP bandwidth, Fr is the fraction of the RTCP instrument, B is the RTCP bandwidth, Fr is the fraction of the RTCP
bandwidth allocated to receivers, and e is the natural exponent. bandwidth allocated to receivers, and e is the natural exponent.
B should be chosen such that T is on the order of tens of seconds. B should be chosen such that T is on the order of tens of seconds.
A reasonable choice is S=1024 bits and B=168 bits per second. A reasonable choice is S=1024 bits and B=168 bits per second. This test
demonstrates basic correctness of implementation. An implementation
without reverse reconsideration will not send its next RTCP packet for
nearly 100 times as long as the above amount.
This test demonstrates basic correctness of implementation. An In the second test, the implementation joins the session as a receiver. As
implementation without reverse reconsideration will not send its next soon as it sends its first RTCP packet, the test instrument sends 100 RTCP
RTCP packet for nearly 100 times as long as the above amount. RR packets, each of the same length S, followed by 100 BYE packets, also of
length S. Each RTCP packet carries a different SDES CNAME and SSRC, and is
matched with precisely one BYE packet with the same SSRC. This will cause
the implementation to see a rapid increase and then rapid drop in group
membership.
In the second test, the implementation joins the session as a receiver.
As soon as it sends its first RTCP packet, the test instrument sends
100 RTCP RR packets, each of the same length S, followed by 100 BYE
packets, also of length S. Each RTCP packet carries a different SDES
CNAME and SSRC, and is matched with precisely one BYE packet with
the same SSRC. This will cause the implementation to see a rapid
increase and then rapid drop in group membership.
The test is deemed succesful if the next RTCP packet shows up T seconds The test is deemed succesful if the next RTCP packet shows up T seconds
after the first, and T is within: after the first, and T is within:
2.5 / (e-1.5) < T < 7.5 / (e-1.5) 2.5 / (e-1.5) < T < 7.5 / (e-1.5)
This tests correctness of the maintenance of the pmembers variable. This tests correctness of the maintenance of the pmembers variable. An
An incorrect implementation might try to execute reverse reconsideration incorrect implementation might try to execute reverse reconsideration every
every time a BYE is received, as opposed to only when the group membership time a BYE is received, as opposed to only when the group membership drops
drops below pmembers. If an implementation did this, it would end below pmembers. If an implementation did this, it would end up sending an
up sending an RTCP packet immediately after receiving the stream RTCP packet immediately after receiving the stream of BYE's. For this test
of BYE's. For this test to work, B must be chosen to be a large to work, B must be chosen to be a large value, around 1Mb/s.
value, around 1Mb/s.
2.7.5 BYE Reconsideration 2.7.5 BYE Reconsideration
The BYE reconsideration algorithm works in much the same fashion The BYE reconsideration algorithm works in much the same fashion
as regular reconsideration, except applied to BYE packets. When a as regular reconsideration, except applied to BYE packets. When a
user leaves the group, instead of sending a BYE immediately, it may user leaves the group, instead of sending a BYE immediately, it may
delay transmission of its BYE packet if others are sending BYE's. delay transmission of its BYE packet if others are sending BYE's.
The test for correctness of this algorithm is as follows. The RTP The test for correctness of this algorithm is as follows. The RTP
implementation joins the group as a receiver. The test instrument implementation joins the group as a receiver. The test instrument
skipping to change at page 13, line 25 skipping to change at page 13, line 17
Active RTP participants are supposed to send periodic RTCP packets. Active RTP participants are supposed to send periodic RTCP packets.
When a participant leaves the session, they may send a BYE, however When a participant leaves the session, they may send a BYE, however
this is not required. Furthermore, BYE reconsideration may cause this is not required. Furthermore, BYE reconsideration may cause
a BYE to never be sent. As a result, participants must time out a BYE to never be sent. As a result, participants must time out
other participants who have not sent an RTCP packet in a long time. other participants who have not sent an RTCP packet in a long time.
According to the specification, participants who have not sent an According to the specification, participants who have not sent an
RTCP packet in the last 5 intervals are timed out. This test verifies RTCP packet in the last 5 intervals are timed out. This test verifies
that these timeouts are being performed correctly. that these timeouts are being performed correctly.
The RTP implementation joins a session as a receiver. The test instrument The RTP implementation joins a session as a receiver. The test instrument
waits for the first RTCP packet from the implementation. Once it waits for the first RTCP packet from the implementation. Once it arrives,
arrives, the test instrument sends 100 RTCP RR packets, each with the test instrument sends 100 RTCP RR packets, each with a different SDES
a different SDES and SSRC, and notes the time. This will cause the and SSRC, and notes the time. This will cause the implementation to
implementation to believe that there are now 101 group participants, believe that there are now 101 group participants, causing it to increase
causing it to increase its RTCP interval. The test instrument continues its RTCP interval. The test instrument continues to monitor the RTCP
to monitor the RTCP packets from the implementation. As each RTCP packets from the implementation. As each RTCP packet is received, the time
packet is received, the time of its reception is noted, and the interval of its reception is noted, and the interval between RTCP packets is stored.
between RTCP packets is stored. The 100 participants spoofed by The 100 participants spoofed by the test instrument should eventually time
the test instrument should eventually time out at the RTP implementation. out at the RTP implementation. This should cause the RTCP interval to be
This should cause the RTCP interval to be reduced to its minimum. reduced to its minimum. The test is deemed successful if the interval
between RTCP packets after the first is no less than:
The test is deemed successful if the interval between RTCP packets
after the first is no less than:
Ti > 101 * S / ( 2 * (e-1.5) * B * Fr) Ti > 101 * S / ( 2 * (e-1.5) * B * Fr)
and this minimum interval is sustained no later than Td seconds after and this minimum interval is sustained no later than Td seconds after
the transmission of the 100 RR's, where Td is: the transmission of the 100 RR's, where Td is:
Td = 7 * 101 * S / ( B * Fr ) Td = 7 * 101 * S / ( B * Fr )
and the interval between RTCP packets after this point is no less and the interval between RTCP packets after this point is no less than:
than:
Tf > 2.5 / (e-1.5) Tf > 2.5 / (e-1.5)
For this test to work, B and S must be chosen so Ti is on the order For this test to work, B and S must be chosen so Ti is on the order
of minutes. Recommended values are S = 1024 bits and B = 1.9 kbps. of minutes. Recommended values are S = 1024 bits and B = 1.9 kbps.
2.7.7 Rapid SR's 2.7.7 Rapid SR's
The minimum interval for RTCP packets can be reduced for large session The minimum interval for RTCP packets can be reduced for large session
bandwdiths. The reduction applies to senders only. The recommended bandwdiths. The reduction applies to senders only. The recommended
algorithm for computing this minimum interval is 360 divided by the algorithm for computing this minimum interval is 360 divided by the
RTP session bandwidth, in kbps. For bandwidths larger than 72 kbps, RTP session bandwidth, in kbps. For bandwidths larger than 72 kbps,
this interval is less than 5 seconds. this interval is less than 5 seconds.
This test verifies the ability of an implementation to use a lower This test verifies the ability of an implementation to use a lower RTCP
RTCP minimum interval when it is a sender in a high bandwidth session. minimum interval when it is a sender in a high bandwidth session. The test
The test can only be run on implementations that support this reduction, can only be run on implementations that support this reduction, since it is
since it is optional. optional.
The RTP implementation is configured to join the session as a sender. The RTP implementation is configured to join the session as a sender. The
The session is configured to use 360 kbps. If the recommended algorithm session is configured to use 360 kbps. If the recommended algorithm for
for computing the reduced minimum interval is used, the result is computing the reduced minimum interval is used, the result is a 1 second
a 1 second interval. If the RTP implementation uses a different interval. If the RTP implementation uses a different algorithm, the
algorithm, the session bandwidth should be set in such a way to cause session bandwidth should be set in such a way to cause the reduced minimum
the reduced minimum interval to be 1 second. interval to be 1 second.
Once joining the session, the RTP implementation should begin to Once joining the session, the RTP implementation should begin to
send both RTP and RTCP packets. The interval between RTCP packets send both RTP and RTCP packets. The interval between RTCP packets
is measured and stored until 100 intervals have been collected. is measured and stored until 100 intervals have been collected.
The test is deemed successful if the smallest interval is no less The test is deemed successful if the smallest interval is no less
than 1/2 a second, and the largest interval is no more than 1.5 seconds. than 1/2 a second, and the largest interval is no more than 1.5 seconds.
The average should be close to 1 second. The average should be close to 1 second.
3 RTP translators 3 RTP translators
skipping to change at page 15, line 5 skipping to change at page 14, line 50
| implementation | | implementation | | implementation | | implementation |
+----------------+ +----------------+ +----------------+ +----------------+
Figure 3: Testing architecture for translators Figure 3: Testing architecture for translators
The first RTP implementation is instructed to send data to the translator, The first RTP implementation is instructed to send data to the translator,
which forwards the packets to the other RTP implementation, after which forwards the packets to the other RTP implementation, after
translating then as desired. It should be verified that the second translating then as desired. It should be verified that the second
implementation can playout the translated packets. implementation can playout the translated packets.
It should be verified that the RTP packets sent to the second implementation It should be verified that the packets received by the second implementation
have the same SSRC as those sent by the first implementation. The have the same SSRC as those sent by the first implementation. The CC should
CC should be zero and CSRC fields should not be present in the translated be zero and CSRC fields should not be present in the translated
packets. The other RTP header fields may be rewritten by the translator, packets. The other RTP header fields may be rewritten by the translator,
depending on the translation being performed, for example depending on the translation being performed, for example
o the payload type should change if the translator changes the o the payload type should change if the translator changes the
encoding of the data encoding of the data
o the timestamp may change if, for example, the encoding, packetisation o the timestamp may change if, for example, the encoding, packetisation
interval or framerate is changed interval or framerate is changed
o the sequence number may change if the translator merges or splits o the sequence number may change if the translator merges or splits
packets packets
o padding may be added or removed, in particular if the translator o padding may be added or removed, in particular if the translator
is adding or removing encryption is adding or removing encryption
o the marker bit may be rewritten o the marker bit may be rewritten
If the translator modifies the contents of the data packets it should If the translator modifies the contents of the data packets it should
be verified that the corresponding change is made to the RTCP packets, be verified that the corresponding change is made to the RTCP packets,
and that both receivers can correctly process the modified RTCP packets. and that the receivers can correctly process the modified RTCP packets.
In particular In particular
o the SSRC is unchanged by the translator o the SSRC is unchanged by the translator
o if the translator changes the data encoding it should also change o if the translator changes the data encoding it should also change
the octet count field in the SR packets the octet count field in the SR packets
o if the translator combines multiple data packets into one it o if the translator combines multiple data packets into one it
should also change the packet count field in SR packets should also change the packet count field in SR packets
o if the translator changes the sampling frequency of the data o if the translator changes the sampling frequency of the data
packets it should also change the RTP timestamp field in the packets it should also change the RTP timestamp field in the
SR packets SR packets
o if the translator combines multiple data packets into one it o if the translator combines multiple data packets into one it should
should also change the packet loss and extended highest sequence also change the packet loss and extended highest sequence number fields
number fields of RR packets flowing back from the receiver (it of RR packets flowing back from the receiver (it is legal for the
is legal for the translator to strip the report blocks and send translator to strip the report blocks and send empty SR/RR packets, but
empty SR/RR packets, but this should only be done if the transformation this should only be done if the transformation of the data is such that
of the data is such that the reception reports cannot sensibly the reception reports cannot sensibly be translated)
be translated)
o the translator should forward SDES CNAME packets o the translator should forward SDES CNAME packets
o the translator may forward other SDES packets o the translator may forward other SDES packets
o the translator should forward BYE packets unchanged o the translator should forward BYE packets unchanged
o the translator should forward APP packets unchanged o the translator should forward APP packets unchanged
When the translator exits it should be verified to send a BYE packet When the translator exits it should be verified to send a BYE packet to
to each receiver containing the SSRC of the other receiver. The each receiver containing the SSRC of the other receiver. The receivers
receivers should be verified to correctly process this BYE packet should be verified to correctly process this BYE packet (this is different
(this is different to the BYE test in section 2.5 since multiple to the BYE test in section 2.5 since multiple SSRCs may be included in each
SSRCs may be included in each BYE if the translator also sends its BYE if the translator also sends its own RTCP information).
own RTCP information).
4 RTP mixers 4 RTP mixers
RTP mixers should be tested in the same manner as end systems, with RTP mixers should be tested in the same manner as end systems, with
the addition of the tests described in this section. the addition of the tests described in this section.
The architecture for testing RTP mixers is shown in figure 4. The architecture for testing RTP mixers is shown in figure 4.
+----------------+ +----------------+
| Second RTP | | Second RTP |
| implementation | | implementation |
+--------+-------+ +-------+--------+
| |
| +-----------+ | +-----------+
+-------+ RTP Mixer +-----+ +-------+ RTP Mixer +-----+
| +-----------+ | | +-----------+ |
| | | |
+--------+-------+ +-------+--------+ +-------+--------+ +-------+--------+
| First RTP | | Third RTP | | First RTP | | Third RTP |
| implementation | | implementation | | implementation | | implementation |
+----------------+ +----------------+ +----------------+ +----------------+
Figure 4: Testing architecture for mixers Figure 4: Testing architecture for mixers
The first and second RTP implementations are instructed to send data The first and second RTP implementations are instructed to send data
packets to the RTP mixer. The mixer combines those packets and sends packets to the RTP mixer. The mixer combines those packets and sends
them to the third RTP implementation. The mixer should also process them to the third RTP implementation. The mixer should also process
RTCP packets from the other implementations, and should generate its RTCP packets from the other implementations, and should generate its
own RTCP reports. own RTCP reports.
It should be verified that the third RTP implementation can playout It should be verified that the third RTP implementation can playout
skipping to change at page 17, line 24 skipping to change at page 17, line 14
Finally, one of the implementations should be quit, and it should Finally, one of the implementations should be quit, and it should
be verified that the other implementations see the BYE packet. This be verified that the other implementations see the BYE packet. This
implementation should then be restarted and the mixer should be quit. implementation should then be restarted and the mixer should be quit.
It should be verified that the implementations see both the mixer It should be verified that the implementations see both the mixer
and the implementations on the other side of the mixer quit (illustrating and the implementations on the other side of the mixer quit (illustrating
response to BYE packets containing multiple sources). response to BYE packets containing multiple sources).
5 SSRC collision detection 5 SSRC collision detection
RTP has a provision for SSRC collisions. These collisions occur RTP has provision for the resolution of SSRC collisions. These collisions
when two different session participants choose the same SSRC. In occur when two different session participants choose the same SSRC. In
this case, both participants are supposed to send a BYE, leave the this case, both participants are supposed to send a BYE, leave the session,
session, and rejoin with a different SSRC, but the same CNAME. The and rejoin with a different SSRC, but the same CNAME. The purpose of this
purpose of this test is to verify that this function is present in test is to verify that this function is present in the implementation.
the implementation.
The test is straightforward. The RTP implementation is made to join The test is straightforward. The RTP implementation is made to join the
the multicast group as a receiver. A test instrument waits for the multicast group as a receiver. A test instrument waits for the first RTCP
first RTCP packet. Once it arrives, the test instrument notes the packet. Once it arrives, the test instrument notes the CNAME and SSRC from
CNAME and SSRC from the RTCP packet. The test instrument then generates the RTCP packet. The test instrument then generates an RTCP receiver
an RTCP receiver report. This receiver report contains an SDES chunk report. This receiver report contains an SDES chunk with an SSRC matching
with an SSRC matching that of the RTP implementation, but with a that of the RTP implementation, but with a different CNAME. At this point,
different CNAME. At this point, the implementation should send a the implementation should send a BYE RTCP packet (containing an SDES chunk
BYE RTCP packet (containing an SDES chunk with the old SSRC and CNAME), with the old SSRC and CNAME), and then rejoin, causing it to send a
and then rejoin, causing it to send a receiver report containing receiver report containing an SDES chunk, but with a new SSRC and the same
an SDES chunk, but with a new SSRC and the same CNAME. CNAME.
The test is deemed succesful if the RTP implementation sends the The test is deemed succesful if the RTP implementation sends the RTCP BYE
RTCP BYE and RTCP RR as described above within one minute of receiving and RTCP RR as described above within one minute of receiving the colliding
the colliding RR from the test instrument. RR from the test instrument.
6 SSRC Randomization 6 SSRC Randomization
According to the RTP specification, SSRC's are supposed to be chosen According to the RTP specification, SSRC's are supposed to be chosen
randomly and uniformly over a 32 bit space. This randomization is randomly and uniformly over a 32 bit space. This randomization is
beneficial for several reasons: beneficial for several reasons:
o It reduces the probability of collisions in large groups. o It reduces the probability of collisions in large groups.
o It simplifies the process of group sampling [3] which depends o It simplifies the process of group sampling [3] which depends
 End of changes. 44 change blocks. 
180 lines changed or deleted 172 lines changed or added

This html diff was produced by rfcdiff 1.46. The latest version is available from http://tools.ietf.org/tools/rfcdiff/