Policy enforcement by top-of-rack switch for bare metal servers

By using the mapping of source identifiers and destination addresses in the virtual data center, TCAM entries are reduced, the problem of high cost and complexity of bare metal server policy implementation is solved, and efficient and flexible policy management is achieved.

CN118764430APending Publication Date: 2024-10-11HEWLETT PACKARD ENTERPRISE DEV LP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410922493.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2021-06-30
Filing Date
2022-05-20
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing Technology In virtual data centers, the policy implementation of bare metal servers is costly and complex, especially because Ternary Content Addressable Memory (TCAM) consumes a large amount of resources and is difficult to adapt to policy management in multiple environments.

Method used

Reduces the number of TCAM entries by storing a mapping of source identifiers (source labels) to destination addresses instead of hardware source port to policy mappings, leveraging Virtual Extensible LAN (VXLAN) headers to add source identifiers to packets, And determine the policy based on the source identifier and destination address to apply to the group.

Benefits of technology

It significantly reduces TCAM consumption, reduces equipment costs and physical hardware size, improves the efficiency and flexibility of policy implementation, and adapts to policy management in a variety of environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764430A_ABST
    Figure CN118764430A_ABST
Patent Text Reader

Abstract

The invention relates to a method and device for applying policies to packets. A plurality of switches may be arranged according to a backbone and leaf topology, where each backbone switch is connected to all leaf switches. A leaf switch includes a memory configured to store a plurality of policies, each policy of the plurality of policies being associated with a respective source identifier value and a respective destination address; a network interface communicatively coupled to one of the backbone switches; and a processor implemented in the circuitry and configured to: receive a packet from the backbone switch via the network interface, the packet encapsulated with a virtual extensible local area network (VXLAN) header; extracting a source identifier value from the VXLAN header; determining a destination address for the packet; determining a policy of a plurality of policies to be applied to the packet according to the source identifier value and the destination address; and applying the policy to the packet.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Description of divisional application

[0002] This application is a divisional application of the invention patent application with the application date of May 20, 2022, application number 202210556987.X, and invention name “Policy implementation for bare metal servers by top-of-rack switches”. Technical Field

[0003] The present disclosure relates to computer networks and, more particularly, to policy management for computer networks. Background Art

[0004] Virtual data centers are becoming a core foundation of modern information technology (IT) infrastructure. Specifically, modern data centers have widely utilized virtual environments, in which virtual hosts, such as virtual machines or containers, are deployed and executed on underlying computing platforms of physical computing devices.

[0005] Virtualization with large-scale data centers can provide several advantages. One advantage is that virtualization can significantly improve efficiency. With the advent of multi-core microprocessor architectures with a large number of cores per physical CPU, the underlying physical computing devices (i.e., servers) have become increasingly powerful, and virtualization has become easier and more efficient. The second advantage is that virtualization provides significant control over the infrastructure. As physical computing resources become fungible, such as in cloud-based computing environments, the configuration and management of computing infrastructure becomes easier. As a result, enterprise IT staff often prefer virtual computing clusters in the data center because of their management advantages as well as the efficiency and higher return on investment (ROI) provided by virtualization. Summary of the invention

[0006] In general, the present disclosure describes techniques for determining policies to apply to packets received by an egress leaf switch in a set of switches arranged according to, for example, a trunk and leaf topology. The switches of the trunk and leaf topology may also be referred to as chassis switches (spine switches) and top-of-rack (TOR) switches (leaf switches). The leaf switches of this topology may store data in a ternary content addressable memory (TCAM) for determining policies to be applied to packets output from the trunk and leaf topology. Typically, TCAMs are expensive and consume a lot of power for switches. The techniques of the present disclosure may be used to reduce the amount of TCAMs required to store policies in a leaf switch.

[0007] Specifically, the technology of the present disclosure includes storing a mapping from a source identifier (also referred to herein as a "source tag") and a destination address to a policy, rather than storing a mapping from a hardware source port to a policy, through which an ingress switch device receives a packet and a destination address for the packet. The source identifier can represent a category of an application, where there can be a relatively small number of categories. For example, the categories can include Web, application, and database. A relatively large number of source ports can be mapped to each category, where there can be a direct correspondence between the application and the source port. As application development progresses, the source port associated with the application can be updated. For example, an application can be executed on different servers coupled to an ingress switch device via different hardware ports. Different categories of applications can be associated with different security levels to be applied to packets from the application. By using a combination of a source identifier and a destination address, the number of TCAM entries in a leaf switch used for policy enforcement can be greatly reduced because the TCAM does not need to store separate TCAM entries that map each source port, source address / subnet, source VLAN, or any combination thereof to a policy.

[0008] The ingress leaf switch can determine the hardware source port of the received packet and then determine the source identifier to which the source port is mapped. The ingress leaf switch can then add the source identifier to the virtual extensible local area network (VXLAN) header of the packet and forward the packet to the spine switch of the spine and leaf topology. The spine switch can further forward the packet to the egress leaf switch of the spine and leaf topology. The egress leaf switch can be configured with data that maps the source identifier and destination address to the policy in its TCAM. Therefore, when the egress leaf switch receives a packet from the spine switch, the egress leaf switch can determine the policy to be applied to the packet based on the source identifier of the VXLAN header and the destination address of the packet. The egress leaf switch can then apply the policy to the packet, such as forwarding the packet or discarding the packet.

[0009] In one example, a method includes: receiving, by a leaf switch among a plurality of switches arranged according to a spine and leaf topology, a packet from a spine switch among a plurality of switches, the packet being encapsulated with a virtual extensible local area network (VXLAN) header; extracting, by the leaf switch, a source identifier value from the VXLAN header; determining, by the leaf switch, a destination address for the packet; determining, by the leaf switch, a policy to be applied to the packet based on the source identifier value and the destination address; and applying, by the leaf switch, the policy to the packet.

[0010] In another example, a leaf switch device in a plurality of switches arranged according to a spine and leaf topology, the leaf switch device comprising: a memory configured to store a plurality of policies, each of the plurality of policies being associated with a corresponding source identifier value and a corresponding destination address; a network interface communicatively coupled to a spine switch in the plurality of switches; and a processor implemented in a circuit and configured to: receive a packet from the spine switch via the network interface, the packet being encapsulated with a virtual extensible local area network (VXLAN) header; extract a source identifier value from the VXLAN header; determine a destination address for the packet; determine a policy to be applied to the packet from a plurality of policies based on the source identifier value and the destination address; and apply the policy to the packet.

[0011] In another example, a computer-readable storage medium includes instructions that cause a processor of a leaf switch device in a plurality of switches arranged according to a spine and leaf topology to: receive a packet from a spine switch in the plurality of switches, the packet being encapsulated with a virtual extensible local area network (VXLAN) header; extract a source identifier value from the VXLAN header; determine a destination address of the packet; determine a policy to be applied to the packet from a plurality of policies based on the source identifier value and the destination address; and apply the policy to the packet.

[0012] In another example, a method includes: receiving, by a leaf switch among a plurality of switches arranged according to a spine and leaf topology, data mapping a plurality of hardware source ports to a source identifier value from a controller device of the plurality of switches; receiving, by the leaf switch, a packet from a network device separate from the plurality of switches; determining, by the leaf switch, a hardware source port of the leaf switch at which the packet is received; determining, by the leaf switch, that a source port is mapped to a source identifier value using the data mapping the plurality of source ports to the source identifier value; adding, by the leaf switch, the source identifier value to a VXLAN header of the packet; and forwarding, by the leaf switch, the packet including the source identifier value to a spine switch among the plurality of switches.

[0013] In another example, a leaf switch device among multiple switches arranged according to a spine and leaf topology includes a memory configured to store data mapping multiple hardware source ports to source identifier values ​​received from a controller device of the multiple switches; receive a packet from a network device separate from the multiple switches; determine the hardware source port of the leaf switch at which the packet is received; use the data mapping multiple source ports to source identifier values ​​to determine that the source port is mapped to the source identifier value; add the source identifier value to a VXLAN header of the packet; and forward the packet including the source identifier value to a spine switch among the multiple switches.

[0014] In another example, a computer-readable storage medium includes instructions that, when executed, cause a processor of a leaf switch device among a plurality of switch devices arranged according to a spine and leaf topology to: receive data mapping a plurality of hardware source ports to source identifier values ​​from a controller device of the plurality of switches; receive a packet from a network device separate from the plurality of switches; determine a hardware source port of a leaf switch at which the packet is received; use the data mapping the plurality of source ports to source identifier values ​​to determine that the source port is mapped to the source identifier value; add the source identifier value to a VXLAN header of the packet; and forward the packet including the source identifier value to a spine switch among the plurality of switches.

[0015] The details of one or more examples are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will be apparent from the description and drawings, and from the claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 is a block diagram illustrating an example network with data centers in which examples of the techniques described herein may be implemented.

[0017] Figure 2 is shown in more detail Figure 1 A block diagram of an example implementation of a data center.

[0018] Figure 3 is a block diagram illustrating examples of multiple data centers in which examples of the techniques described herein may be implemented.

[0019] Figure 4 is a block diagram illustrating an example network switch device in accordance with techniques of this disclosure.

[0020] Figure 5A is a conceptual diagram showing a Virtual Extensible Local Area Network (VXLAN) header, and Figure 5B and Figure 5C is a conceptual diagram illustrating an example VXLAN header including a source tag (source identifier) ​​according to various examples of the presently disclosed techniques.

[0021] Figure 6 is a flow chart illustrating an example method of adding a source tag (identifier) ​​to a received packet in accordance with the techniques of this disclosure.

[0022] Figure 7 is a flow chart illustrating an example method of applying a policy to a packet based on the packet's source identifier and destination address, in accordance with the techniques of this disclosure. DETAILED DESCRIPTION

[0023] Figure 1 is a block diagram illustrating an example network system in which examples of the techniques described herein may be implemented. Figure 1 The network system 2 in the example of includes data centers 10A-10X (collectively referred to as data centers 10) interconnected to each other via a service provider network 7 and to customer networks associated with customers 11. Typically, each data center 10 provides an operating environment for applications and services to customers 11 coupled to the data center via the service provider network 7. The data center 10 may, for example, host infrastructure equipment such as networking and storage systems, redundant power supplies, and environmental controls. The service provider network 7 may be coupled to one or more networks managed by other providers, and thus may form part of a large-scale public network infrastructure, such as the Internet.

[0024] In some examples, each data center 10 may represent one of many geographically distributed network data centers. Figure 1 As shown in the example of , each data center 10 can represent a facility that provides network services to customers 11. Customers 11 can be collective categories such as enterprises and governments or individuals. For example, a network data center can host web services for several enterprises and end users. Other exemplary services may include data storage, virtual private networks, business engineering, file services, data mining, scientific computing or supercomputing, etc. In some embodiments, each data center 10 can be an individual network server, network peer, or other.

[0025] In this example, each data center 10 includes a collection of storage systems and application servers 12A-12X (referred to herein as "servers 12") interconnected via a high-speed switching fabric 14 provided by one or more layers of physical network switches and routers. The switching fabric 14 is provided by a collection of interconnected top-of-rack (TOR) switches 16A-16Z (collectively referred to as "TOR switches 16") of a distribution layer coupled to chassis switches 18A-18M (collectively referred to as "chassis switches 18"). The switching fabric 14 can be configured as, and alternatively referred to as, a spine and leaf topology, where the TOR switches 16 can represent leaf switches and the chassis switches 18 can represent spine switches. Although not shown, each data center 10 can also include, for example, 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 other network devices.

[0026] In this example, the TOR switch 16 and the chassis switch 18 provide redundant (multi-homed) connectivity to the IP fabric 20 and the service provider network 7 to the server 12. The chassis switch 18 aggregates traffic flows and provides high-speed connectivity between the TOR switches 16. The TOR switch 16 can be a network device that provides layer 2 (e.g., MAC) and / or layer 3 (e.g., IP) routing and / or switching functions. The TOR switch 16 and the chassis switch 18 can each include one or more processors and memories and be capable of executing one or more software processes. The chassis switch 18 is coupled to the IP fabric 20, which performs layer 3 routing to route network traffic between the data center 10 and the customer 11 through the service provider network 7.

[0027] In accordance with one or more techniques of the present disclosure, a virtual network controller 22 (“VNC”) provides a logically and, in some cases, physically centralized controller for facilitating the operation of one or more virtual networks within each data center 10, such as data center 10A. In some examples, virtual network controller 22 may operate in response to configuration input received from network administrator 24. Additional information regarding virtual network controller 22 operating in conjunction with other devices or other software defined networks of data center 10A may be found in International Application No. PCT / US2013 / 044378, filed on June 5, 2013, entitled “PHYSICAL PATH DETERMINATION FOR VIRTUAL NETWORK PACKET Flows,” which is incorporated herein by reference as if fully set forth herein.

[0028] In some examples, traffic between any two network devices, such as between network devices within IP architecture 20 (not shown), between server 12 and client 11, or between servers 12, for example, may traverse a physical network using many different paths. A packet flow (or "flow") may be defined by five values ​​(or "quintuples") used in a packet's header, i.e., a protocol, source IP address, destination IP address, source port, and destination port used to route packets through the physical network. For example, a protocol specifies a communication protocol, such as TCP or UDP, and a source port and a destination port refer to the source port and destination port of a connection.

[0029] A collection of one or more packet data units (PDUs) including a packet header that specifies a particular five-tuple represents a flow. Flows can be broadly classified using any parameters of the PDU, such as source and destination data link (e.g., MAC) and network (e.g., IP) addresses, virtual local area network (VLAN) tags, transport layer information, multiprotocol label switching (MPLS) or generalized MPLS (GMPLS) labels, and the ingress port of the network device receiving the flow. For example, a flow can be all PDUs transmitted in a transmission control protocol (TCP) connection, all PDUs originating from a particular MAC address or IP address, all PDUs with the same VLAN tag, or all PDUs received at the same switch port. A flow can additionally or alternatively be defined by an application identifier (AppID), which is determined by a virtual router agent or other entity that identifies the type of service or application associated with the flow, for example using a port and protocol list or deep packet inspection (DPI), because the flow transmits application data for the type of service or application.

[0030] In some examples, each data center 10 may implement different policies in different computing environments according to the needs of a particular environment. For example, the development environment, staging environment, and production environment of data center 10A may each have different requirements for various policies of the network, such as firewall, network, application, and / or global policies.

[0031] Furthermore, multiple data centers 10 across different geographic locations may implement different policies within each of their respective internal computing environments due to different customer requirements, networking resources and configurations, etc. If each computing environment within each data center 10 were to independently manage its own policies, it may be difficult for administrators to ensure that each policy meets security, reliability, and quality requirements. Furthermore, if each computing environment within each data center were to independently manage its own policies, upgrading one or more policies across multiple data centers may become cumbersome or unmanageable.

[0032] Thus, the network system 8 can implement an extensible, multi-dimensional policy framework to support flexible application of policies for controlling network traffic between workloads executing within one or more computing environments of a data center 10, which can be categorized along a number of different dimensions. These categories can include applications, deployments, application layers, geographic sites, virtual networks, virtual machines, interfaces, projects, security requirements, quality requirements, physical devices such as routers or switches, users, and / or compliance requirements, to name a few examples. Each type of category represents a dimension of a workload that generates or processes network traffic for the data center 10. In some examples, the policy framework described herein allows an administrator 24 to tag objects that execute or otherwise process workloads in a particular dimension across multiple levels.

[0033] In various examples, the policy controller 23 distributes policy rules including tags for project-level objects. However, the policy controller 23 may additionally or alternatively distribute policy rules including tags specifying various different object levels, such as a global environment level, a project level, a virtual network level, a virtual machine level, or an interface level.

[0034] The policy controller 23 can use multiple configuration objects to implement one or more policies. As an example, the policy controller 23 can apply a first set of configuration objects at the global level. The first set of configuration objects includes a global application policy set, a global firewall policy, a global firewall rule, and a global tag across multiple levels and / or categories. The policy controller 23 distributes the first set of configuration objects at the global level to, for example, a virtual router. The policy controller 23 matches the global tags associated with the global application policy set, the global firewall policy, and the global firewall rule with the object marked with the global tag. Based on the global application policy set, the global firewall policy, and the global firewall rule, the policy controller 23 allows or blocks network services between interfaces of objects marked with the global tag. The interface can be, for example, a virtual machine interface (VMI) or a switch interface of switches 16, 18.

[0035] The policy controller 23 may apply a second set of configuration objects at the project level. The second set of policy rules may include a project-specific application policy set, firewall policy, firewall rules, and tags across multiple levels. The policy controller 23 distributes the second set of configuration objects at the project level. The policy controller 23 matches the project tags associated with the project-specific application policy set, firewall policy, and firewall rules with the objects marked with the project tags. Based on the project-specific application policy set, firewall policy, and firewall rules, the policy controller 23 allows or blocks network services between interfaces of the objects marked with the project tags.

[0036] In a further example, the policy controller 23 can specify lower-level configuration objects, such as application policy sets, firewall policies, firewall rules, and tags defined at a virtual network-specific level, a virtual machine-specific level, and / or an interface-specific level. By doing so, the policy controller 23 can apply a hierarchical policy set to multiple objects within one or more data centers 10. Thus, the technology of the present disclosure allows for the distribution of scalable and robust simplified business policies in many different types of deployment and execution environments. Additional descriptions can be found in U.S. patent application Ser. No. 15 / 819,522, filed on November 22, 2017, entitled “Scalable Policy Management for Virtual Networks,” the entire contents of which are incorporated by reference.

[0037] As described herein, a "tag" may refer to a data structure that provides information for classifying an object according to a specific value or a specific set of values. A tag may include a tag identifier (ID). In one example, a tag maps the security requirements of a corresponding object. A tag may be predefined (e.g., such as a tag for an application, deployment, application layer, or geographic site), or may be implicitly assigned during provisioning (e.g., a tag describing the infrastructure, rack, cluster, or data center that is provisioned to support an application). In some examples, multiple tags are applied to a single object (e.g., an "application" and a "geosite" tag may be applied to a single virtual machine), but the object may have only a single tag for each type and / or category. In a further example, a user may define a "tag" to be used as a key of a key / value pair of a tag, so that the user may customize or create his or her own categories for marking objects. In addition, as used herein, "marking" an object refers to classifying an object into a category specified by a tag included in a policy rule. A source tag, also referred to herein as a source identifier, may represent a category of an application, wherein various application categories may be associated with different levels of security operations to be applied to groups of applications originating from that category.

[0038] Policies can be expressed along multiple dimensions in terms of tags corresponding to categories corresponding to the tagged objects. A distributed VN agent (e.g., one or more servers 12) executing on a computing device hosting the workload can then apply policies to the tagged objects that are members of a category to allow or deny traffic flows between objects tagged by one or more categories of one or more dimensions. In at least some cases, the VN agent applies policies at the interface level of one or more virtual machines to allow or block network traffic flowing to and / or from interfaces of one or more virtual machines.

[0039] In some examples, an extension of the Border Gateway Protocol (BGP) is provided for passing a policy framework between categories. For example, the VN agent can receive a BGP message from a policy controller, which is executed by the virtual network controller 22 as an example, and the BGP message includes an extended community specifying one or more policy rules, each policy rule including one or more tags, and the one or more tags include a tag identifier (which is converted from a key / value pair) corresponding to a category including the marked object. In addition, each of the one or more policy rules can specify whether to allow or block network services between objects marked by one or more tags. Additional information about the implementation of BGP extended communities is described in RFC4360 "BGP Extended Communities Attribute" of the Internet Engineering Task Force (IETF) in February 2006, which can be obtained from https: / / tools.ietf.org / rfc / rfc4360, the entire contents of which are incorporated herein by reference.

[0040] In this regard, scalable deployment of policies across different environments may be achieved within multiple data centers 10 in a manner that potentially reduces complexity and simplifies the management of such policies within multiple data centers 10. More information regarding policy distribution may be found in the aforementioned U.S. patent application Ser. No. 15 / 819,522, filed on Nov. 21, 2017, and entitled “Scalable Policy Management for Virtual Networks.”

[0041] However, scalable policy deployment may not be able to accommodate all the various environments that exist in data centers and other networks. Figure 1 As further shown in the example of , the switching fabric 14 may include additional TOR switches 16A-16Z that interface with what is referred to as a bare metal server ("BMS") 28. BMS 28 may represent a server dedicated to a single customer, which may also be referred to as a "single-tenant server." Unlike server 12, in which multiple customers (or, again, "tenants") may interact with the same physical hardware (i.e., server 12) to interface with their individually assigned virtual routers, BMS 28 is dedicated to a single customer only.

[0042] BMS28 can provide dedicated hardware for use by a single customer to avoid what is known as the "noisy neighbor problem" that occurs in multi-tenant servers 12. That is, while each customer may receive a dedicated virtual router that is generally unaffected by the operation of any other dedicated virtual router by one tenant in the multi-tenant server 12, in certain contexts, other virtual routers may consume resources (e.g., processor cycles, memory, bandwidth, etc.) that would otherwise be available to another customer's virtual router, thereby reducing the performance of the remaining virtual routers (just as noisy neighbors may cause problems for other residents, hence the name "noisy neighbor problem"). Therefore, BMS28 can provide a dedicated hardware environment that avoids such noisy neighbor problems, thereby potentially ensuring that customer processing needs are more likely to be met. Therefore, one of the prerequisites for promoting the use of BMS28 is exclusivity, and therefore, some data center operators may not allow BMS28 to execute the above-mentioned VN agent responsible for implementing policies within BMS28.

[0043] In addition, some devices may not support all features enabled by the above-mentioned extensible policy deployment. As an example, some network devices may only support basic firewall functions, but not the full-featured firewall functions enabled by using the above-mentioned extensible policy deployment, thereby reducing the usefulness of policy deployment.

[0044] In operation, the virtual network controller 22 may obtain policies to be executed by the TOR switch 16Z coupled to the BMS 28. The virtual network controller 22 may obtain policies from a database or other memory and / or storage device. The administrator 24 may specify policies or otherwise generate policies.

[0045] The virtual network controller 22 may then convert the policy into configuration data supported by the TOR switch 16Z. As described above, the policy may include an intent-based policy that, for a firewall or other security service, may identify flows that are to be blocked from reaching and / or transmitting from the BMS 28. The intent-based policy may also identify flows that are allowed to reach and / or transmit from the BMS 28. The virtual network controller 22 may convert the intent-based policy into configuration data representing an access control list (ACL) supported by the TOR switch 16Z.

[0046] The access control list may include one or more entries, each entry identifying a flow, and an action to be performed on the identified flow (such as "drop" or "forward"). According to the technology of the present disclosure, the data identifying the flow may include a source identifier (also referred to herein as a "source tag") and a destination Internet Protocol (IP) address. Specifically, when one of the TOR switches 16A-16N receives a packet from a corresponding one of the servers 12, the one of the TOR switches 16A-16N may add the source identifier to the Virtual Extensible Local Area Network (VXLAN) header of the packet. The source identifier may correspond to a value representing the category of the application that generated the packet, such as "development", "simulation", "production", etc.

[0047] The TOR switch 16 may be configured with mapping data that maps the source port at which the packet is received to a corresponding source identifier. Various applications of a common category may be executed by a server connected to one of the TOR switches 16 via a specific hardware port of the TOR switch 16. Each application may be assigned to a category, such as a development stage of the application. The virtual network controller 22 may be configured to assign a source identifier to the TOR switch 16. Thus, the TOR switch 16 may add a source identifier (source tag) to the VXLAN header of the packet.

[0048] The virtual network controller 22 may also configure the TOR switch 16, such as the TOR switch 16Z, to implement ACLs (policies) for network traffic directed to external servers (such as the BMS 28). That is, once the TOR switch 16Z is configured according to the configuration data, the TOR switch 16Z may apply the ACL to any flow received by the TOR switch 16Z in order to implement policies in support of the BMS 28. Similarly, other TOR switches 16 may also be configured to implement similar policies, although for other servers 12 (or Figure 1 ). Thus, the same TOR switch can act as both an ingress switch and an egress switch, wherein when acting as an ingress switch, the TOR switch can add a source identifier (source tag) to the VXLAN header of the received packet, and when acting as an egress switch, the TOR switch can implement a policy indicated by a combination of the source identifier and the destination IP address.

[0049] Specifically, the TOR switch 16, such as the TOR switch 16Z, may store data defining a policy (e.g., an ACL entry) in a ternary content addressable memory (TCAM). The TCAM is relatively expensive and provides high-speed searches for data stored therein. Due to the expense of the TCAM, reducing TCAM consumption can reduce the expense of the corresponding device (e.g., the TOR switch 16Z). By storing policies associated with a source identifier (representing the category of the corresponding application) and a destination IP address, the number of policy / ACL entries to be stored in the TCAM of the TOR switch 16 can be reduced. Therefore, the technology of the present disclosure can reduce the cost of a TOR switch for implementing policies for business execution to be sent to, for example, a BMS or other server device. In addition, compared to other types of memory, each entry in the TCAM typically requires additional circuitry, which may further increase the physical hardware size, power consumption, and heat generation of the TCAM. Therefore, for example, according to the technology of the present disclosure, reducing the amount of consumed TCAM can also reduce the physical hardware size, power consumption, and heat generation.

[0050] Specifically, if policies are mapped from source ports and destination IP addresses to policies, the amount of TCAM consumed to store such mapping data will be considerable. In contrast, the techniques of the present disclosure allow for many-to-one mapping of source ports to application classes. There may be thousands of source ports mapped to a single application class. Therefore, by storing data that maps source identifiers and destination IP addresses to policies (e.g., ACL entries), the techniques of the present invention can significantly reduce TCAM consumption while still maintaining the high-speed search access provided by the TCAM for performing policy enforcement.

[0051] Figure 2 It is further shown in detail Figure 1 A block diagram of an example implementation of a data center 10A is shown. Figure 2In an example of the present invention, data center 10A includes an overlay network that extends the switching fabric 14 from physical switches 16, 18 to software or "virtual" switches 30A-30X (collectively referred to as "virtual routers 30" or "VR 30"). Virtual router 30 dynamically creates and manages one or more virtual networks 34 that can be used for communication between application instances. In one example, virtual router 30 implements the virtual network as an overlay network, which provides the ability to decouple the virtual address of an application from the physical address (e.g., IP address) of one of servers 12A-12X ("servers 12") that executes the application. Each virtual network can use its own addressing and security scheme and can be considered orthogonal to the physical network and its addressing scheme. Various processes can be used to transmit packets on the physical network, within the virtual network 34, and across the virtual network 34. In some examples, virtual network 34 can provide multicast services without requiring multicast support in the underlying physical network.

[0052] Each virtual router 30 may be executed within a hypervisor, host operating system, or other component of each server 12. Each server 12 may represent an x86 or other general purpose server or a specialized server capable of executing a workload (WL) 37. Figure 2 In the example of FIG. 4 , the virtual router 30A is executed within a hypervisor 31, which is also commonly referred to as a virtual machine manager (VMM), and Figure 2 In the example of , it can be represented as "HV", which provides a virtualization platform that allows multiple operating systems to execute concurrently within one of the servers 12. Figure 2 In the example of , virtual router 30A manages virtual networks (VNs) 34, each of which provides a network environment for executing one or more virtual machines (VMs) (which can execute one or more WLs 37) within a virtualization platform provided by a hypervisor 31. Each VM is associated with a virtual network and can represent a tenant VM that runs a client application (such as a web server, a database server, an enterprise application) or hosts a virtualized service for creating a service chain. In some cases, any one or more of the servers 12 or another computing device can directly host a client application, that is, not as a virtual machine. In some cases, some VMs can represent containers, which are another form of virtualized execution environment. That is, both virtual machines and containers are examples of virtualized execution environments for executing workloads.

[0053] In general, each WL 37 may be any type of software application and may be assigned a virtual address for use within a corresponding virtual network 34, where each virtual network may be a different virtual subnet provided by virtual router 30A. WL 37 may be assigned its own virtual layer three (L3) IP address, e.g., for sending and receiving communications, but may not be aware of the IP address of the physical server 12A executing the virtual machine. In this manner, a "virtual address" is a different physical address from the underlying physical computer system (e.g., Figure 1 or Figure 2 The address of the application of the logical address of server 12A in the example.

[0054] In one implementation, each of the servers 12 includes a corresponding one of the virtual network (VN) agents 35A-35X (collectively referred to as "VN agents 35"), which controls the overlay of the virtual network 34 and coordinates the routing of data packets within the server 12. Typically, each VN agent 35 communicates with the virtual network controller 22, which generates commands that control the routing of packets through the data center 10A. The VN agent 35 can be used as a proxy for control plane messages between the WL 37 and the virtual network controller 22. For example, the WL 37 can request to send a message using its virtual address via the VN agent 35A, and the VN agent 35A can then send the message and request to receive a response to the message for the virtual address of one of the WLs 27 that initiated the first message. In some cases, the WL 37 can call a procedure or function call presented by the application programming interface of the VN agent 35A, and the VN agent 35A can handle the encapsulation of the message, including addressing. Each VN agent 35 may also apply one or more policies to one or more categories, as described in more detail below.

[0055] In one example, a network packet (e.g., a layer three (L3) IP packet or a layer two (L2) Ethernet packet) generated or consumed by an instance of an application executed by a virtual machine 36 within a virtual network domain can be encapsulated in another packet (e.g., another IP or Ethernet packet) transmitted by a physical network. The packet transmitted in the virtual network may be referred to as an "internal packet" herein, while the physical network packet may be referred to as an "external packet" or "tunnel packet" herein. The encapsulation and / or decapsulation of the virtual network packet within the physical network packet may be performed within the virtual router 30, such as within a hypervisor or host operating system running on each server 12. As another example, the encapsulation and decapsulation functions may be performed at the edge of the switching structure 14, at the first hop TOR switch 16, which is one hop away from the application instance that initiated the packet. This function is referred to as tunnel transmission herein, and can be used within the data center 10A to create one or more overlay networks. In addition to IPinIP, other example tunnel protocols that can be used include IP on GRE, VxLAN, MPLS on GRE, MPLS on UDP, etc.

[0056] As described above, the virtual network controller 22 provides a logically centralized controller for facilitating the operation of one or more virtual networks within the data center 10A. The virtual network controller 22 may, for example, maintain a routing information base, such as one or more routing tables that store routing information for physical networks and one or more overlay networks of the data center 10A. The switches 16, 18 and the virtual router 30 may also maintain routing information such as one or more routing and / or forwarding tables. In one example, the virtual router 30A of the hypervisor 31 implements a network forwarding table (NFT) 32 for each virtual network 34. Typically, each NFT 32 stores forwarding information for the corresponding virtual network 34 and identifies where the data packet will be forwarded and whether the packet will be encapsulated in a tunnel protocol, such as using a tunnel header, which may include one or more headers for different layers of the virtual network protocol stack.

[0057] like Figure 2 As further shown in the example, the virtual network controller 22 includes a policy controller 23. The policy controller 23 can represent a unit configured to mark multiple objects across multiple levels. In some examples, the multiple levels include levels of objects, such as global environment levels, project levels, virtual network levels, virtual machine levels, or interface levels of objects. In some instances, the policy controller 23 can also mark multiple objects across multiple categories. In some examples, the multiple categories include applications executed within VM36, deployments, application layers, geographic sites, virtual networks, WL 37, interfaces, projects, security requirements, quality requirements, users, or compliance requirements.

[0058] In some examples, the policy controller 23 also distributes multiple policies to the corresponding VN agent 35. Each of the multiple policies includes one or more policy rules for controlling network services. Each of the multiple policy rules specifies one or more tags, and each tag also specifies one or more dimensions of the category.

[0059] After receiving multiple policies, each VN agent 35 applies one or more policy rules of each of the multiple policies to the marked objects corresponding to the tags of the one or more policy rules to control the network services between the marked objects. For example, under the guidance of the policy controller 23, the VN agent 35 represents one or more policy rules at the logical interface of the WLS 37, and the one or more policy rules are marked with tags corresponding to the tags of the one or more policy rules. The VN agent 35 allows or blocks network services to and / or from the logical interface based on the one or more policy rules.

[0060] In some examples, the policy controller 23 distributes one or more policy rules via the Border Gateway Protocol (BGP). Such BGP messages may include actions for a particular traffic flow, such as allowing or denying the flow and a list of one or more destination protocols and ports to which the specified action is applied. In such examples, the BGP message may also specify one or more labels (as a label identifier-ID) for an object that is an extended community of BGP. Additional information about BGP is described in RFC 7432, "BGP MPLS-Based Ethernet VPN" of the Internet Engineering Task Force (IETF), February 2015. Additional information about BGP is available at https: / / tools.ietf.org / html / rfc7432, the entire contents of which are incorporated herein by reference.

[0061] like Figure 2 As further shown in the example of FIG. 1 , the policy controller 23 may distribute policy rules in the form of an access control list (ACL) 50. The policy controller 23 may convert the above policy into an ACL 50 and then deploy the ACL 50 (which may represent one or more policy rules) to the TOR switch 16Z. The TOR switch 16Z may then apply the ACL 50 to network traffic destined for the BMS 28. Given a restricted execution environment, the BMS 28 may only execute the WL 37 (and in some cases, not even execute the WL 37), rather than executing the WL 37 as described above. Figure 2The virtual router 30 or VN agent 35 shown in the example of . According to the technology of the present disclosure, the ACL 50 may include data that maps the source identifier and the destination IP address to the policy (e.g., ACL entry). Such data may be stored in the TCAM of the TOR switch 16Z.

[0062] Figure 3 1 is a block diagram illustrating an example of multiple data centers 10 that may implement examples of the techniques described herein. Each data center 10A-10X (collectively referred to as a "data center 10") may be connected to Figure 1 and Figure 2 The data centers 10 of FIG. 1 and FIG. 2 operate in a substantially similar manner. In some examples, one or more data centers 10 implement a cloud environment that executes Openstack, while in another example, one or more data centers 10 are cloud environments that execute Kubernetes, while in yet another example, one or more data centers 10 implement a cloud environment that executes Amazon Web Services, while in yet another example, one or more data centers 10 execute on a "bare metal" infrastructure. In some examples, each data center 10 executes an infrastructure different from each other data center 10.

[0063] exist Figure 3 In the example of FIG. 1 , each data center 10 includes a database 308 and three different environments: a development environment 310, a simulation environment 312, and a production environment 314. Each environment of each data center 10 is capable of executing one or more applications 302A-302D (collectively referred to as "applications 302"), such as application 302A executed in development environment 310A of data center 10A, application 302B executed in production environment 314A of data center 10A, application 302C executed in development environment 310B of data center 10B, and application 302D executed in simulation environment 312B of data center 10B. In one example, each application 302 is an instance of the same type of financial application. The strategies described herein are robust and scalable for applications in many different types of cloud environments as described above.

[0064] Within an environment, each application can include multiple processes and subprocesses. Figure 3In the example of the present invention, application 302A of development environment 310A executes web process 304A and application program interface (API) process 306A. In addition, application 302B of production environment 314A executes web process 304B and API process 306B. Application 302C of development environment 310B executes web process 304C and API process 306C. Further, application 302D of simulation environment 312B executes web process 304D and API process 306D. However, in other examples, each application 302 of the corresponding environment 310A, 312A, 314A, 310B, 312B, or 314B may execute more or different processes than each other application 302. Furthermore, in some examples, the applications executing in each respective environment 310A, 310B, 312A, 312B, 314A, and 314B may be similar to or different from the applications executing in each other environment 310A, 310B, 312A, 312B, 314A, and 314B.

[0065] It may be desirable to ensure that the processes 304, 306 of each application 302 of the respective environment 310, 312, 314 do not exchange network traffic with the processes 304, 306 of an application 302 within a different environment 310, 312, 314, while still allowing network traffic to flow between different processes 304, 306 within the same application 302. For example, an administrator may desire to allow network traffic between a web process 304A and an API process 306A because each of the web process 304A and the API process 306A operates within the same application 302A within the development environment 310A. In addition, the administrator may desire to prevent network traffic between a web process 304A (e.g., operating within a development environment 310A of the data center 10A) and an API process 306B (e.g., operating within a production environment 314A of the data center 10A) or between a web process 304A (e.g., operating within a development environment 310A of the data center 10A) and an API process 306C (e.g., operating within a development environment 310B of the data center 10B). In addition, the administrator may desire to allow processes 304, 306 executing within an application 302 within the same data center 10 to access the same database 308 regardless of the specific environment 310, 312, or 314 in which the particular application 302 is executed. For example, the administrator may desire to allow an API process 306A executing within an application 302A and an API process 306B executing within an application 302B to each access a database 308A.

[0066] The administrator may also desire to assign different port ranges for use for each of the applications 302A, 302B, 302C, and / or 302D to meet various security requirements, quality requirements, compliance requirements, or user requirements. Therefore, if the administrator were to implement a single application-specific firewall policy (e.g., a firewall policy specific to the application type of each of the applications 302A, 302B, 302C, and 302D), the firewall policy may not work as expected because each of the applications 302A, 302B, 302C, and 302D uses a different port range. In addition, if the administrator were to independently manage the network business policies for each process 304, 306 within each application 302 within each environment 312, 314, and 314 within each data center 10, it may be difficult for the administrator to ensure that each network business policy meets security, reliability, and quality requirements. In addition, upgrading one or more policies across multiple data centers 10 may become cumbersome or unmanageable.

[0067] According to the technology of the present disclosure, applications within development environment 310 (e.g., applications 302A, 302C) can be associated with source ports mapped to a "development" source identifier (source tag); applications within simulation environment 312 (e.g., application 302D) can be associated with source ports mapped to a "simulation" source identifier (source tag); and applications within production environment 314 (e.g., application 302B) can be associated with source ports mapped to a "production" source identifier (source tag).

[0068] Figure 4 1 is a block diagram illustrating an example network switch device 100 according to the technology of the present disclosure. In this example, the network switch device 100 includes a forwarding engine 104, a network interface card (NIC) 102A-102N (NIC 102), a virtual extensible local area network (VXLAN) processing unit 120, and a source tag memory 116. NIC 104 includes a network interface configured to switch packets using a link of an underlying physical network. Such a network interface may be, for example, an Ethernet interface.

[0069] The forwarding engine 104 in this example includes a ternary content addressable memory (TCAM) memory 110. In other examples, the forwarding engine 104 may include other types of high-speed memory, such as reduced latency dynamic random access memory (RLDRAM) or synchronous dynamic random access memory (SDRAM). Figure 4In the example of FIG. 1 , the TCAM memory 110 stores a forwarding information base (FIB) 112 and a policy 114. The FIB 112 represents a forwarding table that maps data of a received packet to a "next hop" corresponding to one of the NICs 102. Typically, when the network switch device 100 receives a packet via one of the NICs 102, the forwarding engine 104 can use the FIB 112 to determine another NIC in the NICs 102 to which to forward the packet.

[0070] In this example, the network switch device 100 may represent a leaf switch device of a spine and leaf topology. Figure 1 and Figure 2 Each NIC 102 may include one or more hardware ports through which it physically interfaces with other network devices. Some of the NICs in the NIC 102 may be coupled to a backbone switch (e.g., Figure 1 and Figure 2 18), while other NICs in NIC 102 can be coupled to devices outside the spine and leaf topology ( Figure 1 and Figure 2 Switching structure 14). For example, Figure 1 and Figure 2 The server 12 and BMS 28 can be considered as devices external to the spine and leaf topology.

[0071] The network switch device 100 may receive data defining a mapping from its hardware source ports (e.g., the hardware ports of the NIC 102) to source tags and store such data in the source tags 116. In general, the source ports may correspond to various applications that may generate packets. Figure 3 As explained, applications can be assigned to application categories, where possible categories may include, for example, applications in development, applications in a simulation area, or applications in production. Therefore, the application can be executed by a device coupled to the network switch device 100 via a specific hardware source port of one of the NICs 102. The source tag 116 represents the various categories of applications. Therefore, the source tag 116 may include data that maps the ports of an application currently assigned to the "development" category to a "development" source identifier (or source tag). Similarly, the source tag 116 may include data that maps the ports of an application currently assigned to the "simulation" category to a "simulation" source identifier / tag. Similarly, the source tag 116 may include data that maps the ports of an application currently assigned to the "production" category to a "production" source identifier / tag.

[0072] Thus, when the network switch device 100 receives a packet via one of the NICs 102 corresponding to a device outside the spine and leaf topology (i.e., outside the switch fabric), the FIB 112 may indicate that the packet is to be sent to the VXLAN processing unit 120 to be encapsulated with a VXLAN header. For example, the FIB 112 may map the “next hop” of the packet to a logical interface associated with the VXLAN processing unit 120.

[0073] According to the technology of the present disclosure, the VXLAN processing unit 120 can use the data of the source tag 116 to determine the source tag (or source identifier) ​​to be added to the VXLAN header. For example, the packet may originate from a specific category of applications, such as an application in a "development" category, a "simulation" category, or a "production" category. The VXLAN processing unit 120 can determine the source port of the received packet, which corresponds to the application that generated the packet. The VXLAN processing unit 120 can use the source port to perform a lookup in the source tag 116 to determine the source identifier to be added to the VXLAN header of the packet. According to traditional VXLAN technology, the VXLAN processing unit 120 can also use other mapping data ( Figure 4 ) to determine the VXLAN segment identifier of the packet.

[0074] After constructing the VXLAN header and encapsulating the packet with the VXLAN header, the VXLAN processing unit 120 may send the packet back to the forwarding engine 104. The forwarding engine 104 may then send the packet to one of the NICs 102 based on the VXLAN segment identifier of the VXLAN header to direct the packet to a spine switch (e.g., Figure 1 and Figure 2 A NIC in the chassis switch 18).

[0075] On the other hand, when the network switch device 100 receives a VXLAN packet from the backbone switch of the switching structure, the forwarding engine 104 can send the packet to the VXLAN processing unit 120 to extract the source identifier (source tag) from the VXLAN header of the packet. The forwarding engine 104 can then determine the destination IP address of the packet and perform a lookup in the policy 114 using the source identifier and the destination IP address from the VXLAN header. That is, the policy 114 can map a combination of the source identifier (source tag) and the destination IP address to a specific policy. Such a policy can be to forward the packet normally, to discard the packet, to send the packet to a device that performs additional security (e.g., deep packet inspection, firewall, etc.), or other such policies. Therefore, the network switch device 100 can execute the policy to which the source identifier and the destination IP address are mapped in the policy 114.

[0076] Figure 5A is a conceptual diagram showing a Virtual Extensible Local Area Network (VXLAN) header, and Figure 5B and 5C is a conceptual diagram illustrating an example VXLAN header including a source tag (source identifier) ​​according to various examples of the presently disclosed techniques.

[0077] Figure 5A A VXLAN header 130 is shown including a flag 132, a VXLAN segment identifier 136, and reserved fields 134, 138. According to Mahalingam et al., "Virtual eXtensible Local Area Network (VXLAN): A Framework for Overlaying Virtualized Layer 2 Networks over Layer 3 Networks," August 2014, Request for Comments 7348 (RFC 7348), available at datatracker.ietf.org / doc / html / rfc7348, the flag 132 includes 8 bits, including 4 reserved bits, 1 I-bit (which must be set to 1 for a valid VXLAN network identifier (VNI)), and another 3 reserved bits after the I-bit. According to RFC 7348, the VXLAN segment identifier 136 is a 24-bit value that specifies a single VXLAN overlay network on which a communicating virtual machine (VM) is located. Typically, the reserved fields 134, 138 include 24 bits and 8 bits, respectively, which are reserved for future use.

[0078] According to the techniques of this disclosure, a source identifier (or source tag) may be specified in one of reserved fields 134 , 138 . Figure 5B An example VXLAN header 140 is shown including a flag 142, a source tag 144, a reserved field 146, a VXLAN segment identifier 148, and a reserved field 150. In general, the flag 142 may correspond to Figure 5A The VXLAN segment identifier 148 may correspond to Figure 5A VXLAN segment identifier 136. Source tag 144 may include up to 24 bits. Therefore, reserved field 146 may not be included (if source tag 144 has 24 bits), or reserved field 146 may have a number of bits that is the difference between 24 bits and the number of bits included in source tag 144.

[0079] Figure 5CAnother example VXLAN header 150 is shown including a flag 152, a source tag reserved field 154, a VXLAN segment identifier 156, and a source tag 158. In general, the flag 152 may correspond to Figure 5A The VXLAN segment identifier 156 may correspond to Figure 5A The VXLAN segment identifier 136 of the VXLAN header 150. In this example, the source tag 158 includes 8 bits to specify the source identifier of the packet encapsulated by the VXLAN header 150.

[0080] exist Figure 5B and 5C In the example of , source tag 144 and source tag 158 include values ​​for source identifiers (or source tags) representing source applications, from which packets encapsulated by a corresponding one of VXLAN header 140 or VXLAN header 150 come. For example, one of the TOR switches 16, network switch devices 100, or other ingress leaf switches of the spine and leaf topology may add the value of source tag 144 or source tag 158 to the VXLAN header. As described above, the source tag value may represent the category of the source application. Specifically, the ingress leaf switch device may select, for example, source tag 116 ( Figure 4 ) determines the value of the source tag, and the source tag 116 maps the hardware source port of the received packet to the corresponding source identifier of the category of the specified application. Similarly, according to the technology of the present disclosure, the egress leaf switch device can, for example, Figure 4 The policy 114 determines the policy to be applied to the packet based on the value of the source tag 144 or the source tag 158 and the destination IP address of the packet.

[0081] Figure 6 is a flow chart illustrating an example method of adding a source identifier to a received packet according to the techniques of this disclosure. Figure 6 The method can generally be performed by an ingress leaf switch device, such as Figure 1 and Figure 2 One of the 16 TOR switches or Figure 4 The network switch device 100. When the Figure 1 and Figure 2 When a server in the server 12 or a device outside the spine and leaf topology of the BMS 28 receives a packet, the leaf switch device can act as an entry to the spine and leaf topology. For purposes of example and explanation, refer to Figure 1 and Figure 2 TOR Switch 16A Explained Figure 6 For different packets or packet flows, the same switch can act as both an ingress and egress switch.

[0082] First, TOR switch 16A may be configured, for example by policy controller 23, with data that maps a hardware source port at which a packet is received to a source identifier. TOR switch 16A receives a packet from an external server, such as server 12A (180). TOR switch 16A may determine the hardware source port at which the packet is received. Therefore, TOR switch 16A may determine the source port of the packet (182).

[0083] TOR switch 16A may then use source tag 116 ( Figure 4 ) to determine the source identifier from the source port (184). TOR switch 16A may then add the source identifier to the VXLAN header (186) of the packet, e.g., Figure 5B or Figure 5C TOR switch 16A can then, for example, perform the following operations based on FIB 112 ( Figure 4 ) data, using the destination port (VXLAN port) to determine the next hop for the packet. The destination port can be specified in the outer UDP header of the packet. The next hop typically corresponds to a backbone switch, such as Figure 1 and Figure 2 One of the chassis switches 18. The TOR switch 16A can then forward the packet to the spine switch (188).

[0084] In this way, Figure 6 The method represents an example of a method, which includes: receiving, by an ingress leaf switch of a plurality of switches arranged according to a spine and leaf topology, data mapping a plurality of source ports to a source identifier from a controller device for the plurality of switches; receiving a packet from a network device separate from the plurality of switches; determining, by the leaf switch, a hardware source port of the leaf switch at which a second packet is received; determining, by the leaf switch, that a source port is mapped to a second source identifier value using the data mapping the plurality of source ports to a second source identifier value; adding, by the leaf switch, the second source identifier value to a second VXLAN header of the second packet; and forwarding, by the leaf switch, a second packet including the second source identifier value to a second spine switch among the plurality of switches.

[0085] Figure 7 is a flow chart illustrating an example method of applying a policy to a packet based on the packet's source identifier and destination address, in accordance with the techniques of this disclosure. Figure 7 The method may generally be performed by an egress leaf switch device, such as Figure 1 and Figure 2 One of the 16 TOR switches or Figure 4The network switch device 100 of FIG. When receiving a packet from a spine switch (such as one of the chassis switches 18) in the spine and leaf topology, the leaf switch device can act as an egress to the spine and leaf topology. For purposes of example and explanation, reference is made to FIG. Figure 1 and Figure 2 TOR Switch 16Z Explained Figure 7 However, for different packets or packet flows, the same switch can act as both an ingress and egress switch. Thus, for example, TOR switch 16A or TOR switch 16Z can perform different packet flows for different packets. Figure 6 and Figure 7 method, depending on whether the packet is received from a device outside the spine-and-leaf topology or from a spine switch in the spine-and-leaf topology.

[0086] In this example, TOR switch 16Z receives a packet from one of chassis switches 18 (i.e., a spine switch) (190). TOR switch 16Z may then determine a source identifier (source tag) from the VXLAN header of the packet (192). For example, TOR switch 16Z may parse Figure 5B and Figure 5C The TOR switch 16Z may also determine the destination IP address (194) of the packet, for example, from the outer IPv4 header of the packet.

[0087] TOR switch 16Z can then determine the policy from the source identifier and the destination IP address (196). For example, TOR switch 16Z can use Figure 2 The source identifier and destination IP address as shown or Figure 4 The policy 114 shown determines one of the ACLs 50. As described above, the policy 114 (or ACL 50) can be stored in a TCAM memory. By storing the policy or ACL associated with the destination IP address and source identifier (rather than the source port), the amount of TCAM memory consumed by the policy / ACL can be significantly reduced. The TOR switch 16Z can then apply the determined policy to the packet (198).

[0088] In this way, Figure 7The method represents an example of a method, which includes: receiving a packet from a spine switch among multiple switches arranged according to a spine and leaf topology, the packet being encapsulated with a virtual extensible local area network (VXLAN) header; extracting a source identifier value from the VXLAN header by the leaf switch; determining a destination address of the packet by the leaf switch; determining a policy to be applied to the packet based on the source identifier value and the destination address by the leaf switch; and applying the policy to the packet by the leaf switch.

[0089] 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 circuit" 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.

[0090] 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. Describing 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 in common or separate hardware or software components.

[0091] The technology described in the present disclosure can also be implemented or encoded in a computer-readable medium containing instructions, such as a computer-readable storage medium. The instructions embedded or encoded in the computer-readable medium can enable a programmable processor or other processor to perform the method, for example, when the instructions are executed. The computer-readable medium may include non-transient computer-readable storage media and transient communication media. Tangible and non-transient computer-readable storage media may include random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), flash memory, hard disk, CD-ROM, floppy disk, cassette, magnetic medium, optical medium or other computer-readable storage medium. It should be understood that the term "computer-readable storage medium" refers to a physical storage medium, rather than a signal, carrier wave or other transient medium.

[0092] Various examples have been described. These and other examples are within the scope of the following claims.

Claims

1. A method comprising: receiving, by a leaf switch of a plurality of switches arranged according to a spine and leaf topology, data mapping a plurality of hardware source ports to source identifier values ​​from a controller device for the plurality of switches; receiving, by the leaf switch, a packet from a network device separate from the plurality of switches; Determining, by the leaf switch, a hardware source port of the leaf switch that receives the packet; using, by the leaf switch, the data mapping the plurality of source ports to the source identifier value to determine that the source port is mapped to the source identifier value; adding, by the leaf switch, the source identifier value to a virtual extensible local area network (VXLAN) header for the packet; as well as The packet including the source identifier value is forwarded by the leaf switch to a spine switch among the plurality of switches.