CN109005097B - Message forwarding method and device - Google Patents

Message forwarding method and device Download PDF

Info

Publication number
CN109005097B
CN109005097B CN201810706217.2A CN201810706217A CN109005097B CN 109005097 B CN109005097 B CN 109005097B CN 201810706217 A CN201810706217 A CN 201810706217A CN 109005097 B CN109005097 B CN 109005097B
Authority
CN
China
Prior art keywords
tunnel
vxlan
state
vsi
vxlan tunnel
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
CN201810706217.2A
Other languages
Chinese (zh)
Other versions
CN109005097A (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201810706217.2A priority Critical patent/CN109005097B/en
Publication of CN109005097A publication Critical patent/CN109005097A/en
Application granted granted Critical
Publication of CN109005097B publication Critical patent/CN109005097B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/148Migration or transfer of sessions

Abstract

The invention relates to a message forwarding method and a message forwarding device. The method comprises the following steps: receiving a tunnel switching command, wherein the tunnel switching command comprises an identifier of a first VSI and an identifier of a first VXLAN tunnel; acquiring the tunnel interface state of a first VXLAN tunnel and the tunnel interface state of a second VXLAN tunnel in the first VSI according to the identifier of the first VSI and the identifier of the first VXLAN tunnel; if the tunnel interface state of the first VXLAN tunnel in the first VSI is an effective state and the tunnel interface state of the second VXLAN tunnel is a blocking state, switching the tunnel interface state of the first VXLAN tunnel in the first VSI to the blocking state and switching the tunnel interface state of the second VXLAN tunnel to the effective state; and the output port corresponding to the first VSI in the forwarding table stored in the VTEP is replaced by the identifier of the first VXLAN tunnel into the identifier of the second VXLAN tunnel, and the VTEP can flexibly select the VXLAN tunnel used for forwarding the service message in the VSI.

Description

Message forwarding method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for forwarding a packet.
Background
Virtual extended Local Area Network (VXLAN) is a two-layer Virtual Private Network (VPN) technology based on a Network Protocol (IP) Network and adopting a Media Access Control in User data Protocol (MAC in UDP) encapsulation form. VXLAN is mainly applied to data center networks, can provide two-layer interconnection for scattered physical sites based on existing service providers or enterprise IP networks, and can provide service isolation for different tenants.
In the related technology, the reliability of VXLAN network for service message transmission is ensured through the main VXLAN tunnel and the standby VXLAN tunnel. For example, the first VXLAN tunnel and the second VXLAN tunnel are primary VXLAN tunnels. And forwarding the service message through the first VXLAN tunnel. And if the first VXLAN tunnel has a fault, switching the service message to a second VXLAN tunnel for forwarding. Therefore, the transmission of the service message cannot be interrupted, and the reliability of the VXLAN network is improved.
However, VTEP cannot flexibly select a VXLAN tunnel for forwarding a service packet. In other words, if the service packet is forwarded through the first VXLAN tunnel, unless the tunnel interface state of the first VXLAN tunnel is changed from the valid state to the invalid state, the tunnel interface state of the second VXLAN tunnel cannot be switched from the blocking state to the valid state, and the service packet cannot be switched to the second VXLAN tunnel for forwarding. If the tunnel interface state of the first VXLAN tunnel is always kept in an effective state, the service message is forwarded through the first VXLAN tunnel and cannot be switched to the second VXLAN tunnel for forwarding.
Disclosure of Invention
In view of this, the present invention provides a message forwarding method and apparatus, so as to solve the problem in the related art that, in the primary and standby VXLAN tunnels, the VTEP cannot flexibly select the VXLAN tunnel for forwarding the service message.
In a first aspect, the present invention provides a packet forwarding method, which is applicable to a VXLAN tunnel endpoint VTEP, where the VTEP is configured with a first virtual switch instance VSI, and the first VSI is configured with a first VXLAN tunnel associated with a first VXLAN and a second VXLAN tunnel associated with the first VXLAN, and the method includes:
receiving a tunnel switch command, the tunnel switch command including an identification of the first VSI and an identification of the first VXLAN tunnel;
acquiring the tunnel interface state of the first VXLAN tunnel and the tunnel interface state of a second VXLAN tunnel in the first VSI according to the identifier of the first VSI and the identifier of the first VXLAN tunnel;
if the tunnel interface state of the first VXLAN tunnel in the first VSI is an effective state and the tunnel interface state of the second VXLAN tunnel is a blocking state, switching the tunnel interface state of the first VXLAN tunnel in the first VSI to the blocking state and switching the tunnel interface state of the second VXLAN tunnel to the effective state;
and replacing the identifier of the first VXLAN tunnel in the output port corresponding to the first VSI in the forwarding table stored in the VTEP with the identifier of the second VXLAN tunnel.
With reference to the first aspect, in a first implementation manner, the method further includes:
and if the tunnel interface state of the first VXLAN tunnel in the first VSI is an effective state and the tunnel interface state of the second VXLAN tunnel is an invalid state, keeping the tunnel interface state of the first VXLAN tunnel and the tunnel interface state of the second VXLAN tunnel in the first VSI unchanged.
With reference to the first aspect, in a second implementation manner, the method further includes:
if the tunnel interface state of the first VXLAN tunnel in the first VSI is changed from the effective state to the invalid state, switching the tunnel interface state of the second VXLAN tunnel in the first VSI from the blocking state to the effective state;
and replacing the identifier of the first VXLAN tunnel in the output port corresponding to the first VSI in the forwarding table stored in the VTEP with the identifier of the second VXLAN tunnel.
With reference to the first aspect, in a third implementation manner, after the state of the tunnel interface of the first VXLAN tunnel changes from the active state to the inactive state in the first VSI, the method further includes:
receiving a tunnel back-switching command, wherein the tunnel back-switching command comprises an identifier of the first VSI, an identifier of the first VXLAN tunnel and back-switching duration;
if the tunnel interface state of the first VXLAN tunnel in the first VSI is switched from the invalid state to the blocking state and the blocking state is kept for the switching-back duration, switching the tunnel interface state of the first VXLAN tunnel in the first VSI from the blocking state to the valid state, and switching the tunnel interface state of the second VXLAN tunnel from the valid state to the blocking state;
and replacing the identifier of the second VXLAN tunnel for the output port corresponding to the first VSI in the forwarding table stored in the VTEP with the identifier of the first VXLAN tunnel.
With reference to the first aspect, in a fourth implementation manner, the VTEP or a VTEP other than the VTEP is configured with a second VSI, and the second VSI is configured with a first VXLAN tunnel associated with a second VXLAN, and the method further includes:
and when the tunnel interface state of the first VXLAN tunnel in the first VSI is changed, keeping the tunnel interface state of the first VXLAN tunnel in the second VSI unchanged.
In a second aspect, the present invention provides a packet forwarding apparatus, adapted to a VXLAN tunnel endpoint VTEP, where the VTEP is configured with a first virtual switch instance VSI, and the first VSI is configured with a first VXLAN tunnel associated with a first VXLAN and a second VXLAN tunnel associated with the first VXLAN, the apparatus including:
a receiving module, configured to receive a tunnel switching command, where the tunnel switching command includes an identifier of the first VSI and an identifier of the first VXLAN tunnel;
an obtaining module, configured to obtain, according to the identifier of the first VSI and the identifier of the first VXLAN tunnel, a tunnel interface state of the first VXLAN tunnel and a tunnel interface state of a second VXLAN tunnel in the first VSI;
a processing module, configured to switch a tunnel interface state of the first VXLAN tunnel in the first VSI to a blocking state and switch a tunnel interface state of the second VXLAN tunnel to an active state if the tunnel interface state of the first VXLAN tunnel in the first VSI is an active state and the tunnel interface state of the second VXLAN tunnel is a blocking state;
and the replacing module is used for replacing the identifier of the first VXLAN tunnel with the identifier of a second VXLAN tunnel at the output port corresponding to the first VSI in the forwarding table stored in the VTEP.
With reference to the second aspect, in a first implementation manner, the apparatus further includes:
the processing module is further configured to keep the tunnel interface state of the first VXLAN tunnel and the tunnel interface state of the second VXLAN tunnel in the first VSI unchanged if the tunnel interface state of the first VXLAN tunnel in the first VSI is an active state and the tunnel interface state of the second VXLAN tunnel in the first VSI is an inactive state.
With reference to the second aspect, in a second implementation manner, the apparatus further includes:
the processing module is further configured to switch the tunnel interface state of the second VXLAN tunnel in the first VSI from a blocking state to an active state if the tunnel interface state of the first VXLAN tunnel in the first VSI changes from an active state to an inactive state;
the replacing module is further configured to replace the identifier of the first VXLAN tunnel in the egress port corresponding to the first VSI in the forwarding table stored in the VTEP with the identifier of the second VXLAN tunnel.
With reference to the second aspect, in a third implementation manner, the apparatus further includes:
the receiving module is further configured to receive a tunnel cutback command, where the tunnel cutback command includes an identifier of the first VSI, an identifier of the first VXLAN tunnel, and a cutback duration;
the processing module is further configured to switch the tunnel interface state of the first VXLAN tunnel in the first VSI from a blocking state to an invalid state, and switch the tunnel interface state of the first VXLAN tunnel in the first VSI from the blocking state to an valid state if the tunnel interface state of the first VXLAN tunnel in the first VSI is switched from the invalid state to the blocking state and the blocking state is maintained for the switchback duration, and switch the tunnel interface state of the second VXLAN tunnel from the valid state to the blocking state;
the replacing module is further configured to replace the identifier of the second VXLAN tunnel in the egress port corresponding to the first VSI in the forwarding table already stored in the VTEP with the identifier of the first VXLAN tunnel.
With reference to the second aspect, in a third implementation manner, the VTEP or a VTEP other than the VTEP is configured with a second VSI, and the second VSI is configured with a first VXLAN tunnel associated with a second VXLAN, and the apparatus further includes:
the processing module is further configured to keep the tunnel interface state of the first VXLAN tunnel in the second VSI unchanged when the tunnel interface state of the first VXLAN tunnel in the first VSI changes.
In a third aspect, the present invention provides a packet forwarding apparatus, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to perform the above method.
In a fourth aspect, the invention provides a non-transitory computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the above-described method.
The message forwarding method and the message forwarding device of the embodiment of the invention configure a plurality of VXLAN tunnels associated with VXLAN in VSI, and can realize that the VXLAN tunnels used for forwarding the service message in the VSI can be flexibly selected by VTEP through the tunnel switching command, thereby realizing the reasonable use of the VXLAN tunnels. For example, when the number of service messages increases, the VXLAN tunnel with a larger bandwidth is switched to use.
Other features and aspects of the present invention will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments, features, and aspects of the invention and, together with the description, serve to explain the principles of the invention.
Fig. 1 shows a schematic diagram of VXLAN networking according to an embodiment of the invention;
fig. 2 shows a flow chart of a message forwarding method according to an embodiment of the invention;
fig. 3 shows a block diagram of a message forwarding device according to an embodiment of the invention;
fig. 4 is a block diagram of a message forwarding apparatus according to an embodiment of the present invention.
Detailed Description
Various exemplary embodiments, features and aspects of the present invention will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present invention. The words "if" or "if" as used herein may be understood as "at … …" or "when … …" or "in response to a determination" or the like, depending on the context.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present invention. It will be understood by those skilled in the art that the present invention may be practiced without some of these specific details. In some instances, methods, procedures, components, and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present invention.
In order to make those skilled in the art better understand the technical solutions in the embodiments of the present invention, a brief description will be given below of some technical terms involved in the embodiments of the present invention.
Virtual Machine (English: Virtual Machine, VM for short): one or more VMs can be created on one server, and different VMs can belong to different VXLANs. VMs belonging to the same VXLAN are in the same logic two-layer network, and are in two-layer communication interaction with each other; two levels of isolation between VMs belonging to different VXLANs.
VXLAN Tunnel End Point (English: VXLAN Tunnel End Point, abbreviate: VTEP): edge device of VXLAN. The VXLAN processing is performed on the VTEP, for example, to identify the VXLAN to which the ethernet data frame belongs, to perform two-layer forwarding on the data frame based on the VXLAN, and to encapsulate/decapsulate the packet. The VTEP may be a separate physical device or a server where the VM is located.
VXLAN tunnel: a point-to-point logical tunnel between two VTEPs. After encapsulating a VXLAN header, a UDP header and an IP header for a data frame, the VTEP forwards the encapsulated message to a far-end VTEP through a VXLAN tunnel, and the far-end VTEP decapsulates the encapsulated message.
Virtual Switch Instance (English: Virtual Switch Instance, abbreviated as VSI): a virtual switching instance on the VTEP provides a two-layer switching service for VXLAN. The VSI can be viewed as a virtual switch on the VTEP that performs layer two forwarding based on VXLAN, which has all the functions of a conventional ethernet switch, including source MAC address learning, MAC address aging, flooding, etc. VSIs correspond one-to-one to VXLANs.
VXLAN networks: the user network may include VMs distributed within multiple sites at different geographic locations. The sites can be connected using VXLAN tunnels to provide a logical two-layer VPN for the user. This two-layer VPN is referred to as a VXLAN network. The VXLAN Network is identified by a VXLAN ID, which is also called a VXLAN Network Identifier (VNI), and has a length of 24 bits.
In the related technology, the reliability of VXLAN network for service message transmission is ensured through the main VXLAN tunnel and the standby VXLAN tunnel. The main VXLAN tunnel is a VXLAN tunnel with an effective tunnel interface state in the main VXLAN tunnel and the standby VXLAN tunnel. The main VXLAN tunnel forwards the service message currently. The backup VXLAN tunnel is a VXLAN tunnel other than the main VXLAN tunnel in the backup VXLAN tunnel. The tunnel interface state of the standby VXLAN tunnel can be a blocking state or an invalid state. The standby VXLAN tunnel does not forward the service message currently.
As an example, the first VXLAN tunnel and the second VXLAN tunnel are primary VXLAN tunnels. And when the tunnel interface state of the first VXLAN tunnel is an effective state, the tunnel interface state of the second VXLAN tunnel is a blocking state. The first VXLAN tunnel is a main VXLAN tunnel, the second VXLAN tunnel is a standby VXLAN tunnel, and the service message is forwarded through the first VXLAN tunnel. And if the first VXLAN tunnel fails, the tunnel interface state of the first VXLAN tunnel is changed from the effective state to the invalid state, and the tunnel interface state of the second VXLAN tunnel is switched from the blocking state to the effective state. The second VXLAN tunnel is a main VXLAN tunnel, the first VXLAN tunnel is a standby VXLAN tunnel, and the service message is forwarded through the second VXLAN tunnel. Therefore, the transmission of the service message cannot be interrupted, and the reliability of the VXLAN network is improved.
However, VTEP cannot flexibly select a VXLAN tunnel for forwarding a service packet. In other words, if the service packet is forwarded through the first VXLAN tunnel, unless the tunnel interface state of the first VXLAN tunnel is changed from the valid state to the invalid state, the tunnel interface state of the second VXLAN tunnel cannot be switched from the blocking state to the valid state, and the service packet cannot be switched to the second VXLAN tunnel for forwarding. If the tunnel interface state of the first VXLAN tunnel is always kept in an effective state, the service message is forwarded through the first VXLAN tunnel and cannot be switched to the second VXLAN tunnel for forwarding.
In addition, if the first VXLAN tunnel fails, the tunnel interface state of the first VXLAN tunnel is changed from an effective state to an invalid state, the tunnel interface state of the second VXLAN tunnel is changed from a blocking state to an effective state, and the service message is switched to the second VXLAN tunnel for forwarding. However, if the first VXLAN tunnel repairs the failure, the tunnel interface state of the first VXLAN tunnel is switched from the invalid state to the blocked state. Unless the tunnel interface state of the second VXLAN tunnel is changed from the valid state to the invalid state, the tunnel interface state of the first VXLAN tunnel cannot be switched from the blocking state to the valid state, and the service message cannot be switched to the first VXLAN tunnel for forwarding.
The embodiments of the present disclosure provide a message forwarding method and device, for solving the problems in the related art that when a VTEP configures a plurality of VXLAN tunnels associated with VXLAN, the VTEP cannot flexibly select the VXLAN tunnel for forwarding a service message, which results in a low utilization rate of the VXLAN tunnel. The message forwarding method and the message forwarding device of the embodiment of the invention configure a plurality of VXLAN tunnels associated with VXLAN in VSI, and can realize that the VXLAN tunnels used for forwarding the service message in the VSI can be flexibly selected by VTEP through the tunnel switching command, thereby realizing the reasonable use of the VXLAN tunnels. For example, when the number of service messages increases, the VXLAN tunnel with a larger bandwidth is switched to use.
Fig. 1 shows a schematic diagram of VXLAN networking according to an embodiment of the invention. The IP address of VTEP1 is 1.1.1.1, the IP address of VTEP2 is 2.2.2.2, and the IP address of VTEP3 is 3.3.3.3. The IP address of VM1 is 10.1.1.2 and the IP address of VM2 is 11.1.1.2. As shown in fig. 1:
VXLAN Tunnel1 is established between VTEP1 and VTEP 2. In VTEP1, Tunnel1 has a source IP address of 1.1.1.1 and a destination IP address of 2.2.2.2. In VTEP2, Tunnel1 has a source IP address of 2.2.2.2 and a destination IP address of 1.1.1.1.
VXLAN Tunnel2 is established between VTEP1 and VTEP 2. In VTEP1, Tunnel1 has a source IP address of 1.1.1.1 and a destination IP address of 3.3.3.3. In VTEP3, Tunnel2 has a source IP address of 3.3.3.3 and a destination IP address of 1.1.1.1.
VSI1 is configured on VTEP1, VSI1 is configured with Tunnel1 and Tunnel2 in association with VXLAN 10. The VM1 is connected to the VSI1 via an Access Circuit (AC). VSI2 is configured on VTEP2, and VSI2 configures Tunnel1 to associate with VXLAN 10. VM2 accesses VSI2 through an AC. VSI3 is configured on VTEP3, and VSI3 configures Tunnel2 to associate with VXLAN 10.
The message forwarding method of the embodiment of the invention is suitable for a VXLAN tunnel endpoint VTEP, wherein the VTEP is configured with a first VSI, and the first VSI is configured with a first VXLAN tunnel associated with a first VXLAN and a second VXLAN tunnel associated with the first VXLAN. Fig. 2 is a flowchart illustrating a packet forwarding method according to an embodiment of the present invention. As shown in fig. 2, the method includes steps S21 through S24.
In step S21, a tunnel switch command is received, the tunnel switch command including an identification of the first VSI and an identification of the first VXLAN tunnel.
The tunnel switching command is a command for switching a tunnel interface state of a tunnel. The standby VXLAN tunnel can be switched to the main VXLAN tunnel through the tunnel switching command, so that a plurality of VXLAN tunnels related to VXLAN are configured in the VSI, and the VXLAN tunnel used for forwarding the service message in the VSI can be flexibly selected by the VTEP.
In one implementation, the tunnel switch command is a vxlan-tunnel switch vsi-name tunnel tunnel-id. Wherein VSI-name represents the identity of the VSI and tunnel-id represents the identity of the VXLAN tunnel. The VXLAN tunnel can be uniquely determined by the identity of the VSI and the identity of the VXLAN tunnel. That is, the VXLAN tunnel can be uniquely determined by vsi-name and tunnel-id in the tunnel switch command.
In one implementation, if the tunnel interface state of the VXLAN tunnel determined by vsi-name and tunnel-id is valid and the tunnel interface state of the backup VXLAN tunnel corresponding to the VXLAN tunnel is blocking, the backup VXLAN tunnel corresponding to the VXLAN tunnel is switched to be used.
In step S22, the tunnel interface state of the first VXLAN tunnel and the tunnel interface state of the second VXLAN tunnel in the first VSI are obtained according to the identifier of the first VSI and the identifier of the first VXLAN tunnel.
Table 1 shows a schematic table of tunnel interface states of VXLAN tunnels according to an embodiment of the present invention. As shown in table 1, the tunnel interface states of the VXLAN tunnel include: a valid state, a blocked state, and an invalid state. The tunnel interface state of the VXLAN tunnel is set in the VSI, and the tunnel interface state of the VXLAN tunnel is only valid for the VSI which sets the tunnel interface state of the VXLAN tunnel, but invalid for other VSIs.
TABLE 1
State of tunnel Whether a forwarding module has a tunnel Whether or not to forward traffic
Up (available state) Is that Is that
Block (blocking state) Whether or not Whether or not
Down (invalid state) Whether or not Whether or not
And if the tunnel interface state of the VXLAN tunnel in the VSI is an effective state, the VSI can send and receive the service message through the interface of the VXLAN tunnel. And if the tunnel interface state of the VXLAN tunnel in the VSI is the blocking state, the VSI cannot send and receive the service message through the interface of the VXLAN tunnel. And if the tunnel interface state of the VXLAN tunnel in the VSI is an invalid state, the VSI cannot send and receive the service message through the interface of the VXLAN tunnel.
In step S23, if the tunnel interface state of the first VXLAN tunnel in the first VSI is the valid state and the tunnel interface state of the second VXLAN tunnel is the blocking state, the tunnel interface state of the first VXLAN tunnel in the first VSI is switched to the blocking state and the tunnel interface state of the second VXLAN tunnel is switched to the valid state.
As an example, as shown in fig. 1, VSI1 is configured on VTEP1, VSI1 configures Tunnel1 and Tunnel2 to associate with VXLAN 10. VM1 accesses VSI1 through an AC. If the Tunnel interface state of Tunnel1 in VSI1 is valid, then Tunnel1 is the main VXLAN Tunnel and Tunnel2 is the standby VXLAN Tunnel. The Tunnel interface state of Tunnel2 is a blocking state. As shown in table 2, in the forwarding table in which VSI1 has been stored in VTEP1, the egress port that communicatively interacts with VM2 is Tunnel 1.
As shown in fig. 1, the process of sending the service packet to the VM2 by the VM1 is as follows: the VTEP1 receives the service message sent by the VM1, determines that the service message belongs to the VSI1(VXLAN10), searches a forwarding table of the VSI1, and obtains an egress port of the communication interaction with the VM2 as Tunnel 1. The VTEP1 performs VXLAN encapsulation on the service message to obtain VXLAN message 1, and sends out the VXLAN message 1 through the interface of Tunnel 1.
TABLE 2
Figure BDA0001714073020000121
VTEP1 receives a tunnel switch command vxlan-tunnel switch vsi1tunnel 1. As shown in fig. 1, VTEP1 obtains that the Tunnel interface state of Tunnel1 in VSI1 is an active state, and obtains that the Tunnel interface state of Tunnel2 in VSI1 is a blocking state. If the Tunnel interface state of Tunnel1 in VSI1 and the Tunnel interface state of Tunnel2 satisfy the Tunnel switching condition, VTEP1 switches the Tunnel interface state of Tunnel1 in VSI1 from the active state to the blocking state, and switches the Tunnel interface state of Tunnel2 in VSI1 from the blocking state to the active state. At this point, Tunnel2 is the primary VXLAN Tunnel and Tunnel1 is the available backup VXLAN Tunnel.
In step S24, the identifier of the first VXLAN tunnel is replaced with the identifier of the second VXLAN tunnel at the egress port corresponding to the first VSI in the forwarding table already stored in the VTEP.
Taking an example of step S23, as shown in table 3, after VTEP1 receives the Tunnel switching command, the egress port that is in communication interaction with VM2 is replaced with Tunnel2 by Tunnel1 in the forwarding table that has stored VSI1 in VTEP 1.
As shown in fig. 1, the process of sending the service packet to the VM2 by the VM1 is as follows: the VTEP1 receives the service message sent by the VM1, determines that the service message belongs to the VSI1(VXLAN10), searches a forwarding table of the VSI1, and obtains an egress port of the communication interaction with the VM2 as Tunnel 2. The VTEP1 performs VXLAN encapsulation on the service message to obtain VXLAN message 2, and sends out the VXLAN message 2 through the interface of Tunnel 1.
TABLE 3
Figure BDA0001714073020000122
The message forwarding method of the embodiment of the invention configures a plurality of VXLAN tunnels associated with VXLAN in VSI, and can realize that VTEP flexibly selects the VXLAN tunnels used for forwarding the service message in VSI through the tunnel switching command, thereby realizing reasonable use of the VXLAN tunnels. For example, when the number of service messages increases, the VXLAN tunnel with a larger bandwidth is switched to use.
In one implementation, the method further comprises: and if the tunnel interface state of the first VXLAN tunnel in the first VSI is an effective state and the tunnel interface state of the second VXLAN tunnel is an invalid state, keeping the tunnel interface state of the first VXLAN tunnel in the first VSI and the tunnel interface state of the second VXLAN tunnel unchanged.
In one implementation, the tunnel switch command is a vxlan-tunnel switch vsi-name tunnel tunnel-id. Wherein VSI-name represents the identity of the VSI and tunnel-id represents the identity of the VXLAN tunnel. The VXLAN tunnel can be uniquely determined by vsi-name and tunnel-id.
In one implementation, if the tunnel interface state of the VXLAN tunnel determined by vsi-name and tunnel-id is valid, but the tunnel interface state of the backup VXLAN tunnel corresponding to the VXLAN tunnel is invalid, the backup VXLAN tunnel corresponding to the VXLAN tunnel is not switched to be used.
As an example, as shown in fig. 1, VSI1 is configured on VTEP1, VSI1 configures Tunnel1 and Tunnel2 to associate with VXLAN 10. VM1 accesses VSI1 through an AC. If the Tunnel interface state of Tunnel1 in VSI1 is valid, then Tunnel1 is the main VXLAN Tunnel and Tunnel2 is the standby VXLAN Tunnel. The Tunnel interface state of Tunnel2 is an invalid state.
VTEP1 receives a tunnel switch command vxlan-tunnel switch vsi1tunnel 1. As shown in fig. 1, VTEP1 obtains that the Tunnel interface state of Tunnel1 in VSI1 is an active state, and obtains that the Tunnel interface state of Tunnel2 in VSI1 is an inactive state. If the Tunnel interface state of Tunnel1 in VSI1 and the Tunnel interface state of Tunnel2 do not satisfy the Tunnel switching condition, VTEP1 keeps the Tunnel interface state of Tunnel1 in VSI1 in an active state. At this point, Tunnel1 is the primary VXLAN Tunnel and Tunnel2 is the unavailable backup VXLAN Tunnel.
The message forwarding method of the embodiment of the invention configures a plurality of VXLAN tunnels associated with VXLAN in VSI, and can realize that VTEP flexibly selects the VXLAN tunnels used for forwarding the service message in VSI through the tunnel switching command, thereby realizing reasonable use of the VXLAN tunnels. For example, when the number of service messages increases, the VXLAN tunnel with a larger bandwidth is switched to use.
In one implementation, the method further comprises: if the tunnel interface state of the first VXLAN tunnel in the first VSI is changed from the effective state to the invalid state, switching the tunnel interface state of the second VXLAN tunnel in the first VSI from the blocking state to the effective state; and replacing the identifier of the first VXLAN tunnel in the output port corresponding to the first VSI in the forwarding table stored in the VTEP with the identifier of the second VXLAN tunnel.
As an example, as shown in fig. 1, VSI1 is configured on VTEP1, VSI1 configures Tunnel1 and Tunnel2 to associate with VXLAN 10. VM1 accesses VSI1 through an AC. If the Tunnel interface state of Tunnel1 in VSI1 is valid, then Tunnel1 is the main VXLAN Tunnel and Tunnel2 is the standby VXLAN Tunnel. The Tunnel interface state of Tunnel2 is a blocking state. In the forwarding table that already stores VSI1 in VTEP1, the egress port that communicatively interacts with VM2 is Tunnel 1.
As shown in fig. 1, the process of sending the service packet to the VM2 by the VM1 is as follows: the VTEP1 receives the service message sent by the VM1, determines that the service message belongs to the VSI1(VXLAN10), searches a forwarding table of the VSI1, and obtains an egress port of the communication interaction with the VM2 as Tunnel 1. The VTEP1 performs VXLAN encapsulation on the service message to obtain VXLAN message 3, and sends out the VXLAN message 3 through the interface of Tunnel 1.
When Tunnel1 fails, VTEP1 detects that the Tunnel interface state of Tunnel1 in VSI1 changes from the active state to the inactive state, and VTEP1 switches the Tunnel interface state of Tunnel2 in VSI1 from the blocking state to the active state. At this point, Tunnel2 is the primary VXLAN Tunnel and Tunnel1 is the unavailable backup VXLAN Tunnel. In the forwarding table in VTEP1, which already stores VSI1, the egress port that is communicatively interacting with VM2 is changed from Tunnel1 to Tunnel 2.
As shown in fig. 1, the process of sending the service packet to the VM2 by the VM1 is as follows: the VTEP1 receives the service message sent by the VM1, determines that the service message belongs to the VSI1(VXLAN10), searches a forwarding table of the VSI1, and obtains an egress port of the communication interaction with the VM2 as Tunnel 2. The VTEP1 performs VXLAN encapsulation on the service message to obtain VXLAN message 2, and sends out the VXLAN message 2 through the interface of Tunnel 1.
The message forwarding method of the embodiment of the invention configures a plurality of VXLAN tunnels associated with VXLAN at VSI, and can switch and use the standby VXLAN tunnels corresponding to the VXLAN tunnels when the tunnel interface state of the main VXLAN tunnel is changed from an effective state to an invalid state, thereby the transmission of the service message is not interrupted, and the reliability of the VXLAN network is improved.
In one implementation, after the tunnel interface state of the first VXLAN tunnel changes from the active state to the inactive state in the first VSI, the method further comprises: receiving a tunnel back-switching command, wherein the tunnel back-switching command comprises an identifier of a first VSI, an identifier of a first VXLAN tunnel and back-switching duration; if the tunnel interface state of the first VXLAN tunnel in the first VSI is switched from the invalid state to the blocking state and the blocking state is kept for the switching-back duration, switching the tunnel interface state of the first VXLAN tunnel in the first VSI from the blocking state to the valid state and switching the tunnel interface state of the second VXLAN tunnel from the valid state to the blocking state; and replacing the identifier of the second VXLAN tunnel into the identifier of the first VXLAN tunnel at the output port corresponding to the first VSI in the forwarding table stored in the VTEP.
The tunnel switching command is a command for switching back the tunnel interface state of the tunnel. After the tunnel interface state of the first VXLAN tunnel in the first VSI is changed from the effective state to the invalid state through the tunnel switching command, if the tunnel interface state of the first VXLAN tunnel in the first VSI is changed from the invalid state to the blocking state again, the first VXLAN tunnel is switched back to be used.
In one implementation, the tunnel switch command: tunnel-reverse { wtr-time/reverse } and undo tunnel-reverse { wtr | reverse }. Tunnel-reverse wtr-timever represents a set tunnel switch command, and undo tunnel-reverse wtr | reverse represents a cancel tunnel switch command. Wherein wtr-time represents the length of the cut-back time, and never represents the never cut-back time. The back-cut duration may be a preset length of time, for example 30 s. The embodiment of the invention does not limit the value of the back-cut time.
As an example, as shown in fig. 1, VSI1 is configured on VTEP1, VSI1 configures Tunnel1 and Tunnel2 to associate with VXLAN 10. VM1 accesses VSI1 through an AC. If the Tunnel interface state of Tunnel1 in VSI1 is valid, then Tunnel1 is the main VXLAN Tunnel and Tunnel2 is the standby VXLAN Tunnel. The Tunnel interface state of Tunnel2 is a blocking state. In the forwarding table that already stores VSI1 in VTEP1, the egress port that communicatively interacts with VM2 is Tunnel 1.
When Tunnel1 fails, VTEP1 detects that the Tunnel interface state of Tunnel1 in VSI1 changes from the active state to the inactive state, and VTEP1 switches the Tunnel interface state of Tunnel2 in VSI1 from the blocking state to the active state. At this point, Tunnel2 is the primary VXLAN Tunnel and Tunnel1 is the unavailable backup VXLAN Tunnel. In the forwarding table in VTEP1, which already stores VSI1, the egress port that is communicatively interacting with VM2 is changed from Tunnel1 to Tunnel 2.
When the Tunnel interface state of the Tunnel1 in the VSI1 changes from the active state to the inactive state, a Tunnel switch-back command is set for the Tunnel1 in the VSI1, and the switch-back time period is 30 s. VTEP1 saves the cut-back duration to the database. When the fault of Tunnel1 is repaired, the Tunnel interface state of Tunnel1 in VSI1 changes from the invalid state to the blocking state, and VTEP1 automatically checks the database to see if a switchback duration is configured.
As shown in fig. 1, VTEP1 obtains the cut back duration of 30 seconds, sets the cut back count of Tunnel1 in VSI1 to 30, and checks to see if the cut back timer has started. If not started, then a 1s switchback timer is started, and whenever the timer times out, then VTEP1 decrements the switchback count of Tunnel1 in VSI1 by 1. By the time the switchback count is 0, VTEP1 determines whether Tunnel1 in VSI1 is available and switches to use Tunnel1 in VSI1 if available. During this time, if Tunnel1 in VSI1 becomes inactive, the switchback count will be cleared and no switchback will continue.
In one implementation, the VTEP is configured with a second VSI configured with a first VXLAN tunnel associated with a second VXLAN, the method further comprising: and when the tunnel interface state of the first VXLAN tunnel in the first VSI is changed, keeping the tunnel interface state of the first VXLAN tunnel in the second VSI unchanged.
For example, as shown in fig. 1, VSI1 and VSI4 are configured on VTEP1, VSI1 is configured with tunnels 1 and 2 in association with VXLAN10, and VSI4 is configured with tunnels 1 and 2 in association with VXLAN 20. When the Tunnel interface state of Tunnel1 in VSI1 changes, the Tunnel interface state of Tunnel1 in VSI4 does not change. When the Tunnel interface state of Tunnel2 in VSI1 changes, the Tunnel interface state of Tunnel2 in VSI4 does not change. That is, for the same VXLAN tunnel, the tunnel interface states of VXLAN tunnels in different VSIs may be different, thereby improving the utilization rate of VXLAN tunnels.
As another example, as shown in fig. 1, VSI1 is configured on VTEP1, VSI1 is configured with Tunnel1 and Tunnel2 associated with VXLAN 10. VSI2 is configured on VTEP2, VSI2 is configured with Tunnel1 and Tunnel2 in association with VXLAN 10. When the Tunnel interface state of Tunnel1 in VSI1 changes, the Tunnel interface state of Tunnel1 in VSI2 does not change. When the Tunnel interface state of Tunnel2 in VSI1 changes, the Tunnel interface state of Tunnel2 in VSI2 does not change. That is, for the same VXLAN tunnel, the tunnel interface states of VXLAN tunnels in different VSIs may be different, thereby improving the utilization rate of VXLAN tunnels.
Correspondingly, the embodiment of the invention provides the message forwarding device. The message forwarding device of the embodiment of the invention is suitable for a VXLAN tunnel endpoint VTEP, wherein the VTEP is configured with a first VSI, and the first VSI is configured with a first VXLAN tunnel associated with a first VXLAN and a second VXLAN tunnel associated with the first VXLAN. Fig. 3 is a block diagram of a message forwarding apparatus according to an embodiment of the present invention. As shown in fig. 3, the apparatus includes:
a receiving module 31, configured to receive a tunnel switching command, where the tunnel switching command includes an identifier of the first VSI and an identifier of the first VXLAN tunnel;
an obtaining module 32, configured to obtain, according to the identifier of the first VSI and the identifier of the first VXLAN tunnel, a tunnel interface state of the first VXLAN tunnel and a tunnel interface state of a second VXLAN tunnel in the first VSI;
a processing module 33, configured to switch the tunnel interface state of the first VXLAN tunnel in the first VSI to a blocking state and switch the tunnel interface state of the second VXLAN tunnel to an active state if the tunnel interface state of the first VXLAN tunnel in the first VSI is an active state and the tunnel interface state of the second VXLAN tunnel is a blocking state;
a replacing module 34, configured to replace, by the identifier of the first VXLAN tunnel, the egress port corresponding to the first VSI in the forwarding table already stored in the VTEP with the identifier of the second VXLAN tunnel.
In one implementation, the apparatus further comprises: the processing module 33 is further configured to keep the tunnel interface state of the first VXLAN tunnel and the tunnel interface state of the second VXLAN tunnel in the first VSI unchanged if the tunnel interface state of the first VXLAN tunnel in the first VSI is an active state and the tunnel interface state of the second VXLAN tunnel is an inactive state.
In one implementation, the apparatus further comprises: the processing module 33 is further configured to switch the tunnel interface state of the second VXLAN tunnel in the first VSI from a blocking state to an active state if the tunnel interface state of the first VXLAN tunnel in the first VSI changes from an active state to an inactive state;
the replacing module 34 is further configured to replace the identifier of the first VXLAN tunnel in the egress port corresponding to the first VSI in the forwarding table already stored in the VTEP with the identifier of the second VXLAN tunnel.
In one implementation, the apparatus further comprises: the receiving module 31 is further configured to receive a tunnel cutback command, where the tunnel cutback command includes an identifier of the first VSI, an identifier of the first VXLAN tunnel, and a cutback duration;
the processing module 33 is further configured to switch the tunnel interface state of the first VXLAN tunnel in the first VSI from the blocking state to the blocking state, and switch the tunnel interface state of the first VXLAN tunnel in the first VSI from the blocking state to the active state, and switch the tunnel interface state of the second VXLAN tunnel from the active state to the blocking state, if the tunnel interface state of the first VXLAN tunnel in the first VSI is switched from the inactive state to the blocking state and the blocking state is maintained for the switching-back duration;
the replacing module 34 is further configured to replace the identifier of the second VXLAN tunnel in the egress port corresponding to the first VSI in the forwarding table already stored in the VTEP with the identifier of the first VXLAN tunnel.
In one implementation, the VTEP or a VTEP other than the VTEP is configured with a second VSI configured with a first VXLAN tunnel associated with a second VXLAN, the apparatus further comprising: the processing module 33 is further configured to keep the tunnel interface state of the first VXLAN tunnel in the second VSI unchanged when the tunnel interface state of the first VXLAN tunnel in the first VSI changes.
The message forwarding device of the embodiment of the invention configures a plurality of VXLAN tunnels associated with VXLAN in VSI, and can realize that VTEP flexibly selects the VXLAN tunnels used for forwarding the service message in VSI through the tunnel switching command, thereby realizing reasonable use of the VXLAN tunnels. For example, when the number of service messages increases, the VXLAN tunnel with a larger bandwidth is switched to use.
Accordingly, fig. 4 shows a block diagram of a message forwarding apparatus according to an embodiment of the present invention. Referring to fig. 4, the apparatus 900 may include a processor 901, a machine-readable storage medium 902 having stored thereon machine-executable instructions. The processor 901 and the machine-readable storage medium 902 may communicate via a system bus 903. Also, the processor 901 executes the message forwarding method described above by reading machine-executable instructions in the machine-readable storage medium 902 corresponding to the message forwarding logic.
The machine-readable storage medium 902 referred to herein may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium may be a random access memory: a Random Access Memory (RAM), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., a compact disk, a dvd, etc.), or similar storage media, or a combination thereof.
Having described embodiments of the present invention, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (10)

1. A message forwarding method applicable to a VXLAN tunnel endpoint, VTEP, configured with a first virtual switch instance, VSI, the first VSI configured with a first VXLAN tunnel associated with a first VXLAN and a second VXLAN tunnel associated with the first VXLAN, the method comprising:
receiving a tunnel switch command, the tunnel switch command including an identification of the first VSI and an identification of the first VXLAN tunnel;
acquiring the tunnel interface state of the first VXLAN tunnel and the tunnel interface state of a second VXLAN tunnel in the first VSI according to the identifier of the first VSI and the identifier of the first VXLAN tunnel;
if the tunnel interface state of the first VXLAN tunnel in the first VSI is an effective state and the tunnel interface state of the second VXLAN tunnel is a blocking state, switching the tunnel interface state of the first VXLAN tunnel in the first VSI to the blocking state and switching the tunnel interface state of the second VXLAN tunnel to the effective state;
and replacing the identifier of the first VXLAN tunnel in the output port corresponding to the first VSI in the forwarding table stored in the VTEP with the identifier of the second VXLAN tunnel.
2. The method of claim 1, further comprising:
and if the tunnel interface state of the first VXLAN tunnel in the first VSI is an effective state and the tunnel interface state of the second VXLAN tunnel is an invalid state, keeping the tunnel interface state of the first VXLAN tunnel and the tunnel interface state of the second VXLAN tunnel in the first VSI unchanged.
3. The method of claim 1, further comprising:
if the tunnel interface state of the first VXLAN tunnel in the first VSI is changed from the effective state to the invalid state, switching the tunnel interface state of the second VXLAN tunnel in the first VSI from the blocking state to the effective state;
and replacing the identifier of the first VXLAN tunnel in the output port corresponding to the first VSI in the forwarding table stored in the VTEP with the identifier of the second VXLAN tunnel.
4. The method of claim 1, wherein after the tunnel interface state of the first VXLAN tunnel changes from an active state to an inactive state in the first VSI, the method further comprises:
receiving a tunnel back-switching command, wherein the tunnel back-switching command comprises an identifier of the first VSI, an identifier of the first VXLAN tunnel and back-switching duration;
if the tunnel interface state of the first VXLAN tunnel in the first VSI is switched from the invalid state to the blocking state and the blocking state is kept for the switching-back duration, switching the tunnel interface state of the first VXLAN tunnel in the first VSI from the blocking state to the valid state, and switching the tunnel interface state of the second VXLAN tunnel from the valid state to the blocking state;
and replacing the identifier of the second VXLAN tunnel for the output port corresponding to the first VSI in the forwarding table stored in the VTEP with the identifier of the first VXLAN tunnel.
5. The method of claim 1, wherein the VTEP or a VTEP other than the VTEP is configured with a second VSI that is configured with a first VXLAN tunnel associated with a second VXLAN, the method further comprising:
and when the tunnel interface state of the first VXLAN tunnel in the first VSI is changed, keeping the tunnel interface state of the first VXLAN tunnel in the second VSI unchanged.
6. A message forwarding apparatus adapted for a VXLAN tunnel endpoint, VTEP, configured with a first virtual switch instance, VSI, configured with a first VXLAN tunnel associated with a first VXLAN and a second VXLAN tunnel associated with the first VXLAN, the apparatus comprising:
a receiving module, configured to receive a tunnel switching command, where the tunnel switching command includes an identifier of the first VSI and an identifier of the first VXLAN tunnel;
an obtaining module, configured to obtain, according to the identifier of the first VSI and the identifier of the first VXLAN tunnel, a tunnel interface state of the first VXLAN tunnel and a tunnel interface state of a second VXLAN tunnel in the first VSI;
a processing module, configured to switch a tunnel interface state of the first VXLAN tunnel in the first VSI to a blocking state and switch a tunnel interface state of the second VXLAN tunnel to an active state if the tunnel interface state of the first VXLAN tunnel in the first VSI is an active state and the tunnel interface state of the second VXLAN tunnel is a blocking state;
and the replacing module is used for replacing the identifier of the first VXLAN tunnel with the identifier of a second VXLAN tunnel at the output port corresponding to the first VSI in the forwarding table stored in the VTEP.
7. The apparatus of claim 6, further comprising:
the processing module is further configured to keep the tunnel interface state of the first VXLAN tunnel and the tunnel interface state of the second VXLAN tunnel in the first VSI unchanged if the tunnel interface state of the first VXLAN tunnel in the first VSI is an active state and the tunnel interface state of the second VXLAN tunnel in the first VSI is an inactive state.
8. The apparatus of claim 6, further comprising:
the processing module is further configured to switch the tunnel interface state of the second VXLAN tunnel in the first VSI from a blocking state to an active state if the tunnel interface state of the first VXLAN tunnel in the first VSI changes from an active state to an inactive state;
the replacing module is further configured to replace the identifier of the first VXLAN tunnel in the egress port corresponding to the first VSI in the forwarding table stored in the VTEP with the identifier of the second VXLAN tunnel.
9. The apparatus of claim 6, further comprising:
the receiving module is further configured to receive a tunnel cutback command, where the tunnel cutback command includes an identifier of the first VSI, an identifier of the first VXLAN tunnel, and a cutback duration;
the processing module is further configured to switch the tunnel interface state of the first VXLAN tunnel in the first VSI from a blocking state to an invalid state, and switch the tunnel interface state of the first VXLAN tunnel in the first VSI from the blocking state to an valid state if the tunnel interface state of the first VXLAN tunnel in the first VSI is switched from the invalid state to the blocking state and the blocking state is maintained for the switchback duration, and switch the tunnel interface state of the second VXLAN tunnel from the valid state to the blocking state;
the replacing module is further configured to replace the identifier of the second VXLAN tunnel in the egress port corresponding to the first VSI in the forwarding table already stored in the VTEP with the identifier of the first VXLAN tunnel.
10. The apparatus of claim 6, wherein the VTEP or a VTEP other than the VTEP is configured with a second VSI, wherein the second VSI is configured with a first VXLAN tunnel associated with a second VXLAN, the apparatus further comprising:
the processing module is further configured to keep the tunnel interface state of the first VXLAN tunnel in the second VSI unchanged when the tunnel interface state of the first VXLAN tunnel in the first VSI changes.
CN201810706217.2A 2018-06-29 2018-06-29 Message forwarding method and device Active CN109005097B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810706217.2A CN109005097B (en) 2018-06-29 2018-06-29 Message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810706217.2A CN109005097B (en) 2018-06-29 2018-06-29 Message forwarding method and device

Publications (2)

Publication Number Publication Date
CN109005097A CN109005097A (en) 2018-12-14
CN109005097B true CN109005097B (en) 2020-12-01

Family

ID=64601072

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810706217.2A Active CN109005097B (en) 2018-06-29 2018-06-29 Message forwarding method and device

Country Status (1)

Country Link
CN (1) CN109005097B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109639552B (en) * 2018-12-24 2022-02-11 新华三技术有限公司 Three-layer forwarding method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207529B (en) * 2007-11-22 2010-12-01 杭州华三通信技术有限公司 Method for link circuit fault detection and recovery based on PMD and corresponding apparatus
CN105577417A (en) * 2014-11-06 2016-05-11 杭州华三通信技术有限公司 VXLAN (virtual extensible local area network)-based massage forwarding method and device
CN106878072A (en) * 2017-02-10 2017-06-20 新华三技术有限公司 A kind of message transmitting method and device
CN107846342A (en) * 2016-09-20 2018-03-27 华为技术有限公司 A kind of retransmission method, equipment and the system of VXLAN messages

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9876711B2 (en) * 2013-11-05 2018-01-23 Cisco Technology, Inc. Source address translation in overlay networks
US9548873B2 (en) * 2014-02-10 2017-01-17 Brocade Communications Systems, Inc. Virtual extensible LAN tunnel keepalives

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207529B (en) * 2007-11-22 2010-12-01 杭州华三通信技术有限公司 Method for link circuit fault detection and recovery based on PMD and corresponding apparatus
CN105577417A (en) * 2014-11-06 2016-05-11 杭州华三通信技术有限公司 VXLAN (virtual extensible local area network)-based massage forwarding method and device
CN107846342A (en) * 2016-09-20 2018-03-27 华为技术有限公司 A kind of retransmission method, equipment and the system of VXLAN messages
CN106878072A (en) * 2017-02-10 2017-06-20 新华三技术有限公司 A kind of message transmitting method and device

Also Published As

Publication number Publication date
CN109005097A (en) 2018-12-14

Similar Documents

Publication Publication Date Title
US10063470B2 (en) Data center network system based on software-defined network and packet forwarding method, address resolution method, routing controller thereof
US9019814B1 (en) Fast failover in multi-homed ethernet virtual private networks
US7801125B2 (en) Forwarding table reduction and multipath network forwarding
CN112087386B (en) Message processing method, device and system
CN108418740B (en) Message processing method and device
EP3554020A1 (en) Bum traffic control method, related device and system
US10187290B2 (en) Method, system, and apparatus for preventing tromboning in inter-subnet traffic within data center architectures
WO2015167597A1 (en) Data plane to forward traffic based on communications from a software defined networking (sdn) controller during control plane failure
CN111263373B (en) Data processing method, controller and forwarding equipment
EP3125481B1 (en) Information transmission method, device and communication system
EP2314026A1 (en) A method of controlling data propagation within a network
US11750496B2 (en) Method for multi-cloud interconnection and device
EP3534571B1 (en) Service packet transmission method, and node apparatus
CN112702773A (en) Communication method and device
US11929851B2 (en) Gateway selection method, device, and system
CN106921575B (en) Apparatus, router and method for preventing multicast traffic drop
CN115277305A (en) Network management method, device, equipment and machine readable storage medium
CN112822097A (en) Message forwarding method, first network device and first device group
CN109005097B (en) Message forwarding method and device
CN113507425A (en) Overlay multicast method, device and equipment
CN107995110B (en) Traffic forwarding method and device
EP3382956B1 (en) Apparatus, system, and method for facilitating controller-based multicast signaling
CN114531396B (en) Fault back switching method and device in Ethernet virtual private network
CN111698142B (en) Message forwarding method and device, electronic equipment and storage medium
CN114531319A (en) Message sending method, equipment and system

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