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

"Kevin J. Ma" <kevin.j.ma.ietf@gmail.com> Tue, 27 February 2018 05:53 UTC

Return-Path: <kevin.j.ma.ietf@gmail.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 C15921200B9 for <cdni@ietfa.amsl.com>; Mon, 26 Feb 2018 21:53:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.697
X-Spam-Level:
X-Spam-Status: No, score=-2.697 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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=gmail.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 7_ShGqTSl-Bs for <cdni@ietfa.amsl.com>; Mon, 26 Feb 2018 21:53:12 -0800 (PST)
Received: from mail-qk0-x22a.google.com (mail-qk0-x22a.google.com [IPv6:2607:f8b0:400d:c09::22a]) (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 3EEAE124207 for <cdni@ietf.org>; Mon, 26 Feb 2018 21:53:12 -0800 (PST)
Received: by mail-qk0-x22a.google.com with SMTP id o25so16635921qkl.7 for <cdni@ietf.org>; Mon, 26 Feb 2018 21:53:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=F3uxDi0a5JUYrnIaN/y5DyYAo7VR+SJA5f6loGIZ24c=; b=MqhR927LESbJnU3RFPPoXmR8zGhYxjvh54x7BwzCSVou27Bi/4exj05ofzYGsav2Nw ezbnF5Som4GPJ0t9IQPXRtDP4OEcH2yRLqGOgB5LrrGSQUHXMSqEKdAlFNbj6OLxecxj OBmQFaXcxYa5GbJWg6AZOYtbL/X5GGiSMvbsaj0CBqgczCyHlu3aF10q1MSdPQg/U3HW bWS6hBLbruKcI8kdwAbKcOe8KI/Oau/jV1bN5w5Dl0XX7DE21rdXoD6ABXXHBFFoynJJ zpQYBGXnShXG45NTktonWvQdyGE26PLKn2aiD5Az2wUwOv/VtDq4mOCzxm1lPvuGamTp EiZA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=F3uxDi0a5JUYrnIaN/y5DyYAo7VR+SJA5f6loGIZ24c=; b=FU49Vr14HOKnGeIKsWIkuKeLHeH73xQocFcpyim3lv6l4gKMN8dlb1me22tBOLNLR+ 4CJsKdNJAHvsy6qtVb5ZeYtTUvCsrVNJmNKO5w0HFw9up7KXIQYCLuEW1IvrVFKSopOn 2hFldaskiGsvxVXTvNUdn1tgSqqHPxm7A5lasmUBgEOweuFv6X5Ni5JTExBNDv9b8Ye3 m92KDn3fWxgWSH3IKs/dYjJBZhy0N0lwKq2XG0QBm86l3oj9olUKsRJFc5QtOcuhQhRT vTK+/c+FakWAI6yN9Ix9ohPTe+8ynVaXBFkSzj4qVteZNBqfRqqU+NwyEQNMohe4pbf0 SWug==
X-Gm-Message-State: APf1xPCxnzoLSE6PwuzLnLRrGYK1ess+l+ceVZOXKbRG2yr00/Io/+ND ai6xYRi5YA9LJ5gCiuHb+KvnwIOi
X-Google-Smtp-Source: AG47ELt+AeAEDjxkvuJh2J1ClBKbe1DaFSTYiWViYGe/+io86spCPacE61WaabZe0GyJ6e/Puw53qQ==
X-Received: by 10.55.212.130 with SMTP id s2mr21408130qks.247.1519710791037; Mon, 26 Feb 2018 21:53:11 -0800 (PST)
Received: from [192.168.1.100] (c-24-34-41-146.hsd1.nh.comcast.net. [24.34.41.146]) by smtp.gmail.com with ESMTPSA id g15sm5716785qke.34.2018.02.26.21.53.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Feb 2018 21:53:09 -0800 (PST)
Content-Type: multipart/alternative; boundary="Apple-Mail-D84BE065-7993-45CB-92FC-076A6D4959FD"
Mime-Version: 1.0 (1.0)
From: "Kevin J. Ma" <kevin.j.ma.ietf@gmail.com>
X-Mailer: iPhone Mail (15D60)
In-Reply-To: <CAMb9nTsjcXY1qj2S1yKK7xoEE+VGPVaq=Nh1oVJ76ZC6ohip=g@mail.gmail.com>
Date: Tue, 27 Feb 2018 00:53:08 -0500
Cc: "<cdni@ietf.org>" <cdni@ietf.org>
Content-Transfer-Encoding: 7bit
Message-Id: <816D33C2-C6C0-40C8-8160-8E38B521215E@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> <CAMb9nTsjcXY1qj2S1yKK7xoEE+VGPVaq=Nh1oVJ76ZC6ohip=g@mail.gmail.com>
To: Ori Finkelman <orif@qwilt.com>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cdni/iUNw3fLOf8lH6wLHI-_wjptmNus>
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: Tue, 27 Feb 2018 05:53:15 -0000

Hi Ori,

  (as an individual) I personally don't see any reason to combine time and geolocation; it over complicates things, imo.  I didn't see a problem with providing a time without timezone to be interpreted as "local time".  I didn't think that being able to send a trigger that said "do this at 1am local time" was a terribly difficult concept - it probably just needs some textual clarification and a more precise definition of how the json should be parsed and interpreted, to remove any UTC vs explicit timezone vs "local time" ambiguity?

thanx.

--  Kevin J. Ma

Sent from my iPhone

> On Feb 26, 2018, at 7:03 AM, Ori Finkelman <orif@qwilt.com> wrote:
> 
> 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 | Mobile: +972-52-3832189 | orif@qwilt.com
>>> 
>>>> _______________________________________________
>>>> CDNi mailing list
>>>> CDNi@ietf.org
>>>> https://www.ietf.org/mailman/listinfo/cdni
>> 
>> 
>> -- 
>> Ori Finkelman
>> Qwilt | Work: +972-72-2221647 | Mobile: +972-52-3832189 | orif@qwilt.com
> 
> 
> 
> -- 
> Ori Finkelman
> Qwilt | Work: +972-72-2221647 | Mobile: +972-52-3832189 | orif@qwilt.com