Cross-region communication method, device and electronic equipment

By using a proprietary network to acquire and forward communication messages in cross-region communication, the problem of uncontrollable public network transmission is solved, and more stable and efficient cross-region communication is achieved.

CN114979128BActive Publication Date: 2025-03-25TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110193667.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-20
Publication Date
2025-03-25
Estimated Expiration
2041-02-20

AI Technical Summary

Technical Problem

In the Internet communication scenario, the communication data traffic between cross-region communication devices travels on the public network route throughout the entire process, resulting in the inability to guarantee network quality and uncontrollable paths, and the stability of cross-region communication cannot be effectively improved.

Method used

The communication packet forwarded by the target private network node in the target area is obtained through the proprietary network, the IP address of the target private network node is determined, and response data is sent through the proprietary network based on the IP address to ensure that the communication data is transmitted in the proprietary network.

Benefits of technology

Transmission of cross-region communication data through a proprietary network avoids the problem of low stability of the public network, improves the stability of cross-region communication, and avoids non-optimal delay paths in public networks, improving communication timeliness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114979128B_ABST
    Figure CN114979128B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a cross-regional communication method, device and electronic device, which are implemented in a public network and a private network, wherein the public network includes a public network node and the private network includes a private network node. The method includes: obtaining a first communication message forwarded by a target private network node in a target area through the private network, wherein the first communication message includes header information and first communication data, and the first communication data is sent by a target public network node in the target area; obtaining second communication data, wherein the second communication data is used to respond to the first communication data; determining the IP address of the target private network node in the private network from the header information; and sending the second communication data to the target public network node through the private network based on the IP address of the target private network node in the private network. The technical solution of the embodiments of the present application can improve the stability of cross-regional communication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the fields of cloud technology and communication technology, and more specifically, to a cross-regional communication method, device, computer-readable medium and electronic device. Background Art

[0002] In Internet communication scenarios, such as Internet communication scenarios between two communication devices across regions, communication is usually carried out through a public network. The communication data traffic between the two communication devices is all on the public network line. When there are problems such as communication export failures of the communication equipment, international submarine cable failures, network congestion, etc., the network quality cannot be effectively guaranteed, and it is impossible to control whether the path on the public network is the optimal path, and the delay quality is also uncontrollable. Based on this, how to improve the stability of cross-regional communication is a technical problem that needs to be solved urgently. Summary of the invention

[0003] The embodiments of the present application provide a cross-regional communication method, apparatus, computer program product or computer program, computer-readable medium and electronic device, thereby improving the stability of cross-regional communication at least to a certain extent.

[0004] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0005] According to one aspect of an embodiment of the present application, a cross-regional communication method is provided, which is implemented in a public network and a private network, wherein the public network includes a public network node, and the private network includes a private network node. The method includes: obtaining, through the private network, a first communication message forwarded by a target private network node in a target area, wherein the first communication message includes header information and first communication data, and the first communication data is sent by a target public network node in the target area; obtaining second communication data, wherein the second communication data is used to respond to the first communication data; determining an IP address of the target private network node in the private network from the header information; and sending the second communication data to the target public network node through the private network based on the IP address of the target private network node in the private network.

[0006] According to one aspect of an embodiment of the present application, a cross-regional communication device is provided, which is implemented in a public network and a private network, wherein the public network includes a public network node, and the private network includes a private network node. The device includes: a first acquisition unit, which is used to acquire a first communication message forwarded by a target private network node in a target area through the private network, wherein the first communication message includes header information and first communication data, and the first communication data is sent by a target public network node in the target area; a second acquisition unit, which is used to acquire second communication data, and the second communication data is used to respond to the first communication data; a determination unit, which is used to determine the IP address of the target private network node in the private network from the header information; and a first sending unit, which is used to send the second communication data to the target public network node through the private network based on the IP address of the target private network node in the private network.

[0007] In some embodiments of the present application, based on the aforementioned scheme, the device also includes: a third acquisition unit, which is used to obtain the IP address of the target public network node in the public network before obtaining the first communication message forwarded by the target private network node in the target area through the private network; a second sending unit, which is used to send the first packet of communication data to the target public network node through the public network based on the IP address of the target public network node in the public network, and the first packet of communication data is the first communication data sent to the target public network node in history.

[0008] In some embodiments of the present application, based on the aforementioned scheme, the device also includes: a fourth acquisition unit, which is used to obtain the IP address of a predefined predefined private network node in the private network before obtaining the first communication message forwarded by the target private network node in the target area through the private network; a third sending unit, which is used to send the first packet of communication data to the target public network node through the private network based on the IP address of the predefined private network node in the private network, and the first packet of communication data is the first communication data sent to the target public network node in history.

[0009] In some embodiments of the present application, based on the aforementioned scheme, the local public network node in the local area includes at least one virtual sub-node, and the second communication data is sent by the target virtual sub-node in the local public network node; the determination unit is configured to: when the target virtual sub-node has the authority to use the private network, determine the IP address of the target private network node in the private network from the header information.

[0010] In some embodiments of the present application, based on the aforementioned scheme, the local public network node is provided with a virtual routing table; when the IP address of the target virtual sub-node in the public network is marked in the virtual routing table, the target virtual sub-node has the authority to use the private network.

[0011] In some embodiments of the present application, based on the aforementioned scheme, the first sending unit includes: an encapsulation unit, used to use the IP address of the target private network node in the private network as the destination IP address in the private network, encapsulate the second communication data, and obtain a second communication message; a forwarding unit, used to forward the second communication message to the target private network node through the private network, so that the target private network node forwards the second communication data in the second communication message to the target public network node in the public network.

[0012] In some embodiments of the present application, based on the aforementioned scheme, the encapsulation unit is configured to: use the IP address of the target private network node in the private network as the destination IP address in the private network, encapsulate the second communication data through a tunnel protocol, and obtain a second communication message.

[0013] In some embodiments of the present application, based on the aforementioned scheme, the forwarding unit is configured to: select a local private network node corresponding to the local public network node from among the private network nodes in the private network according to the principle of geographical proximity; forward the second communication message to the local private network node, so that the local private network node forwards the second communication message to the target private network node through the private network.

[0014] According to one aspect of an embodiment of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the cross-region communication method described in the above embodiment.

[0015] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the cross-region communication method as described in the above embodiment is implemented.

[0016] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the cross-region communication method as described in the above embodiments.

[0017] In the technical solutions provided in some embodiments of the present application, after the target public network node in the target area sends the first communication data, the first communication message including header information and the first communication data forwarded by the target private network node in the private network of the target area is first obtained, and then the IP address of the target private network node in the private network is determined from the header information, and based on the IP address of the target private network node in the private network, the second communication data used to respond to the first communication data is sent to the target public network node through the private network.

[0018] Since the first communication data sent by the target public network node is forwarded by the target private network node belonging to the same area as the target public network node, and the second communication data used to respond to the first communication data is sent to the target public network node through the private network based on the IP address of the target private network node in the private network, the communication data of cross-regional communication are all transmitted on the private network, and the quality of cross-regional communication is no longer affected by the low stability defect of the public network, thereby improving the stability of cross-regional communication. In addition, cross-regional communication through the private network avoids the non-optimal delayed communication path in the public network, which speeds up the timeliness of cross-regional communication.

[0019] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0021] Figure 1 A schematic diagram showing an exemplary system architecture to which the technical solution of the embodiments of the present application can be applied;

[0022] Figure 2 A flow chart of a cross-region communication method according to an embodiment of the present application is shown;

[0023] Figure 3 An example simulation diagram of cross-region communication according to an embodiment of the present application is shown;

[0024] Figure 4 A flow chart of a method before obtaining a first communication message forwarded by a target private network node in a target area through the private network according to an embodiment of the present application is shown;

[0025] Figure 5 An example simulation diagram of cross-region communication according to an embodiment of the present application is shown;

[0026] Figure 6 A flow chart of a method before obtaining a first communication message forwarded by a target private network node in a target area through the private network according to an embodiment of the present application is shown;

[0027] Figure 7 An example simulation diagram of cross-region communication according to an embodiment of the present application is shown;

[0028] Figure 8 A detailed flow chart showing sending the second communication data to the target public network node through the private network according to an embodiment of the present application is shown;

[0029] Fig. 9 A detailed flow chart of forwarding the second communication message to the target private network node through the private network according to an embodiment of the present application is shown;

[0030] Fig.10 A block diagram of a cross-region communication device according to an embodiment of the present application is shown;

[0031] Fig.11 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0032] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.

[0033] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0034] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0035] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0036] It should be noted that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0037] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the objects used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those shown or described.

[0038] Figure 1 A schematic diagram of an exemplary system architecture to which the technical solution of the embodiments of the present application can be applied is shown.

[0039] like Figure 1 As shown, the system architecture may include terminal devices (such as Figure 1 The present invention relates to a mobile phone 101, a tablet computer 102, a portable computer 103, or other terminal devices with positioning functions, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the terminal device and the server 105. The network 104 may include various connection types, such as a wired communication link, a wireless communication link, and the like.

[0040] In one embodiment of the present application, it may be communication between a server 105 and a terminal device, wherein the server 105 and the terminal device are in different regions, for example, in different countries, and the server 105 and the terminal device may be regarded as two nodes in a public network, and both the server 105 and the terminal device have IP addresses in the public network. Specifically, the server 105 may obtain a first communication message forwarded by a target private network node in a target area through a private network, wherein the first communication message includes header information and first communication data, and the first communication data is sent by a terminal device in the target area, and then the server 105 may obtain second communication data for responding to the first communication data, and at the same time determine the IP address of the target private network node in the private network from the header information, and based on the IP address of the target private network node in the private network, send the second communication data to the terminal device through the private network.

[0041] It should be noted that the cross-regional communication method provided in the embodiment of the present application can be executed by the server 105, and accordingly, the cross-regional communication device is generally set in the server 105. However, in other embodiments of the present application, the terminal device can also have similar functions as the server, so as to execute the cross-regional communication solution provided in the embodiment of the present application.

[0042] It should also be noted that Figure 1 The number of terminal devices, networks and servers in the description is only illustrative, wherein the network may include a proprietary network and a public network. According to the implementation requirements, the server may be an independent physical server, or a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal may be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, etc., but is not limited thereto, and this application does not limit this.

[0043] It should be explained that cloud computing as described above is a computing model that distributes computing tasks on a resource pool composed of a large number of computers, so that various application systems can obtain computing power, storage space and information services as needed. The network that provides resources is called a "cloud". The resources in the "cloud" are infinitely expandable in the eyes of users, and can be obtained at any time, used on demand, and expanded at any time. By establishing a cloud computing resource pool (referred to as a cloud platform, generally referred to as an IaaS (Infrastructure as a Service) platform, various types of virtual resources are deployed in the resource pool for external customers to choose to use. The cloud computing resource pool mainly includes: computing devices (virtualized machines, including operating systems), storage devices, and network devices.

[0044] The implementation details of the technical solution of the embodiment of the present application are described in detail below:

[0045] Figure 2 A flow chart of a cross-region communication method according to an embodiment of the present application is shown. The cross-region communication method can be executed by a device having a computing and processing function and a communication function, for example, Figure 1 Executed by the server 105 shown in .

[0046] In addition, the cross-region communication method can be implemented in a public network and a private network, wherein the public network includes a public network node and the private network includes a private network node. Figure 2 As shown, the cross-region communication method at least includes steps 220 to 280, which are described in detail as follows:

[0047] In step 220, a first communication message forwarded by a target private network node in a target area is obtained through the private network, wherein the first communication message includes header information and first communication data, and the first communication data is sent by a target public network node in the target area.

[0048] A private network is a type of private network that includes multiple private network nodes. Private network nodes are connected to each other through dedicated lines. Each private network node is assigned a private IP address in the private network. Only legal nodes are allowed to access the private network, which ensures the security, efficiency and integrity of communication data transmission in the private network.

[0049] The public network is a network for all users, namely the Internet. In the public network, there are a large number of public network nodes. Any two public network nodes can communicate through the public network. However, communication between two public network nodes across regions, such as communication between two public network nodes across countries, requires multiple layers of routing forwarding to achieve the transmission of communication data.

[0050] In the present application, during the communication between two cross-region public network nodes, after the target public network node in the target area sends out a signal, a private network node in a private network can be selected in the target area according to the proximity principle, that is, the target private network node, and the first communication data is forwarded to the target private network node. The target private network node forwards the first communication data to the local public network node in the local area through the private network (for example Figure 1 It should be noted that before the target private network node forwards the first communication data, the first communication data needs to be encapsulated to obtain a first communication message including header information and the first communication data, wherein the header information records the IP address of the target private network node in the private network.

[0051] In step 240, second communication data is acquired, where the second communication data is used to respond to the first communication data.

[0052] After the local public network node obtains the first communication data, the user will respond to the first communication data and send the second communication data through the local public network node, so that the local public network node obtains the second communication data.

[0053] In step 260, the IP address of the target private network node in the private network is determined from the header information.

[0054] Since the IP address of the target private network node in the private network is recorded in the header information, the IP address of the target private network node in the private network can be determined by learning the header information.

[0055] In step 280, based on the IP address of the target private network node in the private network, the second communication data is sent to the target public network node through the private network.

[0056] The following will refer to Figure 3 , taking the scenario of cross-country communication as an example, the technical solution of the embodiment of the present application is described in detail:

[0057] See also Figure 3 , shows an example simulation diagram of cross-region communication according to an embodiment of the present application.

[0058] In the cross-country communication scenario 300, a private network 302 and a public network 304 are included. Among them, the private network 302 includes a Chinese private network node, a French private network node, a US private network node, and a Japanese private network node, and the public network 304 includes a French public network node 301 (i.e., a target user) and a Chinese public network node 303 (i.e., a local user). It can be understood that the French private network node and the French public network node both belong to the French region, and the Chinese private network node and the Chinese public network node both belong to the Chinese region.

[0059] In the present application, the China public network node 303 may be a cloud server, that is, a physical server where a cloud host is located in a cloud network VPC (Virtual Private Cloud) scenario.

[0060] In the specific example, the French public network node 301 sends out the first communication data S1, which is forwarded through the French private network node in the private network 302. The French private network node then forwards the first communication message including the first communication data through the private network. The Chinese public network node obtains the first communication data from the private network, and learns the IP address information of the French private network node in the private network 302 based on the header information in the first communication message. Then, the Chinese public network node forwards the second communication data used to respond to the first communication data to the French public network node through the French private network node in the private network based on the IP address information of the French private network node.

[0061] It should be noted that the communication data proposed in this application can be text data, for example, the target user sends a text message to the local user, and the local user responds to the target user with a text message. In addition, the communication data can also be audio or video data, or game data, etc.

[0062] In one embodiment of the present application, before obtaining the first communication message forwarded by the target private network node in the target area through the private network in step 220, the following may also be performed: Figure 4 Steps shown.

[0063] See also Figure 4 , shows a flow chart of a method before obtaining a first communication message forwarded by a target private network node in a target area through the private network according to an embodiment of the present application. Specifically comprising steps 211 to 212:

[0064] In step 211, the IP address of the target public network node in the public network is obtained.

[0065] In step 212, based on the IP address of the target public network node in the public network, a first packet of communication data is sent to the target public network node through the public network, where the first packet of communication data is the first communication data sent to the target public network node in history.

[0066] In this embodiment, the first packet of communication data refers to the first communication data in history sent to the target public network node by the local public network node as the data initiator. Because the IP address of the target private network node close to the target public network node in the private network is not known before the first communication data in history is sent to the target public network node, it is impossible to directly forward the first packet of communication data to the target public network node through the target private network node. Based on this, the first packet of communication data can be sent to the target public network node through the public network.

[0067] It should be noted that the target private network node close to the target public network node refers to the target private network node that is close to the target public network node in geographical distance.

[0068] In this embodiment, when the local public network node sends the first packet of communication data to the target public network node through the public network, the IP address of the local private network node in the private network that is close to the target public network node itself can also be sent to the target public network node, so that in the subsequent process, the target private network node can send the first communication data to the local private network node through the private network based on the IP address of the local private network node in the private network, and further forward it to the local public network node.

[0069] The following continues to use the scenario of cross-country communication as an example to elaborate on the technical solution of this embodiment:

[0070] See also Figure 5 , shows an example simulation diagram of cross-region communication according to an embodiment of the present application.

[0071] In the cross-country communication scenario 500, the Chinese public network node 303 may obtain the IP address of the French public network node in the public network through DNS resolution based on the link of the French public network node 301. The Chinese public network node 303 sends the first packet of communication data S0 to the French public network node 301 through the public network 304 according to the IP address, for example, to initiate a video call. The French public network node 301 forwards the first communication data S1 used to respond to the first packet of communication data S0 to the Chinese public network node 303 through the French private network node in the private network 302.

[0072] In another embodiment of the present application, before obtaining the first communication message forwarded by the target private network node in the target area through the private network in step 220, the following may also be performed: Figure 6 Steps shown.

[0073] See also Figure 6 , shows a flow chart of a method before obtaining a first communication message forwarded by a target private network node in a target area through the private network according to an embodiment of the present application. Specifically comprising steps 213 to 214:

[0074] In step 213, an IP address of a predefined private network node in the private network is obtained.

[0075] In step 214, based on the IP address of the predefined private network node in the private network, the first packet of communication data is sent to the target public network node through the private network, and the first packet of communication data is the first communication data sent to the target public network node in history.

[0076] In this embodiment, if a private network node that is geographically close to the target public network node is known in advance, that is, a predefined private network node, the IP address of the predefined private network node in the private network can be directly obtained, and based on the IP address of the predefined private network node in the private network, the first packet of communication data is sent to the target public network node through the private network.

[0077] The following continues to use the scenario of cross-country communication as an example to elaborate on the technical solution of this embodiment:

[0078] See also Figure 7 , shows an example simulation diagram of cross-region communication according to an embodiment of the present application.

[0079] In the cross-country communication scenario 700, the Chinese public network node 303 may send the first packet of communication data S00 to the French public network node 301 through the private network 302 according to the IP address of the predefined private network node (i.e., the target private network node) in the private network. The French public network node 301 then forwards the first communication data S1 used to respond to the first packet of communication data S00 to the Chinese public network node 303 through the French private network node in the private network 302.

[0080] In one embodiment of the present application, the local public network node in the local area may include at least one virtual sub-node, and the second communication data is sent by a target virtual sub-node in the local public network node.

[0081] In this embodiment, if the local public network node is a cloud server, the cloud server may have at least one virtual server, ie, a virtual sub-node. Each virtual sub-node in the local public network node has a corresponding IP address in the public network.

[0082] In this implementation, when the target virtual sub-node has the authority to use the private network, the IP address of the target private network node in the private network is determined from the header information.

[0083] Furthermore, the local public network node may be provided with a virtual routing table, and when the IP address of the target virtual sub-node in the public network is marked in the virtual routing table, the target virtual sub-node has the authority to use the private network.

[0084] In order to ensure the security, efficiency and integrity of communication data transmission in the private network, the private network only allows legitimate nodes to access. Therefore, in this application, the IP address of the target virtual sub-node in the public network is recorded through the virtual routing table set by the local public network node, which can identify the legitimacy of the target virtual sub-node and further prove that the target virtual sub-node has the authority to use the private network.

[0085] In one embodiment of the present application, step 280 of sending the second communication data to the target public network node through the private network based on the IP address of the target private network node in the private network may be performed as follows: Figure 8 Follow the steps shown.

[0086] See also Figure 8 , shows a detailed flow chart of sending the second communication data to the target public network node through the private network according to an embodiment of the present application. Specifically including steps 281 to 282:

[0087] In step 281, the IP address of the target private network node in the private network is used as the destination IP address in the private network, and the second communication data is encapsulated to obtain a second communication message.

[0088] In step 282, the second communication message is forwarded to the target private network node through the private network, so that the target private network node forwards the second communication data in the second communication message to the target public network node in the public network.

[0089] In step 281, the IP address of the target private network node in the private network may be used as the destination IP address in the private network, and the second communication data may be encapsulated through a tunnel protocol to obtain a second communication message.

[0090] In the present application, the tunneling protocol may be Generic Routing Encapsulation (GRE), which encapsulates datagrams of certain network layer protocols so that the encapsulated datagrams can be transmitted in another network layer protocol (such as IP).

[0091] In this embodiment, step 282 forwards the second communication message to the target private network node through the private network, which can be as follows: Fig. 9 The steps shown are performed:

[0092] See also Fig. 9 , shows a detailed flow chart of forwarding the second communication message to the target private network node through the private network according to an embodiment of the present application. Specifically including steps 2821 to 2822:

[0093] In step 2821, based on the principle of geographical proximity, a local private network node corresponding to the local public network node is selected from among the private network nodes.

[0094] In step 2822, the second communication message is forwarded to the local private network node, so that the local private network node forwards the second communication message to the target private network node through the private network.

[0095] In the present application, the local private network node corresponding to the local public network node is a local private network node that is close to the local public network node in geographical distance.

[0096] The selection of a local private network node corresponding to the local public network node among the private network nodes can be implemented based on Anycast technology. Anycast technology means that when a unicast address is assigned to more than one interface, the message to be sent is routed by the network to the "shortest" target interface measured by the routing protocol, which is the local private network node in this embodiment.

[0097] Anycast allows the source node to send datagrams to one of a group of target nodes, and this node is selected by the routing system and is transparent to the source node. At the same time, the routing system selects the "nearest" node to provide services for the source node, thereby providing better services to the source node and reducing the network load to a certain extent.

[0098] In this application, the local public network node dynamically adjusts the communication path of the communication data according to the header information in the received communication message, ensuring that the communication data can also be transmitted through the private network to the private network node closest to the target public network node.

[0099] In the above embodiment of the present application, the first communication data sent by the target public network node is forwarded by the target private network node belonging to the same area as the target public network node, and based on the IP address of the target private network node in the private network, the second communication data used to respond to the first communication data is sent to the target public network node through the private network, so that the communication data of cross-regional communication are all transmitted on the private network, and the quality of cross-regional communication is no longer affected by the low stability defect of the public network, thereby improving the stability of cross-regional communication. And cross-regional communication is carried out through a private network, so that the non-optimal delayed communication path in the public network can be avoided, which speeds up the timeliness of cross-regional communication.

[0100] The following describes an apparatus embodiment of the present application, which can be used to execute the cross-region communication method in the above-mentioned embodiment of the present application. For details not disclosed in the apparatus embodiment of the present application, please refer to the above-mentioned embodiment of the cross-region communication method of the present application.

[0101] Fig.10 A block diagram of a cross-region communication device according to an embodiment of the present application is shown.

[0102] Reference Fig.10 As shown, according to an embodiment of the present application, a cross-regional communication device 1000 is implemented in a public network and a private network, the public network includes a public network node, the private network includes a private network node, and the device includes: a first acquisition unit 1001, a second acquisition unit 1002, a determination unit 1003 and a first sending unit 1004.

[0103] Among them, the first acquisition unit 1001 is used to acquire a first communication message forwarded by a target private network node in a target area through the private network, wherein the first communication message includes header information and first communication data, and the first communication data is sent by a target public network node in the target area; the second acquisition unit 1002 is used to acquire second communication data, and the second communication data is used to respond to the first communication data; the determination unit 1003 is used to determine the IP address of the target private network node in the private network from the header information; the first sending unit 1004 is used to send the second communication data to the target public network node through the private network based on the IP address of the target private network node in the private network.

[0104] In some embodiments of the present application, based on the aforementioned scheme, the device also includes: a third acquisition unit, which is used to obtain the IP address of the target public network node in the public network before obtaining the first communication message forwarded by the target private network node in the target area through the private network; a second sending unit, which is used to send the first packet of communication data to the target public network node through the public network based on the IP address of the target public network node in the public network, and the first packet of communication data is the first communication data sent to the target public network node in history.

[0105] In some embodiments of the present application, based on the aforementioned scheme, the device also includes: a fourth acquisition unit, which is used to obtain the IP address of a predefined predefined private network node in the private network before obtaining the first communication message forwarded by the target private network node in the target area through the private network; a third sending unit, which is used to send the first packet of communication data to the target public network node through the private network based on the IP address of the predefined private network node in the private network, and the first packet of communication data is the first communication data sent to the target public network node in history.

[0106] In some embodiments of the present application, based on the aforementioned scheme, the local public network node in the local area includes at least one virtual sub-node, and the second communication data is sent by the target virtual sub-node in the local public network node; the determination unit 1003 is configured to: when the target virtual sub-node has the authority to use the private network, determine the IP address of the target private network node in the private network from the header information.

[0107] In some embodiments of the present application, based on the aforementioned scheme, the local public network node is provided with a virtual routing table; when the IP address of the target virtual sub-node in the public network is marked in the virtual routing table, the target virtual sub-node has the authority to use the private network.

[0108] In some embodiments of the present application, based on the aforementioned scheme, the first sending unit 1004 includes: an encapsulation unit, used to use the IP address of the target private network node in the private network as the destination IP address in the private network, encapsulate the second communication data, and obtain a second communication message; a forwarding unit, used to forward the second communication message to the target private network node through the private network, so that the target private network node forwards the second communication data in the second communication message to the target public network node in the public network.

[0109] In some embodiments of the present application, based on the aforementioned scheme, the encapsulation unit is configured to: use the IP address of the target private network node in the private network as the destination IP address in the private network, encapsulate the second communication data through a tunnel protocol, and obtain a second communication message.

[0110] In some embodiments of the present application, based on the aforementioned scheme, the forwarding unit is configured to: select a local private network node corresponding to the local public network node from among the private network nodes in the private network according to the principle of geographical proximity; forward the second communication message to the local private network node, so that the local private network node forwards the second communication message to the target private network node through the private network.

[0111] Fig.11 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.

[0112] It should be noted that Fig.11 The computer system 1100 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0113] like Fig.11 As shown, the computer system 1100 includes a central processing unit (CPU) 1101, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1102 or the program loaded from the storage part 1108 to the random access memory (RAM) 1103, such as executing the method described in the above embodiment. In the RAM 1103, various programs and data required for system operation are also stored. The CPU 1101, the ROM 1102 and the RAM 1103 are connected to each other through the bus 1104. The input / output (I / O) interface 1105 is also connected to the bus 1104.

[0114] The following components are connected to the I / O interface 1105: an input section 1106 including a keyboard, a mouse, etc.; an output section 1107 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1108 including a hard disk, etc.; and a communication section 1109 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1109 performs communication processing via a network such as the Internet. A drive 1110 is also connected to the I / O interface 1105 as needed. A removable medium 1111, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1110 as needed so that a computer program read therefrom is installed into the storage section 1108 as needed.

[0115] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 1109, and / or installed from a removable medium 1111. When the computer program is executed by a central processing unit (CPU) 1101, various functions defined in the system of the present application are executed.

[0116] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may 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 may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0117] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0118] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0119] As another aspect, the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the cross-region communication method described in the above embodiment.

[0120] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the cross-region communication method described in the above embodiment.

[0121] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0122] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.

[0123] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.

[0124] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A cross-region communication method, characterized in that: Implemented in a public network and a private network, the public network includes a public network node, the private network includes a private network node, and the method includes: Sending a first packet of communication data to a target public network node through the public network, wherein the first packet of communication data is the first communication data sent to the target public network node in history; Acquire, through the private network, a first communication message forwarded by a target private network node in a target area, wherein the first communication message includes header information and first communication data, and the first communication data is sent by a target public network node in the target area; Acquire second communication data, where the second communication data is used to respond to the first communication data; Determine the IP address of the target private network node in the private network from the header information; Based on the IP address of the target private network node in the private network, the second communication data is sent to the target public network node through the private network.

2. The method according to claim 1, characterized in that The sending of the first packet of communication data to the target public network node through the public network includes: Obtaining the IP address of the target public network node in the public network; Based on the IP address of the target public network node in the public network, a first packet of communication data is sent to the target public network node through the public network.

3. The method according to claim 1, characterized in that The local public network node in the local area includes at least one virtual sub-node, and the second communication data is sent by a target virtual sub-node in the local public network node; The determining the IP address of the target private network node in the private network from the header information includes: When the target virtual sub-node has the authority to use the private network, the IP address of the target private network node in the private network is determined from the header information.

4. The method according to claim 3, characterized in that The local public network node is provided with a virtual routing table; when the IP address of the target virtual sub-node in the public network is marked in the virtual routing table, the target virtual sub-node has the authority to use the private network.

5. The method according to claim 3, characterized in that: The sending the second communication data to the target public network node through the private network based on the IP address of the target private network node in the private network includes: Using the IP address of the target private network node in the private network as the destination IP address in the private network, encapsulating the second communication data to obtain a second communication message; The second communication message is forwarded to the target private network node through the private network, so that the target private network node forwards the second communication data in the second communication message to the target public network node in the public network.

6. The method according to claim 5, characterized in that The step of taking the IP address of the target private network node in the private network as the destination IP address in the private network, encapsulating the second communication data, and obtaining a second communication message includes: The IP address of the target private network node in the private network is used as the destination IP address in the private network, and the second communication data is encapsulated through a tunnel protocol to obtain a second communication message.

7. The method according to claim 5, characterized in that The forwarding the second communication message to the target private network node through the private network includes: According to the principle of geographical proximity, a local private network node corresponding to the local public network node is selected from each private network node of the private network; The second communication message is forwarded to the local private network node, so that the local private network node forwards the second communication message to the target private network node through the private network.

8. A cross-region communication device, characterized in that: Implemented in a public network and a private network, the public network includes a public network node, the private network includes a private network node, and the device includes: A second sending unit is used to send a first packet of communication data to a target public network node through the public network, where the first packet of communication data is the first communication data sent to the target public network node in history; A first acquisition unit is used to acquire, through the private network, a first communication message forwarded by a target private network node in a target area, wherein the first communication message includes header information and first communication data, and the first communication data is sent by a target public network node in the target area; A second acquiring unit is used to acquire second communication data, where the second communication data is used to respond to the first communication data; A determination unit, used to determine the IP address of the target private network node in the private network from the header information; The first sending unit is used to send the second communication data to the target public network node through the private network based on the IP address of the target private network node in the private network.

9. A computer device, characterized in that: The computer device includes one or more processors and one or more memories, wherein at least one program code is stored in the one or more memories, and the at least one program code is loaded and executed by the one or more processors to implement the operations performed by the cross-region communication method as described in any one of claims 1 to 7.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the cross-region communication method according to any one of claims 1 to 7 is implemented.

11. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the cross-region communication method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Peer-to-Peer Packet Switching

    US20130039367A1

  • Cross-region network slicing peering for 5g networks

    WO2020108772A1