Relay device

The relay device addresses the limitations of conventional RDMA by managing connection information and selecting optimal transfer destinations, enhancing data transfer efficiency and performance through load balancing and efficient processing.

WO2024201804A1PCT designated stage expired Publication Date: 2024-10-03NT T INC
View PDF 2 Cites -1 Cited by

Patent Information

Application Number
PCT/JP2023/012870
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-29
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Conventional RDMA protocols restrict data transfer to a single remote computer, limiting flexibility and efficiency, as data cannot be routed to multiple potential destinations, which can lead to busy remote computers and suboptimal performance.

Method used

A relay device that acquires and manages connection information from multiple remote computers, selects an optimal transfer destination based on communication status, and performs RDMA packet forwarding to distribute data load and avoid busy nodes, utilizing ASIC or FPGA for efficient processing.

Benefits of technology

Enables data transfer to any of multiple remote computers, optimizing throughput and latency by load balancing and avoiding busy nodes, while reducing the burden on local and remote NICs and CPUs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023012870_03102024_PF_FP_ABST
    Figure JP2023012870_03102024_PF_FP_ABST
Patent Text Reader

Abstract

A relay device (10) relays data to be transferred by remote direct memory access (RDMA) and is provided with: an information acquisition unit that acquires a plurality of pieces of connection information issued when each of a plurality of remote computers (93, 94) is determined to receive the data by RDMA transfer; a transfer destination selection unit that, when a packet containing the entire data or a divided portion of the data is received from a local computer (91), selects, as a transfer destination computer, the remote computer which is the transfer destination of the packet from among the plurality of remote computers; and a packet output unit that causes the packet to include the connection information issued by the transfer destination computer from among the plurality of pieces of connection information acquired by the information acquisition unit and outputs the included packet, thereby performing the RDMA transfer of the packet to the transfer destination computer.
Need to check novelty before this filing date? Find Prior Art

Description

relay device

[0001] The present invention relates to a relay device, such as a network switch, that relays data transferred by RDMA (Remote Direct Memory Access).

[0002] RDMA is a communication protocol in which a local computer issues a request to establish a connection with a remote computer, after which the remote computer transfers data stored in its own memory directly to the remote computer's main memory (see Non-Patent Document 1).

[0003] Recio, R., Metzler, B., Culley, P., Hilland, J., and D. Garcia, "A Remote Direct Memory Access Protocol Specification", RFC 5040, DOI 10.17487 / RFC5040, October 2007,<https: / / www.rfc-editor.org / info / rfc5040> .

[0004] In conventional RDMA, a local computer and a remote computer are determined on a one-to-one basis when a connection is established. Therefore, after data is output from the local computer, it is not possible to transfer the data to one of multiple candidate destinations. If data output from the local computer could be transferred to one of multiple candidate destinations, there would be an advantage in that, for example, data could be transferred while avoiding a remote computer that is busy among multiple remote computers.

[0005] An object of the present invention is to enable data output from a local computer to be transferred to one of a plurality of transfer destination candidates by RDMA.

[0006] In order to solve the above problem, the relay device of the present invention is a relay device that relays data to be transferred via RDMA (Remote Direct Memory Access), and includes: an information acquisition unit that acquires multiple connection information issued by multiple remote computers when each of the multiple remote computers receives the data via RDMA transfer; a transfer destination selection unit that, when a packet containing all of the data or a divided portion of the data is received from a local computer, selects a remote computer from the multiple remote computers to which the packet is to be transferred as a transfer destination computer; and a packet output unit that includes the connection information issued by the destination computer from the multiple connection information acquired by the information acquisition unit in the packet, and outputs the packet with the connection information included, thereby RDMA transferring the packet to the destination computer.

[0007] According to the present invention, data output from a local computer can be transferred to any one of a plurality of transfer destination candidates by RDMA.

[0008] FIG. 1 is a configuration diagram of a system including a relay device according to a first embodiment of the present invention. FIG. 2 is a hardware configuration diagram of computers such as the local and remote computers shown in FIG. 1. FIG. 3 is a block diagram of the relay device shown in FIG. 1. FIG. 4 is a flowchart for explaining processing executed by the relay device shown in FIG. 1. FIG. 5 is a diagram showing an example configuration of a management table. FIG. 6 is a block diagram of a relay device according to a second embodiment. FIG. 7 is a diagram showing an example configuration of a PSN table. FIG. 8 is a block diagram of a relay device according to a third embodiment. FIG. 9 is a block diagram of a relay device according to the third embodiment. FIG. 10 is a configuration diagram of a system including a relay device according to a fourth embodiment.

[0009] Hereinafter, an embodiment of the present invention and its modifications will be described with reference to the drawings.

[0010] 1, a relay device 10 according to this embodiment is communicatively connected to first and second local computers (also simply referred to as local) 91 and 92 as transfer sources in RDMA (Remote Direct Memory Access) via a network NW such as the Internet and a router (not shown). The relay device 10 is further communicatively connected via wire or wireless to first and second remote computers (also simply referred to as remote) 93 and 94 as transfer destinations in RDMA. The relay device 10 is configured as a network switch.

[0011] The remote devices 93 and 94 are configured to be able to execute the same processing, realizing processing redundancy. The relay device 10 transmits processing target data from the local device 91 or 92 to either the remote device 93 or 94. The processing target data is transmitted in a packet containing the data. If the processing target data is long, it is divided into multiple pieces of data and transmitted in packets containing each of the divided pieces of data. The remote devices 93 and 94 may be devices that perform distributed processing of big data transmitted from the local devices 91 and 92. In this case, the data transmitted by the local devices 91 and 92 may be transmitted to either the remote device 93 or 94.

[0012] 1 are also collectively referred to as computers 90. Each of the local computers 91 and 92 and the remote computers 93 and 94, that is, each computer 90, has the configuration shown in FIG.

[0013] 2, the computer 90 includes a CPU (Central Processing Unit) 90A, a main memory 90B, and a non-volatile storage device 90C that stores an OS (Operating System) executed by the CPU 90A, user applications, and other programs. The computer 90 also includes a communication interface 90D that is connected to the outside. The communication interface 90D includes, for example, an R-NIC (RDMA-Network Interface Card) 90E that serves as an HCA (Host Channel Adapter) for implementing RDMA transfers. The communication interface 90D may include multiple R-NICs 90E.

[0014] The R-NIC 90E is provided with multiple QPs (Queue Pairs), each consisting of an SQ (Send Queue) and an RQ (Receive Queue), which are used when performing RDMA transfer. The communication unit for RDMA transfer is a communication request called a WR (Work Request), and the data to be communicated is stacked in the SQ / RQ as a WQE (Work Queue Element).

[0015] The R-NIC 90E also has a CQ (Completion Queue) corresponding to each SQ / RQ, where the WQEs stacked in the SQ / RQ are stacked as CQEs (Completion Queue Entry) when a WR between QPs is completed.

[0016] 3, the relay device 10 includes an information acquisition unit 11, a transfer destination selection unit 12, a packet output unit 13, and a storage unit 14. The above units 11 to 14 are configured as a whole using at least one of an ASIC (Application Specific Integrated Circuit) and an FPGA (Field-Programmable Gate Array). That is, all of the units 11 to 14 may be configured as either an ASIC or an FPGA, or some of the units 11 to 14 may be configured as either an ASIC or an FPGA, and the rest of the units 11 to 14 may be configured as either an ASIC or an FPGA.

[0017] The operation of each of the above-mentioned units 11 to 14 of the relay device 10 will be described along with the flow of RDMA transfer with reference to Figure 4. In the following explanation, the RDMA transfer will be described as a transfer in which data prepared in the main memory 90B of the local 91 is written to the main memory 90B of either the remote 93 or 94.

[0018] 4, first, the CPU 90A of the local 91 issues a request for establishing a connection for RDMA transfer and establishes a connection with the relay device 10 (step S11). Thereafter, the information acquisition unit 11 of the relay device 10 establishes connections with the remotes R1 and R2, respectively (steps S12 and S13).

[0019] When a connection is established, each CPU 90A provided in the local 91 and the remotes 93 and 94 determines a memory area for RDMA transfer in the main memory 90B (a memory area for storing transmission data on the local side, and a memory area for storing received data on the remote side). Each CPU 90A also determines which of multiple QPs of the R-NIC 90E to use. Each CPU 90A generates connection information including the results of these determinations and transmits it to the relay device 10. The transmitted connection information is acquired by the information acquisition unit 11 of the relay device 10.

[0020] The connection information includes, for example, the following information: (1) QP number: A number that identifies the QP used in the current RDMA transfer. (2) Information about the memory area used in the current RDMA transfer. - key: A key for accessing the memory area (address) in the main memory where the data to be RDMA transferred is stored or read. - addr: Address of the registered memory area - buffer size: Size of the registered memory area (3) Global ID and local ID of the R-NIC used for RDMA, and the global ID and local ID of the computer that has it.

[0021] The information acquisition unit 11 of the relay device 10 associates the acquired connection information of the local 91 with the connection information of the remote 93 and the connection information of the remote 94 and registers them in the management table (see FIG. 5) of the storage unit 14 (step S14). In this embodiment, data to be RDMA transferred is transferred to one of multiple transfer destination candidates (here, the remotes 93 and 94). The management table is provided for managing the data transfer destination candidates. As shown in FIG. 5, the management table associates and registers, for each unit of RDMA transfer, the connection information of the transfer source (such as the local 91) with the connection information of each transfer destination candidate (the remotes 93 and 94). Note that the connection information may further include information about the application that manages the connection.

[0022] The information acquisition unit 11 of the relay device 10 returns a registration notification of the connection information to the local 91 (step S15).

[0023] Upon receiving the registration notification of the connection information, the local 91 performs RDMA transfer (step S16). That is, the R-NIC 90E of the local 91 reads the transmission data from the main memory 90B, generates a packet including this transmission data in the payload, and transmits it to the relay device 10. At this time, the R-NIC 90E includes connection information on the local 91 side in the packet. The position of the connection information in the packet is not limited to the header and can be any position.

[0024] The packet from the local 91 is received by the transfer destination selection unit 12 of the relay device 10. The transfer destination selection unit 12 selects a transfer destination for the received packet (step S17).

[0025] An example of step S17 will be described below. First, the transfer destination selection unit 12 extracts connection information of the transfer source (local 91) from the header of the first packet and refers to the management table ( FIG. 5 ) based on the extracted connection information of the transfer source. The transfer destination selection unit 12 acquires, from the management table, multiple pieces of connection information corresponding to the connection information of the transfer source. The transfer destination selection unit 12 recognizes, as transfer destination candidates, multiple remotes, here remotes 93 and 94, each identified by a global ID or the like included in each of the acquired multiple pieces of connection information. Then, the transfer destination selection unit 12 selects one of the recognized transfer destination candidates as the transfer destination.

[0026] The method for selecting the transfer destination is arbitrary. The transfer destination is selected, for example, taking into consideration the communication status between the remotes 93 and 94 and the relay device 10. The communication status includes the network status and the busy status of the remotes. For example, the transfer destination selection unit 12 measures the time required for communication with the remote 93 (i.e., the time from the transmission of specified data to the reception of a response) and the time required for communication with the remote 94, and selects the remote with the shortest time as the transfer destination. Any communication may be used as the communication. For example, communication for establishing a connection may be used, or communication performed exclusively for understanding the communication status may be used. In this way, it is preferable that the remote with a communication status better than a predetermined standard be selected as the transfer destination. As another example, the transfer destination may be selected randomly. As another example, the transfer destination selection unit 12 may count the number of times RDMA communication has been performed for each remote, and select the remote with the smallest count value as the transfer destination. The transfer destination selection unit 12 may also select the remotes in order. Furthermore, a remote may be selected by weighting each piece of connection information in the management table and then selecting the connection information. In this manner, load balancing may be performed when selecting a transfer destination.

[0027] After step S17, the packet output unit 13 writes the connection information of the destination selected by the destination selection unit 12 into the header of the packet (step S18). Here, it is assumed that the remote 93 has been determined as the destination. That is, the packet output unit 13 writes the connection information of the remote 93 registered in the management table, which corresponds to the connection information transmitted this time, into the header.

[0028] Thereafter, the packet output unit 13 outputs the packet after writing. The output packet is RDMA transferred to the remote 93 according to the connection information (step S19).

[0029] The data transferred by RDMA from the local 91 may be divided into multiple packets and transmitted. In this case, steps S16 to S19 are repeated for the number of packets. However, in step S17, the same transfer destination as the first packet is selected. This causes a series of multiple packets to be transferred to the same remote, and even the same R-NIC. Whether the data is being transmitted in multiple packets can be determined from the data length included in the packet header.

[0030] The R-NIC 90E of the remote 93 references the connection information in the packet header and performs processing for RDMA transfer. As a result, the payload data of the packet is stored as a WQE in the RQ of the QP (specified by (1) above) provided in the R-NIC 90E (specified by (3) above), and then transferred to the memory area of ​​the main memory 90B (specified by (2) above). After transfer, the WQE is stored as a CQE in the CQ corresponding to the RQ, and the packet stored in the RQ is released.

[0031] Thereafter, the remote 93 transmits a response notifying that the transfer has been completed to the local 91, which is the transfer source, via the relay device 10 (steps S20 and S21).

[0032] Thereafter, the local 91 and the relay device 10 disconnect the connection (step S22). In response to this disconnection, the relay device 10 deletes the record containing the connection information used this time from the management table (step S23), and instructs the remote devices 93 and 94 to release the reserved memory areas, etc. (steps S24 and S25).

[0033] The above operation is performed in the same manner for the local 92.

[0034] In this embodiment, in an RDMA transfer of one piece of data, both the remotes 93 and 94 issue connection information, but the connection information generated by the remote not selected as the transfer destination is not used. In other words, the connection information is information issued by each of the remotes 93 and 94 when they receive the data to be transferred via RDMA transfer. The information acquisition unit 11 acquires such connection information. Then, when the transfer destination selection unit 12 receives a packet containing the entire data to be transferred or a divided portion of the data from the local 91 or 92, it selects the remote to which the packet is to be transferred from the remotes 93 and 94 as candidate transfer destinations as the transfer destination remote. The packet output unit 13 then includes the connection information issued by the transfer destination remote from among the multiple pieces of connection information acquired by the information acquisition unit 11 in the header of the packet and outputs the included packet. The connection information included in the header is information necessary to realize the RDMA transfer to the transfer destination remote (more specifically, information specifying the data transfer destination), so the packet output from the packet output unit 13 is RDMA transferred to the transfer destination remote. According to this configuration, the relay device 10 determines the data transfer destination, so that data output from the local 91 or 92 can be RDMA transferred to one of a plurality of transfer destination candidates.

[0035] In particular, by selecting a remote device whose communication status with the relay device 10 is better than a predetermined standard (for example, the best) as the transfer destination, it is possible to obtain an advantage that, for example, data is transferred while avoiding a remote device that is busy among multiple remote devices. This results in low latency and high throughput. Furthermore, by having the transfer destination selector 12 select a transfer destination remote device by load balancing, load balancing of the transfer destination for RDMA transfer is realized.

[0036] Furthermore, since the relay device 10 is a network switch, the selection of the transfer destination does not place a load on the R-NIC 90E or the CPU 90A. Furthermore, since the information acquisition unit 11, the transfer destination selection unit 12, and the packet output unit 13 are configured as an ASIC or an FPGA as a whole, the relay device 10 has lower latency, higher throughput, and higher power efficiency than if it were a server computer.

[0037] (Second embodiment) A PSN (Packet Sequence Number) may be managed for each QP in each of the locals 91 and 92 and the remotes 93 and 94. The PSN may be the same as that used in conventional RDMA. The PSN is incremented each time a packet is sent or received. When one piece of data is transferred using multiple packets, the PSNs of each packet are consecutive numbers. Furthermore, when multiple RDMA transfers are performed for multiple pieces of data, the PSN is a cumulative value. The PSNs of the source and destination QPs are assigned to the headers of packets of data transferred from a QP.

[0038] In this embodiment, the relay device 10 also manages each PSN for each QP of the locals 91 and 92 and the remotes 93 and 94. In such a case, if there is one local and multiple remotes as transfer destination candidates, the increase in the local PSN = the sum of the increase in each PSN of the multiple remotes. However, the following problem occurs. Note that the following problem is based on the premise that data to be transferred via RDMA is divided into multiple packets and transferred.

[0039] (Problem 1) Consider a case where the relay device 10 manages PSNs by incrementing the PSNs of the local devices 91 and 92 and the remote devices 93 and 94 each time a packet arrives. In this case, suppose that the local device 91 transmits different RDMA transfer packets to both the remote devices 93 and 94, and each response packet is returned to the relay device 10. If the PSN counted by the relay device 10 on the local device 91 side is incremented when a response arrives, when the responses arrive at the relay device 10 at the same time, the PSNs on the local device 91 side related to each RDMA transfer will be integrated, and the PSN will not be the correct value. As a result, the PSN included in the header of the next packet will not match the PSN managed by the relay device 10, which could result in an error.

[0040] (Problem 2) The remotes 93 and 94 may count the PSN each time they receive a packet and include the count value at the time of response in the response packet. In this case, if another RDMA transfer packet arrives at the remote before the response (ACK) corresponding to the last packet, the remote will behave as follows. The following "write req" corresponds to the above RDMA transferred packet.

[0041] write req #1 first (PSN=k) write req #1 middle (PSN=k+1) ... write req #1 middle (PSN=k+n-2) write req #1 last (PSN=k+n-1): This is the last packet. write req #2 first (PSN=k+n) write req #2 middle (PSN=k+n+1) ack #1 (PSN=k+n+1)

[0042] The local receiving the response expects PSN=k+n-1, but actually PSN=k+n+1, and therefore detects a transfer error.

[0043] (Problem 3) When a packet is retransmitted, the PSN is rolled back in the local 91, etc. Here, if the relay device 10 manages the PSN by incrementing each PSN of the local 91 and 92 and the remote 93 and 94 each time a packet arrives, when a rollback occurs, the above formula breaks down and normal packet transfer becomes impossible.

[0044] (Solution) In order to solve the above-mentioned problem, in this embodiment, a PSN table is provided in the storage unit 14 as shown in FIG.

[0045] An example of the configuration of the PSN table is shown in FIG. 7 . In FIG. 7 , the local ID is information identifying the local, and here, the same value as the code (91 or 92) attached to the local is used. The status can be "Sending," which indicates that data is being transmitted in the case of transmitting multiple packets, "Acked," which indicates that a response has been received, or "Idle," which indicates that RDMA transfer is not being performed. The transfer destination remote ID is information identifying the remote selected as the transfer destination, and here, the same value as the code (93 or 94) attached to the remote is used. The local start PSN is the PSN of the local side when the first packet is transferred, and the local end PSN is the PSN of the local side when the last packet is transferred. The remote start PSN is the PSN of the remote side when the first packet is transferred, and the remote end PSN is the PSN of the remote side when the last packet is transferred. In the initial state, the PSN table has multiple rows of information storage areas for each local, each of which is set to "Idle."

[0046] The transfer destination selection unit 12 compares the PSN included in the header of a packet received by the relay device 10 from the local 91 or 92 with each range from the local start PSN to the local end PSN in the PSN table. If the PSN included in the header does not fall within any of the ranges, the packet is usually the first packet of multiple packets when a single piece of data is divided and transferred. In this case, the transfer destination selection unit 12 selects the transfer destination on the condition that the header of the packet includes information indicating that the packet is the first, and acquires the above information based on the information in the header of the packet, etc.

[0047] The transfer destination selection unit 12 determines the PSN included in the header of the first packet as the local start PSN. The transfer destination selection unit 12 also obtains the local end PSN by dividing the data length included in the header of the first packet by the data length of one packet and adding the obtained value to the local start PSN. Furthermore, when selecting a transfer destination, the transfer destination selection unit 12 communicates with the selected remote and obtains the current PSN from the remote. The transfer destination selection unit 12 then increments the obtained PSN by 1 to obtain the remote start PSN. The transfer destination selection unit 12 then adds the value added to the local start PSN to the remote start PSN, and obtains the resulting value as the remote start PSN.

[0048] The transfer destination selection unit 12 registers each piece of acquired information in the "Idle" column. If there is no "Idle", the transfer destination selection unit 12 overwrites and registers each piece of information in the oldest "Acked" (for example, the one with the smallest PSN value). The state at this time is set to "Sending". If there are no "Idle" or "Acked", the transfer destination selection unit 12 drops the packet. The transfer destination selection unit 12 also drops the packet if the packet header does not contain information indicating that the packet is the first.

[0049] If the PSN included in the packet header falls within a range from the local start PSN to the local end PSN, the destination selector 12 determines the remote identified by the destination remote ID corresponding to that range as the destination of the packet. The destination selector 12 then adds the value obtained by subtracting the local start PSN from the PSN included in the header to the remote start PSN. The destination selector 12 writes this sum into the packet header as the remote PSN. This ensures that when the packet is sent to the remote by the packet output unit 13, the PSN of the packet matches the PSN of the remote.

[0050] The destination selection unit 12 compares the PSN included in the header of a packet received by the relay device 10 from the remote 93 or 94 with each range from the remote start PSN to the remote end PSN in the PSN table. If the PSN included in the header is not within any of the ranges, the destination selection unit 12 drops the packet. If the PSN is within any of the ranges, the destination selection unit 12 adds the value obtained by subtracting the remote start PSN from the PSN included in the header to the local start PSN. The destination selection unit 12 writes this sum into the packet header as the local side PSN. As a result, when the packet is transmitted to the local side by the packet output unit 13, the PSN of the packet will match the local PSN.

[0051] As described above, in this embodiment, the correct range of PSNs (start PSN to end PSN) included in a packet is determined for each RDMA transfer by the PSN table, so the problems described in Problems 1 and 2 above do not occur. Furthermore, because each packet is compared with the PSN range, rollbacks do not pose a problem. It is recommended that the number of rows in the PSN table be set to, for example, at least twice the maximum number of anticipated RDMA transfers.

[0052] As described above, a packet includes a PSN that identifies the number of packets sent by the local 91 or the like, and the packet output unit 13 outputs the packet if the PSN included in the packet falls within one of the PSN ranges (PSN table) defined for each RDMA transfer. This ensures that a packet containing the correct PSN is output. Rollbacks and other similar events are also supported.

[0053] Furthermore, for non-first packets that are packets containing a portion of the data to be transferred and are not the first packet, the destination selector 12 refers to a PSN table that indicates the correspondence between each range and the remote that will be the transfer destination, and when the PSN included in the non-first packet falls within one of the ranges, selects the remote that corresponds to that range as the transfer destination. As a result, the non-first packet is transferred to the same destination as the first packet.

[0054] 8 , the connection information issued by the remote may be issued in units of QP. In this case, the destination selection unit 12 selects the destination QP when selecting the destination remote, and the packet output unit 13 includes in the packet the connection information issued by the destination remote for the QP selected by the destination selection unit 12. When the QP is associated with a virtual environment (container, virtual machine), the relay device 10 functions as a switch or load balancer for the virtual environment.

[0055] 9, the connection information issued by the remote may be issued in units of memory areas (e.g., the key and addr in (2) above) of the main memory 90B to which the data is to be transferred. In this case, the transfer destination selection unit 12 selects the memory area of ​​the transfer destination when selecting the remote to which the data is to be transferred, and the packet output unit 13 includes in the packet the connection information issued by the remote to which the data is to be transferred for the memory area selected by the transfer destination selection unit 12. When using a technology in which the RDMA access destination is device memory, the relay device 10 functions as a switch or load balancer for the device memory area.

[0056] Since the QP and the like are set for each application that executes RDMA, according to this embodiment, switching for each application and even load balancing can be performed from outside the remote. Furthermore, load balancing ensures fairness of the switched QPs, and the bandwidth of each application is approximately the same. Note that, focusing on this embodiment, the selection targets by the transfer destination selection unit 12 may be multiple QPs or memory areas within one remote.

[0057] Fourth Embodiment As shown in FIG. 8 , the relay device 10 may configure a large-scale cluster in a fat tree together with other relay devices 101 to 103, such as switches. The relay device 10 of FIG. 8 also includes the above-described units 11 to 13. In such a case, the packet output unit 13 of the relay device 10 may detect a malfunction of the transmission path (e.g., congestion, disconnection, etc.) when transferring a packet from the local device 91 or 92 to the remote device 93 or 94, which is the RDMA transfer destination. In FIG. 8 , the path (dotted line) between the relay device 10 and the relay device 102 is malfunctioning. In such a case, the packet output unit 13 detects the malfunction of the path using a known method and rewrites the packet header so that the packet is transmitted via another transmission path that bypasses the communication path, i.e., the transmission path from the relay device 10 to the relay device 101 to the relay device 103 to the remote device 93 or 94. The detour route may be preset, for example, for each malfunctioning path.

[0058] Conventionally, congestion detection and the like have been performed by the transmitting side, which has imposed a load on the transmitting side. In this embodiment, congestion detection and the like are performed by a relay device (especially in the case of a switch that employs an ASIC or FPGA), which can reduce the load, achieve low latency, high throughput, and high power efficiency. In addition, congestion avoidance and network load balancing for RDMA connections are possible.

[0059] (Modification) In the above embodiment, the relay device 10 is a switch, but a router or the like may be adopted as another example of the relay device 10. The hardware configuration of each of the units 11 to 14 of the relay device 10 is arbitrary, and each of the units 11 to 13 may be configured by a processor that executes a program.

[0060] The present invention is not limited to the above-described embodiments and modifications. For example, the present invention includes various modifications to the above-described embodiments and modifications that can be understood by a person skilled in the art within the scope of the technical concept of the present invention. The configurations listed in the above-described embodiments and modifications can be combined as appropriate within a range that does not cause contradictions. In addition, any of the above-described configurations can be deleted.

[0061] (Supplementary Notes) The following is an example of a configuration that is an example of the above-mentioned embodiment and variations. (Supplementary Note 1) A relay device that relays data to be transferred using RDMA (Remote Direct Memory Access), comprising: an information acquisition unit that acquires multiple pieces of connection information issued by multiple remote computers when each of the multiple remote computers receives the data via RDMA transfer; a transfer destination selection unit that, when receiving a packet containing all of the data or a divided portion of the data from a local computer, selects a remote computer from the multiple remote computers as a transfer destination computer of the packet; and a packet output unit that includes, from the multiple pieces of connection information acquired by the information acquisition unit, connection information issued by the transfer destination computer in the packet and outputs the included packet, thereby RDMA transferring the packet to the transfer destination computer. (Supplementary Note 2) The relay device according to Supplementary Note 1, wherein the transfer destination selection unit selects, from the multiple remote computers, a remote computer whose communication status with the relay device is better than a predetermined standard as the transfer destination computer. (Supplementary Note 3) The relay device according to Supplementary Note 1 or 2, wherein the relay device is a network switch, and the information acquisition unit, the transfer destination selection unit, and the packet output unit are configured as a whole in at least one of an ASIC (Application Specific Integrated Circuit) and an FPGA (Field-Programmable Gate Array). (Supplementary Note 4) The relay device according to any of Supplements 1 to 3, wherein the transfer destination selection unit selects the transfer destination computer by load balancing. (Supplementary Note 5) The relay device according to any of Supplements 1 to 4, wherein the packet includes a PSN (Packet Sequence Number) that specifies the number of packets transmitted by the local computer, and the packet output unit outputs the packet if the PSN included in the packet falls within any of PSN ranges defined for each RDMA transfer.(Supplementary Note 6) The relay device according to Supplementary Note 5, wherein the packet is a non-first packet that includes a portion of the divided data and is not a first packet, and the destination selection unit references a table indicating the correspondence between each range of PSN and a remote computer that is to be the destination, and when the PSN included in the non-first packet is within one of the ranges of PSN, selects the remote computer corresponding to that range as the destination computer. (Supplementary Note 7) The relay device according to any of Supplements 1 to 6, wherein each of the plurality of connection information is issued in units of QP (Queue Pair) or in units of memory area to which data is to be transferred, and the destination selection unit selects up to the QP or memory area to which the data is to be transferred when selecting the destination computer, and the packet output unit includes in the packet the connection information issued by the destination computer for the QP or memory area selected by the destination selection unit. (Supplementary Note 8) The relay device according to any one of Supplementary Notes 1 to 7, wherein the packet output unit rewrites a header of the packet so that the packet is sent to the destination computer via another transmission path when a transmission path of the packet to the destination computer is malfunctioning.

[0062] 10...Relay device, 11...Information acquisition unit, 12...Destination selection unit, 13...Packet output unit, 14...Memory unit, 90...Computer, 90A...CPU, 90B...Main memory, 90C...Memory device, 90D...Communication interface, 90E...R-NIC, 91...First local computer, 92...Second local computer, 93...First remote computer, 94...Second remote computer.

Claims

1. A relay device that relays data to be transferred via RDMA (Remote Direct Memory Access), comprising: an information acquisition unit that acquires multiple connection information issued by each of multiple remote computers when each of the multiple remote computers receives the data via RDMA transfer; a transfer destination selection unit that, when a packet containing all of the data or a divided portion of the data is received from a local computer, selects a remote computer from the multiple remote computers to which the packet is to be transferred as a transfer destination computer; and a packet output unit that includes, from the multiple connection information acquired by the information acquisition unit, the connection information issued by the destination computer in the packet, and outputs the packet with the connection information included, thereby transferring the packet to the destination computer via RDMA.

2. The relay device according to claim 1, wherein said transfer destination selection unit selects, from among said plurality of remote computers, a remote computer having a communication condition with said relay device that is better than a predetermined standard as said transfer destination computer.

3. The relay device according to claim 1, wherein the relay device is a network switch, and the information acquisition unit, the forwarding destination selection unit, and the packet output unit are configured as a whole in at least one of an ASIC (Application Specific Integrated Circuit) and an FPGA (Field-Programmable Gate Array).

4. The relay device according to claim 1, wherein the transfer destination selection unit selects the transfer destination computer by load balancing.

5. The relay device of claim 1, wherein the packet includes a Packet Sequence Number (PSN) that identifies the number of packets transmitted by the local computer, and the packet output unit outputs the packet if the PSN contained in the packet falls within any of the ranges of PSNs defined for each RDMA transfer.

6. The relay device of claim 5, wherein the packet is a non-leading packet that includes a portion of the divided data and is not a leading packet, and the destination selection unit refers to a table showing the correspondence between each range of PSN and the remote computer to be the destination, and when the PSN included in the non-leading packet is within any of the ranges of PSN, selects the remote computer corresponding to that range as the destination computer.

7. The relay device of claim 1, wherein each of the multiple connection information is issued in units of QP (Queue Pair) or in units of memory area to which data is to be transferred, the destination selection unit selects the destination QP or memory area to which the data is to be transferred when selecting the destination computer, and the packet output unit includes in the packet the connection information issued by the destination computer for the QP or memory area selected by the destination selection unit.

8. The relay device according to claim 1, wherein said packet output unit rewrites the header of said packet so that, when a transmission route of said packet to said destination computer is out of order, said packet is transmitted to said destination computer via another transmission route.

Citation Information

Patent Citations

  • Communication method, information processing device, and program

    WO2011058639A1

  • Intermediate device, communication method, and program

    WO2022259452A1