SYSTEM AND METHOD FOR USING SUBNET PREFIX VALUES IN GLOBAL ROUTE HEADER (GRH) FOR LINEAR FORWARDING TABLE (LFT) SEARCHES IN A HIGH PERFORMANCE COMPUTING ENVIRONMENT - Patent application
By employing subnet prefix values in GRH for LFT lookups, the complexity of mapping 128-bit DGID to 16-bit DLID is addressed, enabling efficient and scalable routing in InfiniBand networks, supporting large numbers of destinations and maintaining load balancing.
Patent Information
- Application Number
- JP2023033737
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2017-01-26
- Filing Date
- 2023-03-06
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2037-01-27
AI Technical Summary
The challenge of mapping a 128-bit DGID value to a 16-bit DLID value in InfiniBand networks is complex, requiring costly and complex hardware with limited scalability, and traditional routing schemes fail to efficiently support large numbers of individual destinations and maintain load balancing across multi-subnet fabrics.
The use of subnet prefix values in global route headers (GRH) for linear forwarding table (LFT) lookups enables scalable and flexible routing by allowing the same LFT to handle both intra-subnet and inter-subnet forwarding decisions, using a hierarchical scheme that supports efficient packet forwarding across large networks.
This approach allows for efficient, scalable, and deterministic routing and forwarding in high-performance computing environments, supporting large numbers of destinations and maintaining load balancing without the need for complex hardware updates.
Smart Images

Figure 0007542668000009 
Figure 0007542668000004 
Figure 0007542668000006
Abstract
Description
[Technical field]
[0001] Copyright notice: A portion of the disclosure of this patent document contains material that is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of this patent document or the patent disclosure, as it appears in the Patent and Trademark Office patent file or records, but otherwise reserves all copyright rights whatsoever.
[0002] Field of the invention: The present invention relates generally to computer systems, and more particularly to providing network switch functionality in a network environment. [Background technology]
[0003] background: As larger and larger cloud computing architectures are deployed, performance and management bottlenecks associated with traditional networks and storage are becoming serious issues. There is growing interest in using high-performance, lossless interconnects, such as InfiniBand (IB) technology, as the foundation for cloud computing fabrics.
[0004] The 48K unicast local identification (LID) value space in a single IB subnet represents a limit on the size of the subnet in terms of the number of end nodes. This limit is especially important when a virtualized host channel adapter (HCA) provides multiple virtual HCA instances, and each such virtual HCA instance may be configured with an independent LID per virtual port.
[0005] The IB standard defines router nodes to enable multiple subnets to be connected within the same IB fabric and to support packet forwarding based on a mapping of fabric-wide 128-bit Destination Global Identifier (DGID) address values to 16-bit Destination LID (DLID) address values for each intermediate subnet and for the final target subnet.
[0006] However, mapping 128-bit DGID values to 16-bit DLID values at IB wire speed requires complex content-addressable memory (CAM)-based search hardware that has limited scalability in terms of the number of individual DGIDs that can be uniquely searched (i.e., within reasonable cost / complexity constraints for the hardware implementation). This means that in order to scale to a large number of individual destinations, the mapping of 128-bit DGID values to 16-bit DLID values must be flexible and capable of using a hierarchical scheme so that a large number of individual DGID addresses can be mapped via a single search entry.
[0007] However, while a hierarchical mapping structure represents scalability in terms of the total number of subnets and end nodes that can be represented, it also represents a severe limitation in the ability to route individual destinations individually to maintain load balancing and QOS constraints for different flows and workloads across the multi-subnet fabric.
[0008] This is the general area that embodiments of the present invention seek to address. Summary of the Invention [Means for solving the problem]
[0009] overview: Disclosed herein are systems and methods that can support intra-subnet and inter-subnet address resolution in a network environment, such as a system designed for middleware and application execution or middleware machine environments, using a subnet prefix value in a global route header (GRH) for a linear forwarding table (LFT) lookup in a high performance computing environment. Exemplary systems and methods can provide for the use of a subnet prefix value in a GRH for an LFT lookup in a network switch environment in a high performance computing environment, such as a network having an InfiniBand (IB) architecture. An embodiment can provide one or more subnets, each associated with one or more network switches or hosts, in a computer environment including a network fabric. The systems and methods herein can enable the use of the same linear forwarding table for both intra-subnet and inter-subnet forwarding decisions. [Brief description of the drawings]
[0010] [Figure 1] FIG. 1 illustrates an example of an InfiniBand environment, according to one embodiment. [Diagram 2] FIG. 1 illustrates a partitioned cluster environment, according to one embodiment. [Diagram 3] FIG. 1 illustrates a tree topology in a network environment according to one embodiment. [Figure 4] FIG. 2 illustrates an exemplary shared port architecture according to one embodiment. [Diagram 5] FIG. 2 illustrates an exemplary vSwitch architecture according to one embodiment. [Figure 6] FIG. 2 illustrates an exemplary vPort architecture according to one embodiment. [Figure 7] FIG. 2 illustrates an exemplary vSwitch architecture with pre-populated LIDs, according to one embodiment. [Figure 8]FIG. 2 illustrates an exemplary vSwitch architecture with dynamic LID allocation according to one embodiment. [Figure 9] FIG. 2 illustrates an exemplary vSwitch architecture with dynamic LID allocation and pre-populated LIDs in accordance with one embodiment. [Figure 10] 1 illustrates an exemplary multi-subnet InfiniBand fabric according to one embodiment. [Figure 11] 1 illustrates a diagram of a data packet format using InfiniBand (IB) addressing to access packet forwarding logic in a network environment, according to one embodiment. [Figure 12] 1 illustrates an exemplary portion of a Linear Forwarding Table (LFT) for intra-subnet and inter-subnet forwarding, according to one embodiment. [Figure 13] 1 illustrates a diagram of a transfer domain according to one embodiment. [Figure 14] FIG. 1 illustrates modification of a packet header from a GRH / ISRN addressing mode format to an LRH / DLID-based forwarding format in accordance with one embodiment. [Figure 15] FIG. 1 is a diagram of a switch that provides a mechanism for defining special switch port boundaries for changing packet forwarding from an LRH / DLID addressing mode to a GRH / ISRN addressing mode, according to one embodiment. [Figure 16] 1 is a flow chart of a method for using a packet header for linear forwarding table lookup for both intra-subnet and inter-subnet forwarding according to one embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Detailed Description: Exemplary embodiments are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings, in which like reference numerals refer to like elements. It should be noted that references in this disclosure to "a" or "one" or "several" embodiments are not necessarily to the same embodiment, and such references mean at least one. While specific implementations are described, it is understood that these specific implementations are provided for illustrative purposes only. One skilled in the art will recognize that other components and configurations can be used without departing from the scope and spirit of the invention.
[0012] Common reference numbers may be used to denote like elements throughout the figures and detailed description, and thus a reference number used in one figure may or may not be referenced in the detailed description specific to that figure if the element is described elsewhere.
[0013] Described herein are systems and methods for supporting intra-subnet and inter-subnet forwarding decisions that enable live migration of virtual machines (VMs) using subnet prefix values in a global route header (GRH) for Linear Forwarding Table (LFT) lookup in a high performance computing environment.
[0014] The following description of exemplary embodiments uses InfiniBand as an example for a high performance network. TM Uses an InfiniBand (IB) network. Throughout the following discussion, TMStandards (variously referred to as InfiniBand Standards, IB Standards, or Legacy IB Standards) may be referenced. Such references are understood to refer to the InfiniBand Trade Association Architecture Standard, Volume 1, Version 1.3 (released March 2015), available at http: / / www.inifinibandta.org, which is incorporated herein by reference in its entirety. It will be apparent to those skilled in the art that other types of high performance networks may be used without any limitation. The following description also uses a fat tree topology as an example for a fabric topology. It will be apparent to those skilled in the art that other types of fabric topologies may be used without any limitation.
[0015] To meet the demands of modern clouds (e.g., the Exascale era), virtual machines must be able to take advantage of low-overhead network communication paradigms such as Remote Direct Memory Access (RDMA). It is desirable to have RDMA bypass the OS stack and communicate directly with the hardware, allowing pass-through technologies such as Single-Root I / O Virtualization (SR-IOV) network adapters to be used. In accordance with an embodiment, a virtual switch (vSwitch) SR-IOV architecture can be provided for applicability in high-performance lossless interconnect networks. Since network reconfiguration time is critical to make live migration a viable option, a dynamic reconfiguration mechanism can be provided in addition to the network architecture that is both scalable and topology independent.
[0016] In accordance with an embodiment, a routing strategy for a virtualized environment using a vSwitch can be provided, and an efficient routing algorithm can be provided for a network topology (e.g., a fat tree topology). The efficient reconfiguration mechanism can be further tuned to minimize the overhead imposed in the fat-tree.
[0017] According to one embodiment, virtualization can be beneficial for efficient resource utilization and elastic resource allocation in cloud computing. Live migration allows optimizing resource usage by moving virtual machines (VMs) between physical servers in an application-transparent manner. Because of this, virtualization may enable consolidation, on-demand provisioning of resources and elasticity through live migration.
[0018] InfiniBand(R) InfiniBand (IB) is an abbreviation for the InfiniBand Trade Association. TM Serial Point-to-Point Full-Duplex Interconnect is an open standard lossless network technology developed by the IEEE 802.11b Trade Association. The technology is based on serial point-to-point full-duplex interconnects that provide high throughput and low latency communications, especially targeted at high-performance computing (HPC) applications and data centers.
[0019] InfiniBand Architecture (IBA) is a two-layer At a low level, an IB network is called a subnet, and a subnet may contain a set of hosts that are interconnected using switches and point-to-point links. At a higher level, an IB fabric consists of one or more subnets that may be interconnected using routers.
[0020] Within a subnet, hosts may be connected using switches and point-to-point links. In addition, there may be one master management entity, i.e., a subnet manager (SM), that resides on a designated device in the subnet. The subnet manager is responsible for configuring, starting, and maintaining the IB subnet. In addition, the subnet manager (SM) may be responsible for performing routing table calculations in the IB fabric, where, for example, routing in the IB network aims at fair load balancing between all source-destination pairs in the local subnet.
[0021] Through the subnet management interface, the subnet manager exchanges control packets, called subnet management packets (SMP), with the subnet management agent (SMA). An agent exists on every IB subnet device. Using SMP, the subnet manager can discover the fabric, configure end nodes and switches, and receive notifications from the SMA.
[0022] According to one embodiment, routing within a subnet in an IB network may be based on a Linear Forwarding Table (LFT) stored in the switch. The LFT is calculated by the SM according to the routing mechanism in use. In a subnet, Host Channel Adapter (HCA) ports on end nodes and switches are addressed using local identifiers (LIDs). Each entry in the Linear Forwarding Table (LFT) is derived from a destination LID (DLID) and an output port. Only one entry per LID in the table is supported. When a packet arrives at a switch, its output port is determined by looking up the DLID in the switch's forwarding table. Because packets follow the same path in the network between a given source-destination pair (LID pair), the routing decision is It is theoretical.
[0023] Generally, all other subnet managers except the master subnet manager work in standby mode for fault tolerance. However, in the situation where the master subnet manager fails, a new master subnet manager is negotiated by the standby subnet manager. The master subnet manager also performs periodic sweeps of the subnet to detect any topology changes and updates the subnetwork accordingly. Reconfigure the network.
[0024] Additionally, hosts and switches within a subnet may be addressed using a local identifier (LID), and a single subnet may be limited to 49151 unicast LIDs. In addition to the LID, which is a local address valid within the subnet, each IB device may have a 64-bit global unique identifier (GUID). The GUID may be used to form a global identifier (GID), which is the IB Layer 3 (L3) address.
[0025] The SM may compute the routing table (i.e., the connections / routes between each pair of nodes in a subnet) at network initialization time. Additionally, whenever the topology changes, the routing table may be updated to ensure connectivity and optimal performance. During normal operation, the SM may perform periodic light sweeps of the network to check for topology changes. If a change is found during a light sweep, Alternatively, if the SM receives a message (trap) signaling a network change, the SM may reconfigure the network according to the discovered change.
[0026] For example, the SM may reconfigure the network when the network topology changes, such as when a link goes down, a device is added, or a link is removed. The reconfiguration step may include a step performed during network initialization. Furthermore, the reconfiguration may have a local scope that is limited to the subnet where the network change occurred. Also, segmentation of a large fabric using routers may limit the reconfiguration scope.
[0027] An example of an InfiniBand fabric is shown in Figure 1, which illustrates an example InfiniBand environment 100 according to one embodiment. In the example shown in Figure 1, nodes A 101-E 105 communicate using an InfiniBand fabric 120 via respective host channel adapters 111-115. According to one embodiment, the various nodes (e.g., nodes A 101-E 105) may be represented by different physical devices. According to one embodiment, the various nodes (e.g., nodes A 101-E 105) may also be represented by different virtual devices, such as virtual machines.
[0028] Partitioning in InfiniBand According to one embodiment, an IB network may support partitioning as a security mechanism to provide isolation of logical groups of systems sharing a network fabric. Each HCA port on a node in the fabric may be a member of one or more partitions. Partition membership is managed by a centralized partition manager, which may be part of the SM. The SM may configure the partition membership information for each port as a table of 16-bit partition keys (P_keys). The SM may also manage the partition membership information for these ports. Switch ports and router ports can be configured with a partition enforcement table that contains P_Key information associated with end nodes that transmit or receive data traffic through the switch. In addition, in the general case, switch port partitioning can be performed using a partition enforcement table that contains P_Key information associated with end nodes that transmit or receive data traffic through the switch. The LID membership may represent the set of all memberships indirectly associated with the LID routed through the port in the egress direction (towards the link).
[0029] According to one embodiment, a partition is a logical group of ports such that members of a group can only communicate with other members of the same logical group. In host channel adapters (HCAs) and switches, partition membership information can be used to filter packets to enforce isolation. Packets with invalid partitioning information can be dropped as soon as they arrive at the incoming port. In a partitioned IB system, partitions can be used to create tenant clusters. With partitions in place, nodes cannot communicate with other nodes that belong to different tenant clusters. In this way, the security of the system can be guaranteed even in the presence of compromised or malicious tenant nodes.
[0030] According to one embodiment, for communication between nodes, Queue Pairs (QP) and End-to-End Contexts (EEC), except for the management queue pair (QP0 and QP1), can be assigned to a specific partition. P_Key information can then be added to all IB transport packets sent. When a packet arrives at an HCA port or switch, its P_Key value can be checked against a table configured by the SM. If an invalid P_Key value is found, the packet is immediately discarded. In this way, communication is only allowed between ports that share a partition.
[0031] An example of an IB partition is shown in FIG. 2, which illustrates a partitioned cluster environment, according to one embodiment. In the example shown in FIG. 2, nodes A-E 101-105 communicate through their respective host channel adapters 111-115 using an InfiniBand fabric 120. Nodes A-E are arranged in partitions, namely partition 1, 130, partition 2, 140, and partition 3, 150. Partition 1 includes node A 101 and node D 104. Partition 2 includes node A 101, node B 102, and node C 103. Partition 3 includes node C 103 and node E 105. Due to the arrangement of the partitions, nodes D 104 and E 105 cannot communicate with each other since they do not share a partition. However, for example, nodes A 101 and C 103 are allowed to communicate with each other since both of these nodes are members of partition 2, 140.
[0032] Virtual Machines on InfiniBand Over the past decade, hardware virtualization support has virtually eliminated CPU overhead, memory overhead has been significantly reduced by virtualizing the memory management unit, storage overhead has been reduced by using high-speed SAN storage or distributed network file systems, and device pass-through technologies such as Single Root Input / Output Virtualization (SR-IOV) have been developed. The prospects for virtualized High Performance Computing (HPC) environments have improved significantly as network I / O overhead has been reduced through the use of high performance interconnect solutions. Clouds now support virtual HPC (vHPC) clusters with high performance interconnect solutions to deliver the required performance. can be provided.
[0033] However, when coupled with a lossless network such as InfiniBand (IB), some cloud features such as live migration of virtual machines (VMs) are possible. This remains problematic due to the complex addressing and routing schemes used in these solutions. IB is an interconnect network technology that offers high bandwidth and low latency, making it well suited for HPC and other communication-intensive workloads.
[0034] The traditional approach to attaching an IB device to a VM is by using direct-assigned SR-IOV. However, achieving live migration of a VM assigned to an IB Host Channel Adapter (HCA) using SR-IOV has proven challenging. Each IB-attached node has three different addresses (i.e. LID, GUID, and GID). When a live migration occurs, one or more of these addresses change. Other nodes communicating with the VM-in-migration may lose connectivity. This When this occurs, the IB subnet manager (SM) is notified that it should reconnect by sending a Subnet Administration (SA) record route query. An attempt can be made to restore the lost connection by finding out the new address of the virtual machine.
[0035] Layers and Addressing in InfiniBand The IB architecture is divided into layers, each of which operates separately and independently of the other layers. At one end of the IB layer abstraction, the IB physical layer defines the electrical and mechanical characteristics of the IB system, and at the other end of the IB layer abstraction, the IB upper layer communicates transactions between the host and remote clients. The IB transport layer operates to provide partitioning, channel multiplexing, transport services, and packet segmentation and reassembly when transmitting and receiving data, respectively. Packet forwarding and switching within a subnet is handled by the IB link layer, and the IB network layer handles the routing of packets from one subnet to another.
[0036] In general, the network layer defines protocols for routing packets within a single subnet and between different subnets. To this end, the IB architecture uses three different types of addresses. The first type of IB address is a 16-bit local identifier (LID). At least one unique LID is assigned by the SM to each HCA port and each switch. The LID is used to route traffic within a subnet, and link level switching forwards a packet from a device specified by a source LID (SLID) in the packet's local route header (LRH) to a device specified by a destination LID (DLID) in the local route header LRH. Since the LID is 16 bits long, 65536 unique address combinations can be configured, of which only 49151 (0x0001-0xBFFF) can be used as unicast addresses. As a result, the number of available unicast addresses defines the maximum size of an IB subnet.
[0037] The second type of IB address is a 64-bit Globally Unique Identifier (GUID) assigned by the manufacturer to each device (e.g., HCA and switch) and each HCA port. The SM may assign additional subnet-specific GUIDs to HCA ports, which is useful when SR-IOV is used. Routers operating at the network layer send packets containing a Global Route Header (GRH) between different subnets. Routers use each device's unique GUID to forward packets between subnets. In this process, the last router in the packet's path towards the destination port in the destination subnet modifies the packet's LRH by replacing the source LID in the LRH with the appropriate LID for the destination port.
[0038] The third type of address is a 128-bit Global Identifier (GID). A GID is a valid IPv6 unicast address, and at least one is assigned to each HCA port. A GID is formed by combining a globally unique 64-bit prefix assigned by the fabric administrator with the GUID address of each HCA port. GIDs are independent of LIDs and therefore remain unaffected by subnet reconfigurations.
[0039] Fat Tree (FTree) Topology and Routing According to one embodiment, some IB-based HPC systems employ fat-tree topologies to take advantage of the useful properties that fat-trees offer, including full bisection bandwidth and inherent fault tolerance due to the availability of multiple paths between each source-destination pair. The initial concept behind fat-trees was to employ thicker links between nodes with more available bandwidth as the tree approaches the root of the topology. The thicker links can help avoid congestion in higher-level switches, and bisection bandwidth is maintained.
[0040] 3 illustrates an example of a tree topology in a network environment, according to one embodiment. As illustrated in FIG. 3, one or more end nodes 201-204 may be connected in a network fabric 200. The network fabric 200 may be based on a fat tree topology including multiple leaf switches 211-214 and multiple spine or root switches 231-234. In addition, the network fabric 200 may include one or more intermediate switches, such as switches 221-224.
[0041] 3, each of end nodes 201-204 may be a multi-homed node, i.e., a single node that is connected to two or more portions of network fabric 200 via multiple ports. For example, node 201 may include ports H1 and H2, node 202 may include ports H3 and H4, node 203 may include ports H5 and H6, and node 204 may include ports H7 and H8.
[0042] In addition, each switch may have multiple switch ports. For example, root switch 231 may have switch ports 1-2, root switch 232 may have switch ports 3-4, root switch 233 may have switch ports 5-6, and root switch 234 may have switch ports 7-8.
[0043] According to one embodiment, the fat-tree routing mechanism is one of the most popular routing algorithms for IB-based fat-tree topologies. The fat-tree routing mechanism is also used in OFED (Open Fabric Enterprise Distribution: A standard software for building and deploying IB-based applications This is implemented in the OpenSM (Network Stack) Subnet Manager.
[0044] The objective of the fat-tree routing mechanism is to generate an LFT that uniformly spreads shortest path routes across the links in the network fabric. The mechanism traverses the fabric in indexing order and assigns the target LIDs of the end nodes, and therefore the corresponding routes, to each switch port. For end nodes connected to the same leaf switch, the indexing order may depend on the switch ports to which the end nodes are connected (i.e., the port numbering sequence). For each port, the mechanism may maintain a port usage counter, and whenever a new route is added, the port usage counter may be used to select the least frequently used port.
[0045] According to one embodiment, in a partitioned subnet, a common partition Nodes that are not members of the Fat Tree group are not allowed to communicate. In practice, this means that some of the routes assigned by the Fat Tree routing algorithm will not be used for user traffic. Problems arise if the Fat Tree routing mechanism generates LFTs for those routes in the same way as other functional routes. This behavior can degrade balancing on the links, since nodes are routed in indexing order. Fat Tree routed subnets generally provide poor isolation between partitions, since routing is done without awareness of partitions.
[0046] According to one embodiment, a Fat-Tree is a hierarchical network topology that can scale with available network resources. Moreover, Fat-Tree is easily constructed using commodity switches arranged at various levels of hierarchy. Furthermore, various variants of Fat-Tree are publicly available, including k-ary-n-tree, Extended Generalized Fat-Tree (XGFT), Parallel Ports Generalized Fat-Tree (PGFT) and Real Life Fat-Tree (RLFT).
[0047] A k-ary-n-tree is a fat tree with n levels, n end nodes and n k n_1The XGFT fat tree comprises a k-ary-n-tree with 100 k ports and 100 Gbps switches, each with 2k ports. Each switch has the same number of connections up and down in the tree. The XGFT fat tree extends the k-ary-n-tree by allowing both a different number of up and down connections for the switches and a different number of connections at each level in the tree. The PGFT definition further extends the XGFT topology to allow multiple connections between switches. A wide variety of topologies can be defined using XGFT and PGFT. However, for practical purposes, a restricted version of PGFT, RLFT, is introduced to define fat trees that are commonly found in modern HPC clusters. RLFT uses the same port count switches for all levels in the fat tree.
[0048] Input / Output (I / O) Virtualization According to one embodiment, I / O Virtualization (IOV) can make I / O available by allowing Virtual Machines (VMs) to access the underlying physical resources. Combining storage traffic and inter-server communication can place an overwhelming burden on a single server's I / O resources, resulting in backlogs and idle processors waiting for data. As the number of I / O requests increases, IOV can provide availability and improve the performance, scalability and elasticity of (virtualized) I / O resources to rival performance levels seen in modern CPU virtualization.
[0049] According to one embodiment, IOVs are desired to enable sharing of I / O resources and to allow access to resources from VMs to be protected. IOVs separate the logical devices exposed to a VM from their physical implementation. Currently, emulation, paravirtualization, direct assignment (DA), and single-root I / O There can be various types of IOV technologies, such as SR-IOV.
[0050] According to one embodiment, one type of IOV technology is software emulation. Software emulation can enable a separated front-end / back-end software architecture. The front-end can be a device driver located in the VM and communicate with the back-end realized by the hypervisor to provide I / O access. The physical device sharing ratio is high, and live migration of VMs is possible. can be achieved with only a few milliseconds of network downtime. However, software emulation introduces additional and undesirable computational overhead.
[0051] According to one embodiment, another type of IOV technique is direct device assignment. Direct device assignment requires that an I / O device be attached to a VM, but the device is not shared between VMs. Direct assignment, or device pass-through, offers near-unique performance with minimal overhead. The physical device is attached directly to the VM, bypassing the hypervisor. However, a drawback of such direct device assignment is that there is no sharing between virtual machines, limiting scalability, such as one physical network card being attached to one VM.
[0052] According to one embodiment, Single Root IOV (SR-IOV) is Hardware virtualization may allow a physical device to appear as multiple independent, lightweight instances of the same device. These instances can be assigned to VMs as pass-through devices and accessed as Virtual Functions (VFs). The hypervisor accesses the device through a unique (per device) fully functional Physical Function (PF). SR-IO SR-IOV mitigates the scalability issues of purely direct allocation. However, a problem presented by SR-IOV is that it can impair VM migration. Among these IOV technologies, SR-IOV extends the PCI Express (PCIe) standard with a means to allow multiple VMs to directly access a single physical device while still maintaining near-inherent performance. This allows SR-IOV to offer superior performance and scalability.
[0053] SR-IOV allows a PCIe device to expose multiple virtual devices that can be shared among multiple guests by assigning one virtual device to each guest. Each SR-IOV device has at least one physical function (PF) and one or more associated virtual functions (VFs). A PF is a communication function controlled by a virtual machine monitor (VMM) or hypervisor. VFs are lightweight PCIe functions, whereas VFs are regular PCIe functions. Each VF has its own base address (BAR) and is assigned a unique requester ID. The unique requester ID is managed by the I / O memory management unit (I / O memory management unit). The IOMMU is responsible for memory and interrupt translations between PFs and VFs.
[0054] Unfortunately, direct device allocation techniques present a barrier for cloud providers in situations where transparent live migration of virtual machines is desired for data center optimization. The essence of live migration is that the memory contents of the VM are copied to a remote hypervisor. Furthermore, the VM is suspended in the source hypervisor and the VM's operation is resumed in the destination. When using software emulation methods, the network interfaces are virtual so that their internal states are stored in memory and then copied. Thus, the downtime can be reduced to a few milliseconds.
[0055] However, migration becomes more difficult when direct device assignment techniques such as SR-IOV are used. In this situation, the entire internal state of the network interface cannot be copied because it is tied to the hardware. No. Instead, the SR-IOV VF assigned to the VM is detached and a live migration is performed, and a new VF is attached at the destination. In the case of InfiniBand and SR-IOV, this process can cause downtime on the order of a few seconds. Furthermore, in the SR-IOV shared port model, the VM's address changes after migration, which adds overhead to the SM and negatively impacts the performance of the underlying network fabric.
[0056] InfiniBand SR-IOV Architecture - Shared Port There can be various types of SR-IOV models, such as a shared port model, a virtual switch model, and a virtual port model.
[0057] 4 illustrates an exemplary shared port architecture according to one embodiment. As shown, a host 300 (e.g., a host channel adapter) may interact with a hypervisor 310. The hypervisor 310 may assign various virtual functions 330, 340, and 350 to a number of virtual machines. Similarly, physical functions may be handled by the hypervisor 310.
[0058] 4, a host (e.g., an HCA) appears as a single port in the network with a single shared LID and shared Queue Pair (QP) space between the physical function 320 and the virtual functions 330, 350, 350. However, each function (i.e., physical function and virtual function) may have their own GID.
[0059] As shown in Figure 4, according to one embodiment, various GIDs can be assigned to virtual and physical functions, and a special queue pair QP0 and QP1 (i.e., a dedicated queue pair used for InfiniBand management packets) is owned by the physical function. These QPs are exposed to the VFs as well, but the VFs are not allowed to use QP0 (all SMPs coming from the VF towards QP0 are discarded), and QP1 can act as a proxy for the actual QP1 owned by the PF.
[0060] According to one embodiment, the shared port architecture may enable highly scalable data centers that are not limited by the number of VMs (attached to the network by being assigned to virtual functions) because LID space is only consumed by the physical machines and switches in the network.
[0061] However, a drawback of the shared port architecture is that it cannot provide transparent live migration, which hampers the possibilities for flexible VM placement. Because each LID is associated with a particular hypervisor and is shared among all VMs residing on the hypervisor, a migrating VM (i.e., a virtual machine migrating to a destination hypervisor) must change its LID to the LID of the destination hypervisor. Furthermore, as a result of the restricted QP0 access, a subnet manager cannot be run inside a VM.
[0062] InfiniBand SR-IOV Architecture Model - Virtual Switch (vSwitch) 5 illustrates an exemplary vSwitch architecture according to one embodiment. As shown, a host 400 (e.g., a host channel adapter) can interact with a hypervisor 410, which in turn provides various virtual functions 430, 440, 442, 4444, and 446. 0 and 450 can be assigned to several virtual machines. Similarly, physical functions can be handled by hypervisor 410. Virtual switch 415 can also be handled by hypervisor 401.
[0063] According to one embodiment, in the vSwitch architecture, each virtual function 430, 440, 450 is a full virtual Host Channel Adapter (vHCA), which means that in hardware, the VM assigned to the VF is assigned a set of IB addresses (e.g., GID, GUID, LID) and a dedicated QP space. To the rest of the network and SM, the HCA 400 appears as a switch with additional nodes connected via virtual switch 415. The hypervisor 410 can use the PF 420, and the VM (attached to the virtual function) can use the VF.
[0064] According to one embodiment, the vSwitch architecture provides transparent virtualization. However, because each virtual function is assigned a unique LID, the number of available LIDs is quickly consumed. Similarly, if many LID addresses are used (i.e., one for each physical function and each virtual function), more communication paths must be computed by the SM and more subnet management packets (SMPs) must be sent to the switch to update their LFTs. For example, the computation of communication paths can take several minutes in a large network. Since the LID space is limited to 49151 unicast LIDs and each VM (through a VF) occupies one LID for each physical node and switch, the number of active VMs is limited by the number of physical nodes and switches in the network and vice versa.
[0065] InfiniBand SR-IOV Architecture Model - Virtual Port (vPort) 6 illustrates an exemplary vPort concept according to one embodiment. As shown, a host 300 (e.g., a host channel adapter) can interact with a hypervisor 410 that can assign various virtual functions 330, 340, and 350 to a number of virtual machines. Similarly, physical functions can be handled by the hypervisor 310.
[0066] According to one embodiment, the vPort concept is loosely defined to give vendors implementation freedom (e.g., the definition does not specify that implementations should be SRIOV-only), and the purpose of the vPort is to standardize how VMs are handled in a subnet. With the vPort concept, both SR-IOV shared port-like architectures and vSwitch-like architectures, or combinations of these architectures, can be defined, which may be more scalable in both spatial and performance domains. Also, vPorts support optional LIDs, and unlike shared ports, the SM is aware of all vPorts available in a subnet, even if the vPorts do not use dedicated LIDs.
[0067] InfiniBand SR-IOV Architecture Model - vSwitch with pre-populated LID According to one embodiment, the present disclosure provides a system and method for providing a vSwitch architecture with pre-populated LIDs.
[0068] FIG. 7 illustrates an exemplary vSwitch architecture with pre-populated LIDs, according to one embodiment. As shown in the figure, several switches 501-504 are configured to communicate with InfiniBand within a network switching environment 600 (e.g., an IB subnet). In one embodiment, communications can be established between members of a fabric, such as a fabric 510, 520, 530. The fabric can include several hardware devices, such as host channel adapters 510, 520, 530. Additionally, the host channel adapters 510, 520, and 530 can interact with hypervisors 511, 521, and 531, respectively. Each hypervisor, along with the host channel adapters, can further interact with, configure, and assign to several virtual machines several virtual functions 514, 515, 516, 524, 525, 526, 534, 535, and 536. For example, virtual machine 1 550 can be assigned to virtual function 1 514 by hypervisor 511. Hypervisor 511 can additionally assign virtual machine 2 551 to virtual function 2 515, and virtual machine 3 552 to virtual function 3 556. Hypervisor 531 may assign virtual machine 4 552 to virtual function 3 516. Hypervisor 531 may further assign virtual machine 4 553 to virtual function 1 534. The hypervisor may access the host channel adapters through fully capable physical functions 513, 523 and 533 on each of the host channel adapters.
[0069] According to one embodiment, each of the switches 501-504 may include several ports (not shown) that are used to configure linear forwarding tables to direct traffic within the network switching environment 600.
[0070] According to one embodiment, virtual switches 512, 522 and 532 can be handled by respective hypervisors 511, 521, 531. In such a vSwitch architecture, each virtual function is a full virtual host channel adapter (vHCA), which means that in hardware, a VM assigned to a VF is assigned a set of IB addresses (e.g., GID, GUID, LID) and a dedicated QP space. To the rest of the network and SM (not shown), HCAs 510, 520 and 530 appear as switches with additional nodes connected through virtual switches.
[0071] According to one embodiment, the present disclosure provides a system and method for providing a vSwitch architecture with pre-populated LIDs. With reference to FIG. 7, LIDs are pre-populated for various physical functions 513, 523, and 533, as well as virtual functions 514-516, 524-526, 534-536 (even virtual functions not currently associated with an active virtual machine). For example, physical function 513 is pre-populated with LID 1, and virtual function 1 534 is pre-populated with LID 10. When a network is booted, LIDs are pre-populated in SR-IOV vSwitch-enabled subnets. Populated VFs are assigned LIDs as shown in FIG. 7, even if all of the VFs are not occupied by VMs in the network.
[0072] According to one embodiment, many similar physical host channel adapters can have two or more ports (with two ports shared for redundancy), and a virtual HCA is also represented by two ports and can be connected to an external IB subnet via one or more virtual switches.
[0073] According to one embodiment, in a LID pre-populated vSwitch architecture, each hypervisor consumes one LID for itself via the PF and can consume one or more LIDs for each additional VF. The sum of all VFs available across all hypervisors in an IB subnet gives the maximum amount of VMs that can run in the subnet. For example, in an IB subnet with 16 virtual functions per hypervisor in the subnet, each hypervisor can consume 17 LIDs in the subnet (one for each 16 virtual functions). LIDs for each hypervisor and one LID for the physical function. In such an IB subnet, the theoretical hypervisor limit for a single subnet is dictated by the number of available unicast LIDs, which is 2891 (49151 available LIDs divided by 17 LIDs per hypervisor), and the total number of VMs (i.e., limit) is 46256 (2891 hypervisors multiplied by 16 VFs per hypervisor). (In practice, these numbers are smaller, since each switch, router, or dedicated SM node in the IB subnet consumes LIDs as well.) Note that vSwitches do not need to occupy additional LIDs, since they can share LIDs with the PFs.
[0074] According to one embodiment, in a vSwitch architecture with pre-populated LIDs, once the network is booted, communication paths are calculated for all LIDs. If a new VM needs to be started, the system does not need to add a new LID in the subnet. Otherwise, the operation that may completely reconfigure the network, including recalculating paths, is the most time-consuming element. Instead, available ports for VMs are located in one of the hypervisors (i.e., available virtual functions), and virtual machines are attached to the available virtual functions.
[0075] According to one embodiment, the LID pre-populated vSwitch architecture also enables the ability to compute and use different routes to reach different VMs hosted by the same hypervisor. Essentially, this allows such subnets and networks to use LID-Mask-Control-like (LMC-like) features to provide alternative routes towards one physical machine without being bound by the constraints of LMC requiring LIDs to be contiguous. The freedom to use non-contiguous LIDs is particularly useful when a VM needs to migrate and its associated LID is delivered to the destination.
[0076] In accordance with one embodiment, several considerations may be taken into account along with the above-mentioned advantages of a LID pre-populated vSwitch architecture: For example, because LIDs are pre-populated in an SR-IOV vSwitch-enabled subnet when the network is booted, the initial route computation (e.g., at startup) may take longer than if the LIDs were not pre-populated.
[0077] InfiniBand SR-IOV Architecture Model - vSwitch with Dynamic LID Allocation According to one embodiment, the present disclosure provides a system and method for providing a vSwitch architecture with dynamic LID allocation.
[0078] FIG. 8 illustrates an exemplary vSwitch architecture with dynamic LID assignment, according to one embodiment. As shown, several switches 501-504 can establish communication between members of a fabric, such as an InfiniBand fabric, within a network switching environment 700 (e.g., an IB subnet). The fabric can include several hardware devices, such as host channel adapters 510, 520, 530. The host channel adapters 510, 520, and 530 can further interact with hypervisors 511, 521, and 531, respectively. Each hypervisor, along with the host channel adapters, can further interact with, configure, and assign to several virtual machines several virtual functions 514-516, 524-526, 534-536. For example, virtual machine 1 550 can be assigned to virtual function 1 514 by hypervisor 511. Hypervisor 511 can additionally configure virtual machine 2. Hypervisor 531 may assign virtual machine 551 to virtual function 2 515 and virtual machine 3 552 to virtual function 3 516. Hypervisor 531 may further assign virtual machine 4 553 to virtual function 1 534. The hypervisor may access the host channel adapters via fully functional physical functions 513, 523 and 533 on each of the host channel adapters.
[0079] According to one embodiment, each of the switches 501-504 may include several ports (not shown) that are used to configure linear forwarding tables to direct traffic within the network switching environment 700.
[0080] According to one embodiment, virtual switches 512, 522 and 532 can be handled by respective hypervisors 511, 521 and 531. In such a vSwitch architecture, each virtual function is a full virtual host channel adapter (vHCA), which means that in hardware, a VM assigned to a VF is assigned a set of IB addresses (e.g., GID, GUID, LID) and a dedicated QP space. To the rest of the network and SM (not shown), HCAs 510, 520 and 530 appear as switches with additional nodes connected through the virtual switches.
[0081] According to one embodiment, the present disclosure provides a system and method for providing a vSwitch architecture with dynamic LID assignment. With reference to FIG. 8, various physical functions 513, 523, and 533 are dynamically assigned LIDs, with physical function 513 receiving LID1, physical function 523 receiving LID2, and physical function 533 receiving LID3. Those virtual functions associated with active virtual machines may also receive dynamically assigned LIDs. For example, virtual machine 1 550 is active and associated with virtual function 1 514, so virtual function 514 may be assigned LID5. Similarly, virtual function 2 515, virtual function 3 516, and virtual function 1 534 are each associated with an active virtual function. As such, these virtual functions are assigned LIDs: LID 7 is assigned to virtual function 2 515, LID 11 is assigned to virtual function 3 516, and LID 9 is assigned to virtual function 1 534. Unlike a vSwitch, which has pre-populated LIDs, virtual functions 524-526 and 534-536 that are not currently associated with an active virtual machine do not receive an LID assignment.
[0082] According to one embodiment, with dynamic LID allocation, initial path computation can be substantially reduced: when a network is booting for the first time and no VMs are present, a relatively small number of LIDs can be used for initial path computation and LFT distribution.
[0083] According to one embodiment, many similar physical host channel adapters can have two or more ports (with two ports shared for redundancy), and a virtual HCA is also represented by two ports and can be connected to an external IB subnet via one or more virtual switches.
[0084] According to one embodiment, when a new VM is created in a system utilizing a vSwitch with dynamic LID allocation, a free VM slot is found to determine on which hypervisor the newly added VM should be booted, and a unique unused unicast LID is found as well. However, there is no known route in the switch's LFT and network to handle the newly added LID. Computing a new set of routes to handle the newly added VM is undesirable in a dynamic environment where several VMs may be booted every minute. Large IB Subnets In ,computing a new set of routes can take several minutes, and this procedure would have to be repeated every time a new VM was booted.
[0085] Advantageously, according to one embodiment, since all VFs in a hypervisor share the same uplink with the PF, there is no need to compute a new set of routes. It is only necessary to iterate through the LFTs of all physical switches in the network, copy forwarding ports from the LID entries belonging to the PF of the hypervisor (where the VM is created) to the newly added LID, and send a single SMP to update the corresponding LFT block of the particular switch. This eliminates the need for the system and method to compute a new set of routes.
[0086] According to one embodiment, the LIDs assigned in a vSwitch with a dynamic LID allocation architecture do not need to be contiguous. Comparing the LIDs assigned on the VMs on each hypervisor in a vSwitch with pre-populated LIDs and a vSwitch with dynamic LID allocation, it can be seen that the LIDs assigned in the dynamic LID allocation architecture are discontinuous, whereas the pre-populated LIDs are essentially contiguous. Furthermore, in a vSwitch dynamic LID allocation architecture, when a new VM is created, the next available LID is used throughout the life of the VM. Conversely, in a vSwitch with pre-populated LIDs, each VM inherits the LID already assigned to the corresponding VF, and in a network without live migration, VMs assigned consecutively to a given VF get the same LID.
[0087] According to one embodiment, a vSwitch with dynamic LID allocation architecture can solve the shortcomings of a vSwitch with pre-populated LID architecture model at the expense of some additional network and runtime SM overhead. Every time a VM is created, the LFT of the physical switch in the subnet is updated with the newly added LID associated with the created VM. This operation requires one Subnet Management Packet (SMP) to be sent per switch. Since each VM uses the same route as its host hypervisor, features such as LMC are also unavailable. However, there is no limit on the total number of VFs present on all hypervisors, and the number of VFs may exceed the unicast LID limit. In such a case, of course, not all VFs on active VMs can be granted at the same time, and having more spare hypervisors and VFs adds flexibility to recover and optimize failures in a fragmented network when operating near the unicast LID limit.
[0088] InfiniBand SR-IOV Architecture Model - Dynamic LID Allocation and LID Pre-Populated vSwitch FIG. 9 illustrates an exemplary vSwitch architecture with dynamic LID allocation and pre-populated LIDs for a vSwitch, according to one embodiment. As shown, several switches 501-504 can establish communication between members of a fabric, such as an InfiniBand fabric, within a network switching environment 800 (e.g., an IB subnet). The fabric can include several hardware devices, such as host channel adapters 510, 520, 530. The host channel adapters 510, 520, and 530 can further interact with hypervisors 511, 521, and 531, respectively. Each hypervisor, along with the host channel adapters, can further interact with, configure, and assign several virtual functions 514, 515, 516, 524, 525, 526, 534, 535, and 536 to several virtual machines. For example, virtual machine 1 550 can be configured by hypervisor 511 to provide virtual machine access to the virtual machines. The hypervisor 511 can also assign a virtual machine 2 Hypervisor 521 may assign virtual machine 3 552 to virtual function 3 526. Hypervisor 531 may further assign virtual machine 4 553 to virtual function 2 535. The hypervisor may access the host channel adapters via fully functional physical functions 513, 523 and 533 on each of the host channel adapters.
[0089] According to one embodiment, each of switches 501-504 may include several ports (not shown) that are used to configure linear forwarding tables to direct traffic within network switching environment 800.
[0090] According to one embodiment, virtual switches 512, 522 and 532 can be handled by respective hypervisors 511, 521, 531. In such a vSwitch architecture, each virtual function is a full virtual host channel adapter (vHCA), which means that in hardware, the VM assigned to the VF is assigned a set of IB addresses (e.g., GID, GUID, LID) and a dedicated QP space. To the rest of the network and SM (not shown), HCAs 510, 520 and 530 appear as switches with additional nodes connected through the virtual switches.
[0091] According to one embodiment, the present disclosure provides a system and method for providing a hybrid vSwitch architecture with dynamic LID allocation and pre-populated LIDs. With reference to FIG. 9, a vSwitch with a pre-populated LID architecture may be deployed in hypervisor 511, and a vSwitch with pre-populated LIDs and dynamic LID allocation may be deployed in hypervisor 521. A vSwitch with dynamic LID allocation may be deployed in hypervisor 531. Thus, physical function 513 and virtual functions 514-516 have their LIDs pre-populated (i.e., even virtual functions that are not attached to an active virtual machine are assigned LIDs). Physical function 523 and virtual function 1 524 may have their LIDs pre-populated, while virtual function 2 525 and virtual function 3 526 have their LIDs dynamically assigned (i.e., virtual function 2 525 is available for dynamic LID assignment, and virtual function 3 526 has been dynamically assigned a LID of 11 because it is attached to virtual machine 3 552). Finally, the functions (physical and virtual functions) associated with hypervisor 3 531 may have their LIDs dynamically assigned. This results in virtual function 1 534 and virtual function 3 536 being available for dynamic LID assignment, while virtual function 2 535 has been dynamically assigned a LID of 9 because it is attached to virtual machine 4 553.
[0092] According to an embodiment as shown in Figure 8, where both LID pre-populated vSwitches and dynamic LID allocation vSwitches are utilized (independently or in combination within any given hypervisor), the number of pre-populated LIDs per host channel adapter can be defined by a fabric administrator and can be in the range of 0 <= pre-populated VFs <= total VFs (per host channel adapter). The VFs available for dynamic LID allocation can be found by subtracting the number of pre-populated VFs from the total number of VFs (per host channel adapter).
[0093] According to one embodiment, many similar physical host channel adapters are connected to two or more ports. A virtual HCA may have an external IB subnet (with two ports shared for redundancy), and a virtual HCA may also be represented by two ports and connected to an external IB subnet through one or more virtual switches.
[0094] InfiniBand - Inter-Subnet Communication (Fabric Manager) According to one embodiment, in addition to providing an InfiniBand fabric within a single subnet, embodiments of the present disclosure may also provide an InfiniBand fabric that spans two or more subnets.
[0095] FIG. 10 illustrates an exemplary multi-subnet InfiniBand fabric according to one embodiment. As shown, within subnet A 1000, a number of switches 1001-1004 may provide communication within subnet A 1000 (e.g., an IB subnet) between members of a fabric, such as an InfiniBand fabric. The fabric may include a number of hardware devices, such as, for example, host channel adapters 1010. The host channel adapters 1010 may then interact with a hypervisor 1011. The hypervisor may then set up a number of virtual functions 1014 in association with the host channel adapters it interacts with. The hypervisor may additionally assign virtual machines to each of the virtual functions, such as virtual machine 1 10105 being assigned to virtual function 1 1014. The hypervisor may access their associated host channel adapters via a fully functional physical function, such as physical function 1013, on each host channel adapter. Within subnet B 1040, a number of switches 1021-1024 may provide communication within subnet B 1040 (e.g., an IB subnet) between members of a fabric, such as an InfiniBand fabric. The fabric may include a number of hardware devices, such as, for example, host channel adapters 1030. The host channel adapters 1030 may then interact with a hypervisor 1031. The hypervisor may then set up a number of virtual functions 1034 in association with the host channel adapters it interacts with. The hypervisor may additionally assign virtual machines to each of the virtual functions, such as virtual machine 2 1035 being assigned to virtual function 2 1034, and so on. The hypervisor may access their associated host channel adapters via a fully functional physical function, such as physical function 1033, on each host channel adapter.Although only one host channel adapter is shown in each subnet (i.e., Subnet A and Subnet B), it should be understood that multiple host channel adapters and their corresponding components can be included within each subnet.
[0096] According to one embodiment, each of the host channel adapters may be further associated with a virtual switch, such as virtual switch 1012 and virtual switch 1032, and each HCA may be set up with a different architectural model, as described above. Although both subnets in Figure 10 are shown using a vSwitch with a pre-populated LID architectural model, this does not imply that all such subnet configurations must follow a similar architectural model.
[0097] According to one embodiment, at least one switch in each subnet may be associated with a router, with switch 1002 in subnet A 1000 associated with router 1005, switch 1021 in subnet B 1040 associated with router 1006, and so on.
[0098] According to one embodiment, at least one device (e.g., a switch, a node, etc.) The fabric manager may be associated with a fabric manager (not shown). The fabric manager may be used, for example, to discover inter-subnet fabric topologies, create fabric profiles (e.g., virtual machine fabric profiles), and build virtual machine related database objects that form the basis for building the virtual machine fabric profiles. In addition, the fabric manager may define legal inter-subnet connections with respect to which subnets are allowed to communicate over which router ports using which partition numbers.
[0099] According to one embodiment, when traffic at a source, such as Virtual Machine 1 in Subnet A, is addressed to a destination in a different subnet, such as Virtual Machine 2 in Subnet B, the traffic is addressed to a router in Subnet A, i.e., Router 1005, which can then pass the traffic to Subnet B via its link with Router 1006.
[0100] Overall, the exemplary embodiments provide for a large number of nodes in a very large fabric, and further provide for multiple subnets, each with a subnet boundary. The subnet boundaries allow for independent subnet managers (SMs). In particular, the subnet boundaries allow for one independent SM in / for each of the multiple subnets in a very large fabric.
[0101] Furthermore, highly efficient packet routing is made possible through the use of a simple lookup mechanism in the Linear Forwarding Table (LFT) lookup protocol to route packet flows in a unique manner across the fabric.
[0102] Local / inter-subnet routing: For Layer 2 (L2) addressing, the exemplary embodiment uses "normal" local ID-based routing / forwarding within each subnet: the 16-bit Destination Local Identifier (DLID) in the Local Route Header (LRH) of the IB packet is looked up as it is being routed on a switch port, and the output port is quickly discovered by directly indexing the LFT in hardware using the DLID value in the IB packet's LRH.
[0103] Layer 3 (L3) Addressing / Addressing: The Global Route Header (GRH) of a packet in the exemplary embodiment essentially uses a 128-bit scheme, i.e., a unique 64-bit node address - "GUID", and a 64-bit subnet prefix number. The exemplary embodiment provides for a very large fabric that is divided into many independent subnets, with the same route / routing capabilities being made available across the different subnets. That is, in the exemplary embodiment, paths between endpoints can be routed in the same way as if there was a single large subnet.
[0104] In a Virtual Machine (VM), a physical end node can represent many virtual endpoints, and each virtual endpoint has (and should have for legacy compatibility reasons) its own full IB address, including the 16-bit DLID. However, the 16-bit DLID space quickly becomes exhausted. In essence, each virtual subnet has more space than there is address space pointing to using the 16-bit DLID.
[0105] Thus, in accordance with an exemplary embodiment, the entire fabric is divided into a set of independent subnets, and a private "LID space" is provided, with the 64-bit L3 address. In accordance with the mechanism of the exemplary embodiment, instead of using the entire 64 bits of the L3 address to encode the subnet number, the embodiment provides hardware support for extracting the designated bit field (ISRN) from the 64-bit subnet prefix number portion of the L3 address. Thus, when there is communication from (virtual) subnet A to (virtual) subnet B over an intermediate infrastructure, the exemplary embodiment extracts, in the designated bit field of the 64-bit subnet prefix number portion of the L3 address, a) The LID and / or its LID in the destination subnetwork and b) Encode both the "intermediate" LIDs of the "intermediate switch fabric" infrastructure.
[0106] Global Route Header (GRH) based Linear Forwarding Table (LFT) lookup To reduce the amount of switch / router on-chip resources required to enable scalable, flexible, and deterministic routing / forwarding for both intra-subnet and inter-subnet traffic within a single fabric configuration with coordinated management of routing / forwarding across the IB fabric, in accordance with an embodiment, a scheme is used to identify routes between subnets via numbers that are used for linear table lookups in the same manner as LID-based table lookups within a single subnet. In this regard, FIG. 11 illustrates a diagram of a data packet format using an InfiniBand (IB) addressing scheme to access packet forwarding logic in a network environment, in accordance with an embodiment. As shown in the figure, a first IB subnet 1100 can include multiple physical (or virtual) nodes 1101 and 1102 and a subnet administrator (SA) 1120. A source node 1101 in the first IB subnet 1100 can send a packet (e.g., IB packet 1110) to a destination node 1103 in a second IB subnet other than the first IB subnet 1100 via an intermediate node 1102. Destination node 1103 is shown with a dotted line to indicate that it is in the second IB subnet.
[0107] The IB packet 1110 may include a payload 1114 and various headers according to the IB protocol. These headers may include a global routing header (GRH) 1111, a local routing header (LRH) 1112, and other headers 1113. Additionally, the IB packet 1110 may be applied with various cyclic redundancy checks (CRCs) 115.
[0108] According to one embodiment, the system can utilize the subnet prefix portion of the destination global identifier (DGID) 1121 in the GRH 1111 and the destination local identifier (DLID) 1122 in the LRH 1112 to support intra-subnet and inter-subnet addressing in the first IB subnet 1100 and the second IB subnet.
[0109] For example, the system can set the DLID 1122 in the IB packet 1110 to be the DLID for intermediate node 1102 (instead of the DLID for destination node 1103). Within the IB subnet 1100, the IB packet 1110 can be routed to the intermediate node 1102 via a linear forwarding table LFT lookup based on the DLID 1122 resolved by the SA 1120. Thus, the IB packet 1110 can be processed using packet forwarding logic provided on the intermediate node 1102. Similar packet forwarding logic can be provided in the other nodes 1101 and 1103 as needed or desired.
[0110] Additionally, the system can use a selected portion of the DGID 1121 in the GRH 1111 to indicate its DLID for the destination node 1103. Thus, the packet forwarding logic in the intermediate node 1102 can resolve (or obtain) the actual DLID for the destination node 1103 based on the DGID 1121 information in the GRH 1111.
[0111] According to one embodiment, the intermediate node 1102 may perform additional packet header 1113 and / or payload 1114 modifications as necessary. For example, fabric-level access control may be configured such that the source node 1101 and destination node 1103 are limited members of associated partitions or are not members of the same partition. In such a case, the intermediate node 1102 may be permitted to change the P_Key value in the IB packet 1110 before forwarding the modified packet to the destination node 1103.
[0112] 11 illustrates an example packet 1100 DGID portion 1121 that includes a subnet prefix forwarding portion 1131 that includes an Inter-Subnet Route Number (ISRN) 1141 that is used with a target subnet number 1142 and a target LID 1143 according to one embodiment. The ISRN 1141 allows the same Linear Forwarding Table (LFT) to be used by fabric switches configured according to an embodiment to make both intra-subnet forwarding decisions alongside inter-subnet forwarding decisions. An embodiment supports both fabric local / internal subnet numbers and "global" subnet numbers so that inter-subnet traffic within a single fabric configuration can use different subnet prefix values than traffic between different fabrics.
[0113] To allow an end-to-end route to be completely defined within a packet header without the need to perform any mapping from GRH.DGID to DLID at any point along the path from the source to the final destination, one embodiment provides a GRH.DGID subnet prefix format that includes both the inter-subnet route number, the target "fabric local subnet number," and the destination LID value in the target subnet.
[0114] A scheme or protocol of forwarding domains associated with switch / router ports is supported in one exemplary embodiment, and each forwarding domain type defines what address information is used for lookup in the LFT and whether a change in forwarding domain type means that the local route header needs to be updated with the DLID value from the GRH.
[0115] To support a three-level forwarding domain structure with a source subnet, an intermediate switch fabric, and a target subnet, the above DGID.subnet prefix format is used according to an embodiment. The source node 1101 and intermediate node 1102 in the source subnet 1100 use the first LRH.DLID of the packet 1100 for Linear Forwarding Table (LFT) lookup, and the transition to the destination node 1103 in the intermediate switch fabric means that the inter-subnet route number 1141 of the subnet prefix forwarding portion 1131 is used for the LFT lookup. The intermediate switch fabric may be referred to herein as the "core fabric" for convenience.
[0116] To indicate that a packet is being forwarded within an intermediate switch fabric type forwarding domain, according to one embodiment, a special DLID value is used, which is matched against a value stored in a register at the ingress switch port. The special DLID value represents a "special switch port," which is the "ending" switch port of the local virtual subnet. This allows a single LFT lookup operation to be based on the relevant section of the GRH.DGID.subnet prefix rather than on the LRH.DLID value.
[0117] According to one embodiment, to determine when a change of forwarding domain occurs, each ingress switch port includes one or more registers with type status for each possible egress port in the same switch node, allowing packet processing on the ingress path to prepare the packet for the next forwarding domain if the target port looked up in the LFT indicates a change of forwarding domain type.
[0118] According to an exemplary embodiment, if the IB packet 1110 is an intra-subnet forwarding from a port in the source subnet 1100, such as from a port at the source node 1101, to a port also in the source subnet 1100, such as to a port at an intermediate node 1102, the LRH.DLID of the packet is used directly to index the LFT at each switch for standard intra-subnet packet forwarding.
[0119] Further, according to an exemplary embodiment, if the IB packet 1110 is an inter-subnet forwarding from a port in the source subnet 1100, such as from a port of the source node 1101, to an intermediate switch fabric outside the source subnet 1100, the DLID 1122 portion of the local route header 1112 of the packet 1110 is locally updated to a value configured to represent an intermediate switch fabric forwarding in the associated intermediate switch fabric outside the source subnet 1100.
[0120] According to yet another exemplary embodiment, with continued reference to FIG. 11, if the IB packet is an inter-subnet forwarding from an intermediate switch fabric outside the source subnet 1100, such as destination node 1103, to a target source subnet 1100, such as source node 1101 or intermediate node 1102, the LRH.DLID is updated with the DLID field from the DGID.subnet prefix, which is then used to forward the packet to the final destination port using an LFT lookup in the target source subnet 1100. This transition may also verify whether the target local subnet number in the packet GRH.DGID.subnet prefix matches the local subnet number that this port represents. This check is preferably based on a register in each such port.
[0121] In an exemplary embodiment, any switch port can represent a "gateway" between a local (source) subnet and an intermediate switch fabric, and each such gateway switch port is identified by one or more specific DLIDs in the local subnet. Thus, it is possible to realize a fat-tree based topology in which multiple parallel core fabrics can exist. In this way, the addressing scalability of the complete fabric can scale with the topology, since each parallel core fabric can represent an independently routed domain. The 48K LFT size is only a limitation within each of these parallel core fabrics, and the number of individual "inter-subnet route numbers" within the complete core fabric is 48K times the number of parallel core fabrics.
[0122] Additionally, according to one embodiment, to be able to handle "random" connectivity between different fabric configurations with independent management of internal routes, an embodiment provides a support scheme for supporting both fabric local / internal subnet numbers alongside "global" subnet numbers, such that inter-subnet traffic within a single fabric configuration uses different subnet prefix values than traffic between different fabrics. The support scheme also provides TCAM-based lookup and mapping of the complete DGID value to allow forwarding of arbitrary subnet prefixes and GUID values.
[0123] Fabric Model As an overview of the core fabric model according to an exemplary embodiment, the IB fabric configuration facilitates scaling to very large fat-tree configurations that can be decomposed into individual subnets while still maintaining the flexibility to explicitly route individual paths to individual physical or virtual destinations. The system is built as a single fabric configuration that is managed in a hierarchical manner, but the top-level management entity has full visibility of the complete fabric.
[0124] To provide greater system architecture flexibility while still supporting native IB connectivity between different independently managed systems, the fabric model of the exemplary embodiment allows "any" IB connectivity between different fabric configurations / topologies that are not managed by the same single top-level entity.
[0125] To achieve the above goals and to provide inter-subnet communication within a single fabric configuration, the exemplary embodiment encodes path / route information as part of the subnet prefix portion 1131 of the DGID field in the packet GRH. The exemplary embodiment also supports standard subnet prefix schemes that enable IB-IB routing between independent IB fabrics.
[0126] In addition to scaling to very large configurations with hundreds or thousands of physical hosts, the system of the exemplary embodiment also facilitates the use of very small subnet configurations, where a single integrated circuit chip may be used to implement multiple virtual switches, each representing a different IB subnet that is managed by a different set of subnet managers (SMs). Additionally, even very large overall fabric configurations may still use such small subnet configurations as necessary or desired to reflect the desired decomposition into logical system units. However, some configurations may have a very large single subnet topology that is still part of a larger single fabric.
[0127] In general, the need for flexibility in upscaling and downscaling poses challenges in terms of system-on-chip resources for handling packet routing and forwarding decisions, including both intra-subnet and inter-subnet forwarding, and in particular the ability to address individual virtual endpoints in different subnets.
[0128] Embodiments herein provide a scheme to reduce the amount of system-on-chip resources required to enable scalable, flexible, and deterministic routing / forwarding for both intra-subnet and inter-subnet traffic within a single fabric configuration. In particular, an "Inter-Subnet Route Number" (ISRN) can be used to identify inter-subnet routes via a number that can be used for table lookups in a manner similar to LID-based table lookups within a single subnet. Additionally, standard or "legacy" linear forwarding tables are otherwise used for both intra-subnet and inter-subnet forwarding decisions. For example, FIG. 12 illustrates a portion of a Linear Forwarding Table (LFT) 1200 that can be equivalently indexed from 0-48k by either an LRH.DLID value or an ISRN value. In the illustrated LFT 1200, each entry in the table contains either a supported port number or a "0xFF" entry representing an unused entry. Additionally, inter-subnet traffic within a single fabric configuration may be scaled differently than traffic between different fabrics. The present invention supports both fabric local / internal subnet numbers and "global" subnet numbers so that a subnet prefix value can be used. Additionally, a GRH.DGID.subnet prefix format is provided and supported. In an exemplary embodiment, the GRH.DGID subnet prefix format contains both an "inter-subnet route number," a target "fabric local subnet number," and a destination LID value in the target subnet, to allow an end-to-end route to be completely defined in the packet header without the need to perform any mapping from GRH.DGID to DLID at any point along the path from the source to the final destination.
[0129] Leaf-switch based forwarding is provided to allow for hierarchical topologies with "randomized" multi-path forwarding between individual subnets. Additionally, to be able to handle "random" connections between different fabric configurations, the exemplary embodiment supports both fabric local / internal subnet numbers and "global" subnet numbers such that inter-subnet traffic within a single fabric configuration can use different subnet prefix values than traffic between different fabrics, and provides TCAM-based lookup and mapping of full DGID values to allow forwarding of arbitrary subnet prefix and GUID values.
[0130] Local Fabric According to one embodiment, a "local fabric" is a physical IB fabric infrastructure that represents connectivity within and between one or more physical "leaf subnet" and / or "core fabric" topologies. The local fabric is managed in a hierarchical manner, but with the constraint that a top-level central management entity, e.g., control plane software, can manage the assignment of arbitrary ID values, and adheres to both physical connectivity and routing (packet forwarding) constraints throughout the complete local fabric (i.e., a "global view" of the local fabric).
[0131] Remote Fabric According to one embodiment, a "remote fabric" is any topology / infrastructure that is connected to a local fabric via one or more IB links, but the ports on the remote side of the links are not controlled by the same top-level central management entity as the local fabric. A port that connects two independent local fabrics is typically configured as a router port. These two ports thus form a minimum IB subnet, according to one embodiment.
[0132] Gateway Subnet According to one embodiment, a "gateway subnet" is a "simple" physical IB subnet typically formed by connecting one router port from one local fabric with just one router port from the other local fabric (i.e., no intermediate switch). The gateway subnet has a simple configuration established at link-up time, with packet forwarding policies controlled independently by the routers on each side. The two router ports implement a mutual discovery protocol to learn about the remote fabric. Alternatively and / or in addition, management input in each local fabric can be selectively used as necessary or desired to define one or more remote subnet numbers and sets of individual GIDs to be routed through different gateway subnets. The key aspect of the gateway subnet definition here is to place the boundary between the two top-level management domains on the IB link, not the router or switch devices to be managed.
[0133] More complex gateway subnets imply that switches in the gateway subnet also require management, introducing complexity and policy issues that are not present or are not present much in the case of direct links. Thus, issues of gateway subnet ownership become more problematic than having well-defined owners on each side of a single link. However, as in large-scale networking, it is possible to imagine more complex configurations in which multiple local fabrics are connected through one or more other local fabrics (i.e., an administrator of an intermediate local fabric determines how different connected remote fabrics are allowed to communicate through this local fabric). The embodiments herein are applicable to this more complex gateway model, since each local fabric can have connectivity to multiple other local fabrics. In any case, even in these types of intermediate local fabrics, the boundary between any pair of local fabrics is preferably the minimum gateway subnetwork defined above.
[0134] Leaf Subnet A "leaf subnet" is a physical IB subnet with its own unicast and multicast LID space. Host-type end nodes, such as compute and storage servers, are typically connected to a local fabric through a single leaf subnet. However, a single host may also be connected to multiple leaf subnets as desired. Leaf subnets are configured and controlled by one or more cooperating Subnet Manager (SM) instances, and within a leaf subnet, packets are forwarded based on the LRH.DLID portion of the packet header. Leaf subnets may be configured with legacy switches and are identified by an administratively defined "Identification Subnet Number" (ISN) that represents the policy input to a set of Subnet Managers controlling the leaf subnet along with a central top-level management entity. The ISN may be globally unique, and is preferably unique across all local fabrics that can be directly connected via IB links, i.e., via a gateway subnet. Each leaf subnet may be connected to one or more "core fabrics" via ports, and each leaf subnet, upon connection to at least one core fabric, is associated with at least one "fabric local subnet number" (FLSN). FLSN values have scope for the local fabric and are assigned by the local fabric management infrastructure. In addition, leaf subnets may be connected to other IB subnets through router ports that do not represent core fabric connectivity. In the general case, such a "global" connection represents a connection to a remote fabric through a gateway subnet, and for this kind of global connection, the ISN value is used for DGID-based addressing of this leaf subnet from the remote subnet / fabric. However, it is also possible to connect two leaf subnets in this way in the same local fabric, i.e., without using a local core fabric. This kind of connection may use either ISN- or FLSN-based DGID addressing.Router port-based connections directly from leaf subnets, within the local fabric or to remote fabrics, may involve either system ports or other router implementations.
[0135] Core Fabric According to one embodiment, a "core fabric" is a topology according to an exemplary embodiment that connects one or more leaf subnets within the context of a single local fabric. The term "intermediate switched fabric" may be used here instead. According to one embodiment, a core fabric provides additional connectivity between different sections of a single leaf subnet, e.g., sections that already have direct connectivity within the same physical subnet. In the exemplary embodiment, a single core fabric preferably represents a single "Inter-Subnet Route Number" (ISRN) value space. A single core fabric may have directly connected end nodes. A special case of an end node is the switch management port (port 0). These can be reached via a dedicated ISRN value and require GRH-based communication. Physical end nodes connected via physical IB links and / or system ports generally represent separate FLSN (or ISN) values and communication is preferably GRH-based. Such directly connected end nodes generally represent a "simple" leaf subnet, having only two ports and a single link, the end node port and the associated system port. It should be understood that in the exemplary embodiment environment, directly connected physical end nodes may also be addressed via dedicated ISRN values, as long as the end node implementation can handle that DLID values may not be unique. In general, since FLSN values must be global to the entire local fabric, separate FLSN values may not be selectively assigned for such end ports to reduce the required value space.
[0136] A single core fabric according to an example embodiment processes or otherwise handles direct route (DR) subnet management packets (SMPs) in a manner similar to other processing or handling within a traditional physical IB subnet. However, according to one embodiment, the single core fabric is configured to support LID-based forwarding alongside ISRN-based forwarding. Thus, the total LID value space used is aligned with the total ISRN value space used. The alignment includes using different sections of the same physical LFT resources for both types of forwarding, and setting the sizes of these sections as run-time configuration parameters for each system port.
[0137] In an exemplary embodiment, there is no limit on overlapping LID and ISRN values, as long as the sum of the two used value spaces can be supported by the hardware components involved. Assuming sufficient LID value space is allocated, both the port 0 instance and directly connected end nodes of the system can be reached via LID-based addressing. In this way, a single core fabric instance can represent a traditional IB subnet and at the same time represent destination leaf subnets in the local fabric, since it is acting as a core fabric between one or more (other) leaf subnets.
[0138] Additionally, in an exemplary embodiment, a single core fabric may have direct physical connectivity to one or more other single core fabrics while still maintaining an independent ISRN value space for each such single core fabric. DR SMP may be used to communicate between two core fabric instances without relying on any other type of transport supported. Based on the alignment of value spaces and the reservation of specific subsets of the LID or ISRN space, communication between all or a subset of the end nodes in the two core fabrics may be permitted or otherwise enabled using LID or ISRN based addressing.
[0139] A single core fabric may, in an exemplary embodiment, have one or more router ports that represent connectivity to remote fabrics; that is, they are independent local fabrics with no coordinated FLSN or ISRN space. Such remote connectivity is preferably achieved using gateway subnets. In this case, forwarding packets to and from local end nodes or connected leaf subnets is based on the GRH with an ISN-based subnet prefix value, and the associated GUID value in the DGID field. Such forwarding does not depend on any particular format of any part of the DGID, but instead relies on TCAM-based forwarding.
[0140] Addressing Mode According to one embodiment, the "addressing mode" of a packet defines the particular header information that should be used to determine how the packet should be sent from source to destination. An IB packet may contain multiple headers (i.e., LRH and GRH) that contain information about how the packet should be sent from source to destination. Thus, the addressing mode of a packet defines what such information should be used for the next forwarding decision.
[0141] In an exemplary embodiment, relevant addressing modes in this context include: LRH / DLID addressing mode; GRH / ISRN addressing mode; GRH / Leaf Switch Addressing Mode; and GRH / DGID addressing mode.
[0142] Transfer Mode According to one embodiment, a "forwarding mode" is applied to a switch port that performs a packet forwarding decision. Although the concept of "addressing mode" is applied to the header of an IB packet, a switch port that makes a forwarding decision operates in a "forwarding mode" that corresponds to a packet addressing mode. A switch port may support more than one addressing mode simultaneously. Thus, to enable a switch port to select the correct forwarding mode for a particular packet, the packet may have to contain information that allows the switch port to deterministically determine the addressing mode. Such information includes both DGID type information and special DLID values reserved to indicate a particular forwarding mode (e.g., GRH / ISRN). Also, in some cases, the next hop addressing mode is a function of both address information in the packet and configuration information associated with a port in the fabric. The ability in the exemplary embodiment to determine when a destination leaf subnet has been reached is an example of the next hop addressing mode being a function of both address information in the packet and configuration information associated with a port in the fabric.
[0143] Forwarding domain According to one embodiment, any particular leaf subnet, core fabric or gateway subnet instance may represent a "forwarding domain." As an IB packet is forwarded through the complete IB fabric, it passes through one or more "forwarding domains" as shown in FIG. 13, with each such forwarding domain representing a particular forwarding mode and a particular address value space. According to one embodiment, a "forwarding domain" is a boundary between multiple leaf subnets and multiple core fabrics. In the simplest scheme, an individual system instance belongs to a single forwarding domain, e.g., a single leaf subnet or a single core fabric instance. In this case, all boundaries between any pair of leaf subnets or core fabric instances exist on one or more links connecting different system instances. To allow both leaf subnets and core fabric instances to have any size, individual system instances are selectively partitioned into two or more "virtual switch" instances, with each such virtual switch representing a collection of one or more "virtual switch ports" that all represent connectivity to or within a single leaf subnet or a single core fabric. In this case, the boundary between any pair of forwarding domains exists in a system crossbar connecting two or more virtual switch instances.
[0144] As shown in Figure 13, in the source subnet, LFT lookup is performed in the first forwarding domain using the original (or legacy) LRH.DLID scheme. In the second forwarding domain, LFT lookup is performed in the core fabric when forwarding a packet from the source subnet to the core fabric using the ISRN scheme according to an example embodiment of the present specification as shown. Furthermore, in the third forwarding domain, LFT lookup is performed when forwarding a packet from the core fabric to the target subnet using the LRH.DLID based on the target LID 1143 (Figure 11) as shown.
[0145] Gateway Port According to one embodiment, a physical system port that represents connectivity to a forwarding domain is referred to herein as a "gateway port." For reasons described below, a gateway port is defined in terms of another port on the same system instance that sends a packet to it. First, sending a packet to a gateway port implies that the addressing mode for the packet is changed, since the transmission is either:
[0146] I. Send the source leaf to the core fabric. II. Core fabric to destination leaf, or III. Send the source leaf to the destination leaf.
[0147] Since the addressing mode of a packet applies to how forwarding decisions are made for packets received from the IB link, the change in addressing mode when crossing from one forwarding domain to another as shown in Figure 13 is implemented, according to one embodiment, when a packet moves from a system ingress port to an egress port, such as a gateway port. The addressing mode is then activated when the packet is forwarded from the gateway / egress port to the IB link.
[0148] For this reason, a gateway port is defined in terms of other ports on the same system instance that send packets to the gateway port.
[0149] It should be understood that links that represent boundaries between different forwarding domains will typically have gateway ports on both sides of the link. The motivation for having gateway ports on both sides of the link is to eliminate the need for write-type management operations across the link by ensuring that forwarding policy updates are included on each side of the link. For example, if one side of a link represents a core fabric and the other side represents a leaf subnet, the subnet manager on the leaf subnet side has complete control of forwarding of packets received on the IB link according to an exemplary embodiment.
[0150] In an exemplary embodiment, packets on a link will typically have a different addressing mode in each direction, and the forwarding mode for the ports on each side of the IB link will correspond to the "forwarding domain" for that side of the link. For example, if one side of the link represents a core fabric and the other side of the link represents a leaf subnetwork, packets being forwarded from the core fabric to the leaf subnetwork will have an LRH / DLID-based addressing mode as shown on the right side of Figure 13, and packets being forwarded from the leaf subnetwork to the core fabric will have a GRH / ISRN-based addressing mode as shown on the left side of Figure 13.
[0151] Note that in the case of a single gateway port located on only one side of a link, the single gateway port is managed as part of the forwarding domain on the remote side of the link. As an example, if one side of a link represents a core fabric and the other side represents a leaf subnet, and there is no gateway port on the leaf subnet side, then the port on the core fabric side of the link would also need to be part of the leaf subnet, and its forwarding logic would also need to be configured by a subnet manager in that leaf subnet. This means that this subnet manager then effectively realizes the first hop forwarding in the core fabric, so that the unnecessary dependency between the two forwarding domains can be effectively removed by moving the boundary between the forwarding domains from the link to the system crossbar, with the gateway located on the core fabric side. The above is done correspondingly for the forwarding of packets in the other direction.
[0152] On the other hand, with gateway ports on both sides of a link, the only dependency between forwarding domains is that forwarding a packet through a gateway port onto an IB link is done with the assurance that the packet has or is provided with the correct addressing mode. The addressing mode change does not affect the forwarding / routing decision in this respect, since the output port for the packet has already been determined when the addressing mode change is made.
[0153] On the receive side, incoming packet processing and forwarding decisions are performed according to standard intra-subnet protocols, just as for any switch port in that forwarding domain.
[0154] In the case of a crossbar-based boundary within a single system instance, any physical port that is a gateway port for any virtual switch instance on the same crossbar (i.e., within the same system instance) may also be a virtual switch port in another virtual switch within the same system instance.
[0155] A special case involves a single port connecting a system instance to a leaf subnet or core fabric. Technically, a switch with only a single external port is not a switch from an IBTA perspective in that it is still a valid configuration in that it provides access to the switch management port, thereby making the switch management port act as an endpoint within the subnet, in the sense that a single port, by definition, can forward packets between other source and target end ports within the local subnet / forwarding domain. In this exemplary embodiment, such a single port is still relevant for switching because it provides access to other leaf subnets and / or core fabrics via a crossbar-based forwarding domain boundary. Thus, from the perspective of a remote leaf subnet or core fabric, it provides access to a number of gateway ports, but not to virtual switch ports within the local forwarding domain.
[0156] In addition to the above, note that if more than one physical port connects a system instance to the same core fabric or leaf subnet, this collection of ports will be represented as a virtual switch instance by default. However, from the perspective of the fabric topology, there may be no need for this switched connectivity, and representing a collection of ports as one or more virtual switches becomes a matter of fabric-defined policy, including the case where every individual port only provides connectivity to gateway ports in other leaf subnets or core fabrics without allowing connectivity to other ports in the same forwarding domain.
[0157] Leaf Subnet Virtual Switch According to one embodiment, a "leaf subnet virtual switch" is a baseline collection of one or more physical ports on a single system instance that connect to the same leaf subnet. Define it as: If Fabric Local Subnet Number (FLSN) is used, then all ports in the same leaf subnet virtual switch will typically represent the same FLSN value. Note that conceptually, different ports in the same leaf subnet virtual switch may represent different FLSN values, and each port may represent more than one value, despite all representing the same physical subnet. Also, the same FLSN value may be associated with leaf subnet virtual switch ports in different physical leaf subnets.
[0158] One motivation for the above scheme is to enable migration of VMs between leaf subnets without implying changes in routing information. However, to maintain complete routing information, we can store DLIDs or provide a mapping function for DLIDs that can be used in such exception cases.
[0159] With a limited number of mapping resources and a limited number of FLSN values greater than one per port, an advanced scheme according to a further exemplary embodiment uses a two-stage migration scheme, where in the first round the migration is performed without route updates using part of the limited hardware resources, while providing a concurrent route update process so that once the route information has been updated by all involved peers and the original route / address is no longer needed, the limited hardware resources can be released again.
[0160] In an exemplary embodiment, a leaf subnet virtual switch presents itself as a standard IB switch via standard SMA attributes, so a legacy subnet manager (SM) can discover and configure a system-based leaf subnet virtual switch just like any other standard IB legacy switch that is part of the local subnet.
[0161] Additionally, in an exemplary embodiment, a leaf subnet virtual switch may be extended to represent connectivity to gateway subnets that provide connectivity to other parts of the local fabric or to remote fabrics. Such connectivity means that one or more "special" ports are included in the leaf subnet virtual switch and are directly visible, for example, as additional port numbers on the same virtual switch via special SMA attributes. That is, one or more core fabric gateway ports may provide connectivity to one or more core fabrics, and one or more virtual router ports may provide connectivity to physical router ports and various other ports outside the scope of the leaf subnet virtual switch.
[0162] For example, a virtual router port may be indirectly identified via standard SMA attributes, but may be represented by another switch port that has a (virtual) link to another port identified as a router port.
[0163] In this way, legacy Subnet Managers (SMs) can discover and utilize router-based connectivity to other subnets. However, it should be appreciated that the need for "legacy SM" support is reduced, as system-aware Subnet Managers (SMs) will utilize special SMA attributes to directly discover special ports.
[0164] Further with respect to the exemplary embodiment, one or more leaf subnet gateway ports may provide connectivity to one or more other leaf subnets.
[0165] Leaf Subnet Virtual Switch Port According to an exemplary embodiment, a leaf subnet virtual switch port is A leaf subnet virtual switch instance may belong to a particular LRH, e.g., using the LRH.DLID value to look up the output port number for a packet arriving on an IB link. The type of port that the output port number represents for this leaf subnet virtual switch instance is defined, in an exemplary embodiment, by the configuration information available for the member physical ports. The output port may represent another virtual switch port in the same leaf subnet virtual switch, a core fabric gateway port, a virtual router port, or a leaf subnet gateway port that provides direct connectivity to another leaf subnet. The output port may not generally be a physical router port, since this would mean that a new LRH would be built in a dynamic manner based on the packet GRH, and this can only be done via a virtual router port.
[0166] It should be appreciated that given the simplified definition of a gateway subnet having only two ports (i.e., a local and a remote router port), it is possible to provide a simplified scheme where the DLID to use for the next hop would be based on a fixed value or based on having the local physical router port record the LID value of the remote router port and ensure that this is used as the next hop DLID.
[0167] It should be further appreciated that a physical port that is a leaf subnet virtual switch port may also act as a leaf subnet gateway port from the perspective of another leaf subnet virtual switch or a core fabric virtual switch.
[0168] Core Fabric Virtual Switch According to one embodiment, a "core fabric virtual switch" defines as a baseline a collection of one or more physical ports on a single system instance that connect to the same core fabric.
[0169] In the exemplary embodiment, the core fabric virtual switch presents itself as a specialized IB switch via selected special SMA attributes, and thus a legacy subnet manager (SM) will not be able to discover and configure the core fabric virtual switch of the exemplary embodiment system.
[0170] A core fabric virtual switch may be extended to represent connectivity to gateway subnets that provide connectivity to other parts of the local fabric or connectivity to remote fabrics. Such connectivity means that one or more other "special" ports are included in the core fabric virtual switch and can be directly seen, for example, as additional port numbers on the same virtual switch via special selected SMA attributes, one or more leaf subnet gateway ports can provide connectivity to one or more leaf subnets, one or more virtual router ports can provide connectivity to physical router ports and various other ports outside the scope of the leaf subnet virtual switch, and one or more core fabric gateway ports can provide connectivity to one or more other core fabrics.
[0171] Core Fabric Virtual Switch Port According to an exemplary embodiment, a core fabric virtual switch port of a core fabric virtual switch instance uses the GRH.DGID.ISRN value to look up the output port number for packets arriving on the IB link. The type of output port that the looked up port number represents for this core fabric virtual switch instance is defined by the configuration information available for the member physical port. The output port may represent another core fabric virtual switch port in the same core fabric virtual switch, a leaf subnet gateway port, a virtual router port, or a core fabric gateway port that provides direct connectivity to another core fabric.
[0172] The output port may not generally be a physical router port, since this would mean that a new LRH would have to be constructed in a dynamic manner based on the packet GRH, and this can only be done via a virtual router port.
[0173] It should be appreciated that a physical port that is a core fabric virtual switch port may also act as a core fabric gateway port from the perspective of another leaf subnet virtual switch or a core fabric virtual switch.
[0174] Core Fabric Gateway Port It should be understood that in the case of system crossbar-based virtual switches and forwarding domain boundaries, a physical port that is a core fabric gateway port may act as a core fabric virtual switch port from the perspective of the core fabric virtual switch that represents the associated core fabric connectivity. Thus, from the perspective of the physical switch port, packet forwarding alternatives include those described above with respect to "core fabric virtual switch port" in addition to the gateway port-related forwarding described in this section.
[0175] According to an example embodiment, a core fabric gateway port represents a port that handles input to or output from a core fabric instance for one or more leaf subnet virtual switch ports or core fabric virtual switch ports that belong to other core fabric virtual switches in the same system instance, such that those virtual core fabric switches also represent other core fabric instances / forwarding domains.
[0176] A core fabric gateway port receiving a packet via the system crossbar generally cannot change any addressing mode, and instead may rely on the received packet being set with the correct addressing from the system ingress port that already forwarded it.
[0177] Note that in an exemplary embodiment, because a physical port may have multiple roles and the particular role is determined at the time of forwarding a packet from the ingress port, there is generally no need to update address information at the output point unless some hardware design constraints would make this type of pipelining more efficient.
[0178] In the case of a link-based forwarding domain boundary, the core fabric gateway port is part of the forwarding domain of the leaf subnet that the local system instance represents, and therefore the forwarding mode for packets arriving on the IB link is the "LRH / DLID" forwarding mode.
[0179] In the case of a system crossbar-based forwarding domain boundary, the core fabric gateway ports are part of the forwarding domain defined by the remote core fabric instance, and therefore the forwarding mode for packets arriving on the IB link is the "GRH / ISRN" forwarding mode.
[0180] The type of output port that the probed port number represents for the associated forwarding domain (i.e., the core fabric instance that the gateway port represents) is defined by the configuration information available to the physical port (i.e., the same information outlined for the physical port's virtual switch port personality, if any).
[0181] The output port may represent a leaf subnet gateway port or another core fabric gateway port, as might be the case if two core fabrics are connected through a single system crossbar, or it may represent a virtual router port.
[0182] FIG. 14 illustrates the change in packet header from GRH / ISRN addressing mode format to LRH / DLID-based forwarding format, according to one embodiment. When a packet travels from a core fabric gateway port to a leaf subnet gateway port via the system crossbar, the transition represents a change from GRH / ISRN addressing mode to LRH / DLID-based forwarding. This means that a new LRH is constructed in the header of the new packet 1400, as shown, with the DLID 1143 (i.e., the system-specific GRH.DGID.remote DLID field) extracted from the packet GRH 1111. Note that in general, this forwarding is fully defined independent of correlating the packet FLSN value with the FLSN value associated with the leaf subnet gateway port. That is, the only information required to accomplish the addressing mode change is that the egress port is defined as a leaf subnet gateway port from the perspective of the ingress port, regardless of what FLSN values are involved. Based on this observation, the correlation of the packet FLSN value with the port FLSN value is essentially an "assertion" that the routing is configured correctly.
[0183] This problem is similar to that of the LIDs associated with end nodes. Although a local LID is necessary to generate the correct SLID when sending a packet, as long as the subnet is correctly routed according to LID assignments, there is essentially no need to process the DLID in the packet once the incoming packet reaches the destination end node. As long as the switch forwarding tables are updated in the correct sequence with respect to assigning initial or new LID values to end nodes, the end node will never see a case where a received DLID conflicts with an assigned LID.
[0184] On the other hand, making DLID checking optional at end nodes means that the fabric can, in principle, use any number of LIDs and associated routing for forwarding to a single end node. In this case where the destination is a leaf subnetwork, making FLSN value checking optional means that VM migration between different leaf subnetworks can be achieved more flexibly.
[0185] FIG. 15 is a diagram of a switch that provides a mechanism for defining a special switch port boundary for changing packet forwarding from an LRH / DLID addressing mode to a GRH / ISRN addressing mode, according to one embodiment. When a packet travels from a leaf subnet gateway port to a core fabric gateway port via the system crossbar, the transition represents a change from an LRH / DLID addressing mode to a GRH / ISRN addressing mode. This means that a new LRH is built with a fixed DLID that identifies ISRN-based forwarding, as shown in the figure. In this regard, the switch 1500 provides a mechanism for defining a special switch port boundary for changing packet forwarding from an LRH / DLID addressing mode to a GRH / ISRN addressing mode. According to an embodiment that supports ingress into an intermediate switch fabric, a mechanism may be provided in selected switches 1500 of the fabric, whereby a boundary may be defined. In one embodiment, a "special switch port" (SSP) 1510 is defined, which represents the "end" of a local subnet. In one embodiment, the packet uses the DLID 1122 (FIG. 11) in the original / normal local route header 1112 to represent the virtual end port of the virtual subnet via the LFT 1200 (FIG. 12). The SSP 1510 is pointed to by the SSP, which is given an attribute indicating that it represents an "end port" in this subnet at this point. The special attribute indicates a change in mode of forwarding, such that instead of using the DLID 1122 in the local route header 1112, the next forwarding level uses the reserved / dedicated bit field 1131 from the 64-bit subnet prefix number portion of the GRH / L3 address. In essence, the original DLID 1122 is replaced with the reserved / dedicated bit field, or a portion thereof, to form a new DLID 1110' for use in ISRN-based forwarding, according to an exemplary embodiment.
[0186] In one embodiment, the switch 1500 can use LID-based filtering techniques. In this embodiment, the switch 1500 can include a receive (Rx) filter 1520 that can identify packets targeted to the SSP 1510. Thus, the switch 1500 can separate data flow traffic targeted to the SSP 1510 from data flow traffic targeted to the normal / legacy forwarding modality port 1530. For example, the Rx filter 1520 can separate mixed data flow traffic based on service DLID (e.g., using DLID-based filtering). Below is an exemplary packet forwarding logic DLID table:
[0187] DLID=0xF DLID=0xFF If the incoming packet has a matching DLID (e.g., 0xF or 0xFF), the Rx Filter 1520 can direct the packet to the SSP 1510. On the other hand, if the incoming packet does not have a matching DLID (i.e., with a DLID other than 0xF and 0xFF), the Rx Filter 1520 can direct the incoming packet to the normal / legacy transport modality port 1530, which can use the IB protocol engine to process the IB packet according to the standard IB protocol.
[0188] According to an example embodiment, when a packet travels between a core fabric gateway port and another (i.e., connected to a different core fabric instance) core fabric gateway port, the same GRH.DGID.ISRN value is still used for forwarding. Thus, the management software ensures that packet traffic crossing from one core fabric instance to another represents a GRH.DGID.ISRN value that is consistently processed across both of the two or more core fabrics, because by default, each core fabric instance represents its own ISRN value space.
[0189] When a packet travels from a core fabric gateway port to a virtual router port, the next step forwarding scheme is a function of the policy implemented by the virtual router port.
[0190] The output port may not generally be a physical router port, since this means that a new LRH will be constructed in a dynamic manner based on the packet GRH, and this is done via a virtual router port.
[0191] Leaf Subnet Gateway Port In the case of a system crossbar-based forwarding domain boundary, a physical port that is a leaf subnet gateway port may act as a leaf subnet virtual switch port from the perspective of the leaf subnet virtual switch that represents the associated leaf subnet connectivity. Thus, from the perspective of the physical switch port, packet forwarding alternatives include those described above under "Leaf Subnet Virtual Switch Ports" in addition to the gateway port-related forwarding described in this section. This includes descriptions of "Chipport."
[0192] According to an exemplary embodiment, a leaf subnet gateway port represents a port that handles input to or output from a leaf subnet instance for one or more core fabric gateway ports and / or one or more leaf subnet virtual switch ports that belong to other leaf subnet virtual switches in the same system instance. In this regard, a leaf subnet gateway port that receives a packet over the system crossbar generally does not change any addressing mode, but instead relies on the received packet already being configured with the correct addressing from the system ingress port that forwarded it.
[0193] In the case of a link-based forwarding domain boundary, the leaf subnet gateway ports are part of the forwarding domain of the core fabric that a particular system instance represents, and therefore the forwarding mode for packets arriving on an IB link is the "GRH / ISRN" forwarding mode.
[0194] In the case of a system crossbar-based forwarding domain boundary, the leaf subnet gateway port is part of the forwarding domain defined by the remote leaf subnet instance, and therefore the forwarding mode for packets arriving on the IB link is the "LRH / DLID" forwarding mode.
[0195] The output port may represent a core fabric gateway port or another leaf subnet gateway port, such as when two leaf subnets are connected through a single system crossbar, or may represent a virtual router port.
[0196] According to an exemplary embodiment, when a packet travels from a leaf subnet gateway port via the system crossbar to a core fabric gateway port, the transition represents a change from an LRH / DLID-based forwarding mode to a GRH / ISRN-based forwarding mode.
[0197] According to an exemplary embodiment, when a packet travels from a core fabric gateway port through the system crossbar to a leaf subnet gateway port, this transition represents a change from a GRH / ISRN addressing mode to an LRH / DLID addressing mode.
[0198] According to an example embodiment, when a packet travels between a leaf subnet gateway port and another (i.e., connected to a different leaf subnet) leaf subnet gateway port, the original packet LRH.DLID value is used to look up the output port, but there are two alternatives for how the LRH is constructed for the next hop, as shown below.
[0199] As a first alternative, if the packet does not have a GRH and the destination port allows "unmodified LID forwarding," the packet is forwarded with the same LRH.DLID. Thus, in this case, it is up to the management software to ensure that packet traffic crossing from one leaf subnet instance to another without the generation of a new LRH.DLID represents an LRH.DLID value that is processed consistently in both leaf subnets, because by default, each leaf subnet instance represents its own LID value space.
[0200] As a second alternative, if the packet has a GRH indicating ISRN-based forwarding, If there is a FLSN match with the input port, the packet is forwarded. Note that, similar to what was pointed out in the discussion of core fabric gateway ports above, it is generally not necessary to perform FLSN matching in this case as long as the routing and forwarding tables are configured correctly.
[0201] Furthermore, according to one embodiment, the use of FLSN checking can be selectively enabled to actually verify that forwarding of packets between different forwarding domains does not conflict with FLSN assignments. Again, making FLSN value checking optional means that VM migration between different leaf subnets can be more flexibly achieved, as described below with respect to VM migration.
[0202] As a further alternative, if a packet has a GRH that does not represent ISRN-based forwarding, but the destination port allows "unmodified LID forwarding," the packet is forwarded with the same LRH.DLID. Thus, again, management software ensures that packet traffic crossing from one leaf subnet instance to another without the generation of a new LRH.DLID represents an LRH.DLID value that is processed consistently in both leaf subnets, because, by default, each leaf subnet instance represents its own LID value space.
[0203] When a packet travels from a leaf subnet gateway port to a virtual router port, the next step forwarding scheme is a function of the policy implemented by the virtual router port. The output port may not generally be a physical router port, since this means that a new LRH will be constructed in a dynamic manner based on the packet GRH, and this is done via the virtual router port.
[0204] Combined Core Fabric and Leaf Subnet Virtual Switch According to an exemplary embodiment, a combined core fabric and leaf subnet virtual switch configuration allows the same set of ports to simultaneously provide characteristics of both a core fabric and a leaf subnet virtual switch. One motivation for this configuration is to allow non-GRH-based data and control traffic to occur between one or more system instances and directly connected nodes in the core fabric. Forwarding options within the core fabric are described above.
[0205] From an implementation standpoint of this embodiment, the constraint of defining a specific set of ports as a combined core fabric and leaf subnet virtual switch needs to be enforced, as opposed to allowing partial overlap of physical port membership between different virtual switch instances, as long as the physical system port has configuration information that defines the role of other ports that can be used as output ports for this port role.
[0206] Combined Core Fabric and Leaf Subnet Virtual Switch Ports A combined core fabric and leaf subnet virtual switch port according to an example embodiment supports both GRH / ISRN and LRH / DLID forwarding modes.
[0207] To perform GRH / ISRN based forwarding, the LRH.DLID is a specific predefined value common for all ports in the ISRN based path. Therefore, this LID value may be a system chip level constant or preferably defined per physical port register.
[0208] A bonded port can support a configurable number of DLIs in terms of logical linear forwarding table (LFT) capacity. It may support D entries and different configurable ISRN value ranges.
[0209] Note that in general it is preferred that all ports in the same virtual switch have the same DLID and / or ISRN LFT capacities so that any set of values can be supported on any port, however this is merely a configuration policy and not an implementation constraint of the exemplary embodiments.
[0210] Similarly, each virtual switch instance, including the combined virtual switch instance type and the single virtual switch instance type, is selectively defined in the exemplary embodiment to logically represent a per-port Linear Forwarding Table (LFT) or a logically common LFT for all virtual switch ports. However, this is a firmware option because the physical LFT implementation is distributed per port or per set of dual ports in the exemplary embodiment. One reason for this firmware option is obviously to support an IB switch mode that is compliant with the IB standard while still being able to use a subnet manager and routing engines and initialization engines that do not support distributed LFTs.
[0211] Virtual Router Port A virtual router port is represented in an exemplary embodiment by a system port number outside the range of physical ports. Therefore, a virtual router port has no physical link directly associated with it. Any virtual switch port can look up a virtual router port, which then uses a configurable routing function on the packet GRH to define the physical output port and the next hop LRH.
[0212] It should be noted that the routing functionality in the exemplary embodiment includes both hierarchical forwarding between endpoints in the same local fabric, and generic forwarding between independent local fabric instances.
[0213] If a packet without a GRH is sent to a virtual router port, preferably the packet is dropped or a new LRH and physical output port is created based on configurable features.
[0214] Each virtual switch port has an associated default virtual router port that is used as an intermediate output port when an LFT-based lookup is not possible because the DLID or ISRN value from the packet is outside the LFT range supported by the port, in which case the virtual router port is selectively operable to either drop the packet as a default in accordance with the IB standard or to perform a configurable function on the packet header to define the physical output port and next hop LRH.
[0215] Physical Router Port A physical router port, in an exemplary embodiment, is a port that handles ingress or egress to a local fabric instance. A physical router port is represented from the link side as a router port that complies with the IB standard.
[0216] In an exemplary embodiment, the physical router port is associated with the same packet forwarding logic as the virtual router port used for packets arriving from the link side.
[0217] In an exemplary embodiment, the physical router port is probed or generated by a virtual router port or another physical router port that performs a selected function on the packet's GRH and then generates a new LRH that is intended to exit on the physical router port's link. It is referred to in other ways.
[0218] A simple LRH.DLID insertion is provided based on the remote DLID value associated with the remote router port in the minimal gateway subnet.
[0219] Intersubnet Route Number (ISRN) According to an exemplary embodiment, an Inter-Subnet Route Number (ISRN) is a value defined by the variable portion of the packet GRH.DGID.SubnetPrefix that is used to index LFT entries within a core fabric instance. The ISRN value space is per core fabric instance, and the Fabric Global Manager (FGM) coordinates the use of ISRN values.
[0220] In an exemplary embodiment, packets to be forwarded using an ISDN value have a special reserved LRH.DLID value that indicates to the receiving port that the ISDN value should be used for LFT-based forwarding.
[0221] In one embodiment, the ability for a system port to have "multiple personalities" means that packets should contain information about the particular type of forwarding mechanism to use, as opposed to having this (only) as per-port configuration information.
[0222] Fabric Local Subnet Number (FLSN) According to an exemplary embodiment, a Fabric Local Subnet Number (FLSN) is a value that identifies a destination subnet within a local fabric. All FLSN numbers are preferably assigned and managed by a Fabric Global Manager (FGM). Packets that are forwarded based on an ISRN value also have a destination FLSN value.
[0223] FLSN values are associated with leaf subnet gateway ports that act as logical ports, and packets forwarded to such ports will have the packet FLSN number matched against the port FLSN number to determine if they have reached the destination subnet.
[0224] In one embodiment, the ability for system ports to have "multiple personalities" means that packets are recognized as having reached their destination subnet based on a combination of both packet and port information, as opposed to simply relying on per-port configuration information.
[0225] Fabric Global Manager (FGM) According to an exemplary embodiment, the Fabric Global Manager (FGM) is a "super-subnet manager" capable of performing discovery and configuration of a complete local fabric instance. The FGM works with "FGM-aware" subnet managers in the individual leaf subnets.
[0226] Note that each leaf subnet subnet manager can manage its own local leaf subnets independently of the FGM, but will rely on the FGM to facilitate any inter-subnet traffic involving any core fabric or other leaf subnets in the local fabric.
[0227] Identified Subnet Number (ISN) According to an exemplary embodiment, an Identifying Subnet Number (ISN) is an administratively assigned subnet number that may have global or site specific uniqueness. The ISN number is used to identify inter-subnet traffic between different local fabric instances. This is used together with the GUID to form a GID value that is selectively used for
[0228] Hardware GUID (HW GUID) According to an exemplary embodiment, the hardware GUID is a 64-bit globally unique identification of a hardware resource. Each physical system instance in the exemplary embodiment has a base HW GUID value. Each system-based virtual switch instance has a HW GUID that is derived from the base HW GUID in a predefined manner. Each physical HCA will have a base HW GUID. Each virtual HCA port will have a HW GUID that is derived from the base HW GUID in a predefined manner.
[0229] Virtual GUID (vGUID) According to an example embodiment, a virtual GUID (vGUID) is a 64-bit GUID value that is globally unique or unique within the local fabric. The virtual GUID is also guaranteed to be unique with respect to any HW GUIDs present in the local fabric.
[0230] A virtual GUID is typically associated with a virtual machine instance, and the same vGUID value (one for each vHCA port the VM is using) will typically be associated with a VM throughout its entire VM lifecycle, which may include multiple migrations between physical servers and vHCA instances.
[0231] Note that although a particular vHCA instance is identified by its HW GUID, whenever a VM is using it, the vHCA port can also be addressed using the associated VM vGUID value.
[0232] Packet Header Formats and Conventions: Standards for packet local and global route header (LRH / GRH) formats and conventions are described below. First, the local route header (LRH) used in the exemplary embodiments herein is as defined by the InfiniBand (IB) standard. Similarly, the global route header (GRH) used in the exemplary embodiments herein is as defined by the InfiniBand (IB) standard, with two sets of additions / exceptions: 1) GRH.DGID.SUBNET_PREFIX may have type "ISRN", and 2) GRH.DGID.SUBNET_PREFIX may have type "LeafSwitchHierarchy( A single switch may have a "leaf switch hierarchy."
[0233] If GRH.DGID.SUBNET_PREFIX is of type "ISRN", then GRH.DGID.SUBNET_PREFIX has the following format in the exemplary embodiment (in addition to the ISRN type: (Destination) Fabric local subnet number Inter-subnet route number (i.e., in the core fabric instance defined by the first LRH.DLID value in the source leaf subnet) DLID (for the destination leaf subnet defined by the fabric local subnet number).
[0234] If GRH.DGID.SUBNET_PREFIX is of type "LeafSwitchHierarchy", then GRH.DGID.SUBNET_PREFIX has the following format in an exemplary embodiment (in addition to the LeafSwitchHierarchy type: (Destination) Fabric local subnet number (Destination) Leaf switch number All special subfields have run-time defined sizes and offsets. (i.e., made possible by using a dedicated TCAM entry to perform the subfield extraction).
[0235] Mapping and selection of SL and VL values across local fabrics: According to the exemplary embodiments herein, within a single leaf subnet, packets with only an LRH and no GRH will be using the legacy SL to VL mapping. The exemplary embodiments may selectively expand the local LID and / or SL / VL value space as desired or needed by using reserved bits and new header version numbers. Expanding the number of port numbers discoverable by the LFT allows more such "alias" port numbers to represent other SL / VL mappings for the associated physical port. (i.e., the same effect as SL / VL processing, but consuming LFT memory, rather than relying on proprietary use of reserved LRH bits.) This means using multiple DLID values rather than different SL values to achieve traffic separation.
[0236] The mapping and selection of values within a single leaf subnet packet with both LRH and no GRH will default, in an exemplary embodiment, to using the legacy SL to VL mapping. The GRH field is preferably used in the same manner as in the core fabric.
[0237] In mapping and selection of values between leaf subnets and within the core fabric, packets having only an LRH are preferably treated as in a single leaf subnet.
[0238] For value mapping and selection between leaf subnets and within the core fabric, a packet with both an LRH and a GRH will have an SL selection based on the following scheme: each traffic class value represents a set of possible SL values; a hash of the flow label value selects from among the available SL values defined by the traffic class, and support is given for an "aggressive" credit wait policy, as defined below in "Mapping and Selection of SL and VL Values across Gateway Subnets".
[0239] Mapping and selection of SL and VL values via gateway subnets: By default, the same GRH-based scheme defined for use within the local fabric is supported by the exemplary embodiment. In addition to the basic mapping, an egress router port, e.g., a router port sending packets to a gateway subnet / router port in a remote fabric, may classify all such packets, or a subset, based on defined criteria, as having a more "aggressive" credit wait policy that drops packets "early" to prevent congestion trees from building up in the local fabric.
[0240] Mapping and selection of P_Key values across local fabrics: Each forwarding domain in the exemplary embodiment has a range of P_Key values that it can use for traffic internal to the leaf subnet without coordination at the local fabric level; that is, the same private range can be used by all forwarding domains. P_Key values outside the local range are assigned via the FGM. The FGM ensures that a gateway port will only accept forwarding of packets with P_Key values that are allowed to be forwarded to the associated forwarding domain.
[0241] In a further example, the FGM may be implemented to communicate with specific gateway ports, such as between different transport domains. A special path can be defined that includes a mapping of P_Key values in the GRH. In general, such a mapping means that the packet immutable CRC (ICRC) is recalculated. As an alternative scheme that includes support from end nodes such as the HCA, a scheme is provided where the normal packet ICRC is calculated based on a packet P_Key value of 0, but in addition has a reserved bit field in the GRH that is not included in the ICRC, but that contains a CRC parity value for the current P_Key value.
[0242] Mapping and selection of P_Key values through the Gateway Subnet: The exemplary embodiments described herein generally make no assumptions about coordinated P_Key value assignment between different local fabric instances: native IB communication is in this case based on dynamically negotiated P_Key values between the involved local fabric instances, or based on the P_Key mapping scheme outlined for the local fabric case above.
[0243] Forwarding multicast packets across the local fabric: In an exemplary embodiment, each forwarding domain has a range of MLID values that are considered private to each forwarding domain, and all forwarding domains may use the same private range. Multicast groups that are mapped to private MLIDs can only be forwarded within the local forwarding domain. The FGM ensures that private MLID forwarding does not occur across forwarding domain boundaries, and coordinates a set of shared MLID values that can be used to achieve multicast forwarding across the entire local fabric instance. The MGID values used via shared MLID values across the entire local fabric are assigned by the FGM. Such MGID values have selected bit fields that define them as FGM-controlled MGIDs. The local SM in each forwarding domain is responsible for ensuring that there are no conflicting uses of FGM-controlled MGIDs.
[0244] In a further example, a virtual router port is used, where a multicast packet with a particular MGID and MLID value in one forwarding domain can be forwarded with the same MGID value, but a different MLID value, in another forwarding domain.
[0245] Forwarding multicast packets through the gateway subnet: The exemplary embodiments described herein generally make no assumptions about coordinated MGID value assignment between different local fabric instances: native IB multicast communication with pure hardware-based forwarding is in this case based on dynamically negotiated MGID values between the participating local fabric instances.
[0246] In an exemplary embodiment, by default, multicast forwarding between different local fabric instances is based on configuring a software-based proxy service that operates in association with one or more physical router ports to receive multicast packets from the local fabric or physical router ports and forward the payload in the opposite direction in a new multicast packet. The proxy is preferably by default a regular multicast group member on the local fabric side and has a special relationship with the physical router ports to intercept all multicast packets arriving from remote fabrics, e.g., via a gateway subnet.
[0247] In addition to the above, a mechanism is optionally provided to ensure that multicast packets from a remote fabric are forwarded to the proxy in a manner that does not interfere with multicast forwarding in the local fabric. A scheme or concept of a "default MC destination" that uses a dedicated MLID for each MGID may be used. This is feasible as long as the receiver can receive and forward any number of MGIDs to the QP associated with the proxy instance. This may also include a large number of partitions. If this functionality is difficult to guarantee for the HCA involved, another embodiment herein is for the system to function to tunnel IB MC packets in IB unicast packets in a manner similar to how Enet packets are tunneled when received on an EnetGW port. Thus, the proxy implementation can interpret and process incoming remote MC packets independently of how they are tunneled on the local fabric.
[0248] It is noted that more than one SW proxy may be required in the direction from the local fabric to the remote fabric to handle any number of partitions. Furthermore, it is noted that for physical router ports, bidirectional tunneling is realized. Also, if proxy implementations are present in both fabrics, tunneling is realized by having the proxy implementations cooperate without requiring dedicated hardware support. In this context, the tunneling scheme means that the maximum IB MTU cannot be forwarded as the tunneled MC packet, since the original IB header must be included in the tunneled packet as an IB payload. The proxy is preferably able to handle the case where the same MGID value is used for two different logical multicast groups in different local fabrics.
[0249] Initial discovery and configuration of the local fabric: According to an exemplary embodiment, by default, each system instance operates as a single traditional InfiniBand (IB) switch. This default configuration allows existing IB subnet managers or SMP-based diagnostic and monitoring tools to "see" or otherwise learn the complete connected fabric as a single IB subnet.
[0250] Splitting a system instance into multiple virtual switches and defining port types and associated configuration information, for example, represents an "out-of-band" configuration policy that is not part of normal SMA operation. However, all or most out-of-band configuration operations can be implemented via vendor-specific SMP operations as an alternative to "pure" out-of-band configuration. Note that in the exemplary embodiment, each system instance has an E-Net-based management interface that is available independently of any IB link state, and also supports IPolB / EolB, so that "out-of-band" configuration essentially represents IP-based access via any interface.
[0251] Further, note that there is no concept of a pure "local" management interface such as PCI-E that is inherently associated with a local management processor. Nevertheless, to solve the "chicken and egg" configuration problem for security, the Enet interface may represent the first source of configuration policy with the assumption that physical systems that are part of the system of the exemplary embodiment, such as a particular independent physical switch chassis, preferably secure Enet access via port-based VLANs or other access control rules. This knowledge is preferably production time defined "a priori" and is persistent configuration information for the system instance.
[0252] In a configuration where an HCA port representing a chassis internal management processor exists and is connected to a specific port on a specific system instance as defined by the hardware design, the system instance according to an exemplary embodiment should also have a priori information about the local system port to which it has this connectivity.
[0253] Based on configuration information initially provided via the Enet interface or a managed host channel adapter (HCA), the firmware of the system of the exemplary embodiment can authenticate configuration operations from other interfaces and / or other sources on the managed Enet interface as well. Such configuration information is securely and persistently stored by the firmware of the exemplary embodiment.
[0254] Firmware according to further example embodiments may also have access to additional "a priori" persistent configuration information that allows the firmware to authenticate access from other interfaces / sources upon initial deployment. This may include public keys for vendor specific management software, etc. In addition, there may be a private key used to authenticate the type and possibly even a specific identity such as related to the hardware GUID of this vendor instance, as may be necessary or desirable.
[0255] According to an example embodiment, when port roles and virtual switches are configured, in-band management components, such as subnet managers (SMs) and FGM instances, can discover their associated portions of the local physical and / or virtual fabric using both legacy SMP-based subnet discovery methods and one or more vendor-specific SMP methods.
[0256] According to an exemplary embodiment, each leaf subnet is preferably discovered and configured in parallel with other leaf subnets by an independent SM instance.
[0257] In the core fabric, one or more "master" FGM instances may run simultaneously, typically one master FGM instance per core fabric instance.
[0258] Additionally, subnet managers in leaf subnets preferably have no SMP access (read or write) outside their leaf subnets that are outside their forwarding domain. A legacy subnet manager in a leaf subnet will only be able to discover ordinary (virtual) switch ports and their local connectivity within the leaf subnet. A fabric-aware subnet manager in a leaf subnet will preferably be able to discover gateway ports and the connectivity they represent, but will not be able to change the configuration of the gateway ports. A fabric-aware subnet manager in a leaf subnet, by default, preferably cannot discover remote port connectivity or further hops beyond the gateway port, nor can it modify configuration information beyond the gateway port.
[0259] In an exemplary embodiment, an FGM instance will be able to discover the complete local fabric by default. An FGM instance may avoid performing hop-by-hop DR SMP-based discovery of topology outside of its local forwarding domain, e.g., outside of a particular core fabric instance or outside of the complete core fabric, e.g., by configuration options on the FGM instance, or may be prevented from performing such discovery by access restrictions in the remote virtualization system. Access restrictions typically apply to different leaf subnets with different fabric-level owners. In this case, the central FGM collects topology information from each core fabric instance and each leaf subnet via the associated subnet manager or FGM instance, and uses this information to evaluate optimized routing for the complete local fabric.
[0260] Note that by default, full end-to-end connectivity within the local fabric exists between every end port in each leaf subnet, between every end port and every gateway port in each leaf subnet, and between every gateway port in each core fabric instance, and specifically after local routing for each forwarding domain, full connectivity is established between any pair of leaf subnet gateway ports.
[0261] Based on the complete connectivity above, the central FGM can select end-to-end routes for all potential “peer pairs” in the local fabric based on combining routes in the source leaf subnet, routes in the associated core fabric instance, if any, and associated routes in the destination leaf subnet. The central FGM will need to ensure that end-to-end routes between different leaf subnets do not represent credit loops. However, credit loop avoidance is trivially guaranteed as long as the following conditions are met: each leaf subnet represents a fat tree, where the gateway ports to the core fabric instances and / or other leaf subnets represent the root switch nodes in the local leaf subnet, and each core fabric instance routes all leaf subnet gateway ports as leaf nodes / ports in a regular fat tree.
[0262] According to an exemplary embodiment, to ensure static optimization over a dedicated or "main" down path within the complete local fabric, the central FGM selects a path for the target leaf subnet that will use an egress gateway port in a root switch that represents a dedicated or "main" down path for the destination node in the target leaf subnet. Information about the root switch will generally be available from a master subnet manager (SM) in the leaf subnet. The master subnet manager (SM) in the leaf subnet has selected a root switch, which may be a virtual switch or a complete physical instance of the system of this embodiment, for the destination node as part of the leaf subnet's local routing.
[0263] The selection of the gateway port inherently also represents the selection of the core fabric instance that currently has connectivity from the source leaf subnetwork and represents a "reasonable" balance of inter-leaf subnet traffic at this point.
[0264] The central FGM then selects an ingress gateway port from the source leaf subnet to the selected core fabric instance and an ISRN value that represents the primary path for the selected destination egress gateway port in the selected core fabric instance.
[0265] The selection of the ingress gateway ports to the core fabric instances also represents a "reasonable" balance of inter-leaf-subnet traffic at this point.
[0266] According to an exemplary embodiment, a route from a source port in a source leaf subnet to a selected ingress gateway port for a selected core fabric instance is defined by a master subnet manager (SM) in the source leaf subnet. This route is preferably constructed by the master subnet manager (SM) without knowledge of the potential use for inter-leaf subnet traffic. A central FGM combines information from the master subnet managers in both the source and target leaf subnets to define the selected ingress gateway port for the selected core fabric instance. Based on the combined ISRN value, a complete route can be constructed.
[0267] In addition to the pure route information defined by the LID and ISRN values, the central FGM also gets the SL values from each participating Master Subnet Manager, and also selects the Traffic Class and Flow Label, reflecting the SL / VL selection in the core fabric and the SL selection when the target leaf subnet is entered.
[0268] Note that in the simplest default case, a single SL value can be chosen that will be preserved throughout the entire local fabric, with a consistent mapping to a fixed VL in all forwarding domains, e.g., as for a legacy single-subnet fat-tree topology.
[0269] Note that unlike traditional single subnet fabrics, where the DLID represents the final destination and the same DLID can be rerouted to use different paths through the fabric as a result of various link and / or switch failures within the fabric, DLID-ISRN-DLID based end-to-end paths within the fabric may need to be updated as a result of a failure unless there is a coordinated rerouting of the DLID for the ingress gateway port from the source subnet to the core fabric and the ISRN value representing the egress gateway port from the core fabric instance to the destination leaf subnet. Thus, in an exemplary embodiment, if a gateway port is no longer available, the associated DLID or ISRN value is rerouted or the path information for the affected flows / communicating peers is updated to represent an alternative gateway port that can provide equivalent forward connectivity.
[0270] Also, in an exemplary embodiment, to perform global inter-leaf subnet route rebalancing, the central FGM selectively generates new route information for one or more flows and notifies involved peers, or coordinates end-to-end re-routing of the current DLID-ISRN-DLID-based routes with all involved master subnet managers and FGM instances.
[0271] Maintain a global overview of the physical and virtual node population: According to an exemplary embodiment, physical and virtual end nodes in each leaf subnet are discovered and configured by a local master subnet manager (SM). Each master subnet manager informs the central FGM about its local node population by queries and events. For a core fabric with communicating end nodes including physical and virtual management servers and switch management ports, the relevant FGM instance tracks or otherwise maintains information about the population in the same manner as the master SM in the leaf subnet. This allows the central FGM to track the whereabouts of any end node based on the GUID and therefore build the relevant route information for any required communication.
[0272] Typically, VM migrations within a single leaf subnet are handled locally within the leaf subnet, but any changes in routing or path information are communicated to a central FGM instance. VM migrations across leaf subnet boundaries are typically coordinated through a central FGM.
[0273] Note that a central FGM is typically responsible for coordinating vGUIDs and P_Key values that have a scope that spans the boundaries of various leaf subnets and core fabric instances. Thus, there may be instances within a forwarding domain that are not in sync with the current global policy. Note that the assignment of values in the transfer domain will not be allowed to be visible outside the associated transfer domain, nor will it adversely affect other transfer domains.
[0274] Virtual Machine (VM) Migration: According to an exemplary embodiment, virtual machine (VM) migration within a single leaf subnet can occur without change of address information, as long as a unique DLID value is used to indicate the virtual HCA port that the VM represents.
[0275] Whenever a VM is migrated out of a leaf subnetwork, typically the addressing information is updated for all peers in the original leaf subnetwork that were using LRH-only (i.e., no GRH) based addressing to reach the VM, because the use of GRH is now required. Similarly, whenever a VM is migrated out of a leaf subnetwork, the addressing information is updated for all peers in other forwarding domains that are now using GRH / ISRN based addressing. This is true insofar as it is possible to preserve the VM's LID value used in the original subnetwork, in addition to performing rerouting of both the DLID for the initial core fabric gateway port and the ISRN value for the subsequent leaf subnet gateway port.
[0276] According to a further example embodiment, using TCAM-based forwarding and LRH generation via a virtual router port in a system instance that directly connects the new leaf subnet to which the VM is migrated, it is possible to have an intermediate state where the LID for the initial core fabric gateway port and the ISRN value for the subsequent leaf subnet gateway port have been rerouted to provide forwarding to the associated virtual router port, which may be able to perform a final LRH generation with the new DLID, and the complete old addressing information will be valid following the migration.
[0277] The above scheme can be combined as necessary or desired with a "lazy" scheme for updating the address information for all involved peers, where both the old (original) and new address information can then be valid simultaneously for the VM. For example, if the central FGM determines that none of the peers rely on the old address information any more, the old address information can be "recycled."
[0278] This scheme assumes that at least the original ISRN value is assigned exclusively to the VM (i.e., not as such to the leaf subnet gateway port) so that it can be rerouted without causing conflicts for other destinations using the same ISRN for intermediate core fabric routes.
[0279] If a VM migration occurs in a manner that requires that a new core fabric instance must be used to reach the VM after migration, the same constraint exists for the DLID values used to address the core fabric gateway ports in all communicating leaf subnets.
[0280] A special case are communicating peers within the original leaf subnet - as long as these peers are initially instructed to use GRH / ISRN based addressing, they can transparently handle VM migration based on re-routing the original DLID and ISRN values (i.e., first the original LRH.DLID will point directly to the VM, but after migration it will be updated to point to the relevant core fabric gateway port).
[0281] From the perspective of a VM being migrated out of a leaf subnet instance, it generally has to update address information for all its communicating peers, especially since first hop addressing is not the same in different leaf subnets. This is independent of all the enhancements to achieve address transparency for communicating peers outlined in the section above.
[0282] Note that in all the above cases, the assumption is that FLSN checking is not enabled, or that migrations only occur between leaf subnet instances with the same FLSN value, or that the system implementation associates several FLSN values with each port as described above, and that a small number of migrations with conflicting FLSN values can be processed at any given time, i.e., until all peers have updated their address information as described above.
[0283] Hardware support for Leaf Subnet / Core fabric models: Within a single leaf subnet, the system of the exemplary embodiment implements LRH.DLID-based packet forwarding using a Linear Forwarding Table (LFT) in accordance with the InfiniBand (IB) standard. By default, each virtual switch has an LFT that supports the full 48K unicast DLID space and a multicast forwarding table that supports the full 16K multicast DLID space. As long as a POR to the system is to have private unicast and multicast LFTs shared by pairs of physical ports, the minimum granularity that constitutes the virtual switch port membership is a group of two ports that share an LFT. The extended SM and FGM routing logic may then support multiple independent LFTs per virtual switch. However, as long as an LFT is shared by more than one physical port, the dependency is that the actual physical topology provide itself for handling multiple independent LFTs.
[0284] Note that sharing LFTs among physical ports has implications on the grouping of ports per cable connector (if greater than 4x) and how the cabled physical connectivity of large local fabrics should look, since it becomes beneficial to utilize more than one LFT per virtual switch. Also, using various proprietary or pre-standard technologies, embodiments of the present system could potentially extend the LRH.DLID unicast space beyond 48K.
[0285] To identify boundaries between forwarding domains, such as between different leaf subnets and / or core fabric instances, the system of the example embodiment implements a set of features described below.
[0286] First, from within the leaf subnet, any core fabric gateway port is identified by one or more DLIDs, and forwarding is done using the normal LRH.DLID-based lookup. To identify that the looked-up output port represents a core fabric gateway port that requires a change in addressing mode from LRH / DLID (based on the original LRH) to GRH / ISRN, information is provided that allows this change in mode to be determined before the packet reaches the output port's egress link. To avoid packet stalling, this information is made available as soon as possible after the packet is received at the ingress port, and a new LRH is prepared and fully defined when the arbiter allows the packet to be forwarded to the output port. Thus, the information is available along with the lookup of the output port at the ingress port. Furthermore, the same output port may have more than one "personality" depending on which other local system ports are sending packets to it across the crossbar. Having the output port type available via a register associated with each input port is the most flexible scheme, allowing the user to have a "unique" port type. This saves space versus having the port type encoded in the LFT entry, and it gives the flexibility and no need for access arbitration, both for shared LFT entries, and using a centralized approach where the output port type is defined once for the entire chip. Hardware support for building new packets in the new addressing modes includes generation of a fixed LRH.DLID based on internal registers, and logic to identify and extract the correct ISRN bit field from the GRH.
[0287] Second, within the core fabric instance, identification of the GRH / ISRN forwarding mode at the ingress port is based on matching the incoming LRH.DLID value with the contents of an internal register. Then, if the packet LRH.DLID value matches the value contained in the register, the forwarding mode is the "GRH / ISRN" forwarding mode of the exemplary embodiment. Otherwise, if the packet LRH.DLID value does not match the value contained in the register, the forwarding mode is the InfiniBand (IB) legacy "LRH / DLID" forwarding mode.
[0288] In an exemplary embodiment, for performance and flexibility, this register is preferably replicated for all ports. This means that the Subnet Manager (SM) is not aware of this system feature, but it is also possible to have a leaf subnet virtual switch instance without reducing the available LFT size in its leaf subnets. From within the core fabric instance, the route towards a gateway port (or end port) is defined by the ISRN value that is used to look up the output port from the LFT of each "in-route" system ingress port.
[0289] To determine that an output port is a gateway to the destination leaf subnet, a simple solution in an exemplary embodiment is to compare the packet FLSN number with the FLSN number associated with the searched output port. However, to identify the necessary change in addressing mode while still allowing the ingress port to operate in more than one mode, it is sufficient for the ingress port to have a flag for each possible output port saying whether the output port represents a change in addressing mode or that the output port does not represent a change in addressing mode. Thus, if the input forwarding mode is GRH / ISRN and the output port is flagged (i.e., for this ingress port) as representing a change in addressing mode, the addressing mode can be changed to LRH / DLID deterministically based on the DLID value contained in GRH.DGID.prefix.dlid. Note that in this case, matching the FLSN values would merely represent an additional integrity check, as long as the ISRN-based routing within the core fabric instance is correct.
[0290] The HW support for constructing a new packet with a new addressing mode includes logic to identify and extract the correct DLID bit field from the GRH, and generate a new LRH based on the extracted DLID value.
[0291] Third, when two leaf subnets are directly connected by different virtual switches on the same system instance, there will typically be a mutual leaf subnet gateway port relationship between the ports in the two virtual switches. Thus, from within leaf subnet A, there will be one or more DLID values that identify the specific leaf subnet gateway port that provides direct connectivity to leaf subnet B. Then, to determine that the output port is a gateway to the destination leaf subnet, a simple solution in the exemplary embodiment is to compare the packet FLSN number with the FLSN number associated with the probed output port. However, in models with more than one ingress port, In order to identify the necessary change in addressing mode while still being able to operate in a mode similar to that described above, it is sufficient for the ingress port to have, for each possible output port, a flag indicating whether the output port represents a change in addressing mode or whether the output port does not represent a change in addressing mode.
[0292] Nevertheless, having only a single flag value per output port is not sufficient when the addressing mode change can be either LRH / DLID to GRH / ISRN or LRH / DLID to LRH / DLID (i.e., as in this example). Thus, the flag per output port preferably identifies the type of gateway port and not just the addressing mode change. However, again, using FLSN matching is an alternative, but this is still primarily an integrity check as long as forwarding between leaf subnet instances is correctly realized.
[0293] Additional hardware support for Leaf Subnet / Core fabric models: In order to support any number of incoming DGID.subnet prefix values, but still be able to validate the DGID.GUID value for a target physical or virtual HCA port, such a target (v)HCA, according to an embodiment, includes a mode whereby checking of the incoming GRH.DGID against the hardware and alias GID values for the physical or virtual HCA port is limited to only the GUID portion, and the subnet prefix portion is ignored.
[0294] This mode may be selectively specified for each GID table entry individually. However, from the viewpoint of HW implementation, it is difficult to have associative matches for some table entries and then also have multiple matches based on different match criteria. Therefore, according to one embodiment, a mode in which the check is always performed only on the GUID part is sufficient.
[0295] The assumption is that then each virtual HCA port will be configured with two or more GID table entries that are unique even when only the GUID portion is considered. The normal or default case is that an associated hwGUID will exist with the vGUID that represents the currently active VM. The two corresponding GID table entries will each have a subnet prefix value based on the assigned ISN value.
[0296] How to use the subnet prefix value in (GRH) for (LFT) discovery FIG. 16 illustrates a method 1600 according to one embodiment for using packet headers for linear forwarding table lookup in a network switch environment in a high performance computing environment. The method of the figure will now be described. A first and a second subnet are provided in a computer environment including a network fabric. The first subnet is different from the second subnet. The first subnet includes a first set of network switches, each of the first set of network switches including a linear forwarding table (LFT) and a plurality of physical ports. The second subnet includes a second set of network switches, each of the second set of network switches including an LFT and a plurality of physical ports. This is the environment of an exemplary embodiment of the method. Overall, the method 1600 includes a first LFT for a first of the first set of network switches for intra-subnet forwarding decisions of packets to be forwarded between network switches of the first set of network switches of the first subnet, as well as for inter-subnet forwarding decisions of packets to be forwarded between network switches of the first set of network switches and a plurality of physical ports of the first and second subnets, respectively, when the same first LFT of the first of the first set of network switches is determined to be a first LFT for each of the first and second subnets. This allows the QoS policy to be used for both inter-subnet forwarding decisions of packets that are to be forwarded between network switches.
[0297] In a first step 1610, a first packet is received at a first network switch of a first set of network switches in a first subnet. A first portion of a header of the first packet is examined in step 1620. A first condition in the first portion of the header of the first packet is determined in step 1630, and a second condition in the first portion of the header of the first packet is determined in step 1640.
[0298] An intra-subnet forwarding decision is optionally made at step 1630 if it is determined that the first portion of the header of the first packet has the first condition or otherwise indicates the first condition. Otherwise, if it is determined that the first portion of the header of the first packet does not have the first condition or otherwise indicates the first condition, the method proceeds to inter-subnet forwarding decision step 1640.
[0299] If an intra-subnet forwarding decision is optionally made in step 1630, such as if a first portion of a header of a first packet is determined to have or otherwise indicate a first condition, the packet is processed using intra-subnet (LRH / DLID) forwarding in step 1635 in accordance with an example embodiment.
[0300] Similarly, if an inter-subnet forwarding decision is optionally made in step 1640, such as if a first portion of the header of the first packet is determined to have or otherwise indicate a second condition, the packet is processed using inter-subnet (GRH / ISRN) forwarding in step 1645 in accordance with an exemplary embodiment.
[0301] In step 1645, inter-subnet forwarding is selectively performed using the first LFT of the first network switch according to a second condition in the first portion of the header of the first packet to route the first packet to a selected network switch of the second set of network switches of the second subnet.
[0302] In an exemplary embodiment, inspecting the first portion of the header of the first packet includes inspecting a local route header (LRH) portion of the header of the first packet. Further according to an exemplary embodiment, determining a condition of the first portion of the header of the first packet includes comparing a selected portion of the LRH to a predefined value stored in the first network switch, determining the first condition according to a mismatch between the selected portion of the LRH and the predefined value, and determining the second condition according to a match between the selected portion of the LRH and the predefined value.
[0303] Moreover, in an exemplary embodiment, selectively determining the second condition according to a match between the selected portion of the LRH and a predetermined value includes indexing a special switch port (SSP) using the selected portion of the LRH using the LFT.
[0304] In particular, with respect to an exemplary embodiment, routing the first packet to a selected network switch of the second set of network switches in the second subnet includes selecting a section of a Global Route Header (GRH) portion of a header of the first packet, the selected section of the GRH portion of the header storing an Inter-Subnet Route Number (ISRN), and routing further includes indexing a first LFT of the first network switch using the ISRN of the GRH, and routing the first packet to the selected network switch of the second set of network switches in the second subnet in accordance with indexing the first LFT using the ISRN of the GRH. and routing the second subnet to an intermediate core fabric of the network switch environment.
[0305] Further, in accordance with an exemplary embodiment, when neither the first nor the second condition in the first portion of the header of the first packet is determined in steps 1630 and 1640, the packet is discarded in step 1650. That is, in an exemplary embodiment, the packet is discarded in step 1650 because none of the forwarding conditions are met.
[0306] Features of the exemplary embodiments may be implemented in, using, or with the aid of a computer program product, which is a storage medium or computer readable medium that stores instructions usable to program a processing system to perform any of the features presented herein. The storage medium may include, but is not limited to, any type of disk, including floppy disks, optical disks, DVDs, CD-ROMs, microdrives, and magneto-optical disks, ROM, RAM, EPROM, EEPROM, DRAM, VRAM, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of medium or device suitable for storing instructions and / or data.
[0307] Features of the exemplary embodiments may be incorporated into software and / or firmware, stored on any of a number of machine-readable media, for controlling the hardware of a processing system and for enabling the processing system to interact with other mechanisms that utilize the results of the exemplary embodiments. Such software or firmware may include, but is not limited to, application code, device drivers, operating systems, and execution environments / containers.
[0308] Features of the illustrative embodiments may also be implemented in a hardware-based manner using hardware components such as, for example, application specific integrated circuits (ASICs). It will be apparent to one skilled in the relevant art(s) to implement a hardware state machine so as to perform the functions described herein.
[0309] In addition, the exemplary embodiments may be conveniently implemented using one or more conventional general-purpose or specialized digital computers, computing devices, machines, or microprocessors, including one or more processors, memory, and / or computer-readable storage media, programmed according to the teachings of this disclosure. As will be apparent to those skilled in the software art, appropriate software coding may be readily prepared by skilled programmers based on the teachings of this disclosure.
[0310] While various embodiments have been described above, it should be understood that they have been presented by way of illustration and not by way of limitation. It will be apparent to those skilled in the relevant art that various changes in form and detail can be made therein without departing from the spirit and scope of the invention.
[0311] Exemplary embodiments have been described above with the aid of functional building blocks illustrating the performance of specified functions and relationships thereof. For convenience of description, boundaries of these functional building blocks have often been arbitrarily defined in this specification. Alternative boundaries can be defined so long as the specified functions and relationships thereof are appropriately performed. Thus, any such alternative boundaries are within the scope and spirit of the present invention.
[0312] The foregoing description of the exemplary embodiments has been provided for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise forms disclosed. The breadth and scope of the exemplary embodiments should not be limited by any of the above-described exemplary embodiments. Many modifications and variations will be apparent to those skilled in the art. These modifications and variations include all relevant combinations of the disclosed features. The embodiments were chosen and described in order to best explain the principles of the invention and its practical application, so as to enable those skilled in the art to understand the invention with its various modifications and in various embodiments suited to the particular uses contemplated. It is intended that the scope of the invention be defined by the claims and their equivalents.
Claims
1. 1. A method for using packet headers for linear forwarding table lookup in a network switch environment in a high performance computing environment, comprising: In a computer environment including a network fabric, providing first and second subnets, the first subnet being different from the second subnet, the first subnet including a first set of network switches, a first Linear Forwarding Table (LFT) and a first plurality of physical ports, and the second subnet including a second set of network switches, a second LFT and a second plurality of physical ports, the method further comprising: the first LFT of the first set of network switches is used for both intra-subnet forwarding decisions of packets to be forwarded between network switches of the first set of network switches of the first subnet, and inter-subnet forwarding decisions of packets to be forwarded between the network switches of the first set and the network switches of the second set of network switches of the first and second subnets, respectively; receiving a first packet at a first network switch of the first set of network switches for the first subnet; Inspecting a local route header (LRH) of the first packet; Determining a condition of the LRH of the first packet; and making the inter-subnet forwarding decision based on the first LFT indexing a special switch port (SSP) of the first plurality of physical ports of the first subnet using a selected portion of the LRH of the first packet that is applied to the LFT; or and by making the intra-subnet forwarding decision, enabling, a method for using a packet header for linear forwarding table lookup in a network switch environment in a high performance computing environment.
2. Determining the condition of the LRH includes comparing a selected portion of the LRH to a predetermined value stored in the first network switch; 2. The method of claim 1, wherein making the intra-subnet forwarding decision comprises making the intra-subnet forwarding decision based on a mismatch between the selected portion of the LRH and the predetermined value stored in the first network switch.
3. Routing the first packet to a selected network switch of the second set of network switches for the second subnet includes: and selecting a section of a Global Route Header (GRH) portion of the header of the first packet, the selected section of the GRH portion of the header storing an Inter-Subnet Route Number (ISRN), and the routing further comprises: indexing the first LFT of the first network switch using the ISRN of the GRH; and routing the first packet to the selected network switch of the second set of network switches of the second subnet in accordance with indexing the first LFT using the ISRN of the GRH, the second subnet being an intermediate core fabric of the network switch environment.
4. receiving a second packet from the intermediate core fabric of the network switch environment at the first network switch of the first set of network switches for the first subnet; determining that the second packet received from an intermediate core fabric is being forwarded using the ISRN; 4. The method of claim 3, further comprising: making the intra-subnet forwarding determination according to determining that the second packet received from an intermediate core fabric is being forwarded using the ISRN and using a target local identifier (LID) included in a header of the second packet using the same first LFT of the first network switch.
5. 2. The method of claim 1, further comprising: using a filter at the first network switch to filter a target local identifier (LID) of the first packet to determine whether the first packet is targeted to the SSP.
6. making the inter-subnet forwarding determination includes determining that the first packet is targeted to the SSP; The method of claim 1 or 5, wherein making the intra-subnet forwarding decision comprises determining that a first packet is not targeted to the SSP.
7. 1. A system for using packet headers for linear forwarding table lookup in a network switch environment in a high performance computing environment, comprising: a computer environment, the computer environment comprising: A network fabric; A first subnet; a second subnet, the first subnet being different from the second subnet, the first subnet including a first set of network switches, a first Linear Forwarding Table (LFT), and a first plurality of physical ports, the second subnet including a second set of network switches, a second LFT, and a second plurality of physical ports; The first LFT of the first set of network switches is used by the computer environment for both intra-subnet forwarding decisions of packets to be forwarded between network switches of the first set of network switches of the first subnet, and inter-subnet forwarding decisions of packets to be forwarded between the first set of network switches and the second set of network switches of each of the first and second subnets, and the computer environment is receiving a first packet at a first network switch of the first set of network switches for the first subnet; Inspecting a local route header (LRH) of the first packet; Determining a condition of the LRH of the first packet; Using the first LFT, The first LFT makes the inter-subnet forwarding decision based on indexing a special switch port (SSP) of the first plurality of physical ports of the first subnet using a selected portion of the LRH of the first packet that is applied to the LFT; or A system for using a packet header for a linear forwarding table lookup in a network switch environment in a high performance computing environment to make said intra-subnet forwarding decisions.
8. The first network switch of the first set of network switches for the first subnet: determining the condition of the LRH of the first packet by comparing a selected portion of the LRH with a predetermined value stored in the first network switch; 8. The system of claim 7, operable to make the intra-subnet forwarding decision based on a mismatch between the selected portion of the LRH and the predetermined value stored in the first network switch.
9. the first network switch of the first set of network switches for the first subnet is operable to route the first packet to a selected network switch of the second set of network switches for the second subnet, the routing comprising: The routing is performed by selecting a section of a Global Route Header (GRH) portion of the header of the first packet, the selected section of the GRH portion of the header storing an Inter-Subnet Route Number (ISRN), and the routing is further performed by: indexing the first LFT of the first network switch using the ISRN of the GRH; and routing the first packet to the selected network switch of the second set of network switches of the second subnet in accordance with indexing the first LFT using the ISRN of the GRH, the second subnet being an intermediate core fabric of the network switch environment.
10. The first network switch of the first set of network switches for the first subnet: receiving a second packet from the intermediate core fabric of the network switch environment at the first network switch of the first set of network switches for the first subnet; determining that the second packet received from the intermediate core fabric is being forwarded using the ISRN; 10. The system of claim 9, operable to make the intra-subnet forwarding decision according to determining, using the same first LFT of the first network switch, that the second packet received from an intermediate core fabric is being forwarded using the ISRN and using a target local identifier (LID) included in a header of the second packet.
11. The first network switch of the first set of network switches for the first subnet:
8. The system of claim 7, further comprising: a filter at the first network switch operable to filter a target local identifier (LID) of the first packet to determine whether the first packet is targeted to the SSP.
12. The first network switch of the first set of network switches for the first subnet: making the intra-subnet forwarding decision by determining that the first packet is not targeted to the SSP; 12. The system of claim 7 or 11, operable to make the inter-subnet forwarding decision by determining that the first packet is targeted to the SSP.
13. A program for causing a computer to execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
A system and method for routing traffic between separate InfiniBand subnets based on source routing.
JP2015517762A
Apparatus and methods for increasing bandwidth in an infiniband switch
US20030223435A1
GID capable switching in an infiniband fabric
US20130259033A1
Simplified packet routing
US20150098466A1
