WO2018188425A1 - Vxlan single-homing and dual-homing hybrid access method and apparatus, pe device and storage medium - Google Patents

Vxlan single-homing and dual-homing hybrid access method and apparatus, pe device and storage medium Download PDF

Info

Publication number
WO2018188425A1
WO2018188425A1 PCT/CN2018/077796 CN2018077796W WO2018188425A1 WO 2018188425 A1 WO2018188425 A1 WO 2018188425A1 CN 2018077796 W CN2018077796 W CN 2018077796W WO 2018188425 A1 WO2018188425 A1 WO 2018188425A1
Authority
WO
WIPO (PCT)
Prior art keywords
lag
interface
vxlan
esi
local
Prior art date
Application number
PCT/CN2018/077796
Other languages
French (fr)
Chinese (zh)
Inventor
唐益慰
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018188425A1 publication Critical patent/WO2018188425A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • 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

Definitions

  • the present disclosure relates to the field of cloud computing and data center technologies, and in particular, to a VXLAN (Virtual Extensible LAN) single-homing and dual-homing hybrid access method, device, PE (Provider Edge, Carrier Edge) device and storage. medium.
  • VXLAN Virtual Extensible LAN
  • PE Provider Edge, Carrier Edge
  • VXLAN EVPN Ethernet Virtual Private Network
  • CE Customer Edge
  • FIG. 1 For ease of understanding, a typical networking diagram of VXLAN single-homed and dual-homed hybrid access shown in FIG. 1 is illustrated.
  • TS1 is dual-homed to DUT1 and DUT2, PC1 is directly connected to DUT1, and PC2 is single-homed.
  • the ERP For each PE device that is configured with the same ESI for the MC-LAG, the ERP must be negotiated with the RT (Router Type)-4, and the DF (Designated Forwarder) is elected. , the forwarding device is configured to filter the excess BUM (Broadcast & Unknown & Unicast & Multicast, Broadcast & Unknown Unicast & Multicast) traffic, where the BUM message is a multicast message, and only the DF device can receive the multicast message, and the Non-DF The device does not receive multicast messages.
  • BUM Broadcast & Unknown & Unicast & Multicast
  • the PE device needs to carry the configured ESI to form a multi-active/single-lived redundant route on the remote PE device.
  • the protocol specified scheme can well support existing scenarios.
  • multicast message forwarding there are certain problems with the protocol specified by the protocol.
  • the BUM packet is sent to the Non-BOM packet.
  • the non-DF PE device broadcasts the packet to the network side. After receiving the traffic, the DF PE device cannot determine the ESI of the BUM packet source. Therefore, the DF PE device sends the BUM packet to the original CE. , causing the BUM message to loop back.
  • Embodiments of the present disclosure provide a VXLAN single-homing and dual-homing hybrid access method, apparatus, PE device, and storage medium.
  • the method further includes: prohibiting a PE device that is the same as the ESI of the MC-LAG from being a BGP (Border Gateway Protocol) EVPN (Ethernet Virtualization) a private network) neighbor; determining a DF state of the ESI of the MC-LAG according to the active/standby state of the MC-LAG.
  • BGP Border Gateway Protocol
  • EVPN Ethernet Virtualization
  • the load sharing forwards the unicast packet and broadcasts the received BUM packet, including: if receiving from the MC-LAG interface and the single-homed interface And the unicast packet is forwarded according to the forwarding table entry; if the BUM packet is received from the MC-LAG interface and the single-homed interface, the broadcast is directly in the VXLAN domain.
  • the BUM message is sent; if the BUM message is received from the PeerLink interface, the BUM message is prohibited from being broadcast to the MC-LAG interface and the VXLAN EVPN network side in the VXLAN domain, only to the single The interface broadcasts the BUM message; if the BUM message is received from the VXLAN EVPN network, the BUM message is prohibited from being broadcast to the PeerLink interface in the VXLAN domain, and only the single-homed interface is
  • the MC-LAG interface that meets the preset condition broadcasts the BUM message; the preset condition is that the DF state of the ESI configured on the MC-LAG interface is DF.
  • the method further includes: if the peer PE device is faulty, updating the active/standby state of the MC-LAG corresponding to the local PE device, and re-determining the current and standby states according to the updated MC-LAG status.
  • the DF state of the ESI of the MC-LAG corresponding to the PE device if the BGP device detects that the BGP EVPN neighbor device is faulty, the corresponding forwarding table entry transmitted by the BGP EVPN neighbor device is deleted; if the MC of the local PE device If the LAG interface is faulty, the forwarding table entry corresponding to the MC-LAG interface is deleted, and the BGP device is notified to the BGP EVPN neighboring device to delete the remote entry; if the MC-LAG interface of the local PE device is faulty.
  • the load balancing forwards the unicast packet and broadcasts the received BUM packet according to the preset filtering and forwarding rule, including: when receiving the unknown unicast packet, determining whether the VXLAN domain is The broadcast function in the unknown packet domain is enabled. If the broadcast function in the unknown packet domain is enabled, the unknown unicast packet is broadcasted in the VXLAN domain according to the preset filter forwarding rule. Otherwise, the unknown ticket is discarded. Broadcast message.
  • the embodiment of the present disclosure provides a VXLAN single-homing and dual-homing hybrid access device, which is executed by a PE device, and includes: a configuration module configured to perform a single dual-homing hybrid access configuration; wherein, the MC-LAG is configured, and the configuration An ESI corresponding to the MC-LAG corresponding to the MC-LAG; the MC-LAG is configured with the same ESI as the MC-LAG corresponding to the peer PE device; and the binding module is configured to connect the MC-LAG interface and the The PeerLink interface and the single-homed interface are bound to the VXLAN domain.
  • the forwarding module is configured to load and forward unicast packets in the VXLAN domain and broadcast and receive in the VXLAN domain according to the preset filtering and forwarding rules. BUM message to.
  • the forwarding module is configured to: if the unicast packet is received from the MC-LAG interface and the single-homed interface, forward the unicast packet according to a forwarding table entry; if from the MC- Receiving, by the LAG interface and the single-homed interface, the BUM message, directly broadcasting the BUM message in the VXLAN domain; if receiving the BUM message from the PeerLink interface, in the VXLAN domain Disabling the broadcast of the BUM message to the MC-LAG interface and the VXLAN EVPN network side, and only broadcasting the BUM message to the single-homed interface; if receiving the BUM message from the VXLAN EVPN network side, Disabling the broadcast of the BUM message to the PeerLink interface in the VXLAN domain, and only broadcasting the BUM message to the single-homed interface and the MC-LAG interface that meets the preset condition; the preset condition is:
  • the DF state of the ESI of the MC-LAG interface configuration is
  • the device further includes a processing module, and the processing module is configured to: if the peer PE device is faulty, update the active/standby state of the MC-LAG corresponding to the local PE device, and according to the updated If the BGP EVPN neighbor device is faulty, the BGP EVPN neighbor device sends the corresponding forwarding table entry.
  • the MC-LAG interface of the local PE device is faulty, delete the forwarding table entry corresponding to the MC-LAG interface, and notify the BGP device to delete the remote entry of the BGP EVPN neighbor device; If the MC-LAG interface of the PE device is faulty, the status of the MC-LAG corresponding to the local PE device is updated, and the MC corresponding to the local PE device is re-determined according to the updated active/standby status of the MC-LAG.
  • the processor executes the data stored in the memory, the following operations are also performed: when the single-double-homing access configuration is performed, the PE device that is the same as the ESI of the MC-LAG is prohibited from being a BGP EVPN. a neighbor; determining a DF state of the ESI of the MC-LAG according to the active/standby state of the MC-LAG.
  • the load sharing forwards the unicast packet and broadcasts the received BUM packet, including: if receiving from the MC-LAG interface and the single-homed interface And the unicast packet is forwarded according to the forwarding table entry; if the BUM packet is received from the MC-LAG interface and the single-homed interface, the broadcast is directly in the VXLAN domain.
  • the BUM message is sent; if the BUM message is received from the PeerLink interface, the BUM message is prohibited from being broadcast to the MC-LAG interface and the VXLAN EVPN network side in the VXLAN domain, only to the single The interface broadcasts the BUM message; if the BUM message is received from the VXLAN EVPN network, the BUM message is prohibited from being broadcast to the PeerLink interface in the VXLAN domain, and only the single-homed interface is
  • the MC-LAG interface that meets the preset condition broadcasts the BUM message; the preset condition is that the DF state of the ESI configured on the MC-LAG interface is DF.
  • the active/standby state of the MC-LAG, and the DF state of the ESI of the MC-LAG corresponding to the local PE device is re-determined according to the updated active/standby state of the MC-LAG; if the PeerLink interface of the local PE device If the DF status of the ESI of the MC-LAG corresponding to the PeerLink interface is Non-DF, all MC-LAG interfaces are closed.
  • Embodiments of the present disclosure provide a computer storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of any of the above methods.
  • the present disclosure combines the ESI technology and the MC-LAG Peerlink technology, and sets the filtering and forwarding rules on the basis of the disclosure, thereby supporting the dual-homing load sharing transmission, and solving the problem that the BUM packet loopback and/or the BUM packet cannot be received.
  • the problem is that the embodiment of the present disclosure can support the application scenario of single-homing and dual-homing hybrid access.
  • FIG. 1 is a networking diagram of VXLAN single-homing and dual-homing hybrid access in the related art
  • FIG. 2 is a schematic diagram of a BUM message loopback in the related art
  • FIG. 4 is a flowchart of a VXLAN single-homing and dual-homing hybrid access method according to a first embodiment of the present disclosure
  • FIG. 5 is a flow chart showing the steps of performing a single dual-homed hybrid access configuration in accordance with a second embodiment of the present disclosure
  • FIG. 6 is a schematic diagram of a VXLAN single-homing and dual-homing hybrid access network according to a second embodiment of the present disclosure
  • FIG. 8 is a schematic diagram of a network for forwarding a BUM message on a CE side according to a third embodiment of the present disclosure
  • FIG. 9 is a flowchart of steps of forwarding a PeerLink BUM message according to a third embodiment of the present disclosure.
  • FIG. 10 is a schematic diagram of a network for forwarding a PeerLink BUM message according to a third embodiment of the present disclosure.
  • FIG. 13 is a schematic diagram of a PeerLink interface failure according to a fourth embodiment of the present disclosure.
  • FIG. 14 is a schematic diagram of a PeerLink interface failure according to a fourth embodiment of the present disclosure.
  • the BGP EVPN neighbor device If the BGP EVPN neighbor device is faulty, the BGP EVPN neighbor device sends the corresponding forwarding table entry.
  • This embodiment combines the ESI technology and the MC-LAG Peerlink technology, and sets the filtering and forwarding rules on the basis of this.
  • the VXLAN packet does not have an ESI label
  • the BUM packet loopback and the BUM packet do not occur.
  • This embodiment can support the application scenario of single-homing and dual-homing hybrid access.
  • FIG. 5 is a flow chart showing steps of performing a single dual-homing hybrid access configuration according to a second embodiment of the present disclosure
  • FIG. 6 is a schematic diagram of a VXLAN single-homing and dual-homing hybrid access network according to a second embodiment of the present disclosure.
  • TS1, PC1, PC2, and TS2 are CE devices
  • DUT1, DUT2, and DUT3 are PE devices
  • TS1 is dual-homed to DUT1 and DUT2
  • PC1 is directly connected to DUT1
  • PC2 is directly connected to DUT2
  • TS2 is single. Go to DUT3.
  • the MC-LAG is configured on the MC-LAG interface of the DUT1 and the DUT2, and the MC-LAC is set up between the DUT1 (the local PE device), the TS1 (the CE device), and the DUT2 (the peer PE device).
  • the MC-LAG corresponding to DUT1 is master (main)
  • the DF of the MC-LAG is marked as DF
  • the MC-LAG corresponding to DUT2 is backup
  • Step S520 Configure a PeerLink link on the PeerLink interface of the local PE device.
  • the local PE device carries the ESI of the MC-LAG corresponding to the local PE device in the RT-2 routing information. After receiving the RT-2 routing information, the BGP EVPN neighbor device can form a corresponding redundant route.
  • Step S550 Configure a filtering and forwarding rule and a fault handling rule for the local PE device.
  • the unicast forwarding mechanism if the unicast packet is received from the MC-LAG interface and the single-homed interface, the unicast packet is forwarded according to the forwarding table entry. Further, when receiving the unicast packet from the MC-LAG interface and the single-homed interface, it is determined whether the forwarding table entry corresponding to the unicast packet exists in the forwarding table, and if yes, forwarding according to the forwarding table entry, if not If yes, the unicast packet is an unknown unicast packet. If the unknown broadcast is allowed, the packet is forwarded according to the preset filtering and forwarding rule. If the unknown broadcast is not allowed, the unknown unicast packet is discarded. Further, if the unicast packet is received from the access side, the ESI load sharing routing information (forwarding table entry) advertised by the BGP EVPN neighbor device included in the forwarding table may be used for load sharing forwarding.
  • the fault handling rules include:
  • the active/standby status of the MC-LAG corresponding to the local PE device is updated, and the corresponding PE device is re-determined according to the updated active/standby status of the MC-LAG.
  • the filtering and forwarding rules are set to ensure that the loopback problem does not occur in the BUM packets.
  • the dual-homing node it can achieve local-to-distal load sharing, remote-to-local load sharing, and protection against device or link failure.
  • the single-homing and dual-homing hybrid access method in this embodiment can support the normal forwarding of unicast and multicast packets, and does not affect the standard forwarding rules of VXLAN packets from other vendors on the network side.
  • This embodiment further describes the use of filter forwarding rules.
  • the execution subject is DUT1.
  • Step S710 receiving traffic from the CE device side.
  • step S720 it is determined whether the traffic is a BUM traffic; if yes, step S730 is performed; if not, step S740 is performed.
  • step S740 if it is a unicast traffic, the forwarding table is queried to determine whether there is a forwarding entry (forwarding table entry) corresponding to the unicast traffic in the forwarding table; if yes, step S750 is performed; if no, step S730 is performed.
  • Step S750 If the forwarding entry corresponding to the unicast traffic is queried in the forwarding table, the unicast traffic is forwarded according to the forwarding entry.
  • Broadcasting the unicast traffic in the VXLAN domain includes forwarding the unicast traffic to a single-homed interface, an MC-LAG interface, a PeerLink interface, and a VXLAN EVPN network side in addition to the interface that receives the traffic.
  • BUM traffic from TS1 will be forwarded to PC1, DUT1, PC2, DUT3 and TS2.
  • FIG. 9 is a flow chart showing the steps of forwarding a PeerLink BUM message according to the third embodiment of the present disclosure.
  • 10 is a network diagram for forwarding a PeerLink BUM message according to the third embodiment of the present disclosure.
  • Step S910 receiving traffic from the Peerlink interface.
  • step S920 it is determined whether the traffic is a BUM traffic; if yes, step S930 is performed; if not, step S940 is performed.
  • step S940 if it is a unicast traffic, the forwarding table is queried to determine whether there is a forwarding entry corresponding to the unicast traffic in the forwarding table; if yes, step S950 is performed; if no, step S930 is performed.
  • Step S950 forwarding the unicast traffic according to the forwarding entry.
  • FIG. 11 is a flowchart of a step of forwarding a network side BUM message according to a third embodiment of the present disclosure.
  • FIG. 12 is a network diagram of forwarding a network side BUM message according to a third embodiment of the present disclosure.
  • step S1110 traffic from the VXLAN EVPN network side is received.
  • step S1130 if it is BUM traffic, it is broadcast to the single-homed access side and the dual-homing ESI DF access side in the VXLAN domain, and is not broadcast to the Peerlink side, and the ESI Non-DF access port is filtered.
  • the DUT1 after receiving the BUM message from the VXLAN EVPN network side, the DUT1 can send the BUM message to the PC1 and the TS1, and after receiving the BUM message from the VXLAN EVPN network side, the DUT2 receives the BUM message from the VXLAN EVPN network side.
  • the BUM message can be forwarded to PC2.
  • FIG. 15 is a schematic diagram of an MC-LAC interface failure according to a fourth embodiment of the present disclosure.
  • the DUT1 receives the BUM message from the TS1, and then forwards the BUM message to the PC1 through the AC4 and forwards it to the DUT2 through the VXLAN EVPN network according to the procedure shown in Figure 7, through the PeerLink chain. The way is forwarded to DUT2.
  • FIG. 16 is a schematic diagram of an MC-LAC interface failure according to a fourth embodiment of the present disclosure.
  • the DUT1 receives the BUM message from the DUT3 through the VXLAN EVPN network, and then forwards the BUM message to the PC1 through the AC4 and forwards it to the TS1 through the AC1 according to the procedure shown in FIG.
  • the DTU2 forwards the BUM message to the PC2 through the AC5 according to the procedure shown in FIG. 11, and the DF state of the ESI of the MC-LAG configured by the MC-LAG interface of the DUT2. It is Non DF, so DUT2 does not send BUM messages to TS1.
  • FIG. 17 is a schematic diagram of a failure of a PE device according to a fourth embodiment of the present disclosure.
  • This embodiment provides a VXLAN single-homing and dual-homing hybrid access device.
  • 18 is a structural diagram of a VXLAN single-homing and dual-homing hybrid access device according to a fifth embodiment of the present disclosure.
  • the VXLAN single-homing and dual-homing hybrid access device of this embodiment may be disposed on the PE device side.
  • the VXLAN single-homed and dual-homed hybrid access device includes:
  • the configuration module 1810 is configured to perform a single dual-homing hybrid access configuration, where the MC-LAG is configured, and the PeerLink interface corresponding to the MC-LAG is configured; and the MC-LAG interface is configured with the peer PE.
  • the binding module 1820 is configured to bind the MC-LAG interface, the PeerLink interface, and the single-homed interface to the VXLAN domain.
  • the forwarding module 1830 is configured to load and forward the unicast packet and broadcast the received BUM packet in the VXLAN domain according to a preset filtering and forwarding rule.
  • the forwarding module 1830 is configured to:
  • the unicast packet is received from the MC-LAG interface and the single-homed interface, the unicast packet is forwarded according to the forwarding table entry;
  • the BUM message is received from the MC-LAG interface and the single-homed interface, the BUM message is directly broadcasted in the VXLAN domain;
  • the BUM message is prohibited from being broadcast to the MC-LAG interface and the VXLAN EVPN network side in the VXLAN domain, and only the single-homed interface is broadcasted to the single-homed interface.
  • the BUM message is prohibited from being broadcast to the PeerLink interface in the VXLAN domain, and only the single-homed interface and the MC-LAG interface that meet the preset condition are The BUM message is broadcasted; the preset condition is that the DF state of the ESI configured on the MC-LAG interface is DF.
  • the apparatus further includes a processing module (not shown).
  • the processing module is configured to:
  • the active/standby state of the MC-LAG corresponding to the local PE device is updated, and the MC-LAG corresponding to the local PE device is re-determined according to the updated active/standby state of the MC-LAG.
  • DF state of ESI If the fault of the peer PE device is detected, the active/standby state of the MC-LAG corresponding to the local PE device is updated, and the MC-LAG corresponding to the local PE device is re-determined according to the updated active/standby state of the MC-LAG.
  • the forwarding module 1830 is configured to: when the unicast packet is received, if the unicast packet has a corresponding forwarding table entry, forward the packet according to the forwarding table rule; and receive the unknown unicast packet. And determining, in the VXLAN domain, whether the broadcast function in the unknown packet domain is enabled; if the broadcast function in the unknown packet domain is enabled, the unknown unicast packet is broadcasted in the VXLAN domain according to a preset filtering and forwarding rule; Otherwise, the unknown unicast message is discarded.
  • the embodiment further provides a computer program, a storage medium storing the program, and a PE device.
  • the program is executed to implement: performing a single dual-homing hybrid access configuration; wherein, configuring an MC-LAG, and configuring a PeerLink interface corresponding to the MC-LAG; configuring, on the MC-LAG interface, the MC-LAG The same ESI of the MC-LAG corresponding to the peer PE device; the MC-LAG interface, the PeerLink interface, and the single-homed interface are bound to the VXLAN domain; in the single-and-double hybrid access scenario, the packet is forwarded according to preset filtering.
  • the rule is that in the VXLAN domain, the load sharing forwards the unicast packet and broadcasts the received broadcast & unknown unicast & multicast BUM message.
  • the method further includes: prohibiting the PE device that is the same as the ESI of the MC-LAG from being a border gateway protocol BGP Ethernet virtual private network EVPN neighbor; The active/standby state of the MC-LAG is determined, and the DF state of the ESI of the MC-LAG is determined.
  • the load sharing forwards the unicast packet and broadcasts the received BUM packet, including: if the MC-LAG interface and the single-homing interface are Receiving the unicast packet, and forwarding the unicast packet according to the forwarding table entry; if the BUM packet is received from the MC-LAG interface and the single-homed interface, directly broadcasting in the VXLAN domain.
  • the BUM message if the BUM message is received from the PeerLink interface, the BUM message is prohibited from being broadcast to the MC-LAG interface and the VXLAN EVPN network side in the VXLAN domain, only to the The single-homed interface broadcasts the BUM message; if the BUM message is received from the VXLAN EVPN network side, the BUM message is prohibited from being broadcast to the PeerLink interface in the VXLAN domain, and only the single-homed interface is And the MC-LAG interface that meets the preset condition broadcasts the BUM
  • the MC-LAG interface of the local PE device is used, If the fault occurs, the active/standby status of the MC-LAG corresponding to the local PE device is updated, and the DF status of the ESI of the MC-LAG corresponding to the local PE device is re-determined according to the updated active/standby status of the MC-LAG; If the PeerLink interface of the local PE device is faulty, and the DF state of the ESI of the MC-LAG corresponding to the PeerLink interface is Non-DF, all MC-LAG interfaces are closed.
  • the load sharing forwards the unicast packet and broadcasts the received BUM packet, including: determining the VXLAN domain when receiving the unknown unicast packet If the broadcast function in the unknown packet domain is enabled, if the broadcast function in the unknown packet domain is enabled, the unknown unicast packet is broadcasted in the VXLAN domain according to the preset filtering and forwarding rule; otherwise, the unknown is discarded. Unicast message.
  • the storage medium is mainly configured to store the above program. Therefore, the program in the storage medium is not described in detail in this embodiment; and the storage medium can store the above program.
  • the storage medium may be a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of the method of the embodiments of the invention.
  • FIG. 19 is a schematic diagram of a hardware structure of a PE device that implements a VXLAN single-homed and dual-homed hybrid access method according to an embodiment of the present disclosure.
  • PE device 1900 can include one or more (only one shown) processor 1910 (processor 1910 can include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA).
  • processor 1910 can include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA).
  • a memory 1920 configured to store data and a data transceiver 1930 configured as a communication function.
  • the structure shown in FIG. 19 is merely illustrative and does not impose a single limitation on the structure of the above electronic device.
  • the PE device 1900 may further include more or less components than those shown in FIG. 19 by splitting or merging the above functions, or have a configuration different from that shown in FIG.
  • the memory 1920 can be configured as a software program and a module for storing application software, and the program instructions/modules corresponding to the VXLAN single-homed and dual-homed hybrid access methods corresponding to the PE device disclosed in the foregoing embodiment can be stored in the memory 1920, regarding the VXLAN list.
  • the dual-homing hybrid access method has been described in detail in the previous embodiments, and thus the present embodiment will not be repeated in detail.
  • the processor 1910 performs various functional applications and data processing by executing (executing) software programs and modules stored in the memory 1920, that is, implementing the above method.
  • Memory 1920 can include high speed random access memory, and can also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • memory 1920 can further include memory (cloud memory) remotely located relative to processor 1910, which can be connected to PE device 1900 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the data transceiver 1930 is configured to receive or transmit data via a network.
  • the network specific examples described above may include a wireless network provided by a communication provider of the PE device 1900.
  • the data transceiver 1930 includes a NIC (Network Interface Controller) that can be connected to other network devices through a base station to communicate with the Internet.
  • data transceiver 1930 includes an RF (Radio Frequency) module configured to communicate with the Internet wirelessly.
  • NIC Network Interface Controller
  • the solution provided by the embodiment of the present disclosure is configured to perform a single-homing hybrid access configuration, where the MC-LAG is configured, and the PeerLink interface corresponding to the MC-LAG is configured; and the MC-LAG interface is configured and configured on the MC-LAG.
  • the load sharing forwards the unicast packet and broadcasts the received BUM packet, which combines the ESI technology and the MC-LAG Peerlink technology, and sets the filtering and forwarding rules on the basis of the VXLAN domain.
  • the load sharing is performed, and the problem that the BUM packet loopback and/or the BUM packet cannot be received is solved. Therefore, the embodiment of the present disclosure can support the application scenario of single-homing and dual-homing hybrid access.

Abstract

Disclosed are a VXLAN single-homing and dual-homing hybrid access method and apparatus, a PE device and a storage medium. The method comprises: executing single-homing and dual-homing hybrid access configuration, comprising configuring a Multi-chassis Link Aggregation Group (MC-LAG) interface and configuring a PeerLink interface corresponding to the MC-LAG; configuring an Ethernet segment identification (ESI) of the MC-LAG interface and a designated forwarder (DF) election rule; binding the MC-LAG interface, the PeerLink interface, and other single-homing and dual-homing interfaces to a VXLAN domain; and in a single-homing and dual-homing hybrid access scenario, load sharing and forwarding a unicast message and broadcasting a received BUM message in the VXLAN domain according to a preset filtration forwarding rule.

Description

VXLAN单归和双归混合接入方法、装置、PE设备和存储介质VXLAN single-homing and dual-homing hybrid access method, device, PE device and storage medium
相关申请的交叉引用Cross-reference to related applications
本申请基于申请号为201710236485.8、申请日为2017年04月12日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。The present application is based on a Chinese patent application filed on Jan. 12, 2017, the entire disclosure of which is hereby incorporated by reference.
技术领域Technical field
本公开涉及云计算和数据中心技术领域,特别是涉及一种VXLAN(Virtual Extensible LAN,虚拟扩展局域网)单归和双归混合接入方法、装置、PE(Provider Edge,运营商边缘)设备和存储介质。The present disclosure relates to the field of cloud computing and data center technologies, and in particular, to a VXLAN (Virtual Extensible LAN) single-homing and dual-homing hybrid access method, device, PE (Provider Edge, Carrier Edge) device and storage. medium.
背景技术Background technique
目前,VXLAN EVPN(Ethernet Virtual Private Network,以太网虚拟专用网络)技术作为用于数据中心大二层互联的主要技术,在IETF(The Internet Engineering Task Force,国际互联网工程任务组)的RFC7432标准中,对于CE(Customer Edge,用户网络边缘)设备多归混合接入到PE设备的场景有相应的描述。At present, VXLAN EVPN (Ethernet Virtual Private Network) technology is the main technology used for data center two-layer interconnection. In the RFC7432 standard of IETF (The Internet Engineering Task Force), There are corresponding descriptions for the scenario where the CE (Customer Edge) device is connected to the PE device.
为了便于理解,以图1所示的VXLAN单归和双归混合接入的典型组网图进行说明,图1中,TS1双归接入DUT1和DUT2,PC1单归接入DUT1,PC2单归接入DUT2,TS2单归接入DUT3;AC1~AC5为物理链路。For ease of understanding, a typical networking diagram of VXLAN single-homed and dual-homed hybrid access shown in FIG. 1 is illustrated. In FIG. 1, TS1 is dual-homed to DUT1 and DUT2, PC1 is directly connected to DUT1, and PC2 is single-homed. Access to DUT2, TS2 is directly connected to DUT3; AC1 to AC5 are physical links.
对于CE(TS1)双归接入PE(DUT1和DUT2)而言,PE需要为CE与PE之间的物理链路配置MC-LAG(Multi-Chassis Link Aggregation Group,跨设备链路聚合组),并且配置相应的ESI(Ethernet Segment Identifier,以太网段标识),以及设置相应的多活/单活开关;与同一个CE连接的PE,MC-LAG的ESI需要配置成一致,例如:与TS1连接的DUT1和DUT2的MC-LAG需要配置相同的ESI;对于为MC-LAG配置相同ESI的各PE设 备,需要进行EVPN的RT(Router Type,路由器类型)-4的协商,选举出DF(Designated Forwarder,指定转发器),以便对多余的BUM(Broadcast&unknown&unicast&multicast,广播&未知单播&组播)流量进行过滤,其中,BUM报文为多播报文,只有DF设备能够接收多播报文,而Non-DF设备不接收多播报文。PE设备在发送RT-1和RT-4类型的路由信息时,需要携带所配置的ESI,以便在远端PE设备形成多活/单活冗余路由。For the CE (TS1) dual-homed access PE (DUT1 and DUT2), the PE needs to configure the MC-LAG (Multi-Chassis Link Aggregation Group) for the physical link between the CE and the PE. The corresponding ESI (Ethernet Segment Identifier) and the corresponding multi-active/single-active switch are configured. The ESI of the MC-LAG needs to be configured to be consistent with the PE connected to the same CE. For example, connect to TS1. The MCs of the DUT1 and the DUT2 need to be configured with the same ESI. For each PE device that is configured with the same ESI for the MC-LAG, the ERP must be negotiated with the RT (Router Type)-4, and the DF (Designated Forwarder) is elected. , the forwarding device is configured to filter the excess BUM (Broadcast & Unknown & Unicast & Multicast, Broadcast & Unknown Unicast & Multicast) traffic, where the BUM message is a multicast message, and only the DF device can receive the multicast message, and the Non-DF The device does not receive multicast messages. When transmitting the routing information of the RT-1 and RT-4 types, the PE device needs to carry the configured ESI to form a multi-active/single-lived redundant route on the remote PE device.
在相关技术中,对于单播报文转发,协议规定的方案能够很好地支持现有场景。但是,对于多播报文转发,协议规定的方案存在一定问题。如图2所示的BUM报文回环的示意图,由于VXLAN数据报文协议上没有规定封装ESI标签,对于BUM报文,CE侧MC-LAG采用负荷分担方式,有可能将BUM报文发送给Non-DF PE设备,Non-DF PE设备会向网络侧广播报文,DF PE设备收到流量后,无法判断BUM报文来源的ESI,所以DF PE设备还会将BUM报文发送给原来的CE,导致BUM报文回环。In the related art, for unicast packet forwarding, the protocol specified scheme can well support existing scenarios. However, for multicast message forwarding, there are certain problems with the protocol specified by the protocol. As shown in Figure 2, the BUM packet is sent to the Non-BOM packet. - DF PE device, the non-DF PE device broadcasts the packet to the network side. After receiving the traffic, the DF PE device cannot determine the ESI of the BUM packet source. Therefore, the DF PE device sends the BUM packet to the original CE. , causing the BUM message to loop back.
针对BUM报文回环的问题,可以设置双归PE之间不发送BUM报文,那么PE设备从CE侧收到的BUM流量就不会往ESI邻居发送,这虽然解决了BUM报文回环问题,但是又引发了其他问题,即对于双归和单归混合配置的场景,会导致单归节点无法收到BUM报文,如图3所示。For the loopback problem of the BUM packets, you can set the BUM packets to be sent between the dual-homed PEs. The BUM traffic received by the PE device from the CE side will not be sent to the ESI neighbor. This solves the BUM packet loopback problem. However, other problems are caused, that is, in the scenario of dual-homing and single-homing configuration, the single-homed node cannot receive BUM packets, as shown in Figure 3.
发明内容Summary of the invention
本公开实施例提供一种VXLAN单归和双归混合接入方法、装置、PE设备和存储介质。Embodiments of the present disclosure provide a VXLAN single-homing and dual-homing hybrid access method, apparatus, PE device, and storage medium.
本公开实施例是通过以下技术方案来解决的:The embodiments of the present disclosure are solved by the following technical solutions:
本公开实施例提供一种VXLAN单归和双归混合接入方法,在PE设备执行,包括:执行单双归混合接入配置;其中,配置MC-LAG,并且配置所述MC-LAG对应的PeerLink接口;在MC-LAG接口为所述MC-LAG配置与对端PE设备对应的MC-LAG相同的ESI;将所述MC-LAG接口、所述PeerLink接口和单归接口绑定VXLAN域;在单双归混合接入场景下,根据预设的过滤转发规则,在所述VXLAN域内,负荷分担转发单播报文 并广播接收到的BUM报文。An embodiment of the present disclosure provides a VXLAN single-homing and dual-homing hybrid access method, which is performed on a PE device, including: performing a single dual-homing hybrid access configuration; wherein, configuring an MC-LAG, and configuring the MC-LAG corresponding to the MC-LAG Configuring an ESI of the same as the MC-LAG corresponding to the peer PE device in the MC-LAG interface; and binding the MC-LAG interface, the PeerLink interface, and the single-homed interface to the VXLAN domain; In a single-and-double-homed hybrid access scenario, load balancing forwards unicast packets and broadcasts received BUM packets in the VXLAN domain according to a preset filtering and forwarding rule.
其中,在所述执行单双归混合接入配置时,所述方法还包括:禁止与所述MC-LAG的ESI相同的PE设备成为BGP(Border Gateway Protocol,边界网关协议)EVPN(以太网虚拟专用网络)邻居;根据所述MC-LAG的主备状态,确定所述MC-LAG的ESI的DF状态。The method further includes: prohibiting a PE device that is the same as the ESI of the MC-LAG from being a BGP (Border Gateway Protocol) EVPN (Ethernet Virtualization) a private network) neighbor; determining a DF state of the ESI of the MC-LAG according to the active/standby state of the MC-LAG.
其中,所述根据预设的过滤转发规则,在所述VXLAN域内,负荷分担转发单播报文并广播接收到的BUM报文,包括:如果从所述MC-LAG接口和所述单归接口接收到所述单播报文,则根据转发表条目转发所述单播报文;如果从所述MC-LAG接口和所述单归接口接收到所述BUM报文,则直接在所述VXLAN域内广播所述BUM报文;如果从所述PeerLink接口接收到所述BUM报文,则在所述VXLAN域内禁止向所述MC-LAG接口和VXLAN EVPN网络侧广播所述BUM报文,仅向所述单归接口广播所述BUM报文;如果从VXLAN EVPN网络侧接收到所述BUM报文,则在所述VXLAN域内禁止向所述PeerLink接口广播所述BUM报文,仅向所述单归接口和符合预设条件的MC-LAG接口广播所述BUM报文;所述预设条件是指:在所述MC-LAG接口配置的ESI的DF状态为DF。According to the preset filtering and forwarding rule, in the VXLAN domain, the load sharing forwards the unicast packet and broadcasts the received BUM packet, including: if receiving from the MC-LAG interface and the single-homed interface And the unicast packet is forwarded according to the forwarding table entry; if the BUM packet is received from the MC-LAG interface and the single-homed interface, the broadcast is directly in the VXLAN domain. The BUM message is sent; if the BUM message is received from the PeerLink interface, the BUM message is prohibited from being broadcast to the MC-LAG interface and the VXLAN EVPN network side in the VXLAN domain, only to the single The interface broadcasts the BUM message; if the BUM message is received from the VXLAN EVPN network, the BUM message is prohibited from being broadcast to the PeerLink interface in the VXLAN domain, and only the single-homed interface is The MC-LAG interface that meets the preset condition broadcasts the BUM message; the preset condition is that the DF state of the ESI configured on the MC-LAG interface is DF.
其中,所述方法还包括:如果感知到对端PE设备故障,则更新本端PE设备对应的MC-LAG的主备状态,并根据更新后的所述MC-LAG的主备状态重新确定本端PE设备对应的MC-LAG的ESI的DF状态;如果通过BGP设备感知到BGP EVPN邻居设备故障,则删除所述BGP EVPN邻居设备传递的对应转发表条目;如果本端PE设备的所述MC-LAG接口故障,则删除所述MC-LAG接口对应的转发表条目,并通知所述BGP设备以便BGP EVPN邻居设备进行远端表项删除;如果本端PE设备的所述MC-LAG接口故障,则更新本端PE设备对应的MC-LAG的主备状态,并根据更新后的所述MC-LAG的主备状态重新确定本端PE设备对应的MC-LAG的ESI的DF状态;如果本端PE设备的所述PeerLink接口故障,且所述PeerLink接口对应的MC-LAG的ESI的DF状态为Non-DF,则将所有MC-LAG接口关闭。The method further includes: if the peer PE device is faulty, updating the active/standby state of the MC-LAG corresponding to the local PE device, and re-determining the current and standby states according to the updated MC-LAG status. The DF state of the ESI of the MC-LAG corresponding to the PE device; if the BGP device detects that the BGP EVPN neighbor device is faulty, the corresponding forwarding table entry transmitted by the BGP EVPN neighbor device is deleted; if the MC of the local PE device If the LAG interface is faulty, the forwarding table entry corresponding to the MC-LAG interface is deleted, and the BGP device is notified to the BGP EVPN neighboring device to delete the remote entry; if the MC-LAG interface of the local PE device is faulty. And updating the active/standby state of the MC-LAG corresponding to the local PE device, and re-determining the DF state of the ESI of the MC-LAG corresponding to the local PE device according to the updated active/standby state of the MC-LAG; If the PeerLink interface of the end PE device is faulty, and the DF state of the ESI of the MC-LAG corresponding to the PeerLink interface is Non-DF, all MC-LAG interfaces are closed.
其中,所述根据预设的过滤转发规则,在所述VXLAN域内,负荷分 担转发单播报文并广播接收到的BUM报文,包括:在接收到未知单播报文时,判断所述VXLAN域是否已经开启未知报文域内广播功能;如果已经开启所述未知报文域内广播功能,则根据预设的过滤转发规则,在所述VXLAN域内广播所述未知单播报文;反之,丢弃所述未知单播报文。In the VXLAN domain, the load balancing forwards the unicast packet and broadcasts the received BUM packet according to the preset filtering and forwarding rule, including: when receiving the unknown unicast packet, determining whether the VXLAN domain is The broadcast function in the unknown packet domain is enabled. If the broadcast function in the unknown packet domain is enabled, the unknown unicast packet is broadcasted in the VXLAN domain according to the preset filter forwarding rule. Otherwise, the unknown ticket is discarded. Broadcast message.
本公开实施例提供了一种VXLAN单归和双归混合接入装置,在PE设备执行,包括:配置模块,配置为执行单双归混合接入配置;其中,配置MC-LAG,并且配置所述MC-LAG对应的PeerLink接口;在MC-LAG接口为所述MC-LAG配置与对端PE设备对应的MC-LAG相同的ESI;绑定模块,配置为将所述MC-LAG接口、所述PeerLink接口和单归接口绑定VXLAN域;转发模块,配置为在单双归混合接入场景下,根据预设的过滤转发规则,在所述VXLAN域内,负荷分担转发单播报文并广播接收到的BUM报文。The embodiment of the present disclosure provides a VXLAN single-homing and dual-homing hybrid access device, which is executed by a PE device, and includes: a configuration module configured to perform a single dual-homing hybrid access configuration; wherein, the MC-LAG is configured, and the configuration An ESI corresponding to the MC-LAG corresponding to the MC-LAG; the MC-LAG is configured with the same ESI as the MC-LAG corresponding to the peer PE device; and the binding module is configured to connect the MC-LAG interface and the The PeerLink interface and the single-homed interface are bound to the VXLAN domain. The forwarding module is configured to load and forward unicast packets in the VXLAN domain and broadcast and receive in the VXLAN domain according to the preset filtering and forwarding rules. BUM message to.
其中,所述配置模块,还配置为:在所述执行单双归混合接入配置时,禁止与所述MC-LAG的ESI相同的PE设备成为BGP EVPN邻居;根据所述MC-LAG的主备状态,确定所述MC-LAG的ESI的DF状态。The configuration module is further configured to: when the performing the single dual-homing hybrid access configuration, prohibit the PE device that is the same as the ESI of the MC-LAG from becoming a BGP EVPN neighbor; according to the MC-LAG In the standby state, the DF state of the ESI of the MC-LAG is determined.
其中,所述转发模块,配置为:如果从所述MC-LAG接口和所述单归接口接收到所述单播报文,则根据转发表条目转发所述单播报文;如果从所述MC-LAG接口和所述单归接口接收到所述BUM报文,则直接在所述VXLAN域内广播所述BUM报文;如果从所述PeerLink接口接收到所述BUM报文,则在所述VXLAN域内禁止向所述MC-LAG接口和VXLAN EVPN网络侧广播所述BUM报文,仅向所述单归接口广播所述BUM报文;如果从VXLAN EVPN网络侧接收到所述BUM报文,则在所述VXLAN域内禁止向所述PeerLink接口广播所述BUM报文,仅向所述单归接口和符合预设条件的MC-LAG接口广播所述BUM报文;所述预设条件是指:在所述MC-LAG接口配置的ESI的DF状态为DF。The forwarding module is configured to: if the unicast packet is received from the MC-LAG interface and the single-homed interface, forward the unicast packet according to a forwarding table entry; if from the MC- Receiving, by the LAG interface and the single-homed interface, the BUM message, directly broadcasting the BUM message in the VXLAN domain; if receiving the BUM message from the PeerLink interface, in the VXLAN domain Disabling the broadcast of the BUM message to the MC-LAG interface and the VXLAN EVPN network side, and only broadcasting the BUM message to the single-homed interface; if receiving the BUM message from the VXLAN EVPN network side, Disabling the broadcast of the BUM message to the PeerLink interface in the VXLAN domain, and only broadcasting the BUM message to the single-homed interface and the MC-LAG interface that meets the preset condition; the preset condition is: The DF state of the ESI of the MC-LAG interface configuration is DF.
其中,所述装置还包括处理模块;所述处理模块,配置为:如果感知到对端PE设备故障,则更新本端PE设备对应的MC-LAG的主备状态,并根据更新后的所述MC-LAG的主备状态重新确定本端PE设备对应的MC-LAG的ESI的DF状态;如果通过BGP设备感知到BGP EVPN邻居设 备故障,则删除所述BGP EVPN邻居设备传递的对应转发表条目;如果本端PE设备的所述MC-LAG接口故障,则删除所述MC-LAG接口对应的转发表条目,并通知所述BGP设备以便BGP EVPN邻居设备进行远端表项删除;如果本端PE设备的所述MC-LAG接口故障,则更新本端PE设备对应的MC-LAG的主备状态,并根据更新后的所述MC-LAG的主备状态重新确定本端PE设备对应的MC-LAG的ESI的DF状态;如果本端PE设备的所述PeerLink接口故障,且所述PeerLink接口对应的MC-LAG的ESI的DF状态为Non-DF,则将所有MC-LAG接口关闭。The device further includes a processing module, and the processing module is configured to: if the peer PE device is faulty, update the active/standby state of the MC-LAG corresponding to the local PE device, and according to the updated If the BGP EVPN neighbor device is faulty, the BGP EVPN neighbor device sends the corresponding forwarding table entry. If the MC-LAG interface of the local PE device is faulty, delete the forwarding table entry corresponding to the MC-LAG interface, and notify the BGP device to delete the remote entry of the BGP EVPN neighbor device; If the MC-LAG interface of the PE device is faulty, the status of the MC-LAG corresponding to the local PE device is updated, and the MC corresponding to the local PE device is re-determined according to the updated active/standby status of the MC-LAG. The DF state of the ESI of the LAG; if the PeerLink interface of the local PE device fails, and the DF state of the ESI of the MC-LAG corresponding to the PeerLink interface is Non-DF, all MC-LAG interfaces are closed.
其中,所述转发模块,还配置为:在接收到未知单播报文时,判断所述VXLAN域是否已经开启未知报文域内广播功能;如果已经开启所述未知报文域内广播功能,则根据预设的过滤转发规则,在所述VXLAN域内广播所述未知单播报文;反之,丢弃所述未知单播报文。The forwarding module is further configured to: determine, when the unknown unicast packet is received, whether the VXLAN domain has enabled the broadcast function in the unknown packet domain; if the broadcast function in the unknown packet domain has been enabled, The filtering and forwarding rule is configured to broadcast the unknown unicast packet in the VXLAN domain; otherwise, the unknown unicast packet is discarded.
本公开实施例还提供了一种PE设备,所述PE设备包括进行数据处理的处理器、配置为数据存储的存储器和用于数据发送和/或接收的数据收发器,其中,所述处理器执行所述存储器中存储的数据时,执行如下操作:执行单双归混合接入配置;其中,配置MC-LAG,并且配置所述MC-LAG对应的PeerLink接口;在MC-LAG接口为所述MC-LAG配置与对端PE设备对应的MC-LAG相同的ESI;将所述MC-LAG接口、所述PeerLink接口和单归接口绑定VXLAN域;在单双归混合接入场景下,根据预设的过滤转发规则,在所述VXLAN域内,负荷分担转发单播报文并广播接收到的BUM报文。Embodiments of the present disclosure also provide a PE device including a processor that performs data processing, a memory configured as data storage, and a data transceiver for data transmission and/or reception, wherein the processor When performing the data stored in the memory, performing the following operations: performing a single dual-homing hybrid access configuration; wherein, configuring an MC-LAG, and configuring a PeerLink interface corresponding to the MC-LAG; The MC-LAG is configured with the same ESI as the MC-LAG corresponding to the peer PE device; the MC-LAG interface, the PeerLink interface, and the single-homed interface are bound to the VXLAN domain; The preset filtering and forwarding rule is to load and forward the unicast packet and broadcast the received BUM packet in the VXLAN domain.
其中,所述处理器执行所述存储器中存储的数据时,还执行如下操作:在所述执行单双归混合接入配置时,禁止与所述MC-LAG的ESI相同的PE设备成为BGP EVPN邻居;根据所述MC-LAG的主备状态,确定所述MC-LAG的ESI的DF状态。When the processor executes the data stored in the memory, the following operations are also performed: when the single-double-homing access configuration is performed, the PE device that is the same as the ESI of the MC-LAG is prohibited from being a BGP EVPN. a neighbor; determining a DF state of the ESI of the MC-LAG according to the active/standby state of the MC-LAG.
其中,所述根据预设的过滤转发规则,在所述VXLAN域内,负荷分担转发单播报文并广播接收到的BUM报文,包括:如果从所述MC-LAG接口和所述单归接口接收到所述单播报文,则根据转发表条目转发所述单播报文;如果从所述MC-LAG接口和所述单归接口接收到所述BUM报文, 则直接在所述VXLAN域内广播所述BUM报文;如果从所述PeerLink接口接收到所述BUM报文,则在所述VXLAN域内禁止向所述MC-LAG接口和VXLAN EVPN网络侧广播所述BUM报文,仅向所述单归接口广播所述BUM报文;如果从VXLAN EVPN网络侧接收到所述BUM报文,则在所述VXLAN域内禁止向所述PeerLink接口广播所述BUM报文,仅向所述单归接口和符合预设条件的MC-LAG接口广播所述BUM报文;所述预设条件是指:在所述MC-LAG接口配置的ESI的DF状态为DF。According to the preset filtering and forwarding rule, in the VXLAN domain, the load sharing forwards the unicast packet and broadcasts the received BUM packet, including: if receiving from the MC-LAG interface and the single-homed interface And the unicast packet is forwarded according to the forwarding table entry; if the BUM packet is received from the MC-LAG interface and the single-homed interface, the broadcast is directly in the VXLAN domain. The BUM message is sent; if the BUM message is received from the PeerLink interface, the BUM message is prohibited from being broadcast to the MC-LAG interface and the VXLAN EVPN network side in the VXLAN domain, only to the single The interface broadcasts the BUM message; if the BUM message is received from the VXLAN EVPN network, the BUM message is prohibited from being broadcast to the PeerLink interface in the VXLAN domain, and only the single-homed interface is The MC-LAG interface that meets the preset condition broadcasts the BUM message; the preset condition is that the DF state of the ESI configured on the MC-LAG interface is DF.
其中,所述处理器执行所述存储器中存储的数据时,还执行如下操作:Wherein, when the processor executes the data stored in the memory, the following operations are also performed:
如果感知到对端PE设备故障,则更新本端PE设备对应的MC-LAG的主备状态,并根据更新后的所述MC-LAG的主备状态重新确定本端PE设备对应的MC-LAG的ESI的DF状态;如果通过BGP设备感知到BGP EVPN邻居设备故障,则删除所述BGP EVPN邻居设备传递的对应转发表条目;如果本端PE设备的所述MC-LAG接口故障,则删除所述MC-LAG接口对应的转发表条目,并通知所述BGP设备以便BGP EVPN邻居设备进行远端表项删除;如果本端PE设备的所述MC-LAG接口故障,则更新本端PE设备对应的MC-LAG的主备状态,并根据更新后的所述MC-LAG的主备状态重新确定本端PE设备对应的MC-LAG的ESI的DF状态;如果本端PE设备的所述PeerLink接口故障,且所述PeerLink接口对应的MC-LAG的ESI的DF状态为Non-DF,则将所有MC-LAG接口关闭。If the fault of the peer PE device is detected, the active/standby state of the MC-LAG corresponding to the local PE device is updated, and the MC-LAG corresponding to the local PE device is re-determined according to the updated active/standby state of the MC-LAG. If the BGP EVPN neighbor device fails to be detected by the BGP device, delete the corresponding forwarding table entry delivered by the BGP EVPN neighbor device; if the MC-LAG interface of the local PE device fails, delete the The forwarding table entry corresponding to the MC-LAG interface is sent, and the BGP device is notified to the BGP EVPN neighboring device to delete the remote entry. If the MC-LAG interface of the local PE device is faulty, the local PE device is updated. The active/standby state of the MC-LAG, and the DF state of the ESI of the MC-LAG corresponding to the local PE device is re-determined according to the updated active/standby state of the MC-LAG; if the PeerLink interface of the local PE device If the DF status of the ESI of the MC-LAG corresponding to the PeerLink interface is Non-DF, all MC-LAG interfaces are closed.
其中,所述根据预设的过滤转发规则,在所述VXLAN域内,负荷分担转发单播报文并广播接收到的BUM报文,包括:在接收到未知单播报文时,判断所述VXLAN域是否已经开启未知报文域内广播功能;如果已经开启所述未知报文域内广播功能,则根据预设的过滤转发规则,在所述VXLAN域内广播所述未知单播报文;反之,丢弃所述未知单播报文。In the VXLAN domain, the load balancing forwards the unicast packet and broadcasts the received BUM packet according to the preset filtering and forwarding rule, including: when receiving the unknown unicast packet, determining whether the VXLAN domain is The broadcast function in the unknown packet domain is enabled. If the broadcast function in the unknown packet domain is enabled, the unknown unicast packet is broadcasted in the VXLAN domain according to the preset filter forwarding rule. Otherwise, the unknown ticket is discarded. Broadcast message.
本公开实施例提供了一种计算机存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任一方法的步骤。Embodiments of the present disclosure provide a computer storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of any of the above methods.
本公开实施例有益效果如下:The beneficial effects of the embodiments of the present disclosure are as follows:
本公开有机结合了ESI技术和MC-LAG Peerlink技术,并在此基础上设定过滤转发规则,进而支持双归的负荷分担发送,并解决了BUM报文回 环和/或BUM报文无法接收的问题,因此本公开实施例可以支持单归和双归混合接入的应用场景。The present disclosure combines the ESI technology and the MC-LAG Peerlink technology, and sets the filtering and forwarding rules on the basis of the disclosure, thereby supporting the dual-homing load sharing transmission, and solving the problem that the BUM packet loopback and/or the BUM packet cannot be received. The problem is that the embodiment of the present disclosure can support the application scenario of single-homing and dual-homing hybrid access.
附图说明DRAWINGS
图1是相关技术中VXLAN单归和双归混合接入的组网图;1 is a networking diagram of VXLAN single-homing and dual-homing hybrid access in the related art;
图2是相关技术中BUM报文回环的示意图;2 is a schematic diagram of a BUM message loopback in the related art;
图3是相关技术中ESI成员之间不发送BUM报文的示意图;3 is a schematic diagram of not transmitting a BUM message between ESI members in the related art;
图4是根据本公开第一实施例的VXLAN单归和双归混合接入方法的流程图;4 is a flowchart of a VXLAN single-homing and dual-homing hybrid access method according to a first embodiment of the present disclosure;
图5是根据本公开第二实施例的执行单双归混合接入配置的步骤流程图;5 is a flow chart showing the steps of performing a single dual-homed hybrid access configuration in accordance with a second embodiment of the present disclosure;
图6是根据本公开第二实施例的VXLAN单归和双归混合接入网络示意图;6 is a schematic diagram of a VXLAN single-homing and dual-homing hybrid access network according to a second embodiment of the present disclosure;
图7是根据本公开第三实施例的转发CE侧BUM报文的步骤流程图;FIG. 7 is a flowchart of a step of forwarding a BUM message on a CE side according to a third embodiment of the present disclosure;
图8是根据本公开第三实施例的转发CE侧BUM报文的网络示意图;FIG. 8 is a schematic diagram of a network for forwarding a BUM message on a CE side according to a third embodiment of the present disclosure;
图9是根据本公开第三实施例的转发PeerLink侧BUM报文的步骤流程图;9 is a flowchart of steps of forwarding a PeerLink BUM message according to a third embodiment of the present disclosure;
图10是根据本公开第三实施例的转发PeerLink侧BUM报文的网络示意图;FIG. 10 is a schematic diagram of a network for forwarding a PeerLink BUM message according to a third embodiment of the present disclosure; FIG.
图11是根据本公开第三实施例的转发网络侧BUM报文的步骤流程图;11 is a flowchart of steps of forwarding a network side BUM message according to a third embodiment of the present disclosure;
图12是根据本公开第三实施例的转发网络侧BUM报文的网络示意图;FIG. 12 is a schematic diagram of a network for forwarding a network side BUM message according to a third embodiment of the present disclosure; FIG.
图13是根据本公开第四实施例的PeerLink接口故障的示意图;FIG. 13 is a schematic diagram of a PeerLink interface failure according to a fourth embodiment of the present disclosure; FIG.
图14是根据本公开第四实施例的PeerLink接口故障的示意图;14 is a schematic diagram of a PeerLink interface failure according to a fourth embodiment of the present disclosure;
图15是根据本公开第四实施例的MC-LAC接口故障的示意图;15 is a schematic diagram of an MC-LAC interface failure according to a fourth embodiment of the present disclosure;
图16是根据本公开第四实施例的MC-LAC接口故障的示意图;16 is a schematic diagram of an MC-LAC interface failure according to a fourth embodiment of the present disclosure;
图17是根据本公开第四实施例的PE设备故障的示意图;17 is a schematic diagram of a PE device failure according to a fourth embodiment of the present disclosure;
图18是根据本公开第五实施例的VXLAN单归和双归混合接入装置的 结构图;18 is a structural diagram of a VXLAN single-homing and dual-homing hybrid access device according to a fifth embodiment of the present disclosure;
图19是根据本公开第六实施例的PE设备的硬件结构示意图。19 is a schematic diagram showing the hardware structure of a PE device according to a sixth embodiment of the present disclosure.
具体实施方式detailed description
以下结合附图以及实施例,对本公开进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本公开,并不限定本公开。The present disclosure will be further described in detail below in conjunction with the drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the disclosure and are not intended to be limiting.
实施例一Embodiment 1
本实施例提供了一种VXLAN单归和双归混合接入方法。本实施例的执行主体是PE设备(即下面所述的本端PE设备)。图4是根据本公开第一实施例的VXLAN单归和双归混合接入方法的流程图。This embodiment provides a VXLAN single-homing and dual-homing hybrid access method. The execution body of this embodiment is a PE device (that is, the local PE device described below). 4 is a flow chart of a VXLAN single-homing and dual-homing hybrid access method in accordance with a first embodiment of the present disclosure.
步骤S410,执行单双归混合接入配置。Step S410, performing a single dual-homing hybrid access configuration.
单双归混合接入配置,包括:配置MC-LAG并且配置所述MC-LAG对应的PeerLink接口;在MC-LAG接口为所述MC-LAG配置与对端PE设备对应的MC-LAG相同的ESI,即本端PE设备对应的MC-LAG的ESI和对端PE设备对应的MC-LAG的ESI相同。The dual-homing hybrid access configuration includes: configuring an MC-LAG and configuring a PeerLink interface corresponding to the MC-LAG; configuring, on the MC-LAG interface, the MC-LAG is the same as the MC-LAG corresponding to the peer PE device ESI, that is, the ESI of the MC-LAG corresponding to the local PE device is the same as the ESI of the MC-LAG corresponding to the peer PE device.
具体地,为本端PE设备配置MC-LAG的相关参数和规则以及PeerLink链路。进一步地,配置该MC-LAG对应的各个PeerLink子接口。Specifically, the related parameters and rules of the MC-LAG and the PeerLink link are configured for the local PE device. Further, each PeerLink sub-interface corresponding to the MC-LAG is configured.
还可以为本端PE设备配置MC-LAG的ESI DF选举规则,包括:禁止与所述MC-LAG的ESI相同的PE设备成为BGP EVPN邻居;在配置所述MC-LAG的ESI之后,根据所述MC-LAG的主备状态,确定所述MC-LAG的ESI的DF状态。根据本实施例的配置,DF状态受MC-LAG的主备状态控制,后续DF状态还需要根据MC-LAG的主备状态的更新而更新。The ESI DF election rule of the MC-LAG may be configured for the local PE device, including: disabling the same PE device as the ESI EVPN neighbor of the MC-LAG; after configuring the ESI of the MC-LAG, according to the The active/standby state of the MC-LAG is determined, and the DF state of the ESI of the MC-LAG is determined. According to the configuration of the embodiment, the DF state is controlled by the active/standby state of the MC-LAG, and the subsequent DF state also needs to be updated according to the update of the active and standby states of the MC-LAG.
如果MC-LAG的主备状态为主,则确定该MC-LAG的ESI的DF状态为DF;如果MC-LAG的主备状态为备,则确定该MC-LAG的ESI的DF状态为Non-DF。在一实施例中,MC-LAG初始化的主备状态可以根据MC-LAG接口的优先级高低确定,高优先级的MC-LAG接口配置的MC-LAG为主,低优先级的MC-LAG接口配置的MC-LAG为备。If the active-standby state of the MC-LAG is dominant, the DF state of the ESI of the MC-LAG is determined to be DF; if the active-standby state of the MC-LAG is standby, it is determined that the DF state of the ESI of the MC-LAG is Non- DF. In an embodiment, the active-standby state of the MC-LAG is determined according to the priority of the MC-LAG interface, and the MC-LAG configured by the high-priority MC-LAG interface is the primary, and the low-priority MC-LAG interface is configured. The configured MC-LAG is standby.
步骤S420,将MC-LAG接口、PeerLink接口和单归接口绑定VXLAN 域。In step S420, the MC-LAG interface, the PeerLink interface, and the single-homed interface are bound to the VXLAN domain.
配置VXLAN实例,将单归接口、MC-LAG接口和PeerLink接口绑定到该VXLAN实例中,即是将单归接口、MC-LAG接口和PeerLink接口绑定VXLAN域。进一步地,将各个PeerLink子接口绑定到VXLAN域中,还需要将用于连接VXLAN EVPN网络的接口绑定到VXLAN域中。Bind the single-homed interface, the MC-LAG interface, and the PeerLink interface to the VXLAN instance. The single-homed interface, the MC-LAG interface, and the PeerLink interface are bound to the VXLAN domain. Further, to bind each PeerLink sub-interface to the VXLAN domain, the interface for connecting to the VXLAN EVPN network needs to be bound to the VXLAN domain.
步骤S430,在单双归混合接入场景下,根据预设的过滤转发规则,在所述VXLAN域内,负荷分担转发单播报文并广播接收到的BUM报文。Step S430: In the single-and-double-homed access scenario, load-sharing forwards the unicast packet and broadcasts the received BUM packet in the VXLAN domain according to the preset filtering and forwarding rule.
所述过滤转发规则,包括:The filtering and forwarding rules include:
如果从所述MC-LAG接口和所述单归接口接收到所述单播报文,则根据转发表条目转发所述单播报文;If the unicast packet is received from the MC-LAG interface and the single-homed interface, the unicast packet is forwarded according to the forwarding table entry;
如果从所述MC-LAG接口和所述单归接口接收到所述BUM报文,则直接在所述VXLAN域内广播所述BUM报文;If the BUM message is received from the MC-LAG interface and the single-homed interface, the BUM message is directly broadcasted in the VXLAN domain;
如果从所述PeerLink接口接收到所述BUM报文,则在所述VXLAN域内禁止向所述MC-LAG接口和VXLAN EVPN网络侧广播所述BUM报文,仅向所述单归接口广播所述BUM报文;If the BUM message is received from the PeerLink interface, the BUM message is prohibited from being broadcast to the MC-LAG interface and the VXLAN EVPN network side in the VXLAN domain, and only the single-homed interface is broadcasted to the single-homed interface. BUM message;
如果从VXLAN EVPN网络侧接收到所述BUM报文,则在所述VXLAN域内禁止向所述PeerLink接口广播所述BUM报文,仅向所述单归接口和符合预设条件的MC-LAG接口广播所述BUM报文;所述预设条件是指:在所述MC-LAG接口配置的MC-LAG的ESI的DF状态为DF。If the BUM message is received from the VXLAN EVPN network, the BUM message is prohibited from being broadcast to the PeerLink interface in the VXLAN domain, and only the single-homed interface and the MC-LAG interface that meet the preset condition are The BUM message is broadcasted; the preset condition is that the DF state of the ESI of the MC-LAG configured on the MC-LAG interface is DF.
基于上述过滤转发规则,在将单归接口、MC-LAG接口和PeerLink接口绑定到VXLAN域中之后,本端PE设备在接收到单播报文和BUM报文时,单归接口、MC-LAG接口和PeerLink接口就可以按照该过滤转发规则进行报文转发了。After the single-homed interface, the MC-LAG interface, and the PeerLink interface are bound to the VXLAN domain, the local PE device receives the unicast packet and the BUM packet, and the interface is MC-LAG. The interface and the PeerLink interface can forward packets according to the filtering and forwarding rules.
在本实施例中,在接收到未知单播报文时,判断所述VXLAN域是否已经开启未知报文域内广播功能;如果已经开启所述未知报文域内广播功能,则根据预设的过滤转发规则,在所述VXLAN域内广播所述未知单播报文;反之,丢弃所述未知单播报文。In this embodiment, when the unknown unicast packet is received, it is determined whether the VXLAN domain has opened the broadcast function in the unknown packet domain; if the broadcast function in the unknown packet domain has been enabled, the preset filtering and forwarding rule is Broadcasting the unknown unicast packet in the VXLAN domain; otherwise, discarding the unknown unicast packet.
本实施例在单双归混合接入场景下,还可以根据预设的故障处理规则 进行故障处理,具体包括:In this embodiment, the fault processing may be performed according to a preset fault processing rule in a single-and dual-homing hybrid access scenario, including:
如果感知到对端PE设备故障,则更新本端PE设备对应的MC-LAG的主备状态,并根据更新后的所述MC-LAG的主备状态重新确定本端PE设备对应的MC-LAG的ESI的DF状态;If the fault of the peer PE device is detected, the active/standby state of the MC-LAG corresponding to the local PE device is updated, and the MC-LAG corresponding to the local PE device is re-determined according to the updated active/standby state of the MC-LAG. DF state of ESI;
如果通过BGP设备感知到BGP EVPN邻居设备故障,则删除所述BGP EVPN邻居设备传递的对应转发表条目;If the BGP EVPN neighbor device is faulty, the BGP EVPN neighbor device sends the corresponding forwarding table entry.
如果本端PE设备的所述MC-LAG接口故障,则删除所述MC-LAG接口对应的转发表条目,并通知所述BGP设备以便BGP EVPN邻居设备进行远端表项删除;If the MC-LAG interface of the local PE device is faulty, the forwarding table entry corresponding to the MC-LAG interface is deleted, and the BGP device is notified to enable the BGP EVPN neighboring device to delete the remote entry.
如果本端PE设备的所述MC-LAG接口故障,则更新本端PE设备对应的MC-LAG的主备状态,并根据更新后的所述MC-LAG的主备状态重新确定本端PE设备对应的MC-LAG的ESI的DF状态;If the MC-LAG interface of the local PE device is faulty, the active/standby state of the MC-LAG corresponding to the local PE device is updated, and the local PE device is re-determined according to the updated active/standby state of the MC-LAG. The DF state of the ESI of the corresponding MC-LAG;
如果本端PE设备的所述PeerLink接口故障,且所述PeerLink接口对应的MC-LAG的ESI的DF状态为Non-DF,则将所有MC-LAG接口关闭。If the PeerLink interface of the local PE device fails, and the DF state of the ESI of the MC-LAG corresponding to the PeerLink interface is Non-DF, all MC-LAG interfaces are closed.
本实施例有机结合了ESI技术和MC-LAG Peerlink技术,并在此基础上设定过滤转发规则,进而在VXLAN报文没有ESI标签的情况下,也不会出现BUM报文回环和BUM报文无法接收的问题,因此本实施例可以支持单归和双归混合接入的应用场景。This embodiment combines the ESI technology and the MC-LAG Peerlink technology, and sets the filtering and forwarding rules on the basis of this. In the case that the VXLAN packet does not have an ESI label, the BUM packet loopback and the BUM packet do not occur. The problem that cannot be received, so this embodiment can support the application scenario of single-homing and dual-homing hybrid access.
实施例二Embodiment 2
下面对上述执行单双归混合接入配置的步骤进行进一步地说明。The above steps of performing a single dual-homed hybrid access configuration are further described below.
图5是根据本公开第二实施例的执行单双归混合接入配置的步骤流程图;图6是根据本公开第二实施例的VXLAN单归和双归混合接入网络示意图。在图6中,TS1、PC1、PC2和TS2为CE设备,DUT1、DUT2和DUT3为PE设备;TS1双归接入DUT1和DUT2,PC1单归接入DUT1,PC2单归接入DUT2,TS2单归接入DUT3。5 is a flow chart showing steps of performing a single dual-homing hybrid access configuration according to a second embodiment of the present disclosure; and FIG. 6 is a schematic diagram of a VXLAN single-homing and dual-homing hybrid access network according to a second embodiment of the present disclosure. In Figure 6, TS1, PC1, PC2, and TS2 are CE devices, DUT1, DUT2, and DUT3 are PE devices; TS1 is dual-homed to DUT1 and DUT2, PC1 is directly connected to DUT1, PC2 is directly connected to DUT2, and TS2 is single. Go to DUT3.
步骤S510,为本端PE设备配置MC-LAG以及ESI DF选举规则。Step S510, the MC-LAG and the ESI DF election rule are configured for the local PE device.
在CE设备单归和双归混合接入本端PE设备后,在本端PE设备的 MC-LAG接口配置MC-LAG、ESI DF选举规则、以及负荷分担方式。After the CE device is connected to the local device, the MC-LAG, the ESI DF election rule, and the load balancing mode are configured on the MC-LAG interface of the local PE.
通过配置MC-LAG,可以在本端PE设备、CE设备和对端PE设备之间组建MC-LAC成员链路。本端PE设备与对端PE设备连接同一CE设备。An MC-LAC member link can be established between the local PE device, the CE device, and the peer PE device. The local PE device is connected to the peer CE device.
在本端PE设备的SG(Smart Group,以太捆绑接口)接口,可以配置MC-LAG的ESI,其中,与同一CE设备相连接的PE设备配置相同的ESI。换言之,PE设备双归接入侧的接口需要配置相同的ESI,单归接入侧的接口不需要配置ESI。On the SG (Smart Bundle Interface) interface of the local PE device, you can configure the ESI of the MC-LAG. The PEs connected to the same CE device are configured with the same ESI. In other words, the interface on the access side of the PE device needs to be configured with the same ESI, and the interface on the access side of the PE device does not need to be configured with ESI.
禁止本端PE设备与MC-LAG配置相同ESI的PE设备成为BGP EVPN邻居关系,即禁止双归节点之间配置BGP EVPN邻居关系,从而可以避免出现BUM报文还回问题。It is forbidden to configure the BGP EVPN neighbor relationship between the local PE device and the MC-LAG with the same ESI. That is, the BGP EVPN neighbor relationship is disabled between the dual-homing nodes. This prevents BUM packets from returning.
禁止本端PE设备与MC-LAG配置相同ESI的PE设备之间进行ESI DF选举,而是根据本端PE设备对应的MC-LAC的主备状态,设置该MC-LAG的ESI的DF标记(DF或者Non DF)。DF标记用于体现ESI的DF状态。The local EI is not allowed to perform the ESI DF election between the PEs with the same ESI as the MC-LAG. The LSP flag of the MC-LAG is set according to the active/standby status of the MC-LAC corresponding to the local PE. DF or Non DF). The DF flag is used to embody the DF state of ESI.
如图6所示,通过分别在DUT1和DUT2的MC-LAG接口配置MC-LAG,在DUT1(本端PE设备)、TS1(CE设备)和DUT2(对端PE设备)之间组建MC-LAC成员链路AC1和AC2;DUT1和DUT2分别对应的MC-LAG的ESI相同;DUT1和DUT2禁止成为BGP EVPN邻居;根据DUT1和DUT2分别对应的MC-LAG的主备状态确定各自ESI的DF状态。在图6中,DUT1对应的MC-LAG为master(主),该MC-LAG的ESI的DF标记为DF,DUT2对应的MC-LAG为backup(备),该MC-LAG的ESI的DF标记为Non DF。As shown in Figure 6, the MC-LAG is configured on the MC-LAG interface of the DUT1 and the DUT2, and the MC-LAC is set up between the DUT1 (the local PE device), the TS1 (the CE device), and the DUT2 (the peer PE device). The member links AC1 and AC2; the ESIs of the MC-LAGs corresponding to the DUT1 and the DUT2 are the same; the DUT1 and the DUT2 are prohibited from being the BGP EVPN neighbors; and the DF states of the respective ESIs are determined according to the active and standby states of the MC-LAGs corresponding to the DUT1 and the DUT2, respectively. In FIG. 6, the MC-LAG corresponding to DUT1 is master (main), the DF of the MC-LAG is marked as DF, the MC-LAG corresponding to DUT2 is backup, and the DF mark of the ESI of the MC-LAG For Non DF.
步骤S520,在本端PE设备的PeerLink接口配置PeerLink链路。Step S520: Configure a PeerLink link on the PeerLink interface of the local PE device.
PeerLink链路用于互联本端PE设备和对端PE设备,如图6所示。The PeerLink link is used to interconnect the local PE device and the peer PE device, as shown in Figure 6.
进一步地,配置本端PE设备的PeerLink接口,并配置PeerLink接口的子接口,实现PeerLink链路的配置。Further, the PeerLink interface of the local PE device is configured, and the sub-interface of the PeerLink interface is configured to implement the configuration of the PeerLink link.
步骤S530,使用本端PE设备的不同本地IP(Internet Protocol Address,互联网协议地址)地址与远端设备建立BGP EVPN邻居,并将为MC-LAG配置的ESI发送给BGP EVPN邻居设备,以便位于远端的BGP EVPN邻居 设备可以建立对应的VXLAN EVPN路由。Step S530: Establish a BGP EVPN neighbor with the remote device by using different local IP address (Internet Protocol Address) addresses of the local PE device, and send the ESI configured for the MC-LAG to the BGP EVPN neighbor device so as to be located far away. The BGP EVPN neighbor device can establish a corresponding VXLAN EVPN route.
如图6所示,DUT1可以使用不同的IP地址与远端设备DUT3建立BGP EVPN邻居,使DUT3成为DUT1的BGP EVPN邻居设备。As shown in Figure 6, DUT1 can establish a BGP EVPN neighbor with the remote device DUT3 using different IP addresses, so that DUT3 becomes the BGP EVPN neighbor of DUT1.
本端PE设备在RT-2路由信息中携带本端PE设备对应的MC-LAG的ESI,BGP EVPN邻居设备在接收到RT-2路由信息之后可以形成对应的冗余路由。The local PE device carries the ESI of the MC-LAG corresponding to the local PE device in the RT-2 routing information. After receiving the RT-2 routing information, the BGP EVPN neighbor device can form a corresponding redundant route.
步骤S540,将本端PE设备对应的MC-LAG的主备状态、转发表同步给对端PE设备,并将该转发表向BGP EVPN邻居设备发布。Step S540: Synchronize the active/standby status and the forwarding table of the MC-LAG corresponding to the local PE device to the peer PE device, and advertise the forwarding table to the BGP EVPN neighbor device.
可以通过PeerLink链路或者VXLAN EVPN网络将本端PE设备对应的MC-LAG的主备状态、转发表同步给对端PE设备。The master-slave state and forwarding table of the MC-LAG corresponding to the local PE device can be synchronized to the peer PE device through the PeerLink link or the VXLAN EVPN network.
可以将该转发表转换成RFC(Request For Comments,请求评议)定义的标准格式,形成远端转发表,并发布给BGP EVPN邻居。The forwarding table can be converted into a standard format defined by RFC (Request For Comments) to form a remote forwarding table and advertised to a BGP EVPN neighbor.
步骤S550,为本端PE设备配置过滤转发规则和故障处理规则。Step S550: Configure a filtering and forwarding rule and a fault handling rule for the local PE device.
该过滤转发规则,包括:The filtering and forwarding rules include:
单播转发机制:如果从所述MC-LAG接口和所述单归接口接收到所述单播报文,则根据转发表条目转发所述单播报文。进一步地,在从MC-LAG接口和单归接口接收到单播报文时,判断转发表中是否存在该单播报文对应的转发表条目,如果存在,则按照该转发表条目进行转发,如果不存在,则确定该单播报文为未知单播报文,如果允许未知广播,则根据预设的过滤转发规则进行转发,如果不允许未知广播,则舍弃该未知单播报文。更进一步地,如果从接入侧接收到单播报文,则可以根据转发表中包含的BGP EVPN邻居设备发布的ESI负荷分担路由信息(转发表条目),进行负荷分担转发。The unicast forwarding mechanism: if the unicast packet is received from the MC-LAG interface and the single-homed interface, the unicast packet is forwarded according to the forwarding table entry. Further, when receiving the unicast packet from the MC-LAG interface and the single-homed interface, it is determined whether the forwarding table entry corresponding to the unicast packet exists in the forwarding table, and if yes, forwarding according to the forwarding table entry, if not If yes, the unicast packet is an unknown unicast packet. If the unknown broadcast is allowed, the packet is forwarded according to the preset filtering and forwarding rule. If the unknown broadcast is not allowed, the unknown unicast packet is discarded. Further, if the unicast packet is received from the access side, the ESI load sharing routing information (forwarding table entry) advertised by the BGP EVPN neighbor device included in the forwarding table may be used for load sharing forwarding.
普通转发机制:如果从所述MC-LAG接口和所述单归接口接收到所述BUM报文,则直接在所述VXLAN域内广播所述BUM报文。Ordinary forwarding mechanism: If the BUM message is received from the MC-LAG interface and the single-homed interface, the BUM message is directly broadcasted in the VXLAN domain.
单项隔离机制:如果从所述PeerLink接口接收到所述BUM报文,则在所述VXLAN域内禁止向所述MC-LAG接口和VXLAN EVPN网络侧广播所述BUM报文,仅向所述单归接口广播所述BUM报文。a single isolation mechanism: if the BUM message is received from the PeerLink interface, the BUM message is prohibited from being broadcast to the MC-LAG interface and the VXLAN EVPN network side in the VXLAN domain, and only the single-homed The interface broadcasts the BUM message.
DF过滤机制:如果从VXLAN EVPN网络侧接收到所述BUM报文,则在所述VXLAN域内禁止向所述PeerLink接口广播所述BUM报文,仅向所述单归接口和符合预设条件的MC-LAG接口广播所述BUM报文;所述预设条件是指:在所述MC-LAG接口配置的MC-LAG的ESI的DF状态为DF。The DF filtering mechanism: if the BUM message is received from the VXLAN EVPN network, the BUM message is prohibited from being broadcast to the PeerLink interface in the VXLAN domain, and only the single-homed interface and the preset condition are met. The MC-LAG interface broadcasts the BUM message; the preset condition is that the DF state of the ESI of the MC-LAG configured on the MC-LAG interface is DF.
该故障处理规则,包括:The fault handling rules include:
如果本端PE设备的感知到对端PE设备故障,则更新本端PE设备对应的MC-LAG的主备状态,并根据更新后的所述MC-LAG的主备状态重新确定本端PE设备对应的MC-LAG的ESI的DF状态;If the local PE device detects that the peer PE device is faulty, the active and standby states of the MC-LAG corresponding to the local PE device are updated, and the local PE device is re-determined according to the updated active/standby state of the MC-LAG. The DF state of the ESI of the corresponding MC-LAG;
如果本端PE设备的通过BGP设备感知到BGP EVPN邻居设备故障,则删除所述BGP EVPN邻居设备传递的对应转发表条目;If the BGP EVPN neighbor device fails to be detected by the BGP device, the corresponding forwarding table entry transmitted by the BGP EVPN neighbor device is deleted.
如果本端PE设备的MC-LAG接口故障,则删除所述MC-LAG接口对应的转发表条目,并通知BGP设备以便BGP EVPN邻居设备进行远端表项删除;If the MC-LAG interface of the local PE device is faulty, delete the forwarding entry corresponding to the MC-LAG interface, and notify the BGP device to delete the remote entry of the BGP EVPN neighboring device.
如果本端PE设备的MC-LAG接口故障,则更新本端PE设备对应的MC-LAG的主备状态,并根据更新后的所述MC-LAG的主备状态重新确定本端PE设备对应的MC-LAG的ESI的DF状态;If the MC-LAG interface of the local PE device is faulty, the active/standby status of the MC-LAG corresponding to the local PE device is updated, and the corresponding PE device is re-determined according to the updated active/standby status of the MC-LAG. DF state of ESI of MC-LAG;
如果本端PE设备的PeerLink接口故障,且所述PeerLink接口对应的MC-LAG的ESI的DF状态为Non-DF,则将所有MC-LAG接口关闭。If the PeerLink interface of the local PE device is faulty and the DF state of the ESI of the MC-LAG corresponding to the PeerLink interface is Non-DF, all MC-LAG interfaces are closed.
本实施例克服了RFC7432协议规定的配置ESI带来的组播回环问题,也克服了ESI成员之间不发送BUM报文导致无法支持单双归混合接入的问题。This embodiment overcomes the multicast loopback problem caused by the configuration ESI specified in the RFC7432 protocol, and overcomes the problem that the ESI members do not send BUM packets and cannot support single-homed hybrid access.
本实施例在VXLAN EVPN网络冗余接入场景。通过将MC-LAG Peerlink技术与ESI技术结合,使得单归节点和双归节点能够混合接入到PE设备中,以提供负荷分担和保护功能。This embodiment implements a redundant access scenario in a VXLAN EVPN network. By combining the MC-LAG Peerlink technology with the ESI technology, the single-homed node and the dual-homed node can be mixedly connected to the PE device to provide load sharing and protection functions.
本实施例通过设置过滤转发规则,保证BUM报文不出现回环问题。对于双归节点,既能达到本地到远端的负荷分担,也能实现远端到本地的负荷分担,并且还具有在设备或者链路故障时的保护功能。本实施例的单归 和双归混合接入方法能够支持单播和多播报文的正常转发,并且不会影响到网络侧其他厂商对于VXLAN报文的标准转发规则。In this embodiment, the filtering and forwarding rules are set to ensure that the loopback problem does not occur in the BUM packets. For the dual-homing node, it can achieve local-to-distal load sharing, remote-to-local load sharing, and protection against device or link failure. The single-homing and dual-homing hybrid access method in this embodiment can support the normal forwarding of unicast and multicast packets, and does not affect the standard forwarding rules of VXLAN packets from other vendors on the network side.
实施例三Embodiment 3
本实施例对过滤转发规则的使用进行进一步地描述。在本实施例中,执行主体为DUT1。This embodiment further describes the use of filter forwarding rules. In this embodiment, the execution subject is DUT1.
图7是根据本公开第三实施例的转发CE侧BUM报文的步骤流程图;图8是根据本公开第三实施例的转发CE侧BUM报文的网络示意图。7 is a flowchart of a procedure for forwarding a BUM message on a CE side according to a third embodiment of the present disclosure. FIG. 8 is a schematic diagram of a network for forwarding a BUM message on a CE side according to a third embodiment of the present disclosure.
步骤S710,接收到来自CE设备侧的流量。Step S710, receiving traffic from the CE device side.
步骤S720,判断该流量是否为BUM流量;如果是,则执行步骤S730;如果否,则执行步骤S740。In step S720, it is determined whether the traffic is a BUM traffic; if yes, step S730 is performed; if not, step S740 is performed.
步骤S730,如果是BUM流量,则直接在VXLAN域内广播该BUM流量。Step S730, if it is BUM traffic, broadcast the BUM traffic directly in the VXLAN domain.
在VXLAN域内广播该BUM流量包括:向除了接收该流量的接口之外的单归接口、MC-LAG接口、PeerLink接口以及VXLAN EVPN网络侧转发该BUM流量。从而来自TS1的BUM流量会被转发给PC1、DUT1、PC2、DUT3和TS2。Broadcasting the BUM traffic in the VXLAN domain includes forwarding the BUM traffic to a single-homed interface, an MC-LAG interface, a PeerLink interface, and a VXLAN EVPN network side, in addition to the interface that receives the traffic. Thus BUM traffic from TS1 will be forwarded to PC1, DUT1, PC2, DUT3 and TS2.
步骤S740,如果是单播流量,则查询转发表,确定转发表中是否存在该单播流量对应的转发条目(转发表条目);如果是,则执行步骤S750;如果否,则执行步骤S730。In step S740, if it is a unicast traffic, the forwarding table is queried to determine whether there is a forwarding entry (forwarding table entry) corresponding to the unicast traffic in the forwarding table; if yes, step S750 is performed; if no, step S730 is performed.
步骤S750,如果在该转发表中查询到单播流量对应的转发条目,则根据转发条目转发该单播流量。Step S750: If the forwarding entry corresponding to the unicast traffic is queried in the forwarding table, the unicast traffic is forwarded according to the forwarding entry.
在VXLAN域内广播该单播流量包括:向除了接收该流量的接口之外的单归接口、MC-LAG接口、PeerLink接口以及VXLAN EVPN网络侧转发该单播流量。从而来自TS1的BUM流量会被转发给PC1、DUT1、PC2、DUT3和TS2。Broadcasting the unicast traffic in the VXLAN domain includes forwarding the unicast traffic to a single-homed interface, an MC-LAG interface, a PeerLink interface, and a VXLAN EVPN network side in addition to the interface that receives the traffic. Thus BUM traffic from TS1 will be forwarded to PC1, DUT1, PC2, DUT3 and TS2.
图9是根据本公开第三实施例的转发PeerLink侧BUM报文的步骤流 程图;10是根据本公开第三实施例的转发PeerLink侧BUM报文的网络示意图。FIG. 9 is a flow chart showing the steps of forwarding a PeerLink BUM message according to the third embodiment of the present disclosure; 10 is a network diagram for forwarding a PeerLink BUM message according to the third embodiment of the present disclosure.
步骤S910,接收来自Peerlink接口的流量。Step S910, receiving traffic from the Peerlink interface.
步骤S920,判断该流量是否为BUM流量;如果是,则执行步骤S930;如果否,则执行步骤S940。In step S920, it is determined whether the traffic is a BUM traffic; if yes, step S930 is performed; if not, step S940 is performed.
步骤S930,如果是BUM流量,则在VXLAN域内禁止向MC-LAG接口和VXLAN EVPN网络侧广播该BUM流量,仅向单归接口广播该BUM流量。In step S930, if it is BUM traffic, the BUM traffic is prohibited from being broadcast to the MC-LAG interface and the VXLAN EVPN network side in the VXLAN domain, and the BUM traffic is broadcast only to the single-homing interface.
步骤S940,如果是单播流量,则查询转发表,确定转发表中是否存在该单播流量对应的转发条目;如果是,则执行步骤S950;如果否,则执行步骤S930。In step S940, if it is a unicast traffic, the forwarding table is queried to determine whether there is a forwarding entry corresponding to the unicast traffic in the forwarding table; if yes, step S950 is performed; if no, step S930 is performed.
步骤S950,根据转发条目转发该单播流量。Step S950, forwarding the unicast traffic according to the forwarding entry.
图11是根据本公开第三实施例的转发网络侧BUM报文的步骤流程图;图12是根据本公开第三实施例的转发网络侧BUM报文的网络示意图。11 is a flowchart of a step of forwarding a network side BUM message according to a third embodiment of the present disclosure. FIG. 12 is a network diagram of forwarding a network side BUM message according to a third embodiment of the present disclosure.
步骤S1110,接收到来自VXLAN EVPN网络侧的流量。In step S1110, traffic from the VXLAN EVPN network side is received.
步骤S1120,判断该流量是否为BUM流量;如果是,则执行步骤S1130;如果否,则执行步骤S1140。In step S1120, it is determined whether the traffic is a BUM traffic; if yes, step S1130 is performed; if not, step S1140 is performed.
步骤S1130,如果是BUM流量,则在VXLAN域内,向单归接入侧和双归ESI DF接入侧广播,不向Peerlink侧广播,过滤ESI Non-DF接入口。In step S1130, if it is BUM traffic, it is broadcast to the single-homed access side and the dual-homing ESI DF access side in the VXLAN domain, and is not broadcast to the Peerlink side, and the ESI Non-DF access port is filtered.
具体而言,在VXLAN域内禁止向PeerLink接口广播该BUM流量,仅向单归接口和符合预设条件的MC-LAG接口广播该单播流量;所述预设条件是指:在MC-LAG接口配置的MC-LAG的ESI的DF状态为DF,进而过滤掉配置的MC-LAG的ESI的DF状态为Non DF的MC-LAG接口。Specifically, the BUM traffic is not broadcast to the PeerLink interface in the VXLAN domain, and the unicast traffic is broadcast only to the single-homed interface and the MC-LAG interface that meets the preset condition. The preset condition is: on the MC-LAG interface. The DF state of the ESI of the configured MC-LAG is DF, and the DF state of the ESI of the configured MC-LAG is filtered out to be the MC-LAG interface of the Non DF.
步骤S1140,如果是单播流量,则查询转发表,确定转发表中是否存在该单播流量对应的转发条目;如果是,则执行步骤S1150;如果否,则执行步骤S1130。In step S1140, if it is a unicast traffic, the forwarding table is queried to determine whether there is a forwarding entry corresponding to the unicast traffic in the forwarding table; if yes, step S1150 is performed; if not, step S1130 is performed.
步骤S1150,根据转发条目转发该单播流量。Step S1150: Forward the unicast traffic according to the forwarding entry.
本实施例能够在正常情况下,对应CE设备和网络侧的流量进行负荷分担转发,提高了带宽利用率。在PeerLink链路故障,双归节点(PE设备)故障,以及MC-LAG接口故障的情况下,能够对CE设备和网络侧的流量进行保护,提高VXLAN EVPN网络的可靠性。In this embodiment, the load sharing and forwarding of the traffic corresponding to the CE device and the network side can be performed under normal conditions, thereby improving bandwidth utilization. In the case of a PeerLink link failure, a dual-homed node (PE device) failure, and a MC-LAG interface failure, the CE device and the network side traffic can be protected to improve the reliability of the VXLAN EVPN network.
如图13所示,为根据本公开第四实施例的PeerLink接口故障的示意图。FIG. 13 is a schematic diagram of a PeerLink interface failure according to a fourth embodiment of the present disclosure.
如果PeerLink接口故障,那么DUT1在接收到来自TS1的BUM报文之后,可以图7所示的步骤进行报文转发,将BUM报文通过AC4转发给PC1,通过VXLAN EVPN网络转发给DUT3。If the PeerLink interface fails, the DUT1 can forward the BUM message to the PC1 through the VXLAN EVPN network and forward it to the DUT3 through the VXLAN EVPN network after receiving the BUM message from the TS1.
如图14所示,为根据本公开第四实施例的PeerLink接口故障的示意图。As shown in FIG. 14, it is a schematic diagram of a PeerLink interface failure according to a fourth embodiment of the present disclosure.
如果PeerLink接口故障,那么DUT3发送的BUM报文将通过VXLAN EVPN网络到达DUT1和DUT1。DUT1对应的MC-LAG的主备状态为master,该MC-LAG的ESI的DF状态为DF。DTU1对应的MC-LAG的主备状态为backup,该MC-LAG的ESI的DF状态为Non-DF。根据图11所示的步骤,DUT1在接收到来自VXLAN EVPN网络侧的BUM报文之后,可以将该BUM报文发送给PC1和TS1,DUT2在接收到来自VXLAN EVPN网络侧的BUM报文之后,可以将该BUM报文转发给PC2。If the PeerLink interface fails, the BUM packets sent by DUT3 will reach DUT1 and DUT1 through the VXLAN EVPN network. The active/standby state of the MC-LAG corresponding to the DUT1 is master, and the DF state of the ESI of the MC-LAG is DF. The active/standby state of the MC-LAG corresponding to the DTU1 is backup, and the DF state of the ESI of the MC-LAG is Non-DF. According to the procedure shown in FIG. 11, after receiving the BUM message from the VXLAN EVPN network side, the DUT1 can send the BUM message to the PC1 and the TS1, and after receiving the BUM message from the VXLAN EVPN network side, the DUT2 receives the BUM message from the VXLAN EVPN network side. The BUM message can be forwarded to PC2.
如图15所示,为根据本公开第四实施例的MC-LAC接口故障的示意图。FIG. 15 is a schematic diagram of an MC-LAC interface failure according to a fourth embodiment of the present disclosure.
如果DUT2的MC-LAG接口故障,则DUT1接收到来自TS1的BUM报文之后,根据图7所示的步骤,将BUM报文通过AC4转发给PC1、通过VXLAN EVPN网络转发给DUT2,通过PeerLink链路转发给DUT2。If the MC-LAG interface of the DUT2 fails, the DUT1 receives the BUM message from the TS1, and then forwards the BUM message to the PC1 through the AC4 and forwards it to the DUT2 through the VXLAN EVPN network according to the procedure shown in Figure 7, through the PeerLink chain. The way is forwarded to DUT2.
如图16所示,为根据本公开第四实施例的MC-LAC接口故障的示意图。FIG. 16 is a schematic diagram of an MC-LAC interface failure according to a fourth embodiment of the present disclosure.
如果DUT2的MC-LAG接口故障,则DUT1通过VXLAN EVPN网络接收到来自DUT3的BUM报文之后,根据图11所示的步骤,将BUM报文通过AC4转发给PC1,通过AC1转发给TS1。DTU2通过VXLAN EVPN网络接收到来自DUT3的BUM报文之后,根据图11所示的步骤,将BUM报文通过AC5转发给PC2,由于DUT2的MC-LAG接口配置的MC-LAG的ESI的DF状态为Non DF,所以DUT2不向TS1发送BUM报文。If the MC-LAG interface of the DUT2 is faulty, the DUT1 receives the BUM message from the DUT3 through the VXLAN EVPN network, and then forwards the BUM message to the PC1 through the AC4 and forwards it to the TS1 through the AC1 according to the procedure shown in FIG. After receiving the BUM message from the DUT3 through the VXLAN EVPN network, the DTU2 forwards the BUM message to the PC2 through the AC5 according to the procedure shown in FIG. 11, and the DF state of the ESI of the MC-LAG configured by the MC-LAG interface of the DUT2. It is Non DF, so DUT2 does not send BUM messages to TS1.
如图17所示,为根据本公开第四实施例的PE设备故障的示意图。FIG. 17 is a schematic diagram of a failure of a PE device according to a fourth embodiment of the present disclosure.
如果DUT2故障,则DUT1接收到来自TS1的BUM报文之后,根据图7所示的步骤,将BUM报文通过AC4转发给PC1、通过VXLAN EVPN网络转发给DUT2。If the DUT2 fails, the DUT1 receives the BUM message from the TS1, and forwards the BUM message to the PC1 through the AC4 and forwards it to the DUT2 through the VXLAN EVPN network according to the procedure shown in FIG.
实施例五Embodiment 5
本实施例提供一种VXLAN单归和双归混合接入装置。图18是根据本公开第五实施例的VXLAN单归和双归混合接入装置的结构图。本实施例的VXLAN单归和双归混合接入装置可以设置在PE设备侧。This embodiment provides a VXLAN single-homing and dual-homing hybrid access device. 18 is a structural diagram of a VXLAN single-homing and dual-homing hybrid access device according to a fifth embodiment of the present disclosure. The VXLAN single-homing and dual-homing hybrid access device of this embodiment may be disposed on the PE device side.
该VXLAN单归和双归混合接入装置,包括:The VXLAN single-homed and dual-homed hybrid access device includes:
配置模块1810,配置为执行单双归混合接入配置;其中,配置MC-LAG,并且配置所述MC-LAG对应的PeerLink接口;在MC-LAG接口为所述MC-LAG配置与对端PE设备对应的MC-LAG相同的ESI。The configuration module 1810 is configured to perform a single dual-homing hybrid access configuration, where the MC-LAG is configured, and the PeerLink interface corresponding to the MC-LAG is configured; and the MC-LAG interface is configured with the peer PE. The same ESI of the MC-LAG corresponding to the device.
绑定模块1820,配置为将MC-LAG接口、所述PeerLink接口和单归接口绑定VXLAN域;The binding module 1820 is configured to bind the MC-LAG interface, the PeerLink interface, and the single-homed interface to the VXLAN domain.
转发模块1830,配置为在单双归混合接入场景下,根据预设的过滤转发规则,在所述VXLAN域内,负荷分担转发单播报文并广播接收到的BUM报文。The forwarding module 1830 is configured to load and forward the unicast packet and broadcast the received BUM packet in the VXLAN domain according to a preset filtering and forwarding rule.
在一实施例中,所述配置模块1810,配置为在所述执行单双归混合接入配置时,禁止与所述MC-LAG的ESI相同的PE设备成为边界网关协议BGP以太网虚拟专用网络EVPN邻居;根据所述MC-LAG的主备状态,确定所述ESI的DF状态。换言之,所述配置模块1810,配置ESI的DF状态受MC-LAG的主备状态控制。In an embodiment, the configuration module 1810 is configured to prevent the PE device that is the same as the ESI of the MC-LAG from being a border gateway protocol BGP Ethernet virtual private network when the single-homing hybrid access configuration is performed. EVPN neighbor; determining the DF state of the ESI according to the active/standby state of the MC-LAG. In other words, in the configuration module 1810, the DF state of the configuration ESI is controlled by the active/standby state of the MC-LAG.
在一实施例中,所述转发模块1830,配置为:In an embodiment, the forwarding module 1830 is configured to:
如果从所述MC-LAG接口和所述单归接口接收到所述单播报文,则根据转发表条目转发所述单播报文;If the unicast packet is received from the MC-LAG interface and the single-homed interface, the unicast packet is forwarded according to the forwarding table entry;
如果从所述MC-LAG接口和所述单归接口接收到所述BUM报文,则直接在所述VXLAN域内广播所述BUM报文;If the BUM message is received from the MC-LAG interface and the single-homed interface, the BUM message is directly broadcasted in the VXLAN domain;
如果从所述PeerLink接口接收到所述BUM报文,则在所述VXLAN域内禁止向所述MC-LAG接口和VXLAN EVPN网络侧广播所述BUM报文,仅向所述单归接口广播所述BUM报文;If the BUM message is received from the PeerLink interface, the BUM message is prohibited from being broadcast to the MC-LAG interface and the VXLAN EVPN network side in the VXLAN domain, and only the single-homed interface is broadcasted to the single-homed interface. BUM message;
如果从VXLAN EVPN网络侧接收到所述BUM报文,则在所述VXLAN域内禁止向所述PeerLink接口广播所述BUM报文,仅向所述单归接口和符合预设条件的MC-LAG接口广播所述BUM报文;所述预设条件是指:在所述MC-LAG接口配置的ESI的DF状态为DF。If the BUM message is received from the VXLAN EVPN network, the BUM message is prohibited from being broadcast to the PeerLink interface in the VXLAN domain, and only the single-homed interface and the MC-LAG interface that meet the preset condition are The BUM message is broadcasted; the preset condition is that the DF state of the ESI configured on the MC-LAG interface is DF.
在一实施例中,所述装置还包括处理模块(图中未示出)。In an embodiment, the apparatus further includes a processing module (not shown).
所述处理模块,配置为:The processing module is configured to:
如果感知到对端PE设备故障,则更新本端PE设备对应的MC-LAG的主备状态,并根据更新后的所述MC-LAG的主备状态重新确定本端PE设备对应的MC-LAG的ESI的DF状态;If the fault of the peer PE device is detected, the active/standby state of the MC-LAG corresponding to the local PE device is updated, and the MC-LAG corresponding to the local PE device is re-determined according to the updated active/standby state of the MC-LAG. DF state of ESI;
如果通过BGP设备感知到BGP EVPN邻居设备故障,则删除所述BGP EVPN邻居设备传递的对应转发表条目;If the BGP EVPN neighbor device is faulty, the BGP EVPN neighbor device sends the corresponding forwarding table entry.
如果本端PE设备的所述MC-LAG接口故障,则删除所述MC-LAG接口对应的转发表条目,并通知所述BGP设备以便BGP EVPN邻居设备进行远端表项删除;If the MC-LAG interface of the local PE device is faulty, the forwarding table entry corresponding to the MC-LAG interface is deleted, and the BGP device is notified to enable the BGP EVPN neighboring device to delete the remote entry.
如果本端PE设备的所述MC-LAG接口故障,则更新本端PE设备对应的MC-LAG的主备状态,并根据更新后的所述MC-LAG的主备状态重新确定本端PE设备对应的MC-LAG的ESI的DF状态;If the MC-LAG interface of the local PE device is faulty, the active/standby state of the MC-LAG corresponding to the local PE device is updated, and the local PE device is re-determined according to the updated active/standby state of the MC-LAG. The DF state of the ESI of the corresponding MC-LAG;
如果本端PE设备的所述PeerLink接口故障,且所述PeerLink接口对应的MC-LAG的ESI的DF状态为Non-DF,则将所有MC-LAG接口关闭。If the PeerLink interface of the local PE device fails, and the DF state of the ESI of the MC-LAG corresponding to the PeerLink interface is Non-DF, all MC-LAG interfaces are closed.
在一实施例中,所述转发模块1830,配置为:在接收到单播报文时,如果该单播报文存在对应的转发表条目,则根据转发表规则进行转发;在接收到未知单播报文时,判断所述VXLAN域是否已经开启未知报文域内广播功能;如果已经开启未知报文域内广播功能,则根据预设的过滤转发规则,在所述VXLAN域内,广播所述未知单播报文;反之,丢弃所述未知单播报文。In an embodiment, the forwarding module 1830 is configured to: when the unicast packet is received, if the unicast packet has a corresponding forwarding table entry, forward the packet according to the forwarding table rule; and receive the unknown unicast packet. And determining, in the VXLAN domain, whether the broadcast function in the unknown packet domain is enabled; if the broadcast function in the unknown packet domain is enabled, the unknown unicast packet is broadcasted in the VXLAN domain according to a preset filtering and forwarding rule; Otherwise, the unknown unicast message is discarded.
本实施例所述的装置的功能已经在图4~图17所示的方法实施例中进行了描述,故本实施例的描述中未详尽之处,可以参见前述实施例中的相关说明,在此不做赘述。The functions of the device in this embodiment have been described in the method embodiments shown in FIG. 4 to FIG. 17. Therefore, in the description of the present embodiment, reference may be made to the related description in the foregoing embodiment. This will not be repeated.
实施例六Embodiment 6
本实施例还提供了一种计算机程序、存储有该程序的存储介质和PE设备。The embodiment further provides a computer program, a storage medium storing the program, and a PE device.
其中,执行该程序用于实现:执行单双归混合接入配置;其中,配置MC-LAG,并且配置所述MC-LAG对应的PeerLink接口;在MC-LAG接口为所述MC-LAG配置与对端PE设备对应的MC-LAG相同的ESI;将所述MC-LAG接口、所述PeerLink接口和单归接口绑定VXLAN域;在单双归混合接入场景下,根据预设的过滤转发规则,在所述VXLAN域内,负荷分担转发单播报文并广播接收到的广播&未知单播&组播BUM报文。The program is executed to implement: performing a single dual-homing hybrid access configuration; wherein, configuring an MC-LAG, and configuring a PeerLink interface corresponding to the MC-LAG; configuring, on the MC-LAG interface, the MC-LAG The same ESI of the MC-LAG corresponding to the peer PE device; the MC-LAG interface, the PeerLink interface, and the single-homed interface are bound to the VXLAN domain; in the single-and-double hybrid access scenario, the packet is forwarded according to preset filtering. The rule is that in the VXLAN domain, the load sharing forwards the unicast packet and broadcasts the received broadcast & unknown unicast & multicast BUM message.
进一步地,在所述执行单双归混合接入配置时,所述方法还包括:禁止与所述MC-LAG的ESI相同的PE设备成为边界网关协议BGP以太网虚拟专用网络EVPN邻居;根据所述MC-LAG的主备状态,确定所述MC-LAG的ESI的DF状态。Further, in the performing the single dual-homing hybrid access configuration, the method further includes: prohibiting the PE device that is the same as the ESI of the MC-LAG from being a border gateway protocol BGP Ethernet virtual private network EVPN neighbor; The active/standby state of the MC-LAG is determined, and the DF state of the ESI of the MC-LAG is determined.
进一步地,所述根据预设的过滤转发规则,在所述VXLAN域内,负荷分担转发单播报文并广播接收到的BUM报文,包括:如果从所述MC-LAG接口和所述单归接口接收到所述单播报文,则根据转发表条目转发所述单播报文;如果从所述MC-LAG接口和所述单归接口接收到所述BUM报文,则直接在所述VXLAN域内广播所述BUM报文;如果从所述PeerLink接口接收到所述BUM报文,则在所述VXLAN域内禁止向所述MC-LAG接口和VXLAN EVPN网络侧广播所述BUM报文,仅向所述单归接口广播所述BUM报文;如果从VXLAN EVPN网络侧接收到所述BUM报文,则在所述VXLAN域内禁止向所述PeerLink接口广播所述BUM报文,仅向所述单归接口和符合预设条件的MC-LAG接口广播所述BUM报文;所述预设条件是指:在所述MC-LAG接口配置的ESI的DF状态为DF。Further, according to the preset filtering and forwarding rule, in the VXLAN domain, the load sharing forwards the unicast packet and broadcasts the received BUM packet, including: if the MC-LAG interface and the single-homing interface are Receiving the unicast packet, and forwarding the unicast packet according to the forwarding table entry; if the BUM packet is received from the MC-LAG interface and the single-homed interface, directly broadcasting in the VXLAN domain The BUM message, if the BUM message is received from the PeerLink interface, the BUM message is prohibited from being broadcast to the MC-LAG interface and the VXLAN EVPN network side in the VXLAN domain, only to the The single-homed interface broadcasts the BUM message; if the BUM message is received from the VXLAN EVPN network side, the BUM message is prohibited from being broadcast to the PeerLink interface in the VXLAN domain, and only the single-homed interface is And the MC-LAG interface that meets the preset condition broadcasts the BUM message; the preset condition is that the DF state of the ESI configured on the MC-LAG interface is DF.
进一步地,所述方法还包括:如果感知到对端PE设备故障,则更新本 端PE设备对应的MC-LAG的主备状态,并根据更新后的所述MC-LAG的主备状态重新确定本端PE设备对应的MC-LAG的ESI的DF状态;如果通过BGP设备感知到BGP EVPN邻居设备故障,则删除所述BGP EVPN邻居设备传递的对应转发表条目;如果本端PE设备的所述MC-LAG接口故障,则删除所述MC-LAG接口对应的转发表条目,并通知所述BGP设备以便BGP EVPN邻居设备进行远端表项删除;如果本端PE设备的所述MC-LAG接口故障,则更新本端PE设备对应的MC-LAG的主备状态,并根据更新后的所述MC-LAG的主备状态重新确定本端PE设备对应的MC-LAG的ESI的DF状态;如果本端PE设备的所述PeerLink接口故障,且所述PeerLink接口对应的MC-LAG的ESI的DF状态为Non-DF,则将所有MC-LAG接口关闭。Further, the method further includes: updating the active/standby state of the MC-LAG corresponding to the local PE device, and re-determining according to the updated active/standby status of the MC-LAG, if the peer PE device is faulty. The DF state of the ESI of the MC-LAG corresponding to the local PE device; if the BGP device detects that the BGP EVPN neighbor device is faulty, the corresponding forwarding table entry transmitted by the BGP EVPN neighbor device is deleted; if the local PE device is If the MC-LAG interface is faulty, the forwarding table entry corresponding to the MC-LAG interface is deleted, and the BGP device is notified to the BGP EVPN neighboring device to delete the remote entry. If the MC-LAG interface of the local PE device is used, If the fault occurs, the active/standby status of the MC-LAG corresponding to the local PE device is updated, and the DF status of the ESI of the MC-LAG corresponding to the local PE device is re-determined according to the updated active/standby status of the MC-LAG; If the PeerLink interface of the local PE device is faulty, and the DF state of the ESI of the MC-LAG corresponding to the PeerLink interface is Non-DF, all MC-LAG interfaces are closed.
进一步地,所述根据预设的过滤转发规则,在所述VXLAN域内,负荷分担转发单播报文并广播接收到的BUM报文,包括:在接收到未知单播报文时,判断所述VXLAN域是否已经开启未知报文域内广播功能;如果已经开启所述未知报文域内广播功能,则根据预设的过滤转发规则,在所述VXLAN域内广播所述未知单播报文;反之,丢弃所述未知单播报文。Further, according to the preset filtering and forwarding rule, in the VXLAN domain, the load sharing forwards the unicast packet and broadcasts the received BUM packet, including: determining the VXLAN domain when receiving the unknown unicast packet If the broadcast function in the unknown packet domain is enabled, if the broadcast function in the unknown packet domain is enabled, the unknown unicast packet is broadcasted in the VXLAN domain according to the preset filtering and forwarding rule; otherwise, the unknown is discarded. Unicast message.
该存储介质主要是配置为存储上述程序,因此,本实施例不再详细描述存储介质内的程序;而存储介质只要能存储上述程序即可。The storage medium is mainly configured to store the above program. Therefore, the program in the storage medium is not described in detail in this embodiment; and the storage medium can store the above program.
具体而言,所述存储介质可以是计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现本发明实施例所述方法的步骤。In particular, the storage medium may be a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of the method of the embodiments of the invention.
前述实施例所公开的PE设备对应的VXLAN单归和双归混合接入的技术方案可以通过在PE设备中实施执行,以得到对应的PE设备。本实施例以运行在PE设备上为例进行说明,图19是本公开实施例的一种实现VXLAN单归和双归混合接入方法的PE设备的硬件结构示意图。如图19所示,PE设备1900可以包括一个或多个(图中仅示出一个)处理器1910(处理器1910可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、配置为存储数据的存储器1920、以及配置为通信功能的数据收发器1930。本领域普通技术人员可以理解,图19所示的结构仅为示 意,其并不对上述电子装置的结构造成单一限定。例如,PE设备1900通过对上述功能的拆分或合并,还可包括比图19中所示更多或者更少的组件,或者具有与图19所示不同的配置。The technical solution of the VXLAN single-homing and dual-homing hybrid access corresponding to the PE device disclosed in the foregoing embodiment can be implemented in the PE device to obtain the corresponding PE device. This embodiment is described as an example of operating a PE device. FIG. 19 is a schematic diagram of a hardware structure of a PE device that implements a VXLAN single-homed and dual-homed hybrid access method according to an embodiment of the present disclosure. As shown in FIG. 19, PE device 1900 can include one or more (only one shown) processor 1910 (processor 1910 can include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA). A memory 1920 configured to store data and a data transceiver 1930 configured as a communication function. It will be understood by those skilled in the art that the structure shown in FIG. 19 is merely illustrative and does not impose a single limitation on the structure of the above electronic device. For example, the PE device 1900 may further include more or less components than those shown in FIG. 19 by splitting or merging the above functions, or have a configuration different from that shown in FIG.
存储器1920可以配置为存储应用软件的软件程序以及模块,前述实施例中公开的PE设备对应的VXLAN单归和双归混合接入方法对应的程序指令/模块就可以存储在存储器1920,关于VXLAN单归和双归混合接入方法在之前的实施例已经详细描述,因此本实施例不再详细重述。The memory 1920 can be configured as a software program and a module for storing application software, and the program instructions/modules corresponding to the VXLAN single-homed and dual-homed hybrid access methods corresponding to the PE device disclosed in the foregoing embodiment can be stored in the memory 1920, regarding the VXLAN list. The dual-homing hybrid access method has been described in detail in the previous embodiments, and thus the present embodiment will not be repeated in detail.
处理器1910通过运行(执行)存储在存储器1920内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器1920可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器1920可进一步包括相对于处理器1910远程设置的存储器(云存储器),这些远程存储器可以通过网络连接至PE设备1900。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The processor 1910 performs various functional applications and data processing by executing (executing) software programs and modules stored in the memory 1920, that is, implementing the above method. Memory 1920 can include high speed random access memory, and can also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, memory 1920 can further include memory (cloud memory) remotely located relative to processor 1910, which can be connected to PE device 1900 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
数据收发器1930配置为经由一个网络接收或者发送数据。上述的网络具体实例可包括PE设备1900的通信供应商提供的无线网络。在一个实例中,数据收发器1930包括一个NIC(Network Interface Controller,网络适配器),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,数据收发器1930包括RF(Radio Frequency,射频)模块,其配置为通过无线方式与互联网进行通讯。The data transceiver 1930 is configured to receive or transmit data via a network. The network specific examples described above may include a wireless network provided by a communication provider of the PE device 1900. In one example, the data transceiver 1930 includes a NIC (Network Interface Controller) that can be connected to other network devices through a base station to communicate with the Internet. In one example, data transceiver 1930 includes an RF (Radio Frequency) module configured to communicate with the Internet wirelessly.
尽管为示例目的,已经公开了本公开的优选实施例,本领域的技术人员将意识到各种改进、增加和取代也是可能的,因此,本公开的范围应当不限于上述实施例。While the preferred embodiment of the present disclosure has been disclosed for purposes of illustration, those skilled in the art will recognize that various modifications, additions and substitutions are possible, and the scope of the present disclosure should not be limited to the embodiments described above.
工业实用性Industrial applicability
本公开实施例提供的方案,执行单双归混合接入配置;其中,配置MC-LAG,并且配置所述MC-LAG对应的PeerLink接口;在MC-LAG接口为所述MC-LAG配置与对端PE设备对应的MC-LAG相同的ESI;将所述MC-LAG接口、所述PeerLink接口和单归接口绑定VXLAN域;在单双 归混合接入场景下,根据预设的过滤转发规则,在所述VXLAN域内,负荷分担转发单播报文并广播接收到的BUM报文,有机结合了ESI技术和MC-LAG Peerlink技术,并在此基础上设定过滤转发规则,进而支持双归的负荷分担发送,并解决了BUM报文回环和/或BUM报文无法接收的问题,因此本公开实施例可以支持单归和双归混合接入的应用场景。The solution provided by the embodiment of the present disclosure is configured to perform a single-homing hybrid access configuration, where the MC-LAG is configured, and the PeerLink interface corresponding to the MC-LAG is configured; and the MC-LAG interface is configured and configured on the MC-LAG. The same ESI of the MC-LAG corresponding to the end PE device; the MC-LAG interface, the PeerLink interface, and the single-homed interface are bound to the VXLAN domain; in a single-and-double hybrid access scenario, according to a preset filtering and forwarding rule In the VXLAN domain, the load sharing forwards the unicast packet and broadcasts the received BUM packet, which combines the ESI technology and the MC-LAG Peerlink technology, and sets the filtering and forwarding rules on the basis of the VXLAN domain. The load sharing is performed, and the problem that the BUM packet loopback and/or the BUM packet cannot be received is solved. Therefore, the embodiment of the present disclosure can support the application scenario of single-homing and dual-homing hybrid access.

Claims (16)

  1. 一种虚拟扩展局域网VXLAN单归和双归混合接入方法,在运营商边缘PE设备执行,包括:A virtual extended local area network VXLAN single-homing and dual-homing hybrid access method is implemented on a carrier edge PE device, including:
    执行单双归混合接入配置;其中,配置跨设备链路聚合组MC-LAG,并且配置所述MC-LAG对应的PeerLink接口;在MC-LAG接口为所述MC-LAG配置与对端PE设备对应的MC-LAG相同的以太网段标识ESI;Performing a single-homed hybrid access configuration, where the inter-device link aggregation group MC-LAG is configured, and the PeerLink interface corresponding to the MC-LAG is configured; the MC-LAG interface is configured as the MC-LAG and the peer PE is configured. The same Ethernet segment identifier ESI of the MC-LAG corresponding to the device;
    将所述MC-LAG接口、所述PeerLink接口和单归接口绑定VXLAN域;Binding the MC-LAG interface, the PeerLink interface, and the single-homed interface to a VXLAN domain;
    在单双归混合接入场景下,根据预设的过滤转发规则,在所述VXLAN域内,负荷分担转发单播报文并广播接收到的广播&未知单播&组播BUM报文。In a single-and-double-homed hybrid access scenario, load balancing forwards unicast packets and broadcasts the received broadcast & unknown unicast & multicast BUM packets in the VXLAN domain according to the preset filtering and forwarding rules.
  2. 根据权利要求1所述的方法,其中,在所述执行单双归混合接入配置时,所述方法还包括:The method of claim 1, wherein when the performing a single dual-homing hybrid access configuration, the method further comprises:
    禁止与所述MC-LAG的ESI相同的PE设备成为边界网关协议BGP以太网虚拟专用网络EVPN邻居;The PE device that is the same as the ESI of the MC-LAG is prohibited from being the border gateway protocol BGP Ethernet virtual private network EVPN neighbor;
    根据所述MC-LAG的主备状态,确定所述MC-LAG的ESI的DF状态。Determining the DF state of the ESI of the MC-LAG according to the active/standby state of the MC-LAG.
  3. 根据权利要求2所述的方法,其中,所述根据预设的过滤转发规则,在所述VXLAN域内,负荷分担转发单播报文并广播接收到的BUM报文,包括:The method of claim 2, wherein the load balancing forwards the unicast message and broadcasts the received BUM message in the VXLAN domain according to the preset filtering and forwarding rule, including:
    如果从所述MC-LAG接口和所述单归接口接收到所述单播报文,则根据转发表条目转发所述单播报文;If the unicast packet is received from the MC-LAG interface and the single-homed interface, the unicast packet is forwarded according to the forwarding table entry;
    如果从所述MC-LAG接口和所述单归接口接收到所述BUM报文,则直接在所述VXLAN域内广播所述BUM报文;If the BUM message is received from the MC-LAG interface and the single-homed interface, the BUM message is directly broadcasted in the VXLAN domain;
    如果从所述PeerLink接口接收到所述BUM报文,则在所述VXLAN域内禁止向所述MC-LAG接口和VXLAN EVPN网络侧广播所述BUM报文,仅向所述单归接口广播所述BUM报文;If the BUM message is received from the PeerLink interface, the BUM message is prohibited from being broadcast to the MC-LAG interface and the VXLAN EVPN network side in the VXLAN domain, and only the single-homed interface is broadcasted to the single-homed interface. BUM message;
    如果从VXLAN EVPN网络侧接收到所述BUM报文,则在所述VXLAN域内禁止向所述PeerLink接口广播所述BUM报文,仅向所述单归接口和 符合预设条件的MC-LAG接口广播所述BUM报文;所述预设条件是指:在所述MC-LAG接口配置的ESI的DF状态为DF。If the BUM message is received from the VXLAN EVPN network, the BUM message is prohibited from being broadcast to the PeerLink interface in the VXLAN domain, and only the single-homed interface and the MC-LAG interface that meet the preset condition are The BUM message is broadcasted; the preset condition is that the DF state of the ESI configured on the MC-LAG interface is DF.
  4. 如权利要求2所述的方法,其中,所述方法还包括:The method of claim 2, wherein the method further comprises:
    如果感知到对端PE设备故障,则更新本端PE设备对应的MC-LAG的主备状态,并根据更新后的所述MC-LAG的主备状态重新确定本端PE设备对应的MC-LAG的ESI的DF状态;If the fault of the peer PE device is detected, the active/standby state of the MC-LAG corresponding to the local PE device is updated, and the MC-LAG corresponding to the local PE device is re-determined according to the updated active/standby state of the MC-LAG. DF state of ESI;
    如果通过BGP设备感知到BGP EVPN邻居设备故障,则删除所述BGP EVPN邻居设备传递的对应转发表条目;If the BGP EVPN neighbor device is faulty, the BGP EVPN neighbor device sends the corresponding forwarding table entry.
    如果本端PE设备的所述MC-LAG接口故障,则删除所述MC-LAG接口对应的转发表条目,并通知所述BGP设备以便BGP EVPN邻居设备进行远端表项删除;If the MC-LAG interface of the local PE device is faulty, the forwarding table entry corresponding to the MC-LAG interface is deleted, and the BGP device is notified to enable the BGP EVPN neighboring device to delete the remote entry.
    如果本端PE设备的所述MC-LAG接口故障,则更新本端PE设备对应的MC-LAG的主备状态,并根据更新后的所述MC-LAG的主备状态重新确定本端PE设备对应的MC-LAG的ESI的DF状态;If the MC-LAG interface of the local PE device is faulty, the active/standby state of the MC-LAG corresponding to the local PE device is updated, and the local PE device is re-determined according to the updated active/standby state of the MC-LAG. The DF state of the ESI of the corresponding MC-LAG;
    如果本端PE设备的所述PeerLink接口故障,且所述PeerLink接口对应的MC-LAG的ESI的DF状态为Non-DF,则将所有MC-LAG接口关闭。If the PeerLink interface of the local PE device fails, and the DF state of the ESI of the MC-LAG corresponding to the PeerLink interface is Non-DF, all MC-LAG interfaces are closed.
  5. 根据权利要求1至4任一项所述的方法,其中,所述根据预设的过滤转发规则,在所述VXLAN域内,负荷分担转发单播报文并广播接收到的BUM报文,包括:The method according to any one of claims 1 to 4, wherein, according to the preset filtering and forwarding rule, in the VXLAN domain, the load sharing forwards the unicast packet and broadcasts the received BUM packet, including:
    在接收到未知单播报文时,判断所述VXLAN域是否已经开启未知报文域内广播功能;When the unknown unicast packet is received, it is determined whether the VXLAN domain has enabled the broadcast function in the unknown packet domain;
    如果已经开启所述未知报文域内广播功能,则根据预设的过滤转发规则,在所述VXLAN域内广播所述未知单播报文;反之,丢弃所述未知单播报文。If the broadcast function in the unknown packet domain is enabled, the unknown unicast packet is broadcasted in the VXLAN domain according to the preset filtering and forwarding rule; otherwise, the unknown unicast packet is discarded.
  6. 一种虚拟扩展局域网VXLAN单归和双归混合接入装置,在运营商边缘PE设备执行,包括:A virtual extended local area network VXLAN single-homing and dual-homing hybrid access device is implemented on a carrier edge PE device, including:
    配置模块,配置为执行单双归混合接入配置;其中,配置跨设备链路聚合组MC-LAG,并且配置所述MC-LAG对应的PeerLink接口;在 MC-LAG接口为所述MC-LAG配置与对端PE设备对应的MC-LAG相同的以太网段标识ESI;The configuration module is configured to perform a single-homed hybrid access configuration, where the inter-device link aggregation group MC-LAG is configured, and the PeerLink interface corresponding to the MC-LAG is configured; the MC-LAG interface is the MC-LAG Configure the same Ethernet segment identifier ESI as the MC-LAG corresponding to the peer PE device.
    绑定模块,配置为将所述MC-LAG接口、所述PeerLink接口和单归接口绑定VXLAN域;a binding module, configured to bind the MC-LAG interface, the PeerLink interface, and the single-homed interface to a VXLAN domain;
    转发模块,配置为在单双归混合接入场景下,根据预设的过滤转发规则,在所述VXLAN域内,负荷分担转发单播报文并广播接收到的广播&未知单播&组播BUM报文。The forwarding module is configured to load and forward the unicast packet and broadcast the received broadcast & unknown unicast & multicast BUM report in the VXLAN domain according to a preset filtering and forwarding rule. Text.
  7. 根据权利要求6所述的装置,其中,所述配置模块,还配置为:The device of claim 6, wherein the configuration module is further configured to:
    在所述执行单双归混合接入配置时,禁止与所述MC-LAG的ESI相同的PE设备成为边界网关协议BGP以太网虚拟专用网络EVPN邻居;When the single-homing hybrid access configuration is performed, the PE device that is the same as the ESI of the MC-LAG is prohibited from being the border gateway protocol BGP Ethernet virtual private network EVPN neighbor;
    根据所述MC-LAG的主备状态,确定所述MC-LAG的ESI的DF状态。Determining the DF state of the ESI of the MC-LAG according to the active/standby state of the MC-LAG.
  8. 根据权利要求7所述的装置,其中,所述转发模块,配置为:The apparatus according to claim 7, wherein the forwarding module is configured to:
    如果从所述MC-LAG接口和所述单归接口接收到所述单播报文,则根据转发表条目转发所述单播报文;If the unicast packet is received from the MC-LAG interface and the single-homed interface, the unicast packet is forwarded according to the forwarding table entry;
    如果从所述MC-LAG接口和所述单归接口接收到所述BUM报文,则直接在所述VXLAN域内广播所述BUM报文;If the BUM message is received from the MC-LAG interface and the single-homed interface, the BUM message is directly broadcasted in the VXLAN domain;
    如果从所述PeerLink接口接收到所述BUM报文,则在所述VXLAN域内禁止向所述MC-LAG接口和VXLAN EVPN网络侧广播所述BUM报文,仅向所述单归接口广播所述BUM报文;If the BUM message is received from the PeerLink interface, the BUM message is prohibited from being broadcast to the MC-LAG interface and the VXLAN EVPN network side in the VXLAN domain, and only the single-homed interface is broadcasted to the single-homed interface. BUM message;
    如果从VXLAN EVPN网络侧接收到所述BUM报文,则在所述VXLAN域内禁止向所述PeerLink接口广播所述BUM报文,仅向所述单归接口和符合预设条件的MC-LAG接口广播所述BUM报文;所述预设条件是指:在所述MC-LAG接口配置的ESI的DF状态为DF。If the BUM message is received from the VXLAN EVPN network, the BUM message is prohibited from being broadcast to the PeerLink interface in the VXLAN domain, and only the single-homed interface and the MC-LAG interface that meet the preset condition are The BUM message is broadcasted; the preset condition is that the DF state of the ESI configured on the MC-LAG interface is DF.
  9. 如权利要求7所述的装置,其中,所述装置还包括处理模块;所述处理模块,配置为:The device of claim 7, wherein the device further comprises a processing module; the processing module configured to:
    如果感知到对端PE设备故障,则更新本端PE设备对应的MC-LAG的主备状态,并根据更新后的所述MC-LAG的主备状态重新确定本端PE设备对应的MC-LAG的ESI的DF状态;If the fault of the peer PE device is detected, the active/standby state of the MC-LAG corresponding to the local PE device is updated, and the MC-LAG corresponding to the local PE device is re-determined according to the updated active/standby state of the MC-LAG. DF state of ESI;
    如果通过BGP设备感知到BGP EVPN邻居设备故障,则删除所述BGP EVPN邻居设备传递的对应转发表条目;If the BGP EVPN neighbor device is faulty, the BGP EVPN neighbor device sends the corresponding forwarding table entry.
    如果本端PE设备的所述MC-LAG接口故障,则删除所述MC-LAG接口对应的转发表条目,并通知所述BGP设备以便BGP EVPN邻居设备进行远端表项删除;If the MC-LAG interface of the local PE device is faulty, the forwarding table entry corresponding to the MC-LAG interface is deleted, and the BGP device is notified to enable the BGP EVPN neighboring device to delete the remote entry.
    如果本端PE设备的所述MC-LAG接口故障,则更新本端PE设备对应的MC-LAG的主备状态,并根据更新后的所述MC-LAG的主备状态重新确定本端PE设备对应的MC-LAG的ESI的DF状态;If the MC-LAG interface of the local PE device is faulty, the active/standby state of the MC-LAG corresponding to the local PE device is updated, and the local PE device is re-determined according to the updated active/standby state of the MC-LAG. The DF state of the ESI of the corresponding MC-LAG;
    如果本端PE设备的所述PeerLink接口故障,且所述PeerLink接口对应的MC-LAG的ESI的DF状态为Non-DF,则将所有MC-LAG接口关闭。If the PeerLink interface of the local PE device fails, and the DF state of the ESI of the MC-LAG corresponding to the PeerLink interface is Non-DF, all MC-LAG interfaces are closed.
  10. 根据权利要求6至9任一项所述的装置,其中,所述转发模块,还配置为:The device according to any one of claims 6 to 9, wherein the forwarding module is further configured to:
    在接收到未知单播报文时,判断所述VXLAN域是否已经开启未知报文域内广播功能;When the unknown unicast packet is received, it is determined whether the VXLAN domain has enabled the broadcast function in the unknown packet domain;
    如果已经开启所述未知报文域内广播功能,则根据预设的过滤转发规则,在所述VXLAN域内广播所述未知单播报文;反之,丢弃所述未知单播报文。If the broadcast function in the unknown packet domain is enabled, the unknown unicast packet is broadcasted in the VXLAN domain according to the preset filtering and forwarding rule; otherwise, the unknown unicast packet is discarded.
  11. 一种运营商边缘PE设备,所述PE设备包括进行数据处理的处理器、配置为数据存储的存储器和配置为数据发送和/或接收的数据收发器,所述处理器执行所述存储器中存储的数据时,执行如下操作:An operator edge PE device, the PE device comprising a processor for data processing, a memory configured for data storage, and a data transceiver configured for data transmission and/or reception, the processor executing the memory storage When doing the data, do the following:
    执行单双归混合接入配置;其中,配置跨设备链路聚合组MC-LAG,并且配置所述MC-LAG对应的PeerLink接口;在MC-LAG接口为所述MC-LAG配置与对端PE设备对应的MC-LAG相同的以太网段标识ESI;Performing a single-homed hybrid access configuration, where the inter-device link aggregation group MC-LAG is configured, and the PeerLink interface corresponding to the MC-LAG is configured; the MC-LAG interface is configured as the MC-LAG and the peer PE is configured. The same Ethernet segment identifier ESI of the MC-LAG corresponding to the device;
    将所述MC-LAG接口、所述PeerLink接口和单归接口绑定VXLAN域;Binding the MC-LAG interface, the PeerLink interface, and the single-homed interface to a VXLAN domain;
    在单双归混合接入场景下,根据预设的过滤转发规则,在所述VXLAN域内,负荷分担转发单播报文并广播接收到的广播&未知单播&组播BUM报文。In a single-and-double-homed hybrid access scenario, load balancing forwards unicast packets and broadcasts the received broadcast & unknown unicast & multicast BUM packets in the VXLAN domain according to the preset filtering and forwarding rules.
  12. 根据权利要求11所述的PE设备,其中,所述处理器执行所述存 储器中存储的数据时,还执行如下操作:The PE device according to claim 11, wherein when said processor executes data stored in said memory, it further performs the following operations:
    在所述执行单双归混合接入配置时,禁止与所述MC-LAG的ESI相同的PE设备成为边界网关协议BGP以太网虚拟专用网络EVPN邻居;When the single-homing hybrid access configuration is performed, the PE device that is the same as the ESI of the MC-LAG is prohibited from being the border gateway protocol BGP Ethernet virtual private network EVPN neighbor;
    根据所述MC-LAG的主备状态,确定所述MC-LAG的ESI的DF状态。Determining the DF state of the ESI of the MC-LAG according to the active/standby state of the MC-LAG.
  13. 根据权利要求12所述的PE设备,其中,所述根据预设的过滤转发规则,在所述VXLAN域内,负荷分担转发单播报文并广播接收到的BUM报文,包括:The PE device of claim 12, wherein the load balancing forwards the unicast message and broadcasts the received BUM message in the VXLAN domain according to the preset filtering and forwarding rule, including:
    如果从所述MC-LAG接口和所述单归接口接收到所述单播报文,则根据转发表条目转发所述单播报文;If the unicast packet is received from the MC-LAG interface and the single-homed interface, the unicast packet is forwarded according to the forwarding table entry;
    如果从所述MC-LAG接口和所述单归接口接收到所述BUM报文,则直接在所述VXLAN域内广播所述BUM报文;If the BUM message is received from the MC-LAG interface and the single-homed interface, the BUM message is directly broadcasted in the VXLAN domain;
    如果从所述PeerLink接口接收到所述BUM报文,则在所述VXLAN域内禁止向所述MC-LAG接口和VXLAN EVPN网络侧广播所述BUM报文,仅向所述单归接口广播所述BUM报文;If the BUM message is received from the PeerLink interface, the BUM message is prohibited from being broadcast to the MC-LAG interface and the VXLAN EVPN network side in the VXLAN domain, and only the single-homed interface is broadcasted to the single-homed interface. BUM message;
    如果从VXLAN EVPN网络侧接收到所述BUM报文,则在所述VXLAN域内禁止向所述PeerLink接口广播所述BUM报文,仅向所述单归接口和符合预设条件的MC-LAG接口广播所述BUM报文;所述预设条件是指:在所述MC-LAG接口配置的ESI的DF状态为DF。If the BUM message is received from the VXLAN EVPN network, the BUM message is prohibited from being broadcast to the PeerLink interface in the VXLAN domain, and only the single-homed interface and the MC-LAG interface that meet the preset condition are The BUM message is broadcasted; the preset condition is that the DF state of the ESI configured on the MC-LAG interface is DF.
  14. 如权利要求12所述的PE设备,其中,所述处理器执行所述存储器中存储的数据时,执行如下操作:The PE device of claim 12, wherein when said processor executes data stored in said memory, performing the following operations:
    如果感知到对端PE设备故障,则更新本端PE设备对应的MC-LAG的主备状态,并根据更新后的所述MC-LAG的主备状态重新确定本端PE设备对应的MC-LAG的ESI的DF状态;If the fault of the peer PE device is detected, the active/standby state of the MC-LAG corresponding to the local PE device is updated, and the MC-LAG corresponding to the local PE device is re-determined according to the updated active/standby state of the MC-LAG. DF state of ESI;
    如果通过BGP设备感知到BGP EVPN邻居设备故障,则删除所述BGP EVPN邻居设备传递的对应转发表条目;If the BGP EVPN neighbor device is faulty, the BGP EVPN neighbor device sends the corresponding forwarding table entry.
    如果本端PE设备的所述MC-LAG接口故障,则删除所述MC-LAG接口对应的转发表条目,并通知所述BGP设备以便BGP EVPN邻居设备进行远端表项删除;If the MC-LAG interface of the local PE device is faulty, the forwarding table entry corresponding to the MC-LAG interface is deleted, and the BGP device is notified to enable the BGP EVPN neighboring device to delete the remote entry.
    如果本端PE设备的所述MC-LAG接口故障,则更新本端PE设备对应的MC-LAG的主备状态,并根据更新后的所述MC-LAG的主备状态重新确定本端PE设备对应的MC-LAG的ESI的DF状态;If the MC-LAG interface of the local PE device is faulty, the active/standby state of the MC-LAG corresponding to the local PE device is updated, and the local PE device is re-determined according to the updated active/standby state of the MC-LAG. The DF state of the ESI of the corresponding MC-LAG;
    如果本端PE设备的所述PeerLink接口故障,且所述PeerLink接口对应的MC-LAG的ESI的DF状态为Non-DF,则将所有MC-LAG接口关闭。If the PeerLink interface of the local PE device fails, and the DF state of the ESI of the MC-LAG corresponding to the PeerLink interface is Non-DF, all MC-LAG interfaces are closed.
  15. 根据权利要求11至14任一项所述的PE设备,其中,所述根据预设的过滤转发规则,在所述VXLAN域内,负荷分担转发单播报文并广播接收到的BUM报文,包括:The PE device according to any one of claims 11 to 14, wherein, according to the preset filtering and forwarding rule, in the VXLAN domain, the load sharing forwards the unicast packet and broadcasts the received BUM packet, including:
    在接收到未知单播报文时,判断所述VXLAN域是否已经开启未知报文域内广播功能;When the unknown unicast packet is received, it is determined whether the VXLAN domain has enabled the broadcast function in the unknown packet domain;
    如果已经开启所述未知报文域内广播功能,则根据预设的过滤转发规则,在所述VXLAN域内广播所述未知单播报文;反之,丢弃所述未知单播报文。If the broadcast function in the unknown packet domain is enabled, the unknown unicast packet is broadcasted in the VXLAN domain according to the preset filtering and forwarding rule; otherwise, the unknown unicast packet is discarded.
  16. 一种计算机存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1至5任一项所述方法的步骤。A computer storage medium having stored thereon a computer program, the computer program being executed by a processor to perform the steps of the method of any one of claims 1 to 5.
PCT/CN2018/077796 2017-04-12 2018-03-01 Vxlan single-homing and dual-homing hybrid access method and apparatus, pe device and storage medium WO2018188425A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710236485.8A CN108696416A (en) 2017-04-12 2017-04-12 A kind of VXLAN is mono- to return and dual homed hybrid access method, device and PE equipment
CN201710236485.8 2017-04-12

Publications (1)

Publication Number Publication Date
WO2018188425A1 true WO2018188425A1 (en) 2018-10-18

Family

ID=63793113

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/077796 WO2018188425A1 (en) 2017-04-12 2018-03-01 Vxlan single-homing and dual-homing hybrid access method and apparatus, pe device and storage medium

Country Status (2)

Country Link
CN (1) CN108696416A (en)
WO (1) WO2018188425A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679405A (en) * 2022-04-12 2022-06-28 烽火通信科技股份有限公司 SRv6 message forwarding method, storage medium, electronic equipment and device

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495368B (en) * 2018-12-19 2021-07-16 锐捷网络股份有限公司 Updating method of MAC address forwarding table and network equipment
CN111385182B (en) * 2018-12-29 2022-04-29 中兴通讯股份有限公司 Traffic transmission method, device and system
CN110505152B (en) * 2019-09-11 2022-02-22 迈普通信技术股份有限公司 Route filtering method and device and electronic equipment
CN115665008A (en) * 2019-10-22 2023-01-31 华为技术有限公司 Message detection method, connectivity negotiation relationship establishment method and related equipment
CN112769587A (en) * 2019-11-05 2021-05-07 中兴通讯股份有限公司 Forwarding method and device for access flow of dual-homing device and storage medium
CN113132221A (en) * 2019-12-31 2021-07-16 华为技术有限公司 Method and device for processing routing information
CN115865792A (en) 2019-12-31 2023-03-28 华为技术有限公司 Method and device for processing routing information
CN111865779B (en) * 2020-07-13 2022-08-02 中国联合网络通信集团有限公司 Route synchronization method and cross-device link aggregation group
CN115514699A (en) * 2021-06-22 2022-12-23 中兴通讯股份有限公司 Cross-device link communication method, switch, system and storage medium
CN115065614B (en) * 2022-06-22 2023-10-13 杭州云合智网技术有限公司 Method for identifying multi-activity service connectivity of VPWS
CN117459453A (en) * 2022-07-19 2024-01-26 中兴通讯股份有限公司 Data transmission method, operator edge device, and computer readable medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130235876A1 (en) * 2012-03-09 2013-09-12 Cisco Technology, Inc. Managing hierarchical ethernet segments
CN105049373A (en) * 2015-06-30 2015-11-11 盛科网络(苏州)有限公司 APS-based MLAG switching protection method
EP2981031A1 (en) * 2014-07-31 2016-02-03 Arista Networks, Inc. Method and system for vtep redundancy in a multichassis link aggregation domain
CN105493454A (en) * 2014-05-13 2016-04-13 华为技术有限公司 Active-active access to transparent interconnection of lots of links (TRILL) edges
CN105743780A (en) * 2014-12-09 2016-07-06 华为技术有限公司 Message transmission method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130235876A1 (en) * 2012-03-09 2013-09-12 Cisco Technology, Inc. Managing hierarchical ethernet segments
CN105493454A (en) * 2014-05-13 2016-04-13 华为技术有限公司 Active-active access to transparent interconnection of lots of links (TRILL) edges
EP2981031A1 (en) * 2014-07-31 2016-02-03 Arista Networks, Inc. Method and system for vtep redundancy in a multichassis link aggregation domain
CN105743780A (en) * 2014-12-09 2016-07-06 华为技术有限公司 Message transmission method and device
CN105049373A (en) * 2015-06-30 2015-11-11 盛科网络(苏州)有限公司 APS-based MLAG switching protection method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679405A (en) * 2022-04-12 2022-06-28 烽火通信科技股份有限公司 SRv6 message forwarding method, storage medium, electronic equipment and device

Also Published As

Publication number Publication date
CN108696416A (en) 2018-10-23

Similar Documents

Publication Publication Date Title
WO2018188425A1 (en) Vxlan single-homing and dual-homing hybrid access method and apparatus, pe device and storage medium
US10791053B2 (en) Service function chain SFC-based communication method, and apparatus
US9197583B2 (en) Signaling of attachment circuit status and automatic discovery of inter-chassis communication peers
US11349687B2 (en) Packet processing method, device, and system
EP2878105B1 (en) System and method using rsvp hello suppression for graceful restart capable neighbors
WO2021088808A1 (en) Method for dual-homing device access traffic forwarding, device, and storage medium
US9143439B2 (en) System and method for cluster link aggregation control in a network environment
CN102035676B (en) ARP (Address Resolution Protocol) interaction based method and equipment for detecting and recovering link fault
CN113364610B (en) Network equipment management method, device and system
US20180091445A1 (en) Evpn designated forwarder state propagation to customer edge devices using connectivity fault management
US20170264496A1 (en) Method and device for information processing
US9678840B2 (en) Fast failover for application performance based WAN path optimization with multiple border routers
US9660898B2 (en) Enhanced protocol independent multicast source registration over a reliable transport
US9385944B2 (en) Communication system, path switching method and communication device
US8891536B2 (en) Layer-3 services for united router farm
EP3675431B1 (en) Core isolation for logical tunnels stitching multi-homed evpn and l2 circuit
CN107154896B (en) Data transmission method and forwarding equipment
US9497104B2 (en) Dynamic update of routing metric for use in routing return traffic in FHRP environment
EP3068082B1 (en) Fault processing method and apparatus for edge route bridge in trill network
WO2015032260A1 (en) Route updating method and routing device
WO2018108121A1 (en) Establishment of device stacks
Alimi Bandwidth Management and Loop Prevention in Redundant Networks
KR101308089B1 (en) Ipsec vpn system and method for supporing high availability
WO2022267944A1 (en) Network management method for cross-device link aggregation, system, switches, and storage medium
EP3979570A1 (en) Method for achieving network communication based on neighbor negotiation and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18784705

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18784705

Country of ref document: EP

Kind code of ref document: A1