RFC 8569

Content-Centric Networking (CCNx) Semantics

๐Ÿ“… published July 2019, from ietf

Content-Centric Networking (CCNx) Semantics โœจ

Okay bestie, here's the deal ๐Ÿฆ‹. This RFC is RFC 8569, titled Content-Centric Networking (CCNx) Semantics. It came out in July 2019 from the Internet Research Task Force (IRTF) stream, and it's marked Experimental ๐Ÿงช, so it is not a Standards Track spec. The authors are M. Mosko (PARC, Inc.), I. Solis (LinkedIn), and C. Wood (University of California Irvine). The ISSN is 2070-1721. The title block doesn't list any documents this one obsoletes or updates, so it stands on its own ๐Ÿ’….

Abstract

This doc explains the core ideas behind CCNx (Content-Centric Networking) ๐ŸŒธ. The protocol runs on just two messages, Interests and Content Objects. It lays out which fields are mandatory and which are optional, and it explains how they behave and what they mean. The whole architecture and protocol spec is independent of any particular wire encoding, so the rules don't depend on how the bits get packed.

There's also a control message called an Interest Return. A system uses it to send an Interest back to the previous hop when something goes wrong. It's basically a heads-up to that previous hop saying "I'm not going to respond to this one" ๐Ÿ™ˆ.

This doc came out of the Information-Centric Networking Research Group (ICNRG), and the whole group reviewed it widely. Two full implementations are in active use, and they've helped make the spec technically mature ๐Ÿ”ฅ.

Status of This Memo

Okay, the official status part, but make it cute ๐ŸŽ€. This document is not an Internet Standards Track spec. It's published so people can examine it, try out experimental implementations, and evaluate it.

It defines an Experimental Protocol for the Internet community. It's a product of the Internet Research Task Force (IRTF), which publishes research and development results. Those results might not be ready for deployment. This RFC represents the consensus of the Information-Centric Networking Research Group of the IRTF. Documents approved for publication by the IRSG are not candidates for any level of Internet Standard, so check Section 2 of RFC 7841 if you want the full picture ๐Ÿง.

For the current status, any errata, or to send feedback, go to https://www.rfc-editor.org/info/rfc8569.

Copyright (c) 2019 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 (https://trustee.ietf.org/license-info) as they stood on the date this document was published. Please read those carefully, because they spell out your rights and restrictions for this document ๐Ÿ“œ.

Table of Contents

1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   4
  1.1.  Requirements Language . . . . . . . . . . . . . . . . . .   5
  1.2.  Architecture  . . . . . . . . . . . . . . . . . . . . . .   5
  1.3.  Protocol Overview . . . . . . . . . . . . . . . . . . . .   6
2.  Protocol  . . . . . . . . . . . . . . . . . . . . . . . . . .  10
  2.1.  Message Grammar . . . . . . . . . . . . . . . . . . . . .  10
  2.2.  Consumer Behavior . . . . . . . . . . . . . . . . . . . .  14
  2.3.  Publisher Behavior  . . . . . . . . . . . . . . . . . . .  15
  2.4.  Forwarder Behavior  . . . . . . . . . . . . . . . . . . .  16
    2.4.1.  Interest HopLimit . . . . . . . . . . . . . . . . . .  16
    2.4.2.  Interest Aggregation  . . . . . . . . . . . . . . . .  17
    2.4.3.  Content Store Behavior  . . . . . . . . . . . . . . .  19
    2.4.4.  Interest Pipeline . . . . . . . . . . . . . . . . . .  19
    2.4.5.  Content Object Pipeline . . . . . . . . . . . . . . .  20
3.  Names . . . . . . . . . . . . . . . . . . . . . . . . . . . .  21
  3.1.  Name Examples . . . . . . . . . . . . . . . . . . . . . .  23
  3.2.  Interest Payload ID . . . . . . . . . . . . . . . . . . .  23
4.  Cache Control . . . . . . . . . . . . . . . . . . . . . . . .  23
5.  Content Object Hash . . . . . . . . . . . . . . . . . . . . .  24
6.  Link  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  24
7.  Hashes  . . . . . . . . . . . . . . . . . . . . . . . . . . .  25
8.  Validation  . . . . . . . . . . . . . . . . . . . . . . . . .  25
  8.1.  Validation Algorithm  . . . . . . . . . . . . . . . . . .  25
  8.2.  Message Integrity Codes . . . . . . . . . . . . . . . . .  26
  8.3.  Message Authentication Codes  . . . . . . . . . . . . . .  26
  8.4.  Signature . . . . . . . . . . . . . . . . . . . . . . . .  26
9.  Interest to Content Object Matching . . . . . . . . . . . . .  28
10. Interest Return . . . . . . . . . . . . . . . . . . . . . . .  29
  10.1.  Message Format . . . . . . . . . . . . . . . . . . . . .  30
  10.2.  ReturnCode Types . . . . . . . . . . . . . . . . . . . .  31
  10.3.  Interest Return Protocol . . . . . . . . . . . . . . . .  32
    10.3.1.  No Route . . . . . . . . . . . . . . . . . . . . . .  32
    10.3.2.  HopLimit Exceeded  . . . . . . . . . . . . . . . . .  33
    10.3.3.  Interest MTU Too Large . . . . . . . . . . . . . . .  33
    10.3.4.  No Resources . . . . . . . . . . . . . . . . . . . .  33
    10.3.5.  Path Error . . . . . . . . . . . . . . . . . . . . .  33
    10.3.6.  Prohibited . . . . . . . . . . . . . . . . . . . . .  33
    10.3.7.  Congestion . . . . . . . . . . . . . . . . . . . . .  34
    10.3.8.  Unsupported Content Object Hash Algorithm  . . . . .  34
    10.3.9.  Malformed Interest . . . . . . . . . . . . . . . . .  34
11. IANA Considerations . . . . . . . . . . . . . . . . . . . . . .  34
12. Security Considerations . . . . . . . . . . . . . . . . . . . .  34
13. References  . . . . . . . . . . . . . . . . . . . . . . . . .  37
  13.1.  Normative References . . . . . . . . . . . . . . . . . .  37
  13.2.  Informative References . . . . . . . . . . . . . . . . .  37
Authors' Addresses  . . . . . . . . . . . . . . . . . . . . . . .  40

1. Introduction โœจ

Okay so this section is the big-picture tour of the CCNx architecture ๐Ÿฆ‹. CCNx is a network protocol that uses a hierarchical name to forward requests and to match responses back to them. It does not use endpoint addresses like Internet Protocol does, which is a total vibe shift ๐Ÿ’…. A request can restrict the response by the public key of whoever signed it, or by its cryptographic hash. Every CCNx forwarder along the path does the name matching and the restriction checking ๐Ÿ”ฅ.

CCNx fits into the broader Information-Centric Networking (ICN) protocol family [RFC7927]. This document is all about the semantics, and it doesn't depend on any specific wire encoding. The CCNx Messages document [RFC8609] describes a type-length-value (TLV) wire encoding, so if you want the bits and bytes, go there ๐ŸŒˆ. This section introduces the main concepts, and the rest of the document builds on them ๐ŸŒธ.

The CCNx protocol comes from early ICN work by Jacobson, et al. [nnc]. Jacobson's version is called the 0.x version ("CCNx 0.x"), and this work is called the 1.0 version ("CCNx 1.0"). There are two active implementations of CCNx 1.0 ๐ŸŽ€. The most complete one is Community ICN (CICN) [cicn], a Linux Foundation project hosted at fd.io. Another active one is CCN-lite [ccn-lite], which supports Internet of Things (IoT) systems and the RIOT operating system ๐Ÿงš. CCNx 0.x was the basis for the Named Data Networking (NDN) [ndn] university project.

CCNx 1.0 changes a few big things from CCNx 0.x ๐Ÿ’œ. The most noticeable behavioral difference is that CCNx 1.0 has a simpler response processing behavior, which is honestly iconic. In both versions, a forwarder does a hierarchical longest prefix match of a request's name against the forwarding information base (FIB) to send the request across the network to a system that can issue a response. Then the forwarder must match the response's name to the request's name to work out the reverse path and deliver the response back to the requester. In CCNx 0.x, the Interest name can be a hierarchical prefix of the response name, which gives you a form of Layer 3 (L3) content discovery. In CCNx 1.0, though, a response's name must exactly equal the request's name ๐Ÿ™ˆ. Content discovery is handled by a higher-layer protocol instead.

The selector protocol "CCNx Selectors" [selectors] is one example of a higher-layer protocol doing content discovery on top of CCNx 1.0 L3 ๐Ÿ’…. It uses a method similar to the original CCNx 0.x techniques, but it doesn't need the forwarder to do partial name matching of a response to a request.

This document represents the consensus of the Information-Centric Networking Research Group (ICNRG) ๐Ÿซถ. It's the first ICN protocol from the RG, created from the early CCNx protocol [nnc] with a lot of revision and input from the ICN community and RG members. Several members of the ICN community and the RG gave it critical reading, and the authors and RG chairs approve of the contents. This document is sponsored under the IRTF, is not issued by the IETF, and is not an IETF standard. It's an experimental protocol, so it may not suit every application, and the specification may change in the future โญ.

1.1. Requirements Language

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here ๐ŸŽ€.

1.2. Architecture ๐Ÿ—๏ธ

okay so let's talk architecture, bestie ๐ŸŽ€ we're going to describe the network CCNx lives in and drop some terminology from [terminology] โœจ. The detailed behavior of each component and the message grammar are in Section 2, so if you're a details person, that's where you'll want to be ๐Ÿค“

A producer (also called a "publisher") is an endpoint that encapsulates content in Content Objects for transport in the CCNx network ๐Ÿ“ฆ. A producer has a public/private keypair and signs (directly or indirectly) the Content Objects ๐Ÿ”. Usually, the producer's KeyId (hash of the public key) is well known or may be derived from the producer's namespace via standard means ๐Ÿ—๏ธ it's giving very "you can find me if you know where to look" ๐Ÿ’…

A producer operates within one or more namespaces. A namespace is a name prefix that is represented in the forwarding information base (FIB) ๐Ÿ—บ๏ธ. This allows a request to reach the producer and fetch a response (if one exists) ๐Ÿฆ‹

The FIB is a table that tells a forwarder where to send a request ๐Ÿ“ฌ. It may point to a local application, a local cache or Content Store, or to a remote system ๐ŸŒธ. If there is no matching entry in the FIB, a forwarder cannot process a request ๐Ÿ’€ so no route means no party, periodt. The detailed rules on name matching to the FIB are given in Section 2.4.4 ๐Ÿ“–. An endpoint has a FIB, though it may be a simple default route ๐Ÿงš. An intermediate system (i.e., a router) typically has a much larger FIB ๐Ÿ‘‘. A core CCNx forwarder, for example, would know all the global routes ๐ŸŒˆ

A consumer is an endpoint that requests a name ๐Ÿ™‹โ€โ™€๏ธ. It is beyond the scope of this document to describe how a consumer learns of a name or publisher KeyId ๐Ÿ™ˆ higher-layer protocols built on top of CCNx handle those tasks, such as search engines or lookup services or well-known names. The consumer constructs a request, called an Interest, and forwards it via the endpoint's FIB ๐Ÿ’Œ. The consumer should get back either a response (called a Content Object) that matches the Interest or a control message (called an Interest Return) that indicates the network cannot handle the request โœจ

There are three ways to detect errors in Interest handling, and I am obsessed with how clean this is ๐Ÿ˜ญ An Interest Return is a network control message that indicates a low-level error like "no route" or "out of resources" ๐Ÿšซ. If an Interest arrives at a producer, but the producer does not have the requested content, the producer should send an application-specific error message (e.g., a "not found" message) ๐Ÿซถ. Finally, a consumer may not receive anything; in which case, it should timeout and, depending on the application, retry the request or return an error to the application โฐ the main character energy of waiting for a reply that never comes ๐Ÿ’œ

1.3. Protocol Overview โœจ

okay so the goal of CCNx is to name content and grab it from the network without tying it to one specific network endpoint ๐Ÿฆ‹. A routing system (specified separately) fills up the FIB tables at each CCNx router with hierarchical name prefixes that point toward the content producers under that prefix ๐Ÿ—บ๏ธ. A request then finds matching content along those paths. If it finds a match, a response carries the data. If nothing matches, a control message says the request failed ๐Ÿ’Œ. A request may also narrow down which responses it will accept, with a restriction on the response's signer and on the cryptographic hash of the response. The details of these restrictions are described below ๐Ÿ’….

The CCNx name is a hierarchical series of name segments ๐ŸŽ€. Each name segment has a type and zero or more bytes. Matching two names is a binary comparison of the type and value, done segment by segment. The human-readable form is defined under the URI scheme ccnx: [ccnx-uri], but the canonical encoding of a name is a series of pairs (type, octet string) ๐Ÿงš. There is no requirement that any name segment be human readable or UTF-8, so don't assume it will be ๐Ÿ™ˆ. The first few segments in a name will be matched against the FIB, and a routing protocol may put its own restrictions on the routable name components (e.g., a maximum length or character-encoding rules). In principle, name segments and names have unbounded length, though in practice they are limited by the wire encoding and practical considerations imposed by a routing protocol ๐Ÿ“. Note that in CCNx, name segments use binary comparison, whereas in a URI, the authority uses a case-insensitive hostname (due to DNS). That difference is kind of a big deal, bestie ๐ŸŒธ.

The CCNx name, as used by the forwarder, is purposefully left as a general octet-encoded type and value, with no requirements on human readability and character encoding ๐ŸŒˆ. The reason is that we are concerned with how a forwarder processes names. We expect that applications, routing protocols, or other higher layers will apply their own conventions and restrictions on the allowed name segment types and name segment values. Each layer gets to set its own vibe ๐Ÿ’œ.

CCNx is a request and response protocol that fetches chunks of data using a name ๐Ÿ“. The integrity of each chunk may be directly asserted through a digital signature or Message Authentication Code (MAC), or, alternatively, indirectly via hash chains. Chunks may also carry weaker Message Integrity Codes (MICs), or no integrity protection mechanism at all ๐Ÿ˜ฌ. Because provenance information is carried with each chunk (or larger indirectly protected block), we no longer need to rely on host identities, such as those derived from TLS certificates, to ascertain chunk legitimacy ๐Ÿ”. Therefore, data integrity is a core feature of CCNx, and it does not rely on the data transmission channel. This is the main character energy of the whole protocol ๐Ÿ‘‘. There are several options for data confidentiality, which are discussed later.

This document only defines the general properties of CCNx names ๐Ÿ“. In some isolated environments, CCNx users may be able to use any name they choose and either inject that name (or prefix) into a routing protocol or use other information foraging techniques. In the Internet environment, there will be policies around the formats of names and assignments of names to publishers, though those are not specified here. Those policies are a whole other era, and this doc is not going there ๐Ÿ™…โ€โ™€๏ธ.

The key concept of CCNx is that a subjective name is cryptographically bound to a fixed payload ๐Ÿ’–. These publisher-generated bindings can therefore be cryptographically verified. A named payload is thus the tuple {{Name, ExtraFields, Payload, ValidationAlgorithm}, ValidationPayload}, where all fields in the inner tuple are covered by the validation payload (e.g., signature). Consumers of this data can check the binding integrity by recomputing the same cryptographic hash and verifying the digital signature in ValidationPayload. It's giving airtight ๐Ÿ”’.

In addition to digital signatures (e.g., RSA), CCNx also supports message authentication codes (e.g., Hashed Message Authentication Code (HMAC)) and message integrity codes (e.g., Cyclic Redundancy Checks (CRC)) โœจ. To maintain the cryptographic binding, there should be at least one object with a signature or authentication code, but not all objects require it. For example, a first object with a signature could refer to other objects via a hash chain, a Merkle tree, or a signed manifest. The later objects may not have any validation and rely purely on the references ๐Ÿชข. The use of an integrity code (e.g., CRC) is intended for detecting accidental corruption in an Interest.

CCNx specifies a network protocol around Interests (request messages) and Content Objects (response messages) to move named payloads ๐Ÿ“ฆ. An Interest includes the Name field, which identifies the desired response, and optional matching restrictions. Restrictions limit the possible matching Content Objects. There are two restrictions: the Key ID restriction (KeyIdRestr) and the Content Object Hash restriction (ContentObjectHashRestr) ๐ŸŽฏ. The first one limits responses to those signed with a ValidationAlgorithm KeyId field equal to the restriction. The second is the Content Object Hash restriction, which limits the response to one where the cryptographic hash of the entire named payload is equal to the restriction. Section 9 fully explains how these restrictions limit matching of a Content Object to an Interest. Go read it, it's the good part ๐Ÿ“–.

The hierarchy of a CCNx name is used for routing via the longest matching prefix in a forwarder ๐Ÿ›ฃ๏ธ. The longest matching prefix is computed name segment by name segment in the hierarchical name, where each name segment must be exactly equal to match. There is no requirement that the prefix be globally routable. Within a deployment, any local routing may be used, even one that only uses a single flat (nonhierarchical) name segment ๐ŸŒŸ.

Another concept of CCNx is that there should be flow balance between Interest messages and Content Object messages ๐Ÿฆฉ. At the network level, an Interest traveling along a single path should elicit no more than one Content Object response. If some node sends the Interest along more than one path, that node should consolidate the responses such that only one Content Object flows back towards the requester. If an Interest is sent broadcast or multicast on a multiple-access media, the sender should be prepared for multiple responses, unless some other media-dependent mechanism like gossip suppression or leader election is used ๐Ÿ“ฃ.

As an Interest travels the forward path following the FIB, it establishes state at each forwarder, so a Content Object response can trace its way back to the original requester(s) without the requester needing to include a routable return address ๐Ÿงญ. We use the notional Pending Interest Table (PIT) as a method to store state that facilitates the return of a Content Object. Lowkey genius ๐Ÿง .

The notional PIT stores the last hop of an Interest, plus its Name field and optional restrictions. This is the data required to match a Content Object to an Interest (see Section 9) ๐ŸŽ€. When a Content Object arrives, it must be matched against the PIT to determine which entries it satisfies. For each such entry, at most one copy of the Content Object is sent to each listed last hop in the PIT entries ๐Ÿ’ซ.

An actual PIT is not mandated by this specification. An implementation may use any technique that gives the same external behavior. There are, for example, research papers that use techniques like label switching in some parts of the network to reduce the per-node state incurred by the PIT [dart]. Some implementations store the PIT state in the FIB, so there is not a second table ๐Ÿคฏ.

If multiple Interests with the same {Name, [KeyIdRestr], [ContentObjectHashRestr]} tuple arrive at a node before a Content Object matching the first Interest comes back, they are grouped in the same PIT entry and their last hops are aggregated (see Section 2.4.2). Thus, one Content Object might satisfy multiple pending Interests in a PIT. Efficiency, it's giving ๐Ÿฅฐ.

In CCNx, higher-layer protocols are often called "name-based protocols" because they operate on the CCNx name ๐Ÿซง. For example, a versioning protocol might append additional name segments to convey state about the version of a payload. A content discovery protocol might append certain protocol-specific name segments to a prefix to discover content under that prefix. Many such protocols may exist and apply their own rules to names. They may be layered, with each protocol encapsulating (to the left) a higher layer's name prefix ๐Ÿช†.

This document also describes a control message called an Interest Return ๐Ÿ“ฌ. A network element may return an Interest message to a previous hop if there is an error processing the Interest. The returned Interest may be further processed at the previous hop, or returned towards the Interest origin. When a node returns an Interest, it indicates that the previous hop should not expect a response from that node for the Interest, i.e., there is no PIT entry left at the returning node for a Content Object to follow. Basically a "nope, not this one" message ๐Ÿ™…โ€โ™€๏ธ.

There are multiple ways to describe larger objects in CCNx ๐Ÿงฉ. Aggregating L3 Content Objects into larger objects is beyond the scope of this document. One proposed method, File-Like ICN Collection (FLIC) [flic], uses a manifest to enumerate the pieces of a larger object. Manifests are, themselves, Content Objects. Another option is to use a convention in the Content Object name, as in the CCNx Chunking [chunking] protocol, where a large object is broken into small chunks and each chunk receives a special name component indicating its serial order ๐Ÿฐ.

At the semantic level, described in this document, we do not address fragmentation ๐Ÿ™Š. One experimental fragmentation protocol, BeginEnd Fragments [befrags], uses a multipoint PPP-style technique for use over L2 interfaces, with the specification for CCNx Messages [RFC8609] in TLV wire encoding ๐Ÿ”ง.

With these concepts, the remainder of the document specifies the behavior of a forwarder in processing Interest, Content Object, and Interest Return messages ๐ŸŒท.


2. Protocol ๐Ÿ’–

This section defines the grammar of a CCNx Message (Interest, Content Object, or Interest Return). It then presents typical behaviors for a consumer, a publisher, and a forwarder ๐ŸŽ€. In the forwarder section, there are detailed descriptions of how to handle the forwarder-specific topics, such as HopLimit and Content Store, along with detailed processing pipelines for Interest and Content Object messages. It's a lot, but we're literally about to get into the good stuff ๐Ÿซถโœจ.

2.1. Message Grammar

okay so this is the part where we get into the actual grammar, and bestie, it's giving precision ๐Ÿ’…โœจ The CCNx Message ABNF [RFC5234] grammar is shown in Figure 1. ๐ŸŽ€ The grammar doesn't include any encoding delimiters, like TLVs ๐Ÿงš. Specific wire encodings get their own separate document, so don't look for them here ๐Ÿ™ˆ. If a Validation section exists, the Validation Algorithm covers everything from the Body (BodyName or BodyOptName) through the end of the ValidationAlg section ๐Ÿ”ฅ. The InterestLifetime, CacheTime, and Return Code fields sit outside of the validation envelope, which means they may be modified ๐Ÿฆ‹.

HashType, PayloadType, and Private Enterprise Number (PEN) need to match IANA values registered in the "CCNx Hash Function Types" and "CCNx Payload Types" registries [ccnx-registry], and also the "Private Enterprise Numbers" registry [eprise-numbers], respectively ๐ŸŒธ. Main character registry energy ๐Ÿ‘‘.

The various fields, in alphabetical order, are defined as:

AbsTime: Absolute times are conveyed as the 64-bit UTC time in milliseconds since the epoch (standard POSIX time). ๐Ÿ•ฐ๏ธโœจ

CacheTime: The absolute time after which the publisher believes there is low value in caching the Content Object. This is a recommendation to caches (see Section 4). ๐Ÿ’œ

Cert: Some applications may wish to embed an X.509 certificate to both validate the signature and provide a trust anchor. The Cert is a DER-encoded X.509 certificate. ๐ŸŽ€

ConObjField: These are optional fields that may appear in a Content Object. ๐ŸŒˆ

ConObjHash: The value of the Content Object Hash, which is the SHA256-32 over the message from the beginning of the body to the end of the message. Note that this coverage area is different from the ValidationAlg. This value SHOULD NOT be trusted across domains (see Section 5). ๐Ÿ’€ Not the vibe, so don't trust it across domains, periodt ๐Ÿ™…โ€โ™€๏ธ.

ContentObjectHashRestr: The Content Object Hash restriction. A Content Object must hash to the same value as the restriction using the same HashType. The ContentObjectHashRestr MUST use SHA256-32. ๐Ÿ“ This one is strict, no cap.

ExpiryTime: An absolute time after which the Content Object should be considered expired (see Section 4). โญ

Hash: Hash values carried in a Message carry a HashType to identify the algorithm used to generate the hash, followed by the hash value. This form is to allow hash agility. Some fields may mandate a specific HashType. ๐Ÿฆ‹

HashType: The algorithm used to calculate a hash, which must correspond to one of the IANA "CCNx Hash Function Types" [ccnx-registry]. ๐ŸŒธ

HopLimit: Interest messages may loop if there are loops in the forwarding plane. To eventually terminate loops, each Interest carries a HopLimit that is decremented after each hop and no longer forwarded when it reaches zero. See Section 2.4. ๐Ÿ”โœจ

InterestField: These are optional fields that may appear in an Interest message. ๐Ÿงš

KeyId: An identifier for the key used in the ValidationAlg. See Validation (Section 8) for a description of how it is used for MACs and signatures. ๐Ÿ”‘

KeyIdRestr: The KeyId Restriction. A Content Object must have a KeyId with the same value as the restriction. ๐Ÿ’–

KeyLink: A Link (see Section 6) that names how to retrieve the key used to verify the ValidationPayload (see Section 8). ๐Ÿ—๏ธ

Lifetime: The approximate time during which a requester is willing to wait for a response, usually measured in seconds. It is not strongly related to the network round-trip time, though it must necessarily be larger. โณ

Name: A name is made up of a nonempty first segment followed by zero or more additional segments, which may be of 0 length. Name segments are opaque octet strings and are thus case sensitive if encoding UTF-8. An Interest MUST have a Name. A Content Object MAY have a Name (see Section 9). The segments of a name are said to be complete if its segments uniquely identify a single Content Object. A name is exact if its segments are complete. An Interest carrying a full name is one that specifies an exact name and the Content Object Hash restriction of the corresponding Content Object. ๐Ÿท๏ธ๐Ÿ’…

Payload: The message's data, as defined by PayloadType. ๐Ÿ“ฆ

PayloadType: The format of the Payload field. If missing, assume Data type (T_PAYLOADTYPE_DATA) [ccnx-registry]. Data type means the payload is opaque application bytes. Key type (T_PAYLOADTYPE_KEY [ccnx-registry]) means the payload is a DER-encoded public key or X.509 certificate. Link type (T_PAYLOADTYPE_LINK [ccnx-registry]) means it is one or more Links (see Section 6). ๐ŸŽ

PublicKey: Some applications may wish to embed the public key used to verify the signature within the message itself. The PublickKey is DER encoded. ๐Ÿ”

RelTime: A relative time, measured in milliseconds. โฑ๏ธ

ReturnCode: States the reason an Interest message is being returned to the previous hop (see Section 10.2). ๐Ÿ”™

SigTime: The absolute time (UTC milliseconds) when the signature was generated. The signature time only applies to the validation algorithm; it does not necessarily represent when the validated message was created. โœ๏ธ

Vendor: Vendor-specific opaque data. The Vendor data includes the IANA Private Enterprise Numbers [eprise-numbers], followed by vendor-specific information. CCNx allows vendor-specific data in most locations of the grammar. ๐Ÿช

Here's the full grammar, bestie. Don't touch a single character ๐Ÿซถ:

   Message       = Interest / ContentObject / InterestReturn
   Interest      = IntHdr BodyName [Validation]
   IntHdr        = HopLimit [Lifetime] *Vendor
   ContentObject = ConObjHdr BodyOptName [Validation]
   ConObjHdr     = [CacheTime / ConObjHash] *Vendor
   InterestReturn= ReturnCode Interest
   BodyName      = Name Common
   BodyOptName   = [Name] Common
   Common        = *Field [Payload]
   Validation    = ValidationAlg ValidationPayload

   Name          = FirstSegment *Segment
   FirstSegment  = 1*OCTET / Vendor
   Segment       = *OCTET / Vendor

   ValidationAlg = (RSA-SHA256 / EC-SECP-256K1 / EC-SECP-384R1 /
                    HMAC-SHA256 / CRC32C) *Vendor
   ValidationPayload = 1*OCTET
   PublicAlg     = KeyId [SigTime] [KeyLink] [PublicKey] [Cert]
   RSA-SHA256    = PublicAlg
   EC-SECP-256K1 = PublicAlg
   EC-SECP-384R1 = PublicAlg
   HMAC-SHA256   = KeyId [SigTime] [KeyLink]
   CRC32C        = [SigTime]

   AbsTime       = 8OCTET ; 64-bit UTC msec since epoch
   CacheTime     = AbsTime
   ConObjField   = ExpiryTime / PayloadType
   ConObjHash    = Hash
   ExpiryTime    = AbsTime
   Field         = InterestField / ConObjField / Vendor
   Hash          = HashType 1*OCTET
   HashType      = 2OCTET ; IANA "CCNx Hash Function Types"
   HopLimit      = OCTET
   InterestField = KeyIdRestr / ContentObjectHashRestr
   KeyId         = Hash
   KeyIdRestr    = Hash
   KeyLink       = Link
   Lifetime      = RelTime
   Link          = Name [KeyIdRestr] [ContentObjectHashRestr]
   ContentObjectHashRestr  = Hash
   Payload       = *OCTET
   PayloadType   = OCTET ; IANA "CCNx Payload Types"
   PublicKey     = *OCTET ; DER-encoded public key
   Cert          = *OCTET ; DER-encoded X.509 Certificate
   RelTime       = 1*OCTET ; msec
   ReturnCode    = OCTET ; see Section 10.2
   SigTime       = AbsTime
   Vendor        = PEN *OCTET
   PEN           = 1*OCTET ; IANA "Private Enterprise Number"

                    Figure 1: CCNx Message ABNF Grammar

2.2. Consumer Behavior

okay bestie, now we're talking consumer behavior, and this is where it gets really fun ๐ŸŽ€โœจ To request a piece of content for a given {Name, [KeyIdRest], [ContentObjectHashRestr]} tuple, a consumer creates an Interest message with those values ๐Ÿ’Œ. It MAY add a validation section, typically only a CRC32C ๐ŸŒธ. A consumer MAY put a Payload field in an Interest to send additional data to the producer beyond what is in the name ๐Ÿ“ฆ. The name is used for routing and may be remembered at each hop in the notional PIT to facilitate returning a Content Object ๐Ÿงญ. Storing large amounts of state in the name could lead to high memory requirements, so don't go wild with it ๐Ÿ™ˆ. Because the payload is not considered when forwarding an Interest or matching a Content Object to an Interest, a consumer SHOULD put an Interest Payload ID (see Section 3.2) as part of the name ๐Ÿท๏ธ. That lets a forwarder match Interests to Content Objects and avoid aggregating Interests with different payloads ๐Ÿ’–. Similarly, if a consumer uses a MAC or a signature, it SHOULD also include a unique segment as part of the name ๐Ÿ”. That way the Interest doesn't get aggregated with other Interests, or satisfied by a Content Object that has no relation to the validation ๐Ÿ™…โ€โ™€๏ธ.

The consumer SHOULD specify an InterestLifetime, which is the length of time the consumer is willing to wait for a response ๐Ÿ’…. The InterestLifetime is an application-scale time, not a network round-trip time (see Section 2.4.2) โณ. If not present, the InterestLifetime will use a default value (2 seconds) โฑ๏ธ.

The consumer SHOULD set the Interest HopLimit to a reasonable value or use the default 255 ๐Ÿฆ‹. If the consumer knows the distances to the producer via routing, it SHOULD use that value ๐Ÿ—บ๏ธ.

A consumer hands off the Interest to its first forwarder, which will then forward the Interest over the network to a publisher (or replica) that may satisfy it based on the name (see Section 2.4) ๐Ÿš€.

Interest messages are unreliable ๐Ÿ˜ญ. A consumer SHOULD run a transport protocol that will retry the Interest if it goes unanswered, up to the InterestLifetime ๐Ÿ”. No transport protocol is specified in this document ๐Ÿคทโ€โ™€๏ธ.

The network MAY send to the consumer an Interest Return message that indicates the network cannot fulfill the Interest ๐Ÿ”™. The ReturnCode specifies the reason for the failure, such as no route or congestion ๐Ÿšง. Depending on the ReturnCode, the consumer MAY retry the Interest or MAY return an error to the requesting application ๐Ÿ’€.

If the content was found and returned by the first forwarder, the consumer will receive a Content Object ๐ŸŽ. The consumer uses the following set of checks to validate a received Content Object ๐Ÿ‘‘:

  • The consumer MUST ensure the Content Object is properly formatted. โœ…
  • The consumer MUST verify that the returned Content Object matches one or more pending Interests as per Section 9. ๐Ÿ”
  • If the Content Object is signed, the consumer SHOULD cryptographically verify the signature as per Section 8. If it does not have the corresponding key, it SHOULD fetch the key, such as from a key resolution service or via the KeyLink ๐Ÿ”.
  • If the signature has a SigTime, the consumer MAY use that in considering if the signature is valid. For example, if the consumer is asking for dynamically generated content, it should expect the SigTime not to be before the time the Interest was generated โฐ.
  • If the Content Object is signed, the consumer SHOULD assert the trustworthiness of the signing key to the namespace. Such an assertion is beyond the scope of this document, though one may use traditional PKI methods, a trusted key resolution service, or methods like [trust] ๐Ÿค.
  • The consumer MAY cache the Content Object for future use, up to the ExpiryTime if present ๐Ÿ’พ.
  • The consumer MAY accept a Content Object off the wire that is expired. A packet Content Object may expire while in flight; there is no requirement that forwarders drop expired packets in flight. The only requirement is that Content Stores, caches, or producers MUST NOT respond with an expired Content Object ๐Ÿซ โœจ.

2.3. Publisher Behavior ๐ŸŽ€

okay bestie, so this part is all about publishers, the ones who actually make the content ๐Ÿงš no cap this section is lowkey so important. first up, this doc doesn't say how names end up in a FIB table at forwarders (that's Section 2.4 ๐Ÿซถ). a publisher is either configured with one or more name prefixes it's allowed to make content under, OR it picks its own prefixes and tells the routing layer to advertise them. โœจ it's giving choose-your-own-adventure energy tbh.

when a publisher gets an Interest, it SHOULD:

  • Verify that the Interest is part of the publisher's namespace(s). ๐Ÿ’…
  • If the Interest has a Validation section, verify it as per Section 8. Usually an Interest will only have a CRC32C, unless the publisher app specifically accommodates other validations. The publisher MAY choose to drop Interests that carry a Validation section if the app doesn't expect those signatures, bc that could be a form of computational denial of service ๐Ÿ’€ (not it!!). If the signature needs a key the publisher doesn't have, it is NOT RECOMMENDED that the publisher fetch the key over the network, unless that's part of the app's expected behavior. ๐Ÿ™ˆ
  • Retrieve or generate the requested Content Object and send it back to the Interest's previous hop. If the content can't be returned, the publisher SHOULD reply with an Interest Return or a Content Object with an application payload saying the content isn't available ๐ŸŒธ. That Content Object should have a short ExpiryTime in the future, or not be cacheable (i.e., an expiry time of 0). ๐Ÿฆ‹

2.4. Forwarder Behavior ๐Ÿ‘‘

a forwarder routes Interest messages based on a Forwarding Information Base (FIB), returns Content Objects that match Interests to the Interest's previous hop, and processes Interest Return control messages. โœจ it can also keep a cache of Content Objects in the notional Content Store table. this doc doesn't specify the forwarder's internal behavior, just these and other external behaviors. ๐Ÿงš

we're gonna use two processing pipelines here: one for Interests and one for Content Objects ๐ŸŒˆ. Interest processing is: checking for duplicate Interests in the PIT (see Section 2.4.2), checking for a cached Content Object in the Content Store (see Section 2.4.3), and forwarding an Interest via the FIB. Content Store processing is: checking for matching Interests in the PIT and forwarding to those previous hops. ๐Ÿ’–

2.4.1. Interest HopLimit ๐Ÿ“

okay so Interest looping is not prevented in CCNx ๐Ÿ˜ญ. instead, an Interest that's going around in loops eventually gets discarded using the hop-limit field, which gets decremented at each hop the Interest traverses. ๐Ÿ”ฅ

a loop can also end because the Interest is aggregated with its previous PIT entry along the loop. in that case, the Content Object gets sent back along the loop and eventually lands on a node that already forwarded the content, so it probably won't have a PIT entry anymore ๐Ÿ™ˆ. when the content reaches a node without a PIT entry, it gets discarded. maybe a new Interest or another looped Interest will come back to that same node, and then the node returns a cached response to make a new PIT entry, as described below. โœจ

the HopLimit is the last-resort way to stop Interest loops, where a Content Object chases an Interest around a loop and the intermediate nodes, for whatever reason, no longer have a PIT entry and don't cache the Content Object. ๐Ÿ’€ it's the backup plan, bestie.

Every Interest MUST carry a HopLimit. ๐Ÿซถ an Interest received from a local application MAY have a 0 HopLimit, which restricts the Interest to other local sources. ๐ŸŽ€

when an Interest comes in from another forwarder, the HopLimit MUST be positive, otherwise the forwarder will discard the Interest ๐Ÿ˜ญ. a forwarder MUST decrement the HopLimit of an Interest by at least 1 before it's forwarded. ๐Ÿ’…

if the decremented HopLimit equals 0, the Interest MUST NOT be forwarded to another forwarder ๐Ÿ™…โ€โ™€๏ธ; it MAY be sent to a local publisher application or serviced from a local Content Store. ๐ŸŒธ

a RECOMMENDED HopLimit-processing pipeline looks like this:

  • If Interest received from a remote system:
    • If received HopLimit is 0, optionally send Interest Return (HopLimit Exceeded), and discard Interest.
    • Otherwise, decrement the HopLimit by 1.
  • Process as per Content Store and Aggregation rules.
  • If the Interest will be forwarded:
    • If the (potentially decremented) HopLimit is 0, restrict forwarding to the local system.
    • Otherwise, forward as desired to local or remote systems.

2.4.2. Interest Aggregation ๐Ÿฆ‹

interest aggregation is when a forwarder gets an Interest that could be satisfied by the response to another Interest it already forwarded. so the forwarder suppresses forwarding the new one, and only records the extra previous hop, so one Content Object sent back for the first Interest satisfies both ๐Ÿงšโœจ.

CCNx uses an Interest aggregation rule that treats the InterestLifetime like a subscription time, NOT a network round-trip time ๐Ÿ”ฅ. some older aggregation rules assumed the lifetime was an RTT, but that causes problems: the Interest can expire before a response shows up if the RTT was estimated too short, or it interferes with an Automatic Repeat reQuest (ARQ) scheme that wants to retransmit but a prior Interest overestimated the RTT. ๐Ÿ˜ญ

a forwarder MAY implement an Interest aggregation scheme. if it doesn't, it'll forward all Interest messages. that doesn't mean multiple, possibly identical, Content Objects will come back ๐Ÿ’–. a forwarder MUST still satisfy all pending Interests, so one Content Object can satisfy multiple similar Interests, even if the forwarder didn't suppress duplicate Interest messages. ๐Ÿซถ

a RECOMMENDED Interest aggregation scheme goes like this:

  • Two Interests are considered "similar" if they have the same Name, KeyIdRestr, and ContentObjectHashRestr, where a missing optional field in one must be missing in the other. ๐Ÿ’…
  • Let the notional value InterestExpiry (a local value at the forwarder) be equal to the receive time plus the InterestLifetime (or a platform-dependent default value if not present). โญ
  • An Interest record (PIT entry) is considered invalid if its InterestExpiry time is in the past. ๐Ÿ’€
  • The first reception of an Interest MUST be forwarded. ๐Ÿ‘‘
  • A second or later reception of an Interest similar to a valid pending Interest from the same previous hop MUST be forwarded. We consider these a retransmission request. ๐ŸŒˆ
  • A second or later reception of an Interest similar to a valid pending Interest from a new previous hop MAY be aggregated (not forwarded). If this Interest has a larger HopLimit than the pending Interest, it MUST be forwarded. ๐ŸŽ€
  • Aggregating an Interest MUST extend the InterestExpiry time of the Interest record. An implementation MAY keep a single InterestExpiry time for all previous hops, or MAY keep the InterestExpiry time per previous hop. In the first case, the forwarder might send a Content Object down a path that's no longer waiting for it, in which case the previous hop (next hop of the Content Object) would drop it. ๐Ÿ™ˆ

2.4.3. Content Store Behavior ๐ŸŒธ

the Content Store is a special cache that's an integral part of a CCNx forwarder. it's optional ๐Ÿฆ‹. it serves to repair lost packets and handle flash requests for popular content. it could be prepopulated or use opportunistic caching. โญ because the Content Store could be used to amplify an attack via cache poisoning, there are special rules about how it behaves. ๐Ÿ˜ญ

  1. A forwarder MAY implement a Content Store. If it does, the Content Store matches a Content Object to an Interest via the normal matching rules (see Section 9). ๐Ÿ’–
  2. If an Interest has a KeyId restriction, then the Content Store MUST NOT reply unless it knows the signature on the matching Content Object is correct. It may do this by external knowledge (i.e., in a managed network or system with prepopulated caches) or by having the public key and cryptographically verifying the signature. A Content Store is NOT REQUIRED to verify signatures; if it doesn't, then it treats these cases like a cache miss. ๐Ÿซถ
  3. If a Content Store chooses to verify signatures, then it MAY do so as follows. If the public key is provided in the Content Object itself (i.e., in the PublicKey field) or in the Interest, the Content Store MUST verify that the public key's hash is equal to the KeyId and that it verifies the signature (see Section 8.4). A Content Store MAY verify the digital signature of a Content Object before it is cached, but it is not required to do so. A Content Store SHOULD NOT fetch keys over the network. If it cannot or has not yet verified the signature, it should treat the Interest as a cache miss. ๐ŸŽ€
  4. If an Interest has a Content Object Hash restriction, then the Content Store MUST NOT reply unless it knows the matching Content Object has the correct hash. If it cannot verify the hash, then it should treat the Interest as a cache miss. ๐Ÿ”ฅ
  5. It must obey the cache control directives (see Section 4). ๐Ÿ‘‘

2.4.4. Interest Pipeline ๐Ÿ’…

  1. Perform the HopLimit check (see Section 2.4.1). ๐Ÿงš
  2. If the Interest carries a validation, such as a MIC or a signature with an embedded public key or certificate, a forwarder MAY validate the Interest as per Section 8. A forwarder SHOULD NOT fetch keys via a KeyLink. If the forwarder drops an Interest due to failed validation, it MAY send an Interest Return (Section 10.3.9). ๐ŸŒˆ
  3. Determine if the Interest can be aggregated as per Section 2.4.2. If it can be, aggregate and do not forward the Interest. ๐Ÿ’–
  4. If forwarding the Interest, check for a hit in the Content Store as per Section 2.4.3. If a matching Content Object is found, return it to the Interest's previous hop. This injects the Content Store as per Section 2.4.5. โœจ
  5. Look up the Interest in the FIB. Longest Prefix Match (LPM) is performed name segment by name segment (not byte or bit). It SHOULD exclude the Interest's previous hop. If a match is found, forward the Interest. If no match is found, or the forwarder chooses not to forward due to a local condition (e.g., congestion), it SHOULD send an Interest Return message as per Section 10. ๐Ÿซถ

2.4.5. Content Object Pipeline โœจ

  1. okay so a forwarder that gets a Content Object RECOMMENDED to double-check it came from an expected previous hop ๐Ÿ•ต๏ธโ€โ™€๏ธ. An expected previous hop is either one the FIB points to, or one the PIT recorded as having had a matching Interest sent that way.
  2. A Content Object MUST be matched to every pending Interest that satisfies the matching rules (see Section 9) ๐Ÿ’–. Each satisfied pending Interest MUST then be removed from the set of pending Interests, so nobody gets served twice.
  3. A forwarder SHOULD NOT send more than one copy of the received Content Object to the same Interest previous hop ๐Ÿ™…โ€โ™€๏ธ. It can happen that two Interests ask for the same Content Object in different ways (say, by name and by name and KeyId) and both come from the same previous hop. Sending the same Content Object multiple times on the same interface, like Ethernet, is totally normal if it's heading to different previous hops โœจ.
  4. A Content Object SHOULD only be put in the Content Store if it satisfied an Interest (and passed rule #1 above) ๐Ÿ›ก๏ธ. This is how we keep cache poisoning chances low, bestie. Not me letting random junk into the cache ๐Ÿ’….

3. Names ๐ŸŽ€

A CCNx name is a composition of name segments ๐Ÿงฉ. Each name segment carries a label that tells you its purpose, plus a value. Some segments are general names, and others have specific jobs, like carrying version info or sequencing many chunks of a big object into smaller, signed Content Objects ๐Ÿฆ‹.

There are three types of names in CCNx: prefix, exact, and full names ๐Ÿ’œ. A prefix name doesn't uniquely identify a single Content Object. It's more like a namespace, or a prefix of an existing Content Object name. An exact name uniquely identifies the name of a Content Object. A full name is an exact name that comes with an explicit or implicit ConObjHash. The ConObjHash is explicit in an Interest and implicit in a Content Object ๐Ÿ”.

Note that a forwarder doesn't need to know any semantics about a name, lowkey iconic ๐Ÿ’โ€โ™€๏ธ. It just needs to match a prefix to forward Interests, and match an exact or full name to forward Content Objects. It doesn't care about the name segment types at all.

The name segment labels in this document are listed in Table 1 ๐Ÿ“‹. Name Segment is a general name segment, usually showing up in the routable prefix and the user-specified content name. Interest Payload ID is a name segment that identifies the Interest's payload. Application Components are a set of name segment types reserved for application use ๐ŸŒธ.

+-------------+-----------------------------------------------------+
|     Type    | Description                                         |
+-------------+-----------------------------------------------------+
|     Name    | A generic name segment that includes arbitrary      |
|   Segment   | octets.                                             |
|             |                                                     |
|   Interest  | An octet string that identifies the payload carried |
|  Payload ID | in an Interest.  As an example, the Payload ID      |
|             | might be a hash of the Interest Payload.  This      |
|             | provides a way to differentiate between Interests   |
|             | based on the payload solely through a name segment  |
|             | without having to include all the extra bytes of    |
|             | the payload itself.                                 |
|             |                                                     |
| Application | An application-specific payload in a name segment.  |
|  Components | An application may apply its own semantics to these |
|             | components.  A good practice is to identify the     |
|             | application in a name segment prior to the          |
|             | application component segments.                     |
+-------------+-----------------------------------------------------+

                     Table 1: CCNx Name Segment Types

At the lowest level, a forwarder doesn't need to understand what name segments mean ๐Ÿคทโ€โ™€๏ธ. It only has to find where each name segment begins and ends, and be able to compare two name segments (both label and value) for equality. The forwarder matches names segment by segment against its forwarding table to pick a next hop ๐Ÿงš.


3.1. Name Examples ๐Ÿ’…

This section uses the CCNx URI [ccnx-uri] representation of CCNx names ๐ŸŒˆ. Heads up: per the message grammar, an Interest must have a Name with at least one name segment, and that segment must have at least 1 octet of value ๐Ÿ™ˆ. A Content Object must have a similar name or no name at all. The FIB, though, can have 0-length names (a default route), or a first name segment with no value, or a regular name ๐Ÿ’–.

+--------------------------+----------------------------------------+
|           Name           | Description                            |
+--------------------------+----------------------------------------+
|          ccnx:/          | A 0-length name, corresponds to a      |
|                          | default route.                         |
|                          |                                        |
|       ccnx:/NAME=        | A name with 1 segment of 0 length,     |
|                          | distinct from ccnx:/.                  |
|                          |                                        |
| ccnx:/NAME=foo/APP:0=bar | A 2-segment name, where the first      |
|                          | segment is of type NAME and the second |
|                          | segment is of type APP:0.              |
+--------------------------+----------------------------------------+

                        Table 2: CCNx Name Examples

3.2. Interest Payload ID ๐Ÿฆ‹

An Interest can also carry a Payload field ๐Ÿ“ฆ. That field holds state about the Interest, but it's not used to match a Content Object. If an Interest has a payload, the Interest name should contain an Interest Payload ID (IPID) ๐ŸŽ€. The IPID lets a PIT entry correctly multiplex Content Objects in response to a specific Interest with a specific payload ID. The IPID could come from a hash of the payload, or it could be a Globally Unique Identifier (GUID) or a nonce. An optional Metadata field defines the IPID field, so other systems can verify it (like when it's derived from a hash of the payload). No system is required to verify the IPID ๐Ÿค.


4. Cache Control ๐Ÿ“

CCNx supports two fields that affect cache control ๐Ÿง. They decide how a cache or Content Store handles a Content Object. They aren't used on the fast path. They only decide whether a Content Object can be injected onto the fast path in response to an Interest โšก.

The ExpiryTime is a field inside the signature envelope of a Validation Algorithm โฐ. It's the UTC time in milliseconds after which the Content Object is considered expired and MUST no longer be used to respond to an Interest from a cache ๐Ÿฅ€. Stale content MAY be flushed from the cache ๐Ÿงน.

The Recommended Cache Time (RCT) is a field outside the signature envelope ๐Ÿ“ฎ. It's the UTC time in milliseconds after which the publisher considers the Content Object to be of low value to cache. A cache SHOULD discard it after the RCT, though it MAY keep it and still respond with it ๐Ÿคธโ€โ™€๏ธ. A cache MAY also discard the Content Object before the RCT time. There's no contractual obligation to remember anything, bestie ๐Ÿซ .

This setup lets a producer create a Content Object with a long ExpiryTime but a short RCT, then keep republishing that same signed Content Object over and over by extending the RCT ๐Ÿ”. It's a form of "phone home," where the publisher wants to check now and then that people are actually using the content ๐Ÿ‘€.


5. Content Object Hash ๐ŸŒธ

CCNx lets an Interest restrict a response to a specific hash ๐ŸŽฏ. The hash covers the Content Object message body and the validation sections, if present. So if a Content Object is signed, its hash includes that signature value. The hash does not include the fixed or hop-by-hop headers of a Content Object. Because it's part of the matching rules (see Section 9), the hash gets used at every hop ๐Ÿ”—.

There are two options for matching the Content Object Hash restriction in an Interest ๐Ÿง. Option one: a forwarder computes the hash value itself and compares it to the restriction. That's an expensive operation ๐Ÿ’ธ. Option two: a border device computes the hash once and puts the value in a header (ConObjHash) that gets carried through the network ๐Ÿšช. Option two, of course, removes any security properties from matching the hash, so it SHOULD only be used within a trusted domain ๐Ÿ”. The header SHOULD be removed when crossing a trust boundary ๐Ÿ›‘. Trust me, this part matters ๐Ÿ’€.


A Link is the tuple {Name, [KeyIdRestr], [ContentObjectHashRestr]} ๐Ÿ’ž. The information in a Link is the set of Interest fields that would retrieve the Link target. A Content Object with PayloadType of "Link" is an object whose payload is one or more Links. This tuple can be used as a KeyLink to identify a specific object with the certificate-wrapped key ๐Ÿ—๏ธ. It is RECOMMENDED to include at least one of either a KeyId restriction or a Content Object Hash restriction ๐Ÿซถ. If neither restriction is present, then any Content Object with a matching name from any publisher could be returned. Yikes, that's giving chaos ๐Ÿ˜ญ.


7. Hashes ๐Ÿ”ฅ

Several protocol fields use cryptographic hash functions ๐Ÿงฎ. These must be secure against attack and collisions. Since these hash functions change over time, with better ones showing up and old ones falling to attacks, it's important that a CCNx protocol implementation supports hash agility ๐Ÿ”„. That's the main character energy for crypto ๐Ÿ‘‘.

In this document we suggest certain hashes (e.g., SHA-256), but a specific implementation may use whatever it deems best ๐Ÿ’…. The normative CCNx Messages [RFC8609] specification should be taken as the definition of acceptable hash functions and uses ๐Ÿ“š.


8. Validation ๐Ÿ‘‘

8.1. Validation Algorithm ๐Ÿงšโ€โ™€๏ธ

The Validator is made of a ValidationAlgorithm, which specifies how to verify the message, and a ValidationPayload, which contains the validation output, like the digital signature or MAC โœ๏ธ. The ValidationAlgorithm section defines the type of algorithm to use and includes any extra info it needs. The validation is calculated from the beginning of the CCNx Message through the end of the ValidationAlgorithm section (so up to, but not including, the validation payload). We call this the validation region ๐Ÿ—บ๏ธ. The ValidationPayload is the integrity value bytes, like a MAC or signature.

The CCNx Message Grammar (Section 2.1) shows the allowed validation algorithms and their structure ๐Ÿ“. For a Vendor algorithm, the vendor can use any structure it wants ๐ŸŽจ. A Validator can only be applied to an Interest or a Content Object, not an Interest Return. An Interest inside an Interest Return still has the original validator, if it has one ๐Ÿ”.

The grammar allows multiple Vendor extensions to the validation algorithm ๐Ÿงฉ. It's up to the vendor to describe the validation region for each extension. A vendor might, for example, use a regular signature in the validation algorithm and then append a proprietary MIC, so the network can do error checking without expensive signature verification ๐Ÿ› ๏ธ. As part of this specification, though, we don't allow multiple Validation Algorithm blocks apart from these vendor methods ๐Ÿ™…โ€โ™€๏ธ.

8.2. Message Integrity Codes ๐Ÿงต

Okay so if the validation algorithm is CRC32C, the validation payload is just the CRC output over the validation region ๐ŸŽ€. This one lets you add an optional signature time (SigTime) to timestamp when the message got validated. Calling it a "signature" time is kinda a misnomer ngl ๐Ÿ™ˆ, but we reuse the same field for MICs, MACs, and signatures so everything stays consistent โœจ.

MICs are usually slapped on an Interest to catch accidental corruption in the network ๐Ÿฆ‹. They are usually not used on Content Objects, bestie, because those objects are either signed or linked to by hash chains, so the CRC32C is redundant ๐Ÿ’….

8.3. Message Authentication Codes ๐Ÿ”

If the validation algorithm is HMAC-SHA256, the validation payload is the HMAC output over the validation region ๐Ÿ’œ. This one requires a KeyId and allows a signature time (SigTime) and a KeyLink.

The KeyId identifies the shared secret that two parties use to authenticate messages ๐Ÿซถ. These secrets SHOULD be derived from a key exchange protocol such as [ccnx-ke]. The KeyId for a shared secret SHOULD be an opaque identifier, not derived from the actual key. An integer counter, for example, is a good choice ๐Ÿ“.

The signature time is the timestamp for when the authentication code was computed and added to the messages โฐ.

The KeyLink field in a MAC indicates how to negotiate keys and should point toward the key exchange endpoint ๐Ÿ”—. The use of a key negotiation algorithm is beyond the scope of this specification, and a key negotiation algorithm is not required to use this field ๐Ÿ™Œ.

8.4. Signature โœ๏ธ

Signature-validation algorithms use public key cryptographic algorithms such as RSA and the Elliptic Curve Digital Signature Algorithm (ECDSA) ๐ŸŒˆ. This specification and the corresponding wire encoding [RFC8609] only support three specific signature algorithms: RSA-SHA256, EC-SECP-256K1, and EC-SECP-384R1. Other algorithms may be added through other documents or by using experimental or vendor-validation algorithm types ๐Ÿงš.

A signature that is public key based requires a KeyId field and may optionally carry a signature time, an embedded public key, an embedded certificate, and a KeyLink. The signature time behaves as normal and timestamps when the signature was created โญ. We'll go over how the other fields are used and how they relate to each other right here ๐Ÿ‘€.

It is not common to use embedded certificates, because they can be very large and may have validity periods that differ from the validated data ๐Ÿ“ฆ. The preferred method is to use a KeyLink to the validating certificate ๐Ÿ’–.

The KeyId field in the ValidationAlgorithm identifies the public key used to verify the signature ๐Ÿ—๏ธ. It's kind of like a Subject Key Identifier from X.509 (Section 4.2.1.2 of [RFC5280]) ๐ŸŽ€. We define the KeyId to be a cryptographic hash of the public key in DER form. All implementations MUST support the SHA-256 digest as the KeyId hash ๐Ÿ‘‘.

Using other algorithms for the KeyId is allowed, and it won't cause problems at a forwarder, because the forwarder only matches the digest algorithm and digest output and does not compute the digest (see Section 9) ๐Ÿ™ˆ. It may cause issues with a Content Store, which needs to verify that the KeyId and PublicKey match (see Section 2.4.3). Even then, it only causes a cache miss, and the Interest would still be forwarded to the publisher ๐Ÿ˜ญ. As long as the publisher and consumers support the hash, the data will validate โœ….

As per Section 9, a forwarder only matches the KeyId to a KeyId restriction. It does not need to look at the other fields, such as the public key, certificate, or KeyLink ๐Ÿฆ‹.

If a message carries multiples of the KeyId, public key, certificate, or KeyLink, an endpoint (consumer, cache, or Content Store) MUST ensure that any fields it uses are consistent ๐Ÿซง. The KeyId MUST be the corresponding hash of the embedded public key or certificate public key. The hash function to use is the KeyId's HashType. If there is both an embedded public key and a certificate, the public keys MUST be the same ๐Ÿ’….

A message SHOULD NOT have both a PublicKey and a KeyLink to a public key, because that's redundant ๐Ÿ™…โ€โ™€๏ธ. It MAY have a PublicKey and a KeyLink to a certificate ๐ŸŒธ.

A KeyLink in a first Content Object may point to a second Content Object with a DER-encoded public key in the PublicKey field and an optional DER-encoded X.509 certificate in the payload ๐Ÿ”‘. The second Content Object's KeyId MUST equal the first object's KeyId. The second object's PublicKey field MUST be the public key corresponding to the KeyId. That key must validate both the first and second object's signature ๐Ÿฅน. A DER-encoded X.509 certificate may be included in the second object's payload, and its embedded public key MUST match the PublicKey. It must be issued by a trusted authority, preferably specifying the valid namespace of the key in the distinguished name ๐Ÿ“œ. The second object MUST NOT have a KeyLink, because we do not allow for recursive key lookup. No loops, no drama ๐Ÿšซ๐Ÿ”.

9. Interest to Content Object Matching ๐ŸŽฏ

A Content Object satisfies an Interest if and only if (a) the Content Object name, if present, exactly matches the Interest name, (b) the ValidationAlgorithm KeyId of the Content Object exactly equals the Interest KeyId restriction, if present, and (c) the computed Content Object Hash exactly equals the Interest Content Object Hash restriction, if present ๐Ÿ’˜.

The KeyId and KeyIdRestr use the Hash format (see Section 2.1). The Hash format has an embedded HashType followed by the hash value. When comparing a KeyId and KeyIdRestr, you compare both the HashType and the value ๐Ÿ”.

The matching rules are given by this predicate. If it evaluates to true, the Content Object matches the Interest ๐Ÿง . Ni is the name in the Interest (it may not be empty), Ki is the KeyIdRestr in the Interest (it may be empty), and Hi is the ContentObjectHashRestr in the Interest (it may be empty). No, Ko, and Ho are the same properties in the Content Object, where No and Ko may be empty. Ho always exists, because it's an intrinsic property of the Content Object ๐Ÿซถ. For binary relations, we use "&" for AND and "|" for OR. We use "E" for the EXISTS (not empty) operator and "!" for the NOT EXISTS operator ๐Ÿงฎ.

(!No | (Ni=No)) & (!Ki | (Ki=Ko)) & (!Hi | (Hi=Ho)) & (E No | E Hi)

As a special case, if the Content Object Hash restriction in the Interest specifies an unsupported hash algorithm, then no Content Object can match the Interest. So the system should drop the Interest and MAY send an Interest Return to the previous hop ๐Ÿšซ. In this case the predicate above never gets executed, because the Interest is never forwarded. If the system uses the optional behavior of having a different system calculate the hash for it, then the system may assume all hash functions are supported and leave it to the other system to accept or reject the Interest ๐Ÿค.

As you can see, there are two types of attributes you can match ๐Ÿ‘€. The first term depends on whether the attribute exists in the Content Object, while the next two terms depend on whether the attribute exists in the Interest. The last term is the "Nameless Object" restriction ๐Ÿซ . It states that if a Content Object does not have a Name, then it must match the Interest on at least the Hash restriction.

If a Content Object does not carry the Content Object Hash as an expressed field, it must be calculated in the network so it can be matched against ๐Ÿงฎ. Within an autonomous system, it's enough to calculate a Content Object Hash at a border router and then carry it via trusted means inside the autonomous system ๐Ÿฐ. If a Content Object's ValidationAlgorithm does not have a KeyId, then that Content Object cannot match an Interest with a KeyId restriction ๐Ÿ’€.

10. Interest Return โ†ฉ๏ธ

This section describes how a network element may return an Interest message to a previous hop when there's an error processing the Interest ๐Ÿ™ˆ. The returned Interest may be processed further at the previous hop, or it may be returned toward the Interest origin. When a node returns an Interest, it's telling the previous hop not to expect a response from that node for the Interest. In other words, there is no PIT entry left at the returning node ๐Ÿฅ€.

The returned message keeps compatibility with the existing TLV packet format (a fixed header, optional hop-by-hop headers, and the CCNx Message body) ๐Ÿงฉ. The returned Interest packet is modified in only two ways:

  • The PacketType is set to Interest Return to indicate a Feedback message.
  • The ReturnCode is set to the appropriate value to signal the reason for the return.

The specific encodings of the Interest Return are specified in [RFC8609] ๐Ÿ“–.

A forwarder is not required to send any Interest Return messages ๐Ÿ•Š๏ธ.

A forwarder is not required to process any received Interest Return message. If a forwarder does not process Interest Return messages, it SHOULD silently drop them ๐Ÿคซ.

The Interest Return message does not apply to a Content Object or any other message type ๐Ÿšซ.

An Interest Return message is a 1-hop message between peers. It is not propagated multiple hops via the FIB ๐Ÿค. An intermediate node that receives an Interest Return may take corrective actions, or it may propagate its own Interest Return to previous hops as indicated in the reverse path of a PIT entry ๐Ÿ”.

10.1. Message Format ๐ŸŽ€

The Interest Return message looks exactly like the original Interest message, with the exception of the two modifications mentioned above โœจ. The PacketType is set to indicate that the message is an Interest Return, and the reserved byte in the Interest header is used as a Return Code. The numeric values for the PacketType and ReturnCodes are in [RFC8609] ๐Ÿ”ข.

10.2. ReturnCode Types โœจ

okay bestie, this is where the Interest Return ReturnCode gets introduced ๐Ÿ’… The numeric values for each code live in [RFC8609], so go there if you want the actual numbers ๐Ÿ”ข Here's the lineup:

+----------------------+--------------------------------------------+
| Name                 | Description                                |
+----------------------+--------------------------------------------+
| No Route (Section    | The returning forwarder has no route to    |
| 10.3.1)              | the Interest name.                         |
|                      |                                            |
| HopLimit Exceeded    | The HopLimit has decremented to 0 and      |
| (Section 10.3.2)     | needs to forward the packet.               |
|                      |                                            |
| Interest MTU too     | The Interest's MTU does not conform to the |
| large (Section       | required minimum and would require         |
| 10.3.3)              | fragmentation.                             |
|                      |                                            |
| No Resources         | The node does not have the resources to    |
| (Section 10.3.4)     | process the Interest.                      |
|                      |                                            |
| Path error (Section  | There was a transmission error when        |
| 10.3.5)              | forwarding the Interest along a route (a   |
|                      | transient error).                          |
|                      |                                            |
| Prohibited (Section  | An administrative setting prohibits        |
| 10.3.6)              | processing this Interest.                  |
|                      |                                            |
| Congestion (Section  | The Interest was dropped due to congestion |
| 10.3.7)              | (a transient error).                       |
|                      |                                            |
| Unsupported Content  | The Interest was dropped because it        |
| Object Hash          | requested a Content Object Hash            |
| Algorithm (Section   | restriction using a hash algorithm that    |
| 10.3.8)              | cannot be computed.                        |
|                      |                                            |
| Malformed Interest   | The Interest was dropped because it did    |
| (Section 10.3.9)     | not correctly parse.                       |
+----------------------+--------------------------------------------+

                   Table 3: Interest Return Reason Codes

10.3. Interest Return Protocol ๐Ÿฆ‹

this section is all about how a forwarder behaves for each Reason code ๐Ÿซถ Quick tea: a forwarder isn't required to generate any of these codes, BUT if it does, it MUST conform to this specification, no skipping ๐Ÿ’…

if a forwarder receives an Interest Return, it SHOULD take these standard corrective actions โœจ It's allowed to ignore Interest Return messages too, and if it does, its PIT entry just goes through the normal timeout processes ๐ŸŒธ

  • Verify that the Interest Return came from a next hop to which it actually sent the Interest.
  • If a PIT entry for the corresponding Interest does not exist, the forwarder should ignore the Interest Return.
  • If a PIT entry for the corresponding Interest does exist, the forwarder MAY do one of the following:
    • Try a different forwarding path, if one exists, and discard the Interest Return, or
    • Clear the PIT state and send an Interest Return along the reverse path.

if a forwarder tries alternate routes, it MUST ensure that it does not use the same path multiple times ๐Ÿ™ˆ One way to do that is to keep track of which next hops it already tried and not reuse them ๐Ÿงš

if a forwarder tries an alternate route, it may get a second Interest Return, and that one could be a different type than the first ๐Ÿ˜ญ For example, node A sends an Interest to node B, which sends back a No Route return. Node A then tries node C, which sends a Prohibited Interest Return. Node A should choose what it thinks is the appropriate code to send back to its previous hop ๐Ÿ’œ

and last but not least, if a forwarder tries an alternate route, it should decrement the Interest Lifetime to account for the time already spent processing the Interest โณ

10.3.1. No Route ๐Ÿšซ

if a forwarder gets an Interest for which it has no route, or for which the only route is back toward the system that sent the Interest, the forwarder SHOULD generate a "No Route" Interest Return message ๐Ÿ™…โ€โ™€๏ธ

how a forwarder manages its FIB table when it gets a No Route message is implementation dependent ๐Ÿคทโ€โ™€๏ธ In general, getting a No Route Interest Return should not cause a forwarder to remove a route. The dynamic routing protocol that installed the route should fix it, or the administrator who made the static route should fix the configuration ๐Ÿ› ๏ธ A forwarder could also suppress using that next hop for some period of time ๐Ÿ’…

10.3.2. HopLimit Exceeded โฑ๏ธ

a forwarder MAY choose to send HopLimit Exceeded messages when it receives an Interest that has to be forwarded off system and the HopLimit is 0 ๐ŸŒˆ

10.3.3. Interest MTU Too Large ๐Ÿ“ฆ

if a forwarder receives an Interest whose MTU exceeds the prescribed minimum, it MAY send an "Interest MTU Too Large" message, or it may silently discard the Interest ๐Ÿคซ

if a forwarder receives an "Interest MTU Too Large" response, it SHOULD NOT try alternate paths ๐Ÿ™…โ€โ™€๏ธ It SHOULD propagate the Interest Return to its previous hops instead ๐Ÿ’–

10.3.4. No Resources ๐Ÿชซ

if a forwarder receives an Interest and it can't process it because of a lack of resources, it MAY send an Interest Return ๐Ÿ’œ A lack of resources could mean the PIT is too large, or that there's some other capacity limit โœจ

10.3.5. Path Error ๐Ÿ›ค๏ธ

if a forwarder detects an error while forwarding an Interest, such as over a reliable link, it MAY send a Path-Error Interest Return saying that it wasn't able to send or repair the forwarding error ๐Ÿ˜ต

10.3.6. Prohibited ๐Ÿšท

a forwarder may have administrative policies, like access control lists (ACLs), that prohibit receiving or forwarding an Interest ๐Ÿ” If a forwarder discards an Interest because of a policy, it MAY send a Prohibited Interest Return to the previous hop. For example, say there's an ACL that says /example/private can only come from interface e0, but the forwarder gets one from e1. The forwarder must have a way to return the Interest with an explanation ๐Ÿ™ˆ

10.3.7. Congestion ๐Ÿšฆ

if a forwarder discards an Interest because of congestion, it MAY send a Congestion Interest Return to the previous hop ๐Ÿš—๐Ÿ’จ

10.3.8. Unsupported Content Object Hash Algorithm ๐Ÿ”

if a Content Object Hash restriction specifies a hash algorithm the forwarder can't verify, the Interest should not be accepted, and the forwarder MAY send an Interest Return to the previous hop ๐Ÿ™ƒ

10.3.9. Malformed Interest ๐Ÿงฉ

if a forwarder detects a structural or syntactical error in an Interest, it SHOULD drop the Interest and MAY send an Interest Return to the previous hop ๐Ÿ—‘๏ธ This doesn't mean that every router has to validate the entire structure of an Interest, though ๐Ÿซถ


11. IANA Considerations ๐ŸŒธ

this document has no IANA actions ๐Ÿ’…โœจ

12. Security Considerations ๐Ÿ”

Okay bestie, this is the part where we get serious ๐Ÿ’…. CCNx is an L3 network protocol, and it can also run as an overlay on top of other transports like UDP or other tunnels ๐Ÿฆ‹. It has built-in support for message authentication through a signature (like RSA or elliptic curve) or a message authentication code (like HMAC) โœจ. If you don't want an authenticator, you can use a message integrity check instead (like SHA or CRC) ๐Ÿซถ. CCNx doesn't define an encryption envelope, though. That job goes to a higher-layer protocol, like [esic] ๐Ÿ”’.

The CCNx message format lets you attach MICs (like CRC32C), MACs (like HMAC), and signatures (like RSA or ECDSA) to every packet type ๐Ÿ’œ. That does NOT mean it's a good idea to use any old ValidationAlgorithm, or to stuff computationally expensive algorithms into Interest packets ๐Ÿ˜ญ. That could open the door to computational DoS attacks ๐Ÿ’€. Applications should use an explicit protocol to guide how they use packet signatures ๐Ÿ“œ. As a general guideline, an application might use a MIC on an Interest to catch packets that got corrupted by accident ๐Ÿ“. If you want to actually secure an Interest, consider wrapping it in an encrypted wrapper and using a protocol that stops replay attacks ๐Ÿ›ก๏ธ. This is extra important if the Interest is being used as an actuator ๐Ÿšจ. Just slapping an authentication code or signature on an Interest does not make it secure, so don't get too comfy ๐Ÿ™ˆ. There are several examples in the literature about securing ICN-style messaging [mobile] [ace] ๐Ÿ“š.

As an L3 protocol, this document doesn't explain how you get keys or how you decide to trust them ๐Ÿ”‘. A CCNx Content Object might include a public key or certificate embedded inside it, or it might use the KeyLink field to point at a public key or certificate that authenticates the message ๐ŸŽ€. One key-exchange spec is CCNxKE [ccnx-ke] [mobile], which is basically like the TLS 1.3 key exchange, except it runs over CCNx L3 messages ๐Ÿงš. Trust is beyond the scope of an L3 protocol, so it gets left to applications or application frameworks ๐Ÿ‘‘.

Now the combo: an ephemeral key exchange (like CCNxKE [ccnx-ke]) plus an encapsulating encryption (like [esic]) gives you the equivalent of a TLS tunnel ๐ŸŒˆ. Intermediate nodes can forward the Interests and Content Objects, but they have no visibility inside โœจ. It also completely hides the internal names from the encryption layer ๐Ÿ™ˆ. This kind of tunneling encryption is useful for content with little or no cacheability, since only someone holding the ephemeral key can use it ๐Ÿ”. Short-term caching might help with lossy links or mobility, but long-term caching is usually not of interest ๐Ÿƒ.

Broadcast encryption or proxy re-encryption might be useful for content with multiple uses over time or lots of consumers ๐ŸŒธ. There is currently no recommendation for this form of encryption ๐Ÿคทโ€โ™€๏ธ.

The specific encoding of messages has security implications too ๐Ÿ˜ณ. [RFC8609] uses a type-length-value (TLV) encoding. The CCNx team compromised between extensibility and unambiguous encodings of types and lengths ๐Ÿ’–. Some TLV encodings use variable-length "T" and variable-length "L" fields to fit a wide range of values while staying byte efficient ๐Ÿฆ‹. Our TLV encoding uses a fixed-length 2-byte "T" and 2-byte "L" instead, and that solves two problems โœจ.

The first problem is aliases. If you can encode the same value in different byte lengths, like %x02 and %x0002, then you have to decide whether they mean the same thing, whether they're different, or whether one of them is illegal ๐Ÿคฏ. If they're different, you always have to compare the buffers, not the integer equivalents ๐Ÿ˜ต. If one is illegal, you have to validate the TLV encoding, every field of every packet, at every hop ๐Ÿ˜ญ. If they mean the same thing, then you hit the second problem: how do you specify packet filters? For example, if a name has 6 name components, there are 7 T's and 7 L's, and each of those might have up to 4 representations of the same value ๐Ÿ’€. That's 14 fields with 4 encodings each, which is 1001 combinations ๐Ÿซ . It also means you can't compare a name with a memory function, because you have to account for the fact that any embedded "T" or "L" might have a different format ๐Ÿ™ƒ.

The Interest Return message has no authenticator from the previous hop ๐Ÿšซ. So the payload of the Interest Return should only be used locally to match an Interest ๐ŸŽฏ. A node should never forward that Interest Payload as an Interest ๐Ÿ™…โ€โ™€๏ธ. It should also verify that it sent the Interest in the Interest Return to that node, and it should not let anyone negate Interest messages ๐Ÿ›‘.

Caching nodes need to be careful when processing Content Objects โš ๏ธ. It is essential that the Content Store follows the rules outlined in Section 2.4.3 to avoid certain types of attacks ๐Ÿงฑ. CCNx 1.0 has no mechanism to work around an undesired result from the network (there are no "excludes"), so if a cache gets poisoned with bad content, it might cause problems when retrieving content ๐Ÿ˜ฑ. There are three types of access to content from a Content Store: unrestricted, signature restricted, and hash restricted ๐Ÿญ.

If an Interest has no restrictions, the requester isn't picky about what they get back, so any matching cached object is OK ๐Ÿฅฐ. In the hash-restricted case, the requester is very specific about what they want, and the Content Store (and every forward hop) can easily verify that the content matches the request ๐ŸŽ€. In the signature-restricted case (often used for initial manifest discovery), the requester only knows the KeyId that signed the content ๐Ÿ”. This is the case that needs the closest attention in the Content Store, so it doesn't amplify bad data ๐Ÿšจ. The Content Store must only respond with a Content Object if it can verify the signature. That means either the Content Object carries the public key inside it, or the Interest carries the public key in addition to the KeyId ๐Ÿ”‘. If neither is true, the Content Store should treat the Interest as a cache miss and let an endpoint respond ๐Ÿ™‹โ€โ™€๏ธ.

A user-level cache could do full signature verification by fetching a public key or certificate according to the KeyLink ๐Ÿง. But that is not a burden we want to put on the forwarder ๐Ÿ™…โ€โ™€๏ธ. A user-level cache could also rely on out-of-band attestation, like the cache operator only inserting content that they know has the correct signature ๐Ÿซถ.

The CCNx grammar allows hash-algorithm agility through the HashType ๐Ÿฆ‹. It specifies a short list of acceptable hash algorithms that should be implemented at each forwarder โœจ. Some hash values only apply to end systems, so updating the hash algorithm doesn't affect forwarders. They would simply match the buffer that includes the type-length-hash buffer ๐Ÿงฉ. But some fields, like the ConObjHash, must be verified at each hop, so a forwarder (or related system) must know the hash algorithm ๐Ÿ”Ž. Updating the hash type could cause backward compatibility problems ๐Ÿ˜ฌ. [RFC8609] is the authoritative source for per-field-allowed hash types in that encoding ๐Ÿ“–.

Last but not least, a CCNx name uses binary matching, while a URI uses a case-insensitive hostname ๐ŸŒˆ. Some systems may also use case-insensitive matching of the URI path to a resource ๐Ÿ™ƒ. This means human-entered CCNx names will likely have case or non-ASCII symbol mismatches, unless you use a consistent URI normalization to the CCNx name ๐Ÿคฆโ€โ™€๏ธ. It also means an entity that registers a CCNx routable prefix, say ccnx:/example.com, would need separate registrations for simple variations like ccnx:/Example.com ๐Ÿ˜ณ. Unless this gets addressed in URI normalization and routing protocol conventions, there could be phishing attacks ๐ŸŽฃ๐Ÿšจ.

For a more general introduction to ICN-related security concerns and approaches, check out [RFC7927] and [RFC7945] ๐Ÿ“š๐Ÿ’–.


13. References ๐Ÿ“š

13.1. Normative References

13.2. Informative References ๐Ÿ“š

okay bestie, these are the extra-credit reads ๐Ÿง โœจ not the core rules, but they're the receipts behind the whole vibe

  • [ace] Shang, W., Yu, Y., Liang, T., Zhang, B., and L. Zhang, "NDN-ACE: Access Control for Constrained Environments over Named Data Networking", NDN Technical Report NDN-0036, December 2015, <http://new.named-data.net/wp-content/uploads/2015/12/ndn-0036-1-ndn-ace.pdf>.
  • [befrags] Mosko, M. and C. Tschudin, "ICN "Begin-End" Hop by Hop Fragmentation", Work in Progress, draft-mosko-icnrg-beginendfragment-02, December 2016.
  • [ccn-lite] Tschudin, C., et al., "CCN-lite", University of Basel, 2011-2019, <http://ccn-lite.net>.
  • [ccnx-ke] Mosko, M., Uzun, E., and C. Wood, "CCNx Key Exchange Protocol Version 1.0", Work in Progress, draft-wood-icnrg-ccnxkeyexchange-02, March 2017.
  • [ccnx-registry] IANA, "Content-Centric Networking (CCNx)", <https://www.iana.org/assignments/ccnx>.
  • [ccnx-uri] Mosko, M. and C. Wood, "The CCNx URI Scheme", Work in Progress, draft-mosko-icnrg-ccnxurischeme-01, April 2016.
  • [chunking] Mosko, M., "CCNx Content Object Chunking", Work in Progress, draft-mosko-icnrg-ccnxchunking-02, June 2016.
  • [cicn] FD.io, "Community ICN (CICN)", February 2017, <https://wiki.fd.io/index.php?title=Cicn&oldid=7191>.
  • [dart] Garcia-Luna-Aceves, J. and M. Mirzazad-Barijough, "A Light-Weight Forwarding Plane for Content-Centric Networks", International Conference on Computing, Networking, and Communications (ICNC), DOI 10.1109/ICCNC.2016.7440637, February 2016, <https://arxiv.org/pdf/1603.06044.pdf>.
  • [eprise-numbers] IANA, "IANA Private Enterprise Numbers", <https://www.iana.org/assignments/enterprise-numbers>.
  • [esic] Mosko, M. and C. Wood, "Encrypted Sessions In CCNx (ESIC)", Work in Progress, draft-wood-icnrg-esic-01, September 2017.
  • [flic] Tschudin, C. and C. Wood, "File-Like ICN Collection (FLIC)", Work in Progress, draft-tschudin-icnrg-flic-03, March 2017.
  • [mobile] Mosko, M., Uzun, E., and C. Wood, "Mobile Sessions in Content-Centric Networks", IFIP Networking Conference (IFIP Networking) and Workshops, DOI 10.23919/IFIPNetworking.2017.8264861, June 2017, <https://dl.ifip.org/db/conf/networking/networking2017/1570334964.pdf>.
  • [ndn] UCLA, "Named Data Networking", 2019, <https://www.named-data.net>.
  • [nnc] Jacobson, V., Smetters, D., Thornton, J., Plass, M., Briggs, N., and R. Braynard, "Networking Named Content", Proceedings of the 5th International Conference on Emerging Networking Experiments and Technologies, DOI 10.1145/1658939.1658941, December 2009, <https://dx.doi.org/10.1145/1658939.1658941>.
  • [RFC5234] Crocker, D., Ed. and P. Overell, "Augmented BNF for Syntax Specifications: ABNF", STD 68, RFC 5234, DOI 10.17487/RFC5234, January 2008, <https://www.rfc-editor.org/info/rfc5234>.
  • [RFC5280] Cooper, D., Santesson, S., Farrell, S., Boeyen, S., Housley, R., and W. Polk, "Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile", RFC 5280, DOI 10.17487/RFC5280, May 2008, <https://www.rfc-editor.org/info/rfc5280>.
  • [RFC7927] Kutscher, D., Ed., Eum, S., Pentikousis, K., Psaras, I., Corujo, D., Saucez, D., Schmidt, T., and M. Waehlisch, "Information-Centric Networking (ICN) Research Challenges", RFC 7927, DOI 10.17487/RFC7927, July 2016, <https://www.rfc-editor.org/info/rfc7927>.
  • [RFC7945] Pentikousis, K., Ed., Ohlman, B., Davies, E., Spirou, S., and G. Boggia, "Information-Centric Networking: Evaluation and Security Considerations", RFC 7945, DOI 10.17487/RFC7945, September 2016, <https://www.rfc-editor.org/info/rfc7945>.
  • [RFC8609] Mosko, M., Solis, I., and C. Wood, "Content-Centric Networking (CCNx) Messages in TLV Format", RFC 8609, DOI 10.17487/RFC8609, July 2019, <https://www.rfc-editor.org/info/rfc8609>.
  • [selectors] Mosko, M., "CCNx Selector Based Discovery", Work in Progress, draft-mosko-icnrg-selectors-01, May 2019.
  • [terminology] Wissingh, B., Wood, C., Afanasyev, A., Zhang, L., Oran, D., and C. Tschudin, "Information-Centric Networking (ICN): CCN and NDN Terminology", Work in Progress, draft-irtf-icnrg-terminology-04, June 2019.
  • [trust] Tschudin, C., Uzun, E., and C. Wood, "Trust in Information-Centric Networking: From Theory to Practice", 25th International Conference on Computer Communication and Networks (ICCCN), DOI 10.1109/ICCCN.2016.7568589, August 2016, <https://doi.org/10.1109/ICCCN.2016.7568589>.

Authors' Addresses ๐Ÿซถ

meet the squad behind the spec ๐Ÿ’œ

Marc Mosko
PARC, Inc.
Palo Alto, California  94304
United States of America

Phone: +01 650-812-4405
Email: marc.mosko@parc.com


Ignacio Solis
LinkedIn
Mountain View, California  94043
United States of America

Email: nsolis@linkedin.com


Christopher A. Wood
University of California Irvine
Irvine, California  92697
United States of America

Phone: +01 315-806-5939
Email: woodc1@uci.edu
๐Ÿ“ฆ where this page comes from