Re: [CDNi] Triggers regexp: draft-finkelman-cdni-sva-extensions-00.txt

Ori Finkelman <orif@qwilt.com> Mon, 26 February 2018 12:04 UTC

Return-Path: <orif@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 084EA1242F7 for <cdni@ietfa.amsl.com>; Mon, 26 Feb 2018 04:04:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-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 wXiln1GjbHzW for <cdni@ietfa.amsl.com>; Mon, 26 Feb 2018 04:04:29 -0800 (PST)
Received: from mail-wr0-x22e.google.com (mail-wr0-x22e.google.com [IPv6:2a00:1450:400c:c0c::22e]) (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 D7A11124234 for <cdni@ietf.org>; Mon, 26 Feb 2018 04:04:28 -0800 (PST)
Received: by mail-wr0-x22e.google.com with SMTP id w77so20895954wrc.6 for <cdni@ietf.org>; Mon, 26 Feb 2018 04:04:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qwilt-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=0EELsMCRXjOD123JF+F8Iiy7dZu3E/yi99v1sb8WP+k=; b=yk4aynW/GBvRnm6cgLiSmUILcOwsrIEmdTLxbH8u6rAulap9IAT4z3xA7AnCPJDMUn 1zWwYFX8OG3lDAmlWfDIobPHhe5E24kqr6ABV1q24gqT8lrKkTZa2Zw4kLkDXZxUZlCV JoDualEL/qXkgKtEdE35uwgayUo0+cYjrb5/xOSbtYxJJvktYZOdXa0NUA3TcMb9qvaS i7M2nShmwrRdxw5pnvVTb1Nbr8augv3gQwK89l+eJfJuHqnHNrujqEVS4nR+sQKQs6cG wA10mmLJh7pZeLh4nUz2lCtcx/AM/+914PFpBW7Ac6uQLeI8aMKuBd74I0/eS8bNPgVX EDig==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=0EELsMCRXjOD123JF+F8Iiy7dZu3E/yi99v1sb8WP+k=; b=Zlt26Aj+kL4nO7Akd/R9zlEirORx46s9pOn7hLcCNz0SUvjuQWBueyyOvKywSvnF3f stOjTi/evv86sCfCH3wMgEu4rcFwdHCeqVGDTVsmVUtIyALFnsHTTgJ07uDhkUDDjp/k 1DQAANQ6OVNCDROWEgtnANTz5RpUQ+0AqFoUEU0zRoJkejZqASQbPl2Abab/zCLTzroK qzSS1M7lZCJRaA+qadL57sDXOUU4/ncoFBFraHhVTbmVP/38P9EOboiPd5B+eLzD7e5z 3GqGKJrnxswRVvQhNM9AO6dK6mMcGi86zwHaYL7cjr7jBG+PNaS+e1Dab9qCxWO5tE6z P5HQ==
X-Gm-Message-State: APf1xPBEtKOOcxE5HXmWBfnQlwPJU1/VfRpDrUfwX1ZjLZ1C26A/N7aY ieEQvOwAH9fdlDaBk30hSZsKMTouvMcoIf4c6IWa4A==
X-Google-Smtp-Source: AH8x225IoKW3C28ohabaffGk6temnktstHvvkZR/P4Am5ilRdixlz0gx/p/21j56S6oe/OYdPVb67CnD+HNJUhaudAE=
X-Received: by 10.223.161.10 with SMTP id o10mr9809800wro.60.1519646667356; Mon, 26 Feb 2018 04:04:27 -0800 (PST)
MIME-Version: 1.0
Received: by 10.28.208.7 with HTTP; Mon, 26 Feb 2018 04:03:56 -0800 (PST)
In-Reply-To: <CAMb9nTt2=e-41C0oXTmd+7PqgMTRj-Yexs8=na=a9d18ynfAFQ@mail.gmail.com>
References: <CAMb9nTv1uWO3xa1eoL6Bb9_pzZVO+5h+F8fUoaG5khkKBKwPUQ@mail.gmail.com> <FC8D0AB8-FD7F-4D64-B1B3-5FADF6BFBD74@gmail.com> <CAMb9nTt2=e-41C0oXTmd+7PqgMTRj-Yexs8=na=a9d18ynfAFQ@mail.gmail.com>
From: Ori Finkelman <orif@qwilt.com>
Date: Mon, 26 Feb 2018 14:03:56 +0200
Message-ID: <CAMb9nTsjcXY1qj2S1yKK7xoEE+VGPVaq=Nh1oVJ76ZC6ohip=g@mail.gmail.com>
To: "Kevin J. Ma" <kevin.j.ma.ietf@gmail.com>
Cc: "<cdni@ietf.org>" <cdni@ietf.org>
Content-Type: multipart/alternative; boundary="f403045e2726cad42c05661c4f20"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cdni/72YmBrmhjeoGSo3HNlFF9NuGLP0>
Subject: Re: [CDNi] Triggers regexp: draft-finkelman-cdni-sva-extensions-00.txt
X-BeenThere: cdni@ietf.org
X-Mailman-Version: 2.1.22
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: Mon, 26 Feb 2018 12:04:31 -0000

Dear all,
Another question regarding the trigger extensions.
It was suggested that in order to execute a trigger (for example
pre-position) in "local time" of each geography, one should combine the geo
location extension with the time window extension.
For example, if pre-position should occur on 3AM local time, it would be
set for 11AM UTC for California , and 8AM UTC on New-York
While this works logically, it means that the user needs to state for each
relevant geography the UTC time for execution, instead of just stating the
required local time and let the dCDN handle it per geography.

My question is that given that we add trigger extensions, how would be able
to state such multiple cases.

Take the above example, I can see two alternatives :
1. Issue two separate trigger commands, one with Geo = CA, and time = 11AM
UTC, and a second command with Geo = NY and time = 8AM UTC.
     while this works, it requires a separate command for each geo.

2. Wrap the extension objects with extension groups, such that each group
must be applied together. For example this trigger command will have two
extension groups, one with Geo=CA and Time=11AM UTC, and the other with
Geo=NY and time=8AM UTC.



I would love to get some feedback on this,


Thanks,
Ori



On Wed, Feb 7, 2018 at 7:41 PM, Ori Finkelman <orif@qwilt.com> wrote:

> I also prefer pcre only.
>
> On Wed, Feb 7, 2018, 17:01 Kevin J. Ma <kevin.j.ma.ietf@gmail.com> wrote:
>
>> I would favor triggers matching uri signing, i.e., PCRE only, to simplify
>> interoperability requirements; unless there's a really good reason
>> implementers should have to support multiple standards?
>>
>> Sent from my iPhone
>>
>> On Feb 7, 2018, at 3:39 AM, Ori Finkelman <orif@qwilt.com> wrote:
>>
>> Dear Colleagues,
>> Regarding the addition of a regular expression match for triggers, mainly
>> for invalidation.
>> What should be the regexp standard we use, PCRE ? POSIX BRE or ERE ?
>> Does the type of regrexp need to be exchanged via the interface (trigger
>> and capability) ?
>>
>> Example 1: assuming we support only one specific type of regrex
>>
>>     {
>>        "regex": "/^(https:\/\/video\.example\.com)\/([a-z])\/([1-7])\/([\/\w
>> \.-]*)*\/?$",
>>        "case-sensitive": true
>>     }
>>
>> Example 2: assuming regexp type is variable
>>
>>     {
>>        "regex": "/^(https:\/\/video\.example\.com)\/([a-z])\/([1-7])\/([\/\w
>> \.-]*)*\/?$",
>>        "case-sensitive": true
>>        "regrex-type": "pcre"
>>     }
>>
>> Thanks,
>> Ori
>>
>>
>>
>> --
>>
>> *Ori Finkelman*Qwilt | Work: +972-72-2221647 <072-222-1647> | Mobile:
>> +972-52-3832189 <052-383-2189> | orif@qwilt.com
>>
>> _______________________________________________
>> CDNi mailing list
>> CDNi@ietf.org
>> https://www.ietf.org/mailman/listinfo/cdni
>>
>>
>
> --
>
> *Ori Finkelman*Qwilt | Work: +972-72-2221647 <072-222-1647> | Mobile:
> +972-52-3832189 <052-383-2189> | orif@qwilt.com
>



-- 

*Ori Finkelman*Qwilt | Work: +972-72-2221647 | Mobile: +972-52-3832189 |
orif@qwilt.com