CN112653610B - Multilayer virtual switch upgrading method and device, electronic equipment and storage medium - Google Patents

Multilayer virtual switch upgrading method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112653610B
CN112653610B CN202011484437.9A CN202011484437A CN112653610B CN 112653610 B CN112653610 B CN 112653610B CN 202011484437 A CN202011484437 A CN 202011484437A CN 112653610 B CN112653610 B CN 112653610B
Authority
CN
China
Prior art keywords
point
vxlan
ovs
port
data traffic
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
CN202011484437.9A
Other languages
Chinese (zh)
Other versions
CN112653610A (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.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and 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 Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN202011484437.9A priority Critical patent/CN112653610B/en
Publication of CN112653610A publication Critical patent/CN112653610A/en
Application granted granted Critical
Publication of CN112653610B publication Critical patent/CN112653610B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/70Virtual switches
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses

Abstract

The invention discloses a multilayer virtual switch upgrading method, a device, electronic equipment and a storage medium, which solve the problems that in the prior art, a client network is interrupted and the data forwarding efficiency of a client is reduced when a multilayer virtual switch is upgraded, and the multilayer virtual switch upgrading method comprises the following steps: when determining that the OVS of a first point of presence needs to be upgraded, acquiring VXLAN tunnel information of data traffic being forwarded in a VXLAN tunnel created by the OVS of the first point of presence; establishing a corresponding standby VXLAN tunnel for the VXLAN tunnel forwarding the data traffic according to the VXLAN tunnel information forwarding the data traffic; and after the data traffic forwarded in the VXLAN tunnel forwarding the data traffic is transferred to a corresponding standby VXLAN tunnel for forwarding, upgrading the OVS of the first point of presence.

Description

Multilayer virtual switch upgrading method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of Software-defined Wide Area networks (SDWANs), and in particular, to a method and an apparatus for upgrading a multi-layer virtual switch, an electronic device, and a storage medium.
Background
A Virtual Extensible Local Area Network (VXLAN) is a Virtual tunnel communication technology, and can establish a two-layer ethernet Network tunnel on the basis of a three-layer Network, thereby realizing cross-regional two-layer interconnection. The VXLAN header contains a VXLAN Network Identifier (VNI), and two virtual machines on VXLAN with the same VNI communicate through the same VXLAN tunnel, thereby effectively solving the problem of isolation of mass tenants in cloud computing.
An Open VSwitch (OVS) is a software switch that forms switch components by software, and aims to allow large-scale network automation to be extended by programming, while still supporting standard management interfaces and protocols such as NetFlow protocol, SFlow (Sampled Flow) protocol, and the like. The OVS is open source software, specially manages a multi-lease public cloud computing environment, and is widely applied to VXLAN.
In the VXLAN to which the OVS is applied, the OVS meets a requirement for upgrading due to various reasons in the operation process, and at present, the OVS needs to stop operating the OVS first in the upgrading process and restart after upgrading is completed, so that a two-layer network tunnel in the upgrading process is disconnected, a client network is interrupted, and the client data forwarding efficiency is reduced.
Disclosure of Invention
In order to solve the problems that a client network is interrupted and the client data forwarding efficiency is reduced when a multilayer virtual switch is upgraded in the prior art, embodiments of the present invention provide a multilayer virtual switch upgrading method, apparatus, electronic device, and storage medium.
In a first aspect, an embodiment of the present invention provides a method for upgrading a multi-layer virtual switch implemented by a first point of presence side, where the method is applied to at least two points of presence provided with a multi-layer virtual switch OVS, where the at least two points of presence are in communication connection with each other through a VXLAN tunnel of a virtual expansion local area network established by the respective OVS, each OVS of the point of presence includes at least two VXLAN ports, and the VXLAN tunnels between the at least two points of presence are connected through the VXLAN ports, where the method includes:
when determining that the OVS of a first point of presence needs to be upgraded, acquiring VXLAN tunnel information of data traffic being forwarded in a VXLAN tunnel created by the OVS of the first point of presence;
establishing a corresponding standby VXLAN tunnel for the VXLAN tunnel forwarding the data traffic according to the VXLAN tunnel information forwarding the data traffic;
and after the data traffic forwarded in the VXLAN tunnel forwarding the data traffic is transferred to a corresponding standby VXLAN tunnel for forwarding, upgrading the OVS of the first point of presence.
The multi-layer virtual switch upgrading method provided by the embodiment of the invention is applied to at least two network access points provided with OVSs (over the air) and is in communication connection through VXLAN tunnels established by the respective OVSs, wherein each OVS of the network access points comprises at least two VXLAN ports, the VXLAN tunnels between the at least two network access points are connected through the respective VXLAN ports, if the OVS of a first network access point needs to be upgraded, VXLAN tunnel information of data traffic being forwarded in the VXLAN tunnels established by the OVS of the first network access point is acquired, one-to-one corresponding standby VXLAN tunnels are established for the VXLAN tunnels of the data traffic being forwarded according to the VXLAN tunnel information of the data traffic being forwarded, and then the data traffic forwarded in the VXLAN tunnels of the data traffic being forwarded is transferred to the corresponding standby VXLAN tunnels for forwarding, and then the OVS of the first network access point is upgraded, compared with the prior art, in the embodiment of the invention, when the OVS needs to be upgraded, the one-to-one corresponding standby VXLAN tunnels are established for the VXLAN tunnels forwarding the data traffic in the VXLAN tunnels established by the OVS, and the forwarded data traffic is guided to the standby VXLAN tunnels to be forwarded, so that the upgrading of the OVS is completed under the condition of not influencing the data traffic transmission of the client, the smooth upgrading of the OVS without service perception is realized, the network of the client can still normally run without interruption when the OVS is upgraded, and the forwarding efficiency of the data traffic of the client is ensured.
Preferably, it is determined that the VXLAN tunnel is forwarding data traffic by:
detecting a Rapid Spanning Tree Protocol (RSTP) state of a VXLAN port on the OVS of the first point of presence;
and determining that the VXLAN tunnel formed by the VXLAN port with the RSTP state being a forwarding state on the OVS of the first point of presence and the VXLAN port connected on the OVS of the second point of presence forwards the data traffic.
Preferably, the VXLAN tunnel information includes a source IP address, a destination IP address, and a VXLAN network identifier VNI, where the source IP address is the first point-of-presence IP address, and the destination IP address is the second point-of-presence IP address;
establishing a corresponding standby VXLAN tunnel for the VXLAN tunnel forwarding the data traffic according to the VXLAN tunnel information forwarding the data traffic, specifically comprising:
setting, for each VXLAN tunnel forwarding data traffic, that a source IP address, a destination IP address, and a VNI of a backup VXLAN tunnel corresponding to the VXLAN tunnel forwarding data traffic are respectively the same as a source IP address, a destination IP address, and a VNI included in VXLAN tunnel information of the data traffic being forwarded, and sending a request for creating a backup VXLAN tunnel in cooperation to the second point of presence, so that the second point of presence creates the backup VXLAN tunnel in cooperation with the first point of presence according to the source IP address, the destination IP address, and the VNI of the backup VXLAN tunnel set on the first point of presence;
establishing a first standby network bridge on the first point of presence, and triggering the second point of presence to establish a second standby network bridge;
connecting the created backup VXLAN tunnel between the first backup bridge and the second backup bridge.
In the above preferred embodiment, for each VXLAN tunnel forwarding data traffic, the first point of presence sets that the source IP (Internet Protocol) address, destination IP address and VNI of the backup VXLAN tunnel corresponding to the VXLAN tunnel forwarding data traffic are all the same as those included in the VXLAN tunnel information of the forwarding data traffic, and sends a request for creating a backup VXLAN tunnel in cooperation to the second point of presence, which creates a backup VXLAN tunnel in cooperation with the first point of presence according to the source IP address, destination IP address and VNI of the backup VXLAN tunnel set on the first point of presence, the first point of presence establishes a first backup bridge, and triggers the second point of presence to create a second backup bridge, connects the created backup VXLAN tunnel between the first backup bridge created on the first point of presence and the second backup bridge created on the second point of presence, since the OVS functions as a virtual bridge according to the preferred embodiment described above, when the OVS of the first point-of-presence needs to be upgraded, the first point-of-presence creates a backup bridge to replace the OVS of the first point-of-presence and, accordingly, a second point-of-presence to which a VXLAN port that is forwarding data traffic is connected to an OVS of a first point-of-presence to form a VXLAN tunnel belongs also establishes a backup bridge to replace the OVS on the second point-of-presence, the second point-of-presence creates a backup VXLAN tunnel in cooperation with the first point-of-presence, in turn, the created backup tunnel is connected between the backup bridge created by the first point-of-presence and the backup bridge created by the second point-of-presence, when OVS of the first point of presence is upgraded, the data traffic forwarded on the VXLAN tunnel forwarding the data traffic is transferred to the corresponding standby VXLAN tunnel, and the newly created standby bridge and the standby VXLAN tunnel are used for data forwarding.
Optionally, after connecting the created backup VXLAN tunnel between the first backup bridge and the second backup bridge, further comprising:
acquiring a first port, which is transmitting data traffic, on the OVS of the first point of presence, where the first port is a port where the OVS of the first point of presence is connected with a second port of the first point of presence, and the second port of the first point of presence is a transmission port, on the first point of presence, of the data traffic being transmitted;
transferring a first port, which is forwarding data traffic on the OVS of the first mesh point, to the first standby bridge, and triggering the second mesh point to transfer a third port, which is connected to a fourth port of the second mesh point, on the OVS of the second mesh point, to the second standby bridge, where the fourth port is a transmission port of the forwarding data traffic on the second mesh point;
and setting a destination port monitored by the VXLAN module of the first standby bridge and the VXLAN module of the second standby bridge together, and sending the destination port to the second point-of-presence.
In the above optional embodiment, after connecting the created backup VXLAN tunnel to the first backup bridge created by the first mesh point and the second backup bridge created by the second mesh point, the first mesh point acquires the first port on the OVS of the first mesh point, which is the port where the OVS of the first mesh point is connected to the transmission port (i.e., the second port) on the first mesh point, transfers the first port on the OVS of the first mesh point, which is forwarding the data traffic, to the first backup bridge, and triggers the second mesh point to transfer the third port on the OVS of the second mesh point to the created second backup bridge, where the third port is the port where the OVS of the second mesh point is connected to the transmission port (i.e., the fourth port) on the second mesh point, and further, the method comprises the steps that a first point of presence sets a target port monitored by a VXLAN module of a first standby bridge and a VXLAN module of a second standby bridge together, the target port is sent to the second point of presence, and the target port is used as a target port monitored by the first standby bridge of the first point of presence and the second standby bridge of the second point of presence together when data traffic is forwarded on a standby VXLAN tunnel, so that the forwarded data traffic can be transferred to the standby bridge and forwarded through the standby VXLAN tunnel when OVS of the first point of presence is upgraded.
Optionally, before upgrading the OVS of the first point of presence, the method further includes:
deleting a first port of the data traffic which is not forwarded on the OVS of the first point of presence from the OVS of the first point of presence; and
after determining that the OVS upgrade of the first point of presence is completed, further comprising:
and restoring the deleted first port of the unrewarded data traffic on the OVS of the first point of presence on the upgraded OVS of the first point of presence.
In the above optional embodiment, before the OVS of the first mesh point is upgraded, the first port of the unrewarded data traffic on the OVS of the first mesh point is deleted from the OVS of the first mesh point, and after the upgrade is completed, the deleted first port of the unrewarded data traffic on the OVS of the first mesh point is recovered on the upgraded OVS of the first mesh point, and the first port of the unrewarded data traffic on the OVS of the first mesh point is temporarily deleted to prevent a network topology between the mesh points from being changed after the OVS is upgraded.
In a second aspect, an embodiment of the present invention provides a device for upgrading a multi-layer virtual switch implemented by a first point of presence side, where the device is applied to at least two points of presence provided with a multi-layer virtual switch OVS, where the at least two points of presence are in communication connection with each other through a VXLAN tunnel of a virtual extensible local area network established by the respective OVS, each OVS of the point of presence includes at least two VXLAN ports, and the VXLAN tunnels between the at least two points of presence are connected through the VXLAN ports, and the device includes:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring VXLAN tunnel information of data traffic forwarding in a VXLAN tunnel created by an OVS of a first point of presence when the OVS of the first point of presence needs to be upgraded;
the establishing unit is used for establishing a corresponding standby VXLAN tunnel for the VXLAN tunnel forwarding the data traffic according to the VXLAN tunnel information forwarding the data traffic;
and the upgrading unit is used for upgrading the OVS of the first point of presence after transferring the data traffic forwarded in the VXLAN tunnel which is forwarding the data traffic to the corresponding standby VXLAN tunnel for forwarding.
Preferably, the obtaining unit is specifically configured to determine that the VXLAN tunnel is forwarding data traffic by: detecting a Rapid Spanning Tree Protocol (RSTP) state of a VXLAN port on the OVS of the first point of presence; and determining that the VXLAN tunnel formed by the VXLAN port with the RSTP state being a forwarding state on the OVS of the first point of presence and the VXLAN port connected on the OVS of the second point of presence forwards the data traffic.
Preferably, the VXLAN tunnel information includes a source IP address, a destination IP address, and a VXLAN network identifier VNI, where the source IP address is the first point-of-presence IP address, and the destination IP address is the second point-of-presence IP address;
the establishing unit is specifically configured to set, for each VXLAN tunnel forwarding data traffic, a source IP address, a destination IP address, and a VNI of a backup VXLAN tunnel corresponding to the VXLAN tunnel forwarding data traffic to be respectively the same as a source IP address, a destination IP address, and a VNI included in the VXLAN tunnel information of the forwarding data traffic, and send a request for creating a backup VXLAN tunnel in cooperation to the second point of presence, so that the second point of presence creates the backup VXLAN tunnel in cooperation with the first point of presence according to the source IP address, the destination IP address, and the VNI of the backup VXLAN tunnel set on the first point of presence; establishing a first standby network bridge on the first point of presence, and triggering the second point of presence to establish a second standby network bridge; connecting the created backup VXLAN tunnel between the first backup bridge and the second backup bridge.
Optionally, the obtaining unit is further configured to obtain a first port on the OVS of the first mesh point, where the first port is a port where the OVS of the first mesh point is connected to a second port of the first mesh point, and the second port is a transmission port on the first mesh point, where the forwarded data traffic is after the created backup VXLAN tunnel is connected between the first backup bridge and the second backup bridge;
the establishing unit is further configured to transfer a first port, which is forwarding data traffic on the OVS of the first network access point, to the first standby bridge, and trigger the second network access point to transfer a third port, which is connected to a fourth port of the second network access point, on the OVS of the second network access point, where the fourth port is a transmission port of the forwarding data traffic on the second network access point, to the second standby bridge;
the establishing unit is further configured to set a destination port monitored by both the VXLAN module of the first standby bridge and the VXLAN module of the second standby bridge, and send the destination port to the second point of presence.
Optionally, the apparatus further comprises:
a deleting unit, configured to delete, before upgrading the OVS of the first point of presence, a first port, on the OVS of the first point of presence, for which data traffic is not forwarded, from the OVS of the first point of presence;
and the recovery unit is configured to, after determining that the OVS of the first point of presence is upgraded, recover the deleted first port of the unrewarded data traffic on the OVS of the first point of presence on the upgraded OVS of the first point of presence.
The technical effects of the multi-layer virtual switch upgrading apparatus implemented by the first point of presence side provided by the present invention can be seen in the technical effects of the first aspect or each implementation manner of the first aspect, which are not described herein again.
In a third aspect, an embodiment of the present invention provides a method for upgrading a multi-layer virtual switch implemented by a second point of presence side, where the method is applied to at least two point of presence with a multi-layer virtual switch OVS, where the at least two points of presence are in communication connection with each other through a VXLAN tunnel of a virtual expansion local area network established by the respective OVS, each OVS of the point of presence includes at least two VXLAN ports, and the VXLAN tunnels between the at least two points of presence are connected through the VXLAN ports, and the method includes:
a second network point of presence receives a request for cooperatively establishing a standby VXLAN tunnel, which is sent by a first network point of presence when the OVS of the first network point of presence determines that the OVS of the first network point of presence needs to be upgraded, wherein the request for cooperatively establishing the standby VXLAN tunnel comprises a source IP address, a destination IP address and a VXLAN network identifier VNI of the standby VXLAN tunnel established by the first network point of presence, and the standby VXLAN tunnel is a standby tunnel corresponding to a VXLAN tunnel which forwards data traffic in the VXLAN tunnels established by the OVS of the first network point of presence;
and creating a standby VXLAN tunnel by cooperating with the first point of presence according to the source IP address, the destination IP address and the VNI, wherein the standby VXLAN tunnel is used for transmitting the forwarded data traffic when the OVS of the first point of presence is upgraded.
In the method for upgrading a multilayer virtual switch provided in the embodiment of the present invention, a second point of presence receives a request for cooperatively creating a backup VXLAN tunnel, where the request for cooperatively creating the backup VXLAN tunnel is sent by a first point of presence to determine that an OVS of the first point of presence needs to be upgraded, where the request for cooperatively creating the backup VXLAN tunnel includes a source IP address, a destination IP address, and a VNI of a backup VXLAN tunnel created by the first point of presence, and the backup VXLAN tunnel is a backup tunnel corresponding to a VXLAN tunnel that is forwarding data traffic in the VXLAN tunnel according to the source IP address, the destination IP address, and the VNI, so that when the OVS of the first point of presence is upgraded, the second point of presence transfers the data traffic that is forwarding data traffic in the VXLAN tunnel to a corresponding backup VXLAN tunnel for forwarding data traffic in cooperation with the first point of presence, and the first point of presence completes the upgrade of OVS without affecting data traffic transmission of a client The method and the device realize the smooth upgrading of the OVS without service perception, and ensure that the network of the client can still normally run without interruption when the OVS is upgraded, thereby ensuring the forwarding efficiency of the data traffic of the client.
Optionally, the method further comprises:
creating a second standby bridge and connecting the standby VXLAN tunnel between the second standby bridge and a first standby bridge created by the first point-of-presence;
and transferring a third port on the OVS of the second network access point to the second standby network bridge, where the third port is a port where the OVS of the second network access point is connected to a fourth port of the second network access point, and the fourth port is a transmission port of the data traffic forwarded by the VXLAN tunnel forwarding the data traffic on the second network access point.
In the above optional embodiment, the second mesh point creates a second backup bridge, and connects the backup tunnel between the second backup bridge and the first backup bridge created by the first mesh point, and transfers a third port on the OVS of the second mesh point to the created second backup bridge, where the third port is a port to which the OVS of the second mesh point and a transmission port (i.e., a fourth port) on the second mesh point of the data traffic forwarded by the VXLAN tunnel forwarding the data traffic are connected, so that, when the OVS of the first mesh point is upgraded, the data traffic forwarded on the VXLAN tunnel forwarding the data traffic is transferred to the corresponding backup VXLAN tunnel, and the newly created backup VXLAN bridge and the backup VXLAN tunnel are used for data forwarding.
Optionally, the method further comprises:
and receiving a destination port which is monitored by the VXLAN module of the first standby bridge and the VXLAN module of the second standby bridge and sent by the first point of presence.
In the above optional embodiment, the second mesh point receives a destination port, which is monitored by the VXLAN module of the first standby bridge and the VXLAN module of the second standby bridge sent by the first mesh point, as a destination port, which is monitored by the first standby bridge of the first mesh point and the second standby bridge of the second mesh point together when forwarding data traffic on the standby VXLAN tunnel, for the VXLAN service.
In a fourth aspect, an embodiment of the present invention provides a device for upgrading a multi-layer virtual switch implemented by a second point of presence side, where the device is applied to at least two points of presence provided with a multi-layer virtual switch OVS, where the at least two points of presence are in communication connection with each other through a VXLAN tunnel of a virtual extensible local area network established by the respective OVS, each OVS of the point of presence includes at least two VXLAN ports, and the VXLAN tunnels between the at least two points of presence are connected through the VXLAN ports, and the device includes:
a receiving unit, configured to receive, by a second point of presence, a request for cooperatively creating a standby VXLAN tunnel, where the request for cooperatively creating the standby VXLAN tunnel is sent by a first point of presence when it is determined that an OVS of the first point of presence needs to be upgraded, where the request for cooperatively creating the standby VXLAN tunnel includes a source IP address and a destination IP address of the standby VXLAN tunnel created by the first point of presence, and a VXLAN network identifier VNI, and the standby VXLAN tunnel is a standby tunnel corresponding to a VXLAN tunnel, where data traffic is being forwarded, in the VXLAN tunnels created by the OVS of the first point of presence;
a coordination unit, configured to coordinate the first point of presence to create a standby VXLAN tunnel according to the source IP address, the destination IP address, and the VNI, where the standby VXLAN tunnel is used to transmit the forwarded data traffic when the OVS of the first point of presence is upgraded.
Optionally, the apparatus further comprises:
a creating unit, configured to create a second standby bridge and connect the standby VXLAN tunnel between the second standby bridge and a first standby bridge created by the first point-of-presence;
a transferring unit, configured to transfer a third port on the OVS of the second network access point to the second standby bridge, where the third port is a port where the OVS of the second network access point is connected to a fourth port of the second network access point, and the fourth port is a transmission port of the data traffic forwarded by the VXLAN tunnel forwarding the data traffic on the second network access point.
Optionally, the receiving unit is further configured to receive a destination port, which is monitored by the VXLAN module of the first standby bridge and the VXLAN module of the second standby bridge and sent by the first point of presence.
The technical effects of the multi-layer virtual switch upgrading apparatus implemented by the second point of presence side provided by the present invention can be seen in the technical effects of the third aspect or each implementation manner of the third aspect, which are not described herein again.
In a fifth aspect, an embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the method for upgrading a multi-layer virtual switch according to the present invention.
In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the multilayer virtual switch upgrading method according to the present invention.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic view of an application scenario of a multi-layer virtual switch upgrade method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an implementation of a method for upgrading a multilayer virtual switch according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of an implementation of determining that a VXLAN tunnel is forwarding data traffic according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of an implementation flow of a method for upgrading a multi-layer virtual switch implemented by a first point of presence side according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an upgrade apparatus for a multi-layer virtual switch implemented by a first point of presence side according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of an implementation flow of a method for upgrading a multi-layer virtual switch implemented by a second point-of-presence side according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an upgrade apparatus for a multi-layer virtual switch implemented by a second point of presence side according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to solve the problems that a client network is interrupted and the client data forwarding efficiency is reduced when a multilayer virtual switch is upgraded in the prior art, embodiments of the present invention provide a multilayer virtual switch upgrading method, apparatus, electronic device, and storage medium.
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings of the specification, it being understood that the preferred embodiments described herein are merely for illustrating and explaining the present invention, and are not intended to limit the present invention, and that the embodiments and features of the embodiments in the present invention may be combined with each other without conflict.
Referring to fig. 1, which is an application scenario diagram of the multi-layer virtual switch upgrading method provided in the embodiment of the present invention, a client1 represents a client1, a client2 represents a client2, SW1, SW2, SW3, and SW4 represent physical switches 1 to 4, POP1 represents a point of presence 1, POP2 represents a point of presence 2, POP3 represents a point of presence 3, POP4 represents a point of presence 4, and the point of presence POP1 to POP4 may be, but are not limited to, the following devices: router, server, switch, etc. the network access points PO 1-POP 4 are all installed with OVS, communication connection is made by establishing VXLAN tunnels between POP1 and POP3, between POP1 and POP4, between POP2 and POP3, and between POP2 and POP4 through respective OVS, the respective OVS of PO 1-POP 4 includes at least two VXLAN ports, the VXLAN tunnel between POP1 and POP3 is connected through VXLAN port on OVS of POP1 and VXLAN port on OVS of POP3, that is: a plurality of VXLAN tunnels are included between POP1 and POP3, each VXLAN tunnel is composed of a VXLAN port on the OVS of POP1 and a VXLAN port on the OVS of POP3, each VXLAN tunnel has a unique VXLAN network identifier VNI, and similarly, the VXLAN tunnel between POP1 and POP4 is connected to the VXLAN port on the OVS of POP4 through the VXLAN port on the OVS of POP1, the VXLAN tunnel between POP2 and POP3 is connected to the VXLAN port on the OVS of POP3 through the VXLAN port on the OVS of POP2, and the VXLAN tunnel between POP2 and POP4 is connected to the VXLAN port on the OVS of POP4 through the VXLAN port on the OVS of POP 2. The client network reaches the VXLAN private line acceleration network through the access point. When the data traffic sent by the client1 is sent to the SW2 through the SW1 and then sent to the LAN port on the POP1 of the point of presence through the LAN (Local Area Network) port of the SW2 (the data traffic can also be sent to the LAN port on the POP2, which is only described as an example in the embodiment of the present invention), the LAN port on the POP1 is connected to the LAN port on the OVS of the POP1, at this time, the data traffic enters the LAN port on the OVS of the POP1 from the LAN port on the POP1, the OVS of the POP1 queries the MAC address table, the data traffic is forwarded to the OVS of the POP3 or the POP3 through the VXLAN tunnel, the POP3 or the POP3 sends the data traffic to the LAN port of the POP3 or the POP3 through the LAN port on the OVS thereof, and the SW3 sends the data traffic to the client 3, the SW3, the client 3, the SW3 sends the client 3, the client 3 sends the client 3 data traffic to the client 3, namely, the client 3 sends the client 3, the client 3 and sends the client data traffic to the client 3, the client 3 sends the client data traffic to the client data traffic. In a similar manner, it will not be described in detail herein.
Based on the above application scenarios, exemplary embodiments of the present invention will be described in more detail below with reference to fig. 2 to 3, it should be noted that the above application scenarios are only shown for facilitating understanding of the spirit and principle of the present invention, and the embodiments of the present invention are not limited thereto. Rather, embodiments of the present invention may be applied to any scenario where applicable.
As shown in fig. 2, which is a schematic diagram illustrating an implementation flow of a multi-layer virtual switch upgrading method according to an embodiment of the present invention, the multi-layer virtual switch upgrading method may be applied to at least two network points provided with multi-layer virtual switches (OVSs), where the at least two network points are communicatively connected through VXLAN tunnels established by the respective OVSs, each OVS of the network point includes at least two VXLAN ports, and the VXLAN tunnels between the at least two network points are connected through the VXLAN ports, where the multi-layer virtual switch upgrading method specifically includes the following steps:
s11, when the first point of presence determines that the OVS of the first point of presence needs to be upgraded, the VXLAN tunnel information of the data traffic being forwarded in the VXLAN tunnel created by the OVS of the first point of presence is acquired.
In specific implementation, when the first point of presence determines that the OVS installed by the first point of presence needs to be upgraded, VXLAN tunnel information of data traffic being forwarded in a VXLAN tunnel created by the OVS of the first point of presence is acquired.
Specifically, determining that the VXLAN tunnel is forwarding data traffic according to the flow shown in fig. 3 may include the following steps:
and S21, detecting the RSTP state of the VXLAN port on the OVS of the first network point.
In a specific implementation, the OVS may use an STP (Spanning Tree Protocol) Protocol or an RSTP (Rapid Spanning Tree) Protocol, which is not limited in this embodiment of the present invention.
After the port on the OVS (or switch) starts the STP protocol, the port has the following five states:
(1) off (disabled):
discard frames received on the port (no data frame received);
discard frames switched from other interface for forwarding (not forwarding data frames received from other ports);
dos not least spare addresses (no learning of MAC address ((physical address)));
do not receive BPDUs (Bridge Protocol Data Unit ).
The port is in a management off state.
(2) Blocking (blocking):
discard frames received on the port (no data frame received);
discard frames switched from other interface for forwarding (not forwarding data frames received from other ports);
dos not least spare addresses (not learning MAC address);
receive BPDUs (receive BPDU).
The port in the blocking state cannot participate in forwarding the data message, but can receive the BPDU configuration message and give the BPDU to the CPU for processing. However, no configuration BPDU messages can be sent, nor MAC address learning.
(3) Listening (listening):
discard frames received on the port (no data frame received);
discard frames switched from other interface for forwarding (not forwarding data frames received from other ports);
dos not least spare addresses (not learning MAC address);
receive BPDUs (receive BPDU).
The port in the listening state does not participate in data forwarding and does not perform MAC address learning, but may receive and transmit BPDU configuration messages.
(4) Learning (learning):
discard frames received on the port (no data frame received);
discard frames switched from other interface for forwarding (not forwarding data frames received from other ports);
learns addresses (learning MAC addresses);
receive BPDUs (receive BPDU).
The port in the learning state cannot forward data, but begins learning MAC addresses and can receive, process and send BPDU configuration messages.
(5) Forwarding (forwarding):
receive and forward frames received on the port;
forwards frames switched from an other port (forwarding data frames received from other ports);
learns addresses (learning MAC addresses);
receive BPDUs (receive BPDU).
Once a port enters the forwarding state, any data may be forwarded while also performing address learning and reception, processing and transmission of BPDU configuration messages.
After the port on the OVS (or switch) starts the RSTP protocol, the port has the following three states:
(1) off (disabled):
merging the three states of 'close', 'block' and 'monitor' corresponding to STP protocol into 'close'
(i.e., disabled) state.
(2) Learning (learning):
discard frames received on the port (no data frame received);
discard frames switched from other interface for forwarding (not forwarding data frames received from other ports);
learns addresses (learning MAC addresses);
receive BPDUs (receive BPDU).
The port in the learning state cannot forward data, but begins learning MAC addresses and can receive, process and send BPDU configuration messages.
(3) Forwarding (forwarding):
receive and forward frames received on the port;
forwards frames switched from an other port (forwarding data frames received from other ports);
learns addresses (learning MAC addresses);
receive BPDUs (receive BPDU).
Once a port enters the forwarding state, any data may be forwarded while also performing address learning and reception, processing and transmission of BPDU configuration messages.
The embodiments of the present invention are described by taking the RSTP protocol as an example.
In specific implementation, taking the application scenario of fig. 1 as an example, assuming that the OVS of the point of presence POP1 needs to be upgraded, and POP1 is the first point of presence, the RSTP state of the VXLAN port on the OVS of POP1 is detected.
S22, determining that the VXLAN tunnel formed by the VXLAN port whose RSTP state on the OVS of the first point of presence is the forwarding state and the VXLAN port connected to the OVS of the second point of presence is forwarding data traffic.
In a specific implementation, when the RSTP state of the VXLAN port on the OVS of the first mesh point is a forwarding (forwarding) state, the VXLAN tunnel formed by the VXLAN port and the VXLAN port connected to the OVS of the second mesh point forwards data traffic.
Assuming that in fig. 1, the RSTP state of m VXLAN ports on the OVS of the point of presence POP1 is forwarding state, and VXLAN ports connected to the m VXLAN ports have n bits on the OVS of the point of presence POP3 and p bits on the OVS of the point of presence POP4, where n + p is m, then n VXLAN tunnels composed of VXLAN ports connected to n VXLAN ports on the OVS of POP3 on the OVS of POP1 and p VXLAN tunnels composed of VXLAN ports connected to p VXLAN ports on the OVS of POP4 on the OVS of POP1 are forwarding data traffic, that is, a total of m VXLAN tunnels are forwarding data traffic, and at this time, point of presence POP3 and POP4 are the second point of presence.
Further, VXLAN tunnel information for forwarding data traffic is obtained, the VXLAN tunnel information at least including the following information: the network system comprises a source IP address, a destination IP address and a VNI, wherein the source IP address is the IP address of a first point of presence, and the destination IP address is the IP address of a second point of presence. In general, one VNI corresponds to one tenant, that is, data transmitted by the same tenant is forwarded through the same VXLAN tunnel.
S12, the first point of presence establishes a corresponding standby VXLAN tunnel for the VXLAN tunnel forwarding the data traffic according to the VXLAN tunnel information forwarding the data traffic.
In a specific implementation, for each VXLAN tunnel forwarding data traffic, the first point of presence sets that the source IP address, the destination IP address, and the VNI of the backup VXLAN tunnel corresponding to the VXLAN tunnel forwarding data traffic are respectively the same as those of the source IP address, the destination IP address, and the VNI included in the VXLAN tunnel information of the data traffic being forwarded, that is, the source IP address, the destination IP address, and the VNI may not be changed.
Further, a first standby bridge is established at the first point-of-presence.
In the embodiment of the invention, a Linux system is installed on a point of presence, and the Linux system comprises a Linux kernel VXLAN module and a Linux kernel bridge module.
In specific implementation, the first network access point establishes a standby Linux bridge on the first network access point through the Linux kernel bridge module, and the standby Linux bridge is recorded as the first standby bridge.
Further, a first point of presence acquires a first port, which is forwarding data traffic, on the OVS of the first point of presence by detecting an RSTP state of the first port on the OVS of the first point of presence, where the first port is a port where the OVS of the first point of presence is connected to a second port of the first point of presence, and the second port of the first point of presence is a transmission port where the data traffic being forwarded is on the first point of presence.
Still taking fig. 1 as an example, client1 sends data traffic to switch SW1, then SW1 to switch SW2, then data traffic is sent from the LAN port of switch SW2 to the LAN port on POP1, the OVS of POP1 is provided with a LAN port (i.e., a first port), the LAN port on the OVS of POP1 is connected to the LAN port (i.e., a second port) on POP1, the LAN port on POP1 is the transmission port on POP1 for the forwarded data traffic, the forwarded data traffic is received from the LAN port on POP1, sent to the LAN port on the OVS of POP1 by the LAN port on POP1, then sent to the VXLAN port on the OVS of POP3 or POP4 by the VXLAN port on the OVS of POP1, i.e., forwarded to the POP 59s of POP3 or POP4 by VXLAN tunnel, that is forwarded to the third port on POP 632 or POP 8656, then sent to the third port (i.e., a POP 368672 or fourth port on POP 8672 or POP4, i.e., the port on POP3 or POP4 on which the data traffic is being forwarded), to the LAN port of switch SW3, to SW4 by SW3, and to client2 by SW 4.
Specifically, POP1 detects the RSTP state of the LAN port on the OVS of POP1, and the LAN port whose RSTP state is the forwarding state is the LAN port that is forwarding data traffic.
Further, the first network entry point transfers the first port, which is forwarding data traffic on the OVS of the first network entry point, to the first standby bridge.
In particular implementation, POP1 sets the LAN port on the OVS of POP1 that is forwarding data traffic to the created standby Linux bridge.
S13, the first point of presence sends a request for creating a backup VXLAN tunnel in cooperation with the second point of presence.
In specific implementation, a first point of presence sends a request for creating a backup VXLAN tunnel in cooperation to a second point of presence, where the request for creating the backup VXLAN tunnel in cooperation includes a source IP address, a destination IP address, and a VNI of the backup VXLAN tunnel created by the first point of presence.
It should be noted that, in the application scenario of the embodiment of the present invention, the application scenario may further include a central management device, when the OVS of the first point of presence needs to be upgraded, the central management device sends an OVS upgrade request to the central management device, and the central management device notifies, according to the network topology structure, that the second point of presence, which needs to be upgraded in cooperation with the first point of presence, cooperates with the first point of presence to create the VXLAN backup tunnel.
In fig. 1, POP1 sends requests to POP3 and POP4, respectively, to create backup VXLAN tunnels in coordination.
S14, the second network access point receives the request for cooperatively creating the standby VXLAN tunnel sent by the first network access point, and creates the standby VXLAN tunnel in cooperation with the first network access point according to the source IP address, the destination IP address and the VNI of the standby VXLAN tunnel created by the first network access point carried in the request for cooperatively creating the standby VXLAN tunnel.
In specific implementation, after receiving the request for creating the backup VXLAN tunnel in cooperation from the first point of presence, the second point of presence sets the source IP address of the backup VXLAN tunnel created by the first point of presence as the destination IP address, sets the destination IP address of the backup VXLAN tunnel created by the first point of presence as the source IP address (i.e., the IP address of the second point of presence), and creates the backup VXLAN tunnel in cooperation with the first point of presence in combination with the VNI.
In fig. 1, POP3 has its own IP address as a source IP address, the IP address of POP1 as a destination IP address, and VNI provided in combination with POP1 creates n backup VXLAN tunnels in cooperation with POP1, and similarly, POP4 has its own IP address as a source IP address, the IP address of POP1 as a destination IP address, and VNI provided in combination with POP1 creates p backup VXLAN tunnels in cooperation with POP1, and m backup VXLAN tunnels are established in total.
Further, the second point-of-presence creates a second standby bridge.
In specific implementation, the mode of creating the second standby bridge by the second point-of-presence is the same as the mode of creating the first standby bridge by the first point-of-presence, and the second point-of-presence establishes a standby Linux bridge on the second point-of-presence through a Linux kernel bridge module and records the standby Linux bridge as the second standby bridge.
Specifically, in fig. 1, POP3 and POP4 each create an alternate Linux bridge.
Further, the first network entry point connects the established standby VXLAN tunnel to a location between the first standby bridge and the second standby bridge, sets a destination port monitored by both the VXLAN module of the first standby bridge and the VXLAN module of the second standby bridge, and sends the destination port to the second network entry point. The destination port is as follows: the destination UDP (User Datagram Protocol) port of VXLAN, initially, the default destination port of VXLAN is generally: 4789, a first mesh point needs to set a different port than a default destination port as a destination port that the VXLAN module of the first standby bridge and the VXLAN module of the second standby bridge monitor together, for example, the destination port may be set as: 4790, the embodiments of the present invention do not limit this, and only need to satisfy the difference with the default destination port of VXLAN, when the destination port set by the first mesh point forwards the data traffic by using the backup tunnel, the destination port serves as a VXLAN destination UDP port monitored by both the VXLAN module of the first backup bridge and the VXLAN module of the second backup bridge.
Specifically, VXLAN ports of corresponding data volumes are respectively arranged on a first standby bridge and a second standby bridge, and the established standby VXLAN tunnels are connected through the VXLAN ports on the first standby bridge and the second standby bridge.
Continuing the example, POP1 sets m VXLAN ports on the first standby bridge it creates, POP3 sets n VXLAN ports on the second standby bridge it creates, POP4 sets p VXLAN ports on the second standby bridge it creates, further n VXLAN tunnels of the m standby VXLAN tunnels created are connected to n VXLAN ports on the second standby bridge created by POP3 through the n VXLAN ports on the first standby bridge created by POP1, and the remaining p standby VXLAN tunnels are connected to p VXLAN ports on the second standby bridge created by POP4 through the remaining p VXLAN ports on the first standby bridge created by POP 1.
Further, the second network access point transfers a third port on the OVS of the second network access point to the second standby network bridge, where the third port is a port where the OVS of the second network access point is connected to a fourth port of the second network access point, and the fourth port is a transmission port of the data traffic forwarded by the VXLAN tunnel forwarding the data traffic on the second network access point.
In particular implementation, and continuing with the example above, POP3 sets the LAN port on the OVS of POP3 to the second standby bridge created by POP3, and POP4 sets the LAN port on the OVS of POP4 to the second standby bridge created by POP 4.
And S15, the first access point transfers the data traffic forwarded in the VXLAN tunnel forwarding the data traffic to a corresponding standby VXLAN tunnel for forwarding, and then upgrades the OVS of the first access point.
In specific implementation, the first network access point transfers the data traffic forwarded in the VXLAN tunnel forwarding the data traffic to the established backup VXLAN tunnel corresponding to one-to-one for forwarding, which is equivalent to forwarding the data by using the first backup bridge to replace the OVS of the first network access point, forwarding the data by using the second backup bridge to replace the OVS of the second network access point, and replacing the original VXLAN tunnel forwarding the data traffic by using the backup VXLAN tunnel.
And then upgrading the OVS of the first point of presence.
In specific implementation, before the OVS of the first point of presence is upgraded, the first port on the OVS of the first point of presence, to which data traffic is not forwarded, needs to be deleted from the OVS of the first point of presence, so as to prevent a network topology structure between the point of presence from being changed after the OVS is upgraded. When the RSTP state of the first port (i.e., the LAN port) on the OVS is not a forwarding (forwarding) state, i.e., the RSTP state is an off (disabled) state or a learning (learning) state, it is determined that the first port on the OVS does not forward the data traffic.
After upgrading is completed, the first port of the deleted OVS of the first point of presence, which is not used for forwarding data traffic, is recovered on the upgraded OVS of the first point of presence, the created standby VXLAN tunnel and the standby bridges created by the first point of presence and the second point of presence are deleted, the first point of presence confirms that the VXLAN port of the upgraded OVS is in a normal state (namely, a forwarding state), the first port (LAN port) which is forwarding data traffic is arranged on the upgraded OVS, the COST value of the RSTP protocol is set to be a value before upgrading, and the data traffic forwarded by the upgraded OVS of the first point of presence and the OVS of the second point of presence is recovered again.
The multi-layer virtual switch upgrading method provided by the embodiment of the invention is applied to at least two network access points provided with OVSs (over the air) and is in communication connection through VXLAN tunnels established by the respective OVSs, wherein each OVS of the network access points comprises at least two VXLAN ports, the VXLAN tunnels between the at least two network access points are connected through the respective VXLAN ports, if the OVS of a first network access point needs to be upgraded, VXLAN tunnel information of data traffic being forwarded in the VXLAN tunnels established by the OVS of the first network access point is acquired, one-to-one corresponding standby VXLAN tunnels are established for the VXLAN tunnels of the data traffic being forwarded according to the VXLAN tunnel information of the data traffic being forwarded, and then the data traffic forwarded in the VXLAN tunnels of the data traffic being forwarded is transferred to the corresponding standby VXLAN tunnels for forwarding, and then the OVS of the first network access point is upgraded, compared with the prior art, in the embodiment of the invention, when the OVS needs to be upgraded, the one-to-one corresponding standby VXLAN tunnels are established for the VXLAN tunnels forwarding the data traffic in the VXLAN tunnels established by the OVS, and the forwarded data traffic is guided to the standby VXLAN tunnels to be forwarded, so that the upgrading of the OVS is completed under the condition of not influencing the data traffic transmission of the client, the smooth upgrading of the OVS without service perception is realized, the network of the client can still normally run without interruption when the OVS is upgraded, and the forwarding efficiency of the data traffic of the client is ensured.
Based on the same inventive concept, embodiments of the present invention further provide a method for upgrading a multi-layer virtual switch implemented by a first point of presence, and because the principle of solving the problem of the method for upgrading a multi-layer virtual switch implemented by the first point of presence is similar to that of the method for upgrading a multi-layer virtual switch, the method for upgrading a multi-layer virtual switch implemented by the first point of presence can be referred to the implementation of the method for upgrading a multi-layer virtual switch, and repeated parts are not described again.
As shown in fig. 4, which is a schematic flowchart of an implementation flow of a method for upgrading a multi-layer virtual switch implemented by a first point of presence side according to an embodiment of the present invention, where the method is applied to at least two points of presence provided with multi-layer virtual switches (OVSs), where the at least two points of presence are in communication connection through VXLAN tunnels established by respective OVSs, each OVS of the point of presence includes at least two VXLAN ports, and the VXLAN tunnels between the at least two points of presence are connected through VXLAN ports, where the method may include the following steps:
and S31, when determining that the OVS of the first point of presence needs to be upgraded, acquiring VXLAN tunnel information of data traffic being forwarded in VXLAN tunnels created by the OVS of the first point of presence.
And S32, establishing a corresponding standby VXLAN tunnel for the VXLAN tunnel forwarding the data traffic according to the VXLAN tunnel information forwarding the data traffic.
And S33, after the data traffic forwarded in the VXLAN tunnel forwarding the data traffic is transferred to a corresponding standby VXLAN tunnel for forwarding, upgrading the OVS of the first point of presence.
Preferably, it is determined that the VXLAN tunnel is forwarding data traffic by:
detecting a Rapid Spanning Tree Protocol (RSTP) state of a VXLAN port on the OVS of the first point of presence;
and determining that the VXLAN tunnel formed by the VXLAN port with the RSTP state being a forwarding state on the OVS of the first point of presence and the VXLAN port connected on the OVS of the second point of presence forwards the data traffic.
Preferably, the VXLAN tunnel information includes a source IP address, a destination IP address, and a VXLAN network identifier VNI, where the source IP address is the first point-of-presence IP address, and the destination IP address is the second point-of-presence IP address;
establishing a corresponding standby VXLAN tunnel for the VXLAN tunnel forwarding the data traffic according to the VXLAN tunnel information forwarding the data traffic, specifically comprising:
setting, for each VXLAN tunnel forwarding data traffic, that a source IP address, a destination IP address, and a VNI of a backup VXLAN tunnel corresponding to the VXLAN tunnel forwarding data traffic are respectively the same as a source IP address, a destination IP address, and a VNI included in VXLAN tunnel information of the data traffic being forwarded, and sending a request for creating a backup VXLAN tunnel in cooperation to the second point of presence, so that the second point of presence creates the backup VXLAN tunnel in cooperation with the first point of presence according to the source IP address, the destination IP address, and the VNI of the backup VXLAN tunnel set on the first point of presence;
establishing a first standby network bridge on the first point of presence, and triggering the second point of presence to establish a second standby network bridge;
connecting the created backup VXLAN tunnel between the first backup bridge and the second backup bridge.
Optionally, after connecting the created backup VXLAN tunnel between the first backup bridge and the second backup bridge, further comprising:
acquiring a first port, which is transmitting data traffic, on the OVS of the first point of presence, where the first port is a port where the OVS of the first point of presence is connected with a second port of the first point of presence, and the second port of the first point of presence is a transmission port, on the first point of presence, of the data traffic being transmitted;
transferring a first port, which is forwarding data traffic on the OVS of the first mesh point, to the first standby bridge, and triggering the second mesh point to transfer a third port, which is connected to a fourth port of the second mesh point, on the OVS of the second mesh point, to the second standby bridge, where the fourth port is a transmission port of the forwarding data traffic on the second mesh point;
and setting a destination port monitored by the VXLAN module of the first standby bridge and the VXLAN module of the second standby bridge together, and sending the destination port to the second point-of-presence.
Optionally, before upgrading the OVS of the first point of presence, the method further includes:
deleting a first port of the data traffic which is not forwarded on the OVS of the first point of presence from the OVS of the first point of presence; and
after determining that the OVS upgrade of the first point of presence is completed, further comprising:
and restoring the deleted first port of the unrewarded data traffic on the OVS of the first point of presence on the upgraded OVS of the first point of presence.
Based on the same inventive concept, embodiments of the present invention further provide a device for upgrading a multi-layer virtual switch implemented by a first point of presence, where the principle of solving the problem of the device for upgrading a multi-layer virtual switch implemented by the first point of presence is similar to that of the method for upgrading a multi-layer virtual switch, so that the method for upgrading a multi-layer virtual switch implemented by the first point of presence can be referred to the method for upgrading a multi-layer virtual switch, and repeated parts are not described again.
As shown in fig. 5, which is a schematic structural diagram of an apparatus for upgrading a multi-layer virtual switch implemented by a first network access point according to an embodiment of the present invention, where the apparatus is applied to at least two network access points provided with OVSs, where the at least two network access points perform communication connection through VXLAN tunnels established by the respective OVSs, each OVS of the network access points includes at least two VXLAN ports, and the VXLAN tunnels between the at least two network access points are connected through the VXLAN ports, and the apparatus may include:
an obtaining unit 41, configured to obtain VXLAN tunnel information of a data traffic being forwarded in a VXLAN tunnel created by an OVS of a first point of presence when it is determined that the OVS of the first point of presence needs to be updated;
the establishing unit 42 is configured to establish a corresponding standby VXLAN tunnel for the VXLAN tunnel forwarding the data traffic according to the VXLAN tunnel information forwarding the data traffic;
an upgrading unit 43, configured to upgrade the OVS of the first point of presence after transferring the data traffic forwarded in the VXLAN tunnel that is forwarding the data traffic to a corresponding standby VXLAN tunnel for forwarding.
Preferably, the obtaining unit 41 is specifically configured to determine that the VXLAN tunnel is forwarding data traffic by: detecting a Rapid Spanning Tree Protocol (RSTP) state of a VXLAN port on the OVS of the first point of presence; and determining that the VXLAN tunnel formed by the VXLAN port with the RSTP state being a forwarding state on the OVS of the first point of presence and the VXLAN port connected on the OVS of the second point of presence forwards the data traffic.
Preferably, the VXLAN tunnel information includes a source IP address, a destination IP address, and a VXLAN network identifier VNI, where the source IP address is the first point-of-presence IP address, and the destination IP address is the second point-of-presence IP address;
the establishing unit is specifically configured to set, for each VXLAN tunnel forwarding data traffic, a source IP address, a destination IP address, and a VNI of a backup VXLAN tunnel corresponding to the VXLAN tunnel forwarding data traffic to be respectively the same as a source IP address, a destination IP address, and a VNI included in the VXLAN tunnel information of the forwarding data traffic, and send a request for creating a backup VXLAN tunnel in cooperation to the second point of presence, so that the second point of presence creates the backup VXLAN tunnel in cooperation with the first point of presence according to the source IP address, the destination IP address, and the VNI of the backup VXLAN tunnel set on the first point of presence; establishing a first standby network bridge on the first point of presence, and triggering the second point of presence to establish a second standby network bridge; connecting the created backup VXLAN tunnel between the first backup bridge and the second backup bridge.
Optionally, the obtaining unit is further configured to obtain a first port on the OVS of the first mesh point, where the first port is a port where the OVS of the first mesh point is connected to a second port of the first mesh point, and the second port is a transmission port on the first mesh point, where the forwarded data traffic is after the created backup VXLAN tunnel is connected between the first backup bridge and the second backup bridge;
the establishing unit is further configured to transfer a first port, which is forwarding data traffic on the OVS of the first network access point, to the first standby bridge, and trigger the second network access point to transfer a third port, which is connected to a fourth port of the second network access point, on the OVS of the second network access point, where the fourth port is a transmission port of the forwarding data traffic on the second network access point, to the second standby bridge;
the establishing unit is further configured to set a destination port monitored by both the VXLAN module of the first standby bridge and the VXLAN module of the second standby bridge, and send the destination port to the second point of presence.
Optionally, the apparatus further comprises:
a deleting unit, configured to delete, before upgrading the OVS of the first point of presence, a first port, on the OVS of the first point of presence, for which data traffic is not forwarded, from the OVS of the first point of presence;
and the recovery unit is configured to, after determining that the OVS of the first point of presence is upgraded, recover the deleted first port of the unrewarded data traffic on the OVS of the first point of presence on the upgraded OVS of the first point of presence.
Based on the same inventive concept, embodiments of the present invention further provide a method for upgrading a multi-layer virtual switch implemented by a second point of presence, and because the principle of solving the problem of the method for upgrading a multi-layer virtual switch implemented by the second point of presence is similar to that of the method for upgrading a multi-layer virtual switch, the method for upgrading a multi-layer virtual switch implemented by the second point of presence can be referred to the implementation of the method for upgrading a multi-layer virtual switch, and repeated parts are not described again.
As shown in fig. 6, which is a schematic flowchart of an implementation flow of a method for upgrading a multi-layer virtual switch implemented by a second point of presence side according to an embodiment of the present invention, where the method is applied to at least two points of presence provided with multi-layer virtual switches (OVSs), where the at least two points of presence are in communication connection through VXLAN tunnels established by respective OVSs, each OVS of the point of presence includes at least two VXLAN ports, and the VXLAN tunnels between the at least two points of presence are connected through VXLAN ports, and the method may include:
s51, the second network access point receives a request for cooperatively creating a backup VXLAN tunnel, where the request for cooperatively creating the backup VXLAN tunnel is sent by the first network access point when the OVS of the first network access point determines that the OVS of the first network access point needs to be upgraded, where the request for cooperatively creating the backup VXLAN tunnel includes a source IP address and a destination IP address of the backup VXLAN tunnel created by the first network access point and a VXLAN network identifier VNI, and the backup VXLAN tunnel is a backup tunnel corresponding to a VXLAN tunnel that is forwarding data traffic among the VXLAN tunnels created by the OVS of the first network access point.
S52, creating a backup VXLAN tunnel in cooperation with the first point of presence according to the source IP address, the destination IP address, and the VNI, where the backup VXLAN tunnel is used to transmit the forwarded data traffic when the OVS of the first point of presence is upgraded.
Optionally, the method further comprises:
creating a second standby bridge and connecting the standby VXLAN tunnel between the second standby bridge and a first standby bridge created by the first point-of-presence;
and transferring a third port on the OVS of the second network access point to the second standby network bridge, where the third port is a port where the OVS of the second network access point is connected to a fourth port of the second network access point, and the fourth port is a transmission port of the data traffic forwarded by the VXLAN tunnel forwarding the data traffic on the second network access point.
Optionally, the method further comprises:
and receiving a destination port which is monitored by the VXLAN module of the first standby bridge and the VXLAN module of the second standby bridge and sent by the first point of presence.
Based on the same inventive concept, embodiments of the present invention further provide a multi-layer virtual switch upgrading apparatus implemented by a second point of presence, and because the principle of solving the problem of the multi-layer virtual switch upgrading apparatus implemented by the second point of presence is similar to that of the multi-layer virtual switch upgrading method, the implementation of the multi-layer virtual switch upgrading apparatus implemented by the second point of presence may refer to the implementation of the multi-layer virtual switch upgrading method, and repeated parts are not described again.
As shown in fig. 7, which is a schematic structural diagram of a multi-layer virtual switch upgrading apparatus provided by an embodiment of the present invention, in a fourth aspect, an embodiment of the present invention provides a multi-layer virtual switch upgrading apparatus implemented by a second point of presence side, where the apparatus is applied to at least two points of presence provided with multi-layer virtual switches (OVSs), where the at least two points of presence communicate with each other through VXLAN tunnels established by respective OVSs, each OVS of the point of presence includes at least two VXLAN ports, and the VXLAN tunnels between the at least two points of presence are connected through VXLAN ports, and the apparatus includes:
a receiving unit 61, configured to receive, by a second point of presence, a request for cooperatively creating a standby VXLAN tunnel, where the request for cooperatively creating the standby VXLAN tunnel is sent by a first point of presence when it is determined that an OVS of the first point of presence needs to be upgraded, where the request for cooperatively creating the standby VXLAN tunnel includes a source IP address and a destination IP address of the standby VXLAN tunnel created by the first point of presence, and a VXLAN network identifier VNI, and the standby VXLAN tunnel is a standby tunnel corresponding to a VXLAN tunnel which is forwarding data traffic in the VXLAN tunnels created by the OVS of the first point of presence;
a cooperating unit 62, configured to cooperate with the first network point to create a standby VXLAN tunnel according to the source IP address, the destination IP address, and the VNI, where the standby VXLAN tunnel is used to transmit the forwarded data traffic when the OVS of the first network point is upgraded.
Optionally, the apparatus further comprises:
a creating unit, configured to create a second standby bridge and connect the standby VXLAN tunnel between the second standby bridge and a first standby bridge created by the first point-of-presence;
a transferring unit, configured to transfer a third port on the OVS of the second network access point to the second standby bridge, where the third port is a port where the OVS of the second network access point is connected to a fourth port of the second network access point, and the fourth port is a transmission port of the data traffic forwarded by the VXLAN tunnel forwarding the data traffic on the second network access point.
Optionally, the receiving unit is further configured to receive a destination port, which is monitored by the VXLAN module of the first standby bridge and the VXLAN module of the second standby bridge and sent by the first point of presence.
Based on the same technical concept, an embodiment of the present invention further provides an electronic device 700, and referring to fig. 8, the electronic device 700 is configured to implement the method for upgrading a multilayer virtual switch described in the foregoing method embodiment, where the electronic device 700 of this embodiment may include: a memory 701, a processor 702, and a computer program, such as a multi-layer virtual switch upgrade program, stored in the memory and executable on the processor. The processor, when executing the computer program, implements the steps in each of the above-described embodiments of the multi-layer virtual switch upgrade method, such as step S31 shown in fig. 4. Alternatively, the processor, when executing the computer program, implements the functions of the modules/units in the above-described device embodiments, for example, 41.
The embodiment of the present invention does not limit the specific connection medium between the memory 701 and the processor 702. In the embodiment of the present application, the memory 701 and the processor 702 are connected by the bus 703 in fig. 8, the bus 703 is indicated by a thick line in fig. 8, and the connection manner between other components is merely schematically illustrated and is not limited thereto. The bus 703 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 8, but this is not intended to represent only one bus or type of bus.
The memory 701 may be a volatile memory (volatile memory), such as a random-access memory (RAM); the memory 701 may also be a non-volatile memory (non-volatile memory) such as, but not limited to, a read-only memory (rom), a flash memory (flash memory), a Hard Disk Drive (HDD) or a solid-state drive (SSD), or any other medium which can be used to carry or store desired program code in the form of instructions or data structures and which can be accessed by a computer. Memory 701 may be a combination of the above.
The processor 702 is configured to implement the multi-layer virtual switch upgrade method implemented by the first network-point-of-presence side shown in fig. 4, and includes:
the processor 702 is configured to invoke the computer program stored in the memory 701 to execute step S31 shown in fig. 4, and when it is determined that the OVS of the first point of presence needs to be upgraded, obtain VXLAN tunnel information of a forwarding data traffic in VXLAN tunnels created by the OVS of the first point of presence, step S32, establish a corresponding standby VXLAN tunnel for the VXLAN tunnel of the forwarding data traffic according to the VXLAN tunnel information of the forwarding data traffic, and step S33, after transferring the data traffic forwarded in the VXLAN tunnel of the forwarding data traffic to the corresponding standby VXLAN tunnel and forwarding the data traffic, upgrade the OVS of the first point of presence.
Or, the processor 702 is further configured to implement the method for upgrading a multi-layer virtual switch implemented by the second point-of-presence side as shown in fig. 6, where the method includes:
the processor 702 is configured to invoke the computer program stored in the memory 701 to execute step S51 shown in fig. 6, where the second network point of presence receives a request for creating a backup VXLAN tunnel in cooperation, where the request for creating a backup VXLAN tunnel includes a source IP address, a destination IP address, and a VXLAN network identifier VNI of the backup VXLAN tunnel created by the first network point, and the backup VXLAN tunnel is a backup tunnel corresponding to a VXLAN tunnel that forwards data traffic among VXLAN tunnels created by the OVS of the first network point, and step S52 creates a backup VXLAN tunnel in cooperation with the first network point according to the source IP address, the destination IP address, and the VNI, and the backup VXLAN tunnel is used to transmit the data traffic that is being forwarded when the OVS of the first network point is upgraded.
The embodiment of the present application further provides a computer-readable storage medium, which stores computer-executable instructions required to be executed by the processor, and includes a program required to be executed by the processor.
In some possible embodiments, the aspects of the multi-layer virtual switch upgrading method provided by the present invention can also be implemented in the form of a program product, which includes program codes for causing an electronic device to execute the steps in the multi-layer virtual switch upgrading method according to various exemplary embodiments of the present invention described above in this specification when the program product runs on the electronic device, for example, the electronic device may execute step S31 shown in fig. 4, when it is determined that the OVS of a first point of presence needs to be upgraded, obtain VXLAN tunnel information of forwarding data traffic in the VXLAN tunnel created by the OVS of the first point of presence, step S32, establish a corresponding backup VXLAN tunnel for the VXLAN tunnel forwarding data traffic according to the VXLAN tunnel information of forwarding data traffic, and step S33, And after the data traffic forwarded in the VXLAN tunnel forwarding the data traffic is transferred to a corresponding standby VXLAN tunnel for forwarding, upgrading the OVS of the first point of presence. Alternatively, the electronic device may execute step S51 shown in fig. 6, where the second network access point receives a request for creating a backup VXLAN tunnel in cooperation, where the request includes a source IP address, a destination IP address, and a VXLAN network identifier VNI of the backup VXLAN tunnel created by the first network access point, and the backup VXLAN tunnel is a backup tunnel corresponding to a VXLAN tunnel that is forwarding data traffic among VXLAN tunnels created by the OVS of the first network access point, and step S52 creates a backup VXLAN tunnel in cooperation with the first network access point according to the source IP address, the destination IP address, and the VNI, and the backup VXLAN tunnel is used for transmitting the forwarded data traffic when the OVS of the first network access point is upgraded.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (18)

1. A method for upgrading a multilayer virtual switch is applied to at least two network access points provided with a multilayer virtual switch OVS, the at least two network access points are in communication connection through a VXLAN tunnel of a virtual expanded local area network established by the respective OVS, each OVS of the network access points comprises at least two VXLAN ports, and the VXLAN tunnels between the at least two network access points are connected through the VXLAN ports, and the method comprises the following steps:
when determining that the OVS of a first point of presence needs to be upgraded, acquiring VXLAN tunnel information of data traffic being forwarded in a VXLAN tunnel created by the OVS of the first point of presence;
establishing a corresponding standby VXLAN tunnel for the VXLAN tunnel forwarding the data traffic according to the VXLAN tunnel information forwarding the data traffic;
and after the data traffic forwarded in the VXLAN tunnel forwarding the data traffic is transferred to a corresponding standby VXLAN tunnel for forwarding, upgrading the OVS of the first point of presence.
2. The method of claim 1, wherein the VXLAN tunnel is determining that the VXLAN tunnel is forwarding data traffic by:
detecting a Rapid Spanning Tree Protocol (RSTP) state of a VXLAN port on the OVS of the first point of presence;
and determining that the VXLAN tunnel formed by the VXLAN port with the RSTP state being a forwarding state on the OVS of the first point of presence and the VXLAN port connected on the OVS of the second point of presence forwards the data traffic.
3. The method of claim 2, wherein the VXLAN tunnel information comprises a source IP address, a destination IP address, and a VXLAN network identification, VNI, the source IP address being the first point-of-presence IP address, the destination IP address being the second point-of-presence IP address;
establishing a corresponding standby VXLAN tunnel for the VXLAN tunnel forwarding the data traffic according to the VXLAN tunnel information forwarding the data traffic, specifically comprising:
setting, for each VXLAN tunnel forwarding data traffic, that a source IP address, a destination IP address, and a VNI of a backup VXLAN tunnel corresponding to the VXLAN tunnel forwarding data traffic are respectively the same as a source IP address, a destination IP address, and a VNI included in VXLAN tunnel information of the data traffic being forwarded, and sending a request for creating a backup VXLAN tunnel in cooperation to the second point of presence, so that the second point of presence creates the backup VXLAN tunnel in cooperation with the first point of presence according to the source IP address, the destination IP address, and the VNI of the backup VXLAN tunnel set on the first point of presence;
establishing a first standby network bridge on the first point of presence, and triggering the second point of presence to establish a second standby network bridge;
connecting the created backup VXLAN tunnel between the first backup bridge and the second backup bridge.
4. The method of claim 3, further comprising, after connecting the created backup VXLAN tunnel between the first backup bridge and the second backup bridge:
acquiring a first port, which is transmitting data traffic, on the OVS of the first point of presence, where the first port is a port where the OVS of the first point of presence is connected with a second port of the first point of presence, and the second port of the first point of presence is a transmission port, on the first point of presence, of the data traffic being transmitted;
transferring a first port, which is forwarding data traffic on the OVS of the first mesh point, to the first standby bridge, and triggering the second mesh point to transfer a third port, which is connected to a fourth port of the second mesh point, on the OVS of the second mesh point, to the second standby bridge, where the fourth port is a transmission port of the forwarding data traffic on the second mesh point;
and setting a destination port monitored by the VXLAN module of the first standby bridge and the VXLAN module of the second standby bridge together, and sending the destination port to the second point-of-presence.
5. The method of claim 4,
before upgrading the OVS of the first point of presence, the method further includes:
deleting a first port of the data traffic which is not forwarded on the OVS of the first point of presence from the OVS of the first point of presence; and
after determining that the OVS upgrade of the first point of presence is completed, further comprising:
and restoring the deleted first port of the unrewarded data traffic on the OVS of the first point of presence on the upgraded OVS of the first point of presence.
6. A method for upgrading a multilayer virtual switch is applied to at least two network access points provided with a multilayer virtual switch OVS, the at least two network access points are in communication connection through a VXLAN tunnel of a virtual expanded local area network established by the respective OVS, each OVS of the network access points comprises at least two VXLAN ports, and the VXLAN tunnels between the at least two network access points are connected through the VXLAN ports, and the method comprises the following steps:
a second network point of presence receives a request for cooperatively establishing a standby VXLAN tunnel, which is sent by a first network point of presence when the OVS of the first network point of presence determines that the OVS of the first network point of presence needs to be upgraded, wherein the request for cooperatively establishing the standby VXLAN tunnel comprises a source IP address, a destination IP address and a VXLAN network identifier VNI of the standby VXLAN tunnel established by the first network point of presence, and the standby VXLAN tunnel is a standby tunnel corresponding to a VXLAN tunnel which forwards data traffic in the VXLAN tunnels established by the OVS of the first network point of presence;
and creating a standby VXLAN tunnel by cooperating with the first point of presence according to the source IP address, the destination IP address and the VNI, wherein the standby VXLAN tunnel is used for transmitting the forwarded data traffic when the OVS of the first point of presence is upgraded.
7. The method of claim 6, further comprising:
creating a second standby bridge and connecting the standby VXLAN tunnel between the second standby bridge and a first standby bridge created by the first point-of-presence;
and transferring a third port on the OVS of the second network access point to the second standby network bridge, where the third port is a port where the OVS of the second network access point is connected to a fourth port of the second network access point, and the fourth port is a transmission port of the data traffic forwarded by the VXLAN tunnel forwarding the data traffic on the second network access point.
8. The method of claim 7, further comprising:
and receiving a destination port which is monitored by the VXLAN module of the first standby bridge and the VXLAN module of the second standby bridge and sent by the first point of presence.
9. A multi-layer virtual switch upgrading device is applied to at least two network access points provided with a multi-layer virtual switch OVS, the at least two network access points are in communication connection through virtual extensible local area network VXLAN tunnels established by the respective OVS, each OVS of the network access points comprises at least two VXLAN ports, and the VXLAN tunnels between the at least two network access points are connected through the VXLAN ports, the device comprises:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring VXLAN tunnel information of data traffic forwarding in a VXLAN tunnel created by an OVS of a first point of presence when the OVS of the first point of presence needs to be upgraded;
the establishing unit is used for establishing a corresponding standby VXLAN tunnel for the VXLAN tunnel forwarding the data traffic according to the VXLAN tunnel information forwarding the data traffic;
and the upgrading unit is used for upgrading the OVS of the first point of presence after transferring the data traffic forwarded in the VXLAN tunnel which is forwarding the data traffic to the corresponding standby VXLAN tunnel for forwarding.
10. The apparatus of claim 9,
the obtaining unit is specifically configured to determine that the VXLAN tunnel is forwarding data traffic in the following manner: detecting a Rapid Spanning Tree Protocol (RSTP) state of a VXLAN port on the OVS of the first point of presence; and determining that the VXLAN tunnel formed by the VXLAN port with the RSTP state being a forwarding state on the OVS of the first point of presence and the VXLAN port connected on the OVS of the second point of presence forwards the data traffic.
11. The apparatus of claim 10, wherein the VXLAN tunnel information comprises a source IP address, a destination IP address, and a VXLAN network identification, VNI, the source IP address being the first point-of-presence IP address, the destination IP address being the second point-of-presence IP address;
the establishing unit is specifically configured to set, for each VXLAN tunnel forwarding data traffic, a source IP address, a destination IP address, and a VNI of a backup VXLAN tunnel corresponding to the VXLAN tunnel forwarding data traffic to be respectively the same as a source IP address, a destination IP address, and a VNI included in the VXLAN tunnel information of the forwarding data traffic, and send a request for creating a backup VXLAN tunnel in cooperation to the second point of presence, so that the second point of presence creates the backup VXLAN tunnel in cooperation with the first point of presence according to the source IP address, the destination IP address, and the VNI of the backup VXLAN tunnel set on the first point of presence; establishing a first standby network bridge on the first point of presence, and triggering the second point of presence to establish a second standby network bridge; connecting the created backup VXLAN tunnel between the first backup bridge and the second backup bridge.
12. The apparatus of claim 11,
the obtaining unit is further configured to obtain a first port, which is used for forwarding data traffic and is on the OVS of the first mesh point, after the created standby VXLAN tunnel is connected between the first standby bridge and the second standby bridge, where the first port is a port where the OVS of the first mesh point is connected to a second port of the first mesh point, and the second port of the first mesh point is a transmission port of the forwarded data traffic on the first mesh point;
the establishing unit is further configured to transfer a first port, which is forwarding data traffic on the OVS of the first network access point, to the first standby bridge, and trigger the second network access point to transfer a third port, which is connected to a fourth port of the second network access point, on the OVS of the second network access point, where the fourth port is a transmission port of the forwarding data traffic on the second network access point, to the second standby bridge;
the establishing unit is further configured to set a destination port monitored by both the VXLAN module of the first standby bridge and the VXLAN module of the second standby bridge, and send the destination port to the second point of presence.
13. The apparatus of claim 12, further comprising:
a deleting unit, configured to delete, before upgrading the OVS of the first point of presence, a first port, on the OVS of the first point of presence, for which data traffic is not forwarded, from the OVS of the first point of presence;
and the recovery unit is configured to, after determining that the OVS of the first point of presence is upgraded, recover the deleted first port of the unrewarded data traffic on the OVS of the first point of presence on the upgraded OVS of the first point of presence.
14. A multi-layer virtual switch upgrading device is applied to at least two network access points provided with a multi-layer virtual switch OVS, the at least two network access points are in communication connection through virtual extensible local area network VXLAN tunnels established by the respective OVS, each OVS of the network access points comprises at least two VXLAN ports, and the VXLAN tunnels between the at least two network access points are connected through the VXLAN ports, the device comprises:
a receiving unit, configured to receive, by a second point of presence, a request for cooperatively creating a standby VXLAN tunnel, where the request for cooperatively creating the standby VXLAN tunnel is sent by a first point of presence when it is determined that an OVS of the first point of presence needs to be upgraded, where the request for cooperatively creating the standby VXLAN tunnel includes a source IP address and a destination IP address of the standby VXLAN tunnel created by the first point of presence, and a VXLAN network identifier VNI, and the standby VXLAN tunnel is a standby tunnel corresponding to a VXLAN tunnel, where data traffic is being forwarded, in the VXLAN tunnels created by the OVS of the first point of presence;
a coordination unit, configured to coordinate the first point of presence to create a standby VXLAN tunnel according to the source IP address, the destination IP address, and the VNI, where the standby VXLAN tunnel is used to transmit the forwarded data traffic when the OVS of the first point of presence is upgraded.
15. The apparatus of claim 14, further comprising:
a creating unit, configured to create a second standby bridge and connect the standby VXLAN tunnel between the second standby bridge and a first standby bridge created by the first point-of-presence;
a transferring unit, configured to transfer a third port on the OVS of the second network access point to the second standby bridge, where the third port is a port where the OVS of the second network access point is connected to a fourth port of the second network access point, and the fourth port is a transmission port of the data traffic forwarded by the VXLAN tunnel forwarding the data traffic on the second network access point.
16. The apparatus of claim 15,
the receiving unit is further configured to receive a destination port, which is sent by the first point of presence and monitored by the VXLAN module of the first standby bridge and the VXLAN module of the second standby bridge together.
17. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for upgrading a multi-layer virtual switch according to any one of claims 1 to 5 or 6 to 8 when executing the program.
18. A computer-readable storage medium having stored thereon a computer program, characterized in that the program, when executed by a processor, implements the steps in the method for upgrading a multi-layer virtual switch according to any of claims 1-5 or 6-8.
CN202011484437.9A 2020-12-16 2020-12-16 Multilayer virtual switch upgrading method and device, electronic equipment and storage medium Active CN112653610B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011484437.9A CN112653610B (en) 2020-12-16 2020-12-16 Multilayer virtual switch upgrading method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011484437.9A CN112653610B (en) 2020-12-16 2020-12-16 Multilayer virtual switch upgrading method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112653610A CN112653610A (en) 2021-04-13
CN112653610B true CN112653610B (en) 2022-02-18

Family

ID=75354272

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011484437.9A Active CN112653610B (en) 2020-12-16 2020-12-16 Multilayer virtual switch upgrading method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112653610B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116684204B (en) * 2023-08-03 2023-09-29 北京立思辰安科技术有限公司 Processing method for industrial control firewall single-machine hot standby

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103124286A (en) * 2011-11-07 2013-05-29 李宗诚 Heaven and earth operating system for expanding technological base of cloud computing and Internet of Things
CN104660469A (en) * 2015-02-15 2015-05-27 华为技术有限公司 Layer-2 network connectivity detecting method and associated equipment
CN106899513A (en) * 2017-03-29 2017-06-27 新华三技术有限公司 The management method and device in VXLAN tunnels
CN107770062A (en) * 2016-08-16 2018-03-06 北京金山云网络技术有限公司 A kind of data packet sending method, device and the network architecture

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9419897B2 (en) * 2014-06-30 2016-08-16 Nicira, Inc. Methods and systems for providing multi-tenancy support for Single Root I/O Virtualization

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103124286A (en) * 2011-11-07 2013-05-29 李宗诚 Heaven and earth operating system for expanding technological base of cloud computing and Internet of Things
CN104660469A (en) * 2015-02-15 2015-05-27 华为技术有限公司 Layer-2 network connectivity detecting method and associated equipment
CN107770062A (en) * 2016-08-16 2018-03-06 北京金山云网络技术有限公司 A kind of data packet sending method, device and the network architecture
CN106899513A (en) * 2017-03-29 2017-06-27 新华三技术有限公司 The management method and device in VXLAN tunnels

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《云计算数据中心网络设计综述》;王斌锋;《计算机研究与发展》;20160915;第53卷(第9期);全文 *

Also Published As

Publication number Publication date
CN112653610A (en) 2021-04-13

Similar Documents

Publication Publication Date Title
JP6518697B2 (en) System and method for controlling a network switch using a switch modeling interface on a controller
US10263808B2 (en) Deployment of virtual extensible local area network
US20170195168A1 (en) Method for migrating service of data center, apparatus, and system
EP2843906B1 (en) Method, apparatus, and system for data transmission
WO2015167597A1 (en) Data plane to forward traffic based on communications from a software defined networking (sdn) controller during control plane failure
US10050859B2 (en) Apparatus for processing network packet using service function chaining and method for controlling the same
JP5861772B2 (en) Network appliance redundancy system, control device, network appliance redundancy method and program
CN106576108B (en) Communication method, equipment and system in communication system
WO2021098727A1 (en) Network deployment method and system
US10581669B2 (en) Restoring control-plane connectivity with a network management entity
US20190215191A1 (en) Deployment Of Virtual Extensible Local Area Network
WO2020057445A1 (en) Communication system, method, and device
US9553764B2 (en) Migration of guest bridge
CN111556110A (en) Automatic adaptation method for different physical service networks of private cloud system
CN112653610B (en) Multilayer virtual switch upgrading method and device, electronic equipment and storage medium
CN102447703B (en) A kind of heat backup method and system, CGN equipment
CN109302328B (en) Hot standby switching method and system for VXLAN (virtual extensible local area network)
US20080069106A1 (en) Communication apparatus
JP4040045B2 (en) Data transfer device
JP6953713B2 (en) Communication nodes, communication systems, communication methods and programs
JP6718739B2 (en) Communication device and communication method
WO2016177211A1 (en) Address resolution protocol (arp) table entry synchronization method and device
JP4988053B2 (en) Network equipment
CN113765783B (en) Communication method and device
CN111526224B (en) Emergency network communication method, gateway and computer readable storage medium

Legal Events

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