CN107733793B - Forwarding table item maintenance method and device - Google Patents

Forwarding table item maintenance method and device Download PDF

Info

Publication number
CN107733793B
CN107733793B CN201711218902.2A CN201711218902A CN107733793B CN 107733793 B CN107733793 B CN 107733793B CN 201711218902 A CN201711218902 A CN 201711218902A CN 107733793 B CN107733793 B CN 107733793B
Authority
CN
China
Prior art keywords
evpn route
vtep
evpn
route
forwarding
Prior art date
Application number
CN201711218902.2A
Other languages
Chinese (zh)
Other versions
CN107733793A (en
Inventor
唐成
黄李伟
Original Assignee
新华三技术有限公司
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 新华三技术有限公司 filed Critical 新华三技术有限公司
Priority to CN201711218902.2A priority Critical patent/CN107733793B/en
Publication of CN107733793A publication Critical patent/CN107733793A/en
Application granted granted Critical
Publication of CN107733793B publication Critical patent/CN107733793B/en

Links

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/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Route fault recovery
    • 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. local area networks [LAN], wide area networks [WAN]
    • 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
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. local area networks [LAN], wide area networks [WAN]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]

Abstract

The invention provides a method and a device for maintaining a forwarding table entry, wherein the method comprises the following steps: when receiving an EVPN route synchronized with VTEP equipment in a distributed aggregation group, and the EVPN route carries a preset identifier, storing the EVPN route; the preset identification is used for indicating that the EVPN route is a route which is not synchronized for the first time and aims at the same MAC address in the same distributed aggregation group; and when the link between the distributed aggregation group and the target VTEP equipment in the distributed aggregation group fails, maintaining a corresponding forwarding table entry according to the stored EVPN route carrying the preset identifier. The embodiment of the invention can avoid the interruption of the related service flow caused by the link failure between the VTEP equipment and the remote VTEP equipment in the distributed aggregation group and improve the networking reliability.

Description

Forwarding table item maintenance method and device

Technical Field

The present invention relates to the field of network communication technologies, and in particular, to a method and an apparatus for maintaining a forwarding table entry.

Background

VXLAN (Virtual Extensible Virtual Local Area Network) is a two-layer VPN (Virtual private Network) technology based on an IP (Internet Protocol) Network and adopting a "MAC (Media Access Control) in UDP (User Datagram Protocol)" encapsulation form. VXLAN can provide two-layer interconnection for dispersed physical sites based on existing service provider or enterprise IP networks and can provide service isolation for different tenants.

At present, in order to improve the reliability of a VXLAN network, a concept of distributed aggregation is proposed, taking the networking shown in fig. 1 as an example, a device a has 2 physical ports to add into 1 aggregation port, the other end is 2 physical devices (a device B and a device C), each physical device has one physical port to add into the aggregation port, and for the device a, the device B and the device C are 1 device, which is used to improve the service reliability of B and C.

An EVPN (Ethernet Virtual Private Network) is a two-layer VPN technology, where a control plane uses MP-BGP (multi Protocol Border Gateway Protocol) to announce EVPN routing information, and a data plane uses VXLAN encapsulation to forward a packet.

At present, the MLAG (Multi-channels Link Aggregation Group) scenario also supports EVPN technology, please refer to fig. 2, where two VTEP (VXLAN Tunneling End Point, VXLAN tunnel End Point) devices (VTEP B and VTEP C) and one VM (Virtual Machine) device (in the figure, CE (customer edge device) a is taken as an example) construct a distributed Aggregation system. If the traffic sent by CE A to VTEP B or VTEPC is the same traffic, the traffic will be Hash (Hash) to one of the links for forwarding under the condition that both links are normal. CE A may be referred to as a dual-homed VM, among other things.

Assuming that a traffic Hash with a source MAC address A-A-A sent by a CE A arrives at a VTEP B, the VTEP B dynamically learns a forwarding table item of the MAC address of the CE A, a next hop-out interface is AGG1, meanwhile, the VTEP B synchronizes the MAC table item of the MAC address A-A to a VTEP D through a BGP (Bordergateway Protocol) Protocol, and the next hop-out interface is a VXLAN tunnel from the VTEP D to the VTEP B/VTEP C; the VTEP B also synchronizes the MAC table entry of the MAC address A-A-A to the VTEP C device through an MLAG, and the next-hop interface is another AGG1 port of the distributed aggregation. After the table entries are all synchronized, if the CE E equipment has two flows which are forwarded to CE A, the source MAC addresses of the two flows are different and are respectively B-B-B and C-C-C, and the destination MAC addresses are both A-A-A, so that the two flows can carry out load sharing on VTEP D equipment, the two flows are forwarded to VTEP B and VTEP C respectively, after the two flows arrive at VTEP B and VTEP C, the forwarding table entries of A-A-A are hit, and the forwarding table entries are forwarded to CE A through AGG1

However, practice shows that in the above networking, after receiving the MAC entry of the MAC address a-a synchronized by VTEP B, VTEP C does not synchronize the MAC entry to VTEP D, and if the link between VTEP B and VETP D fails, VTEP D revokes the previously synchronized route of VTEPB, so that there is no forwarding entry to the MAC address a-a on VTEP D, and at this time, even if the link between VTEPC and VTEP D is normal, the VTEP C cannot forward the traffic.

Disclosure of Invention

The invention provides a method and a device for maintaining a forwarding table entry, which are used for solving the problem that part of service traffic cannot be normally forwarded due to link failure between one VTEP device and a remote VTEP device in a distributed aggregation group in the prior art.

According to a first aspect of the embodiments of the present invention, a forwarding table maintenance method is provided, which is applied to a far-end virtual extensible local area network tunnel endpoint VTEP device in a cross-device link aggregation group MLAG networking running an ethernet virtual private network EVPN protocol, and the method includes:

when receiving an EVPN route synchronized with VTEP equipment in a distributed aggregation group, and the EVPN route carries a preset identifier, storing the EVPN route; the preset identification is used for indicating that the EVPN route is a route which is not synchronized for the first time and aims at the same MAC address in the same distributed aggregation group;

and when the link between the distributed aggregation group and the target VTEP equipment in the distributed aggregation group fails, maintaining a corresponding forwarding table entry according to the stored EVPN route carrying the preset identifier.

According to a second aspect of the embodiments of the present invention, there is provided a forwarding table maintenance method, which is applied to any virtual extensible local area network tunnel endpoint VTEP device in a distributed aggregation group in a cross-device link aggregation group MLAG networking running an ethernet virtual private network EVPN protocol, and includes:

receiving an EVPN route synchronized by distributed aggregation DR neighbor equipment;

carrying a preset identifier in the EVPN route, and synchronizing the EVPN route carrying the preset identifier to a remote VTEP device; the preset identification is used for indicating that the EVPN route is a route which is not synchronized for the first time and aims at the same MAC address in the same distributed aggregation group.

According to a third aspect of the embodiments of the present invention, there is provided a forwarding table maintenance apparatus, which is applied to a far-end virtual extensible local area network tunnel endpoint VTEP device in a cross-device link aggregation group MLAG networking running an ethernet virtual private network EVPN protocol, and includes:

a receiving unit, configured to receive an EVPN route synchronized by VTEP devices in a distributed aggregation group;

the storage unit is used for storing the EVPN route when the receiving unit receives the EVPN route synchronized with the VTEP equipment in the distributed aggregation group and the EVPN route carries a preset identifier; the preset identification is used for indicating that the EVPN route is a route which is not synchronized for the first time and aims at the same MAC address in the same distributed aggregation group;

and the maintaining unit is used for maintaining a corresponding forwarding table entry according to the stored EVPN route carrying the preset identifier when the link with the target VTEP device in the distributed aggregation group fails.

According to a fourth aspect of the embodiments of the present invention, there is provided a forwarding table entry maintenance apparatus, which is applied to any virtual extensible local area network tunnel endpoint VTEP device in a distributed aggregation group in a cross-device link aggregation group MLAG networking running an ethernet virtual private network EVPN protocol, and is characterized in that the apparatus includes:

the receiving unit is used for receiving the EVPN route synchronized by the distributed aggregation DR neighbor equipment;

a sending unit, configured to carry a preset identifier in the EVPN route, and synchronize the EVPN route carrying the preset identifier to a remote virtual extensible local area network tunnel endpoint VTEP device; the preset identification is used for indicating that the EVPN route is a route which is not synchronized for the first time and aims at the same MAC address in the same distributed aggregation group.

By applying the embodiment of the invention, when the VTEP equipment in the distributed aggregation group receives the EVPN route synchronized by the DR neighbor equipment, the EVPN route carries the preset identifier which is used for indicating that the EVPN route is not the route synchronized for the first time in the distributed aggregation group and aims at the same MAC address, and the EVPN route carrying the preset identifier is synchronized to the remote VTEP equipment, so that when the link between the remote VTEP equipment and the target VTEP equipment in the distributed aggregation group is in failure, the remote VTEP equipment can maintain the corresponding forwarding table entry according to the EVPN route carrying the preset identifier stored by the remote VTEP equipment, the interruption of related service flow is avoided, and the networking reliability is improved.

Drawings

FIG. 1 is a schematic diagram of a distributed aggregation networking;

FIG. 2 is an architectural diagram of an MLAG networking running EVPN protocol;

fig. 3 is a flowchart illustrating a method for maintaining a forwarding entry according to an embodiment of the present invention;

fig. 4 is a flowchart illustrating a method for maintaining a forwarding entry according to an embodiment of the present invention;

fig. 5 is a schematic structural diagram of a forwarding table entry maintaining apparatus according to an embodiment of the present invention;

fig. 6 is a schematic structural diagram of a forwarding table entry maintenance device according to an embodiment of the present invention.

Detailed Description

In order to make the technical solutions in the embodiments of the present invention better understood and make the above objects, features and advantages of the embodiments of the present invention more comprehensible, the technical solutions in the embodiments of the present invention are described in further detail below with reference to the accompanying drawings.

Referring to fig. 3, a flowchart of a forwarding entry maintenance method according to an embodiment of the present invention is shown, where the forwarding entry maintenance method may be applied to an MLAG networking system running an EVPN protocol, where the MLAG networking system includes a plurality of VTEP devices forming a distributed aggregation group and a remote VTEP device respectively connected to the plurality of VTEP devices in the distributed aggregation, and as shown in fig. 3, the forwarding entry maintenance method may include:

it should be noted that, in the embodiment of the present invention, the execution subject in steps 301 to 302 may be a VTEP device in a distributed aggregation group in an MLAG networking, such as a VTEP B or a VTEP C in the MLAG networking shown in fig. 2.

For convenience of description, the following description will be given taking the execution subject of steps 301 to 302 as the first VTEP apparatus as an example.

Step 301, receiving an EVPN route synchronized by DR neighbor equipment.

In the embodiment of the present invention, for example, a distributed aggregation group includes two VTEP devices, and another VTEP device in the distributed aggregation group is a second VTEP device, that is, a first VTEP device and a second VTEP device belong to the same distributed aggregation group, and the first VTEP device and the second VTEP device are DR neighbors of each other.

In this embodiment of the present invention, when a VM (e.g., CE a in the MLAG networking shown in fig. 2, referred to as a first VM) in the MLAG networking comes online and a second VTEP device learns the MAC entry of the first VM, the second VTEP device may synchronize the MAC entry of the first VM to the first VTEP device through an EVPN route (e.g., an EVPN 2-type route).

It should be noted that, in the embodiment of the present invention, after the second VTEP device learns the MAC entry of the first VM, the MAC entry may also be synchronized to the remote VTEP device (e.g., a VTEP D in the MLAG networking shown in fig. 2) through EVPN routing; after receiving the EVPN route synchronized by the second VTEP device, the remote VTEP device may learn the MAC entry of the first VM and generate a corresponding forwarding entry, so that the forwarding of the traffic sent to the first VM may be guided according to the forwarding entry in the following, and specific implementation thereof may refer to related implementation in existing MLAG networking, which is not described in detail in the embodiment of the present invention.

Step 302, carrying a first preset identifier in the EVPN route, and synchronizing the EVPN route carrying the first preset identifier to the remote VTEP equipment.

In the embodiment of the present invention, when one of the VTEP devices in the distributed aggregation group receives the EVPN route synchronized by the DR neighbor device, if the VTEP device does not synchronize the EVPN route to the remote VTEP device, a link between the remote VTEP device and another VTEP device in the distributed aggregation group may fail, and the route synchronized by the another VTEP device is cancelled, so that the remote VTEP device cannot forward the related traffic flow through the link between itself and the one of the VTEP devices.

Meanwhile, it is considered that when multiple VTEP devices in the same distributed aggregation group synchronize EVPN routes for the same MAC address to the same remote VTEP device, the remote VTEP device usually selects an EVPN route to reserve, and generates and issues a forwarding table entry, and when a link between a VTEP device in the distributed aggregation group corresponding to the selected EVPN route and the remote VTEP device fails, the synchronized route of the VTEP device is cancelled, so that the remote VTEP device still cannot forward related traffic through links between itself and other VTEP devices in the distributed aggregation.

Therefore, in the embodiment of the present invention, a specific identifier (referred to as a preset identifier herein) may be preset, where the preset identifier is used to indicate that the route carrying the EVPN route is a non-first-time synchronized route for the same MAC address in the same distributed aggregation group; when the first VTEP device receives the EVPN route synchronized by the DR neighbor device, the EVPN route may carry the preset identifier, and synchronize the EVPN route carrying the preset identifier to the remote VTEP device.

The processing flow when the remote VTEP device receives the EVPN route carrying the preset identifier synchronized by the first VTEP device may refer to the related description in the method flow shown in fig. 4, and details of the embodiment of the present invention are not described herein.

It should be noted that, in the embodiment of the present invention, when receiving the EVPN route synchronized by the second VTEP device, the first VTEP device may carry the preset identifier therein according to the description of the method embodiment, and synchronize the preset identifier to the remote VTEP device, and may also generate and issue the corresponding forwarding table entry according to the processing manner of the existing flow, and the specific implementation of the forwarding table entry may refer to the related implementation in the existing MLAG networking, which is not described in detail in the embodiment of the present invention.

In one embodiment of the present invention, the preset identifier may be carried in a reserved field of a MAC extended community attribute of the EVPN route.

In this embodiment, the MAC extension community attribute of the EVPN route may be extended, and the reserved field of the MAC extension community attribute of the EVPN route carries the preset identifier.

For example, the high order bit of the reserved field of the MAC extended community attribute of the EVPN route may be set to 1, and is used as the preset identifier.

It should be noted that, in the embodiment of the present invention, the preset identifier may also be carried in a newly added field of the EVPN route, that is, the EVPN route is expanded, and a field for carrying the preset identifier is newly added therein, which is not described herein in detail.

Referring to fig. 4, a flowchart of a forwarding entry maintenance method according to an embodiment of the present invention is shown, where the forwarding entry maintenance method may be applied to an MLAG networking system running an EVPN protocol, where the MLAG networking system includes a plurality of VTEP devices forming a distributed aggregation group and a remote VTEP device respectively connected to the plurality of VTEP devices in the distributed aggregation, and as shown in fig. 4, the forwarding entry maintenance method may include:

it should be noted that, in the embodiment of the present invention, the execution subject of step 401 to step 402 may be a remote VTEP device in MLAG networking, such as a VTEP D in the MLAG networking shown in fig. 2, and for convenience of description, the execution subject of step 401 to step 402 is taken as a third VTEP device as an example to be described below.

Step 401, when receiving an EVPN route synchronized with VTEP equipment in a distributed aggregation group and the EVPN route carries a preset identifier, storing the EVPN route.

In the embodiment of the present invention, specific implementation of synchronizing the EVPN route carrying the preset identifier from the VTEP device in the distributed aggregation group to the remote VTEP device may refer to related description in the method flow shown in fig. 3, and no further description is given here in the embodiment of the present invention.

In the embodiment of the present invention, when the third VTEP device receives the EVPN route synchronized by the first VTEP device and determines that the EVPN route carries the preset identifier, the third VTEP device may determine that the EVPN route is a route, which is not synchronized for the first time, of the same distributed aggregation group and is for the same MAC address, and at this time, the third VTEP device may store the EVPN route in the storage unit, but refuse to generate and issue a forwarding entry according to the EVPN route.

Step 402, when the link between itself and the target VTEP device in the distributed aggregation group fails, maintaining a corresponding forwarding table entry according to the stored EVPN route carrying the preset identifier.

In this embodiment of the present invention, when a link between a third VTEP device and any VTEP device in the distributed aggregation group (referred to as a target VTEP device herein, taking the second VTEP device as an example) fails, the third VTEP device cancels an EVPN route (referred to as a first-type EVPN route hereinafter) that is previously synchronized by the second VTEP device, and at this time, the third VTEP device may query an EVPN route (referred to as a second-type EVPN route hereinafter) that carries the preset identifier and is stored by itself, and maintain a forwarding entry corresponding to the first-type EVPN route according to the second-type EVPN route corresponding to the first-type EVPN route (i.e., a forwarding entry that is generated and issued by the third VTEP device according to the first-type EVPN route), that is, regularly refreshes the forwarding entry corresponding to the first-type EVPN route according to the second-type EVPN route, so as to prevent the forwarding entry from being deleted.

In an embodiment of the present invention, the maintaining a corresponding forwarding table according to the stored EVPN route carrying the preset identifier includes:

and for any synchronous EVPN route of the target VTEP equipment, inquiring whether a target EVPN route which is aiming at the same MAC address and carries a preset identifier exists, and if so, maintaining a forwarding table entry corresponding to the EVPN route according to the target EVPN route.

In this embodiment, when a link between the third VTEP device and the second VTEP device fails, the third VTEP device may revoke an EVPN route (i.e., the first-type EVPN route) previously synchronized by the second VTEP device, at this time, for any first-type EVPN route, the third VTEP device may determine whether there is a corresponding second-type EVPN route (referred to as a target EVPN route herein), that is, an EVPN route having a same destination MAC address and a same next hop as those of the first-type EVPN route and carrying the preset identifier, and if there is an EVPN route, maintain a forwarding entry corresponding to the first-type EVPN route according to the target EVPN route.

In an implementation manner of this embodiment, the maintaining a forwarding entry corresponding to any EVPN route according to a target EVPN route includes:

and when the number of the target EVPN routes is multiple, selecting one target EVPN route according to a pre-strategy, and maintaining a forwarding table entry corresponding to any one EVPN route according to the target EVPN route.

In this embodiment, when the number of target EVPN routes is multiple, that is, when each VTEP device receives an EVPN route synchronized with a DR neighbor, and the EVPN routes each carry a preset identifier and are synchronized to a remote VTEP device, the third VTEP device may select one target EVPN route from the multiple target EVPN routes according to a preset policy, for example, the third VTEP device may randomly select one target EVPN route from the multiple target EVPN routes, or the third VTEP device may select a target EVPN route received first or last among the multiple target EVPN routes (in this case, the third VTEP device needs to record the time of receiving the second type EVPN route), and maintain a forwarding table corresponding to the first type EVPN route according to the target EVPN route.

It should be noted that, in this embodiment, for a certain first type EVPN route, if there is no second type EVPN route corresponding to the first type EVPN route, the third VTEP device may delete the forwarding entry corresponding to the first EVPN route.

It can be seen that, in the method flow shown in fig. 2 or fig. 3, when a VTEP device in a distributed aggregation group receives an EVPN route synchronized by a DR neighbor device, the EVPN route carries a preset identifier for indicating that the EVPN route is a route, which is not synchronized for the first time, of the distributed aggregation group and is for the same MAC address, and synchronizes the EVPN route carrying the preset identifier to a remote VTEP device, so that when a link between the remote VTEP device and a target VTEP device in the distributed aggregation group fails, the remote VTEP device may maintain a corresponding forwarding table according to the EVPN route carrying the preset identifier stored in the remote VTEP device, thereby avoiding interruption of related service traffic and improving networking reliability.

In order to enable those skilled in the art to better understand the technical solution provided by the embodiment of the present invention, the technical solution provided by the embodiment of the present invention is described below with reference to a specific application scenario.

Taking the MLAG networking shown in fig. 2 as an example, in the networking, VTEP B and VTEP C are two devices in a distributed aggregation group; CE A is a virtual machine and belongs to a distributed aggregation system; the actual IP addresses on the VTEP B and the VTEP C are 1.1.1.1 and 2.2.2.2, and the externally announced virtual IP address is 3.3.3.3, namely the virtual IP address is carried when the EVPN route is pushed outwards according to the ARP sent by the dual-homing virtual machine; the actual IP addresses of DR neighbor devices are recorded on the VTEP B and VTEP C respectively, the address recorded by the VTEP B is 2.2.2.2, and the address recorded by the VTEP C is 1.1.1.1.

Based on the application scenario described in fig. 2, the implementation flow of the forwarding table entry maintenance scheme provided in the embodiment of the present invention is as follows:

1. after CE a comes online, assume that VTEP B learns the MAC entry of CE a, furthermore, VTEP B informs the EVPN 2 type route with MAC address of A-A-A and next hop of 3.3.3.3 to the far-end VTEP D, VTEP D equipment generates and transmits a forwarding table after receiving the EVPN 2 type route, wherein, the IP address of CE A generates a forwarding table item on VTEP D, the output interface is VXLAN tunnel 0, the destination address of tunnel 0 of VXLAN tunnel is virtual IP address 3.3.3.3 of distributed aggregation system, the 3.3.3.3 route over the Underlay network forms an equivalence on VTEP D, when CE E is to forward traffic to CE a, can carry out hash on VTEP D, can take the hash to any equipment of VTEP B/VTEP C as the tail node of VXLAN tunnel to carry out forwarding of service, taking the example that VTEP D sends the traffic flow hash of CE E to CE A to VTEP B;

2. after learning the MAC table entry of CE A, VTEP B synchronizes the learned MAC table entry of CE A to VTEPC, wherein the carried synchronization information comprises MAC information, VXLAN ID information, DR port information and MAC extended group attribute carried by EVPN 2 type route; after receiving the synchronous MAC table entry of the VTEP B, the VTEP C equipment issues the MAC table entry to a distributed aggregation port AGG1 which is the same as the VTEP B;

3. after sending the MAC table item synchronized by the VTEP B to an AGG1 port by the VTEP C, sending a local EVPN MAC table item by the MAC address A-A-A of the CE A, simultaneously synchronizing the MAC table item to VTEP D equipment through an EVPN 2 type route, and setting the high bit of a reserved field of the MAC extended community attribute in the EVPN route to be 1, which indicates that the EVPN route is a route which is synchronized for the second time by the same distributed aggregation group aiming at the MAC address A-A-A;

4. when VTEP D detects the high order of the reserved field in the MAC extended community attribute as 1 after receiving VTEP C synchronous EVPN route, locally reserving the EVPN route; when a link between VTEP B and VTEP D fails, the route synchronized to VTEP D by VTEP B is cancelled, at this time, because there is still an EVPN route with high bit 1 of the reserved field in the MAC extended community attribute synchronized to VTEP D by VTEP C, the forwarding table item for MAC address A-A-A on VTEP D can not be deleted;

5. when CE E needs to forward the traffic to CE a, VTEP D may forward to VTEP C according to the forwarding table entry, that is, the traffic to CE a may still be forwarded when the link between VTEP B and VTEP D fails.

As can be seen from the above description, in the technical solution provided in the embodiment of the present invention, when receiving an EVPN route synchronized by a DR neighbor device, a VTEP device in a distributed aggregation group carries a preset identifier for indicating that the EVPN route is a route that is not synchronized for the first time in the distributed aggregation group and is for the same MAC address, and synchronizes the EVPN route carrying the preset identifier to a remote VTEP device, so that when a link between the remote VTEP device and a target VTEP device in the distributed aggregation group fails, the remote VTEP device may maintain a corresponding forwarding table entry according to the EVPN route carrying the preset identifier stored in the remote VTEP device, thereby avoiding interruption of related service traffic and improving networking reliability.

Referring to fig. 5, a schematic structural diagram of a forwarding table entry maintenance apparatus according to an embodiment of the present invention is provided, where the forwarding table entry maintenance apparatus may be applied to a third VTEP device in the foregoing method embodiment, and as shown in fig. 5, the forwarding table entry maintenance apparatus may include:

a receiving unit 510, configured to receive an EVPN route synchronized by a virtual extensible local area network tunnel endpoint VTEP device in a distributed aggregation group;

a storing unit 520, configured to store an EVPN route synchronized with VTEP equipment in a distributed aggregation group when the receiving unit 510 receives the EVPN route and the EVPN route carries a preset identifier; the preset identification is used for indicating that the EVPN route is a route which is not synchronized for the first time and aims at the same MAC address in the same distributed aggregation group;

a maintaining unit 530, configured to maintain, when a link with the target VTEP device in the distributed aggregation group fails, a corresponding forwarding table entry according to the stored EVPN route carrying the preset identifier.

In an optional embodiment, the maintaining unit 530 may be configured to query, for any EVPN route synchronized by the target VTEP device, whether a target EVPN route that is addressed to the same MAC address and carries the preset identifier exists, and if the target EVPN route exists, maintain a forwarding table entry corresponding to the any EVPN route according to the target EVPN route.

In an optional embodiment, the maintaining unit 530 is further configured to, when the number of the target EVPN routes is multiple, select one target EVPN route according to a pre-policy, and maintain a forwarding table entry corresponding to any one EVPN route according to the target EVPN route.

Referring to fig. 6, a schematic structural diagram of a forwarding table entry maintenance apparatus according to an embodiment of the present invention is provided, where the forwarding table entry maintenance apparatus may be applied to the first VTEP device in the foregoing method embodiment, and as shown in fig. 6, the forwarding table entry maintenance apparatus may include:

a receiving unit 610, configured to receive an EVPN route synchronized by a distributed aggregation DR neighbor device;

a sending unit 620, configured to carry a preset identifier in the EVPN route, and synchronize the EVPN route carrying the preset identifier to a remote virtual extensible local area network tunnel endpoint VTEP device; the preset identification is used for indicating that the EVPN route is a route which is not synchronized for the first time and aims at the same MAC address in the same distributed aggregation group.

In an optional embodiment, the preset identifier is carried in a reserved field of a MAC extended community attribute of the EVPN route.

The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.

For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the invention. One of ordinary skill in the art can understand and implement it without inventive effort.

As can be seen from the foregoing embodiments, when a VTEP device in a distributed aggregation group receives an EVPN route synchronized by a DR neighbor device, the EVPN route carries a preset identifier for indicating that the EVPN route is a route that is not synchronized for the first time in the distributed aggregation group and is for the same MAC address, and synchronizes the EVPN route carrying the preset identifier to a remote VTEP device, so that when a link between the remote VTEP device and a target VTEP device in the distributed aggregation group fails, the remote VTEP device may maintain a corresponding forwarding table according to the EVPN route carrying the preset identifier stored in the remote VTEP device, avoid interruption of related service traffic, and improve networking reliability.

Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.

It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (8)

1. A maintenance method for forwarding table entries is applied to a remote virtual extensible local area network (VTEP) device in a cross-device link aggregation group (MLAG) networking operating an Ethernet Virtual Private Network (EVPN) protocol, and is characterized by comprising the following steps:
when receiving an EVPN route synchronized with VTEP equipment in a distributed aggregation group, and the EVPN route carries a preset identifier, storing the EVPN route; the preset identification is used for indicating that the EVPN route is a route which is not synchronized for the first time and aims at the same MAC address in the same distributed aggregation group;
when the link between the distributed aggregation group and the target VTEP equipment in the distributed aggregation group fails, maintaining a corresponding forwarding table entry according to the stored EVPN route carrying the preset identifier; wherein, the maintaining of the corresponding forwarding table entry according to the stored EVPN route carrying the preset identifier includes:
and for any EVPN route synchronized by the target VTEP equipment, inquiring whether a target EVPN route which is directed at the same MAC address and carries the preset identifier exists, and if so, maintaining a forwarding table entry corresponding to the EVPN route according to the target EVPN route.
2. The method of claim 1, wherein maintaining forwarding entries corresponding to any EVPN route according to the target EVPN route comprises:
and when the number of the target EVPN routes is multiple, selecting one target EVPN route according to a pre-strategy, and maintaining a forwarding table entry corresponding to any one EVPN route according to the target EVPN route.
3. A forwarding table maintenance method is applied to any virtual extensible local area network (VTEP) equipment in a distributed aggregation group in a cross-equipment link aggregation group (MLAG) networking which runs an Ethernet Virtual Private Network (EVPN) protocol, and is characterized by comprising the following steps:
receiving an EVPN route synchronized by distributed aggregation DR neighbor equipment;
carrying a preset identifier in the EVPN route, and synchronizing the EVPN route carrying the preset identifier to a remote VTEP device; the preset identification is used for indicating that the EVPN route is a route which is not synchronized for the first time and aims at the same MAC address in the same distributed aggregation group.
4. The method of claim 3, wherein the preset identifier is carried in a reserved field of a MAC extended community attribute of the EVPN route.
5. A forwarding table maintenance device is applied to a remote virtual extensible local area network (VTEP) device in a cross-device link aggregation group (MLAG) networking operating Ethernet Virtual Private Network (EVPN) protocol, and is characterized by comprising the following steps:
a receiving unit, configured to receive an EVPN route synchronized by VTEP devices in a distributed aggregation group;
the storage unit is used for storing the EVPN route when the receiving unit receives the EVPN route synchronized with the VTEP equipment in the distributed aggregation group and the EVPN route carries a preset identifier; the preset identification is used for indicating that the EVPN route is a route which is not synchronized for the first time and aims at the same MAC address in the same distributed aggregation group;
a maintaining unit, configured to maintain, when a link between the forwarding table and the target VTEP device in the distributed aggregation group fails, a forwarding table entry corresponding to the EVPN route carrying the preset identifier according to the stored EVPN route;
the maintenance unit is configured to query, for any EVPN route synchronized by the target VTEP device, whether a target EVPN route carrying the preset identifier and targeting the same MAC address exists, and if so, maintain a forwarding table entry corresponding to the any EVPN route according to the target EVPN route.
6. The apparatus of claim 5,
and the maintenance unit is further configured to select a target EVPN route according to a pre-policy when the number of the target EVPN routes is multiple, and maintain a forwarding table entry corresponding to any EVPN route according to the target EVPN route.
7. A forwarding table maintenance device is applied to any virtual extensible local area network (VTEP) equipment in a distributed aggregation group in a cross-equipment link aggregation group (MLAG) networking which runs an Ethernet Virtual Private Network (EVPN) protocol, and is characterized by comprising the following steps:
the receiving unit is used for receiving the EVPN route synchronized by the distributed aggregation DR neighbor equipment;
a sending unit, configured to carry a preset identifier in the EVPN route, and synchronize the EVPN route carrying the preset identifier to a remote VTEP device; the preset identification is used for indicating that the EVPN route is a route which is not synchronized for the first time and aims at the same MAC address in the same distributed aggregation group.
8. The apparatus of claim 7, wherein the preset identifier is carried in a reserved field of a MAC extended community attribute of the EVPN route.
CN201711218902.2A 2017-11-28 2017-11-28 Forwarding table item maintenance method and device CN107733793B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711218902.2A CN107733793B (en) 2017-11-28 2017-11-28 Forwarding table item maintenance method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711218902.2A CN107733793B (en) 2017-11-28 2017-11-28 Forwarding table item maintenance method and device

Publications (2)

Publication Number Publication Date
CN107733793A CN107733793A (en) 2018-02-23
CN107733793B true CN107733793B (en) 2020-03-06

Family

ID=61219905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711218902.2A CN107733793B (en) 2017-11-28 2017-11-28 Forwarding table item maintenance method and device

Country Status (1)

Country Link
CN (1) CN107733793B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108494686A (en) * 2018-02-28 2018-09-04 新华三技术有限公司 Route processing method and device
CN108600099B (en) * 2018-04-19 2020-04-03 新华三技术有限公司 Message forwarding method and device and leaf equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878288A (en) * 2017-01-20 2017-06-20 新华三技术有限公司 A kind of message forwarding method and device
CN106878166A (en) * 2017-01-22 2017-06-20 新华三技术有限公司 Route advertising method and device
CN106878047A (en) * 2016-12-13 2017-06-20 新华三技术有限公司 Fault handling method and device
CN107342941A (en) * 2017-06-01 2017-11-10 杭州迪普科技股份有限公司 A kind of optimization method and device of VXLAN control planes

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10666500B2 (en) * 2016-03-30 2020-05-26 Juniper Networks, Inc. Failure handling for active-standby redundancy in EVPN data center interconnect

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878047A (en) * 2016-12-13 2017-06-20 新华三技术有限公司 Fault handling method and device
CN106878288A (en) * 2017-01-20 2017-06-20 新华三技术有限公司 A kind of message forwarding method and device
CN106878166A (en) * 2017-01-22 2017-06-20 新华三技术有限公司 Route advertising method and device
CN107342941A (en) * 2017-06-01 2017-11-10 杭州迪普科技股份有限公司 A kind of optimization method and device of VXLAN control planes

Also Published As

Publication number Publication date
CN107733793A (en) 2018-02-23

Similar Documents

Publication Publication Date Title
US9929911B1 (en) Automatic configuration of virtual network switches
US20190334762A1 (en) Recovering from virtual port channel peer failure
US9654300B2 (en) N-way virtual port channels using dynamic addressing and modified routing
CN105706400B (en) The method and apparatus of grouping are forwarded on network
US20180227969A1 (en) Wireless roaming using a distributed store
CN104243318B (en) MAC address learning method and device in VXLAN networks
US9197583B2 (en) Signaling of attachment circuit status and automatic discovery of inter-chassis communication peers
EP2910003B1 (en) Duplicate mac address detection
US9081603B2 (en) Packet forwarding optimization with virtual machine mobility by comparing device identifiers to determine VM movement
US9621508B2 (en) System and method for sharing VXLAN table information with a network controller
US9923781B2 (en) Designated forwarder (DF) election and re-election on provider edge (PE) failure in all-active redundancy topology
CN103139037B (en) For realizing the method and apparatus of VLAN flexibly
US9559962B2 (en) Optimizing traffic flows via dynamic routing protocol modifications when using server virtualization with dynamic routing
US10191758B2 (en) Directing data traffic between intra-server virtual machines
US9590902B2 (en) Signaling aliasing capability in data centers
US8694664B2 (en) Active-active multi-homing support for overlay transport protocol
JP2015519833A (en) Support for 802.1AQ over IETF VPN
US8902766B2 (en) Method and apparatus to improve LDP convergence using hierarchical label stacking
US20140198808A1 (en) Learning a mac address
JP4778062B2 (en) Provider Link State Bridging
US9660941B2 (en) Techniques for scalable and foolproof virtual machine move handling with virtual port channels
US20120224588A1 (en) Dynamic networking of virtual machines
ES2565827T3 (en) Layer 3 routing, device and virtual private network system control method
EP1753175B2 (en) A method for implementing virtual private network
US8855020B2 (en) Automatically maximizing network link utilization using virtual networks

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