# US 2020/0272497 A1 · Configuring distributed forwarding for performing service chain operations

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2020/0272497 A1
- Document ID: US20200272497A1
- Status: Published application
- Kind: A1
- Application number: 16/445,016
- Filed: 2019-06-18
- Published: 2020-08-27
- Earliest claimed: 2019-02-22
- Assignees: VMware, Inc.
- Applicants: VMware, Inc.
- Inventors: Fenil Kavathia; Anuprem Chalvadi; Yang Ping; Akhila Naveen; Yong Feng; Kantesh Mundaragi; Rahul Mishra; Pierluigi Rolando; Jayant Jain; Raju Koganty
- Web page: https://patentgrep.com/patent/US20200272497A1

## CPC

- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 9/546: {Message passing systems or structures, e.g. queues}
- H04L 12/4633: {Interconnection of networks using encapsulation techniques, e.g. tunneling}
- H04L 41/0803: Configuration setting
- H04L 41/0816: the condition being an adaptation, e.g. in response to network events
- H04L 41/0893: Assignment of logical groups to network elements
- H04L 41/0895: Configuration of virtualised networks or elements, e.g. virtualised network function or OpenFlow elements
- H04L 41/40: using virtualisation of network functions or resources, e.g. SDN or NFV entities
- H04L 41/5003: Managing SLA; Interaction between SLA and QoS
- H04L 41/5054: Automatic deployment of services triggered by the service manager, e.g. service implementation by automatic configuration of network components
- H04L 45/26: {Route discovery packet}
- H04L 45/308: {Route determination based on user's profile, e.g. premium users}
- H04L 45/38: {Flow based routing}
- H04L 45/586: of virtual routers
- H04L 45/66: {Layer 2 routing, e.g. in Ethernet based MAN's}
- H04L 45/74: Address processing for routing
- H04L 45/745: Address table lookup; Address filtering
- H04L 47/125: by balancing the load, e.g. traffic engineering
- H04L 47/17: Interaction among intermediate nodes, e.g. hop by hop
- H04L 47/19: at layers above the network layer (network arrangements for networked applications for scheduling or organising the servicing of application requests H04L67/60)
- H04L 47/2425: for supporting services specification, e.g. SLA
- H04L 49/252: {Store and forward routing}
- H04L 49/3009: {Header conversion, routing tables or routing tags}
- H04L 61/2592: using tunnelling or encapsulation
- H04L 67/10: in which an application is distributed across nodes in the network (software deployment G06F8/60; multiprogramming arrangements G06F9/46)
- H04L 67/1001: for accessing one among a plurality of replicated servers
- H04L 67/101: based on network conditions
- H04L 67/30: Profiles
- H04L 67/51: Discovery or management thereof, e.g. service location protocol [SLP] or web services
- H04L 67/56: Provisioning of proxy services (store-and-forward switching systems in data switching networks H04L12/54)
- H04L 67/563: Data redirection of data network streams
- H04L 67/60: Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources (admission control or resource allocation H04L47/70)
- H04L 67/63: Routing a service request depending on the request content or context
- H04L 69/321: Interlayer communication protocols or service data unit [SDU] definitions; Interfaces between layers
- H04L 69/324: in the data link layer [OSI layer 2], e.g. HDLC
- H04L 69/325: in the network layer [OSI layer 3], e.g. X.25 (H04L69/16 takes precedence)
- G06F 2009/4557: {Distribution of virtual machine instances; Migration and load balancing}
- G06F 2009/45595: {Network integration; Enabling network access in virtual machine instances}
- H04L 41/0806: for initial configuration or provisioning, e.g. plug-and-play
- H04L 69/22: Parsing or analysis of headers
- H04L 2101/622: Layer-2 addresses, e.g. medium access control [MAC] addresses
- H04L 2212/00: Encapsulation of packets
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Some embodiments provide novel methods for performing services for machines operating in one or more datacenters. For instance, for a group of related guest machines (e.g., a group of tenant machines), some embodiments define two different forwarding planes: (1) a guest forwarding plane and (2) a service forwarding plane. The guest forwarding plane connects to the machines in the group and performs L2 and/or L3 forwarding for these machines. The service forwarding plane (1) connects to the service nodes that perform services on data messages sent to and from these machines, and (2) forwards these data messages to the service nodes. In some embodiments, the guest machines do not connect directly with the service forwarding plane. For instance, in some embodiments, each forwarding plane connects to a machine or service node through a port that receives data messages from, or supplies data messages to, the machine or service node. In such embodiments, the service forwarding plane does not have a port that directly receives data messages from, or supplies data messages to, any guest machine. Instead, in some such embodiments, data associated with a guest machine is routed to a port proxy module executing on the same host computer, and this other module has a service plane port. This port proxy module in some embodiments indirectly can connect more than one guest machine on the same host to the service plane (i.e., can serve as the port proxy module for more than one guest machine on the same host).

## Claims

### Claim 1

A method of specifying a sequence of services, the method comprising:
identifying, for a data message associated with a machine executing on a host computer, a plurality of service nodes to perform a plurality of service operations on the data message, the plurality of service nodes defining a service path in a network, the service path comprising the plurality of service nodes;
distributing, to each of a plurality of host computers that each executes at least one service node, at least one next-hop forwarding rule that comprises a network address of a next-hop service node in a service path, each host computer using each next-hop forwarding rule to retrieve the network address of a next-hop service node to forward the data message after a service node on the host computer performs a service operation on the data message.

### Claim 2 (depends on 1)

The method of claim 1, wherein
each next-hop forwarding rule further comprises a rule identifier that is specified by reference to a service path identifier (SPI) value that identifies the service path,
the rule identifier used at each service hop to match with a SPI value embedded in a header of the data message in order to match the next-hop forwarding rule to the data message and thereby to retrieve the next hop network address from the matching rule.

### Claim 3 (depends on 2)

The method of claim 2, wherein
the rule identifier of each rule is further specified by reference to a service index (SI) value, the SI value is embedded in the data message header and the SI value is adjusted in this header at each hop, and
the embedded SPI and SI values are used at each hop to match with the SPI and SI values of next-hop forwarding rules to identify a matching forwarding rule that specifies the next hop's network address.

### Claim 4 (depends on 1)

The method of claim 1, wherein
each next-hop forwarding rule is an exact match rule that has a rule identifier comprising a service path identifier (SPI) value that identifies the service path and a service index (SI) value that identifies a hop's service node location in the service path,
the rule identifier of a forwarding rule compared with SPI and SI values associated with a data message processed by a hop's service node to identify the matching forwarding rule, which then provides the network address for a next hop service node.

### Claim 5 (depends on 4)

The method of claim 4, wherein distributing the forwarding rules comprises distributing different forwarding rules for different service-node hops along the service path, the different forwarding rules specifying different SI values corresponding to different locations of the service nodes along the service path.

### Claim 6 (depends on 5)

The method of claim 5, wherein
each service node that executes on a host computer is a service machine,
a service proxy executes on each host computer for each service machine,
the service proxy for each hop's service machine examines the SPI/SI values of a plurality of next-hop forwarding rules stored for the service machine on the host computer to identify a next-hop forwarding rule that matches a data message, the next-hop forwarding rules for each service machine associated with a plurality of service paths that contain the service machine

### Claim 7 (depends on 5)

The method of claim 5, wherein the SPI/SI values are embedded in a data message header by a module executing on a first host computer that initially receives the data message for a machine executing on the first host computer, and the SI value is decremented at each hop after the service is performed by the service node of that hop.

### Claim 8 (depends on 7)

The method of claim 7, wherein the data messages are part of a data message flow, and the first host computer selects the service path for the data message flow.

### Claim 9 (depends on 1)

The method of claim 1 further comprising:
identifying a service chain that specifies a sequences of service operations for the data messages;
identifying, for the identified service chain, a set of one or more service paths, each service path specifying a different set of service nodes for performing the service operations, and
generating and distributing next-hop forwarding rules for each service node along each service path.

### Claim 10 (depends on 9)

The method of claim 9, wherein at least two different service paths include at least one service node in common.

### Claim 11

A non-transitory machine readable medium storing a program for execution by at least one processing unit and for specifying a sequence of services, the program comprising sets of instructions for:
identifying, for a data message associated with a machine executing on a host computer, a plurality of service nodes to perform a plurality of service operations on the data message, the plurality of service nodes defining a service path in a network, the service path comprising the plurality of service nodes;
distributing, to each of a plurality of host computers that each executes at least one service node, at least one next-hop forwarding rule that comprises a network address of a next-hop service node in a service path, each host computer using each next-hop forwarding rule to retrieve the network address of a next-hop service node to forward the data message after a service node on the host computer performs a service operation on the data message.

### Claim 12 (depends on 11)

The non-transitory machine readable medium of claim 11, wherein
each next-hop forwarding rule further comprises a rule identifier that is specified by reference to a service path identifier (SPI) value that identifies the service path,
the rule identifier used at each service hop to match with a SPI value embedded in a header of the data message in order to match the next-hop forwarding rule to the data message and thereby to retrieve the next hop network address from the matching rule.

### Claim 13 (depends on 12)

The non-transitory machine readable medium of claim 12, wherein
the rule identifier of each rule is further specified by reference to a service index (SI) value,
the SI value is embedded in the data message header and the SI value is adjusted in this header at each hop, and
the embedded SPI and SI values are used at each hop to match with the SPI and SI values of next-hop forwarding rules to identify a matching forwarding rule that specifies the next hop's network address.

### Claim 14 (depends on 11)

The non-transitory machine readable medium of claim 11, wherein
each next-hop forwarding rule is an exact match rule that has a rule identifier comprising a service path identifier (SPI) value that identifies the service path and a service index (SI) value that identifies a hop's service node location in the service path,
the rule identifier of a forwarding rule compared with SPI and SI values associated with a data message processed by a hop's service node to identify the matching forwarding rule, which then provides the network address for a next hop service node.

### Claim 15 (depends on 14)

The non-transitory machine readable medium of claim 14, wherein the set of instructions for distributing the forwarding rules comprises a set of instructions for distributing different forwarding rules for different service-node hops along the service path, the different forwarding rules specifying different SI values corresponding to different locations of the service nodes along the service path.

### Claim 16 (depends on 15)

The non-transitory machine readable medium of claim 15, wherein
each service node that executes on a host computer is a service machine,
a service proxy executes on each host computer for each service machine,
the service proxy for each hop's service machine examines the SPI/SI values of a plurality of next-hop forwarding rules stored for the service machine on the host computer to identify a next-hop forwarding rule that matches a data message, the next-hop forwarding rules for each service machine associated with a plurality of service paths that contain the service machine

### Claim 17 (depends on 15)

The non-transitory machine readable medium of claim 15, wherein the SPI/SI values are embedded in a data message header by a module executing on a first host computer that initially receives the data message for a machine executing on the first host computer, and the SI value is decremented at each hop after the service is performed by the service node of that hop.

### Claim 18 (depends on 17)

The non-transitory machine readable medium of claim 17, wherein the data messages are part of a data message flow, and the first host computer selects the service path for the data message flow.

### Claim 19 (depends on 11)

The non-transitory machine readable medium of claim 11, wherein the program further comprises sets of instructions for:
identifying a service chain that specifies a sequences of service operations for the data messages;
identifying, for the identified service chain, a set of one or more service paths, each service path specifying a different set of service nodes for performing the service operations, and
generating and distributing next-hop forwarding rules for each service node along each service path.

### Claim 20 (depends on 19)

The non-transitory machine readable medium of claim 19, wherein at least two different service paths include at least one service node in common.
