CN108199947B - Designated forwarder DF election method and device - Google Patents
Designated forwarder DF election method and device Download PDFInfo
- Publication number
- CN108199947B CN108199947B CN201810096635.4A CN201810096635A CN108199947B CN 108199947 B CN108199947 B CN 108199947B CN 201810096635 A CN201810096635 A CN 201810096635A CN 108199947 B CN108199947 B CN 108199947B
- Authority
- CN
- China
- Prior art keywords
- elected
- items
- host
- vxlan
- service
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/30—Routing of multiclass traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/38—Flow based routing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The utility model relates to a designated forwarder DF election method and a device, which are applied to VTEP equipment and comprise receiving ES routes and obtaining extensible virtual local area network identifiers VXLAN ID, Ethernet segment identifiers ESI and host identifiers corresponding to the ES routes; acquiring VXLAN ID and ESI of a first service, and determining an ES route matched with the VXLAN ID and ESI of the first service as an item to be elected corresponding to the first service, wherein the first service is used for representing the service in the first VXLAN associated with a first AC port; and acquiring a list of items to be elected, and electing different DF devices according to different host identifiers in the list of items to be elected. By electing different DF devices for different host identities, the DF election method and apparatus according to the embodiments of the present disclosure can achieve load sharing of service traffic within the same VXLAN.
Description
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a Designated Forwarder DF (Designated Forwarder) election method and apparatus.
Background
EVPN (Ethernet Virtual Private Network) is a two-layer VPN technology. In order to improve the reliability of the access side, the protocol specifies an EVPN multi-homing access network, thereby improving the reliability of the service data message. In the EVPN multi-home access network, one VM (Virtual Machine) can access different VTEP (VXLAN Tunnel End Point) devices through multiple links at the same time. Multiple links of VM accessing different VTEP devices form an ES (Ethernet Segment). ESI (Ethernet segment Identifier) can be used to identify an ES.
In order to solve the problem that a loop or multiple copies of BUM (Broadcast, Unknown Unicast, multicast) traffic do not exist when accessing different VTEP devices corresponding to one VM, a plurality of VTEP devices may select one DF from among the VTEP devices satisfying the same ESI value, and the DF may be responsible for forwarding packets from and to the VM.
Disclosure of Invention
In view of this, the present disclosure provides a DF election method and apparatus capable of performing load sharing of services in a VXLAN.
According to an aspect of the present disclosure, there is provided a DF election method applied to a VTEP device in an EVPN multihoming network, the method including: receiving an ES route of an Ethernet segment, and acquiring an extensible virtual local area network identifier VXLAN ID, an Ethernet segment identifier ESI and a host identifier corresponding to the ES route; acquiring VXLAN ID and ESI of a first service, and determining an item to be elected corresponding to the first service according to an ES route matched with the VXLAN ID and ESI of the first service, wherein the first service is used for representing the service in the first VXLAN associated with a first AC port; and acquiring a list of items to be elected, and electing different DF devices according to different host identifiers in the list of items to be elected.
According to another aspect of the present disclosure, there is provided a DF election apparatus applied to a VTEP device in an EVPN multihoming networking, the apparatus including: a receiving module, configured to receive an ES route, and obtain vxlnid, ESI, and a host identifier corresponding to the ES route; the first acquisition module is used for acquiring VXLAN ID and ESI of the first service, and determining an item to be elected corresponding to the first service according to the ES route matched with the VXLAN ID and ESI of the first service, wherein the first service is used for representing the service in the first VXLAN associated with the first AC port; and the election module is used for acquiring a list of items to be elected and electing different DF devices according to different host identifiers in the list of items to be elected.
By receiving the ES route, obtaining VXLAN ID, ESI and host identity corresponding to the ES route; the method and the device for DF election in the embodiment of the invention can divide the service in one VXLAN according to the host identifiers, and respectively perform DF election aiming at the services corresponding to different host identifiers, thereby realizing the load sharing of the service flow in the same VXLAN.
Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1 shows a flow chart of a DF election method according to an embodiment of the present disclosure.
Fig. 2 shows a schematic diagram of EVPN multihoming networking according to an embodiment of the present disclosure.
Fig. 3 shows a flow chart of a DF election method according to an embodiment of the present disclosure.
Fig. 4 shows a flow chart of a DF election method according to an embodiment of the present disclosure.
Fig. 5 shows a block diagram of a DF election device according to an embodiment of the present disclosure.
Fig. 6 shows a block diagram of a DF election device according to an embodiment of the present disclosure.
Fig. 7 shows a block diagram of a DF election device according to an embodiment of the present disclosure.
Detailed Description
Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present disclosure.
Fig. 1 shows a flow chart of a DF election method according to an embodiment of the present disclosure. Fig. 2 shows a schematic diagram of EVPN multihoming networking according to an embodiment of the present disclosure. As shown in fig. 2, VTEP1, VTEP2, VTEP3, and VTEP4 represent VTEP devices; VM1 and VM2 represent VMs (Virtual machines); LSW1 and LSW2 represent switches. VM1 accesses 3 VTEP devices, VTEP1, VTEP2, and VTEP3, respectively, simultaneously through a switch LSW 1. VM2 accesses 3 VTEP devices, VTEP1, VTEP2, and VTEP3, respectively, simultaneously through a switch LSW 2. Wherein VM1 and VM2 access the same physical port of the same VTEP device. VTEP1, VTEP2, and VTEP3 respectively create an AC (access Circuit) port 1, an AC port 2, and an AC port 3, and the AC port 1, the AC port 2, and the AC port 3 are configured with the same ESI value.
In EVPN, after establishing neighbor relation between VTEP devices, mutually transmitting ES routes (4 types of routes in EVPN routes, the ES routes can be used for DF election); according to ESI values carried in ES routes, a DF election list is generated on each VTEP device, and the DF election list contains information of all VTEP devices with the same ESI configuration.
In the related art, each VTEP device may determine the Router ID of other VTEP devices through the "originingrouter's IP address" field of the ES route received from other VTEP devices; all VTEP devices can sort the VTEP devices in the DF election list in the order of Router ID size, and select the DF in all the VTEP devices configuring the ESI according to a certain algorithm. For example, the VTEP devices may sort the VTEP devices in the DF election list in order of smaller to larger Router IDs, and assign sequence numbers starting from 0 in order. And acquiring a VTEP device serial number i which can be called DF according to a formula of i-VLAN ID mod n, wherein the VLAN ID is the ID of the VLAN bound on the VTEP device, n is the number of the VTEP devices contained in the DF election list, and i represents the remainder of the VLAN ID divided by n.
It can be seen that, for a certain VLAN, the DF devices elected by the VTEP devices in the DF election list are fixed VTEP devices. Thus, for a particular VLAN, only a particular VTEP device can receive traffic from the VM or forward traffic to the VM. On the VTEP device, VXLAN for traffic access from a certain VLAN of the VM is fixed, and the VLAN is fixed for the elected DF device. Thus, services within the same VXLAN can only pass through the same VTEP device, which results in load sharing not being possible within one VXLAN service. The VLAN ID may be replaced with a VXLAN ID.
The DF election method shown in fig. 1 may be applied to VTEP devices in EVPN multihome networking, such as VTEP1, VTEP2, and VTEP3 shown in fig. 2. As shown in fig. 1, the DF election method includes:
step S11, receiving the ES route, and acquiring VXLAN ID, ESI and host identifier corresponding to the ES route.
Wherein, VXLAN ID is the identifier of VXLAN, can be used to identify unique VXLAN, and has a length of 24 bits. ESI is an Ethernet segment identity that can be used to identify an ES, and is a 10-byte ID with global significance. The host id may be used to identify a unique host, where the host may be a server or a VM on a server, and the disclosure is not limited thereto. In one possible implementation, the host identification may be one or both of a MAC address and an IP address.
In one possible implementation, the ES route carries the ESI configured on an AC port of the VTEP device that sends the ES route, and the VXLAN ID of the VXLAN associated with the AC port. The VTEP device may advertise a host identity of a host accessing the VXLAN while advertising ES routes. After receiving an ES route, the VTEP device may use the ESI and VXLAN ID obtained from the ES route as the ESI and VXLAN ID corresponding to the ES route, and use the host identifier received when receiving the ES route as the host identifier corresponding to the ES route.
In a possible implementation manner, the ES route may carry the ESI configured on an AC port of the VTEP device that sends the ES route, the VXLAN ID of the VXLAN associated with the AC port, and the host identifier of the host that accesses the VXLAN. In this way, the VTEP device can use the VXLAN ID, ESI, and host identifier obtained from the ES route as the VXLAN ID, ESI, and host identifier corresponding to the ES route.
Step S12, obtaining VXLAN ID and ESI of the first service, and determining an to-be-elected item corresponding to the first service according to the ES route matched with the VXLAN ID and ESI of the first service, where the first service is used to represent a service in the first VXLAN associated with the first AC port.
Wherein the first service may be used to represent a service within a first VXLAN associated with the first AC port. The disclosure is not limited with respect to other aspects of the first service, such as type, content, etc. The first AC port may be used to indicate any AC port of the VTEP apparatus, and the ESI is provided on the first AC port. The first VXLAN may be used to represent a VXLAN associated with the first AC port. The VXLAN ID of the first service is the VXLAN ID of the first VXLAN, and the ESI of the first service is the ESI configured for the first AC port.
If the VXLAN ID and ESI corresponding to the ES route are consistent with the VXLAN ID and ESI of the first service, it indicates that the ES route is the ES route used when DF election is performed for the first service, and the VTEP device may determine that the ES route matches the first service.
The to-be-elected items corresponding to the first service comprise a host identity corresponding to the ES route matched with the VXLAN ID and ESI of the first service and an IP address of a VTEP device sending the ES route matched with the VXLAN ID and ESI of the first service. Of course, since different hosts may include the same service, for example, different VTEPs all have services with the same VXLAN ID, in the present disclosure, multiple items to be elected may be determined according to the first service.
Step S13, obtain the to-be-elected item list, and elect different DF devices according to different host identifiers in the to-be-elected item list.
Since a plurality of items to be elected can be determined according to the first service, the list of items to be elected can include a plurality of items to be elected corresponding to the first service.
Different to-be-elected items correspond to different host identities, so that the to-be-elected item list comprises different host identities. For each host identity, the VTEP device may search for an item to be elected including the host identity in an item to be elected list, and select the DF device corresponding to the host identity according to the item to be elected including the host identity. Wherein, aiming at different host identifiers, DF devices elected by VTEP devices are different.
By receiving the ES route, obtaining VXLAN ID, ESI and host identity corresponding to the ES route; the method comprises the steps of obtaining VXLAN ID and ESI of a first service, determining an item to be elected corresponding to the first service in the first VXLAN associated with a first AC port according to ES routing matched with the VXLAN ID and ESI of the first service, obtaining an item list to be elected, and electing different DF devices according to different host identifiers in the item list to be elected.
In one possible implementation, step S13 may include: for different host identities, the VTEP device may adopt different DF election methods to elect different DF devices. In one example, for host identity 1, the VTEP device may sort the VTEP devices in the DF election list in order of smaller to larger Router IDs and assign sequence numbers starting with 0 in the order. For the host identity 2, the VTEP device may sort the VTEP devices in the DF election list according to the descending order of the Router IDs, and assign sequence numbers beginning with 0 according to the order. In this way, although the VTEP device sequence number i as a DF device obtained by the formula i — VLAN ID mod n is the same for the host identifier 1 and the host identifier 2, the VTEP devices corresponding to the sequence number i are different.
In one possible implementation, step S13 may include: for different host identities, the VTEP device may select a DF device corresponding to a certain host identity from the list of items to be elected, and set the selected item to be elected in the list of items to be elected to an unavailable state, where the item to be elected in the unavailable state cannot be used for electing the DF device, and the elected item to be elected may be used to represent the selected item to be elected corresponding to the DF device. In one example, the to-do item that has been elected may be the to-do item that includes the IP address of the elected DF device.
In one possible implementation, fig. 3 shows a flow chart of a DF election method according to an embodiment of the present disclosure. As shown in fig. 3, for different host identities, the VTEP apparatus may select a DF apparatus corresponding to a host identity from the to-be-elected item list, and set the to-be-elected item that has been selected in the to-be-elected item list to an unavailable state, including:
step S131, for a first host identifier, a first DF device corresponding to the first host identifier is selected from the to-be-elected item list, and an to-be-elected item including an IP address of the first DF device in the to-be-elected item list is set to be in an unavailable state.
The first host identity may be used to indicate the identity of any host accessing the first VXLAN through the first AC port. The first DF device may be used to represent a DF device corresponding to the first host identity.
The items to be elected in the list of items to be elected may include different host identities. When determining the DF device corresponding to the first host identifier, the VTEP device may first find out the to-be-elected item including the first host identifier from the to-be-elected item list, and then select the DF device corresponding to the first host identifier, that is, the first DF device, from the VTEP device corresponding to the to-be-elected item including the first host identifier according to the DF election rule.
Because the to-be-elected item in the unavailable state cannot be used for electing the DF device, the VTEP device does not use the to-be-elected item in the unavailable state in the process of determining the DF device corresponding to the first host identifier. In one example, all the to-be-elected items including the first host identifier, which are found by the VTEP device from the to-be-elected item list, are to-be-elected items in an available state.
After the VTEP device selects the first DF device, the to-be-elected item including the IP-aware item of the first DF device in the to-be-elected item list may be set to an unavailable state.
In one possible implementation, the VTEP device may add a status identifier for indicating whether the candidate is available to the candidate. For example, the VTEP apparatus may add 0 or 1 to the item to be elected as a state identifier, and when the state identifier of the item to be elected is 0, it indicates that the item to be elected is in an unavailable state and is unavailable for election by a subsequent DF apparatus; and when the status identifier of the item to be elected is 1, the item to be elected is in an available state and can be used for election of a subsequent DF device.
Step S132, for a second host identifier, a second DF device corresponding to the second host identifier is selected from the list of items to be elected, and the items to be elected, which include the IP address of the second DF device, are set to be in an unavailable state, where the second host identifier is different from the first host identifier.
The second host identity may be used to indicate a host identity of a host accessing the first VXLAN through the first AC port, and the host corresponding to the second host identity is different from the host corresponding to the first host identity. The second DF device may be used to represent a DF device corresponding to the second host identity. The process of electing the second DF device in step S132 may refer to the process of electing the first DF device in step S131, and is not described herein again.
Since the items to be elected that are in an unavailable state cannot be used for election by the DF device. When the VTEP device sets the to-be-elected item including the IP address of the first DF device to an unavailable state, in the process of electing the second DF device, none of the to-be-elected items used by the VTEP device includes the IP address of the first DF device, and the second DF device elected by the VTEP device cannot be the first DF device. In this way, the DF devices corresponding to the second host identity and the first host identity are different, thereby achieving the purpose of performing DF elections respectively for services corresponding to different host identities, and achieving load sharing of service traffic in the same VXLAN.
After the second DF device corresponding to the second host identifier is picked out, the item to be elected including the IP address of the second DF device is also set to be in an unavailable state, so that in the subsequent election process for DF devices corresponding to other host identifiers, the second DF device is not selected, the purpose of respectively performing DF elections for services corresponding to different host identifiers is achieved, and load sharing of service traffic in the same VXLAN is achieved.
Fig. 4 shows a flow chart of a DF election method according to an embodiment of the present disclosure. As shown in fig. 4, the method further includes:
step S21, obtain ESI configured by the first AC port, VXLAN ID of the first VXLAN associated with the first AC port, and host identity of the host accessing the first VXLAN.
For the description of the first AC port, ESI, the first VXLAN, and the host identifier, reference may be made to step S11 and step S12, which are not described herein again.
Step S22, sending an ES route for each host identifier, where the ES route carries the VXLAN ID of the first VXLAN, the ESI configured by the first AC port, and the host identifier.
For example, for the host identifier 1, the VTEP device sends an ES route, where the ES route carries the VXLAN ID of the first VXLAN, the ESI configured by the first AC port, and the host identifier 1. And aiming at the host identity 2, the VTEP equipment sends an ES route, wherein the ES route carries the VXLAN ID of the first VXLAN, the ESI configured by the first AC port, and the host identity 2. Until the host identities of all hosts accessing the first VXLAN through the first AC port are traversed.
Thus, for each host accessed to the first VXLAN through the first AC port, an ES route carrying the host identifier of the host is sent, so that the VTEP device receiving the ES route can perform DF elections respectively for different host identifiers, elect different DFs, and implement load sharing of service traffic in the same VXLAN.
Application example
As shown in fig. 2, VM1 and VM2 have multi-homing access to VTEP devices, VTEP2, VTEP2 and VTEP3, respectively. The MAC address of the VM1 is A-A-A, the IP address is 10.1.1.2, the MAC address of the VM2 is B-B-B, and the IP address is 10.1.1.3. The IP address of VTEP1 is 1.1.1.1, the IP address of VTEP2 is 2.2.2.2, and the IP address of VTEP3 is 3.3.3.3. The following describes an example of selecting a DF according to the present disclosure, where a MAC address of VM1 is used as a first host identifier (or an IP address of VM1 is used as the first host identifier, or a MAC address and an IP address of VM1 are used as the first host identifier), a MAC address of VM2 is used as a second host identifier (or an IP address of VM2 is used as the second host identifier, or a MAC address and an IP address of VM2 are used as the second host identifier), VTEP2, VTEP2, and VTEP3 respectively create first AC ports, ESI of each first AC port is configured as 1, VXLAN ID of a first VXLAN associated with the first AC port is 100, and VM1 and VM2 respectively access the first VXLAN through the first AC port. And BGP EVPN neighbors are established between every two of VTEP1, VTEP2, VTEP3 and VTEP 4.
For VM1, VTEP1 sends ES routes to VTEP2, VTEP3, and VTEP4, respectively, where the ES routes carry VXLAN ID with value 100, ESI with value 1, host identity with value a-a, and IP address 1.1.1.1 of VTEP 1; VTEP2 sends ES routes to VTEP1, VTEP3 and VTEP4, respectively, the ES routes carry VXLAN ID with value 100, ESI with value 1, host ID with value A-A-A, and IP address 2.2.2 of VTEP 2; VTEP3 sends ES routes to VTEP1, VTEP2, and VTEP4, respectively, which carry VXLAN ID with value 100, ESI with value 1, host identity with value a-a, and IP address 3.3.3 of VTEP 3.
For VM2, VTEP1 sends ES routes to VTEP2, VTEP3 and VTEP4, respectively, where the ES routes carry VXLAN ID with value 100, ESI with value 1, host ID with value B-B, and IP address 1.1.1.1 of VTEP 1; VTEP2 sends ES routes to VTEP1, VTEP3 and VTEP4, respectively, the ES routes carry VXLAN ID with value 100, ESI with value 1, host ID with value B-B-B, and IP address 2.2.2 of VTEP 2; VTEP3 sends ES routes to VTEP1, VTEP2, and VTEP4, respectively, which carry VXLAN ID with value 100, ESI with value 1, host identity with value B-B, and IP address 3.3.3 of VTEP 3.
Thus, VTEP1, VTEP2, and VTEP3 respectively form a to-be-elected item list corresponding to the first service (VXLAN ID 100, ESI 1), where the to-be-elected item list includes a host identifier (corresponding to the ES route matching VXLAN ID and ESI of the first service) and an IP address of the VTEP device (sending the ES route matching VXLAN ID and ESI of the first service), such as the to-be-elected item list shown in table 1.
TABLE 1
Host identity | VXLAN ID | ESI | IP address of VTEP device | |
1 | A-A-A | 100 | 1 | 1.1.1.1 |
2 | A-A-A | 100 | 1 | 2.2.2.2 |
3 | A-A-A | 100 | 1 | 3.3.3.3 |
4 | B-B-B | 100 | 1 | 1.1.1.1 |
5 | B-B-B | 100 | 1 | 2.2.2.2 |
6 | B-B-B | 100 | 1 | 3.3.3.3 |
Different DF devices are elected according to the host identifiers A-A-A and B-B in the list of items to be elected shown in the table 1. In one example, a VTEP device (VTEP1) with an IP address of 1.1.1.1 is selected as the first DF device corresponding to a-a from the candidate list shown in table 1 for the host identity a-a, and the candidate including 1.1.1.1 in the candidate list shown in table 1 is set to an unavailable state, that is, the candidate in the 1 st and 4 th rows is set to an unavailable state. At this time, the items to be elected on lines 1 and 4 cannot participate in the election of the subsequent DF device. In this way, the second DF device selected from the to-be-elected list shown in table 1 for host identity B-B is generated between the VTEP device (VTEP2) with IP address 2.2.2 and the VTEP device (VTEP) with IP address 3.3.3, which cannot be VTEP 1. Thus, the service accessed to the same VXLAN network by VM1 and VM2 can be forwarded by different VTEP devices, thereby realizing load sharing of service traffic in the same VXLAN.
Suppose that the DF device corresponding to A-A-A is VTEP1, and the DF device corresponding to B-B-B is VTEP 2.
VM1 reports gratuitous ARP messages to VTEP1, VTEP2 and VTEP3, VTEP2 and VTEP3 will directly discard the messages, VTEP1 will let the messages enter and locally generate IP/MAC table entry of VM 1. VTEP1 advertises the IP/MAC address table entries of VM1 to VTEP 4. VTEP4 issues forwarding entries for VM 1.
VM2 reports gratuitous ARP messages to VTEP1, VTEP2 and VTEP3, VTEP1 and VTEP3 will directly discard the messages, VTEP2 will let the messages enter and locally generate IP/MAC table entry of VM 2. VTEP2 advertises the IP/MAC address table entries of VM2 to VTEP 4. VTEP4 issues forwarding entries for VM 2.
Thus, when VM3 wants to access VM1, traffic is forwarded to VTEP1 and then to VM1 by making table entries queries on VTEP 4. When VM3 wants to access VM2, traffic is forwarded to VTEP2 by making table entry queries on VTEP4, which is sent to VM 2. As can be seen, traffic of VM1 is forwarded through VTEP1, and traffic of VM2 is forwarded through VTEP2, thereby achieving load sharing of traffic in the same VXLAN.
Fig. 5 shows a block diagram of a DF election device according to an embodiment of the present disclosure. The device is applied to VTEP equipment in an EVPN multi-homing networking. As shown in fig. 5, the apparatus 50 includes:
the receiving module 51 is configured to receive the ES route, and obtain a VXLAN ID, an ESI, and a host identifier corresponding to the ES route.
A first obtaining module 52, configured to obtain VXLAN ID and ESI of the first service, and determine an to-be-elected item corresponding to the first service according to the ES route matched with VXLAN ID and ESI of the first service, where the first service is used to represent a service in the first VXLAN associated with the first AC port.
And the election module 53 is configured to obtain an item list to be elected, and elect different DF devices according to different host identifiers in the item list to be elected.
Fig. 6 shows a block diagram of a DF election device according to an embodiment of the present disclosure. As shown in fig. 6, in one possible implementation, the election module 53 includes:
the election sub-module 531 is configured to, for different host identifiers, elect a DF device corresponding to a certain host identifier from the to-be-elected item list, and set the to-be-elected item in the to-be-elected item list to be in an unavailable state, where the to-be-elected item in the unavailable state cannot be used for election of the DF device, and the elected to-be-elected item is used to represent the to-be-elected item corresponding to the elected DF device.
In a possible implementation manner, the election submodule 531 is further configured to:
aiming at a first host identity, a first DF device corresponding to the first host identity is selected from the list of items to be elected, and the items to be elected, including the IP address of the first DF device, in the list of items to be elected are set to be in an unavailable state;
and for a second host identity, selecting a second DF device corresponding to the second host identity from the list of items to be elected, and setting the items to be elected including the IP address of the second DF device to be in an unavailable state, wherein the second host identity is different from the first host identity.
In one possible implementation, the apparatus 50 further includes:
a second obtaining module 54, configured to obtain the ESI configured by the first AC port, the VXLAN ID of the first VXLAN associated with the first AC port, and the host identifier of the host accessing the first VXLAN.
A sending module 55, configured to send an ES route for each host identifier, where the ES route carries the VXLAN ID of the first VXLAN, the ESI configured by the first AC port, and the host identifier.
In one possible implementation, the host identification includes one or both of a MAC address and an IP address.
By receiving the ES route, obtaining VXLAN ID, ESI and host identity corresponding to the ES route; the method comprises the steps of obtaining VXLAN ID and ESI of a first service, determining an item to be elected corresponding to the first service in the first VXLAN associated with a first AC port according to ES routing matched with the VXLAN ID and ESI of the first service, obtaining an item list to be elected, electing different DF devices according to different host identifiers in the item list to be elected, dividing the service in one VXLAN according to the host identifiers by the DF electing device according to the embodiment of the disclosure, and respectively carrying out DF election aiming at the services corresponding to the different host identifiers, thereby realizing load sharing of service flow in the same VXLAN.
Fig. 7 is a block diagram illustrating an apparatus 900 for DF elections according to an exemplary embodiment. Referring to fig. 7, the apparatus 900 may include a processor 901, a machine-readable storage medium 902 having stored thereon machine-executable instructions. The processor 901 and the machine-readable storage medium 902 may communicate via a system bus 903. Also, processor 901 performs the DF election method described above by reading machine-executable instructions in machine-readable storage medium 902 corresponding to DF election logic.
The machine-readable storage medium 902 referred to herein may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: RAM (random access Memory), volatile Memory, non-volatile Memory, flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., a compact disk, a dvd, etc.), or similar storage medium, or a combination thereof.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein were chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the techniques in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.
Claims (8)
1. A designated forwarder DF election method is applied to an extensible virtual local area network tunnel endpoint (VTEP) device in an Ethernet Virtual Private Network (EVPN) multi-homing network, and comprises the following steps:
receiving an ES route of an Ethernet segment, and acquiring an extensible virtual local area network identifier VXLAN ID, an Ethernet segment identifier ESI and a host identifier corresponding to the ES route;
acquiring VXLAN ID and ESI of a first service, and determining an item to be elected corresponding to the first service according to an ES route matched with the VXLAN ID and ESI of the first service, wherein the first service is used for representing the service in a first VXLAN associated with a first AC port, and the item to be elected corresponding to the first service comprises a host identifier corresponding to the ES route matched with the VXLAN ID and ESI of the first service;
acquiring a list of items to be elected, and electing different DF devices according to different host identifiers in the list of items to be elected, wherein the list of items to be elected comprises a plurality of items to be elected corresponding to a first service;
wherein, different DF devices are elected according to different host identifiers in the to-be-elected item list, including:
and selecting DF equipment corresponding to a certain host identifier from the list of items to be elected aiming at different host identifiers, and setting the selected items to be elected in the list of items to be elected to be in an unavailable state, wherein the items to be elected in the unavailable state cannot be used for electing the DF equipment, and the elected items to be elected are used for representing the items to be elected corresponding to the selected DF equipment.
2. The method of claim 1, wherein selecting a DF device corresponding to a certain host identifier from the list of items to be elected for different host identifiers, and setting the selected item to be elected in the list of items to be elected to an unavailable state comprises:
aiming at a first host identity, a first DF device corresponding to the first host identity is selected from the list of items to be elected, and the items to be elected, including the IP address of the first DF device, in the list of items to be elected are set to be in an unavailable state;
and for a second host identity, selecting a second DF device corresponding to the second host identity from the list of items to be elected, and setting the items to be elected including the IP address of the second DF device to be in an unavailable state, wherein the second host identity is different from the first host identity.
3. The method of claim 1, further comprising:
acquiring ESI configured by a first AC port, VXLAN ID of a first VXLAN associated with the first AC port and host identification of a host accessing the first VXLAN;
and sending an ES route aiming at each host identifier, wherein the ES route carries the VXLAN ID of the first VXLAN, the ESI configured by the first AC port and the host identifier.
4. The method of any of claims 1 to 3, wherein the host identity comprises one or both of a MAC address and an IP address.
5. An apparatus for Designated Forwarder (DF) election, the apparatus being applied to a VTEP device in an EVPN multihoming networking, the apparatus comprising:
the receiving module is used for receiving the ES route and acquiring VXLAN ID, ESI and host identity corresponding to the ES route;
the first obtaining module is used for obtaining VXLAN ID and ESI of a first service, determining an item to be elected corresponding to the first service according to an ES route matched with the VXLAN ID and ESI of the first service, wherein the first service is used for representing the service in the first VXLAN associated with a first AC port, and the item to be elected corresponding to the first service comprises a host identifier corresponding to the ES route matched with the VXLAN ID and ESI of the first service;
the system comprises an election module, a first service module and a second service module, wherein the election module is used for acquiring a list of items to be elected and electing different DF devices according to different host identifiers in the list of items to be elected, and the list of items to be elected comprises a plurality of items to be elected corresponding to the first service;
wherein the election module comprises:
and the election sub-module is used for selecting the DF device corresponding to a certain host identifier from the list of items to be elected according to different host identifiers, setting the selected items to be elected in the list of items to be elected to be in an unavailable state, wherein the items to be elected in the unavailable state cannot be used for electing the DF device, and the elected items to be elected are used for representing the items to be elected corresponding to the selected DF device.
6. The apparatus of claim 5, wherein the election sub-module is further configured to:
aiming at a first host identity, a first DF device corresponding to the first host identity is selected from the list of items to be elected, and the items to be elected, including the IP address of the first DF device, in the list of items to be elected are set to be in an unavailable state;
and for a second host identity, selecting a second DF device corresponding to the second host identity from the list of items to be elected, and setting the items to be elected including the IP address of the second DF device to be in an unavailable state, wherein the second host identity is different from the first host identity.
7. The apparatus of claim 5, further comprising:
a second obtaining module, configured to obtain ESI configured by the first AC port, VXLANID of the first VXLAN associated with the first AC port, and a host identifier of a host accessing the first VXLAN;
a sending module, configured to send an ES route for each host identifier, where the ES route carries the VXLAN ID of the first VXLAN, the ESI configured by the first AC port, and the host identifier.
8. The apparatus of any of claims 5 to 7, wherein the host identity comprises one or both of a MAC address and an IP address.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810096635.4A CN108199947B (en) | 2018-01-31 | 2018-01-31 | Designated forwarder DF election method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810096635.4A CN108199947B (en) | 2018-01-31 | 2018-01-31 | Designated forwarder DF election method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108199947A CN108199947A (en) | 2018-06-22 |
CN108199947B true CN108199947B (en) | 2020-10-09 |
Family
ID=62591651
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810096635.4A Active CN108199947B (en) | 2018-01-31 | 2018-01-31 | Designated forwarder DF election method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108199947B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111083061B (en) | 2018-10-19 | 2021-08-20 | 华为技术有限公司 | A method, device and system for determining the DF of a multicast stream |
CN110708230A (en) * | 2019-09-16 | 2020-01-17 | 中国联合网络通信集团有限公司 | Designated forwarder election method and device |
CN111277482B (en) * | 2020-01-13 | 2022-01-18 | 新华三大数据技术有限公司 | Message processing method and device |
CN115811499A (en) * | 2021-09-11 | 2023-03-17 | 华为技术有限公司 | Method and equipment for designated forwarder DF election |
CN115277304A (en) * | 2022-06-10 | 2022-11-01 | 新华三技术有限公司 | Flow forwarding method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106254203A (en) * | 2016-09-05 | 2016-12-21 | 杭州华三通信技术有限公司 | A kind of message forwarding method and device |
CN106656843A (en) * | 2015-10-30 | 2017-05-10 | 华为技术有限公司 | Load sharing method and related device |
CN106713005A (en) * | 2015-11-12 | 2017-05-24 | 瞻博网络公司 | Static Designated Forwarder (DF) election based on DF election process |
CN106936682A (en) * | 2015-12-31 | 2017-07-07 | 华为技术有限公司 | It is a kind of to specify the processing method and controller and supplier's edge device for turning originator |
US9735983B1 (en) * | 2014-09-29 | 2017-08-15 | Juniper Networks, Inc. | Adaptive load balancing for single active redundancy using EVPN designated forwarder election |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9853915B2 (en) * | 2015-11-04 | 2017-12-26 | Cisco Technology, Inc. | Fast fail-over using tunnels |
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 |
-
2018
- 2018-01-31 CN CN201810096635.4A patent/CN108199947B/en active Active
Patent Citations (5)
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 |
CN106656843A (en) * | 2015-10-30 | 2017-05-10 | 华为技术有限公司 | Load sharing method and related device |
CN106713005A (en) * | 2015-11-12 | 2017-05-24 | 瞻博网络公司 | Static Designated Forwarder (DF) election based on DF election process |
CN106936682A (en) * | 2015-12-31 | 2017-07-07 | 华为技术有限公司 | It is a kind of to specify the processing method and controller and supplier's edge device for turning originator |
CN106254203A (en) * | 2016-09-05 | 2016-12-21 | 杭州华三通信技术有限公司 | A kind of message forwarding method and device |
Also Published As
Publication number | Publication date |
---|---|
CN108199947A (en) | 2018-06-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108199947B (en) | Designated forwarder DF election method and device | |
US20190116220A1 (en) | Neighbor Discovery for IPV6 Switching Systems | |
US9537793B2 (en) | Ensuring any-to-any reachability with opportunistic layer 3 forwarding in massive scale data center environments | |
CN108600074B (en) | Method and device for forwarding multicast data message | |
CN108494701B (en) | Load sharing method and device | |
CN100466627C (en) | Address prefix search method and device, and message forwarding method and system | |
CN108494686B (en) | Route processing method and device | |
CN108718278B (en) | Message transmission method and device | |
EP3292659B1 (en) | Multicast data packet forwarding | |
US10616175B2 (en) | Forwarding information to forward data to proxy devices | |
US10313154B2 (en) | Packet forwarding | |
CN110535744B (en) | Message processing method and device and Leaf equipment | |
CN111600797B (en) | Data transmission method, node and system | |
CN108199968B (en) | Route processing method and device | |
CN107493222B (en) | VXLAN message forwarding method and device | |
CN108600069B (en) | Link switching method and device | |
CN110505621B (en) | Terminal migration processing method and device | |
CN108306806B (en) | Message forwarding method and device | |
CN109412949B (en) | Data message transmission method and device | |
CN107948066B (en) | Designated forwarder DF election method, system and device | |
CN108600070B (en) | Designated forwarder DF election method and device | |
US20200036633A1 (en) | Network routing systems and techniques | |
CN107634893B (en) | Method and device for processing Media Access Control (MAC) address advertisement route | |
CN107517129B (en) | Method and device for configuring uplink interface of equipment based on OpenStack | |
US10313274B2 (en) | Packet forwarding |
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 |