CN108199967B - Route processing method and device - Google Patents

Route processing method and device Download PDF

Info

Publication number
CN108199967B
CN108199967B CN201810279473.8A CN201810279473A CN108199967B CN 108199967 B CN108199967 B CN 108199967B CN 201810279473 A CN201810279473 A CN 201810279473A CN 108199967 B CN108199967 B CN 108199967B
Authority
CN
China
Prior art keywords
vtep
vtep device
homing
mac
address
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
CN201810279473.8A
Other languages
Chinese (zh)
Other versions
CN108199967A (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 CN201810279473.8A priority Critical patent/CN108199967B/en
Publication of CN108199967A publication Critical patent/CN108199967A/en
Application granted granted Critical
Publication of CN108199967B publication Critical patent/CN108199967B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering

Landscapes

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

Abstract

The embodiment of the invention relates to a method and a device for processing a route, comprising the following steps: receiving a multi-homing route revocation indication message sent by a second VTEP device serving as a DF device in the multi-homing group network; when the first VTEP equipment and the second VTEP equipment are in the multi-homing networking, performing reselection of DF equipment in the multi-homing networking according to the multi-homing route revocation indication message; when the selected device is used as a DF device, a first MAC-IP address table item statically learned from a second VTEP device is converted into a second MAC-IP address table item dynamically learned; and sending the first address synchronization message to all VTEP devices in the multi-homing networking and a third VTEP device outside the multi-homing networking. According to the routing processing method and the routing processing device provided by the embodiment of the invention, the problem of data message loss during the restart of the second VTEP device serving as the DF device in the multi-homing networking can be solved, and the transmission quality of the data message is improved.

Description

Route processing 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 processing a route.
Background
An Ethernet Virtual Private Network (EVPN) is a two-layer VPN technology. In order to improve the reliability of the access side, the protocol specifies an EVPN multi-homing access network, thereby improving the reliability of the service data message. In an EVPN multi-homing access network, a Virtual Machine (VM) can be simultaneously accessed to different extensible Virtual local area network Tunnel EndPoint (VXLAN Tunnel EndPoint, VTEP) devices through a plurality of links, and the different VTEP devices can be mutually backed up and share load. The VM accesses a plurality of links of different VTEP devices to form an Ethernet Segment (ES). An Ethernet Segment Identifier (ESI) may be used to identify an ES.
Different VTEP devices are accessed corresponding to a VM, and in order to solve the problems that Broadcast, Unknown Unicast or Multicast (English: Broadcast, Unknown Unicast or Multicast, BUM for short) flow does not have loops or multiple copies, a DF device can be selected from the VTEP devices meeting the same ESI value by a plurality of VTEP devices. The DF device learns the forwarding table entry of the VM and synchronizes the forwarding table entry of the VM with the neighbor VTEP, so that the neighbor VTEP can forward the data message to the VM according to the forwarding table entry.
However, when the DF device in the EVPN multihoming access network is restarted, the DF device may send a route revocation indication to the neighbor VTEP device, so that the remote VTEP device (a VTEP device in the multihoming group different from the DF device) revokes the forwarding list synchronized by the DF device, and at this time, the remote VTEP device cannot forward the data packet to the VM. Meanwhile, a DF device is reselected from neighbor VTEP devices which are in the same multi-attribution network as the DF device, a new DF device dynamically learns the MAC-IP address table items of the VM again and synchronizes the MAC-IP address table items to the remote VTEP device, the remote VTEP device generates a new forwarding list after receiving the MAC-IP address table items synchronized by the new DF device, and data messages can be continuously forwarded to the VM according to the newly generated forwarding list, but the whole period takes longer time, so that the data messages are seriously lost.
Disclosure of Invention
In view of this, the present invention provides a routing processing method, which can alleviate the problem of data packet loss during the restart of a second VTEP device serving as a DF device in a multi-homing networking, and improve the transmission quality of the data packet.
In one aspect, the present invention provides a routing processing method, applied to a first extensible virtual local area network tunnel endpoint VTEP device, where the method includes:
receiving a multi-homing route revocation indication message sent by a second VTEP device serving as a DF device in the multi-homing group network;
when the first VTEP device and the second VTEP device are in the multi-homing network, the first VTEP device performs reselection of DF devices in the multi-homing network according to the multi-homing route revocation indication message;
when the first VTEP device is elected as the DF device, converting a first MAC-IP address table item statically learned from the second VTEP device into a second MAC-IP address table item dynamically learned by the first VTEP device;
sending a first address synchronization message to all VTEP devices in the multi-homing networking and a third VTEP device outside the multi-homing networking, wherein the first address synchronization message comprises the second MAC-IP address table item;
the first/second MAC-IP address table entry correspondingly stores the MAC address and the IP address of the host in the multi-home network, and the host is accessed to a plurality of VTEP devices in the multi-home network.
In another aspect, the present invention provides a routing processing method, applied to a third extensible virtual local area network tunnel endpoint VTEP device, where the method includes:
receiving a first address synchronization message sent by a first VTEP device serving as a DF device in a multi-homing network, wherein the first address synchronization message comprises a second MAC-IP address table item, and the first VTEP device is determined after the first VTEP device performs DF device reselection for the VTEP device in the multi-homing network;
generating a standby forwarding list according to the second MAC-IP address table item;
when receiving an MAC-IP address revocation instruction sent by second VTEP equipment, deleting a first effective forwarding list obtained from static learning at the second VTEP equipment, and forwarding a data message according to the standby forwarding list after receiving the data message sent to a host; and the second VTEP device performs initial DF device reselection for the VTEP device in the multi-homing network.
In another aspect, the present invention provides a routing processing apparatus, applied to a first extensible virtual local area network tunnel endpoint VTEP device, including:
the receiving module is used for receiving a multi-homing route revocation indication message sent by a second VTEP device serving as a DF device in the multi-homing group network;
an election module, configured to, when the first VTEP device and the second VTEP device are located in the multi-homing network, perform, according to the multi-homing route revocation indication message, reselection of a DF device in the multi-homing network by the first VTEP device;
a conversion module, configured to convert a first MAC-IP address table entry statically learned from the second VTEP device into a second MAC-IP address table entry dynamically learned by the first VTEP device when the first VTEP device is elected as the DF device;
a first sending module, configured to send a first address synchronization message to all VTEP devices in the multi-homing network and a third VTEP device outside the multi-homing network, where the first address synchronization message includes the second MAC-IP address table entry;
the first/second MAC-IP address table entry correspondingly stores the MAC address and the IP address of the host in the multi-home network, and the host is accessed to a plurality of VTEP devices in the multi-home network.
In another aspect, the present invention provides a route processing apparatus, applied to a third extensible virtual local area network tunnel endpoint VTEP device, where the apparatus includes:
a first receiving module, configured to receive a first address synchronization message sent by a first VTEP device serving as a DF device in a multi-homing network, where the first address synchronization message includes a second MAC-IP address table entry, and the first VTEP device is determined after performing DF device reselection for the VTEP device in the multi-homing network;
the first generation module is used for generating a standby forwarding list according to the second MAC-IP address table item;
the processing module is used for deleting a first effective forwarding list obtained from static learning at a second VTEP device when receiving an MAC-IP address revocation instruction sent by the second VTEP device, and forwarding a data message according to the standby forwarding list after receiving the data message sent to a host; and the second VTEP device performs initial DF device reselection for the VTEP device in the multi-homing network.
In another aspect, the present invention provides a routing processing apparatus, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to perform the above method.
In yet another aspect, the present invention provides a non-transitory computer readable storage medium having computer program instructions stored thereon, wherein the computer program instructions, when executed by a processor, implement the above-described method.
Therefore, by applying the route processing method and apparatus provided in the embodiment of the present invention, after receiving a multihoming route revocation indication message sent by a second VTEP device serving as a DF device in a multihoming networking network, when the first VTEP device and the second VTEP device are both in the multihoming networking network, the first VTEP device performs reselection of the DF device according to the multihoming route revocation indication message, and when the first VTEP device is elected as the DF device, converts a first MAC-IP address entry statically learned from the second VTEP device into a second MAC-IP address entry dynamically learned, and then synchronizes the second MAC-IP address entry to a third VTEP device outside the multihoming networking network through a first address synchronization message. Therefore, the third VTEP device can construct a standby forwarding list according to the second MAC-IP address, so that the data message can be forwarded to the host through the standby forwarding list after the second VTEP device is offline, the problem of data message loss during the restart of the second VTEP device is solved, and the transmission quality of the data message is improved.
Other features and aspects of embodiments 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 network architecture diagram of a multi-homing networking;
FIG. 2 illustrates a flow diagram of a method of route processing according to an embodiment of the invention;
FIG. 3 illustrates a flow diagram of a method of route processing according to an embodiment of the invention;
FIG. 4 shows a flow diagram of a method of route processing according to an embodiment of the invention;
FIG. 5 shows a flow diagram of a method of route processing according to an embodiment of the invention;
FIG. 6 shows a flow diagram of a method of route processing according to an embodiment of the invention;
FIG. 7 illustrates a flow diagram of a method of route processing according to an embodiment of the invention;
FIG. 8 shows a flow diagram of a method of route processing according to an embodiment of the invention;
fig. 9 is a block diagram showing a configuration of a route processing apparatus according to an embodiment of the present invention;
fig. 10 is a block diagram showing a configuration of a route processing apparatus according to an embodiment of the present invention;
fig. 11 is a block diagram showing a configuration of a route processing apparatus according to an embodiment of the present invention;
fig. 12 is a block diagram showing a configuration of a route processing apparatus according to an embodiment of the present invention;
fig. 13 is a block diagram illustrating a hardware configuration of a route processing apparatus according to an exemplary embodiment.
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.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of embodiments of the invention. It will be understood by those skilled in the art that the embodiments of 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 embodiments of the invention.
Fig. 1 shows a schematic network structure of a multihoming networking, where VTEP 1(1.1.1.1), VTEP2(2.2.2.2), VTEP3(3.3.3.3), VTEP4(4.4.4.4), and VTEP5(5.5.5.5) represent VTEP devices, where VTEP1, VTEP2, VTEP3, and VTEP4 belong to the same multihoming networking, are configured with the same ESI value, and VTEP2 in the multihoming networking is used as a DF device. VM represents the host, and the MAC-IP address is as follows: 10.1.1.2a-a-a, LSW denotes a switch through which VMs are multi-homed to access VTEP1, VTEP2, VTEP3, VTEP 4.
VTEP2 synchronizes MAC-IP address table entries learned from the VM to VTEP5, VTEP1, VTEP3, and VTEP4, and after VTEP5 receives the MAC-IP address table entries synchronized with VTEP2, it may generate a forwarding list, such as table 1, according to the ESI of VTEP2 and the MAC-IP address table entries, and then VTEP5 may forward the data packet to the VM according to the forwarding list.
TABLE 1
Figure BDA0001614278820000051
In the process of restarting VTEP2 during version upgrading, VTEP5 cancels the forwarding list after VTEP2 goes offline, until a new DF device is reselected among VTEP1, VTEP3, and VTEP4, and after the new DF device dynamically learns the MAC-IP address table entry of the VM and synchronizes to VTEP5, VTEP5 may forward the data packet to the VM, and the process of reselecting a new DF device among VTEP1, VTEP3, and VTEP4 and dynamically learning the MAC-IP address table entry of the VM by the new DF device takes a long time, which may cause that VTEP5 cannot forward the data packet normally and cause the data packet to be lost.
In order to solve the above problem, in the embodiment of the present invention, after receiving the multihomed route withdrawal indication message sent by VTEP2 serving as a DF device, the VTEP device determines whether it is located in the same multihomed network as VTEP2 serving as the DF device.
If the node is located in the same multi-homing networking with the VTEP2 (taking VTEP3 as an example), the VTEP3 performs reselection of the DF device, and if VTEP3 elects to become a new DF device, the VTEP3 converts a first MAC-IP address table entry statically learned from the VTEP2 into a second MAC-IP address table entry dynamically learned by the VTEP3 device, and synchronizes the second MAC-IP address table entry to the VTEP1, VTEP2, VTEP4 and VTEP5, so that the VTEP5 can generate a standby forwarding list according to the second MAC-IP address table entry synchronized with the VTEP3, and during the restart of the VTEP3, data packets are forwarded to the VM according to the standby forwarding list, thereby alleviating the problem of data packet loss during the upgrade of the DF device and improving the transmission quality of the data packets.
Fig. 2 shows a flow chart of a routing processing method according to an embodiment of the present invention, which may apply a first extensible virtual local area network tunnel endpoint, VTEP, device. As shown in fig. 2, the method includes the following steps.
Step 201, receiving a multi-homing route revocation indication message sent by a second VTEP device serving as a DF device in a multi-homing group network;
specifically, the second VTEP device as the DF device in the multi-homing networking sends a multi-homing route withdraw indication message to the neighbor VTEP devices (including VTEP devices of the same multi-homing networking and VTEP devices of different multi-homing networking) in response to the configuration operation of the user on the second VTEP device, wherein the multi-homing route withdraw indication message is used for notifying the VTEP device that the DF device is unavailable.
Step 202, when the first VTEP device and the second VTEP device are located in the multi-homing network, the first VTEP device performs reselection of a DF device in the multi-homing network according to the multi-homing route revocation indication message.
After receiving the multi-homing route withdrawal indication message sent by the second VTEP device, the first VTEP device determines whether the first VTEP device and the second VTEP device are in the multi-homing networking. Specifically, the multi-homing route revocation indication message includes an ESI value of an Access Circuit (AC) of the second VTEP device, and after receiving the multi-homing route revocation indication message sent by the second VTEP device, the first VTEP device determines whether the AC represented by the ESI value is locally present, and if the AC represented by the ESI value is locally present, it determines that the first VTEP device and the second VTEP device are in the multi-homing networking together.
After determining that the first VTEP device and the second VTEP device are in the multi-homing networking, the first VTEP device sends Ethernet Segment (ES) routing to the neighbor VTEP device so as to reselect the DF device in the multi-homing networking.
Step 203, when the first VTEP device is elected as the DF device, converting the first MAC-IP address table entries statically learned from the second VTEP device into the second MAC-IP address table entries dynamically learned by the first VTEP device.
And before performing reselection of the DF device, the second VTEP device is the DF device. And when the second VTEP device elects to become a DF device, synchronizing the MAC-IP address table entry of the host dynamically learned from the host to the first VTEP device, and after the first VTEP device receives the MAC-IP address table entry synchronized by the second VTEP device and statically learns to obtain the first MAC-IP address table entry, sending the first MAC-IP address table entry to the local.
After performing the reselection of the DF device, the first VTEP device is elected as the new DF device. The first VTEP device converts the first MAC-IP address table entry into a dynamically learned second MAC-IP address table entry. Illustratively, the first MAC-IP address table entry has a first identifier, and the first identifier is used to characterize the first MAC-IP address table entry as being obtained by static learning for the first VTEP device. And the first VTEP equipment converts the first identifier of the first MAC-IP address table item into a second identifier to obtain a second MAC-IP address table item with the second identifier, wherein the second identifier is used for representing that the second MAC-IP address table item is obtained by the first VTEP equipment through dynamic learning.
Step 204, sending a first address synchronization message to all VTEP devices within the multi-homing network and a third VTEP device outside the multi-homing network, wherein the first address synchronization message includes the second MAC-IP address table entry;
the first/second MAC-IP address table entry correspondingly stores the MAC address and the IP address of the host in the multi-home network, and the host is accessed to a plurality of VTEP devices in the multi-home network.
And the first VTEP device constructs a first address synchronization message according to the second MAC-IP address table entry, and sends the first address synchronization message to all VTEP devices in the multi-home networking and a third VTEP device outside the multi-home networking, so that after the third VTEP device receives the first address synchronization message, a standby forwarding list is constructed according to the second MAC-IP address table entry carried by the first address synchronization message, and the data message can be forwarded to the host according to the standby forwarding list after the second VTEP device goes offline.
In order that those skilled in the art will better understand the embodiments of the present invention, the following description will be given by way of specific examples.
Referring to fig. 1, prior to a restart by VTEP2, VTEP2 sends a multihomed route withdraw indication message to VTEP1, VTEP3, VTEP4 within the multihomed network and VTEP5 outside the multihomed network in response to a configuration operation by a user on VTEP 2.
VTEP1, VTEP3, VTEP4, and VTEP5 receive the multihomed route withdraw indication message and then determine whether they are in the multihomed network with VTEP 2. Wherein, when VTEP1, VTEP3 and VTEP4 respectively determine that the network is in the multi-homing group with VTEP2, VTEP1, VTEP3 and VTEP4 reselect DF devices. Assuming that VTEP3 is elected as the DF device, VTEP3 forwards a first address synchronization message including a dynamically learned second MAC-IP address entry to VTEP5 after converting the first MAC-IP address entry statically learned from VTEP2 to the second MAC-IP address entry.
After receiving the first address synchronization message, VTEP5 generates a backup forwarding table for forwarding the data packet to the host according to the second MAC-IP address table entry in the first address synchronization message. After VTEP2 goes offline (e.g., receives the MAC-IP address withdrawal indication sent by VTEP 2), the data packet is forwarded to the VM according to the standby forwarding table.
Compared with the prior art, when receiving the multihoming route withdrawal indication message sent by VTEP2, VTEP3 directly converts the first MAC-IP address table item statically learned from VTEP2 into the second MAC-IP address table item dynamically learned, and then synchronizes the second MAC-IP address table item to VTEP5, and VTEP3 does not need to dynamically learn the second MAC-IP address table item of the VM from the VM again, so that the time for VTEP5 to obtain the second MAC-IP address table item synchronously from VTEP3 can be shortened, the problem of data packet loss caused during restart of VTEP2 can be alleviated, and the transmission quality of the data packet can be improved.
Therefore, by applying the route processing method provided by the embodiment of the present invention, after receiving a multihoming route revocation indication message sent by a second VTEP device serving as a DF device in a multihoming networking network, when the first VTEP device and the second VTEP device are both in the multihoming networking network, the first VTEP device performs reselection of the DF device according to the multihoming route revocation indication message, and when the first VTEP device is elected as the DF device, converts a first MAC-IP address table entry statically learned from the second VTEP device into a second MAC-IP address table entry dynamically learned, and then synchronizes the second MAC-IP address table entry to a third VTEP device outside the multihoming networking network through the first address synchronization message. Therefore, the third VTEP device can construct a standby forwarding list according to the second MAC-IP address, so that the data message can be forwarded to the host through the standby forwarding list after the second VTEP device is offline, the problem of data message loss during the restart of the second VTEP device is solved, and the transmission quality of the data message is improved.
In another embodiment, the multi-homed route withdraw indication message includes first ESI information, and the first VTEP device may determine whether the first VTEP device and the second VTEP device are co-located within the multi-homed group based on the first ESI information. The following describes the routing processing method according to the embodiment of the present invention in detail through a flowchart of the routing processing method shown in fig. 3.
Specifically, the routing processing method shown in fig. 3 includes the following steps:
step 301, receiving a multi-homing route revocation indication message sent by a second VTEP device serving as a DF device in a multi-homing group network; wherein the multi-homed route withdraw indication message includes the first ESI information.
It should be noted that step 301 and steps 304 to 306 are similar to steps 201 to 204 in the above embodiments, and the embodiments of the present invention are not described herein again.
Step 302, judging whether the first VTEP device has an output interface corresponding to the first ESI information;
the first VTEP device acquires the first ESI information from the received multi-homing route withdrawal indication message, and searches whether an AC (outgoing interface) corresponding to the first ESI information exists in a local AC (outgoing interface).
Step 303, if the first VTEP device has an outgoing interface corresponding to the first ESI information, determining that the first VTEP device and the second VTEP device are located in the multi-homing network.
And when the first VTEP device locally has the AC corresponding to the first ESI information, determining that the first VTEP device and the second VTEP device belong to the multi-homing network.
Step 304, when the first VTEP device and the second VTEP device are both located in the multi-homing network, the first VTEP device performs reselection of a DF device in the multi-homing network according to the multi-homing route revocation indication message;
step 305, when the first VTEP device is elected as the DF device, converting a first MAC-IP address table item statically learned from the second VTEP device into a second MAC-IP address table item dynamically learned by the first VTEP device;
step 306, sending a first address synchronization message to all VTEP devices within the multi-homing network and a third VTEP device outside the multi-homing network, where the first address synchronization message includes the second MAC-IP address table entry;
the first/second MAC-IP address table entry correspondingly stores the MAC address and the IP address of the host in the multi-home network, and the host is accessed to a plurality of VTEP devices in the multi-home network.
In this way, the first VTEP device may determine, according to the first ESI information carried in the multihomed route revocation indication information, whether the first VTEP device and the second VTEP device belong to the multihomed network together, specifically, when the first VTEP device locally has an AC corresponding to the first ESI information, it is determined that the first VTEP device and the second VTEP device are in the multihomed network together, and then the first VTEP device sends the second MAC-IP address table entry to the third VTEP device.
In another embodiment, after sending the first address synchronization message carrying the second MAC-IP address table entry to the third VTEP device, the first VTEP device also sends the first multihomed route to the third VTEP device, so that the third VTEP device generates the standby forwarding list according to the second MAC-IP address table entry and the first multihomed route. The following describes the route processing method according to the embodiment of the present invention in detail by using a flowchart of the route processing method shown in fig. 4.
Specifically, the routing processing method shown in fig. 4 includes the following steps:
step 401, receiving a multihoming route revocation indication message sent by a second VTEP device serving as a DF device in a multihoming group network;
it should be noted that steps 401 to 404 in the embodiment of the present invention are similar to steps 201 to 204 in the embodiment described above, and the embodiment of the present invention is not described herein again.
Step 402, when the first VTEP device and the second VTEP device are both located in the multi-homing network, the first VTEP device performs reselection of a DF device in the multi-homing network according to the multi-homing route revocation indication message;
step 403, when the first VTEP device is elected as the DF device, converting a first MAC-IP address table item statically learned from the second VTEP device into a second MAC-IP address table item dynamically learned by the first VTEP device;
step 404, sending a first address synchronization message to all VTEP devices within the multi-homing network and a third VTEP device outside the multi-homing network, where the first address synchronization message includes the second MAC-IP address table entry;
the first/second MAC-IP address table entry correspondingly stores the MAC address and the IP address of the host in the multi-home network, and the host is accessed to a plurality of VTEP devices in the multi-home network.
Step 405, sending a first multihomed route to the third VTEP device, so that the third VTEP device generates a standby forwarding list according to the second MAC-IP address table entry and the first multihomed route, and performs forwarding processing on the data packet of the host according to the standby forwarding list after deleting the effective forwarding list obtained from static learning at the second VTEP device.
After sending the first address synchronization message to the third VTEP device, the first VTEP device sends a first multihomed route to the third VTEP device, where the first multihomed route may carry ESI information of an egress interface of the first VTEP. And after receiving the first multi-homing route, the third VTEP device searches for an outgoing interface with the ESI information (when the VTEP device in the multi-homing network where the first VTEP device is located reselects the DF device, the third VTEP device sends an ES route to the third VTEP device, wherein the ES route carries the ESI information of the AC of the VTEP device sending the ES route, receives and stores the ES route, searches for the ES route with the first ESI information after receiving the first multi-homing route, and determines that a VXLAN tunnel between the VTEP device sending the ES route and the third VTEP device is the outgoing interface with the ESI information).
And the third VTEP equipment generates a standby forwarding list according to the searched out interface and the second MAC-IP address table item. And when the second VTEP equipment is online, the third VTEP equipment forwards the data message to the host according to the effective forwarding list obtained by static learning of the second VTEP equipment, and after the second VTEP equipment is offline, the third VTEP equipment deletes the effective forwarding list and forwards the data message to the host according to the standby forwarding list.
The example shown in fig. 1 is still taken as an example. VTEP3 sends a first address synchronization message (which includes the second MAC-IP address entry) and first multihomed routing information (which includes the ESI information) to VTEP 5. After receiving the first address synchronization message and the first multihomed routing information, VTEP5 determines the egress interface (including VTEP1, VTEP3, and VTEP4) having the ESI information, and then VTEP5 generates a standby forwarding list according to the second MAC-IP address table entry and the egress interface having the ESI information, referring to table 2.
TABLE 2
Figure BDA0001614278820000101
When receiving the data packet forwarded to the VM, the VTEP5 may forward the data packet to the VM through 3 egress interfaces (VXLAN tunnel 1, VXLAN tunnel 3, and VXLAN tunnel 4) to implement load sharing.
Therefore, with the routing processing method provided in the embodiment of the present invention, after the first VTEP device converts the first MAC-IP address table entry statically learned from the second VTEP device into the second MAC-IP address table entry dynamically learned, the second MAC-IP address table entry is synchronized to a third VTEP device outside the multi-homing networking through the first address synchronization message, and then the first multi-homing route is sent to the third VTEP device. Therefore, the third VTEP device can construct a standby forwarding list according to the second MAC-IP address and the first multihoming route, where the standby forwarding list includes at least one egress interface, so that after the second VTEP device is offline, the third VTEP device can forward the data packet to the host through the standby forwarding list, thereby alleviating the problem of data packet loss during the restart of the second VTEP device, improving the transmission quality of the data packet, and implementing load sharing.
Fig. 5 shows a flow chart of a routing method according to an embodiment of the present invention, which may apply a third VTEP device. As shown in fig. 5, the method includes the following steps.
Step 501, receiving a first address synchronization message sent by a first VTEP device serving as a DF device in a multi-homing group network, where the first address synchronization message includes a second MAC-IP address table entry, and the first VTEP device is determined after performing DF device reselection for the VTEP device in the multi-homing group network.
Specifically, the second VTEP device serving as the DF device in the multi-homing networking sends the multi-homing route withdraw indication message to the VTEP device in the same multi-homing networking and a third VTEP device outside the multi-homing networking in response to the configuration operation of the user on the second VTEP device.
After the first VTEP device is elected as the DF device, the first VTEP device converts a first MAC-IP address table item statically learned from a second VTEP device into a second MAC-IP address table item dynamically learned and then sends a first address synchronization message comprising the second MAC-IP address table item to a third VTEP device.
Step 502, generating a standby forwarding list according to the second MAC-IP address table entry;
and after receiving the first address synchronization message sent by the first VTEP device, the third VTEP device acquires a second MAC-IP address table entry in the first address synchronization message, and generates a standby forwarding list for forwarding the data message to the host according to the second MAC-IP address table entry.
Step 503, when receiving a MAC-IP address revocation indication sent by a second VTEP device, deleting a first effective forwarding list obtained from static learning at the second VTEP device, and forwarding a data packet according to the standby forwarding list after receiving the data packet of a host; and the second VTEP device performs initial DF device reselection for the VTEP device in the multi-homing network.
And when the second VTEP equipment is offline, the second VTEP equipment sends an MAC-IP address revocation indication to the VTEP equipment in the same multi-homing networking and a third VTEP equipment outside the multi-homing networking. And after receiving the MAC-IP address revocation indication message, the third VTEP equipment deletes the first effective forwarding list statically learned from the second VTEP. And when receiving the data message sent to the host, the third VTEP equipment forwards the data message to the host through the standby forwarding list.
Therefore, by applying the routing processing method provided by the embodiment of the present invention, after receiving the first address synchronization message including the second MAC-IP address table entry sent by the first VTEP device, the third VTEP device may generate the standby forwarding list according to the second MAC-IP address table entry, delete the first valid forwarding list statically learned from the second VTEP device after receiving the MAC-IP address revocation indication sent by the second VTEP device serving as the DF device in the multi-homing networking, and forward the data packet to the host through the standby forwarding list when receiving the data packet sent to the host.
After the second MAC-IP address table entry is a DF device by the first VTEP device through reselection, the first MAC-IP address table entry statically learned from the second VTEP device is converted into the second MAC-IP address table entry dynamically learned and then is synchronized to the third VTEP device through the first address synchronization message, so that the first VTEP device does not need to dynamically learn the MAC-IP address table entry from a host after becoming the DF device, and compared with the prior art, the time for the third VTEP device to synchronously obtain the second MAC-IP address table entry from the first VTEP device can be shortened, the problem of data message loss during the restart of the second VTEP device can be further relieved, and the transmission quality of the data message is improved.
In another embodiment, after receiving the first address synchronization message including the second MAC-IP address table entry sent by the first VTEP device, the third VTEP device receives the first multihomed route sent by the first VTEP device, where the first multihomed route includes the first ESI information, and the third VTEP device generates the standby forwarding table entry according to the second MAC-IP address table entry and the first ESI information. The following describes the route processing method according to the embodiment of the present invention in detail by using a flowchart of the route processing method shown in fig. 6.
Specifically, the route processing method shown in fig. 6 includes the following steps.
Step 601, receiving a first address synchronization message sent by a first VTEP device serving as a DF device in a multi-homing network, wherein the first address synchronization message comprises a second MAC-IP address table entry, and the first VTEP device is determined after performing DF device reselection for the VTEP device in the multi-homing network.
It should be noted that step 601 and step 605 in the embodiment of the present invention are similar to step 501 and step 503, and are not described again in the embodiment of the present invention.
Step 602, receiving a first multihomed route sent by the first VTEP apparatus, where the first multihomed route includes first ESI information.
After sending the first address synchronization message to the third VTEP device, the first VTEP device sends a first multihomed route to the third VTEP device, where the first multihomed route includes first ESI information, and the first ESI information is ESI information of an AC where the host accesses the first VTEP device.
Step 603, determining at least one first output interface for forwarding the data message to the host according to the first ESI information.
Specifically, when performing the reselection of the DF device, the VTEP device in the multihomed network sends an ES route to the third VTEP device, where the ES route carries IP information of the VTEP sending the ES route and ESI information of an AC where the host accesses the VTEP. After receiving the ES routes sent by the respective VTEP devices, the third VTEP device may locally cache the ES routes. After receiving the first multi-homing route sent by the first VTEP device, the third VTEP device searches for an ES route with ESI information consistent with the first ESI information in the locally cached ES route, and determines that a VXLAN tunnel between the third VTEP device and the VTEP device corresponding to the ES route with ESI information consistent with the first ESI information is a first interface for the third VTEP device to forward the data packet to the host.
Step 604, when the first address synchronization message and the first multi-homed route have the same source IP address, generating a standby forwarding list according to the second MAC-IP address table entry and the at least one first egress interface.
And when the first address synchronization message and the first multi-homing route have the same source IP address, the third VTEP device determines that the first address synchronization message and the first multi-homing route both come from the first VTEP device, so that the third VTEP device generates a standby forwarding list according to the second MAC-IP address table entry and the determined at least one first outgoing interface.
605, when receiving a MAC-IP address revocation indication sent by a second VTEP device, deleting a first effective forwarding list obtained from static learning at the second VTEP device, and after receiving a data packet sent to a host, forwarding the data packet according to the standby forwarding list; and the second VTEP device performs initial DF device reselection for the VTEP device in the multi-homing network.
Therefore, when the third VTEP device deletes the first valid forwarding list, the data packet may be forwarded to the host through the standby forwarding list, and since the standby forwarding list includes at least one egress interface, the third VTEP device may forward the data packet to the host through the at least one egress interface, thereby achieving load sharing.
In another embodiment, before receiving the first address synchronization message sent by the first VTEP device serving as the DF device in the multi-homed group, the third VTEP device may further receive a multi-homed route revocation indication message sent by the first VTEP device, delete a route entry corresponding to the second VTEP device in the first valid forwarding list according to the first multi-homed route revocation indication message, and forward the data packet to the host through the changed first valid forwarding list. The following describes the route processing method according to the embodiment of the present invention in detail by using a flowchart of the route processing method shown in fig. 7.
Specifically, the route processing method shown in fig. 7 includes the following steps.
Step 701, receiving a multihoming route withdraw indication message sent by the second VTEP device, where the multihoming route withdraw indication message includes route information between the second VTEP device to be withdrawn and the third VTEP device;
specifically, the second VTEP device sends the multihomed route withdrawal indication message to the VTEP device co-located with the multihomed network and a third VTEP device outside the multihomed network in response to a configuration operation of the user on the second VTEP device.
Step 702, deleting a routing table entry corresponding to the second VTEP device from the stored first valid forwarding list according to the routing information;
after receiving the multihomed route revocation instruction message, the third VTEP device determines that the second VTEP device is in a different multihomed network from the multihomed network, and then deletes the route entry corresponding to the second VTEP device from the first valid forwarding list (as shown in table 1) according to the route information in the multihomed route revocation instruction message, where the changed first valid forwarding list is shown in table 2.
Step 703, after receiving the data packet sent to the host, forwarding the data packet according to the changed first effective forwarding list.
And after receiving the data message sent to the host, the third VTEP equipment forwards the data message to the host according to the changed first effective forwarding list.
For example, before receiving the multihomed route withdraw indication message, the third VTEP device forwards the data packet to the host through the first valid forwarding list shown in table 1, and the third VTEP device may share the data packet load in VXLAN tunnel 1 to VXLAN tunnel 4. After receiving the multihomed route revocation indication message, the third VTEP device forwards the data packet to the host through the changed first valid forwarding list shown in table 2, and the third VTEP device can share the data packet load to VXLAN tunnel 1, VXLAN tunnel 3, and VXLAN tunnel 4.
Step 704, receiving a first address synchronization message sent by a first VTEP device serving as a DF device in the multi-homing group network, where the first address synchronization message includes a second MAC-IP address entry, and the first VTEP device is determined after performing DF device reselection for the VTEP device in the multi-homing group network;
it should be noted that steps 704 to 706 in the embodiment of the present invention are similar to steps 501 to 503 in the embodiment described above, and the embodiment of the present invention is not described herein again.
Step 705, generating a standby forwarding list according to the second MAC-IP address table entry;
step 706, when receiving a MAC-IP address revocation indication sent by a second VTEP device, deleting a first effective forwarding list obtained from static learning at the second VTEP device, and after receiving a data packet forwarded to a host, forwarding the data packet according to the standby forwarding list; and the second VTEP device performs initial DF device reselection for the VTEP device in the multi-homing network.
Therefore, by applying the route processing method provided by the embodiment of the present invention, after receiving the multihomed route revocation indication message sent by the second VTEP device, the third VTEP device deletes the route entry corresponding to the second VTEP device from the locally stored first effective forwarding list, and forwards the data packet to the host according to the changed first effective forwarding list. Therefore, the problem that the data message is lost and the transmission quality of the data message is ensured can be solved.
And after receiving the multi-homing route revocation indication message, the VTEP device in the co-homing network of the second VTEP device performs reselection of the DF device, and the third VTEP device can always forward the data packet to the host through the changed first effective forwarding list, so that the problem of data packet loss caused during the reselection of the DF device by the VTEP device in the co-homing network with the second VTEP device can be avoided, and the transmission quality of the data packet is improved.
In another embodiment, after the second VTEP device is restarted, a second address synchronization message and a second multihomed route may be sent to a VTEP device located in the multihomed network and a third VTEP device outside the multihomed network, and after the third VTEP device receives the second address synchronization message and the second multihomed route, a second effective forwarding list is generated according to a third MAC-IP address table entry and the second ESI information, and after the standby forwarding list is deleted, the data packet is forwarded to the host according to the second effective forwarding list. The following describes the route processing method according to the embodiment of the present invention in detail with reference to the flowchart of the route processing method shown in fig. 8.
Specifically, the route processing method shown in fig. 8 includes the following steps.
Step 801, receiving a multihoming route withdrawal indication message sent by the second VTEP device, where the multihoming route withdrawal indication message includes route information between the second VTEP device to be withdrawn and the third VTEP device;
it should be noted that steps 801 to 806 in the embodiment of the present invention are similar to steps 701 to 706 in the embodiment of the method described above, and the embodiment of the present invention is not described herein again.
Step 802, according to the routing information, deleting a routing table entry corresponding to the second VTEP device from the stored first valid forwarding list;
and 803, after receiving the data message sent to the host, forwarding the data message according to the changed first effective forwarding list.
Step 804, receiving a first address synchronization message sent by a first VTEP device serving as a DF device in the multi-homing network, wherein the first address synchronization message comprises a second MAC-IP address table item, and the first VTEP device is determined after the first VTEP device performs DF device reselection for the VTEP device in the multi-homing network;
step 805, generating a standby forwarding list according to the second MAC-IP address table entry;
step 806, when receiving a MAC-IP address revocation indication sent by a second VTEP device, deleting a first effective forwarding list obtained from static learning at the second VTEP device, and after receiving a data packet forwarded to a host, forwarding the data packet according to the standby forwarding list; and the second VTEP device performs initial DF device reselection for the VTEP device in the multi-homing network.
Step 807, when receiving a second address synchronization message and a second multi-homing route sent by the second VTEP equipment, generating a second effective forwarding list, where the second VTEP equipment is a DF equipment re-online in the multi-homing networking;
specifically, after the second VTEP device is restarted, in response to a configuration operation of the user on the second VTEP device, the second address synchronization message and the second multi-homing route are sent to the VTEP device in the multi-homing network and a third VTEP device outside the multi-homing network. For example, the second address synchronization message includes a third MAC-IP address table entry dynamically learned by the second VTEP device from the host, and the second multi-homed route includes second ESI information of the AC accessed by the host to the second VTEP device.
And after receiving the second address synchronization message and the second multi-homing route, the third VTEP device generates a second effective forwarding list (namely the first effective forwarding list before the change) according to a third MAC-IP address table item and the second ESI information.
Step 808, deleting the standby forwarding list;
and the third VTEP equipment deletes the standby forwarding list after generating the second effective forwarding list.
And step 809, after receiving the data message of the host, forwarding the data message according to the second effective forwarding list.
In this way, after the second VTEP device is restarted, the third VTEP device may generate the second effective forwarding list according to the second address synchronization message and the second multihomed route sent by the second VTEP device, so as to continue forwarding the data packet to the host through the second VTEP device.
In order to better understand the embodiments of the present invention, a specific example will be described below.
As in the example shown in fig. 1. When version upgrade is performed in VTEP2 and restart is required, a multihoming route withdrawal indication message is sent to VTEP1, VTEP3, VTEP4 and VTEP5 in response to a configuration operation of a user on VTEP 2.
Upon receiving the multihomed route withdraw indication message, VTEP5 determines that it is not in the same multihomed network as VTEP2, deletes the route entry corresponding to VTEP2 from the locally stored first valid forwarding list (as shown in table 1) according to the multihomed route withdraw indication message, and the changed first valid forwarding list is shown in table 2. Upon receiving the data packet sent to the host, the VTEP5 forwards the data packet to the host according to the changed first valid forwarding list (performs load sharing through the VXLAN tunnel 1, VXLAN tunnel 3, and VXLAN tunnel 4).
Upon receiving the multihomed route withdrawal instruction message, VTEP1, VTEP3, and VTEP4 determine that they are in the same multihomed group as VTEP2, and reselect a DF device based on the multihomed route withdrawal instruction message. Assuming that VTEP3 is elected as the new DF device, VTEP3 converts the first MAC-IP address entry statically learned from VTEP2 into the second MAC-IP address entry dynamically learned, and then sends a first multi-homed route including a first address synchronization message of the second MAC-IP address entry and first ESI information of the AC port of host access VTEP3 to VTEP1, VTEP2, VTEP4, and VTEP5 (during this process, VTEP5 always forwards data packets to the host according to the changed first valid forwarding list).
After receiving the first address synchronization message and the first multihomed route, VTEP5 generates a standby forwarding list (as shown in table 2) according to the second MAC-IP address table entry and the first ESI information, and at this time, VTEP5 still forwards the data packet to the host according to the changed first valid forwarding list.
Upon shutdown of VTEP2, VTEP2 sends a MAC-IP address withdrawal indication to VTEP 5. After receiving the MAC-IP address revocation indication, the VTEP5 deletes the changed first valid forwarding list, and forwards the data packet to the host through the standby forwarding list.
Upon successful restart of VTEP2, a second address synchronization message and a second multihomed route are sent to VTEP1, VTEP3, VTEP4, and VTEP5 in response to a configuration operation by the user. After receiving the second address synchronization message and the second multihomed route, VTEP5 generates a second valid forwarding list (as shown in table 1) according to the second address synchronization message and the second multihomed route, deletes the standby forwarding list, and forwards the data packet to the host according to the second valid forwarding list.
It can be seen that, in the routing processing method provided in the embodiment of the present invention, in the process of restarting the VTEP2 serving as a DF device in the multihoming networking, the VTEP5 always stores a forwarding list for forwarding a data packet to a host, so that the VTEP5 can always forward the data packet to the host, the problem of loss of the data packet caused during the restart of the VTEP2 can be avoided, and the transmission quality of the data packet is improved.
Fig. 9 is a block diagram of a routing processing apparatus according to an embodiment of the present invention, which may apply a first extensible virtual local area network tunnel endpoint VTEP device. As shown in fig. 9, the apparatus includes:
a receiving module 901, configured to receive a multihomed route revocation indication message sent by a second VTEP device serving as a DF device in a multihomed group network;
an election module 902, configured to perform, when the first VTEP device and the second VTEP device are located in the multi-homing network, reselection of a DF device in the multi-homing network by the first VTEP device according to the multi-homing route revocation indication message;
a conversion module 903, configured to convert a first MAC-IP address entry statically learned from the second VTEP device into a second MAC-IP address entry dynamically learned by the first VTEP device when the first VTEP device is elected as the DF device;
a first sending module 904, configured to send a first address synchronization message to all VTEP devices within the multi-homing network and a third VTEP device outside the multi-homing network, where the first address synchronization message includes the second MAC-IP address table entry;
the first/second MAC-IP address table entry correspondingly stores the MAC address and the IP address of the host in the multi-home network, and the host is accessed to a plurality of VTEP devices in the multi-home network.
Therefore, by applying the route processing apparatus provided in the embodiment of the present invention, after receiving a multihoming route revocation indication message sent by a second VTEP device serving as a DF device in a multihoming networking network, when the first VTEP device and the second VTEP device are both in the multihoming networking network, the first VTEP device performs reselection of the DF device according to the multihoming route revocation indication message, and when the first VTEP device is elected as the DF device, converts a first MAC-IP address entry statically learned from the second VTEP device into a second MAC-IP address entry dynamically learned, and then synchronizes the second MAC-IP address entry to a third VTEP device outside the multihoming networking network through the first address synchronization message. Therefore, the third VTEP device can construct a standby forwarding list according to the second MAC-IP address, so that the data message can be forwarded to the host through the standby forwarding list after the second VTEP device is offline, the problem of data message loss during the restart of the second VTEP device is solved, and the transmission quality of the data message is improved.
Fig. 10 is a block diagram illustrating a structure of a routing processing apparatus according to an embodiment of the present invention, where a receiving module 1001, an election module 1002, a conversion module 1003, and a first sending module 1004 are similar to the receiving module 901, the election module 902, the conversion module 903, and the first sending module 904 in the foregoing embodiment, and no further description is given here in the embodiment of the present invention.
In a possible implementation manner, the multi-homed route withdrawal indication message includes first ethernet segment identification ESI information, and referring to fig. 10, the apparatus may further include:
a determining module 1005, configured to determine whether the first VTEP device has an output interface corresponding to the first ESI information;
a determining module 1006, configured to determine that the first VTEP device and the second VTEP device are located in the multi-homing network if the first VTEP device has an outgoing interface corresponding to the first ESI information.
In a possible implementation manner, referring to fig. 10, the apparatus may further include:
a second sending module 1007, configured to send a first multihoming route to the third VTEP device, where the first multihoming route is used to enable the third VTEP device to generate a standby forwarding list according to the second MAC-IP address table entry and the first multihoming route, and after deleting an effective forwarding list obtained from static learning at the second VTEP device, forward a data packet of a host according to the standby forwarding list.
Fig. 11 is a block diagram illustrating a structure of a routing processing apparatus according to an embodiment of the present invention, where the apparatus may be applied to a third extensible virtual local area network tunnel endpoint VTEP device, and the apparatus may include:
a first receiving module 1101, configured to receive a first address synchronization message sent by a first VTEP device serving as a DF device in a multi-home group network, where the first address synchronization message includes a second MAC-IP address table entry, and the first VTEP device is determined after performing DF device reselection for the VTEP device in the multi-home group network;
a first generating module 1102, configured to generate a standby forwarding list according to the second MAC-IP address table entry;
the processing module 1103 may be configured to, when receiving an MAC-IP address revocation indication sent by a second VTEP device, delete a first effective forwarding list obtained from static learning at the second VTEP device, and forward a data packet sent to a host according to the standby forwarding list after receiving the data packet; and the second VTEP device performs initial DF device reselection for the VTEP device in the multi-homing network.
Fig. 12 is a block diagram illustrating a structure of a routing processing apparatus according to an embodiment of the present invention, wherein the first receiving module 1201, the first generating module 1202, and the processing module 1203 are similar to the first receiving module 1101, the first generating module 1102, and the processing module 1103 in the above embodiments, and no further description is given here in the embodiment of the present invention.
In a possible implementation manner, referring to fig. 12, the apparatus may further include:
a second receiving module 1204, configured to receive a first multihomed route sent by the first VTEP apparatus, where the first multihomed route includes first ESI information;
a determining module 1205, configured to determine, according to the first ESI information, at least one first outgoing interface for forwarding a data packet to a host;
the first generating module 1202 may include:
the generating submodule 12021 may be configured to generate a standby forwarding list according to the second MAC-IP address table entry and the at least one first outgoing interface when the first address synchronization message and the first multihomed route have the same source IP address.
In one possible implementation, referring to fig. 12, the apparatus may further include:
a third receiving module 1206, configured to receive a multihomed route revocation indication message sent by the second VTEP device, where the multihomed route revocation indication message includes route information between the second VTEP device to be revoked and the third VTEP device;
a first deleting module 1207, configured to delete, according to the routing information, a routing table entry corresponding to the second VTEP device from the stored first valid forwarding list;
the first forwarding module 1208 may be configured to, after receiving the data packet sent to the host, forward the data packet according to the changed first effective forwarding list.
In one possible implementation, referring to fig. 12, the apparatus may further include:
a second generating module 1209, configured to generate a second valid forwarding list when receiving a second address synchronization message and a second multihomed route sent by the second VTEP device, where the second VTEP device is a DF device that comes online again in the multihomed networking;
a second deleting module 1210, configured to delete the standby forwarding list;
the second forwarding module 1211 may be configured to, after receiving the data packet of the host, forward the data packet according to the second valid forwarding list.
Fig. 13 is a block diagram illustrating a hardware configuration of a route processing apparatus according to an exemplary embodiment. In practical applications, the device may be implemented by a server. Referring to fig. 13, the apparatus 1300 may include a processor 1301, a machine-readable storage medium 1302 storing machine-executable instructions. The processor 1301 and the machine-readable storage medium 1302 may communicate via a system bus 1303. Also, the processor 1301 performs the routing processing method described above by reading machine-executable instructions corresponding to the routing processing logic in the machine-readable storage medium 1302.
The machine-readable storage medium 1302 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: random Access Memory (RAM), volatile Memory, non-volatile Memory, flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, 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 terms used herein were chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the techniques in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (14)

1. A routing processing method is applied to a first extensible virtual local area network tunnel endpoint (VTEP) device, and comprises the following steps:
receiving a multi-homing route revocation indication message sent by a second VTEP device serving as a DF device in the multi-homing group network;
when the first VTEP device and the second VTEP device are in the multi-homing network, the first VTEP device performs reselection of DF devices in the multi-homing network according to the multi-homing route revocation indication message;
when the first VTEP device is elected as the DF device, converting a first MAC-IP address table item statically learned from the second VTEP device into a second MAC-IP address table item dynamically learned by the first VTEP device;
sending a first address synchronization message to all VTEP devices in the multi-homing networking network and a third VTEP device outside the multi-homing networking network, wherein the first address synchronization message comprises a second MAC-IP address table item, so that the third VTEP can construct a standby forwarding list according to the second MAC-IP address table item carried by the first address synchronization message and forward a data message to a host according to the standby forwarding list;
the first/second MAC-IP address table entry correspondingly stores the MAC address and the IP address of the host in the multi-home network, and the host is accessed to a plurality of VTEP devices in the multi-home network.
2. The method according to claim 1, wherein the multihomed route withdrawal indication message comprises first ESI information;
after receiving the multihoming route withdrawal indication message sent by the second VTEP device serving as the DF device in the multihoming group, the method further includes:
judging whether the first VTEP device has an output interface corresponding to the first ESI information;
and if the first VTEP device has an outgoing interface corresponding to the first ESI information, determining that the first VTEP device and the second VTEP device are located in the multi-homing network.
3. The method of claim 1, further comprising:
and sending a first multi-homing route to the third VTEP equipment, so that the third VTEP equipment generates a standby forwarding list according to the second MAC-IP address table entry and the first multi-homing route, and after deleting an effective forwarding list obtained from static learning at the second VTEP equipment, forwarding the data message of the host according to the standby forwarding list.
4. A routing processing method applied to a third extensible virtual local area network tunnel endpoint, VTEP, device, the method comprising:
receiving a first address synchronization message sent by a first VTEP device serving as a DF device in a multi-homing network, wherein the first address synchronization message comprises a second MAC-IP address table item, and the first VTEP device is determined after the first VTEP device performs DF device reselection for the VTEP device in the multi-homing network;
generating a standby forwarding list according to the second MAC-IP address table item;
when receiving an MAC-IP address revocation instruction sent by second VTEP equipment, deleting a first effective forwarding list obtained from static learning at the second VTEP equipment, and forwarding a data message according to the standby forwarding list after receiving the data message sent to a host; and the second VTEP device performs initial DF device reselection for the VTEP device in the multi-homing network.
5. The method according to claim 4, wherein after receiving the first address synchronization message sent by the first VTEP device which is a DF device in the multi-home group network, the method further comprises:
receiving a first multi-homing route sent by the first VTEP device, wherein the first multi-homing route comprises first ESI information;
determining at least one first output interface for forwarding the data message to the host according to the first ESI information;
the generating a standby forwarding list according to the second MAC-IP address table entry includes:
and when the first address synchronization message and the first multi-homing route have the same source IP address, generating a standby forwarding list according to the second MAC-IP address table entry and the at least one first outgoing interface.
6. The method of claim 4, wherein prior to receiving the first address synchronization message sent by the first VTEP device acting as a DF device within a multi-homing group, the method further comprises:
receiving a multi-homing route revocation indication message sent by the second VTEP device, wherein the multi-homing route revocation indication message comprises the route information between the second VTEP device to be revoked and the third VTEP device;
deleting a routing table entry corresponding to the second VTEP equipment from the stored first valid forwarding list according to the routing information;
and after receiving the data message sent to the host, forwarding the data message according to the changed first effective forwarding list.
7. The method according to any one of claims 4 to 6, further comprising:
when receiving a second address synchronization message and a second multi-homing route sent by the second VTEP device, generating a second effective forwarding list, wherein the second VTEP device is a DF device which is on-line again in the multi-homing networking;
deleting the standby forwarding list;
and after receiving the data message of the host, forwarding the data message according to the second effective forwarding list.
8. A routing processing apparatus, applied to a first extensible virtual local area network tunnel endpoint, VTEP, device, the apparatus comprising:
the receiving module is used for receiving a multi-homing route revocation indication message sent by a second VTEP device serving as a DF device in the multi-homing group network;
an election module, configured to, when the first VTEP device and the second VTEP device are located in the multi-homing network, perform, according to the multi-homing route revocation indication message, reselection of a DF device in the multi-homing network by the first VTEP device;
a conversion module, configured to convert a first MAC-IP address table entry statically learned from the second VTEP device into a second MAC-IP address table entry dynamically learned by the first VTEP device when the first VTEP device is elected as the DF device;
a first sending module, configured to send a first address synchronization message to all VTEP devices in the multi-homing network and a third VTEP device outside the multi-homing network, where the first address synchronization message includes the second MAC-IP address table entry, so that the third VTEP can construct a standby forwarding list according to the second MAC-IP address table entry carried in the first address synchronization message, and forward a data packet to a host according to the standby forwarding list;
the first/second MAC-IP address table entry correspondingly stores the MAC address and the IP address of the host in the multi-home network, and the host is accessed to a plurality of VTEP devices in the multi-home network.
9. The apparatus as claimed in claim 8, wherein the multihomed route withdraw indication message includes a first ESI information, the apparatus further comprising:
the judging module is used for judging whether the first VTEP device has an output interface corresponding to the first ESI information;
a determining module, configured to determine that the first VTEP device and the second VTEP device are located in the multi-homing network if the first VTEP device has an outgoing interface corresponding to the first ESI information.
10. The apparatus of claim 8, further comprising:
a second sending module, configured to send a first multihoming route to the third VTEP device, so that the third VTEP device generates a standby forwarding list according to the second MAC-IP address table entry and the first multihoming route, and after deleting an effective forwarding list obtained from static learning at the second VTEP device, performs forwarding processing on a data packet of a host according to the standby forwarding list.
11. A routing processing apparatus, applied to a third extensible virtual local area network tunnel endpoint, VTEP, device, the apparatus comprising:
a first receiving module, configured to receive a first address synchronization message sent by a first VTEP device serving as a DF device in a multi-homing network, where the first address synchronization message includes a second MAC-IP address table entry, and the first VTEP device is determined after performing DF device reselection for the VTEP device in the multi-homing network;
the first generation module is used for generating a standby forwarding list according to the second MAC-IP address table item;
the processing module is used for deleting a first effective forwarding list obtained from static learning at a second VTEP device when receiving an MAC-IP address revocation instruction sent by the second VTEP device, and forwarding a data message according to the standby forwarding list after receiving the data message sent to a host; and the second VTEP device performs initial DF device reselection for the VTEP device in the multi-homing network.
12. The apparatus of claim 11, further comprising:
a second receiving module, configured to receive a first multihomed route sent by the first VTEP device, where the first multihomed route includes first ESI information;
a determining module, configured to determine, according to the first ESI information, at least one first egress interface that forwards the data packet to the host;
the first generation module includes:
and a generation submodule, configured to generate a standby forwarding list according to the second MAC-IP address table entry and the at least one first egress interface when the first address synchronization message and the first multihomed route have the same source IP address.
13. The apparatus of claim 11, further comprising:
a third receiving module, configured to receive a multihoming route withdrawal indication message sent by the second VTEP device, where the multihoming route withdrawal indication message includes route information between the second VTEP device to be withdrawn and the third VTEP device;
a first deleting module, configured to delete, according to the routing information, a routing table entry corresponding to the second VTEP device from the stored first valid forwarding list;
and the first forwarding module is used for forwarding the data message according to the changed first effective forwarding list after receiving the data message sent to the host.
14. The apparatus of any of claims 11 to 13, further comprising:
a second generating module, configured to generate a second effective forwarding list when receiving a second address synchronization message and a second multi-homing route sent by the second VTEP device, where the second VTEP device is a DF device that comes online again in the multi-homing networking;
a second deleting module, configured to delete the standby forwarding list;
and the second forwarding module is used for forwarding the data message according to the second effective forwarding list after receiving the data message of the host.
CN201810279473.8A 2018-03-30 2018-03-30 Route processing method and device Active CN108199967B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810279473.8A CN108199967B (en) 2018-03-30 2018-03-30 Route processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810279473.8A CN108199967B (en) 2018-03-30 2018-03-30 Route processing method and device

Publications (2)

Publication Number Publication Date
CN108199967A CN108199967A (en) 2018-06-22
CN108199967B true CN108199967B (en) 2020-08-11

Family

ID=62596573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810279473.8A Active CN108199967B (en) 2018-03-30 2018-03-30 Route processing method and device

Country Status (1)

Country Link
CN (1) CN108199967B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109088767B (en) * 2018-08-16 2022-02-22 新华三技术有限公司 Route updating method and device
CN113098768B (en) * 2019-12-23 2023-05-12 华为技术有限公司 Equipment management method and related device
CN112104550B (en) * 2020-08-31 2022-07-12 新华三信息安全技术有限公司 Election method and device for designated forwarder DF
CN112953832B (en) * 2021-02-20 2023-06-23 中国联合网络通信集团有限公司 Processing method and device for MAC address table entry
CN113037883B (en) * 2021-02-23 2022-06-10 中国联合网络通信集团有限公司 Method and device for updating MAC address table entries
CN113765783B (en) * 2021-08-05 2022-11-18 新华三大数据技术有限公司 Communication method and device
CN114827017B (en) * 2022-03-31 2024-01-30 北京声智科技有限公司 Communication method and device of Kafka cluster, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283980A (en) * 2014-10-09 2015-01-14 杭州华三通信技术有限公司 Address resolution protocol (ARP) reply on-behalf method and device
CN105591933A (en) * 2015-07-22 2016-05-18 杭州华三通信技术有限公司 Graceful restart GR processing method and equipment
CN106878183A (en) * 2017-01-22 2017-06-20 新华三技术有限公司 Flow forwarding method and device
CN107342925A (en) * 2016-04-29 2017-11-10 新华三技术有限公司 A kind of message transmitting method and device
CN107612834A (en) * 2017-09-13 2018-01-19 杭州迪普科技股份有限公司 A kind of EVPN route renewing methods based on virtual unit migration
CN107783815A (en) * 2016-08-30 2018-03-09 华为技术有限公司 A kind of method and apparatus for determining virtual machine (vm) migration
EP3370385A4 (en) * 2015-10-26 2018-12-12 New H3C Technologies Co., Ltd. Packet forwarding applied to vxlan

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283980A (en) * 2014-10-09 2015-01-14 杭州华三通信技术有限公司 Address resolution protocol (ARP) reply on-behalf method and device
CN105591933A (en) * 2015-07-22 2016-05-18 杭州华三通信技术有限公司 Graceful restart GR processing method and equipment
EP3370385A4 (en) * 2015-10-26 2018-12-12 New H3C Technologies Co., Ltd. Packet forwarding applied to vxlan
CN107342925A (en) * 2016-04-29 2017-11-10 新华三技术有限公司 A kind of message transmitting method and device
CN107783815A (en) * 2016-08-30 2018-03-09 华为技术有限公司 A kind of method and apparatus for determining virtual machine (vm) migration
CN106878183A (en) * 2017-01-22 2017-06-20 新华三技术有限公司 Flow forwarding method and device
CN107612834A (en) * 2017-09-13 2018-01-19 杭州迪普科技股份有限公司 A kind of EVPN route renewing methods based on virtual unit migration

Also Published As

Publication number Publication date
CN108199967A (en) 2018-06-22

Similar Documents

Publication Publication Date Title
CN108199967B (en) Route processing method and device
CN108600069B (en) Link switching method and device
US20080144532A1 (en) Address resolution request mirroring
CN108600074B (en) Method and device for forwarding multicast data message
US9722924B2 (en) Topology stratification method and apparatus, and flooding processing method and apparatus
US10574570B2 (en) Communication processing method and apparatus
CN107094110B (en) DHCP message forwarding method and device
US10075410B2 (en) Apparatus and methods for assigning internetwork addresses
CN108494701B (en) Load sharing method and device
CN108540386B (en) Method and device for preventing service flow interruption
RU2517312C2 (en) Link state identifier conflict resolution
US20230208760A1 (en) Entry generation method, packet sending method, device, and system
US11824765B2 (en) Fast redirect of traffic when pods fail
CN108600070B (en) Designated forwarder DF election method and device
US20230283589A1 (en) Synchronizing dynamic host configuration protocol snoop information
CN112152920B (en) Method and device for realizing table entry backup
JP5039975B2 (en) Gateway device
CN108234270B (en) Method and system for realizing multi-domain coexistence of virtual extensible local area network
CN108768849B (en) Message processing method and device
JP6378121B2 (en) Gateway apparatus and communication method
JP5218323B2 (en) Information processing method and program related to relay device and transfer rule
CN109347746B (en) MAC address learning method and device
CN109617817B (en) Method and device for generating forwarding table entry of MLAG networking
CN109873764B (en) Method, device and electronic equipment for establishing oriented OSPF (open shortest Path first) neighbor relation
CN109218182B (en) Method and device for synchronizing routing information

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