Re: [alto] Design issue on path vector

xin wang <xinwang2014@hotmail.com> Wed, 22 March 2017 04:33 UTC

Return-Path: <xinwang2014@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 96576129524; Tue, 21 Mar 2017 21:33:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.876
X-Spam-Level:
X-Spam-Status: No, score=-0.876 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_ENVFROM_END_DIGIT=0.25, 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 2HKiy-is5PCV; Tue, 21 Mar 2017 21:32:59 -0700 (PDT)
Received: from APC01-HK2-obe.outbound.protection.outlook.com (mail-oln040092255024.outbound.protection.outlook.com [40.92.255.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DA38A12947E; Tue, 21 Mar 2017 21:32:52 -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=KQliYHovcXhrAFNIgfLQtP3qPnfWlWpJgUH2N+r9Nyo=; b=Y7Pcfw16sH7hjfdm7diXeiISYdBnVq8GiI9Cqc6Yv/Rlo4fVvrkBimLJoifWcMZj7JtqBWqTwlBscmEzTZOHdXhprpy7eG4h83X6kO/RHkClPGktZZQeyuETvWIv5nb7+lw7pYOr43vrSBTHBFQDrBof6vW4fyFczyKPC2QGhfwLJ14+1JgQWit3f7SlrGQLYj8DWpjFTPUEbjZ64fR/qXyrhuMdoUWpij3E+9Lo2mqLaj1xSArrG9PbSF+JLDgHrAstIkqs479r18gbY1zXwt7TYVo0fnArIcSHguDaUxHVxtrsJYV7Po0retASJroI5HX/GoZxCfKDFZLZI1EzUA==
Received: from SG2APC01FT012.eop-APC01.prod.protection.outlook.com (10.152.250.55) by SG2APC01HT103.eop-APC01.prod.protection.outlook.com (10.152.251.44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.7; Wed, 22 Mar 2017 04:32:50 +0000
Received: from KL1PR0302MB2629.apcprd03.prod.outlook.com (10.152.250.60) by SG2APC01FT012.mail.protection.outlook.com (10.152.250.184) 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; Wed, 22 Mar 2017 04:32:49 +0000
Received: from KL1PR0302MB2629.apcprd03.prod.outlook.com ([fe80::cd8:972f:2d1b:f3c]) by KL1PR0302MB2629.apcprd03.prod.outlook.com ([fe80::cd8:972f:2d1b:f3c%18]) with mapi id 15.01.0991.013; Wed, 22 Mar 2017 04:32:49 +0000
From: xin wang <xinwang2014@hotmail.com>
To: Chan Dawn <dawn_chen_f@hotmail.com>
CC: "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/0OSyGBvWoXSaqGgOtD+
Date: Wed, 22 Mar 2017 04:32:46 +0000
Message-ID: <KL1PR0302MB26290AAB2597036E65942201A83C0@KL1PR0302MB2629.apcprd03.prod.outlook.com>
References: <TY1PR04MB065600AD703BAEC14FC7D27DB53D0@TY1PR04MB0656.apcprd04.prod.outlook.com>
In-Reply-To: <TY1PR04MB065600AD703BAEC14FC7D27DB53D0@TY1PR04MB0656.apcprd04.prod.outlook.com>
Accept-Language: en-US, zh-CN
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-slblob-mailprops: miquGJmX7XVeJuhNjBzB8SbfPsSvFv1VWbwyTAWPAkKSCh/lXUMMwK6J9n5gSzTEApa1P/cGxcuC9NiZkx5GUXah+mFFFyOrk0na+4fvW0Ru9IOHHBGKt18MO+dY9LBkubShg/sxDWy4LBsCtKH607wDBzCgIro9cMCyYJZPR25nqD29YaMfOFpVqV7xnt+dVWzidgevPZ3eR6QHxJqdVMOyGWFCmcnd4khNi+BdwzjxJi9ZpAaFUCc8vmO+Z8H2w72UiM7b5+ygp/3jxDCLP/tMeYhaiZSHIi0PzvJaNDzMilqZM3jh+yaPsD5+8VvtRtbZH+NTE7Jkp4TLNVia+HD4GL3SnEEeuVU1b2uJhtP0WjULANpEIOpD+OwPxGoXJXHMhYQvxZRb+tdacAgqzZQw+P6kI9qAsdkY2Zv/IJtNbUXWUSNv87InXewyl96uSVKT0PdZ7sGJ26ncgOUzyJSqT2LmwNLtRRVSOuU1P6WUin/YfQDta/Y+maRnkM36LQU8G8G8RtbXl4pcmL0HuGctjAn/T85pt8NZIftuUr2gKReKd7uhu7GZ2iG948oLejZftZNUbeaOyWd66AdOS9H52fclugjmPLTYfBYpxbiQlj8kxL65++3Krd3a+0s3nbTKh57u0HQXnlWS8Pf/q//UIkRQFcqYO3nXNDfvl/0yV7OY+LazhUhE1ua9RHpevQKdmqhgJ2w4Zd8UC4D5wEODSfsW/l50XwNXP+zFnxKTii+NpvvgF7vNd8/KHKGYd+DD4vm+Qp6r4qM9u4+qHw==
authentication-results: ietf.org; dkim=none (message not signed) header.d=none;ietf.org; dmarc=none action=none header.from=hotmail.com;
x-incomingtopheadermarker: OriginalChecksum:554925C448C2A9C1850A39C4CB8B0B89C13CE298D9FA5B65749EE2028595746C; UpperCasedChecksum:EBE9CC641BC1974C90B90D048A5381393F0C4BFF9D6FB7C49D299CDFFB7213D0; SizeAsReceived:9078; Count:44
x-ms-exchange-messagesentrepresentingtype: 1
x-tmn: [CmL6bTxarsKtHlL/GZUS44p8pGCCpXpR]
x-microsoft-exchange-diagnostics: 1; SG2APC01HT103; 5:eD1ZIDCxcBiKJ8YFtFN6tb74hdiDAny0Tr5R3xTBF8a6KRuvtsCPDu2dblieVQwNuXezwGbF6iKnOjJVmuHg383PlExiPdTc3zHiUHTz3nF5IkoMAdDIeFJmJDV773/MaRwFRhZeBUurQU0Pm18Fsw==; 24:D/rETBcT1A0u2x1DUkLUD/13jzy7fwvBuFDHPohjWyx15uy8ZIF9N3uUgKGDSAQLB4PfSeHIGzuZz5K2cEoqvU+r2dGe1YnxwBdIdN1oiU4=; 7:LXIwKCj3ASPR2GZnp5PrkQuzXjht8dcefPPsXz5FITwTwV5YG8yQPC82NceIA7VfxNcPMGB6DyNPjN8qWZVs/O5J5tz9OBM4uN23bTbWqQVuAHd8uplhdRTEmjOLSdZy3QlIMnb4SeCcY9eamceeEuSBeJur+PMlPQlI4ELhXuOsKuCLuxdfbBQi18qbIkl9/czVYXHyAIStiIuMwtjB+ueSOJUTdI1fH+W7VgJEwwpJ9oTdh4PeM8qT0aEiNsRFX372dMLZVCHP6dcG3gwpY3HP5cbV4QkA5Ra670QrNfwLJpxpxsIFiuJhkpt1oEda
x-incomingheadercount: 44
x-eopattributedmessage: 0
x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(7070007)(98900017); DIR:OUT; SFP:1901; SCL:1; SRVR:SG2APC01HT103; H:KL1PR0302MB2629.apcprd03.prod.outlook.com; FPR:; SPF:None; LANG:en;
x-ms-office365-filtering-correlation-id: 2fe4f54d-02ed-4a63-f8c6-08d470dc7f47
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(2017031320241)(2017031322241)(201702181241)(1603101448)(1601125365)(1701031045); SRVR:SG2APC01HT103;
x-ms-exchange-slblob-mailprops: 5PHqry0CV0cGWIWZmOhtLAbMSmcgf5Ax6uwo+7HJwt90KgnS58ZHyVdMA9UXvMMnYh/3jtx5xGojy1qXNbisopMhp3rntr9l7p76Pn5CHC8oS9XPrDhs9KisYNdR5rncsXWvh0FCDUF0wKKSBL1aIchgiq8TTQ2xsk4cmbdgUwlms6rZa8+sCw7wD3IQu+7/1Zb05FwsGD0ZtCpJGuERU99MkzBL+wAzKZ0MOxMtB/y7h00h0UBXnPW/qt1VJr/MlHl6QugEKwlKW0aS8sRJfIfZ32coCsSqFLNy0DsQyLl4ZmgjVAnDuKeS+zCI8RwS48uu2wWPzydM5FFgi7bY92BtsOyV1fvD5jzg/spHKHn8ysgnsqpKYcMhSSOaPfkG7qYOSUptjIIj48LzjfsBHcMjLuTgYSBZL1D1gKj7xD4fqRhqt8uK6hNLXBEx8jBdn+uRWDYywqaOBTidfqYOtibOLCUWxl6AJFEmFYk9y3CZI7JHpV2LuRXtbNk4Fwf5QInOkGtTTVaDJxPa3MPfDB9xyQ4yB8xqwRDMCZqtDDjYc4l872BWBf+RJBIMRt3tyWNShfGorXmRRHgDjwTuVyICTE4YET9t32vavaWzPrIEjjfp9uDbbwCyzsFLuxnXX/H6luf3ZjdrCLZGl6S3mzZHJR5d8tXOBp/2SErYvRMhOIiFMkrbu77Jzs8pFV0YkO4QDdNqdwAnpkde0TX5UVzo1X+0TYnjjaPlvqfym2VfiYBoZk1GU1ELnEAx+XwTT1MUlCcYn02uOqbucqyOfg==
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(444000031); SRVR:SG2APC01HT103; BCL:0; PCL:0; RULEID:; SRVR:SG2APC01HT103;
x-forefront-prvs: 02543CD7CD
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_KL1PR0302MB26290AAB2597036E65942201A83C0KL1PR0302MB2629_"
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Mar 2017 04:32:46.5684 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2APC01HT103
Archived-At: <https://mailarchive.ietf.org/arch/msg/alto/LE1oYaCnRz15lQGEVvdvL1eWLM0>
Subject: Re: [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: Wed, 22 Mar 2017 04:33:01 -0000

Hi Dawn,


If I am wrong please correct me. For the second issue, the resource id could be reflected in the hash code of the uri field. I think you are missing that in your ECS example. For the first issue, in my understanding, since network elements are dynamically generated after the computation of path-vector, I think it is hard to determine element property types before the computation. This may depend on whether we support "unknown" in the response of network element property map, i.e.,

"property-map": {
         "ne:ne12": { "availbw": "90", "delay": "unknown" },
         "ne:ne23": { "availbw": "80", "delay": "15" },
         "ne:ne34": { "availbw": "70", "delay": "25" }
 }

Best,
Xin

________________________________
From: alto <alto-bounces@ietf.org> on behalf of Chan Dawn <dawn_chen_f@hotmail.com>
Sent: Tuesday, March 21, 2017 13:02
To: alto@ietf.org; draft-yang-alto-path-vector@ietf.org
Subject: [alto] Design issue on path vector


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