Network element supporting flexible data reduction operation and method thereof
By designing multi-port, computing modules and configurable forwarding circuits in network elements, combined with central blocks and topological structures, the problem of low parallel processing efficiency of data reduction operations in the existing technology is solved, and efficient data reduction operations and bandwidth utilization are achieved. .
Patent Information
- Application Number
- CN202110012154.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-01-23
- Filing Date
- 2021-01-06
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-01-06
AI Technical Summary
It is difficult for existing network elements to efficiently process multiple high-bandwidth data streams in parallel when performing data reduction operations, and it is difficult to effectively utilize port bandwidth, resulting in low computing efficiency.
A network element is designed that contains multiple ports, compute modules, and configurable forwarding circuits, receives requests through a central block, derives topology interconnections between child ports, parent ports, and compute modules, performs data reduction operations, and Topology is applied through forwarding circuits to support parallel data reduction operations.
It enables parallel execution of multiple data reduction operations among multiple network elements, effectively utilizes port bandwidth, improves computing efficiency and processing capabilities, and supports flexible data reduction operations.
Smart Images

Figure CN113162963B_ABST
Abstract
Description
Technical Field
[0001] Embodiments described herein relate generally to in-network computing, and more particularly to methods and systems for network elements supporting flexible data reduction operations. Background Art
[0002] Some computing systems support network elements of communication systems to perform computing tasks. Methods for distributing computing between multiple network elements are known in the art. For example, U.S. Patent 10,284,383 describes a switch in a data network that is configured to mediate data exchange between network elements. The device also includes a processor that organizes the network elements into a hierarchical tree having a root node network element, a vertex node network element, and a child node network element including a leaf node network element. The leaf node network element initiates aggregate data and transmits the aggregate data to a corresponding parent vertex node network element. The vertex node network element combines aggregate data from at least a portion of the child node network element and transmits the combined aggregate data from the vertex node network element to the parent vertex node network element. The root node network element is operable to initiate a reduction operation on the aggregate data. Summary of the invention
[0003] The embodiments described herein provide a network element, which includes: a plurality of ports, a plurality of computing modules, a configurable forwarding circuit, and a central block. The plurality of ports include a plurality of sub-ports coupled to corresponding sub-network elements or network nodes and one or more parent ports coupled to corresponding parent network elements. The plurality of ports are configured to be connected to a communication network. The plurality of computing modules are configured to perform data reduction operations together according to a data reduction protocol. The configurable forwarding circuit is configured to interconnect between the ports and the computing modules. The central block is configured to receive a request indicating a selected sub-port, a selected parent port, and a computing module required to perform a data reduction operation on data received from the sub-network element or network node via the selected sub-port to generate reduced data sent to the parent network element via the selected parent port, derive a topology from the request, the topology is interconnected between the selected sub-port, the selected parent port, and the computing module, so as to perform the data reduction operation, and forward the corresponding reduced data for transmission to the selected parent port, and configure the forwarding circuit to apply the topology.
[0004] In some embodiments, the selected subport is configured to receive a data message including a reduction operation and a corresponding data portion, and send the reduction operation to the central block, and the central block is configured to set the computation module to apply the reduction operation to the data portion. In other embodiments, the central block is configured to derive the topology in a chain configuration to interconnect computation modules that receive data for reduction via the selected subport. In yet other embodiments, the central block is configured to derive the topology to interconnect outputs of two computation modules that receive data for reduction via the selected subport as input to an aggregator computation module.
[0005] In one embodiment, the selected parent port and each selected subport include a QP responder and a QP requester, the QP responder and the QP requester being configured to handle reliable transport layer reception and packet transmission, respectively. In another embodiment, the central block is configured to receive a first request indicating a first subport, a first parent port, and a first computing module required to perform a first data reduction operation on data received via the first subport and sent to the first parent port, and further receive a second request indicating a second subport, a second parent port, and a second computing module required to perform a second data reduction operation on data received via the second subport and sent to the second parent port, derive a first topology for performing the first data reduction operation from the first request, and derive a second topology for performing the second data reduction operation from the second request, and configure the forwarding circuit to apply the first topology and the second topology to support parallel execution of the first data reduction operation and the second data reduction operation. In yet another embodiment, the request indicates that the network element function as a root network element, and the central block is configured to derive from the request a topology of interconnections between the selected subports and the computing modules in order to perform data reduction operations for generating aggregate data and routing the aggregate data to one or more subports.
[0006] In some embodiments, the request or the separately received request indicates a given parent port and one or more given child ports, and the central block is configured to derive from the request a topology that interconnects the given parent port to the one or more given child ports, to receive aggregated data from a corresponding parent network element via the given parent port, and to distribute the aggregated data to a corresponding network element or network node via the given child port. In other embodiments, the forwarding circuit includes an upstream forwarding circuit and a downstream forwarding circuit, wherein the central block is configured to apply an upstream topology to the upstream forwarding circuit in parallel to apply the data reduction operation, and to apply a downstream topology to the downstream forwarding circuit to distribute the aggregated data generated by the root network element to one or more network nodes.
[0007] According to the embodiments described herein, a method is further provided, the method comprising: in a network element comprising: (i) a plurality of ports connected to a communication network, comprising a plurality of sub-ports coupled to respective sub-network elements or network nodes and one or more parent ports coupled to respective parent network elements, (ii) a plurality of computing modules that collectively perform data reduction operations according to a data reduction protocol, and (iii) configurable forwarding circuits interconnected between the ports and the computing modules, a request is received by a central block of the network element, which indicates a selected sub-port, a selected parent port, and a computing module required to perform a data reduction operation on data received via the selected sub-port to generate reduced data to be sent to the parent network element via the selected parent port. From the request, a topology is derived, the topology being interconnected between the selected sub-port, the selected parent port, and the computing modules so as to perform the data reduction operation and forward the reduced data for transmission to the selected parent port. The topology is applied by the forwarding circuit.
[0008] These and other embodiments may be more fully understood through the following detailed description of the embodiments in conjunction with the accompanying drawings, in which: BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 is a block diagram schematically illustrating a computing system supporting flexible in-network computing according to embodiments described herein;
[0010] Figure 2 is a schematic diagram showing an embodiment according to the present invention. Figure 1 A block diagram of a network element supporting flexible data reduction operations in a computing system;
[0011] Figure 3A and Figure 3B is a diagram schematically illustrating an example data reduction scheme within a network element according to embodiments described herein;
[0012] Figure 4 is a flow chart schematically illustrating a method of performing a data reduction operation in a network element according to an embodiment described herein; and
[0013] Figure 5 and Figure 6 is a diagram schematically illustrating an upstream data reduction process and a downstream data reduction process within a network element according to embodiments described herein. DETAILED DESCRIPTION
[0014] Overview
[0015] Various embodiments described herein provide systems and methods for in-network computing using network elements that support flexible data reduction operations.
[0016] In-network computing involves dividing the computation on a data stream into multiple sub-computations that are performed by network elements of the communication network. The network elements may include any suitable network device, such as a switch or a router.
[0017] In some embodiments, computation in the network is performed hierarchically by multiple network elements arranged in a multi-layer configuration. The lowest level network element receives portions of a data stream from multiple network nodes and generates partial results based on the data portions. Higher level elements further aggregate the partial results to a root network element that generates the final computation result. The root network element typically distributes the final computation result to some or all network nodes that provide data, and / or to other network elements.
[0018] The partial results produced by a network element as part of a computation in the network are also referred to herein as "reduced data," and the final results produced by the root network element are also referred to herein as "aggregated data." The logical structure that models computation in a hierarchical network is called a "data reduction tree."
[0019] In-network computing is often implemented according to a data reduction protocol. An example of such a data reduction protocol is the Scalable Hierarchical Aggregation and Reduction Protocol (SHArP) described in the above-referenced U.S. Patent No. 10,284,383. TM ). The data reduction protocol generally specifies messages that network nodes and network elements exchange with each other to transfer data and control. Messages related to the data reduction protocol generally include multiple packets, each of which includes a transport layer data packet header and a payload. In some embodiments, the first packet of the message includes a header of the underlying data reduction protocol, such as a SHArP header.
[0020] An important requirement for implementing in-network computing is to efficiently perform multiple complex computations in parallel and with low latency on multiple corresponding high-bandwidth data streams. For example, certain aspects of accelerating data reduction operations in hardware are described in U.S. Patent Application No. 16 / 357,356 to Elias et al., filed on March 19, 2019.
[0021] In principle, multiple data reduction trees can be used to model multiple corresponding in-network computations in parallel, however, such data reduction trees can use separate sets of ports and computational resources on the corresponding network elements, in which case they can maintain full port bandwidth. Reduce trees that do not share ports are also called "disjoint reduce trees".
[0022] In disclosed embodiments, each network element includes multiple computation modules for performing data reduction operations in hardware. In some embodiments, each port that receives reduced data has a corresponding computation module. The computation modules and ports can be interconnected using configurable forwarding circuits in a variety of topologies. This allows flexible use of computation modules in separate reduction trees without sharing port bandwidth.
[0023] Consider a network element, which includes multiple ports coupled to a network element and / or a network node. The port coupled to the corresponding child network element or network node is called a "child port", and the port coupled to the corresponding parent network element is called a "parent port". The network element also includes multiple computing modules, configurable forwarding circuits, and a central block. The port is configured to be connected to a communication network. The multiple computing modules are configured to jointly perform data reduction operations according to a data reduction protocol. The forwarding circuit is configured to interconnect between the port and the computing module. The central block is configured to receive a request indicating a selected child port, a selected parent port, and a computing module required to perform a data reduction operation on data received via the selected child port to generate reduced data sent to the parent network element via the selected parent port. The central block derives a topology from the request, which is interconnected between the selected child port, the selected parent port, and the computing module so as to perform the requested data reduction operation and forward the reduced data for transmission to the selected parent port, and configure the forwarding circuit to apply the topology.
[0024] In some embodiments, the selected subport is configured to receive a data message including a reduction operation and a corresponding data portion and send the reduction operation to the central block. The central block is configured to set the computation module to apply the reduction operation to the data portion.
[0025] The central block may derive the topology in any suitable manner. For example, the central block derives a topology that interconnects a plurality of computing modules receiving data from subports in a chain configuration or in an aggregate configuration that aggregates two or more chains. In some embodiments, the network element stores a plurality of predefined topologies, such as in a table in a memory. In such embodiments, the central block derives the requested topology by retrieving the requested topology from the table.
[0026] In some embodiments, each of the parent port and child port includes a QP responder and a QP requester that handles reliable transport layer communications of packets related to the data reduction protocol. Handling transport layer communications at the port level (rather than through a central component such as a central block) allows for fast and reliable packet transmission to / from other network components and network nodes at the full port bandwidth.
[0027] In some embodiments, the central block receives a first data reduction request indicating a first subport, a first parent port, and a first computing module required to perform a first data reduction operation on data received via the first subport and sent to the first parent port, and further receives a second data reduction request indicating a second subport, a second parent port, and a second computing module required to perform a second data reduction operation on data received via the second subport and sent to the second parent port. The central block derives a first topology for performing the first data reduction operation from the first request, and derives a second topology for performing the second data reduction operation from the second request. The central block configures the forwarding circuit to apply both the first topology and the second topology to support parallel execution of the first data reduction operation and the second data reduction operation.
[0028] The first topology and the second topology may use disjoint subsets of ports and computing modules. The central block may configure the forwarding circuit to apply the derived first topology and the second topology, thereby performing the corresponding first data reduction operation and the second reduction operation at the full port bandwidth, and may overlap in time.
[0029] In some embodiments, the request indicates that the network element serve as a root network element, and the central block derives from the request a topology of interconnections between selected subports and computing modules to perform data reduction operations to generate aggregate data and route the aggregate data to one or more subports.
[0030] In one embodiment, the request or the separately received request indicates a given parent port and one or more given sub-ports, and the central block is configured to derive from the request a topology interconnecting the given parent port with the one or more given sub-ports, for receiving aggregated data from the corresponding parent network element via the given parent port, and distributing the aggregated data to the corresponding network element or network node via the given sub-port.
[0031] In one embodiment, the forwarding circuit includes an upstream forwarding circuit and a downstream forwarding circuit. In this embodiment, the central block applies the upstream topology to the upstream forwarding circuit in parallel to apply the data reduction operation, and applies the downstream topology to the downstream forwarding circuit to distribute the aggregated data generated by the root network element to one or more network nodes.
[0032] In the disclosed technology, a network element supports flexible interconnection between ports and computing modules without unnecessarily using computing modules that are only used to pass data, thereby avoiding bandwidth sharing. Ports that receive data for reduction have local computing modules that can be interconnected, for example, in a serial chain with an appropriate length or in an aggregate configuration that aggregates multiple chains. This flexibility in connecting computing modules via forwarding circuits allows for efficient utilization of limited resources when performing different data reduction operations at different times and / or performing multiple data reduction operations in parallel without sharing port bandwidth.
[0033] System Description
[0034] Figure 1 is a block diagram schematically illustrating a computing system 20 supporting flexible in-network computing according to embodiments described herein.
[0035] For example, computing system 20 may be used in various applications, such as high performance computing (HPC) clusters, data center applications, and artificial intelligence (AI).
[0036] In computing system 20, multiple end nodes 28 communicate with each other through a communication network 32. "End nodes" 28 are also referred to herein as "network nodes." Communication network 32 may include a network using, for example, Infiniband. TM The end node 28 may be any suitable type of communication network operating with any suitable protocol of a network or Ethernet. The end node 28 is coupled to the communication network using a network interface controller (NIC) 36. In Infiniband terminology, the network interface is called a host channel adapter (HCA). The end node 28 may include any suitable processing module, such as a server or a multi-core processing module including, for example, one or more graphics processing units (GPUs) or other types of accelerators. The end node 28 typically includes (not shown) multiple processing units, such as a central processing unit (CPU) and a graphics processing unit (GPU), which are coupled to memory and peripherals (e.g., NIC 36) via a suitable link (e.g., PCIe).
[0037] The communication network 32 includes a plurality of network elements 24 interconnected in a multi-level configuration, which enables the use of data reduction techniques to perform complex in-network calculations. In this example, the network elements 24 are arranged in a tree configuration with a lower layer, a middle layer, and a top layer, including network elements 24A, 24B, and 24C, respectively. Typically, the network element 24A is connected to a plurality of end nodes 28 using a NIC 36.
[0038] A practical computing system 20 may include thousands or even tens of thousands of end nodes 28 interconnected using hundreds or thousands of network elements 24. For example, the communication network 32 of the computing system 20 may be configured in a four-level fat-tree topology including approximately 3,500 switches.
[0039] In a multi-level tree structure, a network element can be connected to lower-level child network elements or network nodes, and to a higher-level parent network element. The top-level network element is also called the root network element. A subset (or all) of the network elements of the physical tree structure can form a data reduction tree, which is a logical structure commonly used to model computations in a network, as described below.
[0040] In some embodiments, multiple network elements 24 perform computations for some or all of the network nodes 28. The network elements collectively perform computations as modeled using a suitable data reduction tree. In hierarchical computations, lower level network elements produce partial results that are aggregated by higher level network elements of the data reduction tree. The network element serving as the root of the data reduction tree produces the final computation results (aggregate data), which are typically distributed to one or more network nodes 28. Computations performed by network elements 24 to produce partial results are also referred to as "data reduction operations."
[0041] The data flow from the network node to the root is also referred to as "upstream", and the data reduction tree used in the upstream direction is also referred to as the "upstream data reduction tree". The data flow from the root to the network node is also referred to as "downstream", and the data reduction tree used in the downstream direction is also referred to as the "downstream data reduction tree".
[0042] Typically, breaking down computations on the data stream into hierarchical in-network computations by network element 24 is performed using an appropriate data reduction protocol. An example data reduction protocol is SHArP, described in the above-referenced US Patent 10,284,383.
[0043] As described below, network element 24 supports flexible use of ports and computing resources to perform multiple data reduction operations in parallel. This enables flexible and efficient in-network computing in computing system 20.
[0044] Network elements supporting flexible data reduction operations
[0045] Figure 2 is a schematic diagram showing an embodiment according to the present invention. Figure 1 2 is a block diagram of a network element 24 in a computing system 20 that supports flexible data reduction operations.
[0046] Network element 24 may be used to implement network elements 24A, 24B, and 24C in communication network 32, for example.
[0047] The network element 24 comprises a central block 40 which manages the operation of the network element according to an underlying data reduction protocol (eg, SHArP described above).The functionality of the central block 40 will be described in more detail below.
[0048] The network element 24 also includes configurable forwarding circuitry 42 that is connected to various elements 24 within the network element using fixed connections 44. The forwarding circuitry 42 is flexibly configurable to interconnect between the respective elements to which it is connected. This allows for the creation of various topologies of ports and computing resources for performing data reduction operations. In an embodiment, the forwarding circuitry 42 includes a configurable crossbar switch. The flexibility of the interconnection helps support the ability to support the entire port bandwidth.
[0049] The network element 24 includes a plurality of ports 46 for connecting the network element to the communication network 32. Each of the ports 46 serves as both an input port for receiving packets from the communication network and an output port for sending packets to the communication network. The actual network element 24 may include, for example, 64 to 128 ports 46. Alternatively, a network element having any other suitable number of ports may also be used.
[0050] In some embodiments, each port 46 is coupled to a transport layer receiving module 48, denoted as "TRM-RX", and a transport layer transmitting module 52, denoted as "TRM-TX", respectively. The input portion of the port 46 is coupled to the TRM-RX 48 via a parser 56. The TRM-RX 48 includes a QP responder 60 and a calculation module 64, which is also referred to herein as an arithmetic logic unit (ALU). The TRM-TX includes a QP requester 68. The TRM-RX 48 also includes a receive buffer 70, called RX-BUFFER, for storing input packets. The TRM-TX 52 also includes a transmit buffer 71, called TX-BUFFER, for storing output packets.
[0051] In some embodiments, central block 40 controls the internal connections of forwarding circuits 42 and the configuration of ALUs 64 so that the ports and ALUs are interconnected in a topology suitable for performing the requested data reduction operation.
[0052] The parser 56 is configured to parse the incoming packets and identify relevant packets and send them to the TRM-RX 48 .
[0053] In some embodiments, the parser 56 recognizes that a request to apply a data reduction operation has been received and notifies the central block 40 of the request. The request may indicate a desired topology in the upstream direction, a desired topology in the downstream direction, or both. The same or different ports may be used in the upstream and downstream topologies, respectively. The data reduction operation itself (e.g., indicating that the function of the ALU 64 should be configured) may be specified in the request, which indicates the topology (or multiple topologies), or alternatively, carried in the header of the data message.
[0054] The upstream topology supports data reduction operations on data received from certain child network elements via multiple child ports to generate reduced data sent to a given parent network element via a parent port. The downstream topology specifies a parent port for receiving aggregate data via a given parent port and distributing the aggregate data to certain child ports.
[0055] In the upstream direction, the request indicates the selected subport, the selected parent port, and the computational modules required to perform the data reduction operation. The central block derives the topology from the request, which interconnects the selected subport, the selected parent port, and the ALU to perform the data reduction operation and forward the resulting reduced data to the selected parent port. As mentioned above, the actual ALU function can be specified in the request or in a separate data message.
[0056] In some implementations, the selected subport receives a data message including a reduce operation and a corresponding data portion and sends the reduce operation to a central block, which sets up a computation module to apply the reduce operation to the data portion.
[0057] In the downstream direction, the request indicates a given parent port and one or more given child ports, and the central block derives a topology from the request, which interconnects the given parent port with the one or more given child ports to receive aggregate data from the corresponding parent network element via the given parent port and distribute the aggregate data to the corresponding network elements or network nodes via the given child ports.
[0058] Transport layer modules TRM-RX 48 and TRM-TX 52 handle reliable connections to other entities, such as a port of another network element or a port of a NIC of some network node 28, via port 46. QP responder 60 in TRM-RX 48 handles reliable data reception via port 46. QP requester 68 in TRM-TX handles reliable data transmission via port 46.
[0059] In some implementations, QP responder 60 receives packets sent by the corresponding QP requester and sends back ACK / NACK notifications. QP requester 68 sends packets to the corresponding QP responder on the other side of the link and handles retransmissions as needed.
[0060] Note that communication between network elements (and network nodes) can be performed at line speed and with minimal latency since each port 46 has a local QP responder 60 and a local QP requester 68. This (along with the flexible connectivity via forwarding circuits) allows multiple data reduction operations to be performed in parallel at full port bandwidth using corresponding disjoint data reduction trees.
[0061] The network element 24 includes one or more aggregators 72, each of which includes an ALU 74 that is the same as or similar to the ALU 64 of the TRM-RX module 48. The aggregators 72 do not receive data directly from any of the ports 46. Instead, the aggregators 72 aggregate data output by the ALU 64 of the TRM-RX 48. In an embodiment, the aggregators 72 may also aggregate data output by the ALU 74 of another aggregator to create a hierarchical computing topology.
[0062] As described below, the functionality of ALU 64 is also similarly applicable to ALU 74. In this example, ALU 64 (and ALU 74) includes two inputs and one output. Let A1 and A2 represent input arguments, and let A3 represent the result of the ALU calculation. ALUs typically support multiple predefined functions, and the central module can configure these predefined functions to the ALU. When configured as a given function "F()", the ALU calculates A3 as A3=F(A1, A2). ALU 64 and 74 support any suitable operation, such as mathematical functions, such as integer and floating point addition, multiplication and division, and logical functions, such as logical AND, OR and XOR, bitwise AND, OR and XOR. Other operations supported by ALU 64 and 74 include, for example, min, max, min loc and man loc. In some embodiments, ALU 64 and 74 support configurable operators.
[0063] In some embodiments, data received via port 46 (from a sub-network element or from a network node) is provided to one input of ALU 64. ALU 64 can be configured as a Null function, in which case the other input of the ALU is ignored and the data received from the port is output by ALU 64 without any modification. Alternatively, ALU 64 receives data calculated by another ALU 64 on its other input (via a forwarding circuit) and applies function F() to the data received on both inputs. ALU 74 typically receives data output by two ALUs 64 via a forwarding circuit. When performing a data reduction operation, the participating ALUs 64 and ALU 74 are configured by a central block as a common function F(). Alternatively, at least some of the ALUs (64, 74, or both) distributed to a given data reduction operation can be configured to apply different functions.
[0064] As described above, the output of an ALU 64 may be routed as an input to another ALU 64 (or ALU 74) via forwarding circuitry. Alternatively, the output of an ALU 64 may be routed to a QP requester of a parent port via forwarding circuitry for transmission to a parent network element. In a root network element, the output of the last ALU 64 that derived the computation specified by the base reduction tree may be routed to a QP requester of a child port participating in a downstream tree.
[0065] As an example given Figure 1 and Figure 2 The configuration of the computing system 20 and the network element 24 in the following Figure 5 and Figure 6 The network element 24 in FIG. 1 , and other suitable computing systems and network element configurations may also be used.
[0066] Certain elements of network element 24, such as central block 40, forwarding circuit 42 (possibly in the following Figure 5 and Figure 6 82 and downstream crossbar 84), ALU 64, ALU 74, parser 56, QP responder 60, QP requester 68, receive buffer 70, and transmit buffer 71 may be implemented in hardware, for example, in one or more application specific integrated circuits (ASICs) or field programmable gate arrays (FPGAs). Additionally or alternatively, some elements of the network element may be implemented using software or using a combination of hardware and software elements.
[0067] For clarity, Figure 1 , Figure 2 , Figure 5 and Figure 6Elements that are not necessary for understanding the principles of the present application, such as various interfaces, addressing circuits, timing and sequencing circuits, and debugging circuits, are omitted.
[0068] In some embodiments, some functions of the central block 40 may be performed by a general purpose processor that is programmed in software to perform the functions described herein. The software may be downloaded to the processor in electronic form, such as over a network, or the software may alternatively or additionally be provided and / or stored on a non-transitory tangible medium, such as a magnetic, optical or electronic memory.
[0069] Example compute configuration within a network element
[0070] Figure 3A and Figure 3B is a diagram schematically illustrating an example data reduction scheme within network element 24 according to embodiments described herein.
[0071] exist Figure 3A . . ALU4 are connected in series in a daisy chain topology. The connections (shown by dashed lines) between successive ALUs 64 in the chain are implemented within forwarding circuits 42 under the control of central block 40.
[0072] ALU1 ... ALU4 receives data represented as D1 ... D4 from a child network element (or from a network node 28) via corresponding ports represented as PORT1 ... PORT4, and is configured together to perform a data reduction operation. In this example, the data reduction operation calculates the sum (D1 + D2 + D3 + D4). To this end, ALU1 is configured to transmit D1 to the output of ALU1, and each of ALU2 ... ALU4 calculates a summation function between its inputs. The calculation is performed cumulatively as follows: ALU2 outputs the sum (D1 + D2), ALU3 outputs the sum [(D1 + D2) + D3], and ALU4 outputs the final sum {[(D1 + D2) + D3] + D4}. The data reduction result (D1 + D2 + D3 + D4) output by ALU4 is routed to the parent network element via forwarding circuit 42 via PORT5.
[0073] exist Figure 3B , ALU 64, denoted ALU1 ... ALU4, and ALU 74, denoted ALU5, are connected in a clustered topology. Under the control of central block 40, connections from the output of each ALU to the input of the next ALU are made in forwarding circuits 42 (dashed lines).
[0074] ALU1 ... ALU4 receive data denoted D1 ... D4 from the sub-network elements via respective ports denoted PORT1 ... PORT4 and are configured together with ALU5 to perform a data reduction operation, in this example, calculating the sum (D1 + D2 + D3 + D4). Figure 3B The topology in includes a first chain including ALU1 and ALU2 and a second chain including ALU3 and ALU4. A forwarding circuit connects the outputs of ALU2 and ALU4 to the input of ALU5. ALU1 and ALU3 are configured to transfer their input data (D1 and D3) to their respective outputs, and each of ALU2, ALU4, and ALU5 calculates the sum of its inputs.
[0075] The chain containing ALU1 and ALU2 calculates the partial sum (D1+D2), and the chain containing ALU3 and ALU4 calculates the partial sum (D3+D4). ALU 5 calculates the aggregate result [(D1+D2)+(D3+D4)], and the forwarding circuit routes it to port 5 for transmission to the parent network element.
[0076] exist Figure 3A and Figure 3B In the example of , two different topologies of port and ALU interconnects are used to compute the same sum (D1+D2+D3+D4). Figure 3A In , the computations are accumulated over a chain of four ALUs. Figure 3B In , the calculation aggregates two short chains, so, Figure 3B The calculation waiting time ratio in Figure 3A The calculation waiting time is short.
[0077] As an example given Figure 3A and Figure 3B The data reduction topology in the network may be used, and other suitable topologies may also be used. For example, because the forwarding circuit 42 is flexibly configurable, a complex topology with multiple aggregation levels using multiple aggregators 72 may be used. Moreover, the central block 40 may distribute different groups of ports and ALUs to perform multiple corresponding data reduction operations in parallel. This allows the computing system 20 to perform multiple high-bandwidth in-network computations in parallel using disjoint data reduction trees having separate corresponding groups of ports and ALUs within each network element.
[0078] Data reduction methods
[0079] Figure 4 is a flow chart schematically illustrating a method for performing data reduction operations in a network element 24 according to embodiments described herein.
[0080] The method will be described for the upstream and downstream directions.
[0081] Figure 4 The method begins with the central block 40 receiving a data reduction request according to a data reduction protocol at a request receiving step 100. The central block may receive the data reduction request from one or more sub-network elements or using some out-of-band link. The data reduction request includes information about a data reduction tree to be implemented by the network element, typically as part of a calculation performed by the computing system 20 using an appropriate data reduction tree.
[0082] The request indicates the selected subport, the selected parent port, and the computational modules required to apply the data reduction operation. The same data reduction request supports performing a variety of different reduction operations on data to be received from certain child network elements via the selected subport to produce reduced data to be sent to the parent network element via the selected parent port. Performing the data reduction operation typically requires using the ALU 64 to perform data operations, possibly using one or more ALUs 74 of the aggregator 72. In this example, the same selected subport and selected parent port are used in both the upstream and downstream directions.
[0083] At the topology derivation step 104, the central block 40 derives the topology of interconnections between the selected subport, the selected parent port, and the computing module (ALU 64, 74, or both) from the data reduction request to perform the data reduction operation and forward the reduced data for transmission to the selected parent port. Further at step 104, the central block configures the forwarding circuit 42 to apply the derived topology.
[0084] When the network element includes a root network element, the topology routes the aggregate data calculated by the last ALU to the QP requesters of the relevant subports, which distribute the aggregate data according to the corresponding downstream trees.
[0085] At the data message receiving step 106, the central block receives the header portion of the data message received from the sub-network element or network node via the selected sub-port. Each data message includes a plurality of packets. The data message specifies, for example, in the header portion (e.g., in the first packet) the data reduction operation to be performed using the configured topology. In some embodiments, the parser 56 sends the header portion of the data message to the control block and forwards the payload data of the data message to the relevant computing module.
[0086] At a calculation module configuration step 108, the central block 40 configures the calculation modules participating in the data reduction operation to the functionality specified in the header of the data message. Step 108 is related to the upstream direction and can be skipped in the downstream direction.
[0087] At upstream data flow step 116, the data message distribution based computation module applies the specified data reduction operation to the data payload received in the data message, and the resulting reduced data is sent to the parent network element via the selected parent port.
[0088] When the network element comprises a root network element, the resulting reduced packet comprises aggregate data, which is sent to all selected subports via the forwarding circuit. At downstream data flow step 120, the network element receives the aggregate data from the selected parent port and distributes the aggregate data to the selected subports via the forwarding circuit. After step 120, the method terminates.
[0089] Steps 116 and 120 above each QP requester at the parent and child ports are responsible for sending the message over a reliable connection or at the transport layer.
[0090] In some embodiments, it may be assumed that different upstream and downstream data reduction trees perform similarly. Figure 4 In these embodiments, different sets of selected child ports and parent ports may be used for the respective upstream and downstream directions.
[0091] Upstream and Downstream Example Flow
[0092] Figure 5 and Figure 6 is a diagram schematically illustrating upstream and downstream data reduction flows within a network element 24 according to embodiments described herein.
[0093] exist Figure 5 and Figure 6 , forwarding circuit 42 includes upstream forwarding circuit 82 and downstream forwarding circuit 84, which may be implemented as separate crossbar switch elements.
[0094] In the description Figure 5 and Figure 6 It is assumed that the network elements are located at a level lower than the root level. It is further assumed that the forwarding circuit 42 includes separate upstream crossbar switches 82 and downstream crossbar switches 84, and that the same data reduction tree is used for both upstream and downstream directions.
[0095] Figure 5 and Figure 6 The process steps in are numbered in the figure and are described below.
[0096] In the upstream direction, Figure 5As shown, at step (1), the central block 40 configures the upstream crossbar 82 to connect between the port 46 and the computation module (ALU 64 and ALU 74 of the aggregator 72) according to the upstream data reduction tree. In this example, the central block configures ports 46A and 46B for receiving data for reduction from the child network element, and configures port 46C for sending the calculated reduced data to the parent network element. The central block 40 further configures the upstream crossbar to serially connect ALU 64A and 64B in a chain configuration, whose outputs are connected to the input of ALU 74. Another input of ALU 74 is connected to another chain of ALU 64 (not shown) via the upstream crossbar.
[0097] At step (2), QP responders 60A and 60B of respective ports 46A and 46B receive packets of data messages from the sub-network element. In the data message, each packet includes a transport layer header and a payload, wherein the first packet of the data message additionally includes a SHArP header. The QP responder of each port processes the transport layer and, after sending the SHArP header to the central block, forwards the payload of the packet to the ALU 64 of the port. At step (3), the TRM-RX module 48 of the sub-port forwards the SHArP header of the first packet to the central block, which prepares the SHArP header for sending the reduced data at step (4). Further at step (4), the central block sets the ALUs 64 and 74 to apply the function specified in the first packet.
[0098] At steps (5) and (6), ALUs 64A and 64B perform data reduction on the payload received in each data message via subports 46A and 46B. At steps (7) and (8), ALU 74 of aggregator 72 receives the partially reduced data from ALU 64B and another chain, and at step (9), ALU 74 calculates the overall reduced data. At step (10), the reduced data is forwarded to port 46C for transmission to the parent network element.
[0099] At step (11), the QP requester 68C packages the reduced data message containing the reduced data and the SHArP header of step (4), and reconstructs the transport layer by appending the transport layer header to each packet of the reduced data message. The QP requester 68C handles reliable transport layer packet transmission, including retransmissions. In some embodiments, the QP requester uses some storage space of the port's local buffer (e.g., transmit buffer 71) as a retry buffer for retransmissions. In some embodiments, at step (12), the network element applies an appropriate scheduling scheme (not shown) to packet transmission via port 46C, including, for example, bandwidth distribution and prioritization using virtual channel (VL) management.
[0100] In the downstream direction, Figure 6 As shown, at step (1), the central block 40 configures the downstream crossbar switch 84 to connect between the ports 46 to distribute the aggregated data received from the parent network element to multiple child network elements according to the downstream data reduction tree. In this example, the central block configures the parent port 46C to receive the aggregated data from the parent network element, and configures the child ports 46A and 46B to send the aggregated data to the corresponding child network elements or end nodes. The central block 40 further configures the downstream crossbar switch to forward the aggregated data to the two child ports 46A and 46B in parallel.
[0101] At step (2), QP responder 60C of port 46C receives packets carrying aggregate data in an aggregate data message from a parent network element. In the aggregated data message, each packet includes a transport layer header and a payload, and the first packet additionally includes a SHArP header. QP responder 60C processes the transport layer and, after sending the SHArP header to the central block, forwards the payload of the packet to the downstream crossbar switch. In some embodiments, the payload of the packet is forwarded to a Null function via an ALU 64C configured by the central block, so that the packet payload is transmitted without modification by the ALU. In an alternative embodiment, ALU 64C is bypassed and the packet payload is forwarded directly to the downstream crossbar switch, as will be described below at step (5).
[0102] At step (3), TRM-RX 48C of port 46C forwards the SHArP header of the received packet to central block 40, and at step (4), the central block prepares the SHArP header to be sent with the aggregated data to the sub-network element.
[0103] At steps (5) and (6), the downstream crossbar switch receives the payload of the aggregate data message and forwards the payload in parallel to the two subports 46A and 46B.
[0104] At step (7), each of QP requesters 68A and 68B packages the aggregate data message containing the aggregate data and the SHArP header of step (4), and reconstructs the transport layer by appending the transport layer header to each packet of the aggregate message. QP requesters 68A and 68B handle transport layer packet transmission, including retransmissions. As described above, in some embodiments, the QP requester may use storage space of a port's local buffer (e.g., transmit buffer 71) as a retry buffer for retransmissions. In some embodiments, at step (8), the network element applies an appropriate scheduling scheme (not shown) for packet transmission to ports 46A and 46B, including, for example, bandwidth distribution and prioritization using virtual channel (VL) management.
[0105] The above embodiments are given as examples, and other suitable embodiments may also be used. Figure 5 and Figure 6 In some embodiments, the upstream and downstream directions are described separately. In some embodiments, dedicated crossbar switches for each direction can be used to apply the same or different corresponding topologies for the upstream and downstream directions in parallel, for example, for computing reduced data and distributing the resulting aggregated data.
[0106] Although the embodiments described herein primarily address data reduction operations such as "reduce all" and "reduce" operations, the methods and systems described herein may also be used in other applications, such as for performing "reliable multicast", "reliable broadcast", "collect all", and "collect" operations.
[0107] It will be understood that the above embodiments are cited as examples, and the appended claims are not limited to the claims that have been specifically shown and described above. On the contrary, the scope includes combinations and sub-combinations of the various features described above, as well as variations and modifications thereof that would occur to a person skilled in the art after reading the foregoing description and which are not disclosed in the prior art. Documents incorporated by reference into this patent application should be considered an integral part of this application, except that any term is defined in these incorporated documents in a manner that conflicts with an explicit or implicit definition in this specification, only the definitions in this specification should be considered.
Claims
1. A network element for supporting data reduction operations, include: a plurality of ports, the plurality of ports comprising a plurality of child ports coupled to respective child network elements or network nodes and one or more parent ports coupled to respective parent network elements, the plurality of ports being configured to connect to a communication network; a plurality of computation modules configured to collectively perform a data reduction operation, wherein the data reduction operation performs computations based on data according to a data reduction protocol, wherein the data reduction operation performs computations based on data received through a plurality of child ports, and partial results are sent through a parent port to be aggregated with other partial results generated through one or more other network elements; configurable forwarding circuitry configured to interconnect within the network element between the plurality of child ports, the plurality of parent ports, and the plurality of computing modules; as well as A central block, the central block is configured as: receiving a request indicating a selected subport, a selected parent port, and a computing module required to perform a data reduction operation on data received from the sub-network element or network node via the selected subport to generate reduced data to be sent to the parent network element via the selected parent port; deriving a topology from the request, the topology interconnected within the network element between the selected child port, the selected parent port, and the computation module to perform the data reduction operation and forward the corresponding reduced data for transmission to the selected parent port; and The forwarding circuit is configured to apply the topology.
2. The network element of claim 1 , wherein the selected subport is configured to receive a data message comprising a reduction operation and a corresponding data portion and to send the reduction operation to the central block, and wherein the central block is configured to set the computation module to apply the reduction operation to the data portion.
3. The network element of claim 1, wherein the central block is configured to derive the topology in a chain-like configuration to interconnect computing modules that receive data for reduction via the selected subports.
4. The network element of claim 1, wherein the central block is configured to derive the topology to interconnect outputs of two computation modules that receive data for reduction as input of an aggregator computation module via the selected subports.
5. The network element of claim 1, wherein the selected parent port and each selected child port include a queue pair responder and a queue pair requester configured to handle reliable transport layer reception and packet transmission, respectively.
6. The network element of claim 1 , wherein the central block is configured to: receiving a first request indicating a first subport, a first parent port, and a first computing module required to perform a first data reduction operation on data received via the first subport and sent to the first parent port, and further receiving a second request indicating a second subport, a second parent port, and a second computing module required to perform a second data reduction operation on data received via the second subport and sent to the second parent port; deriving a first topology for performing the first data reduction operation from the first request, and deriving a second topology for performing the second data reduction operation from the second request; as well as The forwarding circuit is configured to apply the first topology and the second topology to support parallel execution of the first data reduction operation and the second data reduction operation.
7. The network element of claim 1 , wherein the request indicates that the network element function as a root network element, and wherein the central block is configured to derive a topology of interconnections between the selected subports and the computing modules from the request in order to perform a data reduction operation for generating aggregate data and routing the aggregate data to one or more subports.
8. The network element of claim 1 , wherein the request or the separately received request indicates a given parent port and one or more given sub-ports, and wherein the central block is configured to derive from the request a topology interconnecting the given parent port to the one or more given sub-ports, to receive aggregate data from the corresponding parent network element via the given parent port, and to distribute the aggregate data to the corresponding network element or network node via the given sub-ports.
9. The network element of claim 1 , wherein the forwarding circuit comprises an upstream forwarding circuit and a downstream forwarding circuit, wherein the central block is configured to apply an upstream topology to the upstream forwarding circuit in parallel to apply the data reduction operation, and to apply a downstream topology to the downstream forwarding circuit to distribute aggregated data generated by a root network element to one or more network nodes.
10. A method for supporting a data reduction operation, include: In a network element: the network element comprises (i) a plurality of ports connected to a communication network, the plurality of ports comprising a plurality of sub-ports coupled to respective sub-network elements or network nodes and one or more parent ports coupled to respective parent network elements, (ii) a plurality of computation modules that collectively perform data reduction operations according to a data reduction protocol, wherein the data reduction operations are computed based on data received through the plurality of sub-ports, partial results are sent through the parent port to be aggregated with other partial results generated through one or more other network elements, and (iii) configurable forwarding circuits interconnected within the network element between the plurality of sub-ports, the parent ports and the plurality of computation modules, receiving, by a central block of the network element, a request indicating a selected subport, a selected parent port, and a computational module required to perform a data reduction operation on data received via the selected subport to generate reduced data to be sent to a parent network element via the selected parent port; deriving a topology from the request, the topology interconnecting within a network element between the selected child port, the selected parent port, and the computation module to perform the data reduction operation, and forwarding the reduced data for transmission to the selected parent port; and The forwarding circuit is configured to apply the topology.
11. The method according to claim 10, include: A data message including a reduction operation and a corresponding data portion is received through the selected subport, and the reduction operation is sent to the central block, and the computation module is set by the central block to apply the reduction operation to the data portion.
12. The method of claim 10, wherein the topology is derived include: The topology is derived in a chain configuration to interconnect computing modules that receive data for reduction via selected subports.
13. The method of claim 10, wherein the topology is derived include: The topology is derived to interconnect outputs of two computation modules that receive data for reduction via selected subports as inputs of an aggregator computation module.
14. The method of claim 10, wherein the selected parent port and each selected child port include a queue pair responder and a queue pair requester, and comprising processing reliable transport layer reception and transmission of packets using the queue pair requester and the queue pair responder, respectively.
15. The method according to claim 10, and include: receiving a first request indicating a first subport, a first parent port, and a first computing module required to perform a first data reduction operation on data received via the first subport and sent to the first parent port, and further receiving a second request indicating a second subport, a second parent port, and a second computing module required to perform a second data reduction operation on data received via the second subport and sent to the second parent port; deriving a first topology for performing the first data reduction operation from the first request, and deriving a second topology for performing the second data reduction operation from the second request; as well as The forwarding circuit is configured to apply the first topology and the second topology to support parallel execution of the first data reduction operation and the second data reduction operation.
16. The method of claim 10, wherein the request indicates that the network element function as a root network element, and comprises deriving from the request a topology of interconnections between the selected subports and the computing modules in order to perform a data reduction operation for generating aggregate data and routing the aggregate data to one or more subports.
17. A method according to claim 10, wherein the request or the separately received request indicates a given parent port and one or more given sub-ports, and includes deriving from the request a topology that interconnects the given parent port to the one or more given sub-ports, so as to receive aggregate data from the corresponding parent network element via the given parent port, and distribute the aggregate data to the corresponding network element or network node via the given sub-port.
18. The method of claim 10, wherein the forwarding circuit comprises an upstream forwarding circuit and a downstream forwarding circuit, and comprises applying an upstream topology to the upstream forwarding circuit in parallel to apply the data reduction operation, and applying a downstream topology to the downstream forwarding circuit to distribute aggregated data generated by a root network element to one or more network nodes.
