Communication establishment method and system

By establishing communication connections between physical machines and applying for shared memory, the problem of low communication efficiency between physical machines is solved, efficient network communication is achieved, and the service quality in the cloud computing environment is improved.

CN116074230BActive Publication Date: 2024-09-17ALIBABA CLOUD COMPUTING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211510303.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-29
Publication Date
2024-09-17
Estimated Expiration
2042-11-29

AI Technical Summary

Technical Problem

The communication efficiency between physical machines in the existing technology is insufficient, resulting in network communication performance requirements not being effectively met. Especially under containerization and microservice deployment in cloud computing environments, the network communication volume between physical machines increases, resulting in communication Inefficient.

Method used

By pre-establishing communication connections between physical machines, applying for shared memory in the target memory device, and using shared memory for communication, data copy and forwarding operations are avoided, thereby improving communication efficiency. Specific steps include receiving communication connection requests, establishing communication connections, applying for shared memory, and registering memory information in shared memory to achieve efficient data transmission between physical machines.

Benefits of technology

Through shared memory communication, it improves the efficiency of network communication between physical machines, supports transparent and transparent accelerated communication, provides better cloud services, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116074230B
    Figure CN116074230B
Patent Text Reader

Abstract

The embodiments of this specification provide a communication establishment method and system, which are applied to a first physical machine, wherein the first physical machine pre-establishes a first communication connection with the second physical machine, and both the first physical machine and the second physical machine are in communication connection with a target memory device, and the method includes: receiving a second communication connection request sent by the second physical machine; establishing a second communication connection with the second physical machine in response to the second communication connection request, and applying for a shared memory in the target memory device; and sending the memory information corresponding to the shared memory to the second physical machine based on the second communication connection. Since the second communication connection is established with the second physical machine based on the first communication connection, the memory information of the shared memory applied in the target memory device can be sent to the second physical machine based on the second communication connection, thereby communicating with the second physical machine based on the shared memory, and using the shared memory for communication, there is no need to copy and forward the data, thereby improving the efficiency of communication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present specification relate to the field of computer technology, and in particular to a communication establishment method. Background Art

[0002] With the development of Internet technology, cloud computing has become the main service support platform for today's service providers. With the increase in the number of server machines, the density of physical machines in a single node is also getting higher and higher. To achieve the containerization, microservices, and distribution of current cloud applications, a large number of application services are deployed on different physical machines, which greatly increases the network communication volume between physical machines, resulting in higher and higher performance requirements for network communication. In the prior art, in order to improve the communication efficiency between physical machines, data transmission can only be performed based on the network, or data copying can only be performed based on shared memory, resulting in insufficient communication efficiency between physical machines. Therefore, an effective solution is urgently needed to solve the above problems. Summary of the invention

[0003] In view of this, the embodiments of this specification provide three communication establishment methods. One or more embodiments of this specification also involve a communication establishment device, two communication establishment systems, a computing device, a computer-readable storage medium and a computer program to solve the technical defects existing in the prior art.

[0004] According to a first aspect of an embodiment of this specification, a communication establishment method is provided, which is applied to a first physical machine, wherein the first physical machine pre-establishes a first communication connection with a second physical machine, and both the first physical machine and the second physical machine are communicatively connected to a target memory device, and the method includes:

[0005] Receiving a second communication connection request sent by the second physical machine;

[0006] In response to the second communication connection request, establishing a second communication connection with the second physical machine, and applying for a shared memory in the target memory device;

[0007] Memory information corresponding to the shared memory is sent to the second physical machine based on the second communication connection, wherein the first physical machine and the second physical machine communicate through the shared memory.

[0008] According to a second aspect of an embodiment of this specification, a communication establishment method is provided, which is applied to a second physical machine, wherein the second physical machine pre-establishes a first communication connection with a first physical machine, and both the first physical machine and the second physical machine are communicatively connected to a target memory device, the method comprising:

[0009] Sending a second communication connection request to the first physical machine;

[0010] In response to a feedback message sent by the first physical machine in response to the second communication connection request, establishing a second communication connection with the first physical machine;

[0011] When memory information sent by the first physical machine is received based on the second communication connection, a shared memory is registered according to the memory information; wherein the first physical machine and the second physical machine communicate through the shared memory.

[0012] According to a third aspect of an embodiment of this specification, a communication establishment method is provided, which is applied to a control end, the control end manages a first physical machine and a second physical machine, the first physical machine and the second physical machine pre-establish a first communication connection, and the first physical machine and the second physical machine are both in communication connection with a target memory device, the method comprising:

[0013] Calling the second physical machine to send a second communication connection request to the first physical machine;

[0014] Invoke the first physical machine to establish a second communication connection with the second physical machine according to the second communication connection request, and apply for a shared memory in the target memory device; and

[0015] Calling the first physical machine to send the memory information corresponding to the shared memory to the second physical machine based on the second communication connection;

[0016] The second physical machine is called to register the shared memory based on the memory information.

[0017] According to a fourth aspect of an embodiment of this specification, a communication establishment system is provided, which is applied to a first physical machine and a second physical machine, wherein the first physical machine and the second physical machine pre-establish a first communication connection, and both the first physical machine and the second physical machine are communicatively connected to a target memory device, and the system includes:

[0018] The second physical machine is used to send a second communication connection request to the first physical machine;

[0019] The first physical machine is used to establish a second communication connection with the second physical machine in response to the second communication connection request, apply for a shared memory in the target memory device, and send memory information corresponding to the shared memory to the second physical machine based on the second communication connection;

[0020] The second physical machine is used to register the shared memory based on the memory information.

[0021] According to a fifth aspect of an embodiment of this specification, a communication establishment system is provided, including:

[0022] A first physical machine and a second physical machine;

[0023] The first physical machine pre-establishes a first communication connection with the second physical machine, and both the first physical machine and the second physical machine are communicatively connected to a target memory device. The first physical machine is used to store application executable instructions for shared memory, and when the application executable instructions are executed by the first physical machine, the steps of any of the above-mentioned methods are implemented.

[0024] According to a sixth aspect of an embodiment of this specification, a computing device is provided, including:

[0025] Memory and processor;

[0026] The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the above communication establishment method are implemented.

[0027] According to a seventh aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the above-mentioned communication establishment method are implemented.

[0028] According to an eighth aspect of the embodiments of this specification, a computer program is provided, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above-mentioned communication establishment method.

[0029] The embodiments of this specification provide a communication establishment method and system, wherein the communication establishment method is applied to a first physical machine, the first physical machine pre-establishes a first communication connection with a second physical machine, and the first physical machine and the second physical machine are both connected to a target memory device, and the method includes: receiving a second communication connection request sent by the second physical machine; establishing a second communication connection with the second physical machine in response to the second communication connection request, and applying for a shared memory in the target memory device; sending the memory information corresponding to the shared memory to the second physical machine based on the second communication connection, wherein the first physical machine and the second physical machine communicate through the shared memory. Since the second communication connection is established with the second physical machine based on the first communication connection, the memory information of the shared memory applied in the target memory device can be sent to the second physical machine based on the second communication connection, thereby communicating with the second physical machine based on the shared memory, and using the shared memory for communication, there is no need to copy and forward the data, thereby improving the efficiency of communication. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 is a schematic diagram of a communication establishment method provided by an embodiment of this specification;

[0031] Figure 2 is a flow chart of a communication establishment method provided by an embodiment of this specification;

[0032] Figure 3 is a flow chart of another communication establishment method provided by an embodiment of this specification;

[0033] Figure 4 is a flow chart of another communication establishment method provided by an embodiment of this specification;

[0034] Figure 5 is a timing diagram of a communication establishment method provided by an embodiment of this specification;

[0035] Figure 6 It is a structural diagram of a communication establishment system provided by an embodiment of this specification;

[0036] Figure 7 It is a structural diagram of a communication establishment device provided by an embodiment of this specification;

[0037] Figure 8 is a structural diagram of another communication establishment device provided by an embodiment of this specification;

[0038] Fig. 9 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION

[0039] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.

[0040] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0041] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0042] First, the terms involved in one or more embodiments of this specification are explained.

[0043] CXL: The full name is Compute Express Link. It is an open industrial standard for high-bandwidth and low-latency device interconnection.

[0044] SMC (Shared Memory Communication): is a technology that uses a standard POSIX Socket interface to communicate with shared memory internally. Shared memory communication refers to the sharing of data between multiple different processes by establishing page table mappings for the same physical memory. Since shared memory communication recently accesses the same physical address, shared memory communication often does not require data copying. Shared memory is the most efficient way to communicate data between processes.

[0045] In this specification, a communication establishment method is provided. This specification also relates to a communication establishment device, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments.

[0046] See also Figure 1 , Figure 1A schematic diagram of a communication establishment method provided according to an embodiment of the present specification is shown. The communication establishment method provided in the present embodiment includes a first physical machine and a second physical machine, and the first physical machine and the second physical machine simultaneously run the same communication protocol stack; the first physical machine and the second physical machine establish a TCP connection request through a three-way handshake. Through the TCP connection, the second physical machine can send an SMC CLC handshake to the first physical machine. The first physical machine establishes an SMC connection with the second physical machine based on the SMC CLC handshake. After the first physical machine and the second physical machine establish an SMC connection, the first physical machine applies for a shared memory in the target memory device. After receiving the address, length and token information of the shared memory, the first physical machine registers in the local machine according to the address, length and token information of the shared memory. The SMC protocol stack in the first physical machine encapsulates the information of the shared memory block it applies for in a message agreeing to establish a communication connection of the SMC, and sends the message agreeing to establish a communication connection of the SMC to the second physical machine. After receiving the address, length and token information of the shared memory, the second physical machine registers in the local machine according to the address, length and token information of the shared memory.

[0047] The embodiments of this specification implement network communication between two physical machines through shared memory, effectively improving the efficiency of network communication. Furthermore, under the premise that the two physical machines run the same communication protocol stack, it can support the applications on the physical machines to achieve seamless and transparent accelerated communication, thereby providing users with better quality cloud services.

[0048] See also Figure 2 , Figure 2 A flowchart of a communication establishment method provided according to an embodiment of the present specification is shown. The communication establishment method is applied to a first physical machine. The first physical machine pre-establishes a first communication connection with a second physical machine, and both the first physical machine and the second physical machine are communication-connected with a target memory device. The method specifically includes the following steps.

[0049] Step 202: Receive a second communication connection request sent by the second physical machine.

[0050] Specifically, the first physical machine and the second physical machine may be physical machines in a server room, and the first physical machine and the second physical machine may be connected to the same rack to achieve physical connection between the first physical machine and the second physical machine, thereby enabling data transmission.

[0051] It should be noted that the communication establishment method provided in this specification may include establishing a communication connection between any number of first physical machines and any number of second physical machines. For the convenience of description, this embodiment is described as if the number of the first physical machine and the number of the second physical machine are both one.

[0052] Furthermore, the target memory device may be a device where the shared memory is located, and the device where the shared memory is located may be a machine device corresponding to the second physical machine, or a machine device corresponding to the first physical machine, or a machine device of a third party. In some embodiments, the target memory device may also be a memory supporting the CXL protocol.

[0053] Before receiving the second communication connection request sent by the second physical machine, the first physical machine needs to communicate with the second physical machine first, and the specific implementation is as follows.

[0054] A first communication connection request is received from the second physical machine, and a first communication connection is established with the second physical machine based on the first communication connection request.

[0055] Specifically, the first communication connection request may be a TCP connection request, and accordingly, the first communication connection may be a TCP connection.

[0056] In practical applications, the first physical machine and the second physical machine need to establish a first communication connection in advance. For example, the first physical machine and the second physical machine establish a TCP connection, so that the TCP connection can support communication between the first physical machine and the second physical machine to achieve the purpose of transmitting information.

[0057] It should be noted that the first physical machine and the second physical machine may also use a pre-negotiated communication protocol, as long as it can ensure that communication can be established between the first physical machine and the second physical machine. This embodiment does not impose any limitation on this.

[0058] For example, a server is running in physical machine A, and a client corresponding to the server in physical machine A is running in physical machine B. Physical machine A and physical machine B establish a TCP connection request through a three-way handshake.

[0059] The embodiment of the present specification establishes a first connection request in advance so that a second connection request can be sent based on the first connection in subsequent steps, thereby achieving the purpose of sending memory information based on the second connection request and realizing shared memory.

[0060] Based on this, when it is determined that a first communication connection has been established between a first physical machine and a second physical machine in the same computer room, the second physical machine may send a second communication connection request to the first physical machine.

[0061] In actual applications, a server is running in the first physical machine, and a client corresponding to the server of the first physical machine is running in the second physical machine. When there is a communication demand, the client in the second physical machine can send an SMC CLC handshake to the first physical machine to indicate the need to establish a second communication connection.

[0062] For example, physical machine A has established a TCP connection with physical machine B, a server is running in physical machine A, and a client corresponding to the server in physical machine A is running in physical machine B. Through the TCP connection, physical machine B can send an SMCCLC handshake to physical machine A.

[0063] The embodiment of the present specification facilitates subsequent establishment of the second communication connection and sharing of memory based on the second communication connection by receiving the second communication connection request sent by the second physical machine.

[0064] Step 204: Establishing a second communication connection with the second physical machine in response to the second communication connection request, and applying for a shared memory in the target memory device.

[0065] Before establishing the second communication connection with the second physical machine in response to the second communication connection request, it is also necessary to ensure that the first physical machine and the second physical machine support the same communication protocol stack, which only needs to ensure that the two communicating parties can communicate and interact with each other under the premise of the same communication protocol. Specifically, the shared memory is the shared memory applied for by the target memory device, which serves as a circular buffer for the second physical machine to receive data and also as a circular buffer for the first physical machine to send data.

[0066] In actual applications, both the first physical machine and the second physical machine support the SMC protocol stack, and the SMC protocol stack can support communication between the first physical machine and the second physical machine through shared memory, thereby improving network communication performance; thereby, the first physical machine can receive a second communication connection request sent by the second physical machine, and establish a second communication connection with the second physical machine based on the second communication connection request. After the second communication connection is established, it means that memory information can be sent, and shared memory can be applied from the target memory device.

[0067] Using the above example, physical machine A has established a TCP connection with physical machine B. A server is running on physical machine A, and a client corresponding to the server in physical machine A is running on physical machine B. Through the TCP connection, physical machine B can send an SMC CLC handshake to physical machine A. Based on the SMC CLC handshake, physical machine A establishes an SMC connection with physical machine B. After physical machine A and physical machine B establish an SMC connection, physical machine A applies for shared memory in the target memory device.

[0068] In the embodiment of this specification, after the first physical machine establishes an SMC connection with the second physical machine, the first physical machine applies for shared memory in the target memory device, so as to enable sending of shared memory information based on the SMC connection, thereby facilitating subsequent communication based on the shared memory.

[0069] Furthermore, for the first physical machine and the second physical machine, some state information and some configuration information related to CXL need to be synchronized to ensure that they are mapped to the same memory address space. In this embodiment, the specific implementation is as follows:

[0070] The establishing a second communication connection with the second physical machine in response to the second communication connection request includes:

[0071] Determine a local first shared port, and determine a second shared port of the second physical machine according to the second communication connection request;

[0072] Matching the first shared port with the second shared port to obtain a matching result;

[0073] When the matching result is successful, a second communication connection with the second physical machine is established.

[0074] The local first shared port may be a port for the first physical machine to communicate with the target memory device, and correspondingly, the second shared port may be a port for the second physical machine to communicate with the target memory device. The first shared port and the second shared port may be CXL ports.

[0075] In actual applications, the status information and some configuration information related to CXL include (1) CXL device number; (2) information related to memory structure, such as VMA (virtual memory area), page table, etc.; (3) CXL port identification; (4) memory location related configuration information, such as offset and separation method.

[0076] Based on this, the first shared port of the first physical machine and the second shared port of the second physical machine can be obtained, and the first shared port and the second shared port can be compared. If the first shared port and the second shared port are found to be consistent, it is determined that the first shared port and the second shared port match, and the first physical machine establishes a connection with the second physical machine. If the first shared port and the second shared port are found to be inconsistent, it is determined that the first shared port and the second shared port do not match, and the first physical machine refuses to establish a connection with the second physical machine.

[0077] The embodiment of this specification ensures the correctness of the second communication connection based on the port matching method, thereby avoiding the wrong connection between two physical machines and improving the stability and security of the solution.

[0078] Furthermore, after the second communication connection is established, an application for memory space may be made in the target memory device, and the shared memory may be registered locally to implement the shared memory. The specific implementation method is as follows.

[0079] The applying for shared memory in the target memory device comprises:

[0080] Sending a shared memory application instruction to the target memory device, and receiving memory information corresponding to the shared memory returned by the target memory device in response to the shared memory application instruction;

[0081] The shared memory is registered according to the memory information corresponding to the shared memory.

[0082] The shared memory application instruction may be an instruction that can be recognized by the target memory device and is used to apply for shared memory space. The memory information may be memory information of the shared memory applied for, such as the address of the memory block, the length of the memory block, and token information. Registering the shared memory may be understood as mapping the virtual memory space locally, that is, mapping the shared memory to the virtual memory of the first physical machine so that the first physical machine can access it.

[0083] For example, after the first physical machine establishes an SMC connection with the second physical machine, the first physical machine sends a shared memory application instruction to the CXL memory device. After the CXL device receives the application instruction sent by the first physical machine, it divides the shared memory from the memory and returns the address, length and token information of the shared memory to the first physical machine. After receiving the address, length and token information of the shared memory, the first physical machine registers it in the local machine according to the address, length and token information of the shared memory. Specifically, a virtual memory can be mapped in the local machine according to the address, length and token information of the shared memory.

[0084] The embodiment of this specification ensures that the shared memory is applied for after the second communication connection is established, so that both the first physical machine and the second physical machine can be mapped to the same memory, thereby avoiding errors and improving the stability of the connection.

[0085] Step 206: Sending memory information corresponding to the shared memory to the second physical machine based on the second communication connection, wherein the first physical machine and the second physical machine communicate through the shared memory.

[0086] The memory information may include information indicating the address and length of the memory.

[0087] In actual applications, after the second physical machine establishes a second communication connection and applies for a shared memory, the memory information of the shared memory can be sent to the second physical machine based on the second communication connection, so that the second physical machine shares the memory with the first physical machine through the memory information of the shared memory. After sharing the memory with the first physical machine, the second physical machine communicates with the first physical machine through the shared memory.

[0088] Using the above example, physical machine A has established a TCP connection with physical machine B. A server is running on physical machine A, and a client corresponding to the server in physical machine A is running on physical machine B. Through the TCP connection, physical machine B can send an SMC CLC handshake to physical machine A. Based on the SMC CLC handshake, physical machine A establishes an SMC connection with physical machine B. After physical machine A and physical machine B establish an SMC connection, physical machine A applies for shared memory in the target memory device and sends the memory information of the shared memory to physical machine B through the SMC connection.

[0089] In the embodiment of this specification, the memory information of the shared memory is sent to the second physical machine based on the second communication connection, so that the second physical machine shares the memory with the first physical machine through the memory information of the shared memory. The first physical machine communicates with the second physical machine through the shared memory, thereby improving communication efficiency.

[0090] Furthermore, after the first physical machine completes the application for the shared memory, the memory information of the shared memory may be sent to the second physical machine, and the specific implementation method is as follows.

[0091] The memory information includes address information, length information and additional information;

[0092] Correspondingly, sending the memory information corresponding to the shared memory to the second physical machine based on the second communication connection includes:

[0093] The memory information corresponding to the shared memory is encapsulated in a memory sharing message, and the memory sharing message is sent to the second physical machine based on the second communication connection.

[0094] The address information, length information and additional information may be the address, length and token information of the shared memory. The memory sharing message may be a message generated based on the communication mechanism of the second communication connection. It may also be a message that can be transmitted based on the second communication connection.

[0095] In actual applications, the first physical machine can apply for a shared memory block through the target memory device. The size of the shared memory block can be between 16k and 2M. After the first physical machine applies for the shared memory block through the target memory device, it sends the address, length and token information corresponding to the shared memory block to the second physical machine.

[0096] For example, the SMC protocol stack in the first physical machine encapsulates the information of the shared memory block applied for by it in a message of agreeing to establish the communication connection of the SMC, and sends the message of agreeing to establish the communication connection of the SMC to the second physical machine.

[0097] In the embodiment of this specification, the applied shared memory is sent to the second physical machine through the established second communication connection, so as to use the same memory block with the second physical machine, thereby realizing communication based on the shared memory.

[0098] Furthermore, after the first physical machine and the second physical machine complete the shared memory, data transmission can be performed based on the shared memory, thereby realizing communication between the first physical machine and the second physical machine. The specific implementation method is as follows.

[0099] Sending the first data to a first storage area of ​​the shared memory, and adding a first identifier to the first storage area, wherein the first identifier is used to instruct the second physical machine to obtain the first data;

[0100] Obtain a second identifier, and obtain second data from a second storage area of ​​the shared memory according to the second identifier, wherein the second data is written into the shared memory by the second physical machine based on the first data.

[0101] The first storage area may be an area for storing data sent by the first physical machine. Accordingly, the area for storing data sent by the first physical machine is also an area for storing data received by the second physical machine. For the second physical machine, the area for storing data sent by the second physical machine is also an area for storing data received by the first physical machine. The identifier may be a pointer to the data.

[0102] In actual applications, the data sent by the first physical machine is written into the TX (transmit) shared memory of the first physical machine, and the head pointer of the circular buffer points to the new position. The circular buffer here refers to the TX shared memory. Since the TX shared memory of the first physical machine and the RX (receive) shared memory of the second physical machine are actually the same physical memory, the second physical machine can directly obtain the information sent by the first physical machine through polling, and retrieve the data sent by the first physical machine from the RX shared memory of the second physical machine. After completion, the second physical machine updates the tail pointer of the circular buffer to release the relevant data.

[0103] For example, when the first physical machine sends data, the first physical machine writes the data to area A in the shared memory and updates the pointer of the circular buffer. The second physical machine reads data from area A in the shared memory based on the updated pointer, generates response data based on the read data, writes the response data to area B in the shared memory, and updates the pointer of the circular buffer. The first physical machine obtains the response data of area B in the shared memory by polling.

[0104] It should be noted that the first physical machine can only write data or read data, and correspondingly, the second physical machine can only write data or read data. That is, when the first physical machine writes data, the second physical machine reads data, and when the second physical machine writes data, the first physical machine reads data.

[0105] The embodiments of this specification provide a communication establishment method and system, wherein the communication establishment method is applied to a first physical machine, the first physical machine pre-establishes a first communication connection with a second physical machine, and the first physical machine and the second physical machine are both connected to a target memory device, and the method includes: receiving a second communication connection request sent by the second physical machine; establishing a second communication connection with the second physical machine in response to the second communication connection request, and applying for a shared memory in the target memory device; sending the memory information corresponding to the shared memory to the second physical machine based on the second communication connection, wherein the first physical machine and the second physical machine communicate through the shared memory. Since the second communication connection is established with the second physical machine based on the first communication connection, the memory information of the shared memory applied in the target memory device can be sent to the second physical machine based on the second communication connection, thereby communicating with the second physical machine based on the shared memory, and using the shared memory for communication, there is no need to copy and forward the data, thereby improving the efficiency of communication.

[0106] See also Figure 3 , Figure 3 A flowchart of another communication establishment method provided according to an embodiment of the present specification is shown, which is applied to a second physical machine, wherein the second physical machine pre-establishes a first communication connection with a first physical machine, and both the first physical machine and the second physical machine are in communication connection with a target memory device, and the method includes:

[0107] Step 302: Send a second communication connection request to the first physical machine.

[0108] In actual applications, the machine where the client is located will first send a connection request to the server to enable the server to provide services. Therefore, when the client is running in the second physical machine and the server is running in the first physical machine, the second physical machine needs to send a second communication connection request to the server in the first physical machine. Similar to the above embodiment, both the first physical machine and the second physical machine support the SMC protocol stack, so the second physical machine can send a second communication connection request to the first physical machine.

[0109] For example, when a TCP connection has been established between the first physical machine and the second physical machine, an SMC CLC handshake is sent through the TCP connection. Specifically, a CLC PROPOSAL is first sent to the SMC server through the previously established TCP connection, and the CLC PROPOSAL includes the device ID information of the CXL device and some other information required for the CLC PROPOSAL handshake, such as the CXL device number, virtual memory space, and CXL port identifier.

[0110] The embodiment of the present specification sends a second communication connection request to the first physical machine, thereby facilitating subsequent establishment of the second communication connection and sharing memory based on the second communication connection.

[0111] Step 304: In response to the feedback message sent by the first physical machine in response to the second communication connection request, establish a second communication connection with the first physical machine.

[0112] The feedback message may be a feedback message to the second communication connection request based on the communication mechanism of the second communication connection, for example, agreeing to establish the second communication connection. The second communication connection may be the SMC connection in the above embodiment.

[0113] Specifically, after the first physical machine completes verification of the CLC PROPOSAL handshake information sent by the second physical machine, the first physical machine returns a CLC ACCEPT message, ie, agrees to connect, and the second physical machine establishes an SMC connection with the first physical machine.

[0114] The embodiment of this specification establishes a second communication connection, so that memory information can be received based on the second communication connection, thereby achieving the purpose of sharing memory.

[0115] Step 306: upon receiving memory information sent by the first physical machine based on the second communication connection, registering a shared memory according to the memory information; wherein the first physical machine and the second physical machine communicate through the shared memory.

[0116] The memory information may be the memory information of the applied shared memory, such as the address of the memory block, the length of the memory block and the token information. Registering the shared memory may be understood as mapping the virtual memory space locally, that is, mapping the shared memory to the virtual memory of the second physical machine so that the second physical machine can access it.

[0117] For example, after the first physical machine establishes an SMC connection with the second physical machine, the second physical machine receives the address, length and token information of the shared memory and registers in the local machine according to the address, length and token information of the shared memory.

[0118] In the embodiment of the present specification, after the second communication connection is established, memory information is received based on the second communication connection, thereby realizing shared memory.

[0119] In an implementable manner, the receiving, based on the second communication connection, memory information sent by the first physical machine includes:

[0120] receiving a memory sharing message sent by the first physical machine based on the second communication connection;

[0121] Memory information including address information, length information and additional information is obtained from the memory sharing message.

[0122] The memory sharing message may be a message generated by a communication mechanism based on the second communication connection, or may be a message that can be transmitted based on the second communication connection. Specifically, the memory sharing message may include the address, length, and token information corresponding to the shared memory block.

[0123] For example, after the first physical machine establishes an SMC connection with the second physical machine, the second physical machine can map a virtual memory in the local machine according to the address, length and token information of the shared memory after receiving the address, length and token information of the shared memory.

[0124] In the embodiment of the present specification, after the second communication connection is established, the address, length and token information of the shared memory are received based on the second communication connection, so that the shared memory can be implemented.

[0125] After acquiring the memory information from the first physical machine, the shared memory can be registered in the second physical machine to realize memory sharing. The specific implementation method is as follows.

[0126] In an achievable manner, registering the shared memory according to the memory information includes:

[0127] Determining memory location information according to the memory information;

[0128] A shared memory is mapped in the target memory device according to the memory location information.

[0129] The memory location information may be memory address information.

[0130] In actual applications, the second physical machine can memory-map the corresponding shared memory at the same location on the CXL device according to the memory location information. Memory mapping is performed at the same location on the CXL device to ensure that the mapped memory area is the same memory block, thereby avoiding errors.

[0131] For example, if memory location information A is obtained from the memory information, a memory block corresponding to the memory location information A is found on the CXL device, and a virtual memory is mapped locally. The virtual memory corresponds to the memory location information A of the CXL device.

[0132] The embodiment of the specification provides a communication establishment method and system, wherein the communication establishment method is applied to a second physical machine, the second physical machine pre-establishes a first communication connection with the first physical machine, and the first physical machine and the second physical machine are both connected to a target memory device, and the method includes: sending a second communication connection request to the first physical machine; in response to a feedback message sent by the first physical machine for the second communication connection request, establishing a second communication connection with the first physical machine; in the case of receiving memory information sent by the first physical machine based on the second communication connection, registering a shared memory according to the memory information; wherein the first physical machine and the second physical machine communicate through the shared memory. Since the first communication connection has been pre-established with the first physical machine, a second communication connection can be established with the first physical machine based on the first communication connection, so that the memory information of the shared memory applied for in the target memory device sent by the first physical machine can be received based on the second communication connection, and the first physical machine can be communicated with based on the shared memory, and then the shared memory is used for communication, without the need to copy and forward data, thereby improving the efficiency of communication.

[0133] See also Figure 4 The embodiment of the specification also provides another communication establishment method, which is applied to a control end, wherein the control end manages a first physical machine and a second physical machine, wherein the first physical machine and the second physical machine pre-establish a first communication connection, and both the first physical machine and the second physical machine are in communication connection with a target memory device, wherein the method comprises:

[0134] Step 402: Call the second physical machine to send a second communication connection request to the first physical machine.

[0135] Step 404: according to the second communication connection request, calling the first physical machine to establish a second communication connection with the second physical machine, and applying for a shared memory in the target memory device.

[0136] Step 406: Call the first physical machine to send the memory information corresponding to the shared memory to the second physical machine based on the second communication connection.

[0137] Step 408: Call the second physical machine to register the shared memory based on the memory information.

[0138] Specifically, the following Figure 5 , the communication establishment method is further described. Among them, Figure 5 A timing diagram of a communication establishment method provided by an embodiment of the present specification is shown, comprising a first physical machine and a second physical machine, wherein the first physical machine runs a server, and the second physical machine runs a server. The communication establishment process includes the following steps.

[0139] 1. The client sends a TCP connection request to the server, performs a three-way handshake with the server and establishes a TCP connection.

[0140] 2. The client will initiate a CLC handshake. Specifically, the client will first send a CLC PROPOSAL to the server through the TCP connection established earlier, and encapsulate the device ID information of the CXL device and some other information required for the CLC PROPOSAL handshake in the CLC PROPOSAL.

[0141] 3. After receiving the CLC PROPOSAL from the client, the server will check whether its CXL port matches the client's CXL port. If the match is successful, it will apply for the corresponding shared memory block on the CXL device. After receiving the request, the CXL device attempts to allocate the corresponding shared memory block for the server and returns the address, length and corresponding token information of the requested shared memory block to the server. Otherwise, the client's connection request is rejected.

[0142] 4. The server performs memory mapping locally.

[0143] 5. The server encapsulates the information of the requested shared memory block in a CLC ACCEPT message and sends it to the client.

[0144] 6. After the client receives the CLC ACCEPT message, it takes the corresponding information to the client's local CXL device to memory-map the corresponding shared memory at the same location.

[0145] 7. The client encapsulates the information of the CXL shared memory block it applied for in a CLC CONFIRM message and sends it to the server. The entire negotiation mechanism is now completed.

[0146] To summarize, since a second communication connection is established with the second physical machine based on the first communication connection, the memory information of the shared memory applied for in the target memory device can be sent to the second physical machine based on the second communication connection, thereby communicating with the second physical machine based on the shared memory. By communicating using the shared memory, there is no need to copy and forward the data, thereby improving the efficiency of communication.

[0147] The embodiment of the present specification also provides a communication establishment system, which is applied to a first physical machine and a second physical machine, wherein the first physical machine and the second physical machine pre-establish a first communication connection, and both the first physical machine and the second physical machine are in communication connection with a target memory device, and the system includes:

[0148] The second physical machine is used to send a second communication connection request to the first physical machine;

[0149] The first physical machine is used to establish a second communication connection with the second physical machine in response to the second communication connection request, apply for a shared memory in the target memory device, and send memory information corresponding to the shared memory to the second physical machine based on the second communication connection;

[0150] The second physical machine is used to register the shared memory based on the memory information.

[0151] Specifically, Figure 6 FIG. 1 shows a schematic diagram of a communication establishment system provided by an embodiment of the present specification; Figure 6 As shown, the communication establishment system may include multiple physical machines, each of which may be deployed with an application, and the application may call the SMC interface to send or receive data through the SMC protocol stack. Each physical machine is connected to a CXL switch through an interface, and the CXL switch is connected to a memory device, and the memory device includes an area for receiving data and an area for sending data. The following is an explanation using two physical machines in the communication establishment system.

[0152] In one achievable manner, a server is running in physical machine A, and a client corresponding to the server in physical machine A is running in physical machine B. Physical machine A and physical machine B establish a TCP connection request through a three-way handshake. Through the TCP connection, physical machine B can send an SMC CLC handshake to physical machine A. Physical machine A establishes an SMC connection with physical machine B based on the SMC CLC handshake. After physical machine A and physical machine B establish an SMC connection, physical machine A applies for shared memory in the target memory device. After receiving the address, length, and token information of the shared memory, physical machine A registers in the local machine according to the address, length, and token information of the shared memory. The SMC protocol stack in physical machine A encapsulates the information of the shared memory block it applies for in a message agreeing to establish an SMC communication connection, and sends the message agreeing to establish an SMC communication connection to physical machine B. After receiving the address, length, and token information of the shared memory, physical machine B registers in the local machine according to the address, length, and token information of the shared memory.

[0153] To summarize, since a second communication connection is established with the second physical machine based on the first communication connection, the memory information of the shared memory applied for in the target memory device can be sent to the second physical machine based on the second communication connection, thereby communicating with the second physical machine based on the shared memory. By communicating using the shared memory, there is no need to copy and forward the data, thereby improving the efficiency of communication.

[0154] Corresponding to the above-mentioned method embodiment, the present specification also provides a communication establishment system embodiment, which includes: a first physical machine and a second physical machine, wherein the first physical machine and the second physical machine pre-establish a first communication connection, and the first physical machine and the second physical machine are both communicatively connected to a target memory device, and the first physical machine is used to store application executable instructions for shared memory, and when the application executable instructions are executed by the first physical machine, any step of the communication establishment method can be implemented.

[0155] Corresponding to the above method embodiment, this specification also provides a communication establishment device embodiment, Figure 7 FIG. 1 shows a schematic diagram of a communication establishment device provided by an embodiment of the present specification. Figure 7 As shown, the device is applied to a first physical machine, the first physical machine pre-establishes a first communication connection with a second physical machine, and the first physical machine and the second physical machine are both communicatively connected to a target memory device, and the device includes:

[0156] The request receiving module 702 is configured to receive a second communication connection request sent by the second physical machine;

[0157] A memory application module 704 is configured to establish a second communication connection with the second physical machine in response to the second communication connection request, and apply for a shared memory in the target memory device;

[0158] The information sending module 706 is configured to send the memory information corresponding to the shared memory to the second physical machine based on the second communication connection, wherein the first physical machine and the second physical machine communicate through the shared memory.

[0159] In a possible implementation, the memory application module 704 is further configured to:

[0160] Determine a local first shared port, and determine a second shared port of the second physical machine according to the second communication connection request;

[0161] Matching the first shared port with the second shared port to obtain a matching result;

[0162] When the matching result is successful, a second communication connection with the second physical machine is established.

[0163] In a possible implementation, the memory application module 704 is further configured to:

[0164] Sending a shared memory application instruction to the target memory device, and receiving memory information corresponding to the shared memory returned by the target memory device in response to the shared memory application instruction;

[0165] The shared memory is registered according to the memory information corresponding to the shared memory.

[0166] In a possible implementation, the information sending module 706 is further configured to:

[0167] The memory information includes address information, length information and additional information;

[0168] Correspondingly, sending the memory information corresponding to the shared memory to the second physical machine based on the second communication connection includes:

[0169] The memory information corresponding to the shared memory is encapsulated in a memory sharing message, and the memory sharing message is sent to the second physical machine based on the second communication connection.

[0170] In a possible implementation, the request receiving module 702 is further configured to:

[0171] A first communication connection request is received from the second physical machine, and a first communication connection is established with the second physical machine based on the first communication connection request.

[0172] In a possible implementation, the information sending module 706 is further configured to:

[0173] Sending the first data to a first storage area of ​​the shared memory, and adding a first identifier to the first storage area, wherein the first identifier is used to instruct the second physical machine to obtain the first data;

[0174] Obtain a second identifier, and obtain second data from a second storage area of ​​the shared memory according to the second identifier, wherein the second data is written into the shared memory by the second physical machine based on the first data.

[0175] The embodiment of this specification provides a communication establishment device, wherein the communication establishment device is applied to a first physical machine, the first physical machine pre-establishes a first communication connection with the second physical machine, and the first physical machine and the second physical machine are both in communication connection with a target memory device, and the device includes: receiving a second communication connection request sent by the second physical machine; establishing a second communication connection with the second physical machine in response to the second communication connection request, and applying for shared memory in the target memory device; sending the memory information corresponding to the shared memory to the second physical machine based on the second communication connection, wherein the first physical machine and the second physical machine communicate through the shared memory. Since the second communication connection is established with the second physical machine based on the first communication connection, the memory information of the shared memory applied in the target memory device can be sent to the second physical machine based on the second communication connection, thereby communicating with the second physical machine based on the shared memory, and using the shared memory for communication, there is no need to copy and forward the data, thereby improving the efficiency of communication.

[0176] Corresponding to the above method embodiment, this specification also provides a communication establishment device embodiment, Figure 8 FIG. 2 shows a schematic diagram of the structure of another communication establishment device provided by an embodiment of the present specification. Figure 8 As shown, the device is applied to a second physical machine, the second physical machine pre-establishes a first communication connection with the first physical machine, and the first physical machine and the second physical machine are both communicatively connected with a target memory device, and the device includes:

[0177] A request sending module 802 is configured to send a second communication connection request to the first physical machine;

[0178] A communication establishing module 804, configured to establish a second communication connection with the first physical machine in response to a feedback message sent by the first physical machine in response to the second communication connection request;

[0179] The memory sharing module 806 is configured to register a shared memory according to the memory information when receiving the memory information sent by the first physical machine based on the second communication connection; wherein the first physical machine and the second physical machine communicate through the shared memory.

[0180] In a possible implementation, the memory sharing module 806 is further configured to:

[0181] receiving a memory sharing message sent by the first physical machine based on the second communication connection;

[0182] Memory information including address information, length information and additional information is obtained from the memory sharing message.

[0183] In a possible implementation, the memory sharing module 806 is further configured to:

[0184] Determining memory location information according to the memory information;

[0185] A shared memory is mapped in the target memory device according to the memory location information.

[0186] The above is a schematic scheme of a communication establishment device of this embodiment. It should be noted that the technical scheme of the communication establishment device and the technical scheme of the communication establishment method described above are of the same concept, and the details not described in detail in the technical scheme of the communication establishment device can be found in the description of the technical scheme of the communication establishment method described above.

[0187] Fig. 9 The structure block diagram of a computing device 900 provided according to an embodiment of the present specification is shown. The components of the computing device 900 include but are not limited to a memory 910 and a processor 920. The processor 920 is connected to the memory 910 via a bus 930, and a database 950 is used to store data.

[0188] The computing device 900 also includes an access device 940 that enables the computing device 900 to communicate via one or more networks 960. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 940 may include one or more of any type of network interface (e.g., a network interface card (NIC)) that is wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a World Wide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.

[0189] In one embodiment of the present specification, the above components of the computing device 900 and Fig. 9 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Fig. 9 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0190] The computing device 900 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 900 may also be a mobile or stationary server.

[0191] The processor 920 is used to execute the following computer executable instructions, which, when executed by the processor, implement the steps of the above-mentioned communication establishment method.

[0192] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above communication establishment method belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the above communication establishment method.

[0193] An embodiment of the present specification further provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the above-mentioned communication establishment method.

[0194] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the communication establishment method described above are of the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the communication establishment method described above.

[0195] An embodiment of the present specification further provides a computer program, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above-mentioned communication establishment method.

[0196] The above is an illustrative solution of a computer program of this embodiment. It should be noted that the technical solution of the computer program and the technical solution of the communication establishment method described above are of the same concept, and the details not described in detail in the technical solution of the computer program can be found in the description of the technical solution of the communication establishment method described above.

[0197] 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.

[0198] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0199] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0200] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0201] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.

Claims

1. A communication establishment method, applied to a first physical machine, wherein the first physical machine pre-establishes a first communication connection with a second physical machine, and both the first physical machine and the second physical machine are in communication connection with a target memory device, the method comprising: Receiving a second communication connection request sent by the second physical machine; In response to the second communication connection request, establishing a second communication connection with the second physical machine, and applying for a shared memory in the target memory device; Memory information corresponding to the shared memory is sent to the second physical machine based on the second communication connection, wherein the first physical machine and the second physical machine communicate through the shared memory.

2. The method according to claim 1, wherein establishing a second communication connection with the second physical machine in response to the second communication connection request comprises: Determine a local first shared port, and determine a second shared port of the second physical machine according to the second communication connection request; Matching the first shared port with the second shared port to obtain a matching result; When the matching result is successful, a second communication connection with the second physical machine is established.

3. The method according to claim 1, wherein applying for shared memory in the target memory device comprises: Sending a shared memory application instruction to the target memory device, and receiving memory information corresponding to the shared memory returned by the target memory device in response to the shared memory application instruction; The shared memory is registered according to the memory information corresponding to the shared memory.

4. The method according to claim 1, wherein the memory information comprises address information, length information and additional information; Correspondingly, sending the memory information corresponding to the shared memory to the second physical machine based on the second communication connection includes: The memory information corresponding to the shared memory is encapsulated in a memory sharing message, and the memory sharing message is sent to the second physical machine based on the second communication connection.

5. The method according to claim 1, before receiving the second communication connection request sent by the second physical machine, further comprises: A first communication connection request is received from the second physical machine, and a first communication connection is established with the second physical machine based on the first communication connection request.

6. The method according to claim 1, further comprising: Sending the first data to a first storage area of ​​the shared memory, and adding a first identifier to the first storage area, wherein the first identifier is used to instruct the second physical machine to obtain the first data; Obtain a second identifier, and obtain second data from a second storage area of ​​the shared memory according to the second identifier, wherein the second data is written into the shared memory by the second physical machine based on the first data.

7. A communication establishment method, applied to a second physical machine, wherein the second physical machine pre-establishes a first communication connection with a first physical machine, and both the first physical machine and the second physical machine are in communication connection with a target memory device, the method comprising: Sending a second communication connection request to the first physical machine; In response to a feedback message sent by the first physical machine in response to the second communication connection request, establishing a second communication connection with the first physical machine; When memory information sent by the first physical machine is received based on the second communication connection, a shared memory is registered according to the memory information; wherein the first physical machine and the second physical machine communicate through the shared memory.

8. The method according to claim 7, wherein receiving the memory information sent by the first physical machine based on the second communication connection comprises: receiving a memory sharing message sent by the first physical machine based on the second communication connection; Memory information including address information, length information and additional information is obtained from the memory sharing message.

9. The method according to claim 7, wherein registering the shared memory according to the memory information comprises: Determining memory location information according to the memory information; A shared memory is mapped in the target memory device according to the memory location information.

10. A communication establishment system, applied to a first physical machine and a second physical machine, wherein the first physical machine and the second physical machine pre-establish a first communication connection, and both the first physical machine and the second physical machine are in communication connection with a target memory device, the system comprising: The second physical machine is used to send a second communication connection request to the first physical machine; The first physical machine is used to establish a second communication connection with the second physical machine in response to the second communication connection request, apply for a shared memory in the target memory device, and send memory information corresponding to the shared memory to the second physical machine based on the second communication connection; The second physical machine is used to register the shared memory based on the memory information.

11. A communication establishment method, applied to a control end, the control end managing a first physical machine and a second physical machine, the first physical machine and the second physical machine pre-establish a first communication connection, and the first physical machine and the second physical machine are both in communication connection with a target memory device, the method comprising: Calling the second physical machine to send a second communication connection request to the first physical machine; According to the second communication connection request, calling the first physical machine to establish a second communication connection with the second physical machine, and applying for a shared memory in the target memory device; as well as Calling the first physical machine to send the memory information corresponding to the shared memory to the second physical machine based on the second communication connection; The second physical machine is called to register the shared memory based on the memory information.

12. A communication establishment system, comprising: A first physical machine and a second physical machine; The first physical machine pre-establishes a first communication connection with the second physical machine, and both the first physical machine and the second physical machine are communicatively connected to a target memory device. The first physical machine is used to store application executable instructions for shared memory, and when the application executable instructions are executed by the first physical machine, the steps of the method described in any one of claims 1 to 6 are implemented.

13. A computing device comprising: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the communication establishment method described in any one of claims 1 to 6, claims 7 to 9 or 11 are implemented.

14. A computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the communication establishment method described in any one of claims 1 to 6, claims 7 to 9 or 11.