Algorithms for using load information from neighboring nodes in adaptive routing

DE112020002528B4Active Publication Date: 2024-10-17HEWLETT PACKARD ENTERPRISE DEV LP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
DE112020002528
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-05-23
Filing Date
2020-03-23
Publication Date
2024-10-17
Estimated Expiration
2040-03-23

AI Technical Summary

Technical Problem

Existing network architectures face challenges in scalability, versatility, and efficiency due to varying data traffic types and increasing network loads from applications like high-performance computing and Internet of Things, necessitating improved routing mechanisms.

Method used

An adaptive routing system that utilizes load information from neighboring switches to make informed decisions, employing flow channels with dedicated input queues and congestion control mechanisms to optimize network performance.

Benefits of technology

The system achieves significantly improved network utilization, reduced congestion, and enhanced responsiveness to traffic changes by making accurate, data-driven routing decisions, resulting in performance improvements of over three orders of magnitude.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

A method for forwarding data between a plurality of switches (102, 104, 106, 108, 110, 202, 602, 604, 606, 702, 704, 706, 708) with a plurality of links connected between the plurality of switches, the method comprising: at a switch, receiving a plurality of load signals from a plurality of adjacent switches, each of the plurality of load signals comprising a set of values ​​indicating a load on each of the plurality of adjacent switches providing the load signal, each value within the set of values ​​providing an indication for each link of the plurality of links connected thereto as to whether the link is busy or idle, the indication of whether the link is busy comprising a remote switch busy port mask characterizing ports of the adjacent switches, wherein one or more of the Remote switch occupied port masks are transformed,to form entries of a remote switch busy global port table, and one or more of the remote switch busy port masks are transformed to form entries of a remote switch busy local port table, the remote switch busy port masks being received from the neighboring switches; and based on the plurality of load signals, selecting an output link to route a received packet and routing the received packet over the selected output link.
Need to check novelty before this filing date? Find Prior Art

Description

DECLARATION ON THE RIGHTS OF THE GOVERNMENT

[0001] The invention(s) described here were / were made with the support of the U.S. government under one or more of the contracts listed below. The U.S. government has certain rights to these inventions. Title of the contract Client / Agency Contract reference FastForward-2 Lawrence Livermore National Security, LLC / Department of Energy Subcontract B609229 under the main contract DE-AC52-07NA27344 BeePresent Maryland Procurement Office H98230-15-D-0020; Delivery order 003 SeaBiscuit Maryland Procurement Office 1198230-14-C-0758 PathForward Lawrence Livermore National Security, LLC / Department of Energy Subcontract B620872 within the framework of the main contract DE-AC52-07NA27344 DesignForward The Regents of the University of California / Department of Energy Subcontract 7078453 under main contract DE-AC02-05CII11231 Draft Forward- 2 The Regents of the University of California / Department of Energy Subcontract 7216357 under main contract DE-AC02-05CII11231 Related Applications

[0002] This application claims the benefits of the preliminary US patent application No. 62 / 852273 entitled “Network Switch”, the preliminary US patent application No. 62 / 852203 entitled “Network Interface Controller”, and the preliminary US patent application No. 62 / 852289 entitled “Network Computer System”, filed on May 23, 2019, the disclosures of which are incorporated herein by reference in full for all purposes. Description of the state of the art

[0003] As network-enabled devices and applications become increasingly ubiquitous, diverse types of traffic and ever-increasing network loads demand ever greater performance from the underlying network architecture. For example, applications such as high-performance computing (HPC), media streaming, and the Internet of Things (IoT) can generate various types of traffic with differing characteristics. Consequently, network architects continue to face challenges beyond traditional network performance metrics like bandwidth and latency, including scalability, versatility, and efficiency. List of characters

[0004] The present disclosure is described in detail in accordance with one or more different embodiments with reference to the following figures. The figures serve only for illustration and represent only typical or exemplary embodiments. Fig. shows an example network in which different implementations can be implemented. Fig. shows an example of a switching system that enables flow channels in accordance with various embodiments. Fig. shows crossbars implemented in an example of a crossbar switch according to various embodiments. Fig. shows an example tile matrix that corresponds to the connections of the example edge switching system of Fig. in accordance with various embodiments. Fig. shows an example of a tile that represents the tile matrix of Fig. in accordance with various embodiments. Fig. shows an exemplary implementation of an age-based queue in accordance with various embodiments. Fig. and Fig.These are block diagrams of an exemplary FRF component, which is connected to each terminal of the exemplary edge switching system of Fig. is implemented. Fig. shows an example of route selection according to different implementations. Fig. shows an example of updating local and global load values ​​and their use in accordance with different implementations. Fig. shows an example of a routing system based on the average load. Fig. shows an example of adaptive routing based on the load of the neighboring switch in accordance with various implementations. Fig. shows an example of a computer component capable of executing instructions for load-based adaptive routing according to one embodiment. Fig.is an example of a computer component in which various embodiments described here can be implemented.

[0005] The illustrations are not exhaustive and do not limit the present disclosure to the exact form that is revealed. Detailed description

[0006] This disclosure describes systems and methods suitable for exascale computing, such as performing data-intensive tasks like simulations, data analysis, and artificial intelligence at exascale speeds. Specifically, it provides an HPC network or interconnect structure that can be Ethernet-compatible, connectable to third-party data storage, and built with a switch component offering extremely high bandwidth, e.g., on the order of 12.8 TB / s / dir per switch with, for example, 64 200 Gbps ports, supporting large-scale networking with a very small diameter (e.g., only three network hops). Furthermore, low latency can be achieved through novel congestion control mechanisms, adaptive routing, and the use of traffic classes, enabling flexible bandwidth, priority, and routing policies.

[0007] When passing information from switch to switch, it's necessary to make immediate decisions about the next step along the path. These decisions are based on information transmitted from the local state and from neighboring switches. Using information from many different sources enables more accurate and efficient decisions, including information from neighbors.

[0008] Earlier systems transmitted information about the average load from switch to switch. However, more detailed information from related or neighboring switches is more helpful. Accordingly, in some implementations, a set of values ​​can contain information indicating the status of output ports on related / neighboring switches. Passing on this set of values ​​allows for significantly better routing decisions. In one example, a flag is returned from neighboring switches, with the flag containing one bit for each output port. For example, a switch with 64 outputs would transmit a 64-bit flag. This is much more accurate than simply passing on a global average value for neighboring ports.

[0009] Fig. This shows an example of a network 100 with a large number of switches, which can also be called a "switch fabric". "As in Fig.As shown, the network can comprise 100 switches: 102, 104, 106, 108, and 110. Each switch can have a unique address or ID within switch fabric 100. Various types of devices and networks can be connected to a switch fabric. For example, a storage array 112 can be connected to switch fabric 100 via switch 110; an InfiniBand (IB)-based HPC network 114 can be connected to switch fabric 100 via switch 108; a number of end hosts, such as host 116, can be connected to switch fabric 100 via switch 104; and an IP / Ethernet network 118 can be connected to switch fabric 100 via switch 102. For example, a switch like Switch 102 can receive 802.3 frames (including the encapsulated IP payload) via Ethernet devices such as network interface cards (NICs), switches, routers, or gateways. It can also receive IPv4 or IPv6 packets, specifically formatted frames for the network, etc.These signals can also be received and forwarded through switch fabric 100 to another switch, such as switch 110. In this way, network 100 is able to handle multiple types of traffic simultaneously. Generally, a switch can have edge ports and fabric ports. An edge port can be connected to a device located outside the fabric. A fabric port can be connected to another switch within the fabric via a fabric link.

[0010] Typically, traffic can be injected into Switch Fabric 100 via an input port of an edge switch and exit Switch Fabric 100 via an output port of another (or the same) edge switch. An ingress edge switch can group injected data packets into flows, which can be identified by flow IDs. The concept of a data flow is not limited to a specific protocol or layer (such as layer 2 or layer 3 in the OSI reference model). For example, a data flow can be associated with traffic with a specific source Ethernet address, traffic between a source IP address and a destination IP address, traffic corresponding to a TCP or UDP port / IP-5 tuple (source and destination IP address, source and destination TCP or UDP port number, and IP protocol number), or traffic generated by a process or thread running on an end host.In other words, a flow can be configured to map data between any physical or logical units. This mapping configuration can be performed remotely or locally at the Ingress Edge Switch.

[0011] Upon receiving injected data packets, the ingress edge switch can assign a flow ID to the data stream. This flow ID can be contained in a special header that the ingress edge switch can use to encapsulate the injected packets. Additionally, the ingress edge switch can also examine the original header fields of an injected packet to determine the corresponding address of the ingress edge switch and include this address as the destination address in the encapsulation header. Note that the flow ID can be a locally significant value specific to a connection, and this value can only be unique for a particular input port on a switch. When the packet is forwarded to the next-hop switch, the packet enters a different connection, and the flow ID can be updated accordingly.Because packets in a flow traverse multiple connections and switches, the flow IDs corresponding to that flow can form a unique chain. This means that at each switch, before a packet leaves the switch, the packet's flow ID can be updated to a flow ID used by the outgoing connection. This one-to-one mapping between flow IDs can begin at the ingress edge switch and end at the egress edge switch. Since flow IDs only need to be unique within an incoming connection, a switch can accommodate a large number of flows. For example, if a flow ID is 11 bits long, an incoming port can support up to 2048 flows. Furthermore, the match pattern (one or more header fields of a packet) used to map to a data flow can contain a larger number of bits.A 32-bit matching pattern, which can contain multiple fields in a packet header, can, for example, represent 2^32 different header field patterns. If a fabric has N ingress edge ports, a total of N*2^32 identifiable flows can be supported.

[0012] A switch can assign a dedicated inbound queue to each data flow. This configuration allows the switch to monitor and manage the congestion level of individual data streams and prevent queue blockage, which could occur if a shared buffer were used for multiple data streams. When a packet is delivered to the destination egress switch, the egress switch can send an acknowledgment (ACK) upstream to the ingress edge switch along the same data path. Because this ACK packet travels the same data path, switches along the path can obtain the status information associated with the delivery of the corresponding data flow by monitoring the amount of pending, unacknowledged data.This state information can then be used to perform flow-specific traffic management, ensuring the overall health of the network and fair treatment of traffic flows. As explained in more detail below, by queuing data flows in combination with flow-specific delivery confirmations, the switch fabric can perform effective, fast, and accurate congestion control. In turn, the switch fabric can deliver traffic with significantly improved network utilization, avoiding congestion.

[0013] Flows can be dynamically or "on the fly" established and released as needed. Specifically, a flow can be established from an edge switch (e.g., mapping the flow ID to the packet header) when a data packet arrives at the switch and has not yet been assigned a flow ID. As this packet traverses the network, flow IDs can be assigned at each switch the packet passes through, creating a chain of flow IDs from entry to exit. Subsequent packets belonging to the same flow can use the same flow IDs along the data path. As packets are delivered to the destination egress switch and ACK packets are received by the switches along the data path, each switch can update its status information regarding the amount of pending, unacknowledged data for that flow.If a switch's inbound queue for this data flow is empty and there is no other unacknowledged data, the switch can release the flow ID (i.e., free up this flow channel) and reuse the flow ID for other flows. This data-driven, dynamic mechanism for establishing and terminating data flows eliminates the need for centralized data flow management, and the network can quickly respond to changes in traffic patterns.

[0014] Note that the network architecture described here differs from software-defined networking (SDN), which typically uses the OpenFlow protocol. In SDN, switches are configured by a central network controller, and packets are routed based on one or more fields in the headers of Layer 2 (data link layer, e.g., Ethernet), Layer 3 (network layer, e.g., IP), or Layer 4 (transport layer, e.g., TCP or UDP). In SDN, such header field lookups are performed at each switch in the network, and there is no fast, flow-ID-based forwarding as occurs in the networks described here. Because OpenFlow header field lookups are performed using ternary content-addressable memory (TCAM), the overhead of such lookups can be high.Because the configuration of the header-field mapping is performed by the central control unit, the establishment and dismantling of each mapping relationship is relatively slow and can require a significant amount of control traffic. As a result, an SDN network's response to various network situations, such as congestion, can be slow. In contrast, in the network described here, flows can be dynamically established and dismantled based on traffic demand, and packets can be routed using a fixed-length flow ID. In other words, flow channels can be managed in a data-driven and decentralized manner (i.e., established, monitored, and dismantled) without the need for intervention from a central controller. Furthermore, flow ID-based routing can reduce the amount of TCAM memory used, allowing for a much larger number of flows to be accommodated.

[0015] Let us assume that storage matrix 112 is to send data to host 116 via TCP / IP (see the example in Fig.During operation, memory matrix 112 can send the first packet with the IP address of host 116 as the destination address and a predetermined TCP port specified in the TCP header. When this packet reaches exchange 110, the packet processor at exchange 110's inbound port can identify a TCP / IP 5-tuple of this packet. The packet processor at exchange 110 can also determine that this 5-tuple is not currently associated with a flow ID and can assign a new flow ID to it. Furthermore, exchange 110 can determine the outbound switch, i.e., switch 104, for this packet based on the destination IP address (i.e., host 116), assuming exchange 110 knows that host 116 is connected to switch 104. The switch 110 can then encapsulate the received packet with a fabric header that specifies the newly assigned flow ID and the fabric address of the switch 104.Switch 110 can then plan the forwarding of the encapsulated packet to Switch 104 based on a fabric forwarding table that can be calculated by all switches in Fabric 100 using a routing algorithm such as Link State or Distance Vector.

[0016] Note that the operations described above can be performed essentially at line speed with minimal buffering and delay once the first packet is received. After the first packet has been processed and scheduled for transmission, subsequent packets of the same data flow can be processed even faster by exchange 110 because the same data flow ID is used. Furthermore, the flow channels can be designed so that the allocation, matching, and release of flow channels incur essentially the same cost. For example, a conditional allocation of one flow channel based on a lookup match and a separate, independent release of another flow channel can be performed almost simultaneously in each clock cycle.This means that generating and controlling flow channels adds almost no additional overhead to regular packet forwarding. The congestion control mechanism, on the other hand, can improve the performance of some applications by more than three orders of magnitude.

[0017] At each switching point along the data path (including switches 110, 106, and 104), a dedicated input buffer can be provided for this data flow, and the amount of transmitted but unacknowledged data can be tracked. When the first packet reaches switch 104, switch 104 can determine that the fabric destination address in the packet's fabric header matches its own address. Switch 104 can then decapsulate the packet from the fabric header and forward the decapsulated packet to host 116. Additionally, switch 104 can generate an ACK packet and send it back to switch 110. Because this ACK packet traverses the same data path, switches 106 and 110 can each update their own status information for the unacknowledged data for this flow.

[0018] In general, network congestion can cause network buffers to fill up. When a network buffer is full, traffic attempting to pass through it should ideally be slowed down or stopped. Otherwise, the buffer could overflow, and packets could be dropped. In traditional networks, congestion control typically occurs end-to-end at the edge. The core of the network is assumed to act only as a "dumb tube," whose primary purpose is to forward traffic. Such a network design often suffers from a slow response to congestion because congestion information often cannot be quickly sent to the edge devices, and the resulting actions taken by the edge devices are not always effective in resolving the congestion.This slow response, in turn, limits network utilization, because to keep the network free of congestion, the network operator often has to limit the total amount of traffic fed into the network. Furthermore, end-to-end congestion control is generally only effective if the network is not already congested. Once the network is heavily congested, end-to-end congestion control would no longer function, as the congestion messages themselves can be overloaded (unless a separate control plane network, distinct from the data plane network, is used for sending congestion control messages).

[0019] In contrast, flow channels can prevent such congestion from occurring within the switch fabric. The flow channel mechanism can detect when a flow experiences a certain degree of congestion and, in response, slow down or prevent new packets from the same flow from entering the fabric. Conversely, these new packets can be cached in a flow channel queue at the edge port and are only allowed into the fabric when packets for the same flow leave the fabric at the destination edge port. This process limits the overall buffering requirement of this flow within the fabric to a level that does not cause the fabric buffers to become overfilled.

[0020] With flow channels, switches have reasonably accurate status information about the amount of pending data in transit within the fabric. This status information can be aggregated for all flows at an ingress edge port. This means that the total amount of data fed in by an ingress edge port is known. Consequently, the flow channel mechanism can set a limit on the total amount of data in the fabric. If all edge ports apply this limit, the total amount of packet data in the entire fabric can be well controlled, which in turn can prevent the entire fabric from becoming saturated. The flow channels can also slow down the progress of a single congested flow within the fabric without slowing down other flows.This feature allows packages to be kept away from a traffic hotspot while preventing buffers from becoming full and ensuring free buffer space for non-contiguous traffic.

[0021] Fig. shows an example switch 202 (which may be an embodiment of one or more of the switches 102, 104, 106, 108 and 110) that can be used to create a switch fabric, e.g. the switch fabric 100 of Fig., can be used. In this example, a switch 202 can include a number of communication ports, such as port 220. Each port can contain a transmitter and a receiver. The switch 202 can also include a processor 204, a storage device 206, and a logic block 208 for flow channel switching. The flow channel switching module 208 can be coupled to all communication ports and can also include a crossbar switch 210, an EFCT logic block 212, an IFCT logic block 214, and an OFCT logic block 216.

[0022] The crossbar switch 210 includes crossbars that can be configured to forward data packets and control packets (such as ACK packets) between communication ports. The EFCT logic block 212 can process packets received from an edge link and map the received packets to their respective flows based on one or more header fields in the packets. Additionally, the EFCT logic block 212 can assemble FGFC Ethernet frames that can be transmitted to an end host to control the amount of data influxed by individual processes or threads. The IFCT logic block 214 can contain the IFCT and perform various flow control methods in response to control packets, such as endpoint congestion notification ACKs and fabric link credit-based flow control ACKs.The OFCT logic block 216 can contain a memory unit that stores the OFCT and communicates with the IFCT logic block of another switch to update the flow ID of a packet when the packet is forwarded to a next-hop switch.

[0023] In one embodiment, the Switch 202 is an application-specific integrated circuit (ASIC) capable of providing 64 network ports operating at either 100 Gbps or 200 Gbps for a total throughput of 12.8 Tbps. Each network edge port can support IEEE 802.3 Ethernet and Optimized IP-based protocols, as well as Portals, an enhanced frame format that supports higher rates of small messages. Ethernet frames can be bridged based on their L2 address or forwarded based on their L3 address (1Pv4 / 1Pv6). Optimized IP frames can have only one L3 (1Pv4 / 1Pv6) header and are routed. Specialized NIC support can be used for the enhanced Portals frame format and can be directly mapped to the Network 100 fabric format, for example.A fabric format that provides specific control and status fields to support a multi-chip fabric when switches / switch chips, such as switches 102, 104, 106, 108, and 110, are interconnected and communicate with each other. As previously mentioned, a flow-channel-based congestion control mechanism can be used by such switches, enabling high transmission rates for small packets (e.g., more than 1.2 billion packets per second per port) to meet the demands of HPC applications.

[0024] The Switch 202 can provide system-wide Quality of Service (QoS) classes and control how network bandwidth is allocated to different traffic classes and application classes, with a single privileged application able to access more than one traffic class. In the event of network bandwidth conflicts, arbitrators select which packets to forward based on their traffic class and the credits available for that class. Network 100 can support minimum and maximum bandwidths for each traffic class. If a class does not utilize its minimum bandwidth, other classes can use the unused bandwidth, but no class can receive more than its allocated maximum bandwidth. The bandwidth management capability allows for the allocation of network resources, as well as CPU and memory bandwidth, to a specific application.

[0025] In addition to supporting QoS classes, the Switch 202 performs flow-channel-based congestion control and can reduce the number of network hops, for example, in a dragonfly topology network, from five to three. The Switch 202's design, described in more detail below, can reduce network costs and power consumption and facilitate the use of innovative adaptive routing algorithms that improve application performance. A structure created by multiple switches, such as multiple Switch 202s, can also be used to build fat-tree networks, for example, to create a storage subsystem for integration with third-party networking and software. Furthermore, the use of the Switch 202 enables fine-grained adaptive routing while maintaining orderly packet delivery.In some embodiments, the Switch 202 can be configured to send the header of a packet from an input port to an output port before the full data payload arrives, so that the load metric of the output port can reflect future loads, thereby improving the adaptive routing decisions made by the Switch 202.

[0026] The crossbar switch 210 can consist of separate, distributed crossbars that forward data / data elements between input and output terminals. In some embodiments and as described in Fig. As shown, there are five distributed crossbars, including a request crossbar 210a, a grant crossbar 210b, a credit crossbar 210c, an acknowledgment crossbar 210d and a data crossbar 210e between input port 220b and output port 220c.

[0027] The request crossbar 210a is used to send requests from an input to a targeted output queue. The grant crossbar 210b is used to send a grant back to the input to fulfill a request. Specifically, the grant crossbar 210b returns a pointer indicating the location of a packet in an input buffer. It should be noted that a grant is returned if there is space available in the output for the corresponding packet. The grant crossbar 210b can optionally also return a credit for requested space in the output. It is important to note that the grant is returned if there is a landing spot for a packet at the output, such as an output port 220c, so packets cannot be blocked (although they may temporarily compete for resources).

[0028] It should be clear that, in accordance with various embodiments, a credit protocol can be used to guarantee that there is a landing space available for a request at the output. Accordingly, a credit crossbar 210c can be used to return credit for requested space at the output.

[0029] A data matrix switch 210d is used to transfer granted packets from an input buffer to a designated output buffer. An acknowledgment matrix switch 210e is used to forward acknowledgment packets from the output ports 220c to the input ports 220b. The acknowledgments are controlled according to a state stored in an output flow channel table.

[0030] It should be clear that the 210d data crosspoint moves multi-clock packets containing headers and data, while the other four crosspoints (210a request crosspoint, 210b grant crosspoint, 210c credit crosspoint, and 210e acknowledgment crosspoint) move only the headers of single-clock packets. All five crosspoints use the same architecture with row and column buses within an 8 × 4 matrix of 32 dual-port tiles (as described below).

[0031] Back to Fig. The switch 202 can have a variety of transmit / receive ports, e.g., port 220. The multitude of connections can be structured in a tile matrix. Fig.Figure 300 shows an example of such a tile matrix. In one embodiment, the tile matrix 300 comprises 32 tiles, each containing two ports used to implement crossbar switching between the ports and to provide the following elements: a serializer / de-serializer (SERDES) interface between the core of the switch 202 and external high-speed serial signals to drive the signals from the switch 202; a media access control (MAC) sublayer interface to the physical coding sublayer (PCS); a PCS interface between the SERDES and the Ethernet MAC function; a link-level retry (LLR) function that operates on a packet-wise basis and uses ordered sets to deliver initialization sequences, acks, and nacks; and an ingress transforms block for converting between different frame fabric formats.Each tile contains a crossbar switch, such as crossbar switch 210, for each of the crossbars (210a-201e). As explained in more detail below, routing in the switch fabric can be controlled by a Fabric Routing Function (FRF) implemented in switch 202, where a separate instance of the FRF component (. Fig. , Fig. ) can be implemented in the input logic for each port of the Switch 202. As mentioned above, each port contains an instance of the FRF component, but for the sake of simplicity and illustration, only two FRF instances (400a, 400b) are given as examples.

[0032] Each crossbar switch 210 has sixteen inputs 220b, one for each port in its row, and eight outputs 220c, one for each port in its column. Row buses can be routed from any source in a row to all eight crossbars in that row (one-to-all). Arbitration can be performed at the crossbar from the sixteen row buses in that row to the eight column buses in a given column. Buffering can be provided at each 16 × 8 crossbar for each of the row buses to catch packets during times when a column bus is contested. In some embodiments, a non-jumbo packet is kept away from a row bus unless there is space for the entire packet in the input buffer of the destination crossbar.Due to space constraints, jumbo packets may be transmitted even if there is not enough space available (the crossbar input buffer is only large enough to accommodate a non-jumbo packet), blocking the row bus until the packet wins arbitration and space becomes available when it is transferred to a column bus.

[0033] Column buses are routed from a specific crossbar to every destination connection within a column (all-to-all). Each destination can have an additional arbitration layer between the column buses of the four rows. With sixteen row buses driving eight crossbars, each supplying eight column buses, this results in a fourfold speed increase between rows and columns. Each row has identical connections, with the connections from one to all row buses for a single row represented within row buses. Each tile has a delay of one (request, grant, credit) or two (data, ack) bars per tile, depending on the crossbar. This results in a maximum delay of seven or fourteen bars to travel between the leftmost and rightmost columns.Credit returns routed via the credit crosspoint 210c have a delay of one clock cycle per tile and can therefore take a maximum of seven clock cycles for complete transmission.

[0034] It should be noted that each column can have identical connections to the all-to-all column bus connections for a single column, and that there can be a delay of two clock cycles per tile, resulting in a delay of six clock cycles to travel from the top row to the bottom row. It should also be clear that both row and column buses use the credit-based protocol mentioned above to determine when they are able to transmit. In the case of row buses, the source port manages the number of credits for the crossbar input buffers within that row. For data crossbars, it is important to consider when a packet is allowed to go onto a row bus. If credits destined for a particular crossbar input buffer all pass through a single queue, space must be made available at the beginning of the queue for the packet before packet transmission begins.When grants are distributed across multiple queues, a packet transfer is only initiated when the buffer has space for an entire packet of maximum size, preventing small packets from crowding out large ones. In this way, a packet transfer on a row bus, once started, is only completed when the entire packet has been transferred. Accordingly, the crossbar input buffers are configured to be large enough to handle the maximum packet size plus additional space for the worst-case round-trip scenario (packet sending until credit return). This is not the case for jumbo packets. To conserve buffer space, the crossbar input buffers are only deep enough to handle a non-jumbo-size MTU (1500 bytes), where a jumbo packet can block a row bus while waiting to access the desired column bus.

[0035] In column buses, each crosspoint manages the number of credits for the input buffers at each destination port in that column. Unlike row buses, it is not necessary for credits to be available for a packet of maximum size before transmission of that packet begins on a column bus. Individual words of the packet are transmitted as credits become available. Therefore, the input buffer at the destination for each column bus only needs to be large enough to cover the round trip (packet to credit) in the worst-case scenario.

[0036] Fig.A more detailed example implementation with two terminals, e.g., terminals 0 and 1, managed by tile 1, is shown, along with the crossbar 220a, which comprises a set of row buses and column channels with crossbars per tile. In this way, each terminal has its own row bus communicating across its row, and each tile has the aforementioned 16 x 8 crossbar used for corner reversals and a set of eight column channels serving the eight terminals in that column. In other words, each crossbar 210 has sixteen row bus input buffers and eight possible destinations. For data to travel from input terminal 17 to output terminal 52, for example, it is routed from input terminal 17 along a row bus, passes through a local crossbar that performs 16-to-8 arbitration, and then travels via a column channel to output terminal 52.With regard to the entire routing through all distributed crossbars, the internal bandwidth is four times greater than the external bandwidth, which means that the routing through the switch 202 can keep pace with the input of almost any permutation of the data traffic.

[0037] A fair round-robin arbitration procedure can be applied between the sixteen sources for each destination. Once a source wins arbitration for the 210d data crosspoint, it retains control of the destination column bus until the entire packet has been sent. Each output grants a limited amount of packet payload, so competition for a particular column bus should be quite limited for larger packets. For this reason, round-robin arbitration is expected to be sufficient even with potentially large differences in packet size between requesters.

[0038] The parts of the Switch 202 that are connected to the output functions generally work with frames in the Switch Fabric format and have a Fabric header, for example, for a frame that arrives at and relies on an Ethernet port within a single Switch 202.

[0039] The output control of the age queue is responsible for accepting requests from all input ports, e.g., input ports 220b, via the request crossbar 210a, buffering the requests, differentiating them according to traffic class using a traffic shaper, and forwarding the requests to the OFCT 216 for granting via the grant crossbar 210b. Buffering of the age queue is managed so that each input has sufficient space for the data flow, while an input with multiple data flows targeting a specific output may require more space. Specifically, the space in the age queue is managed by the output control.The aging queue / output control can also manage access to the connection, either using credit-based flow control for an attached input buffer or pause-based flow control for non-Fabric connections. When a packet is released from the aging queue, it is transferred to the connection. Additionally, the aging queue has a path that allows packets initiated on a specific port, such as one of the input ports 220b (e.g., maintenance or shrink packets), to enlist resources on that port.

[0040] Requests arrive at the output control block via a column bus from each row of matrix 30. Each column bus feeds an independent FIFO (e.g., a first-in, first-out shift register or a buffer), with FIFO space managed via credits. The FIFOs can be sized (24 deep) to cover one rotation plus additional space to allow requests to be shifted out of cross rails 210a-210e and prevent row header blocking. Before being written to a FIFO, a request can be checked for a valid error correction code (ECC). If the ECC check reveals either a multi-bit error (MBE) or a single-bit error (SBE) in the destination field (i.e., the request was routed to the wrong port), the request is considered invalid and discarded with an error marker.

[0041] Least Recently Used (LRU) arbitration can be performed between column bus FIFOs to determine which FIFO is passed to the age queue management system. When requests are removed from each FIFO, credits are returned to the corresponding crossbar. The row to which an incoming column bus corresponds can depend on both the tile's location within the matrix and the half of the tile in which the block is located.

[0042] The output buffer (OBUF) makes requests to the output control block to send reduction and maintenance packets over a link. These requests can be given the highest priority. An 8-place FIFO can be used to buffer these reduction / maintenance packet requests while they wait for resources. Reduction packets do not need to use flow channels, and maintenance packets can use loopback to create a flow, so checking flow channel availability or passing through the OFCT to generate a grant is not required. Reduction and maintenance packets also do not need to use space in the output buffer, so space checking is not necessary. Instead, a check can be performed on the link partner's input butter.If permitted, a Shaping Queue (SQ) or Virtual Channel (VC) can be granted, which will block the granting of grants from the Age Queue path during that cycle.

[0043] The size of the next output bugger request to be processed is compared to `max_frame_size`. If it exceeds this setting, the request is not processed and an error flag is set. This causes the output buffer request path to be blocked until a warm reset is performed. The error flag remains set until the reset is complete. This condition can also be overridden by increasing the `max_frame_size` setting to a value larger than the size of the blocked output buffer request. The size used for comparison can be the size specified in the output buffer request (which may include a 4-byte frame checksum (FCS) used on the line).

[0044] Each input can be assigned a fixed slot in the queue for its age. This slot is large enough to reserve a slot for each SQ / VC, with enough additional space to cover a request / credit round trip. It is the responsibility of the input to manage its allocated slot for its SQs / VCs. This allocation (fixed_al / oc) is programmable via a Control and Status Register (CSR) in each input queue (INQ) and can be, for example, in the range of 64-96 memory locations. The remaining space in the queue (8K - 64 * fixed_al / oc) can be a shared space available to all inputs. The shared space can be managed by the output by moving incoming requests from the static to the shared space upon arrival, provided there is space available in the shared space, subject to the limits per input.When a request is moved to the shared space, a credit is returned, e.g. immediately via the credit crossbar 210c, marking the request in the queue as being in the shared space.

[0045] If a request is approved, the shared storage space is credited if it is marked as shared storage. If it is not marked as shared storage, the request is considered static storage usage, and a credit is returned to the input upon granting the request.

[0046] Due to conflicts in the credit crossbar 210c, it is possible that credits will not be sent in every clock cycle. Accordingly, a FIFO provides a buffer for these temporary interruptions. The space in this FIFO is required before a request is accepted by the request crossbar. A FIFO with a depth of 32 memory locations can be used to limit the probability of a backlog in the request crossbar 210a. The shared space can have limits on how much space an input (from an input port 220b) can occupy. These limits can be set as a percentage of the available space. For example, if the limit is set to 50%, an active input port has access to 50% of the buffer memory; with two active input ports, each receives 37.5% ((space_used_by_) + pace_left*.5) / 2 = (50%+50%*.5) / 2), with three active input ports, each receives 29.2% ((space_used_by_2 + space_left*.5) / 3 = (75%+25%*.5) / 3), etc. Furthermore, the total space occupied by the active input ports can be limited to the specified total (50%, 75%, 87.5%). Thus, the space allocated to each input port 220b can dynamically vary depending on how many input ports are currently active. The addition of an active input port causes other active input ports to vacate their space, which is then taken by the new input.

[0047] Since hardware partitioning is not easy to accomplish, the aforementioned function for managing queue balances can be implemented as a lookup table 310 with 64 entries 312. The number of currently active inputs in the age queues 320 indexes 315 the lookup table 310. The values ​​314 in the lookup table 310 reflect the limit for the number of shared memory locations an input can occupy, as well as the total memory space it can consume as a whole. Therefore, it is up to the software to program the values ​​314 in the lookup table 310, depending on the total amount of shared memory available and the percentage each input port is allowed to occupy. If more input ports 220b become active, each input port 220b is allocated less space, and the total available space increases.Incoming requests from input ports 220b that exceed this limit, or that exceed the total storage limit, may not consume any additional shared storage space. To track the number of active input ports 220b in the age queues, a set of 64 counters 316 (one for each input port) is used. These counters are incremented when a request is placed in the age queues 320 and decremented when they are removed (i.e., granted). A counter for the number of non-zero counter values ​​319 is used as an index in the lookup table 310. An additional set of 64 counters 318 may also be used to manage shared storage space by each input, tracking its current usage.There may also be a single counter, 334, which can be used to track the total usage of the shared storage space. These counters are compared against the current quotas to determine whether a request is allowed to use the shared storage space. Counters 316 and 318, for example, can be 13 bits wide to adequately capture the maximum value of an object, which can be slightly less than 8K.

[0048] The 320 queues can utilize a single 321 memory RAM with 8K memory locations. These memory locations can be dynamically allocated to 32 separate queues (one for each SQ / VC), each consisting of a linked list of memory locations within the 321 RAM. This allows each SQ / VC to utilize more space as needed.

[0049] An age queue 320 can be created with a front pointer 322 pointing to the beginning of the queue and a next pointer 324 for each position pointing to the next element in the queue. The last position in the queue can be indicated by a back pointer 326. Elements are taken from the beginning of the queue and inserted at the end. In addition to the data structures mentioned above, each queue has a FIFO 328 with entries at its head. These FIFOs 328 ensure that a queue can receive a request from the request RAM 321 at each clock cycle with a read access time of several clock cycles. If a new request arrives and the head FIFO 328 for that queue is not full, it bypasses the request RAM 321 and can be written directly to the head FIFO 328.Once the requests for a specific age queue are written to request RAM 321, subsequent requests are also written to request RAM 321 to maintain order. The bypass path can be reused when there are no further requests for that age queue in request RAM 321 and space is available in head FIFO 328. When a request is read from head FIFO 328 and there are corresponding requests in the queue in request RAM 321, a dequeue is initiated. Only one head FIFO 328 can be read at a time, so only one dequeue operation can be triggered per clock cycle. Logic can be included to handle the various race conditions between an ongoing or pending enqueue operation and reading a head FIFO 328.

[0050] The aforementioned ECC protection used in the Age Queue RAM 321 can be extended to the FIFOs 328 to protect the data path flops. The resulting structure can encompass 8K flops (32 queues × 5 deep × SQ bits wide). When generating the ECC, the age queue number can be included in the calculation (but not stored) to further verify free list management. During the ECC check, the request can be considered erroneous if an MBE or SBE is present in the queue number bits.

[0051] A free list RAM can be a simple FIFO initialized with pointers to all 8K entries when a reset is performed. A count can be taken to track how many entries in the free list are valid. When entries are taken, they are popped from the front of the FIFO and used. When entries are returned, they are pushed to the back of the FIFO. A certain number of entries (e.g., three entries) at the head of the free list can be held in FLOPS so they are available for fast access. As with the head FIFOs for age queues, ECC is carried through the FLOPS to provide protection. The resulting structure can have minimal FLOPS (57 = 3 deep × 19 bits wide).

[0052] To achieve full performance for small packets, Age queues support both one enqueue and one dequeue per clock cycle. The operations in the data structures for an enqueue operation are explained below and may differ depending on whether the queue to be written to is empty or not.

[0053] In some cases, simultaneous enqueue and dequeue operations in a given queue are easy to handle because they use and update separate fields. Some special scenarios can occur, such as when a dequeue operation empties the age queue. To handle this scenario, a dequeue operation is logically performed first, followed by an enqueue operation. Accordingly, an empty flag is considered set when the queue is emptied by the dequeue operation and then cleared by the enqueue operation.

[0054] The arbitration described above can be performed between requests, which may be granted subject to the management of the input buffer, the output buffer, and the flow channel quotas. Arbitration can also be paused if there are no credits available for the OFCT input FIFO. In some embodiments, arbitration can be performed at two levels. First, traffic shaping arbitration can be used to arbitrate between SQs. Deficit round-robin arbitration can be used to arbitrate between VCs within a given SQ. Traffic shaping arbitration can use a set of token buckets to control the bandwidth of each SQ as follows: eight leaf buckets, one for each SQ; four branch buckets; and one head bucket.

[0055] The arbitration can be divided into three groups, with the first group having the highest priority, followed by a second group, which in turn is followed by a third group. For the first and second groups, arbitration among the eligible SQs can be conducted in the same manner. Between the SQs for each of the eight priority levels, an x8 round-robin arbitration (eight parallel round-robin arbitrations) can be conducted. A fixed arbitration can be conducted between the priority levels. For example, the arbitration for group 3 has no priorities and is therefore simply a single x8 round-robin arbitrage.

[0056] In the first group, the priority for each party is determined by their setting in the leaf areas. For the second group, the priority is determined by their setting in the branches of the leaf areas. In all cases, the areas considered eligible for that group are also the areas from which package size tokens are obtained if the request wins the arbitration.

[0057] When selecting age queue 320, packets can be classified to choose the SQ to which their request is routed. This allows traffic associated with one application to be shaped differently from traffic originating from another application or traffic class. This can be beneficial on edge ports connected to a network interface card (NET card), as applications are configured to use a portion of the node's resources and are accordingly allocated a share of the network bandwidth. In one embodiment, this classification is achieved by dividing the packets into a Traffic Class Identifier (FTAG), such as a 4-bit code that is part of the fabric frame header, and a VLAN ID (VNI) when the packet enters the fabric. The FTAG and VNI can then be used when the packet leaves the fabric to select the shaping queue.

[0058] A configuration register can be used to map FTAGs to SQs. This configuration matches the corresponding configuration in the inbound queue. When the outbound buffer requests or returns credits from connection partners, it converts a specific FTAG into an SQ. For packet injection, the FTAG is located in R_TF_OBUF_CFG_PFG_TX_CTRL. During test generation, the FTAG is located in the test control register. When the reduction engine (RED) requests a credit return, the FTAG is located in ret_cdtJtag. When a reduction frame is removed from the output stream and connection partner credits need to be returned, the FTAG is found in the frame header.

[0059] Regarding the SQs discussed here, each age queue 320 can have 32 SQs, addressed by {SQ, VC}. The 3-bit SQ 330 can be considered a shaping function, and the VC selects one of four queues within this shaping function. For Ethernet egress ports (edge ​​ports), the VC is not needed to avoid deadlocks. Accordingly, all 32 SQs 330 can be available. In such a scenario, SQ 330 can be selected by adding the SQ base from R_TF _OBUF _CFG_FTAG_SQ_MAP to the lower bits of the VNI. The 5-bit sum determines the {SQ,VC} to be sent to the age queue. It should be noted that when injecting frames at an egress port, VNI is not available, and therefore an SQ base can be used directly. For Fabric Links, SQ 330 is taken from the upper three bits of the SQ base.The VC can be taken from the frame header when credits are returned for reduction frames, or from the corresponding tax CSR (R_TF _OBUF _CFG_TEST_CTRL or R_TF _OBUF _CFG_PFG_TX_CTRL) when frames are injected.

[0060] The management of a link partner's input buffer can depend on the type of device to which the link is connected. Devices like the Switch 202 can use credit-based flow control, where each credit represents a memory cell in the input buffer. Other devices can use standard Ethernet pause or priority pause-based flow control. Requests marked as locally terminated (lac term set) do not need to consider the link partner's input buffer flow control and do not need to update any associated counters. The link partner's memory does not need to be considered when the link is in a flushing state.

[0061] For credit-based flow control, the link partner input buffer can be divided into eight buffer classes. Each SQ 330 can be assigned to one of these eight buffer classes. Credits are managed for each buffer class, with each credit representing 32 bytes of storage space in the link partner input buffer. To enable credit-based flow control to function with various devices (switches, extended NICs) that may have different cell sizes, the cell size is a programmable value in units of 32 bytes.

[0062] There can be two sets of VCs, with each SQ 330 assigned to one set. A maximum frame size of memory can be reserved for each VC, and each VC set can have a different maximum frame size. The remaining portion of the link partner input buffer is shared dynamic memory that can be used by each SQ / VC, subject to the limits per VC and buffer class.

[0063] The size included in the request represents the size of the packet on the link, containing a 4-byte FCS. This is converted to an internal 2-byte FCS at the link partner before the packet is written to the link partner's input buffer, so the credit must account for this difference, which can be a factor at the cell size limit. For example, a cell with a size of 96 bytes will require a single cell for a cell with a size of 97 or 98 bytes. To know when this is the case, the request includes a correction term, calculated as follows: `req.len_correct = (byte_len % 16) == 1 or 2`.

[0064] Further validation of this term is required to convert it into an arbitrary cell size limit. It is valid if the length slightly exceeds the cell size. Thus, the validated term `fen_correct` can be determined as follows: `len_correct = (((16-byte size)% (2*32-byte cell size))== 1) & req. len_correct`

[0065] An example of how these values ​​work for some cell and package sizes is shown in the following table: Length Correct Calculation Size (Bytes) Correct query Size (16B units) Cell size (32B units) len_korrekt Modulo result len_korrekt Credit taken 64 0 4 2 0 0 2 65 1 5 2 1 1 2 66 1 5 2 1 1 2 67 0 5 2 1 0 3 96 0 6 3 0 0 3 97 1 7 3 1 1 3 9B 1 7 3 1 1 3 99 0 7 3 1 0 4 128 0 8 4 0 0 4 129 1 9 4 1 I 4 130 1 9 4 1 1 4 131 0 9 4 1 0 5

[0066] The size supplied with the request uses 8-byte units, and the cell size of the link partner's input buffer is a multiple of 32 bytes (32 * y, where y = cell size from the CSR). First, the 8-byte size is converted to a 16-byte size (ROUNDUP((8-byte size) / 2)). The cell size is also converted to 16-byte units (2*y). Mathematically, the number of cells required by a request can be calculated as follows: ROUNDDN(((16-byte size)+ 2*y - 1 - len_correct) / (2*y)) = number of cells

[0067] While hardware-based splitting is possible, it cannot be performed in the critical path of arbitration due to timing constraints. Instead, an alternative credit management system is used. Credits are held in 32-byte units. If a request wins arbitration, the number of credits used is adjusted by the maximum error term (2 * y - 1) according to the following calculation: ROUNDDN(((16-byte size) + 2*y - 1) / 2) = maximum 32-byte credits required. Since this calculation overestimates the credits needed for the packet, a modulo operation (X = (16-byte size) MOD 2*y, y = 32-byte cell size from the CSR) must be performed in the next clock cycle to determine the actual remaining value. This value, along with the len_correct term, is used to adjust the credit counter.The formula used to create the adjustment value (adf_val) for X is: If (X == 0) adj_val = y -1 else if (X == 1 and fen_correct) adj_val = y else adj_val = ROUNDDN((X-1) / 2).

[0068] The table below shows an example of a request balance for 96-byte cells, indicating the values ​​used over several packet lengths for the 96-byte cells of the switch input buffer (y = 3). Example of a loan request for 96-byte cells Package size (Bytes) Package size (16-byte units) Genommener Kredit Modulo Result len_korrekt adj_val Korrigierte Kreditaufnahme 48 3 4 3 0 1 3 64 4 4 4 0 1 3 80 5 5 5 0 2 3 96 6 5 0 0 2 3 97 7 6 1 1 3 3 98 7 6 1 1 3 3 99 7 6 1 0 0 6 128 8 6 2 0 0 6

[0069] If a request is filtered before being forwarded to the link partner's input buffer, the output buffer logic returns the SQ and VC values ​​so they can be used to return the balances to the corresponding balance counters. No size is required, as the packet size is always the same: the length of a reduction frame (69 bytes or 16 bytes size = 5).

[0070] The local (master) side of the connection maintains a count of the number of packets sent by each VC across both sets (a total of 8), a count of the number of packets sent to each VC (in 3 two-byte increments) (4), and a count of the number of packets sent for each buffer class (in 32-byte increments) (8). The link partner (slave) of the connection maintains the same set of counts, which are periodically sent across the connection. The difference between the counts on the master and slave sides is a count of the number of packets in the link partner's input buffer from each VC across both sets, as well as a count of the space currently occupied by each VC and each buffer class (in 32-byte increments). Additionally, the total amount of space occupied by all packets is counted.A summary of the counters is as follows: master_vcx_cnt[4] / slave_vcx_cnt[4] - Master and slave counters for the number of packets sent to each VC in set X; master_vcy_cnt[4] / slave_vcy_cnt[4] - Master and slave counters for the number of packets sent to each VC in set Y; master_bc_cnt[8] / slave_bc_cnt[8] - Master and slave counts of the space occupied by each buffer class in units of 32 bytes; master_vc_cnt[4] / slave_vc_cnt[4] - Master and slave counts of the memory occupied by each VC in units of 32 bytes; master-tot-cnt / slave-tot-cnt - Master and slave counts of the total memory occupied in units of 32 bytes.

[0071] All counters are reset to zero on a warm reset. They are also reset to zero if the link is in a drain state or if the CSR bit DBG_RESET is set to clear their state. The output buffer filter redirects a reduction packet to a different path than the one to the link partner's input buffer. In this case, a signal can be returned along with the packet's SQ and VC. Again, the packet length is not required, as the size of these packets is fixed. This information is used to adjust the corresponding master credit counts.

[0072] A request may participate in arbitration if either its VC count is 0 (indicating that it has a statically allocated slot available) or if there is space in the dynamic area for a frame of maximum size (subject to the intended buffer class and VC limits). There can be a single programmable value for the maximum frame size, which is used for all VCs and SQs. Request validation for the input buffer can be performed using credit-based flow control.

[0073] Credit-based flow control can be used to allocate dynamic space in two independent ways: first, based on a limit on how much dynamic space each of the four VCs can occupy, and second, based on a limit on how much dynamic space each of the eight buffer classes can occupy. In both cases, the limits are set as a percentage of the available space. Space should be available for a given package in both its target VC and its buffer class. For example, if a limit of 50% is set for each space, an active space has access to 50% of the buffer space; with two active spaces, each space receives 37.5% ((50+50*.5) / 2); with three active spaces, each space receives 29.2% ((75+25*.5) / 3), and so on. Additionally, the total space occupied by the active spaces can be limited to the specified total (50%, 75%, 87.5%).Accordingly, the space allocated to each seat varies dynamically depending on how many seats are currently active. When an additional seat becomes active, the other active seats must relinquish some of their space, which is then taken by the new seat.

[0074] Like the partitioning function described above, this function is also implemented as a lookup table. For VC memory space, there are 16 entries in this example, where each entry specifies the memory available for each VC as well as the total memory available for all VCs. For buffer classes, there can be 256 entries, where each entry specifies the memory available for each buffer class as well as the total memory available for all buffer classes. The memory space is specified in 2048-byte units. The depth of each table is sufficient to cover all combinations of active members (VCs or buffer classes), with each being able to have an independent setting for its percentages. Thus, it is up to the software to program the values ​​in the table, depending on the total amount of dynamic memory available and the percentage each member is allowed to occupy across all possible combinations.The more of these requests become active, the less space is allocated to them, and the more space becomes available overall. Requests for storage space that exceed this limit, or the total limit, must not consume any additional dynamic storage space.

[0075] A VC or buffer class is considered active if it either has a request in an aging queue or if it has pending credits for link partner inbound buffer spaces. For example, let's assume there are only 4 spaces (a table with 16 entries) with the percentages SPACE0 (50%), SPACE1 (40%), SPACE2 (30%), and SPACE3 (10%), and a dynamic total space of 16 KB. This results in the buffer storage values ​​shown in the example table below, in increments of 16 bytes. Example of buffer space Index RAUM3 RAUM2 RAUM1 RAUM0 Insgesamt 0 K.A. K.A. K.A. K.A. K.A. 1 K.A. K.A. K.A. 512 512 2 K.A. K.A. 410 K.A. 410 3 K.A. K.A. 319 398 717 4 K.A. 307 K.A. K.A. 307 5 K.A. 250 K.A. 416 666 6 K.A. 255 339 K.A. 594 7 K.A. 202 270 337 809 8 102 K.A. K.A. K.A. 102 9 94 K.A. K.A. 469 563 10 94 K.A. 377 K.A. 471 11 75 K.A. 299 374 748 12 95 284 K.A. K.A. 379 13 78 234 K.A. 389 701 14 80 239 319 K.A. 638 15 79 236 315 394 1024

[0076] As an example, the values ​​in the row for index 7 are calculated as follows: Total% = 0.5 + (1-0.5)*0.4 + (1-0.5-(1-0.5)*0.4)*0.3 = 0.79; SPACEO = (0.5 / (0.5+0.4+0.3))*0.79*1024 = 337; SPACELE = (0.4 / (0.5+0.4+0.3))*0.79*1024 = 270; SPACELE = (0.3 / (0.5+0.4+0.3))*0.79*1024 = 202; Total = 337 + 270 + 202 = 809

[0077] As mentioned above and with reference to Fig. Switches, such as the Switch 202, can be used to create a switch fabric, with the Switch 220 ports configurable to operate as either edge ports or fabric ports. As mentioned earlier, the Switch 202 can support various network topologies, including but not limited to dragonfly and fat tree topologies. Networks can consist of one or more slices, each with the same overall topology, although the slices may differ in their composition. Nodes are connected to one or more ports in each slice. If a network has multiple slices and a node is connected to more than one slice, the node is assumed to be connected in the same location in each slice.

[0078] Routing in the switch fabric can be controlled by a Fabric Routing Function (FRF) implemented in Switch 202. An example of an FRF component 400 is shown in the Fig. and Fig. As shown, a separate instance of FRF component 400 can be implemented within the input logic for each port of switch 202. The routing decisions made by FRF component 400 can be applied to frames that are not already part of an established flow. It is important to note that FRF component 400 does not necessarily know whether a particular frame is associated with a flow or not; rather, it makes an independent routing decision for each frame presented at an input port. FRF component 400 can include filters, tables, circuits, and / or logic, such as selection circuits / logic, to effect the forwarding of data through a switch fabric, as described here.As shown, the FRF component 400 includes at least: a minimal ports selection component 402 (which includes a minimal table component 402A); various ports filters (filters for allowed ports, filters for operational ports, filters for occupied ports); a component 402B for distinguishing preferred ports; components / logic 402C for pseudorandom downward selection; exception tables 404 (including an exception list table 404A); a component 406 for operational ports, which includes a global error table 406A; and a routing algorithm table 408. As in . Fig. As shown, the FRF component 400 may further comprise: a non-minimal port selection component 410, which includes a local non-minimal selection component 410A and a global non-minimal selection component 410B; and an output logic component 412 (which is part of the output control block of a switch), which includes an adaptive selection component or logic 412A. The FRF component 400 includes other components, which are described here.

[0079] In particular, the FRF component 400 with the preferred port discriminator 402B determines a preferred port to forward each frame presented at the input port, based on the destination fabric address (DFA) of a received frame, the current routing state of the frame (where the frame is on its path and which path(s) it has taken to reach its current routing state), the routing algorithm and configuration of the switch fabric, and the load metrics associated with the output port (the aforementioned preferred port to which the frame is to be forwarded) using filters for busy ports.

[0080] The FRF component 400 can contain a routing algorithm table 408, which can be implemented as a software-configurable table, that determines valid choices based on the current routing state of the frame. Valid choices include, for example, whether a local minimal, global minimal, local non-minimal, or global non-minimal path may be chosen for the frame's next hop. The routing state contains information such as the VC on which the frame was received and whether it is in the source, destination, or an intermediate group. The routing algorithm table 408, together with the adaptive selection function or logic 412A (as described below), also determines the VC to be used for the frame's next hop.

[0081] Frame routing using unicast DFAs is described as an example. It's important to note, however, that the routing request DFA can be in either unicast or multicast format. The unicast format can contain a 9-bit global ID field (global_id), a 5-bit switch ID field (switch_id), and a 6-bit endpoint ID field (endpoint_id). The global ID uniquely identifies a group within the network. Specifically, it identifies the last group to which the frame must be delivered. The switch ID uniquely identifies a switch within the group identified by the global ID. The endpoint ID field, together with the global ID and the switch ID, identifies the endpoint connected to the edge of the network to which the frame should be delivered. This field is mapped to a port or set of ports on the switch identified by the global ID and the switch ID.

[0082] The multicast format contains a 13-bit multicast ID field (multicast_id). This field is mapped by FRF component 400 to a set of ports on the current switch to which the frame should be forwarded.

[0083] From this information, FRF component 400 determines an updated routing state for the frame, which is then passed to the frame. For example, to implement routing in a Dragonfly topology, the current state of a frame can be determined from the frame's VC (as described above). Based on algorithmic Switch Fabric routing rules specified for the Switch Fabric (whose selection is described below), FRF component 400 determines a specific VC to be used for the frame's next hop to avoid deadlocks. Additional routing state information can be provided depending on where the frame is on its path, such as whether the frame is in its source group, an intermediate group, or its destination group.It should be noted that the FRF component 400 performs port filtering (which is described in more detail below) by using filters for allowed ports, filters for ports in use, filters for occupied ports, etc., to determine whether a preferred port to which a frame should be forwarded is currently faulty, occupied, non-existent, etc.

[0084] Switch 202 distributes load information between switches. FRF component 400 receives load measurements from its associated output port. FRF component 400 receives aggregated load information for an adjacent switch from its associated input port. Each FRF component 400 exchanges load information with all other FRF instances within the same switch. FRF component 400 delivers aggregated load information to its associated output port for forwarding to an adjacent switch. Through this load-sharing mechanism, each FRF component 400 learns the load measured at each output port of its switch. Furthermore, each FRF receives the aggregated load information for all adjacent switches.

[0085] It should be noted that the FRF Component 400 can support frame multicasting. When a multicast DFA is received, the FRF Component 400 determines a set of ports to which the frame associated with the multicast DFA should be forwarded. The set of ports can be determined by accessing a lookup table that maps software-configured multicast fabric addresses to output ports. This helps avoid problems associated with duplicate multicast frame copies.

[0086] Fig. This shows an example of a route selection process that includes downward selection of port candidates and adaptive route selection based on load. FRF component 400 considers three categories of candidate ports to which a frame can be routed: preferred minimum path candidate ports (502), non-preferred minimum path candidate ports (504), and non-minimal path candidate ports (506). Depending on where a frame is on its path, non-minimal path candidate ports are either global or local.

[0087] Filtering can be applied to three categories of port candidates: functional ports, usable ports, and occupied ports. The port filtering used here can reduce the number of valid ports that qualify as path candidates by identifying and removing missing, faulty, and / or occupied ports.

[0088] Operational port filtering (or non-operational port filtering) can refer to the removal of non-operational ports from port sets considered as routing candidates, such as preferred minimum path candidate ports 502, unpreferred minimum path candidate ports 504, and non-minimum path candidate ports 506. That is, the Switch 202 can identify certain ports as non-operational. These non-operational ports can be specified in a non-operational port mask. It should be noted that in some embodiments, the software can enforce the classification of additional ports on the Switch 202 as non-operational by using a non-operational port CSR, for example, when one or more ports are to be taken offline for planned maintenance.

[0089] When filtering usable (or unusable) ports, candidate ports can be filtered out that would normally have been acceptable, but which, for example, are no longer acceptable / unusable due to errors in network 100 for reaching one or more target switches, target groups (of switches), etc., but remain acceptable / usable for reaching one or more other target switches. In some embodiments, the global error table 406A can be used to block global minimum path port candidates and global non-minimal path port candidates depending on a target group of the forwarded frame.For example, port candidates that lead to an intermediate group (of switches) without connectivity to a specific target group (of switches) can be ignored when forwarding frames to that target group, even though these same port candidates are not necessarily blocked for other target groups. The global error table 406A can be retrieved or indexed via the global_id field of the frame's DFA.

[0090] In some embodiments, an exception list maintained in exception list table 404A can be used to conditionally exclude port candidates depending on the target audience or the switch to which the frame is forwarded. It should be noted that exception list table 440A can be used to identify preferred global minimum path ports. Accordingly, exception list table 404A is used to exclude port candidates when it is not being used to determine preferred global minimum path ports.

[0091] It should be noted that knowing which ports on a neighboring switch are occupied can be used to determine whether the ports connected to that neighboring switch are poor candidates for receiving a frame, based on whether the neighboring switch would then have to forward the frame to a port that is already occupied. For example, when examining ports eligible for global minimal routing, the ports connected to a neighboring switch are poor candidates if all of the neighboring switch's global ports connected to the frame's destination are occupied. Similarly, when considering ports connected to a neighboring switch as candidates for local non-minimal routing in the destination, all of the neighboring switch's local ports connected to the frame's destination switch are occupied.

[0092] Accordingly, FRF component 400 can perform port-busy filtering by using port-busy masks to exclude heavily loaded ports from consideration as candidate ports. It should be noted that in some implementations, heavily loaded ports are removed from consideration if other, less heavily loaded candidate ports are present. Otherwise, if no less heavily loaded ports are present, the heavily loaded ports are not removed from consideration by the port-busy filtering. FRF component 400 maintains four port-busy masks, i.e., ports whose load exceeds a software-defined threshold: a local switch-busy mask; a global mask for non-minimum-loaded global ports; a global mask for non-minimum-loaded local ports; and a remote switch-busy mask.The mask of occupied ports of the remote switch and other load information are exchanged between the switches to populate the remote switch.

[0093] A local switch busy port mask can be applied to both minimal path candidate ports and local non-minimal path candidate ports. The FRF generates a 64-bit `Is_busy_port_mask` by comparing the `local_Ioad` of each port to a software-defined threshold. Ports with a utilization higher than this threshold are marked as busy in this mask.

[0094] A global mask for a non-minimum-utilized port can be applied to global ports of global non-minimum path candidates. The FRF generates a 64-bit gnmbgp_mask by comparing the gnmgp_load of each port to a software-defined threshold. Ports with a utilization higher than this threshold are marked as busy in this mask.

[0095] A global mask for a non-minimum-loaded local port can be applied to local ports of global non-minimum-loaded path candidates. The FRF generates a 64-bit gnmblp_mask by comparing the gnmlp_load of each port to a software-defined threshold. Ports with a load higher than this threshold are marked as busy in this mask.

[0096] A target-group-dependent busy port mask, derived from a global busy port table of a remote switch, can be applied to global minimum-path candidate ports. Similarly, when a frame is forwarded within its target group, a destination-switch-dependent busy port mask, derived from a local busy port table of the remote switch, can be applied to local candidate ports for non-minimal paths.

[0097] After applying the filtering or downward selection stage mentioned above, a set of surviving port candidates 508 may result. This means that a reduced number of port candidates can be identified after removing non-functional, unusable, and heavily loaded port candidates, leaving a group of port candidates. In some embodiments, a pseudo-random selection procedure is used to further reduce the number of surviving path candidate ports 508 to a specific threshold number of ports assigned to each category of candidate ports (preferred minimum path candidate ports, non-preferred minimum path candidate ports, and non-minimal path candidate ports). In some embodiments, this threshold number of candidate ports may be four candidate ports per category.If the minimum number of candidate ports is not reached, no candidate ports from this category will be considered.

[0098] In some implementations, this pseudorandom selection (or downward selection) of candidate ports can be weighted. As described below, this weighting can be applied to counteract a potential bias in the distribution of globally non-minimal traffic across the global connections of a group. That is, each port can be assigned weights, for example, between 0 and 15, according to the CSR configuration. This weighting can influence the probability with which individual candidate ports are selected, so that ports with a higher weight have a greater chance of being selected. For example, a weight of 15 results in a port being selected 15 times more likely in the pseudorandom selection process.In some embodiments, the port candidates can be filtered into four groups (GW1, GW2, GW4, GW8) based on their assigned weights, where a port candidate can belong to multiple groups depending on its assigned weight (e.g., a port candidate with a weight of 1 belongs to only one group, while a port candidate with a weight of 5 belongs to two groups (GW1 and GW4, i.e., 1 + 4 = 5), and a port candidate with a weight of 15 belongs to all four groups (GW1, GW2, GW4, GW8, i.e., 1 + 2 + 4 + 8 = 15)). The number of port candidates in each group can be determined (nW1, nW2, nW4, nW8), and pseudo-random selection is applied to each group to select one port candidate from each group (cW1, cW2, cW4, cW8). The weight of each group can be calculated along with their total weight. wW1 = nW1; wW2 = 2*nW2; wW4 = 4*nW4; wW8 = 8*nws; wtotal= wW1+wW2+wW4+wW8.A fifth pseudo-random selection can be performed to choose a number j from the range O ... Wtotal - 1. One of the candidates cW1, cW2, cW4, cW8 is selected as the candidate chosen below, based on the value of j, as follows: If j < wW1, choose cW1; if j < wW1 + wW2, choose cW2; if j < wW1 + wW2 + wW4, choose cW4; otherwise, choose cW8.

[0099] It should be noted that the same candidate port can be selected by more than one instance / iteration of the weighted pseudo-random selection logic 410C, thus reducing the number of selected candidate ports. The probability of the same candidate port being selected by more than one of the mgnm = 4 global, non-minimal, weighted pseudo-random selectors decreases as the number of available candidate ports increases. In the context of a dragonfly topology and a full global bandwidth network, there are potentially about 48 possible global non-minimal candidate ports at an edge port in the source group: 16 global ports and 32 local ports. If a local hop has been taken, the next hop is a global hop, reducing the number of candidate ports to approximately 16.However, if the network is so streamlined that it only supports a quarter of the full global bandwidth, there may only be 4 global candidates to choose from after a local hop.

[0100] The FRF component 400 can use the received busy port masks from the remote switch to generate the aforementioned global busy port table for the remote switch. This table contains busy port masks that identify ports connected to neighboring switches which should be avoided as global minimum path candidates based on the target audience to which the frame is being routed. Similarly, the received remote switch busy port masks can also be used to create the aforementioned remote switch busy local port table. This table contains busy port masks that identify ports connected to neighboring switches which should be avoided as local candidates for non-minimal paths when routing within the target audience, based on the destination switch to which the frame is being routed.

[0101] The `rs_busy_port_masks` are used to assess the suitability of neighboring switches (whether their ports are busy or idle) for reaching specific target audiences via global minimum paths and specific target switches via local non-minimal paths or local minimum paths. Each FRF instance corresponding to a local or global port can be configured to generate a 64-bit `rs_busy_port_mask`. The generated mask is sent to the partner switch associated with that port. Likewise, the partner switch can generate and return an `rs_busy_port_mask`.

[0102] Each FRF instance transmits the `rs_busy_port_mask` it received from its partner switch to the FRF instances on all other ports of the switch via the port status ring. The port status ring communicates load and status information between all FRF instances on the switch. Each FRF instance collects all `rs_busy_port_masks` so that all FRF instances are aware of the remote busy port status provided by all neighboring switches. Each FRF instance uses the `rs_busy_port_masks` it receives to create the `RSBGP` (Remote Switch Busy Global Port) and `RSBLP` (Remote Switch Busy Local Port) tables.

[0103] The generation of the `rs_busy_port_mask` occurs in two steps. In the first step, the local load of each port is compared to a software-configurable threshold, creating an intermediate mask of all individually occupied ports. Ports classified as not operational are also recorded as busy in this intermediate mask. In the second step, link bundling is taken into account, so that a port is only marked as busy in the `rs_busy_port_mask` if it and all other ports belonging to the same bundle are also marked as busy in the intermediate mask. Either all ports belonging to the same bundle are marked as busy in the `rs_busy_port_mask`, or none are. Global ports belonging to the same bundle all connect to the same remote group. Local ports belonging to the same bundle all connect to the same remote switch within the current group.

[0104] Since `rs_busy_port_masks` are used to determine whether the switch that generated the mask is a good candidate for routing a frame to another group or to another switch in the current group, bundling is used to provide a consistent view of the generating switch's suitability when the busy status across its links connected to the target or destination switch in the current group is inconsistent. The reason for handling bundling as described here is that the switch generating the `rs_busy_port_mask` remains a candidate for reaching the target or destination switch in the current group as long as it has at least one unbusy link to the target or switch; adaptive routing on the switch generating the `rs_busy_port_mask` should then forward the frame to that unbusy link.

[0105] The ports must be included in either the CSR for bundled ports or the CSR for unbundled ports (both are part of the static cabling description) in order to be marked as busy in the `rs_busy_port_mask`. The bundled port masks are scanned to identify the bundles and the ports they contain. Additionally, the unbundled port mask is consulted to identify any other ports not belonging to a bundle, but whose busy status should also be included in the generated `rs_busy_port_mask`.

[0106] A different software-defined threshold is used when calculating the `rs_busy_port_mask` because transmitting and processing the `rs_busy_port_mask` and delivering a frame subject to that mask to the remote switch that generated the mask requires more latency. Because of this increased latency, it may be beneficial to require a higher utilization rate from a port before it is considered so busy that it is no longer eligible to receive additional frames from a remote switch. A busy remote port should be utilized to the point where it remains busy for the entire time required to receive a frame subject to the mask.

[0107] The aforementioned RSBGP table stores masks for busy ports, indexed by target group (global_id). It is dynamically populated with the information contained in the received rs_busy_port_masks, along with the system's topological information stored in the configuration state. This RSBGP table is also used to evaluate minimal global paths, which consist of a hop to a neighboring switch with a global port connected to the target group. This process filters out ports on the current switch that are unsuitable for reaching the target group because the corresponding global port(s) on the neighboring switch, which are reached by the filtered-out ports on the current switch, are already heavily loaded.

[0108] The RSBLP table stores busy port masks indexed by the destination switch (switch_id) and can be used to evaluate local non-minimal paths consisting of a local hop to an adjacent switch and another local hop to the destination switch. It is dynamically populated using information contained in the received rs_busy_port_masks along with topological information about the system stored in the configuration state. For topologies like fat trees, where a local minimum path might consist of a local hop to an adjacent switch followed by another local hop to the destination switch, the RSBLP table can also be used to evaluate local minimum paths.The RSBLP table is used to filter out ports of the current switch that are unsuitable for indirectly reaching the destination switch because the port or ports of the adjacent switch connected to the destination switch are too heavily loaded.

[0109] It is important to note that the RSBGP table and the RSBLP table are never accessed for the same routing request. The former is accessed when routing a frame that is not in the target group, and the latter is accessed only when routing a frame that is in the target group. Therefore, both can be implemented in the same memory, which is called the Remote Switch Busy Port Table.

[0110] A Busy Ports filter is used to remove candidates for minimum path ports that are a poor choice because they lead to heavily congested paths. Separate copies of the Busy Ports filter are applied independently to the preferred and non-preferred minimum path ports. If global minimum routing is enabled, the first stage of this filter removes ports marked as busy in the indexed entry of the remote switch's global busy port table. If local minimum routing is enabled in the target group, an optional first stage of this filter removes ports marked as busy in the indexed entry of either the Remote Switch Busy Local Port Table or the Remote Switch Busy Global Port Table, with the table used being based on the CSR configuration.The first stage of this filter is not applicable and is not used with the Dragonfly topology if it is within the target group; however, it can be applied to other topologies, including Fat Tree. In a second stage of this filter, ports marked as busy in the Is_busy_port_mask mentioned above are removed. If no candidates remain after the second filter stage, the second filter stage is deactivated, so that any remaining candidate ports are considered highly busy in the adaptive selection stage.

[0111] A Local Non-Minimal Busy Port Filter is used in the target group to remove local non-minimal candidate ports that are a poor choice because they lead to heavily congested paths. In the first stage of this filter, ports marked as busy in the indexed entry of the "Remote Switch Busy Local Port Table" or the "Remote Switch Busy Global Port Table" are removed, with the table used being based on the CSR configuration. In the second stage of this filter, ports marked as busy in the aforementioned `Is_busy_port_mask` are removed. If no candidates remain after the second filter stage, the second filter stage is deactivated, so that any remaining candidate ports are considered highly busy in the adaptive selection stage.

[0112] A Global Non-Minimal Busy Port Filter is used when global non-minimal routing is enabled to remove candidates for global non-minimal path ports that are a poor choice because they lead to heavily congested paths. Specifically, global ports marked as busy in the `gnmbgp_mask` mentioned above and local ports marked as busy in the `gnmblp_mask` mentioned above are removed. If no candidates remain after applying these masks, both masks are disabled, so that any remaining candidate ports are considered heavily congested during the adaptive selection phase.

[0113] Provided that at least one valid candidate port exists, the various busy port filters (Busy Ports Filter, Local Non-Minimal (LN) Busy Port Filter, Global Non-Minimal (GN) Busy Port Filter) must not block all candidate ports simultaneously. If viable port candidates exist, they are allowed, even if they are considered "bad," if no better option is available. Otherwise, an empty route response is generated for the routing request if routes are indeed available.

[0114] To prevent a false response being generated for an empty route, the first stage of the filter for occupied terminals of the preferred and non-preferred minimum path ( Fig. ) and the first stage of the filter for occupied ports of the local non-minimal path ( Fig. All candidates will be disabled if the following conditions are all true: No candidate survives the first stage of the preferred minimum path busy port filter; no candidate survives the first stage of the non-preferred minimum path busy port filter; no candidate survives the first stage of the local non-minimal (LN) busy port filter; and no candidate survives the global non-minimal (GN) busy port filter.

[0115] Note that no minimum path candidate ports exist when minimum routing is disabled (allowed ports filter). Local non-minimal path candidate ports exist only when local non-minimal path routing is enabled (candidate local non-minimal path ports). Global non-minimal path candidates exist only when global non-minimal path routing is enabled (candidate global non-minimal path ports). Local and global non-minimal path routing are typically not both enabled simultaneously.If the first stage of the filters for occupied ports of the preferred and non-preferred minimum paths, as well as the filters for occupied ports of the local non-minimal path, are disabled due to the conditions described above, the only candidate ports visible in an adaptive selection stage (as described below) are poor candidates. This is because they are ports leading to other switches whose ports (connected to the target or destination switch) are heavily congested. This is because these are the only candidate ports blocked by the disabled filters, and without these filters being disabled, no other candidates exist.

[0116] The adaptive selection phase chooses between these remaining / surviving candidate ports, all of which are poor, based on their skewed local load, although their local load does not necessarily reflect the reason for their poor quality. Their poor character may be the result of high downstream load on certain ports of the other switches reached by these candidate ports. Since the adaptive selection phase may not be able to determine how poor these candidates are, the coordination between the various busy port filters described here can be used. If each busy port filter decides independently whether or not to disable its RSBGP and RSBLP table-based filters, situations like the following could occur: The non-preferred minimum path busy port filter could generate one or more candidates that are not poor without any of its filter stages being disabled.The preferred minimal path busy port filter might only generate one or more candidate ports if both filter stages are disabled. Therefore, all candidate ports it can generate are poor. In the adaptive selection stage, the downward-selected, non-poor, non-preferred minimal path candidate ports are compared to the downward-selected, poor, preferred minimal path candidate ports. However, the adaptive selection stage lacks insight into how poor the preferred minimal path candidates are, so it might select a poor preferred minimal path candidate over a non-poor, non-preferred minimal path candidate.

[0117] An alternative to the busy port filter coordination mechanism described here would be for all busy port filters to operate independently. However, the busy port filters on the minimum path and the local busy port filters on the non-minimal path would each send a signal to the adaptive selection stage to indicate whether their respective port candidates are a poor choice due to busy ports on downstream switches. If so, the adaptive selection function could override the priority of their port candidates in favor of other ports. The result would be the same as the coordination between the different busy port filters described here.

[0118] As in Fig. As shown, a load-based adaptive selection can be performed on the remaining path candidate ports 510 that remain after the pseudo-random selection process performed by the FRF component 400. The adaptive selection phase results in a single, least loaded port candidate 512, to which a frame can be forwarded. The current load of the port candidates that survived the pseudo-random selection downwards (surviving port candidates 508) is compared to determine the least loaded port candidate from this remaining group of port candidates.

[0119] In some embodiments, preferred minimum-path candidate ports are selected over non-preferred minimum-path candidate ports, and vice versa. To achieve this preferential selection, a bias value can be added to the load of each port candidate before performing the adaptive selection comparison. The bias value used can be configured using CSRs and can vary depending on the type of path to which it is applied (i.e., non-preferred minimal, preferred minimal, and non-minimal), the traffic class of the frame being routed, and the frame's position on its path. For example, frames belonging to a low-latency traffic class can be more biased toward minimum paths than frames in other traffic classes to increase their likelihood of meeting low-latency requirements or needs.Frames can also increasingly follow minimal path routes as they get closer to their destination.

[0120] Specifically, the load values ​​represent the utilization of the ports on switch 202 and are used in the evaluation of load-based port masks and in the comparison of candidate ports during the adaptive route selection process. Load-based port masks are used in the busy port filters to remove ports that are unsuitable due to their current utilization from the pool of eligible ports. Several different types of load values ​​are used within the switch, and some are transmitted to neighboring switch devices. These load values ​​are described in the following sections, noting that... Fig. illustrates how load values ​​are measured, transmitted and used.

[0121] Several load metrics are calculated and used to determine which port a frame should be forwarded to if there is more than one available port. These load metrics are also used to create busy port masks, which, as described above, serve to exclude heavily used ports from consideration.

[0122] Five load metrics are described here: local load, group load, global non-minimal global port load, average global load, and global non-minimal local port load.

[0123] Regarding the local load, the load of each output port of a switch (e.g., output port 220c of switch 202) is continuously evaluated and provided to the corresponding FRF instance as an 8-bit value called local-load. Larger values ​​indicate a higher load. The actual load present at each output port is measured by the Output Control Age Queue Block. The output port load is passed by each age queue instance to the FRF instance (FRF component 400) connected to the input side of the same port. The load value provided to the FRF is an 8-bit value called local-load.The age queue determines the local load based on a combination of the traffic queued and waiting to leave the connection and the traffic on the opposite side of the connection in the input buffer of the link partner switch device. Each FRF instance distributes the `local_load` value it receives from its associated `age queue` instance to all other FRF instances. In this way, each FRF instance knows the current `local_load` of every outbound port.

[0124] When comparing the port loads of candidate ports to determine the best port for forwarding a frame, the local_load value of the port is used for ports eligible for minimum path routing and for ports eligible for local non-minimal path routing.

[0125] Group load is a measure of how suitable a dragonfly group is for use as an intermediate group in a global non-minimal path. The 8-bit group load value is not calculated by a switch, such as Switch 202, but is software-configurable. The software might use a measure of the network injection load present on the inbound side of the group's edge ports when deriving the group_Ioad value, or it might determine the group_load value based on a policy that prevents the use of certain groups as non-minimal intermediate groups, perhaps based on the jobs or services running in the groups. Thus, the group_load value is intended to be representative of the amount of local traffic within a group.

[0126] A network management stack sets the group load value to a CSR by regularly writing it. The software-configured group load value is communicated via global links. FRF instances connected to global links forward the group load value they receive from their link partner in the group on the opposite end of the link to all other FRF instances on the switch. In this way, each FRF instance is aware of the group load values ​​of the groups on the opposite end of each global link terminated by the switch.

[0127] Global non-minimal global port load (gnmgp_Ioad) is a metric used to assess the suitability of a global port for forwarding a frame to the intermediate group reached by the global link connected to that port. gnmgp_load is nominally equal to the maximum of the global port's local_load value and the group_Ioad value received by the group reached by the global link. However, the group_load component can be excluded through CSR configuration.

[0128] When comparing the port loads of candidate ports to determine the best port for forwarding a frame, the gnmgp_load value of the port is used for global ports that are eligible for global non-minimal path routing.

[0129] The mean global load (mean_global_load) is used to assess a switch's suitability for reaching an intermediate group directly connected to that switch. The mean_global_load value is an 8-bit value representing the arithmetic mean of the gnmgpJoad values ​​of all global ports on the switch. Ports deemed non-operational by either the hardware or software are excluded from the calculation. The ports included in the mean_global_load calculation are determined by the CSR configuration.

[0130] If no groupJoad value is received for a port whose load is used in the mean_global_load calculation—either because no link partner data is received for that port or because the received link partner data is not global link data—then that port's contribution to mean_global_load is based solely on that port's local load. The calculated mean_global_load value is communicated via local links. FRF instances connected via local links forward the mean_global_load value they receive from their link partner on the local switch at the other end of the link to all other FRF instances on that switch. In this way, each FRF instance learns the mean_global_load values ​​of the local switches at the opposite end of each local connection made by the exchange and can use these values ​​in global non-minimal path selection.

[0131] Global non-minimal local port load metrics are calculated by each FRF instance. The global non-minimal local port load (gnmlp_load) is a metric used to assess the suitability of a local port for forwarding a frame to an intermediate group of a global non-minimal path. The global non-minimal local port load considers the load on the local port as well as the suitability of the local group switch to which the port is connected for reaching an intermediate group. A port's gnmlp_load value is equal to the maximum of the port's local load and the mean_global_load reported by the port's partner switch. Through software configuration, it is possible to remove the mean_global_load component, so that a port's gnmlp_Ioad simply becomes equal to its local_load.

[0132] The gnmlp_Ioad value is an 8-bit value. Each FRF instance calculates the gnmlpJoad value for all ports on its switch that receive link partner data for a local connection. If no load state information is received from a port's partner switch, the gnmlp_Ioad value for that port is set to the port's local_load value.

[0133] Fig. illustrates exemplary load measurements and how the load measurement can be exchanged between switches in a group. Fig. shows a group of switches, e.g. group 1, comprising switches 602, 604 and 606, each of which is an embodiment of switch 202 ( Fig. Group load values ​​can be exchanged over global links, as mentioned above, and as shown, group load values ​​are transmitted / received from each of switches 602, 604, and 606 to other groups / switches in the switch fabric. Within Group 1, switches 602, 604, and 606 exchange mean_global_load values. Switch 602 also shows how it calculates gnmlp_load values ​​on the output side of local ports, based on the local_load at that port and the mean_global_load reported by the link partner. Additionally, the local_load values ​​are calculated by switch 602 at the output of all ports. Note that the mean_global_load and group_load values ​​are sent symmetrically from each switch to the next over the links between the connected switches.

[0134] The fabric routing process described in the preceding subsections is performed for each received frame. Depending on the traffic ordering requirements, the switch determines whether to perform packet-based adaptive routing (using the recommended port selection) or flow-based adaptive routing (where the port selection set for the first packet in each flow is used for all packets in the flow).

[0135] As described here, a switch, such as Switch 202, supports routing via minimal and non-minimal paths. It should be clear that minimal paths are destination-based. If a destination NIC is local, an outbound port connected to the destination switch is selected. If the destination is in a different group, the packet is routed to a switch within the local group that is connected to the destination. In a large system, there might only be one such path, but in a small system, there are likely many, some connected to the inbound switch and others to switches at other locations within its group. The inbound switch selects among them.

[0136] The ports eligible for minimum path routing are divided into preferred and non-preferred ports, with preferred ports potentially leading to a path with fewer hops. Non-minimal paths route packets through an intermediate switch known as the root switch. Root switches are selected packet-wise or flow-wise, depending on the traffic ordering requirements.

[0137] Non-minimal traffic is routed "up" to the root switch and then minimally "down" to the destination. In some implementations, intermediate root switches are selected randomly to distribute the load evenly. The network, e.g., Network 100, provides the ability to control the selection of intermediate groups, directing traffic toward intermediate groups known to be lightly loaded or away from those with a specific function or known to be heavily loaded. Root switches can be distributed across all groups, with a non-minimal path potentially identifying a root switch in the source group, the destination group, or any intermediate group. Global non-minimal routes take an indirect path via a root switch in an intermediate group.These paths require two global hops: one from the source group to an intermediate group, and one from the intermediate group to the destination. Global non-minimal paths require up to three local hops, one in each group. The maximum path length is typically five switch-to-switch hops, regardless of system size. Although unlikely, it is possible to use up to two additional local hops to bypass interference within the network.

[0138] Minimal routing is preferable because the paths are shorter and therefore the network load is lower. However, minimal routing alone leads to poor performance with some traffic patterns, for example, when all nodes in one group communicate with nodes in another group. To achieve good performance across a wide range of traffic patterns, a combination of minimal and non-minimal routing is necessary.

[0139] At each hop along a frame's path, the routing modes that can be used to forward the frame along its next hop are controlled by the configuration of FRF Routing Algorithm Table 408. When a frame is received at a switch input port, the types of paths the frame can be forwarded along are determined: local minimal, global minimal, local non-minimal, and global non-minimal. The set of output ports to which the frame can be forwarded is determined by the types of paths allowed at that point.

[0140] The types of paths allowed depend on where the frame is located on its journey between the network's input and output ports. The path types are as follows: Local minimal paths choose links directly connected to the frame's destination switch and can be used when the frame is within its target group. Global minimal paths can be used when the frame is not within its target group and choose either global links directly connected to the frame's target group or local links connected to a switch that has working global links directly connected to the frame's target group. Local non-minimal paths can be used when the frame is within its target group or when the frame is in an intermediate group.Local non-minimal paths select local links connected to other switches in the group, regardless of the frame's destination. If the frame is in the target group, it must be possible to reach the frame's destination switch within one further hop after taking the local non-minimal hop. In an intermediate group, it must be possible to reach a switch with a working global link leading to the frame's target group within one further hop after taking the local non-minimal hop. Local links leading to switches where this is not possible must not be selected.

[0141] Global non-minimal paths can be used when the frame is in its source group but not its target audience. Global non-minimal paths choose either global links connected to other groups or local links connected to other switches in the source group, regardless of the frame's destination. Global links may only be chosen if they are connected to a group that has working links to the frame's target audience. Similarly, local links may only be chosen if they are connected to switches that have global links which themselves constitute a valid global non-minimal path choice.

[0142] Adaptive routing chooses between minimal and non-minimal paths (as described above) according to their current utilization.

[0143] Minimal routing creates local minimal routes in the target group, but not at the destination switch, by looking up the switch_id field of the destination fabric address in a local minimal switch table ( Fig. The search returns a number of valid connections. The local switch minimal table contains 128 entries, each with 64 bits, where each bit represents a possible output port. At the destination switch, the selection of the output port(s) is made by looking up the endpoint_id field of the destination fabric address in the local port minimal table. The search returns a number of valid connections. The local port minimal table contains 64 entries, each with 64 bits, where each bit represents a possible output port.

[0144] Global minimal routes are generated by looking up the global_id field of the Fabric destination address in a global minimal table ( Fig. The search returns a number of valid connections. The global minimum table contains 512 entries, each with 64 bits, where each bit represents a possible output port.

[0145] Minimal local paths consist of at most one switch-to-switch hop, from the source switch to the destination switch, both of which are in the same group. There can be multiple such paths. Non-minimal local paths involve two switch-to-switch hops: from the source switch to an intermediate switch, called the root switch, and from there to the destination switch. There are many such paths.

[0146] Global minimal paths require one global hop from the source group to the target group. There is at most one local hop in each of the source and target groups. Regardless of system size, global minimal paths require a maximum of three switch-to-switch hops.

[0147] In certain system configurations where there are multiple global links connecting a source group to a target group, a bias can occur, resulting in the proportion of traffic injected into the source group that is distributed across each of the global links not being equal. Consider, for example, the case of switches A, B, and C, all belonging to group X, where switch B has three global links connecting it to group V, and switch C has two global links connecting it to group V. If the traffic injected into switch A, destined for group V, is distributed evenly across switch band C, each of switch C's two global links will be more heavily burdened than each of switch B's three global links.

[0148] To counteract bias, the global minimal table can be divided into multiple blocks, each capable of generating a valid set of global routing decisions for any given target audience. The block used to process the query is pseudorandomly selected by the FRF for each frame. Within each block instance of the global minimal table, only a subset of the possible candidate ports that can be used to reach the target audience is populated. This subset is chosen to counteract bias. The populated subsets can be varied across different block instances to ensure that all possible candidate ports are utilized.

[0149] A minimal global path between an edge port in one group and an edge port in another group can require one, two, or three hops over fabric links. One hop is required if the switch with the ingress edge port in the source group is directly connected to the switch with the egress edge port in the target group via a global link. Two hops are required if the frame traverses a global link between the two groups that is directly connected to either the incoming switch in the source group or the outgoing switch in the target group. In this case, a hop over a local link in either the source or target group is also required. Finally, three hops are required if the frame traverses a global link that is not directly connected to either the incoming switch in the source group or the outgoing switch in the target group.In this case, a hop via a local connection is also required in both the source and target groups. The local link hop in the source group moves the frame from the ingress switch to the source group switch connected to the global link. The local link hop in the target group moves the frame from the target group switch connected to the global link to the egress switch.

[0150] When identifying ports suitable for a minimum path, the FRF can categorize candidates into preferred and non-preferred ports. Preferred ports are those that enable a global minimum path requiring two or fewer fabric link hops. Non-preferred ports are all minimum path candidates not classified as preferred. Using preferred paths, if available and not overly congested, reduces the average load on the system's local fabric links by decreasing the average number of local fabric links traversed per frame. Using a preferred path can also reduce the frame's end-to-end latency.

[0151] In local non-minimal path routing, any local connection can be a candidate. However, some local connections may need to be excluded if they lead to a switch from which the destination cannot be reached due to link or switch failures in the system. A CSR (Customer Signing Request) controls which ports are eligible for local non-minimal path routing.

[0152] In global non-minimal routing, generally any global link can be a candidate. Furthermore, generally any local link that reaches a switch with functioning global links can be a candidate. However, some links may be excluded if they lead to a switch or group of switches from which the target audience cannot be reached due to link or switch failures within the system. Customer Sign-off Requests (CSRs) control which ports are eligible for global non-minimal path routing.

[0153] When selecting a candidate port for global non-minimal routing, if all candidate ports, global and local, are selected with equal probability, then in many system configurations, the global non-minimal traffic will not be evenly distributed across the global links leaving the group. Consider, for example, the situation of three switches, A, B, and C, within a group, where each switch is connected to every other switch by four local links, and switches A and B each complete 14 global links, and switch C completes 16 global links. If it is equally likely that traffic will be routed to any of these links, then each global link completed by switch B will receive only 4 / 14 (4 local links reach 14 global links) of the traffic routed to each global link completed by switch A.

[0154] To counteract this potential bias in the distribution of global non-minimal traffic across a group's global connections, a weighting can be applied to each of the port candidates during the pseudo-random selection of the global non-minimal port candidates on the small number of ports participating in the adaptive routing phase, so that some are more likely to survive the selection process than others.

[0155] Adaptive routing chooses between these minimum and non-minimal paths based on their load. Adaptively routed traffic starts on a minimum path and is redirected to a non-minimal path when the load on the minimum path is high (this is called progressive adaptive routing). Such paths are referred to as "divergent."

[0156] A non-minimal path can be chosen at the inbound or outbound router in a source group. A local non-minimal route can be chosen within the source group, an intermediate group, or a target group. Dragonfly routing algorithms allow a non-minimal path in both the intermediate and target groups (consider a case where all traffic arriving at the global ports of a particular switch is destined for the NICs of another switch in the group). Generally, however, non-minimal traffic is so well distributed that this doesn't occur, but an extra hop in the target group can still be beneficial if there is a fault on a local link. After the packet reaches the intermediate group, it can either take a minimal route to the target group or a local non-minimal route to a switch with a path to the target group.

[0157] This decision is also made based on load. After the packet has made a jump within the intermediate group, it must identify the root and take a minimum path to its destination. Adaptive decisions are made based on the load and a preference for preferred minimum paths, disliked minimum paths, or non-minimal paths. A routing algorithm, as described above, increases the preference for minimum paths the closer a packet is to its destination. This algorithm prefers a direct path through the intermediate group if the load is low.

[0158] Restricted routing is used at points other than injection and root detection to prevent packets from flowing back in the direction from which they originated. In a switch, cases where a packet has made a hop from the injection and root detection points are detected, and it is ensured that a global port is used. With local minimal routing, after making one hop from the root, the packet arrives at a switch connected to the destination NIC. With global minimal routing, after one hop from the injection point, the packet arrives at a switch with a global link that must be used. In the intermediate group, packets are allowed to make one local hop at the injection point. From this point, the packet must take a minimal path to its destination.

[0159] When passing information from switch to switch, it's necessary to make immediate decisions about the next step along the path. These decisions are based on information transmitted from the local state and from neighboring switches. Using information from many different sources enables more accurate and efficient decisions, including information from neighbors.

[0160] Earlier systems transmitted information about the average load from switch to switch. However, more detailed information from related or neighboring switches is more helpful. The current switch ASIC can contain a number of values ​​indicating the status of output ports on related / neighboring switches. Passing on these values ​​allows for significantly better routing decisions. For example, a flag is returned from neighboring switches, with the flag having one bit for each output port. For instance, a switch with 64 outputs would transmit a 64-bit flag. This is much more accurate than simply passing on a global average value for neighboring ports.

[0161] Fig. This shows an example scenario where the average load is used as the basis for forwarding packets in a switch fabric consisting of source switch 702, destination switch 708, and two possible intermediate switches 704 and 706. As shown in Fig. As shown, based on the adaptive routing described here, the source switch 702 can determine two possible intermediate switches (704 and 706) through which packets can be routed from the source switch 702 to the destination switch 708. If adaptive routing decisions are based on the average load of intermediate switches 704 and 706, intermediate switch 704 in this example might have an average load of two, while intermediate switch 706 might have an average load of three. If the adaptive routing decisions are based on the average load, the source switch 702 would choose to reach the destination switch 708 via intermediate switch 704 (i.e., route 710). However, the connection between the intermediate switch 704 and the destination switch 708 may be overloaded, which, as mentioned above, can negatively affect latency, for example.

[0162] According to one embodiment, as described above, the utilization of the ports can be taken into account. That is, as in Fig. As shown, the selection of port candidates and adaptive route choice can be based on load. Here too, FRF component 400 considers three categories of port candidates to which a frame can be forwarded: preferred minimum path candidate ports 502; non-preferred minimum path candidate ports 504; and non-minimal path candidate ports 506. Depending on where a frame is on its path, non-minimal path candidate ports are either global or local.

[0163] Filtering can be applied to three categories of port candidates: functional ports, usable ports, and occupied ports. The port filtering used here can reduce the number of valid ports that qualify as path candidates by identifying and removing missing, faulty, and / or occupied ports.

[0164] In the example of Fig. Filtering for occupied ports can lead to choosing a different path for forwarding frames from source switch 702 to destination switch 708. Here, too, knowledge of which ports in a neighboring switch (in this example, intermediate switches 704 and 706) are occupied can be used to determine whether the ports connected to a neighboring switch are poor candidates for receiving a frame, depending on whether the neighboring switch would then have to forward the frame to a port that is already occupied. Accordingly, filtering for occupied ports can be performed by FRF component 400 by using occupied port masks to exclude heavily loaded ports from consideration as candidate ports. FRF component 400 manages four occupied port masks.Ports whose utilization exceeds a software-defined threshold: Mask for occupied ports of the local switch; global mask for global ports with significant utilization; global mask for local ports with significant utilization; mask for occupied ports of the remote switch. Information from these masks is exchanged between the switches to populate the remote switch.

[0165] Here, a local switch busy port mask can be applied to both minimum path candidate ports and local non-minimum path candidate ports, such as the output ports of intermediate switches 704 and 706. FRF component 400 generates a 64-bit mask, Is_busy_port_mask, by comparing the local_load of each port to a software-defined threshold. Ports with a load higher than this threshold are marked as busy in this mask. In this example, the output ports of intermediate switch 704, which are directed to the destination switch 708, meet or exceed the software threshold defined for the switch fabric. Therefore, the Is_busy_port_mask indicates that the connection from intermediate switch 704 to destination switch 708 is busy.The output ports of the intermediate switch 706 to the destination switch 708, on the other hand, are not marked with the Is_busy_port_mask, since the threshold for the load is not reached / exceeded, which means that the connection between the intermediate switch 706 and the destination switch 708 is not loaded, but idle.

[0166] Based on the busy mask indicating that the connection between intermediate switches 704 and 708 is occupied, the output terminal of intermediate switch 704, which is connected to an input terminal of destination switch 708, is considered a poor candidate and removed from consideration. Accordingly, and in contrast to the scenario of Fig. In a scenario where route 710 is selected based on average load, route or path 712 is chosen to route one or more frames from source switch 702 via intermediate switch 706 and on to its destination, i.e., destination switch 708. It goes without saying that the quiet connection state between intermediate switch 706 and destination switch 708 is the better choice for forwarding frames from source 702, even though the average load is higher.

[0167] Similarly, as mentioned above, FRF component 400 can use the received "busy port" masks from the remote switch to generate the aforementioned "Remote Switch Busy Global Port Table" and "Remote Switch Busy Local Port Table" with busy port masks that identify ports connected to neighboring switches that should be avoided as global minimum path candidates based on the target to which the frame is routed, and as local non-minimal path candidates based on the destination switch to which the frame is routed. Thus, the `rs_busy_port_mask` can also be used to identify ports connected to neighboring switches that may be busy or idle, according to some implementations. In the example of Fig. An input port of the destination switch 708 can be considered busy due to the rs_busy_port_masks applied to it. Such ports can be avoided during routing at the destination switch based on the destination switch to which the frame is routed, as they are considered local non-minimal path candidates.

[0168] Fig. This is a flowchart illustrating example operations that can be performed to effect adaptive route or path selection according to one embodiment of the disclosed technology. As mentioned above, the switch 202 can be an ASIC, so that one or more electronic circuits containing electronic components can be used to control or instantiate the FRF component 400 ( Fig. and Fig. ) are provided for by performing the disclosed example operations.

[0169] In Operation 800, a plurality of load signals are received from a plurality of adjacent switches. Each of these load signals comprises a set of values ​​indicating a load on each of the plurality of adjacent switches providing the load signal. Each value within the set of values ​​provides an indication for each connection of the plurality of connections to it, indicating whether the connection is busy or idle. As described above, a switch, such as Switch 202, can have a plurality of ports (64 ports in some embodiments). Packets can be routed between the input and output ports of one switch to another or multiple switches (each having its own input and output ports).The forwarding of packets between switches can be done in accordance with certain characteristics of the switches that the packets can pass through on their way from a source switch to a destination switch.

[0170] There can be one or more intermediate switches between the source and destination switches. To select a path, the ports of the switches that the packet can traverse are filtered to identify specific candidate ports that exhibit desirable characteristics, such as their traffic load. Accordingly, adaptive routing is performed by determining, based on the load (an indicator of utilization) associated with a candidate port, whether the packet should traverse a path that includes a candidate port on a switch, such as an intermediate switch. In some implementations, the local load is compared to a threshold that can be set by the CSR configuration, and ports can be excluded depending on whether the local load falls below or exceeds this threshold.

[0171] In operation 802, an output connection for forwarding a received packet is selected based on multiple load signals, and the received packet is forwarded via the selected output connection. This means that a mask can be applied to those ports whose local load exceeds the threshold; that is, these ports are marked as busy in this mask. It is understood that, in accordance with other embodiments, other masks for busy ports can also be applied, such as a global mask for non-minimum-busy global ports, a global mask for non-minimum-busy local ports, or a target-group-dependent busy port mask, depending on the circumstances. For example, a target-group-dependent busy port mask derived from a global busy port table of a remote switch can be applied to global minimum path candidate ports.Accordingly, a target-group-dependent busy port mask, derived from a local busy port table of a remote switch, can be applied to local candidate ports for non-minimal paths when a frame is routed in its target group. Therefore, the use of utilization information need not be limited to determining the ports of intermediate switches. If a port is marked as busy in a busy port mask, that port can be removed or excluded as a candidate. As in... Fig. As illustrated and described above, load-based adaptive selection can narrow down the surviving candidate ports to the least congested one. A path for routing the packet can then be selected to include this least congested port, and the packet will ultimately be routed through the selected port from among the many available switch ports.

[0172] It should be noted that the terms "optimize," "optimal," and the like, as used here, can be interpreted as making or achieving performance as effective or perfect as possible. However, as any professional reading this document will recognize, perfection cannot always be achieved. Accordingly, these terms can also mean making or achieving performance as good or effective as possible or practical under the given circumstances, or making or achieving performance better than that which can be achieved with other settings or parameters.

[0173] Fig.Figure 900 shows a block diagram of an example computer system 900, in which various embodiments described here can be implemented. The computer system 900 comprises a bus 902 or other communication mechanism for transmitting information, and one or more hardware processors 904 connected to the bus 902 for processing information. The hardware processor(s) 904 can be, for example, one or more general-purpose microprocessors.

[0174] The Computer System 900 also includes main memory 906, such as random access memory (RAM), a cache, and / or other dynamic memory devices connected to bus 902 to store information and instructions to be executed by processor 904. Main memory 906 can also be used to store temporary variables or other intermediate information during the execution of instructions to be carried out by processor 904. When such instructions are stored in memory media accessible to processor 904, the Computer System 900 becomes a specialized machine adapted to perform the operations specified in the instructions.

[0175] The Computer System 900 also includes a read-only memory (ROM) 908 or other static storage device connected to bus 902 to store static information and instructions for processor 904. A storage device 910, such as a magnetic disk, optical disk, or USB flash drive, etc., is provided and connected to bus 902 to store information and instructions.

[0176] The computer system 900 can be connected via bus 902 to a display 912, such as a liquid crystal display (LCD) (or a touchscreen), to show information to a computer user. An input device 914, including alphanumeric and other keys, is coupled to bus 902 to transmit information and command selections to the processor 904. Another type of user input device is the cursor control 916, such as a mouse, trackball, or cursor direction keys, for transmitting directional information and command selections to the processor 904 and for controlling cursor movement on the display 912. In some embodiments, the same directional information and command selections as with cursor control can be implemented by receiving touch inputs on a touchscreen without a cursor.

[0177] The Computer System 900 can include a user interface module for implementing a graphical user interface, which can be stored on a mass storage device as executable software code that is executed by the computer device(s). This and other modules can include components such as software components, object-oriented software components, class components and task components, processes, functions, attributes, procedures, subroutines, segments of program code, drivers, firmware, microcode, circuits, data, databases, data structures, tables, arrays, and variables.

[0178] In general, the terms "component," "engine," "system," "database," "data store," and the like, as used here, can refer to logic embodied in hardware or firmware, or to a collection of software instructions that may have entry and exit points and are written in a programming language such as Java, C, or C++. A software component may be compiled and linked into an executable program, installed in a dynamic link library, or written in an interpreted programming language such as BASIC, Perl, or Python. It is clear that software components can be called by other components or by themselves, and / or invoked in response to detected events or interruptions. Software components configured to run on computer devices may be stored on a computer-readable medium, such as...Software may be provided on a compact disc, digital video disc, flash drive, magnetic disk, or other tangible medium, or as a digital download (and may initially be stored in a compressed or installable format that requires installation, decompression, or decryption before execution). Such software code may be stored partially or entirely in memory on the executing computer device for execution by the computer device. Software instructions may be embedded in firmware, such as an EPROM. Furthermore, the hardware components may consist of interconnected logic units such as gates and flip-flops, and / or programmable units such as programmable gate arrays or processors.

[0179] The computer system 900 can implement the techniques described herein using customer-specific hard-wired logic, one or more ASICs or FPGAs, firmware, and / or program logic which, in combination with the computer system, causes or programs the computer system 900 to be a special-purpose machine. According to one embodiment, the techniques described herein are executed by the computer system 900 in response to the processor(s) 904, which executes one or more sequences of one or more instructions contained in the main memory 906. Such instructions may be read into the main memory 906 from another storage medium, such as the storage device 910. The execution of the instruction sequences contained in the main memory 906 causes the processor(s) 904 to perform the procedure steps described herein.In alternative embodiments, hard-wired circuits can be used instead of, or in combination with, software instructions.

[0180] The term "non-volatile media" and similar terms as used here refer to all media that store data and / or instructions that make a machine operate in a particular way. Such non-volatile media can include both non-volatile and volatile media. Non-volatile media include, for example, optical or magnetic disks, such as the Storage Device 910. Volatile media include dynamic storage, such as the Main Memory 906. Common forms of non-volatile media include, for example, floppy disks, flexible disks, hard disks, solid-state drives, magnetic tapes or other magnetic data storage media, CD-ROMs, other optical data storage media, physical media with hole patterns, RAM, PROM and EPROM, FLASH-EPROM, NVRAM, other memory chips or cartridges, and their networked versions.

[0181] Non-transitory media differ from transmission media but can be used in conjunction with them. Transmission media are involved in the transfer of information between non-transitory media. Examples of transmission media include coaxial cable, copper and fiber optic cables, including the wires that make up the 902 bus. Transmission media can also take the form of sound or light waves, such as those generated in radio and infrared data communication.

[0182] The Computer System 900 also includes a communication interface 918, which is connected to bus 902. The network interface 918 provides a two-way data communication connection to one or more network connections that are connected to one or more local area networks (LANs). For example, the communication interface 918 could be an ISDN (Integrated Services Digital Network) card, a cable modem, a satellite modem, or a modem to establish a data communication connection to a corresponding type of telephone line. Another example: the network interface 918 could be a LAN (Local Area Network) card to establish a data communication connection to a compatible LAN (or a WAN component for communication with a WAN). Wireless connections can also be implemented.In each of these implementations, the 918 network interface sends and receives electrical, electromagnetic, or optical signals that transmit digital data streams representing various types of information.

[0183] A network connection typically enables data communication over one or more networks to other data devices. For example, a network connection can establish a connection over a local area network to a host computer or to data devices of an Internet service provider (ISP). The ISP, in turn, offers data communication services over the worldwide packet data communication network, commonly known today as the "Internet." Both the local area network and the Internet use electrical, electromagnetic, or optical signals to transmit digital data streams. The signals across the various networks, the signals on the network connection, and the communication interface 918, which transmit digital data to and from the computer system 900, are examples of transmission media.

[0184] The Computer System 900 can send messages and receive data, including program code, via the network(s), network connection, and communication interface 918. In the Internet example, a server could transmit requested code for an application program via the Internet, the ISP, the local network, and communication interface 918.

[0185] The received code can be executed by the processor 904 upon receipt and / or stored in the memory device 910 or other non-volatile memory for later execution.

[0186] Each of the processes, methods, and algorithms described in the preceding sections can be embodied in code components and fully or partially automated by them, which are executed by one or more computer systems or computer processors with computer hardware. The one or more computer systems or computer processors can also be operated in such a way as to support the execution of the corresponding operations in a cloud computing environment or as Software as a Service (SaaS). The processes and algorithms can be partially or fully implemented in application-specific circuits. The various features and procedures described above can be used independently or combined in various ways.Various combinations and subcombinations are intended to fall within the scope of this disclosure, and certain procedural or process blocks may be omitted in some implementations. The methods and processes described herein are also not restricted to a particular order, and the associated blocks or states may be executed in other suitable orders, in parallel, or otherwise. Blocks or states may be added to or removed from the disclosed examples. The execution of certain operations or processes may be distributed across computer systems or computer processors that are not located in a single machine but are distributed across a number of machines.

[0187] As used herein, a circuit can be implemented in any form of hardware, software, or a combination thereof. For example, one or more processors, controllers, ASICs, PLAs, PALs, CPLDs, FPGAs, logic components, software routines, or other mechanisms can be implemented to form a circuit. In implementation, the various circuits described herein can be implemented as discrete circuits, or the described functions and features can be partially or completely distributed across one or more circuits.Even if various features or functional elements are individually described or claimed as separate circuits, these features and functions may be shared by one or more common circuits, and such a description is not intended to require or imply that separate circuits are necessary to implement these features or functions. If a circuit is implemented wholly or partly in software, such software may be implemented to operate with a computer or processing system capable of performing the functionality described therein, such as the Computer System 900.

[0188] As used herein, the term "or" can be understood in both an inclusive and an exclusive sense. Furthermore, the singular description of resources, processes, or structures is not to be understood as excluding the plural. Conditional expressions, such as "may," "could," "might," or "may," are generally intended to convey that certain embodiments include certain features, elements, and / or steps, while other embodiments do not include them, unless expressly stated otherwise or understood differently in the context of use.

[0189] Unless explicitly stated otherwise, the terms and expressions used in this document, as well as their variations, are to be understood as open rather than restrictive. Adjectives such as "conventional," "traditional," "normal," "standard," "known," and terms with similar meanings are not to be understood as limiting the described subject matter to a specific period or to an item available at a particular time, but should be understood as encompassing conventional, traditional, normal, or standard technologies that may be available or known now or at any time in the future.The presence of expansive words and phrases such as "one or more", "at least", "but not limited to" or similar expressions in some cases is not to be understood as implying that the narrower case is intended or required when such expansive phrases are not present. QUOTES INCLUDED IN THE DESCRIPTION

[0000] This list of documents cited by the applicant was automatically generated and is included solely for the reader's convenience. The list is not part of the German patent or utility model application. The DPMA accepts no liability for any errors or omissions. Cited patent literature

[0000] US 62 / 852273

[0002] US 62 / 852203

[0002] US 62 / 852289

[0002]

Claims

[1] A method for forwarding data between a plurality of exchanges having a plurality of connections connected between the plurality of exchanges, the method comprising: at a switch, receiving a plurality of load signals from a plurality of adjacent switches, each of the plurality of load signals comprising a set of values indicative of a load at each of the plurality of adjacent switches providing the load signal, each value within the set of values providing an indication for each link of the plurality of links connected thereto as to whether the link is busy or idle; and based on the plurality of load signals, selecting an output link to forward a received packet, and forwarding the received packet over the selected output link. [2] The method of claim 1, wherein the switch comprises a source switch. [3] The method of claim 1, wherein the indication of whether the connection is busy comprises a remote switch busy port mask characterizing ports of the neighboring switches, wherein one or more of the remote switch busy port masks are transformed to form entries of a global remote switch busy port table, and one or more of the remote switch busy port masks are transformed to form entries of a local remote switch busy port table, wherein the remote switch busy port masks are received from the neighboring switches. [4] The method of claim 3, wherein the remote switch's busy global port table is indexed in accordance with target group identifiers corresponding to those of the target groups of the received packets. [5] The method of claim 4, wherein a fabric routing function instance of the switch, in accordance with an executed routing algorithm, determines a recommended port to which the received packet should be routed after filtering out candidate ports based on a determination that the filtered out candidate ports are busy in accordance with the indexed entry in the global busy port table of the remote switch. [6] A method according to claim 3, wherein the table of busy local ports of the remote switch is indexed in accordance with switch identifiers corresponding to those of the destination switches of the received packets. [7] The method of claim 6, wherein a fabric routing function instance of the switch, in accordance with an executed routing algorithm, determines a recommended port to which the received packet should be routed after filtering out candidate ports based on a determination that the filtered out candidate ports are busy in accordance with the indexed entry in the busy local port table of the remote switch. [8] Switch, consisting of: an application-specific integrated circuit (ASIC) to: Receiving a plurality of load signals from a plurality of adjacent switches, each of the plurality of load signals comprising a set of values indicative of a load on each of the plurality of adjacent switches providing the load signal, each value within the set of values providing an indication for each link of the plurality of links connected thereto as to whether the link is busy or idle; select an output connection for forwarding a received packet based on the received plurality of load signals; and forward the packet via the selected outgoing link. [9] The switch of claim 8, wherein the indication of whether the link is busy comprises a remote switch busy port mask characterizing ports of the neighboring switches, wherein one or more of the remote switch busy port masks are transformed to form entries of a global remote switch busy port table, and one or more of the remote switch busy port masks are transformed to form entries of a local remote switch busy port table, wherein the remote switch busy port masks are received from the neighboring switches. [10] The switch of claim 9, wherein the remote switch's busy global port table is indexed in accordance with target group identifiers corresponding to those of the target groups of the received packets. [11] The switch of claim 10, wherein the ASIC comprises a fabric routing function instance that, in accordance with an executed routing algorithm, determines a recommended port to which the received packet should be forwarded after filtering out candidate ports based on a determination that the filtered out candidate ports are busy in accordance with the indexed entry in the global busy port table of the remote switch [12] The switch of claim 9, wherein the remote switch's busy local port table is indexed in accordance with switch identifiers corresponding to those of the destination switches of the received packets. [13] The switch of claim 12, wherein the ASIC comprises a fabric routing function instance that, in accordance with an executed routing algorithm, determines a recommended port to which the received packet should be forwarded after filtering out candidate ports based on a determination that the filtered out candidate ports are busy in accordance with the indexed entry in the busy local port table of the remote switch. [14] System comprising: a plurality of switches interconnected to form a switch fabric; wherein a first switch of the plurality of switches receives a load signal from adjacent switches of the plurality of switches, each of the plurality of load signals comprising a set of values indicative of a load on each of the plurality of adjacent switches providing the load signal, each value within the set of values providing an indication for each link of the plurality of links connected thereto as to whether the link is busy or idle; and wherein the first switch selects an output link for forwarding a received packet based on the plurality of load signals and forwards the received packet over the selected output link. [15] The system of claim 14, wherein the indication of whether the link is busy comprises a remote switch busy port mask characterizing ports of the neighboring switches, wherein one or more of the remote switch busy port masks are transformed to form entries of a global remote switch busy port table, and one or more of the remote switch busy port masks are transformed to form entries of a local remote switch busy port table, wherein the remote switch busy port masks are received from the neighboring switches. [16] The system of claim 15, wherein the remote switch's busy global port table is indexed in accordance with target group identifiers corresponding to those of the target groups of the received packets. [17] The system of claim 16, wherein subsets of the neighboring switches comprise global minimum paths for reaching the target groups. [18] The system of claim 16, wherein a fabric routing function instance of the first switch, in accordance with an executed routing algorithm, determines a recommended port to which the received packet should be routed after filtering out candidate ports based on a determination that the filtered out candidate ports are busy in accordance with the indexed entry in the global busy port table of the remote switch. [19] The system of claim 15, wherein the remote switch's busy local port table is indexed in accordance with switch identifiers corresponding to those of the destination switches of the received packets. [20] The system of claim 19, wherein subsets of the neighboring switches comprise local non-minimal and local minimal paths to the destination switches. [21] The system of claim 19, wherein a fabric routing function instance of the first switch determines, in accordance with an executed routing algorithm, a recommended port to which the received packet should be routed after filtering out candidate ports based on a determination that the filtered out candidate ports are busy in accordance with the indexed entry in the busy local port table of the remote switch.

Citation Information

Patent Citations

  • Dynamically updating routing information while avoiding deadlocks and preserving packet order after a configuration change

    US20120287821A1

  • Methods and systems for controller-based secure session key exchange over unsecured network paths

    US20160080502A1