Movatterモバイル変換


[0]ホーム

URL:


CN114979128B - Cross-region communication method, device and electronic equipment - Google Patents

Cross-region communication method, device and electronic equipment
Download PDF

Info

Publication number
CN114979128B
CN114979128BCN202110193667.8ACN202110193667ACN114979128BCN 114979128 BCN114979128 BCN 114979128BCN 202110193667 ACN202110193667 ACN 202110193667ACN 114979128 BCN114979128 BCN 114979128B
Authority
CN
China
Prior art keywords
private network
network node
target
communication data
public network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110193667.8A
Other languages
Chinese (zh)
Other versions
CN114979128A (en
Inventor
黎黎
曹德华
周显平
冯荣
袁伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co LtdfiledCriticalTencent Technology Shenzhen Co Ltd
Priority to CN202110193667.8ApriorityCriticalpatent/CN114979128B/en
Publication of CN114979128ApublicationCriticalpatent/CN114979128A/en
Application grantedgrantedCritical
Publication of CN114979128BpublicationCriticalpatent/CN114979128B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本申请的实施例提供了一种跨区域通信方法、装置及电子设备,实现于公有网络和专有网络,所述公有网络中包括公网节点,所述专有网络中包括专网节点。该方法包括:通过所述专有网络获取由目标区域的目标专网节点转发的第一通信报文,所述第一通信报文中包括报头信息和第一通信数据,所述第一通信数据由所述目标区域的目标公网节点发出;获取第二通信数据,所述第二通信数据用于响应所述第一通信数据;从所述报头信息中确定所述目标专网节点在所述专有网络中的IP地址;基于所述目标专网节点在所述专有网络中的IP地址,通过所述专有网络将所述第二通信数据发送给所述目标公网节点。本申请实施例的技术方案可以提高跨区域通信的稳定性。

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.

Description

Cross-region communication method and device and electronic equipment
Technical Field
The present application relates to the field of cloud technology and communication technology, and in particular, to a method and apparatus for cross-regional communication, a computer readable medium, and an electronic device.
Background
In an internet communication scenario, such as an internet communication scenario between two communication devices that are located across a region, communication is typically performed via a public network. When the problems of communication equipment such as communication outlet faults, international submarine cable faults, network congestion and the like occur, the network quality cannot be effectively ensured, the path running on the public network cannot be controlled to be an optimal path, and the delay quality cannot be controlled. Based on this, how to improve the stability of the cross-region communication is a technical problem to be solved.
Disclosure of Invention
Embodiments of the present application provide a cross-region communication method, apparatus, computer program product or computer program, computer readable medium, and electronic device, so that stability of cross-region communication can be improved at least to some extent.
Other features and advantages of the application will be apparent from the following detailed description, or may be learned by the practice of the application.
According to one aspect of the embodiment of the application, a cross-regional communication method is provided, which is implemented in a public network and a private network, wherein the public network comprises public network nodes, the private network comprises private network nodes, the method comprises the steps of acquiring a first communication message forwarded by a target private network node of a target region through the private network, wherein the first communication message comprises header information and first communication data, the first communication data is sent by the target public network node of the target region, acquiring second communication data, the second communication data is used for responding to the first communication data, determining an IP address of the target private network node in the private network from the header information, and transmitting 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.
According to one aspect of the embodiment of the application, a cross-regional communication device is provided, which is implemented in a public network and a private network, wherein the public network comprises a public network node, the private network comprises a private network node, the device comprises a first acquisition unit, a second acquisition unit and a determination unit, the first acquisition unit is used for acquiring a first communication message forwarded by a target private network node of a target region through the private network, the first communication message comprises header information and first communication data, the first communication data is sent by the target public network node of the target region, the second acquisition unit is used for acquiring second communication data, the second communication data is used for responding to the first communication data, the determination unit is used for determining an IP address of the target private network node in the private network from the header information, and the first transmission unit is used for transmitting 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.
In some embodiments of the present application, based on the foregoing, the apparatus further includes a third obtaining unit configured to obtain, before obtaining, through the private network, a first communication packet forwarded by a target private network node of a target area, an IP address of the target public network node in the public network, and a second sending unit configured to send, through the public network, first packet communication data to the target public network node based on the IP address of the target public network node in the public network, the first packet communication data being first communication data historically sent to the target public network node.
In some embodiments of the present application, based on the foregoing, the apparatus further includes a fourth obtaining unit configured to obtain an IP address of a predefined private network node in the private network, which is predefined, before obtaining, through the private network, a first communication packet forwarded by a target private network node of a target area, and a third sending unit configured to send, through the private network, first packet communication data to the target public network node, which is first communication data historically sent to the target public network node, based on the IP address of the predefined private network node in the private network.
In some embodiments of the application, based on the foregoing, the local public network node of the local area includes at least one virtual sub-node, the second communication data is sent by a target virtual sub-node in the local public network node, and the determining unit is configured to determine, when the target virtual sub-node has a right to use the private network, an IP address of the target private network node in the private network from the header information.
In some embodiments of the present application, based on the foregoing solution, the local public network node is provided with a virtual routing table, and when the IP address of the target virtual child node in the public network is marked in the virtual routing table, the target virtual child node has a right to use the private network.
In some embodiments of the present application, based on the foregoing solutions, the first sending unit includes an encapsulation unit, configured to encapsulate the second communication data with an IP address of the target private network node in the private network as a destination IP address in the private network, to obtain a second communication packet, and a forwarding unit, configured to forward the second communication packet 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 packet to a target public network node in the public network.
In some embodiments of the present application, based on the foregoing solution, the encapsulating unit is configured to encapsulate the second communication data by using an IP address of the target private network node in the private network as a destination IP address in the private network, so as to obtain a second communication packet.
In some embodiments of the present application, based on the foregoing solution, the forwarding unit is configured to select, according to a principle of proximity in a geographic location, a local private network node corresponding to the local public network node from among the private network nodes of the private network, and forward the second communication packet to the local private network node, so that the local private network node forwards the second communication packet to the target private network node through the private network.
According to an aspect of embodiments of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions so that the computer device performs the cross-region communication method described in the above embodiment.
According to an aspect of the embodiments of the present application, there is provided a computer readable medium having stored thereon a computer program which, when executed by a processor, implements a trans-regional communication method as described in the above embodiments.
According to an aspect of an embodiment of the present application, there is provided an electronic device including one or more processors, and storage means for storing one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the cross-region communication method as described in the above embodiment.
In some embodiments of the present application, after a target public network node in a target area sends out first communication data, a first communication packet including header information and the first communication data, which is forwarded by a target private network node in a private network in the target area, is first obtained, then an IP address of the target private network node in the private network is determined from the header information, and second communication data for responding 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.
Because 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 for responding 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 the cross-regional communication are transmitted on the private network, the quality of the cross-regional communication is not influenced by the low stability defect of the public network, and the stability of the cross-regional communication is improved. And inter-regional communication is performed through the private network, so that a non-optimal delay communication path in the public network is avoided, and the time efficiency of the inter-regional communication is accelerated.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. It is evident that the drawings in the following description are only some embodiments of the present application and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art. In the drawings:
FIG. 1 shows a schematic diagram of an exemplary system architecture to which the technical solution of an embodiment of the application may be applied;
FIG. 2 illustrates a flow chart of a method of cross-regional communication according to one embodiment of the application;
FIG. 3 illustrates an example simulation of cross-zone communication in accordance with one embodiment of the present application;
FIG. 4 illustrates a method flow diagram before acquiring, via the private network, a first communication packet forwarded by a target private network node of a target area in accordance with one embodiment of the application;
FIG. 5 illustrates an example simulation of cross-zone communication in accordance with one embodiment of the present application;
FIG. 6 illustrates a method flow diagram before acquiring, via the private network, a first communication packet forwarded by a target private network node of a target area in accordance with one embodiment of the application;
FIG. 7 illustrates an exemplary simulation of cross-zone communication in accordance with one embodiment of the present application;
FIG. 8 is a detailed flow diagram of transmitting the second communication data to the target public network node over the private network according to one embodiment of the application;
fig. 9 is a detailed flow diagram illustrating forwarding of the second communication message to the target private network node over the private network according to one embodiment of the present application;
FIG. 10 illustrates a block diagram of a cross-regional communication device in accordance with one embodiment of the present application;
fig. 11 shows a schematic diagram of a computer system suitable for use in implementing an embodiment of the application.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be embodied in many different forms and should not be construed as limited to the examples set forth herein, but rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the application may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the application.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
It should be noted that the term "plurality" as used herein means two or more. "and/or" describes the association relationship of the association object, and indicates that there may be three relationships, for example, a and/or B may indicate that there are three cases of a alone, a and B together, and B alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and in the above-described figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the objects so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in other sequences than those illustrated or otherwise described.
Fig. 1 shows a schematic diagram of an exemplary system architecture to which the technical solution of an embodiment of the present application may be applied.
As shown in fig. 1, the system architecture may include a terminal device (such as one or more of the smart phone 101, tablet 102, and portable computer 103 shown in fig. 1, but may also be other terminal devices with positioning functions), a network 104, and a server 105. The network 104 is the medium used to provide communication links between the terminal devices and the server 105. The network 104 may include various connection types, such as wired communication links, wireless communication links, and the like.
In one embodiment of the present application, communication between the server 105 and the terminal device may be performed, where the server 105 and the terminal device are respectively located in different areas, for example, in different countries, and the server 105 and the terminal device may be regarded as two nodes in a public network, and the server 105 and the terminal device both have IP addresses in the public network. Specifically, the server 105 may obtain, through a private network, a first communication packet forwarded by a target private network node in a target area, where the first communication packet includes header information and first communication data, where 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 determine, from the header information, an IP address of the target private network node in the private network, and send, through the private network, the second communication data to the terminal device based on the IP address of the target private network node in the private network.
It should be noted that, the cross-regional communication method provided in the embodiment of the present application may be executed by the server 105, and accordingly, the cross-regional communication device is generally disposed in the server 105. However, in other embodiments of the present application, the terminal device may also have a similar function as the server, so as to execute the cross-regional communication scheme provided by the embodiments of the present application.
It should also be noted that the number of terminal devices, networks and servers in fig. 1 is merely illustrative, wherein the networks may include proprietary networks and public networks. According to the implementation requirement, the server can be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, and can also be a cloud server for providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligent platforms and the like. The terminal may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto, and the present application is not limited thereto.
It should be explained that cloud computing (closed computing) as described above is a computing mode that distributes computing tasks over a resource pool formed by a large number of computers, enabling various application systems to acquire computing power, storage space, and information services as needed. The network that provides the resources is referred to as the "cloud". Resources in the cloud can be infinitely expanded in the sense of users, can be acquired at any time, can be used as required and can be expanded at any time. By establishing a cloud computing resource pool (cloud platform for short, generally called IaaS (Infrastructure AS A SERVICE) platform), multiple types of virtual resources are deployed in the resource pool for external clients to select for use.
The implementation details of the technical scheme of the embodiment of the application are described in detail below:
Fig. 2 shows a flow chart of a cross-region communication method according to an embodiment of the application, which can be performed by a device having a computing processing function and a communication function, such as the server 105 shown in fig. 1.
In addition, the cross-regional communication method may be implemented in a public network and a private network, where the public network includes a public network node, and the private network includes a private network node, as shown in fig. 2, and the cross-regional communication method includes at least steps 220 to 280, which are described in detail below:
In step 220, a first communication packet forwarded by a target private network node in a target area is acquired through the private network, where the first communication packet 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 private network is a private network, and comprises a plurality of private network nodes, wherein the private network nodes are connected with the private network nodes through private lines, each private network node is distributed with a private IP address in the private network, and the private network only allows legal nodes to access, so that the safety, the high efficiency and the integrity of the transmission of communication data in the private network are ensured.
The public network is a network for all users, namely the Internet, in the public network, a large number of public network nodes are included, any two public network nodes can communicate through the public network, and two public network nodes crossing regions communicate, for example, the two public network nodes crossing the country need to be forwarded through multiple layers of routes, so that communication data can be transferred.
In the present application, after the target public network node of the target area sends out in the communication process of the two inter-regional public network nodes, a private network node in a private network, that is, a target private network node, may be selected in the target area according to the proximity principle, and the first communication data is forwarded to the target private network node, where the target private network node forwards the first communication data to a local public network node (for example, a server 105 shown in fig. 1) of the local area through the private network. 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 packet including header information and the first communication data, where an IP address of the target private network node in the private network is recorded in the header information.
In step 240, second communication data is acquired, the second communication data being used to respond to the first communication data.
After the local public network node acquires the first communication data, the user responds to the first communication data, and sends out second communication data through the local public network node, so that the local public network node acquires the second communication data.
In step 260, the IP address of the target private network node in the private network is determined from the header information.
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 and obtained by learning the header information.
In step 280, the second communication data is sent to the target public network node over the private network based on the IP address of the target private network node in the private network.
The following will describe in detail the technical solution of the embodiment of the present application by taking a scenario of cross-country communication as an example with reference to fig. 3:
referring to fig. 3, an exemplary simulation of cross-zone communication is shown in accordance with one embodiment of the present application.
In the cross-country communication scenario 300, a proprietary network 302 and a public network 304 are included. The private network 302 includes a chinese private network node, a french private network node, a us private network node, and a japan 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 is understood that the french private network node and the french public network node both belong to the french area, and the chinese private network node and the chinese public network node both belong to the chinese area.
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).
In a specific example, the french public network node 301 sends out the first communication data S1, forwards the first communication message including the first communication data through the french private network node in the private network 302, the french public network node obtains the first communication data from the private network through the private network, learns to obtain the IP address information of the french private network node in the private network 302 according to the header information in the first communication message, and then forwards the second communication data for responding 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.
It should be noted that, the communication data provided by the present application may 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 may be audio or video data, game data, or the like.
In one embodiment of the present application, the steps shown in fig. 4 may also be performed before the first communication packet forwarded by the target private network node of the target area is acquired through the private network in step 220.
Referring to fig. 4, a flow chart of a method according to one embodiment of the application is shown prior to acquiring a first communication packet forwarded by a target private network node of a target area over the private network. Specifically, steps 211 to 212 are included:
In step 211, the IP address of the target public network node in the public network is obtained.
In step 212, first packet communication data is sent 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, where the first packet communication data is first communication data sent to the target public network node historically.
In this embodiment, the first packet of communication data refers to the first historical piece of communication data sent by the local public network node to the target public network node as the data initiator. Since the IP address of the target private network node in the private network, which is close to the target public network node, is not known before the first communication data, which is historically sent to the target public network node, the first packet of communication data cannot be forwarded to the target public network node directly through the target private network node. Based on this, the first packet communication data may be sent to the target public network node over a public network.
The target private network node close to the target public network node refers to a target private network node close to the target public network node in a geographic distance.
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, which is close to the target public network node itself, may also be sent to the target public network node, so that in a subsequent process, the target private network node may send the first packet of 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 the first packet of communication data to the local public network node.
The following describes in detail the technical solution of the present embodiment, taking a scenario of cross-country communication as an example:
Referring to fig. 5, an exemplary simulation of cross-zone communication is shown in accordance with one embodiment of the present application.
In the cross-country communication scenario 500, the IP address of the french public network node in the public network may be obtained by the french public network node 303 according to the link of the french public network node 301 through DNS resolution, the french public network node 303 sends the first packet communication data S0 to the french public network node 301 through the public network 304 according to the IP address, for example, initiates a video call, and the french public network node 301 forwards the first communication data S1 for responding to the first packet communication data S0 to the french public network node 303 through the french private network node in the private network 302.
In another embodiment of the present application, the steps shown in fig. 6 may also be performed before the first communication packet forwarded by the target private network node of the target area is acquired through the private network in step 220.
Referring to fig. 6, a flow chart of a method of obtaining a first communication packet forwarded by a target private network node of a target area over the private network is shown in accordance with one embodiment of the present application. Specifically, the method comprises the steps 213 to 214:
In step 213, the IP address of the predefined private network node in the private network is obtained.
In step 214, first packet communication data is sent 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, the first packet communication data being the first communication data sent to the target public network node historically.
In this embodiment, if a private network node that is geographically close to a target public network node, that is, a predefined private network node that is predefined, is already known in advance, an IP address of the predefined private network node in the private network may be directly obtained, and based on the IP address of the predefined private network node in the private network, first packet communication data may be sent to the target public network node through the private network.
The following describes in detail the technical solution of the present embodiment, taking a scenario of cross-country communication as an example:
Referring to fig. 7, an exemplary simulation of cross-zone communication is shown in accordance with one embodiment of the present application.
In the cross-country communication scenario 700, the first communication data S00 may be sent out by the chinese public network node 303 to the french public network node 301 via the private network 302 according to an IP address of a predefined private network node (i.e. a target private network node) in the private network, whereupon the french public network node 301 forwards the first communication data S1 for responding to the first communication data S00 to the chinese public network node 303 via the french private network node in the private network 302.
In one embodiment of the present application, the local public network node of the local area may include at least one virtual child node, and the second communication data is sent by a target virtual child node in the local public network node.
In this embodiment, if the local public network node is a cloud server, at least one virtual server, that is, a virtual child node, may be in the cloud server. Each virtual child node in the local public network node corresponds to an IP address in the public network.
In this implementation, when the target virtual child node has a right to use the private network, an IP address of the target private network node in the private network is determined from the header information.
Further, the local public network node may be provided with a virtual routing table, where the target virtual sub-node has a right to use the private network when the virtual routing table is marked with an IP address of the target virtual sub-node in the public network.
The proprietary network only allows legal nodes to access because of the high efficiency and integrity for ensuring the security of the communication data transmission in the proprietary network. Therefore, in the application, the IP address of the target virtual sub-node in the public network is recorded through the virtual routing table arranged on the local public network node, so that the validity of the target virtual sub-node can be identified, and the target virtual sub-node is further proved to have the authority to use the private network.
In one embodiment of the present application, the 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 according to the steps shown in fig. 8.
Referring to fig. 8, a detailed flow diagram of transmitting the second communication data to the target public network node over the private network is shown, according to one embodiment of the application. Specifically, steps 281 to 282 are included:
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, so as to obtain a second communication message.
In step 282, the second communication packet 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 packet to the target public network node in the public network.
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 is encapsulated by using a tunneling protocol, so as to obtain a second communication packet.
In the present application, the tunneling protocol may be a generic routing encapsulation (GRE (Generic Routing Encapsulation)) that encapsulates datagrams of certain network layer protocols, enabling these encapsulated datagrams to be transported in another network layer protocol (e.g., IP).
In this embodiment, step 282 of forwarding the second communication packet to the target private network node through the private network may be performed according to the steps shown in fig. 9:
Referring to fig. 9, a detailed flow diagram of forwarding the second communication message to the target private network node over the private network according to one embodiment of the application is shown. Specifically, the method comprises the steps 2821 to 2822:
In step 2821, a local private network node corresponding to the local public network node is selected from the private network nodes of the private network according to the geographical proximity principle.
In step 2822, the second communication packet is forwarded to the local private network node, so that the local private network node forwards the second communication packet to the target private network node through the private network.
In the application, the local private network node corresponding to the local public network node is the local private network node similar to the local public network node in geographic distance.
The selection of the local private network node corresponding to the local public network node among the private network nodes of the private network may be implemented based on an Anycast technology, where the Anycast technology refers to that when a unicast address is allocated to more than one interface, a message to be sent is routed by the network to a "closest" target interface measured by a routing protocol, that is, the local private network node in this embodiment.
The Anycast allows the source node to send datagrams to one of a set of destination nodes, which is transparent to the source node, and the routing system selects the "nearest" node to provide service to the source node, thereby providing better service to the source node to a certain extent and also reducing network load.
In the 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, thereby ensuring that the communication data can be transmitted to the private network node nearest to the target public network node through the private network.
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 the second communication data for responding 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, so that the communication data of the cross-regional communication are all transmitted on the private network, and the quality of the cross-regional communication is no longer affected by the low stability defect of the public network, thereby improving the stability of the cross-regional communication. And inter-regional communication is performed through the private network, so that a non-optimal delay communication path in the public network is avoided, and the time efficiency of the inter-regional communication is accelerated.
The following describes an embodiment of the apparatus of the present application that may be used to perform the cross-region communication method of the above embodiment of the present application. For details not disclosed in the embodiments of the apparatus of the present application, please refer to the above-mentioned embodiment of the cross-regional communication method of the present application.
Fig. 10 shows a block diagram of a cross-regional communication apparatus according to one embodiment of the application.
Referring to fig. 10, a cross-regional communication apparatus 1000 according to an embodiment of the present application is implemented in a public network including a public network node and a private network including a private network node, and includes a first acquiring unit 1001, a second acquiring unit 1002, a determining unit 1003, and a first transmitting unit 1004.
The private network node comprises a first obtaining unit 1001, a second obtaining unit 1002, a determining unit 1003 and a first sending unit 1004, wherein the first obtaining unit 1001 is used for obtaining a first communication message forwarded by a target private network node of a target area through the private network, the first communication message comprises header information and first communication data, the first communication data is sent by the target public network node of the target area, the second obtaining unit 1002 is used for obtaining second communication data, the second communication data is used for responding to the first communication data, the determining unit 1003 is used for determining an IP address of the target private network node in the private network from the header information, and the first sending unit 1004 is used for 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.
In some embodiments of the present application, based on the foregoing, the apparatus further includes a third obtaining unit configured to obtain, before obtaining, through the private network, a first communication packet forwarded by a target private network node of a target area, an IP address of the target public network node in the public network, and a second sending unit configured to send, through the public network, first packet communication data to the target public network node based on the IP address of the target public network node in the public network, the first packet communication data being first communication data historically sent to the target public network node.
In some embodiments of the present application, based on the foregoing, the apparatus further includes a fourth obtaining unit configured to obtain an IP address of a predefined private network node in the private network, which is predefined, before obtaining, through the private network, a first communication packet forwarded by a target private network node of a target area, and a third sending unit configured to send, through the private network, first packet communication data to the target public network node, which is first communication data historically sent to the target public network node, based on the IP address of the predefined private network node in the private network.
In some embodiments of the application, based on the foregoing, the local public network node of the local area includes at least one virtual sub-node, the second communication data is sent by a target virtual sub-node in the local public network node, and the determining unit 1003 is configured to determine, when the target virtual sub-node has a right to use the private network, an IP address of the target private network node in the private network from the header information.
In some embodiments of the present application, based on the foregoing solution, the local public network node is provided with a virtual routing table, and when the IP address of the target virtual child node in the public network is marked in the virtual routing table, the target virtual child node has a right to use the private network.
In some embodiments of the present application, based on the foregoing solution, the first sending unit 1004 includes an encapsulation unit, configured to encapsulate the second communication data with an IP address of the target private network node in the private network as a destination IP address in the private network, to obtain a second communication packet, and a forwarding unit, configured to forward the second communication packet 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 packet to a target public network node in the public network.
In some embodiments of the present application, based on the foregoing solution, the encapsulating unit is configured to encapsulate the second communication data by using an IP address of the target private network node in the private network as a destination IP address in the private network, so as to obtain a second communication packet.
In some embodiments of the present application, based on the foregoing solution, the forwarding unit is configured to select, according to a principle of proximity in a geographic location, a local private network node corresponding to the local public network node from among the private network nodes of the private network, and forward the second communication packet to the local private network node, so that the local private network node forwards the second communication packet to the target private network node through the private network.
Fig. 11 shows a schematic diagram of a computer system suitable for use in implementing an embodiment of the application.
It should be noted that, the computer system 1100 of the electronic device shown in fig. 11 is only an example, and should not impose any limitation on the functions and the application scope of the embodiments of the present application.
As shown in fig. 11, the computer system 1100 includes a central processing unit (Central Processing Unit, CPU) 1101 that can perform various appropriate actions and processes, such as performing the methods described in the above embodiments, according to a program stored in a Read-Only Memory (ROM) 1102 or a program loaded from a storage section 1108 into a random access Memory (Random Access Memory, RAM) 1103. In the RAM 1103, various programs and data required for system operation are also stored. The CPU 1101, ROM 1102, and RAM 1103 are connected to each other by a bus 1104. An Input/Output (I/O) interface 1105 is also connected to bus 1104.
Connected to the I/O interface 1105 are an input section 1106 including a keyboard, a mouse, and the like, an output section 1107 including a Cathode Ray Tube (CRT), a Liquid crystal display (Liquid CRYSTAL DISPLAY, LCD), and the like, and a speaker, and the like, a storage section 1108 including a hard disk, and the like, and a communication section 1109 including a network interface card such as a LAN (Local Area Network) card, a modem, and the like. The communication section 1109 performs communication processing via a network such as the internet. The drive 1110 is also connected to the I/O interface 1105 as needed. Removable media 1111, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is installed as needed on drive 1110, so that a computer program read therefrom is installed as needed into storage section 1108.
In particular, according to embodiments of the present application, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network via the communication portion 1109, and/or installed from the removable media 1111. When executed by a Central Processing Unit (CPU) 1101, performs the various functions defined in the system of the present application.
It should be noted that, the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of a computer-readable storage medium may include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-Only Memory (ROM), an erasable programmable read-Only Memory (Erasable Programmable Read Only Memory, EPROM), a flash Memory, an optical fiber, a portable compact disc read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Where each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present application may be implemented by software, or may be implemented by hardware, and the described units may also be provided in a processor. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
As another aspect, the present application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions so that the computer device performs the cross-region communication method described in the above embodiment.
As another aspect, the present application also provides a computer-readable medium that may be included in the electronic device described in the above embodiment, or may exist alone without being incorporated into the electronic device. The computer readable medium carries one or more programs which, when executed by one of the electronic devices, cause the electronic devices to implement the cross-region communication method described in the above embodiments.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the application. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, a touch terminal, or a network device, etc.) to perform the method according to the embodiments of the present application.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (11)

CN202110193667.8A2021-02-202021-02-20 Cross-region communication method, device and electronic equipmentActiveCN114979128B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110193667.8ACN114979128B (en)2021-02-202021-02-20 Cross-region communication method, device and electronic equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110193667.8ACN114979128B (en)2021-02-202021-02-20 Cross-region communication method, device and electronic equipment

Publications (2)

Publication NumberPublication Date
CN114979128A CN114979128A (en)2022-08-30
CN114979128Btrue CN114979128B (en)2025-03-25

Family

ID=82954595

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110193667.8AActiveCN114979128B (en)2021-02-202021-02-20 Cross-region communication method, device and electronic equipment

Country Status (1)

CountryLink
CN (1)CN114979128B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116915867A (en)*2023-09-132023-10-20北京嗨飞科技有限公司Network data transmission method, device and system

Citations (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2020108772A1 (en)*2018-11-302020-06-04Huawei Technologies Co., Ltd.Cross-region network slicing peering for 5g networks

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20130039367A1 (en)*2011-08-122013-02-14Telefonaktiebolaget L M Ericsson (Publ)Peer-to-Peer Packet Switching
CN110661711B (en)*2018-06-292021-01-29华为技术有限公司 Method for generating label forwarding table, message sending method, device and device
CN111314461B (en)*2020-02-142022-05-17北京百度网讯科技有限公司 IP mounting, data processing method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2020108772A1 (en)*2018-11-302020-06-04Huawei Technologies Co., Ltd.Cross-region network slicing peering for 5g networks

Also Published As

Publication numberPublication date
CN114979128A (en)2022-08-30

Similar Documents

PublicationPublication DateTitle
CN109981765B (en)Method and apparatus for determining access path of content distribution network
CN109729040B (en)Method, apparatus and computer readable medium for selection of a protocol
CN109032760A (en)Method and apparatus for application deployment
CN111629030B (en) Communication processing method, device, medium and equipment based on edge computing platform
CN107615716A (en) Multitenant-aware Dynamic Host Configuration Protocol (DHCP) mechanism for cloud networking
US11177974B2 (en)Consistent provision of member node group information on virtual overlay network
CN110177047B (en)Message sending method, device, electronic equipment and computer readable storage medium
CN110896411B (en) A business processing method and related equipment
US20230216895A1 (en)Network-based media processing (nbmp) workflow management through 5g framework for live uplink streaming (flus) control
EP3740869B1 (en)Automated distribution of models for execution on a non-edge device and an edge device
CN110996372A (en)Message routing method, device and system and electronic equipment
CN114979128B (en) Cross-region communication method, device and electronic equipment
CN112015383B (en) A login method and device
CN112152879B (en)Network quality determination method, device, electronic equipment and readable storage medium
CN112929453A (en)Method and device for sharing session data
US10143022B2 (en)Dynamic generation of geographically bound MANET IDs
CN110278133B (en)Checking method, device, computing equipment and medium executed by server
CN115604261A (en) Cloud network service resource processing method, device, equipment and storage medium
CN105812434B (en) Service chain control method and device after virtualization of user's handheld device
CN116264538A (en) Data processing method, device, equipment and computer storage medium
CN118170494B (en) A development environment configuration method, device, electronic device and storage medium based on K8S
US12177123B1 (en)Routing ingress traffic for logically isolated networks destined for IP blocks without any network address translation
CN115242754B (en)Information return method, request response method, message sending method and device
CN114640555B (en)Information processing method, virtual machine cluster and system
CN120710924A (en) Data return method, device, electronic device and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp