A method and device for routing aggregation processing based on EVPN network
By implementing route aggregation technology in the EVPN network, the equipment performance challenges and frequent route updates caused by the increase in the number of MAC routes in the EVPN network are solved, achieving the effect of reducing the number of routes and improving network stability.
Patent Information
- Application Number
- CN202211457067.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-16
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-11-16
AI Technical Summary
In EVPN networks, as the network scale increases, the number of EVPN type2 MAC routes increases, causing challenges to the routing table entries and reflection performance of RR devices. The MAC forwarding table capacity of edge node devices is insufficient. Frequent MAC address changes lead to frequent route updates. , affecting network availability and stability.
Through route aggregation technology, different MAC addresses are aggregated into one MAC address, an EVPN type2 MAC route is generated and sent to the remote PE device, reducing the number of routes on the RR device, and the controller and edge nodes collaboratively process route updates to avoid routing The impact of shock on RR performance.
It is realized that each PE can only send one EVPN type2 MAC route to satisfy traffic forwarding, reducing the number of EVPN type2 MAC routes in the network, reducing the table pressure of the RR device, saving the MAC forwarding table capacity of the PE device, and improving It improves network stability, reduces the involvement of human resources, and improves routing processing efficiency.
Smart Images

Figure CN116319545B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data communication, and in particular to a route aggregation processing method based on an EVPN network. Background Art
[0002] EVPN (Ethernet Virtual Private Network) is a VPN technology used for Layer 2 network interconnection. EVPN technology uses a mechanism similar to BGP / MPLS IP VPN, combined with extended BGP protocol, and uses extended reachability information to transfer the MAC address learning and publishing process between Layer 2 networks of different sites from the data plane to the control plane. In order to achieve intercommunication between sites, EVPN instances are established on PE devices on the carrier backbone network and connected to CE (Customer Edge) of each site. At the same time, neighbor relationships and MPLS / SR tunnels are established between PEs (Provider Edge, edge devices, edge routers of the service provider backbone network). However, the difference between EVPN networks and BGP / MPLS IP VPN networks is that each site is a Layer 2 network, so PE learns MAC addresses from each CE instead of routes. PE forwards the MAC addresses learned from CE to other sites through EVPN's unique routing type.
[0003] As the current network scale continues to increase, the Layer 2 network based on the EVPN protocol has the following main problems:
[0004] 1. As the scale of the network continues to grow, the number of EVPN type2 MAC routes gradually increases. RR devices need to learn EVPN type2 MAC routes of the entire network. Therefore, the routing table entries and reflection performance of RR devices are greatly challenged.
[0005] 2. The edge node device (PE) needs to learn a large number of MAC table entries, and the device MAC forwarding table capacity is insufficient;
[0006] 3. The frequent changes in the MAC address sent by the CE will cause the related PE and RR devices to add, delete, and modify the EVPN type2 MAC route. Frequent route updates can easily cause equipment failures, which is not conducive to maintaining the availability and stability of the network. Summary of the invention
[0007] In view of the deficiencies in the prior art, the present invention provides a route aggregation processing method based on an EVPN network, which solves the problem of aggregating different MACs into one MAC through EVPN type2 MAC route aggregation technology and apparatus, and then generates an EVPN type2 MAC route and sends it to a remote PE device, thereby saving the MAC forwarding table capacity on the PE device and reducing the number of EVPN routes on the RR device; at the same time, the route update is collaboratively processed by the controller and the edge node PE device, and the route update process is no longer processed by the RR, thereby reducing the consumption of route oscillation on the RR performance.
[0008] To achieve the above objectives, the present invention is implemented through the following technical solutions: a routing aggregation processing method based on an EVPN network, comprising the following application steps:
[0009] S1. Obtain a MAC address that is aggregated into one, and generate a MAC aggregation table;
[0010] S2: Generate EVPN type 2 MAC route and send it to RR device. Meanwhile, MAC sends aggregation table to controller.
[0011] S3: The peer PE device receives the EVPN type 2 MAC route and the MAC aggregation table received by the peer PE device from the controller.
[0012] S4. The peer PE receives traffic from the CE, finds the corresponding MAC in the MAC aggregation table, and guides Layer 2 traffic forwarding based on the EVPN type 2 routing.
[0013] Furthermore, the MAC address in S1 is obtained by aggregating the MAC addresses learned by PE from CE, and different MAC addresses are aggregated into one.
[0014] Furthermore, what the PE learns from each CE is the MAC address, not the route.
[0015] Furthermore, the MAC aggregation table in S1 is generated by a PE device.
[0016] Furthermore, the MAC aggregation table needs to identify the MAC correspondence before and after aggregation.
[0017] Furthermore, the MAC address in S1 corresponds to the PE device one by one.
[0018] Furthermore, the EVPN type2 MAC route in S2 is generated by triggering the aggregated MAC address.
[0019] The EVPN type 2 MAC route in S2 is triggered by the aggregated MAC address.
[0020] A route aggregation processing device based on an EVPN network, characterized by comprising:
[0021] Aggregation module, used to obtain a MAC address that is aggregated into one, and generate a MAC aggregation table;
[0022] A sending module is used to send the generated EVPN type2 MAC route to the RR device, and the MAC sends the aggregation table to the controller;
[0023] In the receiving module, the peer PE device receives the EVPN type 2 MAC route and the MAC aggregation table received by the peer PE device from the controller;
[0024] In the forwarding module, the peer PE receives traffic from the CE, finds the corresponding MAC in the MAC aggregation table, and guides Layer 2 traffic forwarding based on the EVPN type 2 routing.
[0025] Furthermore, it also includes a MAC learning module for recording the corresponding relationship between the source MAC address and the port in the data frame and storing the MAC table items, and the MAC learning module is arranged before the aggregation module.
[0026] Furthermore, the aggregation module may also record the corresponding relationship between the MAC addresses before and after the aggregation.
[0027] The present invention has the following beneficial effects:
[0028] (1) The route aggregation processing method based on the EVPN network realizes that each PE only needs to send one EVPN type2MAC route to meet the forwarding of the guidance traffic, realizes the route aggregation of discontinuous MAC, greatly reduces the number of EVPNtype2 MAC routes in the network, alleviates the table specification pressure of the RR device, and reduces the cost of the RR device.
[0029] (2) In the EVPN network-based route aggregation processing method, the MAC table entry that the PE learns from the remote PE only contains the aggregated MAC address, and does not need to learn the MAC address of the entire network, thereby saving the MAC forwarding table entry capacity of the PE device.
[0030] (3) In the EVPN network-based route aggregation processing method, the controller is responsible for table item updates, thereby avoiding the performance pressure on RR devices caused by frequent route updates and improving network stability;
[0031] (4) The route aggregation processing method based on the EVPN network can complete the processing of EVPN type2 MAC route aggregation and the processing of aggregation table items by the edge equipment (PE) and the controller, without the need for technical personnel to participate, saving human resources and improving route processing efficiency.
[0032] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 This is a schematic diagram of the EVPN networking of the present invention;
[0034] Figure 2 This is a schematic diagram of the NLRI composition fields of EVPN type 2 routing of the present invention;
[0035] Figure 3 MAC routing processing and transmission flow chart of the present invention;
[0036] Figure 4 It is a schematic diagram of a MAC routing processing device of the present invention;
[0037] Figure 5 The figure is a schematic diagram of the EVPN type 2 MAC routing aggregation processing flow of the present invention. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] In the description of the present invention, it should be understood that the terms "opening", "upper", "lower", "thickness", "top", "middle", "length", "inside", "all around" and the like indicating orientation or positional relationship are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the components or elements referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.
[0040] See also Figure 1-5 The embodiment of the present invention provides a technical solution: a routing aggregation processing method based on an EVPN network, comprising the following application steps:
[0041] S1. Get a MAC address that is aggregated into one, and generate a MAC aggregation table, such as Figure 1As shown in the figure, the MAC address is obtained by aggregating the MAC learned by PE from CE, and different MACs are aggregated into one, and what PE learns from each CE is the MAC address, not the route; the MAC aggregation table is generated by the PE device and identifies the corresponding relationship between the MACs before and after aggregation; the MAC address corresponds to the PE device one by one;
[0042] S2. Generate an EVPN type2 MAC route and send it to the RR device. At the same time, the MAC sends the aggregation table to the controller. The EVPN type2 MAC route is triggered by the aggregated MAC address, and the EVPN type2 route NLRI composition field.
[0043] S3: The peer PE device receives the EVPN type 2 MAC route and the MAC aggregation table received by the peer PE device from the controller.
[0044] S4. The peer PE receives the traffic from the CE and finds the corresponding MAC in the MAC aggregation table. It guides the Layer 2 traffic forwarding according to the EVPN type 2 routing. When the MAC sent by the CE is updated, the PE updates the local MAC aggregation table and sends the MAC update message to the controller through the Netconf notification element. The controller receives the message, updates the aggregation table and sends it to other PE devices. The PE that receives the aggregation table update message updates the local MAC aggregation table.
[0045] A route aggregation processing device based on an EVPN network, characterized by comprising:
[0046] Aggregation module, used to obtain a MAC address that is aggregated into one, and generate a MAC aggregation table;
[0047] A sending module is used to send the generated EVPN type2 MAC route to the RR device, and the MAC sends the aggregation table to the controller;
[0048] In the receiving module, the peer PE device receives the EVPN type 2 MAC route and the MAC aggregation table received by the peer PE device from the controller;
[0049] In the forwarding module, the peer PE receives traffic from the CE, finds the corresponding MAC in the MAC aggregation table, and guides Layer 2 traffic forwarding based on the EVPN type 2 routing.
[0050] Specifically, it also includes a MAC learning module, which is used to record the corresponding relationship between the source MAC address and the port in the data frame and store the MAC table items, and the MAC learning module is arranged before the aggregation module.
[0051] Specifically, the aggregation module may also record the corresponding relationship between the MAC addresses before and after the aggregation.
[0052] When in use, when EVPN type2 MAC route aggregation is processed, PE1 in site 1 processes the MAC learned by CE1 and CE2 through the aggregation module, generates EVPN type2 MAC route and sends it to RR device, and sends the aggregation table entry to the controller; RR device reflects the EVPN type2 MAC route sent by PE1 in site 1 to PE2 in site 2, and the controller sends the aggregation table entry to PE2 in site 2; PE2 in site 2 receives the EVPN type2 MAC route sent by RR and the MAC aggregation table sent by the controller. PE2 receives the traffic sent by CE3 and CE4, first queries the corresponding aggregation MAC address in the MAC aggregation table according to the destination MAC, and then guides the traffic forwarding through the received EVPN type2 MAC route, so as to realize the intercommunication of Layer 2 traffic between CEs in different sites.
[0053] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0054] It should be understood that when an element is referred to as being "fixed to" or "disposed on" another element, it can be directly on the other element or there may be an intermediate element at the same time; when an element is referred to as being "connected to" another element, it can be directly connected to the other element or there may be an intermediate element at the same time. In addition, the "connection" used here may include wireless connection; the wording "and / or" used includes any unit and all combinations of one or more associated listed items.
[0055] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0056] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0057] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0058] A person skilled in the art can understand that all or part of the steps in the method of the above-mentioned embodiment can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes the following steps: (steps of the method), the storage medium, such as: ROM / RAM, disk, CD, etc.
[0059] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0060] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0061] The preferred embodiments of the present invention disclosed above are only used to help illustrate the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A route aggregation processing method based on an EVPN network, characterized in that: The application steps include: S1. Obtain an aggregated MAC address and generate a MAC aggregation table; the MAC address is obtained by aggregating the MAC addresses learned by PE from CE, and different MAC addresses are aggregated into one, and what PE learns from each CE is a MAC address, not a route; the MAC aggregation table is generated by the PE device and identifies the corresponding relationship between the MAC addresses before and after aggregation; the aggregated MAC address corresponds to the PE device one by one; S2. Generate an EVPN type 2 MAC route and send it to the RR device, and send the MAC aggregation table to the controller; the EVPN type 2 MAC route is triggered by the aggregated MAC address; S3: The peer PE device receives the EVPN type 2 MAC route and the peer PE device receives the MAC aggregation table from the controller. S4. The peer PE receives the traffic from the CE and finds the corresponding MAC in the MAC aggregation table. It guides the Layer 2 traffic forwarding according to the EVPN type 2 routing. When the MAC sent by the CE is updated, the PE updates the local MAC aggregation table and sends the MAC update message to the controller through the Netconfnotification element. The controller receives the message, updates the aggregation table and sends it to other PE devices. The PE that receives the aggregation table update message updates the local MAC aggregation table.
2. A route aggregation processing device based on an EVPN network, characterized in that: include: Aggregation module, used to obtain a MAC address that is aggregated into one, and generate a MAC aggregation table; The MAC address is obtained by aggregating the MAC addresses learned by PE from CE, and different MAC addresses are aggregated into one. What PE learns from each CE is the MAC address, not the route. The MAC aggregation table is generated by the PE device and identifies the corresponding relationship between the MAC addresses before and after aggregation. The aggregated MAC address corresponds to the PE device one by one. A sending module, used to send the generated EVPN type2 MAC route to the RR device, and send the MAC aggregation table to the controller; the EVPN type2 MAC route is triggered by the aggregated MAC address; In the receiving module, the peer PE device receives the EVPN type 2 MAC route and the peer PE device receives the MAC aggregation table from the controller. In the forwarding module, the peer PE receives traffic from the CE and finds the corresponding MAC in the MAC aggregation table. It guides Layer 2 traffic forwarding based on the EVPN type 2 routing. When the MAC sent by the CE is updated, the PE updates the local MAC aggregation table and sends the MAC update message to the controller through the Netconfnotification element. The controller receives the message, updates the aggregation table, and sends it to other PE devices. The PE that receives the aggregation table update message updates the local MAC aggregation table.
3. The route aggregation processing device based on the EVPN network according to claim 2, characterized in that: It also includes a MAC learning module, which is used to record the corresponding relationship between the source MAC address and the port in the data frame and store the MAC table items, and the MAC learning module is arranged before the aggregation module.
