STATEFUL LOAD BALANCING IN A STATELESS NETWORK
A packet routing method for directing packets of a session in an IP network causes an intermediate node to obtain a lead packet of a plurality of packets in a given session. The intermediate node has an electronic interface in communication with the IP network and obtains the lead packet through that same interface. The method maintains, in a routing database, state information relating to a plurality of sessions in the IP network. Each session includes a single stateful session path formed by an ordered plurality of nodes in the IP network, and the state information includes information about the ordered plurality of nodes in the sessions. The method further accesses the routing database to determine the state of a plurality of sessions, and forms a stateful given path for packets of the given session across the IP network as a function of the state information in the routing database.
This patent application is a continuation of U.S. patent application Ser. No. 14/562,917 filed Dec. 8, 2014, entitled, “STATEFUL LOAD BALANCING IN A STATELESS NETWORK,” and naming Patrick Timmons, Michael Baj, Hadriel Kaplan, Patrick MeLampy, Prashant Kumar, and Robert Penfield as inventors, the disclosure of which is incorporated herein, in its entirety, by reference.
TECHNICAL FIELDThe present invention relates to data routing and, more particularly, to routing packets in an IP network.
BACKGROUND ARTThe Internet Protocol (“IP”) serves as the de-facto standard for forwarding data messages (“datagrams”) between network devices connected with the Internet. To that end, IP delivers datagrams across a series of Internet devices, such as routers and switches, in the form of one or more data packets. Each packet has two principal parts: (1) a payload with the information being conveyed (e.g., text, graphic, audio, or video data), and (2) a header, known as an “IP header,” having the address of the network device to receive the packet(s) (the “destination device”), the identity of the network device that sent the packet (the “originating device”), and other data for routing the packet.
Many people thus analogize packets to a traditional letter using first class mail, where the letter functions as the payload, and the envelope, with its return and mailing addresses, functions as the IP header.
Current Internet devices forward packets one-by-one based essentially on the address of the destination device in the packet header. Among other benefits, this routing scheme enables network devices to forward packets among a series of related packets along different routes to reduce network congestion, or avoid malfunctioning network devices. Those skilled in the art thus refer to IP as a “stateless” protocol because, among other reasons, it does not save packet path data, and does not pre-arrange transmission of packets between end points.
While it has benefits, IP's statelessness introduces various limitations. For example, without modification, a stateless IP network inhibits or prevents: 1) user mobility in mobile networks, 2) session layer load balancing for packet traffic in the network, and 3) routing between private or overlapping networks. The art has responded to this problem by implementing tunneling protocols, which provide these functions. Specifically, tunneling protocols transport IP packets to a destination along a route that normally is different than the route the packet would have taken if it had not used a tunneling protocol. While nominally accomplishing their goals, tunneling protocols undesirably introduce additional problems into the network. For example, tunneling requires additional overhead that can induce IP packet fragmentation, consequently introducing substantial network inefficiencies into a session. In addition, tunnels generally use more bandwidth than non-tunneled packets, and tunnel origination and termination requires additional CPU cycles per packet.
Other attempts to overcome problems introduced by statelessness suffer from similar deficiencies.
SUMMARY OF VARIOUS EMBODIMENTSIn accordance with one embodiment of the invention, a packet routing method for directing packets of a session between an originating node and a destination node in an IP network causes an intermediate node to obtain a lead packet of a plurality of packets in a given session. The intermediate node has an electronic interface in communication with the IP network and obtains the lead packet through that same electronic interface. The method also maintains, in a routing database, state information relating to a plurality of sessions in the IP network. Each session includes a single stateful session path formed by an ordered plurality of nodes in the IP network, and the state information includes information relating to the ordered plurality of nodes in the sessions. The method further accesses the routing database to determine the state of a plurality of the sessions, and forms a stateful given path for packets of the given session across the IP network (between the intermediate node and destination node) as a function of the state information in the routing database. In addition, the method stores state information relating to the stateful given path and the given session in the routing database, and forwards the lead packet via the electronic interface toward the destination along the stateful given path.
Among other things, the intermediate node may include a routing device or a switching device. Moreover, the destination router may include any of a plurality of different network devices, such as an edge router for a data center network.
The ordered plurality of nodes in each session preferably includes a plurality of nodes between two end nodes. The plurality of nodes between the two end nodes in each session are configured to transmit each packet in its session in the same node order between the two end nodes. For example, if the ordered nodes of a stateful path includes first, second and third nodes that receive packets in that order, then the first node may be configured to direct packets toward the second node only and not toward the third node, and the second node may be configured to direct packets toward the third node only and not the first node. In a similar manner, the stateful given path may include an ordered plurality of given nodes between the originating node and the destination node. This ordered plurality of given nodes preferably has a first node (logically) next to the originating node and thus, the first node serves as the intermediate node.
Among other load balancing techniques, the stateful given path may be formed by accessing one or more of utilization and cost information relating to a plurality of nodes in the routing database. In a corresponding manner, the process may form the given path using additional information such as utilization of the stateful session paths and bandwidth of the stateful session paths.
In some embodiments, the method may receive a plurality of additional packets for the given session from the originating node, and forward the plurality of additional packets for the given session toward the destination node along the stateful given path. In a corresponding manner, the method may receive a plurality of packets, addressed toward the originating node, in a return session from the destination node. After receipt, the method may forward, through the electronic interface, substantially all of the packets in the return session toward the originating node along the stateful given path.
Although logically next to each other, the packets may traverse through other intermediate network devices between (logically) adjacent nodes in an ordered path. To that end, the stateful given path may have an ordered plurality of given nodes between the originating node and the destination node, and the ordered plurality of given nodes may include the intermediate node and a next node next to and downstream of the intermediate node within the ordered plurality of given nodes. The method thus may address the lead packet to the next node so that a plurality of network devices receive the lead packet after it is forwarded and before the next node receives the lead packet.
The invention will be more fully understood by referring to the following Detailed Description of Specific Embodiments in conjunction with the Drawings, of which:
In accordance with preferred embodiments of the invention, a network device uses information about the state of a normally stateless network to balance session flows across that network. Details of various embodiments are discussed below.
NetworksIllustrative embodiments preferably are implemented on a conventional computer network. Among other things, a network includes at least two nodes and at least one link between the nodes. Nodes can include computing devices (sometimes referred to as hosts or devices) and routers. Computers may include personal computers, smart phones, television “cable boxes,” automatic teller machines (ATMs) and many other types of equipment that include processors and network interfaces. Links include wired and wireless connections between pairs of nodes. In addition, nodes and/or links may be implemented completely in software, such as in a virtual machine, a software defined network, and using network function virtualization. Many networks include switches, which are largely transparent for purposes of this discussion. However, some switches also perform routing functions. For the present discussion, such routing switches are considered routers. Routers are described below.
A node can be directly connected to one or more other nodes, each via a distinct link. For example,
Nodes initiate communications with other nodes via the network, and nodes receive communications initiated by other nodes via the network. For example, a node may transmit/forward/send data (a message) to a directly connected (adjacent) node by sending the message via the link that interconnects the adjacent nodes. The message includes the network address of the sending node (the “source address”) and the network address of the intended receiving node (the “destination address”). A sending node can send a message to a non-adjacent node via one or more other intervening nodes. For example, Node D may send a message to Node F via Node B. Using well known networking protocols, the node(s) between the source and the destination forward the message until the message reaches its destination. Accordingly, to operate properly, network protocols enable nodes to learn or discover network addresses of non-adjacent nodes in their network.
Nodes communicate via networks according to protocols, such as the well-known Internet Protocol (IP) and Transmission Control Protocol (TCP). The protocols are typically implemented by layered software and/or hardware components, such as according to the well-known seven-layer Open System Interconnect (OSI) model. As an example, IP operates at OSI Layer 3 (Network Layer), while the TCP operates largely at OSI Layer 4 (Transport Layer). Each layer performs a logical function and abstracts the layer below it, therefore hiding details of the lower layer.
For example, Layer 3 may fragment a large message into smaller packets if Layer 2 (Data Link Layer) cannot handle the message as one transmission.
Some other protocols also fragment data into packets. For example, the TCP fragments data into segments, officially referred to as TCP protocol data units (PDUs). Nevertheless, in common usage, the term packet is used to refer to PDUs and datagrams, as well as Ethernet frames.
Most protocols encapsulate packets of higher level protocols. For example, IP encapsulates a TCP packet by adding an IP header to the TCP packet to produce an IP packet. Thus, packets sent at a lower layer can be thought of as being made up of packets within packets. Conventionally, a component operating according to a protocol examines or modifies only information within a header and/or trailer that was created by another component, typically within another node, operating according to the same protocol. That is, conventionally, components operating according to a protocol do not examine or modify portions of packets created by other protocols.
In another example of abstraction provided by layered protocols, some layers translate addresses. Some layers include layer-specific addressing schemes. For example, each end of a link is connected to a node via a real (e.g., electronic) or virtual interface, such as an Ethernet interface. At Layer 2 (Data Link Layer), each interface has an address, such as a media access control (MAC) address. On the other hand, at Layer 3 using IP, each interface, or at least each node, has an IP address. Layer 3 converts IP addresses to MAC addresses.
A router typically acts as a node that interconnects two or more distinct networks or two or more sub-networks (subnets) of a single network, thereby creating a “network of networks” (i.e., an internet). Thus, a router has at least two interfaces, where each interface connects the router to a different network, as exemplified in
Large organizations, such as large corporations, commercial data centers and telecommunications providers, often employ sets of routers in hierarchies to carry internal traffic. For example, one or more gateway routers may interconnect each organization's network to one or more Internet service providers (ISPs). ISPs also employ routers in hierarchies to carry traffic between their customers' gateways, to interconnect with other ISPs, and to interconnect with core routers in the Internet backbone.
A router is considered a Layer 3 device because its primary forwarding decision is based on the information in the Layer 3 IP packet—specifically the destination IP address. A conventional router does not look into the actual data contents (i.e., the encapsulated payload) that the packet carries. Instead, the router only looks at the Layer 3 addresses to make a forwarding decision, plus optionally other information in the header for hints, such as quality of service (QoS) requirements. Once a packet is forwarded, a conventional router does not retain historical information about the packet, although the forwarding action may be collected to generate statistical data if the router is so configured.
Accordingly, as discussed below, an IP network is considered to be “stateless” because, among other things, it does not maintain this historical information. For example, an IP network generally treats each request as an independent transaction that is unrelated to any previous request. A router thus may route a packet regardless of how it processed a prior packet. As such, an IP network typically does not store session information or the status of incoming communications partners. For example, if a part of the network becomes disabled mid-transaction, there is no need to reallocate resources or otherwise fix the state of the network. Instead, packets may be routed along other nodes in the network.
As noted, when a router receives a packet via one interface from one network, the router uses its routing table to direct the packet to another network. Table 1 lists information typically found in a basic IP routing table.
Routing tables may be filled in manually, such as by a system administrator, or dynamically by the router. The router uses routing protocols to exchange information with other routers and, thereby, dynamically learn about surrounding network or internet topology. For example, routers announce their presence in the network(s), more specifically, the range of IP addresses to which the routers can forward packets. Neighboring routers update their routing tables with this information and broadcast their ability to forward packets to the network(s) of the first router. This information eventually spreads to more distant routers in a network. Dynamic routing allows a router to respond to changes in a network or internet, such as increased network congestion, new routers joining an internet, and router or link failures.
A routing table therefore provides a set of rules for routing packets to their respective destinations. When a packet arrives, a router examines the packet's contents, such as its destination address, and finds the best matching rule in the routing table. The rule essentially tells the router which interface to use to forward the packet and the IP address of a node to which the packet is forwarded on its way to its final destination IP address.
With hop-by-hop routing, each routing table lists, for all reachable destinations, the address of the next node along a path to that destination, i.e., the next hop. Assuming that the routing tables are consistent, a simple algorithm of each router relaying packets to their destinations' respective next hop suffices to deliver packets anywhere in a network. Hop-by-hop is a fundamental characteristic of the IP Internetwork Layer and the OSI Network Layer.
Thus, each router's routing table typically merely contains information sufficient to forward a packet to another router that is “closer” to the packet's destination, without a guarantee of the packet ever being delivered to its destination. In a sense, a packet finds its way to its destination by visiting a series of routers and, at each router, using then-current rules to decide which router to visit next, with the hope that at least most packets ultimately reach their destinations.
Note that the rules may change between two successive hops of a packet or between two successive packets of a message, such as if a router becomes congested or a link fails. Two packets of a message may, therefore, follow different paths and even arrive out of order. In other words, when a packet is sent by a source or originating node, as a stateless network, there conventionally is no predetermined path the packet will take between the source node and the packet's destination. Instead, the path typically is dynamically determined as the packet traverses the various routers. This may be referred to as “natural routing,” i.e., a path is determined dynamically as the packet traverses the internet.
Although natural routing has performed well for many years, natural routing has shortcomings. For example, because each packet of a session may travel along a different path and traverse a different set of routers, it is difficult to collect metrics for the session. Security functions that may be applicable to packets of the session must be widely distributed or risk not being applied to all the packets. Furthermore, attacks on the session may be mounted from many places.
It should be noted that conventionally, packets sent by the destination node back to the source node may follow different paths than the packets from the source node to the destination node.
In many situations, a client computer node (“client”) establishes a session with a server computer node (“server”), and the client and server exchange packets within the session. For example, a client executing a browser may establish a session with a web server. The client may send one or more packets to request a web page, and the web server may respond with one or more packets containing contents of the web page. In some types of sessions, this back-and-forth exchange of packets may continue for several cycles. In some types of sessions, packets may be sent asynchronously between the two nodes.
A session has its conventional meaning; namely, it is a plurality of packets sent by one node to another node, where all the packets are related, according to a protocol. A session may be thought of as including a lead (or initial) packet that begins the session, and one or more subsequent packets of the session. A session has a definite beginning and a definite end. For example, a TCP session is initiated by a SYN packet. In some cases, the end may be defined by a prescribed packet or series of packets. For example, a TCP session may be ended with a FIN exchange or an RST. In other cases, the end may be defined by lack of communication between the nodes for at least a predetermined amount of time (a timeout time). For example, a TCP session may be ended after a defined timeout period. Some sessions include only packets sent from one node to the other node. Other sessions include response packets, as in the web client/server interaction example. A session may include any number of cycles of back-and-forth communication, or asynchronous communication, according to the protocol, but all packets of a session are exchanged between the same client/server pair of nodes. A session is also referred to herein as a series of packets.
A computer having a single IP address may provide several services, such as web services, e-mail services and file transfer (FTP) services. Each service is typically assigned a port number in the range 0-65,535 that is unique on the computer. A service is, therefore, defined by a combination of the node's IP address and the service's port number. Note that this combination is unique within the network the computer is connected to, and it is often unique within an internet. Similarly, a single node may execute many clients. Therefore, a client that makes a request to a service is assigned a unique port number on the client's node, so return packets from the service can be uniquely addressed to the client that made the request.
The term socket means an IP address-port number combination. Thus, each service has a network-unique, and often internet-unique, service socket, and a client making a request of a service is assigned a network-unique, and sometimes internet-unique, client socket. In places, the terms source client and destination service are used when referring to a client that sends packets to make requests of a service and the service being requested, respectively.
Forward and Backward Flow ControlIllustrative embodiments of the present invention at least in part overcome these and other shortcomings by ensuring that subsequent packets of a session follow the same path as the lead packet of the session, at least in the forward direction, i.e., from the source client to the destination service. The subsequent packets traverse at least a subset of the routers the lead packet traverses between the source client and the destination service. Each router in the subset is referred to herein as an intermediate node or waypoint, although, in some embodiments, the waypoints are not necessarily predetermined before the lead packet is sent by the source client. The lead packet may be naturally routed. The path taken by the lead packet thus establishes the waypoints, and the subsequent packets traverse the same waypoints, and in the same order, as the lead packet.
In illustrative embodiments discussed in greater detail below, however, an intermediate node/waypoint near the source predetermines the path the lead packet and subsequent packets will traverse to the destination service. In that case, the intermediate node (e.g., a router or switch) forms an ordered path of nodes in the network for bi-directionally forwarding packets in a given session. Accordingly, packets in this session traverse from node-to-node in the path in an order prescribed by the intermediate node. In both cases, the intermediate node may be considered to form a stateful ordered path of nodes between the source and destination.
Of course, some packets may be dropped along the way, as is typical in an IP network or internet, such as by an overloaded router or due to corruption of the packet by a link. Thus, all the packets sent by the source client need not reach the session's destination service and, consequently, all the packets sent by the source client need not traverse all the waypoints. However, subsequent packets that do reach the destination service must traverse all the waypoints. For simplicity of explanation, dropped packets are ignored in the remaining discussion, and the term “all the packets” means all the packets that reach their respective destinations.
As a result of this forward flow control, metrics collected at one of the waypoints represent all the packets of the session. These metrics are not diluted by packets that bypass the waypoint, because no packet of the session can bypass any waypoint. Security functions, such as inspection for malicious packets, performed at one waypoint are sure to be performed on all packets of the session. As discussed below, state information about the waypoints also can be used to perform load balancing operations when the intermediate node forms ordered paths.
Some embodiments of the present invention also ensure that return packets from the destination service to the source client also follow the same path, i.e., traverse the waypoints, but in reverse order. This reverse flow control enables use of paths, such as via proprietary networks, that might not otherwise be available by naturally routing the return packets.
A packet flow controller (also referred to herein as an augmented IP router (“AIPR”)) ensures that subsequent packets of a session follow the same path as the lead packet of the session, as discussed above. An AIPR also performs conventional routing functions. As such, the AIPR may be considered to perform the function of the intermediate node discussed above.
Assume a source client node 426 initiates a session with a destination service node 428. For example, the source client 426 may request a web page, and the destination service node 428 may include a web server. The source client 426 may, for example, be part of a first local area network (LAN) (not shown) within a first corporation (e.g., a datacenter), and the LAN may be connected to the telecommunications carrier network 400 via a gateway router 430 operated by the corporation. Similarly, the destination service node 428 may be operated by a second corporation, and it may be part of a second LAN (not shown) coupled to the network 406 of the second ISP via a gateway router 432 operated by the second corporation. As a lead packet of the session traverses the internet, each AIPR (waypoint) the packet traverses records information that eventually enables the waypoint to be able to identify its immediately previous waypoint and its immediately next waypoint, with respect to the session.
The lead packet of the session in this example is naturally routed. Assume the lead packet reaches AIPR 1 408 before it reaches network 402, 404 or 406. AIPR 1 408 automatically identifies the lead packet as being an initial packet of the session. AIPR 1 408 may use various techniques to identify the beginning of a session, as noted above and as discussed in more detail below. AIPR 1 408 becomes the first waypoint along a path the lead packet eventually follows.
AIPR 1 408 assigns a unique identifier to the session and stores information about the session in the AIPR's database to enable the AIPR 1 408 to identify subsequent packets of the session. In some embodiments, AIPR 1 408 reads the client socket/service socket number pair in the lead packet and stores the client socket/service socket number pair in a database to uniquely identify the session. This enables the AIPR 1 408 to identify the subsequent packets as being part of the session, because all subsequent packets of the session will contain the same client socket/service socket number pair.
In some embodiments, AIPR 1 408 sets a flag in its database to indicate the lead packet has not traversed any other AIPR before reaching AIPR 1 408. This flag may be used later, for example when the AIPR 1 408 handles return packets. AIPR 1 408 may be able to identify the lead packet as not having traversed any other AIPR by lack of any modification to the packet. Packet modification is described below.
AIPR 1 408 modifies the lead packet to indicate the lead packet has been handled by an AIPR. In some embodiments, the AIPR 1 408 stores the unique identifier of the session and, if not included in the unique identifier, the AIPR's network address in the packet to produce a modified lead packet. Subsequent AIPRs, if any, that handle the (now modified) lead packet use this modification to identify the lead packet as a lead packet that has been handled by an AIPR, and to indicate that subsequent packets of the session should be routed the same way as the lead packet is routed.
In some embodiments, AIPR 1 408 assigns a port number on the interface over which AIPR 1 408 will forward the lead packet. The AIPR's network address and this port number, in combination, may be used as a unique identifier of the session, at least from the point of view of the next AIPR along the path. AIPR 1 408 may include the AIPR's network address-port number combination in the modified lead packet. Thus, the next AIPR along the path may assume that subsequent packets sent from this network address-port number combination are part of, or likely to be part of, the session.
AIPR 1 408 then, in this example, forwards the lead packet naturally. The lead packet traverses an unspecified number of nodes of network 400 until it reaches router 410, which naturally routes the lead packet to network 402. Assume the router 410 forwards the lead packet to AIPR 2 414 in network 402.
AIPR 2 414 detects the modification to the lead packet, identifying a need for special treatment. AIPR 2 414 becomes the second waypoint along the path the lead packet will follow. Accordingly, AIPR 1 408 and AIPR 2 414 are considered to be “adjacent” waypoints or “next to” each other in the ordered path being formed. AIPR 2 414 responsively stores in its database the network address of AIPR 1 408 and the port number assigned by AIPR 1 408, in association with a unique identifier of the session, such as the client and server socket number pair, thus identifying the previous waypoint along the path in association with the session. In this way, each waypoint learns the network address and port number of the previous waypoint along this session's path and uses a related association device (an “associator”) to associate this information with a session identifier. This information may be used later to forward return packets, from waypoint to waypoint, back to the source client 426.
In some embodiments, AIPR 2 414 assigns a port number on the interface over which the lead packet was received. The AIPR's network address and this port number, in combination, may be used as a unique identifier of the session, at least from the point of view of AIPR 1 408. Thus, subsequent packets addressed to this network address-port number combination may be assumed to be, or at least are likely to be, part of the session.
In some embodiments, AIPR 2 414 sends a packet back to AIPR 1 408 to inform AIPR 1 408 of the network address-port number combination, in association with the identification of the session. In some embodiments, the network address-port number combination are sent to AIPR 1 408 later, in connection with a return packet, as described below. In either case, AIPR 1 408 learns a network address-port number combination unique to the session, and AIPR 1 408 sends subsequent packets to that address-port combination, rather than naturally forwarding the subsequent packets. In this way, each waypoint learns the network address and port number of the next waypoint along this session's path. This information is used to forward subsequent packets, from waypoint to waypoint, forward to the destination service 428, along the same path as the lead packet. This kind of routing is unlike any routing taught by the prior art known to the inventors.
AIPR 2 214 modifies the lead packet to include the network address of AIPR 2 214, and then forwards the lead packet naturally. As with AIPR 1 408, in some embodiments AIPR 2 214 assigns a port number on the interface over which AIPR 2 214 forwards the packet, and the network address of AIPR 2 214 and the port number are included in the modified lead packet AIPR 2 214 sends.
The lead packet traverses an unspecified number of nodes of network 402, until it reaches router 412, which naturally routes the lead packet to network 404. Assume the router 416 forwards the lead packet to AIPR 3 418.
AIPR 3 418 becomes the third waypoint along the path the lead packet will follow. AIPR 3 418 operates much as AIPR 2 414. The lead packet is then forwarded to network 406, where it traverses AIPR 4 422, which becomes the fourth waypoint.
Three scenarios are possible with respect to the last AIPR 422 (AIPR 4) along the path to the destination service 428.
In the first scenario, one or more AIPRs relatively close to a destination service are provisioned to handle lead packets for the destination service. The AIPRs may be so provisioned by storing information in their databases to identify the destination service, such as by the service socket number or other unique identifier of the service. These “terminus” AIPRs broadcast their ability to forward packets to the destination service. A terminus AIPR is an AIPR that can forward packets to a destination service, without the packets traversing another AIPR. A terminus AIPR recognizes a lead packet destined to a service that terminates at the AIPR by comparing the destination service socket number to the information provisioned in the AIPR's database.
If AIPR 4 422 has been so provisioned, AIPR 4 422 may restore the lead packet to its original form, i.e., the form the lead packet had when the source client 426 sent the lead packet, or as the packet might have been modified by the router 430, such as a result of network address translation (NAT) performed by the router 430. Thus, the lead packet may be restored to a form that does not include any of the modifications made by the waypoints 408, 414 and 418. AIPR 4 422 then forwards the lead packet to the destination service 428. Like AIPR 3 418, AIPR 4 422 stores information in its database identifying AIPR 3 418 as the previous AIPR for this session.
In the second scenario, AIPR 4 422 is not provisioned with information about the destination service 428. In such embodiments, AIPR 4 422 may operate much as AIPR 2 414 and AIPR 3 418 operate. AIPR 4 422 modifies and naturally forwards the lead packet, and the lead packet is eventually delivered to the destination service 428. The destination service 428 responds to the lead packet. For example, if the lead packet is a SYN packet to initiate a TCP session, the destination service 428 responds with an ACK or SYN/ACK packet. AIPR 4 422 recognizes the return packet as being part of the session, such as based on the source client/destination service network address/port number pairs in the return packet. Furthermore, because the return packet was sent by the destination service 428, and not another AIPR, AIPR 4 422 recognizes that it is the last AIPR along the path for this service.
AIPR 4 422 stores information in its database indicating AIPR 4 422 is a terminus AIPR. If AIPR 4 422 receives subsequent packets of the session, AIPR 4 422 may restore the subsequent packets to their original forms, i.e., the forms the subsequent packets had when the source client 426 sent the subsequent packets, or as the packets might have been modified by the router 430, such as a result of network address translation (NAT) performed by the router 430. AIPR 4 422 forwards the subsequent packets to the destination service 428.
AIPR 4 422 modifies the return packet to include a port number on the interface AIPR 4 422 received the lead packet from AIPR 3 418, as well as the network address of AIPR 4 422. AIPR 4 422 then forwards the return packet to AIPR 3 418. Although the return packet may be forwarded by other routers, AIPR 4 422 specifically addresses the return packet to AIPR 3 418. This begins the return packet's journey back along the path the lead packet traveled, through all the waypoints traversed by the lead packet, in reverse order. Thus, the return packet is not naturally routed back to the source client 426. This kind of return packet routing is unlike any routing taught by the prior art known by the inventors.
AIPR 3 418 receives the modified return packet and, because the return packet was addressed to the port number AIPR 3 418 previously assigned and associated with this session, AIPR 3 418 can assume the return packet is part of, or likely part of, the session. To add to the state information in its database, AIPR 3 418 copies the network address and port number of AIPR 4 422 from the return packet into the AIPR's database as the next waypoint for this session. If AIPR 3 418 receives subsequent packets of the session, AIPR 3 418 forwards them to the network address and port number of the next waypoint, i.e., AIPR 4 422.
Thus, once an AIPR is notified of a network address and port number of a next AIPR along a session path, the AIPR forwards subsequent packets to the next AIPR, rather than naturally routing the subsequent packets.
AIPR 3 418 forwards the return packet to AIPR 2 414, whose network address and port number were stored in the database of AIPR 3 418 and identified as the previous waypoint of the session. Likewise, each of the waypoints along the path back to the source client 426 forwards the return packet to its respective previous waypoint.
When the first waypoint, i.e., AIPR 1 408, receives the return packet, the waypoint may restore the return packet to its original form, i.e., the form the return packet had when the destination service 428 sent the return packet, or as the packet might have been modified by the router 430, such as a result of network address translation (NAT) performed by the router 430. Recall that the first waypoint set a flag in its database to indicate the lead packet had not traversed any other waypoint before reaching the first waypoint. This flag is used to signal the first waypoint to restore the return packet and forward the restored return packet to the source client 426. The first waypoint forwards the return packet to the source client 426. Subsequent return packets are similarly handled.
In the third scenario, not shown in
As noted, a waypoint should be able to identify a lead packet of a session. Various techniques may be used to identify lead packets. Some of these techniques are protocol-specific. For example, a TCP session is initiated according to a well-known three-part handshake involving a SYN packet, a SYN-ACK packet and an ACK packet. By statefully following packet exchanges between pairs of nodes, a waypoint can identify a beginning of a session and, in many cases, an end of the session. For example, A TCP session may be ended by including a FIN flag in a packet and having the other node send an ACK, or by simply including an RST flag in a packet. Because each waypoint stores state information about each session, such as the source client/destination service network address/port number pairs, the waypoint can identify the session with which each received packet is associated. The waypoint can follow the protocol state of each session by monitoring the messages and flags, such as SYN and FIN, sent by the endpoints of the session and storing state information about each session in its database. Such stateful monitoring of packet traffic is not taught by the prior art known to the inventor. Instead, the prior art teaches away from this type of monitoring.
It should be noted that a SYN packet may be re-transmitted—each SYN packet does not necessarily initiate a separate session. However, the waypoint can differentiate between SYN packets that initiate a session and re-transmitted SYN packets based on, for example, the response packets.
Where a protocol does not define a packet sequence to end a session, the waypoint may use a timer. After a predetermined amount of time, during which no packet is handled for a session, the waypoint may assume the session is ended. Such a timeout period may also be applied to sessions using protocols that define end sequences.
Table 2 describes exemplary techniques for identifying the beginning and end of a session, according to various protocols. Similar techniques may be developed for other protocols, based on the definitions of the protocols.
A lead packet identifier 806 automatically identifies lead packets, as discussed herein. In general, the lead packet identifier 806 identifies a lead packet when the lead packet identifier 806 receives a packet related to a session that is not already represented in the AIPR's information base 810, such as a packet that identifies a new source client/destination service network address/port number pair. As noted, each lead packet is an initial, non-dropped, packet of a series of packets (session). Each session typically includes a lead packet and at least one subsequent packet. The lead packet and all the subsequent packets are sent by the same source client toward the same destination service, for forward flow control. For forward and backward flow control, all the packets of the session are sent by either the source client or the destination service toward the other.
A session (packet series) manager 808 is coupled to the lead packet identifier 806. For each session, the session manager assigns a unique identifier. The unique identifier may be, for example, a combination of the network address of the AIPR 800 or of the interface 802, in combination with a first port number assigned by the session manager 808 for receiving subsequent packets of this session. The unique identifier may further include the network address of the AIPR 800 or of the other interface 804, in combination with a second port number assigned by the session manager 808 for transmitting the lead packet and subsequent packets. This unique identifier is associated with the session. The session manager 808 stores information about the session in an information base 810. This information may include the unique identifier, in association with the original source client/destination service network address/port number pairs.
Additional state information about the session may be stored in a state column 915. This information may be used to statefully follow a series of packets, such as when a session is being initiated or ended.
A backward column includes sub-columns for storing information 916 about a portion of the backward path, specifically to the previous AIPR. The backward path information 916 includes information 918 about the previous AIPR and information 920 about the present AIPR 800. The information 918 about the previous AIPR includes the AIPR's network address 922 and port number 924. The session manager 808 extracts this information from the lead packet, assuming the lead packet was forwarded by an AIPR. If, however, the present AIPR 800 is the first AIPR to process the lead packet, the information 918 is left blank as a flag. The information 920 about the present AIPR 800 includes the network address 926 of the interface 802 over which the lead packet was received, as well as the first port number 928 assigned by session manager 808.
The waypoint information base 900 is also configured to store information 930 about a portion of the forward path, specifically to the next AIPR. This information 930 includes information 932 about the present AIPR 800 and information 934 about the next AIPR along the path, assuming there is a next AIPR. The information 932 includes the network address 936 of the interface over which the present AIPR will send the lead packet and subsequent packets, as well as the second port number 938 assigned by the session manager 808. The information 934 about the next AIPR along the path may not yet be available, unless the AIPR is provisioned with information about the forward path. The information 934 about the next AIPR includes its network address 940 and port number 942. If the information 934 about the next AIPR is not yet available, the information 934 may be filled in when the AIPR 800 processes a return packet, as described below.
Some embodiments of the waypoint information base 900 may include the forward information 930 without the backward information 916. Other embodiments of the waypoint information base 900 may include the backward information 916 without the forward information 930.
Returning to
Returning to
Eventually, the destination service sends a return packet. The AIPR 800 receives the return packet via the second interface 804. If another AIPR (downstream AIPR) between the present AIPR 800 and the destination service handles the lead packet and the return packet, the downstream AIPR modifies the return packet to include the downstream AIPR's network address and a port number. A downstream controller 816 identifier uses stateful inspection, as described herein, to identify the return packet. The downstream controller 816 stores information 934 (
The present AIPR 800 may use this information to address subsequent packets to the next AIPR. Specifically, a subsequent packet modifier 818 may set the destination address of the subsequent packets to the network address and port number 940 and 942 (
A last packet identifier 820 statefully follows each session, to identify an end of each stream, as discussed above. As noted, in some cases, the end is signified by a final packet, such as a TCP packet with the RST flag set or a TCP ACK packet in return to a TCP packet with the FIN flag set. In other cases, the end may be signified by a timer expiring. When the end of a session is detected, the packet series manager 808 disassociates the unique identifier from the session and deletes information about the session from the waypoint information base 900.
Where the AIPR 800 is provisioned to be a last AIPR before a destination service, the lead packet modifier 806 restores the lead packet to the state the lead packet was in when the source client sent the lead packet, or as the lead packet was modified, such as a result of network address translation (NAT). Similarly, the subsequent packet modifier 818 restores subsequent packets.
Similarly, if the destination address of the lead packet is the same as the network address of the AIPR 800, or its network interface 802 over which it receives the lead packets, the lead packet modifier 806 and the subsequent packet modifier 818 restore the packet and subsequent packets.
As noted, in some protocols, several packets are required to initiate a session, as with the SYN-SYN/ACK-ACK handshake of the TCP. Thus, the downstream controller identifier 816 may wait until a second return packet is received from the destination service before considering a session as having started.
As noted, some embodiments of the waypoint 800 also manage return packet paths. The lead packet identifier 806 automatically ascertains whether a lead packet was forwarded to the waypoint 800 by an upstream waypoint. If the lead packet includes a session data block, an upstream waypoint forwarded the lead packet. The packet series manager 808 stores information about the upstream waypoint in the waypoint information base 810. A return packet identifier 822 receives return packets from the second network interface 804 and automatically identifies return packets of the session. These return packets may be identified by destination address and port number being equal to the information 932 (
It should be noted that statefully monitoring packets is not done by conventional routers. The prior art known to the inventors teaches away from routers statefully monitoring packets. Statefully monitoring packets is, however, one embodiment of the disclosed waypoint. This type of monitoring distinguishes embodiments of the present invention from the prior art.
The packets in the session have a unique session identifier. At 1104, a prior node, through which the lead packet traversed, is determined. The prior node has a prior node identifier. At 1106, a return association is formed between the prior node identifier and the session identifier. At 1108, the return association is stored in memory to maintain state information for the session.
At 1110, the lead packet is modified to identify at least the intermediate node. At 1112, the lead packet is forwarded toward the destination node though an intermediate node electronic output interface to the IP network. The electronic output interface is in communication with the IP network. At 1114, a backward message (e.g., a packet, referred to as a “backward packet”) is received through an electronic input interface of the intermediate node. The backward message is received from a next node. The next node has a next node identifier. The backward message includes the next node identifier and the session identifier. The electronic input interface is in communication with the IP network.
At 1116, a forward association is formed between the next node identifier and the session identifier. At 1118, the forward association is stored in memory, to maintain state information for the session. At 1120, additional packets of the session are obtained. At 1122, substantially all of the additional packets in the session are forwarded toward the next node, using the stored forward association. The additional packets are forwarded through the electronic output interface of the intermediate node.
At 1124, a plurality of packets is received in a return session, or a return portion of the session, from the destination. The return session is addressed toward the originating node. At 1126, substantially all the packets in the return session are forwarded toward the prior node, using the stored return association. The packets are forwarded through the electronic output interface.
As shown at 1200 in
The lead packet may be addressed so that a plurality of network devices receive the lead packet after it is forwarded and before the next node receives the lead packet. For example, if a first node forwards a lead packet to a second, adjacent node, devices in the Internet between first and second nodes can receive the lead packet before the second node receives that same lead packet.
An AIPR 800 and all or a portion of its components 802-824 may be implemented by a processor executing instructions stored in a memory, hardware (such as combinatorial logic, Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs) or other hardware), firmware or combinations thereof.
Forming the Ordered Path in AdvanceVarious embodiments discussed above form the noted ordered path of nodes between the source/originating node to the destination node/service node using natural routing. Accordingly, such embodiments do not necessarily select a more efficient, faster, reliable, or optimal path from a load balancing perspective. Such natural routing embodiments therefore may select an ordered path of nodes that is inefficient or even ineffective. For example, the ordered path may drop packets, have a lot of congestion, or have a high cost. Illustrative embodiments seek to mitigate those and related problems by taking advantage of the state information in the node routing databases to select a more optimal ordered path of nodes from end-to-end.
More specifically, an intermediate node (e.g., a routing device) may use the state information in its database, such as utilization of AIPRs/nodes in the network (e.g., node congestion) to pre-select an ordered path that has optimal features—however those optimal path features are defined. The intermediate node also may use the cost of various links in the network between the AIPRs/nodes to pre-select an ordered path. For example, if low cost is paramount, then the intermediate node may form a lowest cost path. Alternatively, if reliability is paramount, then the intermediate node may form a more reliable path. If both low cost and reliability are paramount in some specific proportion to each other, then the intermediate node may form a path that has qualities of low cost and reliability. Indeed, while these goals are sought, in practice, the dynamic nature of networks may reduce the effectiveness of some of these ordered paths. The inventors nevertheless expect that such pre-selected ordered paths will improve performance in a majority of cases.
Specifically, the originating node 1300 connects to two nodes, Node 1 and Node 2 of this figure, though a link (this and other links in
Among other things, the destination node 1302 may include a single device for providing a service, or part of a LAN that provides a service.
To those ends, the destination node 1302 includes the noted edge router 1400 with an electronic network interface for connecting to the larger network of
The intermediate node has a plurality of specially configured and conventional functional components that generate the balanced, preferred ordered path of nodes through the network.
In addition to the common components, the AIPR of
To that end,
The process begins at step 1600, in which an intermediate network device (i.e., an AIPR) receives a lead packet, of a given session, that originated from the originating node 1300. Receipt of this packet prompts or starts the process of forming the stateful ordered path between the originating node 1300 and the destination node 1302.
In illustrative embodiments, the intermediate node is close to the originating node 1300; preferably next to the originating node 1300. As explained above, a node is considered to be “next to” or “adjacent” to another node when it is the next one in the ordered set of nodes to receive a packet. In
Originating Node-Node 1-Node 4-Node 3-Node 8-Destination Node.
In that example, Node 1 is considered to be adjacent to the originating node 1300. Node 4, however, is two nodes away from the originating node 1300 and thus, would not be an appropriate node to pre-define the ordered path in this implementation. Alternative embodiments, however, may use path nodes that are not adjacent to the originating node 1300 to set the ordered path. For example, in that embodiment, Node 4 or Node 3 of the prior exemplary ordered path could form the remainder of the path to the Destination Node.
Continuing with the example of
In this case, Node 1 accesses its local routing database 1502 (also referred to as a “waypoint information base”) to determine the state of some or all of the nodes in the network (step 1602). To that end, the path generator 1508 of Node 1 may retrieve state information for some or all of Nodes 2-12 (or all nodes except for Node 2 because Node 1 and Node 2 are not directly coupled without an intervening intermediate node). Among other things, for each session handled by each node, that state information may include the next node/waypoint, the previous node/waypoint, the session identifier, the identities of the originating node 1300 and destination node 1302 of that session, and the number of stateful sessions the node is handling. For example, Node 4 may be a part of an ordered path for 20 active sessions. The state information thus may include the next node and previous node for each of the 20 sessions of Node 4, as well as the originating and destination nodes of all those sessions. In addition, the path generator 1508 of Node 1 also could retrieve related load balancing information, such as the cost associated with different links 1304 and nodes in the network, link capacities, and current flow.
Based on the state information and load balancing information, the path generator 1508 of Node 1 determines the appropriate path from Node 1 to the destination node 1302. In other words, the path generator 1508 use at least the state information, and, in some embodiments, the load balancing information, to select all downstream nodes to the destination node 1302. For example, among other paths, the path generator 1508 may select any of the below set of stateful, ordered paths to the destination node 1302:
(1) Node 1-Node 3-Node 7-Node 8-Destination Node 1302
(2) Node 1-Node 3-Node 8-Destination Node 1302
(3) Node 1-Node 4-Node 3-Node 8-Destination Node 1302
(4) Node 1-Node 5-Node 10-Destination Node 1302
Indeed, the four stateful ordered paths listed above are examples and not intended to suggest they are the only stateful ordered paths. Thus, packets in a given session travel in the order of the nodes between Node 1 and the destination node 1302. Of course, on the backward path, packets take the reverse order and hop to the originating node 1300 after Node 1. For example, using ordered path 1, the packets of the session traverse from the originating node 1300, to Node 1, Node 3, Node 7, Node 8, and then to the destination node 1302. Node 3 and Node 7 are considered to be adjacent in this path. Node 1 and Node 7 are not considered to be adjacent in this path. Step 1604 therefore concludes by selecting one of these ordered paths (or another path not shown) based on the state information and/or the load balancing information in the database 1502.
The process continues to step 1606, which stores the selected path information in the database 1502. At some point, Node 1 may broadcast or multicast this new path and session to other routing devices or nodes in the network so they can update their routing databases. Next, the router 1504 in the routing device forwards the lead packet along the selected path via the electronic interface 1500 (step 1608). Nodes in the selected path downstream of Node 1 (with regard to the lead packet) thus receive the lead packet in the manner described above, update their local databases, and continue forwarding the lead packet to the next node.
The other nodes in the path may receive the ordered path information in any of a plurality of different manners. As noted above, they may receive it in a simple broadcast or multicast. Alternatively, the lead packet may be altered in a manner similar to that described above. Accordingly, a next receiving downstream node (e.g., Node 3) may receive the lead packet and determine from its addressing or other contents that it is a lead packet in a given session. This downstream node (e.g., Node 3) may also ascertain from the lead packet 1) that such node was selected to be part of the ordered set of nodes (set (1) above) of the given path of this session, and 2) the identity of the next node (e.g., Node 7) in the ordered path. Accordingly, this downstream node may forward the lead packet to the next node in the ordered path (e.g., Node 7), which repeats this process to forward the lead packet to the next node (e.g., Node 8). The destination node 1302 may detect that it is the last node and consequently remove the additional information that was used to form this path. In that case, the destination node 1302 stores the previous node in its database 1502 (e.g., Node 8), and thus, has the capability to forward return packets for this given session back to Node 8, which continues forwarding the packets along the given path to the originating node 1300.
The process concludes at step 1610, which forwards packets in both directions along the ordered path as required by the originating node 1300 and the destination node 1302. For example, the originating node 1300 may request a video from a service S1-SN inside the datacenter 1404. Accordingly, now that the ordered path is formed, the originating node 1300 may forward a first set of packets requesting the video. The destination node 1302 or edge router 1400 in the datacenter 1404 of
Service S2 responsively may send packets representing the video back through its local router 1408, to the edge router 1400, and out to the network. The packets in the video stream in this session thus traverse through the network to the originating node 1300 in reverse order in which the request was directed. For example, if path (1) above is used, then the video packets of the return path traverse the network along the ordered path of nodes in the following order:
Node 8-Node7-Node 3-Node 1-Originating Node 1300
After receipt of the return packets, each node recognizes that the packets are return packets and that they belong to the given session. Accordingly, these nodes simply access their local databases 1502 as noted above to forward the return packets to the next downstream node (downstream from the perspective of this packet direction).
Illustrative embodiments thus more effectively load balance a network; they use state information relating to nodes in a typically stateless network (e.g., an IP network) to form a stateful, ordered path between an originating node 1300 and a destination node 1302. As a result, packets should route more efficiently through the otherwise stateless network without the need for load balancing devices, which typically are dedicated devices resident at the edge of a LAN or other network.
While the invention is described through the above-described exemplary embodiments, modifications to, and variations of, the illustrated embodiments may be made without departing from the inventive concepts disclosed herein. Furthermore, disclosed aspects, or portions thereof, may be combined in ways not listed above and/or not explicitly claimed. Accordingly, the invention should not be viewed as being limited to the disclosed embodiments.
Although aspects of embodiments may be described with reference to flowcharts and/or block diagrams, functions, operations, decisions, etc. of all or a portion of each block, or a combination of blocks, may be combined, separated into separate operations or performed in other orders. All or a portion of each block, or a combination of blocks, may be implemented as computer program instructions (such as software), hardware (such as combinatorial logic, Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs) or other hardware), firmware or combinations thereof. Embodiments may be implemented by a processor executing, or controlled by, instructions stored in a memory. The memory may be random access memory (RAM), read-only memory (ROM), flash memory or any other memory, or combination thereof, suitable for storing control software or other instructions and data. Instructions defining the functions of the present invention may be delivered to a processor in many forms, including, but not limited to, information permanently stored on tangible non-writable storage media (e.g., read-only memory devices within a computer, such as ROM, or devices readable by a computer I/O attachment, such as CD-ROM or DVD disks), information alterably stored on tangible writable storage media (e.g., floppy disks, removable flash memory and hard drives) or information conveyed to a computer through a communication medium, including wired or wireless computer networks. Moreover, while embodiments may be described in connection with various illustrative data structures, systems may be embodied using a variety of data structures.
Claims
1. A packet routing method for directing packets of a session between an originating node and a destination node in an IP network, the method comprising an intermediate node that includes a processor configured to perform the following acts:
- obtaining a lead packet of a plurality of packets in a given session, the intermediate node having an electronic interface in communication with the IP network, the intermediate node obtaining the lead packet through the electronic interface;
- maintaining, in a routing database, state information relating to a plurality of sessions in the IP network, each session including a single stateful session path formed by an ordered plurality of nodes in the IP network, the state information including information relating to the ordered plurality of nodes in each of the sessions;
- accessing the routing database to determine the state of a plurality of the sessions;
- forming a stateful given path for packets of the given session across the IP network between the intermediate node and destination node, forming being a function of the state information in the routing database;
- storing state information relating to the stateful given path and the given session in the routing database; and
- forwarding the lead packet via the electronic interface toward the destination along the stateful given path.
2. The packet routing method as defined by claim 1 wherein the intermediate node includes a routing device or a switching device.
3. The packet routing method as defined by claim 1 wherein the ordered plurality of nodes in each session includes a plurality of nodes between two end nodes, the plurality of nodes between the two end nodes in each session being configured to transmit each packet in its session in the same node order between the two end nodes.
4. The packet routing method as defined by claim 1 wherein forming the stateful given path comprises accessing one or more of flow utilization and cost information relating to a plurality of nodes in the routing database.
5. The packet routing method as defined by claim 1 wherein the stateful given path comprises an ordered plurality of given nodes between the originating node and the destination node, the ordered plurality of given nodes having a first node next to the originating node, the first node being the intermediate node.
6. The packet routing method as defined by claim 1 further comprising:
- receiving a plurality of additional packets for the given session from the originating node; and
- forwarding the plurality of additional packets for the given session toward the destination node along the stateful given path.
7. The packet routing method as defined by claim 1 wherein forming a stateful given path comprises determining utilization of the stateful session paths and bandwidth of the stateful session paths.
8. The packet routing method as defined by claim 1 further comprising:
- receiving a plurality of packets in a return session from the destination node, the packets in the return session being addressed toward the originating node; and
- forwarding, through the electronic interface, substantially all of the packets in the return session toward the originating node along the stateful given path.
9. The packet routing method as defined by claim 1 wherein the destination node comprises an edge router for a data center network.
10. The packet routing method as defined by claim 1 wherein the stateful given path comprises an ordered plurality of given nodes between the originating node and the destination node, the ordered plurality of given nodes including the intermediate node and a next node next to and downstream of the intermediate node within the ordered plurality of given nodes, the method further comprising addressing the lead packet to the next node so that a plurality of network devices receive the lead packet after it is forwarded and before the next node receives the lead packet.
11. A routing device for directing packets of a session between an originating node and a destination node in an IP network, the router comprising:
- an electronic interface configured to receive a lead packet of a plurality of packets in a given session, the electronic interface being configured to be connectable to the IP network;
- a routing database operatively coupled with the electronic interface, the routing database being configured to store state information relating to a plurality of sessions in the IP network, each session including a single stateful session path formed by an ordered plurality of nodes in the IP network, the state information including information relating to the ordered plurality of nodes in each of the sessions;
- a path generator operatively coupled with the routing database, the path generator being configured to access the routing database to determine the state of a plurality of the sessions, the path generator also being configured to form a stateful given path for packets of the given session across the IP network between the routing device and the destination node, the path generator forming the stateful given path as a function of the state information in the routing database, the state information relating to the stateful given path and the given session being stored in the routing database; and
- a router operatively coupled with the path generator, the router being configured to forward the lead packet via the electronic interface toward the destination along the stateful given path.
12. The routing device as defined by claim 11 wherein the ordered plurality of nodes in each session includes a plurality of nodes between two end nodes, the plurality of nodes between the two end nodes in each session being configured to transmit each packet in its session in the same node order between the two end nodes.
13. The routing device as defined by claim 11 wherein the path generator is configured to form the stateful given path by accessing one or more of utilization and cost information relating to a plurality of nodes in the routing database.
14. The routing device as defined by claim 11 wherein the stateful given path comprises an ordered plurality of given nodes between the originating node and the destination node, the ordered plurality of given nodes having a first node next to the originating node, the first node being the routing device.
15. The routing device as defined by claim 11 wherein the router is configured to receive a plurality of additional packets for the given session from the originating node, and forward the plurality of additional packets for the given session toward the destination node along the stateful given path.
16. The routing device as defined by claim 11 wherein the information relating to the ordered plurality of nodes in each of the sessions includes utilization of the stateful session paths and bandwidth of the stateful session paths.
17. The routing device as defined by claim 11 wherein the router is configured to receive a plurality of packets in a return session from the destination node, the packets in the return session being addressed toward the originating node, the router also configured to forward, through the electronic interface, substantially all of the packets in the return session toward the originating node along the stateful given path.
18. The routing device as defined by claim 11 wherein the destination node comprises an edge router for a data center network.
19. The routing device as defined by claim 11 wherein the stateful given path comprises an ordered plurality of given nodes between the originating node and the destination node, the ordered plurality of given nodes including the routing device and a next node next to and downstream of the routing device within the ordered plurality of given nodes, the router further being configured to address the lead packet to the next node so that a plurality of network devices receive the lead packet after it is forwarded through the electronic interface and before the next node receives the lead packet.
20. A computer program product for use on a computer system for directing packets of a session between an originating node and a destination node in an IP network, the computer program product comprising a tangible, non-transient computer usable medium having computer readable program code thereon, the computer readable program code comprising:
- program code for an electronic interface of a routing device to obtain a lead packet of a plurality of packets in a given session, the electronic interface being connectable with the IP network;
- program code for maintaining, in a routing database, state information relating to a plurality of sessions in the IP network, each session including a single stateful session path formed by an ordered plurality of nodes in the IP network, the state information including information relating to the ordered plurality of nodes in each of the sessions;
- program code for accessing the routing database to determine the state of a plurality of the sessions;
- program code for forming a stateful given path for packets of the given session across the IP network between the routing device and destination node as a function of the state information in the routing database;
- program code for storing state information relating to the stateful given path and the given session in the routing database; and
- program code for forwarding the lead packet via the electronic interface toward the destination along the stateful given path.
Type: Application
Filed: Mar 13, 2019
Publication Date: Jul 11, 2019
Inventors: Patrick Timmons (Newton, MA), Michael Baj (Somerville, MA), Hadriel S. Kaplan (Nashua, NH), Patrick MeLampy (Dunstable, MA), Prashant Kumar (Andover, MA), Robert Penfield (Concord, MA)
Application Number: 16/352,297