[alto] Design issue on path vector

Chan Dawn <dawn_chen_f@hotmail.com> Tue, 21 March 2017 17:03 UTC

Return-Path: <dawn_chen_f@hotmail.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 E1495129C09; Tue, 21 Mar 2017 10:03:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.126
X-Spam-Level:
X-Spam-Status: No, score=-1.126 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FORGED_HOTMAIL_RCVD2=0.874, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=hotmail.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 oV4Js_zG4dDu; Tue, 21 Mar 2017 10:03:00 -0700 (PDT)
Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-oln040092253014.outbound.protection.outlook.com [40.92.253.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 090D912708C; Tue, 21 Mar 2017 10:02:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=fyPB64n+IiE4LEJYox61rSBR0N8rYfE52Y/8daD5dTs=; b=MyHEzj4oRFdVIzgK8eAKox0/V0tYUjvln+zSlxKwJymD1RXR2wavoXUGLZGrsIz58peClOoDnPDpvzw1DrLnsnZXS1RghcQwWGfQRYgaUuiIS22/pkdv/BXqd2qqXH/rXQAaVXVO8DsIkuhMXtrOR+Nat0r7liZhCypY9Yz9mhm9kpWNzyGaaE2qqpE7+vF2OgMQO2CNWhLFhCAFyX4vlkfxuh3sesaFkgaXQH6mWm+H3viKTiOjGLz9O3Lk/dvXEtPVBy3GGHBafEZ1X8RkVA5QWjJH+zmdYWT6Qxk/nvgAg89AClaxItXT7DocKmVV1qGUdNCUzYMCvd0S8i+lMQ==
Received: from PU1APC01FT013.eop-APC01.prod.protection.outlook.com (10.152.252.59) by PU1APC01HT118.eop-APC01.prod.protection.outlook.com (10.152.253.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.7; Tue, 21 Mar 2017 17:02:54 +0000
Received: from TY1PR04MB0656.apcprd04.prod.outlook.com (10.152.252.54) by PU1APC01FT013.mail.protection.outlook.com (10.152.252.78) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.977.7 via Frontend Transport; Tue, 21 Mar 2017 17:02:54 +0000
Received: from TY1PR04MB0656.apcprd04.prod.outlook.com ([10.163.246.157]) by TY1PR04MB0656.apcprd04.prod.outlook.com ([10.163.246.157]) with mapi id 15.01.0977.019; Tue, 21 Mar 2017 17:02:54 +0000
From: Chan Dawn <dawn_chen_f@hotmail.com>
To: "alto@ietf.org" <alto@ietf.org>, "draft-yang-alto-path-vector@ietf.org" <draft-yang-alto-path-vector@ietf.org>
Thread-Topic: Design issue on path vector
Thread-Index: AQHSomRF1IdmzCY0/0OSyGBvWoXSag==
Date: Tue, 21 Mar 2017 17:02:54 +0000
Message-ID: <TY1PR04MB065600AD703BAEC14FC7D27DB53D0@TY1PR04MB0656.apcprd04.prod.outlook.com>
Accept-Language: zh-CN, en-US
Content-Language: zh-CN
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=hotmail.com;
x-incomingtopheadermarker: OriginalChecksum:09F491CB70A30985E7C1FDBED726459F69C347603892D44C7374D990CB0B7853; UpperCasedChecksum:1674A60CFCC03FFCBD933159944E0514D2738A9E86B0D6BCBBD5F109EB31CA21; SizeAsReceived:8176; Count:40
x-tmn: [HSwzHAG8zjJJ7fA+hlmAH8TyteNEaiFO]
x-microsoft-exchange-diagnostics: 1; PU1APC01HT118; 5:CnX3DfffVXDKu0Coq5gkyxGllQBx8bPtZrrzZnXpEo6JrZUWQ2jq170if4m2O8a6euetHu5UJwBiivU9ZIbSoi7htEbwZUc5vKtFkFvDnAvbpCzRgwPQFcarjQjeYQmBXicBEoyNdvI1omnOz7OTgQ==; 24:NmEM3EhIgwLqi94MnKryw1Hz5qvKj2rriw+f6C1RSpP64YKhkZ6V79CG05qnyZ2V676HOV+HNEElxsQQxHmc9THvUql2CbhBiltzYnUFa3o=; 7:8WoKX8ypc/x05SdLblSs7mSVBIBzdvyQi0lijiM/P8GdlmnGqg9R7PmtmFd7pV9xos6Xocjmf6GzAVAF5Ns0JXuKGofxtaHRq1maLlM4bC1+WUcxAYhXcfCqsJ96jUcbZtQ0QifYQPxVCv7R/QcFcb2R7Ye7Cwv8SJqXnefba38Hmx81MFyZxjohs2iXyv+AdsIu6LsP+Vs4uS5jPBiXAUI2XZW4nE1rHEcTWjxy5DnmDxFyHzYcAhNbIOanGjqI6Yo3nT95b+bgU/L1k+9Ec+Dvyyy9jbFwU6Nfe2oN5u5OLFfLRgTWAcTpNKFI5cIZ
x-incomingheadercount: 40
x-eopattributedmessage: 0
x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(7070007)(98900017); DIR:OUT; SFP:1901; SCL:1; SRVR:PU1APC01HT118; H:TY1PR04MB0656.apcprd04.prod.outlook.com; FPR:; SPF:None; LANG:en;
x-ms-office365-filtering-correlation-id: 1477fa17-555c-4973-df68-08d4707c1dd5
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(1603101448)(1601125347)(1701031045); SRVR:PU1APC01HT118;
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(444000031); SRVR:PU1APC01HT118; BCL:0; PCL:0; RULEID:; SRVR:PU1APC01HT118;
x-forefront-prvs: 02530BD3AA
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_TY1PR04MB065600AD703BAEC14FC7D27DB53D0TY1PR04MB0656apcp_"
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Mar 2017 17:02:54.2861 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU1APC01HT118
Archived-At: <https://mailarchive.ietf.org/arch/msg/alto/4f3be4VT5NM7AFQi6QTEbnIDfNU>
Subject: [alto] Design issue on path vector
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: Tue, 21 Mar 2017 17:03:02 -0000

Hi all,


I'd like to start a discussion for path-vector design and push it as an acceptable specification. Following is my thought:


We have agreed on delivering path-vector + abstract network elements design for net graph representation since IETF 96. This design specifies the cost value as a path vector which is a JSONArray of network elements and puts the network element properties into a nep-map. Considering to reference the nep-map from another resource (we propose to use unified-prop-map), below is a naive design:



An example of IRD:


“pv-endpoint-cost-map”: {

    “uri”: “http://alto.example.com/lookup/endpointcost”,

    “media-type”: “application/alto-endpointcostmap+json”,

    “capabilities” : {

      “cost-type-names”: [“pv"]

    },

    “uses”: [“default-nep-map"]

}


An example of ECS response:


“meta”: {

  “dependent-vtags”: [

    { “resource-id”: “default-nep-map”, “tag”: “<sha256>” }

  ],

  “cost-type”: {“cost-mode”: “path-vector”, “cost-metric”: “ane”}

},

“endpoint-cost-map”: ...


However, the problem is how to reference the filtered property map that we use for clients to retrieve the properties of the corresponding network elements. In the above example, the referenced network element property map is added in the “uses” field. However, here is the trouble:


Since the network elements are abstract, the network element property map is dynamically generated when the client sends a path-vector query. So, to add the refrenced network element property map in the “uses” field of a resource is not possible because the resource id in the “uses” field is somehow static, it already exists before queried.


To solve this problem, we proposed the following design in draft-yang-alto-path-vector-04:


An example of ECS response:


“meta”: {

  …

  "nep-map": {

           "uri": "http://alto.example.com/propmap/lookup/nep-map",

           "media-type": "application/alto-prompmap+json",

           "accepts": "application/alto-propmapparams+json",

           "capabilities": {

             "domain-types": [“ane"],

             "prop-types": ["availbw"]

           }

         }

},

“endpoint-cost-map”: ...


But we found two issues in this design:


1. How to present the supported properties of the network elements in the IRDResourceEntry of a resource? In this example, the nep-map can only provide the “availbw” property. If the client needs the “delay” property of the returned network elements, it cannot get this knowledge that the dependent nep-map of this ECS resource does not provide this property before it sends the query. So the client will send a useless query.

2. This design does not provide a resource-id for the nep-map, so the server cannot provide an incremental update service for the nep-map.


We found the fundamental problem is caused by the dynamic resource. In the previous ALTO extensions, all the resources can be defined by the static IRD Resource Entries. But in this case, we have to handle the dependency relationship between FCM/ECS and a dynamic property map resource. So we propose the following design to solve this problem:


1. Add a new attribute in the IRDResrouceEntry:


object {

    JSONString               uri;

    JSONString               media-type;

    [JSONString              accepts;]

    [Capabilities            capabilities;]

    [ResourceID              uses<0..*>;]

    [ImmediateResourceEntry  immediate-uses<0..*>;]

} IRDResourceEntry;


object {

    JSONString      media-type;

    [JSONString     accepts;]

    [Capabilities   capabilities;]

    [ResourceID     uses<0..*>;]

} ImmediateResourceEntry;


2. Add a new attribute in the meta of FCM/ECS response:


object {

    [JSONString               vtag;]

    [VersionTag               dependent-vtags<1..*>;]

    [ImmediateVersionTag      immediate-dependent-vtags<1..*>;]

} ResponseMeta;


object {

    ResourceID       resource-id;

    JSONString       vtag;

    [JSONNumber      time-out;]

} ImmediateVersionTag;


Here is an example:


IRD:


    "pv-endpoint-cost-map": {

      "uri": "http://alto.example.com/lookup/endpointcost",

      "media-type": "application/alto-endpointcost+json",

      "accepts": "application/alto-endpointcostparams+json",

      "immediate-uses": [

        {

          "media-type": "application/alto-propmap+json",

          "accepts": "application/alto-propmapparams+json",

          "capabilities": { "domain-types": ["ane"],

                            "prop-types": ["availbw", "delay"] }

      ],

      "capabilities": {

        "cost-type-names": ["pv-ane", "num-routingcost", "num-hopcount"],

        "cost-constraints": true

      }

    },


Response:


  {

    "meta": {

      "cost-type": {

        "cost-mode": "path-vector",

        "cost-metric": "ane",

      },

      "immediate-dependent-vtags": [

        {"resource-id": "nep-map-<sha256>",

         "vtag": "<sha256>",

         "time-out": 180}

      ]

    },

    "endpoint-cost-map": {

      ...

    }

  }


Shall we push this design into the pv draft? Any feedback from others?


Thanks a lot!

Dawn