Session monitoring using session setup metrics
By generating session establishment metrics in routers, monitoring and switching paths, the problem of poor session performance in computer networks is solved, enabling more effective routing and service quality assurance.
Patent Information
- Application Number
- CN202410787491.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2020-04-23
- Filing Date
- 2021-04-23
- Publication Date
- 2024-10-01
AI Technical Summary
In existing computer networks, it is difficult for routers to detect network problems at the session level and perform corresponding actions. Especially when there are no problems at the link, network or transmission level, it is unable to effectively monitor and solve the problem of poor session performance, resulting in Unable to meet service level agreement (SLA) requirements.
The router generates session establishment metrics to determine whether session performance requirements are met by monitoring the status and performance of the session, and switches paths or interfaces when necessary to ensure compliance with SLA requirements without interrupting other operational sessions.
It achieves more effective and fine-grained routing of customer services within the network, can detect and resolve session-level network problems, ensures service quality, and avoids poor-performing sessions from affecting other sessions.
Smart Images

Figure CN118740730A_ABST
Abstract
Description
[0001] This application is a divisional application of an invention patent application with an international application date of April 23, 2021 (priority date of April 23, 2020), which entered the Chinese national stage on October 21, 2022, and has a Chinese national application number of 202180030446.7 and is named “Session Monitoring Using Session Establishment Metrics”. Technical Field
[0002] The present disclosure relates generally to computer networks and, more particularly, to routing packets within a computer network. Background Art
[0003] A computer network is a collection of interconnected computing devices capable of exchanging data and sharing resources. Example computing devices include routers, switches, and other layer 2 (L2) network devices that operate within layer 2 (i.e., the data link layer) of the Open Systems Interconnection (OSI) reference model, and layer 3 (L3) network devices that operate within layer 3 (i.e., the network layer) of the OSI reference model. Network devices within a computer network typically include a control unit that provides control plane functions for the network device and forwarding components for routing or switching data units.
[0004] Computing devices can establish a "network session" (also referred to herein as a "session") to enable communication between devices on a computer network. A session can be bidirectional in that a session includes packets traveling in two directions between a first device and a second device. For example, a session includes a forward packet flow initiated from a first device and destined for a second device and a reverse packet flow initiated from a second device and destined for the first device. The forward and reverse packet flows of a session are associated with each other because the source address and source port of the forward packet flow are the same as the destination address and destination port of the reverse packet flow, and the destination address and destination port of the forward packet flow are the same as the source address and source port of the reverse packet flow. In order to establish a session, a computing device may use one or more communication session protocols, including Transmission Control Protocol (TCP), Transport Layer Security (TLS), User Datagram Protocol (UDP), Internet Control Message Protocol (ICMP), and the like. Summary of the invention
[0005] In general, the present disclosure describes techniques for monitoring sessions using session establishment metrics for sessions. A client device may establish a session to access a network service instantiated by a network service instance (also referred to herein as a "service instance"). After the session is established, traffic is forwarded along the forward path and the reverse path between the client device and the service instance. In some examples, a session may not be established, an existing session may no longer be established, or the session may perform poorly according to session performance requirements (e.g., requirements defined by a software license agreement (SLA)). This may occur even if, for example, there are no operational problems with the path or router interface on an intermediate network between the client device and the network service instance. For example, a client device may attempt to establish a first communication session (e.g., a TLS session) with a first network service instance. The first network service instance may successfully complete the key exchange phase and the server parameter phase of the TLS handshake, but cannot complete the authentication phase of the TLS handshake. Therefore, even if there are no problems at the link, network, or transport level (e.g., OSI reference model layer 2, 3, or 4) between the client device and the first network service instance, the first TLS session between the client device and the first network service instance cannot be established. Typically, a router may not be able to detect problems at the session level (e.g., OSI reference model layer 5), and therefore may not be able to reroute network traffic at the session level while the path and interface to service instance 104 are operating properly. Furthermore, rerouting traffic at layers 2, 3, or 4 may disrupt other sessions that share a router interface or similar path with the problematic session but are still operational.
[0006] According to the technology of the present disclosure, the router generates one or more session establishment metrics for the session. For example, the router described herein can obtain a metric for session establishment (also referred to herein as a "session establishment metric") and use such a metric to determine whether a session has been established (or failed to be established) between a client device and a network service instance and / or whether the established session does not meet a session performance requirement (also referred to herein as a "session requirement"). The router can use the session metric and the session performance requirement to determine whether to switch the network traffic of the session between the client device and the network service instance from a first path to a second path in order to ensure that the session performance requirement is met without interrupting other operable sessions traversing the first path.
[0007] For example, the intermediate network includes multiple routers and is located between the client device and the network service instance hosted by the server. A first router within the intermediate network is connected to the network service instance via a first path and a second path different from the first path. For example, the first path and the second path can each include at least one different router or at least one different interface of the same router, etc. The first router forwards network traffic for a session between the client device and the network service instance along the first path.
[0008] In some examples, the first router is configured to perform session-based routing for a session between a client device and a network service instance. For example, the first router modifies a first packet of at least one of a forward packet flow and a reverse packet flow of the session to include a header and a portion of metadata specifying a session identifier of the session, the header including a source address of the first router and a destination address of the second router along a first path.
[0009] The first router obtains one or more session establishment metrics for a session between a client device and a network service instance. The session establishment metrics may describe data related to a successful or unsuccessful establishment of one or more sessions. For example, the session establishment metrics may include, for example, the time it takes to establish a session, the number of sessions that are successfully established, the number of sessions that fail to be established due to a timeout, the number of sessions that fail to be established due to a destination that is unreachable, the number of sessions that are closed before the session is established, etc. The first router may derive the session establishment metrics by monitoring a state of the first session before, during, or after establishment.
[0010] The first router receives one or more session performance requirements for a session between a client device and a network service instance, which may include an SLA requirement for the session. The first router compares the metrics to the session performance requirements. In response to determining that the one or more session establishment metrics for the session do not meet the one or more session performance requirements for the session, the first router forwards network traffic for the session between the client device and the network service instance along a second path. In some examples, the first router modifies a second packet of at least one of a forward packet flow and a reverse packet flow of the session to include a header and a portion of metadata specifying a session identifier for the session, the header including a source address of the first router and a destination address of a third router along the second path.
[0011] In some examples, the first router removes the first path from a session load balancer that load balances customer traffic associated with the network service along different paths. Additionally, the routers described herein can use such metrics to select one or more sessions, detect black-holing of traffic, determine that a session does not meet SLA requirements, or load balance customer traffic associated with the network service across different paths.
[0012] The technology of the present disclosure can provide specific improvements to the computer-related fields of computer networks and path selection with practical applications. For example, the technology of the present disclosure can enable a router to monitor the state of a session to determine whether the session has been established, and generate a metric related to whether the session has been established. Different from other routers that may only be able to perform path selection and routing at the link, network or transmission level (e.g., OSI reference model layer 2, 3 or 4), the router described herein can use such a metric to perform path selection and routing at the session level (e.g., OSI reference model layer 5). Therefore, such a router can provide more effective and fine-grained routing to customer services within the network.
[0013] In addition, the router described herein can use session establishment metrics to determine whether a session meets SLA requirements, and in response, select a different path or interface for transmitting network traffic associated with the session to ensure compliance with the SLA. Thus, even if there are no problems at the link, network, or transport level (e.g., OSI reference model layer 2, 3, or 4), interface, or path, such a router described herein can detect network problems at the session level (e.g., OSI reference model layer 5) and perform actions to ensure compliance with session-level SLA requirements.
[0014] In addition, the techniques of the present disclosure may enable the router described herein to switch from using a first interface or path to forward network traffic associated with a poorly performing session to using a second interface or path to forward network traffic associated with the poorly performing session without dismantling the first path or deactivating the first interface. Thus, the techniques of the present disclosure may enable the router to reroute traffic for the poorly performing session without adversely affecting other sessions that are performing in accordance with SLA requirements but that, for example, share a path with the poorly performing session or use the same interface as the poorly performing session. Thus, the router described herein may provide more granular and more efficient routing of customer traffic over other routers that may need to dismantle paths or deactivate interfaces associated with the poorly performing session.
[0015] In one example, the present disclosure describes a method, the method comprising: receiving, by a first router among a plurality of routers of a network, one or more session performance requirements for a session between a client device and a network service instance, the network connecting the client device to the network service instance hosted by a server, the session comprising a forward packet flow and a reverse packet flow, wherein the first router is connected to the network service instance via a first path on the network and a second path on the network, the second path being different from the first path; forwarding, by the first router and along the first path, network traffic of the session between the client device and the network service instance, the forwarding comprising modifying a first packet of at least one of the forward packet flow and the reverse packet flow of the session to include: a source address of the first router among the plurality of routers along the first path and a destination address of the second router a header including a source address of the first router and a destination address of a third router among the plurality of routers along the second path; and a portion of metadata specifying a session identifier for the session; obtaining, by the first router, one or more session establishment metrics for the session; determining, by the first router, that the one or more session establishment metrics for the session do not satisfy the one or more session performance requirements for the session; and in response to determining that the one or more session establishment metrics for the session do not satisfy the one or more session performance requirements for the session, forwarding, by the first router and along the second path, the network traffic for the session between the client device and the network service instance, the forwarding comprising modifying a second packet of at least one of the forward packet flow and the reverse packet flow of the session to include: a header including a source address of the first router and a destination address of a third router among the plurality of routers along the second path; and the portion of metadata specifying the session identifier for the session.
[0016] In another example, the present disclosure describes a first router among a plurality of routers of a network, the first router comprising: a processing circuit device; and a memory operably coupled to the processing circuit device and comprising instructions, the instructions configured to cause the processing circuit device to: receive one or more session performance requirements for a session between a client device and a network service instance hosted by a server, the session comprising a forward packet flow and a reverse packet flow, wherein the first router is connected to the network service instance via a first path on the network and a second path on the network, the second path being different from the first path, and wherein the network connects the client device to the network service instance; forward network traffic of the session between the client device and the network service instance along the first path, the forwarding comprising modifying a first packet of at least one of the forward packet flow and the reverse packet flow of the session to include: including forwarding traffic along the first path; a header including a source address of the first router and a destination address of a second router among the plurality of routers along the path; and a portion of metadata specifying a session identifier for the session; obtaining, by the first router, one or more session establishment metrics for the session; determining that the one or more session establishment metrics for the session do not meet the one or more session performance requirements for the session; and in response to determining that the one or more session establishment metrics for the session do not meet the one or more session performance requirements for the session, forwarding the network traffic for the session between the client device and the network service instance along the second path, the forwarding comprising modifying a second packet of at least one of the forward packet flow and the reverse packet flow of the session to include: a header including a source address of the first router and a destination address of a third router among the plurality of routers along the second path; and the portion of metadata specifying the session identifier for the session.
[0017] In another example, the present disclosure describes a non-transitory computer-readable medium including instructions that, when executed, are configured to cause a processing circuit device of a first router among a plurality of routers of a network to: receive one or more session performance requirements for a session between a client device and a network service instance hosted by a server, the session including a forward packet flow and a reverse packet flow, wherein the first router is connected to the network service instance via a first path on the network and a second path on the network, the second path being different from the first path, and wherein the network connects the client device to the network service instance; forward network traffic of the session between the client device and the network service instance along the first path, the forwarding comprising modifying a first packet of at least one of the forward packet flow and the reverse packet flow of the session to include: including a first packet of the first router among the plurality of routers along the first path a header including a source address of a first router and a destination address of a second router; and a portion of metadata specifying a session identifier for the session; obtaining, by the first router, one or more session establishment metrics for the session; determining that the one or more session establishment metrics for the session do not meet the one or more session performance requirements for the session; and in response to determining that the one or more session establishment metrics for the session do not meet the one or more session performance requirements for the session, forwarding the network traffic for the session between the client device and the network service instance along the second path, the forwarding comprising modifying a second packet of at least one of the forward packet flow and the reverse packet flow of the session to include: a header including a source address of the first router and a destination address of a third router among the plurality of routers along the second path; and the portion of metadata specifying the session identifier for the session.
[0018] The details of one or more examples of the technology of the present disclosure are set forth in the accompanying drawings and the description below. Other features, objects, and advantages of the technology will be apparent from the description and drawings, and from the claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 is a block diagram illustrating an example computer network system in accordance with techniques of this disclosure.
[0020] Figure 2 is a block diagram illustrating an example router in accordance with techniques of this disclosure.
[0021] Figure 3A and 3B is a block diagram illustrating an example computer network system that performs path selection based on session establishment metrics in accordance with techniques of this disclosure.
[0022] Figure 4 is a flow chart illustrating example operations according to the techniques of this disclosure.
[0023] Like reference numerals refer to like elements throughout the drawings and the specification. DETAILED DESCRIPTION
[0024] Figure 1 is a block diagram illustrating an example computer network system 2 according to the techniques of this disclosure. Figure 1 In the example of , computer network system 2 includes service provider networks 150A-150D (collectively referred to as "service provider networks 150"), which are configured to provide wide area network (WAN) connections to different customer networks 140A-140B ("customer networks 140"). Routers 110A-110I (collectively referred to as "routers 110") of service provider network 150 provide access to service provider network 150 via customer edge devices 102A-102B (collectively referred to as "CE devices 102") to client devices 100 and servers 103 associated with customer networks 140. In some examples, customer network 140A is an enterprise network. In some examples, customer network 140B is a cloud service provider (CSP) network that provides network services to client devices 100 in the form of service instances 104 hosted by server 103. For ease of illustration, customer network 140A is shown as having a single client device 100. Typically, customer network 140A includes many client devices 100, each of which can access CSP network 140B to access one or more network services. Communication links 16A-16G (collectively, links "16") can be Ethernet, ATM, or any other suitable network connection.
[0025] exist Figure 1 In the example of , CE device 102 and router 110 are shown as routers. However, the techniques of the present disclosure may be implemented using any router, such as a switch, router, gateway, or other suitable router that can send and receive network traffic. For example, customer network 140 may be a network for geographically separated locations of an enterprise. Each customer network 140 may include additional customer devices, such as one or more non-edge switches, routers, hubs, gateways, security devices such as firewalls, intrusion detection and / or intrusion prevention devices, servers, computer terminals, laptops, printers, databases, wireless mobile devices such as cellular phones or personal digital assistants, wireless access points, bridges, cable modems, application accelerators, or Figure 1 Other routers not shown. Figure 1 The configuration of the computer network system 2 shown is only an example. For example, the computer network system 2 may include any number of client networks 140. However, for ease of description, Figure 1 Only customer networks 140A-140B are shown.
[0026] Service provider network 150 represents one or more publicly accessible computer networks owned and operated by one or more service providers. Figure 1 In the example of , the computer network system 2 is shown as including multiple interconnected service provider networks 150, but in other examples, the computer network system 2 may alternatively include a single service provider network that provides connections between customer networks 140. The service provider is typically a large telecommunications entity or company. Each service provider network 150 is typically a large layer 3 (L3) computer network, where references to a layer followed by a number refer to the corresponding layer in the Open Systems Interconnection (OSI) model. Each service provider network 150 is an L3 network in the sense that it natively supports L3 operations as described in the OSI model. Common L3 operations include operations performed according to L3 protocols, such as the Internet Protocol (IP). In the OSI model, L3 is also referred to as the "network layer", and in the present disclosure, the term L3 may be used interchangeably with the phrase "network layer".
[0027] Although not shown, each service provider network 150 may be coupled to one or more networks managed by other providers, and may thus form part of a large-scale public network infrastructure (e.g., the Internet). Thus, customer networks 140 may be viewed as edge networks of the Internet. Each service provider network 150 may provide computing devices (e.g., client device 100 and destination device 103) within customer network 140 with access to the Internet, and may allow computing devices within customer network 140 to communicate with each other.
[0028] Although additional routers are not shown for ease of explanation, it should be understood that system 2 may include additional network and / or computing devices, such as one or more additional switches, routers, hubs, gateways, security devices such as firewalls, intrusion detection and / or intrusion prevention devices, servers, computer terminals, laptops, printers, databases, wireless mobile devices such as cellular phones or personal digital assistants, wireless access points, bridges, cable modems, application accelerators, or other routers. In addition, although the elements of system 2 are shown as being directly coupled, it should be understood that one or more additional network elements may be included along any network link 16 such that the network elements of system 2 are not directly coupled.
[0029] Each service provider network 150 typically provides a number of residential and business services to customer networks 140, including residential and business-level data services (which are often referred to as "Internet services" because these data services allow access to the collection of publicly accessible networks known as the Internet), residential and business-level telephone and / or voice services, and residential and business-level television services.
[0030] Session-based routing
[0031] In some examples, routers 110 may implement a stateful, session-based routing scheme that enables each router 110 to independently perform path selection and traffic engineering. Using session-based routing may enable routers 110 to avoid using a centralized controller, such as a software defined network (SDN) controller, to perform path selection and traffic engineering. In this way, routers 110 may be more efficient and scalable for large networks where the use of an SDN controller would not be feasible. In addition, using session-based routing may enable routers 110 to avoid using tunnels, thereby saving considerable network resources by eliminating the need to perform encapsulation and decapsulation at tunnel endpoints. In some examples, routers 110 implement session-based routing as a secure vector routing (SVR) provided by Juniper Networks, Inc.
[0032] exist Figure 1 In the example of , a client device 100 of system 2 establishes a session 40 with a service instance 104. Router 110 facilitates the establishment of session 40 by transmitting network traffic between client device 100 and service instance 104. In some examples, client device 100 can be considered a "source" device because client device 100 initiates session 40 between client device 100 and service instance 104, e.g., client device 100 is the "source" of a first packet of a forwarded flow of the session. Session 40 includes a forward packet flow initiated from client device 100 and destined for service instance 104 hosted by server 103, and a reverse packet flow initiated from service instance 104 and destined for client device 100. The forward flow of session 40 traverses a first path, which includes, for example, client device 100, CE device 102A, routers 110A, 110D, and 110E-110I, CE device 102B, and server 103. As described in more detail below, after determining that the session establishment metrics for session 40 do not meet the session performance requirements, router 110 may dynamically select a second path to forward session 40 (at Figure 1The forward flow of session 40' passes through a second path, which includes, for example, client device 100, CE device 102A, routers 110A, 110C and 110E-110I, CE device 102B, and server 103. Figure 1 As shown in the example of , at least a portion of the first path and the second path are the same (e.g., both the first and second paths include routers 110A and 110E-110I). However, the first and second paths differ in that the first path passes through router 110D, while the second path passes through router 110C.
[0033] The client device 100 can establish a session 40 according to one or more communication session protocols including TCP, TLS, UDP, or ICMP. For example, in order to establish a session 40 according to TCP so that data can be exchanged according to TCP, the client device 100 and the service instance 104 perform a three-way handshake. The client device 100 sends a first packet including a "SYN" flag to the service instance 104. The service instance 104 confirms the receipt of the first packet by responding to the client device 100 with a second packet including a "SYN-ACK" flag. The client device 100 confirms the receipt of the second packet by responding to the service instance 104 with a third packet including an "ACK" flag. After sending the third packet, the session 40 is established according to TCP, and the client device 100 and the service instance 104 can exchange data with each other via the session 40. Additional example information about TCP is described in the following document: "TRANSMISSION CONTROL PROTOCOL", Request for Comments (RFC) 793, Internet Engineering Task Force (IETF), September 1981, available at https: / / tools.ietf.org / html / rfc793, the entire contents of which are incorporated herein by reference.
[0034] In order to establish session 40 according to the TLS session, the client device 100 and the service instance 104 perform a TLS handshake to establish a secure connection before transmitting data. The TLS handshake occurs in three phases: a key exchange phase, a server parameter phase, and an authentication phase. In the key exchange phase, the client device 100 sends a ClientHello message including password and key information. The service instance 104 responds with a ServerHello message, which indicates the negotiated connection parameters. The combination of ClientHello and ServerHello determines the shared key. During the server parameter phase, the service instance 104 sends an EncryptedExtensions message, followed by a CertificateRequest message to establish server parameters. Finally, in the authentication phase, the client device 100 and the service instance 104 exchange authentication messages. Specifically, the service instance 104 sends an optional Certificate message, a CertificateVerify message, and a Finished message. Upon receiving the message from the service instance 104, the client device 100 responds with its Authentication message, such as a Certificate message, a CertificateVerify message (if requested), and a Finished message. After the client device 100 sends the Finished message, the handshake is complete, and the client device 100 and the service instance 104 can exchange data with each other via the session 40 according to TLS. Additional example information about TLS is described in the following documents: "The Transport Layer Security (TLS) Protocol Version 1.2", RFC 5246, IETF, August 2008, available at https: / / tools.ietf.org / html / rfc5246; and "The Transport Layer Security (TLS) Protocol Version 1.3", RFC8446, IETF, August 2018, available at https: / / tools.ietf.org / html / rfc8446, the entire contents of each of which are incorporated herein by reference.
[0035] UDP is a connectionless protocol because the client device 100 does not verify that the service instance 104 is able to receive data before sending the data. To establish a session 40 according to UDP, the client device 100 sends a first packet to the service instance 104. When the client device 100 receives any packets from the service instance 104, the session 40 can be considered to be "established" according to UDP, which means that the service instance 104 successfully received the first packet from the client device 100, the response, and the client device 100 is able to receive the response from the service instance 104. Additional example information about UDP is described in the following document: "User Datagram Protocol", RFC 768, IETF, August 28, 1980, available from https: / / tools.ietf.org / html / rfc768, the entire contents of which are incorporated herein by reference.
[0036] Unlike the transport protocols TCP, TLS or UDP, ICMP is a control protocol. ICMP packets do not carry application data, but are used for diagnostic, control or error messages. Like UDP, ICMP is a connectionless protocol because the client device 100 does not verify that the service instance 104 can receive data before sending the ICMP message. In order to establish a session 40 according to ICMP, the client device 100 sends a first packet to the service instance 104. When the client device 100 receives any packet from the service instance 104, the session 40 can be considered to be "established" according to ICMP, which means that the service instance 104 successfully receives the first packet from the client device 100, responds, and the client device 100 is able to receive a response from the service instance 104. Additional example information about ICMP is described in the following document: "INTERNET CONTROL MESSAGE PROTOCOL" (Internet Control Message Protocol), RFC 792, September 1981, available from https: / / tools.ietf.org / html / rfc792, the entire content of which is incorporated herein by reference.
[0037] exist Figure 1 In the example of FIG. 4 , when router 110A receives a packet of a forward packet flow originating from client device 100 and destined for server 103, router 110A determines whether the packet belongs to a new session (e.g., is the “first” packet or “bootstrap” packet of session 40). In some examples, router 110A determines whether the source address, source port, destination address, destination port, and protocol of the first packet match an entry in the session table.
[0038] If no such entry exists, the router 110A determines that the packet belongs to a new session and creates an entry in the session table. In addition, if the packet belongs to a new session, the router 110A may generate a session identifier for the session 40. The session identifier may include, for example, the source address and source port of the client device 100, the destination address and destination port of the server 103, and the protocol used by the first packet. The router 110A may use the session identifier to identify subsequent packets as belonging to the same session.
[0039] In some examples, router 110 performs stateful routing for session 40. This means that router 110 sequentially forwards each packet of the forward packet flow of session 40 along the same forward network path. As described above, the "same" forward path refers to the same router 110 that forms a segment or at least a portion between the device that originated the packet and the device to which the packet is destined (but not necessarily the entire network path between the device that originated the packet and the device to which the packet is destined). In addition, router 110 sequentially forwards each packet of the return flow of session 40 along the same return network path. The forward network path of the forward packet flow of session 40 and the return network path of the return flow of session 40 can be the same path or different paths. By ensuring that each packet of the flow is forwarded sequentially along the same path, router 110 maintains the state of the entire flow at each router 110, thereby enabling the use of stateful packet services, such as deep packet inspection (DPI).
[0040] exist Figure 1 In the example of , a stateful routing session can be established from ingress router 110A through intermediate routers 110C-110H to egress router 110I. In this example, router 110A determines that the first packet is an unmodified packet and the first packet of a new session 40. Router 110A modifies the first packet to include metadata (e.g., the original source address, source port, destination address, and destination port) that specifies a session identifier. Router 110A replaces the header of the modified first packet to specify a source address that is the address of router 110A, a source port that is the port to which router 110A forwards the modified first packet to server 103, a destination address that is the address of the next hop to which router 110A forwards the first packet (e.g., the address of router 110D), and a destination port that is the port of the next hop to which router 110A forwards the first packet (e.g., the port of router 110D).
[0041] The router 110A may also identify a network service associated with the session 40. For example, the router 110A may compare one or more of the source address, source port, destination address, or destination port of the session with a table of service address and port information to identify the service associated with the session. Examples of network services include Hypertext Transfer Protocol (HTTP), firewall services, proxy services, packet monitoring or metric services, etc. For example, the router 110A may determine that the forward packet flow of the session 40 specifies the destination address and destination port assigned to the service instance 104 of the server 103, which is an instance of a specific network service. Thereafter, the router 110A may store the association between the session 40 and the identified network service. As another example, if the source port and / or destination port of the session 40 is 80, the router 110A may determine that the session 40 is associated with the HTTP service. In other examples, the router 110A may determine that one or more of the source address, source port, destination address, or destination port of the session 40 belongs to a block of addresses or ports indicating that a specific service is associated with the session 40.
[0042] In some examples, router 110A uses the network service determined for session 40 to select a forward path for forwarding the first packet and each subsequent packet of the forward packet flow of session 40 to server 103. In this way, router 110A can perform service-specific path selection to select the network path that best suits the service requirements. Unlike network topologies that use an SDN controller to perform path selection, each router 110 performs path selection. In addition, unlike traditional routers that can only make routing decisions at the flow level, using session-based routing enables each router 110 to make routing decisions at the service level or application level.
[0043] Router 110A forwards the modified first packet to router 110D. In addition, router 110A stores the session identifier of session 40 so that when subsequent packets of session 40 are received, router 110A can identify the subsequent packets as belonging to the same session 40 and forward the subsequent packets along the same path as the first packet.
[0044] The intermediate router 110D receives the modified first packet and determines whether the modified first packet includes metadata specifying the session identifier. In response to determining that the modified first packet includes metadata specifying the session identifier, the intermediate router 110D determines that the router 110D is not an ingress device, such that the router 110D does not attach metadata specifying the session identifier.
[0045] As described above, with respect to router 110A, router 110D determines whether the packet belongs to a new session (e.g., is the "first" packet or the "lead" packet of a session) by determining whether the source address, source port, destination address, destination port, and protocol of the first packet match an entry in the session table. If no such entry exists, router 110D determines that the packet belongs to a new session and creates an entry in the session table. In addition, if the packet belongs to a new session, router 110D generates a session identifier for the session. The session identifier used by router 110D to identify the session of the first packet may be different from the session identifier used by router 110A to identify the same session of the first packet, because each router 110A, 110D uses the header source address, source port, destination address, and destination port of the first packet to generate the session identifier, and when each router 110 forwards the first packet along the forward path, the header information may be modified by each preceding router 110. Additionally, each router 110 may store the header information to identify the previous router 110 (or "waypoint") and the next router 110 (or "waypoint") so that each router 110 can reconstruct the same forward and reverse paths for each subsequent packet of the session.
[0046] Router 110D replaces the header of the modified first packet to specify a source address that is the address of router 110D, a source port that is the port to which router 110D forwards the modified first packet to server 103, a destination address that is the address of the next hop to which router 110D forwards the first packet (e.g., the address of router 110E of session 40 along the first path), and a destination port that is the port of the next hop to which router 110D forwards the first packet (e.g., the port of router 110E). Router 110D forwards the modified first packet to router 110D. In addition, router 110D stores a session identifier for the session so that when subsequent packets of the session are received, router 110D can identify the subsequent packets as belonging to the same session and forward the subsequent packets along the same path as the first packet.
[0047] Subsequent intermediate routers 110E-110H process the modified first packet in a similar manner as routers 110A and 110D, causing routers 110 to forward subsequent packets of the session along the same path as the first packet. In addition, each router 110 stores a session identifier for the session, which may include an identification of a previous router 110 along the network path. Thus, each router 110 can forward packets of the reverse packet flow of the session back to client device 100 along the same network path using the session identifier.
[0048] A router 110 that can forward packets of a forward packet flow of a session to the destination of the packet flow is an egress router, or a "terminal" router. In the aforementioned example, router 110I is a terminal router because router 110I can forward packets to CE device 102B for forwarding to server 103. Router 110I receives a modified first packet that includes metadata (e.g., original source address, source port, destination address, and destination port) that specifies a session identifier. Router 110I identifies the modified first packet as being destined for a service that terminates at router 110I by determining that the destination source address and destination source port specified in the metadata of the modified lead packet correspond to a destination that is reachable by router 110I (e.g., server 103 is reachable via CE device 102B). Router 110I restores the original first packet by removing the metadata from the modified first packet and using the metadata to modify the header of the first packet to specify the original source address, source port, destination address, and destination port. Router 1101 forwards the recovered first packet to CE device 102B for forwarding to server 103. Thus, the use of session-based routing may form a series of waypoints (e.g., routers 110) interconnected by path "segments" (e.g., end-to-end routing vectors between each waypoint).
[0049] Additional information about session-based routing and SVR is described in the following documents: U.S. Patent No. 9,729,439, entitled “COMPUTER NETWORK PACKET FLOW CONTROLLER,” issued on August 8, 2017; U.S. Patent No. 9,729,682, entitled “NETWORK DEVICE AND METHODFOR PROCESSING A SESSION USING A PACKET SIGNATURE,” issued on August 8, 2017; U.S. Patent No. 9,762,485, entitled “NETWORK PACKET FLOWCONTROLLER WITH EXTENDED SESSION MANAGEMENT,” issued on September 12, 2017; U.S. Patent No. 9,871,748, entitled “ROUTER WITH OPTIMIZED STATISTICAL U.S. Patent No. 9,985,883, entitled “NAME-BASED ROUTING SYSTEM AND METHOD,” issued on May 29, 2018; U.S. Patent No. 10,200,264, entitled “LINK STATUS MONITORING BASED ON PACKET LOSS DETECTION,” issued on February 5, 2019; U.S. Patent No. 10,277,506, entitled “STATEFUL LOAD BALANCING IN A STATELESS NETWORK,” issued on April 30, 2019; U.S. Patent No. 10,432,522, entitled “NETWORK PACKET FLOW CONTROLLER WITH EXTENDED SESSION MANAGEMENT” (Network Packet Flow Controller with Extended Session Management), authorized on October 1, 2019; and U.S. Patent Application Publication No. 2020 / 0403890, entitled “IN-LINE PERFORMANCE MONITORING” (Embedded Performance Monitoring), published on December 24, 2020, the entire contents of each of which are incorporated herein by reference in their entirety.
[0050] Exchange service and topology status information
[0051] In some examples, to implement session-based routing, each router 110 maintains a local repository of service and topology state information for each other router 110. The service and topology state information includes services reachable from each router 110, and network topologies from each router for reaching these services. Each router 110 can send changes to services reachable from the router 110 and / or changes to the network topology for reaching the services from the router to a central repository, such as a server. In addition, each router 110 can receive service and topology state information for each other router 110 in the system 2 from the central repository.
[0052] In the foregoing example, router 110A receives a packet, determines session 40 for a forward packet flow including the packet, determines a service associated with session 40, and selects a network path for forwarding the packet. Router 110A may use its local copy of the service and topology state information of each router 110 to select a network path for forwarding the packet. For example, router 110A may use the identified service associated with the packet and the network topology used to reach the identified service to select a network path that meets the SLA requirements of the service or other session performance requirements. Router 110A may then forward the packet and subsequent packets of the forward packet flow of session 40 along the selected path. In this way, router 110A may perform service-specific path selection because router 110 may use criteria specific to the service associated with the packet to select a network path that best suits the service requirements.
[0053] In some examples, the interfaces of router 110 can be assigned to one or more "neighborhoods." A "neighborhood" is defined as a label applied to the interface of router 110. Routers 110 in the same neighborhood can form a peer relationship with each other. For example, each router 110 having an interface with a neighborhood label applied can reach each other router 110 having an interface with the same neighborhood label applied via a third layer network. In some examples, one or more neighborhoods can be aggregated into a "district." A district is a logical grouping of one or more neighborhoods. Typically, an autonomous system (AS) (also referred to herein as an "authority") can be divided into one or more districts, each of which includes one or more neighborhoods.
[0054] In some examples, each router 110 maintains a local repository of service and topology state information only for those other routers 110 within the same neighborhood. In some examples, each router 110 maintains a local repository of service and topology state information only for those other routers 110 within the same neighborhood region. As an example, each service provider network 150 can be considered a different "region", where each subdomain within each service provider network 150 can be considered a neighborhood within the region. In this example, each router 110A and 110B within the service provider network 150A can only maintain each other's service and topology state information, without maintaining the service and topology state information of routers 110C-110I. Similarly, each router 110D and 110C within the service provider network 150B can only maintain each other's service and topology state information, without maintaining the service and topology state information of routers 110A-110B or 110E-110I. In other examples, the administrator can assign one or more service provider networks 150 to one or more regions, one or more neighborhoods, or a combination of regions and neighborhoods that are suitable for the needs of the network system 2.
[0055] Additional information about the exchange of service and topology state information is described in the following documents: U.S. Patent Application Publication No. 2020 / 0366590, entitled “CENTRAL AUTHORITY FOR SERVICE AND TOPOLOGY EXCHANGE,” published on November 19, 2020; U.S. Patent Application Publication No. 2020 / 0366599, entitled “SOURCE-BASED ROUTING,” published on November 19, 2020; U.S. Patent Application Publication No. 2020 / 0366598, entitled “SERVICE AND TOPOLOGY EXCHANGE PROTOCOL,” published on November 19, 2020; U.S. Patent Application Publication No. 2020 / 0366589, entitled “ROUTING USING SEGMENT-BASED METRICS” (Routing using segment-based metrics), published on November 19, 2020; and U.S. patent application No. 16 / 050,722, entitled “NETWORK NEIGHBORHOODSFOR ESTABLISHING COMMUNICATION RELATIONSHIPS BETWEEN COMMUNICATION INTERFACES IN ADMINISTRATIVE DOMAIN” (Network neighborhood for establishing communication relationships between communication interfaces in an administrative domain), filed on July 31, 2018, the entire contents of each of which are incorporated herein by reference in their entirety.
[0056] Session monitoring using session establishment metrics.
[0057] According to the technology of the present disclosure, one or more routers 110 monitor session 40 along a first path between client device 100 and service instance 104 using one or more session establishment metrics of session 40. The first path includes, for example, routers 110A, 110D, and 110E-110I. Client device 100 may attempt to establish session 40 with service instance 104 to access a network service instantiated by service instance 104. In this example, session 40 includes a forward flow initiated from client device 100 and destined for service instance 104, and a reverse flow initiated from service instance 104 and destined for client device 100. In addition, router 110 transmits session 40 via the first path that traverses routers 110A, 110D, and 110E-110I. After establishing session 40, router 110 may forward traffic along the forward path and the reverse path between client device 100 and service instance 104. To establish session 40, router 110 may use a communication session protocol, such as TCP, TLS, UDP, or ICMP.
[0058] In some examples, router 110A is configured to perform session-based routing for session 40 between client device 100 and service instance 104. For example, router 110A modifies a first packet of at least one of a forward packet flow and a reverse packet flow of session 40 to include a header that includes a source address of router 110A along a first path and a destination address of router 110D, as described above, and a portion of metadata that specifies a session identifier for session 40. For session 40, router 110D modifies a first packet to include a header that includes a source address of router 110D along a first path and a destination address of router 110E, and a portion of metadata that specifies a session identifier for session 40, and so on.
[0059] In some examples, depending on session performance requirements (e.g., SLA requirements), session 40 may fail to establish, session 40 may initially be established but cease to be established, or session 40 may perform poorly. This may occur even in the case where router 110A is unable to identify a problem with its peer network devices (e.g., links 16A, 16B and interfaces of CE device 102A and router 110D and router 110 are functioning properly).
[0060] As an illustration where session 40 is a TLS session, client device 100 may attempt to establish TLS session 40 with service instance 104. Service instance 104 may successfully complete the key exchange phase and the server parameter phase of the TLS handshake, but may be unable to complete the authentication phase of the TLS handshake due to instability of link 16D between routers 110D and 110E. Thus, even though router 110A is unable to identify a problem at the link, network, or transport level (e.g., OSI reference model layer 2, 3, or 4) with its peer network devices (e.g., links 16A, 16B, and interfaces of CE device 102A and router 110D and router 110 are functioning properly), session 40 between client device 100 and service instance 104 may not be established. Typically, routers may not be able to detect problems at the session level (e.g., OSI reference model layer 5), and therefore may not be able to reroute network traffic at the session level where the link and interface to the next hop are functioning properly. Furthermore, rerouting traffic at Layer 2, 3, or 4, such as by terminating path 16B to router 110D, may disrupt other sessions that share path 16B (or the same interface of router 110A) with session 40 but remain operational.
[0061] According to the techniques of this disclosure, router 110A generates one or more session establishment metrics for session 40. Router 110A obtains the session establishment metrics and uses the metrics to determine whether session 40 does not meet session performance requirements. In addition, router 110A may use the session metrics and the session performance requirements to determine whether to switch network traffic for session 40 between client device 100 and service instance 104 from a first path to a second path in order to ensure that the session performance requirements are met without disrupting other operable sessions that share the same interface or path as poorly performing session 40.
[0062] For example, the router 110A obtains session establishment metrics for the session 40 between the client device 100 and the service instance 104. The session establishment metrics describe data related to the successful or unsuccessful establishment of the session 40. The metrics may describe, for example, data related to the successful or unsuccessful establishment of the session 40. For example, the session establishment metrics may include the time it takes to establish the session 40, the number of times the session 40 is successfully established, the number of times the session 40 fails to be established due to a timeout, the number of times the session 40 fails to be established due to an unreachable destination, the number of times the session 40 is closed before the TCP session is established, or the number of times the session 40 is closed before the TLS session is established, etc. In some examples, the session establishment metrics include metrics on a sliding time window, the length of the sliding window being configurable by an administrator. For example, the router 110A may monitor the status of the session 40 to determine whether a TCP or TLS session handshake is completed, or whether the first return packet of the return flow is sent for a UDP or ICMP session. The router 110I may derive the session establishment metrics by monitoring the performance and / or status of the session 40 before, during, or after establishment, as described in more detail below. In some examples, router 110A obtains session establishment metrics for multiple sessions between client device 100 and service instance 104. Figure 2 Additional description regarding the status of monitoring session 40 is provided.
[0063] In some examples, router 110A may receive session performance requirements for session 40. In some examples, the session performance requirements may be one or more SLA requirements for session 40. In some examples, the one or more session performance requirements specify one or more of: a maximum time allowed to establish a session; a minimum number of predetermined attempts to establish a session for a session to be successfully established; a maximum number of times a session may fail to be established due to a timeout within a predetermined time; a maximum number of times a session may fail to be established due to a destination unreachable within a predetermined time; a maximum number of times a session may be closed before a TCP session is established within a predetermined time; or a maximum number of times a session may be closed before a TLS session is established within a predetermined time, and the like.
[0064] Router 110A compares the session establishment metric for session 40 with the session performance requirement for session 40. In response to determining that the metric does not satisfy the session performance requirement for session 40, router 110A selects a second path including routers 110A, 110C, and 110E-110I for forwarding network traffic for session 40 between the client device and the network service instance (at Figure 1In some examples where session 40 is successfully established but does not meet the SLA requirements, router 110A may continue to use the first path to forward network traffic for session 40 between client device 100 and network service instance 104 before transferring session 40 as session 40' to the second path. After switching to use of the second path, router 110A forwards network traffic for session 40' between client device 100 and network service instance 104B.
[0065] In some examples, router 110A is configured to perform session-based routing for session 40' between client device 100 and service instance 104. For example, router 110A modifies a second packet of at least one of the forward packet flow and the reverse packet flow of session 40' to include a header and a portion of metadata specifying a session identifier of session 40', the header including a source address of router 110A along the second path and a destination address of router 110D, as described above. For session 40', router 110C modifies a second packet to include a header and a portion of metadata specifying a session identifier of session 40', the header including a source address of router 110C along the second path and a destination address of router 110E, and so on.
[0066] like Figure 1 As shown in the example of , a single service instance 104 is hosted by server 103. Figure 1 In other examples not shown in FIG, each of the plurality of servers 103 may host multiple service instances of the same or different service types. In some examples, at least one of the forward path, the reverse path, or the interface of the router 110 associated with the first path traversed by the session 40 is different from at least one of the forward path, the reverse path, or the interface of the router 110 associated with the second path traversed by the session 40′.
[0067] exist Figure 1 In the example of the present disclosure, the ingress router 110A generates session establishment metrics based on such session establishment metrics and performs traffic engineering, as described above. However, in other examples, other routers, such as intermediate routers 110D-110H or egress router 110I, can additionally or alternatively generate session establishment metrics and perform traffic engineering and path selection based on the session establishment metrics according to the techniques of the present disclosure.
[0068] In some examples, router 110A removes the first path of the network traffic for transmission session 40 from a session load balancer that load balances the customer traffic associated with the network service to different paths. For example, the session load balancer may include multiple paths between ingress network device 110A and egress network device 110I. After receiving a request from a client to provide the client with access to the network service instantiated by service instance 104, the session load balancer selects an available path through (multiple) service provider networks 150 to connect client device 100 to service instance 104. By removing the first path from the session load balancer, router 110A can avoid assigning client device 100 to a path that does not meet the SLA requirements of session 40. In some examples, router 110A can use session establishment metrics to select one or more sessions, detect black-holing of traffic, determine that a session does not meet SLA requirements, or load balance customer traffic associated with the network service across different sessions.
[0069] The techniques of the present disclosure may enable router 110A to monitor the state of session 40 and generate metrics related to the establishment of session 40. Unlike other routers that may only be able to perform path selection and routing at the link, network, or transport level (e.g., OSI reference model layer 2, 3, or 4), router 110A may use such metrics to perform path selection and routing at the session level (e.g., OSI reference model layer 5). As a result, router 110A may provide more efficient and fine-grained routing of customer traffic within network system 2.
[0070] In addition, router 110A can use session establishment metrics to determine whether session 40 meets SLA requirements, and in response, select a different path or interface for transmitting network traffic associated with session 40 (e.g., session 40') to ensure compliance with the SLA. Therefore, even in the case where router 110A cannot detect problems with interfaces or paths at the link, network, or transport level (e.g., OSI reference model layer 2, 3, or 4), router 110A can detect network problems at the session level (e.g., OSI reference model layer 5) and perform actions to ensure compliance with session-level SLA requirements.
[0071] Figure 2 is a block diagram illustrating an exemplary router 110 according to the techniques of the present disclosure. In general, router 110 may be Figure 11. An example of one of the routers 110 of FIG. 1. In this example, the router 110 includes interface cards 226A-226N ("IFCs 226") that receive packets via inbound links 228A-228N ("inbound links 228") and send packets via outbound links 230A-230N ("outbound links 230"). The IFCs 226 are typically coupled to the links 228, 230 via a plurality of interface ports. The router 110 also includes a control unit 202 that determines a route for a received packet and forwards the packet accordingly via the IFCs 226.
[0072] Control unit 202 may include routing engine 204 and packet forwarding engine 222. Routing engine 204 serves as a control plane for router 110 and includes an operating system that provides a multi-tasking operating environment for executing multiple concurrent processes. Routing engine 204 is coupled to other routers (e.g., Figure 1 110) to establish and maintain a computer network, such as Figure 1 A computer network system 2 for transmitting network traffic between one or more client devices. A routing protocol daemon (RPD) 208 of a routing engine 204 executes software instructions to implement one or more control plane network protocols 212. For example, the protocols 212 may include one or more routing protocols, such as a border gateway protocol (BGP) 220 for exchanging routing information with other routing devices and for updating a routing information base (RIB) 206, a multi-protocol label switching (MPLS) protocol 214, and an Internet group management protocol (IGMP) 221. The protocols 212 may also include one or more communication protocols, such as TCP, UDP, TLS, or ICMP.
[0073] RIB 206 may describe the topology of the computer network in which router 110 resides, and may also include routes through shared trees in the computer network. RIB 206 describes the various routes within the computer network and the appropriate next hop for each route, i.e., the adjacent routing devices along each route. Routing engine 204 analyzes the information stored in RIB 206 and generates forwarding information for forwarding engine 222, which is stored in forwarding information base (FIB) 224. For example, FIB 224 may associate a network destination with a specific next hop and a corresponding IFC 226 and a physical output port of an output link 230. FIB 224 may be a radix tree, a series of tables, a complex database, a linked list, a radix tree, a database, a flat file, or various other data structures programmed into a dedicated forwarding chip.
[0074] FIB 224 may also include a lookup structure. Given a keyword such as an address, the lookup structure may provide one or more values. In some examples, the one or more values may be one or more next hops. The next hop may be implemented as a microcode that performs one or more operations when executed. One or more next hops may be "linked" so that a set of linked next hops performs a set of operations for corresponding different next hops when executed. Examples of such operations may include applying one or more services to a packet, discarding a packet, and / or forwarding a packet using an interface and / or an interface identified by one or more next hops.
[0075] Session table 235 stores information for identifying a session. For example, service table 232 includes one or more entries that specify a session identifier. In some examples, the session identifier includes one or more of a source address, a source port, a destination address, a destination port, or a protocol associated with a forward flow and / or a reverse flow of the session. As described above, when routing engine 204 receives a request initiated from client device 100 and destined for Figure 1 When routing engine 204 receives a packet from a forward packet flow of server 103, routing engine 204 determines whether the packet belongs to a new session (e.g., is the "first" packet or the "lead" packet of session 40). To determine whether the packet belongs to a new session, routing engine 204 determines whether session table 235 includes an entry corresponding to the source address, source port, destination address, destination port, and protocol of the first packet. If an entry exists, the session is not a new session. If no entry exists, the session is new, and routing engine 204 generates a session identifier for the session and stores the session identifier in session table 235. Thereafter, routing engine 204 can use the session identifier of the session stored in session table 235 to identify subsequent packets as belonging to the same session.
[0076] The service table 232 stores information that the routing engine 204 can use to identify the service associated with the session. For example, the service table 232 includes one or more entries that specify a service identifier and one or more of a source address, source port, destination address, destination port, or protocol associated with the service. In some examples, the routing engine 204 may query the service table 232 using one or more of the source address, source port, destination address, destination port, or protocol of the session of the received packet to determine the service associated with the session. For example, the routing engine 204 may determine the service identifier based on the correspondence between the source address, source port, destination address, destination port, or protocol in the service table 232 and the source address, source port, destination address, destination port, or protocol specified by the session identifier. The routing engine 204 retrieves one or more service policies 234 corresponding to the identified service based on the service associated with the packet. The service policy may include, for example, a path failover policy, a dynamic host configuration protocol (DHCP) tag policy, a traffic engineering policy, a priority of a network service associated with the session, and the like. The routing engine 204 applies one or more service policies 234 corresponding to the service associated with the packet to the packet.
[0077] According to the technology of the present disclosure, routing engine 204 generates Figure 1 The client device 100 and Figure 1 The routing engine 204 may use the session establishment metric 236 to select one or more sessions, detect black-holing of services, determine that a session does not meet SLA requirements, load balance customer services associated with network services across different paths, or perform path selection, etc.
[0078] For example, routing engine 204 receives a request for a connection between client device 100 and network service instance 104. Figure 1 The session performance requirements 238 of the session 40 may include one or more SLA requirements for the session 40. In some examples, the routing engine 204 receives the session performance requirements 238 from an administrator or a coordination device (e.g., a software defined network (SDN) controller).
[0079] In some examples, one or more session performance requirements specify one or more of the following: the maximum time allowed to establish a session; the minimum number of predetermined attempts to establish a session, the minimum number of times a session must be successfully established; the maximum number of times a session may not be established due to a timeout within the predetermined time; the maximum number of times a session may not be established due to an unreachable destination within the predetermined time; the maximum number of times a session may be closed before a TCP session is established within the predetermined time; or the maximum number of times a session may be closed before a TLS session is established within the predetermined time, and the like.
[0080] The routing engine 204 forwards the network traffic associated with the session 40 between the client device 100 and the network service instance 104 along the first path via the IFC 226A. Examples of sessions include TCP sessions, TLS sessions, UDP sessions, ICMP sessions, etc. The routing engine 204 obtains the metrics 236 of the establishment of the session 40. In some examples, the session state monitor 242 of the routing engine 204 monitors the state of the session 40 to determine whether the session 40 is successfully established. For example, the session state monitor 242 can monitor the state of the session 40 to determine whether the TCP or TLS session handshake is completed, or whether the first return packet of the return flow is sent for the UDP or ICMP session. In some examples, the routing engine 204 can derive the session establishment metrics by monitoring the performance and / or state of the session 40 before, during, or after establishment via the session state monitor 242.
[0081] These metrics may describe, for example, data related to the successful or unsuccessful establishment of session 40, and / or the performance of the session (e.g., latency, jitter, packet loss, etc.). For example, the session establishment metrics may include the time it takes to establish session 40, the number of times session 40 is successfully established, the number of times session 40 fails to be established due to a timeout, the number of times session 40 fails to be established due to an unreachable destination, the number of times session 40 is closed before a TCP session is established, or the number of times session 40 is closed before a TLS session is established, etc. In some examples, the session establishment metrics include metrics over a sliding time window, the length of which may be configurable by an administrator.
[0082] A key indicator of service instance performance is the time required to establish a TCP session between, for example, a client device 100 and a server 103 hosting a service instance 104. This session establishment metric is effectively the time required for a client device 100 or service instance 104 to receive the first data packet after the session is established. This metric can provide more useful information for routing decisions than packet transmission rate because the time required to establish a TCP session is both directional and end-to-end. Importantly, routing engine 204 can use this information as a measure of SLA compliance to influence routing engine 204's path selection.
[0083] The routing engine 204 creates and collects session establishment metrics on a per-service, per-interface, per-destination, and / or per-business-class basis. This level of granularity provides more accurate information about how the network processing and performance of the routing engine 204 affect application behavior. In some examples, the routing engine 204 collects session establishment metrics in protocol-based buckets such as TCP, UDP, ICMP, and TLS. As described above, each protocol determines for itself what qualifications need to be met for a session to become established. Next, the routing engine 204 applies protocol-specific and / or application-specific processing to each of these types of sessions, which are considered to be established.
[0084] According to the technology of the present disclosure, the session state monitor 242 of the routing engine 204 monitors the state of each session according to the protocol of the session. For example, the session state monitor 242 can determine the state of each session according to the state machine of the relevant protocol to determine whether the session has been established. The routing engine 204 generates session establishment metrics based on various data related to session establishment (or session establishment failure).
[0085] For example, as described above, in order to establish a TCP session so that data can be exchanged according to TCP, the client device 100 and the service instance 104 perform, for example, a three-way TCP handshake. The client device 100 sends a first packet (transmitted by the router 110) to the service instance 104, the first packet including a "SYN" flag. The service instance 104 responds to the client device 100 by using a second packet (transmitted by the router 110) including a SYN-ACK flag to confirm the receipt of the first packet. The client device 100 responds to the service instance 104 by using a third packet including an "ACK" flag to confirm the receipt of the second packet. After sending the third packet, the TCP session is established so that the client device 100 and the service instance 104 can exchange data with each other via the TCP session. Further according to TCP, in response to each packet sent from the client device 100 to the service instance 104, the service instance 104 responds with an acknowledgment packet (and vice versa). The session state monitor 242 monitors the state of the TCP handshake performed by the client device 100 and the service instance 104 to monitor the progress of the TCP handshake. After session state monitor 242 determines that client device 100 and service instance 104 have completed the TCP handshake for the session, session state monitor 242 determines that the TCP session is established when session state monitor 242 detects an acknowledgment of a first packet containing a data payload from, for example, one of client device 100 and service instance 104. The time required to detect an acknowledgment of the first packet containing a data payload after client device 100 and service instance 104 have completed the TCP handshake for the session is referred to herein as the "time to first data packet" for the TCP session.
[0086] In some examples, the session state monitor 242 models the state machine of the TCP protocol to monitor the establishment progress of the TCP session. In some examples, the session state monitor 242 determines one or more of the following: the time to the first data packet of the TCP session, the minimum time to reach the established state of the TCP session, the maximum time to reach the established state of the TCP session, the average time to reach the established state of the TCP session, the count of the number of TCP sessions reaching the established state, the count of the number of TCP sessions that failed to be established due to timeout, the count of the number of TCP sessions that failed to be established due to unreachable destination, or the count of the number of TCP sessions that were closed before being established.
[0087] As another example, in order to establish a TLS session so that data can be exchanged according to TLS, the client device 100 and the service instance 104 perform a three-way TLS handshake, including a key exchange phase, a server parameter phase, and an authentication phase. The session state monitor 242 monitors the state of the TLS handshake performed by the client device 100 and the service instance 104 to monitor the progress of the TLS handshake. After the session state monitor 242 determines that the client device 100 and the service instance 104 have completed the TLS handshake for the session, when the session state monitor 242 detects an acknowledgement of a first packet containing a data payload from, for example, one of the client device 100 and the service instance 104, the session state monitor 242 determines that the TLS session is established (e.g., "time to first data packet"). After the client device 100 and the service instance 104 have completed the TLS handshake for the session, the time required to detect an acknowledgement of the first packet containing a data payload is referred to herein as the "time to first data packet" for the TLS session.
[0088] In some examples, session state monitor 242 models the state machine of the TLS protocol to monitor the establishment progress of the TLS session. In some examples, session state monitor 242 determines one or more of the following: time to first data packet of the TLS session, minimum time to reach the established state of the TLS session, maximum time to reach the established state of the TLS session, average time to reach the established state of the TLS session, count of the number of TLS sessions reaching the established state, count of the number of TLS sessions that failed to be established due to timeout, count of the number of TLS sessions that failed to be established due to destination unreachable, or count of the number of TLS sessions closed before being established.
[0089] As another example, for a UDP session between a client device 100 and a service instance 104, the session state monitor 242 identifies the first UDP packet of the session that originates from the client device 100 and is destined for the service instance 104. The session state monitor 242 may deem the UDP session established in response to detecting a packet for the session that is sent along a reverse path (e.g., originates from the service instance 104 and is destined for the client device 100). The presence of traffic along the reverse path means that the service instance 104 successfully received and responded to the first UDP packet from the client device 100.
[0090] In some examples, the session state monitor 242 models the state machine of the UDP protocol to monitor the establishment progress of the UDP session. In some examples, the session state monitor 242 determines one or more of the following: the time to the first data packet of the UDP session, the minimum time to reach the established state of the UDP session, the maximum time to reach the established state of the UDP session, the average time to reach the established state of the UDP session, the count of the number of UDP sessions that reach the established state, the count of the number of UDP sessions that fail to be established due to timeout, or the count of the number of UDP sessions that fail to be established due to destination unreachable.
[0091] As another example, for an ICMP session between client device 100 and service instance 104, session state monitor 242 identifies a first ICMP packet of the session that originates from client device 100 and is destined for service instance 104. Session state monitor 242 may deem the ICMP session established in response to detecting a packet for the session that is sent along a reverse path (e.g., originates from service instance 104 and is destined for client device 100). The presence of traffic along the reverse path means that service instance 104 successfully received and responded to the first ICMP packet from client device 100.
[0092] In some examples, session state monitor 242 models the state machine of the ICMP protocol to monitor the establishment progress of the ICMP session. In some examples, session state monitor 242 determines one or more of the following: the time to the first data packet of the ICMP session, the minimum time to reach the established state of the ICMP session, the maximum time to reach the established state of the ICMP session, the average time to reach the established state of the ICMP session, the count of the number of ICMP sessions that reach the established state, the count of the number of ICMP sessions that fail to be established due to timeout, or the count of the number of ICMP sessions that fail to be established due to unreachable destination.
[0093] In some examples, the session establishment metrics generated by the routing engine 204 include the time to the first data packet of the session. For example, for a TCP session, the metric specifies the time required for the client device 100 or the service instance 104 to receive an acknowledgment of the first data packet after the TCP handshake is completed. As another example, for a TLS session, the metric specifies the time required for the client device 100 or the service instance 104 to receive an acknowledgment of the first data packet after the TLS handshake is completed. For a UDP session, the metric specifies the time required for the client device 100 or the service instance 104 to receive the first data packet along the return path of the UDP session. For an ICMP session, the metric specifies the time required for the client device 100 or the service instance 104 to receive the first data packet along the return path of the ICMP session.
[0094] In some examples, the session establishment metrics generated by routing engine 204 include the time to establish a session. The metrics may include the minimum time to establish a session, the maximum time to establish a session, and the average time to establish a session. As described above, the time from the start of a session to the time the session reaches the established state is defined by the protocol. In some examples, for a TLS session, the time to establish a session is calculated from the TCP establishment start time rather than from the session start time.
[0095] An example of a session establishment metric generated by routing engine 204 and specifying the time at which a session was established is as follows:
[0096] admin@t116-dut1.t116#display statistics highway destination-reachability tcp establishment time
[0097] 2020-03-31 Tuesday 20:33:26 UTC
[0098] Retrieving statistics...
[0099] Build Time
[0100]
[0101]
[0102] Completed in 0.02 seconds.
[0103] An example of a session establishment metric generated by routing engine 204 and specifying a maximum time to establish a session is as follows:
[0104] admin@t116-dut1.t116#show statistics highway destination-reachability tcp establishment time maximum value 2020-03-31 Tue 20:39:12 UTC
[0105] Retrieving statistics...
[0106] Maximum setup time
[0107]
[0108] Completed in 0.02 seconds.
[0109] An example of a session establishment metric generated by routing engine 204 and specifying a minimum time to establish a session is as follows:
[0110] admin@t116-dut1.t116#show statistics highway destination-reachability tcp establishment time minimum 2020-03-31 Tue 20:39:25 UTC
[0111] Retrieving statistics...
[0112] Minimum setup time
[0113]
[0114]
[0115] Completed in 0.02 seconds.
[0116] In some examples, the session establishment metrics generated by routing engine 204 include a number of sessions that have arrived at an established state. The number of sessions that have arrived at an established state is a count of the number of sessions that have arrived at an established state, as defined on a per-protocol basis as described above. In some examples, the number of sessions that have arrived at an established state is the number of sessions that have arrived at an established state over a predetermined amount of time.
[0117] An example of a session establishment metric generated by routing engine 204 and specifying the number of sessions reached is as follows:
[0118] admin@t116-dut1.t116#display statistics highway destination-reachability tcp established
[0119] 2020-03-31 Tuesday 20:38:29 UTC
[0120] Retrieving statistics...
[0121] Successfully established TCP session
[0122]
[0123] In some examples, the session establishment metric generated by routing engine 204 includes the number of sessions that timed out before establishment. The number of sessions that timed out before establishment is a count of the number of sessions that timed out without reaching establishment, as defined on a per-protocol basis as described above. In some examples, the number of sessions that timed out before establishment is the number of sessions that timed out before establishment over a predetermined amount of time. In some examples, the TLS bucket of the metric is incremented only when the TCP establishment state has been reached but before the TLS establishment state has been reached.
[0124] An example of a session establishment metric generated by routing engine 204 and specifying the number of sessions that timed out before being established is as follows:
[0125] admin@t116-dut1.t116#display statistics highway destination-reachability tcp pre-establishment timeout
[0126] 2020-03-31 Tuesday 20:40:21 UTC
[0127] Retrieving statistics...
[0128] TCP session timed out before establishment
[0129]
[0130] Completed in 0.02 seconds.
[0131] In some examples, the session establishment metrics generated by routing engine 204 include the number of sessions that failed to be established due to destination unreachable. The number of sessions that failed to be established due to destination unreachable is a count of the number of sessions that could not be completed due to destination unreachable. In some examples, routing engine 204 determines that the destination is unreachable in response to receiving an ICMP destination unreachable message for the session. In some examples, the number of sessions that timed out before establishment is the number of sessions that failed to be established due to destination unreachable over a predetermined amount of time.
[0132] In some examples, the metric may not apply across UDP, ICMP, TCP, TLS, so a specific protocol or application name for the metric may be specified. An example of a session establishment metric generated by routing engine 204 and specifying the number of TCP sessions that failed to be established due to destination unreachable is as follows:
[0133] admin@t116-dut1.t116#Show statistics highway destination-reachability tcp unreachable
[0134] 2020-03-31 Tuesday 20:41:06 UTC
[0135] Retrieving statistics...
[0136] TCP Unreachable
[0137]
[0138] Completed in 0.02 seconds.
[0139] In some examples, the session establishment metric generated by routing engine 204 includes the number of sessions closed before the TCP session is established. The metric may include the number of sessions closed by a reset or fin message before the session has completed the TCP handshake and the data has been acknowledged. This may occur due to server 103 responding to a SYN from client device 100 with a reset or proxy message that terminates a session that server 103 is unable to complete. In some examples, the number of sessions closed before the TCP session is established is the number of sessions closed before the TCP session is established over a predetermined amount of time.
[0140] An example of a session establishment metric generated by routing engine 204 and specifying the number of sessions closed before a TCP session is established is as follows:
[0141] admin@t116-dut1.t116#Show statistics highway destination-reachability TCP closed before establishment
[0142] 2020-03-31 Tuesday 20:41:56 UTC
[0143] Retrieving statistics...
[0144] TCP session closed before establishment
[0145]
[0146] Completed in 0.02 seconds.
[0147] In some examples, the session establishment metric generated by routing engine 204 includes the number of sessions closed before a TLS session is established. The metric may include the number of sessions closed by a reset or fin message after TCP is established but before the session has completed a TLS handshake and data has been acknowledged. In some examples, the number of sessions closed before a TLS session is established is the number of sessions closed before a TLS session is established over a predetermined amount of time.
[0148] An example of a session establishment metric generated by routing engine 204 and specifying the number of sessions closed before a TLS session is established is as follows:
[0149] admin@t116-dut1.t116#Show statistics highway destination-reachability close before tls establishment
[0150] 2020-03-31 Tuesday 20:42:30 UTC
[0151] Retrieving statistics...
[0152] TLS session closed before establishment
[0153]
[0154] Completed in 0.02 seconds.
[0155] In some examples, to begin the collection of service establishment metrics as described above, the administrator configures routing engine 204 with a service route configured to enable reachability detection. An example of such a service route that implements reachability detection is as follows:
[0156] Service Routing
[0157]
[0158] Next hop
[0159] Node Name Slice 1
[0160] Interface intf1
[0161] gateway-ip 1.1.1.2
[0162] In some examples, the administrator configures routing engine 204 to filter reachability based on destination prefix and traffic class. An example of such a configuration is shown below:
[0163] admin@t116-dut1.t116#Show statistics highway destination-reachability destination prefix
[0164] 192.168.56.51 Business Category Best Effort
[0165] 2020-03-31 Tuesday 20:44:47 UTC
[0166] Retrieving statistics...
[0167] Destination accessibility statistics
[0168]
[0169]
[0170] Completed in 0.03 seconds.
[0171] Routing engine 204 compares session establishment metric 236 for session 40 to session performance requirement 238 for session 40. In response to determining that session establishment metric 236 for session 40 does not satisfy session performance requirement 238 for session 40, routing engine 204 forwards network traffic associated with session 40 between client device 100 and network service instance 104 along a second path via IFC 226B as session 40′. In some examples where session 40 is successfully established but does not satisfy session performance requirement 238, routing engine 204 may continue to use IFC 226A to forward network traffic between client device 100 and network service instance 104 before switching to forwarding network traffic between client device 100 and network service instance 104 via IFC 226B.
[0172] In some examples, routing engine 204 may use session establishment metrics 236 for session 40 to determine whether latency of network traffic associated with session 40 exceeds session performance requirement 238, or whether black-holing of network traffic associated with session 40 is occurring. For example, if routing engine 204 determines that latency of network traffic associated with session 40 is high, routing engine 204 may maintain use of a first path for forwarding network traffic for session 40 even if session 40 exceeds session performance requirement 238. As another example, if routing engine 204 determines that black-holing of network traffic associated with session 40 is occurring, routing engine 204 may stop forwarding network traffic associated with session 40 on the first path, and switch to using a second path to forward network traffic associated with session 40′ between client device 100 and network service instance 104.
[0173] In some examples, routing engine 204 may use session establishment metrics 236 for session 40 to determine whether to include or exclude a path from session load balancer 240. Session load balancer 240 operates to load balance customer traffic associated with a network service across different paths of a plurality of paths, such as forwarding routes. Figure 1 The first path and the second path of the network traffic for the corresponding sessions 40 and 40' of the client device 100 can be evenly distributed across paths and interfaces by performing load balancing, thereby reducing the possibility that a particular session 40 or a particular router 110 may become over-utilized, thereby causing network congestion, or under-utilized, thereby allowing available network resources to go unused. For example, if the routing engine 204 determines that the session establishment metric 236 of the session 40 does not meet the session performance requirement 238 of the session 40, the routing engine 204 can determine that the session 40 is over-utilized. The routing engine 204 can remove the first path that forwards the network traffic associated with the session 40 from the session load balancer 240 to avoid forwarding the first path of the customer traffic, thereby reducing the possibility that the customer traffic may not meet the SLA requirements.
[0174] Figure 3A and 3B is a block diagram illustrating an example computer network system 300 for performing path selection based on session establishment metrics according to the techniques of the present disclosure. Figure 1 and Figure 2 describe Figure 3A and 3B For example, system 300 may be Figure 1 An example of system 2. Routers 110A, 110C, and 110D may be Figure 1 110A, 110C and 110D, or Figure 21. Router 110A includes IFCs 226A-226C (collectively, "IFCs 226").
[0175] exist Figure 3A-3B In the example of , server 103 hosts service instance 104A that instantiates a first network service. Server 103 also hosts service instance 104B that instantiates a second network service. In some examples, the first network service comprises an HTTP service over a TCP session accessed via port 80 of server 103. In some examples, the second network service comprises a TLS session accessed via port 443 of server 103.
[0176] Router 110A is connected to server 103 via a first path including link 316B, router 110D, and link 316D and a second path including link 316C, router 110C, and link 316E. In some examples, the first path includes a path across a broadband network. In some examples, the second path includes a path across a mobile network.
[0177] Session 340A includes a first forward packet flow along a first forward path (e.g., the first path includes link 316B, router 110D, and link 316D) and a first reverse packet flow along a first reverse path (e.g., link 316D, router 110D, and link 316B) between client device 100 and network service instance 104A hosted by server 103. Session 340B includes a second forward packet flow along the first path (e.g., link 316A, router 110A, link 316B, router 110D, and link 316D) and a second reverse packet flow along the reverse direction of the first path between client device 100 and network service instance 104B hosted by server 103. Both session 340A and session 340B are inbound via IFC 226A of router 110A and outbound via IFC 226B of router 110A.
[0178] Router 110A forwards network traffic for session 340A along a first path including link 316A, router 110A, link 326B, router 110D, and link 316D. In some examples, router 110A performs session-based routing for session 340A between client device 100 and network service instance 104A. For example, router 110A modifies a first packet of at least one of a forward packet flow and a reverse packet flow for session 340A to include a header including a source address of router 110A and a destination address of router 110D along the first path, and a portion of metadata specifying a session identifier for session 340A.
[0179] exist Figure 3A In the example of , router 110A receives one or more session performance requirements for session 340A. In some examples, the one or more session performance requirements include one or more SLA requirements. In some examples, the one or more session performance requirements specify one or more of the following: a maximum time allowed to establish session 340A; a minimum number of times required for session 340A to be successfully established for a predetermined number of attempts to establish session 340A; a maximum number of times session 340A may fail to be established due to a timeout at a predetermined time; a maximum number of times session 340A may fail to be established due to a destination unreachable at a predetermined time; a maximum number of times session 340A may be closed before a TCP session is established at a predetermined time; or a maximum number of times session 340A may be closed before a TLS session is established at a predetermined time, and the like.
[0180] The router 110A obtains one or more session establishment metrics for the session 340A. For example, the session establishment metrics may include, for example, the time it takes to establish the session 340A, the number of times the session 340A is successfully established, the number of times the session 340A fails to be established due to a timeout, the number of times the session 340A fails to be established due to a destination unreachable, the number of times the session 340A is closed before a TCP session is established, or the number of times the session 340A is closed before a TLS session is established, etc. The router 110A may derive the session establishment metrics by monitoring the performance and / or status of the first session before, during, or after establishment.
[0181] Router 110A determines that one or more session establishment metrics of session 340A do not satisfy one or more session performance requirements of session 340A. For example, router 110A may determine that the time elapsed to establish session 340A exceeds the maximum time allowed for establishing session 340A as set by the SLA requirements for session 340A. As another example, router 110A may determine that the number of times session 340A failed to establish due to timeouts exceeds the maximum number of times session 340A is allowed to be established due to timeouts over a predetermined time as set by the SLA requirements for session 340A.
[0182] In some examples, in response to determining that one or more session establishment metrics of session 340A do not satisfy one or more session performance requirements of session 340A, router 110A receives a session load balancer (e.g., Figure 2Session load balancer 240 of the embodiment of the present invention excludes the first path along which network traffic for session 340A is forwarded. For example, router 110A removes from session load balancer 240 the route that specifies that service instance 104 is reachable via the first path including link 316A, router 110A, link 316B, router 110D, and link 316D. Subsequently, when a session is established between client device 100 and service instance 104 of a first network service, session load balancer 240 may exclude the first path from a set of paths that router 110A may use to provide client device 100 with access to service instance 104A of server 103.
[0183] like Figure 3B As shown in the example of FIG. 1 , in response to determining that one or more session establishment metrics of session 340A do not satisfy one or more session performance requirements of session 340A, router 110A switches from forwarding network traffic associated with session 340A across a first path (e.g., link 316A, router 110A, link 316B, router 110D, and link 316D) to forwarding network traffic associated with session 340A across a second path (e.g., link 316A, router 110A, link 316C, router 110C, and link 316E) (in FIG. 1 ). Figure 3B 104A). Network traffic for session 340A' is inbound via IFC 226A of router 110A, but is outbound via IFC 226C. Router 110A switches from forwarding network traffic associated with session 340A along a first path to forwarding network traffic associated with session 340A' along a second path between client device 100 and network service instance 104A. In some examples, router 110A stops using the first path because one or more session performance requirements are not met.
[0184] In some examples, router 110A performs session-based routing for session 340A′ between client device 100 and network service instance 104A. For example, router 110A modifies a second packet of at least one of the forward packet flow and the reverse packet flow of session 340A to include a header including a source address of router 110A and a destination address of router 110C along the second path, and a portion of metadata specifying a session identifier of session 340A.
[0185] Router 110A also receives one or more session performance requirements for session 340B and one or more session establishment metrics for session 340B. Router 110A determines that the one or more session establishment metrics for session 340B satisfy the one or more session performance requirements for session 340B. Therefore, because session 340B satisfies the session performance requirements for session 340B, when router 110A switches from using the first path for network traffic for session 340A to using the second path for network traffic for session 340A', router 110A may avoid interrupting forwarding of network traffic associated with session 340B over the first path (e.g., by avoiding disabling IFC 226B or removing link 316B).
[0186] Thus, in the event that session 340A is performing poorly, the techniques of the present disclosure may enable router 110A to switch from using a first path forwarding session 340A to using a different path or interface (e.g., link 316C and / or IFC 226C) without having to tear down path 316B or deactivate IFC 226B associated with poorly performing session 340A. Thus, router 110A may select a different path for network traffic of poorly performing session 340A without adversely impacting session 340B, which performs in accordance with SLA requirements but shares link 316B with poorly performing session 340A and / or uses the same IFC 226B associated with poorly performing session 340A. Thus, router 110A may provide more granular and more efficient routing of customer traffic than other routers that may need to tear down paths or deactivate interfaces associated with poorly performing sessions.
[0187] Figure 4 is a flow chart illustrating an example operation according to the technology of the present disclosure. Specifically, Figure 4 An example of monitoring a session using session establishment metrics for a session is shown. Figure 3A-3B The router 110A is described as follows Figure 4 .However, Figure 4 The operations shown in Figure 1 Router 110 of system 2 or Figure 2 The session 340A includes a first forward packet flow along a first forward path and a first reverse packet flow along a first reverse path between the client device 100 and the network service instance 104 hosted by the server 103 .
[0188] exist Figure 4In the example of , router 110A receives one or more session performance requirements (402) for session 340A between client device 100 and network service instance 104 hosted by server 103. In some examples, the one or more session performance requirements include one or more SLA requirements. In some examples, the one or more session performance requirements specify one or more of the following: a maximum time allowed to establish session 340A; a minimum number of times required for session 340A to be successfully established for a predetermined number of attempts to establish session 340A; a maximum number of times session 340A may fail to be established due to a timeout at a predetermined time; a maximum number of times session 340A may fail to be established due to a destination unreachable at a predetermined time; a maximum number of times session 340A may be closed before a TCP session is established at a predetermined time; or a maximum number of times session 340A may be closed before a TLS session is established at a predetermined time, and the like.
[0189] Router 110A forwards network traffic for session 340A along a first path including link 316A, router 110A, link 326B, router 110D, and link 316D (404). In some examples, router 110A performs session-based routing for session 340A between client device 100 and network service instance 104A. For example, router 110A modifies a first packet of at least one of a forward packet flow and a reverse packet flow for session 340A to include a header including a source address of router 110A and a destination address of router 110D along the first path, and a portion of metadata specifying a session identifier for session 340A.
[0190] Router 110A obtains one or more session establishment metrics for session 340A (406). For example, the session establishment metrics may include, for example, the time it takes to establish session 340A, the number of times session 340A is successfully established, the number of times session 340A fails to be established due to a timeout, the number of times session 340A fails to be established due to a destination unreachable, the number of times session 340A is closed before a TCP session is established, or the number of times session 340A is closed before a TLS session is established, etc. Router 110A may derive the session establishment metrics by monitoring the performance and / or state of the first session before, during, or after establishment.
[0191] Router 110A determines that one or more session establishment metrics of session 340A do not satisfy one or more session performance requirements of session 340A (408). For example, router 110A may determine that the time elapsed to establish session 340A exceeds the maximum time allowed for establishing session 340A as set by the SLA requirements for session 340A. As another example, router 110A may determine that the number of times session 340A failed to establish due to timeouts exceeds the maximum number of times session 340A is allowed to be established due to timeouts within a predetermined time as set by the SLA requirements for session 340A.
[0192] In response to determining that one or more session establishment metrics for session 340A do not satisfy one or more session performance requirements for session 340A, router 110 forwards network traffic for session 340A along a second path including link 316A, router 110A, link 326C, router 110C, and link 316E (at Figure 3A-3B 340A′)(410). In some examples, router 110A performs session-based routing for session 340A′ between client device 100 and network service instance 104A. For example, router 110A modifies a second packet of at least one of the forward packet flow and the reverse packet flow of session 340A to include a header including a source address of router 110A and a destination address of router 110C along the second path, and a portion of metadata specifying a session identifier of session 340A.
[0193] In some examples, in response to determining that one or more session establishment metrics of session 340A do not satisfy one or more session performance requirements of session 340A, router 110A optionally receives a session load balancer (e.g., Figure 2 For example, router 110A removes the first path from session load balancer 240. Subsequently, when selecting a path for a session between client device 100 and service instance 104, session load balancer 240 may exclude the first path including link 316A, router 110A, link 326B, router 110D, and link 316D from a set of paths that router 110A may use to provide access to network services to client device 100 via service instance 104.
[0194] The techniques described in this disclosure may be implemented, at least in part, in hardware, software, firmware, or any combination thereof. For example, various aspects of the described techniques may be implemented in one or more processors, including one or more microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or any other equivalent integrated or discrete logic circuits, and any combination of these components. The term "processor" or "processing circuitry" may generally refer to any of the aforementioned logic circuits, alone or in combination with other logic circuits, or any other equivalent circuits. A control unit including hardware may also perform one or more techniques of the present disclosure.
[0195] Such hardware, software, and firmware may be implemented within the same device or within separate devices to support the various operations and functions described in this disclosure. In addition, any described units, modules, or components may be implemented together or separately as discrete but interoperable logic devices. Showing different features as modules or units is intended to highlight different functional aspects and does not necessarily mean that these modules or units must be implemented by separate hardware or software components. On the contrary, the functions associated with one or more modules or units may be performed by separate hardware or software components, or integrated within common or separate hardware or software components.
[0196] The techniques described in the present disclosure may also be implemented or encoded in a computer-readable medium (such as a computer-readable storage medium) containing instructions. The instructions embedded or encoded in the computer-readable storage medium may cause a programmable processor or other processor to perform the method, for example, when the instructions are executed. The computer-readable storage medium may include a random access memory (RAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a hard disk, a CD-ROM, a floppy disk, a cassette, a magnetic medium, an optical medium, or other computer-readable medium.
[0197] Various examples have been described. These and other examples are within the scope of the following claims.
Claims
1. A first router, configured as follows: forwarding network traffic for a session between a client device and a network service instance hosted by a server along a first path within a network, wherein a plurality of routers of the network connect the client device to the network service instance hosted by the server, the plurality of routers including the first router, and wherein the first router connects to the network service instance via the first path within the network and a second path within the network, the second path being different from the first path; and In response to determining that one or more metrics related to establishment of the session do not satisfy one or more session performance requirements for establishment of the session, forwarding the network traffic for the session between the client device and the network service instance along the second path.
