Method and apparatus for switching a BUM traffic forwarding path
By adding an extended community word to the EVPN VLAN BUNDLE service mode, carrying the VLAN sub-interface status and BUM bypass tag, the problem of insufficient reliability of EVPN BUM traffic is solved, and reliable transmission of BUM traffic is achieved.
Patent Information
- Application Number
- CN202310750002.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-21
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2043-06-21
AI Technical Summary
In EVPN VLAN BUNDLE service mode, EVPN BUM traffic reliability is insufficient. When a VLAN sub-interface fails, it cannot promptly revoke the Ethernet auto-discovery route, which affects the DF election function and causes issues such as packet loss and duplicate traffic.
An extended community word is added to Ethernet auto-discovery routes and integrated multicast routes, carrying VLAN sub-interface status and BUM bypass labels, to establish a forwarding protection path for BUM traffic. Protection switching is achieved through the extended community word to ensure reliable traffic transmission.
By adding extended community words, packet loss during VLAN re-segmentation is reduced, the reliability of EVPN BUM traffic is improved, and traffic loss caused by control plane message propagation delay and re-election is avoided.
Smart Images

Figure CN116599897B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a method and device for switching a BUM traffic forwarding path. Background Art
[0002] In next-generation virtual private network (EVPN) scenarios, when a customer edge (CE) connects to one or more provider edges (PE) via access links, these access links form an Ethernet segment (ES). An ES is represented by a unique, non-zero identifier called the Ethernet Segment Identifier (ESI).
[0003] like Figure 1 In the topology shown, the user network edge CE1 is connected to the operator network edge PE1 and PE2 through multi-protocol access, allowing both to access the network. The PEs establish actual forwarding paths using Border Gateway Protocol (BGP) EVPN routing. After receiving packets, the PEs implement Layer 2 interoperability by looking up the Media Access Control-Virtual Routing Forwarding (MAC-VRF) table for known unicast packets. For unknown broadcast, unicast, and multicast (BUM) packets, flooding is used to achieve point-to-multipoint Layer 2 interoperability.
[0004] In a multi-homed access scenario, a CE connects to multiple PEs. Each PE is configured with the same ESI for the CE's access link and exchanges Ethernet segment routes (ES routes) with each other. To prevent multiple PE sites from flooding BUM traffic to the CE, a PE must be selected at the multi-homed site as the designated forwarder (DF). The DF forwards BUM traffic to the access-side CE. Other backup designated forwarders (BDFs) do not forward BUM traffic to the CE. This selection process is called DF election and is based on Ethernet segment routes (ES routes).
[0005] In a Virtual Local Area Network (VLAN) BUNDLE service mode defined in an EVPN protocol, an EVPN instance corresponds to multiple broadcast domains (for example, multiple VLANs), but only maintains one bridge table, a single VLAN must be represented by a single Virtual id (VID), and VID conversion is not allowed for the service interface. In a multi-homing access scenario in this service mode, different users use VLANs for division, that is, the VLAN information planned on the multi-homing device is one-to-one corresponding.
[0006] There are three shortcomings in the prior art, which cause the EVPN BUM traffic reliability to be insufficient, including (1) in the VLAN BUNDLE service mode, different sub-interfaces under the same ES of the same EVPN instance, when these sub-interfaces are not all failed, the instance will not withdraw the corresponding Ethernet Auto-discovery Route, and thus cannot trigger the Attachment Circuit (AC) state influence DF election function; (2) in the process of re-performing DF election under the influence of route withdrawal, the traffic packet loss is inevitable due to the propagation delay of control plane messages in the link and the time-consuming of re-performing election; (3) in the process of re-performing DF election under route recovery, the same double rules device is DF due to the propagation delay, which causes the user network edge CE to receive double traffic.
[0007] In view of this, how to overcome the defects existing in the prior art and solve the phenomenon of insufficient EVPN BUM traffic reliability is a problem to be solved in the technical field. SUMMARY
[0008] In view of the above defects or improvement needs of the prior art, the present application solves the problem of insufficient EVPN BUM traffic reliability.
[0009] The embodiment of the present application adopts the following technical scheme:
[0010] In a first aspect, the present application provides a method for switching BUM traffic forwarding path, which specifically comprises: adding an extended community in EVI-AD route in Ethernet automatic discovery routing, wherein the extended community in the EVI-AD route carries the state of a local corresponding VLAN sub-interface; adding an extended community in integrated multicast routing, wherein the extended community in the integrated multicast routing carries a BUM bypass label and optional additional VLAN information; and establishing a forwarding protection path for BUM traffic according to the extended community carried in the EVI-AD route and the extended community carried in the integrated multicast routing, wherein the forwarding protection path is used for protecting switching.
[0011] Preferably, the added extended community in the EVI-AD route and the added extended community in the integrated multicast routing specifically comprise: the SVLAN field in the TLV of the added extended community, which represents the outer VLAN ID information of the VLAN sub-interface; and the CVLAN field in the TLV of the added extended community, which represents the state of the VLAN sub-interface as the inner VLAN ID information of the standby interface.
[0012] Preferably, when performing DF election switching, the establishing of the forwarding protection path for BUM traffic specifically comprises: when there is a usable access-side link interface on the master DF device, sending the state of the dropped VLAN sub-interface using the extended community in the EVI-AD route; after the standby DF device receives the EVI-AD route, analyzing the extended community in the EVI-AD route, finding the corresponding VLAN sub-interface according to the VLAN sub-interface state in the extended community, and setting the DF state of the VLAN sub-interface as the master DF.
[0013] Preferably, when performing DF election switching, the establishing of the forwarding protection path for BUM traffic specifically comprises: when the state of the abnormal VLAN sub-interface on the master DF device is restored to be usable, sending the EVI-AD route based on the restored VLAN sub-interface, wherein the extended community in the EVI-AD route contains the state of the restored VLAN sub-interface; after the standby DF device receives the EVI-AD route, analyzing the extended community in the EVI-AD route, finding the corresponding VLAN sub-interface according to the VLAN sub-interface state in the extended community, and setting the DF state of the VLAN sub-interface as the standby DF.
[0014] Preferably, when the traffic is packet loss, the forwarding protection path is used for protecting switching, which specifically comprises: the BDF device sends the integrated multicast route carrying the extended community; and the DF device receives the integrated multicast route, analyzes the extended community carried in the integrated multicast route, and generates corresponding forwarding mapping information.
[0015] Preferably, the forwarding protection path is used for protecting switching, and specifically comprises: after the DF device receives the BUM traffic, the bypass label in the extended group word is carried in the BUM traffic, and the BUM traffic with the added label is sent to the established BUM bypass path; after the BDF PE device receives the BUM traffic sent by the BUM bypass path, the BUM traffic is mapped to the corresponding VLAN sub-interface of the VLAN for forwarding.
[0016] Preferably, the forwarding protection path is used for protecting switching, and further comprises: the second PE device sends the T3 route carrying the BUM bypass label, the first PE device receives the T3 route, and generates the BUM bypass forwarding path information based on the interface; when the first PE device fails, the EVI-AD route carrying the extended group word is sent, the second PE device receives the EVI-AD route, sets the local VLAN sub-interface state to DF, and cancels the BUM bypass label information published by the second PE device; when the first PE device recovers, the EVI-AD route carrying the extended group word is published, the second PE device receives the EVI-AD route, replies to the corresponding EVI-AD route, checks the local BUM bypass path information, and forwards the traffic according to the checking result, the first PE device receives the EVI-AD route carrying the extended group word, restores the state to DF, and cancels the published BUM bypass information.
[0017] Preferably, the forwarding traffic according to the checking result specifically comprises: when there is no corresponding BUM bypass path, the second PE device sends the EVI-AD route carrying the extended group word, switches to BDF, and does not forward the traffic; when there is a corresponding BUM bypass path, the second PE device sends the EVI-AD route carrying the extended group word, switches to BDF, and sends the traffic to the BUM bypass path information.
[0018] Preferably, the method further comprises: setting a function switch state, and determining whether to establish the forwarding protection path of the BUM traffic according to the method in any one of claims 1-8 and to perform protection switching according to the established forwarding protection path according to the function switch state.
[0019] In another aspect, the application provides a device for BUM traffic forwarding path switching, specifically comprising: at least one processor and a memory, the at least one processor and the memory are connected through a data bus, the memory stores instructions executable by the at least one processor, and the instructions are used to complete the method for BUM traffic forwarding path switching in the first aspect after being executed by the processor.
[0020] Compared with the prior art, the embodiment of the application has the beneficial effects that: by adding an extended community word in EVI-AD and integrated multicast routing for transmitting the state of a VLAN sub-interface and BUM bypass information, the protection of BUM traffic is realized, and the traffic packet loss when a service provider re-divides a VLAN is reduced. BRIEF DESCRIPTION OF DRAWINGS
[0021] In order to more clearly illustrate the technical solutions of the embodiments of the application, the drawings needed to be used in the embodiments of the application will be briefly introduced. Obviously, the drawings described below are only some embodiments of the application, and other drawings can be obtained by those skilled in the art without creative effort on the basis of these drawings.
[0022] Figure 1 is a multi-homing topology structure schematic diagram of the application of the EVPN VLAN BUNDLE service mode in the prior art;
[0023] Figure 2 is a defect topology structure schematic diagram of the BUM traffic forwarding of the EVPN VLAN BUNDLE service mode which needs to be solved by the application;
[0024] Figure 3 is a BUM traffic forwarding path switching method flowchart provided by the embodiment of the application;
[0025] Figure 4 is an extended community word format newly added in the Ethernet automatic discovery routing used in the embodiment of the application;
[0026] Figure 5 is an extended community word format of the BUM bypass message newly added in the integrated multicast routing used in the embodiment of the application;
[0027] Figure 6 is another BUM traffic forwarding path switching method flowchart provided by the embodiment of the application;
[0028] Figure 7 is another BUM traffic forwarding path switching method flowchart provided by the embodiment of the application;
[0029] Figure 8 is another BUM traffic forwarding path switching method flowchart provided by the embodiment of the application;
[0030] Figure 9 is another BUM traffic forwarding path switching method flowchart provided by the embodiment of the application;
[0031] Figure 10Another BUM traffic forwarding path switching method flowchart provided by the embodiment of the present application is shown in FIG. 6;
[0032] Figure 11 Another BUM traffic forwarding path switching method flowchart provided by the embodiment of the present application is shown in FIG. 6;
[0033] Figure 12 Another BUM traffic forwarding path switching method flowchart provided by the embodiment of the present application is shown in FIG. 6;
[0034] Figure 13 Another BUM traffic forwarding path switching method flowchart provided by the embodiment of the present application is shown in FIG. 6;
[0035] Figure 14 Another BUM traffic forwarding path switching method flowchart provided by the embodiment of the present application is shown in FIG. 6;
[0036] Figure 15 Another BUM traffic forwarding path switching method flowchart provided by the embodiment of the present application is shown in FIG. 6;
[0037] Figure 16 A device structure diagram of the BUM traffic forwarding path switching provided by the embodiment of the present application is shown in FIG. 7;
[0038] In the figure, the reference signs are as follows:
[0039] 11: processor; 12: memory. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical scheme and advantages of the present application clearer, the present application is further described in detail below in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.
[0041] The present application is a system architecture of a specific function system, so in the specific embodiments, the functional logical relationship of each structure module is mainly described, and the specific software and hardware implementation is not limited.
[0042] In addition, the technical features involved in each embodiment of the present application described below can be combined with each other as long as there is no conflict. The present application is described in detail below in combination with the drawings and embodiments.
[0043] Some terms used in the embodiments of the present application are explained as follows:
[0044] (1) EVI-AD route: Ethernet Auto Discovery (A-D) per EVI route (one of the new BGP network layer reachability information defined in RFC7432); the message format of Ethernet Auto-discovery Route is described in section 7.1 of RFC7432, which is used to advertise the reachability of the access site of the local PE to other PEs; Ethernet Auto Discovery (A-D) route is divided into two kinds, one is Ethernet Auto-Discovery Per ES route, which is mainly used for fast convergence, redundancy mode, horizontal segmentation; the other is Ethernet Auto-Discovery Per EVI (EVPN Instance) route used in this paper, which is mainly used for alias. The use scenario is described in section 8.4 of RFC7432, that is, the PE signals that it can reach the EVPN instance on the given ES, even if it does not learn the MAC address from the EVI / ES.
[0045] (2) Integrated Multicast Route: Inclusive Multicast Ethernet Tag Route; the process of sending BUM traffic received from the CE encapsulated in a given Ethernet tag (VLAN) in an EVPN instance to all other PEs across the Ethernet tag (VLAN) of the EVPN instance for a given PE; each PE must publish an "integrated multicast route" to enable the above function. In short, EVPN is used to build routes to guide BUM traffic forwarding.
[0046] Embodiment 1:
[0047] In a CE dual-homing network where the access side uses sub-interfaces to connect to an EVPN instance, the ESI is typically configured on the primary interface. If a sub-interface becomes Down due to a fault or other reasons, the ES route will not be revoked because the other sub-interfaces bound to the EVPN instance remain Up, the primary interface is functioning normally, and the ESI remains valid. This will not affect the DF election on the other PE, which could potentially prevent BUM traffic from being forwarded. To address this issue, RFC8584 implements a feature that allows the PE access side link status to affect DF election. With this feature configured, during DF election, the system checks whether it has received Ethernet auto-discovery routes (EDRs) advertised by each PE to determine their eligibility. If no EDRs are received or the EDRs are revoked, the corresponding PE cannot participate in DF election and must re-select a DF.
[0048] In the EVPN VLAN BUNDLE service mode, different users are divided into VLANs, and different VLANs are associated with the EVPN instance through a bridge domain (BD).
[0049] In the prior art, there is a shortcoming that causes traffic loss in EVPN VPLS BUNDLE mode.
[0050] like Figure 1 As shown in the figure, CE1 and CE2 are divided by VLANs and belong to the same ESI and are dual-homed to PE1 and PE2.
[0051] like Figure 2 As shown in the figure, when the VLAN1 sub-interface on PE1 fails or is removed for maintenance, the Ethernet auto-discovery routes advertised by PE1 cannot be revoked because the VLAN2 sub-interface on PE1 is still normal.
[0052] Therefore, in this scenario, the DF election function cannot be influenced by the access-side link status to select PE2 as the master DF. As a result, BUM traffic cannot be sent to CE1, resulting in traffic loss.
[0053] To avoid the above situation, Figure 3 As shown, the specific steps of the method for switching the BUM traffic forwarding path provided by the embodiment of the present invention are as follows. In the following, for the sake of brevity, unless otherwise specified and without ambiguity, the VLAN sub-interface is referred to as a sub-interface.
[0054] Step 101: adding an extended community in an EVI-AD route in Ethernet automatic discovery routing, wherein the extended community in the EVI-AD route carries the status of a corresponding local VLAN sub-interface.
[0055] The method provided in the embodiment adds an extended community in an EVI-AD route. Specifically, as shown in Figure 4 The TLV of the added extended community includes an SVLAN field, which represents outer VLAN ID information of the VLAN sub-interface; and the TLV of the added extended community includes a CVLAN field, which represents inner VLAN ID information of the VLAN sub-interface. By using the extended community, the status of the corresponding local VLAN sub-interface can be notified to a peer dual-homing PE, serving as a basis for establishing and switching a forwarding protection path. Hereinafter, the added extended community is denoted as <status, vlan>, wherein the value of status represents a status label value, and vlan represents sub-interface information corresponding to the label, which can be established to deliver the status information of the sub-interface to other devices in the network, so that the other devices can plan and switch the protection path according to the status information.
[0056] Step 102: adding an extended community in an inclusive multicast route (T3 route), wherein the extended community in the inclusive multicast route carries a BUM bypass label and optional additional VLAN information.
[0057] On the other hand, it is also necessary to add an extended community in the inclusive multicast route to carry BUM bypass forwarding information. As shown in Figure 5 By adding an extended community including SVLAN and CVLAN information in the inclusive multicast route, the BUM bypass label and optional additional VLAN information are carried, so as to establish a forwarding protection path for BUM traffic. In the inclusive multicast route, similar to the EVI-AD route, the extended community is also denoted as <status, vlan> to establish a mapping relationship between the label and the interface.
[0058] Step 103: establishing a forwarding protection path for BUM traffic according to the extended community carried in the EVI-AD route and the extended community carried in the inclusive multicast route, and performing protection switching according to the established forwarding protection path.
[0059] The BDF device generates and publishes BUM bypass label and VLAN mapping information; when the DF device sub-interface fails, the forwarding layer maps and forwards BUM traffic to the BUM bypass path; the BUM bypass path is not only used for traffic cut-through process, but also applicable to traffic return process.
[0060] After the steps 101-103 provided in the embodiment, the properties of the sub-interface and the BUM bypass label are transmitted through the newly added extended community, so as to realize the establishment of the protection switching path and the traffic switching.
[0061] The method provided in the embodiment can be applied to a dual-standard PE device, in order to ensure compatibility, the method provided in the embodiment should be controlled by a switch when implemented. Specifically, the function switch state is set, and whether the forwarding protection path of BUM traffic is established according to the method provided in the embodiment and the protection switching is performed according to the established forwarding protection path is determined according to the function switch state. On the other hand, in order to avoid conflicts, the DF device provided in the embodiment does not allow forwarding of BUM bypass traffic on the network side.
[0062] Some specific methods for establishing and switching the forwarding protection path by using the method provided in the embodiment in some actual scenarios are provided below. In specific implementation, the following methods can be referred to for specific implementation, or the following implementation methods can be adjusted according to actual situations or combined with other methods.
[0063] When performing DF election cut-through, the process of establishing the forwarding protection path of BUM traffic is as follows: when there is an available access-side link interface on the primary DF device, the extended community in the EVI-AD route is used to send the down VLAN sub-interface state. After the backup DF device receives the EVI-AD route, the extended community in the EVI-AD route is parsed, the corresponding VLAN sub-interface is found according to the VLAN sub-interface state in the extended community, and the DF state of the VLAN sub-interface is set to primary DF.
[0064] As shown in Figure 6 In the VLAN BUNDLE service mode, the primary and backup DF roles are based on the DF election strategy of ESI, and in the multiple sub-interfaces of the same ESI in the EVPN instance, one sub-interface is down. It is checked whether the function switch is turned on, if turned on, the EVI-AD route with the <status=0, vlan> extended community is sent to the adjacent PE based on the down interface. As shown in Figure 7As shown, after the backup DF device receives the route, it checks whether the function is enabled. If not, it ignores the extended community. If enabled, it parses the <status, vlan> extended community in the route, and sets the DF state of the corresponding interface to master according to the VLAN information.
[0065] When the DF election switches back, the process of establishing the forwarding protection path of BUM traffic is as follows: after the abnormal VLAN sub-interface state on the master DF device recovers to available, the EVI-AD route containing the recovered VLAN sub-interface state in the extended community is sent based on the recovered VLAN sub-interface. The EVI-AD route contains the recovered VLAN sub-interface state in the extended community. After the backup DF device receives the EVI-AD route, it parses the extended community in the EVI-AD route, finds the corresponding VLAN sub-interface according to the VLAN sub-interface state in the extended community, and sets the DF state of the VLAN sub-interface to backup DF.
[0066] As shown in Figure 8 When the fault interface state recovers when the election switches back, it checks whether the function switch is enabled. If enabled, the EVI-AD route with <status = 1, vlan> extended community is sent based on the recovered interface. As shown in Figure 9 After the backup DF device receives the route, it checks whether the function switch is enabled. If enabled, it parses the <status, vlan> extended community in the route, and sets the DF state of the corresponding sub-interface to backup.
[0067] The process of transmitting control signaling messages and re-election needs a certain time, and the link is still in a disconnected state before the process is completed, which will cause traffic packet loss. Therefore, the embodiment also provides a protection method for BUM traffic path switching.
[0068] When traffic packet loss occurs, the BDF device sends an integrated multicast route carrying an extended community; after the DF device receives the integrated multicast route, it parses the extended community carried by the integrated multicast route and generates corresponding forwarding mapping information.
[0069] As shown in Figure 10 As a brief process of the traffic path switching protection scheme, when the BDF device enables the function described in the embodiment, it will publish or update the integrated multicast route carrying the Figure 5 extended community as shown. As shown in Figure 11 After the DF device receives the route, if the function described in the embodiment is enabled, it parses the extended community in the message, and generates local interface-based BUM bypass label forwarding mapping information.
[0070] When the flow protection forwarding is performed, the DF device receives the BUM flow, and carries the bypass label in the extended group word in the BUM flow, and sends the BUM flow with the added label to the established BUM bypass path. When the BDF PE device receives the BUM flow sent by the BUM bypass path, it maps to the corresponding sub-interface of the VLAN for forwarding.
[0071] As shown in Figure 12 , the DF device receives the BUM flow, and copies and forwards it to all interfaces by flooding. When it detects that a certain interface is faulty and the flow cannot pass through, it carries the bypass label to the BUM bypass path corresponding to the double rule device. As shown in Figure 13 , the BDF PE device receives the BUM bypass flow, and according to the mapping relationship (label-interface) generated by the foregoing control packet, checks whether the corresponding interface state is BDF. If yes, it forwards the flow to the corresponding interface, otherwise it discards the packet. In order to avoid conflicts, after the interface is reselected as DF by the foregoing scheme, the BUM bypass label published should be revoked.
[0072] In some implementation scenarios, the re-election after the fault recovery will cause the user network edge to receive double flows. The embodiment further provides a protection method for BUM flow path switching back.
[0073] For ease of understanding, in the following description, the DF device is referred to as the first PE device, and the BDF device is referred to as the second PE device.
[0074] When the protection switching is performed according to the established protection path, the second PE device sends the T3 route carrying the BUM bypass label, the first PE device receives the T3 route, generates the BUM bypass forwarding path information based on the interface, and when the first PE device fails, sends the EVI-AD route carrying the extended group word. The second PE device receives the EVI-AD route, sets the local VLAN sub-interface state to DF, and revokes the BUM bypass label information published by the second PE device. In the above process, the pre-generated bypass forwarding path is used as the protection path, and the flow protection switching is performed when the first PE device fails. The protection path is only sent to the second PE device when the first PE device fails, and the sub-interface state of the second PE device is set to DF when the route is received. The corresponding effect is generated, the flow forwarding effect time is extremely short, the second PE device completes the flow protection, and the resources occupied by the system for maintaining the path are reduced.
[0075] As shown in Figure 14 , the second PE device sets the sub-interface state to DF after analyzing the EVI-AD route. Thereafter, as shown in Figure 15As shown, after the function to which the embodiment belongs is opened, the second PE device sends an EVI-AD route carrying <status=1, vlan>, and the first PE device receives the local sub-interface state as BDF. As mentioned above, the BDF device (the first PE device at this time) issues a T3 route carrying a BUM bypass label, and the second PE device generates an interface-based BUM bypass forwarding path information after receiving the T3 route.
[0076] When the first PE device recovers from failure, it issues an EVI-AD route carrying an extended community word. After the second PE device receives the EVI-AD route, it replies with a corresponding EVI-AD route, checks the local BUM bypass path information, and performs traffic forwarding according to the checking result. After the first PE device receives the EVI-AD route carrying the extended community word, it restores its state to DF and withdraws the issued BUM bypass information.
[0077] When the first PE device recovers from failure, it issues an EVI-AD route carrying <status=1, vlan>, but does not restore the DF state. After the second PE device receives it, it checks the local BUM bypass path information. When there is no corresponding BUM bypass path, the second PE device sends an EVI-AD route carrying an extended community word <status=0, vlan> and switches to BDF, and the traffic is not forwarded. When there is a corresponding BUM bypass path, the second PE device sends an EVI-AD route carrying an extended community word <status=0, vlan> and switches to BDF, and sends the traffic to the BUM bypass path information. After the first PE device receives the EVI-AD route carrying <status=0, vlan>, it restores the state to DF and withdraws the issued BUM bypass information. At this point, the traffic switching is completed.
[0078] For the BUM traffic forwarding path switching scheme based on the EVPN VLAN BUNDLE mode provided in the embodiment, the BDF device sub-interface should withdraw the issued BUM bypass route mapping information after receiving the corresponding Ethernet automatic discovery route advertisement information, so as to avoid the long-term existence of the BUM bypass path.
[0079] The method for switching BUM traffic forwarding path in the embodiment provides a defect correction of the AC linkage DF mechanism, so that the BUM traffic transmission reliability in the EVPN VLAN BUNDLE mode is greatly improved. The forwarding protection path established by the method can trigger the correction work of traffic loss in the process of traffic switching or return, and can be generally applied to the EVPN multicast traffic transmission scene. The method provided in the embodiment provides traffic protection during the misoperation process of the operation and maintenance personnel, and reduces traffic packet loss when the service provider re-divides the VLAN.
[0080] Embodiment 2
[0081] On the basis of the method for switching BUM traffic forwarding path provided in the above embodiment 1, the application further provides a device for implementing the above method, as shown in Figure 16 The device for switching BUM traffic forwarding path in the embodiment includes one or more processors 11 and a memory 12. Among them, Figure 16 The processor 11 is taken as an example.
[0082] The processor 11 and the memory 12 can be connected through a bus or other means, Figure 16 The connection through the bus is taken as an example.
[0083] The memory 12 is a kind of BUM traffic forwarding path switching method nonvolatile computer readable storage medium, which can be used to store nonvolatile software programs, nonvolatile computer executable programs and modules, such as the method for switching BUM traffic forwarding path in embodiment 1. The processor 11 executes the nonvolatile software programs, instructions and modules stored in the memory 12, so as to execute various functional applications and data processing of the device for switching BUM traffic forwarding path, that is, to implement the method for switching BUM traffic forwarding path in embodiment 1.
[0084] The memory 12 can include a high-speed random access memory, and can also include a nonvolatile memory, for example, at least one magnetic disk storage device, a flash memory device, or other nonvolatile solid-state storage device. In some embodiments, the memory 12 can optionally include a memory remotely arranged relative to the processor 11, which can be connected to the processor 11 through a network. Examples of the above network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.
[0085] Program instructions / modules are stored in the memory 12, and when executed by one or more processors 11, the method for switching BUM traffic forwarding path in the above embodiment 1 is executed, for example, the above-described Figure 3 、 Figures 6-15each of the steps shown.
[0086] Those skilled in the art can understand that all or part of the steps in the various methods of the embodiments can be completed by programs instructing relevant hardware, and the programs can be stored in a computer readable storage medium, which can include read only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.
[0087] The above merely describes the preferred embodiments of the present application and is not used to limit the present application, and any modification, equivalent replacement and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for switching a BUM traffic forwarding path, characterized in that: Specifically include: In Ethernet automatic discovery routing, an extended community word is added to the Ethernet virtual instance-automatic discovery EVI-AD routing. The extended community word in the EVI-AD routing carries the status of the local corresponding virtual local area network (VLAN) sub-interface. Added an extended community string to integrated multicast routing. The extended community string carries a BUM bypass tag and optional additional VLAN information. Establish a forwarding protection path for BUM traffic based on the extended community word carried in the EVI-AD route and the extended community word carried in the integrated multicast route; wherein the forwarding protection path is used for protection switching; When the designated forwarding device DF election is performed, the establishment of the forwarding protection path for the BUM traffic specifically includes: When an available access-side link interface exists on the active DF, the active DF uses the extended community in the EVI-AD route to send the status of the offline VLAN sub-interface. Upon receiving the EVI-AD route, the standby DF parses the extended community in the EVI-AD route, searches for the corresponding VLAN sub-interface based on the VLAN sub-interface status in the extended community, and sets the DF status of the VLAN sub-interface to the active DF. When a DF election is triggered, establishing a forwarding protection path for BUM traffic specifically includes: When the abnormal VLAN sub-interface status on the active DF device is restored to be available, an EVI-AD route is sent based on the restored VLAN sub-interface. The extended community word of the EVI-AD route contains the restored VLAN sub-interface status. After receiving the EVI-AD route, the standby DF device parses the extended community word in the EVI-AD route, searches for the corresponding VLAN sub-interface according to the VLAN sub-interface status in the extended community word, and sets the DF status of the VLAN sub-interface to the standby DF.
2. The method for switching a BUM traffic forwarding path according to claim 1, wherein: New extended community words for EVI-AD routing and integrated multicast routing include: The newly added extended community TLV includes the SVLAN field, which indicates the outer VLAN ID information of the VLAN subinterface. The newly added extended community TLV includes the CVLAN field, indicating that the status of the VLAN sub-interface is the inner VLAN ID information of the backup interface.
3. The method for switching a BUM traffic forwarding path according to claim 1, wherein: When traffic is lost, the forwarding protection path is used for protection switching, specifically including: The BDF device sends an integrated multicast route carrying an extended community word; After receiving the integrated multicast route, the DF device parses the extended community word carried in the integrated multicast route and generates the corresponding forwarding mapping information.
4. The method for switching a BUM traffic forwarding path according to claim 1, wherein: The forwarding protection path is used for protection switching and specifically includes: After receiving the BUM traffic, the DF device adds the bypass label in the extended community word to the BUM traffic and sends the labeled BUM traffic to the established BUM bypass path. When the BDF PE device receives the BUM traffic sent by the BUM bypass path, it maps it to the corresponding VLAN sub-interface for forwarding.
5. The method for switching a BUM traffic forwarding path according to claim 1, wherein: The forwarding protection path is used for protection switching and further includes: The second PE device sends a T3 route carrying a BUM bypass label. After receiving the T3 route, the first PE device generates interface-based BUM bypass forwarding path information. When the first PE device fails, it sends an EVI-AD route carrying an extended community word. After receiving the EVI-AD route, the second PE device sets the local VLAN sub-interface state to DF and cancels the BUM bypass tag information issued by the second PE device. When the first PE device recovers from the fault, it publishes an EVI-AD route carrying the extended community word. After receiving the EVI-AD route, the second PE device replies with the corresponding EVI-AD route, checks the local BUM bypass path information, and forwards traffic based on the inspection results. After receiving the EVI-AD route carrying the extended community word, the first PE device restores its own status to DF and cancels the published BUM bypass information.
6. The method for switching a BUM traffic forwarding path according to claim 5, characterized in that: The traffic forwarding according to the inspection result specifically includes: When there is no corresponding BUM bypass path, the second PE device sends an EVI-AD route carrying the extended community word and switches to BDF, and the traffic is not forwarded; When a corresponding BUM bypass path exists, the second PE device sends an EVI-AD route carrying the extended community word and switches to BDF, sending traffic to the BUM bypass path information.
7. The method for switching a BUM traffic forwarding path according to claim 1, wherein: The method further comprises: The function switch state is set, and according to the function switch state, it is determined whether to establish a forwarding protection path for BUM traffic according to the method described in any one of claims 1 to 6 and to perform protection switching according to the established forwarding protection path.
8. A device for switching a BUM traffic forwarding path, characterized by: It includes at least one processor and a memory, the at least one processor and the memory are connected via a data bus, the memory stores instructions that can be executed by the at least one processor, and after the instructions are executed by the processor, they are used to complete the method for switching the BUM traffic forwarding path according to any one of claims 1 to 7.
Citation Information
Patent Citations
Network device with VLAN topology discovery functions
US20060002311A1
Method for switching DF election mode, method for sending information, pe device, and medium
WO2022227940A1