Re: [AVTCORE] [R-C] Fwd: I-D Action: draft-perkins-avtcore-rtp-circuit-breakers-00.txt

Varun Singh <vsingh.ietf@gmail.com> Tue, 06 March 2012 09:21 UTC

Return-Path: <vsingh.ietf@gmail.com>
X-Original-To: avt@ietfa.amsl.com
Delivered-To: avt@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E8B4221F87CF for <avt@ietfa.amsl.com>; Tue, 6 Mar 2012 01:21:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level:
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qcgOivT6KJTd for <avt@ietfa.amsl.com>; Tue, 6 Mar 2012 01:21:44 -0800 (PST)
Received: from mail-ww0-f44.google.com (mail-ww0-f44.google.com [74.125.82.44]) by ietfa.amsl.com (Postfix) with ESMTP id 091A521F87C6 for <avt@ietf.org>; Tue, 6 Mar 2012 01:21:28 -0800 (PST)
Received: by wgbdr13 with SMTP id dr13so3015083wgb.13 for <avt@ietf.org>; Tue, 06 Mar 2012 01:21:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=AbQzTEKExUNKTBwLWlrgtkGCHPlWEIP0sZQg5lppvyo=; b=eHTJetSe3WhsTCcMzDNRGsWC8eh84IE6FZGDxqmMimiHIazaAwDiGlWa2fYUM6YSf9 3EO6XoHDQWy163hix6TQOPSccWKbb3iNxkkKC8GZwS/k0k/VLInQQFsYYCYJy4xtpds8 ILjG455cWKxurpvjE9X87dIsrBOR+iH+CxraKdJbnE/ipoT8Rj2U59kSs0O/gbQihHQc aHGJUA6NbH1+rXR79Of6jPCI4wuK5mQcvy8Z02e7joWEzabLRI9JLyfR4si6K3OLpq0Q XAqdX93L+WmNVsF/ib5WB8THMR4WxhBq7t7rSawpX01ypEmJNTVP6VL9Vbr97XN079c3 32RA==
Received: by 10.180.78.130 with SMTP id b2mr17366092wix.1.1331025688232; Tue, 06 Mar 2012 01:21:28 -0800 (PST)
MIME-Version: 1.0
Received: by 10.223.96.134 with HTTP; Tue, 6 Mar 2012 01:21:08 -0800 (PST)
In-Reply-To: <4F55C25A.9010407@alvestrand.no>
References: <20120305201759.24406.49431.idtracker@ietfa.amsl.com> <766FE318-7DE3-4481-B3C4-C45F2A94C881@csperkins.org> <4F55C25A.9010407@alvestrand.no>
From: Varun Singh <vsingh.ietf@gmail.com>
Date: Tue, 06 Mar 2012 11:21:08 +0200
Message-ID: <CAEbPqry_wqrj0AHL9cjtYbiDc3xwL_fUoAVg8U91Lo9rkMrFrA@mail.gmail.com>
To: Harald Alvestrand <harald@alvestrand.no>
Content-Type: text/plain; charset="ISO-8859-1"
Cc: Colin Perkins <csp@csperkins.org>, "avt@ietf.org WG" <avt@ietf.org>, rtp-congestion@alvestrand.no
Subject: Re: [AVTCORE] [R-C] Fwd: I-D Action: draft-perkins-avtcore-rtp-circuit-breakers-00.txt
X-BeenThere: avt@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Audio/Video Transport Core Maintenance <avt.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/avt>, <mailto:avt-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/avt>
List-Post: <mailto:avt@ietf.org>
List-Help: <mailto:avt-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/avt>, <mailto:avt-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 06 Mar 2012 09:21:46 -0000

Hi Harald,

comments inline

On Tue, Mar 6, 2012 at 09:52, Harald Alvestrand <harald@alvestrand.no> wrote:

[snip!]

> A URL for this Internet-Draft is:
> http://www.ietf.org/internet-drafts/draft-perkins-avtcore-rtp-circuit-breakers-00.txt
>
> Thanks for this work!
>
> A few questions (to make sure I get them noted down):
>
> Section 4.1:
>
>    Accordingly, if a
>    sender of RTP data packets receives two or more consecutive RTCP RR
>    packets from the same receiver that correspond to its transmission
>    and have a non-increasing extended highest sequence number received
>    field, then that sender SHOULD cease transmission.
>
> If I see RTCP packets with
>
> 1: highest sequence number = 2
> 2: highest sequence number = 2
> 3: highest sequence number = 2
>
> do I cease transmission after packet 3 has arrived, or after packet 2 has
> arrived?

After 3. The idea is for the sender to wait for two RTCP intervals
(which corresponds to two additional reports).
for the reported HSN to increase.

Example:
SR               |                              |
        |                     X
      ----------------------------------------------------------------------------------------------------------->
time
RR   |                              N                              N
                           N

The N are RTCP RRs that carry the same HSN value. X means terminate session.

We could clarify this in the next iteration.

> I *think* the logical time is after packet 3 has arrived, but I'm a little
> unsure that the words are
> unambiguously saying that; it's not 100% clear to me whether packet 1 is
> considered included in the set of "non-increasing highest sequence number".
>
> Section 4.2: Is it reasonable to replace, for the purposes of this
> calculation, "an order of magnitude" with "a factor of ten"? (for those who
> don't have a physics background, putting text somewhere that says that an
> order of magnitude is "somewhere around a factor of ten" might be
> appropriate.)
>
> We might also want to add the words about doing a dramatically reduced rate
> if we can from section 4.1 here, factor it out as a general statement, or
> say that it is not appropriate here if it's not.
>
> Security considerations (missing section): For an end node that implements
> this specification, an active attacker can cut the transmission by faking
> two RTCP packets that get accepted instead of the recipient's RTCP packets.
> This may be worthy of a note, and pointer to appropriate defenses.

This is a valid attack. However, if we consider no early-feedback (the
draft currently only follows RFC3550 timing rules) then the attacker's
second fake report may be ignored by the sender because it is too
early. Meanwhile, the actual receiver may get to deliver its RTCP RR.


Example:
SR               |                          |
        |                      I
      ----------------------------------------------------------------------------------------------------------->
time
RR   |                   F          |              F          |
   F              F      |

| are valid SR and RR, F are Fake RTCPs (replaying the last valid RTCP
report). So, instead of waiting for 3 RTCP reports to arrive the
sender MUST wait two RTCP intervals?


Cheers,
Varun

-- 
http://www.netlab.tkk.fi/~varun/