Packet Reordering in Packet Switching Networks
By introducing the reorderability indicator (RI) in the packet switching network to manage the reordering of packets, the problem of unstable packet transmission in the packet switching network in the existing technology is solved, and flexible management of packets and improvement of network performance are achieved. promote.
Patent Information
- Application Number
- CN202111536909.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-12-23
- Filing Date
- 2021-12-15
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-12-15
AI Technical Summary
Existing communication systems have difficulty in effectively managing the reordering of packets in packet-switched networks, resulting in network congestion and packet loss, and are unable to properly handle packets based on their reorderability preferences.
By introducing a reorderability indicator (RI) in the packet, the indicator indicates whether the packet is allowed to be reordered, and the corresponding forwarding strategy is carried out in the node according to the value of RI, using per-flow load balancing or per-packet load balancing. Ensures ordered or out-of-order transmission of packets.
It realizes flexible management of packet reordering in packet switching networks, reduces network congestion and packet loss, meets the demand for orderly delivery of packets, and improves network throughput and reliability.
Smart Images

Figure CN114666268B_ABST
Abstract
Description
Technical Field
[0001] Various example embodiments relate generally to communication systems and, more particularly, but not exclusively, to packet reordering in packet-switched networks. Background Art
[0002] In various communication networks, various communication technologies may be used to support various types of communications. Summary of the invention
[0003] In at least some example embodiments, an apparatus includes at least one processor and at least one memory including an instruction set, wherein the instruction set is configured to, when executed by the at least one processor, cause the apparatus to support communication of a packet including a resequenceability indicator, the resequenceability indicator indicating resequenceability of the packet. In at least some example embodiments, the resequenceability indicator indicates whether resequence of the packet is allowed. In at least some example embodiments, the resequenceability indicator indicates whether resequence of the packet is allowed with respect to a flow associated with the packet. In at least some example embodiments, the resequenceability indicator indicates that resequence of the packet is not allowed. In at least some example embodiments, to support communication of the packet, the instruction set is configured to, when executed by the at least one processor, cause the apparatus to send the packet using per-flow load balancing. In at least some example embodiments, the resequenceability indicator indicates that resequence of the packet is allowed. In at least some example embodiments, to support communication of the packet, the instruction set is configured to, when executed by the at least one processor, cause the apparatus to send the packet using per-packet load balancing. In at least some example embodiments, to support communication of packets, the set of instructions is configured to, when executed by the at least one processor, cause the apparatus to: determine that the packet may need to be reordered relative to a second packet received after the packet; and based on determining that a reorderability indicator of the packet indicates that reordering of the packet is not allowed, transmit the packet before the second packet. In at least some example embodiments, to support communication of packets, the set of instructions is configured to, when executed by the at least one processor, cause the apparatus to: determine that the packet may need to be reordered relative to a second packet received after the packet; and based on determining that a reorderability indicator of the packet indicates that reordering of the packet is allowed, transmit the second packet before the packet. In at least some example embodiments, to support communication of packets, the set of instructions is configured to, when executed by the at least one processor, cause the apparatus to: receive, by a node having a default behavior of enforcing in-order delivery of packets, a packet and a second packet, wherein the second packet is received after the packet; determine, by the node, that the reorderability indicator of the packet indicates that reordering of the packet is allowed; and transmit, by the node, the packet and the second packet such that the packet is transmitted after the second packet. In at least some example embodiments, to support communication of packets, the set of instructions is configured to, when executed by the at least one processor, cause the apparatus to: receive, by a node having a default behavior of allowing reordering of packets, a packet and a second packet, wherein the second packet is received after the packet; determine, by the node, that a reorderability indicator of the packet indicates that reordering of the packet is not allowed; and transmit, by the node, the packet and the second packet such that the packet is transmitted before the second packet. In at least some example embodiments, the reorderability indicator is encoded within an Internet Protocol version 4 (IPv4) options header.In at least some example embodiments, the resequenceability indicator is encoded within an Internet Protocol version 6 (IPv6) extension header (EH). In at least some example embodiments, the IPv6 EH is a hop-by-hop options header. In at least some example embodiments, the resequenceability indicator is encoded within a resequenceability indicator tag. In at least some example embodiments, the resequenceability indicator tag is appended to an Ethernet header to which the resequenceability indicator applies. In at least some example embodiments, the resequenceability indicator tag is appended to a virtual local area network (VLAN) tag to which the resequenceability indicator applies. In at least some example embodiments, the resequenceability indicator is encoded within a multiprotocol label switching (MPLS) label. In at least some example embodiments, the MPLS label is located above a label of a label switched path (LSP) to which the resequenceability indicator applies. In at least some example embodiments, the MPLS label is located below a label of a label switched path (LSP) to which the resequenceability indicator applies. In at least some example embodiments, to support communication of packets, the set of instructions is configured to, when executed by the at least one processor, cause the apparatus to: determine that packets associated with a first communication layer are to be encapsulated by an encapsulation at a second communication layer; and encode a reorderability indicator into the encapsulation at the second communication layer. In at least some example embodiments, the first communication layer and the second communication layer use a common communication protocol. In at least some example embodiments, the first communication layer and the second communication layer use different communication protocols.
[0004] In at least some example embodiments, a non-transitory computer-readable medium stores an instruction set configured to cause an apparatus to support communication of a packet including a reorderability indicator indicating reorderability of the packet. In at least some example embodiments, the reorderability indicator indicates whether reordering of the packet is allowed. In at least some example embodiments, the reorderability indicator indicates whether reordering of the packet is allowed with respect to a flow associated with the packet. In at least some example embodiments, the reorderability indicator indicates that reordering of the packet is not allowed. In at least some example embodiments, to support communication of the packet, the instruction set is configured to cause the apparatus to send the packet using per-flow load balancing. In at least some example embodiments, the reorderability indicator indicates that reordering of the packet is allowed. In at least some example embodiments, to support communication of the packet, the instruction set is configured to cause the apparatus to send the packet using per-packet load balancing. In at least some example embodiments, to support communication of packets, the instruction set is configured to cause the apparatus to: determine that the packet may need to be reordered relative to a second packet received after the packet; and based on determining that a reorderability indicator of the packet indicates that reordering of the packet is not allowed, transmit the packet before the second packet. In at least some example embodiments, to support communication of packets, the instruction set is configured to cause the apparatus to: determine that the packet may need to be reordered relative to a second packet received after the packet; and based on determining that a reorderability indicator of the packet indicates that reordering of the packet is allowed, transmit the second packet before the packet. In at least some example embodiments, to support communication of packets, the instruction set is configured to cause the apparatus to: receive, by a node having a default behavior of enforcing in-order delivery of packets, a packet and a second packet, wherein the second packet is received after the packet; determine, by the node, that the reorderability indicator of the packet indicates that reordering of the packet is allowed; and transmit, by the node, the packet and the second packet such that the packet is transmitted after the second packet. In at least some example embodiments, to support communication of packets, the instruction set is configured to cause the apparatus to: receive, by a node having a default behavior that allows reordering of packets, a packet and a second packet, wherein the second packet is received after the packet; determine, by the node, that a reorderability indicator of the packet indicates that reordering of the packet is not allowed; and transmit, by the node, the packet and the second packet such that the packet is transmitted before the second packet. In at least some example embodiments, the reorderability indicator is encoded within an Internet Protocol version 4 (IPv4) options header. In at least some example embodiments, the reorderability indicator is encoded within an Internet Protocol version 6 (IPv6) extension header (EH). In at least some example embodiments, the IPv6 EH is a hop-by-hop options header. In at least some example embodiments, the reorderability indicator is encoded within a reorderability indicator tag.In at least some example embodiments, the resequenceability indicator tag is appended to an Ethernet header to which the resequenceability indicator applies. In at least some example embodiments, the resequenceability indicator tag is appended to a virtual local area network (VLAN) tag to which the resequenceability indicator applies. In at least some example embodiments, the resequenceability indicator is encoded within a multiprotocol label switching (MPLS) label. In at least some example embodiments, the MPLS label is located above a label of a label switched path (LSP) to which the resequenceability indicator applies. In at least some example embodiments, the MPLS label is located below a label of a label switched path (LSP) to which the resequenceability indicator applies. In at least some example embodiments, to support communication of packets, the set of instructions is configured to cause the apparatus to: determine that a packet associated with a first communication layer is to be encapsulated by an encapsulation at a second communication layer; and encode the resequenceability indicator into the encapsulation at the second communication layer. In at least some example embodiments, the first communication layer and the second communication layer use a common communication protocol. In at least some example embodiments, the first communication layer and the second communication layer use different communication protocols.
[0005] In at least some example embodiments, a method includes supporting communication of a packet including a resequenceability indicator, the resequenceability indicator indicating resequenceability of the packet. In at least some example embodiments, the resequenceability indicator indicates whether resequence of the packet is allowed. In at least some example embodiments, the resequenceability indicator indicates whether resequence of the packet is allowed with respect to a flow associated with the packet. In at least some example embodiments, the resequenceability indicator indicates that resequence of the packet is not allowed. In at least some example embodiments, supporting communication of the packet includes sending the packet using per-flow load balancing. In at least some example embodiments, the resequenceability indicator indicates that resequence of the packet is allowed. In at least some example embodiments, supporting communication of the packet includes sending the packet using per-packet load balancing. In at least some example embodiments, supporting communication of the packet includes determining that the packet may need to be resequenced relative to a second packet received after the packet; and transmitting the packet before the second packet based on determining that the resequenceability indicator of the packet indicates that resequence of the packet is not allowed. In at least some example embodiments, supporting communication of packets includes: determining that the packet may need to be reordered relative to a second packet received after the packet; and based on determining that a reorderability indicator of the packet indicates that reordering of the packet is allowed, transmitting the second packet before the packet. In at least some example embodiments, supporting communication of packets includes: receiving, by a node having a default behavior of enforcing in-order delivery of packets, a packet and a second packet, wherein the second packet is received after the packet; determining, by the node, that a reorderability indicator of the packet indicates that reordering of the packet is allowed; and transmitting, by the node, the packet and the second packet such that the packet is transmitted after the second packet. In at least some example embodiments, supporting communication of packets includes: receiving, by a node having a default behavior of allowing reordering of packets, a packet and a second packet, wherein the second packet is received after the packet; determining, by the node, that a reorderability indicator of the packet indicates that reordering of the packet is not allowed; and transmitting, by the node, the packet and the second packet such that the packet is transmitted before the second packet. In at least some example embodiments, the reorderability indicator is encoded within an Internet Protocol version 4 (IPv4) options header. In at least some example embodiments, the reorderability indicator is encoded within an Internet Protocol version 6 (IPv6) extension header (EH). In at least some example embodiments, the IPv6 EH is a hop-by-hop options header. In at least some example embodiments, the reorderability indicator is encoded within a reorderability indicator tag. In at least some example embodiments, the reorderability indicator tag is appended to an Ethernet header to which the reorderability indicator applies. In at least some example embodiments, the reorderability indicator tag is appended to a virtual local area network (VLAN) tag to which the reorderability indicator applies.In at least some example embodiments, the resequenceability indicator is encoded within a multi-protocol label switching (MPLS) label. In at least some example embodiments, the MPLS label is located above a label of a label switched path (LSP) to which the resequenceability indicator applies. In at least some example embodiments, the MPLS label is located below a label of a label switched path (LSP) to which the resequenceability indicator applies. In at least some example embodiments, supporting communication of packets includes: determining that packets associated with a first communication layer are to be encapsulated by an encapsulation at a second communication layer; and encoding the resequenceability indicator into the encapsulation at the second communication layer. In at least some example embodiments, the first communication layer and the second communication layer use a common communication protocol. In at least some example embodiments, the first communication layer and the second communication layer use different communication protocols.
[0006] In at least some example embodiments, an apparatus includes means for supporting communication of a packet, the packet including a reorderability indicator indicating reorderability of the packet. In at least some example embodiments, the reorderability indicator indicates whether reordering of the packet is allowed. In at least some example embodiments, the reorderability indicator indicates whether reordering of the packet is allowed with respect to a flow associated with the packet. In at least some example embodiments, the reorderability indicator indicates that reordering of the packet is not allowed. In at least some example embodiments, the means for supporting communication of the packet includes means for sending the packet using per-flow load balancing. In at least some example embodiments, the reorderability indicator indicates that reordering of the packet is allowed. In at least some example embodiments, the means for supporting communication of the packet includes means for sending the packet using per-packet load balancing. In at least some example embodiments, the means for supporting communication of the packet includes means for determining that the packet may need to be reordered relative to a second packet received after the packet; and means for transmitting the packet before the second packet based on determining that the reorderability indicator of the packet indicates that reordering of the packet is not allowed. In at least some example embodiments, components for supporting communication of packets include: components for determining that a packet may need to be reordered relative to a second packet received after the packet; and components for transmitting the second packet before the packet based on determining that a reorderability indicator of the packet indicates that reordering of the packet is allowed. In at least some example embodiments, components for supporting communication of packets include: components for receiving a packet and a second packet by a node having a default behavior that enforces in-order delivery of packets, wherein the second packet is received after the packet; components for determining, by the node, that the reorderability indicator of the packet indicates that the packet is allowed to be reordered; and components for transmitting, by the node, the packet and the second packet such that the packet is transmitted after the second packet. In at least some example embodiments, components for supporting communication of packets include: components for receiving a packet and a second packet by a node having a default behavior that allows reordering of packets, wherein the second packet is received after the packet; components for determining, by the node, that the reorderability indicator of the packet indicates that reordering of the packet is not allowed; and components for transmitting, by the node, the packet and the second packet such that the packet is transmitted before the second packet. In at least some example embodiments, the resequenceability indicator is encoded within an Internet Protocol version 4 (IPv4) options header. In at least some example embodiments, the resequenceability indicator is encoded within an Internet Protocol version 6 (IPv6) extension header (EH). In at least some example embodiments, the IPv6 EH is a hop-by-hop options header. In at least some example embodiments, the resequenceability indicator is encoded within a resequenceability indicator tag.In at least some example embodiments, a resequenceability indicator tag is appended to an Ethernet header to which the resequenceability indicator applies. In at least some example embodiments, the resequenceability indicator tag is appended to a virtual local area network (VLAN) tag to which the resequenceability indicator applies. In at least some example embodiments, the resequenceability indicator is encoded within a multiprotocol label switching (MPLS) label. In at least some example embodiments, the MPLS label is located above a label of a label switched path (LSP) to which the resequenceability indicator applies. In at least some example embodiments, the MPLS label is located below a label of a label switched path (LSP) to which the resequenceability indicator applies. In at least some example embodiments, a component for supporting communication of packets includes: a component for determining that a packet associated with a first communication layer is to be encapsulated by an encapsulation at a second communication layer; and a component for encoding the resequenceability indicator into the encapsulation at the second communication layer. In at least some example embodiments, the first communication layer and the second communication layer use a common communication protocol. In at least some example embodiments, the first communication layer and the second communication layer use different communication protocols. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] The teachings herein may be readily understood by considering the following detailed description in conjunction with the accompanying drawings, in which:
[0008] Figure 1 An example embodiment of a communication system including a packet-switched network configured to support a packet reordering function is depicted;
[0009] Figure 2 An example embodiment of a packet-switched network is depicted for illustrating ECMP in a shortest path routing network;
[0010] Figure 3 Depicted as Figure 2 Example embodiments of packet-switched networks that are variations of packet-switched networks;
[0011] Figure 4 Depicted Figure 3 An example embodiment of a packet switching network for illustrating a shortest path tree for use in shortest path routing;
[0012] Figure 5 Depicted Figure 3 An example embodiment of a packet switching network for illustrating a pair of maximally disjoint trees for use in random load balancing based routing;
[0013] Figure 6 An example embodiment of a communication system including a reordering network that reorders packets as they traverse the reordering network is depicted;
[0014] Figure 7 Depicted is an example embodiment of using a reorderability indicator (RI) to control reordering of packets in a reordering network, wherein a default behavior of the reordering network is to allow reordering of packets;
[0015] Figure 8 Depicted is an example embodiment of using RI to control reordering of packets in a reordering network where the default behavior of the reordering network is to ensure in-order delivery of packets;
[0016] Fig. 9 An example embodiment of an IPv4 header comprising one or more IPv4 options headers configured to include an RI options header in the IPv4 header to support reorderability is depicted;
[0017] Fig.10 An example embodiment of an IPv4 options header configured to provide an RI options header in an IPv4 header to support reorderability is depicted;
[0018] Fig.11 An example embodiment of an IPv6 Hop-by-Hop Options header configured to provide an RI Options header in an IPv6 header to support reorderability is depicted;
[0019] Fig.12 An example embodiment of a TLV encoding option configured for use in an IPv6 Hop-by-Hop Options header in an IPv6 header to provide an RI Options header in an IPv6 header to support reorderability is depicted;
[0020] Fig.13 Depicting an example embodiment of a TLV-encoded option for an IPv6 Hop-by-Hop Options header configured for use as an RI Options header in an IPv6 header;
[0021] Fig.14 Depicted are example embodiments of a RI that may be used within an Ethernet packet;
[0022] Fig.15 An example embodiment of inserting a RI into an untagged Ethernet packet is depicted;
[0023] Fig.16 An example embodiment of inserting a RI into a tagged Ethernet packet is depicted;
[0024] Fig.17 Depicted are example embodiments of RI labels that may be used within an MPLS label stack in an MPLS packet;
[0025] Fig.18 An example embodiment of an MPLS label stack is depicted to illustrate cross-layer propagation of RIs;
[0026] Fig.19 An example embodiment of a method used by a node to support use of RI for controlling resequenceability in a packet-switched network is depicted;
[0027] Fig. 20 An example embodiment of a method used by a node to support cross-layer propagation of RI for controlling resequenceability in a packet-switched network is depicted;
[0028] Fig.21 An example embodiment of a method used by a node to forward packets in a manner that controls reorderability in a packet-switched network is depicted;
[0029] Fig. 22 An example embodiment of a method for supporting reordering in a packet-switched network is depicted; and
[0030] Fig.23 An example embodiment of a computer suitable for performing the various functions presented herein is depicted.
[0031] To facilitate understanding, identical reference numerals have been used herein, where possible, to designate identical elements that are common to the figures. DETAILED DESCRIPTION
[0032] Various example embodiments for controlling the reordering of packets in a packet switching network are presented herein. Various example embodiments for controlling the reordering of packets in a packet switching network may be configured to control the reordering of packets in the packet switching network based on the control of the reorderability of packets in the packet switching network. Various example embodiments for controlling the reordering of packets in a packet switching network may be configured to control the reordering of packets in the packet switching network based on the use of a reorderability indicator (RI) and thus control the reordering of packets in the packet switching network. The RI of a packet is included in the packet to indicate the reorderability of the packet, wherein the reorderability of the packet indicates whether the reordering of the packet is allowed. The RI may be included in the packet for controlling the reorderability of the packet and thus controlling the reordering of the packet as the packet traverses the network. The RI may be included in the packet by a source node of the packet or by a forwarding node along a path that the packet traverses the network. The RI may be used by nodes along the path traversed by the packet to control the reordering of the packet as the packet traverses the path of the network. The RI may be used to control the reorderability of packets in various types of packet switching networks, and thereby control the reordering of the packets, such as Internet Protocol (IP) networks (e.g., IP version 4 (IPv4) networks, IP version 6 (IPv6) networks, etc.), Ethernet networks, Multiprotocol Label Switching (MPLS) networks, etc., and various combinations thereof. The encoding of the RI within a packet may vary between the various types of packet switching networks in which the RI may be used. It should be understood that these and various other example embodiments and advantages or potential advantages of controlling the reordering of packets in a packet switching network may be further understood by reference to the various drawings discussed further below.
[0033] Figure 1 An example embodiment of a communication system including a packet-switched network configured to support packet reordering functionality is depicted.
[0034] The communication system 100 includes a pair of hosts 110 -A and 110 -Z (collectively referred to as hosts 110 ) and a packet switching network 120 configured to support communications between the hosts 110 .
[0035] Host 110 may be any device that can communicate over a packet-switched network, such as packet-switched network 120. For example, host 110 may be an endpoint device (e.g., a smart phone, a desktop computer, a laptop computer, a tablet, a smart TV, a gaming system, an Internet of Things (IoT) device, etc.), a network device (e.g., a router, a switch, a bridge, a gateway, a server, a virtual machine, etc.), etc. Host 110 may be configured to support communication of packets based on RI (e.g., encoding RI into packets, processing packets based on RI, etc., and various combinations thereof). It should be understood that hosts 110-A and 110-Z may include reordering elements 130-A and 130-Z, respectively, configured to support communication of packets based on RI.
[0036] The packet switching network 120 is configured to support communication of packets between the hosts 110. The packet switching network 120 can support communication of packets based on various packet switching technologies (including various communication layers, communication protocols, etc., and various combinations thereof). For example, the packet switching network 120 can be configured to support packet switching technologies (such as IP, Ethernet, MPLS, etc., and various combinations thereof). The packet switching network 120 includes a reordering network 125, which can form the entire packet switching network 120 or a portion of the packet switching network 120. It should be understood that multiple reordering networks can form a portion of the packet switching network 120.
[0037] The reordering network 125 is configured to support communication of packets using packet reordering. The reordering network 125 may represent one or more nodes of the packet switching network 120 that are configured to support communication of packets using packet reordering (e.g., a single node, multiple nodes, multiple nodes associated as a network, etc.). The reordering network 125 may be configured to use (1) a default operation mode in which in-order delivery of packets is enforced unless the packet includes an RI indicating that reordering of packets is allowed, or (2) a default operation mode in which reordering of packets is allowed unless the packet includes an RI indicating that reordering of packets is not allowed. The reordering network 125 (e.g., one or more nodes of the reordering network 125) may be configured to support communication of packets based on the RI (e.g., encoding the RI into the packet, determining whether to reorder the packet based on the RI encoded in the packet, etc.). It should be understood that the reordering network 125 may include a reordering element 130-N (in the case where the reordering network 125 includes multiple nodes, the reordering element 130-N may be multiple elements distributed across multiple nodes).
[0038] It should be appreciated that various aspects of supporting packet reordering in a packet-switched network may be further appreciated by first considering various aspects of a packet-switched network.
[0039] In a packet-switched network, a node may have multiple paths to a destination. The multiple paths to a destination may be calculated and used in various ways (e.g., using equal-cost multi-path (ECMP) or unequal-cost multi-path (UCMP), using flow-based routing or packet-based routing, etc., and various combinations thereof). Various aspects of supporting packet reordering in a packet-switched network and in a reordering network within a packet-switched network may be further understood by first considering various aspects of such a packet-switched network.
[0040] Figure 2 An example embodiment of a packet-switched network is depicted for illustrating ECMP in a shortest path routing network.
[0041] Packet switching network 200 includes eight nodes labeled Node A through Node H. Figure 2 In , the link from node X to node Y is denoted as X->Y. Therefore, X->Y and Y->X are two links of the same physical connection between X and Y, and X->Y and Y->X are collectively denoted as X<->Y.
[0042] In shortest path routing, each link is assigned a cost (which may also be called a distance or metric). The costs of links in a physical connection can be asymmetric. For example, B->D and D->B can have different costs; however, for simplicity and without loss of generality, the costs of links in a physical connection are given by Figure 2 The packet switching network 200 is considered to be symmetrical. Each node establishes the same topological database of the network, where the topological database is a graph of the network with nodes as vertices and links as edges. Then, each node independently calculates the path to each known destination by running a shortest path tree (SPT) algorithm (e.g., Dijkstra algorithm) on the topological database. The packet to the destination always follows the shortest path along the network to the destination. The SPT algorithm ensures that the first shortest path from the first node to the destination includes the shortest path from each transit node (traversed by the first shortest path) to the destination. Therefore, the shortest path from the node to the destination is consistent in all transit nodes along the path, and the path is loop-free. The first node forwards the packet to the next hop along the first shortest path to the destination encoded in the packet. Similarly, each transit node independently makes a forwarding decision on the packet based on the shortest path to the destination encoded in the packet. This forwarding model is also called "destination-based routing."
[0043] For example, in an IP network, each node / router uses an interior gateway protocol (IGP) to flood the state of its adjacent links and local networks through the network. Using this flooding mechanism, each router establishes the same topology database of the network. Then, the IGP at each router uses the SPT algorithm to calculate the IP routes leading to each other node (destination) and build its IP routing table. For example, IGP can include open shortest path first (OSPF), intermediate system to intermediate system (IS-IS), OSPF version 3 (OSPFv3), etc. Therefore, the router in the IGP forwards packets to the corresponding destination along the (multiple) shortest paths leading to the destination. In the case of an IP network, the destination entry in the table can be an IP prefix, and in particular, the destination entry in the table can be the IP address of the node.
[0044] In an MPLS network, the shortest path label switched path (LSP) to the destination is established by a protocol such as Label Distribution Protocol (LDP) or segment routing (e.g., SR, SR-MPLS, etc.), which is based on the shortest path IP routes calculated by the IGP.
[0045] In an Ethernet network based on Shortest Path Bridging (SPB), the shortest path to each destination bridge is calculated by IS-IS. An Ethernet packet from a source bridge to a destination bridge is sent along the shortest path to the destination bridge.
[0046] exist Figure 2 , the SPT 210 calculated by node A for teaching all remaining nodes BH includes the following paths from node A to node BH: (1) to B=>A->B, with cost 1, (2) to C=>A->C, with cost 1, (3) to D=>A->B->D, with cost 3, (4) to E=>A->C->E, with cost 3, (5) to F=>A->B->D->F, with cost 4, (6) to G=>A->C->E->G, with cost 4, (7) to H=>A->B->D->G->H, with cost 5 (path 1), and (8) A->C->E->G->H, with cost 5 (path 2). Obviously, there are two ECMP paths from node A to node H, denoted as path 1 and path 2, each with a cost of 5. Therefore, to maximize throughput, node A can load balance packets to H on two ECMP paths, A->C->E->G->H and A->B->D->F->H. Node A can perform load balancing using per-flow load balancing or per-packet load balancing.
[0047] In per-flow load balancing, the path of the packet is selected after hashing several fields in the packet's (multiple) headers. From a load balancing perspective, such a combination of fields is called a "flow". For example, a packet flow can be all packets to a specific destination with a specific forwarding class (FC), and all packets between the source and the destination have specific source ports and destination ports in the transport layer (e.g., TCP, UDP, SCTP, etc.), which means that packets from a specific application constitute a flow. Therefore, packets belonging to a specific flow are always sent along a fixed path in the ECMP set. Therefore, although this scheme ensures the orderly delivery of packets of the flow at its destination, a limitation of per-flow load balancing is that if most packets to the destination are hashed to the same path, it will cause unfair load balancing in ECMP.
[0048] In per-packet load balancing, which can be used to address the unfairness of load distribution in per-flow load balancing, packets to a destination can be sprayed evenly on all paths to the destination in ECMP. A simple approach to per-packet load balancing is to spray subsequent packets on each path in ECMP in a round-robin manner. For example, if A sends a sequence of packets P1, P2, P3, P4 to H, then P1 is sent on path 1, P2 is sent on path 2, P3 is sent on path 1, and P4 is sent on path 2. Note that per-packet load balancing in UCMP is also possible (e.g., using random load balancing (RLB), which may be considered a deviation from the shortest path routing paradigm).
[0049] In shortest path routing, all packets to a destination are forwarded along a common shortest path to the destination, while alternative paths to the destination remain unused. As a result, the shortest path may become overloaded, leading to congestion and packet loss. In addition, the shortest paths to multiple destinations may share common links and thereby exacerbate congestion on the shared links. ECMP alleviates this problem to some extent by load balancing packets to a destination along multiple equal-cost shortest paths, but ECMP is subject to the following limitations: (1) ECMP is topology dependent and is not always applicable to all network topologies; and (2) even if ECMP is possible, non-ECMP alternative paths to the destination may still remain unused.
[0050] As described above, at least some of these limitations of per-flow load balancing and ECMP can be overcome based on the use of an RLB scheme, which can be referenced by Figures 3 to 5 Further understanding. Figure 3 Depicted as Figure 2 Example embodiments of packet-switched networks that are variants of packet-switched networks. Figure 4 Depicted Figure 3 An example embodiment of a packet switching network is provided for illustrating a shortest path tree for use in shortest path routing. Figure 5 Depicted Figure 3 An example embodiment of a packet-switched network is provided for illustrating a pair of maximally disjoint trees for use in RLB-based routing.
[0051] exist Figure 3 In the packet switching network 300, a packet switching network 300 is similar to Figure 2 The packet switching network 200 is different in that some link costs are modified.
[0052] exist Figure 4 In the packet switching network 400 and Figure 3 The packet switching network 400 includes an SPT 410 that is configured such that ECMP is not possible from node A to node H; however, alternative paths exist between node A and node H, and these alternative paths remain unused by traffic from node A to node B.
[0053] In RLB, packets to a destination can be fairly (e.g., evenly) sprayed on all possible paths to the destination, regardless of the flow associated with the packet. This ensures optimal utilization of all network resources, thereby eliminating congestion or at least reducing it to the lowest possible level and maximizing packet throughput. In RLB, a node calculates as many maximum disjoint trees as possible to all destinations in the network, where maximum disjointness means that the links included in the tree are mutually exclusive. Packets to the destination are then load balanced in a round robin manner between the paths to the destination along the calculated maximum disjoint trees. Since RLB sprays packets evenly on all possible maximum disjoint paths to the destination, the scheme maximizes the throughput and utilization of network resources. Note that since the overhead of the load-balanced paths to the destination is not equal, RLB is a case of UCMP. RLB can be used in various types of packet switching networks, including IP networks, Ethernet, and MPLS networks, etc.
[0054] exist Figure 5 In the packet switching network 500 and Figure 3 The packet switching network 300 is the same as Figure 5 In , various maximum disjoint trees connecting node A to the remaining nodes BH are possible. Figure 5In , two such maximum disjoint trees connecting the remaining nodes BH from node A are presented. As a result, node A has two paths to each of the destinations BH, each path passing through a specific tree. For example, node A has the following paths to node H: (1) in tree 1, the path A->B->D->F->H, with cost 5, and (2) in tree 2, the path A->C->E->F->G->H, with cost 14. Node A load balances packets evenly between the trees, distributing packets between the trees in a round-robin manner. Note that each node independently computes the maximum disjoint trees of the remaining nodes in the network, and the trees are incoherent between nodes. Therefore, when a node sends a packet along a path in a tree, it encodes an ordered list of links or nodes of the path into the packet. Each transit node along the path pops the topmost entry in the list and forwards it to the next hop identified by the topmost entry. Therefore, the RLB scheme described in this article does not use destination-based routing (although it will be appreciated that other schemes are possible).
[0055] In a per-packet load balancing scheme, as described above, packets belonging to a flow are sprayed across multiple paths to their destination. The delay experienced by the packets along each path may be different. Even if all load-balanced paths to a destination can be ECMP (e.g., Figure 2 The delay for each path may also be different, as the delay is caused by dynamic factors such as congestion at transit nodes. As a result, packets belonging to the flow are reordered by the network, and therefore, the packets may arrive at their destination out of order. In addition, the network may deploy techniques other than per-packet load balancing in ECMP or UCMP (in which packets of a flow may be reordered involuntarily). It should be understood that such a network that may reorder packets involuntarily or voluntarily may be more generally referred to as a reordering network (RN). An example of such an RN is Figure 6 Depicted in.
[0056] Figure 6 An example embodiment of a communication system including a reordering network that reorders packets as the packets traverse the reordering network is depicted.
[0057] The communication system 600 includes a pair of hosts 610-A and 610-Z (collectively referred to as hosts 610) and RN 625. Hosts 610 are separated by a PSN including RN 625. Host 610-A sends a sequence of packets [(first) P1, P2, P3, P4 (last)] to host 610-Z. RN 625 reorders the sequence of packets to [(first) P2, P4, P3, P1 (last)], and the packets arrive at host 610-Z in this order. If packets P1, P2, P3, P4 belong to the same packet stream, the packets of the stream arrive at host B out of order.
[0058] As mentioned above, one side effect of packets traversing the RN is that out-of-order delivery of packets may occur at the destination. Note that packet reordering is now considered common in complex networks such as the Internet. Due to various reasons, such as multipath routing, routing jitter, and retransmissions, packets belonging to a flow may arrive at the destination out of order anyway. As the delay difference between alternative paths decreases, the occurrence of out-of-order delivery also decreases. For example, in a data center / WebScale network, for intra-DC services, the packet delay on all paths is almost the same. Therefore, the advantages of RN usually outweigh the negligible out-of-order delivery that may occur in DC networks. In the past, packet reordering violated the design principles of certain service control mechanisms in the Transmission Control Protocol (TCP), resulting in performance problems. TCP is the most popular Internet transport layer protocol. Reordering may cause performance problems in TCP's fast retransmit algorithm, which uses the arrival of duplicate acknowledgments to detect segment loss. The loss of segments or the reordering of segments by the network may result in duplicate acknowledgments. In order to overcome such performance issues, many mitigation measures have been added to TCP, such as selective acknowledgment (SACK), duplicate SACK (D-SACK), etc. SACK specifies the use of the SACK option to acknowledge out-of-order data that is not covered by TCP's cumulative acknowledgment field. The TCP sender can then use this information to operate more robustly in an environment of reordered packets, ACK loss, packet duplication, and / or early retransmission timeouts. In addition to SACK or D-SACK, there are many other features in various TCP implementations, and in general, out-of-order delivery of packets is no longer a problem for TCP.
[0059] As described above, in general, out-of-order delivery of packets is not a pathological behavior in Internet or network applications; however, there are various real-time applications (e.g., VoIP, etc.) where performance depends on the ordered delivery of packets, and similarly, there are custom applications that rely on the ordered delivery of packets (e.g., custom applications used within a DC). When such applications communicate through the RN, the RN needs to make exceptions for such packets and ensure ordered transmission. For example, a node in the RN can perform per-flow load balancing on such packets to ensure that packets of such applications (flows) are always sent on a fixed path among multiple available paths. Currently, the RN cannot make such an exception because the nodes in the RN do not know the reorderability preferences of the packets of the flow; only the applications at the endpoints of the flow know such requirements. The various example embodiments presented herein are configured to overcome this limitation based on an explicit indication of the reorderability preference in the packet, so that the node can determine whether it is necessary to prevent packet reordering (e.g., by applying per-flow load balancing) or perform packet reordering (e.g., by applying per-packet load balancing) based on the explicit indication of the reorderability preference in the packet.
[0060] In at least some example embodiments, support for reorderability may be provided based on including a reorderability indicator (RI) into a packet. The RI indicates whether a packet including the RI may be reordered while traversing a network. The RI may be inserted into a packet by an originator of the packet. When a node in an RN forwards a packet in a manner that may cause the packet to be reordered, the node in the RN looks for the presence of the RI in the packet. If the RI is present in the packet and indicates that the packet cannot be reordered, the node forwards it in a manner that ensures in-order delivery. If the RI is present in the packet and indicates that the packet may be reordered, the node forwards it in a manner that may cause the packet to be reordered. Note that the encoding of the RI and the use of the RI to control the reordering of packets may depend on the default behavior of the reordering network, for example, whether the default behavior of the RN allows reordering of packets (for example, in Figure 7 An example of this situation is provided in ) or whether the default behavior of the RN is to ensure in-order delivery of packets (e.g. Figure 8 An example of this situation is provided in ).
[0061] Figure 7 An example embodiment is depicted that uses RI to control reordering of packets in a reordering network, where a default behavior of the reordering network is to allow reordering of packets.
[0062] The communication system 700 includes a pair of hosts 710-A and 710-Z (collectively referred to as hosts 710) and a RN 725. The hosts 710 are separated by a PSN including the RN 725. Figure 7 In Figure 1, host A sends packets P1, P2, P3, P4, P5, P6 to host B. Packets P1, P3, P5 belong to an application that requires ordered delivery of packets. Therefore, host A includes RI into packets P1, P3 and P5 without reorderability preference. The notation "RI=Y" is used for RI with reorderability preference and "RI=N" is used for RI without reorderability preference. Therefore, the sequence of packets flowing out of RN is P1, P5, P3, P6, P2, P4. Therefore, packets P2, P4, P6 are reordered, but P1, P3, P5 remain in the same order when they enter RN.
[0063] For example, suppose Figure 7 The RN 725 is Figure 2 , where node A has two ECMP paths to H. By default, node A performs per-packet load balancing of packets to H. When node A receives a packet from host 710-A to be forwarded to host 710-Z via node H, node A looks for the presence of an RI in the packet. If the packet includes an RI indicating that the packet cannot be reordered (such as packets P1, P3, P5), node A performs per-flow load balancing on the packet.
[0064] Figure 8 An example embodiment is depicted of using RI to control reordering of packets in a reordering network where the default behavior of the reordering network is to ensure in-order delivery of packets.
[0065] exist Figure 8 In Figure 1, host A sends packets P1, P2, P3, P4, P5, P6 to host B. Packets P2, P4, P6 are allowed to be reordered along their path. Therefore, host A includes RI into packets P2, P4 and P6 with a reordering preference. The notation "RI=Y" is used for RI with a reorderable preference and "RI=N" is used for RI without a reorderable preference. Therefore, the sequence of packets flowing out of the RN is P1, P5, P3, P6, P5, P4. Therefore, packets P2, P4, P6 are reordered, but the order of packets P1, P3, P5 is the same as when they entered the RN.
[0066] For example, suppose Figure 8 The RN 825 is Figure 2, where node A has two ECMP paths to H. By default, node A performs per-flow load balancing of packets to H. When node A receives a packet from host 710-A to be forwarded to host 710-Z via node H, node A looks for the presence of an RI in the packet. If the packet includes an RI indicating that the packet can be reordered (such as packets P2, P4, P6), node A performs per-packet load balancing on the packet.
[0067] It should be understood that although the embodiments are presented mainly for the case where the host knows the reorderability preference of the RN and can encode the RI in only a portion of the packets according to the reorderability preference of the RN, there may be cases where the host does not know the reorderability preference of the RN, in which case the host can encode the RI into each packet (i.e., encode RI=N for each packet that cannot be reordered, and encode RI=Y for each packet that can be reordered). For example, in Figure 7 In , host 710-A may encode RI into each of packets P1-P6, where packets P1, P3, and P5 are encoded with RI=N, and packets P2, P4, and P6 are encoded with RI=Y. Similarly, for example, in Figure 8 , host 810-A may encode RI into each of packets P1-P6, where packets P1, P3, and P5 are encoded with RI=N, and packets P2, P4, and P6 are encoded with RI=Y.
[0068] It should be understood that the concept of RI is general and applicable to any packet switching technology, such as IP, Ethernet, MPLS, etc., and various combinations thereof.
[0069] Various example embodiments for supporting the use of RI in various packet-switched networks (eg, for IPv4, IPv6, Ethernet, and MPLS) are presented below.
[0070] In at least some example embodiments, the RI may be used within IPv4 packets to control the reorderability, and therefore the reordering, of the IPv4 packets.
[0071] The IPv4 specification describes several options that can be attached to the IPv4 header. The options provide control functions that are needed or useful in some cases but not necessary for most common communications. The options include provisions for timestamps, security, special routing, etc. The option begins with a 1-octet type field, followed by a type-specific encoding. The length of the option is variable. Therefore, if the option does not have any type-specific data, its minimum size is 1 octet (only the type), and the maximum size of the option is limited by the maximum allowed value of the IHL field in the IPV4 header. Fig. 9An example embodiment of an IPv4 header 900 including one or more IPv4 option headers configured to include an RI option header in the IPv4 header to support reorderability is depicted. The IPv4 option header in the IPv4 header 900 is appended after the destination address field. A variable-sized padding field is appended after the IPv4 option header to round the IPv4 header 900 to a multiple of 4-octet words.
[0072] It should be understood that, although omitted for clarity, the IPv4 options header includes a 1-octet type field followed by type-specific data. The type field is considered to have three fields: a 1-bit "Copied Flag" field, a 2-bit "Option Class" field, and a 5-bit "Option Number" field. The Copy Flag field indicates that the option is copied to all fragments when fragmented (e.g., a value of 0 = not copied, and a value of 1 = copied). Option classes include: 0 = control, 1 = reserved for future use, 2 = debugging and measurement, and 3 = reserved for future use. The type field can be used to define various types of IPv4 options.
[0073] In one example, an IPv4 options header configured with an option type for an RI options header (also referred to herein as "RI options") may be used to provide reorderability based on the use of RI.
[0074] Fig.10 An example embodiment of an IPv4 options header configured to provide an RI options header 1000 in an IPv4 header to support reorderability is depicted.
[0075] The RI options header 1000 may be defined as follows: The RI options header 1000 includes a 1-octet "Type" field (common to any IPv4 options header), a 1-octet "Length" field, and a 1-octet "Flag" field.
[0076] The "Type" field may have a COPY value of "1", a CLASS value of "0", a NUMBER of "31", a LENGTH of "3", and a DESCRIPTION of "Resequenceability indicator for indicating the resequenceability of an IPv4 packet". This results in a value of 159 in the "Type" field. It should be understood that other suitable values may be used for NUMBER to indicate that the IPv4 options header is an RI options header. The COPY bit is 1, which indicates that if an IPv4 packet carrying an RI options header is fragmented by a router, the RI options header is copied to all fragments.
[0077] The "Length" field is a 1-octet field that indicates the length of the RI Options Header, including the "Type" octet, the "Length" octet, and the "Flags" octet (ie, the value is set to 3).
[0078] The "Flags" field is a 1-octet field that includes N bits. The N bits can be configured so that N=1 indicates that the IPv4 packet cannot be reordered, and if N=0, the IPv4 packet can be reordered (or vice versa). The remaining bits in the "Flags" field will be set to 0 by the sender and ignored by the receiver.
[0079] In this example, when the router routes an IPv4 packet, the router checks to see if an RI option header is present in the IPv4 header, and if so, based on the N bit, the router makes a reorderability decision when forwarding the packet.
[0080] It should be appreciated that while primarily presented with respect to example embodiments in which RI is implemented within an IPv4 header using an IPv4 options header configured as an RI options header, in at least some example embodiments, RI may be implemented within an IPv4 header using a generic hop-by-hop options header. The hop-by-hop options header may be defined as having Fig.10 The RI Options header 1000 has the same format, except that each bit position in the "Flags" field can encode a binary-coded option (i.e., indicating "yes" or "no") that is to be processed by each node in the path of the packet. Bit position 0 in the "Flags" field can be defined as an RI option (e.g., if the value of bit position 0 is "1", it indicates that the IPv4 packet cannot be reordered, while if the value of bit position 0 is "0", it indicates that the IPv4 packet can be reordered, and vice versa). Note that one advantage of using a Hop-by-Hop Options header is that multiple binary-coded options to be processed at each hop can be encoded in the same header in a compact manner.
[0081] In at least some example embodiments, RI may be used within IPv6 packets to control the reorderability, and therefore reordering, of the IPv6 packets.
[0082] In at least some example embodiments, the RI may be encoded within an IPv6 extension header (EH). The IPv6 specification describes several IPv6 EHs that may be attached to an IPv6 header. The size of the main IPv6 header remains fixed (40 bytes), while custom EHs are added as needed. The EH provides control functions that are needed or useful in certain situations but unnecessary for the most common communications. The EH includes provisions for timestamps, security, special routing, and the like. Each EH begins with a 1-octet "Next Header" field, followed by its own body. The format of the body depends on the type of EH. The "Next Header" field of the EH points to the type of the next EH. Therefore, multiple EHs can be linked together via their "Next Header" fields. The "Next Header" field on the last EH in the chain indicates the type of the IPv6 payload.
[0083] In at least some example embodiments, the RI may be encoded within an EH called a Hop-by-Hop Options Header, which is described in the IPv6 specification. The Hop-by-Hop Options Header may be used to carry optional information that is to be checked by each router along the delivery path of the packet. It is identified by a value of 0 in the Next Header field of the IPv6 header. This EH is generic, and multiple options may be defined in it. Therefore, any special instructions to be checked by each transit router of the IPv6 packet are defined as options in the Hop-by-Hop Options Header. The format of the header is described in Fig.11 Described in.
[0084] Fig.11 An example embodiment of an IPv6 Hop-by-Hop options header 1100 configured for providing an RI options header in an IPv6 header to support reorderability is depicted.
[0085] The IPv6 hop-by-hop options header 1100 includes a "Next Header" field, a "Header Extension Length" (Hdr Ext Len) field, and an "Options" field.
[0086] The “Next Header” field is an 8-bit selector used to identify the type of header that immediately follows the IPv6 Hop-by-Hop Options header 1100 .
[0087] The "Header Extension Length" field is an 8-bit unsigned integer. This field specifies the length of the IPv6 Hop-by-Hop Options header 1100 in units of 8 octets, excluding the first 8 octets.
[0088] The option field is a variable length field whose length makes the complete IPv6 hop-by-hop options header 1100 an integer multiple of 8 octets in length. This field includes one or more TLV-encoded options, and its format is as follows: Fig.12 shown.
[0089] Fig.12 An example embodiment of a TLV encoding option 1200 is depicted that is configured for use in an IPv6 Hop-by-Hop Options header (eg, Fig.11 The hop-by-hop options header 1100 is used in the IPv6 header to provide an RI options header to support reordering.
[0090] The TLV encoding option 1200 of the IPv6 Hop-by-Hop Options header includes an "Option Type" field, an "Option Data Length" (Opt Data Len) field, and an "Options Data" field.
[0091] The "Option Type" field includes an 8-bit identifier of the option type. The "Option Data Length" field includes an 8-bit unsigned integer that specifies the length of the "Option Data" field for the option in octets. The "Option Data" field is a variable length field that includes option type specific data. Note that the sequence of options in the header should be processed strictly in the order in which the options appear in the header (e.g., it is expected that a recipient would not, for example, scan the header for an option of a particular type and process that option before processing any preceding options).
[0092] The "option type" identifier is encoded internally so that their most significant two bits specify the action that must be taken if an IPv6 node does not recognize the option type. For example, the following values may be used: (1) 00 = skip the option and continue processing the header, (2) 01 = drop the packet, (3) 10 = drop the packet and send an ICMP Parameter Problem Code 2 message (pointing to unrecognized option type) to the source address of the packet regardless of whether the destination address of the packet is a multicast address, and (4) 11 = drop the packet and send an ICMP Parameter Problem Code 2 message (pointing to unrecognized option type) to the source address of the packet only if the destination address of the packet is not a multicast address. It will be appreciated that these values may be defined in other ways.
[0093] The option type identifier is encoded internally so that the third highest bit of the option type specifies whether the option data for that option can change en route to the packet's final destination. When an "Authentication" header (another type of EH that carries the packet's authentication digest) is present in a packet, for any options whose data can change en route, the packet's entire "Option Data" field is treated as a zero-valued octet for use in calculating or validating the packet's authentication digest. For example, the following values may be used: (1) 0 = option data will not change en route, and (2) 1 = option data may change en route. It will be appreciated that this value may be defined in other ways.
[0094] The option type identifier is encoded internally so that the three high bits above are considered part of the option type, rather than being independent of the option type. That is, a particular option is identified by the full 8-bit option type, rather than just the low-order 5 bits of the option type.
[0095] In one example, an option type for an IPv6 hop-by-hop options header (which may be referred to herein as an "RI options header") may be used to provide reorderability based on the use of RI.
[0096] Fig.13 An example embodiment of a TLV encoded option configured for use in an IPv6 Hop-by-Hop Options header for use as an RI Options header 1300 in an IPv6 header is depicted.
[0097] The RI option header 1300 includes an "Option Type" field, an "Option Data Length" (Opt Data Len) field, and a "Flag" field.
[0098] The "Option Type" field of the RI Options header 1300 encodes the option type in a manner that indicates that the option type is an RI option. The top 2 bits are encoded with a value of 00, which indicates that the option is skipped and processing of the header continues (i.e., if the receiver does not recognize the RI option, the receiver should ignore the RI option). The third highest bit is encoded with a value of 0, which indicates that the data cannot be changed en route because the reorderability preference of the packet cannot be changed en route. The remaining 5 bits are assigned a value of 10010, which results in a value of 0x32 for the "Option Type" field. It should be understood that other suitable values may be used.
[0099] The "Option Data Length" field of the RI option header 1300 indicates the length of the "Flag" field of the RI option and thus has a value of 1.
[0100] The "Flags" field of the RI options header 1300 is a 1-octet field including N bits. The N bits may be configured such that N=1 indicates that the IPv6 packet cannot be reordered, and if N=0, the IPv6 packet may be reordered (or vice versa). The remaining bits in the "Flags" field will be set to 0 by the sender and ignored by the receiver.
[0101] In this example, when the router routes an IPv6 packet, the router checks to see if an RI options header is present in the IPv6 header, and if the RI options header is present in the IPv6 header, then based on the N bit, the router makes a reorderability decision when forwarding the packet.
[0102] In at least some example embodiments, the RI may be used within Ethernet packets to control the reorderability, and therefore the reordering, of the Ethernet packets.
[0103] Fig.14 An example embodiment of a RI that may be used within an Ethernet packet is depicted.
[0104] The RI 1400 includes a "Tag Protocol Identifier" (TPID) field, a "Flag" field, and a "Reserved" field.
[0105] The TPID field is a 16-bit field that is set to a specific value to identify a packet carried as an RI. This field is co-located with the EtherType field in an untagged frame, and can therefore be used to distinguish the presence of an RI from an untagged frame or a tagged frame. The value used may be reserved from the IEEE 802 number registry in IANA (e.g., 0xB000 or any other suitable value).
[0106] The "Flags" field is 8 bits that are used to define various flags for operations on the RI. The "Flags" field includes N bits. The N bits can be configured so that N=1 indicates that the Ethernet packet cannot be reordered, and if N=0, the Ethernet packet can be reordered (or vice versa). The remaining bits in the "Flags" field will be set to 0 by the sender and ignored by the receiver.
[0107] The "Reserved" field is a 1-octet field that is set to 0 by the sender and ignored by the receiver.
[0108] Note that while primarily presented with respect to example embodiments in which the RI is appended to an Ethernet header where the RI is applicable, in at least some example embodiments, the RI may be located elsewhere relative to the Ethernet header.
[0109] Fig.15An example embodiment of inserting an RI into an untagged Ethernet packet is depicted. The untagged Ethernet packet 1500 is considered untagged because it does not include any VLAN tag or other additional header after the Ethernet header. In the untagged Ethernet packet 1500, the RI is inserted between the source MAC address field and the Ethernet type field. Here, since the TPID in the RI now occupies the position of the EtherType field, the TPID indicates that the RI is present. The EtherType field of the Ethernet header that determines the Ethernet packet payload type is now moved after the RI.
[0110] Fig.16 An example embodiment of inserting an RI into a tagged Ethernet packet is depicted. The tagged Ethernet packet 1600 is considered tagged because it includes three VLAN tags (VLAN stacking). In the tagged Ethernet packet, the RI is inserted between the source MAC address field and the outermost VLAN tag.
[0111] In this example, the RI (if present) is inserted after the Ethernet header. If there are any other Ethernet layer specific headers after the Ethernet header, these Ethernet layer specific headers will be appended to the RI. Fig.16 , the VLAN stack is now located after the RI. Note that since the TPID in the RI occupies the position of the EtherType, the processing bridge determines that the next header is the RI based on the TPID in the RI and looks for the EtherType at the end of the RI. In addition, since the VLAN type in the VLAN header occupies the position of the EtherType, the processing bridge determines that the VLAN header exists based on the VLAN type. Therefore, if the RI exists, the processing bridge will look at the EtherType field after the RI to determine if there are other Ethernet-specific headers.
[0112] In this example, when a processing bridge forwards an Ethernet packet, the processing bridge checks if there is an RI in the header, and if there is an RI, based on the N bits, the processing bridge makes a reorderability decision while forwarding the packet.
[0113] It should be understood that although the example embodiments are described primarily with respect to implementing RI within Ethernet packets using a specific RI option format, in at least some example embodiments, RI may be implemented within Ethernet packets using a general option header. The general option header may be defined as having Fig.14The same format as RI 1400, except that the TPID indicates a generic options header and each bit position in the "Flags" field can encode a binary coded option (i.e., indicating "yes" or "no"). Bit position 0 in the "Flags" field can be defined as an RI option (e.g., if the value of bit position 0 is "1", it indicates that the Ethernet packet cannot be reordered, and if the value of bit position 0 is "0", it indicates that the Ethernet packet can be reordered, and vice versa). Note that one advantage of using a generic options header is that multiple options including the RI can be encoded in a compact manner in the "Flags" field.
[0114] In at least some example embodiments, the RI may be used within an MPLS packet to control the reorderability, and therefore the reordering, of the MPLS packet.
[0115] In at least some example embodiments, the RI may be encoded within a special tag, which may be referred to as an RI tag.
[0116] Fig.17 Depicted are example embodiments of RI labels that may be used within an MPLS label stack in an MPLS packet.
[0117] RI tag 1700 is a special tag defined to support the use of RI. The RI tag includes an RI field, an Exp field, an S-bit, and a TTL / Flags field.
[0118] The RI field may include any suitable value for indicating that the tag is an RI tag. For example, the value of RI may be reserved for special-purpose tags in the IANA registry, or any other suitable value may be used.
[0119] The Exp field will be set to 0 and the receiving router will ignore this field. The sending router and the receiving router of the RI will use the EXP field of the label below the RI to map to the appropriate forwarding class.
[0120] The S bit will be set to 0 because the label of the associated LSP (indicating reorderability) follows immediately.
[0121] The "TTL / Flags" field is not used for its defined purpose as a TTL field, but is reused as a "Flags" field (hence it is referred to as a "TTL / Flags" field). The "TTL / Flags" field includes N bits. The N bits may be configured such that N=1 indicates that the MPLS packet cannot be reordered when forwarded in the context of the LSP identified by the underlying LSP label, and if N=0, the MPLS packet may be reordered (or vice versa). The remaining bits in the "Flags" field shall be set to 0 by the sender and ignored by the receiver.
[0122] It should be appreciated that while the example embodiments are presented primarily with respect to implementing RI within an MPLS packet using a specific RI label format, in at least some example embodiments, RI may be implemented within an MPLS packet using a generic option label. A generic option label may be defined as having the same Fig.17 The RI label 1700 has the same format as the RI label 1700, except that the RI field is replaced with a generic options field that encodes a special value indicating that the label is a generic options label, and each bit position in the "flags" field can encode a binary coded option (i.e., indicating "yes" or "no"). Bit position 0 in the "flags" field can be defined as an RI option (e.g., if the value of bit position 0 is "1", it indicates that the MPLS packet cannot be reordered, and if the value of bit position 0 is "0", it indicates that the MPLS packet can be reordered, and vice versa). Note that one advantage of using a generic options label is that multiple options including the RI can be encoded in the same label in a compact manner.
[0123] In MPLS, packets can be sent along a hierarchy of MPLS networks. In this case, if an RI exists in an LSP in the hierarchy, the RI will be included in all LSPs lower in the hierarchy.
[0124] Fig.18 An example embodiment of an MPLS label stack is depicted to illustrate cross-layer propagation of an RI. The MPLS label stack 1800 includes a stack of N LSPs. In this example, it is assumed that initially only LSP 1 includes the RI. When LSP 1 is transmitted over another LSP (e.g., LSP 2), the RI is also propagated to LSP 2. In this way, more generally, if LSP 1 is overlaid on (N-1) LSPs, each of the (N-1) LSPs also inherits the RI. This ensures consistent reordering decisions among all (N-1) LSPs below LSP 1.
[0125] In at least some example embodiments, cross-layer propagation of RI with packets may be supported for making consistent reorderability decisions for packets.
[0126] The cross-layer propagation of the RI from the current layer of the packet to the lower layers of the packet ensures that the forwarding nodes at each layer below the current layer can make consistent decisions about the reorderability of the packet. Packets derived from the RI can be sent over multiple layers, each layer adding encapsulation to its network. These layers can be homogeneous, such as IP in IP (IP-in-IP), Ethernet in Ethernet (Ethernet-in-Ethernet, for example, MAC in MAC (MAC-in-MAC, IEEE802.1ah, etc.), MPLS hierarchy (for example, Fig.16 The layers can be heterogeneous, such as IP-in-MPLS, IP-in-MPLS-in-Ethernet, etc. In this case, whether homogeneous or heterogeneous, the RI will be propagated to the headers of all lower layers so that the forwarding nodes of each layer below can make consistent decisions on the reorderability of packets. This cross-layer propagation can be further understood by the following example.
[0127] The cross-layer propagation of RI from the current layer of the packet to the lower layer of the packet (which ensures that the forwarding nodes at each layer below the current layer can make consistent decisions on the reorderability of the packet) can be further understood by considering the following examples. As a first example, assume that a host is initiating a packet with a reorderability preference for a TCP / IP-based application. The host includes the RI in the IP header of the packet based on the reorderability preference. The packet is then sent to the next hop in the IP network through the data link layer. Therefore, if the data link layer is not a point-to-point network (such as Ethernet), the RI should also be propagated to the data link layer. In this case, the RI needs to be encoded into the Ethernet header so that the Ethernet network is consistent in the reorderability of the packet. The IP packet may also be tunneled through another IP network, such as using a GRE tunnel mechanism. In this case, the IP header of the tunnel (i.e., the outermost IP header of the resulting packet) inherits the RI included in the IP packet from the host. In a second example, an IP packet from the host can be transmitted through an MPLS LSP in a packet switching network, in which case the MPLS LSP inherits the RI of the IP packet from the host. It should be appreciated that these are merely two of the various ways in which the RI may be propagated between layers to ensure that forwarding nodes may make consistent decisions on packet reorderability.
[0128] Fig.19An example embodiment of a method is depicted that is used by a node to support the use of RI for controlling reorderability in a packet switching network. The node can be an initiating node that can initiate a packet including RI, a transit node that can insert RI into a packet (e.g., based on a policy configured in the node, such as the packet matches a flow configured in the node and the policy indicates reorderability of the flow), etc. It should be understood that although primarily presented herein as serial execution, at least a portion of the functionality of method 1900 can be performed simultaneously or in parallel with Fig.19 . The inputs to method 1900 include: a packet being originated; and an indication (e.g., a Boolean indicator or other suitable indicator) as to whether the packet can be reordered en route to a destination. At box 1901, method 1900 begins. Box 1902 checks whether reordering of the packet is allowed. If reordering of the packet is allowed, method 1900 proceeds to box 1904, otherwise method 1900 proceeds to box 1906. Box 1904 creates an RI with reorderability set to "yes", and method 1900 proceeds to box 1908. 1906 creates an RI with reorderability set to "no", and method 1900 proceeds to box 1908. Box 1908 encodes the RI into the packet. At box 1999, method 1900 ends.
[0129] Fig. 20 An example embodiment of a method is depicted that is used by a node to support cross-layer propagation of RI for controlling reorderability in a packet-switched network. The method 2000 may be performed by a host node or any node in the network that pushes a lower layer encapsulation onto a packet. It should be understood that while primarily presented herein as being performed serially, at least a portion of the functionality of the method 2000 may be performed simultaneously or in parallel. Fig. 20 . The inputs to method 2000 include: a packet on which the lower layer encapsulation is pushed; and the lower layer encapsulation. At block 2001, method 2000 begins. Block 2002 checks whether the packet includes an RI. If the packet includes an RI, method 2000 proceeds to block 2004, otherwise method 2000 proceeds to block 2006. Block 2004 encodes the RI into the encapsulation in the format of the RI defined for the encapsulation, and method 2000 proceeds to block 2006. Block 2006 pushes the encapsulation onto the packet. Method 2000 proceeds to block 2099, where method 2000 ends.
[0130] Fig.21 An example embodiment of a method is depicted that is used by a node to forward packets for controlling reorderability in a packet switching network. It should be understood that although primarily presented herein as being performed serially, at least a portion of the functionality of method 2100 may be performed simultaneously or in parallel. Fig.21 . The input of method 2100 includes a packet to be forwarded by a node. At box 2101, method 2100 starts. Box 2102 checks whether the packet includes an RI. If the packet includes an RI, method 2100 proceeds to box 2110, otherwise method 2100 proceeds to box 2104. Box 2110 parses the RI from the packet into a local variable, which is called local_RI, and then method 2100 proceeds to box 2112. Box 2104 checks whether the default behavior of the node is to allow reordering of packets (for example, the node performs per-packet load balancing by default). If the default behavior of the node is to allow reordering, method 2100 proceeds to box 2108, otherwise method 2100 proceeds to box 2106. Box 2108 sets local_RI to allow reordering, and then method 2100 proceeds to box 2112. Block 2106 sets local_RI to not allow reordering, and the method 2100 proceeds to step 2112. Block 2112 checks whether local_RI is set to allow reordering. If local_RI is set to allow reordering, the method proceeds to block 2114, otherwise the method 2100 proceeds to block 2116. Block 2114 forwards the packet in a manner that allows the packet to be reordered (e.g., per-packet load balancing is applied), and the method 2100 proceeds to block 2199, where the method 2100 ends. Block 2116 forwards the packet in a manner that ensures in-order delivery of the packet (e.g., per-flow load balancing is applied), and the method 2100 proceeds to block 2199, where the method 2100 ends.
[0131] Fig. 22 An example embodiment of a method for supporting reordering in a packet switching network is depicted. It should be understood that although primarily presented as being performed serially, at least a portion of the blocks of method 2200 may be performed simultaneously or in parallel. Fig. 22. In block 2201, method 2200 starts. In block 2210, communication of a packet including a reorderability indicator indicating reorderability of the packet is supported. The reorderability indicator may be included in the packet by a source of the packet, or may be included in the packet by a forwarding node along a path traversed by the packet. The reorderability indicator may indicate whether reordering of the packet is allowed. The reorderability indicator may indicate whether reordering of the packet is allowed with respect to a flow associated with the packet. The reorderability indicator may indicate that reordering of the packet is not allowed, in which case support for communication may include sending the packet using per-flow load balancing. The reorderability indicator may indicate that reordering of the packet is allowed, in which case support for communication may include sending the packet using per-packet load balancing. Support for communication of the packet may include: determining that the packet may need to be reordered relative to a second packet received after the packet; and transmitting the packet before the second packet based on determining that the reorderability indicator of the packet indicates that reordering of the packet is not allowed. Support for communication of packets may include: determining that the packet may need to be reordered relative to a second packet received after the packet; and transmitting the second packet before the packet based on determining that a reorderability indicator of the packet indicates that reordering of packets is allowed. Support for communication of packets may include: receiving the packet and the second packet by a node having a default behavior of enforcing in-order delivery of packets, wherein the second packet is received after the packet; determining, by the node, that the reorderability indicator of the packet indicates that the packet is allowed to be reordered; and transmitting, by the node, the packet and the second packet such that the packet is transmitted after the second packet. Support for communication of packets may include: receiving the packet and the second packet by a node having a default behavior of allowing reordering of packets, wherein the second packet is received after the packet; determining, by the node, that the reorderability indicator of the packet indicates that reordering of packets is not allowed; and transmitting, by the node, the packet and the second packet such that the packet is transmitted before the second packet. The reorderability indicator may be encoded in an Internet Protocol version 4 (IPv4) options header. The reorderability indicator may be encoded within an Internet Protocol version 6 (IPv6) extension header (EH). The IPv6 EH may be a hop-by-hop options header. The resequenceability indicator may be encoded within a resequenceability indicator tag. The resequenceability indicator tag may be appended to an Ethernet header to which the resequenceability indicator applies. The resequenceability indicator tag may be appended to a virtual local area network (VLAN) tag to which the resequenceability indicator applies. The resequenceability indicator may be encoded within a multiprotocol label switching (MPLS) label. The MPLS label may be located above a label of a label switched path (LSP) to which the resequenceability indicator applies.The MPLS label may be located below a label of a label switched path (LSP) to which the reorderability indicator applies. Supporting communication of the packet may include: determining that a packet associated with the first communication layer is to be encapsulated by an encapsulation at the second communication layer; and encoding the reorderability indicator into the encapsulation at the second communication layer. The first communication layer and the second communication layer may use a common communication protocol. The first communication layer and the second communication layer may use different communication protocols. At block 2299, the method 2200 ends.
[0132] Fig.23 An example embodiment of a computer suitable for performing the various functions presented herein is depicted.
[0133] The computer 2300 includes a processor 2302 (e.g., a central processing unit (CPU), a processor, a processor having a set of processor cores, a processor core of a processor, etc.) and a memory 2304 (e.g., a random access memory, a read-only memory, etc.). The processor 2302 and the memory 2304 may be communicatively connected. In at least some example embodiments, the computer 2300 may include at least one processor and at least one memory including computer program code, wherein the at least one memory and the computer program code are configured to, together with the at least one processor, cause the computer to perform various functions presented herein.
[0134] The computer 2300 may also include a cooperating element 2305. The cooperating element 2305 may be a hardware device. The cooperating element 2305 may be a process that may be loaded into the memory 2304 and executed by the processor 2302 to implement the various functions presented herein (e.g., in this case, the cooperating element 2305 (including associated data structures) may be stored on a non-transitory computer-readable storage medium such as a storage device or other suitable type of storage element (e.g., a magnetic drive, an optical drive, etc.)).
[0135] The computer 2300 may also include one or more input / output devices 2306. The input / output devices 2306 may include one or more of the following: user input devices (e.g., keyboard, keypad, mouse, microphone, camera, etc.), user output devices (e.g., display, speaker, etc.), one or more network communication devices or elements (e.g., input ports, output ports, receivers, transmitters, transceivers, etc.), one or more storage devices (e.g., tape drives, floppy disk drives, hard disk drives, optical disk drives, etc.), etc., and various combinations thereof.
[0136] It should be understood that the computer 2300 may represent a general architecture and functionality suitable for implementing the functional elements described herein, portions of the functional elements described herein, etc., and various combinations thereof. For example, the computer 2300 may provide a general architecture and functionality suitable for implementing one or more elements presented herein, such as a network device (e.g., a router, etc.), a network controller, etc., and various combinations thereof.
[0137] It should be understood that at least some of the functionality presented herein may be implemented in software (e.g., via implementation of software on one or more processors for execution on a general-purpose computer (e.g., via execution of one or more processors to provide a special-purpose computer, etc.) and / or may be implemented in hardware (e.g., using a general-purpose computer, one or more application-specific integrated circuits and / or any other hardware equivalents).
[0138] It should be understood that at least some of the functions presented herein can be implemented in hardware, for example, as a circuit system that cooperates with a processor to perform various functions. Portions of the functions / elements described herein can be implemented as a computer program product, wherein computer instructions, when processed by a computer, adjust the operation of the computer so that the methods and / or techniques described herein are called or otherwise provided. Instructions for calling various methods can be stored in fixed or removable media (e.g., non-transitory computer-readable media), transmitted via a data stream in a broadcast or other signal-bearing medium, and / or stored in a memory within a computing device that operates according to the instructions.
[0139] It should be understood that, unless indicated otherwise (eg, use of "otherwise" or "or in the alternative"), the term "or" as used herein refers to a non-exclusive "or".
[0140] It will be appreciated that, although various embodiments that incorporate the teachings presented herein have been shown and described in detail herein, those skilled in the art may readily devise numerous other varied embodiments that still incorporate these teachings.
Claims
1. A device for communication, comprising: Means for supporting communication of a packet including a resequenceability indicator, the resequenceability indicator indicating resequenceability of the packet, wherein supporting communication of the packet comprises: determining, based on the resequenceability indicator, a type of load balancing to be applied to forwarding the packet; determining that the packets associated with the first communication layer are to be encapsulated by encapsulation of the second communication layer; and encoding the resequenceability indicator into the encapsulation of the second communication layer, The load balancing types include per-packet load balancing and per-flow load balancing. 2 . The apparatus of claim 1 , wherein the reorderability indicator indicates whether reordering of the packets is allowed. 3 . The apparatus according to claim 1 , wherein the reorderability indicator indicates whether reordering of the packet is allowed with respect to a flow associated with the packet. 4 . The apparatus of claim 1 , wherein the reorderability indicator indicates that reordering of the packets is not allowed.
5. The apparatus of claim 4, wherein supporting communication of the packets comprises: When executed by at least one processor, causes the apparatus to send the packet using the per-flow load balancing. The apparatus of claim 1 , wherein the reorderability indicator indicates that reordering of the packets is allowed.
7. The apparatus of claim 6, wherein supporting communication of the packets comprises: When executed by at least one processor, causes the apparatus to send the packet using the per-packet load balancing.
8. The apparatus of claim 1 or 2, wherein supporting communication of the packets comprises: determining, based on the resequenceability indicator, that the packet may need to be resequenced relative to a second packet received after the packet; as well as Based on determining that the reorderability indicator of the packet indicates that reordering of the packet is not allowed, transmitting the packet before the second packet.
9. The apparatus of claim 1 or 2, wherein supporting communication of the packets comprises: determining, based on the resequenceability indicator, that the packet may need to be resequenced relative to a second packet received after the packet; as well as Based on determining that the reorderability indicator of the packet indicates that reordering of the packet is allowed, the second packet is transmitted before the packet.
10. The apparatus of claim 1 or 2, wherein supporting communication of the packets comprises: receiving, by a node having a default behavior that enforces in-order delivery of packets, the packet and a second packet, wherein the second packet is received after the packet; determining, by the node, that the reorderability indicator of the packet indicates that the packet is allowed to be reordered; as well as The packet and the second packet are transmitted by the node such that the packet is transmitted after the second packet.
11. The apparatus of claim 1 or 2, wherein supporting communication of the packets comprises: receiving, by a node having a default behavior that allows reordering of packets, the packet and a second packet, wherein the second packet is received after the packet; determining, by the node, that the reorderability indicator of the packet indicates that the packet is not permitted to be reordered; as well as The packet and the second packet are transmitted by the node such that the packet is transmitted before the second packet.
12. The apparatus of claim 1 or 2, wherein the resequenceability indicator is encoded within an Internet Protocol version 4 (IPv4) options header.
13. The apparatus according to claim 1 or 2, wherein the resequenceability indicator is encoded within an Internet Protocol version 6 (IPv6) extension header (EH).
14. A non-transitory computer readable medium comprising a set of instructions configured to cause an apparatus to: Supporting communication of a packet including a resequenceability indicator, the resequenceability indicator indicating resequenceability of the packet, wherein supporting communication of the packet comprises: determining, based on the resequenceability indicator, a type of load balancing to be applied to forwarding the packet; determining that the packets associated with the first communication layer are to be encapsulated by encapsulation of the second communication layer; as well as encoding the resequenceability indicator into the encapsulation of the second communication layer, The load balancing types include per-packet load balancing and per-flow load balancing.
15. A method for communication, comprising: Supporting communication of a packet including a resequenceability indicator, the resequenceability indicator indicating resequenceability of the packet, wherein supporting communication of the packet comprises: determining, based on the resequenceability indicator, a type of load balancing to be applied to forwarding the packet; determining that the packets associated with the first communication layer are to be encapsulated by encapsulation of the second communication layer; and encoding the resequenceability indicator into the encapsulation of the second communication layer, The load balancing types include per-packet load balancing and per-flow load balancing.
