Cross-host inter-process communication method and device and storage medium

The controller receives registration request information and determines the target configuration information, which solves the problem of cross-host communication complexity and achieves the efficiency of cross-host communication.

CN119071270APending Publication Date: 2024-12-03CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411067442.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

When communicating across hosts, factors such as network topology, firewall settings and routing configuration need to be considered, resulting in increased deployment and management complexity. Especially when communicating between hosts in different network domains, it is necessary to coordinate different administrators, which increases complexity and efficiency The problem of low.

Method used

The controller receives the host's registration request information, determines the target configuration information, including the gateway's connection point information, and sends the target configuration information to the host separately to achieve cross-host communication, reduces complexity and improves efficiency.

Benefits of technology

The simplification and efficiency improvement of cross-host communication is achieved, reducing the management complexity of communication between hosts in different network domains and improving communication efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071270A_ABST
    Figure CN119071270A_ABST
Patent Text Reader

Abstract

The invention discloses a cross-host inter-process communication method and device and a storage medium, relates to the field of communication, and can reduce the complexity of cross-host communication and improve the efficiency of cross-host communication. The method comprises the following steps: receiving first registration request information from a first host, wherein the first registration request information comprises a first gateway of the first host and connection point information of the first gateway; receiving second registration request information from a second host, wherein the second registration request information comprises a second gateway of the second host and connection point information of the second gateway; the first host and the second host are located in different networks; determining target configuration information based on the first registration request information and the second registration request information; the target configuration information comprises connection point information of the first gateway and connection point information of the second gateway; and respectively sending the target configuration information to the first host and the second host. The embodiment of the invention is applied to a cross-host process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to a method, device and storage medium for cross-host process communication. Background Art

[0002] In the related art, the application (Application, APP) side in the host uses the existing network to achieve cross-host communication.

[0003] However, when actually deploying cross-host communication, network factors such as network topology, firewall settings, and routing configuration need to be considered. When the two hosts to be communicated are in different network domains, coordination with different administrators may be required, which increases the complexity of cross-host communication deployment and management. Therefore, how to reduce the complexity of cross-host communication and improve the efficiency of cross-host communication is a technical problem that still needs to be solved. Summary of the invention

[0004] The present application provides a cross-host inter-process communication method, device and storage medium for reducing the complexity of cross-host communication and improving the efficiency of cross-host communication.

[0005] In order to achieve the above objectives, this application adopts the following technical solutions:

[0006] In a first aspect, the present application provides a cross-host inter-process communication method, including: a controller receives first registration request information from a first host, the first registration information includes a first gateway of the first host and a connection point information of the first gateway; the controller receives second registration request information from a second host, the second registration request information includes a second gateway of the second host and a connection point information of the second gateway; the first host and the second host are located in different networks; the controller determines target configuration information based on the first registration request information and the second registration request information; the target configuration information includes the connection point information of the first gateway and the connection point information of the second gateway; the controller sends the target configuration information to the first host and the second host respectively.

[0007] In a possible implementation, the first registration request information also includes: a first preset service rule identifier; the second registration request information also includes: a second preset service rule identifier; before determining the target configuration information based on the first registration request information and the second registration request information, the method also includes: determining the first preset service rule corresponding to the first host based on the first preset service rule identifier; the first preset service rule is used to identify the service information in the first host; based on the second preset service rule identifier, determining the second preset service rule corresponding to the second host; the second preset service rule is used to identify the service information in the second host; based on the first preset service rule, determine the first service information in the first host, and register the first service information in the registration information table in the control; the registration information table includes at least one service and at least one corresponding service information; based on the second preset service rule, determine the second service information in the second host, and register the second service information in the registration information table.

[0008] In one possible implementation, the prediction service rule includes at least one of the following: the name of the prediction service rule, the description information of the prediction service rule, the default inter-process communication UDS path and file name, the type parameter of the UDS, and the communication protocol type; the name of the prediction service rule is used to identify the prediction service rule, the description information of the prediction service rule is used to characterize the service quality requirements in the host, the UDS path and file name are used to characterize the route between the network management and the application APP in the host, the communication protocol type is used to characterize the communication protocol between the first host and the second host, and the type parameter of the UDS includes a streaming socket or a data packet socket.

[0009] In one possible implementation, based on the first registration request information and the second registration request information, the target communication protocol type between the first host and the second host is determined; when the target communication protocol type is segment routing SRv6 based on the IPv6 forwarding plane, based on the first preset service rule, the first service quality requirement in the first host is determined; based on the second preset service rule, the second service quality requirement in the second host is determined; based on the connection point information of the first gateway, the connection point information of the second gateway, the first service quality requirement and the second service quality requirement, the target configuration information is determined; the target configuration information includes routing information between the first host and the second host.

[0010] In one possible implementation, a first request message is sent to an SRv6 controller; the first request message includes connection point information of a first gateway, connection point information of a second gateway, a first quality of service requirement, and a second quality of service requirement; a first request response message is received from the SRv6 controller; the first request response message includes routing information of an optimal path between a first host and a second host; and target configuration information is determined based on the first request response message.

[0011] In one possible implementation, the target configuration information includes first target configuration sub-information and second target configuration sub-information; the second target configuration sub-information is sent to the second host; the second host is a server, and the second target configuration sub-information includes connection point information of the first gateway; first indication information is received from the second host; the first indication information is used to indicate that the second host has started listening and is waiting to establish a network connection with the first host; the first target configuration sub-information is sent to the first host; the first host is a client, and the first target configuration sub-information includes connection point information of the second gateway.

[0012] In a possible implementation, the target configuration information is also used to authenticate the first host and / or the second host.

[0013] In a second aspect, the present application provides a cross-host inter-process communication device, including: a communication unit, used to receive a first registration request information from a first host, the first registration information including a first gateway of the first host and a connection point information of the first gateway; a communication unit, used to receive a second registration request information from a second host, the second registration request information including a second gateway of the second host and a connection point information of the second gateway; the first host and the second host are located in different networks; a processing unit, used to determine target configuration information based on the first registration request information and the second registration request information; the target configuration information includes the connection point information of the first gateway and the connection point information of the second gateway; the communication unit, used to send the target configuration information to the first host and the second host, respectively.

[0014] In one possible implementation, the first registration request information also includes: a first preset service rule identifier; the second registration request information also includes: a second preset service rule identifier; a processing unit, used to determine the first preset service rule corresponding to the first host based on the first preset service rule identifier; the first preset service rule is used to identify the service information in the first host; the processing unit is also used to determine the second preset service rule corresponding to the second host based on the second preset service rule identifier; the second preset service rule is used to identify the service information in the second host; the processing unit is also used to determine the first service information in the first host based on the first preset service rule, and register the first service information in the registration information table in the control; the registration information table includes at least one service and at least one corresponding service information; the processing unit is also used to determine the second service information in the second host based on the second preset service rule, and register the second service information in the registration information table.

[0015] In one possible implementation, the prediction service rule includes at least one of the following: the name of the prediction service rule, the description information of the prediction service rule, the default inter-process communication UDS path and file name, the type parameter of the UDS, and the communication protocol type; the name of the prediction service rule is used to identify the prediction service rule, the description information of the prediction service rule is used to characterize the service quality requirements in the host, the UDS path and file name are used to characterize the route between the network management and the application APP in the host, the communication protocol type is used to characterize the communication protocol between the first host and the second host, and the type parameter of the UDS includes a streaming socket or a data packet socket.

[0016] In one possible implementation, the processing unit is further used to determine the target communication protocol type between the first host and the second host based on the first registration request information and the second registration request information; the processing unit is further used to determine the first service quality requirement in the first host based on the first preset service rule when the target communication protocol type is segment routing SRv6 based on the IPv6 forwarding plane; and determine the second service quality requirement in the second host based on the second preset service rule; the processing unit is further used to determine the target configuration information based on the connection point information of the first gateway, the connection point information of the second gateway, the first service quality requirement and the second service quality requirement; the target configuration information includes routing information between the first host and the second host.

[0017] In a possible implementation, the communication unit is further used to send a first request message to the SRv6 controller; the first request message includes the connection point information of the first gateway, the connection point information of the second gateway, the first quality of service requirement and the second quality of service requirement; the processing unit is further used to receive a first request response message sent by the SRv6 controller; the first request response message includes the routing information of the optimal path between the first host and the second host; the processing unit is further used to determine the target configuration information based on the first request response message.

[0018] In one possible implementation, the target configuration information includes first target configuration sub-information and second target configuration sub-information; the communication unit is further used to send the second target configuration sub-information to the second host; the second host is a server, and the second target configuration sub-information includes the connection point information of the first gateway; the communication unit is further used to receive first indication information from the second host; the first indication information is used to indicate that the second host has started listening and is waiting to establish a network connection with the first host; the communication unit is further used to send the first target configuration sub-information to the first host; the first host is a client, and the first target configuration sub-information includes the connection point information of the second gateway.

[0019] In a possible implementation, the target configuration information is also used to authenticate the first host and / or the second host.

[0020] In a third aspect, an embodiment of the present application provides a cross-host inter-process communication device, which includes: a processor and a memory; wherein the memory is used to store computer execution instructions, and when the cross-host inter-process communication device is running, the processor executes the computer execution instructions stored in the memory, so that the cross-host inter-process communication device performs the cross-host inter-process communication method described in the first aspect and any possible implementation method of the first aspect.

[0021] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which instructions are stored. When the instructions in the computer-readable storage medium are executed by a processor of a cross-host inter-process communication device, the cross-host inter-process communication device can execute the cross-host inter-process communication method described in the first aspect and any possible implementation method of the first aspect.

[0022] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run a computer program or instructions to implement the cross-host process communication method described in the above-mentioned first aspect and any possible implementation method of the first aspect.

[0023] In a sixth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the cross-host inter-process communication method described in the first aspect and any possible implementation of the first aspect.

[0024] In the present disclosure, the name of the above-mentioned cross-host inter-process communication device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of the present disclosure, they fall within the scope of the claims of the present disclosure and their equivalent technologies.

[0025] These and other aspects of the present application will become more apparent from the following description.

[0026] The above scheme brings at least the following beneficial effects: In the present application, the controller receives the first registration request information from the first host and the second registration request information from the second host. Since the first registration information includes the first gateway of the first host and the connection point information of the first gateway, the second registration information includes the second gateway of the second host and the connection point information of the second gateway, and the first host and the second host are located in different networks, the controller can determine the target configuration information including the connection point information of the first gateway and the connection point information of the second gateway based on the first registration information and the second registration information; the target configuration information includes the connection point information of the first gateway and the connection point information of the second gateway. The controller sends the target configuration information to the first host and the second host respectively, so that the first host can communicate with the second host through the connection point information of the second gateway, and the second host can communicate with the first host through the connection point information of the first gateway, thereby reducing the complexity of cross-host communication and improving the efficiency of cross-host communication. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0028] Figure 1 A schematic diagram of the structure of a cross-host inter-process communication system provided in an embodiment of the present application;

[0029] Figure 2 A schematic diagram of the structure of a cross-host inter-process communication device provided in an embodiment of the present application;

[0030] Figure 3 A flowchart of a cross-host inter-process communication method provided in an embodiment of the present application;

[0031] Figure 4 A schematic diagram of a host structure provided in an embodiment of the present application;

[0032] Figure 5 A flowchart of a cross-host inter-process communication method provided in an embodiment of the present application;

[0033] Figure 6 A flowchart of a cross-host inter-process communication method provided in an embodiment of the present application;

[0034] Figure 7 A flowchart of a cross-host inter-process communication method provided in an embodiment of the present application;

[0035] Figure 8A flowchart of a cross-host inter-process communication method provided in an embodiment of the present application;

[0036] Fig. 9 A flowchart of a cross-host inter-process communication method provided in an embodiment of the present application;

[0037] Fig.10 A schematic diagram of the structure of another cross-host inter-process communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0039] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.

[0040] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0041] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0042] In the description of the present application, unless otherwise specified, “plurality” means two or more.

[0043] Below, the terms involved in this application are first explained.

[0044] 1. Default inter-process communication (Unix Domain Socket, UDS)

[0045] UDS is a special type of socket used for inter-process communication on the same Unix or Unix-like system. UDS is a communication mechanism based on the file system path and does not rely on the network protocol stack. UDS uses the file system path as the endpoint of communication to achieve communication, where the socket file exists as a special type in the file system. The client process and the server process can establish a connection by creating a socket file on the specified path. UDS provides two modes of communication: connection-oriented communication and message-oriented communication. The difference between the above two communication modes is similar to that between the Transmission Control Protocol (TCP) and the User Datagram Protocol (UDP).

[0046] UDS can be used for inter-process communication or local service communication. UDS can be used for communication between different processes on the same machine, such as communication between a client and a server to achieve inter-process communication; UDS can also be used for communication between local services, such as communication between a World Wide Web (Web) server and a database server, or data exchange between different modules to achieve local service communication.

[0047] UDS has been widely used in inter-module communication of various software, such as API calls between vpp and vpp agent. However, in modern computing environments, many applications need to work together or exchange data on different computer nodes, such as distributed systems, microservice architectures, load balancing, etc. To this end, the TCP / UDP protocol is combined with UDS to achieve inter-process communication across hosts. When used, a TCP / UDP server and client are created and associated with the unixdomain socket client / server at the same time (such as socat software can achieve this function), to achieve data forwarding and cross-host process communication.

[0048] The above is an explanation of the terms involved in this application.

[0049] In the related art, the APP side in the host uses the existing network to achieve cross-host communication.

[0050] However, when actually deploying cross-host communication, network factors such as network topology, firewall settings, and routing configuration need to be considered. When the two hosts to be communicated are in different network domains, coordination with different administrators may be required, which increases the complexity of cross-host communication deployment and management. Therefore, how to reduce the complexity of cross-host communication and improve the efficiency of cross-host communication is a technical problem that still needs to be solved.

[0051] In order to solve the technical problems existing in the related art, in an embodiment of the present application, the controller receives a first registration request message from the first host and a second registration request message from the second host. Since the first registration message includes the first gateway of the first host and the connection point information of the first gateway, the second registration message includes the second gateway of the second host and the connection point information of the second gateway, and the first host and the second host are located in different networks, the controller can determine the target configuration information including the connection point information of the first gateway and the connection point information of the second gateway based on the first registration information and the second registration information; the target configuration information includes the connection point information of the first gateway and the connection point information of the second gateway. The controller sends the target configuration information to the first host and the second host respectively, so that the first host can communicate with the second host through the connection point information of the second gateway, and the second host can communicate with the first host through the connection point information of the first gateway, thereby reducing the complexity of cross-host communication and improving the efficiency of cross-host communication.

[0052] Below, combined with the attached Figure 1 A cross-host inter-process communication system 10 provided in an embodiment of the present application is described in detail. Figure 1 As shown, the inter-host inter-process communication system 10 includes: a controller 11, a first host 12 and a second host 13.

[0053] The controller 11 is configured to: receive first registration request information from a first host 12, the first registration information including a first gateway of the first host 12 and connection point information of the first gateway; receive second registration request information from a second host 13, the second registration request information including a second gateway of the second host 13 and connection point information of the second gateway; the first host 12 and the second host 13 are located in different networks; determine target configuration information based on the first registration request information and the second registration request information; the target configuration information includes connection point information of the first gateway and connection point information of the second gateway; and send the target configuration information to the first host 12 and the second host 13 respectively.

[0054] The controller 11 includes: a configuration / status database 111 , a service logic processing module 112 , a configuration management module 113 , an interface module 114 and an SRv6 agent 115 .

[0055] The SRv6 agent 115 is connected to the SRv6 controller 14 , and the SRv6 controller 14 includes an orchestration computing module 141 and a network perception module 142 .

[0056] The first host 12 includes a client APP component 121 and a first gateway 122 ; the second host 13 includes a server APP component 131 and a second gateway 132 .

[0057] It should be noted that the first host 12 is a device with wireless communication function, which can be deployed on land, including indoors or outdoors, handheld or vehicle-mounted. It can also be deployed on the water surface (such as a ship, etc.). It can also be deployed in the air (for example, on an airplane, a balloon, and a satellite, etc.). The first host 12 is also called a mobile station (MS), a mobile terminal (MT), and a terminal, etc., which is a device that provides voice and / or data connectivity to a user. For example, the first host 12 includes a handheld device with a wireless connection function, a vehicle-mounted device, etc. At present, the first host 12 can be: a mobile phone, a tablet computer, a laptop computer, a PDA, a mobile internet device (MID), a wearable device (such as a smart watch, a smart bracelet, a pedometer, etc.), a vehicle-mounted device (such as a car, a bicycle, an electric car, an airplane, a ship, a train, a high-speed rail, etc.), a virtual reality (VR) device, an augmented reality (AR) device, a wireless terminal in industrial control, a smart home device (such as a refrigerator, a TV, an air conditioner, an electric meter, etc.), an intelligent robot, a workshop device, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, or a wireless terminal in a smart home, a flying device (such as an intelligent robot, a hot air balloon, a drone, an airplane), etc. In a possible application scenario of the present application, the terminal device is a terminal device that often works on the ground, such as a vehicle-mounted device. In this application, for the sake of convenience, a chip deployed in the above-mentioned device, such as a system-on-a-chip (SOC), a baseband chip, etc., or other chips with communication functions may also be referred to as the first host 12.

[0058] Optionally, the first host 12 may be an embedded communication device, or a user's handheld communication device, including a mobile phone, a tablet computer, etc.

[0059] As an example, in the embodiment of the present application, the first host 12 can also be a wearable device. Wearable devices can also be called wearable smart devices, which are a general term for wearable devices that use wearable technology to intelligently design and develop wearable devices for daily wear, such as glasses, gloves, watches, clothing and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also realize powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include full-featured, large-sized, and independent of smartphones to achieve complete or partial functions, such as smart watches or smart glasses, as well as those that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.

[0060] The present application embodiment provides a cross-host inter-process communication device, which is used to execute the cross-host inter-process communication system provided by the present application embodiment. Figure 2 A schematic diagram of the structure of a cross-host inter-process communication device provided in an embodiment of the present application. Figure 2 As shown, the inter-host inter-process communication device 200 includes at least one processor 201, a communication line 202, and at least one communication interface 204, and may also include a memory 203. The processor 201, the memory 203 and the communication interface 204 may be connected via the communication line 202.

[0061] The processor 201 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application, such as one or more digital signal processors (DSP), or one or more field programmable gate arrays (FPGA).

[0062] The communication link 202 may include a pathway for transmitting information between the above-mentioned components.

[0063] The communication interface 204 is used to communicate with other devices or communication networks, and can use any transceiver-like device, such as Ethernet, radio access network (RAN), WLAN, etc.

[0064] The memory 203 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, an optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to include or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.

[0065] In one possible design, the memory 203 can exist independently of the processor 201, that is, the memory 203 can be a memory outside the processor 201. In this case, the memory 203 can be connected to the processor 201 through the communication line 202, and is used to store execution instructions or application code, and the processor 201 controls the execution, so as to implement the cross-host process communication method provided in the following embodiment of the present application. In another possible design, the memory 203 can also be integrated with the processor 201, that is, the memory 203 can be the internal memory of the processor 201, for example, the memory 203 is a high-speed cache, which can be used to temporarily store some data and instruction information, etc.

[0066] As an implementation method, the processor 201 may include one or more CPUs, for example Figure 2 As another achievable method, the inter-host inter-process communication device 200 may include multiple processors, such as Figure 2 As another implementation, the inter-host inter-process communication apparatus 200 may further include an output device 205 and an input device 206.

[0067] Below, combined with the attached Figure 3 The cross-host inter-process communication method provided in the embodiment of the present application is described in detail. Figure 3 As shown, the cross-host inter-process communication method includes:

[0068] S301: A controller receives first registration request information from a first host.

[0069] The first registration information includes the first gateway of the first host and the connection point information of the first gateway.

[0070] In one possible implementation, the first host starts an inter-host process communication gateway based on its own configuration parameters and sends a first registration request message to the controller.

[0071] Optionally, as shown in Table 1, when the field name in the configuration parameter is name, it indicates the name identifier of the gateway, which is used to view the identity of the currently connected gateway on the controller; when the field name in the configuration parameter is service_id, it indicates the corresponding predefined service rule id, which is used to correspond to the predefined service rule; when the field name in the configuration parameter is type, it indicates the type of gateway: server / client; when the field name in the configuration parameter is connect_type, it indicates the protocol type for point-to-point cross-host connection, such as tcp, udp, srv6, etc.; when the field name in the configuration parameter is connect_point_info, it indicates the connection point information on this side, such as: IP:port number of tcp / udp, ipv6 address of srv6, used for the other end to connect to this end; when the field name in the configuration parameter is Uds_path, it indicates the path of the UDS handle file, such as uds_path.

[0072] Table 1. Configuration parameters

[0073]

[0074] It should be noted that after the first host obtains its own configuration parameters, it can determine the first host information, the first gateway information of the first host and the controller information, and then start the cross-host process communication gateway to send the first registration request information to the controller.

[0075] For example, Figure 4 As shown, the host includes an APP component and a gateway. The APP component and the gateway can communicate through a UDS handle file and can communicate without relying on a network protocol stack, thereby improving communication efficiency.

[0076] S302: The controller receives a second registration request message from a second host.

[0077] The second registration request information includes the second gateway of the second host and the connection point information of the second gateway; the first host and the second host are located in different networks.

[0078] In one possible implementation, the second host starts the cross-host process communication gateway based on its own configuration parameters and sends a second registration request message to the controller.

[0079] Exemplarily, as shown in Table 2, when the field name in the registration request information is name, it indicates the name identifier of the gateway, which is used to view the identity of the currently connected gateway on the controller; when the field name in the registration request information is service_id, it indicates the corresponding predefined service rule id, which is used to correspond to the predefined service rule; when the field name in the registration request information is type, it indicates the type of gateway: server / client; when the field name in the registration request information is connect_type, it indicates the protocol type for point-to-point cross-host connection, such as tcp, udp, srv6, etc.; when the field name in the registration request information is connect_point_info, it indicates the connection point information on this side, such as: IP:port number of tcp / udp, ipv6 address of srv6, which is used for the other end to connect to this end.

[0080] Table 2. Registration request information

[0081]

[0082] It should be noted that the registration request information in this application includes first registration request information and second registration request information.

[0083] S303: The controller determines target configuration information based on the first registration request information and the second registration request information.

[0084] The target configuration information includes the connection point information of the first gateway and the connection point information of the second gateway.

[0085] In a possible implementation manner, the controller obtains network status information, and determines target configuration information based on the network status information, the first registration request information, and the second registration request information.

[0086] Optionally, the network status information includes network bandwidth, latency, packet loss rate, and connection relationships between various network nodes in the network.

[0087] It should be explained that the controller can directly send a first request message to the access network device, and determine the network status information based on the first request response message from the access network device. The first request message is used to request to obtain the network status information. The controller can also send a second request message to the network monitoring platform, and determine the network status information based on the second request response message from the network monitoring platform. The second request message is used to request to obtain the network status information.

[0088] Exemplarily, as shown in Table 3, when the field name in the target configuration information is name, it indicates the name identifier of the gateway, which is used for gateway identity verification in the host; when the field name in the target configuration information is service_id, it indicates the corresponding predefined service rule id, which is used for the gateway to verify the current configuration; when the field name in the target configuration information is Peer name, it indicates the name of the opposite gateway; when the field name in the target configuration information is connect_type, it indicates the protocol type for point-to-point cross-host connection, such as TCP, UDP, SRV6, etc.; when the field name in the target configuration information is connect_point_info, it indicates the connection point information on this side, such as: IP:port number of TCP / UDP, ipv6 address of srv6, used for the opposite end to connect to this end; when the field name in the target configuration information is Peer_connect_point_info, it indicates the connection point information of the opposite end, such as: IP:port number of TCP / UDP, ipv6 address of srv6. Used for the peer end to connect to this end; when the field name in the target configuration information is Peer_connect_point_info_ext, it indicates supplementary information related to the communication connection, which is used to represent the path information of srv6.

[0089] Table 3. Target configuration information

[0090]

[0091]

[0092] S304: The controller sends target configuration information to the first host and the second host respectively.

[0093] The target configuration information is also used to authenticate the first host and / or the second host.

[0094] In a possible implementation, the controller sends target configuration information to the first host and the second host respectively, and the first host and / or the second host authenticate the target configuration information after receiving the target configuration information. If the target configuration information is authenticated, the first host and / or the second host communicate based on the target configuration information.

[0095] It should be noted that the first host and / or the second host verifies the object to be sent of the configuration information based on the name field in the target configuration information; and verifies the validity of the target configuration information based on the service_id field in the target configuration information.

[0096] The above scheme brings at least the following beneficial effects: In the embodiment of the present application, the controller receives the first registration request information from the first host and the second registration request information from the second host. Since the first registration information includes the first gateway of the first host and the connection point information of the first gateway, the second registration information includes the second gateway of the second host and the connection point information of the second gateway, and the first host and the second host are located in different networks, the controller can determine the target configuration information including the connection point information of the first gateway and the connection point information of the second gateway based on the first registration information and the second registration information; the target configuration information includes the connection point information of the first gateway and the connection point information of the second gateway. The controller sends the target configuration information to the first host and the second host respectively, so that the first host can communicate with the second host through the connection point information of the second gateway, and the second host can communicate with the first host through the connection point information of the first gateway, thereby reducing the complexity of cross-host communication and improving the efficiency of cross-host communication.

[0097] In one possible implementation, combining Figure 3 ,like Figure 5 As shown, before the controller determines the target configuration information based on the first registration request information and the second registration request information in the above S303, the controller registers the first host and the second host. The process of the controller registering the first host and the second host can be specifically implemented through the following S501-S504.

[0098] S501. A controller determines a first preset service rule corresponding to a first host based on a first preset service rule identifier.

[0099] The first preset service rule is used to identify the service information in the first host. The first registration request information also includes: a first preset service rule identifier.

[0100] In a possible implementation manner, the controller determines the first preset service rule corresponding to the first host based on the first preset service rule identifier and the preset service rule registration table.

[0101] Optionally, the preset service rule registration table includes at least one first preset service rule and at least one first preset service rule identifier.

[0102] S502: The controller determines a second preset service rule corresponding to the second host based on the second preset service rule identifier.

[0103] The second preset service rule is used to identify the service information in the second host.

[0104] The prediction service rule includes a first preset service rule and a second preset service rule. The prediction service rule includes at least one of the following: the name of the prediction service rule, the description information of the prediction service rule, the default inter-process communication UDS path and file name, the type parameter of the UDS, and the communication protocol type; the name of the prediction service rule is used to identify the prediction service rule, the description information of the service prediction service rule is used to characterize the service quality requirements in the host, the UDS path and file name are used to characterize the route between the network management and the application APP in the host, the communication protocol type is used to characterize the communication protocol between the first host and the second host, and the type parameter of the UDS includes a stream socket or a data packet socket.

[0105] For example, as shown in Table 4, when the field name in the preset service rule is id, it indicates the service rule name, which is globally unique; when the field name in the preset service rule is description, it indicates the description information of the service rule, which is used for VPP and VPP-agent; when the field name in the preset service rule is uds_path, it indicates the default UDS path and file name, such as / var / run / vpp / api.sock; when the field name in the preset service rule is uds_type, it indicates the type parameter of UDS; when the field name in the preset service rule is connect_type, it indicates the protocol type for point-to-point cross-host connection, such as: tcp, udp, srv6. Predefined service rules are created by users.

[0106] Table 4. Preset service rules

[0107]

[0108] It should be explained that the predefined service rules include the first preset service rules and the second preset service rules. The predefined service rules are stored in a configuration / status database, which can be configured in the controller or outside the controller.

[0109] It should be explained that the present application does not further limit the sequence of the above S501 and S502.

[0110] S503: The controller determines first service information in the first host based on the first preset service rule, and registers the first service information in a registration information table in the controller.

[0111] The registration information table includes at least one service and at least one corresponding service information.

[0112] In a possible implementation, the controller writes the name of the first host into the registration information table, and writes the name of the first service in the first host, the service content of the first service, and the service requirement of the first service into the registration information table.

[0113] S504: The controller determines second service information in the second host based on the second preset service rule, and registers the second service information in the registration information table.

[0114] In a possible implementation, the controller writes the name of the second host into the registration information table, and writes the name of the second service in the second host, the service content of the second service, and the service requirement of the second service into the registration information table.

[0115] Optionally, the controller monitors the registration information table in real time. If the time duration for which the corresponding service of the third host in the registration information table has not been called is greater than a preset threshold, the relevant information about the third host is deleted from the registration information table to release memory and improve the storage efficiency of the registration information table.

[0116] It should be explained that the present application does not further limit the sequence of the above S503 and S504.

[0117] The above scheme brings at least the following beneficial effects: in the embodiment of the present application, the controller registers the first host based on the preset service of the first host, and registers the second host based on the preset service of the second host, so that the controller can quickly and accurately determine the information of the first host and the second host, thereby improving the registration efficiency of the controller for the first host and the second host.

[0118] In one possible implementation, combining Figure 5 ,like Figure 6 As shown, in the above S303, the process in which the controller determines the target configuration information based on the first registration request information and the second registration request information can be specifically implemented through the following S601-S603.

[0119] S601. The controller determines a target communication protocol type between a first host and a second host based on first registration request information and second registration request information.

[0120] In one possible implementation, the controller determines the first communication protocol of the first host based on the first registration request information; the controller determines the second communication protocol of the second host based on the second registration request information; when the first communication protocol is the same as the second communication protocol, the first communication protocol is used as the target communication protocol type.

[0121] Exemplarily, the target communication protocol type may be tcp, udp, or srv6.

[0122] S602: When the target communication protocol type is SRv6, the controller determines a first quality of service requirement in the first host based on a first preset service rule; and determines a second quality of service requirement in the second host based on a second preset service rule.

[0123] Optionally, the service quality requirement includes at least one of the following: bandwidth, latency, and packet loss rate.

[0124] S603: The controller determines target configuration information based on the connection point information of the first gateway, the connection point information of the second gateway, the first quality of service requirement, and the second quality of service requirement.

[0125] The target configuration information includes routing information between the first host and the second host.

[0126] Optionally, the target configuration information is the connection point information of the first gateway and the connection point information of the second gateway.

[0127] The above solution brings at least the following beneficial effects: In the embodiment of the present application, the controller obtains the first quality of service requirement of the first host and the second quality of service requirement of the second host, so that the controller can determine the quality of service requirements of the first host and the second host. Further, the controller can determine the target configuration information required by the first host and the second host based on the connection point information of the first gateway, the connection point information of the second gateway, the first quality of service requirement and the second quality of service requirement.

[0128] In one possible implementation, combining Figure 6 ,like Figure 7 As shown, in the above S603, the controller determines the target configuration information based on the connection point information of the first gateway, the connection point information of the second gateway, the first quality of service requirement and the second quality of service requirement, which can be specifically implemented through the following S701-S703.

[0129] S701. The controller sends first request information to the SRv6 controller.

[0130] The first request information includes the connection point information of the first gateway, the connection point information of the second gateway, the first quality of service requirement, and the first quality of service requirement.

[0131] In a possible implementation, the controller sends the first request information to the SRv6 controller agent.

[0132] It should be explained that the SRv6 controller agent is set in the controller, and the controller can send the first request information to the SRv6 controller agent through internal communication. After receiving the first request information, the SRv6 controller agent forwards the first request information to the SRv6 controller agent.

[0133] S702: The controller receives first request response information sent by the SRv6 controller.

[0134] The first request response information includes routing information of an optimal path between the first host and the second host.

[0135] In a possible implementation, the controller receives the first request response information sent by the SRv6 controller through an SRv6 controller agent, thereby improving the efficiency of the controller in obtaining the first request response information.

[0136] Optionally, the first request response information also includes connection point information of the first gateway and connection point information of the second gateway.

[0137] S703: The controller determines target configuration information based on the first request response information.

[0138] Optionally, the target configuration information also includes connection point information of the first gateway, connection point information of the second gateway, and routing information of an optimal path between the first host and the second host.

[0139] The above scheme brings at least the following beneficial effects: In the embodiment of the present application, the controller requests the routing information of the path between the first host and the second host from the SRv6 controller through the SRv6 controller agent. Since the SRv6 controller can reasonably calculate and arrange the optimal path between the first host and the second host, after the controller determines the target configuration information based on the first request response information, the first host and the second host can communicate according to the optimal path, thereby improving the efficiency of cross-host communication.

[0140] In one possible implementation, combining Figure 3 ,like Figure 8 As shown, in the above S304, the controller sends the target configuration information to the first host and the second host respectively. The process can be specifically implemented through the following S801-S803.

[0141] S801. The controller sends second target configuration sub-information to the second host.

[0142] The second host is a server, and the second target configuration sub-information includes the connection point information of the first gateway. The target configuration information includes the first target configuration sub-information and the second target configuration sub-information, the first target configuration sub-information is the configuration information corresponding to the first host, and the second target configuration sub-information is the configuration information corresponding to the second host.

[0143] S802: The controller receives first indication information from the second host.

[0144] The first indication information is used to indicate that the second host has started monitoring and is waiting to establish a network connection with the first host.

[0145] S803. The controller sends first target configuration sub-information to the first host.

[0146] The first host is a client, and the first target configuration sub-information includes connection point information of the second gateway.

[0147] The above scheme brings at least the following beneficial effects: In the embodiment of the present application, after the controller determines the target configuration information, it sends the second target configuration sub-information corresponding to the server to the server, so that the server is ready to establish a communication connection. After the server makes a communication connection, it sends the first target configuration sub-information corresponding to the client to the client, so that the client is ready to establish a communication connection, thereby realizing a cross-network connection between the client and the server.

[0148] In one possible implementation, Fig. 9 As shown, the process of the method for cross-host process communication in the present application can be specifically implemented through the following S901-S918.

[0149] S901. The controller configures a predetermined service rule.

[0150] S902: The server APP starts the server APP based on the first startup request.

[0151] The first start request is used to start the server APP.

[0152] S903: The client APP starts the first gateway based on the configuration parameters of the client, and the server APP starts the second gateway based on the configuration parameters of the server.

[0153] S904. The first gateway and the second gateway send registration request information to the controller respectively.

[0154] The registration request information includes first registration request information and second registration request information.

[0155] S905. The controller determines the target configuration information based on the registration request information; when the target communication protocol type is SRv6, sends the first request information to the SRv6 controller.

[0156] In a possible implementation, when the target communication protocol type is SRv6, the controller determines a first quality of service requirement in the first host based on a first preset service rule, and determines a second quality of service requirement in the second host based on a second preset service rule. The controller determines the target configuration information based on the connection point information of the first gateway, the connection point information of the second gateway, the first quality of service requirement, and the second quality of service requirement.

[0157] S906. The controller sends the first gateway connection point information to the second gateway.

[0158] S907. The second gateway connects to the server-side UDS.

[0159] S908: The second gateway starts network monitoring on the service side.

[0160] S909: After the second gateway is ready, it sends first indication information to the controller.

[0161] The first indication information is used to indicate that the second host has started monitoring and is waiting to establish a network connection with the first host.

[0162] S910. The controller sends second gateway connection point information to the first gateway.

[0163] S911. The first gateway establishes a communication connection with the second gateway.

[0164] S912: The first gateway starts UDS monitoring.

[0165] S913: After the first gateway is ready, send second indication information to the controller.

[0166] The second indication information is used to indicate that the first host has started monitoring.

[0167] S914. The client APP starts the client APP based on the second start request.

[0168] The second start request is used to start the client APP.

[0169] S915. The client APP connects to the UDS with the first gateway.

[0170] S916. The client APP and the server APP components communicate through the first gateway and the second gateway.

[0171] S917: The first gateway starts a first timer, and when the first timer times out, sends a first heartbeat message to the controller.

[0172] S918: The second gateway starts a second timer, and when the second timer times out, sends a second heartbeat message to the controller.

[0173] Optionally, the present application does not further limit the order of the above S917 and S918.

[0174] The above scheme brings at least the following beneficial effects: In the embodiment of the present application, the controller receives the first registration request information from the client APP and the second registration request information from the server APP. Since the first registration information includes the first gateway of the client APP and the connection point information of the first gateway, the second registration information includes the second gateway of the server APP and the connection point information of the second gateway, and the client APP and the server APP are located in different networks, the controller can determine the target configuration information including the connection point information of the first gateway and the connection point information of the second gateway based on the first registration information and the second registration information; the target configuration information includes the connection point information of the first gateway and the connection point information of the second gateway. The controller sends the target configuration information to the client APP and the server APP respectively, so that the client APP can communicate with the server APP through the connection point information of the second gateway, and the server APP can communicate with the client APP through the connection point information of the first gateway, thereby reducing the complexity of cross-host communication and improving the efficiency of cross-host communication.

[0175] It can be seen that the technical solution provided by the embodiment of the present application is introduced above mainly from the perspective of the method. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should be easily aware that, in combination with the modules and algorithm steps of each example described in the embodiment disclosed herein, the embodiment of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0176] The embodiment of the present application can divide the functional modules of the cross-host inter-process communication device according to the above method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. Optionally, the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0177] like Fig.10 , which is a schematic diagram of a cross-host inter-process communication device 100 provided in an embodiment of the present application. The cross-host inter-process communication device 100 includes: a communication unit 1001 and a processing unit 1002.

[0178] The communication unit 1001 is used to receive first registration request information from a first host, where the first registration information includes a first gateway of the first host and connection point information of the first gateway; the communication unit 1001 is used to receive second registration request information from a second host, where the second registration request information includes a second gateway of the second host and connection point information of the second gateway; the first host and the second host are located in different networks; the processing unit 1002 is used to determine target configuration information based on the first registration request information and the second registration request information; the target configuration information includes connection point information of the first gateway and connection point information of the second gateway; the communication unit 1001 is used to send the target configuration information to the first host and the second host respectively.

[0179] Optionally, the first registration request information also includes: a first preset service rule identifier; the second registration request information also includes: a second preset service rule identifier; processing unit 1002 is used to determine the first preset service rule corresponding to the first host based on the first preset service rule identifier; the first preset service rule is used to identify the service information in the first host; processing unit 1002 is also used to determine the second preset service rule corresponding to the second host based on the second preset service rule identifier; the second preset service rule is used to identify the service information in the second host; processing unit 1002 is also used to determine the first service information in the first host based on the first preset service rule, and register the first service information in the registration information table in the control; the registration information table includes at least one service and at least one corresponding service information; processing unit 1002 is also used to determine the second service information in the second host based on the second preset service rule, and register the second service information in the registration information table.

[0180] Optionally, the prediction service rule includes at least one of the following: the name of the prediction service rule, the description information of the prediction service rule, the default inter-process communication UDS path and file name, the type parameter of the UDS, and the communication protocol type; the name of the prediction service rule is used to identify the prediction service rule, the description information of the prediction service rule is used to characterize the service quality requirements in the host, the UDS path and file name are used to characterize the route between the network management and the application APP in the host, the communication protocol type is used to characterize the communication protocol between the first host and the second host, and the type parameter of the UDS includes a streaming socket or a data packet socket.

[0181] Optionally, processing unit 1002 is further used to determine the target communication protocol type between the first host and the second host based on the first registration request information and the second registration request information; processing unit 1002 is further used to determine the first quality of service requirement in the first host based on the first preset service rule when the target communication protocol type is segment routing SRv6 based on the IPv6 forwarding plane; determine the second quality of service requirement in the second host based on the second preset service rule; processing unit 1002 is further used to determine target configuration information based on the connection point information of the first gateway, the connection point information of the second gateway, the first quality of service requirement and the second quality of service requirement; the target configuration information includes routing information between the first host and the second host.

[0182] Optionally, the communication unit 1001 is also used to send a first request message to the SRv6 controller; the first request message includes the connection point information of the first gateway, the connection point information of the second gateway, the first quality of service requirement and the second quality of service requirement; the processing unit 1002 is also used to receive a first request response message sent by the SRv6 controller; the first request response message includes routing information of the optimal path between the first host and the second host; the processing unit 1002 is also used to determine the target configuration information based on the first request response information.

[0183] Optionally, the target configuration information includes first target configuration sub-information and second target configuration sub-information; the communication unit 1001 is also used to send the second target configuration sub-information to the second host; the second host is a server, and the second target configuration sub-information includes the connection point information of the first gateway; the communication unit 1001 is also used to receive first indication information from the second host; the first indication information is used to indicate that the second host has started listening and is waiting to establish a network connection with the first host; the communication unit 1001 is also used to send the first target configuration sub-information to the first host; the first host is a client, and the first target configuration sub-information includes the connection point information of the second gateway.

[0184] Optionally, the target configuration information is also used to authenticate the first host and / or the second host.

[0185] The processing unit 1002 may be a processor or a controller. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the contents disclosed in this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc. The communication unit 1001 may be a transceiver circuit or a communication interface, etc. The storage module may be a memory. When the processing unit 1002 is a processor, the communication unit 1001 is a communication interface, and the storage module is a memory, the inter-host process communication device involved in the embodiment of the present application may be Figure 2 The cross-host inter-process communication device is shown.

[0186] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the network node is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, module and network node described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0187] An embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When a computer executes the instructions, the computer executes each step in the method flow shown in the above method embodiment.

[0188] An embodiment of the present application also provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run a computer program or instruction to implement the cross-host process communication method in the above method embodiment.

[0189] An embodiment of the present application provides a computer program product including instructions. When the instructions are executed on a computer, the computer is enabled to execute the cross-host inter-process communication method in the above method embodiment.

[0190] Among them, the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, and a hard disk. Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read Only Memory (EPROM), registers, hard disks, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any other form of computer-readable storage medium in a suitable combination of the above, or numerical values ​​in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an Application Specific Integrated Circuit (ASIC). In embodiments of the present invention, computer-readable storage media may be any tangible media that contains or stores a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0191] Since the apparatus, device, computer-readable storage medium, and computer program product in the embodiments of the present invention can be applied to the above-mentioned method, the technical effects that can be obtained can also refer to the above-mentioned method embodiments, and the embodiments of the present application will not be repeated here.

[0192] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A cross-host process communication method, characterized in that: The method comprises: applying to a controller: Receiving first registration request information from a first host, where the first registration information includes a first gateway of the first host and connection point information of the first gateway; receiving second registration request information from a second host, wherein the second registration request information includes a second gateway of the second host and connection point information of the second gateway; the first host and the second host are located in different networks; Determine target configuration information based on the first registration request information and the second registration request information; the target configuration information includes connection point information of the first gateway and connection point information of the second gateway; The target configuration information is sent to the first host and the second host respectively.

2. The method according to claim 1, characterized in that The first registration request information further includes: a first preset service rule identifier; the second registration request information further includes: a second preset service rule identifier; before determining the target configuration information based on the first registration request information and the second registration request information, the method further includes: Based on the first preset service rule identifier, determining a first preset service rule corresponding to the first host; the first preset service rule is used to identify service information in the first host; Based on the second preset service rule identifier, determining a second preset service rule corresponding to the second host; the second preset service rule is used to identify service information in the second host; Based on the first preset service rule, determine the first service information in the first host, and register the first service information in the registration information table in the control; the registration information table includes at least one service and the at least one corresponding service information; Based on the second preset service rule, second service information in the second host is determined, and the second service information is registered in the registration information table.

3. The method according to claim 2, characterized in that The prediction service rule includes at least one of the following: the name of the prediction service rule, the description information of the prediction service rule, the default inter-process communication UDS path and file name, the type parameter of the UDS and the communication protocol type; the name of the prediction service rule is used to identify the prediction service rule, the description information of the service prediction service rule is used to characterize the service quality requirements in the host, the UDS path and file name are used to characterize the route between the network management and the application APP in the host, the communication protocol type is used to characterize the communication protocol between the first host and the second host, and the type parameter of the UDS includes a streaming socket or a data packet socket.

4. The method according to claim 3, characterized in that: The determining the target configuration information based on the first registration request information and the second registration request information includes: Determining a target communication protocol type between the first host and the second host based on the first registration request information and the second registration request information; In a case where the target communication protocol type is segment routing SRv6 based on an IPv6 forwarding plane, determining a first quality of service requirement in the first host based on the first preset service rule; and determining a second quality of service requirement in the second host based on the second preset service rule; The target configuration information is determined based on the connection point information of the first gateway, the connection point information of the second gateway, the first quality of service requirement, and the second quality of service requirement; the target configuration information includes routing information between the first host and the second host.

5. The method according to claim 4, characterized in that The determining the target configuration information based on the connection point information of the first gateway, the connection point information of the second gateway, the first quality of service requirement, and the second quality of service requirement includes: Sending first request information to the SRv6 controller; the first request information includes the connection point information of the first gateway, the connection point information of the second gateway, the first quality of service requirement and the first quality of service requirement; Receiving a first request response message sent by the SRv6 controller; the first request response message including routing information of an optimal path between the first host and the second host; The target configuration information is determined based on the first request response information.

6. The method according to any one of claims 1 to 5, characterized in that: The target configuration information includes first target configuration sub-information and second target configuration sub-information, and sending the target configuration information to the first host and the second host respectively includes: Sending the second target configuration sub-information to the second host; the second host is a server, and the second target configuration sub-information includes connection point information of the first gateway; receiving first indication information from the second host; the first indication information is used to indicate that the second host has started monitoring and is waiting to establish a network connection with the first host; The first target configuration sub-information is sent to the first host; the first host is a client, and the first target configuration sub-information includes connection point information of the second gateway.

7. The method according to any one of claims 1 to 5, characterized in that: The target configuration information is also used to authenticate the first host and / or the second host.

8. A cross-host inter-process communication device, characterized in that: The device comprises a communication unit and a processing unit: The communication unit is configured to receive first registration request information from a first host, wherein the first registration information includes a first gateway of the first host and connection point information of the first gateway; The communication unit is configured to receive second registration request information from a second host, wherein the second registration request information includes a second gateway of the second host and connection point information of the second gateway; the first host and the second host are located in different networks; The processing unit is configured to determine target configuration information based on the first registration request information and the second registration request information; the target configuration information includes connection point information of the first gateway and connection point information of the second gateway; The communication unit is used to send the target configuration information to the first host and the second host respectively.

9. A cross-host inter-process communication device, characterized in that: include: A processor and a memory; wherein the memory is used to store computer-executable instructions, and when the cross-host inter-process communication device is running, the processor executes the computer-executable instructions stored in the memory to enable the cross-host inter-process communication device to execute the cross-host inter-process communication method described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes instructions, which, when executed by the inter-host inter-process communication device, cause the computer to execute the inter-host inter-process communication method according to any one of claims 1 to 7.