[alto] Some questions for alto-cdni-request-routing

Shawn Lin <x.shawn.lin@gmail.com> Sat, 02 December 2017 03:27 UTC

Return-Path: <x.shawn.lin@gmail.com>
X-Original-To: alto@ietfa.amsl.com
Delivered-To: alto@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4724A126C89; Fri, 1 Dec 2017 19:27:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.987
X-Spam-Level:
X-Spam-Status: No, score=-0.987 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, MANY_SPAN_IN_TEXT=1, NORMAL_HTTP_TO_IP=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_MIME_MALF=0.01, URIBL_BLOCKED=0.001] autolearn=no 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 6cRqUkmhlw7r; Fri, 1 Dec 2017 19:27:08 -0800 (PST)
Received: from mail-wr0-x241.google.com (mail-wr0-x241.google.com [IPv6:2a00:1450:400c:c0c::241]) (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 447A31241FC; Fri, 1 Dec 2017 19:27:05 -0800 (PST)
Received: by mail-wr0-x241.google.com with SMTP id l22so11940763wrc.11; Fri, 01 Dec 2017 19:27:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=703QwzKsoTuHHGhyVa8tmRZmMr2eMhDh4/XHZzsT46I=; b=l8sM8nbpqWuEtJciDN9IzPvWALGcrb0q0gPUo+q5F23BxCoIjoI65zQMZbhv39itvn uE8HzU5bKa8lROcJYMv8q3Qv+TcqDj6beCaUbMz6Dtd15WhuJyiTXWxXnUuPkBKPeizx 1JXjTEG2RHdfb4Vj2UD64+NP/QL4e1deIDKI3rcNW1g7KXNTIb9Vn5HGvGgK/94REtYu I052kUtXlbkVa1bHlda7KJWkKDpALxn3Np2DDXvncSWP7f3ZzrC+d2VvNlgsRUPDVwH3 dH9tWRFx4hrg7eweQqW7ZbTiDjX3beoPkEy2HjdwrYbXbwc3/yTWE1ug9eL0tci6EyWc 4YEQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=703QwzKsoTuHHGhyVa8tmRZmMr2eMhDh4/XHZzsT46I=; b=YJ6JDVgLzmJNPKoKl8Z6pPT8vM6e03F38XVW6PSF0CLog7hpMGbT6sGASpdvlkbUsu IvxZvL1zOR51lgjTcelwcyAkUHrvXZc7za1E3JDbVoqAo29Y9lUgJ+fvZS75Cf2fXzZw P63ZibavWqbm6a6b64tb9K1sDLZzP0tnGlNdD2LccgMxCmFRLpvBmsQbMX+Uz0x5if3w 7wOJsqr+fz+feTQvK4XLd+uSxlsfKMQosdDm34tJTapR1/Ie5sxtVj0uF9jrZSHuYjeM XCZNAAl74F8/qzPbuudagrs9CEiMu/ui1hiEcwoCPNbYuq6piUddHOiRdofBVEY8qHrJ 3dlA==
X-Gm-Message-State: AJaThX5ofqLe5lV+xBfMJacFwfaESyv7yAGj2PzjrEOWxU3a6LG6xt/1 2JWqyjmdrFV3SXW35+dDXByedcUZ/rzFkpPF7WXlCw==
X-Google-Smtp-Source: AGs4zMaf8zp/mDWpOWmIEU9j9c7sr8b9L0KYe5qMohnc3vknFRxs2ydMLeC9FSzP+vDZI7cvVUSkggOkSMUQkonMaWo=
X-Received: by 10.223.176.113 with SMTP id g46mr7419786wra.267.1512185223477; Fri, 01 Dec 2017 19:27:03 -0800 (PST)
MIME-Version: 1.0
Received: by 10.28.172.195 with HTTP; Fri, 1 Dec 2017 19:27:02 -0800 (PST)
From: Shawn Lin <x.shawn.lin@gmail.com>
Date: Sat, 02 Dec 2017 11:27:02 +0800
Message-ID: <CA+oaSDrNSEWbRF0s5T_M19fFGwPUFTif_iZxa0tpETrnd6yqyA@mail.gmail.com>
To: draft-ietf-alto-cdni-request-routing-alto.authors@ietf.org
Cc: IETF ALTO <alto@ietf.org>
Content-Type: multipart/alternative; boundary="001a1141552e147f94055f530fb1"
Archived-At: <https://mailarchive.ietf.org/arch/msg/alto/O75vtrqwtF7XNtrzV6xCwErVpXM>
Subject: [alto] Some questions for alto-cdni-request-routing
X-BeenThere: alto@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Application-Layer Traffic Optimization \(alto\) WG mailing list" <alto.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/alto>, <mailto:alto-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/alto/>
List-Post: <mailto:alto@ietf.org>
List-Help: <mailto:alto-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/alto>, <mailto:alto-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 02 Dec 2017 03:27:11 -0000

Dear authors of  draft-ietf-alto-cdni-request-routing-alto-00 and ALTOers,


Using ALTO to provide guidelines on the FCI protocol is really a good
idea since ATLO can provide resources information of network as well as
endpoints by an elegant way.


1. I found that there are *two sections (3.3.2 and 3.3.3) left blank *in
this draft, have they be solved yet?

2. It seems that *how to use ALTO network map* is not described in this
draft.


I posted one example and its source for each of them, and hope we can refresh
the current progress and try to move it forward.


*3.3.2.  Incremental FCI Update Example*

source:
https://datatracker.ietf.org/meeting/99/materials/slides-99-alto-cdni-footprint-and-capabilities-advertisements-using-alto/


POST /updates/fci HTTP/1.1

Host: fcialtoupdate.example.com

Accept: text/event-stream,application/alto-error+json Content-Type:
application/alto-updatestreamparams+json Content-Length: ###

{ "add": {

    "my-fci-stream": {

        "resource-id": "my-fci-map"

    }

}


HTTP/1.1 200 OK

Connection: keep-alive

Content-Type: text/event-stream

event: application/alto-updatestreamcontrol+json

data: {"control-uri": "
http://fcialtocu.example.com/updates/streams/3141592653589"}


event: application/cdni,my-fci-stream

data: { ... full cdni message ... }


event: application/merge-patch+json,my-fci-stream

data: { ... Merge patch update of cdni objects ... }


event: application/json-patch+json,my-fci-stream

data: { ... JSON patch update of cdni objects, e.g., footprints entries ...
}


*3.3.3.  FCI Using ALTO Network Map Example*

source: https://tools.ietf.org/html/draft-ma-cdni-capabilities-09#section-5


networkmap:

    GET /networkmap HTTP/1.1

    Host: http://alto.example.com/fcifootprint001

    Accept: application/alto-networkmap+json,application/alto-error+json


    HTTP/1.1 200 OK

    Content-Length: 319

    Content-Type: application/alto-networkmap+json


    {

      "meta" : {

        "vtag": [

          {"resource-id": "my-eu-netmap",

           "tag": "1266506139"

          }

        ]

      },

      "network-map" : {

        "south-france" : {

          "ipv4" : [ "192.0.2.0/24", "198.51.100.0/25" ]

        },

        "germany" : {

          "ipv4" : [ "192.0.3.0/24"]

        }

      }

    }


fcimap:

      GET /fcimap HTTP/1.1

      Host: alto.example.com

      Accept: application/alto-fcimap+json,application/alto-error+json


      HTTP/1.1 200 OK

      Content-Length: 618

      Content-Type: application/alto-fcimap+json


      {

        "meta" : {

        },

        "fcimap": {

          "capabilities": [

            { "capability-type": "FCI.DeliveryProtocol",

              "capability-value": [

                "http1.1"

              ]

            },

            { "capability-type": "FCI.DeliveryProtocol",

              "capability-value": [

              "values": [

                "https1.1"

              ],

              "footprints": [

                { "footprint-type": "altonetworkmap",

                  "footprint-value": [

*                    "http://alto.example.com/fcifootprint001
<http://alto.example.com/fcifootprint001>",*

*                    "germany",*

*                    "south-france"*

                  ]

                }

              ]

            }

          ]

        }

      }


One suggestion about the "footprint-value": although the meaning of each
element in "footprint-value" list is described in
draft-ma-cdni-capabilities-09, it may be better to use objects in
"footprint-value" list in some circumstances. For example, this may be more
human readable.

"footprint-value": [

  {"uri": *"http://alto.example.com/fcifootprint001
<http://alto.example.com/fcifootprint001>*"},

  {"country":"*germany*"},

  {"coutry":"*south-france*"}

]


Bests,

X. Shawn Lin