CN111865803B - Route processing method and device based on EVPN - Google Patents
Route processing method and device based on EVPN Download PDFInfo
- Publication number
- CN111865803B CN111865803B CN202010483560.2A CN202010483560A CN111865803B CN 111865803 B CN111865803 B CN 111865803B CN 202010483560 A CN202010483560 A CN 202010483560A CN 111865803 B CN111865803 B CN 111865803B
- Authority
- CN
- China
- Prior art keywords
- evpn
- route
- aggregated
- address
- group
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- 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
-
- 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
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
- H04L45/745—Address table lookup; Address filtering
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a route processing method and a device based on EVPN, wherein the method comprises the following steps: receiving each EVPN 2 type route of each access VTEP included in the data center, wherein each EVPN 2 type route carries a host IP address and an L3VNI, and the next hop information is the IP address of the access VTEP of the route; forming an EVPN 2 type route with the same L3VNI into a group to be aggregated; determining network segment information of the aggregation route of each group to be aggregated according to the IP address of the host machine included in each group to be aggregated; generating an EVPN 5 type route corresponding to each group to be aggregated, wherein each EVPN 5 type route carries network segment information of the aggregation route of the corresponding group to be aggregated and IP address of the route as next hop information; and advertising each generated EVPN 5 type route added by other data centers. The scheme can save human resources and greatly improve the routing processing efficiency.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for route processing based on EVPN.
Background
An Ethernet Virtual Private Network (EVPN) is a two-layer Virtual Private Network (VPN), the EVPN routing is interacted by a control plane through a Multi-Protocol Border Gateway Protocol (MP-BGP), and the data plane can adopt Multi-Protocol Label switching (MPLS) or Virtual eXtensible Local Area Network (VXLAN).
In the EVPN, host information is transmitted through an EVPN 2-type route, and the host information mainly includes a Media Access Control Address (MAC) Address and an Internet Protocol (IP) Address; and transmitting the network segment information through an EVPN 5 type route. In the data centers networked by EVPN, each data center may include a plurality of access VXLAN Tunnel End Points (VTEPs) and a plurality of edge VTEPs, and fig. 1 shows that two data centers are included, each data center includes two edge VTEPs and two access VTEPs, and each access VTEP is connected to one host. For each edge VTEP of each data center, a technician may set a static route as an aggregation route according to each EVPN 2-type route sent by each access VTEP received by the edge VTEP, and then issue, to other data centers, an EVPN 5-type route carrying network segment information of the aggregation route, thereby reducing issuance of the EVPN 2-type route and saving network resources.
In the routing processing method based on the EVPN, technicians are required to set the static routing as the aggregation routing, so that not only is human resources wasted, but also the routing processing efficiency is reduced.
Disclosure of Invention
The embodiment of the invention provides a route processing method and device based on EVPN (event-based virtual private network), which are used for solving the problems of human resource waste and route processing efficiency reduction in the prior art.
According to an embodiment of the present invention, a routing processing method based on EVPN is provided, which is applied to each edge VTEP included in each data center networked by EVPN, and includes:
receiving each EVPN 2 type route of each access VTEP included by the data center, wherein each EVPN 2 type route carries a host Internet Protocol (IP) address and a layer 3 virtual extensible local area network (VLAN) network identifier (L3 VNI), and the next hop information is the IP address of the access VTEP of the route;
forming an EVPN 2 type route with the same L3VNI into a group to be aggregated;
determining network segment information of the aggregation route of each group to be aggregated according to the host IP address included in each group to be aggregated;
generating an EVPN 5 type route corresponding to each group to be aggregated, wherein each EVPN 5 type route carries network segment information of the aggregation route of the corresponding group to be aggregated and IP address of the route as next hop information;
and advertising each generated EVPN 5 type route added by other data centers.
Specifically, determining network segment information of the aggregation route of each group to be aggregated according to the host IP address included in each group to be aggregated specifically includes:
for each group to be aggregated, performing:
acquiring host IP addresses carried by all EVPN 2 routes of a current group to be aggregated;
determining the maximum host IP address and the minimum host IP address in the obtained host IP addresses;
and taking the IP address range with the maximum host IP address and the minimum host IP address as boundaries as the network segment information of the aggregation route of the current group to be aggregated.
Optionally, the method further includes:
adding each generated EVPN 5 type route to an EVPN 5 type route set;
and storing each EVPN 2 type route included in the group to be aggregated corresponding to each EVPN 5 type route in the EVPN 5 type route set.
Optionally, the method further includes:
monitoring whether links between the data center and all accessed VTEPs included in the data center fail;
if the link failure between the monitored link failure and a first access VTEP included in the data center is monitored, adding a failure identifier in an IP address of the first access VTEP in the EVPN 5 type routing set;
acquiring a first EVPN 5 type route corresponding to the IP address of the first access VTEP;
determining whether the next hop information of all EVPN 2 routes corresponding to the first EVPN 5 route carries the fault identifier;
and if the next hop information of all EVPN 2 type routes corresponding to the first EVPN 5 type route is determined to carry the fault identification, notifying the other data centers to delete the first EVPN 5 type route, and deleting the first EVPN 5 type route and all EVPN 2 type routes corresponding to the first EVPN 5 type route in the EVPN 5 type route set.
According to an embodiment of the present invention, there is also provided an EVPN-based routing processing apparatus, applied to each edge VTEP included in each data center networked with EVPN, including:
the receiving module is used for receiving each EVPN 2 type route of each access VTEP included in the data center, each EVPN 2 type route carries a host Internet Protocol (IP) address and a layer-3 virtual extensible local area network (VLAN) network identifier (L3 VNI), and next hop information is the IP address of the access VTEP of the receiving module;
the system comprises a composition module, a grouping module and a grouping module, wherein the composition module is used for composing EVPN 2 routes with the same L3VNI into a group to be aggregated;
the first determining module is used for determining network segment information of the aggregation route of each group to be aggregated according to the host IP address included in each group to be aggregated;
the generating module is used for generating EVPN 5 type routes corresponding to each group to be aggregated, and each EVPN 5 type route carries network segment information of the aggregation route of the corresponding group to be aggregated and IP address of the route as next hop information;
and the first notification module is used for notifying each EVPN 5 type route generated by adding to other data centers.
Specifically, the first determining module is configured to determine, according to the host IP address included in each group to be aggregated, network segment information of an aggregation route of each group to be aggregated, and specifically configured to:
for each group to be aggregated, performing:
acquiring host IP addresses carried by all EVPN 2 routes of a current group to be aggregated;
determining the maximum host IP address and the minimum host IP address in the obtained host IP addresses;
and taking the IP address range with the maximum host IP address and the minimum host IP address as boundaries as the network segment information of the aggregation route of the current group to be aggregated.
Optionally, the method further includes:
the first adding module is used for adding each generated EVPN 5 type route to an EVPN 5 type route set;
and the storage module is used for storing each EVPN 2 type route included in the group to be aggregated corresponding to each EVPN 5 type route in the EVPN 5 type route set.
Optionally, the method further includes:
the monitoring module is used for monitoring whether a link between the monitoring module and each access VTEP included in the data center is in failure;
a second adding module, configured to add a failure identifier to an IP address of a first access VTEP in the EVPN 5-type routing set if a link failure between the first access VTEP and a monitored link failure between the first access VTEP and the monitored link failure is detected;
an obtaining module, configured to obtain a first EVPN 5-type route corresponding to the IP address of the first VTEP;
a second determining module, configured to determine whether next hop information of all EVPN 2 routes corresponding to the first EVPN 5 route carries the fault identifier;
and the second notification module is configured to notify the other data centers to delete the first EVPN 5-class route and all EVPN 2-class routes corresponding to the first EVPN 5-class route in the EVPN 5-class route set if it is determined that the next hop information of all EVPN 2-class routes corresponding to the first EVPN 5-class route carries the fault identifier.
According to the embodiment of the invention, the electronic equipment comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
a processor for implementing the above method steps when executing the program stored in the memory.
According to an embodiment of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, which computer program, when executed by a processor, implements the above-mentioned method steps.
The invention has the following beneficial effects:
the embodiment of the invention provides a route processing method and a device based on EVPN, wherein each EVPN 2 type route of each access VTEP included in a data center is received, each EVPN 2 type route carries a host IP address and an L3VNI, and the next hop information is the IP address of the access VTEP of the route processing device; forming an EVPN 2 type route with the same L3VNI into a group to be aggregated; determining network segment information of the aggregation route of each group to be aggregated according to the host IP address included in each group to be aggregated; generating an EVPN 5 type route corresponding to each group to be aggregated, wherein each EVPN 5 type route carries network segment information of the aggregation route of the corresponding group to be aggregated and IP address of the route as next hop information; and advertising each generated EVPN 5 type route added by other data centers. In the scheme, the edge VTEP can form a group to be aggregated by EVPN 2 routes with the same L3VNI, then determines network segment information of the aggregation route of each group to be aggregated according to a host IP address included by each group to be aggregated, generates EVPN 5 routes corresponding to each group to be aggregated, and further informs other data centers of adding the generated EVPN 5 routes.
Drawings
Fig. 1 is a schematic diagram of a network architecture of EVPN in the prior art;
fig. 2 is a flowchart of a routing processing method based on EVPN in an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an EVPN-based route processing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device shown in the present application.
Detailed Description
Aiming at the problems of wasting human resources and reducing routing processing efficiency in the prior art, the embodiment of the invention provides a routing processing method based on EVPN, which is applied to each edge VTEP included in each data center networked by EVPN, the flow of the method is shown in FIG. 2, and the specific execution steps are as follows:
s21: receiving each EVPN 2 type route from each access VTEP included in the data center.
In the data center shown in fig. 1, each access VTEP issues EVPN 2-type routes to each edge VTEP included in the same data center, where each EVPN 2-type route carries a host IP address and a layer 3 virtual extensible local area network identity (L3 VNI), and next hop information is an IP address of its own access VTEP.
S22: and forming a group to be aggregated by EVPN 2 routes with the same L3 VNI.
The L3 VNIs carried by each EVPN 2-type route received by the edge VTEP may be different, and therefore, each received EVPN 2-type route may be classified based on the L3 VNIs, and EVPN 2-type routes with the same L3 VNIs form one group to be aggregated, so that a plurality of groups to be aggregated may be obtained.
S23: and determining the network segment information of the aggregation route of each group to be aggregated according to the IP address of the host included in each group to be aggregated.
Since each group to be aggregated includes multiple EVPN 2-type routes, that is, multiple host IP addresses, network segment information of the aggregated route of each group to be aggregated can be determined based on the host IP addresses, and used for advertising EVPN 5-type routes.
S24: and generating EVPN 5 type routes corresponding to the groups to be aggregated.
Each EVPN 5 type route carries network segment information of the aggregation route of the corresponding group to be aggregated and takes the IP address of the route as next hop information.
S25: and advertising each generated EVPN 5 type route added by other data centers.
Border Gateway Protocol (BGP) neighbors are typically established between edge VTEPs of various data centers, and thus each edge VTEP may add various generated EVPN 5-type routes to edge VTEP advertisements of other data centers.
In the scheme, the edge VTEP can form a group to be aggregated by EVPN 2 routes with the same L3VNI, then determines network segment information of the aggregation route of each group to be aggregated according to a host IP address included by each group to be aggregated, generates EVPN 5 routes corresponding to each group to be aggregated, and further informs other data centers of adding the generated EVPN 5 routes.
Specifically, the determining, in the S23, the network segment information of the aggregation route of each group to be aggregated according to the host IP address included in each group to be aggregated specifically includes:
for each group to be aggregated, performing:
acquiring host IP addresses carried by all EVPN 2 routes of a current group to be aggregated;
determining the maximum host IP address and the minimum host IP address in the obtained host IP addresses;
and taking the IP address range with the maximum host IP address and the minimum host IP address as boundaries as network segment information of the aggregation route of the current group to be aggregated.
The above lists a way of determining the network segment information of the aggregation route of each group to be aggregated, that is, an IP address range in which the maximum IP address and the minimum IP address in the host IP addresses carried by each EVPN 2-type route of the group to be aggregated are taken as the network segment information of the aggregation route of the corresponding group to be aggregated. Certainly, many other determining manners may be implemented, for example, as described in the description of enumerating one example, the host IP addresses of multiple boundaries may be determined based on the host IP addresses carried by the EVPN 2-type routes of the group to be aggregated, and then, a plurality of pieces of network segment information, which are all the network segment information of the aggregation route of the group to be aggregated, may be determined according to the host IP addresses of the boundaries.
In an alternative embodiment, the method further comprises:
adding each generated EVPN 5 type route to an EVPN 5 type route set;
and storing each EVPN 2 type route included in the group to be aggregated corresponding to each EVPN 5 type route in the EVPN 5 type route set.
An EVPN 5-type route set may be set to store each generated EVPN 5-type route, and meanwhile, to facilitate subsequent determination of whether to delete the EVPN 5-type route, each EVPN 2-type route may also be correspondingly stored in the EVPN 5-type route set.
Correspondingly, the method also comprises the following steps:
monitoring whether a link between the data center and each access VTEP included in the data center is failed or not;
if the link failure between the monitored link failure and a first access VTEP included in the data center is monitored, adding a failure identifier in an IP address of the first access VTEP in the EVPN 5 type routing set;
acquiring a first EVPN 5 type route corresponding to the IP address of a first access VTEP;
determining whether the next hop information of all EVPN 2 routes corresponding to the first EVPN 5 route carries a fault identifier;
and if the next hop information of all EVPN 2 routes corresponding to the first EVPN 5 route is determined to carry the fault identifier, other data centers are notified to delete the first EVPN 5 route, and the first EVPN 5 route and all the EVPN 2 routes corresponding to the first EVPN 5 route are deleted in the EVPN 5 route set.
In the prior art, a technician may set a static route as an aggregation route according to each EVPN 2-type route sent by each access VTEP received by the edge VTEP, and when a link failure occurs between the edge VTEP and the access VTEP included in the same data center, rapid convergence of the routes cannot be achieved. As shown in fig. 1, when a link between edge VTEP1 of data center 1 and access VTEP1 and access VTEP2 fails, edge VTEP1 may still notify edge VTEP1 and edge VTEP2 of data center 2 to add EVPN 5-type routes carrying segment information of the aggregated routes, resulting in traffic of data center 2 still flowing to edge VTEP1 of data center 1, which may cause traffic to be interrupted.
In order to solve the problem, after a link fault between the link fault and a first access VTEP included in a data center to which the link fault belongs is monitored, a fault identifier is added to an IP address of the first access VTEP in an EVPN 5 type route set, then a first EVPN 5 type route corresponding to the IP address of the first access VTEP can be further obtained, if it is determined that next hop information of all EVPN 2 type routes corresponding to the first EVPN 5 type route carries the fault identifier, the EVPN 5 type route is in an unreachable state, the EVPN 5 type route is not necessary to be stored, at this time, other data centers can be notified to delete the first EVPN 5 type route, and the first EVPN 5 type route and all EVPN 2 type routes corresponding to the same are deleted in the EVPN 5 type route set.
By combining the rapid fault perception technology, the convergence rate of the EVPN 5 type route can reach millisecond convergence, and compared with the prior art, the convergence rate of the route can be greatly improved.
Based on the same inventive concept, an embodiment of the present invention provides an EVPN-based routing processing apparatus, which is applied to each edge VTEP included in each data center networked with EVPN, and a structure of the apparatus is shown in fig. 3, and includes:
a receiving module 31, configured to receive each EVPN 2-type route from each access VTEP included in the data center, where each EVPN 2-type route carries a host internet protocol IP address and a layer 3 virtual extensible local area network identifier L3VNI, and next hop information is an IP address of its own access VTEP;
a forming module 32, configured to form a group to be aggregated from EVPN 2 routes that are the same in L3 VNI;
the first determining module 33 is configured to determine network segment information of the aggregation route of each group to be aggregated according to the host IP address included in each group to be aggregated;
a generating module 34, configured to generate EVPN 5-type routes corresponding to each group to be aggregated, where each EVPN 5-type route carries segment information of an aggregation route of a corresponding group to be aggregated and next hop information of an IP address of the route;
and the first notification module 35 is configured to notify each EVPN 5-type route generated by adding to another data center.
In the scheme, the edge VTEP can form a group to be aggregated by EVPN 2 routes with the same L3VNI, then determines network segment information of the aggregation route of each group to be aggregated according to a host IP address included by each group to be aggregated, generates EVPN 5 routes corresponding to each group to be aggregated, and further informs other data centers of adding the generated EVPN 5 routes.
Specifically, the first determining module is configured to determine, according to the host IP address included in each group to be aggregated, network segment information of an aggregation route of each group to be aggregated, and specifically configured to:
for each group to be aggregated, performing:
acquiring host IP addresses carried by all EVPN 2 type routes of a current group to be aggregated;
determining the maximum host IP address and the minimum host IP address in the obtained host IP addresses;
and taking the IP address range with the maximum host IP address and the minimum host IP address as boundaries as network segment information of the aggregation route of the current group to be aggregated.
Optionally, the method further includes:
the first adding module is used for adding each generated EVPN 5 type route to an EVPN 5 type route set;
and the storage module is used for storing each EVPN 2 type route included in the group to be aggregated corresponding to each EVPN 5 type route in the EVPN 5 type route set.
Optionally, the method further includes:
the monitoring module is used for monitoring whether a link between the monitoring module and each access VTEP included in the data center is in failure;
a second adding module, configured to add a fault identifier to an IP address of a first access VTEP in the EVPN 5-type routing set if a link fault with the first access VTEP included in the data center to which the first adding module belongs is monitored;
the acquiring module is used for acquiring a first EVPN 5 type route corresponding to the IP address of the first access VTEP;
the second determining module is used for determining whether the next hop information of all EVPN 2 routes corresponding to the first EVPN 5 route carries a fault identifier;
and the second notification module is used for notifying other data centers to delete the first EVPN 5 type route and deleting the first EVPN 5 type route and all the corresponding EVPN 2 type routes in the EVPN 5 type route set if the fact that the next hop information of all the EVPN 2 type routes corresponding to the first EVPN 5 type route carries the fault identifier is determined.
An electronic device is further provided in the embodiment of the present application, please refer to fig. 4, which includes a processor 410, a communication interface 420, a memory 430, and a communication bus 440, wherein the processor 410, the communication interface 420, and the memory 430 complete communication with each other through the communication bus 440.
A memory 430 for storing computer programs;
the processor 410 is configured to implement the EVPN-based routing processing method according to any of the above embodiments when executing the program stored in the memory 430.
The communication interface 420 is used for communication between the above-described electronic device and other devices.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In the scheme, the edge VTEP can form a group to be aggregated by EVPN 2 routes with the same L3VNI, then determines network segment information of the aggregation route of each group to be aggregated according to a host IP address included by each group to be aggregated, generates EVPN 5 routes corresponding to each group to be aggregated, and further informs other data centers of adding the generated EVPN 5 routes.
Accordingly, an embodiment of the present application further provides a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to execute any of the EVPN-based routing processing methods described in the foregoing embodiments.
In the scheme, the edge VTEP can form a group to be aggregated by EVPN 2 routes with the same L3VNI, then determines network segment information of the aggregation route of each group to be aggregated according to a host IP address included by each group to be aggregated, generates EVPN 5 routes corresponding to each group to be aggregated, and further informs other data centers of adding the generated EVPN 5 routes.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While alternative embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including alternative embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.
Claims (10)
1. A route processing method based on Ethernet virtual private network EVPN is applied to each edge virtual extensible local area network tunnel terminal VTEP included in each data center of EVPN networking, and is characterized by comprising the following steps:
receiving each EVPN 2 type route of each access VTEP included by the data center, wherein each EVPN 2 type route carries a host Internet Protocol (IP) address and a layer 3 virtual extensible local area network (VLAN) network identifier (L3 VNI), and the next hop information is the IP address of the access VTEP of the route;
forming an EVPN 2 type route with the same L3VNI into a group to be aggregated;
determining network segment information of the aggregation route of each group to be aggregated according to the host IP address included in each group to be aggregated;
generating an EVPN 5 type route corresponding to each group to be aggregated, wherein each EVPN 5 type route carries network segment information of the aggregation route of the corresponding group to be aggregated and IP address of the route as next hop information;
and advertising each generated EVPN 5 type route added by other data centers.
2. The method according to claim 1, wherein determining the segment information of the aggregation route of each group to be aggregated according to the host IP address included in each group to be aggregated specifically comprises:
for each group to be aggregated, performing:
acquiring host IP addresses carried by all EVPN 2 routes of a current group to be aggregated;
determining the maximum host IP address and the minimum host IP address in the obtained host IP addresses;
and taking the IP address range with the maximum host IP address and the minimum host IP address as boundaries as the network segment information of the aggregation route of the current group to be aggregated.
3. The method of claim 1 or 2, further comprising:
adding each generated EVPN 5 type route to an EVPN 5 type route set;
and storing each EVPN 2 type route included in the group to be aggregated corresponding to each EVPN 5 type route in the EVPN 5 type route set.
4. The method of claim 3, further comprising:
monitoring whether a link between the data center and each access VTEP included in the data center is failed or not;
if the link failure between the monitored link failure and a first access VTEP included in the data center is monitored, adding a failure identifier in an IP address of the first access VTEP in the EVPN 5 type routing set;
acquiring a first EVPN 5 type route corresponding to the IP address of the first access VTEP;
determining whether the next hop information of all EVPN 2 routes corresponding to the first EVPN 5 route carries the fault identifier;
and if the next hop information of all EVPN 2 routes corresponding to the first EVPN 5 route is determined to carry the fault identifier, notifying the other data centers to delete the first EVPN 5 route, and deleting the first EVPN 5 route and all EVPN 2 routes corresponding to the first EVPN 5 route in the EVPN 5 route set.
5. An EVPN-based route processing apparatus applied to each edge VTEP included in each data center networked with EVPN, comprising:
the receiving module is used for receiving each EVPN 2 type route from each access VTEP included in the data center, each EVPN 2 type route carries a host Internet Protocol (IP) address and a layer 3 virtual extensible local area network (VLAN) network identifier (L3 VNI), and the next hop information is the IP address of the access VTEP of the receiving module;
the system comprises a composition module, a grouping module and a grouping module, wherein the composition module is used for composing EVPN 2 routes with the same L3VNI into a group to be aggregated;
the first determining module is used for determining network segment information of the aggregation route of each group to be aggregated according to the host IP address included in each group to be aggregated;
the generating module is used for generating EVPN 5 type routes corresponding to each group to be aggregated, and each EVPN 5 type route carries network segment information of the aggregation route of the corresponding group to be aggregated and IP address of the route as next hop information;
and the first notification module is used for notifying each EVPN 5 type route generated by adding to other data centers.
6. The apparatus of claim 5, wherein the first determining module is configured to determine, according to the IP address of the host included in each group to be aggregated, segment information of the aggregation route of each group to be aggregated, and specifically is configured to:
for each group to be aggregated, performing:
acquiring host IP addresses carried by all EVPN 2 routes of a current group to be aggregated;
determining the maximum host IP address and the minimum host IP address in the obtained host IP addresses;
and taking the IP address range with the maximum host IP address and the minimum host IP address as boundaries as the network segment information of the aggregation route of the current group to be aggregated.
7. The apparatus of claim 5 or 6, further comprising:
the first adding module is used for adding each generated EVPN 5 type route to an EVPN 5 type route set;
and the storage module is used for storing each EVPN 2 type route included in the group to be aggregated corresponding to each EVPN 5 type route in the EVPN 5 type route set.
8. The apparatus of claim 7, further comprising:
the monitoring module is used for monitoring whether a link between the monitoring module and each access VTEP included in the data center is in failure;
a second adding module, configured to add a failure identifier to an IP address of a first access VTEP in the EVPN 5-type routing set if a link failure between the first access VTEP and a monitored link failure between the first access VTEP and the monitored link failure is detected;
an obtaining module, configured to obtain a first EVPN 5-type route corresponding to the IP address of the first access VTEP;
a second determining module, configured to determine whether next hop information of all EVPN 2 routes corresponding to the first EVPN 5 route carries the fault identifier;
and the second notification module is configured to notify the other data centers to delete the first EVPN 5-class route and all EVPN 2-class routes corresponding to the first EVPN 5-class route in the EVPN 5-class route set if it is determined that the next hop information of all EVPN 2-class routes corresponding to the first EVPN 5-class route carries the fault identifier.
9. An electronic device, characterized in that the electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-4 when executing a program stored on a memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010483560.2A CN111865803B (en) | 2020-06-01 | 2020-06-01 | Route processing method and device based on EVPN |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010483560.2A CN111865803B (en) | 2020-06-01 | 2020-06-01 | Route processing method and device based on EVPN |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111865803A CN111865803A (en) | 2020-10-30 |
CN111865803B true CN111865803B (en) | 2022-08-16 |
Family
ID=72985312
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010483560.2A Active CN111865803B (en) | 2020-06-01 | 2020-06-01 | Route processing method and device based on EVPN |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111865803B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115412528B (en) * | 2022-08-08 | 2024-09-20 | 北京达佳互联信息技术有限公司 | Host route address storage method and device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106027396A (en) * | 2016-04-29 | 2016-10-12 | 杭州华三通信技术有限公司 | Route control method, device and system |
CN108880970A (en) * | 2017-05-12 | 2018-11-23 | 瞻博网络公司 | The routing signaling and EVPN of port expander restrain |
CN110505152A (en) * | 2019-09-11 | 2019-11-26 | 迈普通信技术股份有限公司 | Route filtering method, device and electronic equipment |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1207878C (en) * | 2002-10-14 | 2005-06-22 | 港湾网络有限公司 | Routing table compression method |
US7453883B1 (en) * | 2003-04-14 | 2008-11-18 | Cisco Technology, Inc. | Method for compressing route data in a router |
CN100568878C (en) * | 2006-06-29 | 2009-12-09 | 中兴通讯股份有限公司 | A kind of routing table converging device and method thereof |
CN101510855B (en) * | 2009-04-10 | 2011-06-15 | 华为技术有限公司 | Method and apparatus for processing QinQ message |
US9985867B2 (en) * | 2015-12-11 | 2018-05-29 | Cisco Technology, Inc. | Optimizing EVPN for data centers with redundant top-of-rack deployments |
CN106789664B (en) * | 2016-03-29 | 2021-05-28 | 新华三技术有限公司 | Route aggregation method and device |
CN108259336B (en) * | 2017-11-22 | 2020-12-29 | 新华三技术有限公司 | Data center interconnection method and device |
CN108494686B (en) * | 2018-02-28 | 2021-05-28 | 新华三技术有限公司 | Route processing method and device |
CN109617817B (en) * | 2019-01-22 | 2021-06-04 | 新华三技术有限公司 | Method and device for generating forwarding table entry of MLAG networking |
-
2020
- 2020-06-01 CN CN202010483560.2A patent/CN111865803B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106027396A (en) * | 2016-04-29 | 2016-10-12 | 杭州华三通信技术有限公司 | Route control method, device and system |
CN108880970A (en) * | 2017-05-12 | 2018-11-23 | 瞻博网络公司 | The routing signaling and EVPN of port expander restrain |
CN110505152A (en) * | 2019-09-11 | 2019-11-26 | 迈普通信技术股份有限公司 | Route filtering method, device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN111865803A (en) | 2020-10-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106656801B (en) | Reorientation method, device and the Business Stream repeater system of the forward-path of Business Stream | |
US9553736B2 (en) | Aggregating data traffic from access domains | |
US9130859B1 (en) | Methods and apparatus for inter-virtual local area network multicast services | |
CN106685903B (en) | SDN-based data transmission method, SDN controller and SDN system | |
US11177976B2 (en) | Method and device for automatically implementing IOAM encapsulation and storage medium | |
EP3799354B1 (en) | Synchronizing multicast router capability towards ethernet virtual private network (evpn) multi homed protocol independent multicast (pim) device | |
CN106656794A (en) | Message transmission method and device | |
EP4207685A1 (en) | Message header processing method and apparatus, storage medium and electronic device | |
CN104253736A (en) | PE (provider edge) equipment and method for notifying same of information | |
CN106936713B (en) | Label management method, data stream processing method and equipment | |
US20190014035A1 (en) | Information transmission method and device | |
WO2020030000A1 (en) | Disaster recovery switching method, related device and computer storage medium | |
CN108512755B (en) | Method and device for learning routing information | |
CN107294856B (en) | Method, equipment and system for determining topology change | |
CN111740907A (en) | Message transmission method, device, equipment and machine readable storage medium | |
CN106357542A (en) | Method for providing multicast service and software defined network controller | |
CN104618189A (en) | Link failure detection method and device | |
CN111865803B (en) | Route processing method and device based on EVPN | |
CN115277305A (en) | Network management method, device, equipment and machine readable storage medium | |
CN111800338B (en) | Cross-AS EVPN route interaction method and device | |
CN105763411A (en) | Method and device for establishing multicast tunnel | |
CN115190068A (en) | Method, device and system for reducing routing loop | |
CN109005122B (en) | Message sending method and device and network equipment | |
WO2017173601A1 (en) | Traffic control method and apparatus in software defined network | |
CN112637053B (en) | Method and device for determining backup forwarding path of route |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |