CDNI Request Routing ExtensionsQwilt6, Ha'harashHod HaSharon4524079Israelori.finkelman.ietf@gmail.comVerizon13100 Columbia PikeSilver SpringMD20904USAsanjay.mishra@verizon.comThe Open Caching working group of the Streaming Video Alliance is focused
on the delegation of video delivery requests from commercial CDNs to a
caching layer at the ISP. In that aspect, Open Caching is a specific use
case of CDNI, where the commercial CDN is the upstream CDN (uCDN) and the
ISP caching layer is the downstream CDN (dCDN). The extensions specified in this
document to the CDNI Metadata and FCI interfaces are derived from requirements raised by
Open Caching but are applicable to CDNI use cases in general.The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in RFC 2119.This document defines objects needed for Open Caching request routing. For that purpose it
extends CDNI metadata and CDNI Footprint and Capabilities .
For consistency, this document follows the CDNI notation of uCDN
(the commercial CDN) and dCDN (the ISP caching layer).This document also registers CDNI Payload Types for the defined objects:
Redirect Target Capability (for dCDN advertising redirect target address)Fallback Target Metadata (for uCDN configuring fallback target address)This document reuses the terminology defined in , , , and .Additionally, the following terms are used throughout this document
and are defined as follows:
RR - Request RouterCP - Content ProviderIterative request redirect as defined in section 1.1 of requries the
provisioning of a redirect target address to be used by the uCDN in order to redirect to the dCDN.
Redirect target addresses can vary between different footprints, for example, between different regions,
and they may also change over time, for example as a result of network problems. Given this variable
and dynamic nature of the redirect target, it may not be suitable to advertise it during bootstrap.
A more dynamic and footprint oriented interface is required. Therefore, we have chosen to use
the CDNI Footprint and Capabilities interface for redirect target advertisement.Use casesFootprint: The dCDN may want to have a different target per footprint.
Note that a dCDN may spread across multiple geographies. This makes it
easier to route client requests to a nearby request router. Though this can be achieved
using a single canonical name and Geo DNS, that approach has limitations;
for example a client may be using a third party DNS resolver, making it
impossible for the redirector to detect where the client is located, or Geo DNS
granularity may be too rough for the requirement of the application.Scaling: The dCDN may choose to scale its request routing service by deploying more request routers
in new locations and advertise them via an updatable interface like the FCI.The Redirect Target capability object is used to indicate the target address the uCDN should use in order
to redirect a client to the dCDN. A target may be attached to a specific uCDN host, a list of uCDN hosts,
or used globally for all the hosts of the uCDN.
When a dCDN is attaching the redirect target to a specific uCDN host or a list of uCDN hosts, the dCDN MUST
advertise the hosts within the Redirect Target capability object as "redirecting-hosts". In that case, the
uCDN can redirect to that dCDN address, only if the request was directed to one of those uCDN hosts.
A redirect target for DNS redirection is an IP address used as an A record response or a FQDN used as an alias
in a CNAME record response (see ) of the uCDN DNS router. Note that DNS routers make
routing decisions based on either the DNS resolver's IP address or the client IP address when EDNS0 client-subnet
is used (see ). The dCDN may choose to advertise redirect targets and footprints to
cover both cases. A uCDN DNS router implemenation SHOULD prefer routing based on client IP address when it is available.
A redirect target for HTTP redirection is the URI to be used as the value for the Location header of a HTTP redirect
3xx response, typically a 302 (Found) (see section 7.1.2 of and section 6.4 of
).
The Redirect Target capability object consists of the following properties:Property: redirecting-hostsDescription: One or more uCDN hosts to which this redirect target is attached. A redirecting host SHOULD be a
host that was published in a HostMatch object by the uCDN as defined in section 4.1.2 of .Type: A list of Endpoint objects (see section 4.3.3 of )Mandatory-to-Specify: No. If not present, or empty, the redirect target applies to all hosts of the redirecting uCDN.Property: dns-targetDescription: Target address for a DNS A record or CNAME record.Type: DnsTarget object (see )Mandatory-to-Specify: No. but at least one of "dns-target" or "http-target" MUST be present and non-empty.Property: http-targetDescription: Target URI for a HTTP redirect.Type: HttpTarget object (see )Mandatory-to-Specify: No, but at least one of "dns-target" or "http-target" MUST be present and non-empty.The following is an example of a Redirect Target capability object serialization that advertises a dCDN target address
that is attached to a specific list of uCDN "redirecting-hosts". A uCDN host that is included in that list can redirect
to the advertised dCDN redirect target.
The DnsTarget object gives the target address for the DNS response to delegate from the uCDN to the dCDN.Property: hostDescription: The host property is a hostname or an IP address, without a port number.Type: Endpoint object as defined in section 4.3.3 of
with the limitation that it SHOULD NOT include a port number and, in case a port number is present,
the uCDN MUST ignore it.Mandatory-to-Specify: Yes.The following is an example of DnsTarget object:The following is an example of a DNS query for uCDN address "a.service123.ucdn.example.com" and the corresponding
CNAME redirection response:The HttpTarget object gives the necessary information to construct the target Location URI for HTTP redirection.Property: hostDescription: Hostname or IP address and an optional port, i.e., the host and port of the authority component
of the URI as described in section 3.2 of .Type: Endpoint object as defined in section 4.3.3 of .Mandatory-to-Specify: Yes.Property: path-prefixDescription: A path prefix for the HTTP redirect Location header. The original path is appended after this prefix.Type: A prefix of a path-absolute as defined in section 3.3 of .
The prefix MUST end with a trailing slash, to indicate the end of the last path segment in the prefix.Mandatory-to-Specify: No. If this property is absent or empty, the uCDN MUST NOT prepend a path prefix to
the original content path, i.e., the original path MUST appear in the location URI right after the authority component.Property: include-redirecting-hostDescription: A flag indicating whether or not to include the redirecting host as the first path segment after the path-prefix.
If set to true and a "path-prefix" is used, the uCDN redirecting host MUST be added as a separate path segment after
the path-prefix and before the original URL path. If set to true and there is no path-prefix, the uCDN redirecting
host MUST be prepended as the first path segment in the redirect URL.Type: Boolean.Mandatory-to-Specify: No. Default value is False.Example of HttpTarget object with a path-prefix and include-redirecting-host:Example of a HTTP request for content at uCDN host "a.service123.ucdn.example.com" and the corresponding HTTP response with
Location header used for redirecting the client to the dCDN using the the http-target in the above example:Open Caching requires that the uCDN provide a fallback target server to the
dCDN, to be used in cases where the dCDN cannot properly handle the request.
To avoid redirect loops, the fallback target server's address at the uCDN MUST be
differnet from the original uCDN address from which the client was redirected
to the dCDN. The uCDN MUST avoid further redirection when receiving the client request at
the fallback target. The fallback target is defined as a generic metadata object
(see section 3.2 of )Use casesFailover: A dCDN request router receives a request but has no caches
to which it can route the request. This can happen in the case of
failures or temporary network overload.No coverage: A dCDN request router receives a request from a client located
in an area inside the footprint but not covered by the dCDN caches or outside the dCDN
footprint coverage. In such cases, the router may choose to redirect the request back
to the uCDN fallback address.Error: A cache may receive a request that it cannot properly serve, for
example, some of the metadata objects for that service were not properly
acquired. In this case, the cache may resolve to redirect back to uCDN.The Fallback target metadata object is used to indicate the target address the dCDN should use in order
to redirect a client back to the uCDN. Fallback target is represented as endpoint objects as defined in
section 4.3.3 of .The uCDN fallback target address may be used as a DNS A record or CNAME record in case of DNS redirection
or a hostname for HTTP redirect.When using HTTP redirect to route a client request back to the uCDN, it is the dCDN's responsibility
to use the original URL path as the client would have used for the original uCDN request, stripping,
if needed, the dCDN path-prefix and/or the uCDN hostname from the redirect URL that may have been used to
request the content from the dCDN.The MI.FallbackTarget Metadata object consists of the following single property:Property: hostDescription: Target address to which the dCDN can redirect the client.Type: Endpoint object as defined in section 4.3.3 of
with the limitation that in case of DNS delegation it SHOULD NOT include a port number and,
in case a port number is present, the dCDN MUST ignore it.Mandatory-to-Specify: Yes.Example of a MI.FallbackTarget Metadata object that designates the host address
the dCDN should use as fallback address to redirect back to the uCDN.This document requests the registration of the following CDNI Payload Types
under the IANA "CDNI Payload Types" registry defined in :Payload TypeSpecificationFCI.RedirectTargetRFCthisMI.FallbackTargetRFCthis[RFC Editor: Please replace RFCthis with the published RFC
number for this document.]Purpose: The purpose of this payload type is to
distinguish RedirectTarget FCI objectsInterface: FCIEncoding: see Purpose: The purpose of this payload type is to
distinguish FallbackTarget MI objects (and any associated capability advertisement)Interface: MI/FCIEncoding: see This specification is in accordance with the CDNI Metadata Interface and the CDNI Request Routing:
Footprint and Capabilities Semantics. As such, it is subject to the security and privacy considerations as
defined in Section 8 of and in Section 7 of respectively.
The redirect Target FCI object potentially exposes information about the internal strcture of the dCDN network.
A third party could intercept the FCI transactions and use the information to attack the dCDN. An implemenation
of the FCI MUST therefore use strong authentication and encryption and strictly follow the directions for securing
the interface as defined for the Metadata Interface in Section 8.3 of .
The authors thank Nir B. Sopher for reality checks against production use cases, his contribution is significant to this document.
The authors also thank Ben Niven-Jenkins for his review and feedback and Kevin J. Ma for his guidance throughout the development
of this document including his regular reviews.