CN114024886A - 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
CN114024886A
CN114024886A CN202111244343.9A CN202111244343A CN114024886A CN 114024886 A CN114024886 A CN 114024886A CN 202111244343 A CN202111244343 A CN 202111244343A CN 114024886 A CN114024886 A CN 114024886A
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.)
Granted
Application number
CN202111244343.9A
Other languages
Chinese (zh)
Other versions
CN114024886B (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

Abstract

The embodiment of the invention relates to a network intercommunication method, electronic equipment and a readable storage medium across resource pools, wherein the method comprises the following steps: acquiring a request for establishing a 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 sharing service subnet and the first route are determined to exist, third network information is obtained, and peer-to-peer connection is established with the second resource pool according to the third network information, the first route and the pre-obtained fourth network information of the management network of the first resource pool in the cloud platform management network; and establishing network intercommunication 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 method, system resources are prevented from being occupied, 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 cross-resource-pool network intercommunication method, electronic equipment and a readable storage medium.
Background
The cloud management platform is used as a management system for multi-cloud manufacturers and heterogeneous cloud platforms, and the application market of the cloud management platform is more and more extensive. Under the actual user scene that the multi-node large data volume service interaction frequency is high, multiple sets of resource pools are generally managed, and because of isolation of tenant networks of different resource pools, even if multiple networks of the same tenant in different resource pools are not intercommunicated, how to get through tenant private networks among different resource pools to realize communication of different tenant networks becomes a technical problem to be solved at present.
In the prior art, aiming at the problems, floating IP or Virtual Private Network (VPN) is mainly used, but floating IP requires a Network card to bind an IP, and the cost of floating IP resource consumption is too high, which may cause insufficient floating IP; although the VPN has the capability of connecting two resource pool subnets, when the network is switched to OVN (upgrading of OVS, i.e. open stack), the VPN has certain technical defects, and the tunnel technology communication efficiency of the VPN is usually not high.
Disclosure of Invention
The application provides a cross-resource-pool network intercommunication method, electronic equipment and a readable storage medium, which are used for solving the technical problem that cross-resource-pool network intercommunication is difficult to realize in the prior art without occupying a large number of IP resources and reducing communication efficiency.
In a first aspect, the present application provides a method for network interworking across resource pools, where the method is performed by a first resource pool server, and 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 sharing service subnet and the first route are determined to exist, third network information is obtained, and peer-to-peer connection is established with the second resource pool according to the third network information, the first route and the pre-obtained fourth network information of the management network of the first resource pool in the cloud platform management network;
and establishing network intercommunication 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 apparatus across resource pools, the apparatus including:
an obtaining unit, configured to obtain a request for establishing a 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;
the searching unit is used for searching the first sharing service subnet and the first route in the first resource pool according to the request;
the acquiring unit is further used for acquiring third network information when the first shared service subnet and the first route are determined to 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 pre-acquired fourth network information of the management network of the first resource pool in the cloud platform management network;
and establishing network intercommunication 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, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and a processor, configured to implement the steps of the cross-resource-pool network interworking method according to any embodiment of the first aspect when executing the program stored in the memory.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method for network interworking across resource pools as in any one 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 after the first sharing service subnet is found according to the request, acquiring third network information corresponding to the first sharing service subnet. After the first route is found, peer-to-peer connection is established with the second resource pool based on the third network information, the first route and the pre-acquired fourth network information of the management network of the first resource pool in the cloud platform management network. And according to the third network information and the fourth network information, communication between the first shared service subnet and the cloud platform management network is realized. In fact, the same or similar operation is performed on the second resource pool on the opposite side to implement the communication between the second shared service subnet in the second resource pool and the cloud platform management network. Through the above manner, the first sharing service subnet and the second sharing service subnet can be communicated, that is, 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 a large amount of floating IP resources consume too much cost can be avoided, and the situation that the floating IP is insufficient can be avoided. Moreover, the scheme of the application can support the network in the OVN mode, and compared with the tunnel technology communication efficiency of the VPN, the communication efficiency is obviously improved.
Drawings
Fig. 1 is a flowchart illustrating a cross-resource pool network interworking method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another cross-resource-pool network interworking method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating another cross-resource-pool network interworking method according to an embodiment of the present invention;
fig. 4 is a schematic flow chart of another cross-resource-pool network interworking method according to an embodiment of the present invention;
FIG. 5 is a block diagram of the overall process of a cross-resource-pool network interworking method according to the present invention;
fig. 6 is a schematic structural diagram of a cross-resource-pool network interworking apparatus 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
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
For the convenience of understanding of the embodiments of the present invention, the following description will be further explained with reference to specific embodiments, which are not to be construed as limiting the embodiments of the present invention.
Before introducing the flow of the network intercommunication 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, taking establishing intercommunication between user private networks in two resource pools as an example for description, and a 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 use the cloud platform as a basis for establishing peer-to-peer connection, and the peer-to-peer connection is realized through the cloud platform management network. The specific procedures can refer to the descriptions of the corresponding method embodiments, and are not described too much here.
The first resource pool and the second resource pool perform substantially the same or similar working principles when cooperating to create 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 of the scheme is given by taking the operation steps executed by the first resource pool as an example, and the method steps executed by the second resource pool are only briefly described in the text for better explanation. The specific implementation details can refer to the operation steps executed by the first resource pool, and when the steps executed by the server in the second resource pool are slightly different from the steps executed by the server in the first resource pool, the detailed explanation is made herein.
The different private networks of the users are intercommunicated, and the different private networks of the same user can be intercommunicated, and the different private networks of different users can also be intercommunicated. The private network of the same user may be intercommunicated with a plurality of different private networks of other users, or a plurality of private networks of the same user may be intercommunicated. The method examples corresponding to the specific application scenarios will be described in detail below.
First, an example of establishing interworking between two private networks (which may be two private networks of the same user in different resource pools, or respective private networks of different users in different resource pools, etc.) is described, which may be specifically referred to as the following.
Fig. 1 is a schematic flowchart of a cross-resource-pool network interworking method provided in an embodiment of the present invention, where the method includes:
step 110, a request for establishing 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 issued by a user, or may be obtained in another form. Before generating the request, the user may specify 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 trigger the first network and the second network to establish peer-to-peer connection, so as to generate the peer-to-peer connection request, where 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, second network information, and any network information mentioned below, which 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 the website information, such as the IP address. In the present application, IP addresses are used as an example for explanation.
Step 120, according to the request, the first shared service subnet and the first route in the first resource pool are searched.
Step 130, when it is determined that the first shared service subnet 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 the pre-acquired fourth network information of the management network of the first resource pool in the cloud platform management network.
The communication between the two resource pool management networks is the basis of the intercommunication of private networks, so that a service network between the first resource pool and the second resource pool needs to be opened firstly. And opening the service network between the first resource pool and the second resource pool requires using a shared service subnet and route.
Taking the first resource pool side as an example, the server in the first resource pool searches whether the first shared service subnet and the first route exist in the private cloud of the first resource pool according to the request.
And when the first shared service subnet is determined to exist, acquiring third network information corresponding to the first shared service subnet. And when the first route is determined to exist, establishing communication connection with a management network of a first resource pool in the cloud platform management network by using the third network information through the first route.
Similarly, after receiving the request, the second resource pool also searches for the second shared service subnet and the third route (the second route is already present and is defined as the third route here for distinction), and when determining that the second shared service subnet exists, obtains the network information corresponding to the second shared service subnet (the fifth network information introduced in this application, and for convenience of description, the fifth network information is also defined and described here). And when determining that the third route exists, establishing communication connection between the fifth network information and a management network of a second resource pool in the platform management network (for example, if the network information of the management network in the second resource pool in the cloud platform is sixth network information, communication connection can be established through the fifth network information and the sixth network information) through the third route by using the fifth network information.
Specifically, as described in the beginning of the specific embodiments, 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. That is, the cloud platform is used as a basis for establishing peer-to-peer connection, so that the network connection between the first shared service subnet and the cloud platform can be realized by using the third network information and the fourth network information through the first route, and the network connection between the second shared service subnet and the platform can be established by using the fifth network information and the sixth network information through the third route. Therefore, the communication connection between the first shared service subnet and the second shared service subnet can be realized, that is, the 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 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 purpose of directly using the existing routing and/or sharing service subnets is to ensure that resources can be repeatedly utilized, avoid unnecessary resource waste and excessive occupation of storage space.
Step 140, establishing network interworking between the first network and the second network with the second resource pool based on the first network information, the peer-to-peer connection, and the second network information.
Specifically, on the basis of establishing peer-to-peer connection between the first resource pool and the second resource pool, the communication connection between the first network and the first shared service subnet is established only according to the first network information and the third network information; and establishing communication connection between the second network and the second shared service subnet according to the second network information and the fifth network information, namely realizing network intercommunication between the first network and the second network.
Specifically, the communication connection between the first network and the first shared service subnet is established, the server in the first resource pool adds the third network information to the second route to implement the communication connection between the first network and the first shared service subnet, and the server in the second resource pool adds the fifth network information to the fourth route to implement the communication connection between the second network and the second shared service subnet in the same manner.
By the method, the network intercommunication between the first network in the first resource pool and the second network in the second resource pool is realized.
The method for network intercommunication across 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 after the first sharing service subnet is found according to the request, acquiring third network information corresponding to the first sharing service subnet. After the first route is found, peer-to-peer connection is established with the second resource pool based on the third network information, the first route and the pre-acquired fourth network information of the management network of the first resource pool in the cloud platform management network. And according to the third network information and the fourth network information, communication between the first shared service subnet and the cloud platform management network is realized. In fact, the same or similar operation is performed on the second resource pool on the opposite side to implement the communication between the second shared service subnet in the second resource pool and the cloud platform management network. Through the above manner, the first sharing service subnet and the second sharing service subnet can be communicated, that is, 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 a large amount of floating IP resources consume too much cost can be avoided, and the situation that the floating IP is insufficient can be avoided. Moreover, the scheme of the application can support the network in the OVN mode, and compared with the tunnel technology communication efficiency of the VPN, the communication efficiency is obviously improved.
Fig. 2 is another method for network interworking across resource pools according to an embodiment of the present invention. Optionally, this implementation may be taken as an extended embodiment to the embodiment in fig. 1. It is introduced in this embodiment that, when the first shared service subnet and/or the first route is not searched in the first resource pool according to the request, the method may further include a method step for creating the first shared service subnet and/or the first route. Referring specifically to fig. 2, the method includes:
step 210, according to the request, extracting a first design rule and a first constraint condition corresponding to the creation of the first shared service subnet.
Step 220, according to the first design principle and the first constraint condition, completing information registration of the first shared service subnet, and generating a first service operation step and a first parameter.
Step 230, creating a first service network according to the first service operation step and the first parameter.
And/or the presence of a gas in the gas,
step 240, according to the request, extracting a second design rule and a second constraint condition corresponding to the creation of the first route.
And step 250, completing information registration of the first route according to a second design principle and a 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: nuetron server, neutron-plugin, neutron database, and neutron-agent.
After the nuetron server collects the creation request, the nuetron server automatically extracts the first design rule and the first constraint condition corresponding to the shared service subnet from the storage device of the server.
And sending the first design principle and the first constraint condition to the neutron-plugin plug-in for processing.
After receiving the first design principle and the first constraint condition, the neutron-plugin sends an information registration request to the neutron database to complete information registration on the first shared service subnet.
And then, the neutron-plugin respectively sends the service operation and configuration parameters required for creating the first shared service subnet to the neutron-agent, and the neutron-agent completes the creation of the first shared service subnet.
Similarly, the above components of the server in the first resource pool may also perform similar operations to create the first route, and the parameters or operations corresponding to the first shared service subnet are replaced with the parameters or operations required to create the first route.
Through the method, the first shared service subnet and the first route can be created. In fact, the server in the second resource pool also includes the above components, and after receiving the request for establishing peer-to-peer connection between the first network and the second network, the above operations have been performed synchronously to implement creation of the second shared service subnet and the third route. The specific implementation process is described above, and is not described herein again.
Fig. 3 is another network interworking method across resource pools according to the embodiment of the present invention, and optionally, this embodiment may also be used as an extended embodiment of the embodiment in fig. 1. On the basis of the embodiment corresponding to fig. 1, a specific implementation manner is given that when it is determined that the first shared service subnet and the first route exist, the 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 the pre-acquired fourth network information of the management network of the first resource pool in the cloud platform management network, which is specifically referred to as follows:
and 310, establishing 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.
Step 320, acquiring fifth network information corresponding to the second shared service subnet in the second resource pool.
Step 330, acquiring sixth network information of the management network of the second resource pool in the cloud platform management network.
And 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, add the pre-generated first static routing table in the first route.
Specifically, the first static routing table includes information of a path 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 is completed according to the third network information, the first route, the fourth network information and the path information in the first static routing table.
In one specific example, assume that the segment of the cloud platform management network is 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 web address (sixth network information) of the management network in the second resource pool in the cloud platform is 100.2.12.9. The website address (third network information) of the first shared service subnet sharenetA is 171.1.1.0/24. The web address (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 routeA to enable sharenetA to serve as a starting point interface of the first route, and a website of the management network in the cloud platform in the first resource pool to serve as another interface in the first route and serve as a next-hop routing node. And adding a first static routing table in the first route, wherein the static routing table includes path information from the first resource pool management network to the second shared service subnet, that is, fifth network information corresponding to a destination path being sharenet B, and sixth network information corresponding to the management network of the second resource pool as a third hop.
Similarly, 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, includes third network information corresponding to the destination path being sharent a and fourth network information corresponding to the management network of the first resource pool serving as the third hop.
Therefore, the shared subnetworks, namely, sharenet A and sharenetB, under the two resource pools are communicated.
Optionally, on the basis of any of the foregoing embodiments, as an extensible embodiment of any of the foregoing embodiments, the present application further provides another method for network interworking across resource pools, specifically referring to fig. 4, where in this embodiment, a manner for establishing network interworking between a first network and a second network with a second resource pool according to first network information, peer-to-peer connection, and second network information is provided, and 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 includes a private cloud, and the private networks of the users are all created in the private cloud. 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, add the third network information to the second route.
Specifically, on the basis of establishing the peer-to-peer connection between the first resource pool and the second resource pool, if it is desired to establish network interworking between the first network and the second network, it is first necessary to establish an association relationship between the first network in the first resource pool and the peer-to-peer connection, and an association relationship between the second network in the second resource pool and the peer-to-peer connection, respectively.
Taking the first network as an example, the third network information of the first shared service subnet may be added to the second route, so as to implement the interworking between the first network and the first shared service subnet. Similarly, interworking between the second network and the second shared subnet may also be achieved.
On the basis of the intercommunication between the first sharing subnet and the second sharing subnet, the intercommunication between the first network and the second network can be realized by one step.
Step 430, add the pre-generated second static routing table in the second route.
And the second routing table comprises path information from the second shared service subnet to the second network.
Step 440, establishing 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.
Specifically, in order to implement the interworking between the first network and the second network, only the interworking between the first network and the first shared subnet is implemented on the side of the first resource pool, and on the basis of peer-to-peer connection, only the first network can be implemented to be able to be interworked with the second shared subnet, and the interworking with the second network cannot be achieved, so that a second static routing table needs to be provided in the second route. After the interworking between the first network and the second shared subnet is achieved, the interworking between the first network and the second network is achieved completely through the path information between the second shared service subnet and the second network, that is, the interworking 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 routing 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 information of a path from the first shared traffic subnet to the first network.
For example, the first network information of the first network netA is 10.1.1.0/24, and the second network information of the second network netB is 20.1.1.0/24.
When the private cloud is created in the first resource pool, a default route, namely the second route, is automatically created. And automatically associating the private network (such as 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 (such as the second network) of the user with the default route.
In the above operation, after the first shared subnet sharenet a is created, the first shared subnet sharenet a is automatically associated to the second route, and meanwhile, after the second shared subnet sharenet B is created, the first shared subnet sharenet a is also automatically associated to the fourth route. The next step is to add a static routing table on the default route (second static routing table on the second route and fourth static routing table on the fourth route).
By the method, the intercommunication between the first network and the second network is realized under the condition of not occupying excessive floating IP resources.
Optionally, the above embodiments all describe a process of establishing network interworking between one private network in the resource pool a and one private network in the resource pool B. When a private network in the resource pool a needs to establish network interworking with different private networks in the multiple resource pools, it is first required that the resource pool a and the multiple resource pools respectively establish peer-to-peer connections.
In this process, too many resources are occupied in order to avoid establishing multiple routes. The method may further comprise:
and automatically adding a plurality of pre-generated first static routing tables on the first route so as to complete peer-to-peer connection between the first resource pool and each resource pool in the plurality of resource pools.
That is, the multiplexing of the route is realized by the above method, the resource occupation is reduced, and the unnecessary resource waste is avoided.
In addition to that the custom route (e.g. the first route or the third route) can be multiplexed, the default route can also be multiplexed, when creating the peer-to-peer connection, it is first checked whether the route already exists, if so, the route is not created, and the existing route is used. Not only reduces resource consumption, but also improves the usability and experience of users.
Optionally, in another case, when the first network establishes network interworking with one or more second networks in the multiple resource pools, the method further includes:
automatically adding a plurality of pre-generated second static routing tables on the second route.
For specific operations, see above, detailed description is omitted here. Through automatic addition of the system, the manual operation process of a user is omitted, manpower resources and time cost are saved, and user experience is improved.
Further optionally, when multiple second networks belong to the same resource pool, the multiple second networks share one second shared service subnet.
That is, not only the route but also the shared service subnet can be multiplexed to save system resources.
Further optionally, when the first network establishes network interworking with the plurality of second networks and the plurality of second networks are not in the same virtual data center, peer-to-peer connection is established between the first network and each of the second networks.
Specifically, the same resource pool includes a plurality of virtual data centers, and different virtual data centers have corresponding fields. The virtual private cloud carries a field of a virtual data center, and the servers in the resource pool can judge whether the servers are in the same virtual center according to the field of the data virtual center carried in the private cloud where the private network is located. If not in the same virtual center, different peer-to-peer connections need to be established.
Further optionally, when the network communication established by the user in different resource pools is to be isolated again, the associated subnet (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 subnet in the default route is deleted) and the peer-to-peer connection may be deleted, and at this time, the static routing tables and the shared service network interfaces of the two subnets may be deleted simultaneously. When the last peer-to-peer connection is deleted, the shared traffic network and routes are deleted.
Fig. 5 is a block diagram of an overall flow of a cross-resource-pool network interworking method according to an embodiment of the present invention. The figure shows a flow diagram for implementing network interworking between a tenant network a (first network) and a tenant network B (second network) across resource pool a and resource pool B. In the figure, a cloud platform management network, a resource pool a and a resource pool B managed by the cloud platform management network are included.
The resource pool A comprises a route A and a shared service subnet sharenet 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 share 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 actually implement network interworking between the cloud host a and the cloud host B. Thus, cloud host a and cloud host B are included in fig. 5. For a specific implementation of the network interworking flow between the cloud host a and the cloud host B, reference may be made to the above embodiments, which are not described herein in too much detail.
Fig. 6 is a device for interworking between resource pools 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 creating a 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 creating a 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 the first resource pool;
an obtaining unit 601, 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 the pre-acquired fourth network information of the management network of the first resource pool in the cloud platform management network;
and establishing network intercommunication 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:
according to the request, extracting a first design principle and a first constraint condition corresponding to the creation of the first sharing service subnet;
according to a first design principle and a first constraint condition, completing 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 finding 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 creation of the first route according to the request;
according to a second design principle and a second constraint condition, completing information registration of the first route, and generating a second service operation step and a second parameter;
and creating a 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;
acquiring fifth network information corresponding to a second shared service subnet in the 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 the 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 subnet and the cloud platform management network;
adding a pre-generated first static routing table in a first route, wherein the first static routing table comprises path information from a first resource pool management network to a second shared service subnet;
and completing the 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 routing table.
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 the third network information to the second route;
adding a pre-generated second static routing table in a second route, wherein the second routing table comprises path information from a second shared service subnet to a second network;
and establishing network intercommunication 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 peer-to-peer connections are respectively established between the first resource pool and the multiple resource pools, automatically add multiple pre-generated first static routing tables to the first route, so as to complete peer-to-peer connections between the first resource pool and each of the multiple resource pools.
Optionally, the creating unit 603 is further configured to, when the first network establishes network interworking with one or more second networks in the multiple resource pools, automatically add multiple pre-generated second static routing tables on the second route.
Optionally, when multiple second networks belong to the same resource pool, the multiple second networks share one second shared service subnet.
The functions executed by each component in the network interworking apparatus across resource pools provided by the embodiment of the present invention have been described in detail in any of the above method embodiments, and therefore, the details are not described here.
The embodiment of the invention provides a network intercommunication device across resource pools, which is used for 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. And after the first sharing service subnet is found according to the request, acquiring third network information corresponding to the first sharing service subnet. After the first route is found, peer-to-peer connection is established with the second resource pool based on the third network information, the first route and the pre-acquired fourth network information of the management network of the first resource pool in the cloud platform management network. And according to the third network information and the fourth network information, communication between the first shared service subnet and the cloud platform management network is realized. In fact, the same or similar operation is performed on the second resource pool on the opposite side to implement the communication between the second shared service subnet in the second resource pool and the cloud platform management network. Through the above manner, the first sharing service subnet and the second sharing service subnet can be communicated, that is, 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 a large amount of floating IP resources consume too much cost can be avoided, and the situation that the floating IP is insufficient can be avoided. Moreover, the scheme of the application can support the network in the OVN mode, and compared with the tunnel technology communication efficiency of the VPN, the communication efficiency is obviously improved.
As shown in fig. 7, an electronic device according to an embodiment of the present application 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 complete communication with each other through the communication bus 114.
A memory 113 for storing a computer program;
in an embodiment of the present application, when the processor 111 is configured to execute a program stored in the memory 123, the method for implementing network interworking across resource pools according to any one of the foregoing method embodiments 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 sharing service subnet and the first route are determined to exist, third network information is obtained, and peer-to-peer connection is established with the second resource pool according to the third network information, the first route and the pre-obtained fourth network information of the management network of the first resource pool in the cloud platform management network;
and establishing network intercommunication 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:
according to the request, extracting a first design principle and a first constraint condition corresponding to the creation of the first sharing service subnet;
according to a first design principle and a first constraint condition, completing 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 presence of a gas in the gas,
when the first route is not found in the first resource pool according to the request, the method further comprises the following steps:
extracting a second design principle and a second constraint condition corresponding to the creation of the first route according to the request;
according to a second design principle and a second constraint condition, completing information registration of the first route, and generating a second service operation step and a second parameter;
and creating a first route according to the second service operation step and the second parameter.
Optionally, a communication connection between the first shared service subnet and the cloud platform management network is established according to the third network information and the fourth network information;
acquiring fifth network information corresponding to a second shared service subnet in the 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 the 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 subnet and the cloud platform management network;
adding a pre-generated first static routing table in a first route, wherein the first static routing table comprises path information from a first resource pool management network to a second shared service subnet;
and completing the 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 routing table.
Optionally, 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 a second route, wherein the second routing table comprises path information from a second shared service subnet to a second network;
and establishing network intercommunication 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 peer-to-peer connection is established between the first resource pool and the plurality of resource pools, a plurality of pre-generated first static routing tables are automatically added to the first route, so as to complete the peer-to-peer connection between the first resource pool and each of the plurality of resource pools.
Optionally, when the first network establishes network interworking with one or more second networks in the multiple resource pools, the multiple pre-generated second static routing tables are automatically added to the second route.
Optionally, when multiple second networks belong to the same resource pool, the multiple second networks share one second shared service subnet.
Optionally, when the first network establishes network interworking with the plurality of second networks and the plurality of second networks are not in the same virtual data center, peer-to-peer connection is established between the first network and each of the second networks.
The present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for network interworking across resource pools, as provided in any of the foregoing method embodiments.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be 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. Also, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present 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 (10)

1. A method of network interworking across resource pools, the method performed by a first resource pool server, the method comprising:
acquiring a request for establishing a 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 the first resource pool according to the request;
when the first shared service subnet and the first route are determined to exist, third network information is obtained, and peer-to-peer connection is established with the second resource pool according to the third network information, the first route and pre-obtained fourth network information of the management network of the first resource pool in the cloud platform management network;
and establishing network intercommunication 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.
2. The method of claim 1, wherein when the first shared service 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, completing information registration of the first shared service subnet, and generating a first service operation step and a first parameter;
creating the first service network according to the first service operation step and the first parameter;
and/or the presence of a gas in the gas,
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 creation of the first route according to the request;
according to the second design principle and the second constraint condition, completing 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.
3. The method according to claim 1 or 2, wherein establishing a peer-to-peer connection with the second resource pool according to the third network information, the first route, and the pre-acquired fourth network information of the management network of the first resource pool in the cloud platform management network specifically includes:
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;
acquiring 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 the 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 sharing service subnet and the cloud platform management network;
adding a pre-generated first static routing table in the first route, wherein the first static routing table comprises path information from the first resource pool management network to the second shared service subnet;
and according to third network information, the first route, the fourth network information and path information in the first static routing table, completing the peer-to-peer connection establishment between the first resource pool and the second resource pool.
4. The method according to claim 3, wherein the creating 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 comprises:
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 routing table comprises path information from the second shared service subnet to the second network;
and establishing network intercommunication 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.
5. The method according to claim 4, wherein when the first resource pool establishes peer-to-peer connections with a plurality of resource pools, respectively, a plurality of pre-generated first static routing tables are automatically added to the first route to complete the peer-to-peer connections between the first resource pool and each of the plurality of resource pools, respectively.
6. The method of claim 5, wherein when the first network establishes network interworking with one or more second networks in the plurality of resource pools, respectively, the method further comprises:
automatically adding a plurality of pre-generated second static routing tables on the second route.
7. The method of claim 6, wherein when multiple second networks belong to the same resource pool, the multiple second networks share a second shared service subnet.
8. The method of claim 5, 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, the first network establishes peer-to-peer connections with each of the second networks.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the steps of the method for interworking between resource pools according to any one of claims 1 to 8 when executing a program stored in the memory.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for network interworking across a resource pool according to any one of claims 1-8.
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 true CN114024886A (en) 2022-02-08
CN114024886B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277308A (en) * 2022-07-20 2022-11-01 杭州迪普科技股份有限公司 Method and device for deploying SSLVPN equipment in cloud resource pool
CN115460127A (en) * 2022-08-16 2022-12-09 度小满科技(北京)有限公司 Virtual routing method and device for different regional networks

Citations (8)

* 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
US20180337886A1 (en) * 2017-05-18 2018-11-22 Filegear Inc. Upgrading to direct connection for servers behind a network address translation device
US20190253274A1 (en) * 2018-02-14 2019-08-15 Megaport (Services) Pty Ltd. Network interconnection service
CN110401588A (en) * 2019-07-15 2019-11-01 浪潮云信息技术有限公司 VPC peer to peer connection method and system are realized in publicly-owned cloud platform based on openstack
CN111698338A (en) * 2019-03-15 2020-09-22 华为技术有限公司 Data transmission method and computer system
CN112333030A (en) * 2020-11-24 2021-02-05 北京百度网讯科技有限公司 Method, device, electronic equipment and storage medium for communication between private networks
CN112491980A (en) * 2020-11-13 2021-03-12 苏州浪潮智能科技有限公司 Cloud host service management method, system, terminal and storage medium
CN112688847A (en) * 2020-08-17 2021-04-20 紫光云技术有限公司 Method for realizing VPC (virtual private network) peer-to-peer connection in cloud network environment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180337886A1 (en) * 2017-05-18 2018-11-22 Filegear Inc. Upgrading to direct connection for servers behind a network address translation device
US20190253274A1 (en) * 2018-02-14 2019-08-15 Megaport (Services) Pty Ltd. Network interconnection service
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
CN110401588A (en) * 2019-07-15 2019-11-01 浪潮云信息技术有限公司 VPC peer to peer connection method and system are realized in publicly-owned 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
CN112491980A (en) * 2020-11-13 2021-03-12 苏州浪潮智能科技有限公司 Cloud host service management method, system, terminal and storage medium
CN112333030A (en) * 2020-11-24 2021-02-05 北京百度网讯科技有限公司 Method, device, electronic equipment and storage medium for communication between private networks

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
RAJIV RANJAN: ""peer-to-peer service provisioning in cloud computing environments"", 《SPRINGERLINK》 *
王明明: "运营商云资源池部署应用Overlay SDN解决方案", 《信息通信技术》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277308A (en) * 2022-07-20 2022-11-01 杭州迪普科技股份有限公司 Method and device for deploying SSLVPN equipment in cloud resource pool
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

Also Published As

Publication number Publication date
CN114024886B (en) 2023-04-21

Similar Documents

Publication Publication Date Title
CN107783815B (en) Method and device for determining virtual machine migration
CN107733670B (en) Forwarding strategy configuration method and device
CN102387061B (en) Method, device and system for accessing VPC (virtual private cloud) to VPN (virtual private network)
CN114024886B (en) Cross-resource-pool network intercommunication method, electronic equipment and readable storage medium
CN104219127A (en) Creation method and device of virtual network instance
CN105282003B (en) Establish the method and system and tunnel control device and virtual switch in tunnel
US8149840B2 (en) Method, system and processor for processing network address translation service
CN103441932A (en) Host routing table entry generating method and device
CN105684355A (en) Automatically configuring virtual router
KR101754618B1 (en) A method and apparatus for generating dinamic virtual network based on software defined networks
CN111817869A (en) Network configuration recovery method and related equipment thereof
CN107070790B (en) Route learning method and routing equipment
CN108259218A (en) A kind of IP address distribution method and device
EP3457640A1 (en) Route establishment and message sending
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
CN112217655B (en) Network equipment configuration method and device in SD-WAN system and computer equipment
CN116016448A (en) Service network access method, device, equipment and storage medium
CN107493181B (en) Indication method and device of virtual expansion port
CN112910776B (en) Data forwarding method, device, equipment and medium
CN113395206B (en) Route determining method, device and network equipment
CN103457864A (en) Method, device and network equipment for processing next-hop of routing
CN115334036B (en) Method and device for intelligently controlling source address conversion, electronic equipment and storage medium
CN112468600B (en) Application message notification method, system and storage medium based on network matrix
CN108833179A (en) A kind of generation method and device of mainframe network topology

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