WO2019201014A1 - Ethernet segment identifier adjacency detection processing method, device, and storage medium - Google Patents
Ethernet segment identifier adjacency detection processing method, device, and storage medium Download PDFInfo
- Publication number
- WO2019201014A1 WO2019201014A1 PCT/CN2019/075769 CN2019075769W WO2019201014A1 WO 2019201014 A1 WO2019201014 A1 WO 2019201014A1 CN 2019075769 W CN2019075769 W CN 2019075769W WO 2019201014 A1 WO2019201014 A1 WO 2019201014A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- esi
- packet
- interface
- arp
- address
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0631—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
Definitions
- the present application relates to the field of communications, and in particular, to an Ethernet segment identification adjacency detection processing method and apparatus, and a storage medium.
- the Ethernet Virtual Private Network (EVPN) technology is used as the next-generation Layer 2 Virtual Private Network (L2VPN) technology, including the carrier backbone bridge Ethernet Provider Backbone Bridge Ethernet.
- Virtual Private Network referred to as PBB EVPN
- MPLS EVPN Multi-Protocol Label Switching Ethernet Virtual Private Network
- VXLAN EVPN Virtual Extensible LAN Ethernet Virtual Private Network
- the IETF defines the control plane of EVPN in RFC7432 in detail, and defines the data plane of MPLS EVPN in detail. Subsequently, based on RFC7432, the IETF has defined the control plane and forwarding plane of VXLAN EVPN through RFC8365.
- the control plane and forwarding plane of PBB EVPN are defined in RFC7623. Whether it is MPLS EVPN, VXLAN EVPN or PBB EVPN, there are corresponding descriptions for scenarios where ES is connected to the PE.
- the typical networking is shown in Figure 1.
- the lower layer in Figure 1 is also called the underlay network. :
- RFC7432 uses the ESI field to uniquely identify an ES with dual-homing/multi-homing access features in the EVPN route, while the ESI value of 0 indicates an ES with only single-homed access features.
- An ES is connected to a number of PEs. Each PE that is accessed by the ES is called a neighboring PE of the ES. The ES is said to have an adjacency with its neighboring PEs. The same ES has the same ESI on each of its neighboring PEs.
- the physical link between the ES and its neighboring PE is called the adjacent link of the ES on the adjacent PE.
- the state change detection on the adjacent link includes physical state change detection, protocol state change detection, and detection state change. Detection, collectively referred to as ESI adjacency detection of the ES, changes in the ESI adjacency detection state are referred to as ESI adjacency detection events.
- a PE node In an EVPN network, if a PE node is not a neighboring PE of an ES, it is called a non-contiguous PE of the ES.
- the non-contiguous PE can know the existence of the remote ESI, and which neighboring PEs are currently present in each remote ESI, and its forwarding information to each neighboring PE of each remote ESI.
- RFC7432 defines five types of EVPN routes.
- the first type of EVPN route is called Ethernet Auto-discovery (EAD) route and is only used in MPLS/VXLAN EVPN.
- the second type of EVPN route is called MAC distribution. Routing, also known as MAC routing, is used in both PBB EVPN and MPLS/VXLAN EVPN, but with different roles.
- PBB EVPN and MPLS/VXLAN EVPN are different in how non-contiguous PEs discover neighboring PEs: the former maps ESI to B-MAC (Backbone MAC), and then uses the issuance and revocation of MAC routes to indicate the ESI neighboring links. Valid/invalid; the latter directly issues ESI information to the remote PE through the EAD route.
- B-MAC Backbone MAC
- the EAD route defined by RFC7432 has two granularities, one is Ethernet auto-discovery Ethernet segmentation (EAD-ES) route, and the other is Ethernet auto-discovery EVPN instance (EAD).
- EAD-EVI Ethernet auto-discovery Ethernet segmentation
- EAD-EVI Ethernet auto-discovery EVPN instance
- EAD-EVI Ethernet auto-discovery EVPN Instance
- PBB EVPN In PBB EVPN, non-contiguous PEs do not know ESI information.
- the protection technology based on ESI peer-to-peer bidirectional forwarding detection BFD cannot be implemented in PBB EVPN.
- MPLS/VXLAN EVPN EAD-ES and EAD-EVI routes are carried in In BGP packets, they rely on them to propagate ESI adjacency detection events. It is difficult for convergence performance to achieve BFD-level performance.
- the ESI adjacency detection event can only rely on BGP route propagation, and the convergence performance is difficult to achieve the performance of the BFD level, and an effective solution has not been proposed.
- the embodiment of the present application provides an Ethernet segment identification adjacency detection processing method and device, and a storage medium, so as to at least solve the related art, the ESI adjacency detection event can only rely on BGP route propagation, and the convergence performance is difficult to achieve the performance of the BFD level. problem.
- an Ethernet segment identification adjacency detection processing method including: an ESI adjacency detection event on a link of an Ethernet segment identifier ESI detected by a first network side edge device PE, where The ESI adjacency detection event is used to indicate a change in the result of detecting the link failure identified by the ESI;
- the first PE sends a first packet to the second PE, where the first packet is used to notify the second PE of the ESI adjacency detection event, where the first packet carries the fault identification information of the ESI, and the fault identifier information is used.
- An update flow instructing the second PE to perform a forwarding state corresponding to the ESI.
- the ESI adjacency detection event on the link identified by the ESI is detected by at least one of the following manners:
- the ESI adjacency detection event is encapsulated by using at least one of the following formats: a peer-to-peer bidirectional forwarding detection BFD chain path failure message; a transmission operation management and maintenance TP OAM session client signal failure indication CSF message; address resolution Protocol ARP packet; neighbor discovery protocol NDP neighbor request message; Internet control message protocol ICMP message; media access control MAC ping message.
- the fault identification information of the ESI includes at least one of the following: a partial binary bit of the ESI; a carrier backbone bridge MAC address PBB B-MAC corresponding to the ESI or a partial binary bit in the PBB B-MAC corresponding to the ESI; Corresponding IP address; ESI label corresponding to ESI; coding information indicating that the main interface corresponding to the ESI is faulty; coding information indicating that the ESI sub-interface of the ESI is faulty, wherein the ESI sub-interface is the main interface corresponding to the ESI Sub-interface; the node identification information of the node where the link fault of the ESI identifier is indicated.
- encapsulating the ESI adjacency detection event by using the ARP packet includes at least one of the following methods:
- the ARP packet is encapsulated into an EVPN packet, where the EVPN packet is encapsulated according to the data packet format in the EVPN instance bound to the ESI sub-interface.
- the PDU part of the ARP packet is encapsulated according to the PDU format of the ARP probe packet, where the target protocol address in the PDU is the specified IP address.
- the control word is used to encapsulate the ARP packet into the EVPN data packet, where the channel type in the control word is set to the specified value.
- an Ethernet segment identification adjacency detection processing method including: a second network side edge device PE receives a first packet sent by a first PE, where the first packet is used by Notifying the second PE of the ESI adjacency detection event on the link of the Ethernet segment identifier ESI detected by the first PE, where the ESI adjacency detection event is used to indicate a change in the result of detecting the link fault identified by the ESI;
- the first packet carries the fault identification information of the ESI, and the fault identifier information is used to indicate that the second PE performs an update process of the forwarding state corresponding to the ESI.
- the ESI adjacency detection event is encapsulated by at least one of the following formats: a peer-to-peer bidirectional forwarding detection BFD chain path failure Concatenated Path Down message; a transmission operation management maintenance TP OAM session client signal failure indication CSF message; Resolve protocol ARP packets; neighbor discovery protocol NDP neighbor request packets; ICMP packets; media access control MAC ping packets.
- the fault identification information of the ESI includes at least one of: a partial binary bit of the ESI; a PBB B-MAC corresponding to the ESI or a partial binary bit in the PBB B-MAC corresponding to the ESI; an IP address corresponding to the ESI; and an ESI corresponding
- the ESI tag is used to indicate the coding information of the main interface corresponding to the ESI; the coding information for indicating that the ESI sub-interface of the ESI is faulty, wherein the ESI sub-interface is a sub-interface of the main interface corresponding to the ESI;
- the ESI adjacency detection event is encapsulated by the ARP packet, and at least one of the following is included:
- the ARP packet is encapsulated in an EVPN packet encapsulated in the data packet format of the EVPN instance bound to the ESI sub-interface.
- the PDU part of the ARP packet is encapsulated according to the PDU format of the ARP probe packet, where the target protocol address in the PDU is the specified IP address.
- the sender hardware address field of the ARP packet carries the fault identification information of the ESI.
- the operation code of the ARP packet is a predetermined value.
- the sender protocol address field of the ARP packet carries the fault identification information of the ESI.
- the Ethernet source MAC address of the ARP packet is the MAC address of the first PE.
- the Ethernet source MAC address of the ARP packet is the MAC address of the ESI sub-interface corresponding to the ESI or the ESI sub-interface.
- the Ethernet source MAC address of the ARP packet is the MAC address of the integrated routing bridge of the EVPN instance bound to the ESI sub-interface of the ESI.
- the Ethernet source MAC address of the ARP packet is the specified value.
- the update process of performing the forwarding state corresponding to the ESI includes at least one of the following: changing the specified forwarding state of the specified forwarding/non-designated forwarding/backup corresponding to the ESI sub-interface of the ESI; changing the corresponding forwarding information set corresponding to the ESI The status of the next hop information.
- an Ethernet segment identification adjacency detection processing apparatus including: a detection module configured to detect an ESI adjacency detection event on a link of an Ethernet segment identifier ESI, where ESI The adjacency detection event is used to indicate a change in the result of detecting the link failure identified by the ESI;
- the sending module is configured to send the first packet to the second network side edge device PE, where the first packet is used to notify the second PE of the ESI neighboring detection event, where the first packet carries the fault identification information of the ESI.
- the fault identification information is used to indicate that the second PE performs an update process of the forwarding state corresponding to the ESI.
- the foregoing detecting module is further configured to detect an ESI adjacency detection event on the link identified by the ESI by at least one of: passing the standard first mile Ethernet EFM technology; transmitting through the standard Y.1731 The manner in which the management manages the TP OAM TMS technology; the way in which the standard connectivity fault management CFM technology is passed; and the manner in which the physical signals on the link identified by the ESI are detected.
- the method further includes: an encapsulating module, configured to encapsulate the ESI adjacency detection event by using at least one of the following formats: a peer-to-peer bidirectional forwarding detection BFD chain path failure message; and a transmission operation management and maintenance TP OAM session client signal
- the CSF packet is invalid, the media access control MAC ping packet, the address resolution protocol ARP packet, the neighbor discovery protocol NDP neighbor request packet, and the Internet control packet protocol ICMP packet.
- the fault identification information of the ESI includes at least one of the following: a partial binary bit of the ESI; a carrier backbone bridge MAC address PBB B-MAC corresponding to the ESI or a partial binary bit in the PBB B-MAC corresponding to the ESI; Corresponding IP address; ESI label corresponding to ESI; coding information indicating that the main interface of the ESI is faulty; coding information indicating that the ESI sub-interface of the ESI is faulty, wherein the ESI sub-interface is the main interface corresponding to the ESI Sub-interface; the node identification information of the node where the link fault of the ESI identifier is indicated.
- the encapsulating module is further configured to encapsulate the ESI adjacency detection event according to the ARP packet in at least one of the following manners:
- the ARP packet is encapsulated into an EVPN packet, where the EVPN packet is encapsulated according to the data packet format in the EVPN instance bound to the ESI sub-interface.
- the PDU part of the ARP packet is encapsulated according to the PDU format of the ARP probe packet, where the target protocol address in the PDU is the specified IP address.
- the control word is used to encapsulate the ARP packet into the EVPN data packet, where the channel type in the control word is set to the specified value.
- an Ethernet segment identification adjacency detection processing apparatus including:
- the receiving module is configured to receive the first packet sent by the first PE, where the first packet is used to notify the device of the ESI adjacency detection event on the link of the Ethernet segment identifier ESI detected by the first PE
- the ESI adjacency detection event is used to indicate a change in a result of detecting a link failure identified by the ESI; wherein the first packet carries the fault identification information of the ESI;
- the update module is configured to perform an update process of the forwarding state corresponding to the ESI according to the fault identification information.
- the receiving module is further configured to: receive, by using at least one of the following formats, a control packet that encapsulates the ESI adjacency detection event: a peer-to-peer bidirectional forwarding detection BFD chain path invalidation message; a transmission operation management maintenance TP OAM session
- the customer signal invalidation indication CSF message the address resolution protocol ARP message; the neighbor discovery protocol NDP neighbor request message; the ICMP message; the media access control MAC ping message.
- the fault identification information of the ESI includes at least one of: a partial binary bit of the ESI; a PBB B-MAC corresponding to the ESI or a partial binary bit in the PBB B-MAC corresponding to the ESI; an IP address corresponding to the ESI; and an ESI corresponding
- the ESI tag is used to indicate the coding information of the main interface corresponding to the ESI; the coding information for indicating that the ESI sub-interface of the ESI is faulty, wherein the ESI sub-interface is a sub-interface of the main interface corresponding to the ESI;
- the receiving module is further configured to: receive the packet encapsulated by the ESI neighbor detection event according to the ARP packet according to at least one of the following manners:
- the ARP packet is encapsulated in an EVPN packet encapsulated in the data packet format of the EVPN instance bound to the ESI sub-interface.
- the PDU part of the ARP packet is a packet encapsulated according to the PDU format of the ARP probe packet, where the target protocol address in the PDU is a specified IP address.
- the sender hardware address field of the ARP packet carries the fault identification information of the ESI.
- the operation code of the ARP packet is a predetermined value.
- the sender protocol address field of the ARP packet carries the fault identification information of the ESI.
- the Ethernet source MAC address of the ARP packet is the MAC address of the first PE.
- the Ethernet source MAC address of the ARP packet is the MAC address of the ESI sub-interface corresponding to the ESI or the ESI sub-interface.
- the Ethernet source MAC address of the ARP packet is the MAC address of the integrated routing bridge of the EVPN instance bound to the ESI sub-interface of the ESI.
- the Ethernet source MAC address of the ARP packet is the specified value.
- the update module is configured to be at least one of the following: changing the specified forwarding state of the specified forwarding/non-designated forwarding/backup corresponding to the ESI sub-interface of the ESI; changing the corresponding next hop information in the forwarding information set corresponding to the ESI status.
- a network side edge device including any of the above Ethernet segment identification adjacency detection processing devices.
- a storage medium includes a stored program that executes any of the above-described Ethernet segment identification adjacency detection processing methods when the program is running.
- a processor is provided that is configured to execute a program that executes any of the above described Ethernet segment identification adjacency detection processing methods while the program is running.
- the first network side edge device PE detects an ESI adjacency detection event on the link of the Ethernet segment identifier ESI, where the ESI adjacency detection event is used to indicate that the link fault of the ESI identifier is detected.
- the first PE sends a first packet to the second PE, where the first packet is used to notify the second PE of the ESI adjacency detection event, where the first packet carries the fault identification information of the ESI.
- the fault identification information is used to indicate that the second PE performs the update process of the forwarding state corresponding to the ESI.
- the ESI neighbor detection event in the related art can only rely on the BGP route propagation, and the convergence performance is difficult to achieve the performance of the BFD level.
- the fast forwarding path switching or the specified forwarding/non-designated forwarding/backup specified forwarding state switching is performed on the remote PE to reduce the packet loss time in the ES link failure convergence process.
- FIG. 1 is a physical topology diagram of an RFC7432 EVPN service according to an embodiment of the present application
- FIG. 2 is a flowchart (1) of an Ethernet segment identification adjacency detection processing method according to an embodiment of the present application
- FIG. 3 is a flowchart (2) of an Ethernet segment identification adjacency detection processing method according to an embodiment of the present application.
- FIG. 5 is a BFD control packet format that extends the capability of a universal OAM mapping channel according to an embodiment of the present application
- FIG. 6 is a physical topology diagram of an RFC7623 PBB EVPN service according to an embodiment of the present application
- FIG. 7 is an ESI OAM Mapping Channel Sub-TLV format for ESI OAM Mapping in PBB EVPN according to an embodiment of the present application
- FIG. 8 is a Y.1731 extended CSF PDU format according to an embodiment of the present application.
- FIG. 9 is a structural block diagram (1) of an Ethernet segment identification adjacency detection processing apparatus according to an embodiment of the present application.
- FIG. 10 is a structural block diagram (2) of an Ethernet segment identification adjacency detection processing apparatus according to an embodiment of the present application.
- FIG. 11 is a structural block diagram (3) of an Ethernet segment identification adjacency detection processing apparatus according to an embodiment of the present application.
- FIG. 12 is a structural block diagram (4) of an Ethernet segment identification adjacency detection processing apparatus according to an embodiment of the present application.
- FIG. 13 is a structural block diagram (5) of an Ethernet segment identification adjacency detection processing apparatus according to an embodiment of the present application.
- An embodiment of the Ethernet segment identification adjacency detection processing method provided in the first embodiment can be performed in a network side edge device PE or a similar processing device.
- the method for processing the Ethernet segment identification adjacency detection processing according to the embodiment of the present application is as follows. As shown in FIG. 2, the process includes the following steps:
- Step S202 the first network side edge device PE detects an ESI adjacency detection event on the link of the Ethernet segment identifier ESI, where the ESI adjacency detection event is used to indicate a change of the result of detecting the link fault identified by the ESI. ;
- Step S204 The first PE sends a first packet to the second PE, where the first packet is used to notify the second PE of the ESI neighboring detection event, where the first packet carries the fault identification information of the ESI, and the fault identifier The information is used to instruct the second PE to perform an update process of the forwarding state corresponding to the ESI.
- the first network side edge device PE detects an ESI adjacency detection event on the link of the Ethernet segment identifier ESI, wherein the ESI adjacency detection event is used to indicate that the link fault of the ESI identifier is detected.
- the first PE sends a first packet to the second PE, where the first packet is used to notify the second PE of the ESI adjacency detection event, where the first packet carries the fault identification information of the ESI.
- the fault identification information is used to indicate that the second PE performs the update process of the forwarding state corresponding to the ESI.
- the ESI neighbor detection event in the related art can only rely on the BGP route propagation, and the convergence performance is difficult to achieve the performance of the BFD level.
- the problem is that the fast forwarding path switching is completed on the remote PE, and the packet loss time in the ES link failure convergence process is reduced.
- the ESI adjacency detection event on the link identified by the ESI is detected by at least one of the following manners:
- the ESI adjacency detection event is encapsulated by using at least one of the following formats: a peer-to-peer bidirectional forwarding detection BFD chain path failure message; a transmission operation management maintenance TP OAM session client signal failure indication CSF message; address resolution Protocol ARP packet; neighbor discovery protocol NDP neighbor request message; Internet control message protocol ICMP message (for example, ping message, see exemplary embodiment 10); media access control MAC ping message.
- the fault identification information of the ESI includes at least one of the following: a partial binary bit of the ESI (eg, the fault identification information of the ESI includes a partial binary bit in the ESI bit); the carrier backbone bridge MAC address corresponding to the ESI Partial binary bits in PBB B-MAC corresponding to PBB B-MAC or ESI; IP address corresponding to ESI; ESI label corresponding to ESI; coding information indicating that the main interface corresponding to ESI is faulty; ESI for indicating ESI
- the sub-interface has the coding information of the fault, where the ESI sub-interface is a sub-interface of the main interface corresponding to the ESI; and the node identifier information is used to indicate the node (for example, the first PE) where the link fault of the ESI is located.
- encapsulating the ESI adjacency detection event by using an ARP packet includes at least one of the following methods:
- the ARP packet is encapsulated into an EVPN packet, where the EVPN packet is encapsulated according to the data packet format in the EVPN instance bound to the ESI sub-interface.
- the PDU part of the ARP packet is encapsulated according to the PDU format of the ARP probe packet, where the target protocol address in the PDU is the specified IP address.
- the control word is used to encapsulate the ARP packet into the EVPN data packet, where the channel type in the control word is set to the specified value.
- This application combines the EVPN technology with the Operation Administration and Maintenance Mapping (OAM mapping) mechanism to make the packet loss time of the ESI (Ethernet Segment Identifier) failure convergence process in the ES dual-homing access scenario. reduce.
- OAM mapping Operation Administration and Maintenance Mapping
- the embodiment 1 further provides an embodiment of an Ethernet segment identification adjacency detection processing method, which can be executed in a network side edge device PE or a similar processing device.
- the method for processing the Ethernet segment identification adjacency detection processing according to the embodiment of the present application is as follows. As shown in FIG. 3, the process includes the following steps:
- Step S302 The second network side edge device PE receives the first packet sent by the first PE, where the first packet is used to detect the ESI adjacency on the link of the Ethernet segment identifier ESI detected by the first PE.
- the event notification is sent to the second PE, and the ESI adjacency detection event is used to indicate a change in the result of detecting the link failure identified by the ESI; wherein the first packet carries the fault identification information of the ESI, and the fault identifier information is used to indicate the
- the second PE performs an update process of the forwarding state corresponding to the ESI.
- the second network side edge device PE receives the first packet sent by the first PE, where the first packet is used to detect the Ethernet segment identifier detected by the first PE on the link of the ESI.
- the ESI adjacency detection event is notified to the second PE, and the ESI adjacency detection event is used to indicate a change in the result of detecting the link failure identified by the ESI; wherein the first packet carries the fault identification information of the ESI, and the fault identification information
- the foregoing technical solution can solve the problem that the ESI adjacency detection event in the related art can only rely on BGP route propagation, and the convergence performance is difficult to achieve the performance of the BFD level.
- the problem is that the fast forwarding path switching is completed on the remote PE, and the packet loss time in the ES link failure convergence process is reduced.
- the ESI adjacency detection event is encapsulated by at least one of the following formats: a peer-to-peer bidirectional forwarding detection BFD CFD, a CEC message, and a CSF message Address resolution protocol ARP packet; neighbor discovery protocol NDP neighbor request message; ICMP message; media access control MAC ping message.
- the fault identification information of the ESI includes at least one of: a partial binary bit of the ESI; a PBB B-MAC corresponding to the ESI or a partial binary bit in the PBB B-MAC corresponding to the ESI; an IP address corresponding to the ESI; and an ESI corresponding
- the ESI tag is used to indicate the coding information of the main interface corresponding to the ESI; the coding information for indicating that the ESI sub-interface of the ESI is faulty, wherein the ESI sub-interface is a sub-interface of the main interface corresponding to the ESI;
- the ESI adjacency detection event is encapsulated by the ARP packet, and at least one of the following is included:
- the ARP packet is encapsulated in an EVPN packet encapsulated in the data packet format of the EVPN instance bound to the ESI sub-interface.
- the PDU part of the ARP packet is encapsulated according to the PDU format of the ARP probe packet, where the target protocol address in the PDU is the specified IP address.
- the sender hardware address field of the ARP packet carries the fault identification information of the ESI.
- the operation code of the ARP packet is a predetermined value.
- the sender protocol address field of the ARP packet carries the fault identification information of the ESI.
- the Ethernet source MAC address of the ARP packet is the MAC address of the first PE.
- the Ethernet source MAC address of the ARP packet is the MAC address of the ESI sub-interface corresponding to the ESI or the ESI sub-interface.
- the Ethernet source MAC address of the ARP packet is the MAC address of the integrated routing bridge of the EVPN instance bound to the ESI sub-interface of the ESI.
- the Ethernet source MAC address of the ARP packet is the specified value.
- the update process of performing the forwarding state corresponding to the ESI includes at least one of the following: changing the specified forwarding/non-designated forwarding/backup designated forwarding (DF/NDF/BDF) state corresponding to the ESI sub-interface of the ESI (symbol “ /" indicates "or", that is, specifies the forwarding or non-designated forwarding or backup of the specified forwarding state, DF or NDF or BDF state); changes the state of the corresponding next hop information in the forwarding information set corresponding to ESI.
- DF/NDF/BDF specified forwarding/non-designated forwarding/backup designated forwarding
- This application combines the EVPN technology with the Operation Administration and Maintenance Mapping (OAM mapping) mechanism or the ARP proxy mechanism to make the ES EI (Ethernet Segment Identifier) failure convergence process in the scenario.
- OAM mapping Operation Administration and Maintenance Mapping
- ARP proxy mechanism to make the ES EI (Ethernet Segment Identifier) failure convergence process in the scenario.
- the package time is greatly reduced.
- Embodiment 1 of the present application is further described in detail below with reference to FIG. 1 :
- a basic VXLAN EVPN service is deployed on PE1, PE2, and PE3.
- CE1 is dual-homed to PE1 and PE2.
- the corresponding ESI is ESI1, and all-active mode is adopted.
- CE2 is connected to PE3. Enables the basic EVPN functions defined in RFC7432 to function properly.
- the EVPN control plane module and the EVPN forwarding table management module are also deployed at the same time.
- the ESI adjacency detection module is deployed on the link between PE1 and CE1, the ESI state mapping module is deployed on PE1, the ESI state demapping module is deployed on PE3, and the ESI state change propagation fast channel is deployed between PE1 and PE3.
- the ESI adjacency detection module can be configured with a link BFD, EFM, CFM, and the like.
- the ESI adjacency detection module can be deployed in the following manner: a standard EFM technology is deployed on the link, and the ESI adjacency detection module can enable the EFM module to chain.
- the state change of the road is input to the ESI state mapping module at any time.
- the deployment of the ESI state change propagation fast channel is as follows: an extended peer BFD session is deployed between PE1 and PE3.
- the state change propagation of all ESIs at the two nodes uses the peer BFD session as a fast channel instead of One BFD session per ESI.
- Step 1 The ESI adjacency detection module on the PE1 detects a link fault on the ESI1, including a physical link fault.
- Step 2 The ESI adjacency detection module on the PE1 notifies the ESI status mapping module of the fault on the ESI1;
- Step 3 The ESI state mapping module on PE1 encodes the fault on ESI1 into the ESI OAM Mapping Channel Sub-TLV format, and notifies the ESI state change propagation fast channel. Specifically, the ESI state mapping module on PE1 receives the detection state change. The event, and determine the corresponding ESI, in this case, the ESI1, encapsulates the state change event of ESI1, encapsulates it in the ESI OAM Mapping Channel Sub-TLV format shown in FIG. 4, and notifies the ESI state change propagation fast channel.
- the ESI field is filled with ESI1, and the Ethernet Tag ID field is filled with 0xFFFFFF to indicate that the global state of ESI1 is passed (filling other non-zero values indicates that the specified Ethernet Tag is passed on ESI1);
- ESI Adjacent PE Address The ESI Adjacency PE Address field fills in the next hop address used by the node to issue EAD-ES routes for ESI1; the State field is 1 for Down and 3 for UP. It should be noted that the ESI (continue) field in FIG. 4 is an ESI (continue.) field.
- Step 4 The peer BFD session between PE1 and PE3 uses a new version number, that is, 5, to distinguish it from the standard BFD session defined by RFC 5880.
- the format, usage, and standard of the BFD session are different except the version number.
- the BFD session is the same.
- the BFD control packet in the peer BFD session adds a Diag code, that is, 27, and the BFD control packet whose Diag code is 27 does not reflect the state of the object itself detected by the BFD session to which the packet belongs.
- the payload of the OAM Mapping channel is filled in the Sub-TLV format. As shown in Figure 5, the payload of the OAM Mapping channel exists in the BFD control packet in the form of Generic OAM Mapping Channel Sub-TLV.
- the ESI state change propagation fast channel on PE1 propagates the Sub-TLV encapsulated by the ESI state mapping module to PE3 through the general OAM Mapping channel of the peer BFD session.
- the status field in FIG. 5 is the Sta field
- the detection time multiple field is the Detect Mult field
- the self identifier field is the My Discriminator field
- the other identifier field is the Your Discriminator field
- the required minimum value of the TX interval field is Desired.
- Min TX Interval field the required RX interval minimum field is Required Min RX Interval.
- Step 5 On the PE3, the peer BFD session inputs the payload portion of the general OAM mapping channel carried in the BFD control packet identified by the Diag field to the ESI state demapping module.
- the payload format is the ESI OAM Mapping Channel Sub-TLV format, but the BFD session does not need to parse the payload format, but is directly parsed by the ESI state demapping module.
- Step 6 The ESI state demapping module on the PE3 receives the OAM Mapping Channel Sub-TLV input by the ESI state change propagation fast channel, parses the corresponding ESI and Ethernet Tag ID, and determines the corresponding EAD-ES route or EAD-EVI route. This example is the EAD-ES route of the ESI1, and then the EVPN forwarding table management module is notified in the name of the EAD-ES route revocation. Specifically, the state of the ESI1 is resolved from the OAM Mapping Sub-TLV, Up or Down;
- the EVPN forwarding table management module can automatically support this function only by supporting the standard RFC7432 function;
- Step 7 The EVPN forwarding table management module on the PE3 considers that the EAD-ES route revocation event is received and is processed according to the RFC7432, and the result is that the forwarding path is switched on the ESI1.
- Step 8 At the same time, the BGP EVPN control plane also performs the convergence of the ESI1 forwarding member list according to the inherent process, and finally completes the traffic. However, when the step 7 is completed, the traffic is no longer lost, thereby greatly reducing the ESI convergence. The time of packet loss in the process.
- the EVPN control plane module also sends a true EAD route revocation to the EVPN forwarding table management module. At this time, due to the reason of step 7, the EVPN forwarding table management module does not have a corresponding forwarding path of the corresponding ESI, and can directly return.
- the peer BFD session encapsulates the ESI OAM Mapping Channel Sub-TLV input by the ESI state mapping module into a BFD control packet, where the Vers field has a value of 5 and the Diag field has a value of 27, and the Generic OAM Mapping Channel
- the value of the Sub-TLV field is the same as that of the ESI OAM Mapping Channel Sub-TLV.
- the values of other fields are the same as those of the same-named field when the value of the Diag field in the RFC5880 is 6.
- the ESI-related packets need to be advertised on the peer BFD session. You do not need to periodically send ESI-related packets. In other words, you do not need to establish a BFD session for each ESI. There are no ESI-related packets on the BFD session.
- step 5 the payload of the OAM Mapping channel is filled in the Sub-TLV format, and the BFD session does not parse the payload content, but is directly submitted to the ESI state demapping module for parsing; as shown in FIG. 5, the OAM Mapping channel
- the payload exists in the form of the Generic OAM Mapping Channel Sub-TLV in the BFD control packet.
- the local ESI adjacency detection event can propagate through the ESI state change fast channel prior to the EAD route to the remote PE, thereby being far away.
- the fast forwarding path switching is performed on the end PE to reduce the packet loss time in the ES link failure convergence process.
- the ESI neighbor detection event in the related art can only rely on BGP route propagation, and the convergence performance is difficult to achieve the performance of the BFD level. problem.
- the above processing steps may further include the following steps:
- step 9 when the adjacent link of the ESI1 on the PE1 is restored to the UP, the PE1 may also send the message of the link UP of the ESI1 to the common OAM Mapping channel. However, the ESI OAM Mapping message notifying that the ESI neighboring link becomes UP does not notify. Forward the EVPN forwarding table management module. At the same time, the EVPN control plane on the PE3 will re-issue the EAD-ES route corresponding to the ESI1. In this case, the EVPN forwarding table management module will not be affected by the OAM mapping message that was previously notified to the ESI1 link.
- Step 10 The peer BFD session is interrupted, and the EVPN forwarding table management module on PE3 is not affected. During the peer BFD session interruption, the EVPN forwarding table management module only needs to be affected by the EVPN control plane module.
- Step 11 After the peer BFD session is restored, if the neighboring link status of ESI1 on PE1 is UP, PE1 may also send a message of the link UP of ESI1 to the general OAM Mapping channel, but notify the ESI that the adjacent link becomes UP.
- the ESI OAM Mapping message has no effect on the EVPN forwarding table management module.
- the PE1 sends a first packet to the PE3, where the first packet is used to notify the PE3 of the ESI adjacency detection event.
- the present application can be implemented not only on the ESI in the all-active mode but also on the ESI in the single-active mode.
- the OAM mapping channel can use not only peer BFD but also TE BFD or TP OAM.
- ESI adjacency detection can use not only EFM but also link detection techniques such as CFM.
- An Ethernet segment identification adjacency detection event transmission and processing method is provided in the first exemplary embodiment.
- the exemplary embodiment 1 is further described in detail below with reference to FIG. 6.
- a basic PBB EVPN service is deployed with PE3.
- CE1 is dual-homed to PE1 and PE2.
- the corresponding ESI is ESI1, and the corresponding B-MAC is BM1. All-active mode is used.
- CE2 is connected to PE3.
- the basic functions of PBB EVPN defined by RFC7623 can be operated normally.
- the EVPN control plane module and the EVPN forwarding table management module are also deployed at the same time.
- PBB EVPN services are established in PE1, PE2 and PE3, and their PBB I component instances are respectively recorded as zteI1, zteI2, ... zteI20, where zteI1, zteI2, ... zteI10 are corresponding.
- the PBB B component instances are all zteB1, zteI11, zteI12...zteI20 corresponding PBB B component instances are all zteB2.
- the ESI1 is the designated forwarding DF role on PE1 and the non-designated forwarding NDF role on PE2.
- an ESI adjacency detection module is deployed on the link between PE1 and CE1, and an ESI state mapping module is deployed on PE1.
- the ESI state demapping module is deployed on PE2, and the ESI state change propagation fast channel is deployed between PE1 and PE2.
- the ESI adjacency detection module is specifically configured: no port state detection technology (such as EFM, TP OAM TMS, etc.) may be deployed on the physical link of the primary interface corresponding to the ESI1, but the physical signal of the link is detected, and the ESI adjacency detection is performed.
- the module can input the physical state changes of the link to the ESI state mapping module at any time.
- the ESI state mapping module is configured to: generate an ARP probe (ARP Probe) packet, and fill in the target protocol address field of the ARP Probe packet to specify the ESI neighboring detection event.
- ARP Probe ARP probe
- the IP address, the sender hardware address field is filled in as the ESI identification information of the ESI corresponding to the ESI adjacency detection event, and then the ARP Probe message is delivered to the ESI state change propagation fast channel; wherein the ESI identification information is the ESI corresponds to PBB B-MAC.
- the deployment of the ESI state change propagation fast channel is specifically: on PE1, for each sub-interface of the primary interface corresponding to the ESI, copy the ARP Probe packet, and the I component instance bound to the sub-interface
- the ARP probe packet is broadcasted.
- the outer layer (that is, the outer layer of the ARP layer) is added to the ARP probe packet.
- the destination MAC address is the specified MAC address and the destination MAC address is All FFs; it is worth noting that the outer layer of the ARP probe packet that is finally broadcast out will have the same format as the BUM data packet in the EVPN instance; on PE2, the ESI state changes.
- the ARP probe packet of the specified feature format is received from the network side and is forwarded to the ESI state demapping module.
- the other ARP probe packets are still processed according to the prior art.
- the ARP probe packet that is, the ARP probe packet whose destination protocol address is the specified IP address, wherein the specified IP address is the same as the value specified by the specified IP address in the ESI state mapping module.
- the ESI state demapping module is configured to: receive an ARP packet from the ESI state change propagation fast channel, read the content of the sender hardware address field, and interpret it as a B-MAC address, and then convert the B-MAC address into Corresponding ESI corresponding to the primary interface, and submitting the ESI and an identifier of the I component instance that receives the ARP Probe message to the ESI forwarding table management module.
- the ESI forwarding table management module is configured to: after receiving the ESI main interface and the I component instance identifier input by the ESI state demapping module, find a sub-interface bound to the I component instance on the main interface, and Set it to the DF state;
- Step 1 The ESI adjacency detection module on the PE1 detects a link fault on the ESI1, including a physical link fault.
- Step 2 The ESI adjacency detection module on the PE1 notifies the ESI status mapping module of the fault on the ESI1;
- Step 3 The ESI state mapping module on the PE1 encodes the fault on the ESI1 into an ARP Probe packet in a specified format.
- Step 4 The ESI state change propagation fast channel on the PE1 broadcasts the ARP probe packet in each I component instance accessed by the ESI1.
- Step 5 On the PE2, the ESI state change propagation fast channel delivers the received ARP Probe packet of the specified format to the ESI state demapping module.
- Step 6 on the PE2, the ESI state demapping module notifies the forwarding table management module ESI1 that a remote fault has occurred in the corresponding I component instance (taking the zte1 instance as an example); it is noted that, in the present exemplary embodiment, All 20 I component instances will receive a notification that a remote fault has occurred in ESI1.
- Step 7 on the PE2, the EVPN forwarding table management module sets the sub-interface used by the ESI1 to the zte1 instance to be in the DF state;
- Step 8 At the same time, the BGP EVPN control plane is also convening the DF election of the ESI1 according to the inherent process of the RFC7623 and is finally completed. However, when the step 7 is completed, the broadcast traffic broadcasted by the PE3 to the PE2 is no longer discarded by the PE2. The degree of loss reduces the packet loss time caused by the slow convergence of the DF election of the control plane during the ESI convergence process.
- the local ESI adjacency detection event can reach the remote PE through the ARP probe packet before the RT-4 route, thereby completing the fast DF/ on the remote PE.
- the NDF state is switched to reduce the packet loss time in the DF election convergence process.
- the ESI neighbor detection event in the related art can only rely on BGP route propagation.
- the DF election convergence performance is difficult to achieve the BFD performance.
- the ERP ARP proxy mechanism it needs to be resolved (see RFC7432Section 10).
- the ARP probe packet is used as the transmission carrier for the ESI proximity detection event instead of other packets, and the extra scheme is introduced in the EVPN forwarding process.
- Controlling packet parsing also avoids the need to introduce a test session that requires periodic interaction and keep-alive. Because ARP probe packets need to be temporarily inserted in the event of an ESI fault, even if the ARP probe packet is leaked to the CE, The ARP interaction between CEs causes serious pollution, which makes this feature open in a different vendor docking environment.
- the ACS adjacency detection event may be transmitted by using the extended ARP packet in the following format instead of the ARP probe packet: the operation code of the ARP packet is newly added, and is recorded as TBD1; The ESI value is used as the ESI identification information of the ESI1, and the first 6 bytes of the ESI identification information are filled in the sender hardware address field of the ARP packet, and the last 4 bytes of the ESI identification information are filled in the In the target protocol address field of the ARP packet, the other fields are the same as the ARP probe packet.
- the extended ARP packet is recorded as the first type of ARP packet.
- the extended ARP packet in the following format may be used instead of the first type of extended ARP packet transmission ESI adjacency detection event: compared with the first type of extended ARP packet, the ESI identification information is 4 bytes are filled in its sender protocol address field, and the last 6 bytes are filled in the target hardware address field. The target protocol address field and the sender hardware address field are filled in with the specified values. The other fields are the same as the first type of extended ARP packets. This extended ARP packet is recorded as the second type of extended ARP packet.
- the ESI state change fast propagation channel uses the ARP Probe packet, the first type of extended ARP packet, or the second type of extended ARP packet, and the outer layer (ie, the outer layer adjacent to the ARP layer) is the Ethernet header.
- the source MAC address can be filled in as follows: a specified value, a MAC address of the primary interface corresponding to the ESI1, a MAC address of a sub-interface corresponding to the ESI1, and a sub-interface corresponding to the ESI1 MAC address of the IRB interface bound to the EVPN instance bound to the interface.
- the destination MAC address of the outer Ethernet header can be filled in any of the following values: specified value, broadcast. MAC address.
- the receiving end node when the ESI state change fast propagation channel transmitting end uses the first type or the second type of extended ARP packet to transmit the ESI adjacency detection event, the receiving end node also needs to perform corresponding decoding adjustment, specifically, the corresponding The description of the specified feature format ARP packet is adjusted to: the ARP packet operation code takes the value of the ARP packet of the TBD1; and when the destination MAC address of the outer layer of the ARP packet is the specified value, the receiving end is On the node, the destination MAC address can be directly used as the specified value as the specified feature format. In this case, the ARP packet does not need to meet the ARP Probe format or use the extended operation code.
- ARP insertion messages all ARP messages used as the transmission carrier of the ESI adjacency detection event are collectively referred to as ARP insertion messages.
- ARP packets processed by the ESI state demapping module are discarded after the corresponding EVPN forwarding table management module process is completed, and cannot be returned to the EVPN forwarding plane for forwarding.
- the ARP insertion message may also be broadcast only in the part I component instance accessed by the ESI1. Specifically, only the I component instances bound to the same specific B component instance need to be selected. An I component instance is taken as the specified I component instance of the specific B component instance, and then the specified I component instance is responsible for broadcasting the ARP message, so that the number of B component instances is typically much smaller than the I component. As an example, the number of ARP insertion messages will be greatly reduced, thereby further improving performance. With this performance optimization scheme, the ESI state demapping module on the receiver node of the ESI state change fast propagation channel is the I of the I component instance set accessed by ESI1 and the I inserted into the received ARP packet.
- the component instance binds the members of the same B component instance to notify the EVPN forwarding table management module one by one that the ESI1 has failed on its current DF node (at the far end). Moreover, with this implementation, it is necessary to ensure that the specified I component instance also exists at each node where the specific B component instance exists, and is designated as the specified I component of the specific B component instance. Example. With this performance optimization scheme, the number of ARP insertion messages in this exemplary embodiment will be reduced from 20 to 2.
- the ARP insertion packet is sent for the purpose of updating the DES state of the ESI sub-interface of the receiving end, and only the instance of the I component in which the corresponding ESI sub-interface is in the DF role needs to be sent in the sending-side node.
- ARP inserts a message.
- ESI adjacency detection can use not only physical signals, but also link detection techniques such as EFM and TP OAM TMS.
- An Ethernet segment identification adjacency detection processing method is provided in the exemplary embodiment 2, and the exemplary embodiment 2 is further described in detail below with reference to FIG. 6.
- FIG. 6 deployed in PE1, PE2, and PE3.
- a basic PBB EVPN service in which CE1 is dual-homed to PE1 and PE2, the corresponding ESI is ESI1, the corresponding B-MAC is BM1, all-active mode is adopted, and CE2 is directly connected to PE3.
- the basic functions of PBB EVPN defined by RFC7623 can be operated normally.
- the EVPN control plane module and the EVPN forwarding table management module are also deployed at the same time.
- the ESI adjacency detection module is deployed on the link between PE1 and CE1, the ESI state mapping module is deployed on PE1, the ESI state demapping module is deployed on PE3, and the ESI state change propagation fast channel is deployed between PE1 and PE3.
- the ESI adjacency detection module may be deployed in the following manner: a standard Y.1731 transmission operation management and maintenance TP OAM TMS technology is deployed on the link to detect the status of the link, and the ESI adjacency detection module can make the TP OAM TMS The module inputs the state change of the link to the ESI state mapping module at any time.
- the deployment of the ESI state change propagation fast channel is as follows: an extended PEER BFD session is deployed to the TE tunnel of the PE1 to the PE3.
- the state change propagation of all the ESIs at the two nodes uses the PEER BFD session as the fast channel. Not a BFD session for each ESI; the PEER BFD session uses a new version number, 5, to distinguish it from the standard BFD session defined by RFC5880.
- the format and usage of the BFD session are the same as those of the standard BFD session.
- Step 1 The ESI adjacency detection module on the PE1 detects a link fault on the ESI1, including a physical link fault.
- Step 2 The ESI adjacency detection module on the PE1 notifies the ESI status mapping module of the fault on the ESI1;
- Step 3 The ESI state mapping module on PE1 encodes the fault on ESI1 into the PBB ESI OAM Mapping Channel Sub-TLV format, and notifies the ESI state change propagation fast channel, specifically: the ESI state mapping module on PE1 receives the detection state. The event is changed, and the corresponding ESI is determined.
- the ESI1 is encapsulated by the PBB ESI OAM Mapping Channel Sub-TLV format shown in FIG. 7 and the ESI state change propagation is fast. aisle.
- the B-MAC field is filled with the B-MAC corresponding to the ESI1; the ESI Adjacent PE Address field is used to fill the next hop address used by the B-MAC corresponding to the ESI1 issued by the node; the State field is filled with 1 to indicate Down. Fill in 3 to indicate UP. It should be noted that the B-MAC (continue) field in FIG. 7 is a B-MAC (continue) field, and the status field is a State field.
- step 4 a new Diag code is added to the BFD control packet of the PEER BFD session, that is, 27, and the BFD control packet whose Diag code is 27 does not reflect the state of the object itself detected by the BFD session to which the packet belongs, but only
- the payload of the OAM Mapping channel is filled in the Sub-TLV format.
- the payload of the OAM Mapping channel exists in the BFD control packet in the form of a Generic OAM Mapping Channel Sub-TLV.
- the PEER BFD session encapsulates the PBB ESI OAM Mapping Channel Sub-TLV input into the BFD control packet.
- the Vers (version) field has a value of 5 and the Diag field has a value of 27.
- the Generic OAM Mapping Channel Sub- The value of the TLV field is the same as that of the PBB ESI OAM Mapping Channel Sub-TLV.
- the values of other fields are the same as those of the same name field when the value of the Diag field in the RFC5880 is 6 (that is, the Concatenated Path Down message is invalid).
- the ESI state changes the ESI-related packet needs to be advertised on the PEER BFD session, and the ESI-related packet does not need to be sent periodically (in other words, There is no need to establish a BFD session for each ESI. In the normal state, there is no per-ESI packet in the PEER BFD session.
- the Sub-TLV encapsulated by the ESI state mapping module is transmitted to the PE3 through the common OAM Mapping channel of the PEER BFD session.
- Step 5 On the PE3, the PEER BFD session inputs the payload portion of the general OAM mapping channel carried in the BFD control packet identified by the Diag field to the ESI state demapping module.
- the payload format is the PBB ESI OAM Mapping Channel Sub-TLV format, but the BFD session does not need to parse the payload format, but is directly submitted to the ESI state demapping module for parsing;
- Step 6 the ESI state demapping module on the PE3 receives the PBB ESI OAM Mapping Channel Sub-TLV of the ESI state change propagation fast channel input, parses the corresponding B-MAC, and obtains the source from the ESI Adjacent PE Address. End the IP address, and then determine the corresponding MAC route with ⁇ B-MAC, source node IP address>.
- PE1 advertises the MAC route advertised by B-MAC corresponding to ESI1, and then in the name of MAC route revocation.
- the EVPN forwarding table management module is configured to: parse the status of the B-MAC from the OAM Mapping Sub-TLV, Up or Down;
- the EVPN forwarding table management module If the B-MAC status is Down, the EVPN forwarding table management module is notified in the name of the MAC route revocation, and the MAC address revocation event corresponding to the B-MAC input on the EVPN control plane is input to the EVPN forwarding table management module by using the same API interface; If the B-MAC status changes to Up, the EVPN forwarding table management module is not affected. Therefore, the EVPN forwarding table management module can automatically support this function only by supporting the standard RFC7432 function.
- Step 7 The EVPN forwarding table management module on the PE3 considers that the MAC route revocation event is received and is processed according to the RFC7623, and the result is that the forwarding path of the corresponding B-MAC is switched.
- Step 8 At the same time, the BGP EVPN control plane also performs the convergence of the forwarding member list corresponding to the B-MAC according to the inherent process, and finally completes, but when the step 7 is completed, the traffic is no longer lost, thereby greatly Reduced packet loss time during ESI convergence.
- the EVPN control plane module sends a true MAC route revocation to the EVPN forwarding table management module. In this case, the EVPN forwarding table management module does not have a corresponding forwarding path of the corresponding B-MAC. return.
- the local ESI adjacency detection event can propagate through the ESI state change fast channel prior to the EAD route to the remote PE, thereby being far away.
- the fast forwarding path switching is performed on the end PE to reduce the packet loss time in the ES link failure convergence process.
- the ESI neighbor detection event in the related art can only rely on BGP route propagation, and the convergence performance is difficult to achieve the performance of the BFD level. problem.
- the above processing steps may further include the following steps:
- PE1 may also send a message of the link UP corresponding to the B-MAC to the general OAM Mapping channel, but notify the ESI that the adjacent link becomes UP. The message will not be notified to the EVPN forwarding table management module.
- the EVPN control plane on PE3 will re-deliver the MAC address. In this case, the EVPN forwarding table management module will not be affected by the OAM mapping message of the B-MAC link DOWN that was previously notified to ESI1.
- Step 10 The PEER BFD session is interrupted, and the EVPN forwarding table management module on PE3 is not affected. Moreover, during the PEER BFD session interruption, the EVPN forwarding table management module only needs to be affected by the EVPN control plane module.
- Step 11 After the PEER BFD session is restored, if the status of the adjacent link of ESI1 on PE1 is UP, PE1 may also send a message of the link UP of the B-MAC corresponding to ESI1 to the general OAM Mapping channel, but notify the ESI adjacency chain.
- the ESI OAM Mapping message whose path becomes UP has no effect on the EVPN forwarding table management module.
- the OAM mapping channel can use not only peer BFD but also TE BFD or TP OAM.
- ESI adjacency detection can use not only EFM but also link detection techniques such as physical signals.
- BFD control messages can be implemented not only on the ESI in the all-active mode but also on the ESI in the single-active mode.
- the OAM mapping channel can use not only peer BFD but also TE BFD or TP OAM.
- ESI adjacency detection can use not only EFM but also link detection techniques such as physical signals.
- BFD control messages can be implemented not only on the ESI in the all-active mode but also on the ESI in the single-active mode.
- An Ethernet segment identification adjacency detection processing method is provided in this embodiment.
- the exemplary embodiment 2 is further described in detail below with reference to FIG. 1.
- a basic configuration is deployed on PE1, PE2, and PE3.
- VXLAN EVPN service in which CE1 is dual-homed to PE1 and PE2, and the corresponding ESI is ESI1.
- the Ethernet tag used in ESI1 is 100, ESI1 is in single-active mode, and CE2 is connected to PE3. Enables the basic EVPN functions defined in RFC7432 to function properly.
- the EVPN control plane module and the EVPN forwarding table management module are also deployed at the same time.
- the ESI adjacency detection module is deployed on the link between PE1 and CE1, the ESI state mapping module is deployed on PE1, the ESI state demapping module is deployed on PE3, and the ESI state change propagation fast channel is deployed between PE1 and PE3.
- the ESI adjacency detection module can be configured with a link BFD, EFM, and CFM detection module.
- the ESI adjacency detection module can be deployed in the following manner: A standard connectivity fault management CFM technology is deployed on the AC interface of the VXLAN EVPN on the link.
- the AC interface is a sub-interface.
- the sub-interface encapsulates the VLAN 100, which is the same as the Ethernet tag corresponding to the VXLAN EVPN service on the ESI1.
- the ESI adjacency detection module enables the CFM module to input the status change of the AC interface to the ESI status mapping module at any time. .
- the deployment of the ESI state change propagation fast channel is specifically: deploying a bidirectional TE tunnel between PE1 and PE3, and deploying an extended TP OAM session on the TE tunnel, and all ESI state change propagations at the two nodes are
- the extended TP OAM session is used as a fast channel instead of a TP OAM session for each ESI.
- the TP OAM session has a new CSF packet format compared to the TP OAM session of the Y.1731 standard (as shown in Figure 8).
- the operation code (OpCode) used in the new CSF message format is different from the standard CSF message.
- the OpCode of the standard CSF message format is 52, and the OpCode of the new CSF message format is 107.
- the management entity group level field in FIG. 8 is the MEL field
- the version field is the Version field
- the identification field is the Flags field
- the TLV offset field (0) is the TLV Offset (0) field
- the reserved (0) field that is, the Reserved (0) field.
- Step 1 The ESI adjacency detection module on the PE1 detects a link fault on the ESI1, including a physical link fault.
- Step 2 The ESI adjacency detection module on the PE1 notifies the ESI status mapping module of the fault on the ESI1;
- Step 3 The ESI state mapping module on PE1 encodes the fault on ESI1 into the ESI OAM Mapping Channel Sub-TLV format, and notifies the ESI state change propagation fast channel. Specifically, the ESI state mapping module on PE1 receives the detection state change. The event, and determine the corresponding ESI and Ethernet Tag, in this example, the ESI1 and the Ethernet Tag 100 thereon, and encapsulate the state change event of the ESI1 in the ESI OAM Mapping Channel Sub-TLV format shown in FIG. 4, and Notifies the ESI state change propagation fast track.
- the ESI field is filled with ESI1
- the Ethernet Tag ID field is filled with 100 to indicate the status of the Ethernet Tag 100 on the ESI1
- the ESI Adjacent PE Address field is used to fill the EAD-EVI route corresponding to the Ethernet Tag100 of the ESI1.
- Next hop address; the State field is filled with 1 for Down and 3 for UP;
- Step 4 The ESI state change propagation fast channel on the PE1 propagates the new CSF packet of the Sub-TLV through the TP OAM session to the PE3.
- the new CSF packet of the TP OAM session is compared with the standard CSF packet. The only difference is that it carries a TLV.
- the type of the TLV is assigned by IANA.
- the Value part of the TLV is an ESI OAM Mapping Channel Sub-TLV.
- the ESI OAM session inputs the ESI OAM into the ESI Status Mapping Module.
- the mapping channel Sub-TLV is encapsulated into a new CSF packet in the format shown in Figure 8.
- Step 5 On the PE3, the TP OAM session is identified by the ESI OAM Mapping Channel Sub-TLV carried in the new CSF message and input to the ESI state demapping module, but the TP OAM session does not need to be parsed by the ESI OAM Mapping Channel Sub- The specific content of the TLV; the TP OAM session itself does not parse the Value part of the TLV, but will directly hand it over to the ESI state demapping module. That is, the TP OAM session only passes the ESI OAM Mapping Channel Sub-TLV.
- Step 6 The ESI state demapping module on the PE3 receives the ESI OAM Mapping Channel Sub-TLV of the ESI state change propagation fast channel input, and parses the corresponding ESI as ESI1, the corresponding Ethernet Tag is 100, and the ESI Adjacent PE Address is IP7, and Determining an EAD-EVI route corresponding to the dual group ⁇ ESI1, 100> issued by the PE node identified by the IP7 (ie, PE1), and then notifying the EVPN forwarding table management module in the name of the EAD-EVI route revocation.
- the state of ⁇ ESI1, 100> is parsed from the OAM Mapping Sub-TLV, Up or Down; if the ⁇ ESI1, 100> state is Down, the EAD corresponding to the EESI control plane input ⁇ ESI1, 100> - EVI route revocation event is input to the EVPN forwarding table management module using the same API interface; if the ⁇ ESI1, 100> status is Up, the EVPN forwarding table management module is not affected. Therefore, the EVPN forwarding table management module can automatically support this function only by supporting the standard RFC7432 function.
- Step 7 The EVPN forwarding table management module on the PE3 considers that the EAD-EVI route revocation event is received and is processed according to the RFC7432, and the result is a forwarding path switch on ⁇ ESI1, 100>;
- Step 8 At the same time, the BGP EVPN control plane performs the convergence of the ⁇ ESI1,100> forwarding member list according to the inherent process, and finally completes the traffic. However, when the step 7 is completed, the traffic is no longer lost. Reduced packet loss time during ESI convergence.
- the EVPN control plane module also sends a true EAD route revocation to the EVPN forwarding table management module. At this time, due to the reason of step 7, the EVPN forwarding table management module does not have a corresponding forwarding path of the corresponding ESI, and can directly return.
- the local ESI adjacency detection event can propagate through the ESI state change fast channel prior to the EAD route to the remote PE, thereby being far away.
- the fast forwarding path switching is performed on the end PE to reduce the packet loss time in the ES link failure convergence process.
- the ESI neighbor detection event in the related art can only rely on BGP route propagation, and the convergence performance is difficult to achieve the performance of the BFD level. problem.
- the above processing steps may further include the following steps:
- Step 9 When the adjacent link of ⁇ ESI1, 100> on PE1 is restored to UP, PE1 may also send a message of ⁇ ESI1, 100> link UP to the general OAM Mapping channel, but notify the ESI adjacent link to become The ESI OAM Mapping message of the UP is not notified to the EVPN forwarding table management module. At the same time, the EVPN control plane on the PE3 will re-issue the EAD-ES route corresponding to the ESI1. In this case, the EVPN forwarding table management module will not be affected by the OAM mapping message that was previously notified to the ⁇ ESI1,100> link DOWN.
- Step 10 The TP OAM session is interrupted, and the EVPN forwarding table management module on the PE3 is not affected. Moreover, during the TP OAM session interruption, the EVPN forwarding table management module only needs to be affected by the EVPN control plane module;
- Step 11 After the TP OAM session is restored, if the neighboring link status of ⁇ ESI1, 100> on PE1 is UP, PE1 may also send a message of ⁇ ESI1, 100> link UP to the general OAM Mapping channel, but notify The ESI OAM Mapping message with the ESI adjacency link becoming UP has no effect on the EVPN forwarding table management module.
- the present application can be implemented not only on the ESI in the all-active mode but also on the ESI in the single-active mode. It can be implemented not only on the EVPN of the VXLAN package but also on the EVPN of the MPLS package. You can use not only peer BFD but also TE BFD or TP OAM.
- ESI adjacency detection can use not only EFM but also link detection techniques such as CFM.
- CSF packets can not only use the new OpCode, but also extend the support of the ESI OAM mapping function based on the old OpCode.
- the CSF message is not limited to the ESI OAM Mapping Channel Sub-TLV to represent the ESI. Adjacency detection event.
- the PEER IP address can be obtained not only from the TP OAM session but also in the CSF packet.
- the present exemplary embodiment is the same as Exemplary Embodiment 1, except where specifically stated.
- the present exemplary embodiment is the MPLS EVPN service established in accordance with FIG. 1, instead of the PBB EVPN service established in accordance with FIG. 6; therefore, there is no B component in the present exemplary embodiment.
- the deployment of the ESI adjacency detection module is specifically the same as that of the exemplary embodiment 1 except that the CFM detection technique is used; therefore, the present exemplary embodiment detects the state of the ESI sub-interface instead of the state of the ESI main interface.
- the deployment of the ESI state mapping module is specifically the same as the exemplary embodiment 1 except that the ESI identification information takes the ESI status change propagation fast channel receiving end node as the ESI label assigned to the ESI.
- the deployment of the ESI state change propagation fast channel is specifically the same as in the exemplary embodiment 1.
- the deployment of the ESI state demapping module is specifically the same as the exemplary embodiment 1 except that the ESI identification information is an ESI tag and the corresponding ESI is found using the ESI tag.
- the ESI forwarding table management module is specifically configured to be the same as the exemplary embodiment 1 except that the EVPN instance is an MPLS EVPN instance.
- This step is the same as the corresponding step in Exemplary Embodiment 1, except where specifically stated.
- the ESI identification information is an ESI label in this step
- the EVPN instance is an MPLS EVPN instance, and there is no B component instance, but these are not directly reflected in the corresponding step in the exemplary embodiment 1.
- the degree of abstraction described by the text is fully applicable to the present exemplary embodiment.
- ESI adjacency detection can use not only EFM but also link detection techniques such as CFM.
- the present exemplary embodiment is the same as Exemplary Embodiment 4 except where specifically stated.
- the present exemplary embodiment establishes a VXLAN EVPN service instead of an MPLS EVPN service.
- the EAD-ES route must carry a valid ESI label value. Therefore, in the case where the EAD-ES route carries a valid ESI tag value, the ESI tag value can still propagate the ESI identification information in the fast channel as the ESI state change.
- the format and processing flow of the ARP insertion message of the present exemplary embodiment can be different from that in the exemplary embodiment 4, except that the encapsulation other than the Ethernet header of the ARP insertion message is different from that in the exemplary embodiment 4. Are the same.
- the present exemplary embodiment is the same as Exemplary Embodiment 5 except where specifically stated.
- the present exemplary embodiment also deploys the ESI state change propagation fast channel and the associated ESI state demapping module between PE1 and PE3.
- the present exemplary embodiment adopts a 10-byte value of ESI as the ESI identification information, and adopts the first-class extended ARP message described in the exemplary embodiment 1 as the format of the ARP insertion message.
- the PE3 node in addition to the PE2 node responding to the ARP insertion message as in the exemplary embodiment 5, the PE3 node also responds to the ARP insertion message, on the PE3 node.
- the ESI forwarding table management module responds to the received ARP insertion packet according to the following rules: the EVPN instance to which the received ARP insertion packet belongs is recorded as EVI1, and the ARP insertion packet is recorded in the broadcast domain of the EVI1.
- the ESI decoded from the ARP insertion message is recorded as ESI1, and the triplet ⁇ ESI1, EVI1, BD1> is located to locate a set of EVPN load sharing forwarding information, and further, the ARP insertion report
- the source IP address of the VXLAN tunnel is the BGP next hop address that is filled in when the PE1 advertises the EVPN route. If the IP address is recorded as NH1, the NH1 corresponds to a specific forwarding information in the load balancing information. The piece of forwarding information is removed from the set of load sharing information.
- the ARP insertion message is sent to an ESI in a specific EVPN instance for the purpose of updating the load sharing forwarding information, and the sender is not affected by the DF state of the ESI in the EVPN instance.
- the present exemplary embodiment is the same as Exemplary Embodiment 6, except where specifically stated.
- the present exemplary embodiment establishes an MPLS EVPN service instead of a VXLAN EVPN service.
- the exemplary embodiment uses the sender protocol address of the ARP insertion message to fill in the BGP next hop address filled in when the E1 route is advertised by the PE1.
- the remaining features of the ARP insertion packet are the same as the exemplary embodiment. 6.
- the sender protocol address of the ARP insertion message is recorded as NH1, and the load sharing forwarding information set identified by ⁇ ESI1, EVI1, BD1> is The forwarding information identified by NH1 is removed from the set.
- the PE3 node is not an ESI1 adjacency node. It does not assign an ESI label to ESI1. Therefore, when PE1 sends an ARP insertion packet to PE3, it cannot use ESI as it sends an ARP insertion packet to PE2.
- the label uses ESI1's 10-byte ESI value as the ESI identifier to solve the ESI identification problem between PE1 and PE3.
- the MPLS EVPN data packet sent by PE1 to PE3 does not have the same BGP next hop address as the PE1 advertises the EVPN route. Therefore, the field must be carried in the ARP insertion packet.
- the sender protocol address carries this field, which solves this problem.
- ARP insertion message can also be replaced by the neighbor discovery protocol NDP neighbor request message.
- the role of the neighbor request message in IPv6 is the same as that of the ARP message in IPv4;
- the rules for the value of each field can be referred to the corresponding implementation of the ARP insertion packet.
- the present exemplary embodiment is the same as Exemplary Embodiment 1, except where specifically stated.
- the present exemplary embodiment establishes an EVPN service that is extended according to the exemplary embodiment 18 of the patent 201711257639.8 instead of the PBB EVPN service.
- ESI IP plays a similar role to PBB B-MAC, and it can uniquely locate a local ESI through ESI IP;
- the EVPN service also has an I component instance and a B component instance, the B component instance is IP-VRF, and the B component instance of the PBB EVPN is MAC-VRF.
- the present exemplary embodiment adopts ESI IP as the ESI identification information, and transmits in the ARP insertion message, and acquires the corresponding ESI value with the ESI IP.
- the present exemplary embodiment also deploys the ESI state change propagation fast channel and the associated ESI state demapping module between PE1 and PE3.
- the exemplary embodiment adopts the second type of ARP extended message as the basic format of the ARP insertion message, and then fills in the target protocol address as the BGP next hop address filled in when the PE1 advertises the EVPN route. .
- the PE3 node in addition to the PE2 node responding to the ARP insertion message similarly to the exemplary embodiment 1, the PE3 node also responds to the ARP insertion message, the PE3 node
- the upper ESI forwarding table management module responds to the received ARP insertion message according to the following rules: the I component instance to which the received ARP insertion message belongs is recorded as EVI1, and the B component instance corresponding to the EVI1 is recorded as B_EVI1.
- VXLAN outer source IP of the outer layer of the ARP insertion packet is recorded as ESI_IP1, and the target protocol address field of the ARP insertion packet is recorded as NH1, and ⁇ B_EVI1, ESI_IP1> corresponds to a set of EVPN load sharing information.
- the set is then removed from the forwarding information corresponding to NH1 in the set.
- the present application can be implemented not only on the ESI in the all-active mode but also on the ESI in the single-active mode.
- the ESI in the single-active mode it is only necessary to clear all the user MAC entries of the VXLAN destination IP learned by the I component instance EVI1 to the ESI_IP1. Due to the similarity between such extended EVPN and PBB EVPN, those skilled in the art can easily refer to the exemplary embodiment 1 and the present exemplary embodiment to migrate the present exemplary embodiment into the PBB EVPN.
- the present exemplary embodiment is the same as Exemplary Embodiment 7, except where specifically stated.
- the present exemplary embodiment ARP insertion message does not use the opcode field as the feature field, but uses the control word in the EVPN data encapsulation as the feature field of the ARP insertion message.
- the control word format is the same as the PW-ACH format.
- a new channel type value is TBD3, indicating that the ARP inserts the message.
- the above feature field is used to distinguish between ARP insertion packets and other ARP packets.
- VXLAN EVPN can be regarded as another control word in the first 4 bytes of the VXLAN-GPE header.
- the B component instance of PBB EVPN can also be used as a VPLS instance. Use the control word.
- the above-mentioned ARP insertion packet can also be replaced by a MAC-Ping insertion packet.
- the MAC Ping insertion packet has a MAC ping packet format, and the MAC ping packet is used to detect a certain MAC address in the EVPN. If the protocol packet is reachable, the MAC ping packet can be used to detect whether the egress of a MAC entry is the protocol packet of the local AC interface of the receiving PE.
- the MAC ping packet is used instead of the ARP insertion.
- the feature field can be configured to fill in the destination MAC address with the specified value, and carry the ESI fault identification information in the PDU of the MAC ping packet.
- the present exemplary embodiment is the same as Exemplary Embodiment 8 except where specifically stated.
- the present exemplary embodiment does not use the ARP insertion message to deliver the ESI failure identification information, but uses the ping message to deliver the ESI failure identification information, and the ping message is in the B.
- the component instance is forwarded instead of being forwarded in the I component instance; wherein, since the B component instance in the exemplary embodiment 8 is an IP-VRF, the data plane of the ping message is encapsulated into IP-VRF data.
- both the B component instance and the I component instance are the EVPN instances in the exemplary embodiment 8, just like the B component instance and the I component instance are both EBB instances of PBB EVPN.
- the ping packet in the exemplary embodiment is different from the normal ping packet in the IP-VRF, and the ICMP type field has a value of TBD5, indicating a new Echo suggestion message, that is, the request destination IP address is located.
- the node sends an ICMP Echo message to the source IP (filled in the IP address corresponding to the failed ESI, that is, the ESI IP address).
- receiving the Echo suggestion message means that the source IP has expired on the source node.
- the node where the destination IP address of the ICMP Echo message is sent can respond to an ICMP Echo message or not. If the node where the destination IP is located chooses to answer an ICMP Echo message, the source IP is at the node. The point does not guarantee that the corresponding ICMP Echo Reply message will be answered immediately, but the corresponding ICMP Echo Replay message will be returned after the IP recovery is valid.
- the ICMP Echo/Echo Reply message is also called a ping message.
- the B component is a VPLS instance.
- the format of the ping packet is the format of the MAC ping packet. Protocols used to detect connectivity of MAC addresses. Different vendors have different packet formats, but they all conform to the Echo/Replay interaction mode. On this basis, an Echo recommendation packet can be extended. It is worth noting that the MAC ping packet can also carry the ESI fault identification information in the I component instance.
- an Ethernet segment identification adjacency detection processing device is further provided, and the device is used to implement the foregoing embodiment, and details are not described herein.
- the term “module” may implement a combination of software and/or hardware of a predetermined function.
- the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
- FIG. 9 is a structural block diagram (1) of an Ethernet segment identification adjacency detection processing apparatus according to an embodiment of the present application. As shown in FIG. 9, the apparatus includes:
- the detecting module 901 is configured to detect an ESI adjacency detection event on the link of the Ethernet segment identifier ESI, where the ESI adjacency detection event is used to indicate a change of a result of detecting the link fault identified by the ESI;
- the notification module 903 is configured to send a first packet to the second network side edge device PE, where the first packet is used to notify the second PE of the ESI adjacency detection event, where the first packet carries the fault identifier of the ESI.
- the information, the fault identification information is used to instruct the second PE to perform an update process of the forwarding state corresponding to the ESI.
- the ESI adjacency detection event on the link of the Ethernet segment identifier ESI is detected by the function of the above module, wherein the ESI adjacency detection event is used to indicate a change in the result of detecting the link fault identified by the ESI;
- the network edge device PE sends a first packet, where the first packet is used to notify the second PE of the ESI adjacency detection event, where the first packet carries the fault identification information of the ESI, and the fault identifier information is used to indicate the first packet.
- the second PE performs the update process of the forwarding state corresponding to the ESI; therefore, the problem that the ESI adjacency detection event in the related art can only depend on the BGP route propagation, and the convergence performance is difficult to achieve the performance of the BFD level, reaches the remote PE.
- the fast forwarding path switching is completed to reduce the packet loss time during the ES link failure convergence process.
- the detecting module 901 is further configured to detect an ESI adjacency detection event on the link identified by the ESI by at least one of: passing the standard first mile Ethernet EFM technology; transmitting through the standard Y.1731 The manner in which the management manages the TP OAM TMS technology; the way in which the standard connectivity fault management CFM technology is passed; and the manner in which the physical signals on the link identified by the ESI are detected.
- the fault identification information of the ESI includes at least one of the following: a partial binary bit of the ESI; a carrier backbone bridge MAC address PBB B-MAC corresponding to the ESI or a partial binary bit in the PBB B-MAC corresponding to the ESI; Corresponding IP address; ESI label corresponding to ESI; coding information indicating that the main interface of the ESI is faulty; coding information indicating that the ESI sub-interface of the ESI is faulty, wherein the ESI sub-interface is the main interface corresponding to the ESI Sub-interface; the node identification information of the node where the link fault of the ESI identifier is indicated.
- the encapsulating module 905 is further configured to encapsulate the ESI adjacency detection event according to the ARP packet in at least one of the following manners:
- the ARP packet is encapsulated into an EVPN packet, where the EVPN packet is encapsulated according to the data packet format in the EVPN instance bound to the ESI sub-interface.
- the PDU part of the ARP packet is encapsulated according to the PDU format of the ARP probe packet, where the target protocol address in the PDU is the specified IP address.
- the control word is used to encapsulate the ARP packet into the EVPN data packet, where the channel type in the control word is set to the specified value.
- FIG. 10 is a structural block diagram (2) of an Ethernet segment identification adjacency detection processing apparatus according to an embodiment of the present application.
- the method further includes: a packaging module 905, configured to pass at least one of the following formats,
- the ESI adjacency detection event is encapsulated: the peer-to-peer bidirectional forwarding detection BFD chain path failure message; the transmission operation management and maintenance TP OAM session client signal failure indication CSF message; the media access control MAC ping message; the address resolution protocol ARP Packet; neighbor discovery protocol NDP neighbor request message; Internet control message protocol ICMP message.
- the encapsulating module 905 is further configured to encapsulate the ESI adjacency detection event according to the ARP packet in at least one of the following manners:
- the ARP packet is encapsulated in an EVPN packet.
- the EVPN packet is encapsulated according to the data packet format in the EVPN instance bound to the ESI sub-interface.
- the PDU part of the ARP packet is encapsulated according to the PDU format of the ARP probe packet, where the target protocol address in the PDU is the specified IP address.
- the control word is used to encapsulate the ARP packet into the EVPN data packet, where the channel type in the control word is set to the specified value.
- each of the above modules may be implemented by software or hardware.
- the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination.
- the forms are located in different processors.
- an Ethernet segment identification adjacency detection processing apparatus is described by using an A: EVPN control plane module, which distributes and manages various EVPN routes according to RFC7432 (thus A BGP module is built in.
- this module can subdivide many sub-modules, but since it is not an innovative part of this application, it is only used as a module here, so that it has basic EVPN functions, including performance comparison with this application.
- B EVPN forwarding table management module: The ESI forwarding member list is formed according to RFC7432, and the ESI forwarding path update is performed according to the EAD route validation message and the revocation message delivered by the EVPN control plane module.
- the device also includes:
- ESI adjacency detection module (which may be equivalent to the function of the detection module 901 of the above embodiment): when an ESI has an access link at the node, the fault detection on the link belongs to the ESI adjacency detection module, therefore,
- the ESI Adjacency Detection Module usually has an existing detection module such as link BFD, EFM, or CFM.
- the ESI adjacency detection module can notify the ESI state change propagation fast channel of the detection result compared to the existing detection modules.
- mapping refers to the ES detection state change event notified by the ESI neighbor detection module from the corresponding ESI state change fast channel in a corresponding format
- E ESI state change propagation fast channel: Propagation refers to the event that a certain ESI is faulty on the corresponding link of this node is transmitted to the far-end node through a fast channel such as BFD, and in turn, receives the far-end node.
- the remote ESI fault notification event passed by the point is also a function of this module. Therefore, the ESI state change propagation fast channel usually has a built-in detection module such as peer BFD and IP BFD as a fast channel.
- F ESI state demapping module: Linkage refers to the remote ESI fault notification event notified by the E module (ie, the ESI state change propagation fast channel) to the B module (ie, the EVPN forwarding table management module), and, The source of the event is not from the EAD route, but in the view of the B module, it has the same effect as the EAD route delivery/revocation notified by the A module (ie, the EVPN control plane module) (even completely treated as the same event), but time It must be routed before EAD.
- E module ie, the ESI state change propagation fast channel
- B module ie, the EVPN forwarding table management module
- the source of the event is not from the EAD route, but in the view of the B module, it has the same effect as the EAD route delivery/revocation notified by the A module (ie, the EVPN control plane module) (even completely treated as the same event), but time It must be routed before EAD.
- the ESI adjacency detection module detects a link failure on the ES, including a physical link failure
- the ESI adjacency detection module notifies the ESI status mapping module of the fault
- the ESI state mapping module notifies the fault to the ESI state change propagation fast channel
- the fourth step, the ESI state change propagation fast channel passes the fault to the remote PE through a fast fault linkage channel such as peer BFD;
- a fast fault linkage channel such as peer BFD receives a fault transfer message in a special format, and learns to propagate the message for the ESI adjacency detection event, and notifies the ESI state demapping module of the message; Parsing which ESI corresponding ES has failed on which remote PE, and then notifying the remote ESI fault linkage module;
- the ESI fault demapping module learns that a certain Ethernet tag on an ESI or an ESI has failed, and notifies the EVPN forwarding table management module of the fault to switch the forwarding path.
- an Ethernet segment identification adjacency detection processing device is further provided, and the device is used to implement the foregoing embodiment, and details are not described herein.
- the term “module” may implement a combination of software and/or hardware of a predetermined function.
- the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
- FIG. 12 is a structural block diagram (4) of an Ethernet segment identification adjacency detection processing apparatus according to an embodiment of the present application. As shown in FIG. 12, the apparatus includes:
- the receiving module 131 is configured to receive the first packet sent by the first PE, where the first packet is used to notify the ESI adjacency detection event on the link of the Ethernet segment identifier ESI detected by the first PE to the foregoing
- the device the ESI adjacency detection event is used to indicate a change in a result of detecting a link failure identified by the ESI; wherein the first message carries the fault identification information of the ESI;
- the update module 133 is configured to perform an update flow of the forwarding state corresponding to the ESI according to the failure identification information.
- the ESI adjacency detection event is used to indicate a change in the result of detecting the link fault identified by the ESI; wherein the first packet carries the fault identification information of the ESI; and the forwarding corresponding to the ESI is performed according to the fault identifier information.
- the receiving module 131 is further configured to receive, by using at least one of the following formats, a control packet that encapsulates an ESI adjacency detection event: a peer-to-peer bidirectional forwarding detection BFD chain path invalid packet; a transport operation management and maintenance TP OAM
- the client signal of the session is invalid, indicating the CSF packet, the address resolution protocol ARP packet, the neighbor discovery protocol NDP neighbor request packet, the ICMP packet, and the media access control MAC ping packet.
- the fault identification information of the ESI includes at least one of: a partial binary bit of the ESI; a PBB B-MAC corresponding to the ESI or a partial binary bit in the PBB B-MAC corresponding to the ESI; an IP address corresponding to the ESI; and an ESI corresponding
- the ESI tag is used to indicate the coding information of the main interface corresponding to the ESI; the coding information for indicating that the ESI sub-interface of the ESI is faulty, wherein the ESI sub-interface is a sub-interface of the main interface corresponding to the ESI;
- the receiving module 131 is further configured to: receive the packet encapsulated by the ESI neighbor detection event according to the ARP packet according to at least one of the following manners:
- the ARP packet is encapsulated in an EVPN packet encapsulated in the data packet format of the EVPN instance bound to the ESI sub-interface.
- the PDU part of the ARP packet is a packet encapsulated according to the PDU format of the ARP probe packet, where the target protocol address in the PDU is a specified IP address.
- the sender hardware address field of the ARP packet carries the fault identification information of the ESI.
- the operation code of the ARP packet is a predetermined value.
- the sender protocol address field of the ARP packet carries the fault identification information of the ESI.
- the Ethernet source MAC address of the ARP packet is the MAC address of the first PE.
- the Ethernet source MAC address of the ARP packet is the MAC address of the ESI sub-interface corresponding to the ESI or the ESI sub-interface.
- the Ethernet source MAC address of the ARP packet is the MAC address of the integrated routing bridge of the EVPN instance bound to the ESI sub-interface of the ESI.
- the Ethernet source MAC address of the ARP packet is the specified value.
- the update module is further configured to: change the DF/NDF/BDF state corresponding to the ESI sub-interface of the ESI; and change the state of the corresponding next hop information in the forwarding information set corresponding to the ESI.
- FIG. 13 is a structural block diagram (5) of an Ethernet segment identification adjacency detection processing apparatus according to an embodiment of the present application.
- the update module 103 includes:
- the determining unit 1331 is configured to determine a route type corresponding to the to-be-revoked event according to the ESI adjacency detection event; and the generating unit 1333 is configured to generate a predetermined route revocation event corresponding to the route type.
- the apparatus further includes: a parsing unit 135 configured to parse a state of the adjacent link of the ESI identifier from the control packet; and the input unit 137 is configured to be in a state of the adjacent link.
- the predetermined application interface API interface is used to input a predetermined route revocation event when the predetermined route revocation event is input with the Ethernet virtual private network EVPN control plane.
- each of the above modules may be implemented by software or hardware.
- the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination.
- the forms are located in different processors.
- the foregoing embodiment is only an exemplary description.
- the second PE may send the first packet to the first PE, where the first PE receives the first packet and performs the second PE in the foregoing embodiment. The operation corresponding to the operation performed.
- the embodiment of the present application further provides a network side edge device, which includes any of the Ethernet segment identification adjacency detection processing devices in the foregoing embodiments.
- the embodiment of the present application further provides a storage medium, where the storage medium includes a stored program, wherein the foregoing program runs the method of performing any of the Ethernet segment identification adjacency detection processing in the foregoing embodiment.
- the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM).
- ROM Read-Only Memory
- RAM Random Access Memory
- the embodiment of the present application further provides a processor configured to run a program, where the foregoing program runs the method of performing any of the Ethernet segment identification adjacency detection processing in the foregoing embodiment.
- modules or steps of the present application can be implemented by a general computing device, which can be concentrated on a single computing device or distributed in a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
- the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
- the application is not limited to any particular combination of hardware and software.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Environmental & Geological Engineering (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
Provided in the present application are an Ethernet segment identifier adjacency detection processing method, a device, and a storage medium. The method comprises: a first network-side edge device (PE) detects on a link of an Ethernet segment identifier (ESI) an ESI adjacency detection event, where the ESI adjacency detection event is used for indicating a change in the result of a fault detection performed on the link identified by the ESI; and the first PE transmits a first packet to a second PE, the first packet being used for notifying the second PE of the ESI adjacency detection event, where the first packet carries fault identification information of the ESI, and the fault identification information is used for instructing the second PE to execute an update process of a forwarding state corresponding to the ESI. This solves the problem in the prior art in which an ESI adjacency detection event can only rely on BGP routing for transmission and the convergence performance can hardly reach a BFD-level performance.
Description
本申请涉及通信领域,具体而言,涉及一种以太网段标识邻接检测处理方法及装置、存储介质。The present application relates to the field of communications, and in particular, to an Ethernet segment identification adjacency detection processing method and apparatus, and a storage medium.
以太虚拟专用网(Ethernet Virtual Private Network,简称为EVPN)技术作为下一代二层虚拟专用网(L2 Virtual Private Network,简称为L2VPN)技术,包括运营商骨干桥接技术以太虚拟专用网(Provider Backbone Bridge Ethernet Virtual Private Network,简称为PBB EVPN)、多协议标签交换(Multi-Protocol Label Switching Ethernet Virtual Private Network,简称为MPLS EVPN)和虚拟扩展局域网(Virtual Extensible LAN Ethernet Virtual Private Network,简称为VXLAN EVPN)等方向。IETF在RFC7432中对于EVPN的控制面进行了详细定义,同时对MPLS EVPN的数据面进行了详细定义。其后,IETF又在RFC7432的基础上,通过RFC8365对VXLAN EVPN的控制面和转发面进行了详细定义,在RFC7623中对PBB EVPN的控制面和转发面进行了详细定义。无论是MPLS EVPN、VXLAN EVPN还是PBB EVPN,对于ES多归接入到PE的场景,都有相应的描述,典型组网如图1所示(图1中的下层网络又被称为underlay网络):The Ethernet Virtual Private Network (EVPN) technology is used as the next-generation Layer 2 Virtual Private Network (L2VPN) technology, including the carrier backbone bridge Ethernet Provider Backbone Bridge Ethernet. Virtual Private Network (referred to as PBB EVPN), Multi-Protocol Label Switching Ethernet Virtual Private Network (MPLS EVPN), and Virtual Extensible LAN Ethernet Virtual Private Network (VXLAN EVPN) . The IETF defines the control plane of EVPN in RFC7432 in detail, and defines the data plane of MPLS EVPN in detail. Subsequently, based on RFC7432, the IETF has defined the control plane and forwarding plane of VXLAN EVPN through RFC8365. The control plane and forwarding plane of PBB EVPN are defined in RFC7623. Whether it is MPLS EVPN, VXLAN EVPN or PBB EVPN, there are corresponding descriptions for scenarios where ES is connected to the PE. The typical networking is shown in Figure 1. The lower layer in Figure 1 is also called the underlay network. :
RFC7432使用ESI字段在EVPN路由中唯一标识一个具有双归/多归接入特征的ES,而用ESI值为0表示只有单归接入特征的ES。RFC7432 uses the ESI field to uniquely identify an ES with dual-homing/multi-homing access features in the EVPN route, while the ESI value of 0 indicates an ES with only single-homed access features.
某个ES多归接入了若干PE,每个被该ES接入的PE称为该ES的一个邻接PE,并称该ES与其邻接PE具有邻接关系。同一ES在其每个邻接PE上的ESI都相同。An ES is connected to a number of PEs. Each PE that is accessed by the ES is called a neighboring PE of the ES. The ES is said to have an adjacency with its neighboring PEs. The same ES has the same ESI on each of its neighboring PEs.
该ES与其某个邻接PE相连的物理链路称为该ES在该邻接PE上的邻接链路,该邻接链路上的状态变化检测,包括物理状态变化检测、协议 状态变化检测、检测状态变化检测,统称为该ES的ESI邻接检测,ESI邻接检测状态的变化称为ESI邻接检测事件。The physical link between the ES and its neighboring PE is called the adjacent link of the ES on the adjacent PE. The state change detection on the adjacent link includes physical state change detection, protocol state change detection, and detection state change. Detection, collectively referred to as ESI adjacency detection of the ES, changes in the ESI adjacency detection state are referred to as ESI adjacency detection events.
在EVPN网络中,若一个PE结点不是某个ES的邻接PE,则称其为该ES的非邻接PE。非邻接PE能够得知远端ESI的存在,以及每个远端ESI目前都有哪些邻接PE,以及其到各远端ESI的各邻接PE的转发信息。In an EVPN network, if a PE node is not a neighboring PE of an ES, it is called a non-contiguous PE of the ES. The non-contiguous PE can know the existence of the remote ESI, and which neighboring PEs are currently present in each remote ESI, and its forwarding information to each neighboring PE of each remote ESI.
RFC7432定义了五类EVPN路由,其中,第一类EVPN路由被称为以太网自动发现(Ethernet Auto-discovery,EAD)路由,只在MPLS/VXLAN EVPN中使用;第二类EVPN路由称为MAC分发路由,又称为MAC路由,在PBB EVPN和MPLS/VXLAN EVPN中都使用,但作用不同。RFC7432 defines five types of EVPN routes. The first type of EVPN route is called Ethernet Auto-discovery (EAD) route and is only used in MPLS/VXLAN EVPN. The second type of EVPN route is called MAC distribution. Routing, also known as MAC routing, is used in both PBB EVPN and MPLS/VXLAN EVPN, but with different roles.
PBB EVPN与MPLS/VXLAN EVPN在非邻接PE如何发现邻接PE上有所不同:前者先将ESI映射为B-MAC(Backbone MAC),然后再以MAC路由的发布和撤销来表示ESI邻接链路的有效/无效;后者通过EAD路由直接发布ESI信息给远端PE。PBB EVPN and MPLS/VXLAN EVPN are different in how non-contiguous PEs discover neighboring PEs: the former maps ESI to B-MAC (Backbone MAC), and then uses the issuance and revocation of MAC routes to indicate the ESI neighboring links. Valid/invalid; the latter directly issues ESI information to the remote PE through the EAD route.
在MPLS/VXLAN EVPN中,RFC7432定义的EAD路由又有两种粒度,一种是以太网自动发现的以太网分段(EAD-ES)路由,另一种是以太网自动发现的EVPN实例(EAD EVPN Instance,EAD-EVI)路由,都是由各个ES的各个邻接PE对外发布的。EAD-ES以及EAD-EVI路由的发布和撤销受该ES在相应邻接PE上的ESI邻接检测事件的影响。In MPLS/VXLAN EVPN, the EAD route defined by RFC7432 has two granularities, one is Ethernet auto-discovery Ethernet segmentation (EAD-ES) route, and the other is Ethernet auto-discovery EVPN instance (EAD). EVPN Instance (EAD-EVI) routes are issued by neighboring PEs of each ES. The issuance and revocation of EAD-ES and EAD-EVI routes is affected by the ES's ESI adjacency detection event on the corresponding neighboring PE.
在PBB EVPN中非邻接PE是不知道ESI信息的,基于ESI对等双向转发检测BFD的保护技术在PBB EVPN中无法实施;在MPLS/VXLAN EVPN中,EAD-ES以及EAD-EVI路由都承载在BGP协议报文中,依赖它们传播ESI邻接检测事件,收敛性能很难达到BFD级的性能。In PBB EVPN, non-contiguous PEs do not know ESI information. The protection technology based on ESI peer-to-peer bidirectional forwarding detection BFD cannot be implemented in PBB EVPN. In MPLS/VXLAN EVPN, EAD-ES and EAD-EVI routes are carried in In BGP packets, they rely on them to propagate ESI adjacency detection events. It is difficult for convergence performance to achieve BFD-level performance.
针对相关技术中,ESI邻接检测事件只能依赖于BGP路由传播,收敛性能很难达到BFD级的性能的问题,尚未提出有效的解决方案。In the related art, the ESI adjacency detection event can only rely on BGP route propagation, and the convergence performance is difficult to achieve the performance of the BFD level, and an effective solution has not been proposed.
发明内容Summary of the invention
本申请实施例提供了一种以太网段标识邻接检测处理方法及装置、存 储介质,以至少解决相关技术中ESI邻接检测事件只能依赖于BGP路由传播,收敛性能很难达到BFD级的性能的问题。The embodiment of the present application provides an Ethernet segment identification adjacency detection processing method and device, and a storage medium, so as to at least solve the related art, the ESI adjacency detection event can only rely on BGP route propagation, and the convergence performance is difficult to achieve the performance of the BFD level. problem.
根据本申请的一个实施例,提供了一种以太网段标识邻接检测处理方法,包括:第一网络侧边缘设备PE检测到以太网分段标识ESI的链路上的ESI邻接检测事件,其中,ESI邻接检测事件用于指示对ESI标识的链路故障进行检测的结果的变化;According to an embodiment of the present application, an Ethernet segment identification adjacency detection processing method is provided, including: an ESI adjacency detection event on a link of an Ethernet segment identifier ESI detected by a first network side edge device PE, where The ESI adjacency detection event is used to indicate a change in the result of detecting the link failure identified by the ESI;
第一PE向第二PE发送第一报文,第一报文用于将ESI邻接检测事件通知给第二PE,其中,第一报文中携带有ESI的故障标识信息,故障标识信息用于指示第二PE执行与所述ESI对应的转发状态的更新流程。The first PE sends a first packet to the second PE, where the first packet is used to notify the second PE of the ESI adjacency detection event, where the first packet carries the fault identification information of the ESI, and the fault identifier information is used. An update flow instructing the second PE to perform a forwarding state corresponding to the ESI.
可选地,通过以下方式至少之一,检测到ESI标识的链路上的ESI邻接检测事件:Optionally, the ESI adjacency detection event on the link identified by the ESI is detected by at least one of the following manners:
通过标准第一英里以太网EFM技术的方式;Pass the standard first mile Ethernet EFM technology approach;
通过标准Y.1731传送操作管理维护TP OAM TMS技术的方式;The way to manage and maintain TP OAM TMS technology through standard Y.1731 transport operations;
通过标准连通性故障管理CFM技术的方式;The way to manage CFM technology through standard connectivity faults;
通过检测ESI标识的链路上的物理信号的方式。By detecting the physical signal on the link identified by ESI.
可选地,通过至少以下格式之一,对ESI邻接检测事件进行封装:对等双向转发检测BFD的连锁路径失效报文;传送操作管理维护TP OAM会话的客户信号失效指示CSF报文;地址解析协议ARP报文;邻居发现协议NDP的邻居请求报文;因特网控制报文协议ICMP报文;媒体接入控制MAC Ping报文。Optionally, the ESI adjacency detection event is encapsulated by using at least one of the following formats: a peer-to-peer bidirectional forwarding detection BFD chain path failure message; a transmission operation management and maintenance TP OAM session client signal failure indication CSF message; address resolution Protocol ARP packet; neighbor discovery protocol NDP neighbor request message; Internet control message protocol ICMP message; media access control MAC ping message.
可选地,ESI的故障标识信息至少包括以下之一:ESI的部分二进制位;ESI对应的运营商骨干桥接骨干MAC地址PBB B-MAC或ESI对应的PBB B-MAC中的部分二进制位;ESI对应的IP地址;ESI对应的ESI标签;用于指示ESI对应的主接口存在故障的编码信息;用于指示ESI的ESI子接口存在故障的编码信息,其中,ESI子接口为ESI对应的主接口的子接口;用于指示ESI标识的链路故障所在节点的节点标识信息。Optionally, the fault identification information of the ESI includes at least one of the following: a partial binary bit of the ESI; a carrier backbone bridge MAC address PBB B-MAC corresponding to the ESI or a partial binary bit in the PBB B-MAC corresponding to the ESI; Corresponding IP address; ESI label corresponding to ESI; coding information indicating that the main interface corresponding to the ESI is faulty; coding information indicating that the ESI sub-interface of the ESI is faulty, wherein the ESI sub-interface is the main interface corresponding to the ESI Sub-interface; the node identification information of the node where the link fault of the ESI identifier is indicated.
可选地,通过ARP报文对ESI邻接检测事件进行封装包括以下至少 之一方式:Optionally, encapsulating the ESI adjacency detection event by using the ARP packet includes at least one of the following methods:
将ARP报文封装到EVPN报文中,其中,EVPN报文按照ESI的ESI子接口所绑定的EVPN实例中的数据报文格式进行封装;The ARP packet is encapsulated into an EVPN packet, where the EVPN packet is encapsulated according to the data packet format in the EVPN instance bound to the ESI sub-interface.
将ARP报文的PDU部分按照ARP探针报文的PDU格式进行封装,其中,PDU中的目标协议地址为指定的IP地址;The PDU part of the ARP packet is encapsulated according to the PDU format of the ARP probe packet, where the target protocol address in the PDU is the specified IP address.
将ARP报文的发送者硬件地址字段设置为携带有ESI的故障标识信息;Set the sender hardware address field of the ARP packet to the fault identification information carrying the ESI.
将ARP报文的操作码设置为预定值;Set the operation code of the ARP packet to a predetermined value;
将ARP报文的发送者协议地址字段设置为携带ESI的故障标识信息;Set the sender protocol address field of the ARP packet to carry the fault identification information of the ESI.
将ARP报文的以太网源MAC设置为第一PE的MAC地址;Set the Ethernet source MAC address of the ARP packet to the MAC address of the first PE.
将ARP报文的以太网源MAC设置为ESI对应的主接口或ESI的ESI子接口的MAC地址;Set the Ethernet source MAC address of the ARP packet to the MAC address of the ESI sub-interface corresponding to the ESI or the ESI.
将ARP报文的以太网源MAC设置为ESI的ESI子接口所绑定的EVPN实例的集成路由桥接IRB接口的MAC地址;Set the Ethernet source MAC address of the ARP packet to the MAC address of the integrated routing bridged IRB interface of the EVPN instance bound to the ESI sub-interface of the ESI.
将ARP报文的以太网源MAC设置为指定值;Set the Ethernet source MAC address of the ARP packet to the specified value.
将ARP报文的以太网目的MAC地址设置为预定值;Set the Ethernet destination MAC address of the ARP packet to a predetermined value.
将ARP报文中目标协议地址设置为携带有ESI的故障标识信息;Set the target protocol address in the ARP packet to the fault identification information carrying the ESI.
将ARP报文中目标硬件地址设置为携带有ESI故障标识信息;Set the target hardware address in the ARP packet to carry the ESI fault identification information.
使用控制字将ARP报文封装到EVPN数据报文中,其中控制字中的信道类型设置为指定值。The control word is used to encapsulate the ARP packet into the EVPN data packet, where the channel type in the control word is set to the specified value.
根据本申请的另一个实施例,提供了一种以太网段标识邻接检测处理方法,包括:第二网络侧边缘设备PE接收第一PE发送的第一报文,其中,第一报文用于将第一PE检测到的以太网分段标识ESI的链路上的ESI邻接检测事件通知给第二PE,ESI邻接检测事件用于指示对ESI标识的链路故障进行检测的结果的变化;其中,第一报文中携带了所述ESI的故障标识信息,故障标识信息用于指示第二PE执行与所述ESI对应的转发状态的更新流程。According to another embodiment of the present application, an Ethernet segment identification adjacency detection processing method is provided, including: a second network side edge device PE receives a first packet sent by a first PE, where the first packet is used by Notifying the second PE of the ESI adjacency detection event on the link of the Ethernet segment identifier ESI detected by the first PE, where the ESI adjacency detection event is used to indicate a change in the result of detecting the link fault identified by the ESI; The first packet carries the fault identification information of the ESI, and the fault identifier information is used to indicate that the second PE performs an update process of the forwarding state corresponding to the ESI.
可选地,ESI邻接检测事件至少通过以下格式之一进行封装:对等双向转发检测BFD的连锁路径失效Concatenated Path Down报文;传送操作管理维护TP OAM会话的客户信号失效指示CSF报文;地址解析协议ARP报文;邻居发现协议NDP的邻居请求报文;ICMP报文;媒体接入控制MAC Ping报文。Optionally, the ESI adjacency detection event is encapsulated by at least one of the following formats: a peer-to-peer bidirectional forwarding detection BFD chain path failure Concatenated Path Down message; a transmission operation management maintenance TP OAM session client signal failure indication CSF message; Resolve protocol ARP packets; neighbor discovery protocol NDP neighbor request packets; ICMP packets; media access control MAC ping packets.
可选地,ESI的故障标识信息至少包括以下之一:ESI的部分二进制位;ESI对应的PBB B-MAC或ESI对应的PBB B-MAC中的部分二进制位;ESI对应的IP地址;ESI对应的ESI标签;用于指示ESI对应的主接口存在故障的编码信息;用于指示ESI的ESI子接口存在故障的编码信息,其中,ESI子接口为ESI对应的主接口的子接口;用于指示ESI标识的链路故障所在节点的节点标识信息。Optionally, the fault identification information of the ESI includes at least one of: a partial binary bit of the ESI; a PBB B-MAC corresponding to the ESI or a partial binary bit in the PBB B-MAC corresponding to the ESI; an IP address corresponding to the ESI; and an ESI corresponding The ESI tag is used to indicate the coding information of the main interface corresponding to the ESI; the coding information for indicating that the ESI sub-interface of the ESI is faulty, wherein the ESI sub-interface is a sub-interface of the main interface corresponding to the ESI; The node identification information of the node where the link fault of the ESI is located.
可选地,ESI邻接检测事件通过ARP报文进行封装至少包括以下之一:Optionally, the ESI adjacency detection event is encapsulated by the ARP packet, and at least one of the following is included:
ARP报文被封装到按照ESI的ESI子接口所绑定的EVPN实例中的数据报文格式封装的EVPN报文中;The ARP packet is encapsulated in an EVPN packet encapsulated in the data packet format of the EVPN instance bound to the ESI sub-interface.
ARP报文的PDU部分被按照ARP探针报文的PDU格式进行封装,其中,PDU中的目标协议地址为指定的IP地址;The PDU part of the ARP packet is encapsulated according to the PDU format of the ARP probe packet, where the target protocol address in the PDU is the specified IP address.
ARP报文的发送者硬件地址字段携带有ESI的故障标识信息;The sender hardware address field of the ARP packet carries the fault identification information of the ESI.
ARP报文的操作码为预定值;The operation code of the ARP packet is a predetermined value.
ARP报文的发送者协议地址字段携带有ESI的故障标识信息;The sender protocol address field of the ARP packet carries the fault identification information of the ESI.
ARP报文的以太网源MAC为第一PE的MAC地址;The Ethernet source MAC address of the ARP packet is the MAC address of the first PE.
ARP报文的以太网源MAC为ESI对应的主接口或ESI的ESI子接口的MAC地址;The Ethernet source MAC address of the ARP packet is the MAC address of the ESI sub-interface corresponding to the ESI or the ESI sub-interface.
ARP报文的以太网源MAC为ESI的ESI子接口所绑定的EVPN实例的集成路由桥接IRB接口的MAC地址;The Ethernet source MAC address of the ARP packet is the MAC address of the integrated routing bridge of the EVPN instance bound to the ESI sub-interface of the ESI.
ARP报文的以太网源MAC为指定值。The Ethernet source MAC address of the ARP packet is the specified value.
可选地,执行与ESI对应的转发状态的更新流程至少包括以下之一: 改变ESI的ESI子接口所对应的指定转发/非指定转发/备份指定转发状态;改变ESI对应的转发信息集合中相应下一跳信息的状态。Optionally, the update process of performing the forwarding state corresponding to the ESI includes at least one of the following: changing the specified forwarding state of the specified forwarding/non-designated forwarding/backup corresponding to the ESI sub-interface of the ESI; changing the corresponding forwarding information set corresponding to the ESI The status of the next hop information.
根据本申请的另一个实施例,提供了一种以太网段标识邻接检测处理装置,包括:检测模块,设置为检测到以太网分段标识ESI的链路上的ESI邻接检测事件,其中,ESI邻接检测事件用于指示对ESI标识的链路故障进行检测的结果的变化;According to another embodiment of the present application, an Ethernet segment identification adjacency detection processing apparatus is provided, including: a detection module configured to detect an ESI adjacency detection event on a link of an Ethernet segment identifier ESI, where ESI The adjacency detection event is used to indicate a change in the result of detecting the link failure identified by the ESI;
发送模块,设置为向第二网络侧边缘设备PE发送第一报文,第一报文用于将ESI邻接检测事件通知给第二PE,其中,第一报文中携带有ESI的故障标识信息,故障标识信息用于指示第二PE执行与ESI对应的转发状态的更新流程。The sending module is configured to send the first packet to the second network side edge device PE, where the first packet is used to notify the second PE of the ESI neighboring detection event, where the first packet carries the fault identification information of the ESI. The fault identification information is used to indicate that the second PE performs an update process of the forwarding state corresponding to the ESI.
可选地,上述检测模块,还设置为通过以下方式至少之一,检测到ESI标识的链路上的ESI邻接检测事件:通过标准第一英里以太网EFM技术的方式;通过标准Y.1731传送操作管理维护TP OAM TMS技术的方式;通过标准连通性故障管理CFM技术的方式;通过检测所述ESI标识的链路上的物理信号的方式。Optionally, the foregoing detecting module is further configured to detect an ESI adjacency detection event on the link identified by the ESI by at least one of: passing the standard first mile Ethernet EFM technology; transmitting through the standard Y.1731 The manner in which the management manages the TP OAM TMS technology; the way in which the standard connectivity fault management CFM technology is passed; and the manner in which the physical signals on the link identified by the ESI are detected.
可选地,还包括:封装模块,设置为通过至少以下格式之一,对ESI邻接检测事件进行封装:对等双向转发检测BFD的连锁路径失效报文;传送操作管理维护TP OAM会话的客户信号失效指示CSF报文;媒体接入控制MAC Ping报文;地址解析协议ARP报文;邻居发现协议NDP的邻居请求报文;因特网控制报文协议ICMP报文。Optionally, the method further includes: an encapsulating module, configured to encapsulate the ESI adjacency detection event by using at least one of the following formats: a peer-to-peer bidirectional forwarding detection BFD chain path failure message; and a transmission operation management and maintenance TP OAM session client signal The CSF packet is invalid, the media access control MAC ping packet, the address resolution protocol ARP packet, the neighbor discovery protocol NDP neighbor request packet, and the Internet control packet protocol ICMP packet.
可选地,ESI的故障标识信息至少包括以下之一:ESI的部分二进制位;ESI对应的运营商骨干桥接骨干MAC地址PBB B-MAC或ESI对应的PBB B-MAC中的部分二进制位;ESI对应的IP地址;ESI对应的ESI标签;用于指示ESI的主接口存在故障的编码信息;用于指示ESI的ESI子接口存在故障的编码信息,其中,ESI子接口为ESI对应的主接口的子接口;用于指示ESI标识的链路故障所在节点的节点标识信息。Optionally, the fault identification information of the ESI includes at least one of the following: a partial binary bit of the ESI; a carrier backbone bridge MAC address PBB B-MAC corresponding to the ESI or a partial binary bit in the PBB B-MAC corresponding to the ESI; Corresponding IP address; ESI label corresponding to ESI; coding information indicating that the main interface of the ESI is faulty; coding information indicating that the ESI sub-interface of the ESI is faulty, wherein the ESI sub-interface is the main interface corresponding to the ESI Sub-interface; the node identification information of the node where the link fault of the ESI identifier is indicated.
可选地,封装模块,还设置为采用以下方式至少之一按照ARP报文 对ESI邻接检测事件进行封装:Optionally, the encapsulating module is further configured to encapsulate the ESI adjacency detection event according to the ARP packet in at least one of the following manners:
将ARP报文封装到EVPN报文中,其中,EVPN报文按照ESI的ESI子接口所绑定的EVPN实例中的数据报文格式进行封装;The ARP packet is encapsulated into an EVPN packet, where the EVPN packet is encapsulated according to the data packet format in the EVPN instance bound to the ESI sub-interface.
将ARP的PDU部分报文按照ARP探针报文的PDU格式进行封装,其中,PDU中的目标协议地址为指定的IP地址;The PDU part of the ARP packet is encapsulated according to the PDU format of the ARP probe packet, where the target protocol address in the PDU is the specified IP address.
将ARP报文的发送者硬件地址字段设置为携带有ESI的故障标识信息;Set the sender hardware address field of the ARP packet to the fault identification information carrying the ESI.
将ARP报文的操作码设置为预定值;Set the operation code of the ARP packet to a predetermined value;
将ARP报文的发送者协议地址字段设置为携带有ESI的故障标识信息;Set the sender protocol address field of the ARP packet to the fault identification information carrying the ESI.
将ARP报文的以太网源MAC设置为第一PE的MAC地址;Set the Ethernet source MAC address of the ARP packet to the MAC address of the first PE.
将ARP报文的以太网源MAC设置为ESI对应的主接口或ESI的ESI子接口的MAC地址;Set the Ethernet source MAC address of the ARP packet to the MAC address of the ESI sub-interface corresponding to the ESI or the ESI.
将ARP报文的以太网源MAC设置为ESI的ESI子接口所绑定的EVPN实例的集成路由桥接IRB接口的MAC地址;Set the Ethernet source MAC address of the ARP packet to the MAC address of the integrated routing bridged IRB interface of the EVPN instance bound to the ESI sub-interface of the ESI.
将ARP报文的以太网源MAC设置为指定值;Set the Ethernet source MAC address of the ARP packet to the specified value.
将ARP报文的以太网目的MAC地址设置为预定值;Set the Ethernet destination MAC address of the ARP packet to a predetermined value.
将ARP报文中目标协议地址设置为携带有ESI的故障标识信息;Set the target protocol address in the ARP packet to the fault identification information carrying the ESI.
将ARP报文中目标硬件地址设置为携带有ESI故障标识信息;Set the target hardware address in the ARP packet to carry the ESI fault identification information.
使用控制字将ARP报文封装到EVPN数据报文中,其中控制字中的信道类型设置为指定值。The control word is used to encapsulate the ARP packet into the EVPN data packet, where the channel type in the control word is set to the specified value.
根据本申请的另一个实施例,提供了一种以太网段标识邻接检测处理装置,包括:According to another embodiment of the present application, an Ethernet segment identification adjacency detection processing apparatus is provided, including:
接收模块,设置为接收第一PE发送的第一报文,其中,第一报文用于将第一PE检测到的以太网分段标识ESI的链路上的ESI邻接检测事件通知给上述装置,所述ESI邻接检测事件用于指示对ESI标识的链路故障进行检测的结果的变化;其中,第一报文中携带有所述ESI的故障标识信 息;The receiving module is configured to receive the first packet sent by the first PE, where the first packet is used to notify the device of the ESI adjacency detection event on the link of the Ethernet segment identifier ESI detected by the first PE The ESI adjacency detection event is used to indicate a change in a result of detecting a link failure identified by the ESI; wherein the first packet carries the fault identification information of the ESI;
更新模块,设置为根据故障标识信息执行与ESI对应的转发状态的更新流程。The update module is configured to perform an update process of the forwarding state corresponding to the ESI according to the fault identification information.
可选地,接收模块,还设置为接收通过至少以下格式之一,对ESI邻接检测事件进行封装的控制报文:对等双向转发检测BFD的连锁路径失效报文;传送操作管理维护TP OAM会话的客户信号失效指示CSF报文;地址解析协议ARP报文;邻居发现协议NDP的邻居请求报文;ICMP报文;媒体接入控制MAC Ping报文。Optionally, the receiving module is further configured to: receive, by using at least one of the following formats, a control packet that encapsulates the ESI adjacency detection event: a peer-to-peer bidirectional forwarding detection BFD chain path invalidation message; a transmission operation management maintenance TP OAM session The customer signal invalidation indication CSF message; the address resolution protocol ARP message; the neighbor discovery protocol NDP neighbor request message; the ICMP message; the media access control MAC ping message.
可选地,ESI的故障标识信息至少包括以下之一:ESI的部分二进制位;ESI对应的PBB B-MAC或ESI对应的PBB B-MAC中的部分二进制位;ESI对应的IP地址;ESI对应的ESI标签;用于指示ESI对应的主接口存在故障的编码信息;用于指示ESI的ESI子接口存在故障的编码信息,其中,ESI子接口为ESI对应的主接口的子接口;用于指示ESI标识的链路故障所在节点的节点标识信息。Optionally, the fault identification information of the ESI includes at least one of: a partial binary bit of the ESI; a PBB B-MAC corresponding to the ESI or a partial binary bit in the PBB B-MAC corresponding to the ESI; an IP address corresponding to the ESI; and an ESI corresponding The ESI tag is used to indicate the coding information of the main interface corresponding to the ESI; the coding information for indicating that the ESI sub-interface of the ESI is faulty, wherein the ESI sub-interface is a sub-interface of the main interface corresponding to the ESI; The node identification information of the node where the link fault of the ESI is located.
可选地,接收模块,还设置为接收根据以下方式至少之一按照ARP报文对ESI邻接检测事件进行封装后的报文:Optionally, the receiving module is further configured to: receive the packet encapsulated by the ESI neighbor detection event according to the ARP packet according to at least one of the following manners:
ARP报文是封装到按照ESI的ESI子接口所绑定的EVPN实例中的数据报文格式封装的EVPN报文中的报文;The ARP packet is encapsulated in an EVPN packet encapsulated in the data packet format of the EVPN instance bound to the ESI sub-interface.
ARP报文的PDU部分是按照ARP探针报文的PDU格式进行封装的报文,其中,PDU中的目标协议地址为指定的IP地址;The PDU part of the ARP packet is a packet encapsulated according to the PDU format of the ARP probe packet, where the target protocol address in the PDU is a specified IP address.
ARP报文的发送者硬件地址字段携带有ESI的故障标识信息;The sender hardware address field of the ARP packet carries the fault identification information of the ESI.
ARP报文的操作码为预定值;The operation code of the ARP packet is a predetermined value.
ARP报文的发送者协议地址字段携带有ESI的故障标识信息;The sender protocol address field of the ARP packet carries the fault identification information of the ESI.
ARP报文的以太网源MAC为第一PE的MAC地址;The Ethernet source MAC address of the ARP packet is the MAC address of the first PE.
ARP报文的以太网源MAC为ESI对应的主接口或ESI的ESI子接口的MAC地址;The Ethernet source MAC address of the ARP packet is the MAC address of the ESI sub-interface corresponding to the ESI or the ESI sub-interface.
ARP报文的以太网源MAC为ESI的ESI子接口所绑定的EVPN实例 的集成路由桥接IRB接口的MAC地址;The Ethernet source MAC address of the ARP packet is the MAC address of the integrated routing bridge of the EVPN instance bound to the ESI sub-interface of the ESI.
ARP报文的以太网源MAC为指定值。The Ethernet source MAC address of the ARP packet is the specified value.
可选地,更新模块,至少还设置为以下之一:改变ESI的ESI子接口所对应的指定转发/非指定转发/备份指定转发状态;改变ESI对应的转发信息集合中相应下一跳信息的状态。Optionally, the update module is configured to be at least one of the following: changing the specified forwarding state of the specified forwarding/non-designated forwarding/backup corresponding to the ESI sub-interface of the ESI; changing the corresponding next hop information in the forwarding information set corresponding to the ESI status.
根据本申请的另一个实施例,提供了一种网络侧边缘设备,包括上述任一项以太网段标识邻接检测处理装置。According to another embodiment of the present application, a network side edge device is provided, including any of the above Ethernet segment identification adjacency detection processing devices.
根据本申请的另一个实施例,提供了一种存储介质,存储介质包括存储的程序,程序运行时执行上述任一项以太网段标识邻接检测处理方法。According to another embodiment of the present application, a storage medium is provided. The storage medium includes a stored program that executes any of the above-described Ethernet segment identification adjacency detection processing methods when the program is running.
根据本申请的另一个实施例,提供了一种处理器,处理器设置为运行程序,程序运行时执行上述任一项以太网段标识邻接检测处理方法。In accordance with another embodiment of the present application, a processor is provided that is configured to execute a program that executes any of the above described Ethernet segment identification adjacency detection processing methods while the program is running.
通过本申请的实施例,第一网络侧边缘设备PE检测到以太网分段标识ESI的链路上的ESI邻接检测事件,其中,ESI邻接检测事件用于指示对ESI标识的链路故障进行检测的结果的变化;第一PE向第二PE发送第一报文,第一报文用于将ESI邻接检测事件通知给第二PE,其中,第一报文中携带有ESI的故障标识信息,故障标识信息用于指示第二PE执行与ESI对应的转发状态的更新流程;可以解决相关技术中ESI邻接检测事件只能依赖于BGP路由传播,收敛性能很难达到BFD级的性能的问题,达到了在远端PE上完成快速的转发路径切换或指定转发/非指定转发/备份指定转发状态切换,减少ES链路故障收敛过程中的丢包时间的效果。With the embodiment of the present application, the first network side edge device PE detects an ESI adjacency detection event on the link of the Ethernet segment identifier ESI, where the ESI adjacency detection event is used to indicate that the link fault of the ESI identifier is detected. The first PE sends a first packet to the second PE, where the first packet is used to notify the second PE of the ESI adjacency detection event, where the first packet carries the fault identification information of the ESI. The fault identification information is used to indicate that the second PE performs the update process of the forwarding state corresponding to the ESI. The ESI neighbor detection event in the related art can only rely on the BGP route propagation, and the convergence performance is difficult to achieve the performance of the BFD level. The fast forwarding path switching or the specified forwarding/non-designated forwarding/backup specified forwarding state switching is performed on the remote PE to reduce the packet loss time in the ES link failure convergence process.
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the present application, and are intended to be a part of this application. In the drawing:
图1是根据本申请实施例的RFC7432 EVPN业务的物理拓扑图;1 is a physical topology diagram of an RFC7432 EVPN service according to an embodiment of the present application;
图2是根据本申请实施例的以太网段标识邻接检测处理方法的流程图 (一);2 is a flowchart (1) of an Ethernet segment identification adjacency detection processing method according to an embodiment of the present application;
图3是根据本申请实施例的以太网段标识邻接检测处理方法的流程图(二);3 is a flowchart (2) of an Ethernet segment identification adjacency detection processing method according to an embodiment of the present application;
图4是根据本申请实施例的用于ESI OAM Mapping的OAM Mapping Channel Sub-TLV格式;4 is an OAM Mapping Channel Sub-TLV format for ESI OAM Mapping according to an embodiment of the present application;
图5是根据本申请实施例的扩展了通用OAM mapping信道能力的BFD控制报文格式;FIG. 5 is a BFD control packet format that extends the capability of a universal OAM mapping channel according to an embodiment of the present application;
图6是根据本申请实施例的RFC7623 PBB EVPN业务的物理拓扑图;6 is a physical topology diagram of an RFC7623 PBB EVPN service according to an embodiment of the present application;
图7是根据本申请实施例的用于PBB EVPN中的ESI OAM Mapping的ESI OAM Mapping Channel Sub-TLV格式;7 is an ESI OAM Mapping Channel Sub-TLV format for ESI OAM Mapping in PBB EVPN according to an embodiment of the present application;
图8是根据本申请实施例的Y.1731扩展CSF PDU格式;FIG. 8 is a Y.1731 extended CSF PDU format according to an embodiment of the present application; FIG.
图9是根据本申请实施例的以太网段标识邻接检测处理装置的结构框图(一);9 is a structural block diagram (1) of an Ethernet segment identification adjacency detection processing apparatus according to an embodiment of the present application;
图10是根据本申请实施例的以太网段标识邻接检测处理装置的结构框图(二);10 is a structural block diagram (2) of an Ethernet segment identification adjacency detection processing apparatus according to an embodiment of the present application;
图11是根据本申请实施例的以太网段标识邻接检测处理装置的结构框图(三);11 is a structural block diagram (3) of an Ethernet segment identification adjacency detection processing apparatus according to an embodiment of the present application;
图12是根据本申请实施例的以太网段标识邻接检测处理装置的结构框图(四);FIG. 12 is a structural block diagram (4) of an Ethernet segment identification adjacency detection processing apparatus according to an embodiment of the present application; FIG.
图13是根据本申请实施例的以太网段标识邻接检测处理装置的结构框图(五)。FIG. 13 is a structural block diagram (5) of an Ethernet segment identification adjacency detection processing apparatus according to an embodiment of the present application.
下文中将参考附图并结合实施例来详细说明本申请。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The present application will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
实施例一 Embodiment 1
本实施例一所提供的一种以太网段标识邻接检测处理方法实施例可 以在网络侧边缘设备PE或者类似的处理装置中执行。以运行在网络侧边缘设备PE上为例,图2是根据本申请实施例的一种以太网段标识邻接检测处理方法的流程图,如图2所示,该流程包括如下步骤:An embodiment of the Ethernet segment identification adjacency detection processing method provided in the first embodiment can be performed in a network side edge device PE or a similar processing device. For example, the method for processing the Ethernet segment identification adjacency detection processing according to the embodiment of the present application is as follows. As shown in FIG. 2, the process includes the following steps:
步骤S202,第一网络侧边缘设备PE检测到以太网分段标识ESI的链路上的ESI邻接检测事件,其中,ESI邻接检测事件用于指示对ESI标识的链路故障进行检测的结果的变化;Step S202, the first network side edge device PE detects an ESI adjacency detection event on the link of the Ethernet segment identifier ESI, where the ESI adjacency detection event is used to indicate a change of the result of detecting the link fault identified by the ESI. ;
步骤S204,第一PE向第二PE发送第一报文,第一报文用于将ESI邻接检测事件通知给第二PE,其中,第一报文中携带有ESI的故障标识信息,故障标识信息用于指示第二PE执行与所述ESI对应的转发状态的更新流程。Step S204: The first PE sends a first packet to the second PE, where the first packet is used to notify the second PE of the ESI neighboring detection event, where the first packet carries the fault identification information of the ESI, and the fault identifier The information is used to instruct the second PE to perform an update process of the forwarding state corresponding to the ESI.
通过上述各个步骤的执行,第一网络侧边缘设备PE检测到以太网分段标识ESI的链路上的ESI邻接检测事件,其中,ESI邻接检测事件用于指示对ESI标识的链路故障进行检测的结果的变化;第一PE向第二PE发送第一报文,第一报文用于将ESI邻接检测事件通知给第二PE,其中,第一报文中携带有ESI的故障标识信息,故障标识信息用于指示第二PE执行与所述ESI对应的转发状态的更新流程;因此,可以解决相关技术中ESI邻接检测事件只能依赖于BGP路由传播,收敛性能很难达到BFD级的性能的问题,达到了在远端PE上完成快速的转发路径切换,减少ES链路故障收敛过程中的丢包时间的效果。Through the execution of the foregoing steps, the first network side edge device PE detects an ESI adjacency detection event on the link of the Ethernet segment identifier ESI, wherein the ESI adjacency detection event is used to indicate that the link fault of the ESI identifier is detected. The first PE sends a first packet to the second PE, where the first packet is used to notify the second PE of the ESI adjacency detection event, where the first packet carries the fault identification information of the ESI. The fault identification information is used to indicate that the second PE performs the update process of the forwarding state corresponding to the ESI. Therefore, the ESI neighbor detection event in the related art can only rely on the BGP route propagation, and the convergence performance is difficult to achieve the performance of the BFD level. The problem is that the fast forwarding path switching is completed on the remote PE, and the packet loss time in the ES link failure convergence process is reduced.
可选地,通过以下方式至少之一,检测到ESI标识的链路上的ESI邻接检测事件:Optionally, the ESI adjacency detection event on the link identified by the ESI is detected by at least one of the following manners:
通过标准第一英里以太网EFM技术的方式;Pass the standard first mile Ethernet EFM technology approach;
通过标准Y.1731传送操作管理维护TP OAM TMS技术的方式;The way to manage and maintain TP OAM TMS technology through standard Y.1731 transport operations;
通过标准连通性故障管理CFM技术的方式;The way to manage CFM technology through standard connectivity faults;
通过检测ESI标识的链路上的物理信号的方式。By detecting the physical signal on the link identified by ESI.
可选地,通过至少以下格式之一,对ESI邻接检测事件进行封装:对等双向转发检测BFD的连锁路径失效报文;传送操作管理维护TP OAM 会话的客户信号失效指示CSF报文;地址解析协议ARP报文;邻居发现协议NDP的邻居请求报文;因特网控制报文协议ICMP报文(例如Ping报文,可参见示例性实施例10);媒体接入控制MAC Ping报文。Optionally, the ESI adjacency detection event is encapsulated by using at least one of the following formats: a peer-to-peer bidirectional forwarding detection BFD chain path failure message; a transmission operation management maintenance TP OAM session client signal failure indication CSF message; address resolution Protocol ARP packet; neighbor discovery protocol NDP neighbor request message; Internet control message protocol ICMP message (for example, ping message, see exemplary embodiment 10); media access control MAC ping message.
可选地,ESI的故障标识信息至少包括以下之一:ESI的部分二进制位(例如,ESI的故障标识信息包括ESI的二进制位中的部分二进制位);ESI对应的运营商骨干桥接骨干MAC地址PBB B-MAC或ESI对应的PBB B-MAC中的部分二进制位;ESI对应的IP地址;ESI对应的ESI标签;用于指示ESI对应的主接口存在故障的编码信息;用于指示ESI的ESI子接口存在故障的编码信息,其中,ESI子接口为ESI对应的主接口的子接口;用于指示ESI标识的链路故障所在节点(例如第一PE)的节点标识信息。Optionally, the fault identification information of the ESI includes at least one of the following: a partial binary bit of the ESI (eg, the fault identification information of the ESI includes a partial binary bit in the ESI bit); the carrier backbone bridge MAC address corresponding to the ESI Partial binary bits in PBB B-MAC corresponding to PBB B-MAC or ESI; IP address corresponding to ESI; ESI label corresponding to ESI; coding information indicating that the main interface corresponding to ESI is faulty; ESI for indicating ESI The sub-interface has the coding information of the fault, where the ESI sub-interface is a sub-interface of the main interface corresponding to the ESI; and the node identifier information is used to indicate the node (for example, the first PE) where the link fault of the ESI is located.
可选地,通过ARP报文对ESI邻接检测事件进行封装包括以下至少之一方式:Optionally, encapsulating the ESI adjacency detection event by using an ARP packet includes at least one of the following methods:
将ARP报文封装到EVPN报文中,其中,EVPN报文按照ESI的ESI子接口所绑定的EVPN实例中的数据报文格式进行封装;The ARP packet is encapsulated into an EVPN packet, where the EVPN packet is encapsulated according to the data packet format in the EVPN instance bound to the ESI sub-interface.
将ARP报文的PDU部分按照ARP探针报文的PDU格式进行封装,其中,PDU中的目标协议地址为指定的IP地址;The PDU part of the ARP packet is encapsulated according to the PDU format of the ARP probe packet, where the target protocol address in the PDU is the specified IP address.
将ARP报文的发送者硬件地址字段设置为携带有ESI的故障标识信息;Set the sender hardware address field of the ARP packet to the fault identification information carrying the ESI.
将ARP报文的操作码设置为预定值;Set the operation code of the ARP packet to a predetermined value;
将ARP报文的发送者协议地址字段设置为携带ESI的故障标识信息;Set the sender protocol address field of the ARP packet to carry the fault identification information of the ESI.
将ARP报文的以太网源MAC设置为第一PE的MAC地址;Set the Ethernet source MAC address of the ARP packet to the MAC address of the first PE.
将ARP报文的以太网源MAC设置为ESI对应的主接口或ESI的ESI子接口的MAC地址;Set the Ethernet source MAC address of the ARP packet to the MAC address of the ESI sub-interface corresponding to the ESI or the ESI.
将ARP报文的以太网源MAC设置为ESI的ESI子接口所绑定的EVPN实例的集成路由桥接IRB接口的MAC地址;Set the Ethernet source MAC address of the ARP packet to the MAC address of the integrated routing bridged IRB interface of the EVPN instance bound to the ESI sub-interface of the ESI.
将ARP报文的以太网源MAC设置为指定值;Set the Ethernet source MAC address of the ARP packet to the specified value.
将ARP报文的以太网目的MAC地址设置为预定值;Set the Ethernet destination MAC address of the ARP packet to a predetermined value.
将ARP报文中目标协议地址设置为携带有ESI的故障标识信息;Set the target protocol address in the ARP packet to the fault identification information carrying the ESI.
将ARP报文中目标硬件地址设置为携带有ESI故障标识信息;Set the target hardware address in the ARP packet to carry the ESI fault identification information.
使用控制字将ARP报文封装到EVPN数据报文中,其中控制字中的信道类型设置为指定值。The control word is used to encapsulate the ARP packet into the EVPN data packet, where the channel type in the control word is set to the specified value.
本申请通过将EVPN技术与操作管理维护映射(Operation Administration and Maintenance mapping,简称为OAM mapping)机制有机结合,使得ES双归接入场景中ESI(Ethernet Segment Identifier)失效收敛过程的丢包时间被大大降低。This application combines the EVPN technology with the Operation Administration and Maintenance Mapping (OAM mapping) mechanism to make the packet loss time of the ESI (Ethernet Segment Identifier) failure convergence process in the ES dual-homing access scenario. reduce.
本实施例一还提供了一种以太网段标识邻接检测处理方法实施例,其可以在网络侧边缘设备PE或者类似的处理装置中执行。以运行在网络侧边缘设备PE上为例,图3是根据本申请实施例的一种以太网段标识邻接检测处理方法的流程图,如图3所示,该流程包括如下步骤:The embodiment 1 further provides an embodiment of an Ethernet segment identification adjacency detection processing method, which can be executed in a network side edge device PE or a similar processing device. For example, the method for processing the Ethernet segment identification adjacency detection processing according to the embodiment of the present application is as follows. As shown in FIG. 3, the process includes the following steps:
步骤S302,第二网络侧边缘设备PE接收第一PE发送的第一报文,其中,第一报文用于将第一PE检测到的以太网分段标识ESI的链路上的ESI邻接检测事件通知给第二PE,ESI邻接检测事件用于指示对ESI标识的链路故障进行检测的结果的变化;其中,第一报文中携带了ESI的故障标识信息,故障标识信息用于指示第二PE执行与所述ESI对应的转发状态的更新流程。Step S302: The second network side edge device PE receives the first packet sent by the first PE, where the first packet is used to detect the ESI adjacency on the link of the Ethernet segment identifier ESI detected by the first PE. The event notification is sent to the second PE, and the ESI adjacency detection event is used to indicate a change in the result of detecting the link failure identified by the ESI; wherein the first packet carries the fault identification information of the ESI, and the fault identifier information is used to indicate the The second PE performs an update process of the forwarding state corresponding to the ESI.
通过上述各个步骤的执行,第二网络侧边缘设备PE接收第一PE发送的第一报文,其中,第一报文用于将第一PE检测到的以太网分段标识ESI的链路上的ESI邻接检测事件通知给第二PE,ESI邻接检测事件用于指示对ESI标识的链路故障进行检测的结果的变化;其中,第一报文中携带了ESI的故障标识信息,故障标识信息用于指示第二PE执行与所述ESI对应的转发状态的更新流程;采用上述技术方案,可以解决相关技术中ESI邻接检测事件只能依赖于BGP路由传播,收敛性能很难达到BFD级的性能的问题,达到了在远端PE上完成快速的转发路径切换,减少ES 链路故障收敛过程中的丢包时间的效果。The second network side edge device PE receives the first packet sent by the first PE, where the first packet is used to detect the Ethernet segment identifier detected by the first PE on the link of the ESI. The ESI adjacency detection event is notified to the second PE, and the ESI adjacency detection event is used to indicate a change in the result of detecting the link failure identified by the ESI; wherein the first packet carries the fault identification information of the ESI, and the fault identification information An update procedure for instructing the second PE to perform a forwarding state corresponding to the ESI. The foregoing technical solution can solve the problem that the ESI adjacency detection event in the related art can only rely on BGP route propagation, and the convergence performance is difficult to achieve the performance of the BFD level. The problem is that the fast forwarding path switching is completed on the remote PE, and the packet loss time in the ES link failure convergence process is reduced.
可选地,ESI邻接检测事件至少通过以下格式之一进行封装:对等双向转发检测BFD的连锁路径失效(Concatenated Path Down)报文;传送操作管理维护TP OAM会话的客户信号失效指示CSF报文;地址解析协议ARP报文;邻居发现协议NDP的邻居请求报文;ICMP报文;媒体接入控制MAC Ping报文。Optionally, the ESI adjacency detection event is encapsulated by at least one of the following formats: a peer-to-peer bidirectional forwarding detection BFD CFD, a CEC message, and a CSF message Address resolution protocol ARP packet; neighbor discovery protocol NDP neighbor request message; ICMP message; media access control MAC ping message.
可选地,ESI的故障标识信息至少包括以下之一:ESI的部分二进制位;ESI对应的PBB B-MAC或ESI对应的PBB B-MAC中的部分二进制位;ESI对应的IP地址;ESI对应的ESI标签;用于指示ESI对应的主接口存在故障的编码信息;用于指示ESI的ESI子接口存在故障的编码信息,其中,ESI子接口为ESI对应的主接口的子接口;用于指示ESI标识的链路故障所在节点的节点标识信息。Optionally, the fault identification information of the ESI includes at least one of: a partial binary bit of the ESI; a PBB B-MAC corresponding to the ESI or a partial binary bit in the PBB B-MAC corresponding to the ESI; an IP address corresponding to the ESI; and an ESI corresponding The ESI tag is used to indicate the coding information of the main interface corresponding to the ESI; the coding information for indicating that the ESI sub-interface of the ESI is faulty, wherein the ESI sub-interface is a sub-interface of the main interface corresponding to the ESI; The node identification information of the node where the link fault of the ESI is located.
可选地,ESI邻接检测事件通过ARP报文进行封装至少包括以下之一:Optionally, the ESI adjacency detection event is encapsulated by the ARP packet, and at least one of the following is included:
ARP报文被封装到按照ESI的ESI子接口所绑定的EVPN实例中的数据报文格式封装的EVPN报文中;The ARP packet is encapsulated in an EVPN packet encapsulated in the data packet format of the EVPN instance bound to the ESI sub-interface.
ARP报文的PDU部分被按照ARP探针报文的PDU格式进行封装,其中,PDU中的目标协议地址为指定的IP地址;The PDU part of the ARP packet is encapsulated according to the PDU format of the ARP probe packet, where the target protocol address in the PDU is the specified IP address.
ARP报文的发送者硬件地址字段携带有ESI的故障标识信息;The sender hardware address field of the ARP packet carries the fault identification information of the ESI.
ARP报文的操作码为预定值;The operation code of the ARP packet is a predetermined value.
ARP报文的发送者协议地址字段携带有ESI的故障标识信息;The sender protocol address field of the ARP packet carries the fault identification information of the ESI.
ARP报文的以太网源MAC为第一PE的MAC地址;The Ethernet source MAC address of the ARP packet is the MAC address of the first PE.
ARP报文的以太网源MAC为ESI对应的主接口或ESI的ESI子接口的MAC地址;The Ethernet source MAC address of the ARP packet is the MAC address of the ESI sub-interface corresponding to the ESI or the ESI sub-interface.
ARP报文的以太网源MAC为ESI的ESI子接口所绑定的EVPN实例的集成路由桥接IRB接口的MAC地址;The Ethernet source MAC address of the ARP packet is the MAC address of the integrated routing bridge of the EVPN instance bound to the ESI sub-interface of the ESI.
ARP报文的以太网源MAC为指定值。The Ethernet source MAC address of the ARP packet is the specified value.
可选地,执行与ESI对应的转发状态的更新流程至少包括以下之一:改变ESI的ESI子接口所对应的指定转发/非指定转发/备份指定转发(DF/NDF/BDF)状态(符号“/”表示“或”,即指定转发或非指定转发或备份指定转发状态,DF或NDF或BDF状态);改变ESI对应的转发信息集合中相应下一跳信息的状态。Optionally, the update process of performing the forwarding state corresponding to the ESI includes at least one of the following: changing the specified forwarding/non-designated forwarding/backup designated forwarding (DF/NDF/BDF) state corresponding to the ESI sub-interface of the ESI (symbol “ /" indicates "or", that is, specifies the forwarding or non-designated forwarding or backup of the specified forwarding state, DF or NDF or BDF state); changes the state of the corresponding next hop information in the forwarding information set corresponding to ESI.
本申请通过将EVPN技术与操作管理维护映射(Operation Administration and Maintenance mapping,简称为OAM mapping)机制或ARP代理机制有机结合,使得ES双归接入场景中ESI(Ethernet Segment Identifier)失效收敛过程的丢包时间被大大降低。This application combines the EVPN technology with the Operation Administration and Maintenance Mapping (OAM mapping) mechanism or the ARP proxy mechanism to make the ES EI (Ethernet Segment Identifier) failure convergence process in the scenario. The package time is greatly reduced.
下面结合附图1对本申请的实施例一作进一步的详细描述: Embodiment 1 of the present application is further described in detail below with reference to FIG. 1 :
在PE1、PE2和PE3部署一条基本的VXLAN EVPN业务,其中CE1双归接入到PE1和PE2,对应ESI为ESI1,采用all-active模式,CE2单归接入PE3。使得RFC7432所定义的EVPN基本功能可以正常运作。这一步完成以后,EVPN控制面模块和EVPN转发表管理模块也就同时部署完成了。A basic VXLAN EVPN service is deployed on PE1, PE2, and PE3. CE1 is dual-homed to PE1 and PE2. The corresponding ESI is ESI1, and all-active mode is adopted. CE2 is connected to PE3. Enables the basic EVPN functions defined in RFC7432 to function properly. After this step is completed, the EVPN control plane module and the EVPN forwarding table management module are also deployed at the same time.
在PE1与CE1之间的链路上部署ESI邻接检测模块,在PE1上部署ESI状态映射模块,在PE3上部署ESI状态解映射模块,并且在PE1与PE3之间部署ESI状态变化传播快速通道。其中,ESI邻接检测模块可以内置一个link BFD、EFM、CFM等检测模块,具体可以通过以下方式部署ESI邻接检测模块:在链路上部署标准的EFM技术,ESI邻接检测模块可以使EFM模块将链路的状态变化随时输入给ESI状态映射模块。The ESI adjacency detection module is deployed on the link between PE1 and CE1, the ESI state mapping module is deployed on PE1, the ESI state demapping module is deployed on PE3, and the ESI state change propagation fast channel is deployed between PE1 and PE3. The ESI adjacency detection module can be configured with a link BFD, EFM, CFM, and the like. The ESI adjacency detection module can be deployed in the following manner: a standard EFM technology is deployed on the link, and the ESI adjacency detection module can enable the EFM module to chain. The state change of the road is input to the ESI state mapping module at any time.
部署ESI状态变化传播快速通道具体是:在PE1与PE3之间部署一条经过扩展的peer BFD会话,这两个结点上所有ESI的状态变化传播都以这条peer BFD会话作为快速通道,而不是每个ESI一条BFD会话。The deployment of the ESI state change propagation fast channel is as follows: an extended peer BFD session is deployed between PE1 and PE3. The state change propagation of all ESIs at the two nodes uses the peer BFD session as a fast channel instead of One BFD session per ESI.
以PE1与CE1之间的链路物理失效为例,处理步骤如下:Take the physical failure of the link between PE1 and CE1 as an example. The processing steps are as follows:
步骤1,PE1上的ESI邻接检测模块检测到ESI1上的链路故障,包括物理链路故障;Step 1: The ESI adjacency detection module on the PE1 detects a link fault on the ESI1, including a physical link fault.
步骤2,PE1上的ESI邻接检测模块将ESI1上的故障通知到ESI状态映射模块;Step 2: The ESI adjacency detection module on the PE1 notifies the ESI status mapping module of the fault on the ESI1;
步骤3,PE1上的ESI状态映射模块将ESI1上的故障编码为ESI OAM Mapping Channel Sub-TLV格式,并通知到ESI状态变化传播快速通道,具体是:PE1上的ESI状态映射模块接收检测状态变化事件,并确定对应的ESI,本例为所述ESI1,将ESI1的状态变化事件,以图4所示的ESI OAM Mapping Channel Sub-TLV格式封装好,并通知ESI状态变化传播快速通道。其中,ESI字段填ESI1,Ethernet Tag ID(即以太标记ID)字段填0xFFFFFFFF表示传递的是ESI1的全局状态(填其它非0值表示传递的是ESI1上指定Ethernet Tag的状态);ESI Adjacent PE Address(即ESI邻接PE地址)字段填本结点对外发布的ESI1的EAD-ES路由时所用的下一跳地址;State(即状态)字段填1表示Down,填3表示UP。需要说明的是,图4中的ESI(继续)字段即ESI(continue.)字段。Step 3: The ESI state mapping module on PE1 encodes the fault on ESI1 into the ESI OAM Mapping Channel Sub-TLV format, and notifies the ESI state change propagation fast channel. Specifically, the ESI state mapping module on PE1 receives the detection state change. The event, and determine the corresponding ESI, in this case, the ESI1, encapsulates the state change event of ESI1, encapsulates it in the ESI OAM Mapping Channel Sub-TLV format shown in FIG. 4, and notifies the ESI state change propagation fast channel. The ESI field is filled with ESI1, and the Ethernet Tag ID field is filled with 0xFFFFFFFF to indicate that the global state of ESI1 is passed (filling other non-zero values indicates that the specified Ethernet Tag is passed on ESI1); ESI Adjacent PE Address The ESI Adjacency PE Address field fills in the next hop address used by the node to issue EAD-ES routes for ESI1; the State field is 1 for Down and 3 for UP. It should be noted that the ESI (continue) field in FIG. 4 is an ESI (continue.) field.
步骤4,PE1与PE3之间的peer BFD会话使用一个新的版本号,即5,以区别于RFC5880定义的标准BFD会话;除了版本号不同外,所述BFD会话的报文格式及用法与标准BFD会话完全相同;peer BFD会话的BFD控制报文新增了一个Diag码,即27,Diag码为27的BFD控制报文不体现该报文所属BFD会话所检测的对象本身的状态,而是只充当通用OAM mapping信道;OAM Mapping信道的净荷以Sub-TLV的格式填写,如图5所示,OAM Mapping信道的净荷在BFD控制报文中以Generic OAM Mapping Channel Sub-TLV的形式存在;PE1上的ESI状态变化传播快速通道将ESI状态映射模块封装好的Sub-TLV通过peer BFD会话的通用OAM Mapping信道传播到PE3。需要说明的,图5中的状态字段即Sta字段,检测时间倍数字段即Detect Mult字段,自身识别符字段即My Discriminator字段,对方识别符字段即Your Discriminator字段,需要的TX间隔最小值字段即Desired Min TX Interval字段,要求的RX间隔最小值字段即Required Min RX Interval。Step 4: The peer BFD session between PE1 and PE3 uses a new version number, that is, 5, to distinguish it from the standard BFD session defined by RFC 5880. The format, usage, and standard of the BFD session are different except the version number. The BFD session is the same. The BFD control packet in the peer BFD session adds a Diag code, that is, 27, and the BFD control packet whose Diag code is 27 does not reflect the state of the object itself detected by the BFD session to which the packet belongs. The payload of the OAM Mapping channel is filled in the Sub-TLV format. As shown in Figure 5, the payload of the OAM Mapping channel exists in the BFD control packet in the form of Generic OAM Mapping Channel Sub-TLV. The ESI state change propagation fast channel on PE1 propagates the Sub-TLV encapsulated by the ESI state mapping module to PE3 through the general OAM Mapping channel of the peer BFD session. It should be noted that the status field in FIG. 5 is the Sta field, the detection time multiple field is the Detect Mult field, the self identifier field is the My Discriminator field, the other identifier field is the Your Discriminator field, and the required minimum value of the TX interval field is Desired. Min TX Interval field, the required RX interval minimum field is Required Min RX Interval.
步骤5,在PE3上,peer BFD会话将通过Diag字段为27识别出的BFD控制报文中携带的通用OAM mapping信道的净荷部分输入给ESI状态解映射模块。对于本例来说,净荷格式就是ESI OAM Mapping Channel Sub-TLV格式,但BFD会话并不需要解析净荷格式,而是直接交给ESI状态解映射模块解析。Step 5: On the PE3, the peer BFD session inputs the payload portion of the general OAM mapping channel carried in the BFD control packet identified by the Diag field to the ESI state demapping module. For this example, the payload format is the ESI OAM Mapping Channel Sub-TLV format, but the BFD session does not need to parse the payload format, but is directly parsed by the ESI state demapping module.
步骤6,PE3上的ESI状态解映射模块接收ESI状态变化传播快速通道输入的OAM Mapping Channel Sub-TLV,解析出相应的ESI和Ethernet Tag ID,确定相应的EAD-ES路由或EAD-EVI路由,本例为ESI1的EAD-ES路由,然后以EAD-ES路由撤销的名义通知EVPN转发表管理模块,具体是:从OAM Mapping Sub-TLV中解析出ESI1的状态,Up或Down;Step 6: The ESI state demapping module on the PE3 receives the OAM Mapping Channel Sub-TLV input by the ESI state change propagation fast channel, parses the corresponding ESI and Ethernet Tag ID, and determines the corresponding EAD-ES route or EAD-EVI route. This example is the EAD-ES route of the ESI1, and then the EVPN forwarding table management module is notified in the name of the EAD-ES route revocation. Specifically, the state of the ESI1 is resolved from the OAM Mapping Sub-TLV, Up or Down;
若ESI1状态变为Down(故障),则与EVPN控制面输入ESI1对应的EAD-ES路由撤销事件时使用同一API接口输入给EVPN转发表管理模块;若ESI1状态变为Up,则不影响EVPN转发表管理模块;因此,EVPN转发表管理模块只需要支持标准的RFC7432功能就能够自动支持本功能;If the ESI1 status changes to Down, the EAD-ES route revocation event corresponding to the EVPN control plane input ESI1 is input to the EVPN forwarding table management module using the same API interface. If the ESI1 status is Up, the EVPN forwarding is not affected. Publish the management module; therefore, the EVPN forwarding table management module can automatically support this function only by supporting the standard RFC7432 function;
步骤7,PE3上的EVPN转发表管理模块以为收到了EAD-ES路由撤销事件,按RFC7432规定处理,结果就导致了ESI1上的转发路径切换。Step 7: The EVPN forwarding table management module on the PE3 considers that the EAD-ES route revocation event is received and is processed according to the RFC7432, and the result is that the forwarding path is switched on the ESI1.
步骤8,与此同时,BGP EVPN控制面按固有流程也在进行ESI1转发成员列表的收敛并最终得以完成,但在步骤7完成时,流量已经不再丢包,从而大副度减少了ESI收敛过程中的丢包时间。并且,EVPN控制面模块也会向EVPN转发表管理模块下发一条真正的EAD路由撤销,此时,由于步骤7的原因,EVPN转发表管理模块已经没有相应ESI的相应转发路径,可以直接返回。Step 8: At the same time, the BGP EVPN control plane also performs the convergence of the ESI1 forwarding member list according to the inherent process, and finally completes the traffic. However, when the step 7 is completed, the traffic is no longer lost, thereby greatly reducing the ESI convergence. The time of packet loss in the process. In addition, the EVPN control plane module also sends a true EAD route revocation to the EVPN forwarding table management module. At this time, due to the reason of step 7, the EVPN forwarding table management module does not have a corresponding forwarding path of the corresponding ESI, and can directly return.
其中,在步骤4中,peer BFD会话将ESI状态映射模块输入的ESI OAM Mapping Channel Sub-TLV封装成BFD控制报文,其中Vers字段取值为5,Diag字段取值为27,Generic OAM Mapping Channel Sub-TLV字段取值整体拷贝所述ESI OAM Mapping Channel Sub-TLV,其它字段取值与RFC5880中Diag字段取值为6时的同名字段的取值完全相同。只有ESI 状态发生变化时,才需要在peer BFD会话上发布ESI相关的报文,不需要周期性发送ESI相关的报文(换句话说,不需要每ESI建立一条BFD会话),常态下,peer BFD会话上没有ESI相关的报文。In the step 4, the peer BFD session encapsulates the ESI OAM Mapping Channel Sub-TLV input by the ESI state mapping module into a BFD control packet, where the Vers field has a value of 5 and the Diag field has a value of 27, and the Generic OAM Mapping Channel The value of the Sub-TLV field is the same as that of the ESI OAM Mapping Channel Sub-TLV. The values of other fields are the same as those of the same-named field when the value of the Diag field in the RFC5880 is 6. Only when the ESI status changes, the ESI-related packets need to be advertised on the peer BFD session. You do not need to periodically send ESI-related packets. In other words, you do not need to establish a BFD session for each ESI. There are no ESI-related packets on the BFD session.
在步骤5中,OAM Mapping信道的净荷以Sub-TLV的格式填写,BFD会话对净荷内容不解析,而是直接交给ESI状态解映射模块解析;如图5所示,OAM Mapping信道的净荷在BFD控制报文中以Generic OAM Mapping Channel Sub-TLV的形式存在。In step 5, the payload of the OAM Mapping channel is filled in the Sub-TLV format, and the BFD session does not parse the payload content, but is directly submitted to the ESI state demapping module for parsing; as shown in FIG. 5, the OAM Mapping channel The payload exists in the form of the Generic OAM Mapping Channel Sub-TLV in the BFD control packet.
通过上述步骤,由于在ESI邻接检测事件传播机制的基础上,与OAM mapping技术有机结合,使得本地的ESI邻接检测事件可以通过ESI状态变化传播快速通道先于EAD路由到达远端PE,从而在远端PE上完成快速的转发路径切换,减少ES链路故障收敛过程中的丢包时间,解决了相关技术中ESI邻接检测事件只能依赖于BGP路由传播,收敛性能很难达到BFD级的性能的问题。Through the above steps, based on the ESI adjacent detection event propagation mechanism, combined with the OAM mapping technology, the local ESI adjacency detection event can propagate through the ESI state change fast channel prior to the EAD route to the remote PE, thereby being far away. The fast forwarding path switching is performed on the end PE to reduce the packet loss time in the ES link failure convergence process. The ESI neighbor detection event in the related art can only rely on BGP route propagation, and the convergence performance is difficult to achieve the performance of the BFD level. problem.
上述处理步骤还可以进一步包括以下步骤:The above processing steps may further include the following steps:
步骤9,PE1上ESI1的邻接链路恢复UP时,PE1也可以向通用OAM Mapping信道中发送ESI1的链路UP的消息,但是,通知ESI邻接链路变为UP的ESI OAM Mapping消息不会通知给EVPN转发表管理模块。同时,PE3上的EVPN控制面会重新下发ESI1对应的EAD-ES路由的生效,此时,EVPN转发表管理模块不会再受之前通知ESI1链路DOWN的OAM Mapping消息的影响。In step 9, when the adjacent link of the ESI1 on the PE1 is restored to the UP, the PE1 may also send the message of the link UP of the ESI1 to the common OAM Mapping channel. However, the ESI OAM Mapping message notifying that the ESI neighboring link becomes UP does not notify. Forward the EVPN forwarding table management module. At the same time, the EVPN control plane on the PE3 will re-issue the EAD-ES route corresponding to the ESI1. In this case, the EVPN forwarding table management module will not be affected by the OAM mapping message that was previously notified to the ESI1 link.
步骤10,peer BFD会话中断,PE3上EVPN转发表管理模块不受任何影响,并且,在peer BFD会话中断期间,EVPN转发表管理模块只需要受EVPN控制面模块影响。Step 10: The peer BFD session is interrupted, and the EVPN forwarding table management module on PE3 is not affected. During the peer BFD session interruption, the EVPN forwarding table management module only needs to be affected by the EVPN control plane module.
步骤11,peer BFD会话恢复后,若PE1上ESI1的邻接链路状态为UP,PE1也可以向通用OAM Mapping信道中发送ESI1的链路UP的消息,但是,通知ESI邻接链路变为UP的ESI OAM Mapping消息对于EVPN转发表管理模块没有任何影响。Step 11: After the peer BFD session is restored, if the neighboring link status of ESI1 on PE1 is UP, PE1 may also send a message of the link UP of ESI1 to the general OAM Mapping channel, but notify the ESI that the adjacent link becomes UP. The ESI OAM Mapping message has no effect on the EVPN forwarding table management module.
可选地,PE1向PE3发送第一报文,第一报文用于将ESI邻接检测事件通知给PE3。Optionally, the PE1 sends a first packet to the PE3, where the first packet is used to notify the PE3 of the ESI adjacency detection event.
本领域的技术人员都可以理解,本申请不仅可以实施在all-active模式的ESI上,也可以实施在single-active模式的ESI上。OAM Mapping信道不仅可以使用peer BFD,也可以使用TE BFD或TP OAM等检测技术。ESI邻接检测不仅可以使用EFM,也可以使用CFM等链路检测技术。Those skilled in the art can understand that the present application can be implemented not only on the ESI in the all-active mode but also on the ESI in the single-active mode. The OAM mapping channel can use not only peer BFD but also TE BFD or TP OAM. ESI adjacency detection can use not only EFM but also link detection techniques such as CFM.
示例性实施例1 Exemplary embodiment 1
在本示例性实施例1中提供了一种以太网段标识邻接检测事件传输和处理方法,下面结合图6对示例性实施例1作进一步的详细描述:如图6所示,在PE1、PE2和PE3部署一条基本的PBB EVPN业务,其中CE1双归接入到PE1和PE2,对应ESI为ESI1,对应的B-MAC为BM1,采用all-active模式,CE2单归接入PE3。使得RFC7623所定义的PBB EVPN基本功能可以正常运作。这一步完成以后,EVPN控制面模块和EVPN转发表管理模块也就同时部署完成了。An Ethernet segment identification adjacency detection event transmission and processing method is provided in the first exemplary embodiment. The exemplary embodiment 1 is further described in detail below with reference to FIG. 6. As shown in FIG. 6, at PE1 and PE2. A basic PBB EVPN service is deployed with PE3. CE1 is dual-homed to PE1 and PE2. The corresponding ESI is ESI1, and the corresponding B-MAC is BM1. All-active mode is used. CE2 is connected to PE3. The basic functions of PBB EVPN defined by RFC7623 can be operated normally. After this step is completed, the EVPN control plane module and the EVPN forwarding table management module are also deployed at the same time.
为描述方便起见,不失一般性,假定在PE1、PE2和PE3建立了20条PBB EVPN业务,其PBB I组件实例分别记为zteI1、zteI2……zteI20,其中,zteI1、zteI2……zteI10对应的PBB B组件实例均为zteB1,zteI11、zteI12……zteI20对应的PBB B组件实例分均为zteB2。其中,不失一般性,假设,ESI1在这些I组件实例中均是PE1上为指定转发DF角色,PE2上为非指定转发NDF角色。For the convenience of description, without loss of generality, it is assumed that 20 PBB EVPN services are established in PE1, PE2 and PE3, and their PBB I component instances are respectively recorded as zteI1, zteI2, ... zteI20, where zteI1, zteI2, ... zteI10 are corresponding. The PBB B component instances are all zteB1, zteI11, zteI12...zteI20 corresponding PBB B component instances are all zteB2. It is assumed that the ESI1 is the designated forwarding DF role on PE1 and the non-designated forwarding NDF role on PE2.
为描述方便起见,不失一般性,实现PE1到PE2的ESI邻接检测事件传输的实施方案如下:在PE1与CE1之间的链路上部署ESI邻接检测模块,在PE1上部署ESI状态映射模块,在PE2上部署ESI状态解映射模块,并且在PE1到PE2之间部署ESI状态变化传播快速通道。For the convenience of description, without loss of generality, the implementation of the ESI adjacency detection event transmission of PE1 to PE2 is as follows: an ESI adjacency detection module is deployed on the link between PE1 and CE1, and an ESI state mapping module is deployed on PE1. The ESI state demapping module is deployed on PE2, and the ESI state change propagation fast channel is deployed between PE1 and PE2.
部署ESI邻接检测模块具体是:在ESI1对应的主接口的物理链路上 可以不部署任何端口状态检测技术(如EFM、TP OAM TMS等),但要检测该链路的物理信号,ESI邻接检测模块可以将该链路的物理状态变化随时输入给ESI状态映射模块。The ESI adjacency detection module is specifically configured: no port state detection technology (such as EFM, TP OAM TMS, etc.) may be deployed on the physical link of the primary interface corresponding to the ESI1, but the physical signal of the link is detected, and the ESI adjacency detection is performed. The module can input the physical state changes of the link to the ESI state mapping module at any time.
部署ESI状态映射模块具体是:在收到ESI状态映射模块输入的ESI邻接检测事件时,生成一个ARP探针(即ARP Probe)报文,所述ARP Probe报文的目标协议地址字段填写为指定IP地址,发送者硬件地址字段填写为所述ESI邻接检测事件对应的ESI的ESI标识信息,然后将所述ARP Probe报文递交给ESI状态变化传播快速通道;其中所述ESI标识信息就是所述ESI对应的PBB B-MAC。The ESI state mapping module is configured to: generate an ARP probe (ARP Probe) packet, and fill in the target protocol address field of the ARP Probe packet to specify the ESI neighboring detection event. The IP address, the sender hardware address field is filled in as the ESI identification information of the ESI corresponding to the ESI adjacency detection event, and then the ARP Probe message is delivered to the ESI state change propagation fast channel; wherein the ESI identification information is the ESI corresponds to PBB B-MAC.
部署ESI状态变化传播快速通道具体是:在PE1上,对于所述ESI对应的主接口的每个子接口,将所述ARP Probe报文复制一份,并在该子接口所绑定的I组件实例中广播该ARP Probe报文,发送前需要给该ARP Probe报文添加外层(即紧邻ARP层的外层)以太头,其中,所添加的外层以太头源MAC为指定MAC,目的MAC为全FF;值得注意的是,最终广播出去的ARP Probe报文的外层以太头之外的封装将具有与在该EVPN实例中广播BUM数据报文时相同的格式;在PE2上,ESI状态变化传播快速通道将从网络侧收到的指定特征格式的ARP Probe报文识别出来,并递交给ESI状态解映射模块,其它ARP Probe报文仍按现有技术处理;其中,所述指定特征格式的ARP Probe报文,即目标协议地址为指定IP地址的ARP Probe报文,其中,所述指定IP地址,与所述ESI状态映射模块中所述的指定IP地址取值相同。The deployment of the ESI state change propagation fast channel is specifically: on PE1, for each sub-interface of the primary interface corresponding to the ESI, copy the ARP Probe packet, and the I component instance bound to the sub-interface The ARP probe packet is broadcasted. The outer layer (that is, the outer layer of the ARP layer) is added to the ARP probe packet. The destination MAC address is the specified MAC address and the destination MAC address is All FFs; it is worth noting that the outer layer of the ARP probe packet that is finally broadcast out will have the same format as the BUM data packet in the EVPN instance; on PE2, the ESI state changes. The ARP probe packet of the specified feature format is received from the network side and is forwarded to the ESI state demapping module. The other ARP probe packets are still processed according to the prior art. The ARP probe packet, that is, the ARP probe packet whose destination protocol address is the specified IP address, wherein the specified IP address is the same as the value specified by the specified IP address in the ESI state mapping module.
部署ESI状态解映射模块具体是:从ESI状态变化传播快速通道收到ARP报文,读出其发送者硬件地址字段的内容,并解读为B-MAC地址,然后将该B-MAC地址转换为对应的ESI对应的主接口,并将该ESI以及接收所述ARP Probe报文的I组件实例的标识符递交给所述ESI转发表管理模块。The ESI state demapping module is configured to: receive an ARP packet from the ESI state change propagation fast channel, read the content of the sender hardware address field, and interpret it as a B-MAC address, and then convert the B-MAC address into Corresponding ESI corresponding to the primary interface, and submitting the ESI and an identifier of the I component instance that receives the ARP Probe message to the ESI forwarding table management module.
部署ESI转发表管理模块具体是:收到所述ESI状态解映射模块输入 的ESI主接口和I组件实例标识符之后,找出该主接口上的绑定了该I组件实例的子接口,并将其设置为DF状态;The ESI forwarding table management module is configured to: after receiving the ESI main interface and the I component instance identifier input by the ESI state demapping module, find a sub-interface bound to the I component instance on the main interface, and Set it to the DF state;
以PE1与CE1之间的链路物理失效为例,流程部分的处理步骤如下:Take the physical failure of the link between PE1 and CE1 as an example. The processing steps in the process part are as follows:
步骤1,PE1上的ESI邻接检测模块检测到ESI1上的链路故障,包括物理链路故障;Step 1: The ESI adjacency detection module on the PE1 detects a link fault on the ESI1, including a physical link fault.
步骤2,PE1上的ESI邻接检测模块将ESI1上的故障通知到ESI状态映射模块;Step 2: The ESI adjacency detection module on the PE1 notifies the ESI status mapping module of the fault on the ESI1;
步骤3,PE1上的ESI状态映射模块将ESI1上的故障编码为指定格式的ARP Probe报文;Step 3: The ESI state mapping module on the PE1 encodes the fault on the ESI1 into an ARP Probe packet in a specified format.
步骤4,PE1上的ESI状态变化传播快速通道在ESI1所接入的每个I组件实例中广播该ARP Probe报文;Step 4: The ESI state change propagation fast channel on the PE1 broadcasts the ARP probe packet in each I component instance accessed by the ESI1.
步骤5,在PE2上,ESI状态变化传播快速通道将收到的指定格式的ARP Probe报文递交给ESI状态解映射模块;Step 5: On the PE2, the ESI state change propagation fast channel delivers the received ARP Probe packet of the specified format to the ESI state demapping module.
步骤6,在PE2上,ESI状态解映射模块通知转发表管理模块ESI1在相应I组件实例(以zte1实例为例)中发生了远端故障;值得注意的是,在本示例性实施例中,全部20个I组件实例上都会相继收到ESI1发生了远端故障的通知; Step 6, on the PE2, the ESI state demapping module notifies the forwarding table management module ESI1 that a remote fault has occurred in the corresponding I component instance (taking the zte1 instance as an example); it is noted that, in the present exemplary embodiment, All 20 I component instances will receive a notification that a remote fault has occurred in ESI1.
步骤7,在PE2上,EVPN转发表管理模块将ESI1接入到zte1实例中所用的子接口设置为DF状态; Step 7, on the PE2, the EVPN forwarding table management module sets the sub-interface used by the ESI1 to the zte1 instance to be in the DF state;
步骤8,与此同时,BGP EVPN控制面按RFC7623固有流程也在进行ESI1的DF选举收敛并最终得以完成,但在步骤7完成时,PE3广播给PE2的广播流量已经不再被PE2丢弃,从而大副度减少了在ESI收敛过程中由于控制面的DF选举收敛慢而导致的丢包时间。Step 8: At the same time, the BGP EVPN control plane is also convening the DF election of the ESI1 according to the inherent process of the RFC7623 and is finally completed. However, when the step 7 is completed, the broadcast traffic broadcasted by the PE3 to the PE2 is no longer discarded by the PE2. The degree of loss reduces the packet loss time caused by the slow convergence of the DF election of the control plane during the ESI convergence process.
通过上述步骤,通过与ARP Probe技术和ARP代理机制结合,使得本地的ESI邻接检测事件可以通过ARP Probe报文先于RT-4路由到达远端PE,从而在远端PE上完成快速的DF/NDF状态切换,减少DF选举收 敛过程中的丢包时间,解决了相关技术中ESI邻接检测事件只能依赖于BGP路由传播,DF选举收敛性能很难达到BFD级的性能的问题;因为ARP报文在EVPN的ARP代理机制中本身是需要解析的(可参见RFC7432Section 10),采用ARP Probe报文作为ESI临接检测事件的传输载体而不是其它报文,同时避免了在EVPN转发流程中引入额外的控制报文解析,也避免了引入需要周期性交互保活的检测会话,因为ARP Probe报文只需要在ESI故障时临时插入即可,同时,ARP Probe报文即使泄露到CE,也不会对CE间的ARP交互造成严重污染,这使得在异厂家对接环境中此功能可以开启。Through the above steps, by combining with the ARP Probe technology and the ARP proxy mechanism, the local ESI adjacency detection event can reach the remote PE through the ARP probe packet before the RT-4 route, thereby completing the fast DF/ on the remote PE. The NDF state is switched to reduce the packet loss time in the DF election convergence process. The ESI neighbor detection event in the related art can only rely on BGP route propagation. The DF election convergence performance is difficult to achieve the BFD performance. In the ERP ARP proxy mechanism, it needs to be resolved (see RFC7432Section 10). The ARP probe packet is used as the transmission carrier for the ESI proximity detection event instead of other packets, and the extra scheme is introduced in the EVPN forwarding process. Controlling packet parsing also avoids the need to introduce a test session that requires periodic interaction and keep-alive. Because ARP probe packets need to be temporarily inserted in the event of an ESI fault, even if the ARP probe packet is leaked to the CE, The ARP interaction between CEs causes serious pollution, which makes this feature open in a different vendor docking environment.
值得注意的是,也可以采用如下格式的扩展ARP报文而不是ARP Probe报文来传输ESI邻接检测事件:所述ARP报文的操作码为新增取值,记为TBD1;取10字节ESI值作为ESI1的ESI标识信息,将所述ESI标识信息的前6字节填入所述ARP报文的发送者硬件地址字段中,将所述ESI标识信息的后4字节填入所述ARP报文的目标协议地址字段中,其它字段与所述ARP Probe报文填法一致;这种扩展ARP报文记为第一类ARP报文。It is noted that the ACS adjacency detection event may be transmitted by using the extended ARP packet in the following format instead of the ARP probe packet: the operation code of the ARP packet is newly added, and is recorded as TBD1; The ESI value is used as the ESI identification information of the ESI1, and the first 6 bytes of the ESI identification information are filled in the sender hardware address field of the ARP packet, and the last 4 bytes of the ESI identification information are filled in the In the target protocol address field of the ARP packet, the other fields are the same as the ARP probe packet. The extended ARP packet is recorded as the first type of ARP packet.
值得注意的是,也可以采用如下格式的扩展ARP报文而不是第一类扩展ARP报文传输ESI邻接检测事件:与第一类扩展ARP报文相比,它将所述ESI标识信息的前4字节填入其发送者协议地址字段,后6字节填入目标硬件地址字段,其目标协议地址字段和发送者硬件地址字段均填指定值,其它字段与第一类扩展ARP报文相同;这种扩展ARP报文记为第二类扩展ARP报文。It should be noted that the extended ARP packet in the following format may be used instead of the first type of extended ARP packet transmission ESI adjacency detection event: compared with the first type of extended ARP packet, the ESI identification information is 4 bytes are filled in its sender protocol address field, and the last 6 bytes are filled in the target hardware address field. The target protocol address field and the sender hardware address field are filled in with the specified values. The other fields are the same as the first type of extended ARP packets. This extended ARP packet is recorded as the second type of extended ARP packet.
值得注意的是,无论ESI状态变化快速传播通道采用所述ARP Probe报文、第一类扩展ARP报文还是第二类扩展ARP报文,其外层(即紧邻ARP层的外层)以太头的源MAC都可以填写为如下任一取值:指定值、所述ESI1对应的主接口的MAC地址,所述ESI1对应的主接口的子接口的MAC地址,所述ESI1对应的主接口的子接口绑定的EVPN实例绑定 的IRB接口的MAC地址,所述ESI1故障所在结点的机架MAC地址;其外层以太头的目的MAC都可以填写为如下任一取值:指定值,广播MAC地址。It is worth noting that the ESI state change fast propagation channel uses the ARP Probe packet, the first type of extended ARP packet, or the second type of extended ARP packet, and the outer layer (ie, the outer layer adjacent to the ARP layer) is the Ethernet header. The source MAC address can be filled in as follows: a specified value, a MAC address of the primary interface corresponding to the ESI1, a MAC address of a sub-interface corresponding to the ESI1, and a sub-interface corresponding to the ESI1 MAC address of the IRB interface bound to the EVPN instance bound to the interface. The MAC address of the node where the ESI1 fault is located. The destination MAC address of the outer Ethernet header can be filled in any of the following values: specified value, broadcast. MAC address.
值得注意的是,ESI状态变化快速传播通道发送端采用第一类或第二类扩展ARP报文传输ESI邻接检测事件时,接收端结点也需要进行相应的解码调整,具体地,其对所述指定特征格式ARP报文的解释调整为:ARP报文操作码取值为TBD1的ARP报文;并且,当所述ARP报文的外层以太头的目的MAC为指定值时,在接收端结点上,也可以直接以所述目的MAC为指定值作为所述指定特征格式的解释,此时,不需要所述ARP报文满足ARP Probe格式或采用扩展操作码。为描述方便起见,此后将所有用作ESI邻接检测事件传输载体的ARP报文统称为ARP插入报文。It is worth noting that when the ESI state change fast propagation channel transmitting end uses the first type or the second type of extended ARP packet to transmit the ESI adjacency detection event, the receiving end node also needs to perform corresponding decoding adjustment, specifically, the corresponding The description of the specified feature format ARP packet is adjusted to: the ARP packet operation code takes the value of the ARP packet of the TBD1; and when the destination MAC address of the outer layer of the ARP packet is the specified value, the receiving end is On the node, the destination MAC address can be directly used as the specified value as the specified feature format. In this case, the ARP packet does not need to meet the ARP Probe format or use the extended operation code. For the convenience of description, all ARP messages used as the transmission carrier of the ESI adjacency detection event are collectively referred to as ARP insertion messages.
值得注意的是,经过ESI状态解映射模块处理的ARP报文,在完成相应的通知EVPN转发表管理模块流程之后,均做丢弃处理,不能继续交还EVPN转发面进行转发。It is worth noting that the ARP packets processed by the ESI state demapping module are discarded after the corresponding EVPN forwarding table management module process is completed, and cannot be returned to the EVPN forwarding plane for forwarding.
值得注意的是,所述ARP插入报文也可以只在所述ESI1所接入的部分I组件实例中广播,具体地,只需要从所有绑定同一个特定B组件实例的I组件实例中选出一个I组件实例作为所述特定B组件实例的指定I组件实例,然后由所述指定I组件实例负责广播所述ARP报文,这样的话,由于B组件实例数量典型地远远少于I组件实例,将会大大减少ARP插入报文的数量,从而进一步提高性能。采用此性能优化方案,在ESI状态变化快速传播通道接收端结点上的ESI状态解映射模块就要为ESI1所接入的I组件实例集合中那些与所收到的ARP插入报文所属的I组件实例绑定了相同B组件实例的成员逐一分别通知EVPN转发表管理模块所述ESI1在其当前DF结点(在远端)上发生了故障。并且,采用这种实现方案,需要保证所述指定I组件实例在所述特定B组件实例存在的每个结点上也都存在,并且,都被指定为所述特定B组件实例的指定I组件实例。采用本性能优化方案,本示例性实施例中ARP插入报文的数量将从20个 减少为2个。It should be noted that the ARP insertion message may also be broadcast only in the part I component instance accessed by the ESI1. Specifically, only the I component instances bound to the same specific B component instance need to be selected. An I component instance is taken as the specified I component instance of the specific B component instance, and then the specified I component instance is responsible for broadcasting the ARP message, so that the number of B component instances is typically much smaller than the I component. As an example, the number of ARP insertion messages will be greatly reduced, thereby further improving performance. With this performance optimization scheme, the ESI state demapping module on the receiver node of the ESI state change fast propagation channel is the I of the I component instance set accessed by ESI1 and the I inserted into the received ARP packet. The component instance binds the members of the same B component instance to notify the EVPN forwarding table management module one by one that the ESI1 has failed on its current DF node (at the far end). Moreover, with this implementation, it is necessary to ensure that the specified I component instance also exists at each node where the specific B component instance exists, and is designated as the specified I component of the specific B component instance. Example. With this performance optimization scheme, the number of ARP insertion messages in this exemplary embodiment will be reduced from 20 to 2.
值得注意的是,以更新接收端的ESI子接口DF状态为目的而发送所述ARP插入报文,在发送端结点上,只有相应ESI子接口为DF角色的I组件实例中才需要发送所述ARP插入报文。It is to be noted that the ARP insertion packet is sent for the purpose of updating the DES state of the ESI sub-interface of the receiving end, and only the instance of the I component in which the corresponding ESI sub-interface is in the DF role needs to be sent in the sending-side node. ARP inserts a message.
本领域的技术人员都可以理解,本申请不仅可以实施在all-active模式的ESI上,也可以实施在single-active模式的ESI上。ESI邻接检测不仅可以使用物理信号,也可以使用EFM、TP OAM TMS等链路检测技术。Those skilled in the art can understand that the present application can be implemented not only on the ESI in the all-active mode but also on the ESI in the single-active mode. ESI adjacency detection can use not only physical signals, but also link detection techniques such as EFM and TP OAM TMS.
示例性实施例2 Exemplary embodiment 2
在本示例性实施例2中提供了一种以太网段标识邻接检测处理方法,下面结合图6对示例性实施例2作进一步的详细描述:如图6所示,在PE1、PE2和PE3部署一条基本的PBB EVPN业务,其中CE1双归接入到PE1和PE2,对应ESI为ESI1,对应的B-MAC为BM1,采用all-active模式,CE2单归接入PE3。使得RFC7623所定义的PBB EVPN基本功能可以正常运作。这一步完成以后,EVPN控制面模块和EVPN转发表管理模块也就同时部署完成了。An Ethernet segment identification adjacency detection processing method is provided in the exemplary embodiment 2, and the exemplary embodiment 2 is further described in detail below with reference to FIG. 6. As shown in FIG. 6, deployed in PE1, PE2, and PE3. A basic PBB EVPN service, in which CE1 is dual-homed to PE1 and PE2, the corresponding ESI is ESI1, the corresponding B-MAC is BM1, all-active mode is adopted, and CE2 is directly connected to PE3. The basic functions of PBB EVPN defined by RFC7623 can be operated normally. After this step is completed, the EVPN control plane module and the EVPN forwarding table management module are also deployed at the same time.
在PE1与CE1之间的链路上部署ESI邻接检测模块,在PE1上部署ESI状态映射模块,在PE3上部署ESI状态解映射模块,并且在PE1与PE3之间部署ESI状态变化传播快速通道。其中,具体可以通过以下方式部署ESI邻接检测模块:在链路上部署标准的Y.1731传送操作管理维护TP OAM TMS技术,使其检测该链路的状态,ESI邻接检测模块可以使TP OAM TMS模块将链路的状态变化随时输入给ESI状态映射模块。The ESI adjacency detection module is deployed on the link between PE1 and CE1, the ESI state mapping module is deployed on PE1, the ESI state demapping module is deployed on PE3, and the ESI state change propagation fast channel is deployed between PE1 and PE3. Specifically, the ESI adjacency detection module may be deployed in the following manner: a standard Y.1731 transmission operation management and maintenance TP OAM TMS technology is deployed on the link to detect the status of the link, and the ESI adjacency detection module can make the TP OAM TMS The module inputs the state change of the link to the ESI state mapping module at any time.
部署ESI状态变化传播快速通道具体是:给PE1到PE3的TE隧道部署一条经过扩展的PEER BFD会话,这两个结点上所有ESI的状态变化传播都以这条PEER BFD会话作为快速通道,而不是每个ESI一条BFD会话;PEER BFD会话使用一个新的版本号,即5,以区别于RFC5880定义 的标准BFD会话。除了版本号不同外,上述BFD会话的报文格式及用法与标准BFD会话完全相同。The deployment of the ESI state change propagation fast channel is as follows: an extended PEER BFD session is deployed to the TE tunnel of the PE1 to the PE3. The state change propagation of all the ESIs at the two nodes uses the PEER BFD session as the fast channel. Not a BFD session for each ESI; the PEER BFD session uses a new version number, 5, to distinguish it from the standard BFD session defined by RFC5880. The format and usage of the BFD session are the same as those of the standard BFD session.
以PE1与CE1之间的链路物理失效为例,流程部分的处理步骤如下:Take the physical failure of the link between PE1 and CE1 as an example. The processing steps in the process part are as follows:
步骤1,PE1上的ESI邻接检测模块检测到ESI1上的链路故障,包括物理链路故障;Step 1: The ESI adjacency detection module on the PE1 detects a link fault on the ESI1, including a physical link fault.
步骤2,PE1上的ESI邻接检测模块将ESI1上的故障通知到ESI状态映射模块;Step 2: The ESI adjacency detection module on the PE1 notifies the ESI status mapping module of the fault on the ESI1;
步骤3,PE1上的ESI状态映射模块将ESI1上的故障编码为PBB ESI OAM Mapping Channel Sub-TLV格式,并通知到ESI状态变化传播快速通道,具体是:PE1上的ESI状态映射模块接收检测状态变化事件,并确定对应的ESI,本例为所述ESI1,将所述ESI1的状态变化事件,以图7所示的PBB ESI OAM Mapping Channel Sub-TLV格式封装好,并通知ESI状态变化传播快速通道。其中,B-MAC字段填ESI1对应的B-MAC;ESI Adjacent PE Address字段填本结点对外发布的ESI1对应的B-MAC对应的MAC路由时所用的下一跳地址;State字段填1表示Down,填3表示UP。需要说明的是,图7中的B-MAC(继续)字段即B-MAC(continue)字段,状态字段即State字段。Step 3: The ESI state mapping module on PE1 encodes the fault on ESI1 into the PBB ESI OAM Mapping Channel Sub-TLV format, and notifies the ESI state change propagation fast channel, specifically: the ESI state mapping module on PE1 receives the detection state. The event is changed, and the corresponding ESI is determined. In this example, the ESI1 is encapsulated by the PBB ESI OAM Mapping Channel Sub-TLV format shown in FIG. 7 and the ESI state change propagation is fast. aisle. The B-MAC field is filled with the B-MAC corresponding to the ESI1; the ESI Adjacent PE Address field is used to fill the next hop address used by the B-MAC corresponding to the ESI1 issued by the node; the State field is filled with 1 to indicate Down. Fill in 3 to indicate UP. It should be noted that the B-MAC (continue) field in FIG. 7 is a B-MAC (continue) field, and the status field is a State field.
步骤4,在PEER BFD会话的BFD控制报文中新增一个Diag码,即27,Diag码为27的BFD控制报文不体现该报文所属BFD会话所检测的对象本身的状态,而是只充当通用OAM mapping信道;OAM Mapping信道的净荷以Sub-TLV的格式填写,如图5所示,OAM Mapping信道的净荷在BFD控制报文中以Generic OAM Mapping Channel Sub-TLV的形式存在;PEER BFD会话将ESI状态映射模块输入的PBB ESI OAM Mapping Channel Sub-TLV封装成BFD控制报文,其中Vers(即版本)字段取值为5,Diag字段取值为27,Generic OAM Mapping Channel Sub-TLV字段取值整体拷贝所述PBB ESI OAM Mapping Channel Sub-TLV,其它字段取值与RFC5880中Diag字段取值为6(即连锁路径失效Concatenated Path Down 报文)时的同名字段的取值完全相同,本实施例中只有ESI状态发生变化时,才需要在PEER BFD会话上发布ESI相关的报文,不需要周期性发送ESI相关的报文(换句话说,不需要每ESI建立一条BFD会话),常态下,PEER BFD会话上没有per-ESI检测的报文;将ESI状态映射模块封装好的Sub-TLV通过PEER BFD会话的通用OAM Mapping信道传播到PE3;In step 4, a new Diag code is added to the BFD control packet of the PEER BFD session, that is, 27, and the BFD control packet whose Diag code is 27 does not reflect the state of the object itself detected by the BFD session to which the packet belongs, but only The payload of the OAM Mapping channel is filled in the Sub-TLV format. As shown in Figure 5, the payload of the OAM Mapping channel exists in the BFD control packet in the form of a Generic OAM Mapping Channel Sub-TLV. The PEER BFD session encapsulates the PBB ESI OAM Mapping Channel Sub-TLV input into the BFD control packet. The Vers (version) field has a value of 5 and the Diag field has a value of 27. The Generic OAM Mapping Channel Sub- The value of the TLV field is the same as that of the PBB ESI OAM Mapping Channel Sub-TLV. The values of other fields are the same as those of the same name field when the value of the Diag field in the RFC5880 is 6 (that is, the Concatenated Path Down message is invalid). In this embodiment, only when the ESI state changes, the ESI-related packet needs to be advertised on the PEER BFD session, and the ESI-related packet does not need to be sent periodically (in other words, There is no need to establish a BFD session for each ESI. In the normal state, there is no per-ESI packet in the PEER BFD session. The Sub-TLV encapsulated by the ESI state mapping module is transmitted to the PE3 through the common OAM Mapping channel of the PEER BFD session.
步骤5,在PE3上,PEER BFD会话将通过Diag字段为27识别出的BFD控制报文中携带的通用OAM mapping信道的净荷部分输入给所述ESI状态解映射模块。对于本例来说,净荷格式就是PBB ESI OAM Mapping Channel Sub-TLV格式,但所述BFD会话并不需要解析净荷格式,而是直接交给ESI状态解映射模块解析;Step 5: On the PE3, the PEER BFD session inputs the payload portion of the general OAM mapping channel carried in the BFD control packet identified by the Diag field to the ESI state demapping module. For this example, the payload format is the PBB ESI OAM Mapping Channel Sub-TLV format, but the BFD session does not need to parse the payload format, but is directly submitted to the ESI state demapping module for parsing;
步骤6,PE3上的ESI状态解映射模块接收ESI状态变化传播快速通道输入的PBB ESI OAM Mapping Channel Sub-TLV,解析出相应的B-MAC,从ESI邻接PE地址(Adjacent PE Address)中得到源端结点IP地址,然后以<B-MAC,源端结点IP地址>确定相应的MAC路由,本例为PE1对于ESI1对应的B-MAC所发布的MAC路由,然后以MAC路由撤销的名义通知EVPN转发表管理模块,具体是:从OAM Mapping Sub-TLV中解析出该B-MAC的状态,Up或Down; Step 6, the ESI state demapping module on the PE3 receives the PBB ESI OAM Mapping Channel Sub-TLV of the ESI state change propagation fast channel input, parses the corresponding B-MAC, and obtains the source from the ESI Adjacent PE Address. End the IP address, and then determine the corresponding MAC route with <B-MAC, source node IP address>. In this example, PE1 advertises the MAC route advertised by B-MAC corresponding to ESI1, and then in the name of MAC route revocation. The EVPN forwarding table management module is configured to: parse the status of the B-MAC from the OAM Mapping Sub-TLV, Up or Down;
若B-MAC状态变为Down,以MAC路由撤销的名义通知EVPN转发表管理模块,与EVPN控制面输入B-MAC对应的MAC路由撤销事件时使用同一API接口输入给EVPN转发表管理模块;若B-MAC状态变为Up,则不影响EVPN转发表管理模块;因此,EVPN转发表管理模块只需要支持标准的RFC7432功能就能够自动支持本功能。If the B-MAC status is Down, the EVPN forwarding table management module is notified in the name of the MAC route revocation, and the MAC address revocation event corresponding to the B-MAC input on the EVPN control plane is input to the EVPN forwarding table management module by using the same API interface; If the B-MAC status changes to Up, the EVPN forwarding table management module is not affected. Therefore, the EVPN forwarding table management module can automatically support this function only by supporting the standard RFC7432 function.
步骤7,PE3上的EVPN转发表管理模块以为收到了MAC路由撤销事件,按RFC7623规定处理,结果就导致了对应B-MAC的转发路径切换;Step 7: The EVPN forwarding table management module on the PE3 considers that the MAC route revocation event is received and is processed according to the RFC7623, and the result is that the forwarding path of the corresponding B-MAC is switched.
步骤8,与此同时,BGP EVPN控制面按固有流程也在进行对应B-MAC的转发成员列表的收敛并最终得以完成,但在步骤7完成时,流量已经不再丢包,从而大副度减少了ESI收敛过程中的丢包时间。并且, EVPN控制面模块也会向EVPN转发表管理模块下发一条真正的MAC路由撤销,此时,由于步骤7的原因,EVPN转发表管理模块已经没有相应B-MAC的相应转发路径,可以直接返回。Step 8: At the same time, the BGP EVPN control plane also performs the convergence of the forwarding member list corresponding to the B-MAC according to the inherent process, and finally completes, but when the step 7 is completed, the traffic is no longer lost, thereby greatly Reduced packet loss time during ESI convergence. In addition, the EVPN control plane module sends a true MAC route revocation to the EVPN forwarding table management module. In this case, the EVPN forwarding table management module does not have a corresponding forwarding path of the corresponding B-MAC. return.
通过上述步骤,由于在ESI邻接检测事件传播机制的基础上,与OAM mapping技术有机结合,使得本地的ESI邻接检测事件可以通过ESI状态变化传播快速通道先于EAD路由到达远端PE,从而在远端PE上完成快速的转发路径切换,减少ES链路故障收敛过程中的丢包时间,解决了相关技术中ESI邻接检测事件只能依赖于BGP路由传播,收敛性能很难达到BFD级的性能的问题。Through the above steps, based on the ESI adjacent detection event propagation mechanism, combined with the OAM mapping technology, the local ESI adjacency detection event can propagate through the ESI state change fast channel prior to the EAD route to the remote PE, thereby being far away. The fast forwarding path switching is performed on the end PE to reduce the packet loss time in the ES link failure convergence process. The ESI neighbor detection event in the related art can only rely on BGP route propagation, and the convergence performance is difficult to achieve the performance of the BFD level. problem.
上述处理步骤还可以进一步包括以下步骤:The above processing steps may further include the following steps:
步骤9,当PE1上ESI1的邻接链路恢复UP时,PE1也可以向通用OAM Mapping信道中发送对应B-MAC的链路UP的消息,但是,通知ESI邻接链路变为UP的ESI OAM Mapping消息不会通知给EVPN转发表管理模块。同时,PE3上的EVPN控制面会重新下发MAC路由的生效,此时,EVPN转发表管理模块不会再受之前通知ESI1对应的B-MAC链路DOWN的OAM Mapping消息的影响。In step 9, when the adjacent link of ESI1 on PE1 is restored to UP, PE1 may also send a message of the link UP corresponding to the B-MAC to the general OAM Mapping channel, but notify the ESI that the adjacent link becomes UP. The message will not be notified to the EVPN forwarding table management module. At the same time, the EVPN control plane on PE3 will re-deliver the MAC address. In this case, the EVPN forwarding table management module will not be affected by the OAM mapping message of the B-MAC link DOWN that was previously notified to ESI1.
步骤10,PEER BFD会话中断,PE3上EVPN转发表管理模块不受任何影响,并且,在PEER BFD会话中断期间,EVPN转发表管理模块只需要受EVPN控制面模块影响;Step 10: The PEER BFD session is interrupted, and the EVPN forwarding table management module on PE3 is not affected. Moreover, during the PEER BFD session interruption, the EVPN forwarding table management module only needs to be affected by the EVPN control plane module.
步骤11,PEER BFD会话恢复后,若PE1上ESI1的邻接链路状态为UP,PE1也可以向通用OAM Mapping信道中发送ESI1对应的B-MAC的链路UP的消息,但是,通知ESI邻接链路变为UP的ESI OAM Mapping消息对于EVPN转发表管理模块没有任何影响。Step 11: After the PEER BFD session is restored, if the status of the adjacent link of ESI1 on PE1 is UP, PE1 may also send a message of the link UP of the B-MAC corresponding to ESI1 to the general OAM Mapping channel, but notify the ESI adjacency chain. The ESI OAM Mapping message whose path becomes UP has no effect on the EVPN forwarding table management module.
本领域的技术人员都可以理解,本申请不仅可以实施在all-active模式的ESI上,也可以实施在single-active模式的ESI上。OAM Mapping信道不仅可以使用peer BFD,也可以使用TE BFD或TP OAM等检测技术。ESI邻接检测不仅可以使用EFM,也可以使用物理信号等链路检测技术。 而且,BFD控制报文Those skilled in the art can understand that the present application can be implemented not only on the ESI in the all-active mode but also on the ESI in the single-active mode. The OAM mapping channel can use not only peer BFD but also TE BFD or TP OAM. ESI adjacency detection can use not only EFM but also link detection techniques such as physical signals. Moreover, BFD control messages
示例性实施例3 Exemplary embodiment 3
在本实施例中提供了一种以太网段标识邻接检测处理方法,下面结合图1对示例性实施例2作进一步的详细描述:如图1所示,在PE1、PE2和PE3部署一条基本的VXLAN EVPN业务,其中CE1双归接入到PE1和PE2,对应ESI为ESI1,该业务在ESI1上所用的Ethernet Tag为100,ESI1采用single-active模式,CE2单归接入PE3。使得RFC7432所定义的EVPN基本功能可以正常运作。这一步完成以后,EVPN控制面模块和EVPN转发表管理模块也就同时部署完成了。An Ethernet segment identification adjacency detection processing method is provided in this embodiment. The exemplary embodiment 2 is further described in detail below with reference to FIG. 1. As shown in FIG. 1, a basic configuration is deployed on PE1, PE2, and PE3. VXLAN EVPN service, in which CE1 is dual-homed to PE1 and PE2, and the corresponding ESI is ESI1. The Ethernet tag used in ESI1 is 100, ESI1 is in single-active mode, and CE2 is connected to PE3. Enables the basic EVPN functions defined in RFC7432 to function properly. After this step is completed, the EVPN control plane module and the EVPN forwarding table management module are also deployed at the same time.
在PE1与CE1之间的链路上部署ESI邻接检测模块,在PE1上部署ESI状态映射模块,在PE3上部署ESI状态解映射模块,并且在PE1与PE3之间部署ESI状态变化传播快速通道。其中,ESI邻接检测模块可以内置一个link BFD、EFM、CFM等检测模块,具体可以通过以下方式部署ESI邻接检测模块:在链路上VXLAN EVPN的AC接口上部署标准的连通性故障管理CFM技术,上述AC接口是一个子接口,子接口封装的VLAN为100,与VXLAN EVPN业务在ESI1上对应的Ethernet Tag相同;ESI邻接检测模块可以使CFM模块将AC接口的状态变化随时输入给ESI状态映射模块。The ESI adjacency detection module is deployed on the link between PE1 and CE1, the ESI state mapping module is deployed on PE1, the ESI state demapping module is deployed on PE3, and the ESI state change propagation fast channel is deployed between PE1 and PE3. The ESI adjacency detection module can be configured with a link BFD, EFM, and CFM detection module. The ESI adjacency detection module can be deployed in the following manner: A standard connectivity fault management CFM technology is deployed on the AC interface of the VXLAN EVPN on the link. The AC interface is a sub-interface. The sub-interface encapsulates the VLAN 100, which is the same as the Ethernet tag corresponding to the VXLAN EVPN service on the ESI1. The ESI adjacency detection module enables the CFM module to input the status change of the AC interface to the ESI status mapping module at any time. .
部署ESI状态变化传播快速通道具体是:在PE1与PE3之间部署一条双向TE隧道,在该TE隧道上部署经过扩展的TP OAM会话,这两个结点上所有ESI的状态变化传播都以这条扩展的TP OAM会话作为快速通道,而不是每个ESI一条TP OAM会话;上述TP OAM会话相比Y.1731标准的TP OAM会话,新增了一种CSF报文格式(如图8所示),新CSF报文格式使用的运行代码(OpCode)与标准CSF报文不同,标准CSF报文格式的OpCode为52,新CSF报文格式的OpCode为107。需要说明的是,图8中的管理实体组层级字段即MEL字段,版本字段即Version字段, 标识字段即Flags字段,TLV偏移字段(0)即TLV Offset(0)字段,保留(0)字段即Reserved(0)字段。The deployment of the ESI state change propagation fast channel is specifically: deploying a bidirectional TE tunnel between PE1 and PE3, and deploying an extended TP OAM session on the TE tunnel, and all ESI state change propagations at the two nodes are The extended TP OAM session is used as a fast channel instead of a TP OAM session for each ESI. The TP OAM session has a new CSF packet format compared to the TP OAM session of the Y.1731 standard (as shown in Figure 8). The operation code (OpCode) used in the new CSF message format is different from the standard CSF message. The OpCode of the standard CSF message format is 52, and the OpCode of the new CSF message format is 107. It should be noted that the management entity group level field in FIG. 8 is the MEL field, the version field is the Version field, the identification field is the Flags field, the TLV offset field (0) is the TLV Offset (0) field, and the reserved (0) field. That is, the Reserved (0) field.
以PE1与CE1之间的链路物理失效为例,流程部分的处理步骤如下:Take the physical failure of the link between PE1 and CE1 as an example. The processing steps in the process part are as follows:
步骤1,PE1上的ESI邻接检测模块检测到ESI1上的链路故障,包括物理链路故障;Step 1: The ESI adjacency detection module on the PE1 detects a link fault on the ESI1, including a physical link fault.
步骤2,PE1上的ESI邻接检测模块将ESI1上的故障通知到ESI状态映射模块;Step 2: The ESI adjacency detection module on the PE1 notifies the ESI status mapping module of the fault on the ESI1;
步骤3,PE1上的ESI状态映射模块将ESI1上的故障编码为ESI OAM Mapping Channel Sub-TLV格式,并通知到ESI状态变化传播快速通道,具体是:PE1上的ESI状态映射模块接收检测状态变化事件,并确定对应的ESI和Ethernet Tag,本例为所述ESI1及其上的Ethernet Tag 100,将ESI1的状态变化事件,以图4所示的ESI OAM Mapping Channel Sub-TLV格式封装好,并通知ESI状态变化传播快速通道。其中,ESI字段填ESI1,Ethernet Tag ID字段填100表示传递的是ESI1上的Ethernet Tag 100的状态;ESI Adjacent PE Address字段填本结点对外发布ESI1的Ethernet Tag100对应的EAD-EVI路由时所用的下一跳地址;State字段填1表示Down,填3表示UP;Step 3: The ESI state mapping module on PE1 encodes the fault on ESI1 into the ESI OAM Mapping Channel Sub-TLV format, and notifies the ESI state change propagation fast channel. Specifically, the ESI state mapping module on PE1 receives the detection state change. The event, and determine the corresponding ESI and Ethernet Tag, in this example, the ESI1 and the Ethernet Tag 100 thereon, and encapsulate the state change event of the ESI1 in the ESI OAM Mapping Channel Sub-TLV format shown in FIG. 4, and Notifies the ESI state change propagation fast track. The ESI field is filled with ESI1, the Ethernet Tag ID field is filled with 100 to indicate the status of the Ethernet Tag 100 on the ESI1, and the ESI Adjacent PE Address field is used to fill the EAD-EVI route corresponding to the Ethernet Tag100 of the ESI1. Next hop address; the State field is filled with 1 for Down and 3 for UP;
步骤4,PE1上的ESI状态变化传播快速通道将该Sub-TLV通过TP OAM会话的新CSF报文传播到PE3;上述TP OAM会话的新增CSF报文与标准CSF报文的作用相比,唯一的不同在于它多携带了一个TLV,该TLV的type由IANA分配,该TLV的Value部分是一个ESI OAM Mapping Channel Sub-TLV;在发送端,TP OAM会话将ESI状态映射模块输入的ESI OAM Mapping Channel Sub-TLV封装成图8所示格式的新CSF报文,其中与标准CSF报文同名的字段的填写和起作用方法仍然与Y.1731中相同。只有ESI状态发生变化时,才需要在TP OAM会话上发布ESI相关的报文,不需要周期性发送ESI相关的报文(换句话说,不需要每ESI建立一条BFD会话),常态下,TP OAM会话上没有ESI相关的报文;Step 4: The ESI state change propagation fast channel on the PE1 propagates the new CSF packet of the Sub-TLV through the TP OAM session to the PE3. The new CSF packet of the TP OAM session is compared with the standard CSF packet. The only difference is that it carries a TLV. The type of the TLV is assigned by IANA. The Value part of the TLV is an ESI OAM Mapping Channel Sub-TLV. At the transmitting end, the ESI OAM session inputs the ESI OAM into the ESI Status Mapping Module. The mapping channel Sub-TLV is encapsulated into a new CSF packet in the format shown in Figure 8. The fields of the same name as the standard CSF packet are still filled and functioned in the same manner as in Y.1731. Only when the ESI status changes, the ESI-related packets need to be advertised on the TP OAM session. You do not need to periodically send ESI-related packets. In other words, you do not need to establish a BFD session for each ESI. Normally, TP There are no ESI related messages on the OAM session;
步骤5,在PE3上,TP OAM会话将通过新CSF报文携带的ESI OAM Mapping Channel Sub-TLV识别出来并输入给ESI状态解映射模块,但TP OAM会话并不需要解析ESI OAM Mapping Channel Sub-TLV的具体内容;TP OAM会话本身并不解析该TLV的Value部分,而是直将将其交给ESI状态解映射模块处理,也就是说,TP OAM会话只是传递ESI OAM Mapping Channel Sub-TLV的一个通道;Step 5: On the PE3, the TP OAM session is identified by the ESI OAM Mapping Channel Sub-TLV carried in the new CSF message and input to the ESI state demapping module, but the TP OAM session does not need to be parsed by the ESI OAM Mapping Channel Sub- The specific content of the TLV; the TP OAM session itself does not parse the Value part of the TLV, but will directly hand it over to the ESI state demapping module. That is, the TP OAM session only passes the ESI OAM Mapping Channel Sub-TLV. One channel;
步骤6,PE3上的ESI状态解映射模块接收ESI状态变化传播快速通道输入的ESI OAM Mapping Channel Sub-TLV,解析出对应ESI为ESI1,对应Ethernet Tag为100,对应ESI Adjacent PE Address为IP7,并确定出所述IP7标识的PE结点(即PE1)所发布的与二元组<ESI1,100>对应的EAD-EVI路由,然后以所述EAD-EVI路由撤销的名义通知EVPN转发表管理模块,具体为:从OAM Mapping Sub-TLV中解析出<ESI1,100>的状态,Up或Down;若<ESI1,100>状态变为Down,则与EVPN控制面输入<ESI1,100>对应的EAD-EVI路由撤销事件时使用同一API接口输入给EVPN转发表管理模块;若<ESI1,100>状态变为Up,则不影响EVPN转发表管理模块。因此,EVPN转发表管理模块只需要支持标准的RFC7432功能就能够自动支持本功能。Step 6: The ESI state demapping module on the PE3 receives the ESI OAM Mapping Channel Sub-TLV of the ESI state change propagation fast channel input, and parses the corresponding ESI as ESI1, the corresponding Ethernet Tag is 100, and the ESI Adjacent PE Address is IP7, and Determining an EAD-EVI route corresponding to the dual group <ESI1, 100> issued by the PE node identified by the IP7 (ie, PE1), and then notifying the EVPN forwarding table management module in the name of the EAD-EVI route revocation. Specifically, the state of <ESI1, 100> is parsed from the OAM Mapping Sub-TLV, Up or Down; if the <ESI1, 100> state is Down, the EAD corresponding to the EESI control plane input <ESI1, 100> - EVI route revocation event is input to the EVPN forwarding table management module using the same API interface; if the <ESI1, 100> status is Up, the EVPN forwarding table management module is not affected. Therefore, the EVPN forwarding table management module can automatically support this function only by supporting the standard RFC7432 function.
步骤7,PE3上的EVPN转发表管理模块以为收到了EAD-EVI路由撤销事件,按RFC7432规定处理,结果就导致了<ESI1,100>上的转发路径切换;Step 7: The EVPN forwarding table management module on the PE3 considers that the EAD-EVI route revocation event is received and is processed according to the RFC7432, and the result is a forwarding path switch on <ESI1, 100>;
步骤8,与此同时,BGP EVPN控制面按固有流程也在进行<ESI1,100>转发成员列表的收敛并最终得以完成,但在步骤7完成时,流量已经不再丢包,从而大副度减少了ESI收敛过程中的丢包时间。并且,EVPN控制面模块也会向EVPN转发表管理模块下发一条真正的EAD路由撤销,此时,由于步骤7的原因,EVPN转发表管理模块已经没有相应ESI的相应转发路径,可以直接返回。Step 8: At the same time, the BGP EVPN control plane performs the convergence of the <ESI1,100> forwarding member list according to the inherent process, and finally completes the traffic. However, when the step 7 is completed, the traffic is no longer lost. Reduced packet loss time during ESI convergence. In addition, the EVPN control plane module also sends a true EAD route revocation to the EVPN forwarding table management module. At this time, due to the reason of step 7, the EVPN forwarding table management module does not have a corresponding forwarding path of the corresponding ESI, and can directly return.
通过上述步骤,由于在ESI邻接检测事件传播机制的基础上,与OAM mapping技术有机结合,使得本地的ESI邻接检测事件可以通过ESI状态变化传播快速通道先于EAD路由到达远端PE,从而在远端PE上完成快速的转发路径切换,减少ES链路故障收敛过程中的丢包时间,解决了相关技术中ESI邻接检测事件只能依赖于BGP路由传播,收敛性能很难达到BFD级的性能的问题。Through the above steps, based on the ESI adjacent detection event propagation mechanism, combined with the OAM mapping technology, the local ESI adjacency detection event can propagate through the ESI state change fast channel prior to the EAD route to the remote PE, thereby being far away. The fast forwarding path switching is performed on the end PE to reduce the packet loss time in the ES link failure convergence process. The ESI neighbor detection event in the related art can only rely on BGP route propagation, and the convergence performance is difficult to achieve the performance of the BFD level. problem.
上述处理步骤还可以进一步包括以下步骤:The above processing steps may further include the following steps:
步骤9,当PE1上<ESI1,100>的邻接链路恢复UP时,PE1也可以向通用OAM Mapping信道中发送<ESI1,100>的链路UP的消息,但是,通知ESI邻接链路变为UP的ESI OAM Mapping消息不会通知给EVPN转发表管理模块。同时,PE3上的EVPN控制面会重新下发ESI1对应的EAD-ES路由的生效,此时,EVPN转发表管理模块不会再受之前通知<ESI1,100>链路DOWN的OAM Mapping消息的影响。 Step 9. When the adjacent link of <ESI1, 100> on PE1 is restored to UP, PE1 may also send a message of <ESI1, 100> link UP to the general OAM Mapping channel, but notify the ESI adjacent link to become The ESI OAM Mapping message of the UP is not notified to the EVPN forwarding table management module. At the same time, the EVPN control plane on the PE3 will re-issue the EAD-ES route corresponding to the ESI1. In this case, the EVPN forwarding table management module will not be affected by the OAM mapping message that was previously notified to the <ESI1,100> link DOWN.
步骤10,TP OAM会话中断,PE3上EVPN转发表管理模块不受任何影响,并且,在TP OAM会话中断期间,EVPN转发表管理模块只需要受EVPN控制面模块影响;Step 10: The TP OAM session is interrupted, and the EVPN forwarding table management module on the PE3 is not affected. Moreover, during the TP OAM session interruption, the EVPN forwarding table management module only needs to be affected by the EVPN control plane module;
步骤11,TP OAM会话恢复后,若PE1上<ESI1,100>的邻接链路状态为UP,PE1也可以向通用OAM Mapping信道中发送<ESI1,100>的链路UP的消息,但是,通知ESI邻接链路变为UP的ESI OAM Mapping消息对于EVPN转发表管理模块没有任何影响。Step 11: After the TP OAM session is restored, if the neighboring link status of <ESI1, 100> on PE1 is UP, PE1 may also send a message of <ESI1, 100> link UP to the general OAM Mapping channel, but notify The ESI OAM Mapping message with the ESI adjacency link becoming UP has no effect on the EVPN forwarding table management module.
本领域的技术人员都可以理解,本申请不仅可以实施在all-active模式的ESI上,也可以实施在single-active模式的ESI上。不仅可以实施在VXLAN封装的EVPN上,也可以实施在MPLS封装的EVPN上。不仅可以使用peer BFD,也可以使用TE BFD或TP OAM。ESI邻接检测不仅可以使用EFM,也可以使用CFM等链路检测技术。CSF报文不仅可以使用新的OpCode,也可以在坚持使用旧的OpCode的基础上扩展对ESI OAM Mapping功能的支持,而且,CSF报文中也不限于采用ESI OAM Mapping Channel Sub-TLV来表示ESI邻接检测事件。PEER IP地址不仅可以从TP OAM会话获取,也可以在所述CSF报文中携带。Those skilled in the art can understand that the present application can be implemented not only on the ESI in the all-active mode but also on the ESI in the single-active mode. It can be implemented not only on the EVPN of the VXLAN package but also on the EVPN of the MPLS package. You can use not only peer BFD but also TE BFD or TP OAM. ESI adjacency detection can use not only EFM but also link detection techniques such as CFM. CSF packets can not only use the new OpCode, but also extend the support of the ESI OAM mapping function based on the old OpCode. Moreover, the CSF message is not limited to the ESI OAM Mapping Channel Sub-TLV to represent the ESI. Adjacency detection event. The PEER IP address can be obtained not only from the TP OAM session but also in the CSF packet.
示例性实施例4 Exemplary embodiment 4
除特殊说明之处以外,本示例性实施例与示例性实施例1相同。The present exemplary embodiment is the same as Exemplary Embodiment 1, except where specifically stated.
与示例性实施例1不同,本示例性实施例是按照图1建立的MPLS EVPN业务,而不是按照图6建立的PBB EVPN业务;因此,本示例性实施例中没有B组件。Unlike the exemplary embodiment 1, the present exemplary embodiment is the MPLS EVPN service established in accordance with FIG. 1, instead of the PBB EVPN service established in accordance with FIG. 6; therefore, there is no B component in the present exemplary embodiment.
部署ESI邻接检测模块具体是:除使用CFM检测技术之外,与示例性实施例1相同;因此,本示例性实施例检测的是ESI子接口的状态而不是ESI主接口的状态。The deployment of the ESI adjacency detection module is specifically the same as that of the exemplary embodiment 1 except that the CFM detection technique is used; therefore, the present exemplary embodiment detects the state of the ESI sub-interface instead of the state of the ESI main interface.
部署ESI状态映射模块具体是:除ESI标识信息取ESI状态变化传播快速通道接收端结点为该ESI分配的ESI标签之外,与示例性实施例1相同。The deployment of the ESI state mapping module is specifically the same as the exemplary embodiment 1 except that the ESI identification information takes the ESI status change propagation fast channel receiving end node as the ESI label assigned to the ESI.
部署ESI状态变化传播快速通道具体是:与示例性实施例1相同。The deployment of the ESI state change propagation fast channel is specifically the same as in the exemplary embodiment 1.
部署ESI状态解映射模块具体是:除ESI标识信息为ESI标签,并且用所述ESI标签找到对应的ESI之外,其它与示例性实施例1相同。The deployment of the ESI state demapping module is specifically the same as the exemplary embodiment 1 except that the ESI identification information is an ESI tag and the corresponding ESI is found using the ESI tag.
部署ESI转发表管理模块具体是:除EVPN实例为MPLS EVPN实例外,其它与示例性实施例1相同;The ESI forwarding table management module is specifically configured to be the same as the exemplary embodiment 1 except that the EVPN instance is an MPLS EVPN instance.
以PE1与CE1之间的链路物理失效为例,流程部分的处理步骤如下:Take the physical failure of the link between PE1 and CE1 as an example. The processing steps in the process part are as follows:
除特殊说明之处以外,本步骤与示例性实施例1中对应步骤相同。This step is the same as the corresponding step in Exemplary Embodiment 1, except where specifically stated.
与示例性实施例1中不同,本步骤中ESI标识信息为ESI标签,EVPN实例为MPLS EVPN实例,且没有B组件实例,但这些都没有直接体现在示例性实施例1中的对应步聚的描述文字内,以该文字描述之抽象程度,完全可以适用于本示例性实施例。Different from the exemplary embodiment 1, the ESI identification information is an ESI label in this step, the EVPN instance is an MPLS EVPN instance, and there is no B component instance, but these are not directly reflected in the corresponding step in the exemplary embodiment 1. Within the description text, the degree of abstraction described by the text is fully applicable to the present exemplary embodiment.
本领域的技术人员都可以理解,本申请不仅可以实施在all-active模式的ESI上,也可以实施在single-active模式的ESI上。ESI邻接检测不仅 可以使用EFM,也可以使用CFM等链路检测技术。Those skilled in the art can understand that the present application can be implemented not only on the ESI in the all-active mode but also on the ESI in the single-active mode. ESI adjacency detection can use not only EFM but also link detection techniques such as CFM.
示例性实施例5 Exemplary embodiment 5
除特殊说明之处以外,本示例性实施例与示例性实施例4相同。The present exemplary embodiment is the same as Exemplary Embodiment 4 except where specifically stated.
与示例性实施例4不同,本示例性实施例建立的是VXLAN EVPN业务而不是MPLS EVPN业务。Unlike the exemplary embodiment 4, the present exemplary embodiment establishes a VXLAN EVPN service instead of an MPLS EVPN service.
值得注意的是,VXLAN EVPN业务的数据报文封装中并没有ESI标签,但是,其控制面的EAD-ES路由中仍然有ESI标签字段,并且可以填写为有效的ESI标签的值,这是因为,一个ESI可以有多个ESI子接口,其中有的ESI子接口加入MPLS EVPN,有的ESI子接口加入VXLAN EVPN,这些子接口可以共用一条EAD-ES路由,虽然加入VXLAN EVPN的ESI子接口不需要ESI标签,加入MPLS EVPN的EAD-ES却需要ESI标签,这种情况下EAD-ES路由中就必须携带有效的ESI标签值。因此,在EAD-ES路由中携带有效ESI标签值的情况下,该ESI标签值仍然可以作为ESI状态变化传播快速通道中的ESI标识信息。It is worth noting that there is no ESI label in the data packet encapsulation of the VXLAN EVPN service. However, there is still an ESI label field in the EAD-ES route of the control plane, and the value of the valid ESI label can be filled in, because An ESI can have multiple ESI sub-interfaces. Some of the ESI sub-interfaces are added to the MPLS EVPN. Some ESI sub-interfaces are added to the VXLAN EVPN. These sub-interfaces can share an EAD-ES route. Although the ESI sub-interface of the VXLAN EVPN is not added. The ESI label is required. The EAD-ES that joins the MPLS EVPN requires the ESI label. In this case, the EAD-ES route must carry a valid ESI label value. Therefore, in the case where the EAD-ES route carries a valid ESI tag value, the ESI tag value can still propagate the ESI identification information in the fast channel as the ESI state change.
这样一来,除了ARP插入报文的以太头之外的封装与示例性实施例4中不同以外,本示例性实施例的ARP插入报文的格式与处理流程就可以与示例性实施例4中是相同的。In this way, the format and processing flow of the ARP insertion message of the present exemplary embodiment can be different from that in the exemplary embodiment 4, except that the encapsulation other than the Ethernet header of the ARP insertion message is different from that in the exemplary embodiment 4. Are the same.
示例性实施例6 Exemplary embodiment 6
除特殊说明之处以外,本示例性实施例与示例性实施例5相同。The present exemplary embodiment is the same as Exemplary Embodiment 5 except where specifically stated.
与示例性实施例5不同,本示例性实施例在PE1与PE3之间也部署所述ESI状态变化传播快速通道和配套的ESI状态解映射模块。Unlike the exemplary embodiment 5, the present exemplary embodiment also deploys the ESI state change propagation fast channel and the associated ESI state demapping module between PE1 and PE3.
与示例性实施例5不同,本示例性实施例采用ESI的10字节值作为ESI标识信息,并采用示例性实施例1中所述第一类扩展ARP报文作为ARP插入报文的格式。Unlike the exemplary embodiment 5, the present exemplary embodiment adopts a 10-byte value of ESI as the ESI identification information, and adopts the first-class extended ARP message described in the exemplary embodiment 1 as the format of the ARP insertion message.
与示例性实施例5不同,在本示例性实施例中,除PE2结点与示例性 实施例5一样响应ARP插入报文之外,PE3结点也会响应ARP插入报文,PE3结点上ESI转发表管理模块按如下规则响应所收到的ARP插入报文:将所收到的ARP插入报文所属的EVPN实例记为EVI1,将所述ARP插入报文在EVI1中所属的广播域记为BD1,将从所述ARP插入报文中解码得到的ESI记为ESI1,则三元组<ESI1,EVI1,BD1>就定位到一组EVPN负荷分担转发信息,进一步地,所述ARP插入报文的VXLAN隧道源IP典型地就是PE1发布EVPN路由时填写的BGP下一跳地址,将该IP地址记为NH1,则NH1就对应于该组负荷分担转发信息中的一条特定的转发信息,将该条转发信息从该组负荷分担信息中移出。Unlike the exemplary embodiment 5, in the present exemplary embodiment, in addition to the PE2 node responding to the ARP insertion message as in the exemplary embodiment 5, the PE3 node also responds to the ARP insertion message, on the PE3 node. The ESI forwarding table management module responds to the received ARP insertion packet according to the following rules: the EVPN instance to which the received ARP insertion packet belongs is recorded as EVI1, and the ARP insertion packet is recorded in the broadcast domain of the EVI1. For BD1, the ESI decoded from the ARP insertion message is recorded as ESI1, and the triplet <ESI1, EVI1, BD1> is located to locate a set of EVPN load sharing forwarding information, and further, the ARP insertion report The source IP address of the VXLAN tunnel is the BGP next hop address that is filled in when the PE1 advertises the EVPN route. If the IP address is recorded as NH1, the NH1 corresponds to a specific forwarding information in the load balancing information. The piece of forwarding information is removed from the set of load sharing information.
值得注意的是,采用ESI的10字节值作为ESI标识信息,解除了示例性实施例5对于ESI标签以及MPLS EVPN的依赖,即使各PE结点只支持VXLAN EVPN并且不分发ESI标签信息,也能完成ESI邻接检测事件传递。It is worth noting that using the 10-byte value of ESI as the ESI identification information removes the dependency of the exemplary embodiment 5 on the ESI label and the MPLS EVPN, even if each PE node only supports VXLAN EVPN and does not distribute ESI label information. Can complete the ESI adjacency detection event delivery.
值得注意的是,以更新负荷分担转发信息为目的而在特定EVPN实例中为某个ESI发送ARP插入报文,在发送端不受所述ESI在所述EVPN实例中是否DF状态的影响。It is worth noting that the ARP insertion message is sent to an ESI in a specific EVPN instance for the purpose of updating the load sharing forwarding information, and the sender is not affected by the DF state of the ESI in the EVPN instance.
示例性实施例7 Exemplary embodiment 7
除特殊说明之处以外,本示例性实施例与示例性实施例6相同。The present exemplary embodiment is the same as Exemplary Embodiment 6, except where specifically stated.
与示例性实施例6不同,本示例性实施例建立的是MPLS EVPN业务而不是VXLAN EVPN业务。Unlike the exemplary embodiment 6, the present exemplary embodiment establishes an MPLS EVPN service instead of a VXLAN EVPN service.
与示例性实施例6不同,本示例性实施例采用ARP插入报文的发送者协议地址填写为PE1发布EVPN路由时填写的BGP下一跳地址,ARP插入报文的其余特征同示例性实施例6。Different from the exemplary embodiment 6, the exemplary embodiment uses the sender protocol address of the ARP insertion message to fill in the BGP next hop address filled in when the E1 route is advertised by the PE1. The remaining features of the ARP insertion packet are the same as the exemplary embodiment. 6.
与示例性实施例5不同,在本示例性实施例中,取所述ARP插入报文的发送者协议地址记为NH1,并将由<ESI1,EVI1,BD1>标识的负荷分 担转发信息集合中由NH1标识的那条转发信息从该集合中移出。Different from the exemplary embodiment 5, in the present exemplary embodiment, the sender protocol address of the ARP insertion message is recorded as NH1, and the load sharing forwarding information set identified by <ESI1, EVI1, BD1> is The forwarding information identified by NH1 is removed from the set.
值得注意的是,PE3结点由于不是ESI1的邻接结点,它不为ESI1分配ESI标签,因此,PE1在给PE3发送ARP插入报文时无法像其给PE2发送ARP插入报文时那样采用ESI标签作为ESI1的ESI标识信息,采用ESI1的10字节ESI值作为ESI标识息解决了PE1和PE3之间的ESI标识问题。It is worth noting that the PE3 node is not an ESI1 adjacency node. It does not assign an ESI label to ESI1. Therefore, when PE1 sends an ARP insertion packet to PE3, it cannot use ESI as it sends an ARP insertion packet to PE2. As the ESI identification information of ESI1, the label uses ESI1's 10-byte ESI value as the ESI identifier to solve the ESI identification problem between PE1 and PE3.
值得注意的是,PE1发给PE3的MPLS EVPN数据报文中并不存在与PE1发布EVPN路由时填写的BGP下一跳地址相等的字段,因此,必须在ARP插入报文中携带该字段,采用发送者协议地址携带该字段,解决了此问题。It is worth noting that the MPLS EVPN data packet sent by PE1 to PE3 does not have the same BGP next hop address as the PE1 advertises the EVPN route. Therefore, the field must be carried in the ARP insertion packet. The sender protocol address carries this field, which solves this problem.
值得注意的是,上述ARP插入报文,也可以用邻居发现协议NDP的邻居请求报文来代替,邻居请求报文在IPv6中的作用与ARP报文在IPv4中的作用相同;当使用邻居请求报文替代ARP插入报文时,其各字段的取值规则,可参考上述ARP插入报文的对应实施方式进行。It is noted that the above-mentioned ARP insertion message can also be replaced by the neighbor discovery protocol NDP neighbor request message. The role of the neighbor request message in IPv6 is the same as that of the ARP message in IPv4; When a packet is substituted for an ARP insertion packet, the rules for the value of each field can be referred to the corresponding implementation of the ARP insertion packet.
示例性实施例8 Exemplary embodiment 8
除特殊说明之处以外,本示例性实施例与示例性实施例1相同。The present exemplary embodiment is the same as Exemplary Embodiment 1, except where specifically stated.
与示例性实施例1不同,本示例性实施例建立的是按专利201711257639.8示例性实施例18扩展了的EVPN业务而不是PBB EVPN业务。Unlike the exemplary embodiment 1, the present exemplary embodiment establishes an EVPN service that is extended according to the exemplary embodiment 18 of the patent 201711257639.8 instead of the PBB EVPN service.
值得注意的是,这种扩展EVPN业务与PBB EVPN业务具有类似的技术效果,其中,ESI IP发挥的是与PBB B-MAC类似的作用,通过ESI IP可以唯一定位一个本地ESI;此外,这种EVPN业务也存在I组件实例和B组件实例,其B组件实例为IP-VRF,而PBB EVPN的B组件实例为MAC-VRF。It is worth noting that this extended EVPN service has similar technical effects as the PBB EVPN service. Among them, ESI IP plays a similar role to PBB B-MAC, and it can uniquely locate a local ESI through ESI IP; The EVPN service also has an I component instance and a B component instance, the B component instance is IP-VRF, and the B component instance of the PBB EVPN is MAC-VRF.
与示例性实施例1不同,本示例性实施例采用ESI IP作为ESI标识信 息,并在ARP插入报文中传输,并以ESI IP获取对应的ESI值。Unlike the exemplary embodiment 1, the present exemplary embodiment adopts ESI IP as the ESI identification information, and transmits in the ARP insertion message, and acquires the corresponding ESI value with the ESI IP.
与示例性实施例1不同,本示例性实施例在PE1与PE3之间也部署所述ESI状态变化传播快速通道和配套的ESI状态解映射模块。Unlike the exemplary embodiment 1, the present exemplary embodiment also deploys the ESI state change propagation fast channel and the associated ESI state demapping module between PE1 and PE3.
与示例性实施例1不同,本示例性实施例采用第二类ARP扩展报文作为ARP插入报文的基础格式,然后将其目标协议地址填写为PE1发布EVPN路由时填写的BGP下一跳地址。Different from the exemplary embodiment 1, the exemplary embodiment adopts the second type of ARP extended message as the basic format of the ARP insertion message, and then fills in the target protocol address as the BGP next hop address filled in when the PE1 advertises the EVPN route. .
与示例性实施例1不同,在本示例性实施例中,除PE2结点与示例性实施例1类似地响应ARP插入报文之外,PE3结点也会响应ARP插入报文,PE3结点上ESI转发表管理模块按如下规则响应所收到的ARP插入报文:将所收到的ARP插入报文所属的I组件实例记为EVI1,将所述EVI1对应的B组件实例记为B_EVI1,将所述ARP插入报文外层的VXLAN外层源IP记为ESI_IP1,将所述ARP插入报文的目标协议地址字段记为NH1,则<B_EVI1,ESI_IP1>就对应到一组EVPN负荷分担信息集合,然后将所述集合中与NH1对应的那条转发信息从中移出。Unlike the exemplary embodiment 1, in the present exemplary embodiment, in addition to the PE2 node responding to the ARP insertion message similarly to the exemplary embodiment 1, the PE3 node also responds to the ARP insertion message, the PE3 node The upper ESI forwarding table management module responds to the received ARP insertion message according to the following rules: the I component instance to which the received ARP insertion message belongs is recorded as EVI1, and the B component instance corresponding to the EVI1 is recorded as B_EVI1. The VXLAN outer source IP of the outer layer of the ARP insertion packet is recorded as ESI_IP1, and the target protocol address field of the ARP insertion packet is recorded as NH1, and <B_EVI1, ESI_IP1> corresponds to a set of EVPN load sharing information. The set is then removed from the forwarding information corresponding to NH1 in the set.
本领域的技术人员都可以理解,本申请不仅可以实施在all-active模式的ESI上,也可以实施在single-active模式的ESI上。当实施在single-active模式的ESI上时,则只需清除所述I组件实例EVI1中学到的VXLAN目的IP为所述ESI_IP1的所有用户MAC条目即可。由于这种扩展EVPN与PBB EVPN的相似性,本领域的技术人员不难参考示例性实施例1和本示例性实施例从而将本示例性实施例移植到PBB EVPN中。Those skilled in the art can understand that the present application can be implemented not only on the ESI in the all-active mode but also on the ESI in the single-active mode. When implemented on the ESI in the single-active mode, it is only necessary to clear all the user MAC entries of the VXLAN destination IP learned by the I component instance EVI1 to the ESI_IP1. Due to the similarity between such extended EVPN and PBB EVPN, those skilled in the art can easily refer to the exemplary embodiment 1 and the present exemplary embodiment to migrate the present exemplary embodiment into the PBB EVPN.
示例性实施例9 Exemplary embodiment 9
除特殊说明之处以外,本示例性实施例与示例性实施例7相同。The present exemplary embodiment is the same as Exemplary Embodiment 7, except where specifically stated.
与示例性实施例7不同,本示例性实施例ARP插入报文并不使用操作码字段作为特征字段,而是在EVPN数据封装中使用控制字,将控制字作为ARP插入报文的特征字段。具体地,控制字格式同PW-ACH格式, 同时,新增一种信道类型取值为TBD3,表示ARP插入报文。上述特征字段用于区分ARP插入报文与其它ARP报文。Unlike the exemplary embodiment 7, the present exemplary embodiment ARP insertion message does not use the opcode field as the feature field, but uses the control word in the EVPN data encapsulation as the feature field of the ARP insertion message. Specifically, the control word format is the same as the PW-ACH format. At the same time, a new channel type value is TBD3, indicating that the ARP inserts the message. The above feature field is used to distinguish between ARP insertion packets and other ARP packets.
值得注意的是,不只是MPLS EVPN可以使用控制字,VXLAN EVPN在VXLAN-GPE头的前4字节可看作是另一种控制字,PBB EVPN的B组件实例作为一种VPLS实例,也可以使用控制字。It is worth noting that not only MPLS EVPN can use the control word, VXLAN EVPN can be regarded as another control word in the first 4 bytes of the VXLAN-GPE header. The B component instance of PBB EVPN can also be used as a VPLS instance. Use the control word.
值得注意的是,上述ARP插入报文,也可以用MAC-Ping插入报文来代替,MAC Ping插入报文具有MAC Ping报文的格式,MAC Ping报文是用于探测某个MAC地址在EVPN中是否可达的协议报文,MAC Ping报文也可以是用于探测某个MAC条目的出口是否为接收端PE的本地AC接口的协议报文;当使用MAC Ping报文用于替代ARP插入报文时,其特征字段可以选择目的MAC地址填写为指定值的方式,并在MAC Ping报文的PDU中携带ESI故障标识信息。It is worth noting that the above-mentioned ARP insertion packet can also be replaced by a MAC-Ping insertion packet. The MAC Ping insertion packet has a MAC ping packet format, and the MAC ping packet is used to detect a certain MAC address in the EVPN. If the protocol packet is reachable, the MAC ping packet can be used to detect whether the egress of a MAC entry is the protocol packet of the local AC interface of the receiving PE. When the MAC ping packet is used instead of the ARP insertion. In the case of a packet, the feature field can be configured to fill in the destination MAC address with the specified value, and carry the ESI fault identification information in the PDU of the MAC ping packet.
示例性实施例10Exemplary embodiment 10
除特殊说明之处以外,本示例性实施例与示例性实施例8相同。The present exemplary embodiment is the same as Exemplary Embodiment 8 except where specifically stated.
与示例性实施例8不同,本示例性实施例并不使用ARP插入报文来传递ESI故障标识信息,而是使用Ping报文来传递ESI故障标识信息,并且,所述Ping报文是在B组件实例中转发,而不是在I组件实例中转发;其中,由于示例性实施例8中B组件实例是一个IP-VRF,因此,所述Ping报文采用的数据面封装为IP-VRF的数据报文封装;Unlike the exemplary embodiment 8, the present exemplary embodiment does not use the ARP insertion message to deliver the ESI failure identification information, but uses the ping message to deliver the ESI failure identification information, and the ping message is in the B. The component instance is forwarded instead of being forwarded in the I component instance; wherein, since the B component instance in the exemplary embodiment 8 is an IP-VRF, the data plane of the ping message is encapsulated into IP-VRF data. Message encapsulation
值得注意的是,值得注意的是,B组件实例和I组件实例都是示例性实施例8的中EVPN实例,就跟B组件实例和I组件实例都是PBB EVPN的EVPN实例一样。It should be noted that it is worth noting that both the B component instance and the I component instance are the EVPN instances in the exemplary embodiment 8, just like the B component instance and the I component instance are both EBB instances of PBB EVPN.
值得特别注意的是,本示例性实施例中的Ping报文区别于IP-VRF中的普通Ping报文,其ICMP类型字段取值为TBD5,表示新的Echo建议消息,即请求目的IP地址所在结点对源IP(填写为发生故障的ESI对应 的IP地址,即ESI IP地址)发送一个ICMP Echo报文,同时,收到Echo建议消息意味着源IP在该消息源结点上已经失效。It is to be noted that the ping packet in the exemplary embodiment is different from the normal ping packet in the IP-VRF, and the ICMP type field has a value of TBD5, indicating a new Echo suggestion message, that is, the request destination IP address is located. The node sends an ICMP Echo message to the source IP (filled in the IP address corresponding to the failed ESI, that is, the ESI IP address). At the same time, receiving the Echo suggestion message means that the source IP has expired on the source node.
值得注意的是,所述ICMP Echo建议报文的目的IP所在结点可以应答一个ICMP Echo报文,也可以不应答,如果目的IP所在结点选择应答一个ICMP Echo报文,则源IP所在结点不保证立即应答相应的ICMP Echo Reply报文,而是等该IP恢复有效以后再回复对应的ICMP Echo Replay报文。It is worth noting that the node where the destination IP address of the ICMP Echo message is sent can respond to an ICMP Echo message or not. If the node where the destination IP is located chooses to answer an ICMP Echo message, the source IP is at the node. The point does not guarantee that the corresponding ICMP Echo Reply message will be answered immediately, but the corresponding ICMP Echo Replay message will be returned after the IP recovery is valid.
值得注意的是,ICMP Echo/Echo Reply报文又称为Ping报文,在PBB EVPN中,B组件是一个VPLS实例,此时,Ping报文的格式是MAC Ping报文的格式,MAC Ping是用来检测MAC地址连通性的协议,各厂家有不同的报文格式,但都符合Echo/Replay交互模式,在此基础上,可以扩展一个Echo建议报文。值得注意的是,I组件实例中也可以采用MAC Ping报文承载ESI故障标识信息。It is worth noting that the ICMP Echo/Echo Reply message is also called a ping message. In the PBB EVPN, the B component is a VPLS instance. In this case, the format of the ping packet is the format of the MAC ping packet. Protocols used to detect connectivity of MAC addresses. Different vendors have different packet formats, but they all conform to the Echo/Replay interaction mode. On this basis, an Echo recommendation packet can be extended. It is worth noting that the MAC ping packet can also carry the ESI fault identification information in the I component instance.
实施例二 Embodiment 2
在本实施例中还提供了一种以太网段标识邻接检测处理装置,该装置用于实现上述实施例,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In the embodiment, an Ethernet segment identification adjacency detection processing device is further provided, and the device is used to implement the foregoing embodiment, and details are not described herein. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图9是根据本申请实施例的以太网段标识邻接检测处理装置的结构框图(一),如图9所示,该装置包括:FIG. 9 is a structural block diagram (1) of an Ethernet segment identification adjacency detection processing apparatus according to an embodiment of the present application. As shown in FIG. 9, the apparatus includes:
检测模块901,设置为检测到以太网分段标识ESI的链路上的ESI邻接检测事件,其中,ESI邻接检测事件用于指示对ESI标识的链路故障进行检测的结果的变化;The detecting module 901 is configured to detect an ESI adjacency detection event on the link of the Ethernet segment identifier ESI, where the ESI adjacency detection event is used to indicate a change of a result of detecting the link fault identified by the ESI;
通知模块903,设置为向第二网络侧边缘设备PE发送第一报文,第一报文用于将ESI邻接检测事件通知给第二PE,其中,第一报文中携带 有ESI的故障标识信息,故障标识信息用于指示第二PE执行与ESI对应的转发状态的更新流程。The notification module 903 is configured to send a first packet to the second network side edge device PE, where the first packet is used to notify the second PE of the ESI adjacency detection event, where the first packet carries the fault identifier of the ESI. The information, the fault identification information is used to instruct the second PE to perform an update process of the forwarding state corresponding to the ESI.
通过上述模块的作用,检测到以太网分段标识ESI的链路上的ESI邻接检测事件,其中,ESI邻接检测事件用于指示对ESI标识的链路故障进行检测的结果的变化;向第二网络侧边缘设备PE发送第一报文,第一报文用于将ESI邻接检测事件通知给第二PE,其中,第一报文中携带有ESI的故障标识信息,故障标识信息用于指示第二PE执行与ESI对应的转发状态的更新流程;因此,可以解决相关技术中ESI邻接检测事件只能依赖于BGP路由传播,收敛性能很难达到BFD级的性能的问题,达到了在远端PE上完成快速的转发路径切换,减少ES链路故障收敛过程中的丢包时间的效果。The ESI adjacency detection event on the link of the Ethernet segment identifier ESI is detected by the function of the above module, wherein the ESI adjacency detection event is used to indicate a change in the result of detecting the link fault identified by the ESI; The network edge device PE sends a first packet, where the first packet is used to notify the second PE of the ESI adjacency detection event, where the first packet carries the fault identification information of the ESI, and the fault identifier information is used to indicate the first packet. The second PE performs the update process of the forwarding state corresponding to the ESI; therefore, the problem that the ESI adjacency detection event in the related art can only depend on the BGP route propagation, and the convergence performance is difficult to achieve the performance of the BFD level, reaches the remote PE. The fast forwarding path switching is completed to reduce the packet loss time during the ES link failure convergence process.
可选地,检测模块901,还设置为通过以下方式至少之一,检测到ESI标识的链路上的ESI邻接检测事件:通过标准第一英里以太网EFM技术的方式;通过标准Y.1731传送操作管理维护TP OAM TMS技术的方式;通过标准连通性故障管理CFM技术的方式;通过检测所述ESI标识的链路上的物理信号的方式。Optionally, the detecting module 901 is further configured to detect an ESI adjacency detection event on the link identified by the ESI by at least one of: passing the standard first mile Ethernet EFM technology; transmitting through the standard Y.1731 The manner in which the management manages the TP OAM TMS technology; the way in which the standard connectivity fault management CFM technology is passed; and the manner in which the physical signals on the link identified by the ESI are detected.
可选地,ESI的故障标识信息至少包括以下之一:ESI的部分二进制位;ESI对应的运营商骨干桥接骨干MAC地址PBB B-MAC或ESI对应的PBB B-MAC中的部分二进制位;ESI对应的IP地址;ESI对应的ESI标签;用于指示ESI的主接口存在故障的编码信息;用于指示ESI的ESI子接口存在故障的编码信息,其中,ESI子接口为ESI对应的主接口的子接口;用于指示ESI标识的链路故障所在节点的节点标识信息。Optionally, the fault identification information of the ESI includes at least one of the following: a partial binary bit of the ESI; a carrier backbone bridge MAC address PBB B-MAC corresponding to the ESI or a partial binary bit in the PBB B-MAC corresponding to the ESI; Corresponding IP address; ESI label corresponding to ESI; coding information indicating that the main interface of the ESI is faulty; coding information indicating that the ESI sub-interface of the ESI is faulty, wherein the ESI sub-interface is the main interface corresponding to the ESI Sub-interface; the node identification information of the node where the link fault of the ESI identifier is indicated.
可选地,封装模块905,还设置为采用以下方式至少之一按照ARP报文对ESI邻接检测事件进行封装:Optionally, the encapsulating module 905 is further configured to encapsulate the ESI adjacency detection event according to the ARP packet in at least one of the following manners:
将ARP报文封装到EVPN报文中,其中,EVPN报文按照ESI的ESI子接口所绑定的EVPN实例中的数据报文格式进行封装;The ARP packet is encapsulated into an EVPN packet, where the EVPN packet is encapsulated according to the data packet format in the EVPN instance bound to the ESI sub-interface.
将ARP的PDU部分报文按照ARP探针报文的PDU格式进行封装, 其中,PDU中的目标协议地址为指定的IP地址;The PDU part of the ARP packet is encapsulated according to the PDU format of the ARP probe packet, where the target protocol address in the PDU is the specified IP address.
将ARP报文的发送者硬件地址字段设置为携带有ESI的故障标识信息;Set the sender hardware address field of the ARP packet to the fault identification information carrying the ESI.
将ARP报文的操作码设置为预定值;Set the operation code of the ARP packet to a predetermined value;
将ARP报文的发送者协议地址字段设置为携带有ESI的故障标识信息;Set the sender protocol address field of the ARP packet to the fault identification information carrying the ESI.
将ARP报文的以太网源MAC设置为第一PE的MAC地址;Set the Ethernet source MAC address of the ARP packet to the MAC address of the first PE.
将ARP报文的以太网源MAC设置为ESI对应的主接口或ESI的ESI子接口的MAC地址;Set the Ethernet source MAC address of the ARP packet to the MAC address of the ESI sub-interface corresponding to the ESI or the ESI.
将ARP报文的以太网源MAC设置为ESI的ESI子接口所绑定的EVPN实例的集成路由桥接IRB接口的MAC地址;Set the Ethernet source MAC address of the ARP packet to the MAC address of the integrated routing bridged IRB interface of the EVPN instance bound to the ESI sub-interface of the ESI.
将ARP报文的以太网源MAC设置为指定值;Set the Ethernet source MAC address of the ARP packet to the specified value.
将ARP报文的以太网目的MAC地址设置为预定值;Set the Ethernet destination MAC address of the ARP packet to a predetermined value.
将ARP报文中目标协议地址设置为携带有ESI的故障标识信息;Set the target protocol address in the ARP packet to the fault identification information carrying the ESI.
将ARP报文中目标硬件地址设置为携带有ESI故障标识信息;Set the target hardware address in the ARP packet to carry the ESI fault identification information.
使用控制字将ARP报文封装到EVPN数据报文中,其中控制字中的信道类型设置为指定值。The control word is used to encapsulate the ARP packet into the EVPN data packet, where the channel type in the control word is set to the specified value.
可选地,图10是根据本申请实施例的以太网段标识邻接检测处理装置的结构框图(二),如图10所示,还包括:封装模块905,设置为通过至少以下格式之一,对ESI邻接检测事件进行封装:对等双向转发检测BFD的连锁路径失效报文;传送操作管理维护TP OAM会话的客户信号失效指示CSF报文;媒体接入控制MAC Ping报文;地址解析协议ARP报文;邻居发现协议NDP的邻居请求报文;因特网控制报文协议ICMP报文。Optionally, FIG. 10 is a structural block diagram (2) of an Ethernet segment identification adjacency detection processing apparatus according to an embodiment of the present application. As shown in FIG. 10, the method further includes: a packaging module 905, configured to pass at least one of the following formats, The ESI adjacency detection event is encapsulated: the peer-to-peer bidirectional forwarding detection BFD chain path failure message; the transmission operation management and maintenance TP OAM session client signal failure indication CSF message; the media access control MAC ping message; the address resolution protocol ARP Packet; neighbor discovery protocol NDP neighbor request message; Internet control message protocol ICMP message.
可选地,封装模块905,还设置为采用以下方式至少之一按照ARP报文对ESI邻接检测事件进行封装:Optionally, the encapsulating module 905 is further configured to encapsulate the ESI adjacency detection event according to the ARP packet in at least one of the following manners:
将ARP报文封装到EVPN报文中,其中,EVPN报文按照ESI的ESI 子接口所绑定的EVPN实例中的数据报文格式进行封装;The ARP packet is encapsulated in an EVPN packet. The EVPN packet is encapsulated according to the data packet format in the EVPN instance bound to the ESI sub-interface.
将ARP的PDU部分报文按照ARP探针报文的PDU格式进行封装,其中,PDU中的目标协议地址为指定的IP地址;The PDU part of the ARP packet is encapsulated according to the PDU format of the ARP probe packet, where the target protocol address in the PDU is the specified IP address.
将ARP报文的发送者硬件地址字段设置为携带有ESI的故障标识信息;Set the sender hardware address field of the ARP packet to the fault identification information carrying the ESI.
将ARP报文的操作码设置为预定值;Set the operation code of the ARP packet to a predetermined value;
将ARP报文的发送者协议地址字段设置为携带有ESI的故障标识信息;Set the sender protocol address field of the ARP packet to the fault identification information carrying the ESI.
将ARP报文的以太网源MAC设置为第一PE的MAC地址;Set the Ethernet source MAC address of the ARP packet to the MAC address of the first PE.
将ARP报文的以太网源MAC设置为ESI对应的主接口或ESI的ESI子接口的MAC地址;Set the Ethernet source MAC address of the ARP packet to the MAC address of the ESI sub-interface corresponding to the ESI or the ESI.
将ARP报文的以太网源MAC设置为ESI的ESI子接口所绑定的EVPN实例的集成路由桥接IRB接口的MAC地址;Set the Ethernet source MAC address of the ARP packet to the MAC address of the integrated routing bridged IRB interface of the EVPN instance bound to the ESI sub-interface of the ESI.
将ARP报文的以太网源MAC设置为指定值;Set the Ethernet source MAC address of the ARP packet to the specified value.
将ARP报文的以太网目的MAC地址设置为预定值;Set the Ethernet destination MAC address of the ARP packet to a predetermined value.
将ARP报文中目标协议地址设置为携带有ESI的故障标识信息;Set the target protocol address in the ARP packet to the fault identification information carrying the ESI.
将ARP报文中目标硬件地址设置为携带有ESI故障标识信息;Set the target hardware address in the ARP packet to carry the ESI fault identification information.
使用控制字将ARP报文封装到EVPN数据报文中,其中控制字中的信道类型设置为指定值。The control word is used to encapsulate the ARP packet into the EVPN data packet, where the channel type in the control word is set to the specified value.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination. The forms are located in different processors.
示例性地,通过以下实施例对本申请实施例的以太网段标识邻接检测处理装置进行说明,该装置中包括:A:EVPN控制面模块,按RFC7432对各类EVPN路由进行发布和管理(因此要内置一个BGP模块,实际上,这个模块可以细分很多子模块,但由于不是本申请的创新部分,这里只笼统作为一个模块),使之具有基本EVPN功能,其中包括与本申请具有性 能对照关系的RT-1类型EVPN路由的管理;B:EVPN转发表管理模块:按RFC7432形成ESI转发成员列表,并按照EVPN控制面模块下发的EAD路由生效消息和撤销消息进行ESI转发路径更新。Illustratively, an Ethernet segment identification adjacency detection processing apparatus according to an embodiment of the present application is described by using an A: EVPN control plane module, which distributes and manages various EVPN routes according to RFC7432 (thus A BGP module is built in. In fact, this module can subdivide many sub-modules, but since it is not an innovative part of this application, it is only used as a module here, so that it has basic EVPN functions, including performance comparison with this application. Management of the RT-type EVPN route; B: EVPN forwarding table management module: The ESI forwarding member list is formed according to RFC7432, and the ESI forwarding path update is performed according to the EAD route validation message and the revocation message delivered by the EVPN control plane module.
该装置还包括:The device also includes:
C:ESI邻接检测模块(可以相当于上述实施例检测模块901的功能):当某个ESI在本结点存在接入链路时,该链路上的故障检测属于ESI邻接检测模块,因此,ESI邻接检测模块通常内置一个link BFD、EFM、CFM等现有检测模块。本申请中ESI邻接检测模块相比这些现有检测模块,其能将检测结果通知给ESI状态变化传播快速通道。C: ESI adjacency detection module (which may be equivalent to the function of the detection module 901 of the above embodiment): when an ESI has an access link at the node, the fault detection on the link belongs to the ESI adjacency detection module, therefore, The ESI Adjacency Detection Module usually has an existing detection module such as link BFD, EFM, or CFM. In the present application, the ESI adjacency detection module can notify the ESI state change propagation fast channel of the detection result compared to the existing detection modules.
D:ESI状态映射模块:映射指的是将ESI邻接检测模块通知过来的ES检测状态变化事件从相应ESI状态变化快速通道中以相应格式发出;D: ESI state mapping module: mapping refers to the ES detection state change event notified by the ESI neighbor detection module from the corresponding ESI state change fast channel in a corresponding format;
E:ESI状态变化传播快速通道:传播指的是将某个ESI在本结点的对应链路发生了故障这一事件通过BFD等快速通道传递到远端结点,反过来,接收远端结点传递过来的远端ESI故障通知事件也是本模块的功能。因此,ESI状态变化传播快速通道通常内置一个peer BFD、IP BFD等现有检测模块,作为快速通道。E: ESI state change propagation fast channel: Propagation refers to the event that a certain ESI is faulty on the corresponding link of this node is transmitted to the far-end node through a fast channel such as BFD, and in turn, receives the far-end node. The remote ESI fault notification event passed by the point is also a function of this module. Therefore, the ESI state change propagation fast channel usually has a built-in detection module such as peer BFD and IP BFD as a fast channel.
F:ESI状态解映射模块:联动指的是将E模块(即ESI状态变化传播快速通道)通知过来的远端ESI故障通知事件传递给B模块(即EVPN转发表管理模块),并且,其中,其事件源不是来自于EAD路由,但在B模块看来,其与A模块(即EVPN控制面模块)通知过来的EAD路由下发/撤销具有同等效果(甚至完全作为同一事件对待),但时间上要先于EAD路由。F: ESI state demapping module: Linkage refers to the remote ESI fault notification event notified by the E module (ie, the ESI state change propagation fast channel) to the B module (ie, the EVPN forwarding table management module), and, The source of the event is not from the EAD route, but in the view of the B module, it has the same effect as the EAD route delivery/revocation notified by the A module (ie, the EVPN control plane module) (even completely treated as the same event), but time It must be routed before EAD.
A、B、C、D、E、F之间的关系,如图11所示,箭头表示事件通知的顺序,是从事件源到最终与RFC7432固有模块(即模块B)之间进行联动的过程。The relationship between A, B, C, D, E, and F, as shown in Figure 11, the arrow indicates the order of event notification, which is the process from the event source to the final interaction with the RFC7432 intrinsic module (ie, module B). .
本申请实施例的以太网段标识邻接检测处理方法包括以下步骤:The Ethernet segment identification adjacency detection processing method in this embodiment of the present application includes the following steps:
第一步,ESI邻接检测模块检测到该ES上的链路故障,包括物理链 路故障;In the first step, the ESI adjacency detection module detects a link failure on the ES, including a physical link failure;
第二步,ESI邻接检测模块将该故障通知到ESI状态映射模块;In the second step, the ESI adjacency detection module notifies the ESI status mapping module of the fault;
第三步,ESI状态映射模块将该故障通知到ESI状态变化传播快速通道;In the third step, the ESI state mapping module notifies the fault to the ESI state change propagation fast channel;
第四步,ESI状态变化传播快速通道将该故障通过peer BFD等快速故障联动通道,以特殊格式传播到远端PE;The fourth step, the ESI state change propagation fast channel passes the fault to the remote PE through a fast fault linkage channel such as peer BFD;
第五步,在远端PE上,peer BFD等快速故障联动通道,收到特殊格式的故障传递消息,得知为ESI邻接检测事件传播消息,并将该消息通知给ESI状态解映射模块;从中解析出哪个ESI对应的ES在哪个远端PE上发生了故障,然后通知远端ESI故障联动模块;In the fifth step, on the remote PE, a fast fault linkage channel such as peer BFD receives a fault transfer message in a special format, and learns to propagate the message for the ESI adjacency detection event, and notifies the ESI state demapping module of the message; Parsing which ESI corresponding ES has failed on which remote PE, and then notifying the remote ESI fault linkage module;
第六步,ESI故障解映射模块得知某个ESI或某ESI上的某个Ethernet Tag发生故障,将该故障通知给EVPN转发表管理模块进行转发路径切换。In the sixth step, the ESI fault demapping module learns that a certain Ethernet tag on an ESI or an ESI has failed, and notifies the EVPN forwarding table management module of the fault to switch the forwarding path.
实施例三 Embodiment 3
在本实施例中还提供了一种以太网段标识邻接检测处理装置,该装置用于实现上述实施例,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In the embodiment, an Ethernet segment identification adjacency detection processing device is further provided, and the device is used to implement the foregoing embodiment, and details are not described herein. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图12是根据本申请实施例的以太网段标识邻接检测处理装置的结构框图(四),如图12所示,该装置包括:FIG. 12 is a structural block diagram (4) of an Ethernet segment identification adjacency detection processing apparatus according to an embodiment of the present application. As shown in FIG. 12, the apparatus includes:
接收模块131,设置为接收第一PE发送的第一报文,其中,第一报文用于将第一PE检测到的以太网分段标识ESI的链路上的ESI邻接检测事件通知给上述装置,所述ESI邻接检测事件用于指示对ESI标识的链路故障进行检测的结果的变化;其中,第一报文中携带有所述ESI的故障标识信息;The receiving module 131 is configured to receive the first packet sent by the first PE, where the first packet is used to notify the ESI adjacency detection event on the link of the Ethernet segment identifier ESI detected by the first PE to the foregoing The device, the ESI adjacency detection event is used to indicate a change in a result of detecting a link failure identified by the ESI; wherein the first message carries the fault identification information of the ESI;
更新模块133,设置为根据故障标识信息执行与ESI对应的转发状态的更新流程。The update module 133 is configured to perform an update flow of the forwarding state corresponding to the ESI according to the failure identification information.
通过上述模块的作用,接收第一PE发送的第一报文,其中,第一报文用于将第一PE检测到的以太网分段标识ESI的链路上的ESI邻接检测事件通知给上述装置,ESI邻接检测事件用于指示对ESI标识的链路故障进行检测的结果的变化;其中,第一报文中携带有所述ESI的故障标识信息;根据故障标识信息执行与ESI对应的转发状态的更新流程;因此,可以解决相关技术中ESI邻接检测事件只能依赖于BGP路由传播,收敛性能很难达到BFD级的性能的问题,达到了在远端PE上完成快速的转发路径切换,减少ES链路故障收敛过程中的丢包时间的效果。Receiving, by using the foregoing module, the first packet sent by the first PE, where the first packet is used to notify the ESI adjacency detection event on the link of the Ethernet segment identifier ESI detected by the first PE to the foregoing The device, the ESI adjacency detection event is used to indicate a change in the result of detecting the link fault identified by the ESI; wherein the first packet carries the fault identification information of the ESI; and the forwarding corresponding to the ESI is performed according to the fault identifier information. The update process of the state; therefore, the problem that the ESI adjacency detection event in the related art can only rely on the BGP route propagation, the convergence performance is difficult to achieve the performance of the BFD level, and the fast forwarding path switching is completed on the remote PE. Reduce the effect of packet loss time during ES link failure convergence.
可选地,接收模块131,还设置为接收通过至少以下格式之一,对ESI邻接检测事件进行封装的控制报文:对等双向转发检测BFD的连锁路径失效报文;传送操作管理维护TP OAM会话的客户信号失效指示CSF报文;地址解析协议ARP报文;邻居发现协议NDP的邻居请求报文;ICMP报文;媒体接入控制MAC Ping报文。Optionally, the receiving module 131 is further configured to receive, by using at least one of the following formats, a control packet that encapsulates an ESI adjacency detection event: a peer-to-peer bidirectional forwarding detection BFD chain path invalid packet; a transport operation management and maintenance TP OAM The client signal of the session is invalid, indicating the CSF packet, the address resolution protocol ARP packet, the neighbor discovery protocol NDP neighbor request packet, the ICMP packet, and the media access control MAC ping packet.
可选地,ESI的故障标识信息至少包括以下之一:ESI的部分二进制位;ESI对应的PBB B-MAC或ESI对应的PBB B-MAC中的部分二进制位;ESI对应的IP地址;ESI对应的ESI标签;用于指示ESI对应的主接口存在故障的编码信息;用于指示ESI的ESI子接口存在故障的编码信息,其中,ESI子接口为ESI对应的主接口的子接口;用于指示ESI标识的链路故障所在节点的节点标识信息。Optionally, the fault identification information of the ESI includes at least one of: a partial binary bit of the ESI; a PBB B-MAC corresponding to the ESI or a partial binary bit in the PBB B-MAC corresponding to the ESI; an IP address corresponding to the ESI; and an ESI corresponding The ESI tag is used to indicate the coding information of the main interface corresponding to the ESI; the coding information for indicating that the ESI sub-interface of the ESI is faulty, wherein the ESI sub-interface is a sub-interface of the main interface corresponding to the ESI; The node identification information of the node where the link fault of the ESI is located.
可选地,接收模块131,还设置为接收根据以下方式至少之一按照ARP报文对ESI邻接检测事件进行封装后的报文:Optionally, the receiving module 131 is further configured to: receive the packet encapsulated by the ESI neighbor detection event according to the ARP packet according to at least one of the following manners:
ARP报文是封装到按照ESI的ESI子接口所绑定的EVPN实例中的数据报文格式封装的EVPN报文中的报文;The ARP packet is encapsulated in an EVPN packet encapsulated in the data packet format of the EVPN instance bound to the ESI sub-interface.
ARP报文的PDU部分是按照ARP探针报文的PDU格式进行封装的报文,其中,PDU中的目标协议地址为指定的IP地址;The PDU part of the ARP packet is a packet encapsulated according to the PDU format of the ARP probe packet, where the target protocol address in the PDU is a specified IP address.
ARP报文的发送者硬件地址字段携带有ESI的故障标识信息;The sender hardware address field of the ARP packet carries the fault identification information of the ESI.
ARP报文的操作码为预定值;The operation code of the ARP packet is a predetermined value.
ARP报文的发送者协议地址字段携带有ESI的故障标识信息;The sender protocol address field of the ARP packet carries the fault identification information of the ESI.
ARP报文的以太网源MAC为第一PE的MAC地址;The Ethernet source MAC address of the ARP packet is the MAC address of the first PE.
ARP报文的以太网源MAC为ESI对应的主接口或ESI的ESI子接口的MAC地址;The Ethernet source MAC address of the ARP packet is the MAC address of the ESI sub-interface corresponding to the ESI or the ESI sub-interface.
ARP报文的以太网源MAC为ESI的ESI子接口所绑定的EVPN实例的集成路由桥接IRB接口的MAC地址;The Ethernet source MAC address of the ARP packet is the MAC address of the integrated routing bridge of the EVPN instance bound to the ESI sub-interface of the ESI.
ARP报文的以太网源MAC为指定值。The Ethernet source MAC address of the ARP packet is the specified value.
可选地,更新模块,至少还设置为以下之一:改变ESI的ESI子接口所对应的DF/NDF/BDF状态;改变ESI对应的转发信息集合中相应下一跳信息的状态。Optionally, the update module is further configured to: change the DF/NDF/BDF state corresponding to the ESI sub-interface of the ESI; and change the state of the corresponding next hop information in the forwarding information set corresponding to the ESI.
可选地,图13是根据本申请实施例的以太网段标识邻接检测处理装置的结构框图(五),如图13所示,更新模块103包括:Optionally, FIG. 13 is a structural block diagram (5) of an Ethernet segment identification adjacency detection processing apparatus according to an embodiment of the present application. As shown in FIG. 13, the update module 103 includes:
确定单元1331,设置为根据ESI邻接检测事件确定待撤消事件对应的路由类型;生成单元1333,设置为生成与路由类型对应的预定路由撤消事件。The determining unit 1331 is configured to determine a route type corresponding to the to-be-revoked event according to the ESI adjacency detection event; and the generating unit 1333 is configured to generate a predetermined route revocation event corresponding to the route type.
可选地,如图13所示,上述装置还包括:解析单元135,设置为从控制报文中解析出ESI标识的邻接链路的状态;输入单元137,设置为在邻接链路的状态为故障中的情况下,与以太虚拟专用网EVPN控制面输入预定路由撤消事件时采用同一应用程序接口API接口输入预定路由撤消事件。Optionally, as shown in FIG. 13, the apparatus further includes: a parsing unit 135 configured to parse a state of the adjacent link of the ESI identifier from the control packet; and the input unit 137 is configured to be in a state of the adjacent link. In the case of a failure, the predetermined application interface API interface is used to input a predetermined route revocation event when the predetermined route revocation event is input with the Ethernet virtual private network EVPN control plane.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。上述实施例仅是示例性的描述,在实际应用中,第二PE可以向第一PE发送上述第一报文,第一PE接收该第一报文并执行与上述实施例中第二PE所执行的操作相对应的操作。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination. The forms are located in different processors. The foregoing embodiment is only an exemplary description. In an actual application, the second PE may send the first packet to the first PE, where the first PE receives the first packet and performs the second PE in the foregoing embodiment. The operation corresponding to the operation performed.
实施例四 Embodiment 4
本申请的实施例还提供了一种网络侧边缘设备,该网络侧边缘设备包括了上述实施例中的任一种以太网段标识邻接检测处理装置。The embodiment of the present application further provides a network side edge device, which includes any of the Ethernet segment identification adjacency detection processing devices in the foregoing embodiments.
实施例五 Embodiment 5
本申请的实施例还提供了一种存储介质,该存储介质包括存储的程序,其中,上述程序运行时执行上述实施例中的任一种以太网段标识邻接检测处理的方法。The embodiment of the present application further provides a storage medium, where the storage medium includes a stored program, wherein the foregoing program runs the method of performing any of the Ethernet segment identification adjacency detection processing in the foregoing embodiment.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in the embodiment, the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM). A variety of media that can store program code, such as a hard disk, a disk, or an optical disk.
实施例六 Embodiment 6
本申请的实施例还提供了一种处理器,该处理器设置为运行程序,其中,上述程序运行时执行上述实施例中的任一种以太网段标识邻接检测处理的方法。The embodiment of the present application further provides a processor configured to run a program, where the foregoing program runs the method of performing any of the Ethernet segment identification adjacency detection processing in the foregoing embodiment.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
显然,本领域的技术人员应该明白,上述的本申请的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本申请不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, which can be concentrated on a single computing device or distributed in a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the application is not limited to any particular combination of hardware and software.
以上所述仅为本申请的示例性实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保 护范围之内。The above description is only an exemplary embodiment of the present application, and is not intended to limit the present application, and various changes and modifications may be made to the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of this application are intended to be included within the scope of this application.
Claims (23)
- 一种以太网段标识邻接检测处理方法,包括:An Ethernet segment identification adjacency detection processing method includes:第一网络侧边缘设备PE检测到以太网分段标识ESI的链路上的ESI邻接检测事件,其中,所述ESI邻接检测事件用于指示对ESI标识的链路故障进行检测的结果的变化;The first network side edge device PE detects an ESI adjacency detection event on the link of the Ethernet segment identifier ESI, wherein the ESI adjacency detection event is used to indicate a change in a result of detecting a link failure identified by the ESI;所述第一PE向第二PE发送第一报文,所述第一报文用于将所述ESI邻接检测事件通知给所述第二PE,其中,所述第一报文中携带有所述ESI的故障标识信息,所述故障标识信息用于指示所述第二PE执行与所述ESI对应的转发状态的更新流程。The first PE sends a first packet to the second PE, where the first packet is used to notify the second PE of the ESI adjacency detection event, where the first packet carries The fault identification information of the ESI is used to indicate that the second PE performs an update process of the forwarding state corresponding to the ESI.
- 根据权利要求1所述的方法,其中,至少通过以下方式之一,检测到所述ESI标识的链路上的所述ESI邻接检测事件:The method of claim 1, wherein the ESI adjacency detection event on the link identified by the ESI is detected, at least by one of:通过标准第一英里以太网EFM技术的方式;Pass the standard first mile Ethernet EFM technology approach;通过标准Y.1731传送操作管理维护TP OAM TMS技术的方式;The way to manage and maintain TP OAM TMS technology through standard Y.1731 transport operations;通过标准连通性故障管理CFM技术的方式;The way to manage CFM technology through standard connectivity faults;通过检测所述ESI标识的链路上的物理信号的方式。By detecting the manner in which the physical signals on the link identified by the ESI.
- 根据权利要求1所述的方法,还包括:通过至少以下报文格式之一,对所述ESI邻接检测事件进行封装:The method of claim 1 further comprising: encapsulating the ESI adjacency detection event by at least one of the following message formats:对等双向转发检测BFD的连锁路径失效报文;Peer-to-peer bidirectional forwarding detects BFD chain path invalidation packets;传送操作管理维护TP OAM会话的客户信号失效指示CSF报文;The transmission operation management maintains a customer signal invalidation indication CSF message of the TP OAM session;地址解析协议ARP报文;Address resolution protocol ARP packet;邻居发现协议NDP的邻居请求报文;Neighbor discovery protocol NDP neighbor request message;因特网控制报文协议ICMP报文;Internet Control Message Protocol ICMP message;媒体接入控制MAC Ping报文。Media access controls MAC ping messages.
- 根据权利要求1所述的方法,其中,所述ESI的故障标识信息至少包括以下之一:The method of claim 1, wherein the fault identification information of the ESI comprises at least one of the following:所述ESI的部分二进制位;a partial binary bit of the ESI;所述ESI对应的运营商骨干桥接骨干MAC地址PBB B-MAC或所述ESI对应的PBB B-MAC中的部分二进制位;The operator backbone corresponding to the ESI bridges the backbone MAC address PBB B-MAC or a partial binary bit in the PBB B-MAC corresponding to the ESI;所述ESI对应的IP地址;The IP address corresponding to the ESI;所述ESI对应的ESI标签;The ESI label corresponding to the ESI;用于指示所述ESI对应的主接口存在故障的编码信息;Encoding information indicating that the primary interface corresponding to the ESI has a fault;用于指示所述ESI的ESI子接口存在故障的编码信息,其中,所述ESI子接口为所述ESI对应的主接口的子接口;Encoding information indicating that the ESI sub-interface of the ESI is faulty, wherein the ESI sub-interface is a sub-interface of the main interface corresponding to the ESI;用于指示所述ESI标识的链路故障所在节点的节点标识信息。Node identification information indicating a node where the link of the ESI identifier is faulty.
- 根据权利要求3所述的方法,其中,通过ARP报文对所述ESI邻接检测事件进行封装包括以下至少之一方式:The method according to claim 3, wherein encapsulating the ESI adjacency detection event by using an ARP packet includes at least one of the following manners:将所述ARP报文封装到EVPN报文中,其中,所述EVPN报文按照所述ESI的ESI子接口所绑定的EVPN实例中的数据报文格式进行封装;Encapsulating the ARP packet into an EVPN packet, where the EVPN packet is encapsulated according to a data packet format in an EVPN instance bound to the ESI sub-interface of the ESI;将所述ARP报文的PDU部分按照ARP探针报文的PDU格式进行封装,其中,所述PDU中的目标协议地址为指定的IP地址;The PDU part of the ARP packet is encapsulated according to the PDU format of the ARP probe packet, where the target protocol address in the PDU is a specified IP address;将所述ARP报文的发送者硬件地址字段设置为携带有所述ESI的故障标识信息;Setting a sender hardware address field of the ARP packet to the fault identifier information carrying the ESI;将所述ARP报文的操作码设置为预定值;Setting an operation code of the ARP packet to a predetermined value;将所述ARP报文的发送者协议地址字段设置为携带所述ESI的故障标识信息;Setting a sender protocol address field of the ARP packet to carry fault identification information of the ESI;将所述ARP报文的以太网源MAC设置为所述第一PE的MAC地址;Setting an Ethernet source MAC address of the ARP packet to a MAC address of the first PE;将所述ARP报文的以太网源MAC设置为所述ESI对应的主接口或所述ESI的ESI子接口的MAC地址;Setting the Ethernet source MAC address of the ARP packet to the MAC address of the primary interface corresponding to the ESI or the ESI sub-interface of the ESI;将所述ARP报文的以太网源MAC设置为所述ESI的ESI子接口所绑定的EVPN实例的集成路由桥接IRB接口的MAC地址;Setting the Ethernet source MAC address of the ARP packet to the MAC address of the integrated routing bridge IRB interface of the EVPN instance bound to the ESI sub-interface of the ESI;将所述ARP报文的以太网源MAC设置为指定值;Setting an Ethernet source MAC address of the ARP packet to a specified value;将所述ARP报文的以太网目的MAC地址设置为预定值;Setting an Ethernet destination MAC address of the ARP packet to a predetermined value;将所述ARP报文中目标协议地址设置为携带有所述ESI的故障标识信息;Setting the target protocol address in the ARP packet to the fault identifier information carrying the ESI;将所述ARP报文中目标硬件地址设置为携带有所述ESI故障标识信息;Setting the target hardware address in the ARP packet to carry the ESI fault identification information;使用控制字将所述ARP报文封装到EVPN数据报文中,其中所述控制字中的信道类型设置为指定值。The ARP packet is encapsulated into an EVPN data packet by using a control word, wherein a channel type in the control word is set to a specified value.
- 一种以太网段标识邻接检测处理方法,包括:An Ethernet segment identification adjacency detection processing method includes:第二网络侧边缘设备PE接收第一PE发送的第一报文,其中,所述第一报文用于将所述第一PE检测到的以太网分段标识ESI的链路上的ESI邻接检测事件通知给所述第二PE,所述ESI邻接检测事件用于指示对ESI标识的链路故障进行检测的结果的变化;其中,所述第一报文中携带了所述ESI的故障标识信息,所述故障标识信息用于指示 所述第二PE执行与所述ESI对应的转发状态的更新流程。The second network side edge device PE receives the first packet sent by the first PE, where the first packet is used to send the ESI adjacency on the link of the Ethernet segment identifier ESI detected by the first PE. Detecting an event notification to the second PE, where the ESI adjacency detection event is used to indicate a change in a result of detecting a link failure identified by the ESI; wherein the first message carries the fault identifier of the ESI And the fault identifier information is used to indicate that the second PE performs an update process of a forwarding state corresponding to the ESI.
- 根据权利要求6所述的方法,其中,所述ESI邻接检测事件至少通过以下格式之一进行封装:The method of claim 6 wherein said ESI adjacency detection event is encapsulated by at least one of the following formats:对等双向转发检测BFD的连锁路径失效报文;Peer-to-peer bidirectional forwarding detects BFD chain path invalidation packets;传送操作管理维护TP OAM会话的客户信号失效指示CSF报文;The transmission operation management maintains a customer signal invalidation indication CSF message of the TP OAM session;地址解析协议ARP报文;Address resolution protocol ARP packet;邻居发现协议NDP的邻居请求报文;Neighbor discovery protocol NDP neighbor request message;因特网控制报文协议ICMP报文;Internet Control Message Protocol ICMP message;媒体接入控制MAC Ping报文。Media access controls MAC ping messages.
- 根据权利要求6所述的方法,其中,所述ESI的故障标识信息至少包括以下之一:The method of claim 6, wherein the fault identification information of the ESI comprises at least one of the following:所述ESI的部分二进制位;a partial binary bit of the ESI;所述ESI对应的PBB B-MAC或所述ESI对应的PBB B-MAC中的部分二进制位;a partial binary bit in the PBB B-MAC corresponding to the ESI or the PBB B-MAC corresponding to the ESI;所述ESI对应的IP地址;The IP address corresponding to the ESI;所述ESI对应的ESI标签;The ESI label corresponding to the ESI;用于指示所述ESI对应的主接口存在故障的编码信息;Encoding information indicating that the primary interface corresponding to the ESI has a fault;用于指示所述ESI的ESI子接口存在故障的编码信息,其中,所述ESI子接口为所述ESI对应的主接口的子接口;Encoding information indicating that the ESI sub-interface of the ESI is faulty, wherein the ESI sub-interface is a sub-interface of the main interface corresponding to the ESI;用于指示所述ESI标识的链路故障所在节点的节点标识信息。Node identification information indicating a node where the link of the ESI identifier is faulty.
- 根据权利要求7所述的方法,其中,所述ESI邻接检测事件通过ARP报文进行封装至少包括以下之一:The method according to claim 7, wherein the ESI adjacency detection event is encapsulated by the ARP packet and includes at least one of the following:所述ARP报文被封装到按照所述ESI的ESI子接口所绑定的EVPN实例中的数据报文格式封装的EVPN报文中;The ARP packet is encapsulated into an EVPN packet encapsulated in a data packet format in an EVPN instance bound to the ESI sub-interface of the ESI;所述ARP报文的PDU部分被按照ARP探针报文的PDU格式进行封装,其中,所述PDU中的目标协议地址为指定的IP地址;The PDU part of the ARP packet is encapsulated according to the PDU format of the ARP probe packet, where the target protocol address in the PDU is a specified IP address;所述ARP报文的发送者硬件地址字段携带有所述ESI的故障标识信息;The sender hardware address field of the ARP packet carries the fault identification information of the ESI;所述ARP报文的操作码为预定值;The operation code of the ARP packet is a predetermined value;所述ARP报文的发送者协议地址字段携带有所述ESI的故障标识信息;The sender protocol address field of the ARP packet carries the fault identification information of the ESI.所述ARP报文的以太网源MAC为所述第一PE的MAC地址;The Ethernet source MAC address of the ARP packet is a MAC address of the first PE;所述ARP报文的以太网源MAC为所述ESI对应的主接口或所述ESI的ESI子接口的MAC地址;The Ethernet source MAC address of the ARP packet is the MAC address of the primary interface corresponding to the ESI or the ESI sub-interface of the ESI;所述ARP报文的以太网源MAC为所述ESI的ESI子接口所绑定的EVPN实例的集成路由桥接IRB接口的MAC地址;The Ethernet source MAC address of the ARP packet is the MAC address of the integrated routing bridging IRB interface of the EVPN instance bound to the ESI sub-interface of the ESI;所述ARP报文的以太网源MAC为指定值。The Ethernet source MAC address of the ARP packet is a specified value.
- 根据权利要求6所述的方法,其中,执行与所述ESI对应的转发状态的更新流程至少包括以下之一:The method according to claim 6, wherein the update flow of performing the forwarding state corresponding to the ESI includes at least one of the following:改变所述ESI的ESI子接口所对应的指定转发/非指定转发/备份指定转发状态;Changing the specified forwarding state of the specified forwarding/non-designated forwarding/backup corresponding to the ESI sub-interface of the ESI;改变所述ESI对应的单播转发信息集合中相应下一跳信息的状态。And changing a state of the corresponding next hop information in the unicast forwarding information set corresponding to the ESI.
- 一种以太网段标识邻接检测处理装置,包括:An Ethernet segment identification adjacency detection processing device includes:检测模块,设置为检测到以太网分段标识ESI的链路上的ESI邻 接检测事件,其中,所述ESI邻接检测事件用于指示对ESI标识的链路故障进行检测的结果的变化;a detection module, configured to detect an ESI neighbor detection event on a link of the Ethernet segment identifier ESI, wherein the ESI adjacency detection event is used to indicate a change in a result of detecting a link failure identified by the ESI;发送模块,设置为向第二网络侧边缘设备PE发送第一报文,所述第一报文用于将所述ESI邻接检测事件通知给所述第二PE,其中,所述第一报文中携带有所述ESI的故障标识信息,所述故障标识信息用于指示所述第二PE执行与所述ESI对应的转发状态的更新流程。a sending module, configured to send a first packet to the second network side edge device PE, where the first packet is used to notify the second PE of the ESI adjacency detection event, where the first packet And carrying the fault identification information of the ESI, where the fault identifier information is used to indicate that the second PE performs an update process of a forwarding state corresponding to the ESI.
- 根据权利要求11所述的装置,其中,所述检测模块,还设置为通过以下方式至少之一,检测到所述ESI标识的链路上的所述ESI邻接检测事件:The apparatus according to claim 11, wherein the detecting module is further configured to detect the ESI adjacency detection event on the link identified by the ESI by at least one of:通过标准第一英里以太网EFM技术的方式;Pass the standard first mile Ethernet EFM technology approach;通过标准Y.1731传送操作管理维护TP OAM TMS技术的方式;The way to manage and maintain TP OAM TMS technology through standard Y.1731 transport operations;通过标准连通性故障管理CFM技术的方式;The way to manage CFM technology through standard connectivity faults;通过检测所述ESI标识的链路上的物理信号的方式。By detecting the manner in which the physical signals on the link identified by the ESI.
- 根据权利要求11所述的装置,还包括:The apparatus of claim 11 further comprising:封装模块,设置为通过至少以下格式之一,对所述ESI邻接检测事件进行封装:The encapsulating module is configured to encapsulate the ESI adjacency detection event by using at least one of the following formats:对等双向转发检测BFD的连锁路径失效报文;Peer-to-peer bidirectional forwarding detects BFD chain path invalidation packets;传送操作管理维护TP OAM会话的客户信号失效指示CSF报文;The transmission operation management maintains a customer signal invalidation indication CSF message of the TP OAM session;媒体接入控制MAC Ping报文;Media access control MAC Ping message;邻居发现协议NDP的邻居请求报文;Neighbor discovery protocol NDP neighbor request message;因特网控制报文协议ICMP报文;Internet Control Message Protocol ICMP message;地址解析协议ARP报文。Address resolution protocol ARP packet.
- 根据权利要求11所述的装置,其中,所述ESI的故障标识信息至少包括以下之一:The apparatus of claim 11, wherein the fault identification information of the ESI comprises at least one of the following:所述ESI的部分二进制位;a partial binary bit of the ESI;所述ESI对应的运营商骨干桥接骨干MAC地址PBB B-MAC或所述ESI对应的PBB B-MAC中的部分二进制位;The operator backbone corresponding to the ESI bridges the backbone MAC address PBB B-MAC or a partial binary bit in the PBB B-MAC corresponding to the ESI;所述ESI对应的IP地址;The IP address corresponding to the ESI;所述ESI对应的ESI标签;The ESI label corresponding to the ESI;用于指示所述ESI的主接口存在故障的编码信息;Encoding information indicating that the main interface of the ESI is faulty;用于指示所述ESI的ESI子接口存在故障的编码信息,其中,所述ESI子接口为所述ESI对应的主接口的子接口;Encoding information indicating that the ESI sub-interface of the ESI is faulty, wherein the ESI sub-interface is a sub-interface of the main interface corresponding to the ESI;用于指示所述ESI标识的链路故障所在节点的节点标识信息。Node identification information indicating a node where the link of the ESI identifier is faulty.
- 根据权利要求13所述的装置,其中,所述封装模块,还设置为采用以下方式至少之一按照ARP报文对所述ESI邻接检测事件进行封装:The apparatus according to claim 13, wherein the encapsulating module is further configured to encapsulate the ESI adjacency detection event according to an ARP packet in at least one of the following manners:将所述ARP报文封装到EVPN报文中,其中,所述EVPN报文按照所述ESI的ESI子接口所绑定的EVPN实例中的数据报文格式进行封装;Encapsulating the ARP packet into an EVPN packet, where the EVPN packet is encapsulated according to a data packet format in an EVPN instance bound to the ESI sub-interface of the ESI;将所述ARP的PDU部分报文按照ARP探针报文的PDU格式进行封装,其中,所述PDU中的目标协议地址为指定的IP地址;The PDU part of the ARP packet is encapsulated according to the PDU format of the ARP probe packet, where the target protocol address in the PDU is a specified IP address;将所述ARP报文的发送者硬件地址字段设置为携带有所述ESI的故障标识信息;Setting a sender hardware address field of the ARP packet to the fault identifier information carrying the ESI;将所述ARP报文的操作码设置为预定值;Setting an operation code of the ARP packet to a predetermined value;将所述ARP报文的发送者协议地址字段设置为携带有所述ESI的故障标识信息;Setting a sender protocol address field of the ARP packet to the fault identifier information carrying the ESI;将所述ARP报文的以太网源MAC设置为第一PE的MAC地址;Setting the Ethernet source MAC address of the ARP packet to the MAC address of the first PE;将所述ARP报文的以太网源MAC设置为所述ESI对应的主接口或所述ESI的ESI子接口的MAC地址;Setting the Ethernet source MAC address of the ARP packet to the MAC address of the primary interface corresponding to the ESI or the ESI sub-interface of the ESI;将所述ARP报文的以太网源MAC设置为所述ESI的ESI子接口所绑定的EVPN实例的集成路由桥接IRB接口的MAC地址;Setting the Ethernet source MAC address of the ARP packet to the MAC address of the integrated routing bridge IRB interface of the EVPN instance bound to the ESI sub-interface of the ESI;将所述ARP报文的以太网源MAC设置为指定值;Setting an Ethernet source MAC address of the ARP packet to a specified value;将所述ARP报文的以太网目的MAC地址设置为预定值;Setting an Ethernet destination MAC address of the ARP packet to a predetermined value;将所述ARP报文中目标协议地址设置为携带有所述ESI的故障标识信息;Setting the target protocol address in the ARP packet to the fault identifier information carrying the ESI;将所述ARP报文中目标硬件地址设置为携带有所述ESI故障标识信息;Setting the target hardware address in the ARP packet to carry the ESI fault identification information;使用控制字将所述ARP报文封装到EVPN数据报文中,其中所述控制字中的信道类型设置为指定值。The ARP packet is encapsulated into an EVPN data packet by using a control word, wherein a channel type in the control word is set to a specified value.
- 一种以太网段标识邻接检测处理装置,包括:An Ethernet segment identification adjacency detection processing device includes:接收模块,设置为接收第一PE发送的第一报文,其中,所述第一报文用于将所述第一PE检测到的以太网分段标识ESI的链路上的ESI邻接检测事件通知给所述装置,所述ESI邻接检测事件用于指示对ESI标识的链路故障进行检测的结果的变化;其中,所述第一报文中携带有所述ESI的故障标识信息;The receiving module is configured to receive the first packet sent by the first PE, where the first packet is used to detect an ESI adjacency detection event on the link of the Ethernet segment identifier ESI detected by the first PE Notifying the device, the ESI adjacency detection event is used to indicate a change in a result of detecting a link failure identified by the ESI; wherein the first message carries the fault identification information of the ESI;更新模块,设置为根据所述故障标识信息执行与所述ESI对应的转发状态的更新流程。The update module is configured to perform an update process of the forwarding state corresponding to the ESI according to the fault identification information.
- 根据权利要求16所述的装置,其中,所述接收模块,还设置为接收通过至少以下格式之一,对所述ESI邻接检测事件进行封装的控制报文:The apparatus according to claim 16, wherein the receiving module is further configured to receive a control message encapsulating the ESI adjacency detection event by using at least one of the following formats:对等双向转发检测BFD的连锁路径失效报文;Peer-to-peer bidirectional forwarding detects BFD chain path invalidation packets;传送操作管理维护TP OAM会话的客户信号失效指示CSF报文;The transmission operation management maintains a customer signal invalidation indication CSF message of the TP OAM session;地址解析协议ARP报文;Address resolution protocol ARP packet;邻居发现协议NDP的邻居请求报文;Neighbor discovery protocol NDP neighbor request message;因特网控制报文协议ICMP报文;Internet Control Message Protocol ICMP message;媒体接入控制MAC Ping报文。Media access controls MAC ping messages.
- 根据权利要求16所述的装置,其中,所述ESI的故障标识信息至少包括以下之一:The apparatus of claim 16, wherein the fault identification information of the ESI comprises at least one of the following:所述ESI的部分二进制位;a partial binary bit of the ESI;所述ESI对应的PBB B-MAC或所述ESI对应的PBB B-MAC中的部分二进制位;a partial binary bit in the PBB B-MAC corresponding to the ESI or the PBB B-MAC corresponding to the ESI;所述ESI对应的IP地址;The IP address corresponding to the ESI;所述ESI对应的ESI标签;The ESI label corresponding to the ESI;用于指示所述ESI对应的主接口存在故障的编码信息;Encoding information indicating that the primary interface corresponding to the ESI has a fault;用于指示所述ESI的ESI子接口存在故障的编码信息,其中,所述ESI子接口为所述ESI对应的主接口的子接口;Encoding information indicating that the ESI sub-interface of the ESI is faulty, wherein the ESI sub-interface is a sub-interface of the main interface corresponding to the ESI;用于指示所述ESI标识的链路故障所在节点的节点标识信息。Node identification information indicating a node where the link of the ESI identifier is faulty.
- 根据权利要求17所述的装置,其中,所述接收模块,还设置为接收根据以下方式至少之一按照ARP报文对所述ESI邻接检测事件进行封装后的报文:The apparatus according to claim 17, wherein the receiving module is further configured to receive a packet encapsulated by the ESI neighbor detection event according to an ARP packet according to at least one of the following manners:所述ARP报文是封装到按照所述ESI的ESI子接口所绑定的EVPN实例中的数据报文格式封装的EVPN报文中的报文;The ARP packet is encapsulated in an EVPN packet encapsulated in a data packet format in an EVPN instance bound to the ESI sub-interface of the ESI;所述ARP报文的PDU部分是按照ARP探针报文的PDU格式进行封装的报文,其中,所述PDU中的目标协议地址为指定的IP地址;The PDU part of the ARP packet is a packet encapsulated according to the PDU format of the ARP probe packet, where the target protocol address in the PDU is a specified IP address;所述ARP报文的发送者硬件地址字段携带有所述ESI的故障标识信息;The sender hardware address field of the ARP packet carries the fault identification information of the ESI;所述ARP报文的操作码为预定值;The operation code of the ARP packet is a predetermined value;所述ARP报文的发送者协议地址字段携带有所述ESI的故障标识信息;The sender protocol address field of the ARP packet carries the fault identification information of the ESI.所述ARP报文的以太网源MAC为所述第一PE的MAC地址;The Ethernet source MAC address of the ARP packet is a MAC address of the first PE;所述ARP报文的以太网源MAC为所述ESI对应的主接口或所述ESI的ESI子接口的MAC地址;The Ethernet source MAC address of the ARP packet is the MAC address of the primary interface corresponding to the ESI or the ESI sub-interface of the ESI;所述ARP报文的以太网源MAC为所述ESI的ESI子接口所绑定的EVPN实例的集成路由桥接IRB接口的MAC地址;The Ethernet source MAC address of the ARP packet is the MAC address of the integrated routing bridging IRB interface of the EVPN instance bound to the ESI sub-interface of the ESI;所述ARP报文的以太网源MAC为指定值。The Ethernet source MAC address of the ARP packet is a specified value.
- 根据权利要求16所述的装置,其中,所述更新模块,至少还设置为以下之一:The apparatus of claim 16, wherein the update module is further configured to be at least one of:改变所述ESI的ESI子接口所对应的指定转发/非指定转发/备份指定转发状态;Changing the specified forwarding state of the specified forwarding/non-designated forwarding/backup corresponding to the ESI sub-interface of the ESI;改变所述ESI对应的单播转发信息集合中相应下一跳信息的状 态。And changing a state of the corresponding next hop information in the unicast forwarding information set corresponding to the ESI.
- 一种网络侧边缘设备,包括权利要求11至20中任一项所述的装置。A network side edge device comprising the apparatus of any one of claims 11 to 20.
- 一种存储介质,其中,所述存储介质包括存储的程序,所述程序运行时执行权利要求1至5,或6-10中任一项所述的方法。A storage medium, wherein the storage medium comprises a stored program, the program being executed to perform the method of any one of claims 1 to 5, or 6-10.
- 一种处理器,其中,所述处理器设置为运行程序,所述程序运行时执行权利要求1至5,或6-10中任一项所述的方法。A processor, wherein the processor is configured to execute a program, the program executing the method of any one of claims 1 to 5, or 6-10.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810344453.4A CN110391951B (en) | 2018-04-17 | 2018-04-17 | Ethernet segment identifier adjacency detection processing method and device and storage medium |
CN201810344453.4 | 2018-04-17 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019201014A1 true WO2019201014A1 (en) | 2019-10-24 |
Family
ID=68240414
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/075769 WO2019201014A1 (en) | 2018-04-17 | 2019-02-22 | Ethernet segment identifier adjacency detection processing method, device, and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110391951B (en) |
WO (1) | WO2019201014A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112838982A (en) * | 2019-11-22 | 2021-05-25 | 华为技术有限公司 | Method, equipment and system for switching message transmission path |
CN114205221A (en) * | 2020-08-26 | 2022-03-18 | 北京华为数字技术有限公司 | Fault query method and device |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113839873A (en) * | 2020-06-24 | 2021-12-24 | 中兴通讯股份有限公司 | Information processing method, node and storage medium |
CN112202635B (en) * | 2020-09-27 | 2022-05-06 | 浙江三维利普维网络有限公司 | Link monitoring method and device, storage medium and electronic device |
CN114697263A (en) | 2020-12-15 | 2022-07-01 | 中兴通讯股份有限公司 | Information processing method, node, and computer-readable storage medium |
US11570086B2 (en) * | 2021-02-22 | 2023-01-31 | Juniper Networks, Inc. | Fast reroute for BUM traffic in ethernet virtual private networks |
US11546253B2 (en) | 2021-03-31 | 2023-01-03 | Juniper Networks, Inc | Fast reroute for ethernet virtual private networks—virtual extensible local area network |
CN115622915A (en) * | 2021-07-16 | 2023-01-17 | 华为技术有限公司 | Fault detection method, device and system |
CN117811986A (en) * | 2022-09-26 | 2024-04-02 | 中兴通讯股份有限公司 | Route switching method, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160378606A1 (en) * | 2015-06-25 | 2016-12-29 | Cisco Technology, Inc. | Fast convergence for failures of large scale virtual ethernet segments in evpn and pbb-evpn |
CN106789635A (en) * | 2016-03-25 | 2017-05-31 | 新华三技术有限公司 | A kind of message forwarding method and device |
WO2017118880A1 (en) * | 2016-01-08 | 2017-07-13 | Telefonaktiebolaget Lm Ericsson (Publ) | Faster convergence on primary provider edge (pe) failure in a single-active redundancy topology |
CN107040443A (en) * | 2015-10-01 | 2017-08-11 | 丛林网络公司 | The Fast Convergent of the EVPN networks of many host's topologys |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9985838B2 (en) * | 2016-03-29 | 2018-05-29 | Juniper Networks, Inc. | Mass MAC withdrawal for EVPN-DCI using virtual ESI |
-
2018
- 2018-04-17 CN CN201810344453.4A patent/CN110391951B/en active Active
-
2019
- 2019-02-22 WO PCT/CN2019/075769 patent/WO2019201014A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160378606A1 (en) * | 2015-06-25 | 2016-12-29 | Cisco Technology, Inc. | Fast convergence for failures of large scale virtual ethernet segments in evpn and pbb-evpn |
CN107040443A (en) * | 2015-10-01 | 2017-08-11 | 丛林网络公司 | The Fast Convergent of the EVPN networks of many host's topologys |
WO2017118880A1 (en) * | 2016-01-08 | 2017-07-13 | Telefonaktiebolaget Lm Ericsson (Publ) | Faster convergence on primary provider edge (pe) failure in a single-active redundancy topology |
CN106789635A (en) * | 2016-03-25 | 2017-05-31 | 新华三技术有限公司 | A kind of message forwarding method and device |
Non-Patent Citations (1)
Title |
---|
"BGP MPLS-Based Ethernet VPN", IETF RFC7432, 28 February 2015 (2015-02-28), ISSN: 2070-1721 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112838982A (en) * | 2019-11-22 | 2021-05-25 | 华为技术有限公司 | Method, equipment and system for switching message transmission path |
EP4050854A4 (en) * | 2019-11-22 | 2022-12-28 | Huawei Technologies Co., Ltd. | Message transmission path switching method, device and system |
CN112838982B (en) * | 2019-11-22 | 2024-04-26 | 华为技术有限公司 | Message transmission path switching method, device and system |
CN114205221A (en) * | 2020-08-26 | 2022-03-18 | 北京华为数字技术有限公司 | Fault query method and device |
CN114205221B (en) * | 2020-08-26 | 2024-01-02 | 北京华为数字技术有限公司 | Fault query method and device |
Also Published As
Publication number | Publication date |
---|---|
CN110391951A (en) | 2019-10-29 |
CN110391951B (en) | 2022-11-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019201014A1 (en) | Ethernet segment identifier adjacency detection processing method, device, and storage medium | |
US11533249B2 (en) | Route processing method and apparatus, and data transmission method and apparatus | |
US10148456B2 (en) | Connecting multiple customer sites over a wide area network using an overlay network | |
US9992154B2 (en) | Layer 3 convergence for EVPN link failure | |
EP3588872B1 (en) | Evpn packet processing method, device, system, and computer program product | |
CN108574616B (en) | Method, equipment and system for processing route | |
US10237163B2 (en) | Static route advertisement | |
US10116467B2 (en) | Ethernet tag mapping in virtual private wire service using ethernet virtual private network | |
US9197583B2 (en) | Signaling of attachment circuit status and automatic discovery of inter-chassis communication peers | |
WO2018166252A1 (en) | Evpn packet processing method, device and system | |
WO2021196717A1 (en) | Multicast traffic transmission method and apparatus, communication node, and storage medium | |
US8170033B1 (en) | Virtual private local area network service (VPLS) flush mechanism for BGP-based VPLS networks | |
US8665883B2 (en) | Generalized multi-homing for virtual private LAN services | |
US8605603B2 (en) | Route convergence based on ethernet operations, administration, and maintenance protocol | |
WO2018103099A1 (en) | Method, device and system for sending and receiving message | |
CN112422307A (en) | Method, equipment and system for coexistence of EVPN and VPLS | |
CN111064596A (en) | Node protection for BUM traffic for multi-homed node failures | |
CN109788018B (en) | Cross-domain service intercommunication method, network equipment and storage medium | |
JP6371399B2 (en) | Interface parameter synchronization method and apparatus | |
WO2023016550A1 (en) | Route sending method and device | |
CN105515999B (en) | Quick convergence method and device for end system address distribution information protocol | |
CN104348797B (en) | A kind of dynamic vlan attribute logging method and device | |
WO2022246693A1 (en) | Method and apparatus for path switchover management | |
WO2023284547A1 (en) | Fault detection method, apparatus and system |
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: 19789126 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 12.02.2021) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19789126 Country of ref document: EP Kind code of ref document: A1 |