Communication processing method and communication node
By deploying communication nodes as relays in secure multi-party computing tasks and using TCP connections to establish mapping relationships, the problem of low data transfer efficiency among computing nodes is solved, efficient point-to-point data transmission is achieved, communication overhead is reduced and multi-supported support Language access.
Patent Information
- Application Number
- CN202211415164.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-11
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2042-11-11
AI Technical Summary
In secure multi-party computing (MPC) tasks, it is difficult for computing nodes of different participants to exchange data efficiently, especially because it is difficult to know each other's address information, resulting in inefficient data transmission.
By deploying communication nodes as communication relays, using TCP connections to establish mapping relationships, realizing point-to-point service data transmission, avoiding the high communication overhead and security risks brought about by centralized message queue services.
It realizes efficient transmission of service data between computing nodes between different participants, reduces communication overhead, and supports MPC computing logic for multi-programming languages and technology stacks without the need to use additional SDK.
Smart Images

Figure CN115766829B_ABST
Abstract
Description
Technical Field
[0001] One or more embodiments of the present specification relate to the computer field, and more particularly, to a communication processing method and a communication node. Background Art
[0002] For secure multi-party computation (MPC) tasks jointly performed by two parties, the two parties may each deploy several computing nodes and select a computing node to specifically perform the MPC task. The two selected computing nodes usually have difficulty in knowing each other's address information. However, MPC tasks often require two computing nodes belonging to different parties to perform synchronous operations after aligning data, that is, it is necessary to ensure that the data that the two computing nodes need to interact with in the process of executing the MPC task can be efficiently transmitted between the two computing nodes.
[0003] It is hoped that there will be a new technical solution to more efficiently transmit the business data that the two computing nodes need to interact with when two computing nodes belonging to different parties jointly execute an MPC task. Summary of the invention
[0004] One or more embodiments of the present specification provide a communication processing method and a communication node.
[0005] In the first aspect of participation, a communication processing method is provided, involving a first communication node, a first computing node, and a second computing node, wherein the first computing node is one of several computing nodes deployed on the first participant, and the second computing node is one of several computing nodes deployed on the second participant, and the first participant and the second participant are used to jointly execute MPC, and the method is executed by the first communication node. The method includes: receiving first connection information from the first computing node through a first transmission control protocol (TCP) connection between the first communication node and the first computing node, wherein the first connection information includes the task number of the target computing task; in the case where the second connection information from the second computing node has been received through the second TCP connection, establishing a first mapping relationship between the first TCP connection and the second TCP connection, wherein the second connection information includes the task number; the first mapping relationship is used to support the first communication node to forward the business data required to be interacted between the first computing node and the second computing node in the process of executing the target computing task through the first TCP connection and / or the second TCP connection.
[0006] In a possible implementation manner, the first connection information further includes address information of the second participant, and the second connection information further includes address information of the first participant.
[0007] In a possible implementation, the plurality of computing nodes are implemented as a plurality of containers or a plurality of pods.
[0008] In a possible implementation manner, the second TCP connection is a TCP connection between the first communication node and the second computing node.
[0009] In a possible implementation, the first communication node is deployed in the first participant, a second communication node is also deployed in the second participant, and the second TCP connection is a TCP connection between the first communication node and the second communication node.
[0010] In a possible implementation, a third TCP connection is established between the second communication node and the second computing node, and the second TCP connection is established by the second communication node after the second communication node receives the second connection information from the second computing node through the third TCP connection.
[0011] In one possible implementation, the method further includes: establishing the second TCP connection between the first communication node and the second communication node without receiving the second connection information from the second computing node through the second TCP connection; establishing a first mapping relationship between the first TCP connection and the second TCP connection, and sending the first connection information to the second communication node through the second TCP connection, so that after the second communication node receives the second connection information through a third TCP connection between it and the second computing node, the second mapping relationship is used to support the second communication node to forward the data that the first computing node and the second computing node need to interact in the process of executing the target computing task through the second TCP connection and / or the third TCP connection.
[0012] In a possible implementation, the method further includes: receiving, through the first TCP connection, first business data that the first computing node needs to send to the second computing node in the process of executing the target computing task, determining the second TCP connection corresponding to the first TCP connection according to the first mapping relationship, and forwarding the first business data through the second TCP connection.
[0013] In one possible implementation, second business data that the second computing node needs to send to the first computing node in the process of executing the target computing task is received through the second TCP connection, the first TCP connection corresponding to the second TCP connection is determined according to the first mapping relationship, and the second business data is forwarded through the second TCP connection.
[0014] In a second aspect, a first communication node is provided, involving a first computing node and a second computing node, wherein the first computing node is one of several computing nodes deployed on a first participant, and the second computing node is one of several computing nodes deployed on a second participant, and the first participant and the second participant are used to jointly execute MPC. The first communication node includes: a communication management unit, which is used to receive first connection information from the first computing node through a first TCP connection between the first communication node and the first computing node, wherein the first connection information includes the task number of a target computing task; a connection management unit, which is used to establish a first mapping relationship between the first TCP connection and the second TCP connection when the second connection information from the second computing node has been received through a second TCP connection, wherein the second connection information includes the task number; the first mapping relationship is used to support the first communication node to forward business data required to be interacted between the first computing node and the second computing node in the process of executing the target computing task through the first TCP connection and / or the second TCP connection.
[0015] In a possible implementation manner, the first connection information further includes address information of the second participant, and the second connection information further includes address information of the first participant.
[0016] In a possible implementation, the plurality of computing nodes are implemented as a plurality of containers or a plurality of pods.
[0017] In a possible implementation manner, the second TCP connection is a TCP connection between the first communication node and the second computing node.
[0018] In a possible implementation, the first communication node is deployed in the first participant, a second communication node is also deployed in the second participant, and the second TCP connection is a TCP connection between the first communication node and the second communication node.
[0019] In a possible implementation, a third TCP connection is established between the second communication node and the second computing node, and the second TCP connection is established by the second communication node after the second communication node receives the second connection information from the second computing node through the third TCP connection.
[0020] In one possible implementation, the communication management unit is further used to establish the second TCP connection between the first communication node and the second communication node without receiving the second connection information from the second computing node through the second TCP connection; the connection management unit is further used to establish a first mapping relationship between the first TCP connection and the second TCP connection; the communication management unit is further used to send the first connection information to the second communication node through the second TCP connection, so that the second communication node establishes a second mapping relationship between the second TCP connection and the third TCP connection after receiving the second connection information through a third TCP connection between the second communication node and the second computing node, and the second mapping relationship is used to support the second communication node to forward the data that the first computing node and the second computing node need to interact in the process of executing the target computing task through the second TCP connection and / or the third TCP connection.
[0021] In a possible implementation, the communication management unit is also used to receive, through the first TCP connection, the first business data that the first computing node needs to send to the second computing node in the process of executing the target computing task, determine the second TCP connection corresponding to the first TCP connection according to the first mapping relationship, and forward the first business data through the second TCP connection.
[0022] In a possible implementation, the communication management unit is also used to receive, through the second TCP connection, second business data that the second computing node needs to send to the first computing node in the process of executing the target computing task, determine the first TCP connection corresponding to the second TCP connection according to the first mapping relationship, and forward the second business data through the second TCP connection.
[0023] In a third aspect, a computer-readable storage medium is provided, on which a computer program / instruction is stored. When the computer program / instruction is executed in a computing device, the computing device executes the method as described in any one of the first aspects.
[0024] In a fourth aspect, a computing device is provided, comprising a memory and a processor, wherein the memory stores executable code / instructions, and the processor executes the executable code / instructions to implement a method as described in any one of the first aspects.
[0025] Through the method and communication node provided in one or more embodiments of the present specification, by deploying the communication node as a communication relay between two computing nodes belonging to different participants that jointly execute an MPC task, the communication node uses the first TCP connection and / or the second TCP connection to receive the business data that the first computing node and the second computing node need to interact with in the process of jointly executing the target computing task, and forwards the business data belonging to the target computing task through the first TCP connection and / or the second TCP connection according to the first mapping relationship between the first TCP connection and the second TCP connection established by it, thereby enabling the business data belonging to the target computing task to be transmitted point-to-point between the first computing node and the second computing node without causing additional high communication overhead, and can achieve more efficient transmission of the business data that the two computing nodes need to interact with in the process of two computing nodes belonging to different participants jointly executing the MPC task. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions of the embodiments of this specification, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0027] Figure 1 A schematic diagram of an application scenario of the technical solution provided in the embodiments of this specification;
[0028] Figure 2 This is one of the system framework diagrams of the technical solution provided in the embodiments of this specification;
[0029] Figure 3 This is one of the process schematic diagrams of a communication processing method provided in an embodiment of this specification;
[0030] Figure 4 This is the second system framework diagram of the technical solution provided in the embodiments of this specification;
[0031] Figure 5 This is a second process diagram of a communication processing method provided in an embodiment of this specification;
[0032] Figure 6 A schematic diagram of a communication node provided in an embodiment of this specification. DETAILED DESCRIPTION
[0033] Each non-limiting embodiment provided in this specification is described in detail below in conjunction with the accompanying drawings.
[0034] Figure 1Schematic diagram of the application scenario of the technical solution provided in the embodiments of this specification. Figure 1 As shown, two different participants, such as participant 1 and participant 2, may jointly execute several MPC tasks according to actual business needs, such as jointly executing MPC task A and MPC task B. Participant 1 and participant 2 may deploy several computing nodes respectively, for example, participant 1 deploys computing node 11 and computing node 13, and participant 2 deploys computing node 21 and computing node 23. Participants can be computing devices or device clusters built based on multiple computing devices; computing nodes can be virtual nodes implemented based on computing devices or device clusters. Taking the deployment of device clusters using container deployment modes such as K8S or Docker as an example, the aforementioned computing nodes can be implemented as container groups (Pods) or containers; a single participant can run several service processes through several container groups or several containers to implement the joint execution of several MPC tasks with other participants.
[0035] MPC tasks often require two computing nodes belonging to different participants to perform synchronization operations after aligning data, that is, it is necessary to ensure that the data that the two computing nodes need to interact with each other in the process of executing the MPC task can be efficiently completed and transmitted between the two computing nodes. However, it is usually difficult for two computing nodes belonging to different participants to know each other's address information, which makes it difficult for the two computing nodes used to execute a certain MPC task to efficiently transmit the data that they need to interact with each other in the process of executing a certain MPC task. For example, participant 1 selects computing node 11 to execute MPC task A, and participant 2 selects computing node 21 to execute MPC task A; computing node 11 is difficult to know the Internet protocol (IP) address of computing node 21 and the port number of service process 21A in computing node 21 for executing MPC task A, computing node 21 is difficult to know the IP address of computing node 11 and the port number of service process 11A in computing node 11 for executing MPC task A, and service process 11A and service process 21A are difficult to efficiently transmit the data that they need to interact with each other in the process of jointly executing MPC task A. For another example, participant 1 selects computing node 11 to execute MPC task B, and participant 2 selects computing node 23 to execute MPC task B. It is difficult for computing node 11 to obtain the IP address of computing node 23 and the port number of service process 23B in computing node 23 used to execute MPC task B. It is difficult for computing node 23 to obtain the IP address of computing node 11 and the port number of service process 11B in computing node 11 used to execute MPC task B. It is difficult for service process 11B and service process 23B to efficiently transmit the data they need to interact with in the process of jointly executing MPC task A.
[0036] In the related art, a centralized message queue service can be used to transmit the data that two computing nodes belonging to different parties need to interact in the process of executing a specific MPC task. For example, Party 1 and Party 2 can be directly connected to the same message queue service. If two computing nodes belonging to different parties select the same task number of the MPC task, one party acts as the publisher and the other party acts as the subscriber. The message sent by the sender will be received by the subscriber who selects the same task number. In this technical solution, the message queue service will greatly increase the communication overhead. For example, the subscriber may need to poll the message queue; there are security risks in introducing a centralized message queue service; it is necessary to add a software development kit (SDK) that directly connects to the message queue service in the computing node, which will limit the range of programming languages used by the service process used to execute the MPC task.
[0037] In view of the above problems, at least one communication processing method and communication node are provided in the embodiments of this specification. The method executed by the first communication node involves a first computing node and a second computing node, the first computing node is one of several computing nodes deployed on the first participant, and the second computing node is one of several computing nodes deployed on the second participant, and the first participant and the second participant are used to jointly perform secure multi-party computing MPC. In the method executed by the first node, the first node receives first connection information from the first computing node through the first TCP connection between it and the first computing node, and the first connection information includes the task number of the target computing task; then, the first communication node establishes a first mapping relationship between the first TCP connection and the second TCP connection when the second connection information from the second computing node has been received through the second TCP connection, wherein the second connection information includes the task number, and the first mapping relationship is used to support the first communication node to forward the business data required to interact between the first computing node and the second computing node in the process of executing the target computing task through the first TCP connection and / or the second TCP connection.
[0038] In this way, by deploying a communication node as a communication relay between two computing nodes belonging to different participants who jointly execute an MPC task, the communication node can use the first TCP connection and / or the second TCP connection to receive the business data that the first computing node and the second computing node need to interact in the process of jointly executing the target computing task, and forward the business data belonging to the target computing task through the first TCP connection and / or the second TCP connection according to the first mapping relationship between the first TCP connection and the second TCP connection established by it, so that the business data belonging to the target computing task can be transmitted point-to-point between the first computing node and the second computing node, and no additional high communication overhead will be caused in the process, so that the business data that the two computing nodes need to interact can be more efficiently transmitted in the process of two computing nodes belonging to different participants jointly executing the MPC task. In addition, for the computing node itself, the reception and transmission of business data are realized directly through the TCP connection, without the need to use other SDKs unrelated to the MPC task, such as the SDK for docking the message queue service, so that the MPC computing logic implemented by any programming language or technology stack (i.e., the computer program corresponding to the service process in the computing node specifically used to execute the MPC task) can be efficiently accessed.
[0039] Figure 2 This is one of the system framework diagrams of the technical solution provided in the embodiments of this specification. Figure 2 As shown, communication nodes can be deployed in both the participant 1 and the participant 2 for jointly executing MPC, for example, the participant 1 can deploy the communication node 10, and the participant 2 can deploy the communication node 20, and the communication node 10 and the communication node 20 will both serve as communication relays between two computing nodes belonging to different participants that jointly execute the MPC task. More specifically, the communication node 10 and the communication node 20 will both serve as the aforementioned first communication node and execute the method executed by the first communication node, wherein: in terms of the method executed by the communication node 10, the communication node 20 is the second communication node relative to the communication node 10; in terms of the method executed by the communication node 20, the communication node 10 is the second communication node relative to the communication node 20.
[0040] In combination with the above Figure 2 The system framework shown in FIG. 1 takes the target computing task jointly performed by computing node 11 and computing node 21 as an example, and describes the communication processing process corresponding to MPC task A. Figure 3 As shown, the communication processing process may include but is not limited to part or all of the following steps S311 to S375.
[0041] Step S311 , the computing node 11 and the communication node 10 establish a TCP connection X1 corresponding to the MPC task A.
[0042] Step S313: The computing node 21 and the communication node 20 establish a TCP connection X2 corresponding to the MPC task A.
[0043] Participant 1 selects computing node 11 to jointly execute MPC task A with participant 2, then computing node 11 can start and run a service process for executing MPC task A (referred to as service process 11A), and computing node 11 will allocate a corresponding port number (referred to as port number 11A) to service process 11A; service process 11A can initiate a TCP connection request to communication node 10, thereby completing the establishment of TCP connection X1 corresponding to MPC task A. Similar to the above process, participant 2 selects computing node 21 to jointly execute MPC task A with participant 1, then computing node 21 can start and run a service process for executing MPC task A (referred to as service process 21A), and computing node 21 will allocate a corresponding port number (referred to as port number 21A) to service process 21A; service process 21A can initiate a TCP connection request to communication node 20, thereby completing the establishment of TCP connection X2 corresponding to MPC task A.
[0044] Step S321 , the computing node 11 sends connection information M1 to the communication node 10 through the TCP connection X1 .
[0045] Step S323, the computing node 21 sends the connection information M2 to the communication node 20 through the TCP connection X2.
[0046] Participant 1 and participant 2 can determine the task number (referred to as Topic A) of the MPC task A to be executed in various possible ways. Further, the service process 11A running in the computing node 11 can send the connection information M1 containing Topic A to the communication node 10 through the TCP connection X1, and the service process 21A running in the computing node 21 can send the connection information M2 containing Topic A to the communication node 20 through the TCP connection X2. In view of the fact that participant 1 may be connected to other computing devices other than participant 2, and participant 2 may be connected to other computing devices other than participant 1, in order to ensure that the communication node 10 and the communication node 20 can accurately associate the TCP connection used to transmit the business data belonging to the MPC task A, the connection information M1 may also include the address information of participant 2 (referred to as Rout 2), and the connection information M2 may also include the address information of participant 1 (referred to as Rout 1). The address information of the participants may be a network address or other types of identification, for example, the address information Rout 1 of participant 1 may include the network address of the communication node 10, and the address information Rout 2 of participant 2 may include the network address of the communication node 20.
[0047] After the communication node 10 receives the connection information M1 through the TCP connection X1, it can also establish a corresponding relationship between the TCP connection X1 and the connection information M1; correspondingly, after the communication node 20 receives the connection information M2 through the TCP connection X2, it can also establish a corresponding relationship between the TCP connection X2 and the connection information M2.
[0048] In step S331 , the communication node 10 determines whether the connection information M2 is received.
[0049] In step S333 , the communication node 20 determines whether the connection information M1 is received.
[0050] In the case where the connection information M1 does not include the address information Rout 2 of the participant 2, after having received the connection information M1 from the participant 1, the communication node 10 can directly determine whether the connection information including Topic A has been received through the TCP connection established between it and the communication node 20 based on Topic A included in the connection information M1, and the connection information including Topic A received through the TCP connection established between it and the communication node 20 is the connection information M2. In the case where the connection information M1 includes the address information Rout 2 and Topic A of the participant 2, after having received the connection information M1 from the participant 1, the communication node 10 can directly determine whether the connection information including Rout 1 and Topic A has been received through the TCP connection established between it and the communication node 20 based on the address information Rout 1 of the participant 1 and Topic A included in the connection information M1, and the connection information including Rout 1 and Topic A received through the TCP connection established between it and the communication node 20 is the connection information M2. The process of the communication node 20 determining whether the connection information M1 is received is similar to the process of the communication node 10 determining whether the connection information M2 is received, and will not be repeated here.
[0051] The aforementioned step S331 and step S333 may not be executed synchronously, that is, step S331 may be completed before step S333, or step S331 may be completed after step S333.
[0052] If step S331 is completed before step S333, then step S331 will determine that the connection information M2 is not received. In this case, the communication node 10 may continue to execute the following steps S34 to S361.
[0053] In step S34, the communication node 10 and the communication node 20 establish a TCP connection X3 corresponding to the connection information M1.
[0054] The communication node 10 can initiate a TCP connection request to the communication node 20, and then establish a TCP connection X3 corresponding to the connection information M1, that is, establish a TCP connection X3 corresponding to Topic A included in the connection information M1; after completing the establishment of the TCP connection X3, the communication node 10 can also establish a correspondence between the TCP connection X3 and the connection information M1.
[0055] Step S35 , the communication node 10 forwards the connection information M1 through the TCP connection X3 .
[0056] After receiving the connection information M1 through the TCP connection X3, the communication node 20 may also establish a corresponding relationship between the TCP connection X3 and the connection information X1.
[0057] Step S361 , the communication node 10 establishes a mapping relationship between the TCP connection X1 for receiving the connection information M1 and the TCP connection X3 for receiving the connection information M2 .
[0058] Since step S331 is executed before step S333, communication node 20 may complete step S34 with communication node 10 at the request of communication node 10 before executing step S333, and receive connection information M1 sent by communication node 10 through TCP connection X3. Then, when communication node 20 executes step S333, it will determine that connection information M1 from participant 1 has been received through TCP connection X3; accordingly, communication node 20 may continue to execute the following step S363 to establish a mapping relationship between TCP connection X2 for receiving connection information M2 and TCP connection X3 for receiving connection information M1.
[0059] If step S333 is completed before step S331, then communication node 20 can initiate a TCP connection request to communication node 10, and then establish a TCP connection X3 corresponding to connection information M2, that is, establish a TCP connection X3 corresponding to Topic A included in connection information M2; communication node 20 can also forward connection information M2 to communication node 10 through TCP connection X3. Correspondingly, because step S333 is completed before step S331, communication node 10 may complete step S34 jointly with communication node 20 at the request of communication node 20 before executing step S331, and receive connection information M2 from communication node 20 through TCP connection X3; then, when communication node 10 executes step S331, it will determine that it has received connection information M2 from participant 2 through TCP connection X3, in which case communication node 10 can continue to execute the aforementioned step S361.
[0060] For the communication node that receives the connection information M1 and the connection information M2, after completing the mapping relationship between the two TCP connections, it can also send a confirmation message indicating that the point-to-point communication connection between the computing node 11 and the computing node 21 has been established through the two TCP connections with the established mapping relationship, so that the computing node 11 and the computing node 21 can send the business data that they need to interact when executing the MPC task A through the corresponding TCP connection after confirming that the point-to-point communication connection has been established based on the confirmation message. For example, after the communication node 20 completes the execution of step S363, it can send a confirmation message through the TCP connection X2, and the confirmation message will be received by the computing node 21 and provided to the service process 21A; in addition, it can also send a confirmation message through the TCP connection X3, and the communication node 10 can forward the confirmation message through the TCP connection X1 according to the mapping relationship between the TCP connection X3 and the TCP connection X1 established by it, and the confirmation message will be received by the computing node 11 and provided to the service process 11A; further, the service process 21A and the service process 11A can send the business data that needs to be interacted between the participant 1 and the participant 2 through the corresponding TCP connection according to their own business needs.
[0061] Taking the process in which computing node 11 and computing node 21 jointly execute MPC task A, when computing node 11 needs to send business data Y1 to computing node 21 as an example, based on the aforementioned steps S311 to S363, the point-to-point transmission of business data Y1 from computing node 11 to computing node 21 can be completed through the following steps S371 to S375.
[0062] In step S371, the communication node 10 receives the service data Y1 that the computing node 11 needs to send to the computing node 21 during the execution of the MPC task A through the TCP connection X1. That is, the service process 11A may generate the service data Y1 during the execution of the MPC task A and send the service data Y1 to the communication node 10 through the TCP connection X1.
[0063] In step S373, the communication node 10 forwards the service data Y1 through the TCP connection X3 according to the mapping relationship between the TCP connection X1 and the TCP connection X3. That is, after the communication node 10 receives the service data Y1 through the TCP connection X1, it can query the TCP connection X3 that will be used to forward the service data Y1 through the established mapping relationship, and then forward the service data Y1 received through the TCP connection X1 through the TCP connection X3.
[0064] In step S375, the communication node 20 forwards the service data Y1 through the TCP connection X2 according to the mapping relationship between the TCP connection X3 and the TCP connection X2. That is, after the communication node 20 receives the service data Y1 through the TCP connection X3, the TCP connection X2 to be used for forwarding the service data Y1 can be queried through the established mapping relationship, and then the service data Y1 received through the TCP connection X3 can be forwarded through the TCP connection X2, so that the service data Y1 can be finally received by the computing node 21 and provided to the service process 21A.
[0065] Similarly, if computing node 11 and computing node 21 jointly execute MPC task A, computing node 21 needs to send business data Y2 to computing node 11, service process 21A can send business data Y2 to communication node 20 through TCP connection X2; communication node 20 can forward business data Y2 to communication node 10 through TCP connection X3 based on the mapping relationship between TCP connection X2 and TCP connection X3 established by it; communication node 10 can forward business data Y2 to computing node 11 through TCP connection X1 based on the mapping relationship between TCP connection X3 and TCP connection X1 established by it, so that business data Y2 can eventually be received by computing node 11 and provided to service process 11A.
[0066] The business data belonging to the MPC task transmitted between the communication node 10 and the communication node 20 can be securely transmitted using various encryption measures including transport layer security (TLS).
[0067] It should be noted that the communication node 10 and the communication node 20 will establish TCP connections for several MPC tasks jointly executed by the participants 1 and 2; for example, in addition to the aforementioned TCP connection X3 corresponding to MPC task A, the communication node 10 and the communication node 20 may also establish a TCP connection X4 corresponding to MPC task B. When the TCP connection corresponding to a certain MPC task established between the computing node and the communication node is disconnected, the communication nodes also need to disconnect the TCP connection corresponding to the MPC task and invalidate the mapping relationship between the two TCP connections corresponding to the MPC task; for example, when the TCP connection X1 corresponding to MPC task A is disconnected, the communication node 10 can disconnect the TCP connection X3 established between it and the communication node 20, and delete the mapping relationship between the TCP connection X1 and the TCP connection X3 established by it.
[0068] Figure 4 This is the second system framework diagram of the technical solution provided in the embodiments of this specification. Figure 4As shown, participant 1 and participant 2 for jointly executing MPC can be connected to a centralized communication node 30 (i.e., the first communication node), and the communication node 30 will serve as a communication relay between two computing nodes belonging to different participants that jointly execute the MPC task.
[0069] The following is a specific combination Figure 4 The system framework shown in FIG. 1 takes the target computing task jointly performed by computing node 11 and computing node 21 as an example, and describes the communication processing process corresponding to MPC task A. Figure 5 As shown, the communication processing process may include but is not limited to part or all of the following steps S511 to S593.
[0070] Step S511 , the computing node 11 and the communication node 30 establish a TCP connection X1 corresponding to the MPC task A.
[0071] Step S513: The computing node 21 and the communication node 30 establish a TCP connection X2 corresponding to the MPC task A.
[0072] Participant 1 selects computing node 11 to jointly execute MPC task A with participant 2, then computing node 11 can start and run a service process (referred to as service process 11A) for executing MPC task A, and computing node 11 will allocate a corresponding port number (referred to as port number 11A) to service process 11A; service process 11A can initiate a TCP connection request to communication node 10, thereby completing the establishment of TCP connection X1 corresponding to MPC task A. Similar to the above process, participant 2 selects computing node 21 to jointly execute MPC task A with participant 1, then computing node 21 can start and run a service process (referred to as service process 21A) for executing MPC task A, and computing node 21 will allocate a corresponding port number (referred to as port number 21A) to service process 21A; service process 21A can initiate a TCP connection request to communication node 20, thereby completing the establishment of TCP connection X2 corresponding to MPC task A.
[0073] Step S531 , the computing node 11 sends connection information M1 to the communication node 30 through the TCP connection X1 .
[0074] Step S533 , the computing node 21 sends connection information M2 to the communication node 30 through the TCP connection X2.
[0075] Participant 1 and Participant 2 can determine the task number (referred to as Topic A) of the MPC task A to be executed in various possible ways. Furthermore, the service process 11A running in the computing node 11 can send the connection information M1 containing Topic A to the communication node 10 through the TCP connection X1, and the service process 21A running in the computing node 21 can send the connection information M2 containing Topic A to the communication node 20 through the TCP connection X2. Since Participant 1 may be connected to other computing devices other than Participant 2, and Participant 2 may be connected to other computing devices other than Participant 1, in order to ensure that the communication node 30 can accurately associate the TCP connection used to transmit the business data belonging to the MPC task A, the connection information M1 may also include the address information of Participant 2 (referred to as Rout 2), and the connection information M2 may also include the address information of Participant 1 (referred to as Rout 1). The address information of the participants may be a network address or other identifier.
[0076] Step S551 , after receiving the connection information M1 through the TCP connection X1 , the communication node 30 determines whether the connection information M2 is received from the participant 2 .
[0077] Step S553 , after receiving the connection information M2 through the TCP connection X3 , the communication node 30 determines whether the connection information M1 is received from the participant 1 .
[0078] In the case where the connection information M1 does not include the address information Rout 2 of the participant 2, after having received the connection information M1 from the participant 1, the communication node 30 can directly determine whether the connection information including Topic A has been received through other TCP connections based on Topic A included in the connection information M1, and the connection information including Topic A received through other TCP connections is the connection information M2 from the participant 2 / computing node 21. In the case where the connection information M1 includes the address information Rout 2 and Topic A of the participant 2, after having received the connection information M1 from the participant 1, the communication node 30 can directly determine whether the connection information including Rout 1 and Topic A has been received through other TCP connections based on the address information Rout 1 of the participant 1 and Topic A included in the connection information M1, and the connection information including Rout 1 and Topic A received through other TCP connections is the connection information M2 from the participant 2 / computing node 21. The process of the communication node 30 determining whether the connection information M1 is received from the participant 1 is similar to the process of the communication node 30 determining whether the connection information M2 is received from the participant 2, and will not be repeated here.
[0079] Step S531 and step S533 may not be executed synchronously, which may result in: step S551 is completed before step S533, while step S553 is completed later than step S531; or step S553 is completed before step S531, while step S551 is completed later than step S533.
[0080] If step S551 is executed before step S533, and step S553 is executed after step S531, then step S551 will determine that the connection information M2 from participant 2 has not been received, and step S553 will determine that the connection information M1 from participant 1 has been received. In this case, the communication node 30 can execute step S57 based on the execution result of the aforementioned step S553 to establish a mapping relationship between the TCP connection X1 for receiving the connection information M1 and the TCP connection X2 for receiving the connection information M2.
[0081] If step S551 is completed later than step S533, and step S553 is completed earlier than step S531, then step S553 will determine that the connection information M1 from participant 1 has not been received, and step S551 will determine that the connection information M2 from participant 2 has been received. In this case, the communication node 30 can execute the aforementioned step S57 based on the result of the aforementioned step S551.
[0082] After completing the execution of the aforementioned step S57, the communication node 30 may also send a confirmation message indicating that the point-to-point communication connection has been established between the computing node 11 and the computing node 21 through the two TCP connections with which the mapping relationship has been established, so that after the computing node 11 and the computing node 21 confirm that the point-to-point communication connection has been established based on the confirmation message, they can send the business data they need to interact when executing the MPC task A through the corresponding TCP connection.
[0083] Taking the process in which computing node 11 and computing node 21 jointly execute MPC task A, when computing node 11 needs to send business data Y1 to computing node 21 as an example, based on the aforementioned steps S511 to S57, the point-to-point transmission of business data Y1 from computing node 11 to computing node 21 can be completed through the following steps S591 and S593.
[0084] In step S591, the communication node 30 receives the service data Y1 that the computing node 11 needs to send to the computing node 21 during the execution of the MPC task A through the TCP connection X1. That is, the service process 11A may generate the service data Y1 during the execution of the MPC task A and send the service data Y1 to the communication node 30 through the TCP connection X1.
[0085] In step S593, the communication node 30 forwards the service data Y1 through the TCP connection X2 according to the mapping relationship between the TCP connection X1 and the TCP connection X2. That is, after the communication node 30 receives the service data Y1 through the TCP connection X1, it can query the TCP connection X2 that will be used to forward the service data Y1 through the established mapping relationship, and then forward the service data Y1 received through the TCP connection X1 through the TCP connection X2.
[0086] Similarly, if computing node 11 and computing node 21 jointly execute MPC task A, computing node 21 needs to send business data Y2 to computing node 11, service process 21A can send business data Y2 to communication node 30 through TCP connection X2; communication node 30 can forward business data Y2 to computing node 11 through TCP connection X1 based on the mapping relationship between TCP connection X2 and TCP connection X1 established by it, so that business data Y2 can eventually be received by computing node 11 and provided to service process 11A.
[0087] Based on the same concept as the aforementioned method embodiment, the embodiment of this specification also provides a first communication node, involving a first computing node and a second computing node, the first computing node is one of several computing nodes deployed on the first participant, the second computing node is one of several computing nodes deployed on the second participant, and the first participant and the second participant are used to jointly execute MPC. Figure 6 As shown, the first communication node includes: a communication management unit 61, which is used to receive first connection information from the first computing node through a first TCP connection between the first communication node and the first computing node, wherein the first connection information includes the task number of the target computing task; a connection management unit 63, which is used to establish a first mapping relationship between the first TCP connection and the second TCP connection when second connection information has been received from the second computing node through a second TCP connection, wherein the second connection information includes the task number; the first mapping relationship is used to support the first communication node to forward business data that the first computing node and the second computing node need to interact in the process of executing the target computing task through the first TCP connection and / or the second TCP connection.
[0088] In a possible implementation manner, the first connection information further includes address information of the second participant, and the second connection information further includes address information of the first participant.
[0089] In a possible implementation, the plurality of computing nodes are implemented as a plurality of containers or a plurality of pods.
[0090] In a possible implementation manner, the second TCP connection is a TCP connection between the first communication node and the second computing node.
[0091] In a possible implementation, the first communication node is deployed in the first participant, a second communication node is also deployed in the second participant, and the second TCP connection is a TCP connection between the first communication node and the second communication node.
[0092] In a possible implementation, a third TCP connection is established between the second communication node and the second computing node, and the second TCP connection is established by the second communication node after the second communication node receives the second connection information from the second computing node through the third TCP connection.
[0093] In one possible implementation, the communication management unit 61 is further used to establish the second TCP connection between the first communication node and the second communication node without receiving the second connection information from the second computing node through the second TCP connection; the connection management unit 63 is further used to establish a first mapping relationship between the first TCP connection and the second TCP connection; the communication management unit 61 is further used to send the first connection information to the second communication node through the second TCP connection, so that the second communication node establishes a second mapping relationship between the second TCP connection and the third TCP connection after receiving the second connection information through a third TCP connection between the second communication node and the second computing node, and the second mapping relationship is used to support the second communication node to forward the data that the first computing node and the second computing node need to interact in the process of executing the target computing task through the second TCP connection and / or the third TCP connection.
[0094] In a possible implementation, the communication management unit 61 is also used to receive, through the first TCP connection, the first business data that the first computing node needs to send to the second computing node in the process of executing the target computing task, determine the second TCP connection corresponding to the first TCP connection according to the first mapping relationship, and forward the first business data through the second TCP connection.
[0095] In a possible implementation, the communication management unit 61 is also used to receive, through the second TCP connection, second business data that the second computing node needs to send to the first computing node in the process of executing the target computing task, determine the first TCP connection corresponding to the second TCP connection according to the first mapping relationship, and forward the second business data through the second TCP connection.
[0096] Those skilled in the art should be aware that in one or more of the above examples, the functions described in this specification can be implemented by hardware, software, firmware, or any combination thereof. When implemented by software, the computer programs corresponding to these functions can be stored in a computer-readable medium or transmitted as one or more instructions / codes on a computer-readable medium, so that when the computer programs corresponding to these functions are executed by a computer, the method described in any embodiment of this specification is implemented by the computer.
[0097] A computer-readable storage medium is also provided in an embodiment of the present specification, on which a computer program is stored. When the computer program is executed in a computing device, the computing device executes a method performed by the communication node 10, the communication node 20 or the communication node 30 provided in any embodiment of the present specification.
[0098] A computing device is also provided in an embodiment of the present specification, including a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method performed by the communication node 10, the communication node 20 or the communication node 30 provided in any embodiment of the present specification is implemented.
[0099] Each embodiment in this specification is described in a progressive manner, and the same or similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0100] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0101] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solution of the present invention should be included in the scope of protection of the present invention.
Claims
1. A communication processing method, involving a first communication node, a first computing node, and a second computing node, wherein the first computing node is one of several computing nodes deployed on a first participant, and the second computing node is one of several computing nodes deployed on a second participant, and the first participant and the second participant are used to jointly perform a secure multi-party computation (MPC), and the method is performed by the first communication node, and the method include: receiving first connection information from the first computing node through a first transmission control protocol TCP connection between the first communication node and the first computing node, the first connection information including a task number of a target computing task; When the second connection information has been received from the second computing node through the second TCP connection, a first mapping relationship between the first TCP connection and the second TCP connection is established, wherein the second connection information includes the task number; the first mapping relationship is used to support the first communication node to forward the business data that the first computing node and the second computing node need to interact in the process of executing the target computing task through the first TCP connection and / or the second TCP connection.
2. According to the method of claim 1, the first connection information also includes the address information of the second participant, and the second connection information also includes the address information of the first participant.
3. According to the method of claim 1, the plurality of computing nodes are implemented as a plurality of containers or a plurality of pods.
4. The method according to claim 1, wherein the second TCP connection is a TCP connection between the first communication node and the second computing node.
5. According to the method according to claim 1, the first communication node is deployed in the first participant, and a second communication node is also deployed in the second participant, and the second TCP connection is a TCP connection between the first communication node and the second communication node.
6. According to the method of claim 5, a third TCP connection is established between the second communication node and the second computing node, and the second TCP connection is established by the second communication node after it receives the second connection information from the second computing node through the third TCP connection.
7. The method according to claim 5, further comprising: include: In the case where the second connection information from the second computing node is not received through the second TCP connection, establishing the second TCP connection between the first communication node and the second communication node; A first mapping relationship between the first TCP connection and the second TCP connection is established, and the first connection information is sent to the second communication node through the second TCP connection, so that after the second communication node receives the second connection information through a third TCP connection between it and the second computing node, a second mapping relationship is established between the second TCP connection and the third TCP connection, wherein the second mapping relationship is used to support the second communication node to forward data that the first computing node and the second computing node need to interact with each other in the process of executing the target computing task through the second TCP connection and / or the third TCP connection.
8. The method according to any one of claims 1 to 7, further comprising: include: receiving, through the first TCP connection, first business data that the first computing node needs to send to the second computing node in the process of executing the target computing task, determining, according to the first mapping relationship, the second TCP connection corresponding to the first TCP connection, and forwarding the first business data through the second TCP connection; and / or, Receive the second business data that the second computing node needs to send to the first computing node during the process of executing the target computing task through the second TCP connection, determine the first TCP connection corresponding to the second TCP connection according to the first mapping relationship, and forward the second business data through the second TCP connection.
9. A first communication node, comprising a first computing node and a second computing node, wherein the first computing node is one of several computing nodes deployed at a first participant, and the second computing node is one of several computing nodes deployed at a second participant, wherein the first participant and the second participant are used to jointly perform a secure multi-party computation (MPC), wherein the first communication node, include: a communication management unit, configured to receive first connection information from the first computing node through a first transmission control protocol TCP connection between the first communication node and the first computing node, wherein the first connection information includes a task number of a target computing task; A connection management unit, used to establish a first mapping relationship between the first TCP connection and the second TCP connection when second connection information has been received from the second computing node through a second TCP connection, wherein the second connection information includes the task number; the first mapping relationship is used to support the first communication node to forward business data that the first computing node and the second computing node need to interact with in the process of executing the target computing task through the first TCP connection and / or the second TCP connection.
10. The communication node according to claim 9, wherein the first connection information further includes the address information of the second participant, and the second connection information further includes the address information of the first participant. The communication node according to claim 9 , wherein the plurality of computing nodes are implemented as a plurality of containers or a plurality of pods.
12. The communication node according to claim 9, wherein the second TCP connection is a TCP connection between the first communication node and the second computing node.
13. The communication node according to claim 9, wherein the first communication node is deployed in the first participant, a second communication node is also deployed in the second participant, and the second TCP connection is a TCP connection between the first communication node and the second communication node.
14. According to the communication node of claim 13, a third TCP connection is established between the second communication node and the second computing node, and the second TCP connection is established by the second communication node after it receives the second connection information from the second computing node through the third TCP connection.
15. The communication node according to claim 13, in, The communication management unit is further configured to establish the second TCP connection between the first communication node and the second communication node when the second connection information from the second computing node is not received through the second TCP connection; The connection management unit is further used to establish a first mapping relationship between the first TCP connection and the second TCP connection; The communication management unit is also used to send the first connection information to the second communication node through the second TCP connection, so that after the second communication node receives the second connection information through the third TCP connection between it and the second computing node, the second mapping relationship is used to support the second communication node to forward the data that the first computing node and the second computing node need to interact in the process of executing the target computing task through the second TCP connection and / or the third TCP connection.
16. A communication node according to any one of claims 9 to 15, in, The communication management unit is further configured to receive, through the first TCP connection, first service data that the first computing node needs to send to the second computing node in the process of executing the target computing task, determine the second TCP connection corresponding to the first TCP connection according to the first mapping relationship, and forward the first service data through the second TCP connection; and / or, The communication management unit is also used to receive, through the second TCP connection, second business data that the second computing node needs to send to the first computing node during the execution of the target computing task, determine the first TCP connection corresponding to the second TCP connection according to the first mapping relationship, and forward the second business data through the second TCP connection.
17. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed in a computing device, the computing device executes the method according to any one of claims 1 to 8.
18. A computing device comprising a memory and a processor, wherein the memory stores executable codes, and when the processor executes the executable codes, the method according to any one of claims 1 to 8 is implemented.
