Distance-based routing in an information-centric network

One embodiment of the present invention provides a computing system. The computing system includes a processor and a computer-readable storage medium. The computer-readable storage medium stores instructions which when executed by the processor cause the processor to perform a method. The method comprises identifying an identifier of an anchor node associated with a name in an update message received from a neighbor node. The anchor node stores a content object identifiable based on the name independent of the anchor node. The method also comprises determining a valid next-hop neighbor in the ICN for the name based on a sequence number of the update message generated by the anchor node and lexicographic order of an identifier of the neighbor node; and determining whether the anchor node is a designated anchor node based on the validity of the next-hop neighbor and a routing metric for the anchor node.

BACKGROUND

The present disclosure relates to computer networks. More specifically, the present disclosure relates to a method and system for efficient routing in an information centric network (ICN).

2. Related Art

The exponential growth of user-generated content in the Internet has shifted the Internet usage pattern from host-oriented communication to peer-to-peer and content-based communication. Such a shift has brought with it an increasing demand for efficient addressing and routing for contents. As a result, information centric networking (ICN) architectures have been proposed. The goal of ICN architectures is to enable access to content and services by name, independently of their location, in order to improve network performance and end-user experience.

Typically, network traffic can be viewed at the application level as end-to-end communication for content transfer. In contrast, in an ICN, content is requested or returned based in part on the name given to it, and the ICN is responsible for routing content from the provider to the consumer. Content includes data that can be transported in the communication system, and can be any form of data such as text, images, video, and/or audio. In ICN, a name can refer to the entire content or a portion of the content. For example, a newspaper article can include multiple pieces of content (can be referred to as content objects) represented by one or more names. A piece of content can also be associated with metadata describing or augmenting the piece of content with information such as authentication data, creation date, content owner, etc.

ICN architectures operate based on name resolution and routing of contents (i.e., name-based content routing). In some ICN architectures, the names of data objects are mapped to addresses (e.g., using directory servers). These mapped addresses are then used for content routing. Some other ICN architectures directly use name-based routing of content. In name-based routing, the routers which produce or cache contents (can be referred to as anchors) advertise the existence of local copies of named data objects (NDO) or name prefixes denoting a set of objects with names sharing a common prefix. Based on the advertisements, routes to the produced and/or cached contents are established. Consumers of content issue content requests, which are forwarded along the established routes to the corresponding anchors.

With existing technologies, name-based routing in an ICN typically requires exchange of information regarding the physical network. Usually, these routing techniques use one or more of the following types of mechanisms: (i) maintaining paths to named content or using source routes to content; (ii) flooding of information about the network topology and the location of replicas of content; (iii) flooding of content requests; (iv) establishing spanning trees in an ICN for name-signaling; and (v) maintaining overlays using distributed hash tables (DHT). These mechanism burden the network with extensive calculation, bandwidth overhead, and/or inefficient routing.

While ICN brings many desirable features to content distribution, some issues remain unsolved in efficient name-based routing.

SUMMARY

One embodiment of the present invention provides a computing system in an information-centric network (ICN). The computing system includes a processor and a computer-readable storage medium. The computer-readable storage medium stores instructions which when executed by the processor cause the processor to perform a method. The method comprises identifying an identifier of a first anchor node associated with a name in an update message received from a neighbor node. The first anchor node stores a content object identifiable based on the name, which is independent of the first anchor node. The method also comprises determining a valid next-hop neighbor in the ICN for the name based on a sequence number of the update message generated by the first anchor node and lexicographic order of an identifier of the neighbor node; and determining whether the first anchor node is a designated anchor node based on the validity of the next-hop neighbor and a routing metric for the first anchor node.

In a variation on this embodiment, the routing metric for the first anchor node is equal to routing metric for a second anchor node of the name. The method determines whether the first anchor is a designated anchor node further based on lexicographic order of the identifier of the first anchor node compared to an identifier of the second anchor node

In a variation on this embodiment, the method also comprises forwarding the update message from the first anchor node to a neighbor node based on lexicographic order of the identifier of the neighbor node.

In a variation on this embodiment, in response to determining that the first anchor node is not a designated anchor node, the method also comprises precluding the computing system from forwarding the update message from the first anchor node to a neighbor node.

In a variation on this embodiment, in response to determining that the content object requires a multipoint communication, the method also comprises determining the first anchor node to be a root anchor node of the name based on lexicographic order of the identifier of the first anchor node compared to an identifier of a locally known second anchor node of the name.

In a further variation, the method also comprises forwarding an update message, which indicates the first anchor node as the root node to a neighbor node and comprises route information toward the first anchor node. The neighbor node is in a suitable path from the computing system to the second anchor node.

In a further variation, the method also comprises maintaining an anchor-based tree (ABT) rooted at the first anchor node for the name and forwarding a request from the second anchor node for joining the ABT to the first anchor node.

In a further variation, the method also comprises broadcasting a request for the content object via the ABT.

DETAILED DESCRIPTION

Overview

In embodiments of the present invention, the problem of efficiently calculating name-based routes in an ICN is solved by performing distance-based routing and calculating one or more loop-free routes to a suitable site (e.g., site with the shortest distance) advertising a named data object or name prefix. These sites can be referred to as anchors.

In ICN, a respective content is named, and each piece of data is bound to a unique name that distinguishes the data from any other piece of data, such as other versions of the same data or data from other sources. This unique name allows a network device to request the data by disseminating an Interest that includes the name (or a name prefix), and can obtain the data independent from the data's storage location, network location, application, and means of transportation. In this disclosure, the terms “name” and “prefix” are used interchangeably. The following terms describe elements of a ICN architecture:

Content Object: A single piece of data, which is bound to a unique name. Content Objects are “persistent,” which means that a Content Object can move around within a computing device, or across different computing devices, but does not change. If any component of the Content Object changes, the entity that made the change creates a new Content Object that includes the updated content, binds the new Content Object to a new unique location-independent name.

Unique Names: A name in an ICN (or named-data network) is typically location independent and uniquely identifies a Content Object. A data-forwarding device can use the name or name prefix to forward a packet toward a network node that generates or stores the Content Object, regardless of a network address or physical location for the Content Object. In some embodiments, the name may be a hierarchically structured variable-length identifier (HSVLI). The HSVLI can be divided into several hierarchical components, which can be structured in various ways. For example, the individual name components parc, home, icn, and test.txt can be structured in a left-oriented prefix-major fashion to form the name “/parc/home/icn/test.txt.” Thus, the name “/parc/home/icn” can be a “parent” or “prefix” of “/parc/home/icn/test.txt.” Additional components can be used to distinguish between different versions of the content item, such as a collaborative document.

In some embodiments, the name can include a non-hierarchical identifier, such as a hash value that is derived from the Content Object's data (e.g., a checksum value) and/or from elements of the Content Object's name. A description of a hash-based name is described in U.S. patent application Ser. No. 13/847,814 (titled “ORDERED-ELEMENT NAMING FOR NAME-BASED PACKET FORWARDING,” by inventor Ignacio Solis, filed 20 Mar. 2013), which is hereby incorporated by reference. A name can also be a flat label. Hereinafter, “name” is used to refer to any name for a piece of data in a name-data network, such as a hierarchical name or name prefix, a flat name, a fixed-length name, an arbitrary-length name, or a label (e.g., a Multiprotocol Label Switching (MPLS) label).

Interest: A packet that indicates a request for a piece of data, and includes the name (or name prefix) for the data. A data consumer can disseminate an Interest across a named-data network, which ICN routers can propagate toward a storage device (e.g., a cache server) or a data producer that can provide the a matching Content Object to satisfy the Interest.

With existing name-based routing techniques for an ICN, routing to anchors requires information regarding the physical network topology (i.e., the physical network on which the ICN is established) to attain name-based routing of content. Maintaining topology and anchor information incurs significant overhead. Furthermore, these routing techniques can also rely on other mechanisms, such as flooding of information, establishing spanning tree, and/or creating overlays using distributed hash tables (DHTs). However, these mechanisms may not provide efficient name-based routing. For example, flooding of information may not scale beyond small networks. On the other hand, establishing spanning trees creates bottlenecks and incurs considerable overhead as the network size increases. Lastly, using DHTs in overlays requires two layers of routing, one for the underlay on which the overlay is created, and the second one in the overlay itself.

To solve this problem, the embodiments of the present invention present a routing protocol, Distance-based Content Routing (DCR), for ICN. With DCR, a router in ICN can create routes to contents without explicitly exchanging network topology information or physical paths in the ICN, and without the knowledge of all content locations. DCR uses an identifier with a flat or hierarchical structure to identify a respective network node (e.g., a router). A content object in a router can be requested using the name of the object. A name can be hierarchical or flat. If flat names are used, DCR provides routes to the suitable routers (e.g., nearest routers) storing specific contents identified by the flat name. On the other hand, if hierarchical naming is used, a plurality of objects can share the same name prefix, while name suffixes identify specific objects. In this disclosure, the name of a specific content object or name prefix as prefix.

DCR supports routing of content requests to a suitable anchor of a prefix, as well as to all anchors of the prefix using the same signaling for routing updates. A suitable anchor can be determined based on one or more routing metric. Examples of a routing metric include, but are not limited to, distance, hop count, bandwidth availability and utility, delay, congestion, and load on network nodes. DCR uses the same signaling for routing updates for both. A router running DCR maintains multiple loop-free routes to one or more anchors for a respective known prefix. Routers can forward requests for specific prefixes over one or multiple routes towards anchors of those prefixes. In some embodiments, distances to anchors are measured in hop counts. However, distances in DCR can be based on other types of metrics, without changing the basic approach of DCR.

A respective anchor of a prefix generates routing metric (e.g., distance) updates for the prefix periodically. An update includes a sequence number used for avoiding routing-table loops and stale routing information. DCR only allows an anchor of a prefix to change the sequence number in the updates for the prefix from the anchor. DCR orders routers for a prefix based on the identifiers of the anchors of the prefix, sequence numbers created by such anchors, and distances to these anchors. A router can select a neighbor as the next hop to the prefix only if that neighbor reports up-to-date (i.e., non-stale) route information and offer a more preferable routing metric value to the prefix (e.g., a shorter distance), or offer the same routing metric value as the current routing metric value (e.g., the same distance) for the prefix but have a smaller identifier compared to the current neighbor.

System Architecture

FIG. 1Aillustrates an exemplary distance-based routing to a suitable instance of a prefix in an ICN, in accordance with an embodiment of the present invention. As illustrated inFIG. 1, an ICN100includes a number of routers101-123. A respective router in ICN100is associated with an identifier with a flat or hierarchical structure to identify the router in ICN100. In this example, a respective router in ICN100is labeled with the router's identifier. Under such a scenario, router101is associated with an identifier101. Similarly, routers102-123are associated with identifiers102-123, respectively.

A respective router in ICN100, such as router101, runs DCR for creating routes to contents without explicitly exchanging network topology information or physical paths, and without the knowledge of all content locations. Router101maintains multiple loop-free routes to one or more anchors for a respective known prefix. Routers can forward requests for specific prefixes over one or multiple routes towards anchors of those prefixes. A data object in a respective router in ICN100can be represented by a name, which can be hierarchical or flat. If flat names are used, DCR provides routes to the suitable routers (e.g., nearest routers) in ICN100storing specific contents identified by the flat name.

On the other hand, if hierarchical naming is used, a plurality of objects can share the same name prefix, while name suffixes identify specific objects. DCR running in a respective router in ICN100allows the router to advertise the name of a prefix if the corresponding object resides in the router. For example, if router104is advertising the prefix name “/parc/home/icn/” should store objects whose names include the prefix “/parc/home/icn/” (e.g., “/parc/home/icn/test1.txt” and “/parc/home/icn/test2.txt”), and a request for an object indicated by a name prefix, can be sent to the most suitable router that provides the best match for the name stated in the request.

Suppose that routers104,113, and118are anchors for a prefix (denoted by different line patterns). A respective anchor, such as anchor104, generates distance updates for the prefix periodically. A distance update includes a sequence number. Only anchor104is allowed to update the sequence number for any distance update generated by anchor104. This avoids routing-table loops and the use of stale routing information. Note that anchors104,113, and118can cache content opportunistically.

Upon receiving an update, DCR in a non-anchor router, such as routers102and108, orders routers for a prefix based on the identifiers of the anchors of the prefix, sequence numbers created by the anchors, and distances to the anchors. For example, router108can be the closest to anchor104, hence is associated with anchor104for the prefix. On the other hand, router108can have equal distances to anchors104and118. Router108selects neighbor router104as the next hop to the prefix because router104has smaller identifier compared to the other neighbors (e.g., router107to anchor118).

In the example inFIG. 1A, a link with a line pattern corresponds to a shortest path to an anchor denoted with the same line pattern. For example, the link between routers116and109is denoted with a dotted link pattern corresponding to anchor113, and indicates that anchor113provides router116a shortest path to the prefix. Here, the term “shortest path” is used in a generic sense and refers to a path providing the most preferable routing metric value. When router116sends update messages to neighboring routers, the update message from router116indicates that anchor113is the designated anchor for router116. The update message also includes the distance to anchor113via router119. It is assumed that all routers have received the most-recent sequence numbers from anchors104,113, and118for the prefix.

Depending on the distribution of information, a router can store information regarding multiple anchors for the prefix. For example, router110can receive routing update from router119for anchor104and routing update from router111for anchor113. Router110can store routing information toward both anchors104and113. However, router110has a shortest path to the prefix at anchor113. When router110sends update messages to neighboring routers, the update message from router110indicates that anchor113is the designated anchor for router110. The update message also includes the distance to anchor113via router111.

The links between routers inFIG. 1Aalso indicate the direction in which interest queries can propagate. The arrow to the lexicographically smallest next hop (i.e., the next hop with the smallest identifier) is shown with the line pattern of the corresponding anchor. This allows DCR in a respective router to operate without creating a loop. Traversing a directed path in ICN100terminates at anchors104,113, or118without traversing a loop. Hence, DCR in the routers, without creating a spanning tree, create a directed acyclic graph (DAG) in ICN100with multiple roots, each such root being an anchor (i.e., anchors104,113, and118are the roots of the DAG). One or more routers can have multiple paths to prefixes. However, because a router only advertises the route to one anchor, only a few routers may be aware of all the anchors for the prefix. Note that all links in ICN100can be used to forward requests for content.

FIG. 1Billustrates exemplary distance-based routes to the root anchor of a prefix in an ICN, in accordance with an embodiment of the present invention. The example inFIG. 1Bshows how routing information regarding the root anchor of a prefix is propagated. Router104has the identifier with the smallest value among anchors104,113, and118of the prefix. Suppose that the prefix requires multipoint communication support. Routers103,107, and110have shortest paths to the prefix at anchor104. Routers103,107, and110are also aware of other anchors with larger identifiers than anchor104. For example, router107is aware of anchor118, which has a larger identifier than anchor104. DCR in routers103,107, and110then determine that anchor104should be the root anchor for the prefix based on the lexicographic order of the identifiers of the anchors.

Accordingly, routers103,107, and110send an update about anchor104to the best next hop to other anchor they are aware of. For example, router107sends an update to router118(which is also an anchor), router103sends an update to routers111and114, and router110sends an update to111. A respective router receiving an update about anchor104being the root anchor sends an update to each best next hop toward a respective other anchor that router knows. This way, updates about anchor104reach the other two anchors of the prefix (anchors113and118).

InFIG. 1B, the links denoted with high line weights (e.g., the link between routers110and111) indicate the links over which updates indicating anchor104as the root anchor of the prefix propagate. These links are part of the preferred shortest path to a known anchor. For example, the link between routers110and111is part of the preferred shortest path from router110to another anchor113. On the other hand, the links denoted with the same line pattern as the links with high line weights, such as the link between routers102and105, indicate the links over which routing updates propagate for the prefix with anchor104being the designated anchor (e.g., the anchor with smallest hop count). A number of routers (e.g., routers112,113,115,116,117, and118) do not participate in the propagation of updates indicating anchor104as the root anchor of the prefix. Furthermore, some routers (e.g., routers112,115,116, and117) do not receive updates about anchor104being the root anchor of the prefix. This preclusion contrasts with the traditional approach of building shared multicast trees, in which all routers typically have a route to anchor104.

FIG. 1Cillustrates an exemplary anchor-based tree (ABT) comprising all instances of a prefix in an ICN, in accordance with an embodiment of the present invention. The example inFIG. 1Cshows how the ABT is formed for the prefix. Anchors113and118send their respective join requests toward root anchor104to join the ABT of the prefix. In some embodiments, anchors113and118become aware of anchor104as the root anchor based on the received updates associated with anchor104, as described in conjunction withFIG. 1B. To forward a content request that should be sent to all anchors of a prefix (e.g., video conferencing), a router in ICN100simply forwards the request toward one of the anchors of the prefix. When a router in the ABT receives the request, the router broadcasts the request over the ABT of the prefix.

In some embodiments, the broadcast mechanism within an ABT is based on a shared-tree multicast routing protocol. Establishing the ABT of a prefix in ICN100does not require a router to be aware of all the anchors of the prefix. The routers in the shortest paths between the anchors and the root anchor participate in the signaling needed to build the ABT.

Information Stored by DCR

A respective router running DCR maintains three main tables: (i) a neighbor table storing routing information reported by a respective neighbor router for a respective prefix; (ii) a routing table storing routing information for a respective known prefix; and (iii) a multipoint routing table storing routing information regarding ABTs created for the prefixes requiring multipoint communication support.

FIG. 2Aillustrates an exemplary neighbor table for storing routing information reported by a respective valid neighbor for a respective prefix, in accordance with an embodiment of the present invention. A respective row of a neighbor table202corresponds to a prefix. The row includes a prefix name210, suitable anchor information220comprising routing information reported by a neighbor regarding the most suitable anchor for the prefix (e.g., the nearest anchor to the prefix), and root anchor information230for the prefix. Suitable anchor information220includes a neighbor identifier222of the neighbor which reports routing information regarding the suitable anchor. Suitable anchor information220also includes the neighbors distance to the prefix224, an identifier226of the anchor for the prefix reachable via the neighbor, and the anchor's sequence number228for the prefix. Root anchor information230includes a root anchor identifier232for the prefix, distance234from the neighbor to the root anchor, and the root anchor's sequence number236for the prefix.

FIG. 2Billustrates an exemplary routing table for storing routing information for a respective known prefix, in accordance with an embodiment of the present invention. A respective row of a routing table204corresponds to a prefix. The row includes the prefix name210, routing update information240for the prefix, neighbor list250for the prefix, and an anchor list260for the prefix. Neighbor list250includes the valid next hop neighbors via which the prefix is reachable. Anchor list260includes information reported by any next-hop neighbor regarding a respective anchor. Such information includes an anchor identifier262and the anchor's sequence number264for the prefix.

Routing update information240includes an update-pending flag241, which indicates whether update information needs to be sent to a neighbor, and a number242indicating the number of next-hop neighbors. Number242indicates the number of valid next hops to the prefix. Routing update information240also includes the ordered distance243from the router to the prefix, the current distance244to the prefix, an identifier245of the designated anchor, and the designated anchor's sequence number246for the prefix. The designated anchor is the anchor of the prefix to which a router forwards an interest for the prefix. In some embodiments, the designated anchor is the anchor of the prefix which has the smallest identifier among those that offer the shortest distance to the prefix. In the example inFIG. 1A, anchor104is the designated anchor for router106.

FIG. 2Cillustrates an exemplary multipoint routing table for storing routing information for prefixes requiring multipoint support based on ABTs, in accordance with an embodiment of the present invention. A respective row of a multipoint routing table206corresponds to a prefix. The row includes the prefix name210, multipoint update information270for the prefix, and neighbor list280for the prefix in the corresponding ABT, as described in conjunction withFIG. 1C. Multipoint update information270includes the prefix's root anchor's identifier272, the distance to the root anchor274from the router storing multipoint routing table206, and the root anchor's sequence number276created by for the prefix.

Updating the Neighbor Table

Upon receiving an update message for a prefix, a router updates its neighbor table. This update message can also indicate an input event affecting the information in a neighbor table. An update message for the prefix includes the name of the prefix, the distance to the prefix, an anchor for the prefix, and the anchor's sequence number for the prefix. The router stores in the neighbor table the new information reported in the message if update message includes an up-to-date sequence number generated by the reported anchor of the prefix.

FIG. 3Apresents a flowchart illustrating the process of a router updating the neighbor table for a prefix, in accordance with an embodiment of the present invention. Upon receiving an update message for the prefix from a neighbor (operation302), the router determines an output flag for the update message (operation304), as described in conjunction withFIG. 3B. The router then checks whether the output flag is set (operation306). In some embodiments, a set flag indicates that the value “1” is assigned to the flag. If the flag is implemented in hardware, the bit corresponding to the flag can be set to “1.” Similarly, an unset flag indicates that the value “0” is assigned to the flag.

If the output flag is set, the router schedules an update to the neighbor (operation308) and, in the row corresponding to the neighbor the neighbor table, sets a large value (e.g., infinity) to the distance to the prefix, null value to the anchor, and zero to the sequence number for the prefix (operation310). If the output flag is not set, the router, in the row corresponding to the neighbor the neighbor table, sets values from the message to corresponding distance to the prefix, the anchor, and the sequence number for the prefix (operation312), and updates the routing table for the prefix (operation314), as described in conjunction withFIGS. 4A-4D.

FIG. 3Bpresents a flowchart illustrating the process of a router checking validity of an update message, in accordance with an embodiment of the present invention. Operations inFIG. 3Bcorrespond to operation304ofFIG. 3A. During operation, the router initiates an update flag for the received message (operation352) and unsets the update flag (operation356). The router then obtains information from the neighbor table for a neighbor (operation358) and checks whether the neighbor's anchor identifier matches with the anchor identifier in the message (operation360).

If the anchor identifiers match, the router checks whether the more recent sequence number is in the message (operation362). If the anchor identifiers match and the more recent sequence number is in the message, the router sets the output flag (operation364). If the anchor identifiers do not match or the message does not include the recent sequence number, the router checks whether the router has checked all neighbors (operation366). If the router has not checked all neighbors, the router obtains information from the neighbor table for another neighbor (operation358) and continues to check whether the other neighbor's anchor identifier matches with the anchor identifier in the message (operation360).

Updating the Routing Table

While updating the routing table, a router determines which neighbors report valid sequence numbers and, from those neighbors, selects those neighbors that can be the next hops for the prefix. This prevents routing-table loops by enforcing a lexicographic ordering between the router and its neighbors (e.g., a router can only forward a request to a neighbor with a smaller identifier). If at least one neighbor is found that satisfies the requirements, and any changes are made to the neighbor's distance, anchor, or sequence number, the router schedules an update.

FIG. 4Apresents a flowchart illustrating the process of a router storing valid new anchors and corresponding sequence numbers for updating the routing table for a prefix, in accordance with an embodiment of the present invention. During operation, the router determines a valid flag for a neighbor (operation402), as described in conjunction withFIG. 4B. The router then checks whether the valid flag is set (operation404). If the valid flag is set, the router adds the neighbor to a valid list (operation406). The valid list includes the neighbors that have reported a valid sequence number. If the valid flag is not set (operation404) or the neighbor has been added to the valid list (operation406), the router adds any new anchor associated with the neighbor to the list of anchors for the prefix in the routing table (operation408). The router then updates the sequence numbers in the routing table for corresponding anchors (operation410) and checks whether all neighbors have been checked (operation412). If all neighbors have not been checked, the router continues to determine a valid flag for another neighbor (operation402).

FIG. 4Bpresents a flowchart illustrating the process of a router identifying neighbors reporting valid sequence number for updating the routing table for a prefix, in accordance with an embodiment of the present invention. Operations inFIG. 4Bcorrespond to operation402ofFIG. 4A. During operation, the router sets a valid flag for the neighbor (operation422) and identifies a neighbor via which the prefix is reachable (operation424). The router then checks whether the prefix is validly reachable via the identified neighbor (operation426). In some embodiments, the router determines a prefix validly reachable via a neighbor based on lexicographic order of the identifiers of the routers.

If the prefix is validly reachable via the neighbor, the router checks whether the neighbor is reporting a valid sequence number for the anchor (operation428). In some embodiments, if the ordered distance is set (i.e., not an arbitrary large number, such as infinity), the sequence number is valid if the number is less than or equal to the current sequence number for the neighbor. If the ordered distance is not set, the sequence number is valid if the number is less than the current sequence number for the neighbor.

If the prefix is validly reachable via the neighbor and the neighbor is reporting a valid sequence number for the anchor, the routers checks whether the router has checked all neighbors (operation430). If the prefix is not validly reachable via the neighbor or the neighbor is not reporting a valid sequence number for the anchor, the router unsets the valid flag (operation432). If the router has not checked all neighbors, the router identifies another neighbor via which the prefix is reachable (operation424) and continues to check whether the prefix is validly reachable via the neighbor (operation426).

FIG. 4Cpresents a flowchart illustrating the process of a router storing valid next-hop routers and corresponding distances for updating the routing table for a prefix, in accordance with an embodiment of the present invention. During operation, the router obtains a valid list (operation442) and checks whether the valid list is empty (operation444). If so, the router sets the next-hop neighbor list in the routing table as empty, and the ordered and current distances in the routing table to zero (operation454) for the prefix. If the valid list is not empty, the router identifies a neighbor from a valid list (operation446) and checks whether the neighbor is valid for the next hop (operation448). In some embodiments, the router also checks whether the neighbor is a new next-hop neighbor.

If the neighbor is valid (and new) for the next hop, the router adds the neighbor to a next-hop neighbor list and increments a number indicating the number of next-hop neighbors (operation450) for the prefix (e.g., number242inFIG. 2B). The router then checks whether the router has checked all neighbors in the valid list (operation452). If the router has not checked all neighbors in the valid list, the router identifies another neighbor from the valid list (operation448) and continues to check whether the neighbor is valid for the next hop (operation426). If the neighbor is not valid for the next hop, the router removes the neighbor from the next-hop neighbor list and decrements the number indicating the number of next-hop neighbors (operation456).

In some embodiments, a neighbor can become a valid next hop to the prefix if one of the two following conditions is met. The first condition is for a router which has at least one neighbor as a next hop to the prefix. Only those neighbors reporting the most recent sequence numbers from the known anchors of the prefix can be considered as next hops, and these neighbors are ordered lexicographically based on their distances to the prefix and their respective identifiers. The router can select a neighbor from the set of neighbors reporting the most recent sequence numbers for the prefix if either the neighbor has a better routing metric value for the prefix (e.g., has a shorter distance to the prefix) than the router, or has the same value but the neighbor's identifier is smaller than the identifier of router. The second condition is for a router that has no next hops to the prefix. A neighbor can be considered as a next hop to the prefix only if the neighbor reports a finite routing metric value to the prefix, has the smallest routing metric value for the prefix among all neighbors, and either reports a more recent sequence number from a known anchor of the prefix or is a new anchor.

FIG. 4Dpresents a flowchart illustrating the process of a router computing new routing information and scheduling corresponding updates for updating the routing table for a prefix, in accordance with an embodiment of the present invention. During operation, the router identifies a neighbor from the next-hop neighbor list (operation462) and computes new routing information for the neighbor (operation464). The router then checks whether the router has checked all neighbors in the neighbor list (operation466). If the router has not checked all neighbors in the next-hop neighbor list, the router identifies another neighbor from the next-hop neighbor list (operation462) and continues to compute new routing information for the neighbor (operation464).

If the router has checked all neighbors in the next-hop neighbor list, the router identifies a neighbor from the neighbor list (operation468) and schedules update for the neighbor (operation470). The router then checks whether the router has checked all neighbors in the neighbor list (operation472). If the router has not checked all neighbors in the next-hop neighbor list, the router identifies another neighbor from the neighbor list (operation488) and continues to schedule update for the neighbor (operation464).

Exemplary System

FIG. 5illustrates an exemplary computer and communication system in an ICN, in accordance with an embodiment of the present invention. In one embodiment, a computer and communication system500operates as a network node in the ICN. Computer and communication system500includes a processor502, a memory504, and a storage device506. Storage device506stores a DCR application508, as well as other applications, such as applications510and512. During operation, DCR application508is loaded from storage device506into memory504and then executed by processor502. While executing the program, processor502performs the aforementioned functions. Computer and communication system500is coupled to an optional display514, keyboard516, and pointing device518. In some embodiments, DCR application508can be executed on a plurality of computer and communication systems, which are able to exchange data that describes the state of the operation associated with DCR application508.

Note that the above-mentioned modules can be implemented in hardware as well as in software. In one embodiment, these modules can be embodied in computer-executable instructions stored in a memory which is coupled to one or more processors in computer and communication system500. When executed, these instructions cause the processor(s) to perform the aforementioned functions.

In summary, embodiments of the present invention provide a computer system and a method for distance-based routing in an ICN. In one embodiment, the computing system includes a processor and a computer-readable storage medium. The computer-readable storage medium stores instructions which when executed by the processor cause the processor to perform a method. The method comprises identifying an identifier of a first anchor node associated with a name in an update message received from a neighbor node. The first anchor node stores a content object identifiable based on the name, which is independent of the first anchor node. The method also comprises determining a valid next-hop neighbor in the ICN for the name based on a sequence number of the update message generated by the first anchor node and lexicographic order of an identifier of the neighbor node; and determining whether the first anchor node is a designated anchor node based on the validity of the next-hop neighbor and a routing metric for the first anchor node.

The methods and processes described herein can be embodied as code and/or data, which can be stored in a computer-readable non-transitory storage medium. When a computer system reads and executes the code and/or data stored on the computer-readable non-transitory storage medium, the computer system performs the methods and processes embodied as data structures and code and stored within the medium.

The foregoing descriptions of embodiments of the present invention have been presented only for purposes of illustration and description. They are not intended to be exhaustive or to limit this disclosure. Accordingly, many modifications and variations will be apparent to practitioners skilled in the art. The scope of the present invention is defined by the appended claims.