CN108092890B - Route establishing method and device - Google Patents

Route establishing method and device Download PDF

Info

Publication number
CN108092890B
CN108092890B CN201711429796.2A CN201711429796A CN108092890B CN 108092890 B CN108092890 B CN 108092890B CN 201711429796 A CN201711429796 A CN 201711429796A CN 108092890 B CN108092890 B CN 108092890B
Authority
CN
China
Prior art keywords
evpn
route
vtep
vpnv4
table entry
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
Application number
CN201711429796.2A
Other languages
Chinese (zh)
Other versions
CN108092890A (en
Inventor
黄李伟
王伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201711429796.2A priority Critical patent/CN108092890B/en
Publication of CN108092890A publication Critical patent/CN108092890A/en
Application granted granted Critical
Publication of CN108092890B publication Critical patent/CN108092890B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers
    • H04L45/586Association of routers of virtual routers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing

Abstract

The disclosure relates to a route establishing method and device. Wherein, the method is applied to a second VTEP of EVPN, and comprises the following steps: receiving a first EVPN route from a first VTEP, wherein the first EVPN route comprises a forwarding table entry of a first VM; converting the forwarding table entry of the first VM into an extended virtual private network (VPNV 4) route, wherein the next hop in the VPNV4 route establishes the address of a VPNV4 neighbor for a second VTEP; the VPNV4 is routed to the third VTEP. By converting the forwarding table entry of the first VM into a VPNV4 route and setting the next hop in the VPNV4 route as a second VTEP to establish the address of a VPNV4 neighbor, the EVPN route can be sent through the VPNV4 route, so that networking models of the EVPN and the MPLS L3VPN can be communicated, and message forwarding can be performed in two types of networking.

Description

Route establishing method and device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for establishing a route.
Background
VXLAN (Virtual eXtensible Virtual local area Network) is a two-layer VPN (Virtual Private Network) technology based on IP networks and in the form of "MAC in UDP" encapsulation. VXLAN can provide two-layer interconnection for dispersed physical sites based on existing service provider or enterprise IP networks and can provide service isolation for different tenants. VXLAN is used primarily in data center networks.
VXLAN has the following characteristics:
a. support a large number of tenants: by using the 24-bit identifier, at most 24 power (16777216) VXLANs of 2 can be supported, so that the number of supported tenants is increased on a large scale, and the problem of insufficient resources of the traditional two-layer network VLAN is solved.
b. Easy maintenance: a large two-layer network is established based on an IP network, so that the network deployment and maintenance are easier, and the existing IP network technology can be fully utilized, such as load sharing by utilizing an equivalent route; only the edge device of the IP core network needs to carry out VXLAN processing, and the network intermediate device only needs to forward the message according to the IP header, thereby reducing the difficulty and the cost of network deployment.
The VXLAN technology takes the existing three-layer physical network as an Underlay network, and a virtual two-layer network, namely an Overlay network, is constructed on the three-layer physical network. The Overlay network realizes the transfer of the second-layer message of the tenant between different sites across a three-layer network by using a three-layer forwarding path provided by the Underlay network through a packaging technology. The Underlay network is transparent to the tenants, and different sites of the same tenant behave as if they are operating in one local area network. As shown in fig. 1:
fig. 1 is a typical network model of VXLAN, which includes the following parts:
VM (Virtual Machine): multiple virtual machines can be created on one server, and different virtual machines can belong to different VXLANs. Virtual machines belonging to the same VXLAN are in the same logic two-layer network and are communicated with each other in two layers; two levels of isolation between virtual machines belonging to different VXLANs. VXLAN is identified by VXLAN ID, also known as VNI (VXLAN Network Identifier), which is 24 bits long.
VTEP (VXLAN Tunnel End Point ): edge device of VXLAN. The VXLAN processing is performed on the VTEP, for example, to identify the VXLAN to which the ethernet data frame belongs, to perform two-layer forwarding on the data frame based on the VXLAN, and to encapsulate/decapsulate the packet. The VTEP may be an independent physical device or a server where the virtual machine is located.
VXLAN tunnel: a point-to-point logical tunnel between two VTEPs. After encapsulating a VXLAN header, a UDP header and an IP header for a data frame, the VTEP forwards the encapsulated message to a far-end VTEP through a VXLAN tunnel, and the far-end VTEP decapsulates the encapsulated message.
Core equipment: devices in an IP core network. The core device does not participate in VXLAN processing, and only needs to forward the message in three layers according to the destination IP address of the encapsulated message.
VSI (Virtual Switch Instance): a virtual switching instance on the VTEP provides a two-layer switching service for VXLAN. The VSI can be viewed as a virtual switch on the VTEP that performs layer two forwarding based on VXLAN, and has all the functions of a conventional ethernet switch, including source MAC address learning, MAC address aging, flooding, and the like. VSIs correspond one-to-one to VXLANs.
AC (Attachment Circuit, access Circuit): the VTEP connects physical or virtual circuits of the local site. On a VTEP, the three-tier interface or Ethernet service instance (service instance) associated with a VSI is referred to as the AC. Wherein an ethernet service instance is created on a layer two ethernet interface that defines a series of matching rules for matching data frames received from the layer two ethernet interface. The service instance AC is configured under 1 two-layer physical port.
For example, AC may have the meaning: if the data message entering from the physical port ten1/0/1 carries tag 10, the data message enters vsi vpnb for forwarding, namely, the mapping from the vlan tag 10 to the encapsulated vxlan id 100 message is completed.
An EVPN (Ethernet Virtual Private Network) is a two-layer VPN technology, where a control plane uses MP-BGP (Border Gateway Protocol) to announce EVPN routing information, and a data plane uses VXLAN encapsulation to forward a packet. EVPN has advantages over VXLAN:
A. the configuration is simplified: the automatic discovery of VTEP, the automatic establishment of VXLAN tunnel and the automatic association of VXLAN tunnel and VXLAN are realized through MP-BGP, the manual configuration of a user is not needed, and the difficulty of network deployment is reduced.
B. Separating the control plane from the data plane: the control plane is responsible for issuing routing information, and the data plane is responsible for forwarding messages, so that the division of labor is clear, and the management is easy.
Disclosure of Invention
In view of this, the present disclosure provides a method and an apparatus for establishing a route.
According to an aspect of the present disclosure, there is provided a route establishment method applied to a second VTEP of an ethernet virtual private network EVPN, the method including:
receiving a first EVPN route from a first VTEP, wherein the first EVPN route comprises a forwarding table entry of a first VM;
converting the forwarding table entry of the first VM into an extended virtual private network (VPNV 4) route, wherein the next hop in the VPNV4 route establishes the address of a VPNV4 neighbor for a second VTEP;
the VPNV4 is routed to the third VTEP.
According to another aspect of the present disclosure, there is provided a route establishment method applied to a third VTEP of EVPN, the method including:
receiving a VPNV4 route from a second VTEP, wherein the VPNV4 route comprises a forwarding table entry of a first VM;
converting a forwarding table entry of the first VM into a second EVPN route, wherein the next hop in the second EVPN route establishes an address of an EVPN neighbor for a third VTEP;
the second EVPN route is sent to a fourth VTEP.
According to another aspect of the present disclosure, there is provided a route setup apparatus applied in a second VTEP of an ethernet virtual private network EVPN, the apparatus including:
a first receiving module, configured to receive a first EVPN route from a first VTEP, where the first EVPN route includes a forwarding entry of a first VM;
a first conversion module, configured to convert a forwarding table entry of the first VM into an extended virtual private network VPNV4 route, where a next hop in the VPNV4 route establishes an address of a VPNV4 neighbor for the second VTEP;
and the first sending module is used for sending the VPNV4 route to the third VTEP.
According to another aspect of the present disclosure, there is provided a route setup apparatus applied in a third VTEP of EVPN, the apparatus including:
a second receiving module, configured to receive a VPNV4 route from a second VTEP, where the VPNV4 route includes a forwarding entry of the first VM;
a second conversion module, configured to convert the forwarding entry of the first VM into a second EVPN route, where a next hop in the second EVPN route establishes an address of an EVPN neighbor for a third VTEP;
and a second sending module, configured to send the second EVPN route to a fourth VTEP.
In the disclosure, by converting the forwarding table entry of the first VM into a VPNV4 route, and setting the next hop in the VPNV4 route as the address of the second VTEP for establishing the VPNV4 neighbor, the EVPN route can be sent through the VPNV4 route, so that networking models of the EVPN and the MPLS L3VPN can be intercommunicated, and thus, message forwarding can be performed in two types of networking.
In addition, the forwarding table entry of the first VM is converted into an EVPN route, the next hop in the EVPN route is set as the address of a third VTEP for establishing an EVPN neighbor, and the VPNV4 route can be sent through the EVPN route, so that networking models of the MPLS L3VPN and the EVPN can be communicated, and message forwarding can be performed in two types of networking.
Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic diagram of a typical network model for VXLAN.
Fig. 2 shows a flow chart of a route establishment method according to an embodiment of the present disclosure.
Fig. 3 shows another flow chart of a route establishment method according to an embodiment of the present disclosure.
Fig. 4 shows a flow chart of a route establishment method according to another embodiment of the present disclosure.
Fig. 5 shows another flowchart of a route establishment method according to another embodiment of the present disclosure.
Fig. 6 is a schematic diagram illustrating an application scenario of a route establishment method according to another embodiment of the present disclosure.
Fig. 7 shows a schematic structural diagram of a route establishing apparatus according to an embodiment of the present disclosure.
Fig. 8 is another schematic structural diagram of a route establishing apparatus according to an embodiment of the present disclosure.
Fig. 9 is a schematic structural diagram of a route establishing apparatus according to another embodiment of the present disclosure.
Fig. 10 is another schematic structural diagram of a route establishing apparatus according to another embodiment of the present disclosure.
Fig. 11 is a schematic structural diagram of a route establishing apparatus according to another embodiment of the present disclosure.
Detailed Description
Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present disclosure.
Since EVPN routes belong to a different address family than MPLS VPNs, communication is not possible across address families. Therefore, the EVPN is only used in the EVPN networking, and cannot be used in combination with an MPLS (Multi-Protocol Label Switching) VPN in the existing backbone network, that is, cannot complete the interworking between the EVPN route and the MPLS VPN route.
In order to enable the routing intercommunication between the EVPN networking network and the MPLS L3VPN (three-layer VPN), the method and the system enhance the routing interaction networking module between the EVPN protocol and the MPLS L3VPN, enable the networking models of the EVPN protocol and the MPLS L3VPN to be capable of realizing intercommunication, enable data messages to be forwarded in two networking networks, and enable the EVPN to exist as the access networking network of the MPLS L3 VPN.
Fig. 2 shows a flow chart of a route establishment method according to an embodiment of the present disclosure. As shown in fig. 2, the method is applied to a second VTEP (VXLAN tunnel endpoint) of EVPN (ethernet virtual private network), and includes:
step 101, receiving a first EVPN route from a first VTEP, where the first EVPN route includes a forwarding entry of a first VM (virtual machine).
Step 102, converting the forwarding table entry of the first VM into a VPNV4 (extended virtual private network) route, wherein a next hop in the VPNV4 route establishes an address of a VPNV4 neighbor for the second VTEP.
Step 103, routing the VPNV4 to a third VTEP.
For example, an EPVN neighbor is established between a first VTEP and a second VTEP, and an EVPN networking is configured. The first VTEP routes to the second VTEP synchronization table entry through the EVPN. And establishing a VPNV4 neighbor between the second VTEP and the third VTEP, and configuring MPLS L3VPN networking. The second VTEP is routed through VPNV4 to a third VTEP synchronization entry.
After learning the forwarding table entry of the first VM, the first VTEP synchronizes the forwarding table entry of the first VM to the second VTEP through the first EVPN route. After receiving the first EVPN route, the second VTEP may convert the forwarding entry of the first VM into a VPNV4 route, and change a next hop of the VPNV4 route to an address between the second VTEP and the third VTEP where a VPNV4 neighbor is established. The second VTEP then routes VPNV4 to the third VTEP through the established VPNV4 neighbor between the second VTEP and the third VTEP.
In one possible implementation, as shown in fig. 3, step 102 includes:
step 1021, detecting whether the EVPN and MPLS L3VPN networking intercommunication function is enabled;
and step 1022, if the EVPN and MPLS L3VPN networking interworking function is enabled, converting the forwarding table entry of the first VM into a VPNV4 route.
Specifically, the EVPN and MPLS L3VPN networking interworking function may or may not be enabled on the second VTEP. And if the fact that the EVPN and MPLS L3VPN networking intercommunication function is enabled on the second VTEP is detected, the forwarding table entry of the first VM is converted into a VPNV4 route. Otherwise, route conversion of EVPN and MPLS L3VPN is not carried out. Therefore, the method is beneficial to customizing the networking intercommunication functions of the EVPN and the MPLS L3VPN according to the requirements of actual application scenes.
In one possible implementation, as shown in fig. 3, the method further includes:
step 201, if the first EVPN route is locally matched to a corresponding VRF (virtual private network Routing Forwarding), issuing a Forwarding table entry of the first VM to the matched VRF.
In a possible implementation manner, after the forwarding table entry of the first VM is issued to the matched VRF, in step 1021, the interworking identifier corresponding to the matched VRF is detected to determine whether the matched VRF enables the EVPN and MPLSL3VPN networking interworking function.
In one example, EVPN and MPLS L3VPN networking interworking functions may be controlled by VRFs, such as setting interworking identities for the VRFs. And traversing the local VRF after the second VTEP receives the first EVPN route. If an RT attribute matched with the RT attribute carried by the first EVPN route exists in the RT attributes (RouteTarget ) of the local VRF, the VRF corresponding to the matched RT attribute is the VRF matched with the first EVPN route. At this time, the first EVPN route may be analyzed, and the forwarding table entry of the first VM is issued to the matched VRF.
Then, the interworking identifier corresponding to the matched VRF may be detected, and if the status of the interworking identifier is enabled, it indicates that the matched VRF enables the EVPN and MPLS L3VPN networking interworking function. If the status of the interworking identity is not enabled, it indicates that the matching VRF does not enable the EVPN and MPLS L3VPN networking interworking function.
If the matched VRF does not enable the networking intercommunication function of the EVPN and the MPLS L3VPN, the route establishing process is ended, and the networking intercommunication function of the EVPN and the MPLS L3VPN cannot be realized. If the matched VRF enables the EVPN and MPLS L3VPN networking interworking function, the forwarding table entry of the first VM can be converted into a VPNV4 route, and the VPNV4 route is sent to the third VTEP through a VPNV4 neighbor established between the second VTEP and the third VTEP.
In another example, the interworking identifier may be set on the second VTEP, and it is first detected whether the status of the interworking identifier is enabled. If so, the local VRF is traversed again. And if the VRF matched with the first EVPN route is obtained, issuing the forwarding table entry of the first VM to the matched VRF. And then, the forwarding table entry of the first VM is converted into a VPNV4 route, and the VPNV4 route is sent to a third VTEP through a VPNV4 neighbor established between the second VTEP and the third VTEP.
According to the route establishing method, the forwarding table entry of the first VM is converted into the VPNV4 route, the next hop in the VPNV4 route is set as the address of the second VTEP for establishing the VPNV4 neighbor, the EVPN route can be sent through the VPNV4 route, networking models of the EVPN and the MPLS L3VPN can be communicated, and therefore message forwarding can be carried out in two networking modes. Thus, EVPN can serve as an access network for MPLS L3 VPN.
Fig. 4 shows a flow chart of a route establishment method according to another embodiment of the present disclosure. As shown in fig. 4, the route establishment method is applied to the third VTEP of EVPN, and the method includes:
step 401, receiving a VPNV4 route from the second VTEP, where the VPNV4 route includes a forwarding entry of the first VM.
Step 402, converting the forwarding table entry of the first VM into a second EVPN route, wherein a next hop in the second EVPN route establishes an address of an EVPN neighbor for a third VTEP.
And step 403, sending the second EVPN route to a fourth VTEP.
For example, a VPNV4 neighbor is established between the second VTEP and the third VTEP, configuring MPLS L3VPN networking. The second VTEP is routed through VPNV4 to a third VTEP synchronization entry. And establishing an EPVN neighbor between the third VTEP and the fourth VTEP, and configuring an EVPN networking. The third VTEP routes to the fourth VTEP synchronization table entry through the EVPN.
And after receiving the VPNV4 route sent by the second VTEP, the third VTEP converts the forwarding table entry of the first VM in the VPNV4 route into a second EVPN route, and changes the next hop of the second EVPN route into the address of the VPNV4 neighbor established between the third VTEP and the fourth VTEP. The second VTEP then routes the second EVPN to the fourth VTEP through the EVPN neighbor established between the third VTEP and the fourth VTEP.
In one possible implementation, as shown in fig. 5, step 402 includes:
step 4021, detecting whether the function of intercommunication between MPLS L3VPN and EVPN networks is enabled;
step 4022, if the function of interworking between MPLS L3VPN and EVPN networking is enabled, converting the forwarding table entry of the first VM into a second EVPN route.
Specifically, the third VTEP may or may not have the MPLS L3VPN and EVPN networking interworking function enabled. And if the fact that the MPLS L3VPN and EVPN networking intercommunication function is enabled on the third VTEP is detected, the forwarding table entry of the first VM is converted into an EVPN route. Otherwise, the route conversion of MPLS L3VPN and EVPN is not carried out. Therefore, the method is beneficial to customizing the networking intercommunication function of the MPLS L3VPN and the EVPN according to the requirement of an actual application scene.
In one possible implementation, as shown in fig. 5, the method further includes:
step 501, if the VPNV4 route is locally matched to the corresponding VRF, the forwarding table entry of the first VM is issued to the matched VRF.
In a possible implementation manner, after the forwarding table entry of the first VM is issued to the matched VRF, in step 4021, the interworking identifier corresponding to the matched VRF is detected to determine whether the matched VRF enables the MPLS L3VPN and EVPN networking interworking function.
In this embodiment, the interworking identifier may be set on the third VTEP, or the interworking identifier may be set for the VRF on the third VTEP. The principle of detecting whether the interworking function between MPLS L3VPN and EVPN networking is enabled on the third VTEP is similar to the principle of detecting whether the interworking function between EVPN and MPLS L3VPN networking is enabled on the second VTEP, and is not described herein again.
According to the route establishing method, the forwarding table entry of the first VM is converted into the EVPN route, the next hop in the EVPN route is set as the address of the third VTEP for establishing the EVPN neighbor, and the VPNV4 route can be sent through the EVPN route, so that networking models of the MPLS L3VPN and the EVPN can be communicated, and message forwarding can be carried out in two kinds of networking. Thus, EVPN can serve as an access network for MPLS L3 VPN.
Fig. 6 is a schematic diagram illustrating an application scenario of a route establishment method according to another embodiment of the present disclosure. Referring to fig. 6, the steps of the route establishment method include:
1. a BGP EVPN neighbor (which may be referred to as an EVPN neighbor for short) is established between VTEP1 and VTEP2, and an EVPN networking network is configured. A BGP VPNV4 neighbor (which may be called VPNV4 neighbor for short) is established between VTEP2 and VTEP3, and MPLS L3VPN networking is configured. An EVPN neighbor is established between VTEP3 and VTEP4, and an EVPN networking is configured. VTEP1 is connected to VM1, and VTEP4 is connected to VM 2.
2. After learning the IP/MAC forwarding entries of VM1, VTEP1 synchronizes the IP/MAC forwarding entries of VM1 to VTEP2 through BGP EVPN route (which may be abbreviated as EVPN route).
3. After receiving the IP/MAC forwarding table entry synchronized by VTEP1, VTEP2 traverses the RT attributes below the EVPN address family of the local VRF. And if the RT attribute matched with the RT attribute carried by the EVPN route exists locally, introducing the EVPN route into the VRF corresponding to the matched RT attribute. That is, the IP/MAC forwarding table entry of VM1 is issued to the VRF. Additionally, VTEP2 may determine whether EVPN and MPLS L3VPN networking interworking functions are locally enabled. If the function is not enabled, the flow ends.
4. If the EVPN and MPLS L3VPN networking interworking function is enabled on the VTEP2, the forwarding table entry of the VM1 is converted into a BGP VPNV4 route (which may be abbreviated as VPNV4 route) in addition to the VRF issued in step 3. VPNV4 is then routed to VTEP3 through the neighbor of VPNV4 between VTEP2 and VTEP 3. Wherein, when sending VPNV4 route to VTEP3, VTEP2 changes the next hop of VPNV4 route to the address where VTEP2 establishes VPNV4 neighbor.
5. VTEP3, upon receiving the VPNV4 route sent by VTEP2, VTEP3 traverses RT attributes below the MPLS VPN address family of the local VRF. And if the RT attribute matched with the RT attribute carried by the VPNV4 route exists locally, introducing the VPNV4 route into the VRF corresponding to the matched RT attribute. That is, the VPNV4 route is analyzed, and the forwarding table entry of the VM1 is issued to the corresponding VRF. Furthermore, VTEP3 may check whether the MPLS L3VPN networking and EVPN networking interworking function is locally enabled, and if not, end the flow.
6. If the interworking function between the MPLS L3VPN networking and the EVPN networking is enabled on the VTEP3, in addition to the VRF forwarding in step 5, the forwarding table entry of the VM1 needs to be converted into an EVPN route. The EVPN is then routed to the VTEP4 device through its neighbors between VTEP3 and VTEP 4. When sending the EVPN route to VTEP4, VTEP3 changes the next hop of the EVPN route to the address of the next hop of the EVPN neighbor established by VTEP3 and VTEP 4.
7. VTEP4 has similar processing steps to step 3 after receiving the EVPN route passed from VTEP 3.
8. And after forwarding entries of the VM1 exist on the VTEP1, the VTEP2, the VTEP3 and the VTEP4, ending the route synchronization process of the forwarding entries of the VM 1.
9. The VM2 wants to access the VM1, encapsulates VXLAN on VTEP4, and obtains VXLAN messages, where the outgoing interface is VXLAN tunnel and the next hop is VTEP 3.
10. VTEP4 sends the VXLAN message to VTEP 3. The replacement of VXLAN encapsulation and MPLS encapsulation is implemented on VTEP 3. And the VTEP3 decapsulates the VXLAN message, performs MPLS LABEL encapsulation operation of MPLS L3VPN, obtains the MPLS LSP message, wherein the output interface is an MPLS LSP tunnel, and the next hop is VTEP 2.
11. VTEP3 forwards the MPLS LSP packets to VTEP 2. The replacement of VXLAN encapsulation and MPLS encapsulation is implemented on VTEP 3. VTEP2 carries out MPLS LSP decapsulation and MPLS LABEL decapsulation operation of MPLS L3VPN to the MPLS LSP message. Then, VTEP2 encapsulates VXLAN, the egress interface is a VXLAN tunnel, and the next hop is a VTEP1 device, so as to obtain a VXLAN packet.
12. VTEP2 sends the VXLAN message to VTEP 1. VTEP1 decapsulates the VXLAN packet and forwards the packet to VM 1.
The method and the device have the advantages that the routing interaction networking module between the EVPN protocol and the MPLS L3VPN is added, so that the BGP EVPN routing and the VPNV4 routing of the MPLS L3VPN can be mutually inserted, and a tunnel encapsulation and decapsulation mechanism is expanded, so that networking models of the EVPN and the MPLS L3VPN can be mutually communicated, service forwarding can be normally carried out in the butt-joint networking of the EVPN and the MPLS L3VPN, and the EVPN can be used as access networking of the MPLS L3 VPN.
Fig. 7 shows a schematic structural diagram of a route establishing apparatus according to an embodiment of the present disclosure. As shown in fig. 7, the route establishment apparatus is applied to a second VTEP of EVPN, and includes:
a first receiving module 41, configured to receive a first EVPN route from a first VTEP, where the first EVPN route includes a forwarding entry of a first VM;
a first conversion module 43, configured to convert the forwarding table entry of the first VM into an extended virtual private network VPNV4 route, where a next hop in the VPNV4 route establishes an address of a VPNV4 neighbor for the second VTEP;
a first sending module 45 for routing the VPNV4 to a third VTEP.
In a possible implementation manner, the first conversion module 43 is further configured to: detecting whether an EVPN and MPLS L3VPN networking intercommunication function is enabled or not; if EVPN and MPLS L3VPN networking interworking function is enabled, the forwarding table entry of the first VM is converted to an extended virtual private network VPNV4 route.
In one possible implementation, as shown in fig. 8, the apparatus further includes:
the first entry issuing module 51 is configured to issue the forwarding entry of the first VM to a corresponding virtual private network routing forwarding table VRF if the first EVPN route is locally matched to the VRF.
In one possible implementation manner, the first conversion module is further configured to: and detecting the intercommunication identification corresponding to the matched VRF to determine whether the matched VRF enables the EVPN and MPLS L3VPN networking intercommunication function.
Fig. 9 is a schematic structural diagram of a route establishing apparatus according to another embodiment of the present disclosure. As shown in fig. 9, the route establishment apparatus is applied to a third VTEP of EVPN, and includes:
a second receiving module 61, configured to receive a VPNV4 route from a second VTEP, where the VPNV4 route includes a forwarding entry of the first VM;
a second conversion module 63, configured to convert the forwarding entry of the first VM into a second EVPN route, where a next hop in the second EVPN route establishes an address of an EVPN neighbor for a third VTEP;
a second sending module 65, configured to send the second EVPN route to the fourth VTEP.
In a possible implementation manner, the second conversion module 63 is further configured to: detecting whether the MPLS L3VPN and EVPN networking intercommunication function is enabled or not; and if the MPLS L3VPN and EVPN networking intercommunication function is enabled, converting the forwarding table entry of the first VM into a second EVPN route.
In one possible implementation, as shown in fig. 10, the apparatus further includes:
the second entry issuing module 71 is configured to issue the forwarding entry of the first VM to the matched VRF if the VPNV4 route is locally matched to the corresponding VRF.
In one possible implementation manner, the second conversion module is further configured to: and detecting the intercommunication identification corresponding to the matched VRF to determine whether the matched VRF enables the MPLS L3VPN and EVPN networking intercommunication function.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 11 is a schematic structural diagram of a route establishing apparatus according to another embodiment of the present disclosure. Referring to fig. 11, the apparatus 900 may include a processor 901, a machine-readable storage medium 902 having stored thereon machine-executable instructions. The processor 901 and the machine-readable storage medium 902 may communicate via a system bus 903. Also, the processor 901 performs the route establishment method described above by reading machine executable instructions in the machine readable storage medium 902 corresponding to the route establishment logic.
The machine-readable storage medium 902 referred to herein may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: a RAM (random Access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein were chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the techniques in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (16)

1. A route establishment method applied to a second VTEP of an ethernet virtual private network EVPN, the method comprising:
receiving a first EVPN route from a first VTEP, wherein the first EVPN route comprises a forwarding table entry of a first VM;
converting the forwarding table entry of the first VM into an extended virtual private network (VPNV 4) route, wherein the next hop in the VPNV4 route establishes the address of a VPNV4 neighbor for a second VTEP;
the VPNV4 is routed to the third VTEP.
2. The method of claim 1, wherein converting the forwarding entry for the first VM into the extended virtual private network VPNV4 route comprises:
detecting whether an EVPN and MPLS L3VPN networking intercommunication function is enabled or not;
if EVPN and MPLS L3VPN networking interworking function is enabled, the forwarding table entry of the first VM is converted to an extended virtual private network VPNV4 route.
3. The method of claim 2, further comprising:
and if the first EVPN route is locally matched with the corresponding virtual private network route forwarding table VRF, issuing the forwarding table entry of the first VM to the matched VRF.
4. The method of claim 3, wherein detecting whether EVPN and MPLS L3VPN networking interworking functions are enabled comprises:
and detecting the intercommunication identification corresponding to the matched VRF to determine whether the matched VRF enables the EVPN and MPLS L3VPN networking intercommunication function.
5. A route establishment method applied to a third VTEP of EVPN, the method comprising:
receiving a VPNV4 route from a second VTEP, wherein the VPNV4 route comprises a forwarding table entry of a first VM;
converting a forwarding table entry of the first VM into a second EVPN route, wherein the next hop in the second EVPN route establishes an address of an EVPN neighbor for a third VTEP;
the second EVPN route is sent to a fourth VTEP.
6. The method of claim 5, wherein converting the forwarding entry for the first VM to the second EVPN route comprises:
detecting whether the MPLS L3VPN and EVPN networking intercommunication function is enabled or not;
and if the MPLS L3VPN and EVPN networking intercommunication function is enabled, converting the forwarding table entry of the first VM into a second EVPN route.
7. The method of claim 6, further comprising:
and if the VPNV4 route is locally matched with the corresponding VRF, issuing the forwarding table entry of the first VM to the matched VRF.
8. The method of claim 7, wherein detecting whether MPLS L3VPN and EVPN networking interworking functions are enabled comprises:
and detecting the intercommunication identification corresponding to the matched VRF to determine whether the matched VRF enables the MPLS L3VPN and EVPN networking intercommunication function.
9. A route establishment apparatus applied to a second VTEP of an ethernet virtual private network EVPN, the apparatus comprising:
a first receiving module, configured to receive a first EVPN route from a first VTEP, where the first EVPN route includes a forwarding entry of a first VM;
a first conversion module, configured to convert a forwarding table entry of the first VM into an extended virtual private network VPNV4 route, where a next hop in the VPNV4 route establishes an address of a VPNV4 neighbor for the second VTEP;
and the first sending module is used for sending the VPNV4 route to the third VTEP.
10. The apparatus of claim 9, wherein the first conversion module is further configured to: detecting whether an EVPN and MPLS L3VPN networking intercommunication function is enabled or not; if EVPN and MPLS L3VPN networking interworking function is enabled, the forwarding table entry of the first VM is converted to an extended virtual private network VPNV4 route.
11. The apparatus of claim 10, further comprising:
and the first table entry issuing module is used for issuing the forwarding table entry of the first VM to the matched VRF if the first EVPN route is locally matched with the corresponding VRF.
12. The apparatus of claim 11, wherein the first conversion module is further configured to: and detecting the intercommunication identification corresponding to the matched VRF to determine whether the matched VRF enables the EVPN and MPLS L3VPN networking intercommunication function.
13. A route establishment apparatus applied to a third VTEP of EVPN, the apparatus comprising:
a second receiving module, configured to receive a VPNV4 route from a second VTEP, where the VPNV4 route includes a forwarding entry of the first VM;
a second conversion module, configured to convert the forwarding entry of the first VM into a second EVPN route, where a next hop in the second EVPN route establishes an address of an EVPN neighbor for a third VTEP;
and a second sending module, configured to send the second EVPN route to a fourth VTEP.
14. The apparatus of claim 13, wherein the second conversion module is further configured to: detecting whether the MPLS L3VPN and EVPN networking intercommunication function is enabled or not; and if the MPLS L3VPN and EVPN networking intercommunication function is enabled, converting the forwarding table entry of the first VM into a second EVPN route.
15. The apparatus of claim 14, further comprising:
and the second table entry issuing module is configured to issue the forwarding table entry of the first VM to the matched VRF if the VPNV4 route is locally matched to the corresponding VRF.
16. The apparatus of claim 15, wherein the second conversion module is further configured to: and detecting the intercommunication identification corresponding to the matched VRF to determine whether the matched VRF enables the MPLS L3VPN and EVPN networking intercommunication function.
CN201711429796.2A 2017-12-26 2017-12-26 Route establishing method and device Active CN108092890B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711429796.2A CN108092890B (en) 2017-12-26 2017-12-26 Route establishing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711429796.2A CN108092890B (en) 2017-12-26 2017-12-26 Route establishing method and device

Publications (2)

Publication Number Publication Date
CN108092890A CN108092890A (en) 2018-05-29
CN108092890B true CN108092890B (en) 2020-01-07

Family

ID=62179129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711429796.2A Active CN108092890B (en) 2017-12-26 2017-12-26 Route establishing method and device

Country Status (1)

Country Link
CN (1) CN108092890B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108712316B (en) * 2018-05-30 2020-12-08 新华三技术有限公司 Access configuration method, device and system of virtual machine
CN109286565B (en) * 2018-11-15 2019-09-06 北京华三通信技术有限公司 Message forwarding method and device
CN111786884B (en) * 2019-04-04 2022-08-02 中兴通讯股份有限公司 Routing method and routing equipment
US10965592B2 (en) 2019-05-31 2021-03-30 Juniper Networks, Inc. Inter-network service chaining
CN112910771B (en) * 2019-12-03 2023-08-01 南京中兴新软件有限责任公司 Connection establishment method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110745A (en) * 2007-08-14 2008-01-23 华为技术有限公司 Method, device and system for engaging second layer network and third layer network
CN101667969A (en) * 2009-09-24 2010-03-10 中兴通讯股份有限公司 Method of accessing IP/L3VPN network of L2VPN network and device thereof
CN101848161A (en) * 2010-05-31 2010-09-29 杭州华三通信技术有限公司 Communication method and equipment of MPLS L2VPN (Multiple protocol Label Switching Layer 2 Virtual Private Network) and MPLS L3VPN (Multiple protocol Label Switching Layer 3 Virtual Private Network)
CN102739501A (en) * 2011-04-01 2012-10-17 中兴通讯股份有限公司 Message forwarding method in two or three layer virtual private network (VPN) and system thereof
CN105656796A (en) * 2014-11-25 2016-06-08 杭州华三通信技术有限公司 Method and device for achieving three-layer forwarding of virtual extensible local area network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110745A (en) * 2007-08-14 2008-01-23 华为技术有限公司 Method, device and system for engaging second layer network and third layer network
CN101667969A (en) * 2009-09-24 2010-03-10 中兴通讯股份有限公司 Method of accessing IP/L3VPN network of L2VPN network and device thereof
CN101848161A (en) * 2010-05-31 2010-09-29 杭州华三通信技术有限公司 Communication method and equipment of MPLS L2VPN (Multiple protocol Label Switching Layer 2 Virtual Private Network) and MPLS L3VPN (Multiple protocol Label Switching Layer 3 Virtual Private Network)
CN102739501A (en) * 2011-04-01 2012-10-17 中兴通讯股份有限公司 Message forwarding method in two or three layer virtual private network (VPN) and system thereof
CN105656796A (en) * 2014-11-25 2016-06-08 杭州华三通信技术有限公司 Method and device for achieving three-layer forwarding of virtual extensible local area network

Also Published As

Publication number Publication date
CN108092890A (en) 2018-05-29

Similar Documents

Publication Publication Date Title
US11102033B2 (en) Method and apparatus for implementing a flexible virtual local area network
CN108092890B (en) Route establishing method and device
CN107612808B (en) Tunnel establishment method and device
CN106936777B (en) Cloud computing distributed network implementation method and system based on OpenFlow
EP2856706B1 (en) Routing vlan tagged packets to far end addresses of virtual forwarding instances using separate administrations
JP4511532B2 (en) Device for connection-oriented transfer in packet-switched communication networks
CN108199963B (en) Message forwarding method and device
US8509248B2 (en) Routing frames in a computer network using bridge identifiers
EP3197107B1 (en) Message transmission method and apparatus
WO2016066072A1 (en) Method and device for realizing communication between nvo3 network and mpls network
CN110050445B (en) Method, device and system for sending and receiving message
US8861547B2 (en) Method, apparatus, and system for packet transmission
EP3782336B1 (en) Multi-vrf universal device internet protocol address for fabric edge devices
US10158567B1 (en) PBB-EVPN customer MAC synchronization among all-active multi-homing PEs
US10033636B1 (en) Ethernet segment aware MAC address learning
US11303474B1 (en) Split-horizon filtering for EVPN-VXLAN
CN102959903A (en) Interworking between ethernet and mpls
CN115190100A (en) Data forwarding method, VTEP gateway, electronic device and readable storage medium
CN107995084B (en) Tunnel selection method and device
Joseph et al. Network convergence: Ethernet applications and next generation packet transport architectures
EP3190752B1 (en) Method, apparatus and medium for avoiding traffic flooding due to asymmetric mac learning and achieving predictable convergence for pbb-evpn active-active redundancy
CN115174312B (en) Broadcast information transmission method, tunnel endpoint device, electronic device, and medium
CN115150323B (en) Route implementation method, VTEP, first edge equipment and system
WO2024016869A1 (en) Multicast configuration method and apparatus
CN113938354A (en) Routing information updating method and device, electronic equipment and computer readable medium

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