| draft-ietf-avt-rtptest-03.txt | draft-ietf-avt-rtptest-04.txt | |||
|---|---|---|---|---|
| INTERNET-DRAFT 12 July 2000 | INTERNET-DRAFT 22 November 2000 | |||
| Colin Perkins | ||||
| USC/ISI | ||||
| Jonathan Rosenberg | ||||
| dynamicsoft | ||||
| Henning Schulzrinne | ||||
| Columbia University | ||||
| Colin Perkins | ||||
| USC/ISI | ||||
| Jonathan Rosenberg | ||||
| dynamicsoft | ||||
| Henning Schulzrinne | ||||
| Columbia University | ||||
| RTP Testing Strategies | RTP Testing Strategies | |||
| draft-ietf-avt-rtptest-03.txt | draft-ietf-avt-rtptest-04.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. | |||
| skipping to change at page 1, line 47 ¶ | skipping to change at page 1, line 49 ¶ | |||
| 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. It is intended as an aid to implementors | implementations. It is intended as an aid to implementors | |||
| and 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 [1] 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. | |||
| This memo is for information only and does not specify a standard | This memo is for information only and does not specify a standard | |||
| of any kind. | of any kind. | |||
| 2 End systems | 2 End systems | |||
| The architecture for testing RTP end systems is shown in figure 1. | The architecture for testing RTP end systems is shown in figure 1. | |||
| +-----------------+ | +-----------------+ | |||
| +-------+ 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 send packets to the test instrument, which | Both RTP implementations send packets to the test instrument, which | |||
| forwards packets from one implementation to the other. Unless otherwise | forwards packets from one implementation to the other. Unless otherwise | |||
| specified, packets are forwarded with no additional delay and without | specified, packets are forwarded with no additional delay and without | |||
| loss. The test instrument is required to delay or discard packets | loss. The test instrument is required to delay or discard packets | |||
| in some of the tests. The test instrument is invisible to the RTP | in some of the tests. The test instrument is invisible to the RTP | |||
| implementations - it merely simulates poor network conditions. | implementations - it merely simulates poor network conditions. | |||
| skipping to change at page 4, line 19 ¶ | skipping to change at page 4, line 19 ¶ | |||
| the extension. | the extension. | |||
| If an implementation makes use of the header extension, it should | If an implementation makes use of the header extension, it should | |||
| be verified that the profile specific field and the length field | be verified that the profile specific field and the length field | |||
| of the extension are set correctly, and that the length of the packet | of the extension are set correctly, and that the length of the packet | |||
| is consistent. | is consistent. | |||
| 2.3 Basic RTCP | 2.3 Basic RTCP | |||
| An RTP implementation is required to send RTCP control packets in | An RTP implementation is required to send RTCP control packets in | |||
| addition to data packets. | addition to data packets. The architecture for testing basic RTCP | |||
| functions is that shown in figure 1. | ||||
| 2.3.1 Sender and receiver reports | ||||
| The first test requires both implementations to be run, but neither | The first test requires both implementations to be run, but neither | |||
| sends data. It should be verified that RTCP packets are generated | sends data. It should be verified that RTCP packets are generated | |||
| 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 | |||
| skipping to change at page 4, line 42 ¶ | skipping to change at page 4, line 45 ¶ | |||
| 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 that implementation now generates SR packets | It should be verified that that implementation now generates SR packets | |||
| in place of RR packets, and that the second application now generates | in place of RR packets, and that the second application now generates | |||
| RR packets containing a single report block. It should be verified | RR packets containing a single report block. It should be verified | |||
| that these SR and RR packets are correctly received. The following | that these SR and RR packets are correctly received. 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 the RTP | |||
| packets | data packets | |||
| o that the NTP timestamp in a SR is sensible (matches the wall | o that the NTP timestamp in the SR packets is sensible (matches | |||
| clock time on the sending machine) | 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 the SR packets is consistent with | |||
| RTP data packets | that in the RTP data packets | |||
| o that the packet and octet count fields in the SR packets are | o that the packet and octet count fields in the SR packets are | |||
| consistent with the number of 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 | |||
| skipping to change at page 5, line 30 ¶ | skipping to change at page 5, line 33 ¶ | |||
| time between test instrument and receiver is smaller than the | time between test instrument and receiver is smaller than the | |||
| packet inter-arrival time, this can be directly checked by the | packet inter-arrival time, this can be directly checked by the | |||
| test instrument). | test instrument). | |||
| o that the interarrival jitter is small (a precise value cannot | o that the interarrival jitter is small (a precise value cannot | |||
| be given, since it depends on the test instrument and network | be given, since it depends on the test instrument and network | |||
| conditions, but very little jitter should be present in this | conditions, but very little jitter should be present in this | |||
| scenario). | scenario). | |||
| o that the last sender report timestamp is consistent with that | o that the last sender report timestamp is consistent with that | |||
| in the SR packets (ie: each RR passing through the test instrument | in the SR packets (i.e. each RR passing through the test instrument | |||
| should contain the middle 32 bits from the 64 bit NTP timestamp | should contain the middle 32 bits from the 64 bit NTP timestamp | |||
| of the last SR packet which passed through the test instrument | of the last SR packet which passed through the test instrument | |||
| in the opposite direction). | in the opposite direction). | |||
| o that the delay since last SR field is sensible (an estimate | o that the delay since last SR field is sensible (an estimate | |||
| may be made by timing the passage of an SR and corresponding | may be made by timing the passage of an SR and corresponding | |||
| RR through the test instrument, this should closely agree with | RR through the test instrument, this should closely agree with | |||
| the DLSR field) | the DLSR field) | |||
| It should also be verified that the timestamps, packet count and | ||||
| octet count correctly wrap-around after the appropriate interval. | ||||
| The next test is to show behaviour in the presence of packet loss. | The next test is to show behaviour in the presence of packet loss. | |||
| The first implementation is made to transmit data packets, which | The first implementation is made to transmit data packets, which | |||
| are received by the second implementation. This time, however, the | are received by the second implementation. This time, however, the | |||
| test instrument is made to randomly drop a small fraction (1% is | test instrument is made to randomly drop a small fraction (1% is | |||
| suggested) of the data packets. The second implementation should | suggested) of the data packets. The second implementation should | |||
| be able to receive the data packets and process them in a normal | be able to receive the data packets and process them in a normal | |||
| manner (with, of course, some quality degradation). The RR packets | manner (with, of course, some quality degradation). The RR packets | |||
| should show a loss fraction corresponding to the drop rate of the | should show a loss fraction corresponding to the drop rate of the | |||
| test instrument and should show an increasing cumulative number of | test instrument and should show an increasing cumulative number of | |||
| packets lost. | packets lost. | |||
| The loss rate in the test instrument is then returned to zero and | The loss rate in the test instrument is then returned to zero and | |||
| it is made to delay each packet by some random amount (the exact | it is made to delay each packet by some random amount (the exact | |||
| 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.3.2 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 verified that each compound packet contains an SDES packet, that | be verified that each compound packet contains an SDES packet, that | |||
| that packet contains a CNAME item and that the CNAME is chosen according | that packet contains a CNAME item and that the CNAME is chosen according | |||
| to the rules in the RTP specification and profile (in many cases | to the 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 | the CNAME should be of the form `example@10.0.0.1' but this may be | |||
| overridden by a profile definition). | 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 | |||
| skipping to change at page 6, line 34 ¶ | skipping to change at page 6, line 40 ¶ | |||
| 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, EMAIL, PHONE, LOC, NOTE, TOOL and PRIV items, even if it does | NAME, EMAIL, PHONE, LOC, NOTE, TOOL and PRIV items, even if it does | |||
| not send them. This is because it may reasonably be expected to | not send them. This is because it may reasonably be expected to | |||
| interwork with other implementations which support those items. Receiving | interwork with other implementations which support those items. Receiving | |||
| and ignoring such packets is valid behaviour. | and ignoring 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 SDES | |||
| fields are not zero terminated. | ||||
| 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.3.3 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 made to exit and | data packets. The first implementation is then made to exit and | |||
| it should be verified that an RTCP BYE packet is sent. It should | it should be verified that an RTCP BYE packet is sent. It should | |||
| be verified that the second implementation reacts to this BYE packet | be verified that the second implementation reacts to this BYE packet | |||
| and notes that the first implementation has left the session. | and notes that the first implementation has left the session. | |||
| If the test succeeds, the implementations should be restarted and | If the test succeeds, the implementations should be restarted and | |||
| the process repeated with the second implementation leaving the session. | the process repeated with the second implementation leaving the session. | |||
| 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 text (ignoring the text is acceptable). | the optional reason for leaving text (ignoring the text is acceptable). | |||
| 2.6 RTCP application defined packets | 2.3.4 Application defined RTCP 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.4 RTCP transmission interval | |||
| The basic architecture for performing tests of the RTCP transmission | The basic architecture for performing tests of the RTCP transmission | |||
| interval is shown in figure 2. | 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 to 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 the addresses and ports used by the RTP implementation, and | with the addresses and ports used by the RTP implementation, and | |||
| is also aware of the RTCP bandwidth and sender/receiver fractions. | is also aware of the RTCP bandwidth and sender/receiver fractions. | |||
| The tests can be conducted using either multicast or unicast. | The tests can be 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 | |||
| skipping to change at page 8, line 21 ¶ | skipping to change at page 8, line 26 ¶ | |||
| 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 automation. It will generally require manual intervention to | pure automation. It will generally require manual intervention to | |||
| terminate the session from the RTP implementation and to convey this | terminate the session from the RTP implementation and to convey this | |||
| to the test instrument through some non-RTP means. | to the test instrument through some non-RTP means. | |||
| 2.7.1 Basic Behavior | 2.4.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 | |||
| skipping to change at page 9, line 19 ¶ | skipping to change at page 9, line 24 ¶ | |||
| 5.5 seconds; | 5.5 seconds; | |||
| o the average interval is between 4.5 and 5.5 seconds; | o the average interval is between 4.5 and 5.5 seconds; | |||
| o the number of intervals between x and x+500ms is less than the | o the number of intervals between x and x+500ms is less than the | |||
| number of intervals between x+500ms and x+1s, for any x. | number of intervals between x+500ms and x+1s, for any x. | |||
| In particular, an implementation fails if the packets are sent with | In particular, an implementation fails if the packets are sent with | |||
| a constant interval. | a constant interval. | |||
| 2.7.2 Step join backoff | 2.4.2 Step join backoff | |||
| The main purpose of the reconsideration algorithm is to avoid a flood | The main purpose of the reconsideration algorithm is to avoid a flood | |||
| of packets that might occur when a large number of users simultaneously | of packets that might occur when a large number of users simultaneously | |||
| join an RTP session. Reconsideration therefore exhibits a backoff | join an RTP session. Reconsideration therefore exhibits a backoff | |||
| behavior in sending of RTCP packets when group sizes increase. This | behavior in sending of RTCP packets when group sizes increase. This | |||
| aspect of the algorithm can be tested in the following manner. | aspect of the algorithm can be tested in the following manner. | |||
| The implementation begins operation. The test instrument waits for | The implementation begins operation. The test instrument waits for | |||
| the arrival of the first RTCP packet. When it arrives, the test | the arrival of the first RTCP packet. When it arrives, the test | |||
| instrument notes the time and then immediately sends 100 RTCP RR | instrument notes the time and then immediately sends 100 RTCP RR | |||
| skipping to change at page 10, line 18 ¶ | skipping to change at page 10, line 24 ¶ | |||
| this minimum interval Te would be much smaller: | this minimum interval Te would be much smaller: | |||
| Te > MAX( [ S / ( B * Fr * (e-1.5) * 2 ) ] , [ 2.5 / (e-1.5) ] ) | Te > MAX( [ S / ( B * Fr * (e-1.5) * 2 ) ] , [ 2.5 / (e-1.5) ] ) | |||
| B should be chosen sufficiently small so that T is around 60 seconds. | B should be chosen sufficiently small so that T is around 60 seconds. | |||
| Reasonable choices for these parameters are B = 950 bits per second, | Reasonable choices for these parameters are B = 950 bits per second, | |||
| and S = 1024 bits. An implementation passes this test if the interval | and S = 1024 bits. An implementation passes this test if the interval | |||
| between packets is not less than T above, and not more than 3 times | between packets is not less than T above, and not more than 3 times | |||
| T. | T. | |||
| The test may be repeated for the case when the RTP implementation | The test should be repeated for the case when the RTP implementation | |||
| is a sender. This is accomplished by having the implementation send | is a sender. This is accomplished by having the implementation send | |||
| RTP packets at least once a second. In this case, the interval between | RTP packets at least once a second. In this case, the interval between | |||
| the first and second RTCP packets should be no less than: | the first and second RTCP packets should be no less than: | |||
| T > S / ( B * Fs * (e-1.5) * 2 ) | T > S / ( B * Fs * (e-1.5) * 2 ) | |||
| Where Fs is the fraction of RTCP bandwidth allocated to senders, | Where Fs is the fraction of RTCP bandwidth allocated to senders, | |||
| usually 25%. Note that this value of T is significantly smaller | usually 25%. Note that this value of T is significantly smaller | |||
| than the interval for receivers. | than the interval for receivers. | |||
| 2.7.3 Steady State Behavior | 2.4.3 Steady State Behavior | |||
| In addition to the basic behavior in section 2.7.1, an implementation | In addition to the basic behavior in section 2.4.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 implementation begins operation as a receiver. The test instrument | The implementation begins operation as a receiver. The test instrument | |||
| skipping to change at page 11, line 44 ¶ | skipping to change at page 12, line 5 ¶ | |||
| In this case, the average RTCP interval should be within 5% of: | In this case, the average RTCP interval should be within 5% of: | |||
| T = 11 * S / (B * Fs) | T = 11 * S / (B * Fs) | |||
| Where S is the size of the RTCP packets sent by the test instrument, | Where S is the size of the RTCP packets sent by the test instrument, | |||
| B is the RTCP bandwidth, and Fs is the fraction of RTCP banwidth | B is the RTCP bandwidth, and Fs is the fraction of RTCP banwidth | |||
| allocated for senders (normally 25%). The values for B and S should | allocated for senders (normally 25%). The values for B and S should | |||
| be chosen small enough so that T is on the order of tens of seconds. | be chosen small enough so that T is on the order of tens of seconds. | |||
| Reasonable choices are S=1024 bits and B=1.5 kb/s. | Reasonable choices are S=1024 bits and B=1.5 kb/s. | |||
| 2.7.4 Reverse Reconsideration | 2.4.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 the implementation sends its first RTCP packet, the test | As soon as the implementation sends its first RTCP packet, the test | |||
| instrument sends 100 RTCP RR packets, each of the same length S, | instrument sends 100 RTCP RR packets, each of the same length S, | |||
| skipping to change at page 12, line 28 ¶ | skipping to change at page 12, line 34 ¶ | |||
| third RTCP packet) 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 | This test demonstrates basic correctness of implementation. An | |||
| without reverse reconsideration will not send its next RTCP packet | implementation without reverse reconsideration will not send its | |||
| for nearly 100 times as long as the above amount. | next RTCP packet for nearly 100 times as long as the above amount. | |||
| In the second test, the implementation joins the session as a receiver. | 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 | 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 | 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 | packets, also of length S. Each RTCP packet carries a different SDES | |||
| CNAME and SSRC, and is matched with precisely one BYE packet with | CNAME and SSRC, and is matched with precisely one BYE packet with | |||
| the same SSRC. This will cause the implementation to see a rapid | the same SSRC. This will cause the implementation to see a rapid | |||
| increase and then rapid drop in group membership. | 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 | |||
| skipping to change at page 13, line 8 ¶ | skipping to change at page 13, line 12 ¶ | |||
| 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 incorrect implementation might try to execute reverse reconsideration | An incorrect implementation might try to execute reverse reconsideration | |||
| every time a BYE is received, as opposed to only when the group membership | every time a BYE is received, as opposed to only when the group membership | |||
| drops below pmembers. If an implementation did this, it would end | drops below pmembers. If an implementation did this, it would end | |||
| up sending an RTCP packet immediately after receiving the stream | up sending an RTCP packet immediately after receiving the stream | |||
| of BYE's. For this test to work, B must be chosen to be a large | of BYE's. For this test to work, B must be chosen to be a large | |||
| value, around 1Mb/s. | value, around 1Mb/s. | |||
| 2.7.5 BYE Reconsideration | 2.4.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 | |||
| waits for the first RTCP packet. When the test instrument receives | waits for the first RTCP packet. When the test instrument receives | |||
| this packet, the test instrument immediately sends 100 RTCP RR packets, | this packet, the test instrument immediately sends 100 RTCP RR packets, | |||
| skipping to change at page 14, line 5 ¶ | skipping to change at page 14, line 5 ¶ | |||
| S is the size of the RTCP and BYE packets, e is the natural exponent, | S is the size of the RTCP and BYE packets, e is the natural exponent, | |||
| B is the RTCP bandwidth, and Fr is the RTCP bandwidth fraction for | B is the RTCP bandwidth, and Fr is the RTCP bandwidth fraction for | |||
| receivers. S and B should be chosen so that T is on the order of | receivers. S and B should be chosen so that T is on the order of | |||
| 50 seconds. A reasonable choice is S=1024 bits and B=1.1 kb/s. | 50 seconds. A reasonable choice is S=1024 bits and B=1.1 kb/s. | |||
| The transmission of the RTCP packets is meant to verify that the | The transmission of the RTCP packets is meant to verify that the | |||
| implementation is ignoring non-BYE RTCP packets once it decides to | implementation is ignoring non-BYE RTCP packets once it decides to | |||
| leave the group. | leave the group. | |||
| 2.7.6 Timing out members | 2.4.6 Timing out members | |||
| 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. | |||
| skipping to change at page 15, line 5 ¶ | skipping to change at page 15, line 5 ¶ | |||
| 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.4.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 minimum interval when it is a sender in a high bandwidth session. | RTCP minimum interval when it is a sender in a high bandwidth session. | |||
| The test can only be run on implementations that support this reduction, | The test can only be run on implementations that support this reduction, | |||
| skipping to change at page 15, line 39 ¶ | skipping to change at page 15, line 40 ¶ | |||
| 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 | |||
| RTP translators should be tested in the same manner as end systems, | RTP translators should be tested in the same manner as end systems, | |||
| with the addition of the tests described in this section. | with the addition of the tests described in this section. | |||
| The architecture for testing RTP translators is shown in figure 3. | The architecture for testing RTP translators is shown in figure 3. | |||
| +-----------------+ | +-----------------+ | |||
| +-------+ RTP Translator +-----+ | +-------+ RTP Translator +-----+ | |||
| | +-----------------+ | | | +-----------------+ | | |||
| | | | | | | |||
| +-------+--------+ +-------+--------+ | +-------+--------+ +-------+--------+ | |||
| | First RTP | | Second RTP | | | First RTP | | Second RTP | | |||
| | 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 packets received by 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 | |||
| skipping to change at page 17, line 16 ¶ | skipping to change at page 17, line 16 ¶ | |||
| 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 each receiver containing the SSRC of the other receiver. The | to each receiver containing the SSRC of the other receiver. The | |||
| receivers should be verified to correctly process this BYE packet | receivers should be verified to correctly process this BYE packet | |||
| (this is different to the BYE test in section 2.5 since multiple | (this is different to the BYE test in section 2.3.3 since multiple | |||
| SSRCs may be included in each BYE if the translator also sends its | SSRCs may be included in each 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 20, line 17 ¶ | skipping to change at page 20, line 15 ¶ | |||
| Colin Perkins | Colin Perkins | |||
| USC Information Sciences Institute | USC Information Sciences Institute | |||
| 4350 North Fairfax Drive | 4350 North Fairfax Drive | |||
| Suite 620 | Suite 620 | |||
| Arlington, VA 22203 | Arlington, VA 22203 | |||
| Email: csp@isi.edu | Email: csp@isi.edu | |||
| Jonathan Rosenberg | Jonathan Rosenberg | |||
| dynamicsoft | dynamicsoft | |||
| 200 Executive Drive | 72 Eagle Rock Ave. | |||
| Suite 120 | First Floor | |||
| West Orange, NJ 07052 | East Hanover, NJ 07936 | |||
| Email: jdrosen@dynamicsoft.com | Email: jdrosen@dynamicsoft.com | |||
| Henning Schulzrinne | Henning Schulzrinne | |||
| Columbia University | Columbia University | |||
| M/S 0401 | M/S 0401 | |||
| 1214 Amsterdam Ave. | 1214 Amsterdam Ave. | |||
| New York, NY 10027-7003 | New York, NY 10027-7003 | |||
| Email: schulzrinne@cs.columbia.edu | Email: schulzrinne@cs.columbia.edu | |||
| 8 References | 8 References | |||
| [1] S. Bradner, ``The Internet Standards Process -- Revision 3'', | [1] H. Schulzrinne, S. Casner, R. Frederick and V. Jacobson, ``RTP: | |||
| RFC2026, Internet Engineering Task Force, October 1996. | A Transport Protocol to Real-Time Applications'', Work in progress, | |||
| Internet Engineering Task Force, July 2000. | ||||
| [2] H. Schulzrinne, S. Casner, R. Frederick and V. Jacobson, ``RTP: | ||||
| A Transport Protocol to Real-Time Applications'', RFC1889, Internet | ||||
| Engineering Task Force, January 1996. | ||||
| [3] J. Rosenberg and H. Schulzrinne, ``Sampling of the Group Membership | ||||
| in RTP'', RFC2762, February 2000. | ||||
| End of changes. 33 change blocks. | ||||
| 74 lines changed or deleted | 82 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/ | ||||