Network interface device-based computing
By performing set operations and packet expansion in the network interface device, the connection interruption problem caused by the switch intentionally discarding packets in RDMA RC communication is solved, and network bandwidth utilization and communication reliability in machine learning training is improved.
Patent Information
- Application Number
- CN202311842176.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-05-22
- Filing Date
- 2023-12-29
- Publication Date
- 2024-11-22
AI Technical Summary
When using parameter server architecture for machine learning training, in RDMA RC communication, the switch intentionally discards packets may cause connection interruption, making it difficult to distinguish discarded from discarded and discarded caused by network buffer overflow or corruption, affecting network bandwidth utilization and communication reliability.
By performing a collection operation in a network interface device, using a programmable matching action circuit to reduce the packet size during the ReduceScatter and Allgather process, store the payload and update the packet header if necessary, realize packet expansion and forwarding, reduce network services and maintain connections reliability.
It effectively reduces network bandwidth consumption, improves communication reliability and system performance, and avoids connection interruption problems caused by packet discarding.
Smart Images

Figure CN119011309A_ABST
Abstract
Description
[0001] Related Applications
[0002] This application is a continuation-in-part of U.S. patent application serial number 17 / 515,222 filed on October 29, 2021 (attorney docket number AD7879-US). The contents of that application are incorporated herein in their entirety. Background Art
[0003] Figure 1 A conventional end-to-end solution for machine learning (ML) training using a parameter server (PS) architecture is shown. The PS architecture includes a worker 100 and a parameter server (PS) 120 communicatively coupled using a switch 110. The end-to-end solution of the PS architecture includes reduce-scatter and allgather operators. When a job starts, if the system uses a remote direct memory access (RDMA) reliable connection (RC) (RDMA RC) (e.g., Internet Engineering Task Force (IETF) Network Working Group RFC 5040 "Remote Direct Memory Access Protocol Specification") as a network transport protocol, the worker sets up an RC queue pair with at least one PS. Figure 1 Worker 1 is shown to have three queue pairs (QPs), and the QPs are connected to the PS. Worker 2 and Worker 3 also utilize three QPs, and the QPs are connected to the PS.
[0004] In the reduce-scatter operator, the worker sends the partitions of the data to the corresponding PS. For example, partition a1 from Worker1, partition a2 from Worker2, and partition a3 from Worker3 are sent to PS1, partition b1 from worker1, partition b2 from worker2, and partition b3 from worker3 are sent to PS2, and a similar pattern applies to PS3. As a result, data is spread across multiple parameter servers to utilize parallel computing of, for example, a graphics processing unit (GPU) located at the parameter server. After receiving the data, the PS first performs aggregation on the data from the worker. Next, the PS uses the GPU to perform calculations, such as optimization of the aggregated data. Note that parameter servers and workers can be implemented as processes that can be executed on the same machine or the same GPU.
[0005] In the Allgather operator, data processed by the GPU is multicast to the workers. The parameter server sends the same copy of the data to the workers. In this process, the bandwidth from one parameter server is distributed to all the workers, and the network may be the bottleneck. BRIEF DESCRIPTION OF THE DRAWINGS
[0006] Figure 1 An example system is depicted.
[0007] Figure 2 Depicted are example packet formats that can be utilized by a sender worker or sender parameter server.
[0008] Figure 3 An example system is depicted.
[0009] Figure 4 Depicts an example operation of a reduce-scatter operation.
[0010] Figure 5 Depicted is example pseudo code for a reduce-scatter operation at a network interface device.
[0011] Figure 6 An example system capable of performing packet expansion is depicted.
[0012] Figure 7 An example of grouping expansion is depicted.
[0013] Fig. 8A and 8B An example process is depicted.
[0014] Fig. 9A An example network interface device is depicted.
[0015] Fig. 9B An example switch is depicted.
[0016] Fig. 9C An example switch is depicted.
[0017] Fig.10 An example system is depicted. DETAILED DESCRIPTION
[0018] For communications involving, for example, neural networks, Remote Direct Memory Access (RDMA) Reliable Connections (RC) (RDMARC) are connection-based and track the connections between end hosts or nodes (e.g., Figure 1 If a packet does not arrive at the receiver, a packet retransmission can be triggered. Connection semantics can be disrupted when a switch performs in-network computations (rather than the host) by processing packets and intentionally drops packets to reduce network traffic. Thus, if an expected packet is not received at the end-host receiver, the end-host cannot distinguish whether the switch intentionally consumed the packet (e.g., terminated the packet) or the network dropped the packet due to buffer overflow or corruption. However, in RDMA RC-based communications, dropped packets can disrupt the connection.
[0019] In-network computing (INC) can be implemented using different transport protocols. In a network interface controller reliable connection (NIC-RC), the host is the transport protocol endpoint. The networking switch device can perform a collection operation. Thus, the end host has to receive the packet to achieve a reliable connection. The use of INC can reduce bandwidth (BW) utilization by performing a collection operation in a network device (e.g., a switch). If the original complete packet is sent, no BW savings will be achieved because the packet size is not reduced. In order to achieve the BW requirement reduction goal, the networking switch device can reduce the size of the transmitted packet after the collection operation in the network. This can save downstream BW during ReduceScatter. Similarly, the reverse action during AllGather can save upstream BW. During AllGather, the host can convert its data stream to other hosts. NIC-RC can save upstream BW by the source host sending only one copy of the data, the network device keeping a copy of the payload, the source host sending a header-only packet to the destination host, and the networking switch device extending the header-only packet to the full payload size (e.g., up to the maximum transmission unit (MTU) packet size).
[0020] In some examples, the programmable matching action circuit of the inlet pipeline or the outlet pipeline of the network interface device can perform calculations on the data in combination with at least reduce-scatter and Allgather processes. By utilizing the programmability of the inlet pipeline or the outlet pipeline, the reduce-scatter process enables the inlet pipeline or the outlet pipeline to perform multicast operations of the aggregation phase (e.g., summation, minimum-maximum, etc.) and / or the Allgather phase. The multicast operation can involve the PS sending a complete payload packet to the network interface device (e.g., switch 110), and wherein the network interface device stores the payload. The network interface device can receive a dummy packet (e.g., a packet with a header but no data in the packet payload) from the PS, and the network interface device can insert or replace the payload of the dummy packet with the stored payload to provide an updated packet, and forward the updated packet to one or more workers.
[0021] A packet may refer to a set of various formats of bits that can be sent across a network, such as an Ethernet frame, an Internet Protocol (IP) packet, a Transmission Control Protocol (TCP) segment, a User Datagram Protocol (UDP) datagram, etc. For example, a packet can include one or more headers and a payload, and encapsulate one or more packets with a header and / or a payload. One or more headers can include one or more of the following: an Ethernet header, an IP header, a TCP header, a UDP header, or an InfiniBand Industry Association (IBTA) header. The header can be used to control the flow of packets through the network to the destination. The header can include information related to addressing, routing, and protocol versions. For example, an IP header can include information about an IP protocol version, a header length, a type of service used, a packet's lifetime (TTL), source and destination addresses. For example, a header can include N-tuple information, such as a source address, a destination address, an IP protocol, a transport layer source port, and / or a destination port.
[0022] A flow can be a sequence of packets being transferred between two endpoints, generally representing a single session using a known protocol. Thus, a flow can be identified by a defined set of tuples, and for routing purposes, a flow is identified by two tuples (e.g., source address and destination address) that identify the endpoints. For content-based services (e.g., load balancers, firewalls, intrusion detection systems, etc.), flows can be distinguished at a finer granularity by using N-tuples (e.g., source address, destination address, IP protocol, transport layer source port and / or destination port). Packets in an expected flow have the same set of tuples in the packet header. The packet flow to be controlled can be identified by a combination of a tuple (e.g., Ethernet type field, source and / or destination IP address, source and / or destination user datagram protocol (UDP) port, source / destination TCP port, or any other header field) and a unique source and destination queue pair (QP) number or identifier.
[0023] References to flows may alternatively or additionally refer to tunnels (e.g., Multiprotocol Label Switching (MPLS) Label Distribution Protocol (LDP), Segment Routing over IPv6 Data Plane (SRv6) source routing, VXLAN tunneling services, GENEVE tunneling services, virtual local area network (VLAN)-based network slicing, the techniques described in Mudigonda, Jayaram et al., “Spain: Cots data-center ethernet for multipathing over arbitrary topologies,” NSDI. Vol. 10, 2010 (hereinafter “SPAIN”), and the like.
[0024] In the reduce-scatter phase, one or more workers can send complete payload packets to the network interface device, and the network interface device forwards header packets (e.g., packets with headers but no payload) to the PS before receiving the total number of worker packets. When the network interface device receives the total number of worker packets, the network interface device forwards the packets with the calculated results to the PS. For forwarded packets in which payload is added or removed, the header fields can be updated as described herein.
[0025] In the Allgather phase, the PS can send a complete payload packet (e.g., a packet with a header and a payload) to a worker through a network interface device. The data in the complete payload packet can be the same or different from the payload with the calculated result received from the network interface device. The PS can send a collection of header packets (e.g., packets with a header but no payload) to other workers through a network interface device. The network interface device can forward the packet to the worker. The network interface device can store the payload from the complete payload packet and insert the stored payload into the payload of the header packet. The worker can receive at least one complete payload packet. For forwarded packets in which a payload is added or removed, the header fields can be updated as described herein.
[0026] In the reduce-scatter phase, the worker can send a complete payload packet to the network interface device, and the network interface device forwards the header of the complete payload packet (e.g., a header packet) to the PS. The network interface device stores the results of the calculation to be inserted into the header packet. For forwarded packets in which payload is added or removed, the header fields can be updated as described herein.
[0027] In the Allgather phase, the PS can send a header packet to the network interface device, which inserts the results of the calculations stored in the reduce-scatter phase into the header packet and forwards the packet with the calculated results to the worker. For forwarded packets with added or removed payloads, the header fields can be updated as described herein.
[0028] In some examples of INC, a switch (or other network interface device) can store a single-segment packet (e.g., header-only or dummy packet), and when scheduling such a packet for dequeue, the switch can extend the packet by reading the packet segment multiple times instead of a single read, where the number of times the segment is read before releasing the segment can be based on the size of the extended packet. In the extended packet, the switch can replace irrelevant or filler data of the copied packet with data (e.g., data from another packet, calculated data, or stored data) and insert an end-of-packet marker. Thus, multiple copies of the single-segment packet can be inserted into a packet processing pipeline, and the packet processing pipeline can insert the data into the blank or irrelevant portion of the extended packet.
[0029] Figure 2 An example packet format that can be utilized by a sender worker or a sender parameter server is depicted. Packet 200 can be implemented as an RDMA over Converged Ethernet (RoCE) v2 consistent packet, but other packet formats and packet specifications can be used. For example, RoCE v2 packets can be used to transfer data from a worker to a parameter server or from a parameter server to a worker. The supplement to InfiniBandTM Architecture Specification Volume 1 Version 1.2.1 Appendix A17: RoCEv2 (2014) provides example descriptions of various headers in packet 200. Field Immediate can include a 32-bit RDMA header and include user-defined data. In some examples, the field immediate of packet 200 can include at least a pool index start point 202, a worker identifier (id) 204, and a direction or operation 206.
[0030] The field pool index start point 202 can allow support for multiple parameter servers and attempt to avoid overlapping pool slots. In order to process data in the network interface device, the data can be stored in a slot in the memory of the network interface device. The pool can include multiple packet memory slots and a field pool index start point 202. The field pool index start point 202 can identify a specific slot in the memory to store the packet data, which is an offset from the start point calculated based on the packet sequence number in the basic transmission header (BTH) field. The endpoint sender can set the value of the field pool index start point 202, and the field can be assigned by the job scheduler (e.g., orchestrator) at or before the start of the workload.
[0031] The job scheduler can share job parameters such as reduction ID, rank, total number of workers with the software defined networking (SDN) controller. The SDN controller can assign a certain number of slots per reduction, such as a range of memory slots, not exceeding the starting index of the number of slots for packets in flight. The slots can be released at the end of the job.
[0032] In some examples, a queue pair (QP) packet sequence number (PSN) can be initialized to zero. Based on the field pool index starting point, the network interface device can calculate the slot id. The QP at the parameter server (PS) can be associated with the memory area of the PS, and the PS allocates the same memory area for the QP set. Data can be aggregated in the memory area of the switch or network interface device. The memory area of the PS can be used to receive aggregated data from the switch or network interface device.
[0033] The field worker id 204 can identify the specific worker that sent or received the data in the packet. The receiver network interface device can use the field worker id 204 to count the number of workers that have provided data for processing by the receiver network interface device to ensure that workers in a group of workers have been supplied with data for processing before providing the processed data to the host system.
[0034] The following description turns to an example use of field worker id 204. The worker identifier value can be used by the network interface device to distinguish different operations and determine whether all workers in a group of workers have contributed data. In some examples, the worker id can be converted to a bitmap by the network interface device. For example, a worker with an ID of 1 carries a value of 1, which is converted to 00010. Table 2 depicts an example of a conversion from a worker ID to a bitmap. A bitmap can be added to track the number of workers that have sent packets to the network interface device.
[0035]
[0036]
[0037] Table 2
[0038] Data contribution tracking from workers can be done by adding a bitmap associated with the workers that have contributed data to the network interface device. In this example, the contributions of 5 workers are tracked. Table 3 depicts an example of counting data contributions of workers.
[0039] Slot ID Bitmap counter Aggregator Value Field 1 00101 2 data 2 00000 0 No data 3 00111 3 data 4 01101 3 data 5 10101 3 data
[0040] Table 3
[0041] A column slot ID may be a memory slot for storing data generated by a computation operation of a network interface device. A slot has an associated bitmap to track the number of workers that have contributed data to the computation. A column counter can be used to track how many different workers have been provided data to be used in the computation. For example, the computation can include summing, writing, or reading.
[0042] In this example of Table 3, 5 slots are used to store data aggregated from 5 workers. Slot ID=1 has received data from two workers (e.g., workers 0 and 2), slot ID=2 has received no data, slot ID=3 has received data from three workers (e.g., workers 0-2), and so on. After data has been received from workers 0-4, computation operations can be performed and the resulting computations can be copied from the memory slot associated with the slot ID and sent to the host. Aggregated computation data can be stored in registers or memory before being copied or sent to the host.
[0043] The network interface device can inform the orchestrator of memory addresses or slots that can be used to store packet data. The orchestrator can supervise memory usage in the network interface device. The field pool index start point and worker identifier fields can be assigned by the orchestrator and delivered to the endpoint sender. When a job starts, the orchestrator can assign a memory area (e.g., a register range) to one or more associated PSs and assign a worker id to the associated worker(s). In some examples, for write or WRITE-ONLY requests, the immediate field can be populated by a sender worker or a sender PS.
[0044] Field Direction 206 can include the operation that the network interface device performs on the data received in the packet. For example, a value of 0 can indicate that a reduce-scatter operation is to be performed. A value of 1 can indicate that an Allgather operation is to be performed. Other operations can be performed, such as Allreduce, which can be a combination of ReduceScatter and Allgather.
[0045] Figure 3An example system is depicted. The system can be part of a distributed ML or DNN system that is trained or performs inference consistent with SwitchML, message passing interface (MPI), symmetric hierarchical memory access (SHMEM), unified parallel C (UPC), or other. The network interface device 300 can be implemented as one or more of the following: a network interface controller (NIC), a SmartNIC, a router, a switch, a forwarding element, an infrastructure processing unit (IPU), a data processing unit (DPU), a network attached appliance (e.g., a storage device, memory, accelerator, processor, security), etc. The network interface device 300 can be implemented as one or more of the following: one or more processors; one or more programmable packet processing pipelines; one or more accelerators; one or more hardware queue managers (HQM); one or more application specific integrated circuits (ASICs); one or more field programmable gate arrays (FPGAs); one or more graphics processing units (GPUs); one or more memory devices; one or more storage devices; one or more interconnects; one or more network interface devices; one or more servers; one or more computing platforms; a composite server formed by devices connected by a network, fabric, or interconnect; one or more accelerator devices; or other.
[0046] The communication circuit 312 can provide communication with other devices through a network or structure via one or more ports. The communication circuit 312 can be configured to use any one or more communication technologies (e.g., wired communication or wireless communication) and associated protocols (e.g., Ethernet, 4G LTE, 5G, etc.) to perform such communications. The communication circuitry 312 can include one or more network hardware resources, such as ingress queues, egress queues, crossbar switches, shared memory switches, media access control (MAC), physical layer interfaces (PHY), Ethernet port logic, and other network hardware resources.
[0047] The network interface device 300 can utilize the packet processor 302 to process the received packets and prepare the packets for transmission. For example, the calculation 304 can perform one or more of the following: summation, multiplication, division, minimum-maximum or other data calculation operations related to Allreduce, ReduceScatter or Allgather of the packet data with other packet data from other workers. The packet header and data can be stored in the memory 320.
[0048] Data spreading 306 can perform distribution of data and / or packets generated by computation 304 from the PS to one or more associated workers, or from one or more associated workers to the PS, according to an Allreduce, ReduceScatter, or Allgather operation.
[0049] The header processing offload 308 can send or copy the packet header to the server 350 executing PS via packet and / or direct memory access (DMA) copy operations. The operation of the packet processor 302 can be programmed using one or more of the following: configuration files, OneAPI, programming protocol-independent packet processors (P4), open networking software in the cloud (SONiC), Network Programming Language (NPL), DOCA TM , Data Plane Development Kit (DPDK), OpenDataPlane (ODP), Infrastructure Programmer Development Kit (IPDK), eBPF, x86 compatible executable binary, or other executable binary.
[0050] As described herein, packet forming 310 can perform packet expansion. For example, to perform packet expansion, packet forming 310 can read a single packet segment from a memory multiple times, wherein the number of times the segment is read can be based on the size of the expanded packet. Packet forming 310 can form an intermediate version of the expanded packet, the intermediate version including a header and a portion of the single packet segment at the beginning of the expanded packet, followed by irrelevant data or padding data, and ending with a valid end-of-packet indicator. Calculation 304 can replace the irrelevant data or padding data with data (e.g., data from another packet, calculated data, or stored data).
[0051] In some examples, the packet formation 310 can be implemented as a virtual switch. The virtual switch 310 can include software and / or hardware devices that provide one or more of the following: inter-virtual machine (VM) communication; support for link aggregation control protocol (LACP) to control the bundling of several physical ports to form a single logical channel; support for standard 802.1QVLAN model with trunking; multicast snooping; IETF auto-attach SPBM and preliminary required LLDP support; BFD and 802.1ag link monitoring; STP (IEEE 802.1D-1998) and RSTP (IEEE 802.1d-2004); fine-grained QoS control; support for HFSC qdisc; per-VM interface traffic policing; network interface bonding with source-MAC load balancing, active backup, and Layer 4 (L4) hashing; OpenFlow protocol support (including many extensions for virtualization); IPv6 support; support for multiple tunneling protocols (Generic Routing Encapsulation (GRE), Virtual Extensible LAN (VXLAN), Stateless Transport Tunneling (STT), Geneve, support for IPsec); support for remote configuration protocols with C and Python bindings; support for kernel and user space forwarding engine options; multi-table forwarding pipeline with flow cache engine; and forwarding layer abstraction for easy porting to new software and hardware platforms. Non-limiting examples of virtual switches 104 include Open vSwitch (OVS), Vector Packet Processing (VPP), F5 NGINX, HAProxy, Codefresh, and VMware NSX Data Center or others.
[0052] The server 350 can be coupled to the network interface device 300 using a device interface or a network connection, examples of which are described herein. The server 350 can include a processor 352, a memory 360, and at least one of the embodiments described herein. Fig.10 The offload connection maintenance 354 can manage the connection between the worker (not shown) and the PS 356 based on RDMARC or other reliable transport protocols. For example, the connection maintenance 354 can confirm the packet receipt to the sender, and identify whether the packet sequence number is not received from the sender based on the connection context 362 stored in the memory 360, and request packet retransmission.
[0053] Figure 4Depicted is an example operation of a reduce-scatter operation. An RDMARC connection can be established between workers worker1 and worker2 and parameter server PS1. Although the examples herein are described with respect to RDMA RC, other reliable transport protocols such as Amazon SRD, ANR2.0, or others can also be used. In an ML framework and in conjunction with training or inference, worker1 and worker2 can provide data (e.g., gradients or coefficients) to PS1. In some examples, PS1 can represent an endpoint.
[0054] In a reduce-scatter operation, the network interface device 400 can sum the data and send the data to PS1 (after receiving the data from worker1 W1 and worker2 W2). In some examples, W1 can establish an RC connection with QP1 at PS1, and W2 can establish an RC connection with QP2 at PS1. Note that this example is a subset of the aggregation from the job. In some examples, there may be as many parameter servers as the number of workers, but the number of parameter servers and the number of workers may be different. Packet A1 from W1 arrives at the network interface device 400, and the data of A1 is stored. The network interface device 400 updates the worker counter to reflect the receipt of data from W1 and forwards the header to QP1. The network interface controller (NIC) of PS1 sends an ACK packet to W1.
[0055] Packet A2 from W2 arrives at the network interface device 400, and the network interface device 400 performs aggregation. Because there are two workers in total, the aggregation is complete. The network interface device 400 can write the aggregated data (e.g., a=a1+a2) into packet A2 and forward A2 to QP2 at PS1. The NIC of PS1 then sends an ACK for A2 to W2. The network interface device 400 sends the header of A1 and QP2 to PS1, so that PS1 maintains the RC connection with W1 and W2. The payload processing at the network interface device 400 helps reduce the network traffic going to PS1.
[0056] Figure 5An example of an Allgather operation is depicted. The Allgather operation can distribute the results from PS1 to workers W1 and W2. In the Allgather operation, PS1 sends a copy of the data to the network interface device 500 for distribution to workers W1 and W2 by sending the data in a packet to the network interface device 500, and can send a virtual packet to the network interface device 500 to forward to the remaining workers (e.g., W2). PS1 can send a copy of the aggregated data to the network interface device 500 to send to the workers, and PS1 sends a packet header, such as a zero payload RDMA WRITE Only request, to the network interface device 500 to be attached to the aggregated data and sent to (one or more) other workers. PS1 sends a packet encoded with the worker id.
[0057] PS1 first sends data a' from QP2 to the network interface device 500. The network interface device 500 can store the data a' (discard a') and forward the packet to W2. PS1 can send a dummy packet with a packet header from QP1 but without a payload a' to the network interface device 500 for forwarding to W1. However, the network interface device 500 can append the payload a' (pick up a') to the packet header and forward the constructed packet to W1.
[0058] If the starting packet sequence numbers (PSNs) from different hosts are the same, this may cause conflicts on network interface device slots from different parameter servers using the same pool_index. Using pool_index_start_point can avoid conflicts on network interface device slots.
[0059] In some examples, the multicast group of network interface device 500 is not configured to send a' to W1 and W2. Use of built-in multicast groups can involve storing QP information to rewrite packet headers, because multicast copies the same packet to different QPs, and the QP of the PS sends packets to maintain connectivity.
[0060] In RDMA RC mode, the control plane and reliability are managed by the endpoint host system, and connections (e.g., RDMA queue pairs) are established between the endpoint hosts, and therefore, packets (even those processed in the switch) are also transmitted to the endpoint host destination. RDMA RC mode can benefit from bandwidth reduction by truncating the Reduce Scatter (or the Reduce Scatter part of AllReduce) packets and sending header-only packets to the endpoint destination. The host can send header-only packets in conjunction with the AllGather (or the AllGather part of AllReduce) operation. The switch can expand the header-only packets to include the payload and transmit the expanded packets to the endpoint destination. When there is a traffic flow, the collection operation may benefit from in-network computing (INC) at the switch to reduce bandwidth. In the case of AllGather with RDMARC, smaller packet streams can be expanded. For example, the switch can expand a single-segment packet into a multi-segment packet.
[0061] Figure 6 An example system is depicted. The switch 600 can include circuitry 606 that performs header and / or payload extension of a received packet 620 using data from another packet, data in a memory 608 or storage device, or data generated by a computational circuit 602. For example, the computational circuit 602 can perform computations on received packet payload data of one or more packets, such as one or more of the following: minimum, maximum, minimum-maximum, summation, subtraction, multiplication, division, logical operations ("and", "or", "exclusive or" or other), counting, decrementing, or other.
[0062] For example, based on the profile of the ingress packet 620 stored in the profile table 604, such as a packet flow identifier, the packet extension circuit 606 can form an egress packet 630 that includes a portion of the ingress packet 620 (e.g., a header) at the beginning, followed by irrelevant data or padding data, and ends with a valid end-of-packet (EOP) descriptor. The EOP descriptor can be used by the switch to indicate the end of a packet and may not be part of the transmitted packet. The packet extension circuit 606 can replace the irrelevant data or padding data with data from another packet, data in the memory 608 or storage device, or data generated by the computing circuit 602. The switch 600 can provide the egress packet 630 to the egress port for transmission to another switch, a network interface device, or an endpoint host.
[0063] Packet expansion circuit 606 can include or access a packet processing pipeline that can mark the grouping to be extended based on the content of profile table 604. When scheduling the grouping of the mark to be extended for dequeuing from memory 608, packet expansion circuit 606 can read the packet segment multiple times rather than once. In other words, the packet memory segment occupied by the single-segment packet is not released in the egress packet 630 until it is read multiple times to create the extended grouping. Packet expansion circuit 606 can perform packet expansion by accessing a single copy of the storage of the packet segment from memory 608, without the need for additional memory to use additional copies to store the grouping. The number of times this segment is read before it is released can be based on the size of the extended grouping. The extended grouping can meet the scheduling rules and will not cause throughput impact to other ports.
[0064] For example, after receiving a packet and removing the payload of the packet, or before the modified or extended packet goes out, the packet extension circuit 606 can modify the header of the packet. For example, the header of the packet can be updated to change the length of the packet (e.g., header and payload) or the length of the payload or the length of the checksum or cyclic redundancy check (CRC) value. For example, the length field can be updated in one or more of the following: Ethernet header, IP header, TCP header, UDP header, IBTA header or other. One or more checksums or CRC values can be calculated and inserted into one or more packet headers or the end of the packet.
[0065] The dequeue circuit 610 can perform traffic shaping on the egress port and associated queue, and can consider the size of the expanded packet (e.g., packet 630) after expansion for traffic shaping. In some examples, the dequeue circuit 610 can perform traffic scheduling on the egress packets (including the egress packet 630).
[0066] Figure 7 An example of operation is depicted. Based on the dequeue of a packet 702 having a header and a payload or a zero-length payload, a profile table 704 can be accessed. The profile table 704 can be implemented as a match-action table. The action of the packet 702 can be looked up based on an N-tuple of the packet header. The action can specify to extend or not extend the packet or to copy the packet to create a larger packet based on the number of copies of the packet, the number of copies of the dequeued packet 702 to be dequeued, and the size of the resulting packet (e.g., the number of bytes in the extended packet).
[0067] (For example, regarding Fig. 9AThe described) service manager (TM) can sequentially dequeue multiple copies of the packet 702 specified by the profile table 704 into the packet processing pipeline. For example, the packet 702 can be extended to include padding data, and five copies of the packet 702 with the added padding data can be loaded into the packet processing pipeline. In this example, a single copy of the packet 702 is stored in the content memory and can be read multiple times to generate a multi-segment packet. For example, the packet 702 can be sequentially copied to the pipeline from the header area of the first copy of the packet 702 to the bottom of the padding of the fifth copy of the packet 702. The pipeline can replace the padding data (e.g., zero or irrelevant data) of the second to fourth copies of the packet 702 with data loaded from the memory or storage device. The length of each copy can be based on the configuration parameters specified by the data center administrator. The pipeline can insert a packet end (EOP) valid byte at the end of the 5th copy of the packet 702 with padding data, which can be filled with padding data and can be followed by invalid bytes. The pipeline can use EOP to identify the end of the packet used by the pipeline. The pipeline can insert one or more packet checksums or CRC values in one or more packet headers or at the end of the packet before egress.
[0068] Fig. 8A An example process that can be performed at a network interface device is depicted. At 802, the network interface device can be configured to perform at least a computation related to ReduceScatter, Allgather, or Allreduce on data from a worker on behalf of a server. In some examples, the server can be a parameter server. In some examples, the network interface device can be configured to perform data computations (e.g., summation, subtraction, min-max, or other algebraic operations) on data received in a packet. In some examples, the network interface device can be configured to forward a header of a received packet to a parameter server to offload connection maintenance to the parameter server.
[0069] At 804, the network interface device can receive a packet from a worker. The packet can indicate a pool index starting point, identify the worker that sent the packet, and the direction of the operation to be performed on the data. At 806, the network interface device can perform a calculation on the received data based on the indicated operation to be performed on the data. In some examples, the data can include gradients or coefficients, or other values related to ML or DNN training or inference. The network interface device can store the calculation results in a memory slot identified based on the pool index starting point. At 808, the network interface device can update a tracker of which worker contributed the data. For example, the network interface device can count unique workers in a group of workers associated with the operation that have contributed data. At 810, a determination can be made as to whether all workers in the group of workers associated with the operation have contributed data. Based on the fact that all workers in the group of workers associated with the operation have contributed data, the process can proceed to 812, where the network interface device can send a packet to the parameter server, the packet having an aggregate calculation determined based on data from workers in the group of workers associated with the operation. Based on the fact that not all workers in the group of workers associated with the operation have contributed data, the process can proceed to 804. In some examples, at 812, the network interface device can generate an extended packet based on multiple copies of the received packet with padding data, and replace the padding data with data, and include a packet end indicator in the extended packet. For example, the header of the packet can be updated to change the length of the packet (e.g., header and payload) or the payload length or the length field of the checksum or cyclic redundancy check (CRC) value. For example, the length field can be updated in one or more of the following: Ethernet header, IP header, TCP header, UDP header, IBTA header or other. One or more checksums or CRC values can be placed in one or more packet headers or at the end of the packet.
[0070] Figure 8B An example process that can be performed at a network interface device is depicted. At 850, the network interface device can be configured to perform distribution of computation results associated with at least ReduceScatter, Allgather, or Allreduce from a parameter server or the network interface device to workers on behalf of a parameter server. In some examples, the network interface device can be configured to perform data computations (e.g., summation, subtraction, min-max, or other algebraic operations) on data received in packets.
[0071] At 852, the network interface device can receive the calculated result data in a packet from the server to send the calculated result data to a worker in the worker group. At 854, the network interface device can receive a packet without data (a virtual packet) from the server, and the network interface device is to include the calculated result data into the virtual packet to send the calculated result data to the worker identified in the header of the virtual packet.
[0072] In some instances, at 854, the calculated result data may be stored in the network interface device, and the server can send a virtual packet targeted to a worker of the workgroup to the network interface device, and the network interface device can include the calculated result data in the received virtual packet and forward the virtual packet with the calculated result data to the worker.
[0073] In some examples, at 854, the network interface device can generate an extended packet based on multiple copies of the received packet with padding data, and replace the padding data with data, and include a packet end indicator in the extended packet. For example, the header of the packet can be updated to change the length of the packet (e.g., header and payload) or the length of the payload or the length of the checksum or cyclic redundancy check (CRC) value. For example, the length field can be updated in one or more of the following: Ethernet header, IP header, TCP header, UDP header, IBTA header or other. One or more calculated checksums or CRC values can be calculated and inserted into one or more packet headers or at the end of the packet.
[0074] Fig. 9A An example network forwarding system that can be used as a network interface device or a router is depicted. For example, Fig. 9A Several ingress pipelines 920, traffic management units (referred to as traffic managers) 950, and several egress pipelines 930 are illustrated. Although shown as separate structures, in some examples, the ingress pipelines 920 and the egress pipelines 930 can use the same circuit resources. At least the traffic manager 950 and the egress pipelines 930 can generate extended packets based on multiple copies of received packets with padding data, replace the padding data with data, and include an end-of-packet indicator in the extended packets.
[0075] The pipeline operation can be programmed using a protocol-independent packet processor (P4), C, Python, Broadcom NPL or x86 compatible executable binary or other executable binary. In some examples, the pipeline circuit is configured to synchronously process inlet and / or outlet pipeline packets and non-packet data. In other words, the specific stage of the pipeline can process any combination of inlet packets, outlet packets and non-packet data in the same clock cycle. However, in other examples, the inlet and outlet pipelines are separate circuits. In some examples of these other examples, the inlet pipeline also processes non-packet data.
[0076] In some examples, in response to receiving a packet, the packet is directed to one of the inlet pipelines 920, where the inlet pipelines may correspond to one or more ports of a hardware forwarding element. After passing through the selected inlet pipeline 920, the packet is sent to the service manager 950, where the packet is queued and placed in the output buffer 954. In some examples, the inlet pipeline 920 that processes the packet specifies which queue the packet is to be placed in by the service manager 950 (e.g., based on the destination of the packet or the flow identifier of the packet). The service manager 950 then dispatches the packet to the appropriate egress pipeline 930, where the egress pipeline may correspond to one or more ports of a forwarding element. In some examples, there is no necessary correlation between which inlet pipeline in the inlet pipelines 920 processes the packet and which egress pipeline in the egress pipelines 930 the service manager 950 dispatches the packet to. That is, after the packet is received through the first port, it may initially be processed by the inlet pipeline 920b, and then subsequently sent out from the second port by the egress pipeline 930a, and so on.
[0077] At least one ingress pipeline 920 includes a parser 922, a series of multiple match action units or circuits (MAUs) 924, and a deparser 926. Similarly, the egress pipeline 930 can include a parser 932, a series of MAUs 934, and a deparser 936. In some examples, the parser 922 or 932 receives a packet as a set of bits formatted in a specific order and parses the packet into its constituent header fields. In some examples, the parser starts at the beginning of the packet and assigns the header fields to fields (e.g., data containers) for processing. In some examples, the parser 922 or 932 separates the packet header from the payload of the packet (until a specified point) and sends the payload (or the entire packet, including the header and payload) directly to the deparser without MAU processing. The egress parser 932 can use additional metadata provided by the ingress pipeline to simplify its processing.
[0078] The MAU 924 or 934 can perform processing on the packet data. In some examples, the MAU includes a sequence of stages, each of which includes one or more matching tables and an action engine. The matching table can include a set of matching entries to which the packet header fields are matched (e.g., using a hash table), wherein the matching entries reference action entries. When a packet matches a specific matching entry, the specific matching entry references a specific action entry, which specifies a set of actions to be performed on the packet (e.g., sending the packet to a specific port, modifying one or more packet header field values, discarding the packet, mirroring the packet to a mirror buffer, etc.). The action engine of this stage can perform actions on the packet, which is then sent to the next stage of the MAU. For example, using (one or more) MAUs, packet processing, receiving worker data, forwarding packet headers from a worker to a server, or inserting calculated result data into a packet to be sent to a worker, as described herein.
[0079] The inverse parser 926 or 936 can reconstruct the packet using the PHV modified by the MAU 924 or 934 and the payload received directly from the parser 922 or 932. The inverse parser can construct a packet that can be sent out over a physical network or to a traffic manager 950. In some examples, the inverse parser can construct this packet based on data received with the PHV that specifies the protocol to be included in the packet header, and its own stored list of data container locations for the header fields for each possible protocol.
[0080] Traffic manager (TM) 950 can include a packet duplicator 952 and an output buffer 954. In some examples, TM 950 can provide a packet copy to an egress pipeline 930a-930b to perform a packet expansion operation, as described herein. In some examples, traffic manager 950 can include other components, such as a feedback generator for sending a signal about an output port failure, a series of queues and schedulers for these queues, a queue state analysis component, and additional components. The packet duplicator 952 of some examples performs duplication of broadcast / multicast packets, generating multiple packets to be added to an output buffer (e.g., to be distributed to different egress pipelines).
[0081] In some examples, the output buffer 954 can be part of the queuing and buffering system of the service manager. The service manager 950 can provide a shared buffer that accommodates any queuing delays in the egress pipeline. In some examples, the shared output buffer 954 can store packet data, and for each egress pipeline 930, a reference (e.g., a pointer) to the packet data is kept in a different queue. The egress pipeline can request their corresponding data from the common data buffer using a queuing strategy configurable by the control plane. When the packet data reference reaches the head of its queue and is scheduled for dequeueing, the corresponding packet data can be read from the output buffer 954 and enter the corresponding egress pipeline 930.
[0082] Fig. 9B Depicted is an example switch. Various examples can be used in or with a switch to generate an extended packet based on multiple copies of a received packet with padding data, and replace the padding data with data, and include a packet end indicator in the extended packet. The switch can be implemented as a system on a chip (SoC). Switch 964 can route packets or frames of any format or according to any specification from any port 962-0 to 962-X to any port in ports 966-0 to 966-Y (or vice versa). Any port in ports 962-0 to 962-X can be connected to a network of one or more interconnected devices. Similarly, any port in ports 966-0 to 966-Y can be connected to a network of one or more interconnected devices.
[0083] In some examples, the switch fabric 970 can provide routing of packets from one or more ingress ports for processing prior to egress from the switch 964. The switch fabric 970 can be implemented as one or more multi-hop topologies, where example topologies include rings, butterfly, buffered multi-stages, etc., or a shared memory switch fabric (SMSF), among other implementations. An SMSF can be any switch fabric that is connected to an ingress port and an egress port in a switch, where an ingress subsystem writes (stores) packet segments into the fabric's memory, and an egress subsystem reads (extracts) packet segments from the fabric's memory.
[0084] The memory 968 can be configured to store packets received at a port before flowing out from one or more ports. The packet processing pipeline 972 can use a table that maps packet characteristics to associated output ports to determine which port to transfer a packet or frame to. In some examples, the packet processing pipeline 972 can be configured to use information stored in a triple content addressable memory (TCAM) table or an exact match table to perform a matching action on the received packet to identify the packet processing rule and the next hop. For example, a matching action table or circuit can be used whereby a hash of a portion of the packet is used as an index to find an entry. The packet processing pipeline 972 can implement access control lists (ACLs) or packet drops due to queue overflows. The packet processing pipeline 972 can be configured to perform in-network computations, virtual packet forwarding, or modifications to add or remove payloads, as described herein. The operational configuration of the packet processing pipeline 972 (including its data plane) can be programmed using the following: configuration files, OneAPI, programming protocol-independent packet processors (P4), open networking software in the cloud (SONiC), Network Programming Language (NPL), DOCA TM , Data Plane Development Kit (DPDK), OpenDataPlane (ODP), Infrastructure Programmer Development Kit (IPDK), eBPF, x86 compatible executable binary or other executable binary. The processor 976 and FPGA 978 can be used for packet processing or modification.
[0085] Fig. 9C An example switch is depicted. Various examples can be used in or with a switch to generate an extended packet based on multiple copies of a received packet with padding data, and replace the padding data with data, and include a packet end indicator in the extended packet. The switch 980 may include a network interface 982 that can provide an Ethernet consistent interface. The network interface 982 can support 25GbE, 50GbE, 100GbE, 200GbE, 400GbE Ethernet port interfaces. The cryptographic circuit 984 can at least perform media access control security (MACsec) or Internet Protocol Security (IPSec) decryption on the received packet, or perform encryption on the packet to be transmitted.
[0086] The various circuits can perform one or more of the following: service metering, packet counting, operations, operations and management (OAM), protection engine, instrumentation and telemetry, and clock synchronization (eg, based on IEEE 1588).
[0087] The database 986 can store device profiles to configure the operation of the switch 980. The memory 988 can include a high bandwidth memory (HBM) for packet buffering. The packet processor 990 can perform one or more of the following: packet forwarding, packet counting, access list operations, bridging, routing, multi-protocol label switching (MPLS), virtual private LAN service (VPLS), L2VPNs, L3VPN, OAM, data center tunneling encapsulation (e.g., VXLAN and NV-GRE) or other. The packet processor 990 can be configured to perform packet extension and header modification as described herein. The packet processor 990 can include one or more FPGAs. The buffer 994 can store one or more packets. The traffic manager (TM) 992 can provide bandwidth guarantees per subscriber according to a service level agreement (SLA) and perform hierarchical quality of service (QoS). The fabric interface 996 can include a serializer / deserializer (SerDes) and provide an interface to the switch fabric.
[0088] Fig.10 An example computing system is depicted. As described herein, components of system 1000 (e.g., processor 1010, network interface 1050, etc.) perform packet processing, receive worker data, forward packet headers from workers to servers, insert calculated result data into packets to be sent to workers, or generate extended packets based on multiple copies of received packets with padding data, replace padding data with data, and include a packet end indicator in the extended packets. System 1000 includes processor 1010, which provides processing, operation management, and instruction execution for system 1000. Processor 1010 can include any type of microprocessor, central processing unit (CPU), graphics processing unit (GPU), processing core, or other processing hardware for providing processing for system 1000, or a combination of processors. Processor 1010 controls the overall operation of system 1000, and can be or include one or more programmable general or special microprocessors, digital signal processors (DSPs), programmable controllers, application specific integrated circuits (ASICs), programmable logic devices (PLDs), etc. or a combination of such devices.
[0089] In one example, the system 1000 includes an interface 1012 coupled to the processor 1010, which can represent a higher speed interface or a high throughput interface for system components (such as the memory subsystem 1020 or the graphics interface component 1040 or the accelerator 1042) that require a higher bandwidth connection. The interface 1012 represents an interface circuit, which can be a separate component or integrated onto the processor die. Where present, the graphics interface 1040 is connected to the graphics component via an interface for providing a visual display to a user of the system 1000. In one example, the graphics interface 1040 can drive a high-definition (HD) display that provides output to the user. High-definition can refer to a display having a pixel density of approximately 100 PPI (pixels per inch) or greater, and can include formats such as full HD (e.g., 1080p), a retina display, 4K (ultra-high definition or UHD), or other. In one example, the display can include a touch screen display. In one example, the graphics interface 1040 generates a display based on data stored in the memory 1030 or based on operations performed by the processor 1010 or based on both. In one example, graphics interface 1040 generates a display based on data stored in memory 1030 or based on operations performed by processor 1010 , or both.
[0090] The accelerator 1042 may be a fixed function or programmable offload engine that can be accessed or used by the processor 1010. For example, an accelerator among the accelerators 1042 can provide compression (DC) capabilities, cryptography services (such as public key encryption (PKE)), passwords (ciphers), hashing / authentication capabilities, decryption, or other capabilities or services. In some examples, additionally or alternatively, the accelerator among the accelerators 1042 provides field selection controller capabilities as described herein. In some cases, the accelerator 1042 can be integrated into a CPU socket (e.g., a connector to a motherboard or circuit board that includes a CPU and provides an electrical interface to the CPU). For example, the accelerator 1042 can include a single-core or multi-core processor, a graphics processing unit, a logic execution unit, a single-level or multi-level cache, a functional unit that can be used to independently execute a program or thread, an application-specific integrated circuit (ASIC), a neural network processor (NNP), a programmable control logic, and a programmable processing element such as a field programmable gate array (FPGA) or a programmable logic device (PLD). The accelerator 1042 can provide multiple neural networks, CPUs, processor cores, general purpose graphics processing units, or can make a graphics processing unit available for use with an artificial intelligence (AI) or machine learning (ML) model. For example, the AI model can use or include one or more of the following: a reinforcement learning scheme, a Q-learning scheme, deep-Q learning, or asynchronous advantage Actor-Critic (A3C), a combination neural network, a recursive combination neural network, or other AI or ML model. Multiple neural networks, processor cores, or graphics processing units can be made available for use with an AI or ML model.
[0091] Memory subsystem 1020 represents the main memory of system 1000 and provides storage for code to be executed by processor 1010 or data values to be used in executing routines. Memory subsystem 1020 can include one or more memory devices 1030, such as read-only memory (ROM), flash memory, one or more variants of random access memory (RAM) (such as DRAM), or other memory devices or combinations of such devices. Memory 1030 stores and hosts operating system (OS) 1032, among other things, to provide a software platform for executing instructions in system 1000. Additionally, applications 1034 can be executed on the software platform of OS 1032 from memory 1030. Applications 1034 represent programs that have their own operating logic to perform one or more functions. Processes 1036 represent agents or routines that provide auxiliary functions to OS 1032 or one or more applications 1034 or a combination. OS 1032, applications 1034, and processes 1036 provide software logic that provides functions for system 1000. In one example, the memory subsystem 1020 includes a memory controller 1022, which is a memory controller for generating commands and issuing commands to the memory 1030. It will be understood that the memory controller 1022 can be a physical part of the processor 1010 or a physical part of the interface 1012. For example, the memory controller 1022 can be an integrated memory controller integrated onto a circuit with the processor 1010.
[0092] In some examples, OS 1032 may be Server or personal computer, VMware vSphere, openSUSE, RHEL, CentOS, Debian, Ubuntu or any other operating system. The OS and drivers can be Texas etc. sold or designed CPUs.
[0093] In some examples, the driver can configure the network interface 1050 to: perform packet processing, receive worker data, forward the packet header from the worker to the server, insert the result data of the calculation into the packet to be sent to the worker, or generate an extended packet based on multiple copies of the received packet with padding data, and replace the padding data with data, and include a packet end indicator in the extended packet, as described herein. In some examples, the driver can enable or disable the following performance offloading to the network interface 1050: perform packet processing, receive worker data, forward the packet header from the worker to the server, insert the result data of the calculation into the packet to be sent to the worker, or generate an extended packet based on multiple copies of the received packet with padding data, and replace the padding data with data, and include a packet end indicator in the extended packet, as described herein, as described herein. The driver can advertise the ability of the network interface 1050 to perform one or more aspects of the network interface 1050 to: perform packet processing, receive worker data, forward a packet header from a worker to a server, insert computed result data into a packet to be sent to a worker, or generate an extended packet based on multiple copies of a received packet with padding data, and replace the padding data with data, and include an end-of-packet indicator in the extended packet, as described herein. The network interface 1050 can advertise the ability to: perform packet processing, receive worker data, forward a packet header from a worker to a server, insert computed result data into a packet to be sent to a worker, or generate an extended packet based on multiple copies of a received packet with padding data, and replace the padding data with data, and include an end-of-packet indicator in the extended packet, as described herein. Based on commands from the driver, the network interface 1050 can: perform packet processing, receive worker data, forward packet headers from the worker to the server, insert calculated result data into the packet to be sent to the worker, or generate an extended packet based on multiple copies of the received packet with padding data, replace the padding data with data, and include a packet end indicator in the extended packet, as described herein.
[0094] Although not specifically shown, it will be understood that system 1000 can include one or more buses or bus systems between devices, such as a memory bus, a graphics bus, an interface bus or other. A bus or other signal line can couple components together communicatively or electrically, or communicatively and electrically. A bus can include a physical communication line, a point-to-point connection, a bridge, an adapter, a controller or other circuit or combination. For example, a bus can include one or more of the following: a system bus, a peripheral component interconnect (PCI) bus, a super transport or an industrial standard architecture (ISA) bus, a small computer system interface (SCSI) bus, a universal serial bus (USB) or an Institute of Electrical and Electronics Engineers (IEEE) standard 1394 bus (Firewire).
[0095] In one example, system 1000 includes interface 1014, which can be coupled to interface 1012. In one example, interface 1014 represents an interface circuit, which can include independent components and integrated circuits. In one example, multiple user interface components or peripheral components or both are coupled to interface 1014. Network interface 1050 provides the ability to communicate with remote devices (e.g., servers or other computing devices) through one or more networks to system 1000. Network interface 1050 can include an Ethernet adapter, a wireless interconnect component, a cellular network interconnect component, a USB (universal serial bus) or other interfaces or proprietary interfaces based on wired or wireless standards. Network interface 1050 can transmit data to a device or remote device in the same data center or rack, which can include sending data stored in a memory.
[0096] Some examples of network interface 1050 are part of an infrastructure processing unit (IPU) or a data processing unit (DPU), or are utilized by an IPU or DPU. An xPU can refer to at least an IPU, a DPU, a GPU, a GPGPU, or other processing unit (e.g., an accelerator device). An IPU or DPU can include a network interface with one or more programmable pipelines or fixed-function processors to perform offloads of operations that might otherwise be performed by a CPU. An IPU or DPU can include one or more memory devices. In some examples, an IPU or DPU can perform virtual switch operations, manage storage transactions (e.g., compression, cryptography, virtualization), and manage operations performed on other IPUs, DPUs, servers, or devices.
[0097] In one example, system 1000 includes a storage subsystem 1080 that stores data in a non-volatile manner. Volatile memory is memory whose state (and therefore the data stored therein) is indeterminate if power to the device is interrupted.
[0098] In an example, the system 1000 can be implemented using an interconnected computing sled of processors, memory, storage devices, network interfaces, and other components. High-speed interconnects such as Ethernet (IEEE 802.3), Remote Direct Memory Access (RDMA), InfiniBand, Internet Wide Area RDMA Protocol (iWARP), Transmission Control Protocol (TCP), User Datagram Protocol (UDP), Quick UDP Internet Connection (QUIC), RDMA over Converged Ethernet (RoCE), Peripheral Component Interconnect Express (PCIe), Intel Quick Path Interconnect (QPI), Intel Ultra Path Interconnect (UPI), Intel System-on-Chip Fabric (IOSF), Omni-path, Compute Express Link (CXL), HyperTransport, High-Speed Fabric, NVLink, Advanced Microcontroller Bus Architecture (AMBA) Interconnect, OpenCAPI, Gen-Z, Infinity Fabric (IF), Cache Coherent Interconnect for Accelerators (CCIX), 3GPP Long Term Evolution (LTE) (4G), 3GPP 5G, and variants thereof can be used. The data can be copied and stored to a virtualized storage node, or it can be accessed using a protocol such as NVMe over Fabric (NVMe-oF) or NVMe.
[0099] Examples herein may be implemented in various types of computing, smart phones, tablets, personal computers, and networking devices such as switches, routers, racks, and blade servers, such as those employed in data center and / or server farm environments. Servers used in data centers and server farms include array server configurations, such as rack-based servers or blade servers. These servers are communicatively interconnected via various network supplies, such as partitioning a server set into a local area network (LAN), with appropriate switching and routing facilities between the LANs to form a private intranet. For example, cloud hosting facilities may typically employ large data centers with a large number of servers. A blade includes a separate computing platform configured to perform server-type functions, i.e., a "server on a card." Thus, each blade includes components common to conventional servers, including a main printed circuit board (motherboard) that provides internal wiring (e.g., a bus) for coupling appropriate integrated circuits (ICs) and other components mounted to the board.
[0100] In some examples, the network interfaces and other examples described herein can be used in conjunction with base stations (e.g., 3G, 4G, 5G, etc.), macro base stations (e.g., 5G networks), pico base stations (e.g., IEEE 802.11-compatible access points), nano base stations (e.g., for point-to-multipoint (PtMP) applications), on-premises data centers, off-premises data centers, edge network elements, fog network elements, and / or hybrid data centers (e.g., data centers that use virtualization, cloud, and software-defined networking to deliver application workloads across physical data centers and distributed multi-cloud environments).
[0101] Various examples can be implemented using hardware elements, software elements or a combination of the two. In some examples, hardware elements may include devices, components, processors, microprocessors, circuits, circuit elements (e.g., transistors, resistors, capacitors, inductors, etc.), integrated circuits, ASICs, PLDs, DSPs, FPGAs, memory cells, logic gates, registers, semiconductor devices, chips, microchips, chipsets, etc. In some examples, software elements may include software components, programs, applications, computer programs, applications, system programs, machine programs, operating system software, middleware, firmware, software modules, routines, subroutines, functions, methods, processes, software interfaces, application program interfaces (APIs), instruction sets, computing codes, computer codes, code segments, computer code segments, words, values, symbols or any combination thereof. Determining whether to use hardware elements and / or software elements to implement examples may vary according to any number of factors, such as desired computing rates, power levels, heat resistance, processing cycle budgets, input data rates, output data rates, memory resources, data bus speeds, and other design or performance constraints, as desired for a given implementation. A processor may be a hardware state machine, digital control logic, a central processing unit, or one or more combinations of any hardware, firmware, and / or software elements.
[0102] Some examples may be implemented using or as an article of manufacture or at least one computer-readable medium. A computer-readable medium may include a non-transitory storage medium for storing logic. In some examples, a non-transitory storage medium may include one or more types of computer-readable storage media capable of storing electronic data, including volatile or non-volatile memory, removable or non-removable memory, erasable or non-erasable memory, writable or rewritable memory, etc. In some examples, logic may include various software elements, such as software components, programs, applications, computer programs, applications, system programs, machine programs, operating system software, middleware, firmware, software modules, routines, subroutines, functions, methods, processes, software interfaces, APIs, instruction sets, computing codes, computer codes, code segments, computer code segments, words, values, symbols, or any combination thereof.
[0103] According to some examples, a computer-readable medium may include a non-transitory storage medium for storing or maintaining instructions, which, when executed by a machine, a computing device, or a system, causes the machine, the computing device, or the system to perform methods and / or operations according to the described examples. The instructions may include any suitable type of code, such as source code, compiled code, interpreted code, executable code, static code, dynamic code, etc. The instructions may be implemented according to a predefined computer language, manner, or syntax for commanding a machine, a computing device, or a system to perform a certain function. The instructions may be implemented using any suitable high-level, low-level, object-oriented, visual, compiled, and / or interpreted programming language.
[0104] One or more aspects of at least one example may be implemented by representative instructions stored on at least one machine-readable medium representing various logic within the processor, which when read by a machine, computing device or system causes the machine, computing device or system to fabricate logic for performing the techniques described herein. Such representations, known as "IP cores," may be stored on a tangible, machine-readable medium and supplied to various customers or manufacturing facilities to load into the fabrication machines that actually fabricate the logic or processor.
[0105] The appearance of the phrase "an example" or "example" does not necessarily refer to the same one or more examples. Any aspect described herein can be combined with any other aspect or similar aspect described herein, regardless of whether these aspects are described with respect to the same figure or element. The division, omission or inclusion of block functions depicted in the accompanying drawings does not imply that the hardware components, circuits, software and / or elements used to implement these functions will necessarily be divided, omitted or included in the examples.
[0106] The expressions "coupled" and "connected" and their derivatives may be used to describe some examples. These terms are not necessarily intended to be synonymous with each other. For example, descriptions using the terms "connected" and / or "coupled" may indicate that two or more elements are in direct physical or electrical contact with each other. However, the term "coupled" may also mean that two or more elements are not in direct contact with each other, but still cooperate or interact with each other.
[0107] The terms "first", "second", etc. do not refer to any order, quantity or importance in this article, but are used to distinguish one element from another element. The terms "a and an" do not refer to the limitation of quantity in this article, but refer to the existence of at least one of the reference items. The term "asserted" used in this article with reference to a signal refers to the state of a signal, wherein the signal is active, and it can be realized by applying any logic level of logic 0 or logic 1 to the signal. The term "following" or "after..." may refer to immediately following or following a certain or certain other events. Other operation sequences may also be performed according to alternative examples. In addition, depending on the specific application, additional operations may be added or removed. Any combination of variations may be used, and those of ordinary skill in the art who benefit from the present disclosure will understand its many variations, modifications and alternative examples.
[0108] Unless specifically stated otherwise, disjunctive language such as the phrase "at least one of X, Y, or Z" is otherwise understood within the context as generally used to present items, terms, etc., otherwise disjunctive language such as the phrase "at least one of X, Y, or Z" can be X, Y, or Z, or any combination thereof (e.g., X, Y, and / or Z). Thus, such disjunctive language is generally not intended to, and should not, imply that certain examples require that at least one of X, at least one of Y, or at least one of Z each be present. Additionally, conjunctive language such as the phrase "at least one of X, Y, and Z" should also be understood to mean X, Y, Z, or any combination thereof, including "X, Y, and / or Z," unless specifically stated otherwise.
[0109] Illustrative examples of the devices, systems, and methods disclosed herein are provided below. Examples of devices, systems, and methods may include any one or more and any combination of the examples described below.
[0110] Example 1 includes one or more examples and includes a device comprising: a network interface device, the network interface device comprising: a circuit, which when operated is used to: receive a first packet including a first packet header and a first packet payload; receive multiple subsequent packets, the multiple subsequent packets including multiple packet headers of corresponding multiple subsequent packets; update at least one of the multiple packet headers; and construct an egress packet, wherein the egress packet includes a corresponding one of the multiple packet headers and the first packet payload.
[0111] Example 2 includes one or more examples wherein at least one of the plurality of subsequent packets includes a payload having fewer bytes than the first packet payload.
[0112] Example 3 includes one or more examples wherein at least one of the plurality of subsequent packets includes a payload having zero bytes.
[0113] Example 4 includes one or more examples, wherein the circuit is to: perform a multicast operation to transmit an egress packet having the first packet payload but having at least one different header field.
[0114] Example 5 includes one or more examples wherein the circuit is to construct an egress packet, wherein the egress packet includes a corresponding one of the plurality of packet headers and a payload of the egress packet includes data generated by a calculation in the network interface device.
[0115] Example 6 includes one or more examples, wherein the circuit is to construct an egress packet, wherein the egress packet includes a corresponding one of the plurality of packet headers and data accessed from a connected memory device.
[0116] Example 7 includes one or more examples, wherein the circuit is used to: construct at least one of the egress packets based on the header and the first packet payload of one of the plurality of subsequent packets by accessing multiple copies of the header of one of the plurality of subsequent packets, adding padding data, and replacing at least a portion of the padding data with the first packet payload and a packet end indicator.
[0117] Example 8 includes one or more examples wherein the first grouped payload is associated with one or more of an Allreduce, ReduceScatter, or Allgather operation of a machine learning (ML) model training operation.
[0118] Example 9 includes one or more examples, wherein the circuit includes: a programmable data plane circuit configured to perform one or more match action operations to construct the egress packet.
[0119] Example 10 includes one or more examples, wherein the network interface device includes one or more of the following: a network interface controller (NIC), a switch, a SmartNIC, a router, a forwarding element, an infrastructure processing unit (IPU), a data processing unit (DPU), or a virtual switch.
[0120] Example 11 includes one or more examples and includes a method comprising: receiving a first packet including a first packet header and a first packet payload; receiving multiple subsequent packets, the multiple subsequent packets including multiple packet headers of corresponding multiple subsequent packets; and constructing an egress packet, wherein the egress packet includes a corresponding one of the multiple packet headers and the first packet payload.
[0121] Example 12 includes one or more examples wherein at least one of the plurality of subsequent packets includes a payload having fewer bytes than the first packet payload.
[0122] Example 13 includes one or more examples and includes performing a multicast operation to transmit an egress packet having the first packet payload but having at least one different header field.
[0123] Example 14 includes one or more examples, and includes constructing a second set of one or more egress packets, wherein the second set of one or more egress packets includes a respective one of the plurality of packet headers and data generated by a calculation in the switch.
[0124] Example 15 includes one or more examples, and includes constructing a second set of one or more egress packets, wherein the second set of one or more egress packets includes a corresponding one of the plurality of packet headers and data accessed from a connected memory device.
[0125] Example 16 includes one or more examples and includes a non-transitory computer-readable medium, the medium including instructions stored thereon, which, if executed by circuitry of a network interface device, causes the circuitry of the network interface device to: receive a first packet including a first packet header and a first packet payload; receive a second packet including a second packet header; and form an egress packet based on the second packet header and the first packet payload.
[0126] Example 17 includes one or more examples wherein the second packet includes a payload having fewer bytes than the first packet payload.
[0127] Example 18 includes one or more examples and includes instructions stored thereon, which if executed by circuitry of a network interface device, causes the circuitry of the network interface device to: perform a multicast operation to transmit an egress packet having the first packet payload and having different header fields.
[0128] Example 19 includes one or more examples and includes instructions stored thereon that, if executed by circuitry of a network interface device, cause the circuitry of the network interface device to: form a second egress packet based on data generated by a calculation in the network interface device.
[0129] Example 20 includes one or more examples and includes instructions stored thereon that, if executed by circuitry of a network interface device, cause the circuitry of the network interface device to: form a second egress packet based on data accessed from a connected memory device.
Claims
1. A device comprising: A network interface device, the network interface device comprising: The circuit, when operated, is used to: receiving a first packet including a first packet header and a first packet payload; receiving a plurality of subsequent packets, the plurality of subsequent packets comprising a plurality of packet headers of a corresponding plurality of subsequent packets; updating at least one of the plurality of packet headers; and An egress packet is constructed, wherein the egress packet includes a corresponding one of the plurality of packet headers and the first packet payload.
2. The device according to claim 1, wherein: At least one of the plurality of subsequent packets includes a payload having fewer bytes than the first packet payload.
3. The device according to any one of claims 1 to 2, wherein: At least one of the plurality of subsequent packets includes a payload having zero bytes.
4. The device according to any one of claims 1 to 3, wherein: The circuit is used to: A multicast operation is performed to transmit an egress packet having the first packet payload but having at least one different header field.
5. The device according to any one of claims 1 to 4, wherein: The circuit is used to: An egress packet is constructed, wherein the egress packet includes a corresponding one of the plurality of packet headers and a payload of the egress packet includes data generated by a calculation in the network interface device.
6. The device according to any one of claims 1 to 5, wherein: The circuit is used to: An egress packet is constructed, wherein the egress packet includes a corresponding one of the plurality of packet headers and data accessed from the connected memory device.
7. The device according to any one of claims 1 to 6, wherein: The circuit is used to: At least one of the egress packets is constructed based on the header of one of the plurality of subsequent packets and the first packet payload by accessing multiple copies of the header of one of the plurality of subsequent packets, adding padding data, and replacing at least a portion of the padding data with the first packet payload and a packet end indicator.
8. The device according to any one of claims 1 to 7, wherein: The first grouped payload is associated with one or more of an Allreduce, ReduceScatter, or Allgather operation of a machine learning (ML) model training operation.
9. The device according to any one of claims 1 to 8, wherein: The circuit comprises: Programmable data plane circuitry is configured to perform one or more match action operations to construct the egress packet.
10. The device according to any one of claims 1 to 9, wherein: The network interface device includes one or more of the following: a network interface controller (NIC), a switch, a SmartNIC, a router, a forwarding element, an infrastructure processing unit (IPU), a data processing unit (DPU), or a virtual switch.
11. A method comprising: receiving a first packet including a first packet header and a first packet payload; receiving a plurality of subsequent packets, the plurality of subsequent packets comprising a plurality of packet headers of a corresponding plurality of subsequent packets; as well as An egress packet is constructed, wherein the egress packet includes a corresponding one of the plurality of packet headers and the first packet payload.
12. The method of claim 11, wherein: At least one of the plurality of subsequent packets includes a payload having fewer bytes than the first packet payload.
13. The method according to any one of claims 11 to 12, comprising: A multicast operation is performed to transmit an egress packet having the first packet payload but having at least one different header field.
14. The method according to any one of claims 11 to 13, comprising: A second set of one or more egress packets is constructed, wherein the second set of one or more egress packets includes a corresponding one of the plurality of packet headers and data generated by the calculation in the switch.
15. The method according to any one of claims 11 to 14, comprising: A second set of one or more egress packets is constructed, wherein the second set of one or more egress packets includes a corresponding one of the plurality of packet headers and data accessed from the connected memory device.
16. A non-transitory computer-readable medium comprising instructions stored thereon, which, if executed by circuitry of a network interface device, cause the circuitry of the network interface device to: receiving a first packet including a first packet header and a first packet payload; receiving a second packet including a second packet header; and An egress packet is formed based on the second packet header and the first packet payload.
17. The computer-readable medium of claim 16, wherein: The second packet includes a payload having fewer bytes than the first packet payload.
18. The computer-readable medium of any one of claims 16-17, comprising instructions stored thereon, which, if executed by circuitry of a network interface device, cause the circuitry of the network interface device to: A multicast operation is performed to transmit egress packets having the first packet payload and having different header fields.
19. The computer-readable medium of any one of claims 16-18, comprising instructions stored thereon, which, if executed by circuitry of a network interface device, cause the circuitry of the network interface device to: A second egress packet is formed based on data generated by the calculation in the network interface device.
20. The computer-readable medium of any one of claims 16-19, comprising instructions stored thereon, which if executed by circuitry of a network interface device, cause the circuitry of the network interface device to: A second egress packet is formed based on data accessed from a connected memory device.
Citation Information
Cited By
Automatic configuration method of spanning tree protocol in K8s cluster based on DPU, controller and system
CN120166028A
Programmable data transmission method and device based on RDMA of ASIC chip
CN121365031A
