Re: [CDNi] CDNi Control-Interface / Trigger: content & metadata selection lists

Nir Sopher <nirs@qwilt.com> Sat, 24 July 2021 22:31 UTC

Return-Path: <nirs@qwilt.com>
X-Original-To: cdni@ietfa.amsl.com
Delivered-To: cdni@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C9EB43A083B for <cdni@ietfa.amsl.com>; Sat, 24 Jul 2021 15:31:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.654
X-Spam-Level:
X-Spam-Status: No, score=-0.654 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, NORMAL_HTTP_TO_IP=0.001, NUMERIC_HTTP_ADDR=1.242, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=qwilt-com.20150623.gappssmtp.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6M1XtWbXn-wu for <cdni@ietfa.amsl.com>; Sat, 24 Jul 2021 15:31:38 -0700 (PDT)
Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D4BDE3A0838 for <cdni@ietf.org>; Sat, 24 Jul 2021 15:31:37 -0700 (PDT)
Received: by mail-ed1-x52f.google.com with SMTP id df26so6434540edb.9 for <cdni@ietf.org>; Sat, 24 Jul 2021 15:31:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qwilt-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NpOpzEGhq1Qntt5VVnc7RMQw2MZxYKnyPZkb7Ip+kVw=; b=NIM+9uwP2l8xENgo+5PKRSJKCvDZ5/a8h0wTis0HUIpuDO/X80w51kjZ7ZB+Yxv1fd MwYSiqIKVqnH02OpvTvsH+Hg22d7DLgl0OPItgnQ4VTqFGGd+nXWBDhtoeS1OgLIr4zo TaCmBWzuObg1tpOU5dHISXQaNHSSu8eLjuK/x0+PJiZSmju7llTK+UasqbUiK8HFpp2W A2eB8OLxG3mDmRULW5sHcw68fJYvI+m2VlXA8W6PJFmtPtUYdUeRQ8Encw2d+Jh0UOkm dQLKEYJUpJjbobQuaWyAkD2wIbsPf5BHTRHPqMkvVGxy1M4KhyTUkdTM1q3JUetF2GWB nKeQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NpOpzEGhq1Qntt5VVnc7RMQw2MZxYKnyPZkb7Ip+kVw=; b=QSrCxM24Tp6A6c0ZR0dAIeqxS4N//dwSZzIbAdibDruDEksSkszZSpDxFOGpZoz1ks vY62V2ilcRHge/+vINu+L808OPGM+TTw+R/lePyzmMTN51xsYnys+duywvlgbSMrtKma mXQs6eaBmURQkPWmBDiiWjPMvaCY92YOmKSKsvuvSGh0JWPGXhOflk2g+rcYJNDroWrp w4ZdKXXpZnDt8Ub+B2rYA6MFy1TXTPrO1A4U5reVQf03bDRYnn97DJFB83/BE//Ec8zN rpABgyLwBaeQICiDygfD28g1PS0pIgpQg4t9xamg6BMsa1QLhkSh38i68LpHlhVaIjP5 VxSA==
X-Gm-Message-State: AOAM532eff324CI4wqejdUatRxBbMxW6Z7CYnVmsh5AsQCYHCJqqSzmW amTo1DXAJOUcjbkQlTyewga/f1R6eZQrXVeER2m7sA==
X-Google-Smtp-Source: ABdhPJxEm6a78XCNbqeO//HEJkA47xG991XCL9FXVvge9BNIoP8DuBlQ3qNE1ICXnhMi8hw6KIIJEA1gm4GtG9rZf5Q=
X-Received: by 2002:aa7:ca05:: with SMTP id y5mr13199843eds.353.1627165890934; Sat, 24 Jul 2021 15:31:30 -0700 (PDT)
MIME-Version: 1.0
References: <CA+ec=9pfoGPV6iYqeVxvcfNqyPFB-VDkv4CVNut8ST9QxVb7hg@mail.gmail.com> <CAMrHYE2CBD-PKpYXRW4gz+uEZ0GgarTWo4qV8xbLQ6=3QBUWOQ@mail.gmail.com>
In-Reply-To: <CAMrHYE2CBD-PKpYXRW4gz+uEZ0GgarTWo4qV8xbLQ6=3QBUWOQ@mail.gmail.com>
From: Nir Sopher <nirs@qwilt.com>
Date: Sun, 25 Jul 2021 01:31:31 +0300
Message-ID: <CA+ec=9pPEjDxRwXq5qaSsWTmnH_XcLXRWz0NgEyo5vCMbPOJ8A@mail.gmail.com>
To: Kevin Ma <kevin.j.ma.ietf@gmail.com>
Cc: "<cdni@ietf.org>" <cdni@ietf.org>, "Mishra, Sanjay" <sanjay.mishra@verizon.com>, "Ori Finkelman (IETF)" <ori.finkelman.ietf@gmail.com>
Content-Type: multipart/mixed; boundary="000000000000ebfeb105c7e61439"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cdni/vh3OPoj5JkKtFKLZHrhXKPVoyAQ>
Subject: Re: [CDNi] CDNi Control-Interface / Trigger: content & metadata selection lists
X-BeenThere: cdni@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "This list is to discuss issues associated with the Interconnection of Content Delivery Networks \(CDNs\)" <cdni.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cdni>, <mailto:cdni-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cdni/>
List-Post: <mailto:cdni@ietf.org>
List-Help: <mailto:cdni-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cdni>, <mailto:cdni-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 24 Jul 2021 22:31:44 -0000

Hi Kevin,

I certainly agree that the metadata and content lists should be merged into
a single GenericTriggerObjects list.
I'm not sure however regarding the merging the extensions list as well - as
the extensions do not specify which content to operate on but how to
operate.
Maybe this list should be called "GenericTriggerInstructions".
See examples attached.

Thank you for the comments.
See my reply inline,

Thanks,
Nir

On Sat, Jul 24, 2021 at 7:55 AM Kevin Ma <kevin.j.ma.ietf@gmail.com> wrote:

> Hi Nir,
>
>   (As an individual) Would another option be to just have a single list of
> GenericTriggerObjects that could contain content, metadata, or extensions?
>
>   Some other comments on the draft below.
>
> thanx.
>
> --  Kevin J. Ma
>
> Comments:
>
> - There are existing errata on RFC8007, we should probably work them into
> this updated spec:
> https://www.rfc-editor.org/errata_search.php?rfc=8007&rec_status=0
>
NBS: Ack

> - Section 4.8.1: "occured" -> "occurred"
>
- Section 4.8.1: are there privacy concerns with propagating the PID?  Does
> the uCDN really need to know the ultimate dCDN, given that we are allowing
> the tCDN to decide whether to shield the dCDN?  Also, is there any
> guarantee that the PIDs are unique or discernible by the uCDN?
>
NBS: We'll further discuss it and reply. Note that to preserve privacy it
is up to the tCDN to decide whether it puts his PID or the dCDN's PID

> - Section 5.2.7/9.4: can we use media types, e.g., "application/dash+xml"
> or "application/vnd.apple.mpegurl", rather than defining custom values?
>
NBS: I'll look into it

> - Section 5.2.8.1: do we think triggers need safe-to-redistribute?  do we
> envision trigger extensions that are modified by tCDNs?
>
NBS: We'll further discuss it and reply

> - Section 5.2.8.1: ".." -> "."
> - Section 6.1: "region," -> "region"
>
- Section 9.1: is "ci-trigger-collection" changing?  if not, it doesn't
> need to be in the table?
>
NBS: It was already defined in RFC 8007. Should we mention it (now without
registering it) just for completeness?

> - Section 9.1.3: is this for trigger collection, not trigger command?  can
> be removed?
>
NBS: It is a command. The reference within the section should be fixed to
point at 5.1.1 and not 5.1.3

>
>
>
>
> On Tue, Jul 20, 2021 at 12:49 AM Nir Sopher <nirs@qwilt.com> wrote:
>
>> Hi,
>>
>> As you may know, CDNi WG I-D for control triggers extensions
>> <https://datatracker.ietf.org/doc/html/draft-ietf-cdni-triggers-extensions> extends
>> RFC-8007 <https://datatracker.ietf.org/doc/html/rfc8007> (CDNi
>> control-interface/triggers) - including the addition of 2 content-selection
>> methods as properties to the trigger object: content.regex and
>> content.playlists.
>> IIUC, every such addition of a property to the trigger object, requires
>> the redefinition of the object - in this case creating a "v2" trigger
>> object.
>>
>> We are now working on merging this I-D into RFC-8007 - aiming to  create
>> the 2nd edition of the CDNi Control Interface RFC.
>> During this process we came up with an idea that instead of redefining
>> the trigger object over and over again, we can just add a "content"
>> selection list and a "metadata" selection list to the trigger object.
>>
>> Following the suggestion, the trigger.V2 object would have the following
>> properties (in green, the new lists. In red - properties that we may
>> consider to remove):
>>
>>    - type
>>    - content: list of content-selection objects (TBD: type and values)
>>    - metadata: list of metadata-selection (TBD: type and values)
>>    - metadata.urls
>>    - content.urls
>>    - content.ccid
>>    - metadata.patterns
>>    - content.patterns
>>    - content.regexs
>>    - content.playlists
>>    - extensions
>>
>> The content/metadata selection method types would have designated
>> registries and a dCDN should be able to publish via the FCI which methods
>> are supported (using designated capabilities). Hence, every future
>> content/metadata selection method would only require the addition of the
>> proper types to the registry.
>>
>> Please share your thoughts.
>>
>> Thanks,
>> Nir
>>
>