Re: [AVTCORE] Framemarking in video packets

Sergio Garcia Murillo <sergio.garcia.murillo@gmail.com> Sat, 20 August 2022 02:34 UTC

Return-Path: <sergio.garcia.murillo@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 29FE0C1524D6 for <avt@ietfa.amsl.com>; Fri, 19 Aug 2022 19:34:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.105
X-Spam-Level:
X-Spam-Status: No, score=-2.105 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F0LN8Y2ezFLM for <avt@ietfa.amsl.com>; Fri, 19 Aug 2022 19:34:21 -0700 (PDT)
Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B8918C1524C9 for <avt@ietf.org>; Fri, 19 Aug 2022 19:34:21 -0700 (PDT)
Received: by mail-ot1-x334.google.com with SMTP id o15-20020a9d718f000000b00638c1348012so4215394otj.2 for <avt@ietf.org>; Fri, 19 Aug 2022 19:34:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=AyN/S0OQMM6ZteVbCokSfstMBBDofv84/nabpYtQVlA=; b=cc7Moj/8yGTNrMM4w81J8VNBSmNMUVT9LvgWInjxlA36ojVWeVqYBf20yWAHoAvicU 0qb/QNdoKO+YpB1tfYeubw1EZitxuaKWID4EybXgdhYbwyGAza5VNUwthPsErGRbJFxq XokV6kI3Tn3nxOpz0mYYMzmVdZIwi8zQX/uKpXoToPJqh8x2Oxwkq5JpXexgkp9VjXS+ SxbiI2152oB9V3qNuvphmRB9D1G8wbwt1+qF7KbhVjs9xUo6PHYKn42COc0Oney0UxoR XGRrhqOr7ap3QP8WZBHaPA9mZKdth2JI0Nw96Lh36JdKMp7ZXPZZ8QkFbqVKdvt16qIX iwxQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=AyN/S0OQMM6ZteVbCokSfstMBBDofv84/nabpYtQVlA=; b=o+y1ec5bS2YzJlCcUu1TfD3nMlXC78hYAfWSrdnyXWRUvwjM+eCRjisivb9Jm/C6DE kf+uh/PbBd+NMv9kL7T/bXPBMKIdMN2PIauoFtu2fBmXyt9MHDZHzLEG6aoHEN6c6Vo5 PB4N85c0WzTDT279+brzca6hBaMzDwzYMMtuCz95RUIQm5jK4xIo1Z91MyU1GZdbGsA2 x11fQbmZlOZ18LGVv70Zhvc7XTY3zvELE1fIVbIJhpV8wB8Nh1SjhI5vADceJSKM3amq 8ZcHObQOItB0zpEEKSvObtjTOKgv6BpUx4D8Z8sGoaEsoQ7e24hr5hRjQKbom2NBtuAE 3JDw==
X-Gm-Message-State: ACgBeo2qikngoZuZeFXN0AGfuw2Kp0XmFtdow8P4GAb2JEWj9V6stJQS UTX2lYjMwbGfn1TjS3czXHG/6gbZ0jQZF0/IyG0=
X-Google-Smtp-Source: AA6agR5u5934OtIcXleXPO+YMsWgkaf7dWLZRUOccEuM0E/8UO55G0Wfs8tXnT12FKN7dfTFlYbZLvYQpQ5F2d3HiVE=
X-Received: by 2002:a9d:20aa:0:b0:637:3767:8e5f with SMTP id x39-20020a9d20aa000000b0063737678e5fmr3965292ota.131.1660962860953; Fri, 19 Aug 2022 19:34:20 -0700 (PDT)
MIME-Version: 1.0
References: <f18669643f9841d595611c28891cfd42@huawei.com> <87sflr90dx.fsf@hobgoblin.ariadne.com>
In-Reply-To: <87sflr90dx.fsf@hobgoblin.ariadne.com>
From: Sergio Garcia Murillo <sergio.garcia.murillo@gmail.com>
Date: Sat, 20 Aug 2022 09:34:10 +0700
Message-ID: <CA+ag07bCES8xZf3e0MEJ4ZqN-D0OaP5EzKXrOFK=fFAgR7S9bA@mail.gmail.com>
To: "Dale R. Worley" <worley@ariadne.com>
Cc: "shihang (C)" <shihang9@huawei.com>, IETF AVTCore WG <avt@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000004ff3f605e6a30d5e"
Archived-At: <https://mailarchive.ietf.org/arch/msg/avt/cM72M5C1qocnzF9el6jLVBY16g4>
Subject: Re: [AVTCORE] Framemarking in video packets
X-BeenThere: avt@ietf.org
X-Mailman-Version: 2.1.39
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: <https://mailarchive.ietf.org/arch/browse/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: Sat, 20 Aug 2022 02:34:26 -0000

I don't even think that the overall mechanism would be  viable, but in
order to reduce the potential compatibility issues of a fixed extension id,
it could be possible to use the 4 bits in the appbits of the two header
bits extensions and fix the extension id to 256.

I am not aware of anyone having used them and implemented it properly (even
libsrtp had a bug about handling the appbits).

Best regards
Sergio



El sáb, 20 ago 2022 8:22, Dale R. Worley <worley@ariadne.com> escribió:

> "shihang (C)" <shihang9@huawei.com> writes:
> > Got it.
> >
> >    For "one-byte" header extensions:
> >    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> >    |       0xBE    |    0xDE       |           length              |
> >    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> >    |flag ID| L=2   |     flag data                                 |
> >    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> >    | ID    | L     | framemarking data ...                         |
> >    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> >    For "two-byte" header extensions:
> >    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> >    |       0x100           |appbits|           length              |
> >    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> >    | flag ID       |     L=1       |     flag data                 |
> >    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> >    | ID            | L             | framemarking data ...         |
> >    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>
> > From the extension format you give, the 32 bit also contains ID, length
> > and value, just like an extension header. The difference is that the ID
> > is a fixed global value instead of a local value negotiated by SDP. It
> > looks like creating a special purpose header extension entry which
> > identify and locate the framemarking extension.
> >
> > I wonder if 16 bit is enough unless you want to put some data into the
> > flag data field such as the offset of the framemarking extension
> > header.
>
> The proposal is that the frammarking header extension would immediately
> follow the flag header extension, so there is no need to record the
> offset.  Thus the "flag data" would be a fixed value.  That would allow
> the four bytes (flag ID, L, flag data) to all have fixed values.
>
> > The router can recognize framemarking with a fixed global ID by
> > iterating the list of header extensions until a match is found. In
> > this way, there will not be false positive. To reduce the iteration
> > overhead, we can force the framemarking extension to appear on the
> > first one.
>
> The difficulty with that strategy is that it requies that the router be
> able to determine which packets contain RTP and which do not.  But
> there's no reliable way to detect that.
>
> Dale
>
> _______________________________________________
> Audio/Video Transport Core Maintenance
> avt@ietf.org
> https://www.ietf.org/mailman/listinfo/avt
>