CN114172762B - Communication method, device, system and readable storage medium - Google Patents

Communication method, device, system and readable storage medium Download PDF

Info

Publication number
CN114172762B
CN114172762B CN202111278725.3A CN202111278725A CN114172762B CN 114172762 B CN114172762 B CN 114172762B CN 202111278725 A CN202111278725 A CN 202111278725A CN 114172762 B CN114172762 B CN 114172762B
Authority
CN
China
Prior art keywords
frr
ovn
site
information
opposite
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111278725.3A
Other languages
Chinese (zh)
Other versions
CN114172762A (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.)
Guangdong Inspur Smart Computing Technology Co Ltd
Original Assignee
Guangdong Inspur Smart Computing Technology Co Ltd
Filing date
Publication date
Application filed by Guangdong Inspur Smart Computing Technology Co Ltd filed Critical Guangdong Inspur Smart Computing Technology Co Ltd
Priority to CN202111278725.3A priority Critical patent/CN114172762B/en
Publication of CN114172762A publication Critical patent/CN114172762A/en
Application granted granted Critical
Publication of CN114172762B publication Critical patent/CN114172762B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application discloses a communication method, a device, a system and a readable storage medium, wherein the method is applied to a local station, OVN and FRR are arranged in the local station, and the method comprises the following steps: OVN perceives the resource change in the local site, acquires the resource change information, and sends the resource change information to the FRR; the FRR advertises the resource variation information to the FRR in the opposite site so that the FRR in the opposite site processes in OVN in the opposite site according to the resource variation information. According to the technical scheme disclosed by the application, OVN is a virtual switch realized by adopting an Openflow technology, so that the change of internal resources of the sites can be accurately and conveniently perceived, and the large two-layer communication among the multiple sites is realized by means of OVN and FRR without depending on pure hardware, so that the complexity and cost of the communication among the sites can be reduced, and the convenience of operation and maintenance can be improved conveniently.

Description

Communication method, device, system and readable storage medium
Technical Field
The present application relates to the technical field of SDN, and in particular, to a communication method, device, system and readable storage medium.
Background
The development of SDN (Software Defined Network ) is gradually maturing from the concept of initial forwarding and control separation to the fields of data centers, enterprise campus networks, etc. The scale of cloud computing production environment deployment using SDN is also increasing, and there are generally multi-center site construction requirements and communication requirements with virtual networks and physical networks in large-scale cloud computing production environments.
At present, a hardware switch is generally used for meeting the requirement of large two-layer communication among stations in a multi-center station, but the cost of implementation is relatively high and the actual operation and maintenance are relatively complex by simply relying on the hardware switch, the hardware switch is difficult to perceive the state of a virtual machine in a server, and an additional development plug-in is required for butt joint of a physical switch and a virtual switching network, so that the implementation is relatively complex.
In summary, how to reduce the cost and complexity of the inter-site large two-layer communication is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
Accordingly, it is an object of the present application to provide a communication method, apparatus, system, and readable storage medium for reducing the cost and complexity of two-tier communication between sites.
In order to achieve the above object, the present application provides the following technical solutions:
a communication method applied to a home terminal site, wherein OVN and FRR are provided in the home terminal site, the communication method comprising:
the OVN senses the resource change in the home terminal station, acquires the resource change information, and sends the resource change information to the FRR;
the FRR announces the resource change information to FRR in the opposite terminal station, so that the FRR in the opposite terminal station processes in OVN in the opposite terminal station according to the resource change information.
Preferably, the OVN senses a resource change in the home terminal station, obtains resource change information, and sends the resource change information to the FRR, including:
The OVN senses the starting of the virtual machine, acquires the IP, the MAC and the VXLAN network information of the started virtual machine, and informs the IP, the MAC and the VXLAN network information of the started virtual machine to the FRR through ovsdb event information;
the FRR advertising the resource variation information to the FRR in the opposite site, so that the FRR in the opposite site processes in OVN in the opposite site according to the resource variation information, including:
The FRR adopts an EVPN type2 message to announce the IP, the MAC and the VXLAN network information of the started virtual machine to the FRR in the opposite terminal node, so that the FRR in the opposite terminal node creates a logic port simulating the started virtual machine in the local terminal station according to the EVPN type2 message in OVN of the opposite terminal station, and issues a flow table for the access forwarding of the started virtual machine from the opposite terminal station to the local terminal station according to the logic port.
Preferably, the OVN senses a resource change in the home terminal station, obtains resource change information, and sends the resource change information to the FRR, including:
The OVN senses the joining of a server node, acquires tunnel endpoint information of the server node, and notifies the tunnel endpoint information to the FRR through ovsdb event information;
the FRR advertising the resource variation information to the FRR in the opposite site, so that the FRR in the opposite site processes in OVN in the opposite site according to the resource variation information, including:
The FRR advertises the tunnel endpoint information to the FRR in the opposite site using an EVPN type3 message, such that the FRR in the opposite site creates a emulated logical server node in OVN in the opposite site according to the tunnel address and VXLAN ID in the EVPN type3 message, and OVN in the opposite site establishes a VXLAN tunnel with the emulated logical server node.
Preferably, the OVN senses a resource change in the home terminal station, obtains resource change information, and sends the resource change information to the FRR, including:
The OVN senses the closing of the virtual machine, acquires the IP, the MAC and the VXLAN network information of the closed virtual machine, and informs the IP, the MAC and the VXLAN network information of the closed virtual machine to the FRR through ovsdb event information;
the FRR advertising the resource variation information to the FRR in the opposite site, so that the FRR in the opposite site processes in OVN in the opposite site according to the resource variation information, including:
and the FRR adopts an EVPN type2 revocation message to announce the IP, the MAC and the VXLAN network information of the closed virtual machine to the FRR in the opposite terminal node, so that the FRR in the opposite terminal node searches a corresponding logic port and a flow table in OVN in the opposite terminal node according to the EVPN type2 revocation message and deletes the corresponding logic port and the flow table.
Preferably, the OVN senses a resource change in the home terminal station, obtains resource change information, and sends the resource change information to the FRR, including:
the OVN perceives that the server node is down or removed, acquires tunnel endpoint information of the down or removed server node, and notifies the tunnel endpoint information to the FRR through ovsdb event information;
the FRR advertising the resource variation information to the FRR in the opposite site, so that the FRR in the opposite site processes in OVN in the opposite site according to the resource variation information, including:
And the FRR adopts an EVPN type3 revocation message to announce the tunnel endpoint information to the FRR in the opposite terminal station, so that the FRR in the opposite terminal station searches a corresponding VXLAN tunnel in OVN in the opposite terminal station according to the tunnel address and the VXLAN ID in the EVPN type3 revocation message and deletes the corresponding VXLAN tunnel.
Preferably, the method further comprises:
And the FRR in the home terminal station receives the type 5 message advertised by the EVPN, and creates a network segment route forwarding table corresponding to the type 5 message in OVN in the home terminal station according to the type 5 message so as to be used for guiding external physical network traffic to access the network segment virtual machine corresponding to the type 5 message.
Preferably, the method further comprises:
And the FRR in the home terminal station receives the type 5 withdrawal message advertised by the EVPN, and deletes the network segment routing forwarding table corresponding to the type 5 withdrawal message in OVN in the home terminal station according to the type 5 withdrawal message.
A communication device applied to a home site, wherein OVN and FRR are disposed in the home site, the communication device comprising:
The sensing module is configured to sense a resource change in the home terminal station by using the OVN, acquire resource change information, and send the resource change information to the FRR;
And the notification module is used for notifying the FRR of the resource change information to the FRR in the opposite terminal station so that the FRR in the opposite terminal station can be processed in OVN in the opposite terminal station according to the resource change information.
The communication system comprises a local end station and an opposite end station, wherein OVN and FRR are arranged in the local end station and the opposite end station respectively:
OVN in the home terminal station senses the resource change in the home terminal station, acquires the resource change information, and sends the resource change information to the FRR in the home terminal station; the FRR in the home terminal station informs the FRR in the opposite terminal station of the resource change information;
and the FRR in the opposite terminal station receives the resource change information and processes the resource change information in OVN in the opposite terminal station according to the resource change information.
A readable storage medium having stored therein a computer program which, when executed by a processor, implements the steps of the communication method as claimed in any one of the preceding claims.
The application provides a communication method, a device, a system and a readable storage medium, wherein the method is applied to a local station, OVN and FRR are arranged in the local station, and the method comprises the following steps: OVN perceives the resource change in the local site, acquires the resource change information, and sends the resource change information to the FRR; the FRR advertises the resource variation information to the FRR in the opposite site so that the FRR in the opposite site processes in OVN in the opposite site according to the resource variation information.
According to the technical scheme disclosed by the application, OVN and FRR are arranged in the site, wherein BGP neighbors are established between the local site and the opposite site through FFR, and OVN is a virtual switch realized by adopting an Openflow technology, so that the internal resource change of the site can be accurately and conveniently perceived, meanwhile, the resource change information can be acquired by utilizing OVN and sent to the FRR in the local site, the FRR is utilized to announce related information to the FRR in the opposite site, and the FRR in the opposite site is correspondingly processed in OVN of the opposite site according to the related information, so that the communication and interaction of the site are realized.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a communication method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a communication system according to an embodiment of the present application;
Fig. 3 is a schematic diagram of a communication method according to an embodiment of the present application applied to a first scenario;
Fig. 4 is a schematic diagram of a communication method according to an embodiment of the present application applied to a second scenario;
Fig. 5 is a schematic structural diagram of a communication device according to an embodiment of the present application.
Detailed Description
The core of the application is to provide a communication method, a device, a system and a readable storage medium, which are used for reducing the cost and complexity of site communication.
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Referring to fig. 1 and fig. 2, fig. 1 shows a flowchart of a communication method provided by an embodiment of the present application, and fig. 2 shows a schematic structural diagram of a communication system provided by an embodiment of the present application. The communication method provided by the embodiment of the application is applied to a local site, OVN and FRR are arranged in the local site, and the communication method can comprise the following steps:
s11: OVN senses the resource change in the local site, acquires the resource change information, and sends the resource change information to the FRR.
In the application, OVN (Open Virtual Network ) and FRR (a fully functional, high performance free software IP routing suite, which is a high performance suite written primarily in C language) are provided in each of the multi-center sites. It should be noted that, in the present application, OVN is a OVN open source component, FRR is an FRR routing component, OVN is implemented by using Openflow (a network communication protocol, which belongs to a data link layer, and can control a forwarding plane of an on-line switch or a router, thereby changing a network path taken by a network data packet), that is, OVN in the present application may be regarded as a virtual switch implemented by using Openflow technology, so as to sense a state of a virtual machine in a server by using the Openflow technology, and FRR is implemented by using EVPN (Ethernet Virtual Private Network, ethernet virtual private network, which is a VPN technology for two-layer network interconnection) technology. In addition, each site in the multi-center site is further provided with a Neutron (which is a component responsible for providing a network server in the OpenStack project and is based on the thought of a software-defined network, so that resource management under network virtualization is realized), and the Neutron is specifically arranged in an SDN controller, namely, the Neutron and OVN are used as an SDN control plane in the site, meanwhile, FFR is introduced into the SDN control plane, message interaction with OVN is realized by loading a OVN dynamic library in the FRR, and the data plane can adopt openvswitch (which is high-quality and multi-layer virtual switch software, and aims to support large-scale network automation through programming extension and simultaneously support standard management interfaces and protocols, namely, a virtual switch of a source for forwarding traffic). Wherein BGP (Border Gateway Protocol ) neighbors can be established between different sites by introducing FRR in the sites to advertise related messages through EVPN protocol. Note that FRRouting in fig. 2 refers to the FRR mentioned above, and the open virtual switch database-northbound database (ovsdb-nb) in fig. 2 and the core background process in OVN (specifically, northd in ONN, which is similar to a centralized controller, and translates data in ovsdb-nb and writes it to ovsdb-sb), the open virtual switch database-southbound database (ovsdb-sb) all belong to OVN, the open virtual network-controller (ovn-controller) is a agent in ovn, and the open source "virtual switch" specifically refers to OVS (OpenvSwitch, which is a high quality, multi-layer virtual switch software), where the open virtual network-controller and the open source "virtual switch" belong to the SDN data plane in the site.
On the basis of the above, OVN set in the home terminal site can sense the resource change inside the home terminal site, acquire the resource change information corresponding to the resource change, and then send the acquired resource change information to the FRR in the home terminal site, so as to communicate with the FRR in the opposite terminal site by using the FRR.
S12: the FRR advertises the resource variation information to the FRR in the opposite site so that the FRR in the opposite site processes in OVN in the opposite site according to the resource variation information.
After receiving the resource change information sent by OVN in the home site, the FRR in the home site may advertise the resource change information to the FRR in the peer site. After the FRR in the opposite terminal station receives the resource change information in the local terminal station announced by the FRR in the local terminal station, the FRR in the opposite terminal station can process in OVN in the opposite terminal station according to the resource change information, so that the opposite terminal station can keep synchronous with the local terminal station.
According to the method, the device and the system, the set OVN is utilized to sense the resource change, and the large two-layer communication is realized with other stations through the FRR, and because OVN and FRR are both in a software form, the method and the system do not need to completely rely on hardware to realize the sensing of the internal resources of the stations and the communication between the stations, so that the complexity and the cost of the communication between the large two-layer communication of the multiple stations can be reduced, the operation and the maintenance are convenient, namely, the method and the system realize the fusion of the OpenFlow and the EVPN through the setting OVN and the FRR, and the OpenFlow has the characteristics of flexibility and expandability, and the like, the EVPN utilizes a standard protocol and uses BGP to bear, and the fusion of the OpenFlow and the EVPN can enable SDN to have flexibility and interact with the outside through the standard protocol, so that the problem of the large two-layer communication of the multiple stations can be solved in the application of a cloud computing virtualization network, and the problem of the large two-layer communication of the virtual network and the physical network can be realized in a new mode, and the problem of the high operation and the high difficulty and the high maintenance of the implementation of the pure hardware mode in the prior art is solved.
According to the technical scheme disclosed by the application, OVN and FRR are arranged in the site, wherein BGP neighbors are established between the local site and the opposite site through FFR, and OVN is a virtual switch realized by adopting an Openflow technology, so that the internal resource change of the site can be accurately and conveniently perceived, meanwhile, the resource change information can be acquired by utilizing OVN and sent to the FRR in the local site, the FRR is utilized to announce related information to the FRR in the opposite site, and the FRR in the opposite site is correspondingly processed in OVN of the opposite site according to the related information, so that the communication and interaction of the site are realized.
The communication method OVN provided by the embodiment of the present application senses the resource change in the home terminal station, obtains the resource change information, and sends the resource change information to the FRR, which may include:
OVN perceiving the starting of the virtual machine, acquiring the IP, the MAC and the VXLAN network information of the started virtual machine, and informing the IP, the MAC and the VXLAN network information of the started virtual machine to the FRR through ovsdb event information;
The FRR advertising the resource variation information to the FRR in the opposite site, so that the FRR in the opposite site processes in OVN in the opposite site according to the resource variation information, may include:
The FRR adopts the EVPN type2 message to announce the IP, the MAC and the VXLAN network information of the started virtual machine to the FRR in the opposite terminal node, so that the FRR in the opposite terminal node creates a logic port simulating the started virtual machine in the local terminal station in OVN of the opposite terminal station according to the EVPN type2 message, and issues a flow table for the access forwarding of the opposite terminal station to the virtual machine started in the local terminal station according to the logic port.
In the present application, when a virtual machine is started in a home site, OVN in the home site can specifically sense the start of the virtual machine and can acquire the IP (Internet Protocol, internet protocol, IP address, here IP specifically), MAC (MEDIA ACCESS Control, medium access Control, MAC address, here MAC specifically) and the belonging VXLAN (Virtual Extensible Local Area Network, virtual extended local area network) network information of the started virtual machine, and can notify the IP, MAC and the belonging VXLAN network information of the started virtual machine to the FRR in the home site through ovsdb (OpenvSwitch Database, open virtual switch database) event messages.
Accordingly, the FRR in the home site may invoke the bgp_ EVPN _local_ macip _add interface to advertise the IP, MAC, and belonging VXLAN network information of the started virtual machine to the FRR in the peer node using the EVPN type2 message. After receiving the EVPN type2 message, the FRR in the opposite node can correspondingly create a logical port simulating the started virtual machine in the home site in OVN in the opposite site according to the IP, MAC and belonging VXLAN network information (specifically, VXLAN ID) of the virtual machine started in the EVPN type2 message, and the simulated logical port is equivalent to telling OVN of the opposite site that a virtual machine is started, and then can issue a flow table for accessing and forwarding the virtual machine started in the home site from the opposite site according to the simulated logical port. The EVPN defines a new NLRI (Network Layer Reachability Information, network layer reachable information) based on BGP protocol, namely, EVPN NLRI, and the EVPN NLRI defines five new BGP EVPN route types, wherein type2 is one of which is mainly used for mutually advertising host IP and MAC information between VTEPs, so in the application, the virtual machine IP, MAC and the belonging VXLAN network information started by EVPN type2 message advertising can be convenient for better message advertising.
It should be noted that the above procedure of the present application can be applied to the first scenario: the cloud computing resource pool is interconnected and intercommunicated with the existing physical network, and the SDN controller in the local end station can establish a neighbor relation with the access physical switch through the EVPN, and the traffic is communicated through the mutual channel forwarding table, and particularly, refer to FIG. 3, which is a schematic diagram of the communication method provided by the embodiment of the application applied to the first scene. In addition, the above procedure of the present application can also be applied to the second scenario: the cloud computing resource pool multi-site network big two layers are communicated, so that a multi-activity data center big two-layer scheme is realized, and particularly, reference can be made to fig. 4, which shows a schematic diagram of a communication method applied to a second scene.
The communication method OVN provided by the embodiment of the present application senses the resource change in the home terminal station, obtains the resource change information, and sends the resource change information to the FRR, which may include:
OVN perceiving the joining of the server node, acquiring tunnel endpoint information of the server node, and notifying the tunnel endpoint information to the FRR through ovsdb event information;
The FRR advertising the resource variation information to the FRR in the opposite site, so that the FRR in the opposite site processes in OVN in the opposite site according to the resource variation information, may include:
The FRR advertises tunnel endpoint information to the FRR in the opposite site using the EVPN type3 message such that the FRR in the opposite site creates a emulated logical server node in OVN in the opposite site according to the tunnel address and VXLAN ID in the EVPN type3 message and OVN in the opposite site creates a VXLAN tunnel with the emulated logical server node.
In the application, when a server node joins a cloud computing resource pool, OVN in a home site can sense joining of the server node, acquire tunnel endpoint information (specifically, tunnel address and VXLAN ID information) of the joined server node, and notify the tunnel endpoint information of the server node to FRR in the home site through ovsdb event messages.
Accordingly, the FRR in the home site may invoke the bg_ EVPN _local_ macip _add interface to advertise tunnel endpoint information to the FRR in the peer site with an EVPN type3 message. After receiving the announced EVPN type3 message, the FRR in the opposite site can create a simulated logical server node in OVN in the opposite node according to the tunnel address and VXLAN ID information in the EVPN type3 message, so that OVN in the opposite site can automatically establish a VXLAN tunnel with the simulated logical server node. Wherein, type3 is one of five new BGP EVPN route types defined by EVPN NLRI, and is mainly used for automatic discovery of VTEP (VXLAN Tunnel EndPoint) and dynamic establishment of VXLAN Tunnel, so that the application adopts the message to announce the Tunnel EndPoint information of the added server node, and has better announcement effect.
It should be noted that the above-described procedure of the present application can be applied to the first scenario and the second scenario mentioned above.
The communication method OVN provided by the embodiment of the present application senses the resource change in the home terminal station, obtains the resource change information, and sends the resource change information to the FRR, which may include:
OVN perceiving that the virtual machine is closed, acquiring IP, MAC and VXLAN network information of the closed virtual machine, and informing the IP, MAC and VXLAN network information of the closed virtual machine to FRR through ovsdb event information;
The FRR advertising the resource variation information to the FRR in the opposite site, so that the FRR in the opposite site processes in OVN in the opposite site according to the resource variation information, may include:
The FRR adopts the EVPN type2 revocation message to announce the IP, the MAC and the VXLAN network information of the closed virtual machine to the FRR in the opposite terminal node, so that the FRR in the opposite terminal node searches the corresponding logical port and the flow table in OVN in the opposite terminal node according to the EVPN type2 revocation message and deletes the corresponding logical port and the flow table.
In the application, when the virtual machine is closed in the home terminal station, OVN in the home terminal station can sense the closing of the virtual machine, can acquire the IP, the MAC and the VXLAN network information of the closed virtual machine, and can inform the IP, the MAC and the VXLAN network information of the closed virtual machine to the FRR in the home terminal station through ovsdb event information. At this time, the FRR in the home site may call the bgp_ EVPN _local_ macip _del interface to announce the IP, MAC, and belonging VXLAN network information of the closed virtual machine to the FRR in the peer node using the EVPN type2 revocation message. After receiving the EVPN type2 revocation message, the FRR in the opposite terminal site may find relevant logical port resources (specifically, logical ports corresponding to the IP, MAC and VXLAN network information of the virtual machine closed in the EVPN type2 revocation message) in OVN in the opposite terminal site according to the IP, MAC and VXLAN network information of the virtual machine closed in the EVPN type2 revocation message (specifically, VXLAN ID), and delete the corresponding logical ports and the corresponding flow table, so as to ensure synchronization of the home terminal node and the opposite terminal node.
It should be noted that the above procedure is equally applicable to the aforementioned first scenario and the aforementioned second scenario.
The communication method OVN provided by the embodiment of the present application senses the resource change in the home terminal station, obtains the resource change information, and sends the resource change information to the FRR, which may include:
OVN perceiving that the server node is down or removed, acquiring tunnel endpoint information of the down or removed server node, and notifying the tunnel endpoint information to the FRR through ovsdb event information;
The FRR advertising the resource variation information to the FRR in the opposite site, so that the FRR in the opposite site processes in OVN in the opposite site according to the resource variation information, may include:
The FRR adopts the EVPN type3 revocation message to announce the tunnel endpoint information to the FRR in the opposite terminal site, so that the FRR in the opposite terminal site searches the corresponding VXLAN tunnel in OVN in the opposite terminal site according to the tunnel address and the VXLAN ID in the EVPN type3 revocation message and deletes the corresponding VXLAN tunnel.
In the application, when a server node is down or removed from a local site, OVN in the local site can sense the down or removed server node, acquire tunnel endpoint information (specifically, tunnel address and VXLAN ID) of the down or removed server node, and notify the tunnel endpoint information of the down or removed server node to FRR in the local site through ovsdb event message. Accordingly, the FRR in the home site may notify the FRR in the peer site of the tunnel endpoint information of the server node that is down or removed using the EVPN type3 revocation message by the bg_ EVPN _local_ macip _del interface. After receiving the EVPN type3 revocation message, the FRR in the opposite terminal station searches the VXLAN tunnel corresponding to the tunnel endpoint information of the server node that is down or removed in the opposite terminal station OVN according to the tunnel address and VXLAN ID of the server node that is down or removed in the EVPN type3 revocation message, and deletes the corresponding VXLAN tunnel, so as to ensure synchronization of the local terminal node and the opposite terminal node.
It should be noted that the above procedure is equally applicable to the aforementioned first scenario and the aforementioned second scenario.
The communication method provided by the embodiment of the application can further comprise the following steps:
The FRR in the home terminal station receives the type 5 message advertised by the EVPN, and creates a network segment route forwarding table corresponding to the type 5 message in OVN in the home terminal station according to the type 5 message, so as to be used for guiding the external physical network traffic to access the network segment virtual machine corresponding to the type 5 message.
In the application, the FRR in the home site may also receive the type5 message advertised by the EVPN (specifically, the type5 message may be a type5 message sent by a physical switch or the like), and create a network segment routing forwarding table corresponding to the advertised type5 message in OVN in the home site according to the type5 message, where the network segment routing forwarding table is used to instruct the external physical network traffic to access the network segment virtual machine corresponding to the type5 message, so that for a message of a certain network segment, for example, 192.168.10.0/24, the traffic may be guided to be sent to the next specified destination. Wherein, type3 is one of five new BGP EVPN route types defined by EVPN NLRI, which is mainly used for delivering network segment routes, specifically for advertising incoming external routes, and also for advertising host route information.
It should be noted that the above-described procedure of the present application can be applied to the aforementioned second scenario.
The communication method provided by the embodiment of the application can further comprise the following steps:
And the FRR in the home terminal station receives the type 5 withdrawal message advertised by the EVPN, and deletes the network segment routing forwarding table corresponding to the type 5 withdrawal message in OVN in the home terminal station according to the type 5 withdrawal message.
In the application, the FRR in the home terminal station may also receive the type 5 revocation message advertised by the EVPN, and delete the network segment routing forwarding table corresponding to the type 5 revocation message in OVN in the home terminal station according to the type 5 revocation message.
It should be noted that the above-described procedure of the present application can be applied to the aforementioned second scenario.
According to the process disclosed by the application, the logic control flow of the SDN controller fused by Openflow and EVPN can be established, so that the fusion of flexibility and standards is realized, and the mutual communication of stations is realized.
The embodiment of the application also provides a communication device, referring to fig. 5, which shows a schematic structural diagram of the communication device provided by the embodiment of the application, and the communication device is applied to a local end station, wherein OVN and FRR are arranged in the local end station, and the communication device may include:
the sensing module 51 is configured to sense OVN a resource change in the home terminal station, acquire resource change information, and send the resource change information to the FRR;
And the advertising module 52 is configured to advertise the resource change information to the FRR in the opposite site, so that the FRR in the opposite site processes in OVN in the opposite site according to the resource change information.
In one embodiment of the present application, the sensing module 51 may include:
The first sensing unit is used for sensing the starting of the virtual machine OVN, acquiring the IP, the MAC and the VXLAN network information of the started virtual machine, and notifying the IP, the MAC and the VXLAN network information of the started virtual machine to the FRR through ovsdb event information;
the notification module 52 may include:
and the first notification unit is used for notifying the IP, the MAC and the belonging VXLAN network information of the started virtual machine to the FRR in the opposite terminal node by adopting the EVPN type2 message, so that the FRR in the opposite terminal node creates a logic port simulating the started virtual machine in the home terminal station in OVN of the opposite terminal station according to the EVPN type2 message, and issues a flow table for accessing and forwarding the virtual machine started from the opposite terminal station to the home terminal station according to the logic port.
In one embodiment of the present application, the sensing module 51 may include:
the second sensing unit is used for sensing the joining of the server node OVN, acquiring the tunnel endpoint information of the server node, and notifying the tunnel endpoint information to the FRR through ovsdb event information;
the notification module 52 may include:
And a second notification unit, configured to notify the FRR in the opposite site of the tunnel endpoint information by using the EVPN type3 message, so that the FRR in the opposite site creates a simulated logical server node in OVN in the opposite site according to the tunnel address and the VXLAN ID in the EVPN type3 message, and OVN in the opposite site creates a VXLAN tunnel with the simulated logical server node.
In one embodiment of the present application, the sensing module 51 may include:
The third sensing unit is used for sensing the closing of the virtual machine OVN, acquiring the IP, the MAC and the VXLAN network information of the closed virtual machine, and notifying the IP, the MAC and the VXLAN network information of the closed virtual machine to the FRR through ovsdb event information;
And the third reporting unit is used for the FRR to report the IP, the MAC and the belonging VXLAN network information of the closed virtual machine to the FRR in the opposite terminal node by adopting the EVPN type2 withdrawal message, so that the FRR in the opposite terminal node searches the corresponding logical port and the flow table in OVN in the opposite terminal node according to the EVPN type2 withdrawal message and deletes the corresponding logical port and the flow table.
In one embodiment of the present application, the sensing module 51 may include:
the fourth sensing unit is used for sensing that the server node is down or removed OVN, acquiring tunnel endpoint information of the down or removed server node, and notifying the tunnel endpoint information to the FRR through ovsdb event information;
and a fourth notification unit, configured to notify the FRR in the opposite end station of the tunnel endpoint information by using the EVPN type3 revocation message, so that the FRR in the opposite end station searches for a corresponding VXLAN tunnel in OVN in the opposite end station according to the tunnel address and the VXLAN ID in the EVPN type3 revocation message, and delete the VXLAN tunnel.
The communication device provided by the embodiment of the application can further comprise:
The creating module is configured to receive a type 5 message advertised by the EVPN by the FRR in the home terminal, and create a network segment route forwarding table corresponding to the type 5 message in OVN in the home terminal according to the type 5 message, so as to guide the external physical network traffic to access the network segment virtual machine corresponding to the type 5 message.
The communication device provided by the embodiment of the application can further comprise:
And the deleting module is used for receiving the type 5 withdrawal message advertised by the EVPN by the FRR in the home terminal station, and deleting the routing forwarding table corresponding to the type 5 withdrawal message in OVN in the home terminal station according to the type 5 withdrawal message.
The embodiment of the application also provides a communication system, which can comprise a local end station and an opposite end station, wherein OVN and FRR are arranged in the local end station and the opposite end station respectively:
OVN in the local site senses the resource change in the local site, acquires the resource change information, and sends the resource change information to FRR in the local site; the FRR in the home terminal station informs the FRR in the opposite terminal station of the resource change information;
The FRR in the correspondent site receives the resource variation information and processes it in OVN in the correspondent site according to the resource variation information.
The embodiment of the application also provides a readable storage medium, wherein the readable storage medium stores a computer program, and the computer program can realize the following steps when being executed by a processor:
OVN perceives the resource change in the local site, acquires the resource change information, and sends the resource change information to the FRR; the FRR advertises the resource variation information to the FRR in the opposite site so that the FRR in the opposite site processes in OVN in the opposite site according to the resource variation information.
The readable storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The description of the relevant parts in the communication device, the system and the readable storage medium provided by the application can be referred to the detailed description of the corresponding parts in the communication method provided by the embodiment of the application, and the detailed description is omitted herein.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements is inherent to. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. In addition, the parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of the corresponding technical solutions in the prior art, are not described in detail, so that redundant descriptions are avoided.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. 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 application. Thus, the present application 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 (9)

1. The communication method is characterized by being applied to a local site, OVN and FRR are arranged in the local site, and the communication method comprises the following steps:
the OVN senses the resource change in the home terminal station, acquires the resource change information, and sends the resource change information to the FRR;
The FRR informs the FRR in the opposite terminal station of the resource change information so that the FRR in the opposite terminal station can be processed in OVN in the opposite terminal station according to the resource change information;
Wherein OVN is a virtual switch implemented by using an Openflow technology, and FRR is a routing component implemented by using an EVPN technology;
and, the OVN senses the resource change in the home terminal station, obtains the resource change information, and sends the resource change information to the FRR, including:
The OVN senses the starting of the virtual machine, acquires the IP, the MAC and the VXLAN network information of the started virtual machine, and informs the IP, the MAC and the VXLAN network information of the started virtual machine to the FRR through ovsdb event information;
the FRR advertising the resource variation information to the FRR in the opposite site, so that the FRR in the opposite site processes in OVN in the opposite site according to the resource variation information, including:
The FRR adopts an EVPN type2 message to announce the IP, the MAC and the VXLAN network information of the started virtual machine to the FRR in the opposite terminal site, so that the FRR in the opposite terminal site creates a logic port simulating the started virtual machine in the local terminal site according to the EVPN type2 message in OVN in the opposite terminal site, and issues a flow table for the access forwarding of the started virtual machine from the opposite terminal site to the local terminal site according to the logic port.
2. The method of claim 1, wherein the OVN senses a change in resources within the home site and obtains resource change information and sends the resource change information to the FRR, comprising:
The OVN senses the joining of a server node, acquires tunnel endpoint information of the server node, and notifies the tunnel endpoint information to the FRR through ovsdb event information;
the FRR advertising the resource variation information to the FRR in the opposite site, so that the FRR in the opposite site processes in OVN in the opposite site according to the resource variation information, including:
The FRR advertises the tunnel endpoint information to the FRR in the opposite site using an EVPN type3 message, such that the FRR in the opposite site creates a emulated logical server node in OVN in the opposite site according to the tunnel address and VXLAN ID in the EVPN type3 message, and OVN in the opposite site establishes a VXLAN tunnel with the emulated logical server node.
3. The method of claim 1, wherein the OVN senses a change in resources within the home site and obtains resource change information and sends the resource change information to the FRR, comprising:
The OVN senses the closing of the virtual machine, acquires the IP, the MAC and the VXLAN network information of the closed virtual machine, and informs the IP, the MAC and the VXLAN network information of the closed virtual machine to the FRR through ovsdb event information;
the FRR advertising the resource variation information to the FRR in the opposite site, so that the FRR in the opposite site processes in OVN in the opposite site according to the resource variation information, including:
And the FRR adopts an EVPN type2 revocation message to announce the IP, the MAC and the VXLAN network information of the closed virtual machine to the FRR in the opposite terminal station, so that the FRR in the opposite terminal station searches a corresponding logic port and a flow table in OVN in the opposite terminal station according to the EVPN type2 revocation message and deletes the corresponding logic port and the flow table.
4. The method of claim 1, wherein the OVN senses a change in resources within the home site and obtains resource change information and sends the resource change information to the FRR, comprising:
the OVN perceives that the server node is down or removed, acquires tunnel endpoint information of the down or removed server node, and notifies the tunnel endpoint information to the FRR through ovsdb event information;
the FRR advertising the resource variation information to the FRR in the opposite site, so that the FRR in the opposite site processes in OVN in the opposite site according to the resource variation information, including:
And the FRR adopts an EVPN type3 revocation message to announce the tunnel endpoint information to the FRR in the opposite terminal station, so that the FRR in the opposite terminal station searches a corresponding VXLAN tunnel in OVN in the opposite terminal station according to the tunnel address and the VXLAN ID in the EVPN type3 revocation message and deletes the corresponding VXLAN tunnel.
5. The communication method according to claim 1, characterized by further comprising:
and the FRR in the home terminal station receives the type 5 message advertised by the EVPN, and creates a network segment route forwarding table corresponding to the type 5 message in OVN in the home terminal station according to the type 5 message so as to be used for guiding external physical network traffic to access the network segment virtual machine corresponding to the type 5 message.
6. The communication method according to claim 1, characterized by further comprising:
And the FRR in the home terminal station receives the type 5 withdrawal message advertised by the EVPN, and deletes the network segment routing forwarding table corresponding to the type 5 withdrawal message in OVN in the home terminal station according to the type 5 withdrawal message.
7. A communication device, which is applied to a home site, wherein OVN and FRR are disposed in the home site, the communication device comprising:
The sensing module is configured to sense a resource change in the home terminal station by using the OVN, acquire resource change information, and send the resource change information to the FRR;
The notification module is used for notifying the FRR of the resource change information to the FRR in the opposite terminal station so that the FRR in the opposite terminal station can process in OVN in the opposite terminal station according to the resource change information;
Wherein OVN is a virtual switch implemented by using an Openflow technology, and FRR is a routing component implemented by using an EVPN technology;
And, the OVN senses the resource change in the home terminal station, obtains the resource change information, and sends the resource change information to the FRR, including: the OVN senses the starting of the virtual machine, acquires the IP, the MAC and the VXLAN network information of the started virtual machine, and informs the IP, the MAC and the VXLAN network information of the started virtual machine to the FRR through ovsdb event information; the FRR advertising the resource variation information to the FRR in the opposite site, so that the FRR in the opposite site processes in OVN in the opposite site according to the resource variation information, including: the FRR adopts an EVPN type2 message to announce the IP, the MAC and the VXLAN network information of the started virtual machine to the FRR in the opposite terminal site, so that the FRR in the opposite terminal site creates a logic port simulating the started virtual machine in the local terminal site according to the EVPN type2 message in OVN in the opposite terminal site, and issues a flow table for the access forwarding of the started virtual machine from the opposite terminal site to the local terminal site according to the logic port.
8. The communication system is characterized by comprising a local end station and an opposite end station, wherein OVN and FRR are arranged in the local end station and the opposite end station respectively:
OVN in the home terminal station senses the resource change in the home terminal station, acquires the resource change information, and sends the resource change information to the FRR in the home terminal station; the FRR in the home terminal station informs the FRR in the opposite terminal station of the resource change information;
The FRR in the opposite terminal station receives the resource change information and processes the resource change information in OVN in the opposite terminal station according to the resource change information;
Wherein OVN is a virtual switch implemented by using an Openflow technology, and FRR is a routing component implemented by using an EVPN technology;
And OVN in the home terminal station perceives the resource change in the home terminal station, acquires the resource change information, and sends the resource change information to the FRR in the home terminal station, including: OVN in the home terminal site senses the starting of the virtual machine, acquires the IP, the MAC and the VXLAN network information of the started virtual machine, and informs the IP, the MAC and the VXLAN network information of the started virtual machine to the FRR in the home terminal site through ovsdb event information; the FRR in the home terminal station informs the FRR in the opposite terminal station of the resource change information, comprising: the FRR in the home terminal station adopts EVPN type2 information to announce the IP, MAC and the belonging VXLAN network information of the started virtual machine to the FRR in the opposite terminal station; the FRR in the opposite terminal station processes in OVN in the opposite terminal station according to the resource change information, including: the FRR in the opposite terminal station creates a logic port simulating the started virtual machine in the home terminal station in OVN in the opposite terminal station according to the EVPN type2 message, and issues a flow table for forwarding the access of the started virtual machine in the opposite terminal station to the home terminal station according to the logic port.
9. A readable storage medium, characterized in that the readable storage medium has stored therein a computer program which, when executed by a processor, implements the steps of the communication method according to any of claims 1 to 6.
CN202111278725.3A 2021-10-31 Communication method, device, system and readable storage medium Active CN114172762B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111278725.3A CN114172762B (en) 2021-10-31 Communication method, device, system and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111278725.3A CN114172762B (en) 2021-10-31 Communication method, device, system and readable storage medium

Publications (2)

Publication Number Publication Date
CN114172762A CN114172762A (en) 2022-03-11
CN114172762B true CN114172762B (en) 2024-04-26

Family

ID=

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137173A (en) * 2010-12-27 2011-07-27 华为技术有限公司 Routing information distributing method, equipment, virtual special network system
WO2015133327A1 (en) * 2014-03-07 2015-09-11 日本電気株式会社 Network system, inter-site network cooperation control device, network control method, and program
CN108574613A (en) * 2017-03-07 2018-09-25 中兴通讯股份有限公司 The double layer intercommunication method and device of SDN data centers
CN111800329A (en) * 2020-06-28 2020-10-20 浪潮思科网络科技有限公司 Message forwarding method, device and medium based on SDN and OVN
CN111988439A (en) * 2019-05-21 2020-11-24 深信服科技股份有限公司 ARP request suppression system, method, equipment and storage medium
CN113572634A (en) * 2021-06-22 2021-10-29 济南浪潮数据技术有限公司 Method and system for realizing two-layer intercommunication between in-cloud network and out-cloud network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137173A (en) * 2010-12-27 2011-07-27 华为技术有限公司 Routing information distributing method, equipment, virtual special network system
WO2015133327A1 (en) * 2014-03-07 2015-09-11 日本電気株式会社 Network system, inter-site network cooperation control device, network control method, and program
CN108574613A (en) * 2017-03-07 2018-09-25 中兴通讯股份有限公司 The double layer intercommunication method and device of SDN data centers
CN111988439A (en) * 2019-05-21 2020-11-24 深信服科技股份有限公司 ARP request suppression system, method, equipment and storage medium
CN111800329A (en) * 2020-06-28 2020-10-20 浪潮思科网络科技有限公司 Message forwarding method, device and medium based on SDN and OVN
CN113572634A (en) * 2021-06-22 2021-10-29 济南浪潮数据技术有限公司 Method and system for realizing two-layer intercommunication between in-cloud network and out-cloud network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
VXLAN网络技术研究;缪仕福;;科技资讯;20150203(04);全文 *

Similar Documents

Publication Publication Date Title
US20170331641A1 (en) Deployment Of Virtual Extensible Local Area Network
CN111970137B (en) Method, device and system for communication among controllers in TSN (traffic service network)
CN109660442B (en) Method and device for multicast replication in Overlay network
WO2018188425A1 (en) Vxlan single-homing and dual-homing hybrid access method and apparatus, pe device and storage medium
CN107948041B (en) Method and equipment for constructing VXLAN centralized multi-active gateway
CN103118148B (en) A kind of ARP buffering updating method and equipment
CN112105095B (en) EasyMesh network multi-Controller implementation method and system
US10855576B2 (en) Information transmission method and device
WO2018214809A1 (en) Message transmission method and device, and storage medium
CN106559332B (en) Method and system for quickly establishing fully-connected server cluster
US10404544B2 (en) Network topology determining method and apparatus, and centralized network status information storage device
CN105871719A (en) Processing method and apparatus of routing status and/or policy information
CN111865780A (en) Synchronization method and device
CN112769614B (en) Automatic management method of VPN (virtual private network) on demand and intercommunication system of heterogeneous network
CN103631652A (en) Method and system for achieving virtual machine migration
CN111682968B (en) Network access management method and system for communication equipment
CN112995027A (en) Route publishing method and VTEP node
CN114172762B (en) Communication method, device, system and readable storage medium
CN113260072B (en) Mesh networking traffic scheduling method, gateway equipment and storage medium
CN113037883B (en) Method and device for updating MAC address table entries
CN104270307A (en) Establishing method and device for BGP neighborhood
CN113452585A (en) Communication method and device
EP3258654B1 (en) Method and system for reducing pim protocol dr change
CN106878051B (en) Multi-machine backup implementation method and device
CN112910771B (en) Connection establishment method, device, equipment and storage medium

Legal Events

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