CN114866467A - Cluster communication method, device, system, equipment and readable storage medium - Google Patents

Cluster communication method, device, system, equipment and readable storage medium Download PDF

Info

Publication number
CN114866467A
CN114866467A CN202210590010.XA CN202210590010A CN114866467A CN 114866467 A CN114866467 A CN 114866467A CN 202210590010 A CN202210590010 A CN 202210590010A CN 114866467 A CN114866467 A CN 114866467A
Authority
CN
China
Prior art keywords
cluster
virtual
clusters
interconnection
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210590010.XA
Other languages
Chinese (zh)
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 CN202210590010.XA priority Critical patent/CN114866467A/en
Publication of CN114866467A publication Critical patent/CN114866467A/en
Pending legal-status Critical Current

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/58Association of routers
    • H04L45/586Association of routers of virtual routers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/30Managing network names, e.g. use of aliases or nicknames
    • H04L61/3005Mechanisms for avoiding name conflicts
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

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

Abstract

The application discloses a cluster communication method, a device, a system, equipment and a readable storage medium in the technical field of computers. Aiming at the overlapped network segments existing in the two clusters, static routes can be configured on a first virtual router and a second virtual router in the two clusters to realize the communication connection of the overlapped network segments; for non-overlapping network segments, cluster communication can be realized based on a dynamic interconnection function and an interconnection database, so that the problem of IP conflict of overlapping network segments is solved. Meanwhile, only one inter-cluster virtual switch needs to be arranged in the cluster, and the router corresponding to each tenant network in the same cluster is connected with the inter-cluster virtual switch, so that the interconnection cost among the clusters is reduced. Accordingly, the cluster communication device, the cluster communication system, the cluster communication device and the readable storage medium have the same technical effects.

Description

Cluster communication method, device, system, equipment and readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a system, a device, and a readable storage medium for cluster communication.
Background
At present, a router corresponding to a tenant network in a cluster and a transit switch in the cluster are in a one-to-one correspondence relationship, so that one transit switch needs to be added every time a tenant network is added in the cluster, and resource waste exists. And overlapping network segments in different clusters cannot communicate due to IP collisions.
Therefore, how to reduce the interconnection cost among clusters and solve the problem of IP collision of overlapping network segments is a problem to be solved by those skilled in the art.
Disclosure of Invention
In view of the above, an object of the present application is to provide a cluster communication method, apparatus, system, device and readable storage medium, so as to reduce interconnection cost among clusters and solve the IP collision problem of overlapping network segments. The specific scheme is as follows:
in a first aspect, the present application provides a trunking communication method, including
If any two clusters have the overlapped network segment, closing the dynamic interconnection function aiming at the overlapped network segment, and configuring static routes on a first virtual router and a second virtual router in the two clusters so as to realize the communication connection of the overlapped network segment; starting a dynamic interconnection function aiming at non-overlapping network segments in two clusters so as to enable the two clusters to synchronize the non-overlapping network segments to an interconnection database respectively, and realizing communication connection of the non-overlapping network segments through the interconnection database;
if no overlapped network segment exists in any two clusters, starting a dynamic interconnection function aiming at each network segment in the two clusters so as to enable the two clusters to synchronize self network segments to the interconnection database respectively, and realizing communication connection of each network segment in the two clusters through the interconnection database;
in each cluster, any tenant network is connected with a first virtual router, each first virtual router is connected with a virtual switch in the same cluster, the virtual switch in the cluster is connected with at least two second virtual routers, any second virtual router is connected with at least one virtual gateway, and each virtual gateway is connected with a virtual switch between the same clusters; the inter-cluster virtual switches in each cluster are created based on the interconnection database and are in the same network segment.
Optionally, when any two clusters communicate, the routing path is selected based on the ECMP protocol.
Optionally, the creating process of the inter-cluster virtual switch in any cluster includes:
and any cluster respectively creates an inter-cluster virtual switch based on the switch name, the network segment and the interconnection database specified by the user.
Optionally, if a newly-built tenant network exists in any cluster, the dynamic interconnection function of the network segment corresponding to the currently-built tenant network is closed, a corresponding first virtual router is created for the currently-built tenant network based on a cluster database of the current cluster, and the first virtual router is connected to the intra-cluster virtual switch in the current cluster.
Optionally, the method further comprises:
and if any tenant network in any cluster is deleted, deleting the first virtual router corresponding to the tenant network.
In a second aspect, the present application provides a cluster communication device, comprising
The first interconnection module is used for closing a dynamic interconnection function aiming at an overlapped network segment if the overlapped network segment exists in any two clusters, and configuring static routes on a first virtual router and a second virtual router in the two clusters so as to realize communication connection of the overlapped network segment; starting a dynamic interconnection function aiming at non-overlapping network segments in two clusters so as to enable the two clusters to synchronize the non-overlapping network segments to an interconnection database respectively, and realizing communication connection of the non-overlapping network segments through the interconnection database;
the second interconnection module is used for starting a dynamic interconnection function aiming at each network segment in any two clusters if no overlapping network segment exists in any two clusters so as to enable the two clusters to synchronize self network segments to the interconnection database respectively and realize communication connection of each network segment in the two clusters through the interconnection database;
in each cluster, any tenant network is connected with a first virtual router, each first virtual router is connected with a virtual switch in the same cluster, the virtual switch in the cluster is connected with at least two second virtual routers, any second virtual router is connected with at least one virtual gateway, and each virtual gateway is connected with a virtual switch between the same clusters; the inter-cluster virtual switches in each cluster are created based on the interconnection database and are in the same network segment.
In a third aspect, the present application provides a trunking communication system, including: an interconnected database and at least two clusters, each cluster comprising: at least one tenant network;
in each cluster, any tenant network is connected with a first virtual router, each first virtual router is connected with a virtual switch in the same cluster, the virtual switch in the cluster is connected with at least two second virtual routers, any second virtual router is connected with at least one virtual gateway, and each virtual gateway is connected with a virtual switch between the same clusters;
the inter-cluster virtual switch in each cluster is established based on the interconnection database and is in the same network segment;
the clusters are communicatively connected according to any of the methods described above.
Optionally, a cluster database is further included in each cluster.
In a fourth aspect, the present application provides an electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the cluster communication method disclosed in the foregoing.
In a fifth aspect, the present application provides a readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the group communication method disclosed in the foregoing.
According to the scheme, the cluster communication method comprises the steps that if any two clusters have the overlapped network segments, the dynamic interconnection function is closed aiming at the overlapped network segments, and static routes are configured on a first virtual router and a second virtual router in the two clusters so as to realize communication connection of the overlapped network segments; starting a dynamic interconnection function aiming at non-overlapping network segments in two clusters so as to enable the two clusters to synchronize the non-overlapping network segments to an interconnection database respectively, and realizing communication connection of the non-overlapping network segments through the interconnection database; if no overlapped network segment exists in any two clusters, starting a dynamic interconnection function aiming at each network segment in the two clusters so as to enable the two clusters to synchronize self network segments to the interconnection database respectively, and realizing communication connection of each network segment in the two clusters through the interconnection database; in each cluster, any tenant network is connected with a first virtual router, each first virtual router is connected with a virtual switch in the same cluster, the virtual switch in the cluster is connected with at least two second virtual routers, any second virtual router is connected with at least one virtual gateway, and each virtual gateway is connected with a virtual switch between the same clusters; the inter-cluster virtual switches in each cluster are created based on the interconnection database and are in the same network segment.
Therefore, according to the method, for the overlapped network segments existing in the two clusters, static routes can be configured on the first virtual router and the second virtual router in the two clusters to realize the communication connection of the overlapped network segments; for non-overlapping network segments, cluster communication can be realized based on a dynamic interconnection function and an interconnection database, so that the problem of IP conflict of overlapping network segments is solved. Meanwhile, only one inter-cluster virtual switch needs to be arranged in the cluster, and the router corresponding to each tenant network in the same cluster is connected with the inter-cluster virtual switch, so that the interconnection cost among the clusters is reduced.
Accordingly, the cluster communication device, the cluster communication system, the cluster communication device and the readable storage medium have the same technical effects.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flow chart of a trunking communication method disclosed in the present application;
FIG. 2 is a schematic diagram of an intra-cluster topology disclosed herein;
FIG. 3 is a schematic diagram of an interconnection between clusters disclosed herein;
FIG. 4 is a schematic diagram of an IP configuration disclosed herein;
fig. 5 is a schematic diagram of a trunking communication apparatus disclosed herein;
fig. 6 is a schematic diagram of an electronic device disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
At present, a router corresponding to a tenant network in a cluster and a transit switch in the cluster are in a one-to-one correspondence relationship, so that one transit switch needs to be added every time a tenant network is added in the cluster, and resource waste exists. And overlapping network segments in different clusters cannot communicate due to IP collisions.
Therefore, the cluster communication scheme is provided, interconnection cost among clusters can be reduced, and meanwhile the problem of IP conflict of overlapped network segments is solved.
Referring to fig. 1, an embodiment of the present application discloses a trunking communication method, including
S101, if any two clusters have an overlapped network segment, closing a dynamic interconnection function aiming at the overlapped network segment, and configuring static routes on a first virtual router and a second virtual router in the two clusters so as to realize communication connection of the overlapped network segment; and starting a dynamic interconnection function aiming at the non-overlapping network segments in the two clusters so as to enable the two clusters to synchronize the non-overlapping network segments to an interconnection database respectively, and realizing communication connection of the non-overlapping network segments through the interconnection database.
The closing or opening of the dynamic interconnection function may be accomplished by operating the cluster database of the cluster, specifically, operating the NB _ Global table of the northbound database of the cluster OVN. If the dynamic interconnection function is started, the OVN ic process of the local cluster fills the opened network segment route into an interconnection database, and other clusters can learn the contents to the local. Specifically, the command for closing the dynamic interconnection function of a certain network segment may be: ovn-nbctl set NB _ global. options: ic-route-blacklist [ < subnet segment >.
The process of configuring the static route may be: and adding ecmp high available static routes to a first virtual router and a second virtual router in the opposite-end cluster, so that the first virtual router leads the traffic to the second virtual router according to the configured static routes, and the second virtual router leads the traffic to the opposite-end cluster according to the configured static routes. Correspondingly, a static route is added to the second virtual router of the cluster, so that the second virtual router guides the flow to the first virtual router of the cluster according to the added static route.
S102, if no overlapped network segment exists in any two clusters, starting a dynamic interconnection function aiming at each network segment in the two clusters so as to enable the two clusters to synchronize self network segments to an interconnection database respectively, and realizing communication connection of each network segment in the two clusters through the interconnection database.
Referring to fig. 2, in each cluster, any tenant network is connected to a first virtual router, each first virtual router is connected to a virtual switch in the same cluster, the virtual switch in the cluster is connected to at least two second virtual routers, any second virtual router is connected to at least one virtual gateway, and each virtual gateway is connected to a virtual switch between the same clusters. The inter-cluster virtual switches in each cluster are created based on the interconnection database and are in the same network segment, so that each cluster can communicate through the inter-cluster virtual switches.
Wherein, a tenant network refers to: a network under a first virtual router. Within each cluster, any one tenant network corresponds to only one first virtual router.
It should be noted that step S101 and step S102 do not limit the execution order, that is: the two steps may be performed out of order.
In a specific embodiment, when any two clusters communicate, a Routing path is selected based on an ECMP (Equal-Cost multi path Routing) protocol to implement: and meanwhile, a plurality of routing links are used, so that the transmission bandwidth is increased, and the data transmission of the failed link can be backed up without time delay and packet loss. For example: when a request is sent to B in the cluster A, the traffic in the cluster A selects a static route at the first virtual router through the ECMP to reach the second virtual router of the next hop of the static route, and then the ECMP selects a static route at the second virtual router again to lead the traffic to the opposite-end cluster. In the B cluster, the traffic passes through the first virtual router and the second virtual router to reach a container or a virtual machine to be accessed.
In one embodiment, the creating process of the inter-cluster virtual switch in any cluster includes: any cluster respectively creates an inter-cluster virtual switch based on the switch name, the network segment and the interconnection database specified by the user. It can be seen that creating an inter-cluster virtual switch requires specifying the switch name, network segment, and north-south ports of the interconnected databases, so that each cluster can create switches with the same name and configure ports of the same network segment accordingly. Wherein, the north-south port of the interconnection database is appointed, so that each cluster can be conveniently connected with the interconnection database.
The interconnection database is an OVN (open Virtual network) database. OVN is the control plane of OVS (open vSwitch), which adds the native support to the virtual network for OVS, and greatly improves the performance and scale of OVS in the practical application environment. The OVS is a high quality multi-layer virtual switch.
In a specific embodiment, if a newly-built tenant network exists in any cluster, the dynamic interconnection function of the network segment corresponding to the currently-built tenant network is closed, a corresponding first virtual router is created for the currently-built tenant network based on a cluster database of the current cluster, and the first virtual router is connected to an intra-cluster virtual switch in the current cluster. It can be seen that, before the newly-built tenant network is connected with the virtual switch in the cluster, the dynamic interconnection function of the automatic notification is closed, and subsequently, if the network segment corresponding to the newly-built tenant network is confirmed not to be overlapped with other clusters, the dynamic interconnection function can be started. And if the network segment corresponding to the newly-built tenant network is confirmed to be overlapped with other clusters, performing static routing configuration.
In a specific embodiment, if any tenant network in any cluster is deleted, the first virtual router corresponding to the tenant network is deleted.
As can be seen, in this embodiment, for an overlapping network segment existing in two clusters, static routes may be configured on a first virtual router and a second virtual router in the two clusters to implement communication connection of the overlapping network segment; for non-overlapping network segments, cluster communication can be realized based on a dynamic interconnection function and an interconnection database, so that the problem of IP conflict of overlapping network segments is solved. Meanwhile, only one inter-cluster virtual switch needs to be arranged in the cluster, and the router corresponding to each tenant network in the same cluster is connected with the inter-cluster virtual switch, so that the interconnection cost among the clusters is reduced.
The following examples are presented by way of example of two clusters, openstack and kubernets. The interconnection of the openstack cluster and the kubernets cluster introduced below is still based on OVN, and three layers of high availability intercommunication can be realized. The scheme does not depend on a third party component, and three-layer intercommunication of openstack and kubernets can be quickly realized only by using OVN native functions such as OVN ic, static routing, a virtual machine router, a virtual switch and the like. The switch, the router, the gateway and the like related to the embodiment are all virtual devices.
Referring to fig. 3, the intra-cluster transit switches and inter-cluster interconnection routers in the openstack and kubernets can connect the vpc virtual router in the cluster to the outside, and the inter-cluster transit switches shared by the openstack and the kubernets can interconnect the openstack and the kubernets. Fig. 3 illustrates an inter-cluster transit switch that is logically two and thus shared by openstack and kubernets.
Specifically, the interconnection system shown in fig. 3 can be implemented according to the following steps:
1. and (4) starting an OVN ic database (namely an interconnection database), and respectively starting an OVN ic function in openstack and kubernets.
2. And respectively creating a required transfer switch in the cluster and an interconnection router between the clusters in the two clusters, wherein one vpc virtual router in the cluster is an outlet of one tenant network in the cluster.
3. The intra-cluster transit switch is connected with the vpc virtual router through an ovn-nbctl command, the intra-cluster transit switch is connected with the inter-cluster interconnection router, and the inter-cluster transit switch is connected with 2 inter-cluster interconnection routers. The port of the gateway node is the port of the inter-cluster interconnection router, so that the inter-cluster transit switch and the inter-cluster interconnection router are directly connected, but logically, traffic passes through the gateway node.
The transit switches in the two clusters mainly make the flow circulate in the cluster, so the network segment and the ip address can be the same. Virtual ip of interconnection routers and gateway ports among clusters needs to be inherited to network segments of transit switches among clusters, so ip addresses cannot be overlapped.
Further, aiming at the non-overlapped subnets of the two clusters, the subnets are configured to automatically announce to realize three-layer intercommunication, ovn ic learns the gateway information of the opposite end and writes the gateway information into the openstack/kubernets cluster, and the high availability of the network access gateway is fully automatically realized. For overlapping subnets of two clusters: and (3) closing the automatic notification of the subnet, adding an ecmp static route of a certain ip in the vpc virtual router, and enabling the next hop to be an inter-cluster interconnection router, thereby realizing high availability of the gateway of the outgoing network. And an ecmp static route of the ip is configured on the interconnection router among the clusters, and the next hop is an opposite-end cluster gateway port virtual ip, so that the high availability of the network access gateway is realized. Referring to fig. 4, the IP of each device may be configured as in fig. 4 to implement communication.
The static route added by the vpc router leads the flow to the inter-cluster transit switch, and the inter-cluster transit switch is used for communicating the three-layer flow of openstack and kubernets. A plurality of ecmp routing gateways deployed in an Openstack/kubernets cluster can realize high availability of communication in the cluster and among the clusters, and improve three-layer intercommunication availability. And identifying an overlapped network segment among clusters, closing the ovn ic dynamic announcement of the overlapped network segment, and adding a 32-bit network segment static route to the vpc virtual router and the interconnection router to realize three-layer intercommunication of openstack and kubernets overlapped network segment traffic. And the ovn ic native network segment dynamic notification function can rapidly get through the traffic of the non-overlapping network segment only by adding a static route to the vpc virtual router.
It can be seen that, in this embodiment, after the cluster separately creates the inter-cluster interconnection router, when each vpc router is added, only the relationship between the vpc virtual router and the transit switch in the cluster needs to be configured, so that three-layer intercommunication between clusters can be quickly achieved, and cumbersome configuration can be reduced. As shown in fig. 3, each cluster contains 2 inter-cluster interconnection routers, and a plurality of gateway nodes. After the outgoing cluster traffic is statically routed through the ecmp gateway of the vpc virtual router, the traffic reaches different outgoing gateways, and the outgoing gateway can be highly available. The relay switch between the clusters associates the openstack gateway with the kubernets gateway, and the flow reaches different network access gateways after the cluster access flow is statically routed through the ecmp gateway of the inter-cluster interconnection router, so that the high availability of the network access gateways is realized.
Thus, the present application has the following advantages:
1. using OVN technology for both clusters avoids the added operational complexity and development cost of using multiple technology stacks.
2. Three-layer intercommunication of openstack and kubernets high availability can be rapidly realized by using ovn native functions.
3. The method can support the intercommunication of the vpc routers of a plurality of tenants, and can quickly finish the change of the relationship between the vpc router and the transit switch in the cluster when the vpc router of one tenant is added or deleted. The inter-cluster network isolation and high availability of access gateways are realized through simple configuration in a loose coupling mode.
4. The gateway ecmp is available, and the availability of three-layer intercommunication is greatly improved.
In the following, a group communication apparatus provided in an embodiment of the present application is introduced, and a group communication apparatus described below and a group communication method described above may refer to each other.
Referring to fig. 5, an embodiment of the present application discloses a cluster communication apparatus, including
A first interconnection module 501, configured to close a dynamic interconnection function for an overlapping network segment if the overlapping network segment exists in any two clusters, and configure a static route on a first virtual router and a second virtual router in the two clusters to implement communication connection of the overlapping network segment; starting a dynamic interconnection function aiming at non-overlapping network segments in two clusters so as to enable the two clusters to synchronize the non-overlapping network segments to an interconnection database respectively, and realizing communication connection of the non-overlapping network segments through the interconnection database;
a second interconnection module 502, configured to, if there is no overlapping network segment in any two clusters, start a dynamic interconnection function for each network segment in the two clusters, so that the two clusters synchronize their own network segments to an interconnection database respectively, and implement communication connection of each network segment in the two clusters through the interconnection database;
in each cluster, any tenant network is connected with a first virtual router, each first virtual router is connected with a virtual switch in the same cluster, the virtual switch in the cluster is connected with at least two second virtual routers, any second virtual router is connected with at least one virtual gateway, and each virtual gateway is connected with a virtual switch between the same clusters; the inter-cluster virtual switches in each cluster are created based on the interconnection database and are in the same network segment.
In one embodiment, when any two clusters communicate, the routing path is selected based on the ECMP protocol.
In one embodiment, the creating process of the inter-cluster virtual switch in any cluster includes: any cluster respectively creates an inter-cluster virtual switch based on the switch name, the network segment and the interconnection database specified by the user.
In one embodiment of the present invention, the substrate is,
and the creating module is used for closing the dynamic interconnection function of the network segment corresponding to the newly-built tenant network if the newly-built tenant network exists in any cluster, creating a corresponding first virtual router for the newly-built tenant network based on the cluster database of the current cluster, and connecting the first virtual router to the intra-cluster virtual switch in the current cluster.
In one embodiment of the present invention, the substrate is,
and the deleting module is used for deleting the first virtual router corresponding to the tenant network if any tenant network in any cluster is deleted.
For more specific working processes of each module and unit in this embodiment, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not described here again.
Therefore, the embodiment provides a trunking communication device, which can reduce interconnection cost among clusters and solve the problem of IP collision of overlapping network segments.
In the following, a group communication system provided by an embodiment of the present application is introduced, and a group communication system described below and a group communication method and apparatus described above may be referred to each other.
The embodiment of the application discloses a trunking communication system, comprising: an interconnected database and at least two clusters, each cluster comprising: at least one tenant network; in each cluster, any tenant network is connected with a first virtual router, each first virtual router is connected with a virtual switch in the same cluster, the virtual switch in the cluster is connected with at least two second virtual routers, any second virtual router is connected with at least one virtual gateway, and each virtual gateway is connected with a virtual switch between the same clusters; the inter-cluster virtual switches in each cluster are created based on the interconnection database and are in the same network segment.
Wherein, each cluster performs communication connection according to the method described in any of the above embodiments.
In one embodiment, a cluster database is further included in each cluster.
If communication among different clusters needs to be established, the method is implemented as follows: if any two clusters have the overlapped network segment, closing the dynamic interconnection function aiming at the overlapped network segment, and configuring static routes on a first virtual router and a second virtual router in the two clusters so as to realize the communication connection of the overlapped network segment; and starting a dynamic interconnection function aiming at the non-overlapping network segments in the two clusters so as to enable the two clusters to synchronize the non-overlapping network segments to an interconnection database respectively, and realizing communication connection of the non-overlapping network segments through the interconnection database. If no overlapped network segment exists in any two clusters, the dynamic interconnection function is started aiming at each network segment in the two clusters, so that the two clusters synchronize the network segments to the interconnection database respectively, and the communication connection of each network segment in the two clusters is realized through the interconnection database.
In one embodiment, any two clusters communicate, and the routing path is selected based on the ECMP protocol.
In one embodiment, the creating process of the inter-cluster virtual switch in any cluster includes: any cluster respectively creates an inter-cluster virtual switch based on the switch name, the network segment and the interconnection database specified by the user.
In a specific embodiment, if a newly-built tenant network exists in any cluster, the dynamic interconnection function of the network segment corresponding to the currently-built tenant network is closed, a corresponding first virtual router is created for the currently-built tenant network based on a cluster database of the current cluster, and the first virtual router is connected to an intra-cluster virtual switch in the current cluster.
In a specific embodiment, if any tenant network in any cluster is deleted, the first virtual router corresponding to the tenant network is deleted.
For more specific working processes of each module and unit in this embodiment, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not described here again.
Therefore, the embodiment provides a trunking communication system, which can reduce interconnection cost among clusters and solve the problem of IP collision of overlapping network segments.
In the following, an electronic device provided by an embodiment of the present application is introduced, and an electronic device described below and a cluster communication method and apparatus described above may be referred to each other.
Referring to fig. 6, an embodiment of the present application discloses an electronic device, including:
a memory 601 for storing a computer program;
a processor 602 configured to execute the computer program to implement the method disclosed in any of the embodiments.
In the following, a readable storage medium provided by an embodiment of the present application is introduced, and a readable storage medium described below and a cluster communication method, apparatus, and device described above may be referred to each other.
A readable storage medium for storing a computer program, wherein the computer program when executed by a processor implements the cluster communication method disclosed in the previous embodiments. For the specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, which are not described herein again.
References in this application to "first," "second," "third," "fourth," etc., if any, are intended to distinguish between similar elements and not necessarily to describe a particular order or sequence. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises" and "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, or apparatus.
It should be noted that the descriptions in this application referring to "first", "second", etc. are for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present application.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of readable storage medium known in the art.
The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method of cluster communication, comprising
If any two clusters have the overlapped network segment, closing the dynamic interconnection function aiming at the overlapped network segment, and configuring static routes on a first virtual router and a second virtual router in the two clusters so as to realize the communication connection of the overlapped network segment; starting a dynamic interconnection function aiming at non-overlapping network segments in two clusters so as to enable the two clusters to synchronize the non-overlapping network segments to an interconnection database respectively, and realizing communication connection of the non-overlapping network segments through the interconnection database;
if no overlapped network segment exists in any two clusters, starting a dynamic interconnection function aiming at each network segment in the two clusters so as to enable the two clusters to synchronize self network segments to the interconnection database respectively, and realizing communication connection of each network segment in the two clusters through the interconnection database;
in each cluster, any tenant network is connected with a first virtual router, each first virtual router is connected with a virtual switch in the same cluster, the virtual switch in the cluster is connected with at least two second virtual routers, any second virtual router is connected with at least one virtual gateway, and each virtual gateway is connected with a virtual switch between the same clusters; the inter-cluster virtual switches in each cluster are created based on the interconnection database and are in the same network segment.
2. The method of claim 1, wherein any two clusters communicate based on ECMP protocol for routing.
3. The method of claim 1, wherein the creating of the inter-cluster virtual switch in any cluster comprises:
and any cluster respectively creates an inter-cluster virtual switch based on the switch name, the network segment and the interconnection database specified by the user.
4. The method according to claim 1, wherein if there is a newly-built tenant network in any cluster, the dynamic interconnection function of the network segment corresponding to the currently newly-built tenant network is closed, and a corresponding first virtual router is created for the currently newly-built tenant network based on the cluster database of the current cluster, and the first virtual router is connected to the intra-cluster virtual switch in the current cluster.
5. The method of claim 4, further comprising:
and if any tenant network in any cluster is deleted, deleting the first virtual router corresponding to the tenant network.
6. A cluster communication apparatus, comprising
The first interconnection module is used for closing a dynamic interconnection function aiming at an overlapped network segment if the overlapped network segment exists in any two clusters, and configuring static routes on a first virtual router and a second virtual router in the two clusters so as to realize communication connection of the overlapped network segment; starting a dynamic interconnection function aiming at non-overlapping network segments in two clusters so as to enable the two clusters to synchronize the non-overlapping network segments to an interconnection database respectively, and realizing communication connection of the non-overlapping network segments through the interconnection database;
the second interconnection module is used for starting a dynamic interconnection function aiming at each network segment in any two clusters if no overlapping network segment exists in any two clusters so as to enable the two clusters to synchronize self network segments to the interconnection database respectively and realize communication connection of each network segment in the two clusters through the interconnection database;
in each cluster, any tenant network is connected with a first virtual router, each first virtual router is connected with a virtual switch in the same cluster, the virtual switch in the cluster is connected with at least two second virtual routers, any second virtual router is connected with at least one virtual gateway, and each virtual gateway is connected with a virtual switch between the same clusters; the inter-cluster virtual switches in each cluster are created based on the interconnection database and are in the same network segment.
7. A group communication system, comprising: an interconnected database and at least two clusters, each cluster comprising: at least one tenant network;
in each cluster, any tenant network is connected with a first virtual router, each first virtual router is connected with a virtual switch in the same cluster, the virtual switch in the cluster is connected with at least two second virtual routers, any second virtual router is connected with at least one virtual gateway, and each virtual gateway is connected with a virtual switch between the same clusters;
the inter-cluster virtual switch in each cluster is established based on the interconnection database and is in the same network segment;
the clusters are communicatively connected according to the method of any one of claims 1 to 6.
8. The system of claim 7, further comprising a cluster database in each cluster.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the method of any one of claims 1 to 5.
10. A readable storage medium for storing a computer program, wherein the computer program when executed by a processor implements the method of any one of claims 1 to 5.
CN202210590010.XA 2022-05-27 2022-05-27 Cluster communication method, device, system, equipment and readable storage medium Pending CN114866467A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210590010.XA CN114866467A (en) 2022-05-27 2022-05-27 Cluster communication method, device, system, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210590010.XA CN114866467A (en) 2022-05-27 2022-05-27 Cluster communication method, device, system, equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN114866467A true CN114866467A (en) 2022-08-05

Family

ID=82641069

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210590010.XA Pending CN114866467A (en) 2022-05-27 2022-05-27 Cluster communication method, device, system, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114866467A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115987890A (en) * 2023-03-20 2023-04-18 苏州浪潮智能科技有限公司 Cross-cluster virtual IP address access method and device, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026591A (en) * 2007-04-13 2007-08-29 杭州华为三康技术有限公司 Network address confilict user inter-access method and route repeating device
CN101582830A (en) * 2009-06-22 2009-11-18 杭州华三通信技术有限公司 Device for realizing mutual access of crossing virtual private networks and method
CN105391771A (en) * 2015-10-16 2016-03-09 张陵 Multi-tenant-oriented cloud network architecture
CN109462534A (en) * 2017-09-06 2019-03-12 中国银联股份有限公司 Regional internet controller, regional internet control method and computer storage medium
CN110266833A (en) * 2019-07-16 2019-09-20 广州虎牙科技有限公司 IP address management method and edge cluster
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
CN110611588A (en) * 2019-09-02 2019-12-24 深信服科技股份有限公司 Network creation method, server, computer readable storage medium and system
CN112688847A (en) * 2020-08-17 2021-04-20 紫光云技术有限公司 Method for realizing VPC (virtual private network) peer-to-peer connection in cloud network environment
US11108629B1 (en) * 2020-04-02 2021-08-31 Vmware, Inc. Dynamic configuration of a cluster network in a virtualized computing system
CN113596159A (en) * 2021-07-30 2021-11-02 北京南凯自动化系统工程有限公司 Cluster communication method and device based on k8s cloud container platform

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026591A (en) * 2007-04-13 2007-08-29 杭州华为三康技术有限公司 Network address confilict user inter-access method and route repeating device
CN101582830A (en) * 2009-06-22 2009-11-18 杭州华三通信技术有限公司 Device for realizing mutual access of crossing virtual private networks and method
CN105391771A (en) * 2015-10-16 2016-03-09 张陵 Multi-tenant-oriented cloud network architecture
CN109462534A (en) * 2017-09-06 2019-03-12 中国银联股份有限公司 Regional internet controller, regional internet control method and computer storage medium
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
CN110266833A (en) * 2019-07-16 2019-09-20 广州虎牙科技有限公司 IP address management method and edge cluster
CN110611588A (en) * 2019-09-02 2019-12-24 深信服科技股份有限公司 Network creation method, server, computer readable storage medium and system
US11108629B1 (en) * 2020-04-02 2021-08-31 Vmware, Inc. Dynamic configuration of a cluster network in a virtualized computing system
CN112688847A (en) * 2020-08-17 2021-04-20 紫光云技术有限公司 Method for realizing VPC (virtual private network) peer-to-peer connection in cloud network environment
CN113596159A (en) * 2021-07-30 2021-11-02 北京南凯自动化系统工程有限公司 Cluster communication method and device based on k8s cloud container platform

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
M. CAVALCANTE ET AL.: "MemPool-3D: Boosting Performance and Efficiency of Shared-L1 Memory Many-Core Clusters with 3D Integration", 2022 DESIGN, AUTOMATION & TEST IN EUROPE CONFERENCE & EXHIBITION (DATE), ANTWERP, BELGIUM, 2022, 19 May 2022 (2022-05-19) *
严立宇;祖立军;叶家炜;周雍恺;吴承荣;: "云计算网络中多租户虚拟网络隔离的分布式实现研究", 计算机应用与软件, no. 11, 15 November 2016 (2016-11-15) *
胡媛: "基于集群路由技术的IP网的设计与实现", 中国知网硕士电子期刊, no. 2012, 15 February 2012 (2012-02-15) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115987890A (en) * 2023-03-20 2023-04-18 苏州浪潮智能科技有限公司 Cross-cluster virtual IP address access method and device, electronic equipment and storage medium
CN115987890B (en) * 2023-03-20 2023-06-09 苏州浪潮智能科技有限公司 Method, device, electronic equipment and storage medium for cross-cluster access to virtual IP address

Similar Documents

Publication Publication Date Title
US11563602B2 (en) Method and apparatus for providing a point-to-point connection over a network
CN106789667B (en) Data forwarding method, related equipment and system
CN111865779B (en) Route synchronization method and cross-device link aggregation group
TW202034662A (en) Host routed overlay with deterministic host learning and localized integrated routing and bridging
CN107733795B (en) Ethernet virtual private network EVPN and public network intercommunication method and device
CN102611618B (en) Route protection converting method and device
CN110474792B (en) Network configuration method, equipment and system
JP2002508123A (en) System and method for a multilayer network element
CN111556110B (en) Automatic adaptation method for different physical service networks of private cloud system
EP3605959A1 (en) Method, device and computer storage medium for implementing double control plane
CN111698338A (en) Data transmission method and computer system
CN112491984B (en) Container editing engine cluster management system based on virtual network bridge
JP2010531602A (en) Method and apparatus for communication of diagnostic data in a real-time communication network
CN113992577B (en) Network intercommunication method, device, equipment and medium
CN102891903B (en) A kind of NAT method and equipment
CN114401274B (en) Communication line creation method, device, equipment and readable storage medium
CN117041205A (en) Address translation method, address translation device, host and computer readable storage medium
CN112385194B (en) State packet transmission between remote networks
CN114866467A (en) Cluster communication method, device, system, equipment and readable storage medium
CN115150327A (en) Interface setting method, device, equipment and medium
CN115150224A (en) Inter-cluster network two-layer communication method, device, equipment and storage medium
CN115277349B (en) Method for configuring distributed gateway, open virtual network and storage medium
CN115865601A (en) SDN network communication system of cross-cloud data center
CN110545240B (en) Method for establishing label forwarding table and forwarding message based on distributed aggregation system
CN107666429B (en) Switch logic deployment method and terminal in Overlay network

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