CN108600072B - Designated forwarder DF election method and device - Google Patents

Designated forwarder DF election method and device Download PDF

Info

Publication number
CN108600072B
CN108600072B CN201810338936.3A CN201810338936A CN108600072B CN 108600072 B CN108600072 B CN 108600072B CN 201810338936 A CN201810338936 A CN 201810338936A CN 108600072 B CN108600072 B CN 108600072B
Authority
CN
China
Prior art keywords
vtep
port
target
route
esi
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
CN201810338936.3A
Other languages
Chinese (zh)
Other versions
CN108600072A (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 CN201810338936.3A priority Critical patent/CN108600072B/en
Publication of CN108600072A publication Critical patent/CN108600072A/en
Application granted granted Critical
Publication of CN108600072B publication Critical patent/CN108600072B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Small-Scale Networks (AREA)

Abstract

The application provides a designated forwarder DF election method and a designated forwarder DF election device, which can comprise the following steps: receiving a plurality of ES routes carrying a first ESI; after determining that the equipment has the DF participation qualification, determining a target VTEP with the DF participation qualification in an opposite end VTEP sending each ES route according to the configuration state of an AC port carried by each ES route; and selecting the VTEP as the DF from the equipment and the target VTEP according to a preset DF election rule. By using the method provided by the application, the interruption of the service flow can be prevented.

Description

Designated forwarder DF election method and device
Technical Field
The application relates to the field of computer communication, in particular to a designated forwarder DF election method and device.
Background
In an EVPN (Ethernet Virtual Private Network), in order to improve the bandwidth utilization of links and enhance the Network reliability, a host (or a virtualized Virtual machine) of a user or a Private Network of the user is usually connected to multiple VTEP (VXLAN Tunnel End Point) devices in the EVPN Network through multiple links, which is called multi-homing access. EVPN multi-homing introduces the following concept:
ES (Ethernet Segment): if a host accesses different VTEP devices simultaneously through multiple links, the multiple links are called ES.
ESI (Ethernet Segment Identifier): the value used to identify an ES is called ESI.
DF (Designated Forwarder), Designated Forwarder: in order to solve the problems of loop and duplication of the BUM (Broadcast & Unknown unicast & Multicast) traffic, corresponding to the situation that a virtual machine accesses different VTEP devices, a DF device can be selected from access points with the same ESI value on a plurality of VTEP devices, and the DF device forwards the BUM traffic to the user host.
When a multihoming system elects DF, VTEP electing DF is not provided with an AC port corresponding to ESI of the multihoming system. When the DF receives the service traffic with the AC port, the DF cannot forward the service traffic, resulting in interruption of the service traffic.
Disclosure of Invention
In view of the above, the present application provides a method and an apparatus for selecting a designated forwarder DF.
Specifically, the method is realized through the following technical scheme:
according to a first aspect of the present application, there is provided a DF election method, the method being applied to VTEP, the method comprising:
receiving a plurality of ES routes carrying a first ESI;
after determining that the equipment has the DF participation qualification, determining a target VTEP with the DF participation qualification in an opposite end VTEP sending each ES route according to the configuration state of an AC port carried by each ES route; the configuration state of the AC port carried by the ES route represents the configuration state of the AC port which is on the VTEP of the opposite end sending the ES route and has ESI being the first ESI;
and selecting the VTEP as the DF from the equipment and the target VTEP according to a preset DF election rule.
Optionally, the determining that the present device qualifies for DF participation includes:
checking whether a target local AC port exists locally; the ESI of the target local AC port is the first ESI;
and if so, determining that the equipment has DF participation qualification.
Optionally, the AC port configuration state includes VXLAN ID and S-VID associated with the AC port;
determining a target VTEP with DF participation qualification in an opposite-end VTEP sending each ES route according to the configuration state of an AC port carried by each ES route, which comprises the following steps:
selecting a target ES route from a plurality of ES routes; the S-VID and VXLAN ID carried by the target ES route are matched with the S-VID and VXLAN ID associated with the local AC port;
and determining the opposite end VTEP sending the target ES route as the target VTEP with the DF participation qualification.
Optionally, the method further includes:
and if the target local AC port is not stored locally, determining that the equipment does not have the DF participation qualification, and not performing DF election locally.
Optionally, the method further includes:
after configuring a corresponding AC port for a second ESI on a local user port, sending ES routes to all neighbor VTEPs; and the sent ES route carries the second ESI, and VXLAN ID and S-VID associated with the configured AC port.
Optionally, the preset DF election rule includes:
sequencing the VTEP and the target VTEP;
taking the value of the S-VID associated with the target local AC port as a dividend, taking the total number of the VTEP and the target VTEP as a divisor, and performing division operation to obtain a remainder after the division operation;
and in the sorted current VTEP and the target VTEP, the VTEP with the sequence number of the remainder is used as DF.
According to a second aspect of the present application, there is provided a DF election device, the device being applied to a VTEP, the device comprising:
the receiving unit is used for receiving a plurality of ES routes carrying the first ESI;
the determining unit is used for determining a target VTEP with the DF participation qualification in the opposite end VTEP which sends each ES route according to the AC port configuration state carried by each ES route after determining that the equipment has the DF participation qualification; the configuration state of the AC port carried by the ES route represents the configuration state of the AC port which is on the VTEP of the opposite end sending the ES route and has ESI being the first ESI;
and the election unit is used for selecting the VTEP serving as the DF from the equipment and the target VTEP according to a preset DF election rule.
Optionally, the determining unit is specifically configured to check whether a target local AC port exists locally when determining that the device has the DF participation qualification; the ESI of the target local AC port is the first ESI; and if so, determining that the equipment has DF participation qualification.
Optionally, the AC port configuration state includes VXLAN ID and S-VID associated with the AC port;
the determining unit, when determining a target VTEP with DF participation qualification in an opposite VTEP sending each ES route according to an AC port configuration state carried by each ES route, is specifically configured to determine the target VTEP with DF participation qualification in the opposite VTEP sending each ES route according to the AC port configuration state carried by each ES route, and includes: selecting a target ES route from a plurality of ES routes; the S-VID and VXLAN ID carried by the target ES route are matched with the S-VID and VXLAN ID associated with the local AC port; and determining the opposite end VTEP sending the target ES route as the target VTEP with the DF participation qualification.
Optionally, the determining unit is further configured to determine that the device does not have the DF participation qualification if the target local AC port is not stored locally, and does not perform DF election locally.
Optionally, the apparatus further includes a sending unit, configured to send ES routes to all neighbor VTEPs after configuring a corresponding AC port for a second ESI on the local user port; and the sent ES route carries the second ESI, and VXLAN ID and S-VID associated with the configured AC port.
Optionally, the election unit is specifically configured to rank the VTEP and the target VTEP; taking the value of the S-VID associated with the target local AC port as a dividend, taking the total number of the VTEP and the target VTEP as a divisor, and performing division operation to obtain a remainder after the division operation; and in the sorted current VTEP and the target VTEP, the VTEP with the sequence number of the remainder is used as DF.
In the application, the VTEP can know whether an AC port is configured on the VTEP of the opposite end sending the ES route and the configuration of the AC port according to the configuration state of the AC port carried in the ES route, so as to determine whether the VTEP of the opposite end has the DF participation qualification. Since the AC ports are disposed in all VTEPs qualified as DF candidates, the AC port is also disposed in the DF. Therefore, after receiving the BUM traffic sent by the remote VTEP, the DF can forward the BUM traffic to the VM through the AC port, and the problem of traffic interruption caused by the fact that the elected DF is not configured with the AC port corresponding to the traffic is avoided.
Drawings
Fig. 1 is a schematic diagram of an EVPN multihoming networking shown in an exemplary embodiment of the present application;
FIG. 2 is a flow chart of a DF election method, shown in an exemplary embodiment of the present application;
FIG. 3 is a schematic diagram of a DF election method, shown in an exemplary embodiment of the present application;
FIG. 4 is a diagram of the hardware architecture of a VTEP where the DF election device is located according to the present application;
fig. 5 is a block diagram of a DF election device according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Fig. 1 shows an EVPN multihoming network. In fig. 1, VM1 has multi-homing access to VTEP1, VTEP2, and VTEP 3. Generally, in order to make the BUM traffic free from the problems of loops and duplication, it is necessary to select DF devices among VTEP1, VTEP2 and VTEP 3.
Specifically, after VTEP1 is configured with the multihoming access function, VTEP1 may send ES routes to neighboring VTEPs (e.g., VTEP2, VTEP 3). Similarly, VTEP2, VTEP3 may also send ES routes to neighboring devices.
When VTEP1 receives ES routes sent by VTEP2 and VTEP3, it finds that VTEP1, VTEP2 and VTEP3 belong to the same multi-homing system, and then DF elections can be performed in VTEP1, VTEP2 and VTEP 3. Similarly, VTEP2 and VTEP3 also use the same DF election rule to select DF devices among the three VTEPs.
The DF selected by VTEP1, VTEP2, and VTEP3 is assumed to be VTEP2, but an AC (access Circuit) port connected to the subscriber host is not provided in VTEP 2. When VTEP2 receives the BUM traffic sent by VTEP4, VTEP2 cannot forward the BUM traffic because the AC port connected to the subscriber host is not configured.
Referring to fig. 2, fig. 2 is a flow chart illustrating a DF election method, which may be applied to a VTEP, according to an exemplary embodiment of the present application, and may include the following steps.
Step 201: receiving a plurality of ES routes carrying a first ESI;
ESI is carried in ES route, when VTEP receives a large number of ES routes, VTEP can confirm a plurality of ES routes carrying the same ESI according to ESI carried in ES route. For convenience of description, ESI carried in a plurality of ES routes carrying the same ESI is referred to as first ESI.
Step 202: after determining that the equipment has the DF participation qualification, determining a target VTEP with the DF participation qualification in an opposite end VTEP sending each ES route according to the configuration state of an AC port carried by each ES route; and the AC port configuration state carried by the ES route represents the configuration state of the AC port which is on the VTEP of the opposite end sending the ES route and has the ESI of the first ESI.
In the embodiment of the application, an AC port configuration extended community attribute is added to the ES route, and the AC port configuration extended community attribute records an AC port configuration state.
The AC port configuration state may be represented by VXLAN ID (VXLAN Identification) and S-VID (Service Virtual Local Area Network Identification, VLAN Identification).
It should be noted that the two fields VXLAN ID and S-VID indicate whether an AC port is present, and the AC port configuration status when an AC port is present.
For example, assuming that the peer VTEP11 is configured with an AC port of the first ESI, which associates VXLAN10 and S-VID10, VTEP11 configures the VXLAN ID field in the extended community attribute to 10 and the S-VID field to 10 at the AC port in the ES route sent to the present VTEP.
For another example, if VTEP11 has the first ESI allocated to a physical port and VXLAN10 associated with the physical port but has no corresponding AC port allocated to VXLAN10, VTEP11 allocates the VXLAN ID field in the extended community attribute to the AC port in the ES route to be transmitted to the VTEP to 10 and the S-VID field to 0.
S-VID set to 0 indicates that no AC port is assigned for VXLAN10, in other words, no access port is assigned to VXLAN10 for its corresponding VLAN.
After introducing the concept of the AC port configuration status, step 202 is described in detail below.
1) The VTEP determines whether the device qualifies for DF participation.
In implementation, the VTEP may check whether a target local AC port exists locally, the target local AC port having the same ESI as the first ESI carried in the plurality of ES routes.
If the target local AC port exists locally, the VTEP determines that the equipment has DF participation qualification.
If the target local AC port does not exist locally, the VTEP determines that the equipment does not have the DF participation qualification. At this point, VTEP does not perform DF election.
2) And when the VTEP determines that the equipment has the DF participation qualification, determining a target VTEP with the DF participation qualification in the VTEP of the opposite end sending each ES route according to the AC port configuration state carried by each ES route.
In implementation, the VTEP may select the target ES route among the plurality of ES routes when the target local AC port exists. The VXLAN ID and S-VID carried by the selected ES route are the same as the VXLAN ID and S-VID associated with the destination local AC port.
The device may then determine the peer VTEP that sent the target ES route as the target VTEP eligible for DF participation.
Step 203: and selecting the VTEP as the DF from the equipment and the target VTEP according to a preset DF election rule.
When implemented, VTEP may select VTEP as DF in the present device and the above-mentioned target VTEP.
The preset DF election rule may be as follows:
the VTEP may rank the present VTEP and the target VTEP. After sorting, the VTEP and the target VTEP are both corresponding to the corresponding sequence numbers.
Then, the VTEP may perform division operation by using the value of the S-VID associated with the target local AC port as a dividend and using the total number of the VTEP and the target VTEP as a divisor to obtain a remainder after the division operation. Finally, the VTEP may take the VTEP with the remainder as the DF, of the sorted present VTEP and the target VTEP.
In the embodiment of the application, after configuring the corresponding AC port for the second ESI on the local user port, sending ES routes to all neighbor VTEPs to trigger the neighbor VTEPs to re-perform DF elections; and the sent ES route carries the second ESI, and VXLAN ID and S-VID associated with the configured AC port.
From the above description, since the VTEP can know whether the opposite VTEP sending the ES route is configured with an AC port and the AC port configuration according to the AC port configuration state carried in the ES route, it is determined whether the opposite VTEP has the DF participation qualification. Since the AC ports are disposed in all VTEPs qualified as DF candidates, the AC port is also disposed in the DF. Therefore, after receiving the BUM traffic sent by the remote VTEP, the DF can forward the BUM traffic to the VM through the AC port, and the problem of traffic interruption caused by the fact that the elected DF is not configured with the AC port corresponding to the traffic is avoided.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating a DF election method according to an exemplary embodiment of the present application.
In fig. 3, VM31 has multi-homing access to VTEP31, VTEP32, and VTEP 33.
Regarding the configuration of VTEP 31:
the IP address of VTEP31 is 1.1.1.1.
An AC port AC1 is provided to a physical port ten1/0/1 of VTEP 31.
Assume that AC1 is established on physical port ten1/0/1, associating S-VID10 with VSI vpnb.
The ESI of AC1 is 1.
VSI vpnb corresponds to VXLAN 10.
The significance of this AC1 is: if the data message entering from the physical port ten1/0/1 carries the VLAN TAG 10, the data message will enter the VSI vpnb for forwarding. The AC1 is attributed to a multi-homed system with ESI of 1.
As can be seen from the above configuration, AC1 is associated with VXLAN10 and AC1 is associated with S-VID 10.
Regarding the configuration of VTEP 33:
the IP address of VTEP33 is 3.3.3.3.
An AC port AC3 is provided to a physical port ten3/0/1 of VTEP 33.
Assume that AC3 is established on physical port ten3/0/1, associating S-VID10 with VSI vpnb.
The ESI of AC3 is 1.
VSI vpnb corresponds to VXLAN 10.
The significance of this AC1 is: if the data message entering from the physical port ten3/0/1 carries the VLAN TAG 10, the data message will enter the VSI vpnb for forwarding. In addition, the AC3 is attributed to a multi-homed system with ESI of 1.
As can be seen from the above configuration, AC3 is associated with VXLAN10 and AC3 is associated with S-VID 10.
Regarding the configuration of VTEP 32:
the IP address of VTEP32 is 2.2.2.2;
assume that a physical port ten2/0/1 is associated with a VSI vpnb, and that ESI configured on that physical port is 1, and that there is no AC port on that physical port that configures ESI to be 1.
VSI vpnb corresponds to VXLAN 10.
When the ESI is configured for AC1 of VTEP31, VTEP31 may send the ES route (denoted as ES route 1) to all neighbor VTEPs (e.g., VTEP32, VTEP33, VTEP 34). The ES route 1 carries AC port configuration state of AC1, such as VXLAN10 associated with AC1 and S-VID10 associated with AC 1. In addition, the ES route carries the ESI (e.g. 1) corresponding to AC 1.
When configuring ESI for AC3 of VTEP33, VTEP31 may send an ES route (denoted as ES route 3) to all neighboring VTEPs (e.g., VTEP31, VTEP32, VTEP34), where the ES route 3 carries AC port configuration state of AC3, e.g., carrying VXLAN10 associated with AC3 and S-VID10 associated with AC 3. In addition, the ES route carries the ESI (e.g. 1) corresponding to AC 1.
When the ESI is configured for physical port 2/0/1 of VTEP32, VTEP32 may send the ES route (denoted as ES route 2) to all neighbor VTEPs (e.g., VTEP31, VTEP 33). Since no AC port is configured for VXLAN10 to associate with, the AC port configuration state carried in ES route 2 may indicate that no AC port is configured for VXLAN10 to associate with, e.g., VXLAN ID carried in ES route 3 is VXLAN10 and S-VID carried is S-VID 0. In addition, the ES route 3 carries the ESI (e.g., 1) corresponding to the AC 1.
When VTEP31 receives ES route 2 and ES route 3, and the ESIs carried in ES route 2 and ES route 3 are the same, VTEP31 determines that VTEP32 and VTEP33 belong to the same multihoming system.
At this point, VTEP31 may check if there is a local AC port locally that is configured with the same ESI as that carried in ES route 2 and ES route 3 (e.g., ESI of 1). If such a local AC port exists, VTEP31 may determine that the current VTEP qualifies for DF election and may perform DF elections.
If the local AC port does not exist locally, the VTEP is determined not to have the DF participation qualification, and DF election is not carried out locally.
In this example, since VTEP31 has a local AC port with ESI of 1, i.e., AC1, VTEP31 qualifies as DF election, and VTEP31 may perform the following election operations.
With respect to the received ES route 2 and ES route 3, VTEP31 may obtain the VXLAN ID, S-VID, source IP address, ESI carried by the two ES routes.
For ES route 2, VTEP31 may check whether the VXLAN ID (i.e., VXLAN 10) and S-VID (S-VID 0) carried in ES route 2 are the same as the VXLAN ID (i.e., VXLAN 10) and S-VID (S-VID 10) associated with AC 1.
In this example, the VXLAN ID and S-VID carried by ES route 2 are not the same as the VXLAN ID and S-VID associated with AC1, then it is determined that the VTEP indicated by the source IP address of ES route 2 (i.e., VTEP32) does not qualify for DF participation.
For ES route 3, VTEP31 may check whether the VXLAN ID (i.e., VXLAN 10) and S-VID (S-VID 10) carried in ES route 3 are the same as the VXLAN ID (i.e., VXLAN 10) and S-VID (S-VID 10) associated with AC 1.
In this example, the VXLAN ID and S-VID carried by ES route 3 are the same as the VXLAN ID and S-VID associated with AC1, and VTEP31 determines that the VTEP indicated by the source IP address of ES route 3 (i.e., VTEP33) qualifies for DF participation.
VTEP31 may then generate a list of DF elections, as shown in table 1.
ESI VXLAN ID S-VID VTEP IP to be elected Whether or not to have qualification for participation
1 10 10 1.1.1.1 Is that
1 10 0 2.2.2.2 Whether or not
1 10 10 3.3.3.3 Is that
TABLE 1
Then, VTEP31 elects according to preset DF election rules in VTEP31 and VTEP33 qualified as DF elections through the above list.
For example, VTEP31 may first sort VTEP31 and VTEP 33. It is assumed that VTEP31 has sequence number 0 and VTEP33 has sequence number 1 after VTEP31 and VTEP33 are sorted.
VTEP31 may also count the number of VTEPs qualified for DF participation, which in this example is 2.
The VTEP31 may then divide the value of the S-VID associated with AC1 (i.e., 10) as the dividend by the statistical number of VTEPs with DF participation (i.e., 2) as the divisor to obtain the remainder after the division (i.e., 0 which is the remainder of dividing 10 by 2).
VTEP31 may select VTEP31 with sequence number 0 as DF.
When VTEP33 receives ES route 1 sent by VTEP31 and ES route 2 sent by VTEP32, VTEP33 may perform the election operation performed by VTEP31 as described above since there is AC3 on VTEP33 and the ESI of AC3 is the same as the ESI carried in ES route 1 and ES route 2, and thus the details are not described here.
When VTEP32 receives ES route 1 sent by VTEP31 and ES route 3 sent by VTEP33, since ESI of any AC port on VTEP32 is different from ESI carried in ES route 1 and ES route 3, VTEP32 is determined not to have election qualification, and VTEP32 does not perform DF election locally.
When VTEP34 receives ES route 1 sent by VTEP31, ES route 2 sent by VTEP32, and ES route 3 sent by VTEP33, since ESI of any AC port on VTEP34 is different from ESI carried in ES route 1, ES route 2, and ES route 3, it is determined that VTEP34 does not qualify for election, and VTEP34 does not perform DF election locally.
In an embodiment of the present application, VTEP32 may send ES routes (herein denoted as ES routes 4) to neighboring VTEPs (e.g., VTEP31, VTEP33, and VTEP34) after configuring an AC port (herein denoted as AC2) for ESI (i.e., 1) configured on ten2/0/1 on VTEP 32. The ES route 4 carries the VXLAN ID and S-VID associated with AC2, and the ESI of AC 2.
After receiving the ES route 4, the neighbor VTEP may re-perform the election, which is not described herein again.
As can be seen from the above description, VTEP31 can know whether AC ports are configured on VTEPs 31 and VTEP33 and the configuration of AC ports according to the configuration state of AC ports carried in ES route 2 and ES route 3, so as to determine whether VTEP32 and VTEP33 qualify as DF candidates.
Since there is no AC port on VTEP32 configured with ESI of 1, VTEP32 does not qualify as a candidate. VTEP32 will not be elected as DF.
Since both VTEP31 and VTEP33 that qualify as DF candidates have an AC port with ESI of 1, an AC port with ESI of 1 is surely arranged on DF. Therefore, when receiving the BUM traffic sent by the remote VTEP34, the DF can forward the BUM traffic to the VM31 through the AC port on the DF, so that the problem of service flow interruption caused by the fact that the VTEP44 is not configured with an AC port but is selected as the DF does not occur.
Referring to fig. 4, the present application further provides a hardware architecture diagram of a VTEP for preventing a traffic interruption device, where the VTEP apparatus includes: a communication interface 401, a processor 402, a memory 403, and a bus 404; wherein, the communication interface 401, the processor 402 and the memory 403 complete the communication with each other through the bus 404.
Wherein the processor 402 may be a CPU, the memory 403 may be a non-volatile memory (non-volatile memory), and the memory 403 stores therein a logic instruction for DF election, and the processor 402 may execute the logic instruction for preventing the service flow from being interrupted, which is stored in the memory 403, to implement the function of DF election.
Up to this point, the description of the hardware configuration shown in fig. 4 is completed.
Fig. 5 is a block diagram of a DF election device according to an exemplary embodiment of the present application. The device can be applied to VTEP and can comprise the following units.
A receiving unit 501, configured to receive multiple ES routes carrying a first ESI;
a determining unit 502, configured to determine, after determining that the device has the DF participation qualification, a target VTEP having the DF participation qualification in the VTEP of the opposite end sending each ES route according to the AC port configuration state carried by each ES route; the configuration state of the AC port carried by the ES route represents the configuration state of the AC port which is on the VTEP of the opposite end sending the ES route and has ESI being the first ESI;
an election unit 503, configured to select a VTEP serving as a DF from the apparatus and the target VTEP according to a preset DF election rule.
Optionally, the determining unit 502 is specifically configured to check whether a target local AC port exists locally when determining that the device has a DF participation qualification; the ESI of the target local AC port is the first ESI; and if so, determining that the equipment has DF participation qualification.
Optionally, the AC port configuration state includes VXLAN ID and S-VID associated with the AC port;
the determining unit 502, when determining the target VTEP with DF participation qualification in the VTEP of the opposite end sending each ES route according to the AC port configuration state carried by each ES route, is specifically configured to determine the target VTEP with DF participation qualification in the VTEP of the opposite end sending each ES route according to the AC port configuration state carried by each ES route, and includes: selecting a target ES route from a plurality of ES routes; the S-VID and VXLAN ID carried by the target ES route are matched with the S-VID and VXLAN ID associated with the local AC port; and determining the opposite end VTEP sending the target ES route as the target VTEP with the DF participation qualification.
Optionally, the determining unit 502 is further configured to determine that the device does not have the DF participation qualification if the target local AC port is not stored locally, and does not perform DF election locally.
Optionally, the apparatus further includes a sending unit 504 (not shown in fig. 5) configured to send ES routes to all neighbor VTEPs after configuring a corresponding AC port for the second ESI on the local user port; and the sent ES route carries the second ESI, and VXLAN ID and S-VID associated with the configured AC port.
Optionally, the election unit 503 is specifically configured to rank the present VTEP and the target VTEP; taking the value of the S-VID associated with the target local AC port as a dividend, taking the total number of the VTEP and the target VTEP as a divisor, and performing division operation to obtain a remainder after the division operation; and in the sorted current VTEP and the target VTEP, the VTEP with the sequence number of the remainder is used as DF.
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 application. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (12)

1. A designated forwarder DF election method is applied to an extensible virtual local area network tunnel endpoint (VTEP), and comprises the following steps:
receiving a plurality of Ethernet segment ES routes carrying first Ethernet segment identifiers ESI;
after determining that the equipment has the DF participation qualification, determining a target VTEP with the DF participation qualification in an opposite end VTEP sending each ES route according to the configuration state of an AC port of an access circuit carried by each ES route;
selecting a VTEP serving as DF from the equipment and the target VTEP according to a preset DF election rule;
the configuration state of the AC port carried by the ES route represents the configuration state of the AC port which is on the VTEP of the opposite end sending the ES route and has ESI being the first ESI;
wherein, the VTEP with DF participation qualification is provided with an AC port corresponding to the first ESI.
2. The method of claim 1, wherein said determining that the present device qualifies for DF participation comprises:
checking whether a target local AC port exists locally; the ESI of the target local AC port is the first ESI;
and if so, determining that the equipment has DF participation qualification.
3. The method of claim 2, wherein the AC port configuration state comprises an AC port associated extensible virtual local area network identification VXLAN ID and a service virtual local area network identification S-VID;
determining a target VTEP with DF participation qualification in an opposite-end VTEP sending each ES route according to the configuration state of an AC port carried by each ES route, which comprises the following steps:
selecting a target ES route from a plurality of ES routes; the S-VID and VXLAN ID carried by the target ES route are matched with the S-VID and VXLAN ID associated with the target local AC port;
and determining the opposite end VTEP sending the target ES route as the target VTEP with the DF participation qualification.
4. The method of claim 2, further comprising:
and if the target local AC port is not stored locally, determining that the equipment does not have the DF participation qualification, and not performing DF election locally.
5. The method of claim 1, further comprising:
after configuring a corresponding AC port for a second ESI on a local user port, sending ES routes to all neighbor VTEPs; and the sent ES route carries the second ESI, and an extensible virtual local area network identifier VXLAN ID and a service virtual local area network identifier S-VID associated with the configured AC port.
6. The method of claim 1, wherein the preset DF election rules comprise:
sequencing the VTEP and the target VTEP;
taking the value of the service virtual local area network identification S-VID associated with the target local AC port as a dividend, taking the total number of the VTEP and the target VTEP as a divisor, and performing division operation to obtain a remainder after the division operation;
and in the sorted current VTEP and the target VTEP, the VTEP with the sequence number of the remainder is used as DF.
7. An apparatus for designated forwarder DF election, the apparatus being adapted to be used in an extensible virtual local area network tunnel endpoint, VTEP, the apparatus comprising:
the device comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a plurality of Ethernet segment ES routes carrying first Ethernet segment identifiers ESI;
the determining unit is used for determining a target VTEP with the DF participation qualification in the opposite end VTEP which sends each ES route according to the configuration state of an AC port of an access circuit carried by each ES route after determining that the equipment has the DF participation qualification; the configuration state of the AC port carried by the ES route represents the configuration state of the AC port which is on the VTEP of the opposite end sending the ES route and has ESI being the first ESI;
an election unit, configured to select, according to a preset DF election rule, a VTEP serving as a DF from the device and the target VTEP;
wherein, the VTEP with DF participation qualification is provided with an AC port corresponding to the first ESI.
8. The apparatus according to claim 7, wherein the determining unit, when determining that the present device qualifies for DF participation, is specifically configured to check whether a target local AC port is present locally; the ESI of the target local AC port is the first ESI; and if so, determining that the equipment has DF participation qualification.
9. The apparatus of claim 7, wherein the AC port configuration state comprises an AC port associated extensible virtual local area network identification VXLAN ID and a service virtual local area network identification S-VID;
the determining unit, when determining a target VTEP with DF participation qualification in an opposite VTEP sending each ES route according to an AC port configuration state carried by each ES route, is specifically configured to determine the target VTEP with DF participation qualification in the opposite VTEP sending each ES route according to the AC port configuration state carried by each ES route, and includes: selecting a target ES route from a plurality of ES routes; the S-VID and VXLAN ID carried by the target ES route are matched with the S-VID and VXLAN ID associated with the target local AC port; and determining the opposite end VTEP sending the target ES route as the target VTEP with the DF participation qualification.
10. The apparatus of claim 8, wherein the means for determining is further configured to determine that the device does not qualify for DF elections and does not perform DF elections locally if the target local AC port is not locally stored.
11. The apparatus according to claim 7, further comprising a sending unit, configured to send ES routes to all neighbor VTEPs after configuring a corresponding AC port for the second ESI on the local user port; and the sent ES route carries the second ESI, and an extensible virtual local area network identifier VXLAN ID and a service virtual local area network identifier S-VID associated with the configured AC port.
12. The apparatus according to claim 7, wherein the election unit is specifically configured to rank a present VTEP and the target VTEP; taking the value of the service virtual local area network identification S-VID associated with the target local AC port as a dividend, taking the total number of the VTEP and the target VTEP as a divisor, and performing division operation to obtain a remainder after the division operation; and in the sorted current VTEP and the target VTEP, the VTEP with the sequence number of the remainder is used as DF.
CN201810338936.3A 2018-04-16 2018-04-16 Designated forwarder DF election method and device Active CN108600072B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810338936.3A CN108600072B (en) 2018-04-16 2018-04-16 Designated forwarder DF election method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810338936.3A CN108600072B (en) 2018-04-16 2018-04-16 Designated forwarder DF election method and device

Publications (2)

Publication Number Publication Date
CN108600072A CN108600072A (en) 2018-09-28
CN108600072B true CN108600072B (en) 2020-12-29

Family

ID=63622712

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810338936.3A Active CN108600072B (en) 2018-04-16 2018-04-16 Designated forwarder DF election method and device

Country Status (1)

Country Link
CN (1) CN108600072B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113098768B (en) * 2019-12-23 2023-05-12 华为技术有限公司 Equipment management method and related device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752183A (en) * 2012-07-19 2012-10-24 杭州华三通信技术有限公司 rapid convergence method and device for access network
CN103825836A (en) * 2013-12-20 2014-05-28 杭州华三通信技术有限公司 Method and apparatus for determining appointed VLAN-x forwarder (AVF)
CN106713005A (en) * 2015-11-12 2017-05-24 瞻博网络公司 Static Designated Forwarder (DF) election based on DF election process

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9735983B1 (en) * 2014-09-29 2017-08-15 Juniper Networks, Inc. Adaptive load balancing for single active redundancy using EVPN designated forwarder election
US9923781B2 (en) * 2015-11-18 2018-03-20 Telefonaktiebolaget Lm Ericsson (Publ) Designated forwarder (DF) election and re-election on provider edge (PE) failure in all-active redundancy topology

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752183A (en) * 2012-07-19 2012-10-24 杭州华三通信技术有限公司 rapid convergence method and device for access network
CN103825836A (en) * 2013-12-20 2014-05-28 杭州华三通信技术有限公司 Method and apparatus for determining appointed VLAN-x forwarder (AVF)
CN106713005A (en) * 2015-11-12 2017-05-24 瞻博网络公司 Static Designated Forwarder (DF) election based on DF election process

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
AC-Influenced Designated Forwarder Election for EVPN;Nokia,Ericsson,Juniper Networks;《BESS Workgroup Internet Draft》;20171013;全文 *
基于BGP协议的EVPN实现与研究;陈烨;《中国优秀硕士学位论文全文数据库 信息科技辑》;20180215;全文 *

Also Published As

Publication number Publication date
CN108600072A (en) 2018-09-28

Similar Documents

Publication Publication Date Title
CN109698788B (en) Flow forwarding method and device and computer readable medium
CN106878048B (en) Fault processing method and device
US8989188B2 (en) Preventing leaks among private virtual local area network ports due to configuration changes in a headless mode
CN101433029B (en) Methods and systems for selective layer 2 port blocking using layer 2 source addresses
CN101938370B (en) Redundant pseudowires for border gateway patrol-based virtual private local area network service multi-homing environments
US20120294192A1 (en) Method and apparatus of connectivity discovery between network switch and server based on vlan identifiers
CN106559324A (en) A kind of method E-Packeted based on equal cost multipath and the network equipment
CN104506408A (en) Data transmission method and device based on SDN
CN106998302A (en) The distribution method and device of a kind of service traffics
CN105991444B (en) The method and apparatus of business processing
EP3028413A1 (en) System and method for supporting multi-homed fat-tree routing in a middleware machine environment
CN106921578B (en) Method and device for generating forwarding table item
CN109412949B (en) Data message transmission method and device
CN108306806B (en) Message forwarding method and device
CN107493222B (en) VXLAN message forwarding method and device
EP3534577B1 (en) Forwarding multicast packets through an extended bridge
CN108259346A (en) A kind of equivalent route item establishing method and device
CN108494701B (en) Load sharing method and device
WO2017048841A1 (en) Systems and methods for processing packets in a computer network
CN108199947B (en) Designated forwarder DF election method and device
CN114143257A (en) Method for generating table entry, method, device and system for sending message
CN107517129B (en) Method and device for configuring uplink interface of equipment based on OpenStack
CN109768909B (en) Message forwarding method and device
CN108600072B (en) Designated forwarder DF election method and device
US10374899B2 (en) Method and device for reporting OpenFLow switch capability

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