Reliable streaming in-network aggregation

The LAT architecture with sliding windows and packet trimming addresses inefficiencies in in-network aggregation by reducing latency and bandwidth consumption through precise loss detection and targeted NACKs, enhancing data aggregation reliability.

WO2026246928A2PCT designated stage Publication Date: 2026-11-26FUTUREWEI TECHNOLOGIES INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/US2026/031715
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2026-06-08
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Existing solutions for in-network aggregation in distributed computing systems face challenges such as packet loss detection inefficiencies, unnecessary retransmissions, and buffer overflow due to limited switch memory, leading to increased network bandwidth consumption and latency.

Method used

A logical aggregation tree (LAT) architecture with sliding transmission windows and packet trimming mechanisms is employed, where aggregation switches incrementally combine packets and use trimmed packets to identify missing data, enabling targeted NACKs and reducing redundant retransmissions, while maintaining efficient flow control and delivery of final results.

Benefits of technology

This approach reduces bandwidth consumption, lowers latency, and minimizes retransmission overhead by precisely identifying packet losses and optimizing buffer usage, ensuring reliable and efficient data aggregation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US2026031715_26112026_PF_FP_ABST
    Figure US2026031715_26112026_PF_FP_ABST
Patent Text Reader

Abstract

A method performed by a network node in a distributed computing system implementing a logical aggregation tree (LAT), the method including receiving, from an aggregation switch in the LAT, a trimmed packet including a header and no payload, the header identifying a child node of the aggregation switch that contributed data for a sequence number i; maintaining, for each sequence number, a record of workers that have contributed data based on trimmed packets received from aggregation switches in the LAT; upon receiving a complete aggregation result associated with all workers expected to contribute for the sequence number i, transmitting an acknowledgment (ACK) for the sequence number i along the LAT toward the workers; and upon detecting a failure to receive a complete aggregation result for a sequence number k, transmitting a negative acknowledgment (NACK) to each worker expected to contribute for sequence number k but not indicated in the record.
Need to check novelty before this filing date? Find Prior Art

Description

Atty. Docket No. 4502-91200 (6000819PCT01)Reliable Streaming In-Network AggregationTECHNICAL FIELD

[0001] The present disclosure is generally related to computer network and distributed computing and, in particular embodiments, to streaming in-network aggregation.BACKGROUND

[0002] Distributed computing systems increasingly rely on collective communication operations to coordinate processing across multiple computing devices. One such operation, commonly referred to as an all-reduce operation, involves combining data elements from multiple participating computing devices and distributing a resulting aggregated value to each of the participating computing devices. All-reduce operations are widely used in applications such as distributed machine learning, data analytics, and high-performance computing.SUMMARY

[0003] This disclosure is related to reliable streaming in-network aggregation for supporting all-reduce operations. More specifically, in a reliable streaming in-network aggregation architecture, worker nodes and aggregation switches form a logical aggregation tree (LAT). In the LAT, the worker nodes are leaf nodes, and the aggregation switches are intermediate nodes. Aggregation is performed hierarchically from the leaf nodes toward a root parameter server, reducing bandwidth consumption at each level of the tree. The worker nodes and the intermediate nodes use a sliding transmission window sized according to aggregation switch buffer capacity to prevent buffer overflow at the aggregation switches. The aggregation switches use a packet trimming mechanism to enable the parameter server to identify which worker nodes have not contributed data for a given sequence number and issue targeted negative acknowledgements (NACKs) to those worker nodes, enabling fast loss detection without waiting for a timeout. Additionally, because worker node data traverses aggregation switches in the LAT, those aggregation switches can intercept NACKs and suppress redundant retransmissions based on local buffer states, minimizing retransmission overhead.

[0004] A first aspect of the embodiments of the present disclosure relates to a method performed by a network node in a distributed computing system implementing a logical aggregation tree (LAT). The method includes receiving, from an aggregation switch in the LAT, a trimmed packetAtty. Docket No. 4502-91200 (6000819PCT01)comprising a header and no payload, the header identifying a sequence number i and a child node of the aggregation switch that contributed data for the sequence number i, and the trimmed packet indicating that the aggregation switch has aggregated data from fewer than all child nodes of the aggregation switch for the sequence number i; maintaining, for each sequence number, a record of worker nodes that have contributed data for aggregation based on trimmed packets received from one or more aggregation switches in the LAT; upon receiving a complete aggregation result based on data contributed from all worker nodes expected to contribute for the sequence number i, transmitting an acknowledgment (ACK) for the sequence number i along the LAT toward the worker nodes; and upon detecting a failure to receive a complete aggregation result for a sequence number k, transmitting a negative acknowledgment (NACK) to each worker node expected to contribute for the sequence number k but not indicated in the record maintained for the sequence number k.

[0005] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the detecting the failure is based on expiration of a timeout period for the sequence number k without receiving a complete aggregation result for the sequence number k.

[0006] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the detecting the failure is based on a receipt of a complete aggregation result for a sequence number greater than k.

[0007] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the transmitting the ACK for the sequence number i comprises transmitting the ACK for the sequence number i as a multicast along a path in the LAT in a direction reverse to an aggregation direction.

[0008] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the transmitting the ACK for the sequence number i comprises transmitting the ACK comprising the complete aggregation result for the sequence number i.

[0009] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the complete aggregation result for the sequence number i in the ACK is associated with an all-reduce operation.

[0010] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the network node is a root node of the LAT such that all aggregated data traverses the LAT toward the network node.Atty. Docket No. 4502-91200 (6000819PCT01)

[0011] A second aspect of the embodiments of the present disclosure relates to a method performed by an aggregation switch in a distributed computing system implementing a logical aggregation tree (LAT). The method includes receiving, from one or more child nodes of the aggregation switch in the LAT, a plurality of data packets, each of the data packets comprising a payload and being associated with a corresponding sequence number; aggregating, for each sequence number, payload data from respective ones of the received plurality of data packets for the sequence number; and upon determining that fewer than all child nodes expected to contribute for a sequence number i have contributed, transmitting a trimmed packet to a root node in the LAT, the trimmed packet comprising a header and no payload, the header identifying the sequence number i and a first child node of the one or more child nodes that contributed a first data packet of the plurality of data packets, the first data packet being associated with the sequence number i.

[0012] Optionally, in any of the preceding aspects, another implementation of the aspect provides that generating the trimmed packet by removing the payload from the first data packet such that the trimmed packet retains the header of the first data packet and excludes the payload.

[0013] Optionally, in any of the preceding aspects, another implementation of the aspect provides that upon determining that all child nodes expected to contribute for the sequence number i has contributed, transmitting an aggregation result packet comprising an aggregation result for the sequence number i to an immediate parent node of the aggregation switch in the LAT.

[0014] Optionally. in any of the preceding aspects, another implementation of the aspect provides that replacing a payload of a second data packet of the received plurality of data packets with the aggregation result for the sequence number i to provide the aggregation result packet, wherein the second data packet corresponds to a last received data packet for the sequence number i.

[0015] Optionally, in any of the preceding aspects, another implementation of the aspect provides that maintaining, in a buffer, intermediate aggregation results for a window of M consecutive sequence numbers, M being based on a buffer capacity of the aggregation switch; and advancing the window based on receiving an acknowledgement (ACK) for a lowest unacknowledged sequence number in the window.

[0016] Optionally, in any of the preceding aspects, another implementation of the aspect provides that upon receiving an ACK for the sequence number i from an immediate parent node ofAtty. Docket No. 4502-91200 (6000819PCT01)the aggregation switch in the LAT, multicasting the ACK to the one or more child nodes in the LAT; and releasing the buffer allocated for the sequence number i.

[0017] Optionally, in any of the preceding aspects, another implementation of the aspect provides that upon receiving a negative acknowledgement (NACK) for the sequence number i from an immediate parent node of the aggregation switch in the LAT, determining whether a complete intermediate aggregation result for the sequence number i is in the buffer; and upon determining that the aggregation result is in the buffer, transmitting an aggregation result packet comprising the complete intermediate aggregation result for the sequence number i to the immediate parent node.

[0018] Optionally, in any of the preceding aspects, another implementation of the aspect provides that upon receiving a negative acknowledgement (NACK) for the sequence number i directed toward a child node of the aggregation switch, determining whether a data packet for the sequence number i was received from the child node; and upon determining that the data packet for the sequence number i was received from the child node, discarding the NACK.

[0019] Optionally, in any of the preceding aspects, another implementation of the aspect provides that upon receiving a negative acknowledgement (NACK) for the sequence number i directed toward a child node of the aggregation switch, determining whether a data packet for the sequence number i was received from the child node; and upon determining that the data packet for the sequence number i was not received from the child node, forwarding the NACK toward the child node along the LAT.

[0020] A third aspect of the embodiments of the present disclosure relates to a method performed by a worker node in a distributed computing system implementing a logical aggregation tree (LAT). The method includes transmitting, to a parent aggregation switch in the LAT, a plurality of data packets associated with respective sequence numbers within a transmission window; upon receiving an acknowledgment (ACK) for a lowest unacknowledged sequence number i in the transmission window, advancing the transmission window; transmitting at least one additional data packet for a sequence number corresponding to a next available sequence number within the transmission window after the advancing; and upon detecting a failure to receive an ACK for a sequence number k, retransmitting a data packet for the sequence number k.

[0021] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the detecting the failure is based on expiration of a timeout period for the sequence number k without receiving the ACK.Atty. Docket No. 4502-91200 (6000819PCT01)

[0022] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the detecting the failure is based on a receipt of a negative acknowledgement (NACK) for the sequence number k.

[0023] Optionally, in any of the preceding aspects, another implementation of the aspect provides that upon receiving an ACK for a sequence number other than the lowest unacknowledged sequence number i in the transmission window, recording the ACK without advancing the transmission window.

[0024] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the ACK for the lowest unacknowledged sequence number i in the transmission window comprises a complete aggregation result for the sequence number i.

[0025] Optionally, in any of the preceding aspects, another implementation of the aspect provides that performing an all-reduce operation based on the complete aggregation result in the ACK for the sequence number i.

[0026] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the complete aggregation result corresponds to a reduced combination of data contributed by all worker nodes expected to contribute for the sequence number i.

[0027] Optionally, in any of the preceding aspects, another implementation of the aspect provides that upon failing to receive an ACK after a predetermined number of retransmissions of the data packet for the sequence number k, indicating an error for a task associated with the plurality of data packets.

[0028] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the worker node is a leaf node of the LAT.

[0029] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the distributed computing system is an Ethernet-based data center network and the plurality of data packets are associated with gradient tensors in a distributed artificial intelligence (Al) training operation.

[0030] A fourth aspect of the embodiments of the present disclosure relates to a system comprising a logical aggregation tree (LAT) comprising a plurality of worker nodes, one or more aggregation switches, and a root node. The system comprises an individual aggregation switch of the one or more aggregation switches configured to receive, from one or more child nodes of the individual aggregation switch in the LAT, a plurality of data packets, each of the data packets beingAtty. Docket No. 4502-91200 (6000819PCT01)for a corresponding sequence number; aggregate, for each sequence number, data from respective ones of the received plurality of data packets; and upon determining that fewer than all child nodes expected to contribute for a sequence number have contributed, transmit a trimmed packet toward the root node in the LAT, the trimmed packet comprising a header for the sequence number and no payload; and the root node configured to maintain, for each sequence number, a record of worker nodes that have contributed data for aggregation based on trimmed packets received from the one or more aggregation switches; upon receiving a complete aggregation result for a sequence number, transmit an acknowledgment (ACK) toward the plurality of worker nodes along the LAT; and upon detecting a failure to receive a complete aggregation result for a sequence number, transmit a negative acknowledgment (NACK) to each worker node not indicated in the maintained record.

[0031] Optionally, in any of the preceding aspects, another implementation of the aspect provides that an individual worker node of the plurality of worker nodes is configured to transmit, to a parent aggregation switch in the LAT, a plurality of data packets associated with respective sequence numbers within a transmission window; upon receiving an ACK for a lowest unacknowledged sequence number in the transmission window, advance the transmission window; and transmit at least one additional data packet for a sequence number corresponding to a next available sequence number within the transmission window after the advancing; and upon detecting a failure to receive an ACK for a sequence number k based on expiration of a timeout period for the sequence number k or a receipt of a complete aggregation result for a sequence number greater than the sequence number k, retransmit a data packet for the sequence number k.

[0032] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the individual aggregation switch is further configured to maintain, in a buffer, intermediate aggregation results for a window of M consecutive sequence numbers, wherein M is the same size as the transmission window of the individual worker node; and upon receiving an ACK for a lowest unacknowledged sequence number in the window, advance the window and release the buffer allocated for the sequence number.

[0033] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the individual aggregation switch is further configured to upon receiving the ACK from an immediate parent node of the individual aggregation switch in the LAT, multicast the ACK to the one or more child nodes in the LAT.Atty. Docket No. 4502-91200 (6000819PCT01)

[0034] A fifth aspect of the embodiments of the present disclosure relates to an apparatus comprising one or more processors, and a memory storing program instructions that, when executed by the one or more processors, cause the apparatus to perform the method of any of the disclosed embodiments.

[0035] A sixth aspect of the embodiments of the present disclosure relates to an apparatus comprising means for performing the method of any of the disclosed embodiments.

[0036] A seventh aspect of the embodiments of the present disclosure relates to a non-transitory computer readable medium comprising a computer program product for use by a computer system, the computer program product comprising computer executable instructions stored on the non-transitory computer readable medium that, when executed by one or more processors, cause the computer system to execute the method of any of the disclosed embodiments.

[0037] An eight aspect of the embodiments of the present disclosure relates to an apparatus comprising means for receiving, from an aggregation switch in a logical aggregation tree (LAT), a trimmed packet comprising a header and no payload, the header identifying a sequence number i and a child node of the aggregation switch that contributed data for the sequence number i, and the trimmed packet indicating that the aggregation switch has aggregated data from fewer than all child nodes of the aggregation switch for the sequence number i; means for maintaining, for each sequence number, a record of worker nodes that have contributed data for aggregation based on trimmed packets received from one or more aggregation switches in the LAT; means for transmitting, upon receiving a complete aggregation result based on data contributed from all worker nodes expected to contribute for the sequence number i, an acknowledgment (ACK) for the sequence number i along the LAT toward the worker nodes; and means for transmitting, upon detecting a failure to receive a complete aggregation result for a sequence number k, a negative acknowledgment (NACK) to each worker node expected to contribute for the sequence number k but not indicated in the record maintained for the sequence number k.

[0038] A nineth aspect of the embodiments of the present disclosure relates to an apparatus comprising means for receiving, from one or more child nodes of the aggregation switch in the LAT, a plurality of data packets, each of the data packets comprising a payload and being associated with a corresponding sequence number means for aggregating, for each sequence number, payload data from respective ones of the received plurality of data packets for the sequence number; and means for transmitting, upon determining that fewer than all child nodesAtty. Docket No. 4502-91200 (6000819PCT01)expected to contribute for a sequence number i have contributed, a trimmed packet to a root node in the LAT, the trimmed packet comprising a header and no payload, the header identifying the sequence number i and a first child node of the one or more child nodes that contributed a first data packet of the plurality of data packets, the first data packet being associated with the sequence number i.

[0039] A tenth aspect of the embodiments of the present disclosure relates to an apparatus comprising means for transmitting, to a parent aggregation switch in a logical aggregation tree (LAT), a plurality of data packets associated with respective sequence numbers within a transmission window; means for advancing, upon receiving an acknowledgment (ACK) for a lowest unacknowledged sequence number i in the transmission window, the transmission window; and means for transmitting at least one additional data packet for a sequence number corresponding to a next available sequence number within the transmission window after the advancing; and means for retransmitting, upon detecting a failure to receive an ACK for a sequence number k, a data packet for the sequence number k.

[0040] For the purpose of clarity, any one of the foregoing embodiments may be combined with any one or more of the other foregoing embodiments to create a new embodiment within the scope of the present disclosure.

[0041] These and other features will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings and claims.BRIEF DESCRIPTION OF THE DRAWINGS

[0042] For a more complete understanding of this disclosure, reference is now made to the following brief description, which should be taken in connection with the accompanying drawings and detailed description for a more complete understanding, like reference numerals represent like parts throughout the drawings and specification.

[0043] FIG. 1 is a block diagram illustrating a distributed computing system that implements reliable streaming in-network aggregation according to an embodiment of the present disclosure.

[0044] FIG. 2 illustrates an example logical aggregation tree (LAT) according to an embodiment of the present disclosure.

[0045] FIG. 3 is a flowchart of an example sliding window-based worker node transmission method for reliable streaming in-network aggregation according to an embodiment of the present disclosure.Atty. Docket No. 4502-91200 (6000819PCT01)

[0046] FIG. 4 is a flowchart of an example sliding window-based aggregation switch data packet processing method for reliable streaming in-network aggregation according to an embodiment of the present disclosure.

[0047] FIG. 5 is a flowchart of an aggregation switch acknowledgement (ACK) / negative acknowledgement (NACK) processing method for reliable streaming in-network aggregation according to an embodiment of the present disclosure.

[0048] FIG. 6 is a flowchart of a parameter server packet processing method for reliable streaming in-network aggregation according to an embodiment of the present disclosure.

[0049] FIG. 7 is a flowchart of a parameter server packet timeout handling method for reliable streaming in-network aggregation according to an embodiment of the present disclosure.

[0050] FIGS. 8 A and 8B are sequence diagrams illustrating an example reliable streaming in-network aggregation scenario according to an embodiment of the present disclosure.

[0051] FIG. 9 is a flowchart of an example method of coordinating streaming in-network aggregation according to an embodiment of the present disclosure.

[0052] FIG. 10 is a flowchart of another example method of performing streaming in-network aggregation according to an embodiment of the present disclosure.

[0053] FIG. 11 is a flowchart of an example method of participating streaming in-network aggregation according to an embodiment of the present disclosure.

[0054] FIG. 12 is a block diagram of an example network apparatus according to an embodiment of the present disclosure.DETAILED DESCRIPTION

[0055] It should be understood at the outset that although an illustrative implementation of one or more embodiments is provided below, the disclosed systems and / or methods may be implemented using any number of techniques, whether currently known or later developed. The disclosure should in no way be limited to the illustrative implementations, drawings, and techniques illustrated below, including the exemplary designs and implementations illustrated and described herein, but may be modified within the scope of the appended claims along with their full scope of equivalents.

[0056] The following terms are defined as follows unless used in a contrary context herein. Specifically, the following definitions are intended to provide additional clarity to the present disclosure. However, terms may be described differently in different contexts. Accordingly, theAtty. Docket No. 4502-91200 (6000819PCT01)following definitions should be considered as a supplement and should not be considered to limit any other definitions of descriptions provided for such terms herein.

[0057] As used herein, the terms “worker” and “worker node” may refer to a computing node in a distributed computing system that is responsible for executing tasks assigned by a coordinator or a scheduler. A worker node may also be referred to as a host or a host computing device.

[0058] As used herein, the term “aggregation switch” may refer to a network switch or a network device that combines data from multiple lower-level network nodes (e.g., network switches, network devices, host computing devices, worker nodes, etc.) and forwards the combined data toward higher levels in the network hierarchy.

[0059] Distributed artificial intelligence (Al) model training relies on a collective operation called “all-reduce.” As an example, a set of worker nodes may participate in the aggregation of gradient data. These worker nodes are typically servers equipped with graphical processing units (GPUs). During each training step, each worker node generates a large set of gradient values. These gradient values are aggregated across all worker nodes and the aggregation result is returned to each worker node before training can continue. For large Al models, a single training step may involve millions or billions of gradient values, involving transmission across a large number of ordered data packets.

[0060] In one approach, the aggregation function is performed by a single dedicated computing node, such as a parameter server, that receives gradient data from all worker nodes, performs the reduction, and returns the result. This approach places substantial computational burden on the parameter server and consumes significant network bandwidth, as each worker transmits the full gradient dataset directly to a central node. In-network aggregation improves this process by using programmable network switches to perform the aggregation as data flows through the network, reducing latency, central processing unit (CPU) and / or GPU load, and bandwidth consumption.

[0061] Streaming in-network aggregation extends the in-network aggregation to handle gradient datasets that span multiple sequential packets. In this approach, each worker node transmits the gradient data as an ordered sequence of packets, where each packet is identified by a sequence number. Rather than waiting for packets of the same sequence number to arrive from all worker nodes before performing aggregation, intermediate aggregation switches incrementally aggregate each packet as it arrives. This streaming approach can reduce end-to-end latency and buffering usage at intermediate aggregation switches. Despite these advantages, several technicalAtty. Docket No. 4502-91200 (6000819PCT01)challenges remain unaddressed in existing solutions. For example, existing solutions assume a lossless network or rely on coarse-grained timeout mechanisms for loss detection. However, even networks that are designed to be lossless may experience packet loss, and timeout alone may not provide information about the sender of a lost packet. This can cause unnecessary retransmissions, delay the overall operation, and increase network bandwidth consumption. Additionally, existing solutions do not effectively account for the limited buffer memory available on network switches that perform aggregation. Without proper flow control, transmitting packets too fast can exhaust switch memory and cause further packet drops that compound the reliability problem. Generally, existing solutions lack reliable recovery mechanisms.

[0062] Disclosed herein are techniques for providing reliable streaming in-network aggregation for supporting all-reduce operations. More specifically, in a reliable streaming in-network aggregation architecture, worker nodes and aggregation switches form a logical aggregation tree (LAT). In the LAT, the worker nodes are leaf nodes, and the aggregation switches are intermediate nodes. Aggregation is performed hierarchically from the leaf nodes (the worker nodes) toward a root parameter server, reducing bandwidth consumption at each level of the tree. For example, as packets arrive from worker nodes, aggregation switches incrementally combine each packet's payload with corresponding partial results held in buffers at the aggregation switches, organized by sequence number. To prevent switch buffer overflow, a sliding window of size M is used, where M corresponds to the buffer capacity allocated at each aggregation switch for holding intermediate aggregation results. Worker nodes may transmit up to M packets without waiting for acknowledgment (ACK). As ACKs are received for the lowest unacknowledged sequence number, the window advances and new packets may be sent, ensuring at most M packets are in-flight at any given time.

[0063] To provide reliable loss detection, a packet trimming mechanism is used. For example, when an aggregation switch receives a data packet for a given sequence number but has not yet received contributions from all expected worker nodes, the aggregation switch strips the packet payload and forwards only the packet header (a trimmed packet) to the parameter server. The parameter server uses these trimmed packets to precisely identify which worker nodes have not contributed data for that sequence number and send targeted negative acknowledgments (NACKs) to those nodes, enabling fast loss detection without waiting for a timeout. To minimize retransmission overhead, aggregation switches intercept NACKs. If an aggregation switch has already received dataAtty. Docket No. 4502-91200 (6000819PCT01)for that sequence number from a child node to which the NACK is directed, the aggregation switch drops the NACK. If a complete intermediate aggregation result for that sequence number is held in the switch buffer, the aggregation switch forwards the cached result upstream. Once the parameter server receives the complete aggregation result for a given sequence number, the parameter server multicasts the result back to all worker nodes along the reverse LAT path, ensuring efficient result dissemination and eliminating separate unicast transmissions to each worker node.

[0064] The reliable streaming in-network aggregation discussed herein can provide several technical advantages. By performing aggregation hierarchically through a LAT, the architecture can reduce bandwidth consumption at each level of the tree, thereby lowering overall latency, CPU / GPU load, and overall bandwidth compared to the dedicated computing parameter-server approach. A sliding transmission window sized according to aggregation switch buffer capacity can prevent buffer overflow at the aggregation switches by ensuring that at most M packets are inflight at any given time. Loss detection is improved through a packet trimming mechanism, which eliminates the need to wait for a timeout by precisely identifying which worker nodes have not contributed data for a given sequence number, allowing targeted NACKs to be issued only to those nodes rather than broadcasting redundant retransmission requests. When NACKs are intercepted at the aggregation switches, unnecessary retransmissions can be suppressed, reducing overall retransmission overhead. Delivering the final aggregation result back along the reverse LAT path via a multicast ACK mechanism enables efficient result dissemination and eliminates the need for separate unicast transmissions to each worker node. Finally, by decoupling flow control, loss recovery, and delivery of final aggregation results from the aggregation process itself, the logic required at the aggregation switches remains simple and manageable.

[0065] FIG. 1 is a block diagram illustrating a distributed computing system 100 that implements reliable streaming in-network aggregation according to an embodiment of the present disclosure. As shown in FIG. I. the distributed computing system 100 includes a plurality of aggregation switches 110 and a plurality of hosts 120 interconnected by a plurality of communication links 102. For simplicity, FIG. 1 only illustrates the reference numeral 102 for one communication link. In an embodiment, the distributed computing system 100 is an Ethernet-based data center network (DCN). In an embodiment, the communication links 102 may be wireline communication links such as optical fiber links and / or copper links. In other embodiments, the communication links 102 may include wireless communication links based on wireless communication protocols such as InstituteAtty. Docket No. 4502-91200 (6000819PCT01)of electrical and electronics engineers (IEEE) 802.11 WiFi, third generation partnership project (3GPP) long-term evolution (LTE), and / or fifth generation (5G). In the context of an Ethernet-based DCN. the hosts 120 and aggregation switches 110 communicate using Ethernet frames and Internet protocol (IP) packets.

[0066] The aggregation switches 110 are network devices configured to, among other things, receive data packets from other network nodes, perform intermediate aggregation of data, forward aggregated results upstream, and process ACKs and NACKs. In some embodiments, the aggregation switches 110 are layer 2 (L2) switches. In other embodiments, the aggregation switches 110 are layer 3 (L3) switches. The hosts 120 are computing devices configured to, among other things, transmit and receive data packets, perform distributed computing operations such as Al model training, and participate in collective operations such as all-reduce operations. For simplicity, the aggregation switches 110 and the hosts 120 may generally be referred to as network nodes. In an embodiment, each of the aggregation switches 110 and / or each of the host 120 may be implemented as a network apparatus as discussed below with reference to FIG. 12.

[0067] In an embodiment, a logical aggregation tree (LAT) is formed from a subset of the aggregation switches 110 and hosts 120 for performing distributed computations, such as all-reduce operations, using streaming in-network aggregation. In the illustrated example of FIG. 1, the LAT is formed from three aggregation switches 110a (individually shown as si, s2, and s3) and four hosts 120w (individually shown as hl, h2, h3, and h4). Further, a host 120p (shown as ps) is configured to operate as a root parameter server for the LAT. In the following discussions, the four hosts 120w that contribute data for distributed computations are referred to as worker nodes 120w, and the host 120p that operates as the root parameter server is referred to as a parameter server 120p. As will be discussed more fully below with reference to FIG. 2, the worker nodes 120w are leaf nodes of the LAT, and the aggregation switches 110a are intermediate nodes positioned between the worker nodes 120w and the parameter server 120p at the root of the LAT. Generally, any suitable number of LATs (e.g., 2, 3, 4, 5, 6, etc.) may be formed in the distributed computing system 100. For example, each LAT may be identified by a corresponding tree identifier, and the tree topology information may be associated with the tree identifier and accessible by participating nodes. The parameter server 120p and each of the worker nodes 120w may each be a physical computing device, a virtual machine (VM), or a logical server executing on a physical server. As such, in some instances, multiple worker nodes 120w (e.g., for the same LAT or different LATs) and / or multiple parameter servers 120p (forAtty. Docket No. 4502-91200 (6000819PCT01)different LATs) can be executed on a single physical server. In an embodiment, where nodes of different LATs are executed on the same physical server, each LAT may operate in an isolated environment (e.g., separate virtual machines or containers) to ensure that the operations of one LAT do not interfere with those of another and that data associated with one LAT remains private and inaccessible to other LATs.

[0068] According to embodiments of the present disclosure, the worker nodes 120w are configured to transmit data packets toward the parameter server 120p via one or more aggregation switches 110a for aggregation. The data for aggregation is distributed across a sequence of packets, where each data packet is associated with (or identified by) a corresponding sequence number. For example, each worker node 120w may transmit a set of N ordered data packets with sequence number 1 through N and expect to receive, for each sequence number, a final aggregation result (which may also be referred to as a complete aggregation result) representing the sum or the average of data contributed from all worker nodes 120w for the respective sequence number. The worker nodes 120w further use a sliding window mechanism to limit the amount of in-flight data transmitted to the aggregation switches 110a, preventing buffer overflow at the aggregation switches 110a. The aggregation switches 110a are configured to incrementally aggregate data as packets arrive from respective child nodes of the aggregation switches 110a and use a packet trimming mechanism to enable reliable loss detection at the parameter server 120p. In an embodiment, the packet trimming mechanism is a hardware-based mechanism integrated into the aggregation switches 110a. Originally designed to indicate buffer overflow status, the mechanism is repurposed in the present disclosure to instead indicate that an aggregation switch 110a has received data from fewer than all participating child nodes, as will be discussed below. The parameter server 120p is configured to receive aggregated data, detect packet loss based on trimmed packets and timeouts, and multicast the final aggregation result back to each of the worker nodes 120w in the LAT. In an embodiment, the data contributed by the worker nodes 120w are gradient data associated with an Al model training, and each of the worker node 120w updates the Al model training based on the final aggregation result received from the parameter server 120p. Operations of the worker nodes 120w, the aggregation switches 110a, and the parameter server 120p are described more fully below with reference to FIGS. 2-10.

[0069] FIG. 2 illustrates an example LAT 200 according to an embodiment of the present disclosure. The LAT 200 is formed from the aggregation switches 110a and hosts 120 of theAtty. Docket No. 4502-91200 (6000819PCT01)distributed computing system 100 of FTG. 1. As shown in FTG. 2, the LAT 200 has a hierarchical tree structure with three tiers: a root tier, two intermediate tiers, and a leaf tier. The parameter server 120p (ps) is positioned at the root tier. The aggregation switches 110a (si, s2, and s3) form the intermediate tiers between the root and the leaf tier. The worker nodes 120w (hl, h2, h3, and h4) are positioned as leaf nodes at the leaf tier.

[0070] As further shown in FIG. 2, data flows in an aggregation direction 202 upward (or upstream) from the worker nodes 120w at the leaf tier, through the aggregation switches 110a at the intermediate tier, toward the parameter server 120p at the root. ACKs and NACKs flow in an ACK / NACK direction 204 downward (or downstream) from the parameter server 120p, through the aggregation switches 110a, toward the worker nodes 120w. As will be discussed more fully below, trimmed packets from the aggregation switches 110a also flow in the aggregation direction 202, and final aggregation results are transmitted as part of ACKs. In an embodiment, the aggregation switches si and s2 (110a) each serve as a direct parent node to two worker nodes 120w (e.g., si is the parent of hl and h2, and s2 is the parent of h3 and h4), and the aggregation switch s3 (110a) serves as the parent of si and s2 and a direct child node of the parameter server 120p. Generally, the LAT 200 may include any suitable number of worker nodes 120w (e.g., 2, 3, 4, 5, 6, 7, 8, 9, 10, or more), any suitable number of aggregation switches 110a (e.g., 2, 3, 4, 5, 6, 7, 8, 9, 10, or more) arranged in any suitable number of intermediate levels (e.g., 1, 2, 3, 4, or more), and each aggregation switch 110a may have any suitable number of child nodes (e.g., 2, 3, 4, 5, 6, 7, 8, 9, 10, or more). However, the parameter server 120p has a single direct child node (e.g., an aggregation switch 110a) that performs a final aggregation to produce a complete (or final) aggregation result. Stated differently, the LAT 200 can be a single-level tree or a multi-level tree. The aggregation switches 110a handle data aggregation (leveraging switch compute resources), while flow control, loss recovery, and delivery of final aggregation results are decoupled from the aggregation process and managed by the parameter server 120p, thereby keeping the logic at the aggregation switches 110a simple.

[0071] The worker nodes 120w, the aggregation switches 110a, and the parameter server 120p operate together to perform reliable streaming in-network aggregation using the LAT 200 (e.g., for all-reduce operations). The relationships among the worker nodes 120w, the aggregation switches 110a, and the parameter server 120p may be preconfigured such that each worker node 120w is aware of the parent node in the LAT 200, and each aggregation switch 110a is aware of the parentAtty. Docket No. 4502-91200 (6000819PCT01)node and the child nodes in the LAT 200. The parameter server 1 0p has a full topology view of the LAT 200 and is aware of the set of worker nodes 120w that are expected to contribute data for a set of sequence numbers. In some instances, the set of worker nodes 120w that are expected to contribute data for an aggregation job may be referred to as participating worker nodes 120w. In an embodiment, the LAT 200 may be identified by a tree identifier (ID) and the topology of the LAT 200 may be stored in association with the tree ID in a data structure accessible by all nodes (e.g., the worker nodes 120w, the aggregation switches 110a, and the parameter server 120p) in the LAT 200.

[0072] The worker nodes 120w are configured to transmit data packets toward the parameter server 120p via respective aggregation switches 110a of the LAT 200 using a sliding window-based transmission mechanism. For example, each worker node 120w initializes a transmission window (a sliding window) of size M, where M corresponds to the buffer capacity allocated at each aggregation switch 110a for holding intermediate aggregation results. The value of M may be a global parameter preconfigured at each worker node 120w and each aggregation switch 110a. In some instances, if different aggregation switches 110a have different buffer capacity. M may be set to the minimum buffer capacity among all the aggregation switches 110a in the LAT 200. Each worker node 120w transmits, to a parent aggregation switch 110a in the LAT 200, a plurality of data packets associated with respective sequence numbers within the transmission window (e.g., packets with sequence numbers 1 through M). The worker nodes 120w are further configured to monitor and process ACKs and / or NACKs for the transmitted packets. For example, upon a worker node 120w receiving an ACK for a lowest unacknowledged (or outstanding) sequence number i in the transmission window, the worker node 120w advances the transmission window. After the window advancement, the worker node 120w transmits at least one additional data packet for a next available sequence number within the advanced transmission window (e.g., packet M+l when sequence number 1 is acknowledged). In an embodiment, the ACK for sequence number i carries the final aggregation result for the all-reduce operation, and the worker node 120w records the state and the final aggregation result upon receipt of the ACK. Upon a worker node 120w detecting a failure to receive an ACK for sequence number k within the transmission window based on one or more criteria (e.g., receipt of a NACK directed to the worker node 120w or expiration of a timeout T1 for sequence number k), the worker node 120w retransmits the data packet for sequence number k. In an embodiment, if no ACK is received for a sequence number after a maximum number of retransmission attempts, the worker node 120w indicates an error and terminates the associatedAtty. Docket No. 4502-91200 (6000819PCT01)aggregation job. The sliding window mechanism ensures that the number of in-flight packets at any given time does not exceed M, thereby preventing buffer overflow at the aggregation switches 110a. The sliding window-based operations of the worker nodes 120w are described more fully below with reference to FIG. 3.

[0073] The aggregation switches 110a are configured to perform intermediate aggregation of data packets received from their respective child nodes, maintain intermediate aggregation results for a window of M consecutive sequence numbers in respective buffers, and use a packet trimming mechanism to facilitate reliable loss detection at the parameter server 120p. For example, upon an aggregation switch 110a receiving a data packet for sequence number i from a child node (e.g., a worker node 120w or a downstream aggregation switch 110a), the aggregation switch 110a determines whether sequence number i falls within the current window. If sequence number i is within the window, the aggregation switch 110a aggregates the payload data of the received data packet with the (partial) intermediate aggregation result maintained in the buffer for sequence number i. If the aggregation switch 110a determines that data has been received from all child nodes expected to contribute for sequence number i, the aggregation switch 110a replaces the payload of the data packet with the complete intermediate aggregation result and forwards the packet to a parent node of the aggregation switch 110a in the LAT 200 (e.g., an upstream aggregation switch 110a or the parameter server 120p). If, however, fewer than all child nodes expected to contribute for sequence number i have contributed, the aggregation switch 110a ships (removes) the pay load from the received data packet to generate a trimmed packet (including the packet header without the payload) and forwards the trimmed packet to the root parameter server 120p. In an embodiment, where the sequence number of the received packet is outside the window, the packet is dropped. The trimmed packet serves as a signal to the parameter server 120p indicating that the aggregation switch 110a has aggregated data from fewer than all child nodes for the respective sequence number. The trimmed packet enables the parameter server 120p to track which worker nodes 120w have contributed data for the respective sequence number without waiting for a full timeout (e.g., a timeout mechanism is used as a fallback for loss detection), thereby providing reliable and earlier packet loss detection. The data packet processing operations of the aggregation switches 110a are described more fully below with reference to FIG. 4.

[0074] The aggregation switches 110a are further configured to process ACKs and NACKs received from their parent node in the LAT 200 and to propagate them downstream toward theAtty. Docket No. 4502-91200 (6000819PCT01)worker nodes 120w. For example, upon an aggregation switch 110a receiving an ACK for sequence number i from a parent node, the aggregation switch 110a multicasts the ACK downstream to all child nodes of the aggregation switch 110a on the LAT 200 and releases the buffer allocated for the intermediate aggregation result associated with sequence number i. For example, the aggregation switch 110a and downstream child nodes of the aggregation switch 110a may be part of a multicast group, and the ACK may have a destination address set to the group identifier of the multicast group. In an embodiment, for an all-reduce operation, the ACK carries the final aggregation result, which is delivered to the worker nodes 120w along the ACK / NACK direction 204 of the LAT 200. Upon an aggregation switch 110a receiving a NACK for sequence number i directed toward a particular worker node 120w, the aggregation switch 110a determines whether data for sequence number i has already been received from that worker node 120w. If the aggregation switch 110a has already received data for sequence number i from the worker node 120w to which the NACK is directed, the aggregation switch 110a drops the NACK. The NACK can be dropped because the corresponding data has already been incorporated into the intermediate aggregation result and there is no need to request a retransmission from that worker node 120w. If, however, the aggregation switch 110a has not received data for sequence number i from that worker node 120w, the aggregation switch 110a forwards the NACK toward the worker node 120w along the LAT path. In an embodiment, an aggregation switch 110a may receive a NACK for sequence number i while holding a complete intermediate aggregation result for sequence number i in the switch buffer. In that case, the aggregation switch 110a retransmits the complete intermediate aggregation result for sequence number i to the parent node of the aggregation switch 110a in the LAT 200, without waiting for the worker node 120w to retransmit. The ACK / NACK processing operations of the aggregation switches 110a are described more fully below with reference to FIG. 5.

[0075] The parameter server 120p is configured to coordinate reliable streaming in-network aggregation based on data packets received from the direct child node in the LAT 200 (e.g., the aggregation switch 110a s3) and trimmed packets received from all aggregation switches 110a in the LAT 200. The parameter server 120p maintains a record of worker node contributions for each sequence number based on received trimmed packets and detects packet loss based on the record. Upon receiving a trimmed packet for sequence number i, the parameter server 120p updates the record to indicate that the worker node 120w identified in the trimmed packet has contributed data for sequence number i. Upon receiving a data packet with a payload for sequence number i, theAtty. Docket No. 4502-91200 (6000819PCT01)parameter server 120p recognizes the payload as the complete (or final) aggregation result for sequence number i and multicasts an ACK for sequence number i along the LAT 200 toward the worker nodes 120w in the ACK / NACK direction 204. In an embodiment, for an all-reduce operation, the final aggregation result is carried on the ACK, delivering the aggregated result to each worker node 120w along the reverse LAT path. As an example, an ACK for the worker node hl (120w) may traverse a path from the parameter server 120p to the aggregation switch s3 (110a), the aggregation switch si (110a), and finally to the worker node hl. In an embodiment, upon receiving a complete aggregation result for a sequence number greater than i before receiving a complete aggregation result for sequence number i or upon expiration of a timeout T2 since an earliest trimmed packet for sequence number i was received, the parameter server 120p transmits a NACK to each worker node 120w that has not contributed data for sequence number i (e.g.. each worker node 120w not indicated in the record maintained for sequence number i). Each NACK is directed along the LAT path toward the respective worker node 120w. The packet processing and timeout handling operations of the parameter server 120p are described more fully below with reference to FIGS. 6 and 7.

[0076] To further illustrate the all-reduce collective operation performed using the LAT 200, consider the following example based on a simplified two-worker scenario with the worker nodes hl and h2 (120w) and a single intermediate level with the aggregation switch si (110a). Suppose the worker node hl holds a gradient vector [4, 2, 1, 6] and the worker node h2 holds a gradient vector [2, 0, 5, 3] associated with a distributed Al training process. In this example, each worker node hl and h2 is expected to receive the element-wise sum of the gradient vectors contributed by all worker nodes hl and h2. As data packets are transmitted from the worker nodes hl and h2 toward the parameter server 120p via the aggregation switch si of the LAT 200, the aggregation switch si incrementally aggregates the payloads by combining the corresponding elements of the two vectors. Upon receiving contributions from the worker nodes hl and h2 for the same sequence number, the aggregation switch si produces the complete aggregation result [6, 2, 6. 9] (e.g., the element- wise sum of [4, 2, 1, 6] and [2, 0, 5, 3]). In an embodiment, the aggregation is considered complete for a given sequence number when the aggregation switch 110a at the highest tier of the LAT 200 (si in this example) has received and aggregated gradient vectors from all worker nodes 120w for that sequence number. The complete aggregation result is then forwarded to the parameter server 120p, which multicasts the result back to the worker nodes hl and h2 along the reverse LAT path in the ACK / NACK direction 204, so that every worker node hl and h2 obtains the same updated gradientAtty. Docket No. 4502-91200 (6000819PCT01)vector [6, 2, 6, 9] and the distributed Al training process may proceed from a synchronized parameter state.

[0077] FIG. 3 is a flowchart of an example sliding window-based worker node transmission method 300 for reliable streaming in-network aggregation according to an embodiment of the present disclosure. The method 300 illustrates the sliding window-based transmission operations performed by each worker node 120w of the LAT 200 discussed above with reference to FIG. 2. In an embodiment, the method 300 is performed by each of the worker nodes 120w (e.g., hl, h2, h3, and h4) in the distributed computing system 100. In an embodiment, the method 300 may be implemented using a network apparatus as shown in FIG. 12. As illustrated, FIG. 3 includes a number of enumerated operations, but embodiments of the method 300 may include additional operations before, after, and in between the enumerated operations. In some embodiments, one or more of the enumerated operations may be omitted or performed in a different order.

[0078] At operation 302, the worker node 120w initializes a transmission window (a sliding window) of size M. For example, M corresponds to the buffer capacity allocated at each aggregation switch 110a in the LAT 200 for holding intermediate aggregation results for M consecutive sequence numbers as discussed above with reference to FIG. 2. The initialization includes creating a transmission window with M slots, where each slot is assigned a corresponding sequence number to track the state of a transmitted data packet associated with that sequence number. At operation 304, the worker node 120w transmits, to a parent aggregation switch 110a in the LAT 200 (e.g., si for worker node hl or h2, and s2 for worker node h3 or h4), a plurality of data packets associated with respective sequence numbers within the transmission window (e.g., packets with sequence numbers 1 through M).

[0079] At operation 306, the worker node 120w monitors for ACKs, NACKs, and / or timeout for sequence numbers within the transmission window. If an ACK is received for sequence number i (within the transmission window), the method 300 proceeds to operation 308. The ACK includes a final aggregation result for sequence number i, for example, traversed along the LAT 200 in the ACK / NACK direction 204, as discussed above with reference to FIG. 2. At operation 308. the worker node 120w records the state (an acknowledgement state) and the final aggregation result for sequence number i (e.g., for an all-reduce operation). Next, at operation 310, the worker node 120w determines whether sequence number i is the lowest unacknowledged sequence number in the transmission window. If sequence number i is the lowest unacknowledged sequence number in theAtty. Docket No. 4502-91200 (6000819PCT01)transmission window, the method 300 proceeds to operation 312. At operation 312, the worker node 120w advances the transmission window (e.g., sliding the left or lowest boundary of the window past the now-acknowledged sequence number i). Next, at operation 314, after advancing the transmission window, the worker node 120w transmits at least one additional data packet for a next available sequence number within the advanced transmission window (e.g., transmitting the packet for sequence number M+l when sequence number 1 is the first to be acknowledged). The method 300 then returns to operation 306 to continue monitoring. If, however, at operation 310, sequence number i is not the lowest unacknowledged sequence number in the transmission window (e.g., when a higher sequence number is acknowledged before the lowest sequence number), the method 300 returns to operation 306 without advancing the window.

[0080] Returning to operation 306, if, however, a NACK is received for sequence number i or a timeout expires for sequence number i, the method 300 proceeds to operation 316. For instance, the worker node 120w starts a timer with a timeout T1 after transmitting each data packet in the transmission window. In other words, each sequence number has an associated timeout. At operation 316, the worker node 120w determines whether the maximum number of retransmission attempts for sequence number i has been exceeded. If the maximum number of retransmission attempts has not been exceeded, the method 300 proceeds to operation 318. At operation 318, the worker node 120w retransmits the data packet for sequence number i and returns to operation 306. If, however, the maximum number of retransmission attempts has been exceeded, the method 300 proceeds to operation 320. At operation 320, the worker node 120w indicates an error (e.g., raises an error flag and terminates the associated aggregation job), as discussed above with reference to FIG. 2.

[0081] FIG. 4 is a flowchart of an example aggregation switch data packet processing method 400 for reliable streaming in-network aggregation according to an embodiment of the present disclosure. The method 400 illustrates the data packet processing operations performed by each aggregation switch 110a of the LAT 200 discussed above with reference to FIG.2. In an embodiment, the method 400 is performed by each of the aggregation switches 110a (e.g., si, s2, and s3) in the distributed computing system 100 of FIG. 1. In an embodiment, the method 400 may be implemented using a network apparatus as shown in FIG. 12. As illustrated, FIG. 4 includes a number of enumerated operations, but embodiments of the method 400 may include additional operations before, after, and in between the enumerated operations. In some embodiments, one or more of the enumerated operations may be omitted or performed in a different order.Atty. Docket No. 4502-91200 (6000819PCT01)

[0082] At operation 402, the aggregation switch 110a receives a data packet for sequence number i from a child node (e.g., a worker node 120w or a downstream aggregation switch 110a in the LAT 200). At operation 404, the aggregation switch 110a determines whether the sequence number i falls within a current window. For example, the aggregation switch 110a maintains a window and a buffer for storing intermediate aggregation results for in-flight sequence numbers (e.g., M consecutive sequence numbers), as discussed above with reference to FIG. 2. If the sequence number i is outside the window, the method 400 proceeds to operation 406. At operation 406, the aggregation switch 110a drops (or ignores) the data packet and proceeds to operation 414 to wait for the next data packet. If, however, the sequence number i is within the window, the method 400 proceeds to operation 408. At operation 408, the aggregation switch 110a performs element- wise summation of the received payload into the intermediate aggregation result maintained in the buffer for that sequence number.

[0083] At operation 410, the aggregation switch 110a determines whether data has been received from all child nodes expected to contribute for sequence number i of the received data packet. If data has been received from all child nodes, the method 400 proceeds to operation 412. At operation 412, the aggregation switch 110a replaces the payload of the received data packet (the last data packet for sequence number i) with the complete intermediate aggregation result and forwards the packet to the parent node of the aggregation switch 110a in the LAT 200 (e.g., an upstream aggregation switch 110a such as s3, or the parameter server 120p). The method 400 then proceeds to operation 414, at which the aggregation switch 110a waits for a next data packet from a child node. If, however, fewer than all child nodes expected to contribute for sequence number i have contributed, the method 400 proceeds to operation 416. At operation 416, the aggregation switch 110a removes the payload from the received data packet to generate a trimmed packet (including the packet header but no payload) and forwards the trimmed packet toward the parameter server 120p (e.g., directly or via parent node(s)). In an embodiment, the trimmed packet carries the identity of the worker node 120w from which the received data packet originated and sequence number i, thereby enabling the parameter server 120p to maintain a record of which worker nodes 120w have contributed data for the respective sequence number, as will be discussed more fully below with reference to FIG. 6. The method 400 then proceeds to operation 414, at which the aggregation switch 110a waits for a next data packet from a child node. Upon the aggregation switch 110a receiving a next data packet, method 400 may be repeated.Atty. Docket No. 4502-91200 (6000819PCT01)

[0084] FIG. 5 is a flowchart of an aggregation switch ACK / NACK processing method 500 for reliable streaming in-network aggregation according to an embodiment of the present disclosure. The method 500 illustrates the ACK / NACK processing operations performed by each aggregation switch 110a of the LAT 200 discussed above with reference to FIG. 2 and may operate concurrently with the data packet processing method 400 of FIG. 4. In an embodiment, the method 500 is performed by each of the aggregation switches 110a (e.g., si. s2, and s3) of the distributed computing system 100 of FIG. 1. In an embodiment, the method 500 may be implemented using a network apparatus as shown in FIG. 12. As illustrated, FIG. 5 includes a number of enumerated operations, but embodiments of the method 500 may include additional operations before, after, and in between the enumerated operations. In some embodiments, one or more of the enumerated operations may be omitted or performed in a different order.

[0085] At operation 502, the aggregation switch 110a receives an ACK or a NACK for sequence number i from a parent node in the LAT 200 (e.g., from the parameter server 120p or an upstream aggregation switch 110a). If an ACK for sequence number i is received, the method 500 proceeds to operation 504. At operation 504, the aggregation switch 110a multicasts the ACK down to all child nodes of the aggregation switch 110a on the LAT 200 (e.g., to worker nodes hl and h2 for aggregation switch si, in the ACK / NACK direction 204 discussed above with reference to FIG. 2). In an embodiment, for an all-reduce operation, the final aggregation result is carried in the ACK and delivered to each child node along the reverse LAT path. Next, at operation 506, the aggregation switch 110a releases the buffer allocated for the intermediate aggregation result associated with sequence number i (e.g., freeing the buffer entry for sequence number i so that the capacity can be used for subsequent sequence numbers within the sliding window). The method 500 then proceeds to operation 518, at which the aggregation switch 110a waits for a next ACK or NACK from the parent node.

[0086] Returning to operation 502, if, however, a NACK for sequence number i is received, the method 500 proceeds to operation 508. At operation 508, the aggregation switch 110a determines whether data for sequence number i has been received from the worker node 120w to which the NACK is directed. If the aggregation switch 110a has already received data for sequence number i from that worker node 120w, the method 500 proceeds to operation 510. At operation 510, the aggregation switch 110a drops the NACK (because the corresponding data has already been incorporated into the intermediate aggregation result for sequence number i, and there is no need toAtty. Docket No. 4502-91200 (6000819PCT01)request retransmission from that worker node 120w). Next, at operation 512, the aggregation switch 110a determines whether the switch buffer holds a complete intermediate aggregation result for sequence number i in the switch buffer. If the aggregation switch 110a holds a complete intermediate aggregation result for sequence number i, the method 500 proceeds to operation 514. At operation 514, the aggregation switch 110a retransmits the complete intermediate aggregation result for sequence number i to the parent node of the aggregation switch 110a in the LAT 200, without waiting for the worker node 120w to retransmit (as discussed above with reference to FIG. 2). The method 500 then proceeds to operation 518. If, however, at operation 512, no complete intermediate aggregation result for sequence number i is held in the buffer, the method 500 proceeds to operation 518. If, however, at operation 508, the aggregation switch 110a has not yet received data for sequence number i from the worker node 120w to which the NACK is directed, the method 500 proceeds to operation 516. At operation 516, the aggregation switch 110a forwards the NACK toward the worker node 120w along the LAT path (e.g., from aggregation switch 110a s3 to si or s2, and then to the respective worker node 120w). The method 500 then proceeds to operation 518. Upon the aggregation switch 110a receiving a next ACK or NACK, the method 500 may be repeated.

[0087] FIG. 6 is a flowchart of a parameter server packet processing method 600 for reliable streaming in-network aggregation according to an embodiment of the present disclosure. The method 600 illustrates the packet processing operations performed by the parameter server 120p of the LAT 200 discussed above with reference to FIG. 2. In an embodiment, the method 600 is performed by the parameter server 120p (e.g., ps) of the distributed computing system 100 of FIG. 1. In an embodiment, the method 600 may be implemented using a network apparatus with components as shown in FIG. 12. As illustrated, FIG. 6 includes a number of enumerated operations, but embodiments of the method 600 may include additional operations before, after, and in between the enumerated operations. In some embodiments, one or more of the enumerated operations may be omitted or performed in a different order.

[0088] At operation 602, the parameter server 120p receives a packet from a direct child node in the LAT 200 (e.g., the aggregation switch s3 shown in FIG. 2). At operation 604, the parameter server 120p determines whether the received packet is a data packet carrying a pay load or a trimmed packet carrying no pay load. If the received packet is a data packet for sequence number i (i.e., the packet carries the complete aggregation result for sequence number i, representing data contributed from all worker nodes 120w), the method 600 proceeds to operation 606. At operation 606, theAtty. Docket No. 4502-91200 (6000819PCT01)parameter server 120p multicasts an ACK with the final aggregation result for sequence number i to all worker nodes 120w via the LAT 200 (e.g., along the LAT 200 in the ACK / NACK direction 204 toward the worker nodes hl, h2, h3, and h4, as discussed above with reference to FIG. 2). In an embodiment, the final aggregation result carried in the ACK is associated with an all-reduce operation (e.g., for a distributed Al training process). The method 600 then proceeds to operation 614, at which the parameter server 120p waits for a next packet.

[0089] Returning to operation 604, if, however, the received packet is a trimmed packet for sequence number i (i.e., the packet carries a header identifying a worker node 120w but no payload), the method 600 proceeds to operation 608. At operation 608, the parameter server 120p updates a record to indicate that the worker node 120w identified in the trimmed packet has contributed data for sequence number i. For example, the parameter server 120p maintains, for each sequence number k, a record of worker nodes 120w that have contributed data for aggregation based on trimmed packets received from one or more aggregation switches 110a in the LAT 200. Next, at operation 610, the parameter server 120p determines whether a complete aggregation result for a sequence number greater than i has been received before a complete aggregation result for sequence number i (i.e., whether out-of-order completion has signaled a likely loss for sequence number i). If such an out-of-order complete aggregation result has been received, the method 600 proceeds to operation 612. At operation 612, the parameter server 120p sends a NACK for sequence number i to each worker node 120w that has not contributed data to sequence number i (e.g.. each worker node 120w not indicated in the record maintained for sequence number i). Each NACK is a unicast transmission directed along the LAT path toward the respective worker node 120w. The method 600 then proceeds to operation 614. If, however, at operation 610, no complete aggregation result for a sequence number greater than i has been received, the method 600 proceeds to operation 614. Upon the parameter server 120p receiving a next packet, the method 600 may be repeated. The timeout-based loss detection trigger is described more fully below with reference to FIG. 7.

[0090] FIG. 7 is a flowchart of a parameter server timeout handling method 700 for reliable streaming in-network aggregation according to an embodiment of the present disclosure. The method 700 illustrates the timeout-based loss detection operations performed by the parameter server 120p of the LAT 200 discussed above with reference to FIG. 2 and may operate concurrently with the packet processing method 600 of FIG. 6. In an embodiment, the method 700 is performed by the parameter server 120p (e.g., ps) of the distributed computing system 100 of FIG. 1. In anAtty. Docket No. 4502-91200 (6000819PCT01)embodiment, the method 700 may be implemented using a network apparatus with components as shown in FIG. 12. As illustrated, FIG. 7 includes a number of enumerated operations, but embodiments of the method 700 may include additional operations before, after, and in between the enumerated operations. In some embodiments, one or more of the enumerated operations may be omitted or performed in a different order.

[0091] At operation 702, the parameter server 120p receives an indication that a timeout T2 expires for receiving the complete aggregation result for sequence number i. For example, the parameter server 120p starts the timeout T2 upon receiving an earliest trimmed packet for sequence number i. If the parameter server 120p receives a complete aggregation result for sequence number i within the timeout period T2, the parameter server 120p cancels the timeout. As such, expiration of the timeout T2 indicates a complete aggregation result for sequence number i has not been received within the timeout period T2. At operation 704, the parameter server 120p identifies each worker node 120w that has not contributed data for sequence number i was received (e.g., each worker node 120w not indicated in the record maintained for sequence number i, as described above with reference to operation 608 of FIG. 6). At operation 706, the parameter server 120p sends a NACK for sequence number i to each identified worker node 120w via the LAT path. For example, the NACK is directed along the reverse LAT path through the aggregation switches 110a toward the respective worker nodes 120w in the ACK / NACK direction 204, as discussed above with reference to FIG. 2. In an embodiment, each NACK is unicast to the respective worker node 120w so that intermediate aggregation switches 110a along the path may intercept and process the NACK as described above with reference to FIG. 5.

[0092] FIGS. 8 A and 8B are sequence diagrams illustrating an example reliable streaming in-network aggregation scenario 800 according to an embodiment of the present disclosure. The scenario 800 illustrates operations performed by various components of the distributed computing system 100 of FIG. 1. In an embodiment, the scenario 800 includes worker nodes 120w (hl, h2, h3, and h4), aggregation switches 110a (si, s2, and s3), and a parameter server 120p (ps) arranged in a LAT 200 as discussed above with reference to FIG. 2. The scenario 800 includes an aggregation phase under normal operation, a loss detection and recovery phase, and a sliding window advancement phase. As illustrated, FIGS. 8A and 8B include enumerated operations, though embodiments may include additional operations before, after, or in between the enumerated operations, and one or more enumerated operations may be omitted or performed in a different order.Atty. Docket No. 4502-91200 (6000819PCT01)For simplicity, the following discussion omits reference numerals for worker nodes hl, h2, h3, and h4, the aggregation switches si, s2, and s3, and the parameter server ps. Further, a data packet for sequence number i transmitted by worker node hj is referred to as Pi(hj). For example. Pl(hl) denotes the data packet for sequence number 1 transmitted by worker node hl.

[0093] FIG. 8A illustrates the aggregation phase under normal operation. In the aggregation phase, each worker node hl, h2, h3. and h4 transmits a plurality of data packets associated with respective sequence numbers within a transmission window of size M toward a parent aggregation switch si or s2 in the LAT 200. In the example illustrated, the window size M is 8, so each worker node hl, h2, h3, and h4 initially transmits data packets for sequence numbers 1 through 8 without waiting for acknowledgments. For example, the worker nodes hl and 112 transmit data packets Pl(hl) and Pl(h2) through P8(hl) and P8(h2) to the aggregation switch si, and the worker nodes h3 and h4 transmit data packets Pl(h3) and Pl(h4) through P8(h3) and P8(h4) to the aggregation switch s2. For simplicity, FIG. 8 A only shows the operations related to sequence number 1.

[0094] At operation 802, the worker node hl transmits a data packet Pl(hl) to the parent aggregation switch si, where Pl (hl) indicates hl as the sender and sequence number 1 in the packet header. Upon receiving Pl (hl), the aggregation switch si aggregates the payload of Pl(hl) into an intermediate aggregation result stored in a buffer at the aggregation switch s 1. At operation 804, upon determining that fewer than all expected child nodes have contributed data for sequence number 1, the aggregation switch si strips the pay load of Pl (hl) and transmits a trimmed packet to the parameter server ps. The trimmed packet carries only the header with no payload, serving as an indication to the parameter server ps that at least one child node has not yet contributed data for sequence number 1.

[0095] At operation 806, the worker node h2 transmits a data packet Pl(h2) to the parent aggregation switch si, where Pl(h2) indicates h2 as the sender and sequence number 1 in the packet header. Upon receiving Pl(h2), the aggregation switch si aggregates the payload of Pl(h2) into the intermediate aggregation result stored in the buffer at the aggregation switch si. At operation 808, upon determining that all expected child nodes have contributed data for sequence number 1, the aggregation switch si replaces the payload with the complete intermediate aggregation result (e.g., hl data + h2 data) for sequence number 1 and forwards the packet to the parent aggregation switch s3. The forwarded packet includes an indication of si as the sender.Atty. Docket No. 4502-91200 (6000819PCT01)

[0096] At operation 810, upon receiving the trimmed packet from the aggregation switch s 1 , and having not yet received contributions from all expected child nodes for sequence number 1, the aggregation switch s3 forwards the trimmed packet to the parameter server ps. serving as an indication to ps that at least one worker node has not yet contributed data for sequence number 1.

[0097] At operation 812, the worker node h3 transmits a data packet Pl(h3) to the parent aggregation switch s2. where Pl(h3) indicates h3 as the sender and sequence number 1 in the packet header. Upon receiving Pl(h3), the aggregation switch s2 aggregates the payload of Pl(h3) into an intermediate aggregation result stored in a buffer at the aggregation switch s2. At operation 814, upon determining that fewer than all expected child nodes have contributed data for sequence number 1, the aggregation switch s2 strips the payload of Pl(h3) and transmits a trimmed packet to the parent aggregation switch s3, serving as an indication that at least one child node of s2 has not yet contributed data for sequence number 1.

[0098] At operation 816, the worker node h4 transmits a data packet Pl(h4) to the parent aggregation switch s2, where Pl(h4) indicates h4 as the sender and sequence number 1. Upon receiving Pl(h4), the aggregation switch s2 aggregates the payload of Pl(h4) into the intermediate aggregation result stored in the buffer at the aggregation switch s2. At operation 818, upon determining that all expected child nodes have contributed data for sequence number 1, the aggregation switch s2 replaces the payload with the complete intermediate aggregation result (e.g., h3 data + h4 data) for sequence number 1 and forwards the packet to the parent aggregation switch s3.

[0099] At operation 820, upon receiving the complete intermediate aggregation result from the aggregation switch s2, and having already received the complete intermediate aggregation result from the aggregation switch si at operation 808, the aggregation switch s3 combines the two intermediate aggregation results to produce the final aggregation result for sequence number 1 and forwards the final aggregation result to the parameter server ps.

[0100] As the parameter server ps receives the trimmed packets Pl(hl), the trimmed packet Pl(sl), and the trimmed packet Pl(h3) respectively at operations 804, 810, and 816, the parameter server ps records the worker nodes or child nodes that have contributed data for sequence number 1. Upon receiving the final aggregation result for sequence number 1 , the parameter server ps multicasts an ACK carrying the final aggregation result for sequence number 1 back to all worker nodes along the reverse LAT path. At operation 822, the parameter server ps transmits the ACK to the aggregationAtty. Docket No. 4502-91200 (6000819PCT01)switch s3. At operation 824, the aggregation switch s3 forwards the ACK to the aggregation switch si, and at operation 826, the aggregation switch s3 forwards the ACK to the aggregation switch s2. At operation 828, the aggregation switch si forwards the ACK to the worker node hl, and at operation 830, the aggregation switch s 1 forwards the ACK to the worker node h2. At operation 832, the aggregation switch s2 forwards the ACK to the worker node h3, and at operation 834, the aggregation switch s2 forwards the ACK to the worker node h4. Upon receiving the ACK, each worker node hl, h2, h3, and h4 records the final aggregation result for sequence number 1 and, if sequence number 1 is the lowest unacknowledged sequence number in the transmission window, advances the window and transmits the next data packet.

[0101] FIG. 8B illustrates the loss detection and recovery phase in the upper half portion and the sliding window advancement phase in the bottom half portion. In the example illustrated for the loss and detection and recovery phase, the parameter server ps detects a failure to receive a complete aggregation for sequence number 1 at operation 840. In one example, the detected failure is based on the parameter server ps receiving a complete aggregation result for a later sequence number (e.g., sequence number 2) before receiving a complete aggregation result for sequence number 1 (e.g., as discussed above with reference to FIG. 6). This indicates that one or more data packets for sequence number 1 may have been lost in the network. In another example, the detected failure is based on a timeout T2 expiring at the parameter server ps without receipt of the complete aggregation result for sequence number 1 (e.g., as discussed above with reference to FIG. 7).

[0102] At operation 842, upon detecting the failure, the parameter server ps identifies the worker nodes that have not contributed data for sequence number 1 based on the record maintained at the parameter server ps for sequence number 1. The parameter server ps then sends a NACK for sequence number 1 to each worker node that has not contributed data for sequence number 1. In the example illustrated, the record indicates that the worker node hl has not contributed data for sequence number 1. Thus, at operation 842, the parameter server ps sends a unicast NACK for sequence number 1 to the worker node hl, directed along the reverse LAT path through the aggregation switches s3 and si. At operation 844, upon the aggregation switch s3 receiving the NACK, the aggregation switch s3 determines whether the aggregation switch s3 has already received a contribution from si for sequence number 1. In the example illustrated, the aggregation switch s3 has not, and thus forwards the NACK toward the aggregation switch si. Upon the aggregation switch si receiving the NACK, the aggregation switch si determines that a complete intermediateAtty. Docket No. 4502-91200 (6000819PCT01)aggregation result (e.g., hl data + h2 data) for sequence number 1 is held at the switch buffer. Thus, at operation 846, the aggregation switch si drops the NACK and retransmits the complete intermediate aggregation result for sequence number 1 to the parent aggregation switch s3.

[0103] At operation 848, upon the aggregation switch s3 receiving the retransmitted complete intermediate aggregation result for sequence number 1, the aggregation switch s3 combines the complete intermediate aggregation result for sequence number 1 from the aggregation switch si and the complete intermediate aggregation result for sequence number 1 from the aggregation switch s2 (e.g., held at the switch buffer of the aggregation switch s3) to produce a final aggregation result for sequence number 1 and forwards the final aggregation result to the parameter server ps. At operation 850, upon the parameter server ps receiving the final aggregation result for sequence number 1, the parameter server ps multicasts an ACK carrying the final aggregation result for sequence number 1 back to all worker nodes along the reverse LAT path, for example, as discussed above with reference to operations 822, 824, 826, 828, 830, 832, and 834.

[0104] In the example illustrated for the sliding window advancement phase, the worker nodes hl , h2, h3, and h4 have already transmitted data packets for sequence numbers 1 through 8 (the initial window with size M=8) and are awaiting ACKs. Additionally, each of the worker node hl, h2, h3, and h4 received an ACK for sequence number 2, followed by receiving an ACK for sequence number 1 (e.g., multicast from the parameter server ps as discussed above). Because sequence number 1 is the lowest unacknowledged sequence number, receipt of the ACK for sequence number 1 resolves two consecutive acknowledged sequence numbers (sequence numbers 1 and 2), each worker node hl, h2, h3, and h4 advances the transmission window at the respective node by two slots (e.g., as shown by operation 852, 858, 864, and 870). Accordingly, each worker node hl, h2, h3. and h4 transmits data packets for the two newly available sequence numbers in the window, maintaining the window size at M=8. As shown, the worker node hl transmits P9(hl) at operation 854 and P10(hl) at operation 856. the worker node h2 transmits P9(h2) at operation 860 and P10(h2) at operation 862, the worker node h3 transmits P9(h3) at operation 866 and P10(h3) at operation 868, and the worker node h4 transmits P9(h4) at operation 872 and P10(h4) at operation 874. That is, the window at each worker node hl, h2, h3, and h4 now tracks sequence numbers 3 to 10.

[0105] FIG. 9 is a flowchart of an example method 900 of coordinating streaming in-network aggregation according to an embodiment of the present disclosure. The method 900 may use substantially similar mechanisms as discussed above with reference to FIGS. 1-2, 6-7, and 8A-8B.Atty. Docket No. 4502-91200 (6000819PCT01)The method 900 is performed by a network node in a distributed computing system (e.g., the distributed computed system 100). More specifically, the method 900 is performed by a parameter server (e.g., the parameter server 120p) positioned at the root of a LAT (e.g., the LAT 200). In an embodiment, the method 900 may be implemented using a computer system with components as shown in FIG. 12. As illustrated, FIG. 9 includes a number of enumerated operations, but embodiments of the method 900 may include additional operations before, after, and in between the enumerated operations. In some embodiments, one or more of the enumerated operations may be omitted or performed in a different order.

[0106] At operation 902, the parameter server receives, from an aggregation switch (e.g., the aggregation switches 110a) in the LAT, a trimmed packet including a header and no pay load. The header identifies a sequence number i and a child node of the aggregation switch that contributed data for the sequence number i. The trimmed packet indicates that the aggregation switch has aggregated data from fewer than all child nodes of the aggregation switch for the sequence number i (e.g., as discussed above with reference to FIGS. 2, 6, and 8A).

[0107] At operation 904, the parameter server maintains, for each sequence number, a record of worker nodes that have contributed data for aggregation based on trimmed packets received from one or more aggregation switches in the LAT. For instance, upon receiving a trimmed packet identifying a child node as having contributed data for the sequence number i from an aggregation switch, the parameter server updates the record for the sequence number i to indicate that the child node has contributed data for the sequence number i (e.g., as discussed above with reference to FIGS.2, 6, and 8A).

[0108] At operation 906, upon receiving a complete aggregation result based on data contributed from all worker nodes (e.g., the worker nodes 120w) expected to contribute for the sequence number i, the parameter server transmits an ACK for the sequence number i along the LAT toward the worker nodes. In an embodiment, as part of transmitting the ACK for the sequence number i, the parameter server transmits the ACK for the sequence number i as a multicast along a path in the LAT in a direction reverse to an aggregation direction (e.g., as discussed above with reference to FIG. 2). In an embodiment, as part of transmitting the ACK for the sequence number i, the parameter server transmits the ACK including the complete aggregation result for the sequence number i (e.g., as discussed above with reference to FIGS. 2, 6, and 8A-8B). In anAtty. Docket No. 4502-91200 (6000819PCT01)embodiment, the complete aggregation result for the sequence number i in the ACK is associated with an all-reduce operation (e.g., as discussed above with reference to FIGS. 1 and 2).

[0109] At operation 908, upon detecting a failure to receive a complete aggregation result for a sequence number k, the parameter server transmits a NACK (e.g., a unicast NACK) to each worker node expected to contribute for sequence number k but not indicated in the record maintained for the sequence number k. In an embodiment, the detecting the failure is based on expiration of a timeout period for the sequence number k without receiving a complete aggregation result for the sequence number k. For instance, the parameter server starts a timer with the timeout period upon receiving a first (an earliest) trimmed packet for sequence number i as discussed above with reference to FIG. 2 and 7. In another embodiment, the detecting the failure is based on a receipt of a complete aggregation result for a sequence number greater than k (e.g., as discussed above with reference to FIGS. 2, 6, and 8B).

[0110] FIG. 10 is a flowchart of an example method 1000 of performing streaming in-network aggregation according to an embodiment of the present disclosure. The method 1000 may use substantially similar mechanisms as discussed above with reference to FIGS. 1-2, 4-5, and 8A-8B. The method 1000 is performed by a network node in a distributed computing system (e.g., the distributed computed system 100). More specifically, the method 1000 is performed by an aggregation switch (e.g., the aggregation switch 110a) in a LAT (e.g., the LAT 200). In an embodiment, the method 1000 may be implemented using a computer system with components as shown in FIG. 12. As illustrated, FIG. 10 includes a number of enumerated operations, but embodiments of the method 1000 may include additional operations before, after, and in between the enumerated operations. In some embodiments, one or more of the enumerated operations may be omitted or performed in a different order.

[0111] At operation 1002, the aggregation switch receives, from one or more child nodes of the aggregation switch in the LAT, a plurality of data packets, each of the data packets comprising a payload and being associated with a corresponding sequence number. In one example, the aggregation switch may be a lowest-level aggregation switch in the LAT, and thus the one or more child nodes may be worker nodes (e.g., the worker nodes 120w). In another example, the aggregation switch may be an intermediate-level aggregation switch or a highest-level aggregation switch in the LAT, and thus the one or more child nodes may be downstream aggregation switches in the LAT.Atty. Docket No. 4502-91200 (6000819PCT01)

[0112] At operation 1004, the aggregation switch aggregates, for each sequence number, payload data from respective ones of the received plurality of data packets for the sequence number. At operation 1006, upon determining that fewer than all child nodes expected to contribute for a sequence number i have contributed, transmitting a trimmed packet to a root node in the LAT, the trimmed packet comprising a header and no payload, the header identifying the sequence number i and a first child node of the one or more child nodes that contributed a first data packet of the plurality of data packets, the first data packet being associated with the sequence number i (e.g., as discussed above with reference to FIG. 2, 4, and 8A). For instance, the aggregation switch generates the trimmed packet by removing the payload from the first data packet such that the trimmed packet retains the header of the first data packet and excludes the payload.

[0113] In an embodiment, upon determining that all child nodes expected to contribute for the sequence number i has contributed, the aggregation switch transmits an aggregation result packet including an aggregation result for the sequence number i to an immediate parent node of the aggregation switch in the LAT (e.g., as discussed above with reference to FIG. 2, 4, and 8A). For instance, the aggregation switch replaces a payload of a second data packet of the received plurality of data packets with the aggregation result for the sequence number i to provide the aggregation result packet, where the second data packet corresponds to a last received data packet for the sequence number i.

[0114] In an embodiment, the aggregation switch further maintains, in a buffer, intermediate aggregation results for a window (e.g., a sliding window) of M consecutive sequence numbers, M being based on a buffer capacity of the aggregation switch and handles ACKs and NACKs received from a parent node as discuss above with reference to FIGS. 2, 4-5, and 8A-8B. Upon receiving an ACK for a lowest unacknowledged (or outstanding) sequence number in the window, the aggregation switch advances the window. In an embodiment, upon receiving an ACK for the sequence number i from an immediate parent node of the aggregation switch in the LAT, the aggregation switch multicasts the ACK to the one or more child nodes in the LAT and releases the buffer allocated for the sequence number i.

[0115] In an embodiment, upon receiving a NACK for the sequence number i (e.g., a unicast packet) directed toward a child node of the aggregation switch, the aggregation switch determines whether a data packet for the sequence number i has already been received from the child node. If the aggregation switch had already received the data packet for the sequence number i from theAtty. Docket No. 4502-91200 (6000819PCT01)child node, the aggregation switch discards the NACK. If, however, the aggregation switch has not received a data packet for the sequence number i from the child node, the aggregation switch forwards the NACK toward the child node. Further, if the aggregation switch has already received the data packet for the sequence number i from the child node, the aggregation switch determines whether a complete intermediate aggregation result for the sequence number i is held in the buffer. If the complete intermediate aggregation result for the sequence number i is held in the buffer, the aggregation switch transmits an aggregation result packet including the complete intermediate aggregation result for the sequence number i to the immediate parent node (e.g., as discussed above with reference to FIG. 2, 5, and 8B).

[0116] FIG. 11 is a flowchart of an example method 1100 of participating in streaming in-network aggregation according to an embodiment of the present disclosure. The method 1100 may use substantially similar mechanisms as discussed above with reference to FIGS. 1-3, and 8A-8B. The method 1100 is performed by a network node in a distributed computing system (e.g., the distributed computed system 100). More specifically, the method 1100 is performed by a worker node (e.g., the worker nodes 120w) positioned at a leaf in a LAT (e.g., the LAT 200). For example, the worker node is a leaf node of the LAT. In an embodiment, the method 1100 may be implemented using a computer system with components as shown in FIG. 12. As illustrated, FIG. 11 includes a number of enumerated operations, but embodiments of the method 1100 may include additional operations before, after, and in between the enumerated operations. In some embodiments, one or more of the enumerated operations may be omitted or performed in a different order.

[0117] At operation 1102, the worker node transmits, to a parent aggregation switch (e.g., the aggregation switches 110a) in the LAT, a plurality of data packets associated with respective sequence numbers within a transmission window (e.g., with a size M set according to buffer capacity at the aggregation switches in the LAT). In an example, the data packets are associated with an Al training job or aggregation job, and each data packet includes a payload carrying gradient data.

[0118] At operation 1104, upon receiving an ACK for a lowest unacknowledged sequence number i in the transmission window, the worked node advances the transmission window. At operation 1106, the worker node transmits at least one additional data packet for a sequence number corresponding to a next available sequence number within the transmission window after the advancing (e.g., as discussed above with reference to FIGS. 2-3 and 8B). In an embodiment,Atty. Docket No. 4502-91200 (6000819PCT01)the ACK for the lowest unacknowledged sequence number i in the transmission window includes a complete aggregation result for the sequence number i.

[0119] At operation 1108, upon detecting a failure to receive an ACK for a sequence number k, the worker node retransmits a data packet for the sequence number k. In an embodiment, the detecting the failure is based on expiration of a timeout period for the sequence number k without receiving the ACK. For instance, after transmitting each data packet in the transmission window, the worker node starts a timer with a timeout T1 (e.g., as discussed above with reference to FIG. 3). In an embodiment, the detecting the failure is based on a receipt of a NACK for the sequence number k (e.g., as discussed above with reference to FIG. 3). In an embodiment, upon failing to receive an ACK after a predetermined number of retransmissions of the data packet for the sequence number k, indicating an error for a task associated with the plurality of data packets. In an embodiment, upon receiving an ACK for a sequence number other than the lowest unacknowledged sequence number i in the transmission window, the worker node records the ACK without advancing the transmission window (e.g., as discussed above with reference to FIGS. 2, 3 and 8B).

[0120] In an embodiment, the worker node further performs an all-reduce operation based on the complete aggregation result in the ACK for the sequence number i received at operation 1104. In an embodiment, the complete aggregation result corresponds to a reduced combination of data contributed by all worker nodes expected to contribute for the sequence number i.

[0121] FIG. 12 is a schematic diagram of an example network apparatus 1200 (e.g., a computer apparatus, a compute node, a network node, a network device, a network switch, a network router, a router, etc.). The apparatus 1200 is suitable for implementing the disclosed embodiments as described herein. The apparatus 1200 comprises ingress ports / ingress means 1210 (a.k.a.. upstream ports) and receiver units (Rx)Zreceiving means 1220 for receiving data; a processor, logic unit, or central processing unit (CPU) / processing means 1230 to process the data; transmitter units (Tx) / transmitting means 1240 and egress ports / egress means 1250 (a.k.a., downstream ports) for transmitting the data; and a memory / memory means 1260 for storing the data. In an embodiment, the receiver units (Rx) / receiving means 1220 comprise a discrete circuit, integrated circuit, chip set, package, hardware module, electronic device, or other structure capable of receiving signals. In an embodiment, the transmitter units (Tx) / transmitting means 1240 comprise a discrete circuit, integrated circuit, chip set, package, hardware module, electronic device, or other structure capable of transmitting signals. The apparatus 1200 may also comprise optical-to-electrical (OE)Atty. Docket No. 4502-91200 (6000819PCT01)components and electrical-to-optical (EO) components coupled to the ingress ports / ingress means 1210, the receiver units / receiving means 1220, the transmitter units / transmitting means 1240, and the egress ports / egress means 1250 for egress or ingress of optical or electrical signals.

[0122] The processor / processing means 1230 is implemented by hardware and software. The processor / processing means 1230 may be implemented as one or more CPU chips, cores (e.g., as a multi-core processor), field-programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), and digital signal processors (DSPs). The processor / processing means 1230 is in communication with the ingress ports / ingress means 1210, receiver units / receiving means 1220, transmitter units / transmitting means 1240, egress ports / egress means 1250, and memory / memory means 1260. The processor / processing means 1230 comprises a module 1270. The module 1270 is able to implement the methods disclosed herein. The inclusion of the module 1270 therefore provides a substantial improvement to the functionality of the apparatus 1200 and effects a transformation of the apparatus 1200 to a different state. Alternatively, the module 1270 is implemented as instructions stored in the memory / memory means 1260 and executed by the processor / processing means 1230.

[0123] The apparatus 1200 may also include input and / or output (TO) devices or TO means 1280 for communicating data to and from a user. The TO devices or TO means 1280 may include output devices such as a display for displaying video data, speakers for outputting audio data, etc. The TO devices or TO means 1280 may also include input devices, such as a keyboard, mouse, trackball, etc., and / or corresponding interfaces for interacting with such output devices.

[0124] The memory / memory means 1260 comprises one or more disks, tape drives, and solid-state drives and may be used as an over-flow data storage device, to store programs when such programs are selected for execution, and to store instructions and data that are read during program execution. The memory / memory means 1260 may be volatile and / or non-volatile and may be readonly memory (ROM), random access memory (RAM), ternary content-addressable memory (TCAM), and / or static random-access memory (SRAM).

[0125] It should also be understood that the steps of the exemplary methods set forth herein are not necessarily required to be performed in the order described, and the order of the steps of such methods should be understood to be merely exemplary. Likewise, additional steps may be included in such methods, and certain steps may be omitted or combined, in methods consistent with various embodiments of the present disclosure.Atty. Docket No. 4502-91200 (6000819PCT01)

[0126] While several embodiments have been provided in the present disclosure, it should be understood that the disclosed systems and methods might be embodied in many other specific forms without departing from the spirit or scope of the present disclosure. The present examples are to be considered as illustrative and not restrictive, and the intention is not to be limited to the details given herein. For example, the various elements or components may be combined or integrated in another system or certain features may be omitted, or not implemented.

[0127] In addition, techniques, systems, subsystems, and methods described and illustrated in the various embodiments as discrete or separate may be combined or integrated with other systems, modules, techniques, or methods without departing from the scope of the present disclosure. Other items shown or discussed as coupled or directly coupled or communicating with each other may be indirectly coupled or communicating through some interface, device, or intermediate component whether electrically, mechanically, or otherwise. Other examples of changes, substitutions, and alterations are ascertainable by one skilled in the art and could be made without departing from the spirit and scope disclosed herein.

Claims

Atty. Docket No. 4502-91200 (6000819PCT01)CLAIMSWhat is claimed is:

1. A method performed by a network node in a distributed computing system implementing a logical aggregation tree (LAT), the method comprising:receiving, from an aggregation switch in the LAT, a trimmed packet comprising a header and no payload, the header identifying a sequence number i and a child node of the aggregation switch that contributed data for the sequence number i, and the trimmed packet indicating that the aggregation switch has aggregated data from fewer than all child nodes of the aggregation switch for the sequence number i;maintaining, for each sequence number, a record of worker nodes that have contributed data for aggregation based on trimmed packets received from one or more aggregation switches in the LAT;upon receiving a complete aggregation result based on data contributed from all worker nodes expected to contribute for the sequence number i, transmitting an acknowledgment (ACK) for the sequence number i along the LAT toward the worker nodes; andupon detecting a failure to receive a complete aggregation result for a sequence number k, transmitting a negative acknowledgment (NACK) to each worker node expected to contribute for the sequence number k but not indicated in the record maintained for the sequence number k.

2. The method of claim 1, wherein the detecting the failure is based on expiration of a timeout period for the sequence number k without receiving a complete aggregation result for the sequence number k.

3. The method of claim 1 , wherein the detecting the failure is based on a receipt of a complete aggregation result for a sequence number greater than k.

4. The method of any of claims 1-3, wherein the transmitting the ACK for the sequence number i comprises:transmitting the ACK for the sequence number i as a multicast along a path in the LAT in a direction reverse to an aggregation direction.Atty. Docket No. 4502-91200 (6000819PCT01)5. The method of any of claims 1-4, wherein the transmitting the ACK for the sequence number i comprises:transmitting the ACK comprising the complete aggregation result for the sequence number i.

6. The method of claim 5, wherein the complete aggregation result for the sequence number i in the ACK is associated with an all-reduce operation.

7. The method of any of claims 1-6, wherein the network node is a root node of the LAT such that all aggregated data traverses the LAT toward the network node.

8. A method performed by an aggregation switch in a distributed computing system implementing a logical aggregation tree (LAT), the method comprising:receiving, from one or more child nodes of the aggregation switch in the LAT, a plurality of data packets, each of the data packets comprising a payload and being associated with a corresponding sequence number;aggregating, for each sequence number, payload data from respective ones of the received plurality of data packets for the sequence number; andupon determining that fewer than all child nodes expected to contribute for a sequence number i have contributed, transmitting a trimmed packet to a root node in the LAT, the trimmed packet comprising a header and no payload, the header identifying the sequence number i and a first child node of the one or more child nodes that contributed a first data packet of the plurality of data packets, the first data packet being associated with the sequence number i.

9. The method of claim 8, further comprising:generating the trimmed packet by removing the payload from the first data packet such that the trimmed packet retains the header of the first data packet and excludes the payload.

10. The method of any of claims 8-9, further comprising:Atty. Docket No. 4502-91200 (6000819PCT01)upon determining that all child nodes expected to contribute for the sequence number i has contributed, transmitting an aggregation result packet comprising a complete intermediate aggregation result for the sequence number i to an immediate parent node of the aggregation switch in the LAT.

11. The method of claim 10, further comprising:replacing a payload of a second data packet of the received plurality of data packets with the complete intermediate aggregation result for the sequence number i to provide the aggregation result packet, wherein the second data packet corresponds to a last received data packet for the sequence number i.

12. The method of any of claims 8-11, further comprising:maintaining, in a buffer, intermediate aggregation results for a window of M consecutive sequence numbers, M being based on a buffer capacity of the aggregation switch; and advancing the window based on receiving an acknowledgement (ACK) for a lowest unacknowledged sequence number in the window.

13. The method of claim 12, further comprising:upon receiving an ACK for the sequence number i from an immediate parent node of the aggregation switch in the LAT,multicasting the ACK to the one or more child nodes in the LAT; and releasing the buffer allocated for the sequence number i.

14. The method of claim 12, further comprising:upon receiving a negative acknowledgement (NACK) for the sequence number i from an immediate parent node of the aggregation switch in the LAT, determining whether a complete intermediate aggregation result for the sequence number i is in the buffer; andupon determining that the complete intermediate aggregation result is in the buffer, transmitting an aggregation result packet comprising the complete intermediate aggregation result for the sequence number i to the immediate parent node.Atty. Docket No. 4502-91200 (6000819PCT01)15. The method of any of claims 8-14, further comprising:upon receiving a negative acknowledgement (NACK) for the sequence number i directed toward a child node of the aggregation switch, determining whether a data packet for the sequence number i was received from the child node; andupon determining that the data packet for the sequence number i was received from the child node, discarding the NACK.

16. The method of any of claims 8-14, further comprising:upon receiving a negative acknowledgement (NACK) for the sequence number i directed toward a child node of the aggregation switch, determining whether a data packet for the sequence number i was received from the child node; andupon determining that the data packet for the sequence number i was not received from the child node, forwarding the NACK toward the child node along the LAT.

17. A method performed by a worker node in a distributed computing system implementing a logical aggregation tree (LAT), the method comprising:transmitting, to a parent aggregation switch in the LAT, a plurality of data packets associated with respective sequence numbers within a transmission window;upon receiving an acknowledgment (ACK) for a lowest unacknowledged sequence number i in the transmission window, advancing the transmission window;transmitting at least one additional data packet for a sequence number corresponding to a next available sequence number within the transmission window after the advancing; and upon detecting a failure to receive an ACK for a sequence number k, retransmitting a data packet for the sequence number k.

18. The method of claim 17, wherein the detecting the failure is based on expiration of a timeout period for the sequence number k without receiving the ACK.

19. The method of claim 17, wherein the detecting the failure is based on a receipt of a negative acknowledgement (NACK) for the sequence number k.Atty. Docket No. 4502-91200 (6000819PCT01)20. The method of any of claims 17-19, further comprising:upon receiving an ACK for a sequence number other than the lowest unacknowledged sequence number i in the transmission window, recording the ACK without advancing the transmission window.

21. The method of any of claims 17-20, wherein the ACK for the lowest unacknowledged sequence number i in the transmission window comprises a complete aggregation result for the sequence number i.

22. The method of claim 21, further comprising:performing an all-reduce operation based on the complete aggregation result in the ACK for the sequence number i.

23. The method of any of claims 21-22, wherein the complete aggregation result corresponds to a reduced combination of data contributed by all worker nodes expected to contribute for the sequence number i.

24. The method of any of claims 17-23, further comprising:upon failing to receive an ACK after a predetermined number of retransmissions of the data packet for the sequence number k, indicating an error for a task associated with the plurality of data packets.

25. The method of any of claims 17-24, wherein the worker node is a leaf node of the LAT.

26. The method of any of claims 17-25, wherein the distributed computing system is an Ethernet-based data center network and the plurality of data packets are associated with gradient tensors in a distributed artificial intelligence (Al) training operation.

27. A system comprising:a logical aggregation tree (LAT) comprising a plurality of worker nodes, one or more aggregation switches, and a root node, wherein:Atty. Docket No. 4502-91200 (6000819PCT01)an individual aggregation switch of the one or more aggregation switches is configured to:receive, from one or more child nodes of the individual aggregation switch in the LAT, a plurality of data packets, each of the data packets being for a corresponding sequence number;aggregate, for each sequence number, data from respective ones of the received plurality of data packets; andupon determining that fewer than all child nodes expected to contribute for a sequence number have contributed, transmit a trimmed packet toward the root node in the LAT, the trimmed packet comprising a header for the sequence number and no payload, andthe root node is configured to:maintain, for each sequence number, a record of worker nodes that have contributed data for aggregation based on trimmed packets received from the one or more aggregation switches;upon receiving a complete aggregation result for a sequence number, transmit an acknowledgment (ACK) toward the plurality of worker nodes along the LAT; and upon detecting a failure to receive a complete aggregation result for a sequence number, transmit a negative acknowledgment (NACK) to each worker node not indicated in the maintained record.

28. The system of claim 27, wherein an individual worker node of the plurality of worker nodes is configured to:transmit, to a parent aggregation switch in the LAT, a plurality of data packets associated with respective sequence numbers within a transmission window;upon receiving an ACK for a lowest unacknowledged sequence number in the transmission window,advance the transmission window; andtransmit at least one additional data packet for a sequence number corresponding to a next available sequence number within the transmission window after the advancing; andAtty. Docket No. 4502-91200 (6000819PCT01)upon detecting a failure to receive an ACK for a sequence number k based on expiration of a timeout period for the sequence number k or a receipt of a complete aggregation result for a sequence number greater than the sequence number k, retransmit a data packet for the sequence number k.

29. The system of claim 28, wherein the individual aggregation switch is further configured to:maintain, in a buffer, intermediate aggregation results for a window of M consecutive sequence numbers, wherein M is the same size as the transmission window of the individual worker node; andupon receiving an ACK for a lowest unacknowledged sequence number in the window, advance the window and release the buffer allocated for the sequence number.

30. The system of claim 29, wherein the individual aggregation switch is further configured to:upon receiving the ACK from an immediate parent node of the individual aggregation switch in the LAT, multicast the ACK to the one or more child nodes in the LAT.

31. An apparatus comprising:one or more processors, anda memory storing program instructions that, when executed by the one or more processors, cause the apparatus to perform the method according to any of claims 1-7.

32. An apparatus comprising:one or more processors, anda memory storing program instructions that, when executed by the one or more processors, cause the apparatus to perform the method according to any of claims 8-16.

33. An apparatus comprising:one or more processors, andAtty. Docket No. 4502-91200 (6000819PCT01)a memory storing program instructions that, when executed by the one or more processors, cause the apparatus to perform the method according to any of claims 17-26.

34. A non-transitory computer readable medium comprising a computer program product for use by a computer system, the computer program product comprising computer executable instructions stored on the non-transitory computer readable medium that, when executed by one or more processors, cause the computer system to execute the method of any of claims 1-7.

35. A non-transitory computer readable medium comprising a computer program product for use by a computer system, the computer program product comprising computer executable instructions stored on the non-transitory computer readable medium that, when executed by one or more processors, cause the computer system to execute the method of any of claims 8-16.

36. A non-transitory computer readable medium comprising a computer program product for use by a computer system, the computer program product comprising computer executable instructions stored on the non-transitory computer readable medium that, when executed by one or more processors, cause the computer system to execute the method of any of claims 17-26.

37. An apparatus comprising:means for receiving, from an aggregation switch in a logical aggregation tree (LAT), a trimmed packet comprising a header and no payload, the header identifying a sequence number i and a child node of the aggregation switch that contributed data for the sequence number i, and the trimmed packet indicating that the aggregation switch has aggregated data from fewer than all child nodes of the aggregation switch for the sequence number i;means for maintaining, for each sequence number, a record of worker nodes that have contributed data for aggregation based on trimmed packets received from one or more aggregation switches in the LAT;means for transmitting, upon receiving a complete aggregation result based on data contributed from all worker nodes expected to contribute for the sequence number i, an acknowledgment (ACK) for the sequence number i along the LAT toward the worker nodes; andAtty. Docket No. 4502-91200 (6000819PCT01)means for transmitting, upon detecting a failure to receive a complete aggregation result for a sequence number k, a negative acknowledgment (NACK) to each worker node expected to contribute for the sequence number k but not indicated in the record maintained for the sequence number k.

38. An apparatus comprising:means for receiving, from one or more child nodes of the aggregation switch in the LAT, a plurality of data packets, each of the data packets comprising a payload and being associated with a corresponding sequence number;means for aggregating, for each sequence number, payload data from respective ones of the received plurality of data packets for the sequence number; andmeans for transmitting, upon determining that fewer than all child nodes expected to contribute for a sequence number i have contributed, a trimmed packet to a root node in the LAT, the trimmed packet comprising a header and no payload, the header identifying the sequence number i and a first child node of the one or more child nodes that contributed a first data packet of the plurality of data packets, the first data packet being associated with the sequence number i.

39. An apparatus comprising:means for transmitting, to a parent aggregation switch in a logical aggregation tree (LAT), a plurality of data packets associated with respective sequence numbers within a transmission window;means for advancing, upon receiving an acknowledgment (ACK) for a lowest unacknowledged sequence number i in the transmission window, the transmission window; and means for transmitting at least one additional data packet for a sequence number corresponding to a next available sequence number within the transmission window after the advancing; andmeans for retransmitting, upon detecting a failure to receive an ACK for a sequence number k, a data packet for the sequence number k.