rfc3158.txt

来自「RFC 的详细文档!」· 文本 代码 · 共 1,236 行 · 第 1/4 页

TXT
1,236 行
字号
2.3.2 RTCP source description packets

   Both implementations should be run, but neither is required to
   transmit data packets.  The RTCP packets should be observed and it
   should be verified that each compound packet contains an SDES packet,
   that 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 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
   verified that they are sent in addition to the CNAME with some SDES
   packets (the exact rate at which these additional items are included
   is dependent on the application and profile).

   It should be verified that an implementation can correctly receive
   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
   interwork with other implementations which support those items.
   Receiving and ignoring such packets is valid behavior.

   It should be verified that an implementation correctly sets the
   length fields in the SDES items it sends, and that the source count
   and packet length fields are correct.  It should be verified that
   SDES fields are not zero terminated.



Perkins, et al.              Informational                      [Page 6]

RFC 3158                 RTP Testing Strategies              August 2001


   It should be verified that an implementation correctly receives SDES
   items which do not terminate in a zero byte.

2.3.3 RTCP BYE packets

   Both implementations should be run, but neither is required to
   transmit data packets.  The first implementation is then made to exit
   and it should be verified that an RTCP BYE packet is sent.  It should
   be verified that the second implementation reacts to this BYE packet
   and notes that the 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.

   It should be verified that implementations handle BYE packets
   containing the optional reason for leaving text (ignoring the text is
   acceptable).

2.3.4 Application defined RTCP packets

   Tests for the correct response to application defined packets are
   difficult to specify, since the response is clearly implementation
   dependent.  It should be verified that an implementation ignores APP
   packets where the 4 octet name field is unrecognized.
   Implementations which use APP packets should verify that they behave
   as expected.

2.4 RTCP transmission interval

   The basic architecture for performing tests of the RTCP transmission
   interval is shown in Figure 2.

   The test instrument is connected to the same LAN as the RTP
   implementation being tested.  It is assumed that the test instrument
   is preconfigured with the addresses and ports used by the RTP
   implementation, and is also aware of the RTCP bandwidth and
   sender/receiver fractions.  The tests can be conducted using either
   multicast or unicast.

   The test instrument must be capable of sending arbitrarily crafted
   RTP and RTCP packets to the RTP implementation.  The test instrument
   should also be capable of receiving packets sent by the RTP
   implementation, parsing them, and computing metrics based on those
   packets.







Perkins, et al.              Informational                      [Page 7]

RFC 3158                 RTP Testing Strategies              August 2001


                          +--------------+
                          |     test     |
                          |  instrument  |
                          +-----+--------+
                                |
              ------+-----------+-------------- LAN
                    |
            +-------+--------+
            |       RTP      |
            | implementation |
            +----------------+

            Figure 2:  Testing architecture for RTCP

   It is furthermore assumed that a number of basic controls over the
   RTP implementation exist.  These controls are:

      o  the ability to force the implementation to send or not send RTP
         packets at any desired point in time

      o  the ability to force the application to terminate its
         involvement in the RTP session, and for this termination to be
         known immediately to the test instrument

      o  the ability to set the session bandwidth and RTCP sender and
         receiver fractions

   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 pure automation.  It will generally require manual
   intervention to terminate the session from the RTP implementation and
   to convey this to the test instrument through some non-RTP means.

2.4.1 Basic Behavior

   The first test is to verify basic correctness of the implementation
   of the RTCP transmission rules.  This basic behavior consists of:

      o  periodic transmission of RTCP packets

      o  randomization of the interval for RTCP packet transmission

      o  correct implementation of the randomization interval
         computations, with unconditional reconsideration







Perkins, et al.              Informational                      [Page 8]

RFC 3158                 RTP Testing Strategies              August 2001


   The RTP implementation acts as a receiver, and never sends any RTP
   data packets.  The implementation is configured with a large session
   bandwidth, say 1 Mbit/s.  This will cause the implementation to use
   the minimal interval of 5s rather than the small interval based on
   the session bandwidth and membership size.  The implementation will
   generate RTCP packets at this minimal interval, on average.  The test
   instrument generates no packets, but receives the RTCP packets
   generated by the implementation.  When an RTCP packet is received,
   the time is noted by the test instrument.  The difference in time
   between each pair of subsequent packets (called the interval) is
   computed.  These intervals are stored, so that statistics based on
   these intervals can be computed.  It is recommended that this
   observation process operate for at least 20 minutes.

   An implementation passes this test if the intervals have the
   following properties:

      o  the minimum interval is never less than 2 seconds or more than
         2.5 seconds;

      o  the maximum interval is never more than 7 seconds or less than
         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
         number of intervals between x+500ms and x+1s, for any x.

   In particular, an implementation fails if the packets are sent with a
   constant interval.

2.4.2 Step join backoff

   The main purpose of the reconsideration algorithm is to avoid a flood
   of packets that might occur when a large number of users
   simultaneously join an RTP session.  Reconsideration therefore
   exhibits a backoff behavior in sending of RTCP packets when group
   sizes increase.  This aspect of the algorithm can be tested in the
   following manner.

   The implementation begins operation.  The test instrument waits for
   the arrival of the first RTCP packet.  When it arrives, the test
   instrument notes the time and then immediately sends 100 RTCP RR
   packets to the implementation, each with a different SSRC and SDES
   CNAME.  The test instrument should ensure that each RTCP packet is of
   the same length.  The instrument should then wait until the next RTCP
   packet is received from the implementation, and the time of such
   reception is noted.



Perkins, et al.              Informational                      [Page 9]

RFC 3158                 RTP Testing Strategies              August 2001


   Without reconsideration, the next RTCP packet will arrive within a
   short period of time.  With reconsideration, transmission of this
   packet will be delayed.  The earliest it can arrive depends on the
   RTCP session bandwidth, receiver fraction, and average RTCP packet
   size.  The RTP implementation should be using the exponential
   averaging algorithm defined in the specification to compute the
   average RTCP packet size.  Since this is dominated by the received
   packets (the implementation has only sent one itself), the average
   will be roughly equal to the length of the RTCP packets sent by the
   test instrument.  Therefore, the minimum amount of time between the
   first and second RTCP packets from the implementation is:

      T > 101 * S / ( B * Fr * (e-1.5) * 2 )

   Where S is the size of the RTCP packets sent by the test instrument,
   B is the RTCP bandwidth (normally five percent of the session
   bandwidth), Fr is the fraction of RTCP bandwidth allocated to
   receivers (normally 75 percent), and e is the natural exponent.
   Without reconsideration, this minimum interval Te would be much
   smaller:

      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.
   Reasonable choices for these parameters are B = 950 bits per second,
   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 T.

   Note: in all tests the value chosen for B, the RTCP bandwidth, is
   calculated including the lower layer UDP/IP headers.  In a typical
   IPv4 based implementation, these comprise 28 octets per packet.  A
   common mistake is to forget that these are included when choosing the
   size of packets to transmit.

   The test should be repeated for the case when the RTP implementation
   is a sender.  This is accomplished by having the implementation send
   RTP packets at least once a second.  In this case, the interval
   between the first and second RTCP packets should be no less than:

      T > S / ( B * Fs * (e-1.5) * 2 )

   Where Fs is the fraction of RTCP bandwidth allocated to senders,
   usually 25%.  Note that this value of T is significantly smaller than
   the interval for receivers.






Perkins, et al.              Informational                     [Page 10]

RFC 3158                 RTP Testing Strategies              August 2001


2.4.3 Steady State Behavior

   In addition to the basic behavior in section 2.4.1, an implementation
   should correctly implement a number of other, slightly more advanced
   features:

      o  scale the RTCP interval with the group size;

      o  correctly divide bandwidth between senders and receivers;

      o  correctly compute the RTCP interval when the user is a sender

   The implementation begins operation as a receiver.  The test
   instrument waits for the first RTCP packet from the implementation.
   When it arrives, the test instrument notes the time, and immediately
   sends 50 RTCP RR packets and 50 RTCP SR packets to the
   implementation, 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.  The test instrument should ensure that each RTCP packet
   is of the same length.  The instrument should then wait until the
   next RTCP packet is received from the implementation, and the time of
   such reception is noted.  The difference between the reception of the
   RTCP packet and the reception of the previous is computed and stored.
   In addition, after every RTCP packet reception, the 100 RTCP and 50
   RTP packets are retransmitted by the test instrument.  This ensures
   that the sender and member status of the 100 users does not time out.
   The test instrument should collect the interval measurements figures
   for at least 100 RTCP packets.

   With 50 senders, the implementation should not try to divide the RTCP
   bandwidth between senders and receivers, but rather group all users
   together and divide the RTCP bandwidth equally.  The test is deemed
   successful if the average RTCP interval is within 5% of:

      T = 101* S/B

   Where S is the size of the RTCP packets sent by the test instrument,
   and B is the RTCP bandwidth.  B should be chosen sufficiently small
   so that the value of T is on the order of tens of seconds or more.
   Reasonable values are S=1024 bits and B=3.4 kb/s.

   The previous test is repeated.  However, the test instrument sends 10
   RTP packets instead of 50, and 10 RTCP SR and 90 RTCP RR instead of
   50 of each.  In addition, the implementation is made to send at least
   one RTP packet between transmission of every one of its own RTCP
   packets.





Perkins, et al.              Informational                     [Page 11]

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?