CN114024886B - Cross-resource-pool network intercommunication method, electronic equipment and readable storage medium - Google Patents

Cross-resource-pool network intercommunication method, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN114024886B
CN114024886B CN202111244343.9A CN202111244343A CN114024886B CN 114024886 B CN114024886 B CN 114024886B CN 202111244343 A CN202111244343 A CN 202111244343A CN 114024886 B CN114024886 B CN 114024886B
Authority
CN
China
Prior art keywords
network
resource pool
route
peer
information
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
CN202111244343.9A
Other languages
Chinese (zh)
Other versions
CN114024886A (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.)
Jinan Inspur Data Technology Co Ltd
Original Assignee
Jinan Inspur Data Technology 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 Jinan Inspur Data Technology Co Ltd filed Critical Jinan Inspur Data Technology Co Ltd
Priority to CN202111244343.9A priority Critical patent/CN114024886B/en
Publication of CN114024886A publication Critical patent/CN114024886A/en
Application granted granted Critical
Publication of CN114024886B publication Critical patent/CN114024886B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/741Routing in networks with a plurality of addressing schemes, e.g. with both IPv4 and IPv6

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention relates to a network intercommunication method across resource pools, electronic equipment and a readable storage medium, wherein the method comprises the following steps: acquiring a request for establishing peer-to-peer connection between a first network in a first resource pool and a second network in a second resource pool; searching a first shared service subnet and a first route in a first resource pool according to the request; when the first shared service sub-network and the first route exist, third network information is acquired, and peer-to-peer connection is established with the second resource pool according to the third network information, the first route and fourth network information of the pre-acquired management network of the first resource pool in the cloud platform management network; and establishing network interworking between the first network and the second network with the second resource pool according to the first network information, the peer-to-peer connection and the second network information. By the mode, occupation of system resources is avoided, and communication efficiency is improved.

Description

Cross-resource-pool network intercommunication method, electronic equipment and readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a network intercommunication method across resource pools, electronic equipment and a readable storage medium.
Background
As a management system for multi-cloud manufacturers and heterogeneous cloud platforms, the cloud management platform is increasingly widely applied to the market. In a user scene of high actual multi-node large data volume service interaction frequency, multiple sets of resource pools are commonly managed, and as tenant networks of different resource pools are isolated, even multiple networks of the same tenant under different resource pools are not communicated, how to open tenant private networks among different resource pools, and realize network communication of different tenants become the technical problem to be solved at present.
In the prior art, aiming at the problems, the floating IP or a virtual private network (Virtual Private Network, VPN for short) is mainly adopted, but the floating IP needs a network card to bind one IP, and the cost for consuming floating IP resources is excessive, so that the condition of insufficient floating IP is likely to be caused; while VPN has the capability of connecting two sub-networks of the resource pool, in the mode of switching the network to OVN (OVS upgrade, OVS is open stack), VPN has a certain technical defect, and the tunneling communication efficiency of VPN is usually not high.
Disclosure of Invention
The application provides a network intercommunication method, electronic equipment and a readable storage medium for crossing resource pools, which are used for solving the technical problem that network intercommunication across the resource pools is difficult to realize under the condition that a large amount of IP resources are not occupied and communication efficiency is not reduced in the prior art.
In a first aspect, the present application provides a method for interworking across resource pools, the method being performed by a first resource pool server, the method comprising:
acquiring a request for establishing peer-to-peer connection between a first network in a first resource pool and a second network in a second resource pool, wherein the request comprises first network information corresponding to the first network and second network information corresponding to the second network;
searching a first shared service subnet and a first route in a first resource pool according to the request;
when the first shared service sub-network and the first route exist, third network information is acquired, and peer-to-peer connection is established with the second resource pool according to the third network information, the first route and fourth network information of the pre-acquired management network of the first resource pool in the cloud platform management network;
and establishing network interworking between the first network and the second network with the second resource pool according to the first network information, the peer-to-peer connection and the second network information.
In a second aspect, the present application provides a network interworking device across a resource pool, the device comprising:
the acquisition unit is used for acquiring a request for establishing peer-to-peer connection between a first network in the first resource pool and a second network in the second resource pool, wherein the request comprises first network information corresponding to the first network and second network information corresponding to the second network;
The searching unit is used for searching the first shared service subnet and the first route in the first resource pool according to the request;
the acquisition unit is further used for acquiring third network information when the first shared service subnet and the first route exist;
the creating unit is used for establishing peer-to-peer connection with the second resource pool according to the third network information, the first route and the fourth network information of the management network of the pre-acquired first resource pool in the cloud platform management network;
and establishing network interworking between the first network and the second network with the second resource pool according to the first network information, the peer-to-peer connection and the second network information.
In a third aspect, an electronic device is provided, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor, configured to implement the steps of the method for interworking across a resource pool according to any of the embodiments of the first aspect when executing a program stored on a memory.
In a fourth aspect, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of a method of interworking networks across a resource pool as in any of the embodiments of the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
the method provided by the embodiment of the application obtains a request for establishing peer-to-peer connection between a first network in a first resource pool and a second network in a second resource pool. And acquiring third network information corresponding to the first shared service sub-network after the first shared service sub-network is found according to the request. After the first route is found, establishing peer-to-peer connection with the second resource pool based on the third network information, the first route and fourth network information of the management network of the pre-acquired first resource pool in the cloud platform management network. And according to the three-network information and the fourth network information, the communication between the first shared service subnet and the cloud platform management network is realized. In practice, the same or similar operations are performed on the opposite second resource pool to enable communication between the second shared services subnet in the second resource pool and the cloud platform management network. By the method, the communication between the first shared service subnet and the second shared service subnet can be realized, namely the peer-to-peer connection is realized. Then, network interworking between the first network and the second network is created with the second resource pool based on the first network information, the peer-to-peer connection, and the second network information. By the method, a large amount of floating IP resources are not required to be occupied, so that the problem that the cost of the large amount of floating IP resources is excessive can be avoided, and the condition that floating IP is insufficient is not caused. In addition, the scheme can support the network in OVN mode, and the communication efficiency is obviously improved compared with the tunneling communication efficiency of VPN.
Drawings
Fig. 1 is a schematic flow chart of a network interworking method across resource pools according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of another method for interworking across resource pools according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of another method for interworking across resource pools according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart of another method for interworking across resource pools according to an embodiment of the present invention;
FIG. 5 is a block diagram of the overall flow of a method for interworking across resource pools provided by the present invention;
fig. 6 is a schematic structural diagram of a network interworking device across a resource pool according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
For the purpose of facilitating an understanding of the embodiments of the present invention, reference will now be made to the following description of specific embodiments, taken in conjunction with the accompanying drawings, which are not intended to limit the embodiments of the invention.
Before introducing the flow of the network interworking method across resource pools in the embodiment of the present invention, a system architecture related in the embodiment of the present invention is first described, and an example of establishing interworking between private networks of users in two resource pools is described, where the system may include a first resource pool, a second resource pool, and a cloud platform management network. The first resource pool has a management network segment in the cloud platform, and the second resource pool also has a management network segment in the cloud platform. Namely, the first resource pool and the second resource pool can take the cloud platform as a basis for establishing peer-to-peer connection, and the peer-to-peer connection is realized through a cloud platform management network. Specific procedures are referred to in the description of the corresponding method embodiments and will not be described here too much.
The first resource pool and the second resource pool perform substantially the same or similar working principle when cooperatively creating a network interworking between a first network (user private network a) in the first resource pool and a second network (user private network B) in the second resource pool. Therefore, in the embodiment of the present application, the detailed description is focused on the operation steps performed by the first resource pool as an example, and the method steps performed by the second resource pool side are only briefly described for better explanation. Specific details of the implementation may refer to the operation steps performed by the first resource pool, and when the steps performed by the server in the second resource pool are slightly different from the steps performed on the server in the first resource pool, a detailed explanation is made herein.
And the different private networks of the users are communicated, which can be the communication between the different private networks of the same user or the communication between the different private networks of different users. The private network of the same user can be communicated with a plurality of different private networks of other users, and the private networks of the same user can be communicated. Examples of methods corresponding to specific application scenarios will be described in detail below.
First, the establishment of interworking between two private networks (two private networks of the same user may be in different resource pools, or respective private networks of different users in different resource pools, etc.) will be described as an example, and specific reference will be made below.
Fig. 1 is a schematic flow chart of a network interworking method across resource pools according to an embodiment of the present invention, where the method includes the steps of:
step 110, a request to create a peer-to-peer connection between a first network in a first resource pool and a second network in a second resource pool is obtained.
Specifically, the request for establishing the peer-to-peer connection between the first network and the second network may be generated according to a control instruction sent by the user, or may be obtained in another form. Before generating the request, the user designates a first network in the private cloud of the first resource pool and a second network in the private cloud of the second resource pool in advance, and triggers the first network and the second network to establish peer-to-peer connection, so that an equal connection request is generated, and the request carries first network information corresponding to the first network and second network information corresponding to the second network. The network information includes, but is not limited to, first network information and second network information, and any network information mentioned below may refer to identification information corresponding to a corresponding network, and the server may obtain corresponding website information according to the identification information. Alternatively, the network information directly refers to website information, such as an IP address. In this application, IP addresses are used as examples.
Step 120, according to the request, searching the first shared service subnet and the first route in the first resource pool.
And 130, when the first shared service sub-network and the first route exist, acquiring third network information, and establishing peer-to-peer connection with the second resource pool according to the third network information, the first route and fourth network information of the management network of the pre-acquired first resource pool in the cloud platform management network.
Two resource pool management networks are the basis for private network interworking, so that the service network between the first resource pool and the second resource pool needs to be opened first. And the service network between the first resource pool and the second resource pool is opened, the shared service sub-network and the route are needed to be used.
Taking one side of the first resource pool as an example, the server in the first resource pool searches whether a first shared service subnet and a first route exist in the private cloud of the first resource pool according to the request.
And when the first shared service sub-network exists, acquiring third network information corresponding to the first shared service sub-network. When it is determined that the first route also exists, a communication connection is established between the management network of the first resource pool in the cloud platform management network and the third network information through the first route.
Similarly, when the second resource pool receives the request, the second shared service subnet and the third route (the second route is already present in the second resource pool, and is defined as the third route for distinguishing the second shared service subnet from the second shared service subnet) are searched, and when it is determined that the second shared service subnet exists, network information (fifth network information described in the present application, and for convenience of explanation, the fifth network information is also defined and described herein) corresponding to the second shared service subnet is acquired. And when it is determined that the third route exists, establishing communication connection between the fifth network information and the management network of the second resource pool in the platform management network (for example, the network information of the management network in the second resource pool in the cloud platform is sixth network information, and then communication connection can be established through the fifth network information and the sixth network information) through the third route.
In particular, as described in the beginning of the specific embodiment, in the cloud platform management network, the management network of the first resource pool and the management network of the second resource pool may implement network interworking. The cloud platform is used as a basis for establishing peer-to-peer connection, so that network connection between the first shared service subnet and the cloud platform can be realized through the first route by utilizing the third network information and the fourth network information, and network connection between the second shared service subnet and the platform can be established through the third route by utilizing the fifth network information and the sixth network information. Thereby, a communication connection between the first shared traffic sub-network and the second shared traffic sub-network may be achieved, i.e. a peer-to-peer connection between the first resource pool and the second resource pool is established.
Of course, if the server in the first resource pool does not find the first shared service subnet and/or the first route in the resource pool according to the request, or if the server in the second resource pool does not find the second shared service subnet and/or the third route according to the request, the corresponding service subnet and/or route is created first.
The existing route and/or shared service sub-network is directly used to ensure that the resources can be reused, avoid unnecessary resource waste and cause excessive occupation of storage space.
And step 140, establishing network interworking between the first network and the second network with the second resource pool according to the first network information, the peer-to-peer connection and the second network information.
Specifically, on the basis that the peer-to-peer connection is established between the first resource pool and the second resource pool, only the communication connection between the first network and the first shared service subnet is established according to the first network information and the third network information; and establishing communication connection between the second network and the second shared service sub-network according to the second network information and the fifth network information, namely realizing network intercommunication between the first network and the second network.
Specifically, a communication connection between the first network and the first shared service sub-network is established, the server in the first resource pool adds third network information into the second route to realize the communication connection between the first network and the first shared service sub-network, and the server in the second resource pool adds fifth network information into the fourth route to realize the communication connection between the second network and the second shared service sub-network.
By the method, network intercommunication between the first network in the first resource pool and the second network in the second resource pool is realized.
The network interworking method across resource pools provided by the embodiment of the invention obtains a request for establishing peer-to-peer connection between a first network in a first resource pool and a second network in a second resource pool. And acquiring third network information corresponding to the first shared service sub-network after the first shared service sub-network is found according to the request. After the first route is found, establishing peer-to-peer connection with the second resource pool based on the third network information, the first route and fourth network information of the management network of the pre-acquired first resource pool in the cloud platform management network. And according to the three-network information and the fourth network information, the communication between the first shared service subnet and the cloud platform management network is realized. In practice, the same or similar operations are performed on the opposite second resource pool to enable communication between the second shared services subnet in the second resource pool and the cloud platform management network. By the method, the communication between the first shared service subnet and the second shared service subnet can be realized, namely the peer-to-peer connection is realized. Then, network interworking between the first network and the second network is created with the second resource pool based on the first network information, the peer-to-peer connection, and the second network information. By the method, a large amount of floating IP resources are not required to be occupied, so that the problem that the cost of the large amount of floating IP resources is excessive can be avoided, and the condition that floating IP is insufficient is not caused. In addition, the scheme can support the network in OVN mode, and the communication efficiency is obviously improved compared with the tunneling communication efficiency of VPN.
Fig. 2 is a schematic diagram of another method for interworking across resource pools according to an embodiment of the present invention. Alternatively, the present implementation may be an extension to the embodiment of fig. 1. In this embodiment, when the first shared service subnet and/or the first route is not found in the first resource pool according to the request, the method may further include a method step for implementing, to create the first shared service subnet and/or the first route. Referring specifically to fig. 2, the method includes:
step 210, extracting a first design principle and a first constraint condition corresponding to the creation of the first shared service subnet according to the request.
Step 220, according to the first design principle and the first constraint condition, the information registration of the first shared service subnet is completed, and a first service operation step and a first parameter are generated.
Step 230, creating a first service network according to the first service operation step and the first parameter.
And/or the number of the groups of groups,
step 240, extracting a second design rule and a second constraint corresponding to the first route creation according to the request.
And step 250, finishing information registration of the first route according to the second design principle and the second constraint condition, and generating a second service operation step and a second parameter.
Step 260, creating the first route according to the second service operation step and the second parameter.
Specifically, the server of the first resource pool includes: nutron server, neutron-plug in, neutron database, and neutron-agent.
The numerol server automatically extracts a first design rule and a first constraint condition corresponding to the shared service subnet from a storage device of the server after the creation request is collected.
And sending the first design principle and the first constraint condition to a neutron-plugin for processing.
After receiving the first design principle and the first constraint condition, the neutron-plugin sends an information registration request to a neutron database to complete information registration of the first shared service subnet.
Then, the neutron-plug in module sends service operation and configuration parameters required for creating the first shared service subnet to the neutron-agent respectively, and the neutron-agent completes the creation of the first shared service subnet.
In a similar manner, the above components of the server in the first resource pool may also perform similar operations to create the first route, except that the parameters or operations, etc. corresponding to the first shared traffic subnet are replaced with parameters or operations, etc. required to create the first route.
By the method, the first shared service sub-network and the first route can be created. In practice, the servers in the second resource pool also comprise the above-mentioned components and, after receiving the request to establish a peer-to-peer connection between the first network and the second network, have also performed the above-mentioned operations synchronously to effect the creation of the second shared traffic subnetwork and the third route. The specific implementation process is referred to above, and will not be described here again.
Fig. 3 is a schematic diagram of another method for interworking across resource pools according to an embodiment of the present invention, and optionally, the present embodiment may also be used as an extension embodiment to the embodiment in fig. 1. Based on the embodiment corresponding to fig. 1, a specific implementation manner is provided that when it is determined that there is a first shared service subnet and a first route, third network information is acquired, and according to the third network information, the first route and fourth network information of a management network of a pre-acquired first resource pool in a cloud platform management network, peer-to-peer connection is established with a second resource pool, specifically, see the following:
and step 310, establishing communication connection between the first shared service subnet and the cloud platform management network according to the third network information and the fourth network information.
Step 320, obtaining fifth network information corresponding to the second shared service subnet in the second resource pool.
And 330, obtaining sixth network information of the management network of the second resource pool in the cloud platform management network.
The fifth network information and the sixth network information are used for establishing communication connection between the second shared service subnet and the cloud platform management network.
Step 340, adding a pre-generated first static routing table in the first route.
Specifically, the first static routing table includes path information from the first resource pool management network to the second shared service subnet.
And step 350, establishing peer-to-peer connection between the first resource pool and the second resource pool according to the third network information, the first route, the fourth network information and the path information in the first static route table.
In one specific example, assume that the cloud platform management network has a network segment 100.2.12.0/24. The website (fourth network information) of the management network in the first resource pool in the cloud platform is 100.2.12.8. The website (sixth network information) of the management network in the second resource pool in the cloud platform is 100.2.12.9. The website (third network information) of the first shared service subnet sharenetA is 171.1.1.0/24. The website (fifth network information) of the second shared service subnet sharenetB is 172.1.1.0/24. The first route is routeA and the third route is routeB.
And adding the third network information into the router A, so that the sharenetA is used as a starting point interface of the first route, and a website of a management network in the first resource pool in the cloud platform is used as another interface in the first route and is used as a routing node of the next hop. And adding a first static routing table in the first route, wherein the static routing table comprises path information reaching the second shared service sub-network from the first resource pool management network, namely, fifth network information corresponding to a destination path shared by the sharenet B and sixth network information corresponding to the management network of the second resource pool serving as a third hop.
In a similar manner, on the side of the second resource pool, the starting point of the third route is the second shared service subnet, the next hop is the management network of the second resource pool, and the static routing table (third static routing table) added in the third route includes path information from the second resource pool management network to the first shared service subnet, for example, third network information corresponding to the destination path being sharenet a, and fourth network information corresponding to the management network of the first resource pool serving as the third hop.
Thus, the shared subnets sharenet A and sharenet B under the two resource pools are opened.
Optionally, on the basis of any one of the foregoing embodiments, as an extensible embodiment of any one of the foregoing embodiments, the application further provides another method flow diagram of network interworking across resource pools, specifically referring to fig. 4, in this embodiment, an implementation manner of creating network interworking between the first network and the second network with the second resource pool according to the first network information, peer-to-peer connection, and the second network information is provided, specifically referring to the following:
step 410, determining a second route corresponding to the first network according to the first network information.
Specifically, the resource pool comprises private clouds, and private networks of users are all created in the private clouds. At the beginning of the creation in the private cloud, the resource pool server will automatically create a default route, i.e. the second route mentioned above, and automatically associate the first network to the default route.
Therefore, the first network can be determined according to the first network information, and the second route corresponding to the first network can be found according to the first network.
Step 420, adding third network information to the second route.
Specifically, on the basis that the peer-to-peer connection between the first resource pool and the second resource pool is already established, if network interworking between the first network and the second network is desired to be established, the association relationship between the first network in the first resource pool and the peer-to-peer connection and the association relationship between the second network in the second resource pool and the peer-to-peer connection are also required to be established respectively.
Taking the first network as an example, the third network information of the first shared service sub-network can be added into the second route, so that the intercommunication between the first network and the first shared service sub-network is realized. Similar reasoning applies to interworking between the second network and the second shared subnetwork.
On the basis of the interworking between the first shared subnetwork and the second shared subnetwork, the interworking between the first network and the second network can be realized further.
Step 430, adding a pre-generated second static routing table in the second route.
Wherein the second routing table includes path information between arrival at the second network from the second shared traffic subnetwork.
Step 440, creating network interworking between the first network and the second network based on the first network information, the second route, the peer-to-peer connection, and the path information in the second static routing table.
Specifically, in order to implement interworking between the first network and the second network, on the first resource pool side, only interworking between the first network and the first shared sub-network is implemented, and on the basis of peer-to-peer connection, only interworking between the first network and the second shared sub-network can be implemented, and interworking with the second network cannot be implemented, so that a second static routing table is also required in the second routing. After the first network and the second shared sub-network are communicated, the first network and the second network are completely communicated through the path information between the second shared service sub-network and the second network, namely, the network communication between the first network and the second network is established according to the first network information, the second route, the peer-to-peer connection and the path information in the second static route table. Similarly, a fourth static routing table is added to the default route created on the second resource pool side. The fourth routing table includes path information between the first shared traffic subnetwork and the first network.
For example, the first network information of the first network net A is 10.1.1.0/24, and the second network information of the first network net B is 20.1.1.0/24.
When the private cloud is created by the first resource pool, a default route, namely a second route, is automatically created. And automatically associating the private network (e.g. the first network) of the user with the sub-default route, and similarly, when the private cloud is created in the second resource pool, automatically creating a default route, defining the default route as a fourth route, and automatically associating the private network (e.g. the second network) of the user with the default route.
In the above operation, after the first shared subnet sharenet a is created, the second route is automatically associated, and at the same time, after the second shared subnet sharenet B is created, the fourth route is also automatically associated. Next, a static routing table is added to the default route (a second static routing table is added to the second route, and a fourth static routing table is added to the fourth route).
By the method, the intercommunication between the first network and the second network is realized under the condition that excessive floating IP resources are not occupied.
Optionally, the foregoing embodiments describe a process of establishing network interworking with one private network in the resource pool a and one private network in the resource pool B. When one private network in the resource pool A needs to establish network intercommunication with different private networks in a plurality of resource pools, the resource pool A needs to establish peer-to-peer connection with the plurality of resource pools respectively.
In this process, too many routes are occupied in order to avoid setting up them. The method may further comprise:
a plurality of pre-generated first static routing tables are automatically added on the first route to complete peer-to-peer connection between the first resource pool and each of the plurality of resource pools, respectively.
That is, the multiplexing of the route is realized by the mode, so that the occupation of resources is reduced, and unnecessary resource waste is avoided.
In addition to the multiplexing of custom routes (e.g., first or third routes), default routes may also be multiplexed, and when creating a peer-to-peer connection, it is sufficient to first check if a route already exists, and if so, not create any more, and use the existing route. Not only reduces the resource consumption, but also improves the usability and experience of the user.
Optionally, in another case, when the first network establishes network interworking with one or more second networks in the plurality of resource pools, respectively, the method further includes:
a plurality of pre-generated second static routing tables are automatically added on the second route.
Specific operations are referred to above, and are not described here again. Through the automatic addition of the system, the manual operation process of the user is omitted, the human resources and the time cost are saved, and the user experience is improved.
Further optionally, when the plurality of second networks belong to the same resource pool, the plurality of second networks share a second shared service subnet.
That is, not only the routes but also the shared service subnets can be multiplexed to save system resources.
Further optionally, when the first network establishes network interworking with a plurality of second networks and the plurality of second networks are not in the same virtual data center, a peer-to-peer connection is established between the first network and each of the second networks.
Specifically, the same resource pool comprises a plurality of virtual data centers, and different virtual data centers have corresponding fields. The virtual private cloud carries a field of the virtual data center, and the server in the resource pool can judge whether the virtual data center is in the same virtual center or not according to the field of the data virtual center carried in the private cloud where the private network is located. If not at the same virtual center, a different peer-to-peer connection needs to be established.
Further optionally, when the network communication established by the user under the different resource pools wants to be isolated again, the associated subnetwork (for example, the association relationship between the first network and the first shared service network, in other words, the website information of the first shared service subnetwork in the default route) and the peer-to-peer connection may be deleted, and at this time, the static routing table and the shared service network interface of the two subnetworks may be deleted synchronously. When the last peer connection is deleted, the shared traffic network and route is deleted.
Fig. 5 is a general flow chart of a network interworking method across resource pools according to an embodiment of the present invention. A flow diagram is shown that implements network interworking between tenant network a (first network) and tenant network B (second network) across resource pool a and resource pool B. In the figure, a cloud platform management network is included, and a resource pool A and a resource pool B are managed by the cloud platform management network.
The resource pool A comprises a route A and a shared service subnet shareent A, and the virtual private cloud VPC comprises a default route A, a tenant network A and a cloud host A. The resource pool B comprises a route B and a shared service subnet sharenet B, and the virtual private cloud VPCB comprises a default route B, a tenant network B and a cloud host B. The network interaction between the first network and the second network mentioned herein is specifically applied to the actual fact, that is, to achieve the network interworking between the cloud host a and the cloud host B. Accordingly, cloud host a and cloud host B are included in fig. 5. The specific implementation of the network interworking procedure between the cloud host a and the cloud host B may be referred to the above embodiments, and will not be described in detail here.
Fig. 6 is a network interworking device across a resource pool according to an embodiment of the present invention, where the device includes: an acquisition unit 601, a search unit 602, and a creation unit 603.
An obtaining unit 601, configured to obtain a request for establishing peer-to-peer connection between a first network in a first resource pool and a second network in a second resource pool, where the request includes first network information corresponding to the first network and second network information corresponding to the second network;
an obtaining unit 601, configured to obtain a request for establishing peer-to-peer connection between a first network in a first resource pool and a second network in a second resource pool, where the request includes first network information corresponding to the first network and second network information corresponding to the second network;
a searching unit 602, configured to search, according to the request, a first shared service subnet and a first route in a first resource pool;
the obtaining unit 601 is further configured to obtain third network information when it is determined that the first shared service subnet and the first route exist;
a creating unit 603, configured to establish peer-to-peer connection with the second resource pool according to the third network information, the first route, and fourth network information of the management network of the pre-acquired first resource pool in the cloud platform management network;
and establishing network interworking between the first network and the second network with the second resource pool according to the first network information, the peer-to-peer connection and the second network information.
Optionally, when the searching unit 602 does not find the first shared service subnet in the first resource pool according to the request, the creating unit 603 is further configured to:
extracting a first design principle and a first constraint condition corresponding to the creation of a first shared service subnet according to the request;
according to a first design principle and a first constraint condition, finishing information registration of a first shared service subnet, and generating a first service operation step and a first parameter;
creating a first service network according to the first service operation step and the first parameter;
and/or when the searching unit 602 does not find the first route in the first resource pool according to the request, the creating unit 603 is further configured to:
extracting a second design principle and a second constraint condition corresponding to the first route according to the request;
according to a second design principle and a second constraint condition, finishing information registration of the first route, and generating a second service operation step and a second parameter;
and creating the first route according to the second service operation step and the second parameter.
Optionally, the creating unit 603 is specifically configured to establish a communication connection between the first shared service subnet and the cloud platform management network according to the third network information and the fourth network information;
Obtaining fifth network information corresponding to a second shared service subnet in a second resource pool, wherein the second shared service subnet is created by a second resource pool server according to the request;
acquiring sixth network information of a management network of the second resource pool in the cloud platform management network, wherein the fifth network information and the sixth network information are used for establishing communication connection between the second shared service sub-network and the cloud platform management network;
adding a pre-generated first static routing table in the first routing, wherein the first static routing table comprises path information reaching a second shared service subnet from a first resource pool management network;
and according to the third network information, the first route, the fourth network information and the path information in the first static route table, establishing peer-to-peer connection between the first resource pool and the second resource pool.
Optionally, the creating unit 603 is specifically configured to determine, according to the first network information, a second route corresponding to the first network;
adding third network information to the second route;
adding a pre-generated second static routing table in the second route, wherein the second routing table comprises path information between the second shared service sub-network and the second network;
And creating network interworking between the first network and the second network according to the first network information, the second route, the peer-to-peer connection and the path information in the second static routing table.
Optionally, the creating unit 603 is further configured to, when the first resource pool and the plurality of resource pools establish peer-to-peer connections respectively, automatically add a plurality of pre-generated first static routing tables on the first route, so as to complete peer-to-peer connections between the first resource pool and each of the plurality of resource pools respectively.
Optionally, the creating unit 603 is further configured to automatically add a plurality of pre-generated second static routing tables on the second routes when the first network establishes network interworking with one or more second networks of the plurality of resource pools, respectively.
Optionally, when the plurality of second networks belong to the same resource pool, the plurality of second networks share a second shared service subnet.
The functions executed by the components in the network interworking device across resource pools provided in the embodiments of the present invention are described in detail in any of the above method embodiments, so that no further description is given here.
The network interworking device across the resource pools provided by the embodiment of the invention acquires a request for establishing peer-to-peer connection between a first network in a first resource pool and a second network in a second resource pool. And acquiring third network information corresponding to the first shared service sub-network after the first shared service sub-network is found according to the request. After the first route is found, establishing peer-to-peer connection with the second resource pool based on the third network information, the first route and fourth network information of the management network of the pre-acquired first resource pool in the cloud platform management network. And according to the three-network information and the fourth network information, the communication between the first shared service subnet and the cloud platform management network is realized. In practice, the same or similar operations are performed on the opposite second resource pool to enable communication between the second shared services subnet in the second resource pool and the cloud platform management network. By the method, the communication between the first shared service subnet and the second shared service subnet can be realized, namely the peer-to-peer connection is realized. Then, network interworking between the first network and the second network is created with the second resource pool based on the first network information, the peer-to-peer connection, and the second network information. By the method, a large amount of floating IP resources are not required to be occupied, so that the problem that the cost of the large amount of floating IP resources is excessive can be avoided, and the condition that floating IP is insufficient is not caused. In addition, the scheme can support the network in OVN mode, and the communication efficiency is obviously improved compared with the tunneling communication efficiency of VPN.
As shown in fig. 7, the embodiment of the present application provides an electronic device, which includes a processor 111, a communication interface 112, a memory 113, and a communication bus 114, where the processor 111, the communication interface 112, and the memory 113 perform communication with each other through the communication bus 114.
A memory 113 for storing a computer program;
in one embodiment of the present application, the processor 111 is configured to implement the network interworking method across resource pools provided in any one of the foregoing method embodiments when executing the program stored on the memory 123, where the method includes:
acquiring a request for establishing peer-to-peer connection between a first network in a first resource pool and a second network in a second resource pool, wherein the request comprises first network information corresponding to the first network and second network information corresponding to the second network;
searching a first shared service subnet and a first route in a first resource pool according to the request;
when the first shared service sub-network and the first route exist, third network information is acquired, and peer-to-peer connection is established with the second resource pool according to the third network information, the first route and fourth network information of the pre-acquired management network of the first resource pool in the cloud platform management network;
And establishing network interworking between the first network and the second network with the second resource pool according to the first network information, the peer-to-peer connection and the second network information.
Optionally, when the first shared service subnet is not found in the first resource pool according to the request, the method further includes:
extracting a first design principle and a first constraint condition corresponding to the creation of a first shared service subnet according to the request;
according to a first design principle and a first constraint condition, finishing information registration of a first shared service subnet, and generating a first service operation step and a first parameter;
creating a first service network according to the first service operation step and the first parameter;
and/or the number of the groups of groups,
when the first route is not found in the first resource pool according to the request, the method further comprises:
extracting a second design principle and a second constraint condition corresponding to the first route according to the request;
according to a second design principle and a second constraint condition, finishing information registration of the first route, and generating a second service operation step and a second parameter;
and creating the first route according to the second service operation step and the second parameter.
Optionally, establishing communication connection between the first shared service subnet and the cloud platform management network according to the third network information and the fourth network information;
Obtaining fifth network information corresponding to a second shared service subnet in a second resource pool, wherein the second shared service subnet is created by a second resource pool server according to the request;
acquiring sixth network information of a management network of the second resource pool in the cloud platform management network, wherein the fifth network information and the sixth network information are used for establishing communication connection between the second shared service sub-network and the cloud platform management network;
adding a pre-generated first static routing table in the first routing, wherein the first static routing table comprises path information reaching a second shared service subnet from a first resource pool management network;
and according to the third network information, the first route, the fourth network information and the path information in the first static route table, establishing peer-to-peer connection between the first resource pool and the second resource pool.
Optionally, determining a second route corresponding to the first network according to the first network information;
adding third network information to the second route;
adding a pre-generated second static routing table in the second route, wherein the second routing table comprises path information between the second shared service sub-network and the second network;
and creating network interworking between the first network and the second network according to the first network information, the second route, the peer-to-peer connection and the path information in the second static routing table.
Optionally, when the first resource pool and the plurality of resource pools establish peer-to-peer connection respectively, a plurality of pre-generated first static routing tables are automatically added on the first route to complete peer-to-peer connection between the first resource pool and each of the plurality of resource pools respectively.
Optionally, when the first network establishes network interworking with one or more second networks in the plurality of resource pools, respectively, a plurality of pre-generated second static routing tables are automatically added on the second route.
Optionally, when the plurality of second networks belong to the same resource pool, the plurality of second networks share a second shared service subnet.
Optionally, when the first network and the plurality of second networks establish network interworking, and the plurality of second networks are not in the same virtual data center, the first network and each second network respectively establish peer-to-peer connection.
The present application further provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the network interworking method across resource pools provided by any of the method embodiments described above.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The foregoing is merely exemplary of embodiments of the present invention to enable those skilled in the art to understand or practice the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. A method of interworking across a resource pool, the method performed by a first resource pool server, the method comprising:
acquiring a request for establishing peer-to-peer connection between a first network in a first resource pool and a second network in a second resource pool, wherein the request comprises first network information corresponding to the first network and second network information corresponding to the second network;
according to the request, searching whether a first shared service subnet and a first route exist in the private cloud of the first resource pool;
when the existence of the first shared service sub-network and the first route is determined, acquiring third network information;
Establishing communication connection between the first shared service sub-network and the cloud platform management network according to the third network information and the fourth network information of the management network of the pre-acquired first resource pool in the cloud platform management network;
obtaining fifth network information corresponding to a second shared service subnet in a second resource pool, wherein the second shared service subnet is created by the second resource pool server according to the request;
acquiring sixth network information of a management network of the second resource pool in the cloud platform management network, wherein the fifth network information and the sixth network information are used for establishing communication connection between the second shared service sub-network and the cloud platform management network;
adding a pre-generated first static routing table in the first routing, wherein the first static routing table comprises path information from the first resource pool management network to the second shared service sub-network;
according to third network information, the first route, the fourth network information and path information in the first static routing table, establishing peer-to-peer connection between the first resource pool and the second resource pool;
determining a second route corresponding to the first network according to the first network information;
Adding the third network information to the second route;
adding a pre-generated second static routing table in the second route, wherein the second static routing table comprises path information from the second shared service sub-network to the second network;
and creating network interworking between the first network and the second network according to the first network information, the second route, the peer-to-peer connection and path information in the second static routing table.
2. The method of claim 1, wherein when the first shared traffic subnet is not found in the first resource pool according to the request, the method further comprises:
extracting a first design principle and a first constraint condition corresponding to the creation of the first shared service subnet according to the request;
according to the first design principle and the first constraint condition, finishing information registration of the first shared service subnet, and generating a first service operation step and a first parameter;
creating the first shared service subnet according to the first service operation step and the first parameter;
and/or the number of the groups of groups,
When the first route is not found in the first resource pool according to the request, the method further comprises:
extracting a second design principle and a second constraint condition corresponding to the first route according to the request;
finishing information registration of the first route according to the second design principle and the second constraint condition, and generating a second service operation step and a second parameter;
and creating the first route according to the second service operation step and the second parameter.
3. The method according to claim 1 or 2, wherein when the first resource pool and the plurality of resource pools respectively establish peer-to-peer connections, a plurality of pre-generated first static routing tables are automatically added on the first route to complete peer-to-peer connections between the first resource pool and each of the plurality of resource pools respectively.
4. A method according to claim 3, wherein when the first network establishes network interworking with one or more second networks of the plurality of resource pools, respectively, the method further comprises:
and automatically adding a plurality of pre-generated second static routing tables on the second route.
5. The method of claim 4, wherein when a plurality of said second networks belong to the same resource pool, then a plurality of said second networks share a second shared traffic subnet.
6. A method according to claim 3, wherein when the first network establishes network interworking with a plurality of second networks, and the plurality of second networks are not in the same virtual data center, then the first network establishes a peer-to-peer connection with each second network, respectively.
7. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the steps of the method for interworking across a resource pool of any of claims 1-6 when executing a program stored on a memory.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the network interworking method across resource pools according to any of claims 1-6.
CN202111244343.9A 2021-10-25 2021-10-25 Cross-resource-pool network intercommunication method, electronic equipment and readable storage medium Active CN114024886B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111244343.9A CN114024886B (en) 2021-10-25 2021-10-25 Cross-resource-pool network intercommunication method, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111244343.9A CN114024886B (en) 2021-10-25 2021-10-25 Cross-resource-pool network intercommunication method, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN114024886A CN114024886A (en) 2022-02-08
CN114024886B true CN114024886B (en) 2023-04-21

Family

ID=80057571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111244343.9A Active CN114024886B (en) 2021-10-25 2021-10-25 Cross-resource-pool network intercommunication method, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114024886B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277308B (en) * 2022-07-20 2023-04-25 杭州迪普科技股份有限公司 Cloud resource pool SSLVPN equipment deployment method and device
CN115460127A (en) * 2022-08-16 2022-12-09 度小满科技(北京)有限公司 Virtual routing method and device for different regional networks
CN117997734A (en) * 2022-10-31 2024-05-07 华为云计算技术有限公司 Management method and system for multi-resource pool network

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108833251A (en) * 2018-08-01 2018-11-16 北京百度网讯科技有限公司 Method and apparatus for controlling the network interconnection
CN111698338A (en) * 2019-03-15 2020-09-22 华为技术有限公司 Data transmission method and computer system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180338020A1 (en) * 2017-05-18 2018-11-22 Filegear Inc. Multiplexed peer-to-peer connections for servers behind a network address
US20190253274A1 (en) * 2018-02-14 2019-08-15 Megaport (Services) Pty Ltd. Network interconnection service
CN110401588B (en) * 2019-07-15 2021-09-07 浪潮云信息技术股份公司 Method and system for realizing VPC (virtual private network) peer-to-peer connection in public cloud platform based on openstack
CN112688847A (en) * 2020-08-17 2021-04-20 紫光云技术有限公司 Method for realizing VPC (virtual private network) peer-to-peer connection in cloud network environment
CN112491980B (en) * 2020-11-13 2022-12-27 苏州浪潮智能科技有限公司 Cloud host service management method, system, terminal and storage medium
CN112333030B (en) * 2020-11-24 2023-07-18 北京百度网讯科技有限公司 Method, device, electronic equipment and storage medium for communication between private networks

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108833251A (en) * 2018-08-01 2018-11-16 北京百度网讯科技有限公司 Method and apparatus for controlling the network interconnection
CN111698338A (en) * 2019-03-15 2020-09-22 华为技术有限公司 Data transmission method and computer system

Also Published As

Publication number Publication date
CN114024886A (en) 2022-02-08

Similar Documents

Publication Publication Date Title
CN114024886B (en) Cross-resource-pool network intercommunication method, electronic equipment and readable storage medium
US10027623B2 (en) Internet protocol address resolution
EP3327992A1 (en) Method of selecting network slice and system utilizing same
CN108429680B (en) Route configuration method, system, medium and equipment based on virtual private cloud
CN104219127A (en) Creation method and device of virtual network instance
CN111817869B (en) Network configuration recovery method and related equipment thereof
CN107547242B (en) The acquisition methods and device of VM configuration information
CN107733795B (en) Ethernet virtual private network EVPN and public network intercommunication method and device
CN115004656A (en) Message sending method, equipment and system
CN113055297B (en) Network topology discovery method and device
CN110336730B (en) Network system and data transmission method
CN103441932A (en) Host routing table entry generating method and device
CN112217655B (en) Network equipment configuration method and device in SD-WAN system and computer equipment
CN105684355A (en) Automatically configuring virtual router
CN107070790B (en) Route learning method and routing equipment
US8914503B2 (en) Detected IP link and connectivity inference
CN114401274B (en) Communication line creation method, device, equipment and readable storage medium
CN114025000B (en) Method, device, equipment and storage medium for establishing network access relationship
CN106027396B (en) A kind of route control method, device and system
US20200162467A1 (en) System and method for migrating existing access control list policies to intent based policies and vice versa
CN117041205A (en) Address translation method, address translation device, host and computer readable storage medium
CN108809795B (en) Transparent shunting method and device in local area network environment
WO2016074478A1 (en) Method and device for identifying service chain path, and service chain
CN111355599B (en) Hybrid network topology discovery method and device
CN109995649A (en) It is a kind of for obtaining the method and device of cross-domain link

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant