CN108494701B - Load sharing method and device - Google Patents

Load sharing method and device Download PDF

Info

Publication number
CN108494701B
CN108494701B CN201810296399.0A CN201810296399A CN108494701B CN 108494701 B CN108494701 B CN 108494701B CN 201810296399 A CN201810296399 A CN 201810296399A CN 108494701 B CN108494701 B CN 108494701B
Authority
CN
China
Prior art keywords
host
vtep
address
vtep device
route
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
CN201810296399.0A
Other languages
Chinese (zh)
Other versions
CN108494701A (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.)
New H3C Technologies Co Ltd
Original Assignee
New 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201810296399.0A priority Critical patent/CN108494701B/en
Publication of CN108494701A publication Critical patent/CN108494701A/en
Application granted granted Critical
Publication of CN108494701B publication Critical patent/CN108494701B/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
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • 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]

Landscapes

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

Abstract

The present disclosure relates to a load sharing method and device, where the method is applied to a first VTEP device in an EVPN multihoming network, and the EVPN multihoming network further includes a second VTEP device, where the second VTEP device is a neighbor VTEP device that belongs to a different multihoming system from the first VTEP device, and the method includes: receiving a host address advertisement route sent by the second VTEP device, wherein the host address advertisement route is used for advertising the address of a host; and if the host address notification route carries the address of the specified VTEP equipment, generating an equivalent forwarding table entry corresponding to the host according to the address of the specified VTEP equipment. By using the designated VTEP device as the next hop of the equivalent forwarding table entry corresponding to a certain VXLAN service, the load sharing method and device according to the embodiment of the disclosure can realize the on-demand forwarding of the VXLAN service, and improve the flexibility and reliability of networking.

Description

Load sharing method and device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a load sharing 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 one VM is connected to different VTEP devices, a DF may be selected from among VTEP devices that satisfy the same ESI value by the plurality of VTEP devices.
A MAC/IP entry for a VM accessing the multi-homing system may be generated on the DF, and the DF may advertise the IP/MAC entry to all peer devices. After receiving the IP/MAC entry notified by the DF, the VTEP device not belonging to the multihoming system may form an equivalent forwarding entry to the VM, and the egress interface includes a VXLAN tunnel whose destination address is each VTEP device of the multihoming system.
Disclosure of Invention
In view of this, the present disclosure provides a load sharing method and device, which can perform load sharing according to service requirements of VXLAN.
According to a first aspect of the present disclosure, there is provided a load sharing method applied to a first VTEP device in an EVPN multihoming network, where the EVPN multihoming network further includes a second VTEP device, and the second VTEP device is a neighbor VTEP device belonging to a different multihoming system from the first VTEP device, where the method includes: receiving a host address advertisement route sent by the second VTEP device, wherein the host address advertisement route is used for advertising the address of a host; if the host address announcement route carries the address of the designated VTEP device, generating an equivalent forwarding table entry corresponding to the host according to the address of the designated VTEP device so that the first VTEP device forwards the data packet to the host through the designated VTEP device, wherein the designated VTEP device is a VTEP device for load sharing of VXLAN services corresponding to the host.
According to a second aspect of the present disclosure, there is provided a load sharing method applied to a second VTEP device in an EVPN multi-homing network, where the EVPN multi-homing network further includes a first VTEP device, and the first VTEP device is a neighbor VTEP device belonging to a different multi-homing system from the second VTEP device, and the method includes: when the host computer is online, acquiring a VXLAN ID of the host computer corresponding to the VXLAN service and an address of the host computer; if the VXLAN ID corresponding to the host is the appointed VXLAN ID, generating a host address announcement route according to the address of the appointed VTEP device and the address of the host, wherein the appointed VTEP device is a VTEP device for carrying out load sharing on VXLAN service corresponding to the host, and the host address announcement route is used for announcing the address of the host; and sending the host address advertisement route to the first VTEP equipment so that the first VTEP equipment generates an equivalent forwarding table corresponding to the host according to the address of the specified VTEP equipment.
According to a third aspect of the present disclosure, there is provided a load sharing apparatus applied to a first VTEP device in an EVPN multi-homing network, where the EVPN multi-homing network further includes a second VTEP device, and the second VTEP device is a neighbor VTEP device belonging to a different multi-homing system from the first VTEP device, the apparatus including: a first receiving module, configured to receive a host address advertisement route sent by the second VTEP device, where the host address advertisement route is used to advertise an address of a host; a first generating module, configured to generate an equivalent forwarding table entry corresponding to the host according to the address of the specified VTEP device if the host address announcement route carries the address of the specified VTEP device, so that the first VTEP device forwards the data packet to the host through the specified VTEP device, where the specified VTEP device is a VTEP device that performs load sharing on a VXLAN service corresponding to the host.
According to a fourth aspect of the present disclosure, there is provided a load sharing apparatus applied to a second VTEP device in an EVPN multi-homing network, where the EVPN multi-homing network further includes a first VTEP device, and the first VTEP device is a neighbor VTEP device belonging to a different multi-homing system from the second VTEP device, the apparatus including: the acquisition module is used for acquiring a VXLAN ID of a host corresponding to VXLAN service and the address of the host when the host is online; a second generating module, configured to generate a host address announcement route according to an address of a specified VTEP device and an address of the host if the VXLAN ID corresponding to the host is a specified VXLAN ID, where the specified VTEP device is a VTEP device that shares load of VXLAN services corresponding to the host, and the host address announcement route is used to announce an address of the host; a sending module, configured to send the host address advertisement route to the first VTEP device, so that the first VTEP device generates an equivalent forwarding table entry corresponding to the host according to the address of the specified VTEP device.
According to a fifth aspect of the present disclosure, there is provided a load sharing apparatus, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to perform the method of the first aspect.
According to a sixth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer program instructions, wherein the computer program instructions, when executed by a processor, implement the method of the first aspect described above.
According to a seventh aspect of the present disclosure, there is provided a load sharing apparatus, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to perform the method of the second aspect described above.
According to an eighth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer program instructions, wherein the computer program instructions, when executed by a processor, implement the method of the second aspect described above.
Receiving, by a first VTEP device, a host address advertisement route sent by a second VTEP device belonging to a different multihoming system from the first VTEP device; if the host address notification route carries the address of the designated VTEP device, an equivalent forwarding table entry corresponding to the host is generated according to the address of the designated VTEP device, so that the first VTEP device forwards the data packet to the host corresponding to the host address notification route through the designated VTEP device.
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 flowchart of a load sharing 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 load sharing method according to an embodiment of the present disclosure.
Fig. 4 shows a flow chart of a load sharing method according to an embodiment of the present disclosure.
Fig. 5 shows a block diagram of a load sharing device according to an embodiment of the present disclosure.
Fig. 6 shows a block diagram of a load sharing device according to an embodiment of the present disclosure.
Fig. 7 shows a block diagram of a load sharing device according to an embodiment of the present disclosure.
Fig. 8 shows a block diagram of a load sharing device according to an embodiment of the present disclosure.
FIG. 9 illustrates a block diagram of a machine-readable storage medium 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 flowchart of a load sharing 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, VTEP4 and VTEP5 represent VTEP devices; VM1 and VM2 represent VMs (Virtual machines), and LSW1 represents a switch. The VTEP1, VTEP2, VTEP3 and VTEP5 respectively have AC ports configured with the same ESI, and the VTEP4 has AC ports configured with other ESIs. VM1 is connected to the AC ports of VTEP1, VTEP2, VTEP3 and VTEP5 simultaneously through LSW 1. VM2 is connected to the AC port of VTEP 4. BGP EVPN neighbors are established between VTEP1, VTEP2, VTEP3, VTEP4 and VTEP 5.
As shown in fig. 2, taking VTEP1 as the DF example, after VM1 comes online, a MAC/IP entry of VM1 is generated on VTEP1, and VTEP1 may synchronize the MAC/IP entry of VM1 to all peer devices, such as VTEP2, VTEP3, VTPE4, and VTEP5, through a MAC/IP advertisement route (bgvpn 2 type route for advertising the MAC/IP address of the host). After receiving the MAC/IP advertisement route, VTEP2, VTEP3, and VTEP5 determine that the VTEP device and VTEP1 belong to the same multihoming system, and VTEP2, VTEP3, and VTEP5 generate a local forwarding table entry of VM2 according to the MAC/IP advertisement route, where an outgoing interface of the local forwarding table entry is an AC port connected to VM 1. After receiving the MAC/IP advertisement route, VTEP4 determines that the VTEP device and VTEP1 do not belong to the same multihoming system, and VTEP4 generates a local forwarding table entry of VM2 according to the MAC/IP advertisement route, where an outgoing interface of the local forwarding table entry is a VXLAN tunnel with destination addresses of VTEP1, VTEP2, VTEP3, and VTEP 5. Thus, equivalent forwarding entries to VM1 are formed on VTEP4, and the next hops of the equivalent forwarding entries are VTEP1, VTEP2, VTEP3 and VTEP5, respectively.
As described above, multiple forwarding paths are formed on VTEP4 to VM 1. In the related art, for example, service 1 having a VXLAN ID of 10 and service 2 having a VXLAN ID of 100 are all load-shared on VTEP1, VTEP2, VTEP3, and VTEP5, and it is impossible to load-share service 1 on VTEP1 and VTEP2 and load-share service 2 on VTEP3 and VTEP5, without distinguishing between the services.
The load sharing method shown in fig. 1 may be applied to a first VTEP device in an EVPN multihoming network, where the EVPN multihoming network further includes a second VTEP device, and the second VTEP device is a neighbor VTEP device that belongs to a different multihoming system from the first VTEP device. Taking VTEP4 shown in fig. 2 as a first VTEP device as an example, VTEP1 is a second VTEP device. As shown in fig. 1, the load sharing method includes:
and step S11, receiving a host address advertisement route sent by the second VTEP device, where the host address advertisement route is used for advertising an address of a host.
The host address advertisement route is used for advertising addresses of hosts connected to the VTEP device, including MAC addresses, IP addresses, and the like of the hosts. In one implementation, the host address advertisement route may be a MAC/IP advertisement route.
If the AC ports of two VTEP devices are configured with the same ESI, the two VTEP devices belong to the same multi-homing system. If the ESIs of the AC port configurations of the two VTEP devices are different, the two VTEP devices do not belong to the same multi-homing system. In the embodiment of the disclosure, the first VTEP device and the second VTEP device belong to different multi-homing systems. As shown in fig. 2, ESI of the AC port configurations of VTEP1, VTEP2, VTEP3 and VTEP5 are the same, and ESI of the AC port configuration of VTEP4 is the same, VTEP1, VTEP2, VTEP3 and VTEP5 belong to the same multihoming system, and VTEP1/VTEP2/VTEP3/VTEP5 and VTEP4 do not belong to the same ES multihoming system. In one example, VTEP1 is elected as DF, VTEP1 sends a host address advertisement route for VM1 to VTEP4 to advertise the address of VM1, and VTEP4 receives a host address advertisement route for VM1 sent by VTEP 1.
In one implementation, the host address advertisement route carries ESI, and after receiving the host address advertisement route, the first VTEP device may obtain ESI from the host address advertisement route, and if the obtained ESI is different from ESI configured by the local AC port of the first device, the first VTEP device may determine that the host address advertisement route is the host address advertisement route from the second VTEP device.
Step S12, if the host address announcement route carries an address of a specified VTEP device, generating an equivalent forwarding table entry corresponding to the host according to the address of the specified VTEP device, so that the first VTEP device forwards the data packet to the host through the specified VTEP device, where the specified VTEP device is a VTEP device that performs load sharing on a VXLAN service corresponding to the host.
The host address advertisement route carries a VXLAN ID (extensible virtual local area network identifier), which can be used to identify a unique VXLAN. After the host goes online, the second VTEP device may obtain the ESI configured by the AC port accessed by the host and the VXLAN ID associated with the AC port, and generate a host address advertisement route according to the address of the host, the obtained ESI and the VXLAN ID.
And the VTEP equipment is designated as the VTEP equipment for carrying out load sharing on the VXLAN service corresponding to the host. There may be one or more of the specified VTEP devices.
The equivalent forwarding table entry corresponding to the host is used for determining the interface when the first VTEP device forwards the message to the host.
When the host address announcement route carries the address of the designated VTEP device, it indicates that the VXLAN service corresponding to the host address announcement route is a special service, for example, an important service, and it is necessary to use the designated VTEP device for load sharing, and the first VTEP device may generate an equivalent forwarding table entry corresponding to the host according to the address of the designated VTEP device.
The first VTEP device may use the VXLAN tunnel whose destination address is the address of the designated VTEP device as an egress interface, and generate an equivalent forwarding table entry corresponding to the host. And when the message received by the first VTEP equipment is matched with the equivalent forwarding table item, the first VTEP equipment sends the message through a VXLAN tunnel of which the destination address is the address of the appointed VTEP equipment.
In an implementation manner, if the host address advertisement route does not carry an address of a designated VTEP device, the first VTEP device may generate an equivalent forwarding entry corresponding to the host according to the address of the VTEP device that is the same as the ESI of the second VTEP device.
Receiving, by a first VTEP device, a host address advertisement route sent by a second VTEP device belonging to a different multihoming system from the first VTEP device; if the host address announcement route carries the address of the designated VTEP device, an equivalent forwarding table entry corresponding to the host is generated according to the address of the designated VTEP device, so that the first VTEP device forwards the data message to the host corresponding to the host address announcement route through the designated VTEP device.
In one example, as shown in fig. 2, assume that the address of VTEP1 is 1.1.1.1, the address of VTEP2 is 2.2.2.2, the address of VTEP3 is 3.3.3.3, the address of VTEP4 is 4.4.4.4, the address of VTEP5 is 5.5.5.5, VTEP1 is elected as DF, and the service accessed by VM1 is VXLAN10 service. 4 VXLAN tunnels are established on VTEP 4: tunnel 0, tunnel 1, tunnel 2 and tunnel 3. Wherein, the source address of the tunnel 0 is 4.4.4.4, and the destination address is 1.1.1.1; the source address of the tunnel 1 is 4.4.4.4, and the destination address is 2.2.2.2; the source address of the tunnel 2 is 4.4.4.4, and the destination address is 3.3.3.3; the source address of tunnel 3 is 4.4.4.4 and the destination address is 5.5.5.5. Taking VTEP1 and VTEP5 as designated VTEP devices corresponding to VXLAN services having a VXLAN ID of 10 and VM1 corresponding to VXLAN services having a VXLAN ID of 10 as examples, according to the load sharing method of the embodiment of the present disclosure, VTEP1 sends a host address advertisement route for advertising an address of VM1 to VTEP4, where the host address advertisement route includes addresses of VTEP1 and VTEP 5. The VTEP4 receives the host address advertisement route and determines that the host address advertisement route carries the address of the specified VTEP. VTEP4 obtains addresses 1.1.1.1 and 5.5.5.5.5 of VTEP1 and VTEP5 from the host address advertisement route. VTEP4 generates an equivalent forwarding entry corresponding to VM1, where an outgoing interface of the equivalent forwarding entry is a tunnel (tunnel 0) with a destination address of 1.1.1.1 and a tunnel (tunnel 3) with a destination address of 5.5.5.5.5. For other VMs corresponding to VXLAN services having VXLAN ID of 10, the egress interfaces of the corresponding equivalent forwarding table entry are also tunnel 0 and tunnel 3. Thus, on the VTEP4, the VXLAN service with VXLAN ID 10 is load-shared on VTEP1 and VTEP5, but not on VTEP1, VTEP2, VTEP3 and VTEP5, so that the VXLAN service is forwarded as required, and the flexibility and reliability of networking are improved.
In one implementation, the designated VTEP device is configured by a second VTEP device, which may advertise an address of the designated VTEP device via a host address advertisement route. In one example, as shown in fig. 2, a VXLAN service having a VXLAN ID of 10 (hereinafter, referred to as VXLAN10 service) is configured on VTEP1 as an important VXLAN service, and two VTEP devices are required to perform load sharing on VXLAN10 service. VTEP1 may select two VTEP devices from all VTEP devices with the same ESI as the designated VTEP device for load sharing of VXLAN10 traffic. For example, VTEP1 may select VTEP1 and VTEP5 as the designated VTEP device. If VM1 corresponds to VXLAN10 service, after VM1 comes online, VTEP1 sends VTEP4 a host address advertisement route for advertising the address of VM1, which carries the address of VTEP1 and the address of VTEP 5.
In one implementation, the extended community of host address advertisement routes carries the address of the specified VTEP device.
In one example, an extended community attribute for announcing an address of a specified VTEP device may be added, and the extended community attribute may carry the address of the specified VTEP device. The extended community attribute may be added to the route prefix of the MAC/IP advertised route, and sent out along with the MAC/IP advertised route. For example, as shown in fig. 2, VTEP1 selects VTEP1 and VTEP5 as the designated VTEP devices, and VTEP1 may send a host address advertisement route carrying the address of VTEP1 and the address of VTEP5 in the extended community attribute to VTEP 4. VTEP4 obtains the address of VTEP1 and the address of VTEP5 from the extended community attribute of the received host address advertisement route.
The extended community attribute occupies 8 bytes and is divided into Type, Sub-Type, Reserved fields. Wherein, Type can be used to represent the usage range of the extended community attribute, Sub-Type can be used to represent the subtype of the extended community attribute, the combination of Type and Sub-Type can define an extended community attribute, and Type and Sub-Type respectively occupy one byte. Type can be set by convention, for example, Type in EVPN can be set to 0x 06. Sub-Type may take any unused value from 0 to 255. For example, Sub-Type may take 0x 04. The Reserved can be set according to a function of extending the community attribute. For example, in the embodiment of the present disclosure, the extended community attribute is used to notify the address of the specified VTEP device, any part of the Reserved field may be set to the IP address of the specified VTEP device, and the other bits are left blank (e.g., set to 0). In this way, the first VTEP device may obtain the address of the specified VTEP device from the extended community attribute of the host address advertisement route.
In an implementation manner, the host address advertisement route further carries an exclusive identifier, where the exclusive identifier is used to distinguish whether the VXLAN service monopolizes the specified VTEP device. In one example, the extended community attribute of the host address advertisement route carries an exclusive identification. Since there are two possibilities whether VXLAN traffic exclusively specifies a VTEP device, any bit (e.g., the first bit) in the Reserved field in the extended community attribute that is not occupied can be set as the exclusive identification bit. Thus, the VTEP device can distinguish whether the VXLAN service corresponding to the MAC/IP advertised route monopolizes the specified VTEP device according to the value of the monopolizing flag in the extended community attribute of the MAC/IP advertised route. For example, exclusive identification position 0 indicates that VXLAN services corresponding to the MAC/IP advertised route do not exclusively occupy the specified VTEP device, and exclusive identification position 1 indicates that VXLAN services corresponding to the MAC/IP advertised route exclusively occupy the VTEP device.
Fig. 3 shows a flow chart of a load sharing method according to an embodiment of the present disclosure. As shown in fig. 3, the load sharing method further includes:
step S13, if the exclusive flag carried in the host address advertisement route indicates that the VXLAN service corresponding to the host monopolizes the specified VTEP device, then selecting a VTEP device other than the specified VTEP device to forward other VXLAN services newly online.
If the exclusive identifier carried in the network element indicates that the VXLAN service corresponding to the host computer exclusively occupies the specified VTEP device, the network element indicates that other newly online VXLAN services cannot be forwarded by the specified VTEP device, and other newly online VXLAN services can be forwarded by VTEP devices other than the specified VTPE device, so that the exclusivity of the VXLAN service corresponding to the host computer to the specified VTEP device is ensured, and the reliability of important services is improved.
In one implementation, when the exclusive identifier carried in the host address advertisement route indicates that the VXLAN service corresponding to the host monopolizes the specified VTEP device, if there are other VXLAN services using the specified VTEP device as a load sharing device, the other VXLAN services may continue to be forwarded by the specified VTEP device, thereby ensuring service continuity. Meanwhile, if these other VXLAN services are disconnected and then brought online, VTEP devices other than the designated VTPE device need to be selected for forwarding, thereby improving reliability of important services.
Fig. 4 shows a flow chart of a load sharing method according to an embodiment of the present disclosure. The method is applied to second VTEP equipment in an EVPN multi-homing networking, the EVPN multi-homing networking also comprises first VTEP equipment, and the first VTEP equipment is neighbor VTEP equipment which belongs to a different multi-homing system with the second VTEP equipment. As shown in fig. 4, the load sharing method includes:
step S21, when the host goes online, the VXLAN ID of the host corresponding to the VXLAN service and the address of the host are acquired.
In one implementation, when the host goes online, the host sends a gratuitous ARP packet to the second VTEP device, and the second VTEP device can obtain the address of the host from the gratuitous ARP packet.
In one implementation, when the host goes online, the second VTEP device may determine an AC port to which the host is connected, where a VXLAN ID associated with the AC port is a VXLAN ID of a VXLAN service corresponding to the host.
Step S22, if the VXLAN ID corresponding to the host is a designated VXLAN ID, generating a host address advertisement route according to the address of the designated VTEP device and the address of the host, where the designated VTEP device is a VTEP device that shares the load of the VXLAN service corresponding to the host, and the host address advertisement route is used to advertise the address of the host.
A designated VXLAN ID is configured on the second VTEP, which may be a VXLAN ID of an important VXLAN service. The designated VXLAN ID may be configured as desired, or may be added, modified, or deleted as desired, without limitation to this disclosure.
The designated VTEP device can share the load of VXLAN traffic having VXLAN ID as the designated VXLAN ID.
When the VXLAN ID corresponding to the host is the designated VXLAN ID, it indicates that the VTEP device for load sharing of the service of the host is designated, and the second VTEP device may add the address of the corresponding designated VTEP device to the host address advertisement route.
When the VXLAN ID corresponding to the host is not the designated VXLAN ID, indicating that there is no special requirement for the service of the host, the second VTEP device may generate the host address advertisement route in a related art manner.
In one implementation, one or more designated VXLAN IDs may be configured on the second VTEP, and each designated VXLAN ID may correspond to one or more designated VTEP devices.
Step S23, sending the host address advertisement route to the first VTEP device, so that the first VTEP device generates an equivalent forwarding table entry corresponding to the host according to the address of the designated VTEP device.
In one implementation, in step S23, after receiving the host address advertisement route, the first VTEP device may perform processing according to steps S11 to S13.
It should be noted that, in the embodiment of the present disclosure, steps S11 to S13 performed by the first VTEP device and steps S11 to S13 performed by the second VTEP device may be performed by the same VTEP device.
When the host is online, the VXLAN ID of the host corresponding to the VXLAN service and the address of the host are acquired; if the VXLAN ID corresponding to the host is the appointed VXLAN ID, generating a host address announcement route according to the address of the appointed VTEP device and the address of the host, wherein the appointed VTEP device is a VTEP device for carrying out load sharing on VXLAN service corresponding to the host, and the host address announcement route is used for announcing the address of the host; according to the load sharing method of the embodiment of the disclosure, the first VTEP device can generate an equivalent forwarding table entry corresponding to the host according to the address of the designated VTEP device, so that the designated VTEP device is used as a next hop of the equivalent forwarding table entry corresponding to a certain VXLAN service on the first VTEP, thereby realizing on-demand forwarding of the VXLAN service and improving flexibility and reliability of networking.
In one implementation, the load sharing method further includes a process of determining a designated VTEP device, including the following steps: receiving an ES route, wherein the ES route carries ESI; determining the ES route which is the same as the ESI of the equipment as the specified ES route; and selecting the appointed VTEP equipment from the VTEP equipment which sends the appointed ES route.
The ES route is an Ethernet network segment route and is used for DF election, and the ES route carries ESI. There is one DF in a multihoming system. After the host comes online, the DF may send a host address advertisement route to the neighbor VTEP device.
The ES route identical to the ESI of the second VTEP device is an ES route sent by the VTEP device in the same multihoming system, and the second VTEP device needs to select a designated VTEP device from the VTEP device in the same multihoming system, thereby implementing load sharing of the VXLAN service corresponding to the designated VXLAN ID by using the designated VTEP device.
Fig. 5 shows a block diagram of a load sharing device according to an embodiment of the present disclosure. The device is applied to first VTEP equipment in the EVPN multi-homing networking, and the EVPN multi-homing networking also comprises second VTEP equipment which is neighbor VTEP equipment belonging to a different multi-homing system with the first VTEP equipment. As shown in fig. 5, the apparatus 50 includes:
a first receiving module 51, configured to receive a host address advertisement route sent by the second VTEP device, where the host address advertisement route is used to advertise an address of a host;
a first generating module 52, configured to generate an equivalent forwarding table entry corresponding to the host according to the address of the specified VTEP device if the host address announcement route carries the address of the specified VTEP device, so that the first VTEP device forwards the data packet to the host through the specified VTEP device, where the specified VTEP device is a VTEP device that performs load sharing on a VXLAN service corresponding to the host.
In a possible implementation manner, the host address advertisement route further carries an exclusive identifier, where the exclusive identifier is used to distinguish whether VXLAN services corresponding to the host monopolize the specified VTEP device.
Fig. 6 shows a block diagram of a load sharing device according to an embodiment of the present disclosure. As shown in fig. 6, in one implementation, the apparatus 50 further includes:
a selecting module 53, configured to select, if the exclusive identifier carried in the host address advertisement route indicates that the VXLAN service corresponding to the host monopolizes the specified VTEP device, a VTEP device other than the specified VTEP device to forward another VXLAN service that is newly online.
Fig. 7 shows a block diagram of a load sharing device according to an embodiment of the present disclosure. The device is applied to second VTEP equipment in the EVPN multi-homing networking, the EVPN multi-homing networking also comprises first VTEP equipment, and the first VTEP equipment is neighbor VTEP equipment which belongs to a different multi-homing system with the second VTEP equipment. As shown in fig. 7, the apparatus 60 includes:
the obtaining module 61 is configured to obtain a VXLAN ID of a host corresponding to a VXLAN service and an address of the host when the host is online;
a second generating module 62, configured to generate a host address notification route according to an address of a specified VTEP device and an address of the host if the VXLAN ID corresponding to the host is a specified VXLAN ID, where the specified VTEP device is a VTEP device that shares load of the VXLAN service corresponding to the host, and the host address notification route is used to notify an address of the host;
a sending module 63, configured to send the host address advertisement route to the first VTEP device, so that the first VTEP device generates an equivalent forwarding table entry corresponding to the host according to the address of the specified VTEP device.
Fig. 8 shows a block diagram of a load sharing device according to an embodiment of the present disclosure. As shown in fig. 8, in one implementation, the apparatus 60 further includes:
a second receiving module 64, configured to receive an ES route, where the ES route carries an ethernet segment identifier ESI;
a determining module 65, configured to determine an ES route that is the same as the ESI of the present apparatus as an specified ES route;
a selecting module 66, configured to select the specified VTEP device from the VTEP devices that send the specified ES route.
FIG. 9 illustrates a block diagram of a machine-readable storage medium according to an embodiment of the present disclosure. As shown in fig. 9, the machine-readable storage medium 902 stores machine-executable instructions that, when invoked and executed by the processor 901, cause the processor 901 to implement the load sharing methods described above.
The machine-readable storage medium 902 referred to herein may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: a RAM (random Access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical 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 (14)

1. A load sharing method is applied to a first extensible virtual local area network tunnel endpoint (VTEP) device in an Ethernet Virtual Private Network (EVPN) multi-homing network, wherein the EVPN multi-homing network further comprises a second VTEP device, and the second VTEP device is a neighbor VTEP device belonging to a different multi-homing system from the first VTEP device, and the method comprises the following steps:
receiving a host address advertisement route sent by the second VTEP device, wherein the host address advertisement route is used for advertising the address of a host;
if the host address announcement route carries the address of the designated VTEP device, generating an equivalent forwarding table corresponding to the host according to the address of the designated VTEP device, so that the first VTEP device forwards the data packet to the host through the designated VTEP device, wherein the designated VTEP device is one or more VTEP devices for load sharing of VXLAN services corresponding to the host.
2. The method according to claim 1, wherein the host address advertisement route further carries an exclusive identifier, and the exclusive identifier is used to distinguish whether VXLAN services corresponding to the host monopolize the specified VTEP device.
3. The method of claim 2, further comprising:
and if the exclusive identifier carried in the host address announcement route indicates that the VXLAN service corresponding to the host computer exclusively occupies the specified VTEP equipment, selecting the VTEP equipment except the specified VTEP equipment to forward other newly-online VXLAN services.
4. A load sharing method is applied to a second VTEP device in an EVPN multi-homing network, wherein the EVPN multi-homing network further comprises a first VTEP device, and the first VTEP device is a neighbor VTEP device belonging to a different multi-homing system from the second VTEP device, and the method comprises the following steps:
when the host computer is online, acquiring a VXLAN ID of the host computer corresponding to the VXLAN service and an address of the host computer;
if the VXLAN ID corresponding to the host is the appointed VXLAN ID, generating a host address notification route according to the address of the appointed VTEP device and the address of the host, wherein the appointed VTEP device is one or more VTEP devices for carrying out load sharing on VXLAN service corresponding to the host, and the host address notification route is used for notifying the address of the host;
and sending the host address advertisement route to the first VTEP equipment so that the first VTEP equipment generates an equivalent forwarding table corresponding to the host according to the address of the specified VTEP equipment.
5. The method of claim 4, further comprising:
receiving an Ethernet segment ES route, wherein the ES route carries an Ethernet segment identifier ESI;
determining the ES route which is the same as the ESI of the equipment as the specified ES route;
and selecting the appointed VTEP equipment from the VTEP equipment which sends the appointed ES route.
6. A load sharing apparatus applied to a first VTEP device in an EVPN multihoming networking, wherein the EVPN multihoming networking further comprises a second VTEP device, and the second VTEP device is a neighbor VTEP device belonging to a different multihoming system from the first VTEP device, the apparatus comprising:
a first receiving module, configured to receive a host address advertisement route sent by the second VTEP device, where the host address advertisement route is used to advertise an address of a host;
a first generating module, configured to generate an equivalent forwarding table entry corresponding to the host according to the address of the specified VTEP device if the host address announcement route carries the address of the specified VTEP device, so that the first VTEP device forwards the data packet to the host through the specified VTEP device, where the specified VTEP device is one or more VTEP devices that perform load sharing on VXLAN services corresponding to the host.
7. The apparatus according to claim 6, wherein the host address advertisement route further carries an exclusive identifier, and the exclusive identifier is used to distinguish whether VXLAN services corresponding to the host monopolize the specified VTEP device.
8. The apparatus of claim 7, further comprising:
and the selecting module is used for selecting the VTEP equipment except the appointed VTEP equipment to forward other newly-online VXLAN services if the exclusive identifier carried in the host address notification route indicates that the VXLAN service corresponding to the host computer is exclusive to the appointed VTEP equipment.
9. A load sharing apparatus applied to a second VTEP device in an EVPN multihoming networking, wherein the EVPN multihoming networking further comprises a first VTEP device, and the first VTEP device is a neighbor VTEP device belonging to a different multihoming system from the second VTEP device, the apparatus comprising:
the acquisition module is used for acquiring a VXLAN ID of a host corresponding to VXLAN service and the address of the host when the host is online;
a second generating module, configured to generate a host address advertisement route according to an address of a specified VTEP device and an address of the host if the VXLAN ID corresponding to the host is a specified VXLAN ID, where the specified VTEP device is one or more VTEP devices that share a load of the VXLAN service corresponding to the host, and the host address advertisement route is used to advertise the address of the host;
a sending module, configured to send the host address advertisement route to the first VTEP device, so that the first VTEP device generates an equivalent forwarding table entry corresponding to the host according to the address of the specified VTEP device.
10. The apparatus of claim 9, further comprising:
a second receiving module, configured to receive an ES route, where the ES route carries an ethernet segment identifier ESI;
a determining module, configured to determine an ES route that is the same as the ESI of the device as an specified ES route;
and the selecting module is used for selecting the appointed VTEP equipment from the VTEP equipment which sends the appointed ES route.
11. A load sharing device comprising a processor and a machine-readable storage medium having stored thereon machine-executable instructions executable by the processor to perform the method of any one of claims 1 to 3.
12. A machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to: carrying out the method of any one of claims 1 to 3.
13. A load sharing device comprising a processor and a machine-readable storage medium having stored thereon machine-executable instructions executable by the processor to perform the method of claim 4 or 5.
14. A machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to: implementing the method of claim 4 or 5.
CN201810296399.0A 2018-03-30 2018-03-30 Load sharing method and device Active CN108494701B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810296399.0A CN108494701B (en) 2018-03-30 2018-03-30 Load sharing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810296399.0A CN108494701B (en) 2018-03-30 2018-03-30 Load sharing method and device

Publications (2)

Publication Number Publication Date
CN108494701A CN108494701A (en) 2018-09-04
CN108494701B true CN108494701B (en) 2021-12-10

Family

ID=63318026

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810296399.0A Active CN108494701B (en) 2018-03-30 2018-03-30 Load sharing method and device

Country Status (1)

Country Link
CN (1) CN108494701B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109921992B (en) * 2019-03-26 2021-07-23 新华三技术有限公司 Path selection method and device, network equipment and ED equipment
CN109995651B (en) * 2019-03-28 2021-05-14 新华三技术有限公司 Pseudo wire establishing method and device
CN112242958B (en) * 2019-07-19 2022-09-09 华为技术有限公司 Load sharing method and device
CN110311860B (en) * 2019-07-24 2022-06-24 北京天融信网络安全技术有限公司 Multilink load balancing method and device under VXLAN
CN110505152B (en) * 2019-09-11 2022-02-22 迈普通信技术股份有限公司 Route filtering method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780437A (en) * 2014-02-20 2014-05-07 杭州华三通信技术有限公司 Information synchronization method and device
CN105791072A (en) * 2014-12-22 2016-07-20 华为数字技术(苏州)有限公司 Access method and device of Ethernet virtual network
CN106656843A (en) * 2015-10-30 2017-05-10 华为技术有限公司 Load sharing method and related device
CN106936939A (en) * 2015-12-31 2017-07-07 华为技术有限公司 A kind of message processing method, relevant apparatus and NVO3 network systems

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780437A (en) * 2014-02-20 2014-05-07 杭州华三通信技术有限公司 Information synchronization method and device
CN105791072A (en) * 2014-12-22 2016-07-20 华为数字技术(苏州)有限公司 Access method and device of Ethernet virtual network
CN106656843A (en) * 2015-10-30 2017-05-10 华为技术有限公司 Load sharing method and related device
CN106936939A (en) * 2015-12-31 2017-07-07 华为技术有限公司 A kind of message processing method, relevant apparatus and NVO3 network systems

Also Published As

Publication number Publication date
CN108494701A (en) 2018-09-04

Similar Documents

Publication Publication Date Title
CN108494701B (en) Load sharing method and device
US9516118B2 (en) Scalable segment identifier allocation in segment routing
CN110661711B (en) Method for generating label forwarding table, message sending method, device and equipment
CN110912796B (en) Communication method, device and system
CN112087386B (en) Message processing method, device and system
CN108600074B (en) Method and device for forwarding multicast data message
CN109729012B (en) Unicast message transmission method and device
CN106572021B (en) Method for realizing network virtualization superposition and network virtualization edge node
CN108199968B (en) Route processing method and device
CN108964940B (en) Message sending method and device and storage medium
CN108494686B (en) Route processing method and device
CN106982163B (en) Method and gateway for acquiring route on demand
CN109412926B (en) Tunnel establishment method and device
CN108306806B (en) Message forwarding method and device
CN108600069B (en) Link switching method and device
JP2023515112A (en) Packet transmission methods, devices and systems
CN108199947B (en) Designated forwarder DF election method and device
CN107948066B (en) Designated forwarder DF election method, system and device
CN108600070B (en) Designated forwarder DF election method and device
CN114143257A (en) Method for generating table entry, method, device and system for sending message
CN113660164A (en) Message forwarding method and network equipment
CN108306825B (en) Equivalent forwarding table item generation method and VTEP device
CN108183858B (en) Route introducing method and device
CN112532563B (en) Message sending method and device
CN108768845B (en) Multi-homing host routing synchronization method and device

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