Network Working GroupIndependent Submission R. van BrandenburgInternet-DraftRequest for Comments: 6983 O. van DeventerIntended status:Category: Informational TNOExpires: October 14, 2013ISSN: 2070-1721 F. Le Faucheur K. Leung Cisco SystemsApril 12,July 2013 Models foradaptive-streaming-aware CDNHTTP-Adaptive-Streaming-Aware Content Distribution Network Interconnectiondraft-brandenburg-cdni-has-05(CDNI) Abstract Thisdocumentsdocument presents thoughts on the potential impact of supporting HTTP Adaptive Streaming (HAS) technologies inCDNContent Distribution Network Interconnection (CDNI) scenarios. The intent is to present the authors' analysis of the CDNI-HAS problem space and discuss different options put forwardbothby the authors (and by others during informal discussions) on how to deal with HAS in the context of CDNI.THisThis document has been used as input information during theWGCDNI working group process for makingitsa decision regarding support for HAS. Status of This Memo ThisInternet-Draftdocument issubmitted in full conformance withnot an Internet Standards Track specification; it is published for informational purposes. This is a contribution to theprovisionsRFC Series, independently ofBCP 78any other RFC stream. The RFC Editor has chosen to publish this document at its discretion andBCP 79. Internet-Draftsmakes no statement about its value for implementation or deployment. Documents approved for publication by the RFC Editor areworking documentsnot a candidate for any level oftheInternetEngineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The listStandard; see Section 2 of RFC 5741. Information about the currentInternet- Drafts is at http://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents valid for a maximumstatus ofsix monthsthis document, any errata, and how to provide feedback on it may beupdated, replaced, or obsoleted by other documentsobtained atany time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." This Internet-Draft will expire on October 14, 2013.http://www.rfc-editor.org/info/rfc6983. Copyright Notice Copyright (c) 2013 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document.Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.Table of Contents 1. Introduction. . . . . . . . . . . . . . . . . . . . . . . . 3....................................................4 1.1. Terminology. . . . . . . . . . . . . . . . . . . . . . . 4................................................5 2. HTTP Adaptive Streamingaspects relevantAspects Relevant to CDNI. . . . . . 5................6 2.1. Segmentation versus Fragmentation. . . . . . . . . . . . 5..........................6 2.2. Addressingchunks . . . . . . . . . . . . . . . . . . . . 6Chunks ..........................................7 2.2.1. Relative URLs. . . . . . . . . . . . . . . . . . . . 7.......................................8 2.2.2. Absolute URLs with Redirection. . . . . . . . . . . 8......................9 2.2.3. AbsoluteURLURLs without Redirection. . . . . . . . . . 9..................10 2.3. Livevs.Content versus VoD. . . . . . . . . . . . . . . . . . . . . . 10Content ...........................11 2.4. Streamsplicing . . . . . . . . . . . . . . . . . . . . . 11Splicing ...........................................12 3. Possible HAS Optimizations. . . . . . . . . . . . . . . . . 11.....................................12 3.1. File Management and Content Collections. . . . . . . . . 12...................13 3.1.1. General Remarks. . . . . . . . . . . . . . . . . . . 12....................................13 3.1.2. Candidateapproaches . . . . . . . . . . . . . . . . 12Approaches ...............................13 3.1.2.1. Option 1.1:No HAS awareness . . . . . . . . . . 12Do Nothing ....................13 3.1.2.2. Option 1.2: Allowsingle file storageSingle-File Storage offragmented content . . . . . . . . . . . . . . . 13Fragmented Content .............14 3.1.2.3. Option 1.3: Accesscorrelation hint . . . . . . . 14Correlation Hint .......14 3.1.3.Recommendation . . . . . . . . . . . . . . . . . . . 14Recommendations ....................................15 3.2. Content Acquisition of Content Collections. . . . . . . 14................15 3.2.1. General Remarks. . . . . . . . . . . . . . . . . . . 14....................................15 3.2.2. Candidate Approaches. . . . . . . . . . . . . . . . 15...............................16 3.2.2.1. Option 2.1: No HASawareness . . . . . . . . . . 15Awareness ..............16 3.2.2.2. Option 2.2: Allowsingle file acquisitionSingle-File Acquisition offragmented content . . . . . . . . . . . . . . . 16Fragmented Content .........17 3.2.3.Recommendation . . . . . . . . . . . . . . . . . . . 16Recommendations ....................................17 3.3. Request Routing of HAScontent . . . . . . . . . . . . . 17Content ............................17 3.3.1. Generalremarks . . . . . . . . . . . . . . . . . . . 17Remarks ....................................17 3.3.2. Candidateapproaches . . . . . . . . . . . . . . . . 17Approaches ...............................18 3.3.2.1. Option 3.1: No HASawareness . . . . . . . . . . 17Awareness ..............18 3.3.2.2. Option 3.2: Manifest FilerewritingRewriting by uCDN. . . 19...................................20 3.3.2.3. Option 3.3:Two-stepTwo-Step Manifest Filerewriting . . 20Rewriting .................................21 3.3.3.Recommendation . . . . . . . . . . . . . . . . . . . 22Recommendations ....................................22 3.4. Logging. . . . . . . . . . . . . . . . . . . . . . . . . 22...................................................23 3.4.1. Generalremarks . . . . . . . . . . . . . . . . . . . 22Remarks ....................................23 3.4.2. Candidate Approaches. . . . . . . . . . . . . . . . 23...............................24 3.4.2.1. Option 4.1:"Do-Nothing" Approach . . . . . . . . 23Do Nothing ....................24 3.4.2.2. Option 4.2:"CDNICDNI Metadata Content CollectionID" Approach . . . . . . . . . . . . . . . . . . . . 25ID .............................26 3.4.2.3. Option 4.3:"CDNICDNI Logging InterfaceCompression" Approach . . . . . . . . . . . . . . . . . . . . 26Compression ...............................28 3.4.2.4. Option 4.4:"FullFull HASawareness/per-Session-Logs" Approach . . . . . . . . . . . . . . . . . . . . 27Awareness/Per-Session Logs ................29 3.4.3.Recommendation . . . . . . . . . . . . . . . . . . . 28Recommendations ....................................30 3.5. URL Signing. . . . . . . . . . . . . . . . . . . . . . . 30...............................................32 3.5.1. HAS Implications. . . . . . . . . . . . . . . . . . 30...................................32 3.5.2. CDNI Considerations. . . . . . . . . . . . . . . . . 31................................33 3.5.3. Option 5.1: Do Nothing. . . . . . . . . . . . . . . 32.............................34 3.5.4. Option 5.2: Flexible URL Signing by CSP. . . . . . . 32............34 3.5.5. Option 5.3: Flexible URL Signing byUpstream CDN . . 35uCDN ...........37 3.5.6. Option 5.4: Authorization Group ID and HTTP Cookie. . . . . . . . . . . . . . . . . . . . . . . 35.............................................37 3.5.7. Option 5.5:HAS-awarenessHAS Awareness with HTTP Cookie in CDN. . 36..38 3.5.8. Option 5.6:HAS-awarenessHAS Awareness with Manifest File in CDN. . . 38........................................40 3.5.9.Recommendation . . . . . . . . . . . . . . . . . . . 38Recommendations ....................................41 3.6. Content Purge. . . . . . . . . . . . . . . . . . . . . . 39.............................................41 3.6.1. Option 6.1: No HASawareness . . . . . . . . . . . . 40Awareness .......................42 3.6.2. Option 6.2: Purge Identifiers. . . . . . . . . . . . 40......................42 3.6.3.Recommendation . . . . . . . . . . . . . . . . . . . 41Recommendations ....................................43 3.7. Otherissues . . . . . . . . . . . . . . . . . . . . . . 41Issues ..............................................43 4.IANA Considerations . . . . . . . . . . . . . . . . . . . . . 41 5.Security Considerations. . . . . . . . . . . . . . . . . . . 41 6.........................................43 5. Acknowledgements. . . . . . . . . . . . . . . . . . . . . . 42 7................................................44 6. References. . . . . . . . . . . . . . . . . . . . . . . . . 42 7.1......................................................44 6.1. Normative References. . . . . . . . . . . . . . . . . . 42 7.2.......................................44 6.2. Informative References. . . . . . . . . . . . . . . . . 42 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 42....................................44 1. Introduction [RFC6707] defines the problem space forCDNContent Distribution Network Interconnection (CDNI) and the associated CDNI interfaces. This includes support, through interconnectedCDNs,Content Delivery Networks (CDNs), of content delivery toendusersEnd Users using HTTP progressive download and HTTP Adaptive Streaming (HAS). HTTP Adaptive Streaming is an umbrella term for various HTTP-based streaming technologies that allow a client to adaptively switch between multiplebitratesbitrates, depending on current network conditions. A defining aspect of HAS is that, since it is based on HTTP, it is a pull-based mechanism, with a client actively requesting contentsegments,segments instead of the content being pushed to the client by a server. Due to this pull-based nature, media servers delivering content using HAS often show different characteristics when compared with media servers delivering content using traditional streaming methods such asRTP/RTSP, RTMPthe Real-time Transport Protocol / Real Time Streaming Protocol (RTP/RTSP), the Real Time Messaging Protocol (RTMP), andMMS.the Multimedia Messaging Service (MMS). This document presents a discussionon whatof the impact ofthese different characteristics is tothe HAS operation on the CDNIinterfacesinterfaces, and whatHAS- specificHAS-specific optimizations may be required or may be desirable. The scope of this document is to present the authors' analysis of the CDNI-HAS problem space and discuss different options put forwardbothby the authors (and by others during informal discussions) on how to deal with HAS in the context of CDNI. Thedocumentsdocument concludes by presenting the authors' recommendations on how the CDNI WG should deal with HAS in its initial charter, with a focus on 'making it work' instead of including 'nice-to-have' optimizations that might delay the development of the CDNI WG deliverables identified in its initial charter. It should be noted that the document is not a WGdocument,document but has been used as inputinformationduring the WG process for making its decision regarding support for HAS. We expect the analysis presented in the documentwill alsoto be useful in the future if and when the WGre-chartersrecharters and wants tore-assessreassess the level of HAS optimizations to be supported in CDNI scenarios. 1.1. Terminology This document uses the terminology defined in [RFC6707] and[I-D.ietf-cdni-framework].[CDNI-FRAMEWORK]. For convenience, thedefinitiondefinitions of HAS-related terms are restated here: Content Item: A uniquely addressable content element in a CDN. A content item is defined by the fact that it has its own Content Metadata associated with it.It is the object of a request routing operation in a CDN.An example of aContent Itemcontent item is a videofile/ stream,file/stream, an audiofile/streamfile/stream, or an image file. Chunk:a fixed lengthA fixed-length element that is the result of a segmentation or fragmentation operation and that is independently addressable. Fragment: A specific form of chunk (see Section 2.1). A fragment is stored as part of a larger file that includes all chunks that are part of theChunk Collection.chunk collection. Segment: A specific form of chunk (see Section 2.1). A segment is stored as a single file from afile systemfile-system perspective. Original Content: Non-chunked content that is the basis for a segmentationofor fragmentation operation. Based on Original Content, multiple alternative representations (using different encoding methods, supporting differentresolutionsresolutions, and/or targeting different bitrates) may be derived, each of which may be fragmented or segmented. Chunk Collection: The set of all chunks that are the result of a single segmentation or fragmentation operation being performed on a single representation of the Original Content. AChunk Collectionchunk collection is described in a Manifest File. Content Collection: The set of allChunk Collectionschunk collections that are derived from the same Original Content. AContent Collectioncontent collection may consist of multipleChunk Collections,chunk collections, each corresponding to a single representation of the Original Content. AContent Collectioncontent collection may be described by one or more Manifest Files. Manifest File: A Manifest File, also referred to as a Media Presentation Description (MPD) file, is a file thatlistlists the way the content has been chunked (possibly for multipleencodings) andencodings), as well as where the various chunks are located (in the case of segments) or how they can be addressed (in the case of fragments). 2. HTTP Adaptive Streamingaspects relevantAspects Relevant to CDNI In the last couple of years, a wide variety of HAS-like protocols have emerged. Among them are proprietary solutions such as Apple's HTTP Live Streaming (HLS), Microsoft's HTTP Smooth Streaming(HSS)(HSS), and Adobe's HTTP Dynamic Streaming (HDS),andas well as various standardized solutions such as 3GPP Adaptive HTTP Streaming (AHS) and MPEG Dynamic Adaptive Streaming over HTTP (DASH). While all of these technologies share a common set of features, each has its own defining elements. Thischapter will looksection looks at some of the common characteristics and some of the differences between these technologies and how those might be relevant to CDNI. In particular, Section 2.1will describedescribes the various methods to store HAScontentcontent, and Section 2.2will listlists three methods that are used to address HAS content in a CDN. After these generic HAS aspects are discussed, two special situations that need to be taken into account when discussing HAS are addressed: Section 2.3 discusses the differences betweenLivelive content andVoDVideo on Demand (VoD) content, while Section 2.4 discusses the scenario where multiple streams are combined in a single Manifest File(e.g.(e.g., for ad insertion purposes). 2.1. Segmentation versus Fragmentation All HAS implementations are basedaroundon a concept referred to aschunking:"chunking": the concept of having a server split content up in numerousfixed duration chunks, whichfixed-duration chunks that are independently decodable. By sequentially requesting and receiving chunks, a client can recreate and play out the content. An advantage of this mechanism is that it allows a client to seamlessly switch between different encodings of the same Original Content at chunk boundaries. Before requesting a particular chunk, a client can choose between multiple alternative encodings of the same chunk, irrespective of the encoding of the chunks it has requested earlier. While every HAS implementation uses some form of chunking, not all implementations store the resulting chunks in the same way. In general, there are two distinct methods of performing chunking and storing the results: segmentation and fragmentation. - Withsegmentation,segmentation -- whichisis, forexampleexample, mandatory in all versions of Apple's HLS prior to version7,7 -- the chunks, in this case also referred to as segments, are stored completelyindependentindependently from each other, with each segment being stored as a separate file from afile systemfile-system perspective. This means that each segment has its own unique URL with which it can be retrieved. - With fragmentation (or virtualsegmentation),segmentation) -- whichisis, forexampleexample, used in Microsoft's HTTP SmoothStreaming,Streaming -- all chunks, or fragments, belonging to the sameChunk Collectionchunk collection are storedtogether,together as part of a single file. While there are a number of container formatswhichthat allow for storing this type of chunked content,Fragmentedfragmented MP4 is most commonly used. With fragmentation, a specific chunk is addressable bysubfixingsuffixing, to the common fileURL withURL, an identifier uniquely identifying the chunk that one is interested in, either by timestamp, bybyterange,byte range, or in some other way. While one can argue about the merits of each of these two different methods of handling chunks, both have their advantages and drawbacks in a CDN environment. For example, fragmentation is often regarded as a method that introduces less overhead,bothfrom both a storage and processing perspective.SegmentationSegmentation, on the other hand, is regarded as being more flexible and easier to cache. In practice, current HAS implementations increasingly support both methods. 2.2. AddressingchunksChunks In order for a client to request chunks,eitherin the form of either segments orin the form offragments, it needs to know how the content has been chunked and where to find the chunks. For this purpose, most HAS protocols use a concept that is often referred to as a Manifest File (also known as a Media Presentation Description, orMPD); i.e.MPD), i.e., a file that lists the way the content has been chunked and where the various chunks are located (in the case of segments) or how they can be addressed (in the case of fragments). A ManifestFile,File or set of ManifestFiles,Files may also identify the different representations, and thusChunk Collections,chunk collections, available forathe content. In general, a HAS client will first request and receive a Manifest File, and then, after parsing the information in the Manifest File, proceed with sequentially requesting the chunks listed in the Manifest File. Each HAS implementation has its own Manifest Fileformatformat, and even within a particular format there are different methods available to specify the location of a chunk. Ofcoursecourse, managing the location of files is a core aspect of every CDN, and each CDN will have its own method of doing so. Some CDNs may be purely cache-based, with no higher-level knowledge of where each file resides at each instant in time. Other CDNs may have dedicated management nodeswhich,that, at each instant in time, do know at which servers each file resides. The CDNI interfaces designedinby the CDNI WG will probably need to be agnostic to these kinds of CDN- internal architecture decisions. In the case ofHASHAS, there is a strict relationship between the location of the content in the CDN (in this case chunks) and the content itself (the locations specified in the Manifest File). It is therefore useful to have an understanding of the different methods in use in CDNs today for specifying chunk locations in Manifest Files. The different methods for doing so are described insectionsSections 2.2.1 to 2.2.3. Although these sections are especially relevant for segmentedcontent,content due to its inherent distributed nature, the discussed methods are also applicable to fragmented content. Furthermore, it should be noted that the methods detailed below for specifying locations of content items in Manifest Files do notonlyrelate only to temporally segmented content(e.g.(e.g., segments andfragments),fragments) but are also relevant in situations where content is made available in multiple representations (e.g., in different qualities, encoding methods,resolutionsresolutions, and/or bitrates). In thiscasecase, the content consists of multiple chunk collections, which may be described by either a single Manifest File or multiple interrelated Manifest Files. In the latter case, there may be a high-level Manifest File describing the various available bitrates, with URLs pointing to separate Manifest Files describing the details of each specific bitrate. For specifying the locations of the other Manifest Files, the same methodsapplythat are used for specifying chunklocations.locations also apply. One final note relates to the delivery of the Manifest Files themselves. While in most situations the delivery of both the Manifest File and the chunksareis handled by the CDN, there are scenarios imaginable in which the Manifest File is deliveredby e.g.by, for example, the ContentProvider,Service Provider (CSP), and the Manifest File is therefore not visible to the CDN. 2.2.1. Relative URLs One method for specifying chunk locations in a Manifest File is through the use of relative URLs. A relative URL is a URL that does not include the HOST part of a URL but only includes (part of) the PATH part of a URL. In practice, a relative URL is used by the client as being relative to the locationwherefrom which the Manifest File has beenacquired from.acquired. In thesecasescases, a relative URL will take the form of a string that has to be appended to the location of the Manifest File to get the location of a specific chunk. This means that in the case where a Manifest File with relative URLs is used, all chunks will be delivered by the samesurrogateSurrogate that delivered the Manifest File. A relative URL will therefore not include a hostname. For example, in the case where a Manifest File has been requested (and received) from: http://surrogate.server.cdn.example.com/content_1/manifest.xml,a relative URL pointing to a specific segment referenced in the Manifest File might be: segments/segment1_1.tsWhichwhich means that the client should take the location of the Manifest File and append the relative URL. In this case, the segment would then be requested from http://surrogate.server.cdn.example.com/content_1/segments/segment1_1.ts The downsidecontent_1/segments/segment1_1.ts. One drawback of using relative URLs is that it forces a CDN relying on HTTP-based request routing to deliver all segments belonging to a given content item with the samesurrogateSurrogate that delivered the Manifest File for that content item, which results in limited flexibility. Another drawback is thatRelativerelative URLs do not allow for fallback URLs; should thesurrogateSurrogate that delivered the Manifest File break down, the client is no longer able to request chunks. The advantage of relative URLs is that it is very easy to transfer content between differentsurrogatesSurrogates and even CDNs. 2.2.2. Absolute URLs with Redirection Another method for specifying locations of chunks (or other Manifest Files) in a Manifest File is through the use of an absolute URL. An absolute URL contains a fully formed URL(i.e.(i.e., the client does not have to calculate the URL as in the case of the relative URL but can use the URL from the Manifest File directly). In the context of Manifest Files, there are two types of absolute URLs imaginable:Absoluteabsolute URLs withRedirectionredirection andAbsoluteabsolute URLs withoutRedirection.redirection. The two methods differ in whether the URL points to a request routing nodewhichthat will redirect the client to asurrogate (Absolute URLSurrogate (absolute URLs withRedirection)redirection) or point directly to asurrogateSurrogate hosting the requested content(Absolute URL(absolute URLs withoutRedirection).redirection). In the case ofAbsoluteabsolute URLs withRedirection,redirection, a request for a chunk is handled by therequest routingRequest Routing system of a CDN just as if it were a standalone (non-HAS) content request, which might include looking up thesurrogateSurrogate (and/or CDN) best suited for delivering the requested chunk to the particular user and sending an HTTP redirect to the user with the URL pointing to the requested chunk on the specifiedsurrogateSurrogate (and/or CDN), or a DNS response pointing to the specificsurrogate.Surrogate. An example of anAbsoluteabsolute URL withRedirectionredirection might look as follows: http://requestrouting.cdn.example.com/ content_request?content=content_1&segment=segment1_1.ts As can be seen from this example URL, the URL includes a pointer to a general CDNrequest routingRequest Routing function andincludessome arguments identifying the requested segment. The advantage of usingAbsoluteabsolute URLs withRedirectionredirection is thatit allowsthey allow for maximum flexibility (since chunks can be distributed acrosssurrogatesSurrogates andCDNCDNs in any imaginable way) without having to modify the Manifest File every time one or more chunks are moved (as is the case whenAbsoluteabsolute URLs withoutRedirectionredirection are used). The downside of this method is that it canaddsadd significant load to a CDNrequest routingRequest Routing system, since it has to perform a redirect every time a client requests a new chunk. 2.2.3. AbsoluteURLURLs without Redirection In the case ofthe Absolute URLabsolute URLs withoutRedirection,redirection, the URL points directly to the specific chunk on the actualsurrogateSurrogate that will deliver the requested chunk to the client. In other words, there will be no HTTP redirection operation taking place between the client requesting the chunk and the chunk being delivered to the client by thesurrogate.Surrogate. An example of anAbsolute URLsabsolute URL withoutRedirectionredirection is the following:http://surrogate.cdn.example.com/content_1/segments/segment1_1.tshttp://surrogate1.cdn.example.com/content_1/segments/segment1_1.ts As can be seen from this example URL, the URL includes both the identifier of the requested segment (in this casesegment1_1.ts), as well assegment1_1.ts) and the server that is expected to deliver the segment (in this casesurrogate.cdn.example.com).surrogate1.cdn.example.com). With this, the client has enough information to directly request the specific segment from the specifiedsurrogate.Surrogate. The advantage of usingAbsoluteabsolute URLs withoutRedirectionredirection is that it allows more flexibility compared to usingRelativerelative URLs (since segments do not necessarily have to be delivered by the same server) while not requiring per-segment redirection (which would add significant load to the node doing the redirection). The drawback ofAbsolute URLs without Redirectionthis method is that it requires a modification of the Manifest File every time content is moved to a different location (either within a CDN or across CDNs). 2.3. Livevs.Content versus VoD Content Though the formats and addresses of Manifest Files and chunk files do not typically differ significantly between live and Video-on-Demand (VoD) content, the time at which the Manifest Files and chunk files become available does differ significantly. For live content, chunk files and their corresponding Manifest Files are created and delivered inreal-time.real time. This poses a number of potential issues for HAS optimization: - With live content, chunk files are made available inreal-time.real time. This limits the applicability of bundling for content acquisition purposes.PrepositioningPre-positioning may still beemployed,employed; however, any significant latency in theprepositioningpre-positioning may diminish the value ofprepositioningpre-positioning if a client requests the chunk prior toprepositioning,pre-positioning or if theprepositioningpre-positioning request is serviced after the chunk playout time has passed. - In the case of live content, Manifest Files must be updated for each chunk and therefore must be retrieved by the client prior to each chunk request. AnyManifest-File basedoptimization schemes based on Manifest Files must therefore be prepared to optimize on a per-segment request basis. Manifest Files may also be polled multiple times prior to the actual availability of the next chunk. - Since live Manifest Files are updated aseachnewchunk becomeschunks become available, the cacheability of Manifest Files is limited. Though timestamping and reasonableTTLsTime-to-Live (TTL) settings can improve delivery performance, timely replication and delivery of updated Manifest Filesisare critical to ensuring uninterrupted playback. - Manifest Files are typically updated after the corresponding chunk is available for delivery, to prevent premature requests for chunkswhichthat are not yet available. HAS optimization approacheswhichthat employ dynamic Manifest File generation must be synchronized with chunk creation to prevent playback errors. 2.4. StreamsplicingSplicing Stream splicing is used to create media mashups, combining content from multiple sources. A common example in which content resides outside the CDNs is with advertisement insertion, for both VoD and live streams. Manifest Fileswhichthat containAbsoluteabsolute URLs with redirection may contain chunk or nested Manifest File URLswhichthat point to content not delivered via any of the interconnected CDNs. Furthermore, client and downstream proxy devices may depend onnon- URLnon-URL information provided in the Manifest File (e.g., comments or custom tags) for performing stream splicing. This often occurs outside the scope of the interconnected CDNs. HAS optimization schemeswhichthat employ dynamic Manifest File generation or rewriting must be cognizant of chunk URLs, nested Manifest File URLs, and other metadatawhichthat should not be modified or removed. Improper modification of these URLs or other metadata may cause playbackinterruptions,interruptions and in the case of unplayedadvertisements,advertisements may result in loss of revenue forcontent providers.CSPs. 3. Possible HAS Optimizations In the previouschapter,section, some of the unique properties of HAShave beenwere discussed. Furthermore, some of the CDN-specific design decisions with regards to addressing chunks have been detailed. In thischapter,section, the impact of supporting HAS inCDN InterconnectionCDNI scenarioswill beis discussed. There are a number of topics, or problem areas, that are of particular interest when considering the combination of HAS and CDNI. For each of these problemareasareas, it holds that there are a number of different ways in which the CDNIInterfacesinterfaces can deal with them. Ingeneralgeneral, it can be said that each problem area can either be solved in a way that minimizes the amount of HAS-specific changes to the CDNIInterfacesinterfaces orin way thatmaximizes the flexibility and efficiency with which the CDNIInterfacesinterfaces can deliver HAS content. The goal for the CDNI WG should probably be to try to find the middle ground between these two extremes and try to come up with solutions that optimize the balance between efficiency and additional complexity. In order to allow the WG to make this decision, thischapter willsection brieflydescribedescribes each of the following problemareasareas, together with a number of different options for dealing with them. Section 3.1will discussdiscusses the problem of how to deal with file management of groups of files, orContent Collections.content collections. Section 3.2will dealdeals with a related topic: how to do content acquisition ofContent Collectionscontent collections between theuCDNUpstream CDN (uCDN) anddCDN.Downstream CDN (dCDN). After that, Section 3.3 describes the various options for the request routing of HAS content, particularly related to Manifest Files. Section 3.4 talks about a number of possible optimizations for the logging of HAS content, while Section 3.5 discusses the options regarding URL signing. Finally, Section 3.6finally,describes different scenarios for dealing with the removal of HAS content from CDNs. 3.1. File Management and Content Collections 3.1.1. General Remarks One of the unique properties of HAS content is that it does not consist of a single file or stream but of multiple interrelated files(segment, fragments(segments, fragments, and/or Manifest Files). In thisdocumentdocument, this group of files is also referred to as aContent Collection.content collection. Another important aspect is the difference between segments and fragments (see Section 2.1). Irrespective of whether segments or fragments are used, different CDNs might handleContent Collectionscontent collections differently from a file management perspective. For example, some CDNs might handle all files belonging to aContent Collectioncontent collection as individualfiles, whichfiles that are stored independently from each other. An advantage of this approach is that it makes it easy to cache individual chunks. Other CDNs might store all fragments belonging to aContent Collectioncontent collection in a bundle, as if they were a single file(e.g.(e.g., by using a fragmented MP4 container). The advantage of this approach is that it reduces file management overhead.This section willThe following subsections look at the various ways with which the CDNI interfaces might deal with these differences in handlingContent Collectionscontent collections from a file management perspective. The different options can be distinguished based on the level ofHAS-awarenessHAS awareness they require on the part of the different CDNs and the CDNI interfaces. 3.1.2. CandidateapproachesApproaches 3.1.2.1. Option 1.1:No HAS awarenessDo Nothing Thisfirstoption assumes no HAS awareness in both the involved CDNs and the CDNIInterfaces.interfaces. This means that the uCDN uses individualfilesfiles, and the dCDN is not explicitly made aware of the relationship between chunks anditdoesn't know which files are part of the sameContent Collection.content collection. Inpracticepractice, this scenario would mean that the file management method used by the uCDN is simply imposed on the dCDN as well. This scenario also means that it is not possible for the dCDN to use any form of file bundling, such as the single-filemechanismmechanism, which can be used to store fragmented content as a single file (see Section 2.1). The one exception to this rule is the situation where the content is fragmented and the Manifest Files on the uCDNcontainscontain byte range requests, in which case the dCDN might be able to acquire fragmented content as a single file (see Section 3.2.2.2). Effect on CDNI interfaces: o None Advantages/Drawbacks: + No HAS awareness necessary inCDNs,CDNs; no changes to CDNIInterfacesinterfaces necessary - The dCDN is forced to store chunks as individualfiles.files 3.1.2.2. Option 1.2: Allowsingle file storageSingle-File Storage offragmented contentFragmented Content In some cases, the dCDN might prefer to store fragmented content as a single file on itssurrogatesSurrogates to reduce file management overhead. In order to do so, it needs to be able to either acquire the content as a single file (see Section3.2.2.2),3.2.2.2) or to merge the different chunks together and place them in the same container(e.g.(e.g., fragmented MP4). The downside of this method is that in order to do so, the dCDN needs to be fully HAS aware. Effect on CDNI interfaces: o CDNI MetadataInterface:interface: Add fields for indicating the particular type of HAS(e.g.(e.g., MPEG DASH or HLS) that is used and whether segments or fragments are used o CDNI MetadataInterface:interface: Add field for indicating the name and type of the Manifest File(s) Advantages/Drawbacks: + Allows the dCDN to store fragmented content as a single file, reducing file management overhead - Complex operation, requiring the dCDN to be fully HAS aware 3.1.2.3. Option 1.3: Accesscorrelation hintCorrelation Hint An intermediary approach between the two extremes detailed in the previous two sections is one that usesaan 'Access Correlation Hint'. This hint, which is added to the CDNI Metadata of all chunks of a particularContent Collection,content collection, indicates that those files are likely to be requested in a short time window from each other. This information can help a dCDN to implement local file storage optimizations for VoD items(e.g.(e.g., by bundling all files with the same Access Correlation Hint value in a single bundle/file), thereby reducing the number of files it has to manage while not requiring any HAS awareness. Effect on CDNI interfaces: o CDNI MetadataInterface:interface: Add field for indicating Access Correlation Hint Advantages/Drawbacks: + Allows the dCDN to perform file management optimization + Does not require any HAS awareness + Very small impact on CDNIInterfacesinterfaces - Expected benefit compared with Option 1.1 is small 3.1.3.RecommendationRecommendations Based on the listed pros and cons, the authors recommend that the WGtogo for Option1.1, the 'Do Nothing'-approach.1.1 (do nothing). The likely benefitsfromof going for Option 1.3 are not believed to be significant enough to warrant changing the CDNI MetadataInterface.interface. Although Option 1.2 would bring definite benefits forHAS awareHAS-aware dCDNs, going for thisoptionsoption would require significant CDNI extensions that would impact the WG's milestones. The authors therefore don't recommendto includeincluding it in the current work but mark it as a possible candidate for rechartering once the initial CDNI solution is completed. 3.2. Content Acquisition of Content Collections 3.2.1. General Remarks In the previoussectionsection, the relationship between file management and HAS in a CDNI scenariohas beenwas discussed. This sectionwill discussdiscusses a relatedtopic, which istopic: content acquisition between two CDNs. With regards to content acquisition, it is important to note the difference between CDNs that doDynamic Acquisitiondynamic acquisition of content and CDNs that performContent Pre-positioning.content pre-positioning. In the case of dynamic acquisition, a CDN only requests a particular content item when acache-misscache miss occurs. In the case of pre-positioning, a CDNpro- activelyproactively places content items on the nodes on which it expects traffic for that particular content item. For each of these types of CDNs, there might be a benefit in being HAS aware. For example, in the case of dynamic acquisition, being HAS aware means that after a cache miss for agivinggiven chunk occurs, that node might not only acquire the requestedchunk,chunk but might also acquire some related chunks that are expected to be requested in the near future. In the case of pre-positioning, similar benefits can be had. 3.2.2. Candidate Approaches 3.2.2.1. Option 2.1: No HASawarenessAwareness Thisfirstoption assumes no HAS awareness in both the involved CDNs and the CDNIInterfaces.interfaces. Just as with Option1.11.1, discussedin the previous sectionearlier with regards to file management, having no HAS awareness means that the dCDN is not aware of the relationship between chunks. In the case of content acquisition, this means that each and every file belonging to aContent Collectioncontent collection will have to be individually acquired from the uCDN by the dCDN. The exception to the rule isincases with fragmented content where the uCDN uses Manifest Fileswhichthat contain byte range requests. In thiscasecase, the dCDN can simply omit the byte range identifier and acquire the complete file. The advantage of this approach is that it is highly flexible. If a client only requests a small portion of the chunks belonging to a particularContent Collection,content collection, the dCDN only has to acquire those chunks from the uCDN, saving both bandwidth and storage capacity. The downside of acquiring content on a per-chunk basis is that it creates more transaction overhead between the dCDN anduCDNuCDN, compared to a method in which entireContent Collectionscontent collections can be acquired as part of one transaction. Effect on CDNI interfaces: o None Advantages/Drawbacks: + Per-chunk content acquisition allows for a high level of flexibility between the dCDN and uCDN - Per-chunk content acquisition creates more transaction overhead between the dCDN and uCDN 3.2.2.2. Option 2.2: Allowsingle file acquisitionSingle-File Acquisition offragmented contentFragmented Content As discussed in Section 3.2.2.1, there is one (fairly rare) case where fragmented content can be acquired as a single file without any HASawarenessawareness, and that is when fragmented content is used and where the Manifest File specifies byte rangerequest.requests. This section discusses how to performsingle filesingle-file acquisition in the other (very common) cases. To do so, the dCDN would have to havefull-HASfull HAS awareness (at least to the extent of being able to map between a single file and individual chunks to serve). Effect on CDNI interfaces: o CDNI MetadataInterface:interface: Add fields for indicating the particular type of HAS(e.g.(e.g., MPEG DASH or HLS) that is used and whether segments or fragments are used o CDNI MetadataInterface:interface: Add field for indicating the name and type of the Manifest File(s) Advantages/Drawbacks: + Allows for more efficient content acquisition in all HAS-specific supported forms - Requires full HAS awareness on the part of the dCDN - Requires significant CDNI MetadataInterfaceinterface extensions 3.2.3.RecommendationRecommendations Based on the listed pros and cons, the authors recommend that the WGtogo for Option2.12.1, since it is sufficient to 'make HAS work'. While Option 2.2 would bring benefits to the acquisition of largeContent Collections,content collections, it would require significant CDNI extensionswhichthat would impact the WG's milestones. Option 2.2 might be a candidate to include in possible rechartering once the initial CDNI solution is completed. 3.3. Request Routing of HAScontentContent 3.3.1. GeneralremarksRemarks In thissectionsection, the effect HAS content has on request routingwill beis identified. Of particular interest in this case are the different types of Manifest Files that might be used. In Section 2.2, three different methods for identifying and addressing chunks from within a Manifest File were described:Relativerelative URLs,Absoluteabsolute URLswithout Redirectionwith redirection, andAbsoluteabsolute URLswith Redirection.without redirection. Ofcoursecourse, not every current CDN will use and/or support all three methods. Some CDNs may only use one of the three methods, while others may support two or all three. An important factor in deciding whichchunk addressingchunk-addressing method is used is theContent Provider.CSP. SomeContent ProvidersCSPs may have a strong preference for a particular method and deliver the Manifest Files to the CDN in a particular way. Depending on the CDN and the agreement it has with theContent Provider,CSP, a CDN may either host the Manifest Files as they were created by theContent Provider,CSP or modify the Manifest File to adapt it to its particular architecture(e.g.(e.g., by changing relative URLs toAbsoluteabsolute URLswhichthat point to the CDN Request Routing function). 3.3.2. CandidateapproachesApproaches 3.3.2.1. Option 3.1: No HASawarenessAwareness Thisfirstoption assumes no HAS awareness in both the involved CDNs and the CDNIInterfaces.interfaces. This scenario also assumes that neither the dCDN nor the uCDNhavehas the ability to actively manipulate Manifest Files. As was also discussed with regards to file management and content acquisition, having no HAS awareness means that each file constituting aContent Collectionscontent collection is handled on an individual basis, with the dCDN unaware of any relationship between files. The onlychunk addressingchunk-addressing method that works without question in this case isAbsoluteabsolute URLs withRedirection.redirection. In other words, theContent ProviderCSP that ingested the content into the uCDN created a Manifest File with each chunk location pointing to the Request Routing function of the uCDN. Alternatively, theContent ProviderCSP may have ingested the Manifest File containing relativeURLsURLs, and the uCDN ingestion function has translated these toAbsoluteabsolute URLs pointing to the Request Routing function. In thisAbsolute"absolute URL withRedirectionredirection" case, the uCDN can simply have the Manifest File be delivered by the dCDN as if it were a regular file. Once the client parses the Manifest File, it will request any subsequent chunks from the uCDN Request Routing function. That function can then decide to outsource the delivery ofthat chunkthose chunks to the dCDN. Depending on whether HTTP-based (recursive or iterative) or DNS-based request routing is used, the uCDN Request Routing function will then either directly or indirectly redirect the client to the Request Routing function of the dCDN (assuming that it does not have the necessary information to redirect the client directly to asurrogateSurrogate in the dCDN). The drawback of this method is that it creates a large amount of request routing overhead for both the uCDN and dCDN. For eachchunkchunk, the full inter-CDN Request Routing process is invoked (which can result in two HTTP redirections in the case of iterative redirection, orresult inone HTTP redirection plus one CDNI RequestRouting/Routing RedirectionInterfaceinterface request/response). Even in the case whereDNS- basedDNS-based redirection is used, there might be significant overheadinvolvedinvolved, since both the dCDN and uCDN Request Routingfunctionfunctions might have to perform database lookups and query each other. While with DNS this overhead might be reduced by usingDNS'DNS's inherent caching mechanism, this will have significant impact on the accuracy of the redirect. With no HAS awareness,Relativerelative URLs might or might notworkwork, depending on the type ofRelativerelative URL that is used. When a uCDN delegates the delivery of a Manifest File containingRelativerelative URLs to a dCDN, the client goes directly to the dCDNsurrogateSurrogate from which it has received the Manifest File for every subsequent chunk. As long as theRelativerelative URL is not path-absolute (see [RFC3986]), this approach will work fine. Since usingAbsoluteabsolute URLs withoutRedirectionredirection inherentlyrequirerequires aHAS awareHAS-aware CDN,they alsoabsolute URLs without redirection cannot be used in thiscase. The reason for this is that with Absolute URLs without Redirection,case because the URLs in the Manifest File will point directly to asurrogateSurrogate in the uCDN. Since this scenario assumes no HAS awareness on the part of the dCDN or uCDN, it is impossible for either of these CDNs to rewrite the Manifest File and thus allow the client to either go to asurrogateSurrogate in the dCDN or to arequest routingRequest Routing function. Effect on CDNI interfaces: o None Advantages/Drawbacks: + SupportsAbsoluteabsolute URLs withRedirectionredirection + SupportsRelativerelative URLs + Does not require HAS awareness and/or changes to the CDNIInterfacesinterfaces - Not possible to useAbsoluteabsolute URLs withoutRedirectionredirection - Creates significant signaling overhead incase Absolutecases where absolute URLs withRedirectionredirection are used (inter-CDN request redirection for each chunk) 3.3.2.2. Option 3.2: Manifest FilerewritingRewriting by uCDN While Option 3.1 does allowfor Absoluteabsolute URLs withRedirectionredirection to be used, it does so in a way that creates ahigh-levelhigh level of request routing overhead for both the dCDN and the uCDN. This option presents a solution to significantly reduce this overhead. In this scenario, the uCDN is able to rewrite the Manifest File (or generate a new one) to be able to remove itself from the request routing chain for chunks being referenced in the Manifest File. As described in Section 3.3.2.1, in the case of no HASawarenessawareness, the client will go to the uCDNrequest routingRequest Routing function for each chunk request. Thisrequest routingRequest Routing function can then redirect the client to the dCDNrequest routingRequest Routing function. By rewriting the Manifest File (or generating a new one), the uCDN is able to remove this firststep,step and have the Manifest File point directly to the dCDNrequest routingRequest Routing function. A key advantage of this solution is that it does not directly have an impact on the CDNIInterfacesinterfaces and is therefore transparent to these interfaces. It is a CDN-internal function that a uCDN can perform autonomously by using information configured for regular CDNI operation orthat isreceived from the dCDN as part of the regular communication using the CDNI RequestRouting/Redirection Interface.Routing Redirection interface. More specifically, in order for the uCDN to rewrite the Manifest File, the minimum information needed is the location of the dCDNrequest routingRequest Routing function(or alternatively(or, alternatively, the location of the dCDN deliveringsurrogate).Surrogate). This information can be available from configuration or can be derived from the regular CDNI Request Routing/Redirection Interface.Redirection interface. For example, the uCDN may ask the dCDN for the location of its request routing node (through the CDNI RequestRouting/Redirection Interface)Routing Redirection interface) every time a request for a Manifest File is received and processed by the uCDNrequest routingRequest Routing function. The uCDN would then modify the Manifest File and deliver the Manifest File to the client. One advantage of this method is that it maximizes efficiency and flexibility by allowing the dCDN to optionally respond with the locations of itssurrogatesSurrogates instead of the location of itsrequest routingRequest Routing function (and effectively turning the URLs intoAbsoluteabsolute URLs withoutRedirection).redirection). There are many variationsaroundon this approach, such as where the modification of the Manifest Fileinis only performed once (or once per period of time) by the uCDNrequest routingRequest Routing function, when the first client for that particularContent Collectioncontent collection (and redirected to that particular dCDN) sends a Manifest File request. The advantage of such a variation is that the uCDN only has to modify the Manifest File once (or once per time period). The drawback of this variation is that the dCDN is no longer in a position to influence the request routing decision across individual content requests. It should be noted that there are a number of things to take into account when changing a Manifest File(see(see, forexample Sectionexample, Sections 2.3 andSection2.4 on live HAS content and ad insertion). Furthermore, someContent ProvidersCSPs might have issues with a CDN changing Manifest Files. However, in this option the Manifest File manipulation is only being performed by the uCDN, which can be expected to be aware of these limitations if it wants to perform Manifest Filemanipulationmanipulation, since it is in its own best interest that its customer's content gets delivered in the proper way and since there is a direct commercial and technical relationship between the uCDN (the Authoritative CDN in this scenario) and its customer (theContent Provider).CSP). Should theContent ProviderCSP want to limit Manifest File manipulation, it can simply arrange this with the uCDN bilaterally. Effect on CDNI interfaces: o None Advantages/Drawbacks: + Possible to significantly decrease signaling overhead when usingAbsolute URLs.absolute URLs + (Optional) Possible to have the uCDN rewrite the Manifest File with locations ofsurrogatesSurrogates in the dCDN (turningAbsoluteabsolute URLs withRedirection in Absoluteredirection into absolute URLs withoutRedirection)redirection) + No changes to CDNIInterfacesinterfaces + Does not require HAS awareness in the dCDN - Requires a high level of HAS awareness in the uCDN (for modifying Manifest Files) 3.3.2.3. Option 3.3:Two-stepTwo-Step Manifest FilerewritingRewriting One of the possibilities with Option 3.2 is allowing the dCDN to provide the locations of a specificsurrogateSurrogate to the uCDN, so that the uCDN can fit the Manifest File withAbsoluteabsolute URLs withoutRedirectionredirection and the client can request chunks directly from a dCDNsurrogate.Surrogate. However, some dCDNs might not be willing to provide this information to the uCDN. In thatcasecase, they can only provide the uCDN with the location of theirrequest routing function andRequest Routing function, thereby preventing the use ofAbsoluteabsolute URLs withoutRedirection.redirection. One method for solving this limitation is allowing two-step Manifest File manipulation. In the firststepstep, the uCDN would perform its ownmodification,modification and place the locations of the dCDNrequest routingRequest Routing function in the Manifest File. Then, once a request for the Manifest File comes in at the dCDNrequest routingRequest Routing function, it would perform a second modification in which it replaces the URLs in the Manifest Files with the URLs of itssurrogates.Surrogates. Thiswayway, the dCDN can still profit from having limited request routingtraffic,traffic while not having to share sensitivesurrogateSurrogate information with the uCDN. The downside of this approach is that it not only assumes HAS awareness in the dCDN butitalso requires some HAS-specific additions to the CDNI MetadataInterface.interface. In order for the dCDN to be able to change the Manifest File, it has to have some information about the structure of the content. Specifically, it needs to have information about which chunks make up theContent Collection.content collection. Effect on CDNI interfaces (apart from those already listed under Option 3.2): o CDNI MetadataInterface:interface: Add necessary fields for conveyingHASHAS- specific information(e.g.(e.g., the files that make up theContent Collection)content collection) to thedCDN.dCDN o CDNI MetadataInterface:interface: Allow dCDN to modify Manifest File Advantages/Drawbacks (apart from those already listed under Option 3.2): + Allows the dCDN to useAbsoluteabsolute URLs withoutRedirectionredirection, without having to convey sensitive information to the uCDN - Requires a high level of HAS awareness in the dCDN (for modifying Manifest Files) - Requires adding HAS-specific and Manifest Filemanipulationmanipulation- specific information to the CDNI MetadataInterfaceinterface 3.3.3.RecommendationRecommendations Based on the listed pros and cons, the authors recommendto gogoing for Option 3.1, with Option 3.2 as an optional feature that may be supported as a CDN-internal behavior byana uCDN. While Option 3.1 allows for HAS content to be delivered using the CDNI interfaces, it does so with some limitations regarding supported Manifest Files and, in some cases, with a large amount of signaling overhead. Option 3.2 can solve most of these limitations and presents a significant reductionof thein request routing overhead. Since Option 3.2 does not require any changes to the CDNI interfaces but only changes the way the uCDN uses the existing interfaces, supporting it is not expected to result in a significant delay of the WG's milestones. The authors recommend that the WGtonot include Option 3.3, since it raises some questions of potential brittleness and including it would result in a significant delay of the WG's milestones. 3.4. Logging 3.4.1. GeneralremarksRemarks As stated in [RFC6707],"thethe CDNI Logging interface enables details of logs or events to be exchanged between interconnectedCDNs".CDNs. As discussed in[I-D.draft-bertrand-cdni-logging],[CDNI-LOGGING], the CDNI logging information can be used for multiplepurposespurposes, includingmaintenance/ debuggingmaintenance/debugging by a uCDN, accounting(e.g. in view of(e.g., for billing orsettlement),settlement purposes), reporting and management of end-user experience(e.g.(e.g., to the CSP), analytics(e.g.(e.g., by theCSP)CSP), and control of content distribution policy enforcement(e.g.(e.g., by the CSP). The key consideration for HAS with respect to logging is the potential increase of the number ofLoglog records by two to three orders of magnitude, as compared to regular HTTP delivery of a video,since,since bydefault,default log records would typically be generated on aper- chunk-deliveryper-chunk-delivery basis instead of a per-content-item-delivery basis. This impacts the scale of every processing step in theLogging Processlogging process (see[I-D.draft-bertrand-cdni-logging]),[CDNI-LOGGING]), including: a. Logging information generation and storing on CDN elements (Surrogate, Request Routers, ...) b. Logging information aggregation within a CDN c. Logging information manipulation (including information protection, filtering,updateupdate, and rectification) d. (Where needed)Logging informationCDNI reformatting(e.g.of logging information (e.g., reformatting from a CDN-specific format to the CDNI LoggingInterfaceinterface format for export by the dCDN to the uCDN) e. Logging exchange via the CDNI LoggingInterfaceinterface f. (Where needed) Logging re-reformatting(e.g.(e.g., reformatting from the CDNI LoggingInterfaceinterface format into a log-consumingspecificapplication) g. Logging consumption/processing(e.g.(e.g., feed logs into uCDN accounting application, feed logs into uCDN reporting system to provideper CSPper-CSP views, feed logs into debugging tools) Note that there may be multiple instances ofstepsteps [f] and [g] running in parallel. While the CDNI LoggingInterfaceinterface is only used to perform step [e], we note that its format directly affectsstepsteps [d] and [f] and that its format also indirectly affects the other steps (forexampleexample, if the CDNI LoggingInterfaceinterface requires per-chunk log records,stepsteps [a],[b][b], and [d] cannot operate on a per-HAS-sessionbasisbasis, and they also need to operate on a per-chunk basis). This section discusses the main candidate approaches identified for CDNI in terms of dealing with HAS with respect toLogging.logging. 3.4.2. Candidate Approaches 3.4.2.1. Option 4.1:"Do-Nothing" ApproachDo Nothing In thisapproachapproach, nothing is done specifically forHASHAS, sothateach HAS-chunk delivery is considered, for CDNILogging,logging, as a standalone content delivery. In particular, a separate log record for eachHAS- chunkHAS-chunk delivery is included in the CDNI LoggingInterfaceinterface in step [e] (as defined in Section 3.4.1). This approach requires thatstepsteps [a], [b], [c],[d][d], and[e][f] also be performed on a per-chunk basis. This approach allows step [g] to be performed either on a per-chunk basis (assuming that step [f] maintains per-chunk records) oronin a more "summarized"mannermanner, such asper-HAS-Sessionon a per-HAS-session basis (assuming that step [f] summarizes per-chunk records intoper-HAS-sessionper-HAS- session records). Effect on CDNI interfaces: o None Advantages/Drawbacks: + No information loss(i.e.(i.e., all details of each individual chunk delivery are preserved). While this full level of detail may not be needed for someLog consuminglog-consuming applications(e.g.(e.g., billing), this full level of detail is likely valuable(possibly(and possibly required) for someLog consuminglog-consuming applications(e.g.(e.g., debugging) + Easier integration (at least in the short term) into existingLogging toolslogging tools, since those tools are all capable of handling per-chunk records + No extension needed on CDNI interfaces - High volume of logging information to be handled (storing&and processing) at every step of theLogging processlogging process, from steps [a] to [g] (while summarization in step [f] is conceivable, it may be difficult to achieve in practice without any hints for correlation in the logrecords).records) An interesting question is whether a dCDN could use the CDNI Logging interface specified for the"Do-Nothing""do nothing" approach to report summarized "per-session" log information in the case where the dCDN performs such summarization. Thehigh levelhigh-level idea would bethat,that when a dCDN performs HAS logsummarizationsummarization, for its own purposesanyways,anyway, this dCDN couldinclude,include in the CDNI Logginginterface,interface one(or a few)or more logentryentries for a HAS session (instead of one entry perHAS-chunk)HAS chunk) thatsummarizessummarize the deliveries of many/allHAS-chunkHAS chunks for a session. However, the authors feelthat,that when considering the details ofthis,this idea, it is not achievable without explicit agreement between the uCDN and dCDN about how to perform/interpret such summarization. For example, when a HAS session switches between representations, the uCDN and dCDN would have to agree on things such as: o whether the session will be represented by a single log entry (which therefore cannot convey the distribution acrossrepresentations)representations), or multiple logentriesentries, such as one entry per contiguous period at a given representation (which therefore would be generally very difficult to correlate back into a single session) o whatwouldthe single URI included in the log entry would correspondto?to (for example, theManifest/top-level-playlist/next-level-playlist,...Manifest File, top-level playlist, or next-level playlist, ...) The authors feel that since explicit agreement is needed between the uCDN and dCDN on how to perform/interpret the summarization,then, tothis method can only work if it is specified as part of the CDNI Logginginterface and theninterface, in which case it would effectivelyboilsboil down to Option 4.4defined below ("Full(full HASawareness/per-Session-Logs" Approach).awareness / per-session logs) as defined below. We note that support by CDNI of a mechanism (independent of HAS) allowing the customization of the fields to be reported in log entries by the dCDN to the uCDN wouldhave a mitigation effect onmitigate concerns related to theHAS loggingscalingconcernsof HAS logging, because it ensures that only the necessary subset of fieldsareis actually stored,reportedreported, and processed. 3.4.2.2. Option 4.2:"CDNICDNI Metadata Content CollectionID" ApproachID In this approach, a "Content Collection IDentifier (CCID)" field is distributed through the CDNI MetadataInterfaceinterface, and the same CCID value is associated through the CDNI Metadata interface with every chunk of the sameContent Collection.content collection. The CCID value needs to be such that it allows, in combination with the content URI,to uniquely identifyunique identification of aContent Collection.content collection. When the CCID is distributed, and CCID logging is requested from the dCDN, the dCDN Surrogates are to store the CCID value in the corresponding log entries. The objective of this field is to facilitate optional summarization of per-chunk records at step [f] into something along the lines of per-HAS-session logs, at least for theLog consuminglog-consuming applications that do not require per-chunk detailed information (forexampleexample, billing). We notethat,that if thedownstream CDNdCDN happens to have sufficient HAS awareness to be able to generate a "Session IDentifier (Session-ID)", optionally including such a Session-ID (in addition to the CCID) in the per-chunk log record would further facilitate optional summarizationperformedat step [f]. The Session-ID value to be included in a log record by the delivering CDN is such that o different per-chunk log records with the same Session-ID value must correspond to the same user session(i.e(i.e., delivery of the same content to the sameenduserEnd User at a given point in time). o log records for different chunks of the same user session(i.e(i.e., delivery of the same content to the sameenduserEnd User at a given point in time) should be provided with the samesession-IDSession-ID value. While undesirable, there may be situations where the delivering CDN uses more than onesession-IDSession-ID value for different per-chunk log records of a givensession,session -- forexampleexample, in scenarios of fail-over orload-load balancing across multiple Surrogates and where the delivering CDN does not implement mechanisms to synchronizesession-IDsSession-IDs across Surrogates. Effect on CDNI interfaces: o CDNI Metadata interface: One additional metadata field (CCID) in the CDNI MetadataInterface.interface. We note that a similarContent Collectioncontent collection ID is discussed for the handling of other aspects of HAS and observe that further thought is needed to determine whether such a CCID should be shared for multiple purposes or should be independent. o CDNI Logging interface: Two additional fields (CCID andSession- ID)Session-ID) in CDNILogginglogging records. Advantages/Drawbacks: + No information loss(i.e.(i.e., all details of each individual chunk delivery are preserved). While this full level of detail may not be needed for someLog consuminglog-consuming applications(e.g.(e.g., billing), this full level of detail is likely valuable(possibly(and possibly required) for someLog consuminglog-consuming applications(e.g.(e.g., debugging) + Easier integration (at least in the short term) into existingLogging toolslogging tools, since those tools are all capable of handling per-chunk records + Very minor extension to CDNI interfaces needed + Facilitated summarization of records related to a HAS session in step [f] and therefore ability to operate on a lower volume of logging information in step [g] bylog consuminglog-consuming applications that do not need per-chunk record details(e.g.(e.g., billing) or that need per-session information(e.g.(e.g., analytics) - High volume of logging information to be handled (storing&and processing) at every step of theLogging processlogging process, from steps [a] to[f].[f] 3.4.2.3. Option 4.3:"CDNICDNI Logging InterfaceCompression" ApproachCompression In this approach, aloss-lesslossless compression technique is applied to the sets ofLogginglogging records(e.g. Logging(e.g., logging files) for transfer on theIETFCDNI LoggingInterface.interface. The objective of this approach is to reduce the volume of information to be stored and transferred in step [e]. Effect on CDNI interfaces: o Oneadditionalcompression mechanism to be included in the CDNI LoggingInterfaceinterface Advantages/Drawbacks: + No information loss(i.e.(i.e., all details of each individual chunk delivery are preserved). While this full level of detail may not be needed for someLog consuminglog-consuming applications(e.g.(e.g., billing), this full level of detail is likely valuable(possibly(and possibly required) for someLog consuminglog-consuming applications(e.g.(e.g., debugging) + Easier integration (at least in the short term) into existingLogging toolslogging tools, since those tools are all capable of handling per-chunk records + Small extension to CDNI interfaces needed + Reduced volume of logging information in step [e] + Compression likely tobealso be applicable to logs for non-HAS content - High volume of logging information to be handled (storing&and processing) at every step of theLogging processlogging process, from steps [a] to [g], except step [e]. 3.4.2.4. Option 4.4:"FullFull HASawareness/per-Session-Logs" ApproachAwareness/Per-Session Logs In this approach,HAS-awarenessHAS awareness is assumed across the CDNs interconnected viaCDNICDNI, and the necessary information to describe the HAS relationship across all chunks of the sameContent Collectioncontent collection is distributed through the CDNI MetadataInterface.interface. In this approach, the dCDNSurrogates leverageleverages the HAS information distributed through the CDNImetadataMetadata and theirHAS-awarenessHAS awareness, to do one of the following: o directly generate summarized logging informationin the very first place (or alternatively, if per-chunk-logs are generated, to accurately correlate and summarize per-chunk-logs into per-session logs) for exchange overat logging information generation time (which has theCDNI Logging interface. The objectivebenefit ofthat approach is to operateoperating on a lower volume of logging information as early as possible in the successive steps of the logging process), or o (if per-chunk logs are generated) accurately correlate and summarize per-chunk logs into per-session logs for exchange over the CDNI Loggingprocess.interface Effect on CDNI interfaces: o CDNI MetadataInterface: significantinterface: Significant extension to convey HAS relationship across chunks of aContent Collection.content collection. Note that this extension requires specific support for everyHAS-protocolHAS protocol to be supported over the CDNI mesh o CDNI LoggingInterface: extensioninterface: Extension to specify summarized per- session logs Advantages/Drawbacks: + Lower volume of logging information to be handled (storing&and processing) at every step of theLogging processlogging process, from steps [a] to [g] + Accurate generation of summarized logs because of HAS awareness in the dCDN (for example, where the Surrogate is also serving the Manifest File(s) for a content collection, the Surrogate may be able to extract definitive information about the relationship between all chunks) - Very significant extensions to CDNI interfacesneededneeded, includingper HAS-protocolspecific support for available HAS protocols - Very significant additional requirement for HAS awareness on the dCDN and for thisHAS-awarenessHAS awareness to be consistent with the defined CDNILogginglogging summarization - Some information loss(i.e.(i.e., all details of each individual chunk delivery are not preserved). The actual information loss depends on the summarization approach selected(typically(typically, the lower the information loss, the lower the summarizationgain)gain), so the rightsweet-spot"sweet spot" would have to be selected. While a full level of detail may not be needed for someLog consuminglog-consuming applications(e.g.(e.g., billing),thesuch a full level of detail is likely valuable(possibly(and possibly required) for someLog consuminglog-consuming applications(e.g.(e.g., debugging) - Less easy integration (at least in the short term) into existingLogging toolslogging tools, since those tools are all capable of handling per-chunk recordsandbut may not be capable of handling CDNI summarized records - Challenges in defining behavior (and achieving summarization gain) in the presence ofload-balancingload balancing of a givenHAS-sessionHAS session across multiple Surrogates (in the same dCDN or a different dCDN) 3.4.3.RecommendationRecommendations Because of its benefits (in particular simplicity, universal support byCDNsCDNs, and support by all log-consuming applications), the authors recommend thattheper-chunk loggingof Option 4.1as described in Section 3.4.2.1 (Option 4.1) be supported by the CDNI Logging interface as a "High Priority" (as defined in[I-D.draft-ietf-cdni-requirements])[CDNI-REQUIREMENTS]) and be a mandatory capability of CDNs implementing CDNI. Because of its very low complexity and its benefits in facilitating some useful scenarios(e.g.(e.g., per-session analytics), we recommend that the CCID mechanisms and Session-ID mechanismof Option 4.2as described in Section 3.4.2.2 (Option 4.2) be supported by the CDNI Metadata interface and the CDNI Logging interface as a "Medium Priority" (as defined in[I-D.draft-ietf-cdni-requirements])[CDNI-REQUIREMENTS]) and be an optional capability of CDNs implementing CDNI. The authors also recommendthat:that (i) the abilityforof the uCDN to requestthatinclusion of the CCID and Session-IDfield be included infields (in log entries provided by thedCDNdCDN) be supported by the relevant CDNIinterfaces, andinterfaces (ii) the abilityforof the dCDN to include the CCIDfieldandSession- IDSession-ID fields in CDNI log entries (when the dCDN is capable of doing so)and indicate so insidebe indicated in the CDNI Logging interface (in line with the "customizable" log format expected to be defined independently ofHAS),HAS) (iii) items (i) and (ii) be supported as a "Medium Priority" (as defined in[I-D.draft-ietf-cdni-requirements])[CDNI-REQUIREMENTS]) and be an optional capability of CDNs implementingCDNI.CDNI When performing dCDN selection,ana uCDN may want to take into account whether a given dCDN is capable of reporting the CCID and Session-ID. Thus, the authors recommend that the abilityforof a dCDN to advertise its support of the optional CCID and Session-ID capability be supported by the CDNIrequest Routing /Footprint andFootprint & CapabilitiesAdvertisment InterfaceAdvertisement interface as a "Medium Priority" (as defined in[I-D.draft-ietf-cdni-requirements]).[CDNI-REQUIREMENTS]). The authors also recommend that a generic mechanism (independent of HAS) be supportedallowingthat allows the customization of the fields to be reported in logs by CDNs over the CDNI LoggingInterfaceinterface -- because of the reduction of the logging information volume exchanged across CDNs that it allows by removingtheinformation that is not of interest to the other CDN. Becauseitthe following can be achieved with very little complexity andit providescan provide some clear storage/communication compression benefits, the authors recommend that, in line with the concept of Option 4.3, some existing very common compression techniques(e.g.(e.g., gzip) be supported by the CDNI Logging interface as a "Medium Priority" (as defined in[I-D.draft-ietf-cdni-requirements])[CDNI-REQUIREMENTS]) and be an optional capability of CDNs implementing CDNI. Because of its complexity, the time it would take to understand the trade-offs of candidate summarizationapproachesapproaches, and the time it would take to specify the corresponding support in the CDNI Logging interface, the authors recommend that the log summarization discussed inoption 4.4Section 3.4.2.4 (Option 4.4) not be supported by the CDNI Logging interface at this stageandbut that it be kept as a candidate topic of great interest for a rechartering of the CDNI WG once the first set of deliverables is produced.When doing so,At that time, we suggestto investigateinvestigating the notion of complementingthe "push-style"a "push style" CDNIloggingLogging interfacesupportingthat would support summarizationbyvia an on-demandpull-type of"pull type" interfaceallowing anthat would in turn allow a uCDN to request the subset of the detailed logging information that it may need but that is lost in the summarized pushed information. The authors note that while a CDN only needs to adhere to the CDNI Logging interface on its external interfaces and can perform logging in a different format within the CDN, any possible CDNILogginglogging approach effectively places some constraints on the dCDN logging format. For example, to support the"Do-Nothing" Approach,"do nothing" approach, a CDNneedneeds to perform and retainper chunkper-chunk logs. As another example, to support the"Full"full HASawareness/per-Session-Logs" Approach,awareness/per-session logs" approach, the dCDN cannotoperate onuse a logging format thatsummarize "more than" or "in an incompatiblesummarizes data in a waywith"that is incompatible with the summarization specified for CDNILogging.logging (e.g., summarizes data into a smaller set of information than what is specified for CDNI logging). However, the authors feel that such constraints are (i) inevitable, (ii) outweighed by the benefits of a standardized logginginterfaceinterface, and (iii) acceptablebecausebecause, in the case of incompatible summarization,all/most or all CDNs are capable of reverting to per-chunk logging as per theDo-Nothing Approach"do nothing" approach that we recommend as the base mandatory approach. 3.5. URL Signing URLSigningsigning is an authorization method for content delivery. This is based on embedding the HTTP URL with information that can be validated to ensure that the request has legitimate access to the content. There are two parts: 1) parameters that convey authorization restrictions(e.g.(e.g., source IP address and time period) and/or a protected URL portion, and 2) a message digest that confirms the integrity of the URL and authenticates theURL creator.entity that creates the URL. The authorization parameters can be anything agreed upon between the entity that creates the URL and the entity that validates the URL. A key is used to generate the message digest(i.e.(i.e., sign the URL) and validate the message digest. The two functions may or may not use the same key. There are two types of keys used for URLSigning:signing: asymmetric keys and symmetrickey.keys. Asymmetric keys always have a key pair made up of a public key and private key. The private key and public key are used for signing and validating the URL, respectively. A symmetric key is the same key that is used for both functions. Regardless of the type of key, the entity that validates the URL has to obtain the key. Distributionforof the symmetric key requires security to prevent others from taking it.PublicA public key can be distributedfreelyfreely, while a private key is kept by the URL signer. The method for key distribution is out ofscope.scope for this document. URLSigningsigning operates in the following way. A signed URL is provided by the content owner(i.e.(i.e., URL signer) to the user during website navigation. When the user selects the URL, the HTTP request is sent to theCDNCDN, which validates that URL before delivering the content. 3.5.1. HAS Implications The authorization lifetime for URLSigningsigning is affected by HAS. The expiration time in the authorization parameters of URLSigningsigning limits the period that the content referenced by the URL can be accessed. This works forURLURLs that directly access the mediacontent. Butcontent, but for HAScontent,content the Manifest File contains another layer ofURLURLs that reference the chunks. The chunk URL that is embedded in the content may be requestedat an indeterminatesome undetermined amount of time later. The time period between access to the Manifest File and chunk retrieval may vary significantly. The type of content(i.e. Live(i.e., live or VoD) impactsthethis time variance as well. This property of HAS contenthas this property thatneeds to be addressed for URLSigning.signing. 3.5.2. CDNI Considerations For CDNI, the two types of request routing are DNS-based and HTTP- based. The use of symmetric vs. asymmetrickeykeys for URLSigningsigning has implicationsonfor the trust model between the CSP and CDNs and for the key distribution method that can be used. DNS-based request routing does not change the URL. In the case of a symmetric key, the CSP and the Authoritative CDN have a business relationship that allows them to share a key (or multiple keys) for URLSigning.signing. When the userrequest arequests content from the Authoritative CDN, the URL is signed by the CSP. The Authoritative CDN (as aUpstream CDN)uCDN) redirects the request to aDownstream CDNdCDN via DNS. There may be more than one level of redirection to reach theDeliveringdelivering CDN. The user would obtain the IP address from DNS and send the HTTP request to theDeliveringdelivering CDN, which needs to validate the URL. This requires that the keytobe distributed from the Authoritative CDN to theDeliveringdelivering CDN. This may be problematic when the key is exposed tothe Deliveringa delivering CDN that does not have a relationship with the CSP. The combination of DNS-based request routing and symmetric key function is a generic issue for URLSigningsigning and not specific to HAS content. In the case of asymmetric keys, the CSP signs the URL with its private key. TheDeliveringdelivering CDN validates the URL with the associated public key.HTTPHTTP-based request routing changes the URL during the redirection procedure. In the case of a symmetric key, the CSP signs the original URL with the same key used by the Authoritative CDN to validate the URL. The Authoritative CDN (as aUpstream CDN)uCDN) redirects the request to theDownstream CDN.dCDN. The new URL is signed by theUpstream CDNuCDN with the same key used by theDownstream CDNdCDN to validate that URL. The key used by theUpstream CDNuCDN to validate the original URL isexpectexpected to be different than the key used to sign the new URL. In the case of asymmetric keys, the CSP signs the original URL with its private key. The Authoritative CDN validates that URL with the CSP's public key. The Authoritative CDN redirects the request to theDownstream CDN.dCDN. The new URL is signed by theUpstream CDNuCDN with its private key. TheDownstream CDNdCDN validates that URL with theUpstream CDN'suCDN's public key. There may be more than one level of redirection to reach theDeliveringdelivering CDN. The URLSigningsigning operation described previously applies at each level between theUpstream CDNuCDN andDownstream CDNdCDN for boththesymmetrickeykeys and asymmetrickeys cases.keys. URLSigningsigning requires support in most of the CDNIInterfaces.interfaces. The CDNI Metadata interface should specify the content that is subject to URL signing and provide information to perform the function. TheDownstream CDNdCDN should inform theUpstream CDNuCDN that it supports URLSigningsigning in the asynchronous capabilities information advertisement as part of the Request Routing interface. This allows the CDN selection function in request routing to choose theDownstream CDNdCDN with URL signing capability when the CDNImetadataMetadata of the content requires this authorization method. TheLogginglogging interface provides information on the authorization method(e.g.(e.g., URLSigning)signing) and related authorization parameters used for content delivery. Having the information in the URL is not sufficient to know that thesurrogateSurrogate enforced the authorization. URLSigningsigning has no impact on theControlcontrol interface. 3.5.3. Option 5.1: Do Nothing"Do Nothing"This approach means that the CSP can only perform URLSigningsigning for thetop leveltop-level Manifest File. Thetop leveltop-level Manifest File contains chunk URLs orlower levellower-level Manifest File URLs, which are not modified(i.e.(i.e., no URLSigningsigning for the embedded URLs). In essence, thelower levellower-level Manifest Files and chunks are delivered without content access authorization. Effect on CDNI interfaces: o None Advantages/Drawbacks: +Top levelTop-level Manifest File access is protected +Upstream CDNThe uCDN andDownstream CDNdCDN do not need to be aware of HAS content -Lower levelLower-level Manifest Files and chunks are not protected, making this approach unqualified for content access authorization 3.5.4. Option 5.2: Flexible URL Signing by CSP In addition to URLSigningsigning for thetop leveltop-level Manifest File, the CSP performs flexible URLSigningsigning for thelower levellower-level Manifest Files and chunks. For each HAS session, thetop leveltop-level Manifest File contains signed chunk URLs or signedlower levellower-level Manifest File URLs for the specific session. Thelower levellower-level Manifest File contains session- based signed chunk URLs. The CSP generates the Manifest Files dynamically for the session. The chunk (segment/fragment) is delivered with content access authorization using flexible URLSigningsigning, which protects the invariant portion of the URL.SegmentA "segment" URL(e.g.(e.g., HLS) is individually signed for the invariant URL portion(Relative(relative URL) or the entire URL(Absolute(absolute URL withoutRedirection)redirection) in the Manifest File.FragmentA "fragment" URL(e.g.(e.g., HTTP Smooth Streaming) is signed for the invariant portion of the template URL in the Manifest File. More details are provided later in this section. The URLSigningsigning expiration time for the chunk needs to be long enough to play the video. There are implicationsofrelated to signing the URLs in the Manifest File. ForLivelive content, the Manifest Files are requested at a high frequency. For VoD content, the Manifest File may be quite large. URLSigningsigning can add more computational load and delivery latency inhigh volumehigh-volume cases. For HAS content, the Manifest File contains theRelative Locator, Absolute Locatorrelative URL, absolute URL withoutRedirection,redirection, orAbsolute Locatorabsolute URL withRedirectionredirection for specifying the chunk location. Signing the chunk URL requires that the CSPtoknow the portion of the URL that remains when the content is requested from theDeliverydelivering CDNsurrogate.Surrogate. ForAbsolute URLabsolute URLs withoutRedirection,redirection, the CSP knows that the chunk URLwhichis explicitly linked with thedeliverydelivering CDNsurrogateSurrogate and can sign the URL based on that information. Since the entire URL is set and does not change, thesurrogateSurrogate can validate the URL. The CSP and theDeliverydelivering CDN are expected to have a business relationship in thiscase. Socase, and so either symmetrickeykeys or asymmetric keys can be used for URLSigning.signing. ForRelative URL,relative URLs, the URL of the Manifest File provides the root location. The method of request routing affects the URL used to ultimately request the chunk from theDeliverydelivering CDNsurrogate.Surrogate. For DNS, the original URL does not change. This allows the CSP to sign the chunk URL based on the Manifest File URL and theRelativerelative URL. For HTTP, the URL changes during redirection. In this case, the CSP does not know the redirected URL that will be used to request the Manifest File. This uncertainty makes it impossible to accurately sign the chunk URLs in the Manifest File. Basically, URLSigningsigning using this referencemethod,method "as is" for protection of the entire URLprotection,is not supported. However, instead of signing the entire URL, the CSP signs theRelativerelative URL(i.e.(i.e., the invariant portion of the URL) and conveys the protected portion in the authorization parameters embedded in the chunk URL. This approach works in the same way asAbsolute URLabsolute URLs withoutRedirection,redirection, except that the HOST part and (part of) the PATH part of the URL are not signed and validated. The security level should remain thesamesame, as content access authorization ensures that the user that requested the content has the proper credentials. This scheme does not seem to compromise the authorizationmodelmodel, since the resource is still protected by the authorization parameters and message digest.Perhaps, furtherFurther evaluationonof securitywouldmight be helpful. ForAbsolute URLabsolute URLs withRedirection,redirection, the method of request routing affects the URL used to ultimately request the chunk from theDeliverydelivering CDNsurrogate.Surrogate. This case has the same conditions as those indicated above for theRelativerelative URL. The difference is that the URL is for the chunk instead of the Manifest File. For DNS, the chunk URL does not change and can be signed by the CSP. For HTTP, the URL used to deliver the chunk is unknown to the CSP. In this case, the CSP cannot sign theURLURL, and this method of reference for the chunk is not supported. Effect on CDNI interfaces: o Requires the ability to exclude the variant portion of the URL in the signingprocessprocess. (NOTE:Issue isIs this issue specific to URLSigningsigning support for HAS content and not CDNI?) Advantages/Drawbacks: + The Manifest File and chunks are protected +Upstream CDNThe uCDN andDownstream CDNdCDN do not need to be aware of HAS content + DNS-based request routing with asymmetric keys and HTTP-based request routing forRelative URLrelative URLs andAbsolute URLabsolute URLs withoutRedirection worksredirection work - The CSP has to generate Manifest Files with session-based signed URLs and becomes involved in content access authorization for every HAS session - Manifest Files are not cacheable - DNS-based request routing with symmetrickeykeys may be problematic due to the need for transitive trust between the CSP andDeliverydelivering CDN - HTTP-based request routing forAbsolute URLabsolute URLs withRedirectionredirection does notworkwork, because the URL usedDeliveryby the delivering CDNsurrogateSurrogate is unknown to the CSP 3.5.5. Option 5.3: Flexible URL Signing byUpstream CDNuCDN This is similar to the previous section, with the exception that theUpstream CDNuCDN performs flexible URL signing for thelower levellower-level Manifest Files and chunks. URLSigningsigning for thetop leveltop-level Manifest File is still provided by the CSP. Effect on CDNI interfaces: o Requires the ability to exclude the variant portion of the URL in the signingprocessprocess. (NOTE:Issue isIs this issue specific to URLSigningsigning support for HAS content and not CDNI?) Advantages/Drawbacks: + The Manifest File and chunks are protected + The CSP does not need to be involved in content access authorization for every HAS session +Downstream CDNThe dCDN does not need to be aware of HAS content + DNS-based request routing with asymmetric keys and HTTP-based request routing forRelative URLrelative URLs andAbsolute URLabsolute URLs withoutRedirection worksredirection work -Upstream CDNThe uCDN has to generate Manifest Files with session-based signed URLs and becomes involved in content access authorization for every HAS session - Manifest Files are not cacheable - The Manifest File needs to be distributed through the uCDN - DNS-based request routing with symmetrickeykeys may be problematic due to the need for transitive trust between the uCDN and non-adjacentDeliverydelivering CDN - HTTP-based request routing forAbsolute URLabsolute URLs withRedirectionredirection does notworkwork, because the URL usedDeliveryby the delivering CDNsurrogateSurrogate is unknown to the uCDN 3.5.6. Option 5.4: Authorization Group ID and HTTP Cookie Based on the Authorization Group ID metadata, the CDN validates the URLSigningsigning or validates the HTTP cookie for request of content in the group. The CSP performs URLSigningsigning for thetop leveltop-level Manifest File. Thetop leveltop-level Manifest File containslower levellower-level Manifest File URLs or chunk URLs. Thelower levellower-level Manifest Files and chunks are delivered with content access authorization using an HTTP cookie that contains session state associated with authorization of thetop leveltop-level Manifest File. The Group IDMetadatametadata is used to associate the related content(i.e.(i.e., Manifest Files and chunks). It also specifies content(e.g.(e.g., regexp method) that needs to be validated by either URLSigningsigning or an HTTP cookie. Note that the creator of the metadata isHAS-aware. DurationHAS aware. The duration of the chunk access may be included in the URLSigningsigning of thetop leveltop-level Manifest File and set in the cookie. Alternatively, the access control duration could be provided by the CDNI Metadata interface. Effect on CDNI interfaces: o CDNI MetadataInterface -interface: Authorization Group ID metadata identifies the content that is subject to validation of URLSigningsigning or validation of an HTTP cookie associated with the URLSigningsigning o CDNI LoggingInterface -interface: Report the authorization method used to validate the request for content delivery Advantages/Drawbacks: + The Manifest File and chunks are protected + The CDN does not need to be aware of HAS content + The CSP does not need to change the Manifest Files - Authorization Group ID metadata is required(i.e.(i.e., CDNI MetadataInterfaceinterface enhancement) - Requires the use of an HTTPcookiecookie, which may not be acceptable in some environments(e.g.(e.g., where some targetedUser-AgentsUser Agents do not support HTTPCookie)cookies) - The Manifest File has to be delivered bysurrogatethe Surrogate 3.5.7. Option 5.5:HAS-awarenessHAS Awareness with HTTP Cookie in CDN The CDN is aware of HAS content and uses URLSigningsigning and HTTPcookiecookies for content access authorization. URLSigningsigning is fundamentally about authorizing access to aContent Itemcontent item or its specificContent Collectionscontent collections (representations) for a specific user during a timeperiod withperiod, possibly also using some other criteria. A chunk is an instance of the sets of chunks referenced by the Manifest File for theContent Itemcontent item or its specificContent Collections.content collections. This relationship means that once theDownstream CDNdCDN has authorized the Manifest File, it can assume that the associated chunks are implicitly authorized. The new function for the CDN is to link the Manifest File with the chunks for the HTTP session. This can be accomplished by using an HTTP cookie for the HAS session. After validating the URL and detecting that the requested content is atop leveltop-level Manifest File, thedeliverydelivering CDNsurrogateSurrogate setsaan HTTP cookie with a signed session token for the HTTP session. When a request for alower levellower-level Manifest File or chunk arrives, thesurrogateSurrogate confirms that the HTTP cookie value contains the correct session token. If so, thelower levellower-level Manifest File or chunk is delivereddue toin accordance with the transitive authorizationproperty. Durationmechanism. The duration of the chunk access may be included in the URLSigningsigning of thetop leveltop-level Manifest File and set in the cookie. The details of the operation are left to be determined later. Effect on CDNI interfaces: o CDNI MetadataInterface -interface: New metadata identifies the content that is subject to validation of URLSigningsigning and information in the cookie for the type of HAS content o Request Routinginterface - Downstream CDNinterface: The dCDN should inform theUpstream CDNuCDN that it supports URLSigningsigning for known HAS content types in the asynchronous capabilities information advertisement. This allows the CDN selection function in request routing to choose the appropriateDownstream CDNdCDN when the CDNImetadataMetadata identifies the content o CDNI LoggingInterface -interface: Report the authorization method used to validate the request for content delivery Advantages/Drawbacks: + The Manifest File and chunks are protected + The CSP does not need to change the Manifest Files - Requires full HAS awareness on the part ofUpstream CDNthe uCDN andDownstream CDNdCDN - RequiresCDNI Interfacesextensions to CDNI interfaces - Requires the use of an HTTPcookiecookie, which may not be acceptable in some environments(e.g.(e.g., where some targetedUser-AgentsUser Agents do not support HTTPCookie)cookies) - The Manifest File has to be delivered bysurrogatethe Surrogate 3.5.8. Option 5.6:HAS-awarenessHAS Awareness with Manifest File in CDN The CDN is aware of HAS content and uses URLSigningsigning for content access authorization of ManifestFileFiles andchunk.chunks. The CDN generates or rewrites the Manifest Files and learns about the chunks based on the Manifest File. The embedded URLs in the Manifest File are signed by the CDN.DurationThe duration of the chunk access may be included in the URLSigning.signing. The details of the operation are left to be determined later. Since this approach is based on signing the URLs in the Manifest File, the implications forLivelive and VoD content mentioned in Section 3.5.4 apply. Effect on CDNI interfaces: o CDNI MetadataInterface -interface: New metadata identifies the content that is subject to validation of URLSigningsigning and information in the cookie for the type of HAS content o Request Routinginterface - Downstream CDNinterface: The dCDN should inform theUpstream CDNuCDN that it supports URLSigningsigning for known HAS content types in the asynchronous capabilities information advertisement. This allows the CDN selection function in request routing to choose the appropriateDownstream CDNdCDN when the CDNImetadataMetadata identifies the content o CDNI LoggingInterface -interface: Report the authorization method used to validate the request for content delivery Advantages/Drawbacks: + The Manifest File and chunks are protected + The CSP does not need to change the Manifest Files - Requires full HAS awareness on the part ofUpstream CDNthe uCDN andDownstream CDNdCDN - RequiresCDNI Interfacesextensions to CDNI interfaces - Requires the CDN to generate or rewrite the Manifest File - The Manifest File has to be delivered bysurrogatethe Surrogate 3.5.9.RecommendationRecommendations The authors considerthatOption 5.1(Do Nothing) is not suitable(do nothing) unsuitable for access control of HAS content. Where the HTTPCookiecookie mechanism is supported by the targetedUser-User Agents and the security requirements can be addressed through the proper use of HTTPCookies,cookies, the authors recommenduse ofusing Option 5.4 (Authorization Group IDwithand HTTPCookie)cookie) and therefore that Option 5.4 be supported by the CDNI solution. This method does not requiremanifest fileManifest File manipulation, as Manifest File manipulationwhichmay be a significantdeployment obstacle.obstacle to deployment. Otherwise, the authors recommend that Option 5.2(Flexible(flexible URLSigningsigning by the CSP) or Option 5.3(Flexible URI Signing(flexible URL signing by theUpstream CDN)uCDN) be used and therefore that flexibleURIURL signing be supported by the CDNI solution.OptionOptions 5.2 andOption5.3 protect all the content,doesdo not requireDownstream CDN tothat the dCDN be aware of HAS,doesdo not impact CDNI interfaces,supportssupport all different types of devices, andsupportssupport the common cases of request routing for HAS content(i.e.(i.e., DNS-based request routing with asymmetric keys and HTTP-based request routing forRelative URL). HAS-awareness in CDN (Optionrelative URLs). Options 5.5 andOption 5.6)5.6 (HAS awareness in CDNs using HTTP cookies or Manifest Files) have some advantages that should be considered for future support(e.g.(e.g., a CDN that is aware of HAS content can manage the content more efficientlyatin a broadercontext.context). Content distribution, storage, delivery, deletion, access authorization, etc. can allbenefit.).benefit. IncludingHAS-awarenessHAS awareness as part of the current CDNI charter, however, would almost certainly delay the CDNI WG's milestones, and the authors therefore do not recommend it right now. 3.6. Content Purge At some point in time, a uCDN might want to remove content from a dCDN. With regular content, this process can be relatively straightforward; a uCDN will typically send the request for content removal to thedCDNdCDN, including a reference to the contentwhichthat it wants to remove(e.g.(e.g., in the form of a URL).DueHowever, due to the fact that HAS content consists of large groups offiles however,files, things might be more complex. Section 3.1describesdescribed a number of different scenarios for doing file management on these groups of files, while Section 3.2listlisted the options for performingContent Acquisitioncontent acquisition on theseContent Collections.content collections. This sectionwill presentpresents the options for requesting aContent Purgecontent purge for the removal of aContent Collectioncontent collection from a dCDN. 3.6.1. Option 6.1: No HASawarenessAwareness The most straightforward way to signal content purge requests is to just send a single purge request for every file that makes up theContent Collection.content collection. While this method is very simple and does not require HAS awareness, it obviously createsasignaling overhead between the uCDN anddCDNdCDN, since a reference is to be provided for each content chunk to be purged. Effect on CDNI interfaces: o None Advantages/Drawbacks (apart from those already listed under Option 3.3): + Does not require changes to the CDNIInterfacesinterfaces or HAS awareness - Requires individual purge request for every file making up aContent Collectioncontent collection (or, alternatively, requires the ability to convey references to all the chunks making up aContent Collectioncontent collection inside a purgerequest)request), which creates signaling overhead 3.6.2. Option 6.2: Purge Identifiers There exists a potentially more efficient method for performing content removal of large numbers of files simultaneously. By including a "Purge IDentifier (Purge-ID)" in the metadata of a particular file, it is possible to virtually group together different files making up aContent Collection.content collection. A Purge-ID can take the form of an arbitrary number or stringwhichthat is communicated as part of the CDNI MetadataInterfaceinterface, andwhichthat is the same for all files making up a particularContent Item, andcontent item but different across differentContent Items.content items. If a uCDN wants to request that the dCDNtoremove aContent Collection,content collection, it can send a purge request containing this Purge-ID. The dCDN can then remove all files that share the corresponding Purge-ID. The advantage of this method is that it is relatively simple to use by both the dCDN and uCDN andrequiringrequires only limited additions to the CDNI MetadataInterfaceinterface and CDNI ControlInterface.interface. The Purge-ID is similar to theContent Collection IDCCID discussed in Section 3.4.2.2 for handling HASLogginglogging, and we note that further thought is needed to determine whether the CCID and Purge-ID should be collapsed into a single element or remain separate elements. Effect on CDNI interfaces: o CDNI MetadataInterface:interface: Add metadata field for indicatingPurge- IDPurge-ID o CDNI ControlInterface:interface: Add functionality to convey a Purge-ID in purge requests Advantages/Drawbacks: + Allows for efficient purging of content from a dCDN + Does not require HAS awareness on the part of a dCDN 3.6.3.RecommendationRecommendations Based on the listed pros and cons, the authors recommend that the WGtohave mandatory support for Option1.1, the 'Do Nothing'-approach.1.1 (do nothing). In addition, because of its very low complexity and its benefit in facilitating low-overhead purge of large numbers of content items simultaneously, the authors recommend thatthe Purge IDdentifier of Option 6.2Purge-IDs (Option 6.2; see Section 3.6.2) be supported as an optional feature by the CDNI Metadata interface and the CDNI Control interface. 3.7. OtherissuesIssues This section includes some HAS-specific issues that came up during the discussion of thisdraftdocument andwhichthat do not fall under any of the categories discussed in the previous sections. - As described in Section 2.2, a Manifest File mighteitherbe delivered by either a CDN orbytheCSP,CSP and therebybeingbe invisible to the CDN delivering the chunks. Obviously, the decisiononof whether the CDN or CSP delivers the Manifest File is made between the uCDN and CSP, and the dCDN has no choice in the matter. However, some dCDNs might only want to offer their services in the cases where they have access to the Manifest File(e.g.(e.g., because their internal architecture is basedaroundon the knowledge inside the Manifest File). For these cases, it might be useful to include a field in the CDNI Capability Advertisement to allow dCDNs to advertise the fact that they require access to the Manifest File. 4.IANA Considerations This document makes no request of IANA. 5.Security Considerations This document does not discuss security issuesaroundrelated to HTTP or HASdelivery. Thosedelivery, as these topics are expected to be discussed in the CDNI WGdocumentsdocuments, including[I-D.ietf-cdni-framework]. 6.[CDNI-FRAMEWORK]. 5. Acknowledgements The authors would like to thank Kevin Ma, Stef van der Ziel, Bhaskar Bhupalam, Mahesh Viveganandhan, Larry Peterson, BenNiven-JenkinsNiven-Jenkins, and Matt Caulfield for their valuable contributions to this document.7.6. References7.1.6.1. Normative References [RFC6707] Niven-Jenkins, B., Le Faucheur, F., and N. Bitar, "Content Distribution Network Interconnection (CDNI) Problem Statement", RFC 6707, September 2012.7.2.6.2. Informative References[I-D.draft-bertrand-cdni-logging][CDNI-FRAMEWORK] Peterson, L., Ed., and B. Davie, "Framework for CDN Interconnection", Work in Progress, February 2013. [CDNI-LOGGING] Bertrand, G.,Ed. and E.Ed., Stephan, E., Peterkofsky, R., Le Faucheur, F., and P. Grochocki, "CDNI Logging Interface",. [I-D.draft-ietf-cdni-requirements]Work in Progress, October 2012. [CDNI-REQUIREMENTS] Leung,K.K., Ed., and Y. Lee, Ed., "Content Distribution Network Interconnection (CDNI)Requirements, draft-ietf-cdni- requirements-03", June 2012. [I-D.ietf-cdni-framework] Peterson, L. and B. Davie, "Framework for CDN Interconnection", draft-ietf-cdni-framework-03 (workRequirements", Work inprogress), FebruaryProgress, July 2013. [RFC3986] Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform Resource Identifier (URI): GenericSyntax, RFC3986",Syntax", STD 66, RFC 3986, January 2005. Authors' Addresses Ray van Brandenburg TNO Brassersplein 2 Delft 2612CT the Netherlands Phone: +31-88-866-7000Email:EMail: ray.vanbrandenburg@tno.nl Oskar van Deventer TNO Brassersplein 2 Delft 2612CT the Netherlands Phone: +31-88-866-7000Email:EMail: oskar.vandeventer@tno.nl Francois Le Faucheur Cisco SystemsGreenside, 400 Avenue de Roumanille Sophia Antipolis 06410E.Space Park - Batiment D 6254 Allee des Ormes - BP 1200 06254 Mougins cedex France Phone: +33 4 97 23 26 19Email:EMail: flefauch@cisco.com Kent Leung Cisco Systems 170 West Tasman Drive San Jose, CA 95134 USA Phone: +1 408-526-5030Email:EMail: kleung@cisco.com