Re: [CDNi] CDNI Metadata Interface

HeXiaoyan <hexiaoyan@huawei.com> Fri, 14 October 2011 09:36 UTC

Return-Path: <hexiaoyan@huawei.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 71C9321F8487 for <cdni@ietfa.amsl.com>; Fri, 14 Oct 2011 02:36:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level:
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PhXvckLB+E4B for <cdni@ietfa.amsl.com>; Fri, 14 Oct 2011 02:35:56 -0700 (PDT)
Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [119.145.14.67]) by ietfa.amsl.com (Postfix) with ESMTP id 02F7021F847D for <cdni@ietf.org>; Fri, 14 Oct 2011 02:35:56 -0700 (PDT)
Received: from huawei.com (szxga04-in [172.24.2.12]) by szxga04-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTP id <0LT100F3WUMZTX@szxga04-in.huawei.com> for cdni@ietf.org; Fri, 14 Oct 2011 17:35:23 +0800 (CST)
Received: from szxrg01-dlp.huawei.com ([172.24.2.119]) by szxga04-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTP id <0LT100AITUMITG@szxga04-in.huawei.com> for cdni@ietf.org; Fri, 14 Oct 2011 17:35:23 +0800 (CST)
Received: from szxeml208-edg.china.huawei.com ([172.24.2.119]) by szxrg01-dlp.huawei.com (MOS 4.1.9-GA) with ESMTP id AEL53273; Fri, 14 Oct 2011 17:35:22 +0800
Received: from SZXEML412-HUB.china.huawei.com (10.82.67.91) by szxeml208-edg.china.huawei.com (172.24.2.60) with Microsoft SMTP Server (TLS) id 14.1.270.1; Fri, 14 Oct 2011 17:35:15 +0800
Received: from w36710x (10.144.242.117) by smtpscn.huawei.com (10.82.67.91) with Microsoft SMTP Server (TLS) id 14.1.270.1; Fri, 14 Oct 2011 17:35:12 +0800
Date: Fri, 14 Oct 2011 17:35:10 +0800
From: HeXiaoyan <hexiaoyan@huawei.com>
In-reply-to: <291CC3F9E50E7641901A54E85D0977C651B51517AD@MAILR002.mail.lan>
X-Originating-IP: [10.144.242.117]
To: 'Kevin J Ma' <kevin.ma@azukisystems.com>, cdni@ietf.org
Message-id: <000501cc8a54$921298c0$b637ca40$@com>
MIME-version: 1.0
X-Mailer: Microsoft Office Outlook 12.0
Content-type: text/plain; charset="us-ascii"
Content-language: zh-cn
Content-transfer-encoding: 7bit
Thread-index: AcyErDmDceDqNX+AQtKwjumpTmgL9wDNgegQABC/ZGAAiOeZgA==
X-CFilter-Loop: Reflected
References: <291CC3F9E50E7641901A54E85D0977C651B50AF9D2@MAILR002.mail.lan> <010d01cc87f8$10bc5940$32350bc0$@com> <291CC3F9E50E7641901A54E85D0977C651B51517AD@MAILR002.mail.lan>
Subject: Re: [CDNi] CDNI Metadata Interface
X-BeenThere: cdni@ietf.org
X-Mailman-Version: 2.1.12
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: <http://www.ietf.org/mail-archive/web/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: Fri, 14 Oct 2011 09:36:00 -0000

Hi Kevin,
Thanks for the response. Some further concern,
- I don't quite understand the restriction that require metadata of all
hostnames in one Domain have same value. The case exist that for a specific
metadata different hostnames often have different value. Compare with
creating multiple Domains with less hostname sharing the same metadata, I
think link metadata to hostname not Domain is more simpler.

-I interpret the role of the Agent object is to identify entities
communicated (correct me if I'm wrong), other interfaces in CDNI e.g.
Logging interface needs such an parameter as well, a universal solution for
that would be good, do you think the Agent object introduced in your draft
could also be applicable for other interfaces? 

Best Regards
Xiaoyan(Susan) He

-----Original Message-----
From: Kevin J Ma [mailto:kevin.ma@azukisystems.com] 
Sent: Tuesday, October 11, 2011 11:30 PM
To: HeXiaoyan; cdni@ietf.org
Subject: RE: [CDNi] CDNI Metadata Interface

Hi Susan,

  thanx for the comments, responses inline:

> -----Original Message-----
> From: HeXiaoyan [mailto:hexiaoyan@huawei.com]
> Sent: Tuesday, October 11, 2011 5:28 AM
> To: Kevin J Ma; cdni@ietf.org
> Subject: RE: [CDNi] CDNI Metadata Interface
> 
> Hi Kevin,
> Some quick questions and comments on this draft,
> >The Metadata objects are each associated with a URI within the Domain and
> accessible through any of the Hostnames...
> - Could you further explain or give an example how a metadata is accessed
> by
> a Hostname within the Domain? And a further question is how the data model
> works if a metadata is only associated with a specific Hostname within one
> Doman?

I was assuming that metadata would be valid for all hostnames.  If a
hostname
needed separate metadata, a new domain would be required.  I was thinking of
hostname as a first level restriction.  My implementation does something
along
the lines of the following (where hostname is checked before metadata
lookup):

  domain = get_param_from_query_string(getenv("QUERY_STRING"), "domain")
  if (!db_verify_hostname_for_domain(getenv("SERVER_NAME"), domain))
    return error
  metadata = db_get_metadata_by_uri_domain_agent(getenv("REQUEST_URI"),
                                                 domain,
getenv("REMOTE_USER"))
  xml = generate_xml_for_metadata(metadata)
  return xml

> - The relationship between Agent objects and Metadata objects is a
> one-to-one relationship, does this mean one agent can only access one
> Metadata within one Domain?

That is a typo in the doc, good catch, thanx!  It should be one to many.
Each metadata must be associated with a single agent, but an agent can be
associated with multiple metadata.  Agent-1 could have metadatas A, B, and
C, while agent-2 could have a separate value for metadatas A and B, and also
have its own metadata D (that agent-1 does not have access to)

> > The association of each Metadata to an Agent allows different Agents to
> retrieve different Metadata values for a given URI in the given Domain.
> - Don't understand why each Metadata object needs to be bind with an Agent
> explicitly, IMO, whether to return different value to different Agents is
> an
> inside process of the upCDN, what downCDN needs to do is just transmit its
> identifier to the upCDN when retrieve a Metadata.

I think the fact that a uCDN would want/need to give out different values to
different dCDNs requires that there be a way to represent and store that
information.  Having it explicitly in the model, i think, simplifies the
implementation and guarantees that all implementation give this issue proper
consideration.

> - Which entity is responsible for creating the Agent objects within one
> Domain? Does the CP can 'see' the downCDNs and creates corresponding Agent
> objects and other CDNs on the way just transmitted it or each upCDN
> located
> in the cascaded path creates a Agent object for each its downCDN?

This is a good question.  Different agents would need to be create by
different
entities, as you mention.  I would expect each CDN to create agents to
represent
those (outside that CDN) who need access to the metadata interface.

thanx!

--  Kevin J. Ma

> Thanks.
> Best Regards
> Xiaoyan(Susan) He
> 
> -----Original Message-----
> From: cdni-bounces@ietf.org [mailto:cdni-bounces@ietf.org] On Behalf Of
> Kevin J Ma
> Sent: Friday, October 07, 2011 1:21 PM
> To: cdni@ietf.org
> Subject: [CDNi] CDNI Metadata Interface
> 
> Hi all,
> 
>   Just uploaded a new I-D with a proposed metadata model and API:
> 
>     http://www.ietf.org/internet-drafts/draft-ma-cdni-metadata-00.txt
> 
>   The model takes a rather generic approach to metadata representation
>   to support opaque metadata and addresses some of the security issues
>   associated with metadata retrieval.  Comments welcome.
> 
> thanx.
> 
> --  Kevin J. Ma
> 
> _______________________________________________
> CDNi mailing list
> CDNi@ietf.org
> https://www.ietf.org/mailman/listinfo/cdni