Bridging across networks

By using cross-network bridging devices with bus interfaces and bridging circuits in cloud computing data centers, cross-network decomposition and sharing of equipment are realized, which solves the shortcomings in the expansion and flexibility of resource decomposition platforms in the existing technology and improves the efficiency of equipment decomposition. Efficiency and response time, computing and storage services that meet a variety of needs.

CN114153778BActive Publication Date: 2024-09-06MELLANOX TECHNOLOGIES LTD(IL)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111034294.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-09-07
Filing Date
2021-09-03
Publication Date
2024-09-06
Estimated Expiration
2041-09-03

AI Technical Summary

Technical Problem

It is difficult for existing cloud computing data centers to effectively decompose and allocate multiple resources. Especially when dealing with multiple requirements such as data storage, network and image processing, the expansion and flexibility of the resource decomposition platform are insufficient.

Method used

A cross-network bridging device including a bus interface and a bridging circuit is used to exchange and convert system bus transactions and data units between the system bus and the remote processor to achieve cross-network decomposition and sharing of equipment. It supports PCIe, RDMA and other protocols, and provides low-cost Efficient device decomposition method with low CPU overhead and low storage requirements.

Benefits of technology

It achieves efficient decomposition and sharing of equipment, supports multiple communication modes, improves the flexibility and response time of equipment decomposition, and meets the computing and storage service capabilities of various needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114153778B_ABST
    Figure CN114153778B_ABST
Patent Text Reader

Abstract

A cross-network bridging device includes a bus interface and a bridge circuit. The bus interface is configured to connect to a system bus. The bridge circuit is configured to convert between (i) system bus transactions exchanged between one or more local devices coupled to and served by the system bus and one or more remote processors across a network away from the device and (ii) data units conveying the system bus transactions for transmission to and reception from the remote processors as network packets over a network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates generally to cloud computing over communication networks, and more particularly to methods and systems for factoring remote server resources in cloud computing over such networks. Background Art

[0002] Cloud computing providers can use device disaggregation to flexibly allocate a server's resources to multiple remote clients.

[0003] In Meyer et al., "Disaggregated Computing. An Evaluation of Current Trends for Datacentres" (Procedia Computer Science 108C (2017) 685–694), the authors assert that the next generation of data centers will likely be based on an emerging paradigm of disaggregated functional blocks, as opposed to the current state of the motherboard. Multiple functional blocks or modules such as computing, memory, and peripherals will be spread throughout the system and interconnected via one or more high-speed networks.

[0004] In "Scalable Resource Disaggregated Platform That Achieves Diverse and Various Computing Services" by Takashi et al. in NEC Technical Journal, Vol. 9, No. 2, Special Issue on Future Cloud Platforms for ICT Systems, the authors describe future adaptations to the broad range of services provided by cloud data centers, which will require the ability to simultaneously handle multiple demands for data storage, networking, numerical analysis, and image processing from different users, and introduce a resource-disaggregated platform that will be able to perform computations by allocating devices from a resource pool at the device level and scaling individual performance and functionality. Summary of the invention

[0005] Embodiments of the invention described herein provide a cross-network bridging device including a bus interface and a bridge circuit. The bus interface is configured to connect to a system bus. The bridge circuit is configured to convert between (i) system bus transactions exchanged between one or more local devices coupled to and served by the system bus and one or more remote processors across a network away from the device and (ii) data units conveying the system bus transactions for transmission to and reception from the remote processors as network packets over a network.

[0006] In one embodiment, one or more of the local devices include a graphics processing unit (GPU). In another embodiment, one or more of the local devices include a storage device, and one or more of the network packets include NVMe-over-fabrics (NVMe-F) commands.

[0007] In some embodiments, the data unit is formatted as a network packet, and the bridge circuit is configured to transmit and receive the network packet to and from the network adapter. In one embodiment, the bridge circuit is configured to maintain a plurality of queue pairs (QPs), each QP being assigned to a respective connection between a respective local system bus device and a respective remote processor, and to transmit and receive the network packet by scheduling the plurality of QPs. In an example embodiment, the bridge circuit is configured to maintain a plurality of work queue elements queued in the QPs, wherein each work queue element is configured to define one or more of the system bus transactions.

[0008] In a disclosed embodiment, the bridge circuit is configured to generate a data unit by merging two or more of the system bus transactions into a single work queue element. In another embodiment, the bridge circuit is configured to write outbound data units to a memory for transmission over a network as network packets, and to read inbound data units received over the network as network packets from the memory. In yet another embodiment, when converting between data units and system bus transactions, the bridge circuit is configured to modify one or more attributes of one or more of the system bus transactions.

[0009] In some embodiments, the system bus includes a Peripheral Component Interconnect Express (PCIe) bus. In one embodiment, the system bus transaction includes a PCIe transaction layer packet (TLP). In other embodiments, the system bus includes a Compute Express Link (CXL) bus or an Nvlink bus. In an example embodiment, the data unit includes a layer 3 network packet. In another embodiment, the system bus transaction includes a PCIe transaction, and the data unit includes a remote direct memory access (RDMA) packet. In yet another embodiment, the system bus transaction includes a PCIe transaction, and the data unit will be transmitted as a SEND message packet.

[0010] In some embodiments, the bridge circuit is configured to identify that one or more of the system bus transactions include a message signaled interrupt (MSI-X), and in response to the identification, convert the system bus transactions including the MSI-X into one or more RDMA extended reliable connection (XRC) messages. In one embodiment, the bridge circuit is configured to convert the given system bus transaction only in response to identifying that the given system bus transaction matches a predefined criterion. In one embodiment, the bridge circuit is configured to convert the given system bus transaction only in response to identifying that the given system bus transaction is not exchanged with a local system bus address.

[0011] In one embodiment, at least one of the local devices comprises a physical device serviced by the system bus. In another embodiment, one or more of the local devices comprises a virtualized device assigned in a physical device. In some embodiments, when converting between data units and system bus transactions, the bridge circuit is configured to convert between a network address appearing in the data unit and a corresponding device address appearing in the system bus transaction.

[0012] According to an embodiment of the present invention, there is further provided a cross-network bridging device including a bus interface and a bridge circuit. The bus interface is configured to be connected to a system bus. The bridge circuit is configured to convert between (i) system bus transactions exchanged between a local processor coupled to and served by the system bus and one or more remote processors across a network away from the device and (ii) data units conveying system bus transactions for transmission to and reception from remote devices as network packets over a network.

[0013] In one embodiment, the data units are formatted as network packets, and the bridge circuit is configured to transmit and receive network packets to and from the network adapter. In another embodiment, the bridge circuit is configured to write outbound data units to a memory for transmission over a network as network packets, and to read inbound data units received over a network as network packets from the memory.

[0014] According to one embodiment of the present invention, a remote system bus analysis device is also provided, comprising a first computer, a cross-network bridge (CNB) and a second computer. The first computer comprises a system bus. The CNB is configured to convert system bus transactions exchanged on the system bus into network packets and transmit the network packets through a network. The second computer is configured to receive the network packets from the CNB through the network, extract the system bus transactions exchanged through the system bus of the first computer from the received network packets, and analyze the system bus transactions.

[0015] In some implementations, the system bus includes a Peripheral Component Interconnect Express (PCIe) bus.

[0016] According to an embodiment of the present invention, there is also provided a cross-network bridging method, comprising operating one or more local devices coupled to and served by a system bus, using a bridge circuit to convert between (i) system bus transactions exchanged between the one or more local devices and one or more remote processors located across a network and (ii) data units conveying the system bus transactions for transmission to and reception from the remote processors as network packets over the network.

[0017] According to one embodiment of the present invention, there is also provided a cross-network bridging method, including operating a local processor coupled to and served by a system bus, using a bridge circuit to convert between (i) system bus transactions exchanged between the local processor and one or more remote devices located across the network and (ii) data units conveying the system bus transactions for transmission to and reception from the remote devices as network packets over the network.

[0018] According to an embodiment of the present invention, a remote system bus analysis method is also provided, comprising using a cross-network bridge (CNB) to convert system bus transactions exchanged on a system bus of a first computer into network packets, and transmitting the network packets through a network. In a second computer, the network packets are received from the CNB through the network, the system bus transactions exchanged through the system bus of the first computer are extracted from the received network packets, and then the system bus transactions are analyzed.

[0019] The present invention will be more fully understood through the following detailed description of its embodiments in conjunction with the accompanying drawings, in which: BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 is a block diagram schematically illustrating the architecture of a server according to an embodiment of the present invention;

[0021] Figure 2 is a block diagram schematically illustrating a network including a client and a server according to an embodiment of the present invention;

[0022] Figure 3 is a block diagram schematically illustrating allocation of virtual functions of a device to a client central processing unit (CPU) according to an embodiment of the present invention;

[0023] Figure 4 is a sequence diagram schematically illustrating communication with a remote computer in a full tunneling SEND protocol communication mode according to an embodiment of the present invention;

[0024] Figure 5 is a sequence diagram schematically illustrating communication with a remote computer in a full-tunneling hybrid protocol communication mode according to an embodiment of the present invention;

[0025] Fig. 6A is a sequence diagram schematically illustrating communication between a server and a remote client in a single-ended tunnel transfer RDMA protocol communication mode according to an embodiment of the present invention;

[0026] Figure 6B is a sequence diagram schematically illustrating communication between a server and a remote client in a single-ended tunneling SEND protocol communication mode according to an embodiment of the present invention;

[0027] Fig. 7A is a block diagram schematically illustrating PCIe tunnel delivery with multiple concurrent queues complying with PCIe ordering rules according to an embodiment of the present invention;

[0028] Figure 7B is a block diagram schematically illustrating PCIe tunnel transfer with multiple concurrent queues complying with the same cache line ordering rule according to an embodiment of the present invention;

[0029] Figure 8 is a block diagram schematically illustrating PCIe message based interrupt extension (MSI-X) tunnel transmission according to an embodiment of the present invention;

[0030] Fig. 9 is a block diagram schematically illustrating message routing in a cross-network bridge (CNB) according to an embodiment of the present invention;

[0031] Fig.10 is a block diagram schematically illustrating a server computer with a CNB according to an embodiment of the present invention;

[0032] Fig.11 is a flowchart schematically illustrating a process of writing TLP based on single-ended RDMA according to an embodiment of the present invention;

[0033] Fig.12 is a flowchart schematically illustrating a process of reading TLP based on single-ended RDMA according to an embodiment of the present invention; and

[0034] Fig.13 is a block diagram schematically illustrating remote PCIe analysis according to an embodiment of the present invention. DETAILED DESCRIPTION

[0035] Overview

[0036] Device disaggregation allows a computing server that includes a computing device such as a solid state drive (SSD) or a graphics processing unit (GPU) to share the device or portions thereof among multiple remote clients. Computing devices in a server that can be disaggregated and shared by remote clients are hereinafter referred to as "devices" for simplicity.

[0037] Embodiments according to the present invention generally provide an apparatus and method for efficient device decomposition using standard networks and standard network protocols, with low CPU overhead, low storage requirements, and good response time.

[0038] In an embodiment, a device may be coupled to a Peripheral Component Interconnect Express (PCIe) bus and communicate with a remote client via transaction layer packets (TLPs) exchanged by the device over PCIe; the TLPs are tunneled between the device and the client over the network transparently to the device (and in some embodiments transparently to the client).

[0039] Although the following embodiments primarily refer to PCIe and PCIe TLP, other system buses and bus protocols may be used in alternative embodiments; for example, Compute Express Link (CXL) or Nvlink may be used in some embodiments.

[0040] In some embodiments, the server may include a cross-network bridge (CNB) that monitors TLPs over the PCIe bus, determines whether the TLPs are destined for a remote client, and if so, sends a corresponding message to the destination client over the network. In one embodiment, the CNB also receives network messages destined for the device and generates corresponding TLPs on the PCIe.

[0041] In some embodiments, bidirectional tunneling may be used, where both the server and peer client include CNB; in other embodiments, single-end tunneling is used, where only the server includes CNB and client-initiated communications are accomplished through other means (which will be described below).

[0042] In an embodiment, the server's equipment can be decomposed into virtual functions that can be assigned to multiple clients at the same time. In some embodiments, a single client can access virtual functions in more than one server at the same time.

[0043] In one embodiment, the CNB converts the TLP into a remote direct memory access (RDMA) read and / or write message and transmits the message using RDMA over a network protocol, such as RDMA over Infiniband or Converged Ethernet (RoCE) technology (for RoCE context, see, e.g., Shpiner et al., "RoCE Rocks without PFC: Detailed Evaluation," 2017, Proceedings of the Symposium on Kernel Bypass Networks, pp. 25-30 (doi: 10.1145 / 3098583.3098588)). In another embodiment, the CNB converts the TLP into an RDMA send message (hereinafter referred to as a SEND message).

[0044] Above, five example communication modes and corresponding server and client configurations are described:

[0045] Full tunnel transmission SEND protocol mode;

[0046] Full tunneling mixed protocol mode;

[0047] Single-ended tunnel transmission RDMA protocol mode;

[0048] Single-ended tunneling SEND protocol mode; and

[0049] Hybrid Mode

[0050] In an embodiment, both the server and the client maintain a queue pair (QP) to process network messages corresponding to TLPs. In an embodiment, the QP includes one or more work queues to store work queue elements (WQEs) that are associated with network packets scheduled for transmission on the network; for each work queue, there may be a corresponding completion queue that stores completion queue elements (CQEs) that correspond to the WQEs in the work queue.

[0051] In some embodiments, the CNB is configured to maintain read and write work queues and issue WQEs (for execution by the NIC) from the work queues in an order that complies with PCIe ordering rules. In other embodiments, the CNB is configured to issue WQEs in an order that complies with the same cache line ordering rules.

[0052] According to some embodiments, when converting TLPs to network messages, CNB is configured to improve performance by merging multiple messages. In SEND protocol communication mode, CNB is configured to tunnel multiple TLPs in each SEND operation. In RDMA protocol communication mode, for RDMA reads or RDMA writes, CNB is configured to merge a sequence of TLPs for adjacent address ranges into a single message corresponding to a continuous PCIe address space. As described below, merging may also be limited if the merging may violate the ordering rules.

[0053] In various embodiments, TLP tunneling includes tunneling Message-based Interrupt Extension (MSI-X) packets from a computer (server or client) to a single or multiple peers (or to multiple destinations within a peer).

[0054] In one embodiment, the CNB may include a match register that stores comparison data for a TLP header, including a "don't care" field. The match register may also include routing information for a matching TLP. When a TLP traverses the PCIe bus, the CNB compares the TLP header with the comparison data; if a match is found, the CNB may pass the TLP tunnel to the QP based on the TLP header and the routing information stored in the corresponding match register, and the QP will send a communication message to the peer over the network.

[0055] In some embodiments, tunneling a write TLP includes: a) comparing the TLP header to data stored in a matching register; b) determining that the TLP should be tunneled; c) setting a flow ID for the corresponding network packet; d) sending a WQE for execution; and e) receiving a CQE, which signals completion of the WQE execution.

[0056] In an embodiment, tunneling a read TLP is similar to tunneling a write TLP, except that after d), the network will accept a response message from the peer and send a CQE after receiving the response packet.

[0057] According to an embodiment, when the CNB changes a field of a tunneled TLP (such as the requestor ID or TAG), the CNB modifies the ECEC field of the TLP accordingly. In one embodiment, the ECRC is incrementally modified.

[0058] The communication protocols used include, for example, RDMA send, RDMA write, and RDMA read. In other embodiments, the protocol may include non-volatile memory express structure (NVMe-F). Further additionally or alternatively, any other suitable protocol may be used.

[0059] Another embodiment of the present invention provides a system for remote PCIe analysis, including a first computer having a CNB and a PCIe coupled to a network. A second computer coupled to the network can remotely analyze PCIe transactions in the first computer, wherein the CNB of the first computer can be configured to tunnel the PCIe transactions to the second computer for analysis. In some embodiments, the analysis software runs on the second computer and can have an agent running in the first computer.

[0060] In summary, according to an embodiment of the present invention, device resolution is provided by a CNB that tunnels PCIe TLPs to a peer computer using a standard communication protocol and injects TLPs into the PCIe bus in response to receiving messages from the peer computer over the network. The CNB can also be used for remote PCIe diagnostics.

[0061] The disclosed technology can be used in a variety of use cases and environments. In some use cases, one or more disaggregated devices include a GPU. In other use cases, for example, using protocols such as NVMe-F, the disclosed CNB can be used in storage applications.

[0062] In the embodiments described below, the client includes a CPU, but this choice is purely for example. In other embodiments, the disclosed technology can be used to bridge between the device and any other type of client, in particular, between various processors such as GPUs. Therefore, the term "processor" is used herein to refer to CPUs, GPUs, and other suitable processor types.

[0063] System Description

[0064] In the following description, we will use the terms "server" and "client"; while other definitions of client and server may exist, for our purposes, a client is a computer hardware device or software that accesses services provided by a server over a communications network, while a server is a computer dedicated to running services that serve the needs of other computers.

[0065] Although the embodiments described below refer to servers and clients that include a PCIe system bus, other suitable system buses may be used in alternative embodiments including, for example, Computer Express Link (CXL) or Nvlink.

[0066] Figure 11 is a block diagram schematically illustrating the architecture of a server 100 according to an embodiment of the present invention. The server 100 is coupled to a network 102, such as Ethernet or InfiniBand™ (or any other suitable communication network), and is configured to allow clients (not shown) connected to the network to access devices 104. The devices 104 serve as examples of devices that can be decomposed according to the disclosed embodiments. Such devices may include (but are not limited to) solid state disks (SSDs) or graphics processing units (GPUs), field programmable gate arrays (FPGAs), and deep learning inference engines.

[0067] According to an embodiment of the invention, circuitry and suitable software disaggregate the device and expose it to clients coupled to a network.

[0068] Server 100 also includes CPU 106, CPU local memory 108 (which stores local CPU data and instructions), and random access memory (RAM) 110. CPU 106, devices 104, and RAM 110 are coupled to a Peripheral Component Interconnect Express (PCIe) high-speed system bus 112 (other suitable high-speed system buses may be used in alternative embodiments).

[0069] CPU 106 transfers communication packets laterally across network 102 via PCIe bus 112 and network interface controller (NIC) 114. (Although NIC is an Ethernet term, other types of network adapters may be used in alternative embodiments, such as an InfiniBand™ Host Channel Adapter (HCA), or any other suitable network adapter.)

[0070] To allow client processors coupled to network 102 to receive services from device 104, server 100 also includes a cross-network bridge (CNB) 118. Figure 1 In the example implementation illustrated in , CNB 118 is configured to convert between PCIe transaction layer packets (TLPs) and corresponding network packets transparently to CPU 106 (TLPs include one or more PCIe transactions on a PCIe bus).

[0071] In some embodiments, CNB 118 includes a bus interface for connecting to PCIe bus 112, in this example, PCIe interface 120, and a bridge circuit 122 configured to perform various CNB functions. Various CNBs described herein may also have this general structure. In some embodiments, although not required, CNB 118 includes an additional interface for communicating directly with NIC 114. In the following description ( Figure 1and subsequent figures), for simplicity, the actions performed by the bridge circuit are referred to as being performed by the CNB.

[0072] When the server receives packets from the client, either directly or through RAM 110, destined for device 104, CNB receives the packets from NIC 114 and generates corresponding PCIe TLPs that write the data to the device and / or RAM. When device 104 initiates communication with the client, the device generates TLPs through PCIe; CNB intercepts the TLPs, converts the TLPs into communication packets, and sends the packets to the network through NIC 114. (The conversion between packets and TLPs will sometimes be referred to as tunneling.)

[0073] Therefore, according to Figure 1 In an example embodiment, the device 104 is decomposed and exposed to the client; the remote client can communicate with the device using TLP transparently to the server CPU; the CNB bridges to the TLP between packets transmitted laterally between the client and the device transparently to the CPU.

[0074] As can be understood, Figure 1 The configuration of the server 100 illustrated in the figure is an example configuration, which is described purely for the sake of conceptual clarity. Other suitable configurations can be used in alternative embodiments of the present invention. For example, CPU 106 can include multiple CPUs; PCIe bus 112 can be any other suitable bus; local memory 108 can be omitted, and RAM 110 can be omitted. In some embodiments, there can be a hierarchy of local memory and / or RAM; in other embodiments, there can be multiple high-speed system buses and multiple devices.

[0075] According to some embodiments of the present invention, the client computer may further include a computer that is connected to the CNB 118 ( Figure 1 ) Similar or identical cross-network bridges.

[0076] Figure 2 1 is a block diagram schematically illustrating a network 200 including a client and a server according to an embodiment of the present invention. The network 200 includes a packet switching network 102 ( Figure 1 ), which can be Ethernet, InfiniBand TM or any other suitable network, and four computers communicating over the network: a first client 202, a second client 204, a first server 206, and a second server 208. As can be appreciated, additional computers can be coupled to network 102, including but not limited to additional servers and additional clients.

[0077] The client 202 includes a CPU 210, a memory 212, a network interface controller NIC 214, and a cross-network bridge (CNB) 216. Figure 2 In the example implementation illustrated in , all the above-mentioned sub-units of the client 202 are interconnected via a system bus (eg, PCIe).

[0078] When communicating with a server (e.g., server 206 or server 208) coupled to network 102, CPU 210 may use TLPs to send data to a device in the remote server. CNB 216 is configured to intercept such TLPs and transform the TLPs into network packets transparently to the CPU using, for example, the full RDMA protocol or the SEND portion of the RDMA protocol (described below); NIC 214 then sends the packets to the remote server.

[0079] CNB 216 is also configured to receive packets destined for memory 212 from devices in remote servers, transform the input data into TLPs and write the data directly into memory 212 .

[0080] Client 204 includes CPU 218, memory 220, and NIC 222. Client 204 does not include CNB, so to access devices in server 206 or 208, client 204 may use technologies such as RDMA. Client 204 is unaware of the implementation of the remote server, and in particular, does not know whether the remote server includes CNB.

[0081] Server 206 includes CPU 224, memory 226, NIC 228, and device 230 interconnected via a PCIe system bus. Figure 1 ), server 206 supports tunneling and directly converts between network packets and TLP. Server 206 does not know the implementation of the remote client, and in particular does not know whether the remote client includes CNB.

[0082] Server 208 is an example of a more complex server, including CPU 232, memory 234, two NICs 236, CNB 238, and two devices - Device 0 240 and Device 1 242. The two devices can be the same or different types; the two NICs can transmit packets simultaneously, increasing communication bandwidth. CNB 238 is coupled to the two NICs and converts between packets transmitted horizontally through either NIC and the corresponding TLP.

[0083] Therefore, according to Figure 2In the example configuration illustrated in FIG. 1 , various clients and servers can communicate with each other over the network, including servers and clients with or without CNB. The devices in the server are decomposed and exposed to the client. Adding CNB to the client or server is transparent to the software. In addition, adding CNB to the server is transparent to the client served, and adding CNB to the client is transparent to the server providing the service.

[0084] As should be appreciated, the configuration of network 200, including clients 202, 204 and servers 206, 208, is an example configuration described purely for the sake of conceptual clarity. Other suitable configurations may be used in alternative embodiments of the present invention. For example, in some embodiments, some servers may also double as clients, and some clients may access servers through other network elements; in other embodiments, some servers and / or clients may include multiple PCIe buses, and in other embodiments, some servers and / or clients may be an aggregation of multiple coupled computers.

[0085] Figure 3 is a block diagram 300 schematically illustrating allocation of virtual functions of a device to client CPUs according to an embodiment of the present invention. In an example embodiment, the device may include a storage device (eg, SSD) or a GPU, and the virtual functions may include virtual storage or processing functions.

[0086] Three clients are shown - client A 302, client B 304 and client C 306. The clients access the network 102 ( Figure 1 and Figure 2 ) is connected to two devices - device A 308 and device B 310. In some embodiments, the two devices can be in two separate servers; in other embodiments, the two devices can be in the same server.

[0087] according to Figure 3 In the example implementation illustrated in FIG. 1 , each of the two devices is divided into multiple virtual functions (VFs) that are simultaneously mapped to requesting entities (e.g., virtual machines (VMs)) in the client—device A 308 is divided into VF0 312, VF1 314, VF2 316, and VF3 318, while device B 310 is divided into VF0 320 and VF1 322. In the device-to-client TLP, the VF can be identified by the address specified by the client CPU when accessing the device, or by the requester ID or PAS ID that the VF adds to the network transmission.

[0088] according to Figure 3In the example implementation illustrated in , each of VF0 312 and VF1 314 is accessed by client A 302 having a different address range; client A can distinguish between VF0 312 and VF1 314 accesses because they include different requestor ID or PASID fields (the completion indication returned from client A to device A will include the same requestor ID field). In addition, according to Figure 3 In the example implementation of , client B 304 is assigned a single VF - VF2 316 , while client C 306 is assigned three VFs - VF3 318 of device A 308 , VF0 320 of device B 310 , and VF1 322 .

[0089] On the server side, different clients served by the same device can be distinguished based on a unique requestor ID, a PCIe process address space identifier (PASID), or, if the server includes an input-output memory management unit (IOMMU), based on address ranges.

[0090] Note that not all requestor IDs need to be tunneled; some functions can be handled by the local CPU without CNB intervention.

[0091] As should be appreciated, Figure 3 The configuration illustrated in is an example configuration depicted purely for the sake of conceptual clarity. Other suitable configurations can be used in alternative embodiments of the present invention. For example, some server-client communications can be completed through a dedicated network, and some servers can double as clients.

[0092] Communication Mode

[0093] According to an embodiment of the present invention, when a client connects to a server, at least five different client-server communication modes may be used, as summarized in the following table ("acked" is an abbreviation for "acknowledged"):

[0094]

[0095]

[0096] Other suitable modes may be used in alternative embodiments, including but not limited to combinations of the modes herein; for example, in one embodiment, only the client has a CNB.

[0097] In some communication modes, the client CPU may not require a CNB, and any suitable client CPU may be used, as will be described below.

[0098] Full Tunneling Delivery Protocol

[0099] According to an embodiment of the present invention, a full tunneling SEND protocol communication mode can be set up, in which both the client and the server include CNBs, and TLPs in the client and the server are tunneled to the peer computer via SEND messages transmitted laterally over the network (SEND is part of the RDMA protocol).

[0100] Figure 4 FIG. 4 is a schematic diagram illustrating a sequence diagram 400 of communication with a remote computer in a full tunneling SEND protocol communication mode according to an embodiment of the present invention. Since the sequence in the full tunneling SEND protocol communication mode is symmetrical (relative to the client-server), Figure 4 Involving: an initiator (or "requester"), including CPU / device / RAM and CNB; and a responder (or "target"), including CPU / device / RAM and CNB. Either the initiator or the responder can be a client or a server. CPU / device / RAM is an aggregation of PCIe-coupled circuits in a client or a server; typically, the client side does not include a device; and, in some embodiments, either side may not include PCIe memory. For simplicity, we will refer to the CPU / RAM / device aggregation as a CPU complex below.

[0101] Figure 4 The diagram shows the interaction events between the following objects: initiator-side CPU complex 402, initiator-side CNB 404, communication network 406, responder-side CNB 408, and responder-side CPU complex 410. Figure 4 The CNB operations illustrated in FIG. 1 include operations controlled by the CNB but performed by other parts of the NIC. ) Figure 4 Depicted is the write (initiator to responder) flow, followed by the read flow.

[0102] The first three events (starting from the top) depict an initiator-to-responder write. The sequence begins with a PCIe write event 412, where the initiator's CPU performs a write TLP. The initiator-side CNB intercepts the TLP and determines, based on the address range or requester ID (or PASID), that the TLP should be tunneled to the responder (to a remote device for a server, or memory for a client), encapsulates the data from the TLP in a SEND message, and, in a SEND event 414, sends the SEND message over the network 406 to the responder-side CNB 408. The responder-side CNB then generates a TLP corresponding to the initiator-side TLP (of event 412) in a write PCIe event 416; the CNB may correct the address relative to the responder's PCIe base address register (BAR) to point to the responder-specific address range.

[0103] The next six events depict the read from the initiator to the responder. In the PCIe read event 418, the initiator's CPU generates a read TLP from the address range associated with the responder (memory or device). The initiator-side CNB 404 intercepts the TLP and interprets the TLP as a read request. Then, the CNB sends a SEND message corresponding to the read request to the responder-side CNB 408 through the network 406 in the SEND event 420. The responder-side (or requester-side) CNB 408 can change the address (or requester ID) according to the responder PCIE BAR, and in the PCIe read event 422, a read TLP corresponding to the read TLP in the initiator PCIe is generated.

[0104] The CPU complex 410 receives the PCIe read event and responds by generating a TLP corresponding to the completion transaction in a completion event 424, as if responding to a read request initiated by a CPU coupled to the same PCIe. The TLP is intercepted by the responder-side CNB 408, which sends a SEND message encapsulating the completion TLP over the network 406 in a SEND event 426. The initiator-side CNB receives the SEND message and generates a completion TLP in a completion event 428, which corresponds to the responder-side PCIe completion TLP of event 424.

[0105] In conclusion, Figure 4 The example implementation illustrated in describes a full tunneling with a send communication mode, wherein:

[0106] Both the client and the server contain CLBs.

[0107] The CLB captures the TLP and encapsulates the TLP in a SEND message that is sent across the network.

[0108] • In response to a SEND message, the remote CNB injects a TLP and may modify the PCIe requestor ID to the expected local requestor ID (on the client side) or modify the address (on the server side) with respect to the offset of the device (or virtual device) to a BAR in the remote PCIe.

[0109] In a read TLP, the initiator CLB stores the read request tag and sends the corresponding SEND message; the responder generates a response SEND packet and sends it to the initiator; the initiator then tunnels the response to the local PCIe.

[0110] Fully tunneled hybrid protocol

[0111] According to an embodiment of the present invention, a full tunneling hybrid protocol communication mode can be set between a server and a client, wherein both the client and the server include CNB. TLPs in both the client and the server are tunneled to the peer, using SEND messages when writing to the device, and using the RDMA protocol when writing to the client memory.

[0112] Figure 5 5 is a schematic diagram illustrating a sequence diagram 500 of communication with a remote computer in a full tunneling hybrid protocol communication mode according to an embodiment of the present invention. Since the sequence in the full tunneling hybrid protocol mode is symmetric (relative to the client-server), Figure 5 With the above Figure 4 Likewise, an initiator and a responder are involved, both comprising a CPU-RAM-device ("CPU complex") - an initiator side CPU complex 502 and a responder side CPU complex 510. The initiator side also comprises a CNB 504, and the responder side also comprises a CNB 508.

[0113] Figure 5 The first three events (starting from the top) depict a write from the initiator to the responder and can be compared to Figure 4 . The sequence begins with a PCIe write event 512, where the initiator's CPU complex performs a write TLP on PCIe. The initiator's CNB intercepts the TLP, determines that the TLP should be tunneled to the responder, encapsulates the data from the TLP in an RDMA write message, and sends the RDMA write message over the network 406 to the responder-side CNB 508 in an RDMA write event 514. The responder-side CNB then generates a TLP corresponding to the initiator-side TLP (of event 512) in a write PCIe event 516.

[0114] The next six events depict the initiator-to-responder read. At PCIe read event 518, the initiator's CPU complex generates a read TLP from the address range associated with the responder. The initiator-side CNB 504 intercepts the TLP and interprets it as a remote read request; the initiator's CPU complex also stores the tag ID for the read TLP. Next, in SEND event 520, the initiator-side CNB sends a SEND message corresponding to the read request to the responder-side CNB 508 over the network 406, and the responder-side CNB 508 generates a read TLP corresponding to the read TLP in the initiator's PCIe in PCIe read event 522 (event 518).

[0115] The responder-side CPU complex 510 receives the PCIe read event and responds by generating a completion TLP, in completion event 524, as if responding to a read request initiated by a CPU coupled to the same PCIe. The TLP is intercepted by the responder-side CNB 508, which sends a SEND message over the network 406 encapsulating the data returned from the TLP, in SEND event 526. The RDMA write protocol bypasses the initiator-side CNB and is handled by the initiator's CPU complex, which can generate a corresponding TLP to write the input data into local RAM (the initiator's CPU also compares the tags to stored tags to handle out-of-order returned packets).

[0116] Single-ended tunnel transmission RDMA protocol

[0117] According to another embodiment of the present invention, a single-ended tunnel transmission RDMA protocol communication mode can be set between the server and the client, in which only the server includes CNB; therefore, in an embodiment, the server can serve clients that do not include CNB. In addition, in an embodiment, the server is unaware of the configuration of the peer client, which may or may not include CNB.

[0118] Fig. 6A FIG. 6 is a sequence diagram 600 schematically illustrating communication initiated by a server with a remote client in a single-ended tunneling RDMA protocol communication mode according to an embodiment of the present invention.

[0119] Fig. 6A The diagram illustrates interaction events between client-side CPU / RAM 602 , client-side NIC 604 , communication network 406 , server-side CNB 606 , server-side device 608 , and server-side CPU 610 . Fig. 6A A write (server to client) sequence is depicted, followed by a read sequence.

[0120] The first three events (from the top) depict server-to-client writes. The sequence begins with a PCIe write event 612, where the server's device generates a write TLP. The server-side CNB 606 intercepts the TLP, determines that the TLP should be tunneled to the remote client (e.g., based on the address range), encapsulates the data from the TLP in an RDMA write message, and sends the RDMA write message to the client-side CNB 604 over the network 406 in an RDMA write event 614. The client-side CNB then generates a TLP corresponding to the server-side TLP (of event 612) in a PCIe write event 616.

[0121] The next eight events depict a server-to-client read. At PCIe read event 618, the server's device generates a read TLP from the address range associated with the remote client. The server-side CNB 606 intercepts the TLP and interprets it as a read request from the client. The CNB stores the tag ID for the read TLP and, in RDMA read event 620, sends an RDMA read message corresponding to the read request over network 406 to the client-side NIC 604, which generates a read TLP corresponding to the PCIe read TLP in the server PCIe in PCIe read event 622 (event 618).

[0122] The client CPU 602 receives the TLP read message and responds in a message over the network to the server with a completion indication and returned data in a completion data event 624. The message is received by the server-side CNB 606, which generates a completion transaction in a completion event 626.

[0123] Therefore, according to Fig. 6A In the example implementation illustrated in , a server with CNB can communicate with a client that does not include CNB; on the server side, the communication is CPU transparent.

[0124] Single-ended tunneling protocol

[0125] According to an embodiment of the present invention, a single-ended tunneling SEND protocol communication mode may be set between a server and a client, wherein the server includes a CNB and the client includes a CNB agent with reduced functionality (which may be implemented by software).

[0126] Figure 6B is a sequence diagram 650 schematically illustrating server-initiated communication with a remote client in a single-ended tunneling SEND protocol communication mode according to an embodiment of the present invention. Figure 6BThe diagram illustrates interaction events between client-side CPU / RAM 652 , client-side CNB proxy 654 , communication network 406 , server-side CNB 656 , server-side device 658 , and server-side CPU 660 . Figure 6B The write (server to client) flow is depicted, followed by the read flow and tunnel completion signaling.

[0127] The first three events (starting from the top) depict a server-to-client write. The sequence begins with a PCIe write event 662, where the server's device generates a write TLP on PCIe. The server-side CNB intercepts the TLP, determines that the TLP should be tunneled to the remote client (e.g., based on the address range), encapsulates the data from the TLP in a SEND message, and sends the SEND message to the client-side CNB agent 654 over the network 406 in a SEND event 664. The CNB agent 654 will then generate a TLP corresponding to the server-side TLP (of event 662) in a write PCIe event 666.

[0128] The next eight events depict a server-to-client read. At PCIe read event 668, the server's device generates a TLP from the address range associated with the remote client. The server-side CNB 656 intercepts the TLP and interprets it as a read request. The CNB stores the tag ID for the read TLP and, in SEND event 670, sends a SEND message corresponding to the read request over network 406 to the client-side CNB agent 654, which generates a read TLP corresponding to the read TLP in the server PCIe in PCIe read event 672 (event 668).

[0129] The client's CPU / RAM 652 receives the SEND message and responds by generating a completion TLP in a completion event 674, just as if responding to a read request initiated by a device coupled to the same PCIe. The TLP is intercepted by the client-side CNB agent 654, which sends a SEND message encapsulating the completion TLP over the network 406 in a SEND event 676. The server-side CNB receives the message, compares and generates a completion TLP that corresponds to the client-side PCIe complete write event 674.

[0130] Hybrid communication mode

[0131] In still other embodiments of the present invention, a hybrid communication mode may be set between the server and the client, wherein the server only includes the CNB.

[0132] The hybrid communication mode is similar to the single-ended tunneling RDMA protocol, except that it is not fully device-through (the entire device is controlled by the remote client) - the device is controlled by the server's CPU.

[0133] The client's CPU communicates directly with the server's CPU via explicit network requests (e.g., NVME-F command packets), which in turn delivers the request to the CNB. The explicit network request includes the address that the client sends to the device. The device will then perform a TLP read / write from local memory in response to the address that the client has sent.

[0134] In one embodiment, when the hybrid communication mode is operable, the server's CNB is configured to tunnel the TLP with the address sent by the client back to the client using the RDMA protocol.

[0135] As should be appreciated, the various communication modes described above are example modes cited as examples and are shown only for the sake of conceptual clarity. The client-server communication mode according to the disclosed technology is not limited to the above description. In alternative embodiments, other suitable modes may be used. For example, a client including a CNB may communicate with a server that does not include a CNB or includes a CNB agent. In some embodiments, multiple CNBs may be used in a single server and / or a single client. The message sent by the CNB may be sent by the NIC in response to a CNB control indication, or may be sent by collaboration between the NIC and the CNB. A TLP may sometimes include multiple TLPs and a message may include multiple messages.

[0136] Multiple queues and merging

[0137] By definition, PCIe enforces transaction ordering (writes below refer to posted write transactions; e.g., write transactions cannot bypass writes, reads cannot bypass writes, writes can bypass writes, and reads can bypass reads). In some embodiments of the invention that support weaker forms of ordering, where ordering is guaranteed by the structure of the cache (e.g., TLPs target the same cache line or the same subset of the address range used in the cache, such as pages), multiple concurrent queue pairs may be invoked, and / or coalescing of WQEs may be used. (In some embodiments, compression of WQEs may be used in addition to or in lieu of coalescing; in one embodiment, WQEs may be encrypted.)

[0138] Fig. 7A A block diagram 700 schematically illustrates PCIe tunneling with multiple concurrent queues that complies with PCIe ordering rules according to an embodiment of the present invention. Fig. 7AIn the example implementation illustrated in , the cross-network bridge device maintains a single write queue 702, a first read queue 704, a second read queue 706, and a third read queue 708. The write queue 702 includes write requests that must be executed serially—the execution of write request w0 710 must precede the execution of write request w1 712, and the execution of write request w1 712 must precede the execution of write request w3 714.

[0139] Queues 704, 706 and 708 store requests that can be executed in parallel or in any order - read request r0 716, read request r2 718 and read request r3 720. However, a read request may not be executed until a network completion indication is received (from a peer computer) for the corresponding write indicating that the write request has been delivered.

[0140] To improve latency, in some embodiments, some read WQEs are stored in the write queue 702 and will be executed immediately after the previous write WQE without waiting for a completion indication. While reducing latency, this technique also reduces queue parallelism and may reduce performance; therefore, the amount of read WQEs stored in the queue 702 should be carefully adjusted based on the desired performance / latency tradeoff.

[0141] Therefore, concurrent queues obey PCIe ordering rules.

[0142] Figure 7B 750 is a block diagram schematically illustrating PCIe tunnel transfer with multiple concurrent queues that adheres to the same cache line (or cache address subset) ordering rule according to an embodiment of the present invention. In an embodiment, the same cache line ordering rule means that the ordering should be maintained only when the addresses of two accesses are in the same cache line. The CNB can include a hash table to quickly check whether two addresses are contained in the same cache line, and if so, order the cache accesses.

[0143] The first queue 752 stores write requests W0 754, followed by (and therefore necessarily chronologically preceding) read requests R0 756. The second queue 758 stores write requests W1 760; the third queue 762 stores read requests R2 764; and the fourth queue 764 stores read requests R3 770, followed by write requests W3 772. Figure 7B In the example implementation illustrated in , identical cache line ordering is ensured through hash-based queue selection among four queues.

[0144] Refresh Instructions

[0145] Depending on the implementation, when using relaxed ordering (such as the same cache line), the device may still occasionally need in-order execution. For example, the device may write multiple data records to memory in a relaxed order, and then write a data ready tag to indicate that all records are stored in memory. Data ready should be written after all data record writes are complete.

[0146] To this end, in an embodiment, the device is configured to issue a refresh indication, for example by sending a specific TLP, matching requestor_id / address / pasid or through a special CNB interface. The CNB is configured to stop bridging write TLPs when a refresh indication is detected until the CNB receives a network completion indication for all outstanding network requests.

[0147] merge

[0148] According to an embodiment of the present invention, a CLB may merge multiple TLPs; this may improve performance when the protocol header is large relative to the data payload.

[0149] In the above-mentioned full-tunneling SEND protocol and single-ended tunneling SEND protocol communication modes, the CNB is configured to tunnel multiple TLPs in each SEND operation.

[0150] In RDMA-based communication mode, for RDMA reads, CNB is configured as follows:

[0151] - Maintain a list of groups (hereinafter referred to as "sessions") of pending read TLPs, where each session includes TLPs in the same address range (eg, the distance between the lowest and highest addresses in a session does not exceed 1KB).

[0152] If the address of the TLP is within the address range of the existing session, then add the new TLP to the existing session; otherwise – open a new session for the TLP.

[0153] Terminate the session when the size is large enough or the timer expires. Or the number of TLPs,; Timer expiration variant.

[0154] For terminated sessions - consolidate the corresponding TLPs into a single (if possible - contiguous) TLP, encapsulate in an RDMA message and send.

[0155] In some embodiments, when strict PCIe ordering is required, CNB is configured to merge write TLPs only when transactions target consecutive addresses. In one embodiment, when same cache line ordering is required, CNB is configured to avoid merging reads and writes that are not mapped to the same cache line. In an embodiment, a session may be terminated when the first TLP is merged; in another embodiment, the session is terminated relative to the arrival time between TLPs. In some embodiments, a session may be terminated when the number of bytes or TLPs (any TLP or TLP of preset type) exceeds a preset threshold, and in other embodiments, any other suitable criteria may be applied to terminate the session.

[0156] MSI-X Processing

[0157] PCIe-3 (and further revisions) support Message-Signaled-Interrupt-Extended (MSI-X), which transmits up to 2,048 interrupts to multiple destinations via dedicated TLPs. A CNB according to an embodiment of the present invention tunnels MSI-X TLPs to a peer computer.

[0158] Figure 8 is a block diagram 800 schematically illustrating PCIe MSI-X interrupt tunneling according to an embodiment of the present invention.

[0159] Device 802 generates PCIe MSI-X TLPs via a local PCIe bus. CNB 804 identifies the MSI-X transaction and accesses table 806 to convert the MSI-X TLPs into corresponding RDMA Extended Reliable Connection (XRC) messages (in some implementations, table 806 is not required and the CNB constructs the message based on the address or data of the PCIe MSI-X message).

[0160] Queue pair 808 transmits RDMA messages to the client through local NIC 810 and network 812. In the client, remote NIC 812 directs the messages to queue pair 816.

[0161] A single QP ensures in-order execution; the XRC extended transport header (XRCETH) specifies an XRC target 818 in the client (e.g., a different VM), corresponding to an MSI-X target. The XRC target sends a corresponding MSI-X interrupt to the MSI-X circuit, which is pre-configured by the client MSI configuration process 822. Each MSI-X circuit 820 can store interrupt data corresponding to the interrupt data sent by the server for one of the pre-configured interrupt targets.

[0162] As should be appreciated, Figure 8 The server and client configurations for MSI-X tunneling illustrated in FIG. 1 are example configurations. Other suitable configurations may be used in alternative embodiments. For example, in some embodiments, the client may include a CNB that may convert an XRC into an MSI-C TLP.

[0163] Fig. 9 9 is a block diagram schematically illustrating a message routing 900 in a cross-network bridging device according to an embodiment of the present invention. A server 902 communicates with a first client 906 and a second client 908 via a network 904. The server 902 includes a device A 910, a device B 912, and a CPU 914. The devices and the CPU communicate via a PCIe system bus 916. The server 902 also includes a CNB 918 configured to pass a TLP tunnel to a client via a network; and a NIC 920.

[0164] according to Fig. 9 In the example implementation illustrated in , the server allocates three queue pairs (QPs) to communicate with corresponding QPs in client computers—QP A 922, which is configured to communicate with QP A' 924 over a network; QP B 926, which is configured to communicate with QP B' 928; and QP C 930, which is configured to communicate with QP C' 932. QP A' is maintained by a first client 906, while QP B' 928 and QP C' 932 are both maintained by a second client 908.

[0165] The CNB 918 is configured to monitor the PCIe bus and detect TLPs initiated by one of the devices 910, 912 and destined for the client computer. Fig. 9 In the example implementation illustrated in , the device A TLP may be tunneled to QP A' 924 in the first client 906, or to QP B' 928 in the second client 928, while the device B TLP may only be tunneled to QP C' 932 in the second client.

[0166] To this end, CNB 918 includes matching registers - matching register 934 stores QP A matching rules, matching register 936 stores QP B matching rules, and matching register 938 stores QP C matching rules. Fig. 9In the example implementation illustrated in FIG. 9 , if the match register 934 detects a match, the CNB directs the TLP to QP A—for example, the PCIe TLP is generated by device A, the receiver id=0, and the address=0x200. If the TLP is generated by device A, and the receiver id=1, the CNB further directs the TLP to QP B, regardless of the address (defined by the match register 938); if the TLP is generated by device B, the receiver ID=3 and the address=0x8000 (defined by the match register 938), it is directed to QP B.

[0167] In a full tunnel pass-through configuration, the match registers in the client's CNB will be configured to match TLP addresses, where each address represents a remote BAR address. The match registers will match the requestor ID and the address on the server side. In some embodiments, priority matching will be applied when conflicting matches occur; for example, 0 to 0x1000 can go to tunnel 1, but 0x200-0x300 can override and go to tunnel 2.

[0168] Typically, the comparison with the match register is considered as an example implementation of the predefined criteria. CNB converts and sends a given TLP only if the TLP matches the predefined criteria. It should be noted that if CNB does not detect any match, the TLP will not be tunneled (for example, when the TLP points to a local PCIe address).

[0169] As should be appreciated, the above reference Fig. 9 The configurations of the described server 902 and CNB 918 are example configurations cited as examples and are shown only for the sake of conceptual clarity. The server and CNB according to the disclosed technology are not limited to the above description. In alternative embodiments, other suitable configurations may be used. For example, the matching registers 934, 936 and 938 may be stored in a hash-based RAM table, or in a ternary content addressable memory (TCAM).

[0170] Fig.10 1 is a block diagram schematically illustrating a server 1000 with a cross-network bridge according to an embodiment of the present invention. The server includes a device 1002 (e.g., a GPU or SSD), a PCIe bus 1004, a CNB 1006, a CPU 1008 (e.g., an ARM), a network adapter 1010, and a RAM 1012. The CNB includes a matching register 1014, a TLP injection circuit 1016, and a tunnel gateway 1018.

[0171] Match register 1014 is configured to detect TLPs that should be tunneled to the client and signal such matching TLPs to other circuits of the CNB. Match register 1014 is also configured to direct other TLPs directly to the CPU.

[0172] In one embodiment, to send a packet over the network, CNB 1006 generates a work queue entry (WQE) corresponding to a matching TLP and outputs the WQE to RAM 1012 (CNB may send a doorbell indication after writing each WQE record). Network adapter 1010 reads the WQE and, after completing a previous (or higher priority) WQE, sends the requested message over the network and sends a corresponding completion queue entry (CQE) to CNB.

[0173] As can be appreciated, the work queue mechanism described herein is cited as an example.Alternative embodiments may use other mechanisms to communicate packet send / receive requests between the CPU and the network adapter.

[0174] To respond to a read packet received from the client to the device bridge server, the CPU is configured to send a read response indication to the CNB via the RAM 1012. The TLP injection circuit generates a TLP corresponding to the read response and injects the TLP into the PCIe.

[0175] When the server receives the completion indication, the CPU 1008 sends a corresponding indication to the tunnel gateway 1018 of the CNB 1006, which will generate a TLP (in the TLP injection circuit) to indicate the completion to the device.

[0176] according to Fig.10 In the example embodiment illustrated in FIG. 1 , CNB 1006 handles packet and TLP routing and control. The payload of the packet (and in some embodiments, part of the header) is transferred horizontally directly between RAM and PCIe, possibly through circuits that check / add checksums, align the data, correct (increment or by recalculating) the TLP ECRC field to reflect the changed requester ID and TAG fields, etc. (for simplicity, such circuits are not shown).

[0177] As can be appreciated, the above reference Fig.10The configuration of the server 1000 described is an example configuration cited as an example and is shown only for the sake of conceptual clarity. The server according to the disclosed technology is not limited to the above description. In an alternative embodiment, for example, the matching register 1014 can send the non-tunneled TLP directly to the network adapter instead of the CPU. In another embodiment, the CNB writes the doorbell record to RAM (or, for example, to an addressable location within the CNB) and sends the doorbell indication to the network adapter 1010.

[0178] Fig.11 1100 is a schematic diagram showing a flow chart of a process of writing TLP based on single-ended RDMA according to an embodiment of the present invention. The process is described in detail in FIG. Fig.10 The server circuit described in the following description is implemented (all server circuits and unit numbers indicated in the following description refer to Fig.10 ).

[0179] The flow starts at SEND-TLP step 1102, where device 1002 initiates a write TLP via the PCIe bus. Next, in a determine tunneling step 1104, match register 1014 compares the TLP header with pre-stored comparison data to determine whether the TLP should be tunneled, and if so, sets the flow ID according to the routing information stored in the match register (the flow ID may indicate one of the open QPs).

[0180] If the TLP should be tunneled, the CNB builds a WQE corresponding to the TLP in a Build WQE step 1106, sends the WQE to RAM 1012, and increments the producer index. Next, at a Send Doorbell step 1108, the CNB writes a doorbell record corresponding to the stream parameters in RAM and sends a doorbell indication.

[0181] After the network controller sends the packet, the network controller sends a CQE indicating the completion of the corresponding WQE to the CNB in ​​a send CQE step 1110. The CNB checks the CQE in a match flow ID step 1112, compares the flow ID with the flow IDs of all pending WQEs, and increments the corresponding consumer index. The process ends after step 1112. (The producer and consumer indexes mentioned above are useful for matching WQEs with CQEs that may be received out of order.)

[0182] Fig.12 FIG. 12 is a schematic diagram showing a flowchart 1200 of a single-ended RDMA-based TLP reading process according to an embodiment of the present invention. Fig.11 The same procedure as the example of writing TLP described in the previous section is used to read TLP. Fig.10The server circuit described in the embodiment of the present invention is implemented by the server circuit described in the embodiment of the present invention, and all unit references in the following description refer to the circuit defined therein. Some of the following steps may be the same as the steps of the process 1100.

[0183] The flow begins at SEND-TLP step 1202, where device 1002 initiates a read TLP over the PCIe bus. Next, in determine tunneling step 1204, match register 1014 compares the TLP header with pre-stored comparison data to determine if the TLP should be tunneled, and if so, sets the flow ID.

[0184] If the TLP should be tunneled, the CNB builds a WQE corresponding to the TLP in a Build WQE step 1206, sends the WQE to RAM 1012, and increments the producer index. Next, at a Send Doorbell step 1208, the CNB writes a doorbell record corresponding to the stream parameters in RAM and sends a doorbell indication.

[0185] At a Receive Read Response step 1212, the network adapter 1010 receives the response packet from the client and stores the response in RAM 1012. Next, at a Send CQE step 1214, the network adapter sends the CQE to the CNB. Finally, at a Match Flow ID step 1216, the CNB checks the CQE, compares the flow ID with the flow IDs of all pending WQEs, and increments the corresponding consumer index. The process ends after step 1216.

[0186] It should be understood that Fig.11 , Fig.12 The flowcharts illustrated in the are example flowcharts, which are cited by way of example and are shown only for the sake of conceptual clarity. The flowcharts according to the disclosed technology are not limited to the above description. In alternative embodiments, for example, the CNB can communicate directly with the network adapter circuit (not via WQE / CQE), the doorbell record update status can be skipped, and can be sent to a queue polled by the local CPU and processed in software.

[0187] The techniques described above may also be applied to remote analysis of PCIe transactions that may be accomplished over a network.

[0188] Fig.13 1 is a block diagram schematically illustrating remote PCIe analysis according to an embodiment of the present invention. A user 1302 runs PCIe analysis software 1304 on a remote computer 1306 to remotely analyze TLPs in a computer 1308 through a communication network. The computer 1308 includes a CPU 1310, a PCIe device 1312, a PCIe bus 1314, and a NIC 1316 coupled to a network 1318.

[0189] according to Fig.13 In the example embodiment illustrated in , the computer 1308 also includes a CNB 1320 that is configured to pass the TLP tunnel to the remote computer 1306 via the network 1318.

[0190] For remote PCIe analysis of PCIe 1314 of computer 1308 from remote computer 1306, any of the single-ended communication modes described above may be used. The analyzer software activates an agent running on CPU 1310 that can configure CNB 1320 and NIC 1316 to tunnel selected TLPs to the remote computer, allowing the analysis software to observe TLPs in computer 1308.

[0191] In some implementations, the remote computer 1306 may include a CNB and may use a fully tunneled communication mode for better performance.

[0192] As should be appreciated, the above reference Fig.13 The described remote PCIe analysis configuration is cited by way of example and is shown only for the sake of conceptual clarity. Remote PCIe analysis according to the disclosed technology is not limited to the above description. In alternative embodiments, other suitable configurations may be used. For example, in some embodiments, there is no user 1302 (e.g., remote PCIe analysis is automatically completed at preset intervals and only alerts the system administrator to the failure).

[0193] The above described and Figures 1 to 13 The configurations, flow charts, and sequence diagrams illustrated in the drawings are examples shown purely for the sake of conceptual clarity. Any other suitable configurations, flow charts, and sequence diagrams may be used in alternative embodiments. For example, any or all of the NICs described may be embodied in, for example, a communications switch, a router, a server with switching capabilities, or an aggregation of network elements. The different elements of the server and client, including the CNB, CNB elements (such as interfaces and bridging circuits, CNB agents, and NICs) may be implemented using suitable hardware, such as in one or more application specific integrated circuits (ASICs) or field programmable gate arrays (FPGAs), using software, using hardware, or using a combination of hardware and software elements.

[0194] All computers, processors, CPUs, etc. described above may include one or more general-purpose processors that are programmed with software to perform the functions described herein. For example, the software may be downloaded to the processor in electronic form over a network or from a host, or it may be provided and / or stored on a non-transitory tangible medium, such as a magnetic, optical, or electronic memory, alternatively or additionally.

[0195] Although the embodiments described herein primarily address TLP bridging over a communications network, the methods and systems described herein may also be used in other applications, such as in device emulation.

[0196] It should therefore be appreciated that the above embodiments are cited as examples, and the present invention is not limited to what is specifically shown and described above. On the contrary, the scope of the present invention includes combinations and sub-combinations of the various features described above, as well as changes and modifications that are prior art and that would occur to a person skilled in the art after reading the foregoing description and are not disclosed herein.

Claims

1. A cross-network bridging device, include: A bus interface for connecting to a system bus; and A bridge circuit, the bridge circuit being configured as: converting between (i) system bus transactions exchanged between one or more local devices coupled to and served by the system bus and one or more remote processors located remote from the apparatus across a network and (ii) data units formatted as network packets; and transmitting and receiving the network packets to and from a network adapter for transmitting to and receiving from the remote processor via the network, including maintaining a plurality of queue pairs (QPs), each QP being assigned to a corresponding connection between a corresponding local system bus device and a corresponding remote processor, and transmitting and receiving the network packets by scheduling the plurality of QPs.

2. The apparatus of claim 1, wherein one or more of the local devices comprises a graphics processing unit (GPU).

3. The apparatus of claim 1, wherein one or more of the local devices comprises a storage device, and wherein one or more of the network packets comprises an NVMe-over-fabrics (NVMe-F) command.

4. The apparatus of claim 1 , wherein the bridge circuit is configured to maintain a plurality of work queue elements queued in the QP, wherein each work queue element is configured to define one or more of the system bus transactions.

5. The apparatus of claim 1, wherein the bridge circuit is configured to modify one or more attributes of one or more of the system bus transactions when converting between the data units and the system bus transactions.

6. The apparatus of claim 1, wherein the system bus comprises a Peripheral Component Interconnect Express (PCIe) bus.

7. The apparatus of claim 1, wherein the system bus transaction comprises a PCIe transaction layer packet (TLP).

8. The apparatus of claim 1, wherein the system bus comprises a Compute Express Link (CXL) bus or an Nvlink bus.

9. The apparatus of claim 1, wherein the data unit comprises a layer 3 network packet.

10. The apparatus of claim 1, wherein the system bus transaction comprises a PCIe transaction, and wherein the data unit comprises a remote direct memory access (RDMA) packet.

11. The apparatus of claim 1, wherein the system bus transaction comprises a PCIe transaction, and wherein the data unit is to be transmitted as a SEND message packet.

12. The apparatus of claim 1 , wherein the bridge circuit is configured to recognize that one or more of the system bus transactions include a message signaled interrupt (MSI-X), and in response to the recognition, convert the system bus transactions including the MSI-X into one or more RDMA extended reliable connection (XRC) messages.

13. The apparatus of claim 1, wherein the bridge circuit is configured to translate a given system bus transaction only in response to identifying that the given system bus transaction matches predefined criteria.

14. The apparatus of claim 1, wherein the bridge circuit is configured to translate the given system bus transaction only in response to identifying that the given system bus transaction is not exchanged with a local system bus address.

15. The apparatus of claim 1, wherein at least one of the local devices comprises a physical device serviced by the system bus.

16. The apparatus of claim 15, wherein one or more of the local devices comprises a virtualized device assigned within the physical device.

17. The apparatus of claim 1, wherein when translating between the data units and the system bus transactions, the bridge circuit is configured to translate between a network address appearing in the data units and a corresponding device address appearing in the system bus transactions.

18. A cross-network bridging device, include: A bus interface for connecting to a system bus; and a bridge circuit configured to convert between (i) system bus transactions exchanged between one or more local devices coupled to and served by the system bus and one or more remote processors located across a network remote from the apparatus and (ii) data units conveying the system bus transactions for transmission to and receipt from the remote processors over the network as network packets, The bridge circuit is further configured as follows: generating a data unit by merging two or more of said system bus transactions into a single work queue element; writing outbound data units to a memory for transmission over the network as network packets; as well as Inbound data units received as the network packets over the network are read from the memory.

19. A cross-network bridging device, include: A bus interface for connecting to a system bus; and A bridge circuit, the bridge circuit being configured as: converting between (i) system bus transactions exchanged between a local processor coupled to and served by the system bus and one or more remote devices located across a network remote from the apparatus and (ii) data units formatted as network packets and conveying the system bus transactions; as well as The network packets are transmitted to and received from a network adapter for transmission to and reception from the remote device over the network, including maintaining a plurality of queue pairs (QPs), each QP being assigned to a respective connection between a respective local system bus device and a respective remote processor, and transmitting and receiving the network packets by scheduling the plurality of QPs.

20. A remote system bus analysis device, include: A first computer including a system bus; a cross-network bridge (CNB) configured to convert system bus transactions exchanged on the system bus into network packets and transmit the network packets over a network, including maintaining a plurality of queue pairs (QPs), each QP being assigned to a respective connection between a respective local system bus device and a respective remote processor, and transmitting and receiving the network packets by scheduling the plurality of QPs; and a second computer configured to receive the network packet from the CNB through the network, extract the system bus transaction exchanged through the system bus of the first computer from the received network packet, and analyze the system bus transaction.

21. The apparatus of claim 20, wherein the system bus comprises a Peripheral Component Interconnect Express (PCIe) bus.

22. A cross-network bridging method, include: one or more local devices operatively coupled to and served by a system bus; as well as Using a bridge circuit: converting between (i) system bus transactions exchanged between the one or more local devices and one or more remote processors across a network and (ii) data units formatted as network packets and conveying the system bus transactions; as well as The network packets are transmitted to and received from a network adapter for transmission to and reception from the remote processor, including maintaining a plurality of queue pairs (QPs), each QP being assigned to a respective connection between a respective local system bus device and a respective remote processor, and transmitting and receiving the network packets by scheduling the plurality of QPs.

23. The method of claim 22, wherein one or more of the local devices comprises a graphics processing unit (GPU).

24. The method of claim 22, wherein one or more of the local devices comprises a storage device, and wherein one or more of the network packets comprises an NVMe-over-fabrics (NVMe-F) command.

25. The method of claim 22, wherein maintaining the QP include: A plurality of work queue elements queued in the QP are maintained, wherein each work queue element is configured to define one or more of the system bus transactions.

26. The method of claim 22, wherein conversion is performed between the system bus transaction and the data unit include: A data unit is generated by merging two or more of the system bus transactions into a single work queue element.

27. The method according to claim 22, and include: Outbound data units are written to a memory for transmission over the network as network packets, and inbound data units are read from the memory for reception over the network as the network packets.

28. The method of claim 22, wherein converting between the data unit and the system bus transaction include: One or more attributes of one or more of the system bus transactions are modified.

29. The method of claim 22, wherein the system bus comprises a Peripheral Component Interconnect Express (PCIe) bus.

30. The method of claim 22, wherein the system bus transaction comprises a PCIe transaction layer packet (TLP).

31. The method of claim 22, wherein the system bus comprises a Compute Express Link (CXL) bus or an Nvlink bus.

32. The method of claim 22, wherein the data unit comprises a layer 3 network packet.

33. The method of claim 22, wherein the system bus transactions comprise PCIe transactions, and wherein the data units comprise remote direct memory access (RDMA) packets.

34. The method of claim 22, wherein the system bus transaction comprises a PCIe transaction, and wherein the data unit is to be transmitted as a SEND message packet.

35. The method of claim 22, wherein conversion is performed between the system bus transaction and the data unit include: One or more of the system bus transactions are identified as including a message signaled interrupt (MSI-X), and in response to the identification, the system bus transactions including the MSI-X are converted into one or more RDMA extended reliable connection (XRC) messages.

36. The method of claim 22, wherein conversion is performed between the system bus transaction and the data unit include: A given system bus transaction is translated only in response to identifying that the given system bus transaction matches predefined criteria.

37. The method of claim 22, wherein conversion is performed between the system bus transaction and the data unit include: The given system bus transaction is translated only in response to identifying that the given system bus transaction is not exchanged with a local system bus address.

38. The method of claim 22, wherein at least one of the local devices comprises a physical device serviced by the system bus.

39. The method of claim 38, wherein one or more of the local devices comprises a virtualized device assigned within the physical device.

40. The method of claim 22, wherein conversion is performed between the data unit and the system bus transaction include: A translation is performed between a network address appearing in the data unit and a corresponding device address appearing in the system bus transaction.

41. A cross-network bridging method, include: a local processor operatively coupled to and served by a system bus; as well as using bridge circuitry to convert between (i) system bus transactions exchanged between the local processor and one or more remote devices located across a network and (ii) data units formatted as network packets and conveying the system bus transactions; as well as Transmitting and receiving the network packets to and from the remote device includes maintaining a plurality of queue pairs (QPs), each QP being assigned to a corresponding connection between a corresponding local system bus device and a corresponding remote processor, and transmitting and receiving the network packets by scheduling the plurality of QPs.

42. The method of claim 41, wherein and include: Outbound data units are written to a memory for transmission over the network as network packets, and inbound data units are read from the memory for reception over the network as the network packets.

43. A remote system bus analysis method, include: Using a cross-network bridge (CNB), converting system bus transactions exchanged on a system bus of the first computer into network packets and transmitting the network packets over a network, including maintaining a plurality of queue pairs (QPs), each QP being assigned to a respective connection between a respective local system bus device and a respective remote processor, and transmitting and receiving the network packets by scheduling the plurality of QPs; as well as In the second computer, the network packet is received from the CNB through the network, the system bus transaction exchanged through the system bus of the first computer is extracted from the received network packet, and the system bus transaction is analyzed.

44. The method of claim 43, wherein the system bus comprises a Peripheral Component Interconnect Express (PCIe) bus.