Network intercommunication method and device
By establishing a tunnel of the EVPN HUB service model between network devices and encapsulating the exit identifier, the problem of the need to introduce fixed equipment in the prior art interoperability of multiple service types in networks is solved, and multi-service type network interoperability without additional equipment is achieved , reducing network costs.
Patent Information
- Application Number
- CN202210868313.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-21
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2042-07-21
AI Technical Summary
In the existing network interoperability solutions of various service types, fixed equipment needs to be introduced, resulting in increased network costs.
By establishing a tunnel of the EVPN HUB service model between network devices and encapsulating the egress identifier of the tunnel on the outer layer of the service message, the receiving end allows the egress identifier to be identified and messages different from local network services are processed.
It realizes network interoperability of multiple service types without adding additional equipment, reducing network costs.
Smart Images

Figure CN115460140B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a network intercommunication method and device. Background Art
[0002] L2VPN is a Layer 2 VPN (Virtual Private Network) technology based on MPLS. L2VPN encapsulates Layer 2 data (such as Ethernet data frames) into packets that can be transmitted in IP or MPLS networks, and forwards them through IP paths or MPLS tunnels. The receiving end decapsulates the packets and restores the original Layer 2 data, thereby achieving transparent transmission of Layer 2 data across IP or MPLS networks between different sites.
[0003] Currently, L2VPN can provide both point-to-point connection technology and multi-point connection technology. For example, point-to-point connection technology is called Virtual Private Wire Service (VPWS), and point-to-multipoint connection technology is called Virtual Private LAN Service (VPLS) and Virtual Extensible Local Area Network (VXLAN).
[0004] In recent years, due to the rise of software defined network (SDN) technology and the development of 5G technology, operators generally need to expand or upgrade the original core network to support new network structures. In the process of upgrading the core network, there may be scenarios where multiple types of business networks are interconnected.
[0005] like Figure 1 As shown, Figure 1 This is a schematic diagram of the network interconnection of various existing business types. Figure 1 In the example, the network device on the A-Leaf side is deployed with an Ethernet Virtual Private Network (EVPN) VXLAN network, while the network device on the B-Leaf side needs to access multiple servers and other devices to meet the SDN network requirements. The EVPN VPLS network is deployed, and the point-to-multipoint characteristics of the EVPN VPLS network are used to complete multi-server access.
[0006] When these two types of service networks need to be interconnected, Layer 2 switching technology is preferred. A Layer 2 switch is deployed between the VXLAN network and the VPLS network. The traffic on the VXLAN network side and the traffic on the VPLS network side are introduced to the Layer 2 switch, and the traffic on the two network sides is exchanged using Layer 2 switching.
[0007] Even if the above solution can realize the intercommunication of networks of various service types, it also causes the following defects: the intercommunication of existing networks of various service types will inevitably introduce fixed equipment, thereby increasing network costs. Summary of the invention
[0008] In view of this, the present application provides a network intercommunication method and apparatus to solve the problem of introducing fixed equipment and increasing network costs in existing network intercommunication solutions for multiple business types.
[0009] In a first aspect, the present application provides a network intercommunication method, the method is applied to a first network device, the first network device has deployed a first network service, a second network device has established a first tunnel with the first network device, the starting point of the first tunnel is the second network device, the end point of the first tunnel is the first network device, and the second network device has deployed a second network service, the method includes:
[0010] receiving, through the first tunnel, a first service message sent by the second network device, where the first service message includes a first exit identifier of the first tunnel;
[0011] If the first egress identifier belongs to the first identifier of the locally established EVPN HUB service model and the first egress identifier is associated with the first network service, sending the first service message to the first network service so that the first network service forwards the first service message according to the forwarding policy of its own service;
[0012] The first network service is any one of EVPN VPLS and EVPN VXLAN, the second network service is any one of EVPN VPLS and EVPN VXLAN, and the first network service is different from the second network service.
[0013] In a second aspect, the present application provides a network intercommunication device, the device is applied to a first network device, the first network device has deployed a first network service, the second network device has established a first tunnel with the first network device, the starting point of the first tunnel is the second network device, the end point of the first tunnel is the first network device, and the second network device has deployed a second network service, the device includes:
[0014] A receiving unit, configured to receive, through the first tunnel, a first service message sent by the second network device, wherein the first service message includes a first exit identifier of the first tunnel;
[0015] a sending unit, configured to send the first service message to the first network service if the first egress identifier belongs to the first identifier of the locally established EVPN HUB service model and the first egress identifier is associated with the first network service, so that the first network service forwards the first service message according to the forwarding policy of its own service;
[0016] The first network service is any one of EVPN VPLS and EVPN VXLAN, the second network service is any one of EVPN VPLS and EVPN VXLAN, and the first network service is different from the second network service.
[0017] In a third aspect, the present application provides a network device, including a processor and a machine-readable storage medium, the machine-readable storage medium storing machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to execute the method provided in the first aspect of the present application.
[0018] Therefore, by applying the network intercommunication method and device provided by the present application, the first network device has deployed the first network service. The second network device has established a first tunnel with the first network device. The starting point of the first tunnel is the second network device, and the end point of the first tunnel is the first network device. The second network device has deployed the second network service. Through the first tunnel, the first network device receives the first service message sent by the second network device, and the first service message includes the first exit identifier of the first tunnel. If the first exit identifier belongs to the first identifier of the locally established EVPN HUB service model and the first exit identifier is associated with the first network service, the first network device sends the first service message to the first network service, so that the first network service forwards and processes the first service message according to the forwarding strategy of its own service. Among them, the first network service is any one of EVPN VPLS and EVPN VXLAN, the second network service is any one of EVPN VPLS and EVPN VXLAN, and the first network service is different from the second network service.
[0019] In this way, the EVPN HUB service model built locally is used to establish tunnels between network devices that support different network services. By encapsulating the tunnel exit identifier in the outer layer of the service message, the receiving end can identify the exit identifier and process messages that are different from local network services. This solves the problem of introducing fixed equipment and increasing network costs in the existing network interconnection solutions for multiple types of services. It achieves the purpose of achieving network interconnection for multiple types of services without adding additional equipment to the network. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 This is a schematic diagram of the network interconnection of various existing business types;
[0021] Figure 2 A flowchart of a network intercommunication method provided in an embodiment of the present application;
[0022] Figure 3 A schematic diagram of network interconnection of multiple service types provided in an embodiment of the present application;
[0023] Figure 4 Another schematic diagram of network interconnection of multiple service types provided in an embodiment of the present application;
[0024] Figure 5 A structural diagram of a network intercommunication device provided in an embodiment of the present application;
[0025] Figure 6 The network device hardware structure provided in the embodiment of the present application. DETAILED DESCRIPTION
[0026] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0027] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more corresponding listed items.
[0028] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0029] The following is a detailed description of a network intercommunication method provided in an embodiment of the present application. Figure 2 , Figure 2 A flowchart of a network intercommunication method provided in an embodiment of the present application. The method is applied to a first network device. The network intercommunication method provided in an embodiment of the present application may include the following steps.
[0030] Step 210: Receive a first service message sent by the second network device through the first tunnel, where the first service message includes a first exit identifier of the first tunnel;
[0031] Specifically, the first network device and the second network device have achieved IP intercommunication and established a BGP EVPN neighbor.
[0032] Different network services are deployed in the first network device and the second network device, respectively. For example, the first network service is EVPN VPLS, and the second network service is EVPN VXLAN.
[0033] The second network device has established a first tunnel with the first network device. The starting point of the first tunnel is the second network device, and the end point of the first tunnel is the first network device. Through the first tunnel, the second network device can send service messages to the first network device to achieve intercommunication of multiple service type networks.
[0034] Through the first tunnel, the first network device receives a first service message sent by the second network device, where the first service message includes a first exit identifier of the first tunnel.
[0035] Optionally, before this step, the process also includes constructing an EVPN centralized switching (HUB) service model in the first network device, synchronizing EVPN route announcement messages, establishing a tunnel with the other end, and sending service messages to the other end using the tunnel.
[0036] It is understandable that the second network device also needs to perform the above optional process, which is described below using the first network device as an example.
[0037] The EVPN HUB function is started in the first network device, that is, an EVPN HUB business model is constructed in the first network device. The EVPN HUB business model includes business members, and the business members can represent a certain network service supported by the network device (for example, business member 1 supports EVPN VPWS service, or business member 1 supports EVPN VPLS service, or business member 1 supports EVPN VXLAN service). Each business member in different network devices and belonging to the same EVPN HUB business model can realize network intercommunication of multiple business types according to the rules defined in the EVPN HUB business model.
[0038] In the embodiment of the present application, the EVPN HUB service model has an identifier, namely, an EVPN HUB ID, which is used to identify the EVPN HUB service model to which the network service supported by the network device belongs. At the same time, according to the network service supported by the first network device, an EVPN HUB flag (FLAG) is configured for the network service, and the EVPN HUB flag of each network service is associated with a service member in the EVPN HUB service model.
[0039] For example, if the first network device supports EVPN VPWS service, the EVPN HUB flag is 1, and the service members in the EVPN HUB service model are associated with EVPN HUB flag 1; if the first network device supports EVPN VPLS service, the EVPN HUB flag is 2, and the service members in the EVPN HUB service model are associated with EVPN HUB flag 2; if the first network device supports EVPN VXLAN service, the EVPN HUB flag is 3, and the service members in the EVPN HUB service model are associated with EVPN HUB flag 3.
[0040] The EVPN HUB flag can also be used to distinguish the network services supported by the peer network device. When the network devices at both ends support the same type of network services, the EVPN HUB flags are the same. In this way, there is no need for intercommunication between the network devices at both ends, and the EVPN HUB service model establishment process will not be entered.
[0041] It is understandable that, since the first network device can support multiple network services at the same time, multiple service members can be configured in the EVPN HUB service module, and each service member is associated with an EVPN HUB flag, that is, each service member is associated with a supported network service. Of course, multiple EVPN HUB service models can also be established in the first network device, and one service member is configured in each EVPN HUB service model. Multiple EVPN HUB service models are suitable for scenarios in which the first network device includes multiple VMs and each VM supports different network services.
[0042] After the first network device completes the above-mentioned EVPN HUB function startup, configures the EVPN HUB ID, and the EVPN HUB flag of its own network service, it generates and publishes an EVPN route announcement message to the BGP EVPN neighbor. The EVPN route announcement message includes the EVPN HUB ID and the EVPN HUB flag, so that the peer end determines the network service supported by the first network device and the EVPN HUB service model to which the network service belongs, and establishes a corresponding tunnel with the first network device under the same EVPN HUB service model.
[0043] The above tunnel may be specifically a new type of tunnel defined in the embodiment of the present application, namely, Ethernet virtual private network centralized switching tunnel (EVPN HUB Tunnel, EHT for short). EHT is used to shield the differences in message encapsulation of different service types and realize concise message exchange.
[0044] It is understandable that each network device generates and publishes different types of EVPN route advertisement messages to BGP EVPN neighbors according to the network services it supports.
[0045] For example, if the first network device supports EVPN VPLS service, the first network device generates and publishes EVPN1 / 2 / 3 type routing advertisement messages; if the first network device supports EVPN VXLAN service, the first network device generates and publishes EVPN 1 / 2 / 3 type routing advertisement messages.
[0046] In an embodiment of the present application, the first network device generates a first EVPN route advertisement message, which includes an EVPN HUB ID (also referred to as a first identifier) of a locally established EVPN HUB service model and an EVPN HUB flag (also referred to as a first EVPN HUB flag) corresponding to the first network service.
[0047] The first network device adds a new portable field in the Ext-Community attribute (extended community attribute) included in the EVPN route advertisement message: the EVPN HUB attribute field. This field occupies 4 bytes and has the format:<EVPN HUB:id xxx,flagxxx> .
[0048] Among them, ID and FLAG refer to the above definition, ID occupies 3 bytes (value range 0 to 16777215), FLAG occupies 1 byte (value range 0 to 256).
[0049] The first network device sends a first EVPN route advertisement message to the second network device. After receiving the first EVPN route advertisement message, the second network device obtains a first identifier and a first EVPN HUB flag therefrom.
[0050] The second network device identifies whether the first identifier matches the locally established EVPN HUB ID (also referred to as the second identifier). If so, it identifies whether the first EVPN HUB identifier matches the EVPN HUB identifier (also referred to as the second EVPN HUB identifier) corresponding to the second network service supported by the device.
[0051] If there is no match, the second network device determines that the network service supported by the first network device is different from the network service supported by itself, and then the second network device establishes a first tunnel with itself as the starting point and the first network device as the end point.
[0052] The first EVPN routing announcement message also includes a first exit identifier, which is used to enable the peer end to distinguish the service type to which the service message belongs, that is, the network service supported by the network device sending the service message. After the second network device establishes the first tunnel, it also associates the first exit identifier and the first EVPN HUB flag with the first tunnel.
[0053] In an embodiment of the present application, the egress identifier is associated with the EVPN HUB ID and the EHT. Its significance lies in that the service message sent locally through the EHT will have the egress identifier encapsulated outside the service message. After receiving the service message, the peer end obtains the egress identifier and determines whether the corresponding EVPN HUB ID exists locally. If it exists locally, the service message can be delivered to the service member corresponding to the egress identifier in the EVPN HUB service model indicated by the EVPN HUB ID (the network service associated with the service member is the same as the network service corresponding to the egress identifier) for further processing, thereby realizing network interoperability of multiple service types.
[0054] The egress identifier may be specifically an identifier that already exists in the existing EVPN route, and the identifier may be specifically an attribute identifier that represents the attribute of the network device. It is understandable that when the existing EVPN route is published, the attribute identifier of the network device has been sent to the peer end, and in the embodiment of the present application, the peer end may use the attribute identifier as the egress identifier.
[0055] In different networks, the egress identifier can be implemented by different attribute identifiers. For example, in an IPv4 network, the egress identifier can be specifically the label MPLS LABEL of the network device, in an IPv6 network, the egress identifier can be specifically the address SRv6 SID of the network device, and in a VXLAN network, the egress identifier can be specifically the VXLAN ID of the VXLAN to which the network device belongs.
[0056] It should be noted that due to the different services supported by network devices, they can send multiple types of EVPN routing announcements at the same time. After the other end obtains multiple types of EVPN routing announcements, it can preferentially obtain the attribute identifier included in a certain type of EVPN routing announcement as the export identifier.
[0057] For example, the local end supports the EVPN VPWS service and the remote end supports the VPLS service. If the local end establishes an EHT tunnel to the remote end, the egress identifier is obtained from the EVPN 1 / 2 / 3 route published by the remote end. The local end preferentially obtains the attribute representation included in the EVPN 1 route as the egress identifier.
[0058] The local end supports EVPN VXLAN services, and the remote end supports EVPN VPWS services. If the local end establishes an EHT tunnel to the remote end, the egress identifier is obtained from the EVPN Class 1 route advertised by the remote end.
[0059] The local end supports EVPN VPLS services, and the remote end supports EVPN VXLAN services. If the local end establishes an EHT tunnel to the remote end, the egress identifier is obtained from the EVPN 1 / 2 / 3 routes advertised by the remote end. The local end preferentially obtains the attribute representation included in the EVPN 1 route as the egress identifier.
[0060] It is understandable that the multiple types of EVPN route advertisements sent by the network device all include the EVPN HUB ID, the EVPN HUB flag, and the egress identifier.
[0061] Similarly, the first network device also receives the EVPN route advertisement message issued by the second network device, and establishes an EHT tunnel with the second network device.
[0062] The process of the second network device generating the EVPN route advertisement message is the same as the process of the first network device generating the EVPN route advertisement message, which will not be repeated here.
[0063] Optionally, the first network device receives a second EVPN route advertisement message sent by the second network device, where the second EVPN route advertisement message includes a second identifier of an EVPN HUB service model locally established by the second network device and a second EVPN HUB flag corresponding to the second network service.
[0064] The first network device identifies whether the second identifier matches the first identifier. If so, the first network device continues to identify whether the second EVPN HUB identifier matches the first EVPN HUB identifier. If not, the first network device determines that the network service supported by the second network device is different from that supported by itself. The first network device establishes a second tunnel with itself as the starting point and the second network device as the end point.
[0065] It can be understood that the first tunnel and the second tunnel are both tunnels between the first network device and the second network device, but since the tunnel directions are different, the tunnels are represented as two.
[0066] Optionally, the second EVPN route advertisement message further includes a second egress identifier. After establishing the second tunnel, the first network device further associates the second egress identifier and the second EVPN HUB flag with the second tunnel.
[0067] Subsequently, the first network device may use the second tunnel to send service messages to the second network device.
[0068] Optionally, the first network device receives a private network message sent by the virtual machine, determines an outbound interface for forwarding the private network message according to the characteristics of the first network service deployed by the first network device, and obtains a second egress identifier of the second tunnel when the outbound interface for forwarding the private network message is determined to be the second tunnel.
[0069] The first network device encapsulates the second egress identifier in the outer layer of the private network message, and encapsulates the public network tunnel information in the outer layer of the second egress identifier to obtain the second service message. The first network device sends the second service message to the second network device through the second tunnel.
[0070] It should be noted that the process of encapsulating the second egress identifier in the outer layer of the private network message is to encapsulate the second egress identifier as a header in the outer layer of the private network message. For example, in an IPv4 network, the egress identifier can be encapsulated as an MPLS header in the outer layer of the private network message, in an IPv6 network, the egress identifier can be encapsulated as an IPv6 header in the outer layer of the private network message, and in a VXLAN network, the egress identifier can be encapsulated as a VXLAN header in the outer layer of the private network message.
[0071] In the embodiment of the present application, after the EVPN HUB flag is associated with the EHT, the EHT also has the attribute of the network service. The attribute of the network service is the same as the above-mentioned EVPN HUB flag, that is, it is used to distinguish the type of the peer network service.
[0072] For example, if the local end supports the EVPN VPLS service and the peer end supports the EVPN VXLAN service, the tunnel service attribute of the EHT established by the local end is 3, indicating that the EHT peer end supports the EVPN VXLAN service. At the same time, the local end also associates the EHT with the EVPN HUB ID of the EVPN HUB service model.
[0073] In the embodiment of the present application, EHT also has a learning attribute, that is, learning MAC addresses. For example, the EVPN VPWS service is a point-to-point service. In the process of forwarding messages, it does not forward by looking up the MAC table, but forwards through the binding relationship between AC and PW. In other words, the MAC table is not established in the network device that supports the EVPN VPWS service.
[0074] Therefore, in the EVPN HUB service model, after the EVPN VPLS / EVPN VXLAN service receives the service message sent by the peer from the EHT, it determines that the peer is the EVPN VPWS service through the service attributes of the EHT, then learns the source MAC address of the service message to the EHT, and publishes the EVPN Class 2 route advertisement message corresponding to the MAC address. If the peer is determined to be the EVPN VPLS / EVPN VXLAN service through the service attributes of the EHT, the source MAC address is not learned.
[0075] Step 220: If the first egress identifier belongs to the first identifier of the locally established EVPN HUB service model and the first egress identifier is associated with the first network service, the first service message is sent to the first network service so that the first network service forwards the first service message according to the forwarding policy of its own service.
[0076] Specifically, according to the description of step 210, after obtaining the first egress identifier of the first tunnel, the first network device identifies whether the first egress identifier belongs to the first identifier of the locally established EVPN HUB service model.
[0077] If yes, the first network device continues to identify whether the first egress identifier is associated with the first network service. If yes, the first network device determines that the network service supported by itself can process the first service message. The first network device sends the first service message to the first network service, so that the first network service forwards and processes the first service message according to the forwarding strategy of its own service.
[0078] In the embodiment of the present application, the above steps 210 and 220 may be executed by an EVPN HUB virtual tunnel endpoint (English: EVPN HUB VIRTUAL ENDPOINT, referred to as: EHVE endpoint) configured in the first network device.
[0079] The EHVE endpoint is a virtual endpoint within the EVPN network. It is a protocol layer or a logical layer, and is not physically present. It is used to correspond to network services supported by the other end but not supported by the local end, and to establish EHT to achieve communication across network services.
[0080] Therefore, by applying the network intercommunication method provided by the present application, the first network device has deployed the first network service. The second network device has established a first tunnel with the first network device. The starting point of the first tunnel is the second network device, and the end point of the first tunnel is the first network device. The second network device has deployed the second network service. Through the first tunnel, the first network device receives the first service message sent by the second network device, and the first service message includes the first exit identifier of the first tunnel. If the first exit identifier belongs to the first identifier of the locally established EVPN HUB service model and the first exit identifier is associated with the first network service, the first network device sends the first service message to the first network service, so that the first network service forwards and processes the first service message according to the forwarding strategy of its own service. Among them, the first network service is any one of EVPN VPLS and EVPN VXLAN, the second network service is any one of EVPN VPLS and EVPN VXLAN, and the first network service is different from the second network service.
[0081] In this way, the EVPN HUB service model built locally is used to establish tunnels between network devices that support different network services. By encapsulating the tunnel exit identifier in the outer layer of the service message, the receiving end can identify the exit identifier and process messages that are different from local network services. This solves the problem of introducing fixed equipment and increasing network costs in the existing network interconnection solutions for multiple types of services. It achieves the purpose of achieving network interconnection for multiple types of services without adding additional equipment to the network.
[0082] Optionally, in an embodiment of the present application, the first network device may be in a multi-homing member group and as a multi-homing member, the first EVPN route advertisement message further includes an Ethernet segment identifier.
[0083] The Ethernet segment identifier is used to enable the second network device to determine that an EVPN HUB service model matching each first identifier has been established locally and that the local network service does not match each first EVPN HUB mark after receiving multiple first EVPN route advertisement messages with the same Ethernet segment identifier, and to establish multiple first tunnels that back up each other with itself as the starting point and each network device with the same Ethernet segment identifier as the end point.
[0084] It should be noted that, when the first network device is a multi-homed member, the first EVPN route advertisement message may specifically be EVPN class 1 or class 4 routing. When the first network device is not a multi-homed member, the first EVPN route advertisement message may specifically be EVPN class 1 routing.
[0085] Optionally, in an embodiment of the present application, the second network device may also be in a multi-homing member group and as a multi-homing member, the second EVPN route advertisement message also includes an Ethernet segment identifier.
[0086] When receiving multiple second EVPN routing announcement messages with the same Ethernet segment identifier, the first network device identifies whether each second identifier matches the first identifier. If they all match, the first network device continues to identify whether each second EVPN HUB mark matches the first EVPN HUB mark. If they all do not match, the first network device determines that the network services supported by each second network device are different from itself. The first network device takes itself as the starting point and each second network device as the end point to establish multiple second tunnels that back up each other.
[0087] It should be noted that, when the second network device is a multi-homed member, the second EVPN route advertisement message is specifically EVPN class 1 and class 4 routes. When the second network device is not a multi-homed member, the second EVPN route advertisement message is specifically EVPN class 1 routes.
[0088] The network intercommunication method provided in the embodiment of the present application is described in detail below. Figure 3 , Figure 3 A schematic diagram of network interconnection of multiple service types provided in an embodiment of the present application. Figure 3 In the example, network device A and network device B are included, and each network device is connected to at least one CE.
[0089] Assume that the EVPN VPLS service is deployed in network device A and the EVPN VXLAN service is deployed in network device B. The EVPN services of network devices A and B are interconnected through the EVPN HUB service model.
[0090] EVPN route advertisement message publishing process:
[0091] Network device A and network device B have achieved IP interconnection and established BGP EVPN neighbors with each other.
[0092] Network device A configures the EVPN VPLS service, specifies RD(100:1) / RT(100:1) and PW labels, creates an EVPNHUB service model, and specifies the EVPN HUB ID as 123. At this time, the EVPN HUB FLAG is 2, indicating the VPLS service tag. The network device attribute identifier of network device A is 100 (the network device attribute identifier can be used as the tunnel egress identifier by the peer end). Network device A publishes an EVPN Class 3 route advertisement message.
[0093] Network device B configures the EVPN VXLAN service, specifies RD(200:1) / RT(100:1), VXLAN ID(200), creates an EVPN HUB service model, and specifies the EVPN HUB ID as 123. At this time, the EVPN HUB FLAG is 3, indicating the VXLAN service tag. The network device attribute identifier of network device B is 200 (the network device attribute identifier can be used as the tunnel egress identifier by the peer end). Network device B publishes an EVPN Class 3 route advertisement message.
[0094] The network device receives, identifies, processes, and establishes the EHT process for EVPN route advertisement messages:
[0095] Network device A receives the EVPN type 3 route advertisement message issued by network device B. Network device A recognizes that the RT included in the EVPN type 3 route advertisement message matches the local Import target attribute, but the EVPN type 3 route advertisement message does not include a PW label, so network device A cannot establish an EVPN PW tunnel with network device B.
[0096] Network device A identifies the EVPN HUB ID and EVPN HUB FLAG included in the EVPN Class 3 routing announcement message. The EVPN HUB ID matches the locally configured EVPN HUB ID. The EVPN HUB FLAG is 3, indicating that network device B supports EVPNVXLAN services, which are different from the services supported locally. Network device A establishes EHT1 with itself as the EHVE starting point and network device B as the EHVE end point. The exit identifier of EHT1 can be determined from the network device attribute identifier (200) included in the EVPN Class 3 routing announcement message. Network device A associates EHT1 with the local EVPN HUB service model. The ID of the EVPN HUB service model is 123, and the service members are the locally supported EVPN VPLS services.
[0097] Similarly, network device B receives the EVPN type 3 route advertisement message issued by network device A. Network device B recognizes that the RT included in the EVPN type 3 route advertisement message matches the local Import target attribute, but the EVPN type 3 route advertisement message does not include the VXLAN ID, so network device B cannot establish an EVPN VXLAN tunnel with network device A.
[0098] Network device B identifies the EVPN HUB ID and EVPN HUB FLAG included in the EVPN Class 3 routing announcement message. The EVPN HUB ID matches the locally configured EVPN HUB ID. The EVPN HUB FLAG is 2, indicating that network device A supports EVPNVPLS services, which are different from the services supported locally. Network device B establishes EHT2 with itself as the EHVE starting point and network device A as the EHVE end point. The exit identifier of EHT2 can be determined from the network device attribute identifier (100) included in the EVPN Class 3 routing announcement message. Network device B associates EHT2 with the local EVPN HUB service model. The ID of the EVPN HUB service model is 123, and the service members are the locally supported EVPN VXLAN services.
[0099] At this point, the EVPN HUB service model between network device A and network device B has been created. The two EVPN services between network device A and network device B can be interconnected through the EVPN HUB service model:
[0100] Network device A establishes one EHT, where EHT1 leads to network device B; network device B establishes one EHT, where EHT2 leads to network device A.
[0101] Service message forwarding process:
[0102] Network device A sends a service message to network device B:
[0103] Network device A receives private network message X sent by CE1 through the AC1 port. Since network device A deploys EVPN VPLS service, network device A learns the source MAC address included in private network message X and establishes a MAC table. Network device A publishes EVPN type 2 route advertisement message to BGP EVPN neighbor, and then, according to the forwarding rule of EVPN VPLS service, first queries the local MAC table. If the table entry corresponding to the destination MAC address included in private network message X is found in the local MAC table, it is forwarded according to the outbound interface indicated by the found MAC table entry, otherwise it is broadcasted and forwarded within the local AC. In this example, network device A finds the MAC table entry corresponding to the destination MAC address and the outbound interface indicated by the MAC table entry is EHT1. Network device A encapsulates the egress identifier of EHT1 (i.e., 200) in the outer layer of private network message X, and encapsulates the public network tunnel information in the outer layer of the egress identifier to obtain the service message. The service message is forwarded to network device B through EHT1.
[0104] After network device B receives the service message through EHT1, it first strips the public network tunnel encapsulation. Then, network device B identifies the egress identifier included in the service message. The egress identifier belongs to ID 123 of the EVPN HUB service model created locally by network device B, and the service member of the EVPN HUB service model supports the EVPN VXLAN service. Network device B forwards private network message X to the locally supported EVPN VXLAN service for forwarding processing. After the EVPN VXLAN service receives private network message X, it determines the peer of EHT1 according to the EVPN HUB flag associated with EHT1, that is, network device A supports the VPLS service, and the EVPNVXLAN service determines that it does not need to learn the source MAC address of private network message X. The EVPN VXLAN service first queries the local MAC table according to the forwarding rules of the VXLAN service. If the table entry corresponding to the destination MAC address included in the private network message X is queried in the local MAC table, it is forwarded according to the outbound interface indicated by the found MAC table entry, otherwise it is broadcast forwarded within the EVPN VXLAN. In this example, network device B finds a MAC table entry corresponding to the destination MAC address and the outbound interface indicated by the MAC table entry is the interface connected to CE3, so network device B forwards private network message X to CE3 through the interface.
[0105] Network device B sends a service message to network device A:
[0106] Network device B receives private network message Y sent by CE3. Since network device B deploys EVPN VXLAN service, network device B learns the source MAC address included in private network message Y and establishes a MAC table. Network device B publishes EVPN type 2 route advertisement message to BGP EVPN neighbor, and then, according to the forwarding rule of EVPN VXLAN service, first queries the local MAC table. If the table entry corresponding to the destination MAC address included in private network message Y is found in the local MAC table, it is forwarded according to the outbound interface indicated by the found MAC table entry, otherwise it is broadcast forwarded within EVPN VXLAN. In this example, network device B finds the MAC table entry corresponding to the destination MAC address and the outbound interface indicated by the MAC table entry is EHT2. Network device B encapsulates the egress identifier of EHT2 (i.e., 100) in the outer layer of private network message Y, and encapsulates the public network tunnel information in the outer layer of the egress identifier to obtain the service message. The service message is forwarded to network device A through EHT2.
[0107] After network device A receives the service message through EHT2, it first strips the public network tunnel encapsulation. Then, network device A identifies the egress identifier included in the service message. The egress identifier belongs to ID 123 of the EVPN HUB service model created locally by network device A, and the service member of the EVPN HUB service model supports the EVPN VPLS service. Network device A forwards the private network message Y to the locally supported EVPN VPLS service for forwarding processing. After the EVPN VPLS service receives the private network message Y, it determines the peer of EHT2 according to the EVPN HUB flag associated with EHT2, that is, network device B supports the VXLAN service, and the EVPN VPLS service determines that it does not need to learn the source MAC address of the private network message X. The EVPN VPLS service first queries the local MAC table according to the forwarding rules of the VPLS service. If the table entry corresponding to the destination MAC address included in the private network message X is queried in the local MAC table, it is forwarded according to the outbound interface indicated by the found MAC table entry, otherwise it is broadcast forwarded internally on the local AC port. In this example, network device A finds a MAC table entry corresponding to the destination MAC address and the outbound interface indicated by the MAC table entry is the AC1 port connected to CE1, so network device A forwards private network packet X to CE1 through the AC1 port.
[0108] The network intercommunication method provided in the embodiment of the present application is described in detail below. Figure 4 , Figure 4 Another schematic diagram of network interconnection of multiple service types provided in an embodiment of the present application. Figure 4In the example, network device A1, network device A2, network device B1, and network device B2 are included, and each network device is connected to at least one CE. Network device A1 and network device A2 belong to the same multi-homing group, and network device B1 and network device B2 belong to the same multi-homing group.
[0109] Assume that EVPN VPLS services are deployed in network devices A1 and A2, and EVPN VXLAN services are deployed in network devices B1 and B2. The EVPN services of network devices A1 and A2 are interconnected with the EVPN services of network devices B1 and B2 through the EVPN HUB service model.
[0110] EVPN route advertisement message publishing process:
[0111] Network devices A1, A2, B1, and B2 have achieved IP intercommunication and have established BGP EVPN neighbors with each other.
[0112] The configuration and processing of network device A1 are the same as those of network device A2. The following takes network device A1 as an example for explanation. Network device A1 configures the EVPN VPLS service, specifies RD(100:1) / RT(100:1) and PW label, creates an EVPN HUB service model, and specifies the EVPN HUB ID as 123. At this time, the EVPN HUB FLAG is 2, indicating the VPLS service tag. The network device attribute identifier of network device A1 is 100 (the network device attribute identifier can be used as the exit identifier of the tunnel by the peer end). The port of network device A1 connected to CE1 is configured with ESI 10 to form an EVPN multi-homing group with network device A2. Network device A1 publishes EVPN class 1, class 3, and class 4 routing advertisement messages.
[0113] The configuration and processing of the network device B1 are the same as those of the network device B2, and the following description will be made by taking the network device B1 as an example.
[0114] Network device B1 configures the EVPN VXLAN service, specifies RD(200:1) / RT(100:1), VXLAN ID(200), creates an EVPN HUB service model, and specifies the EVPN HUB ID as 123. At this time, the EVPN HUB FLAG is 3, indicating the VXLAN service tag. The network device attribute identifier of network device B1 is 200 (the network device attribute identifier can be used as the exit identifier of the tunnel by the peer end). The ports of network device B1 connected to CE2, CE3, and CE4 are configured with ESI 20 to form an EVPN multi-homing group with network device B2. Network device B1 publishes EVPN type 1, type 3, and type 4 route advertisement messages.
[0115] The network device receives, identifies, processes, and establishes the EHT process for EVPN route advertisement messages:
[0116] The configuration and processing of network device A1 and network device A2 are the same, and the following description will take network device A2 as an example.
[0117] Network device A2 receives EVPN type 1, type 3, and type 4 route advertisement messages issued by network device A1. Network device A2 first identifies the RT and PW labels included in the EVPN type 1 and type 3 route advertisement messages. The RT matches the local Import target attribute, and the PW label also matches the local PW label, and an EVPN PW tunnel is established between network device A2 and network device A1. Then, network device A2 identifies the RT and ESI included in the EVPN type 4 route advertisement message, and determines to form an EVPN multi-homing group with network device A1.
[0118] Network device A2 receives EVPN type 1, type 3, and type 4 route advertisement messages issued by network devices B1 and B2, respectively. Network device A2 first identifies that the RT included in each received EVPN type 1 and type 3 route advertisement message matches the local Importtarget attribute, but the EVPN type 1 and type 3 route advertisement messages do not include PW labels, so network device A2 cannot establish EVPN PW tunnels with network devices B1 and B2.
[0119] Network device A2 identifies the EVPN HUB ID and EVPN HUB FLAG respectively included in multiple EVPN Class 1 and Class 3 routing advertisement messages issued by network devices B1 and B2. The EVPN HUB ID matches the locally configured EVPN HUB ID. The EVPN HUB FLAG is 3, indicating that network devices B1 and B2 both support EVPN VXLAN services, which are different from the services supported locally. Network device A2 establishes EHT1 with itself as the EHVE starting point and network device B1 as the EHVE end point. Network device A2 establishes EHT2 with itself as the EHVE starting point and network device B2 as the EHVE end point. The exit identifiers of EHT1 and EHT2 can be determined from the network device attribute identifier (200) included in the EVPN Class 1 routing advertisement message. Network device A2 associates EHT1 and EHT2 with the local EVPN HUB service model. The ID of the EVPN HUB service model is 123, and the service members are the locally supported EVPN VPLS services.
[0120] At the same time, multiple EVPN type 1 route advertisement messages issued by network devices B1 and B2 also include the same ESI, which is 20. Network device A2 uses EHT1 and EHT2 as multi-homing tunnels in the same ES domain to implement redundant backup tunnels.
[0121] Network device A2 identifies multiple EVPN type 4 route advertisement messages issued by network devices B1 and B2. Since the RT and ESI included in each EVPN type 4 route advertisement message do not match the local RT and ESI, network device A2 no longer processes the multiple EVPN type 4 route advertisement messages.
[0122] Similarly, the configuration and processing of the network device B1 and the network device B2 are the same, and the following description will take the network device B2 as an example.
[0123] Network device B2 receives the EVPN type 1, type 3, and type 4 route advertisement messages issued by network device B1. Network device B2 first identifies the RT and VXLAN ID included in the EVPN type 1 and type 3 route advertisement messages. The RT matches the local Import target attribute, and the VXLAN ID also matches the local VXLAN ID, and an EVPN VXLAN tunnel is established between network device B2 and network device B1. Then, network device B2 identifies the RT and ESI included in the EVPN type 4 route advertisement message, and determines to form an EVPN multi-homing group with network device B1.
[0124] Network device B2 receives EVPN type 1, type 3, and type 4 route advertisement messages issued by network devices A1 and A2, respectively. Network device B2 first identifies that the RT included in each received EVPN type 1 and type 3 route advertisement message matches the local Importtarget attribute, but the EVPN type 1 route advertisement message does not include the VXLAN ID, so network device B2 cannot establish an EVPN VXLAN tunnel with network devices A1 and A2.
[0125] Network device B2 identifies the EVPN HUB ID and EVPN HUB FLAG respectively included in multiple EVPN Class 1 and Class 3 route announcement messages issued by network devices A1 and A2. The EVPN HUB ID matches the locally configured EVPN HUB ID. The EVPN HUB FLAG is 2, indicating that network devices A1 and A2 both support EVPN VPLS services, which are different from the services supported locally. Network device B2 establishes EHT3 with itself as the EHVE starting point and network device A1 as the EHVE end point. Network device B2 establishes EHT4 with itself as the EHVE starting point and network device A2 as the EHVE end point. The exit identifiers of EHT3 and EHT4 can be determined from the network device attribute identifier (100) included in the EVPN Class 1 route announcement message. Network device B2 associates EHT3 and EHT4 with the local EVPN HUB service model. The ID of the EVPN HUB service model is 123, and the service members are the locally supported EVPN VXLAN services.
[0126] At the same time, multiple EVPN type 1 route advertisement messages issued by network devices A1 and A2 also include the same ESI, which is 10. Network device B2 uses EHT3 and EHT4 as multi-homing tunnels in the same ES domain to implement redundant backup tunnels.
[0127] Network device B2 identifies multiple EVPN Class 4 route advertisement messages issued by network devices A1 and A2. Since the RT and ESI included in each EVPN Class 4 route advertisement message do not match the local RT and ESI, network device B2 no longer processes the multiple EVPN Class 4 route advertisement messages.
[0128] At this point, the EVPN HUB service models between network devices A1, A2, B1, and B2 have been created. The two EVPN services between network devices A1, A2, B1, and B2 can be interconnected through the EVPN HUB service model:
[0129] Network device A1 and network device A2 form an EVPN multi-homing group and establish one EVPN PW tunnel, where the EVPNPW tunnel leads to network device A2; establish two EHTs, where EHT1 leads to network device B1 and EHT2 leads to network device B2, and EHT1 and EHT2 form redundant backup tunnels;
[0130] Network device A2 and network device A1 form an EVPN multi-homing group and establish one EVPN PW tunnel, where the EVPNPW tunnel leads to network device A1; establish two EHTs, where EHT1 leads to network device B1 and EHT2 leads to network device B2, and EHT1 and EHT2 form redundant backup tunnels;
[0131] Network device B1 and network device B2 form an EVPN multi-homing group and establish one EVPN VXLAN tunnel, where the EVPN VXLAN tunnel leads to network device B2; establish two EHTs, where EHT3 leads to network device A1 and EHT4 leads to network device A2, and EHT 3 and EHT4 form redundant backup tunnels;
[0132] Network device B2 and network device B1 form an EVPN multi-homing group and establish one EVPN VXLAN tunnel, where the EVPN VXLAN tunnel leads to network device B1; establish two EHTs, where EHT3 leads to network device A1 and EHT4 leads to network device A2, and EHT 3 and EHT4 form redundant backup tunnels.
[0133] Service message forwarding process:
[0134] Network device A sends a service message to network device B. The following uses network device A1 as an example:
[0135] Network device A1 receives private network message X sent by CE1. Since network device A1 deploys EVPN VPLS service, network device A1 learns the source MAC address included in private network message X and establishes a MAC table. Network device A1 publishes EVPN Class 2 route advertisement message to BGP EVPN neighbor, and then, according to the forwarding rule of EVPN VPLS service, first queries the local MAC table. If the table entry corresponding to the destination MAC address included in private network message X is found in the local MAC table, it is forwarded according to the outbound interface indicated by the found MAC table entry, otherwise it is forwarded by broadcast inside the local AC. In this example, network device A1 finds the MAC table entry corresponding to the destination MAC address and the outbound interface indicated by the MAC table entry is EHT3. Network device A1 encapsulates the egress identifier of EHT3 (i.e., 200) in the outer layer of private network message Y, and encapsulates the public network tunnel information in the outer layer of the egress identifier to obtain the service message. The service message is forwarded to network device B1 through EHT3.
[0136] According to the above, network device A1 has established two EHTs, namely EHT1 and EHT2, which form redundant backup tunnels. Therefore, if EHT1 and EHT2 form an equivalent tunnel, network device A1 will share half of the private network messages with EHT1 and EHT2 according to the load sharing principle, and send half of the private network messages to network device B1 and network device B2 respectively. Network devices B1 and B2 perform subsequent processing after receiving the private network messages. If EHT1 and EHT2 form a primary and backup tunnel, network device A1 will send the private network message to the primary tunnel, and the primary tunnel will send it to network device B.
[0137] In this example, EHT1 and EHT2 form a primary and backup tunnel and EHT1 is the primary tunnel. Then network device A1 encapsulates the egress identifier of EHT1 (i.e., 200) in the outer layer of private network message X, and encapsulates the public network tunnel information in the outer layer of the egress identifier to obtain a service message. The service message is forwarded to network device B1 through EHT1.
[0138] After receiving the service message through EHT1, network device B1 first strips off the public network tunnel encapsulation. Then, network device B1 identifies the egress identifier included in the service message. The egress identifier belongs to ID 123 of the EVPN HUB service model created locally by network device B1, and the service member of the EVPN HUB service model supports the EVPN VXLAN service. Network device B1 forwards the private network message X to the locally supported EVPN VXLAN service for forwarding processing. After the EVPN VXLAN service receives the private network message X, it determines the peer of EHT1 according to the EVPN HUB flag associated with EHT1, that is, network device A1 supports the VPLS service, and the EVPNVXLAN service determines that it does not need to learn the source MAC address of the private network message X. The EVPN VXLAN service first queries the local MAC table according to the forwarding rules of the VXLAN service. If the table entry corresponding to the destination MAC address included in the private network message X is queried in the local MAC table, it is forwarded according to the outbound interface indicated by the found MAC table entry, otherwise it is broadcast forwarded within the EVPN VXLAN. In this example, the network device B1 finds a MAC table entry corresponding to the destination MAC address and the outbound interface indicated by the MAC table entry is the interface connected to CE3, so the network device B1 forwards the private network message X to CE3 through the interface.
[0139] In one implementation, if the link between network device B1 and CE3 fails, network device B1 can use the characteristics of the EVPN multi-homing group to forward private network message X to network device B2 through the EVPN VXLAN tunnel established between network device B2, and network device B2 forwards private network message X to CE3.
[0140] Network device B sends a service message to network device A. The following uses network device B1 as an example:
[0141] Network device B1 receives private network message Y sent by CE3. Since network device B1 deploys EVPN VXLAN service, network device B1 learns the source MAC address included in private network message Y and establishes a MAC table. Network device B1 publishes EVPN Class 2 route advertisement message to BGP EVPN neighbor, and then, according to the forwarding rule of EVPN VXLAN service, first queries the local MAC table. If the table entry corresponding to the destination MAC address included in private network message Y is found in the local MAC table, it is forwarded according to the outbound interface indicated by the found MAC table entry, otherwise it is broadcast forwarded within EVPN VXLAN. In this example, network device B1 finds the MAC table entry corresponding to the destination MAC address and the outbound interface indicated by the MAC table entry is EHT3. Network device B1 encapsulates the egress identifier of EHT3 (i.e., 100) in the outer layer of private network message Y, and encapsulates the public network tunnel information in the outer layer of the egress identifier to obtain the service message. The service message is forwarded to network device A1 through EHT3.
[0142] After network device A1 receives the service message through EHT3, it first strips the public network tunnel encapsulation. Then, network device A1 identifies the egress identifier included in the service message. The egress identifier belongs to ID 123 of the EVPN HUB service model created locally by network device A1, and the service member of the EVPN HUB service model supports the EVPN VPLS service. Network device A1 forwards the private network message Y to the locally supported EVPN VPLS service for forwarding processing. After the EVPN VPLS service receives the private network message Y, it determines the peer of EHT3 according to the EVPN HUB flag associated with EHT3, that is, network device B1 supports the VXLAN service, and the EVPN VPLS service determines that there is no need to learn the source MAC address of the private network message X. The EVPN VPLS service first queries the local MAC table according to the forwarding rules of the VPLS service. If the table entry corresponding to the destination MAC address included in the private network message Y is queried in the local MAC table, it is forwarded according to the outbound interface indicated by the found MAC table entry, otherwise it is broadcast forwarded internally at the local AC port. In this example, network device A1 finds a MAC table entry corresponding to the destination MAC address and the outbound interface indicated by the MAC table entry is the AC1 port connected to CE1, so network device A1 forwards private network message Y to CE1 through the AC1 port.
[0143] In an embodiment of the present application, if the link between network device A1 and CE1 fails, network device A1 can utilize the characteristics of the EVPN multi-homing group to forward private network message Y to network device A2 through the EVPN PW tunnel established between network device A2, and network device A2 forwards private network message Y to CE1.
[0144] Based on the same inventive concept, the embodiment of the present application also provides a network intercommunication device corresponding to the network intercommunication method. Figure 5 , Figure 5 A network intercommunication device provided in an embodiment of the present application is applied to a first network device, the first network device has deployed a first network service, a second network device has established a first tunnel with the first network device, the starting point of the first tunnel is the second network device, the end point of the first tunnel is the first network device, and the second network device has deployed a second network service. The device includes:
[0145] A receiving unit 510 is configured to receive, through the first tunnel, a first service message sent by the second network device, where the first service message includes a first exit identifier of the first tunnel;
[0146] A sending unit 520 is configured to send the first service message to the first network service if the first egress identifier belongs to the first identifier of the locally established EVPN HUB service model and the first egress identifier is associated with the first network service, so that the first network service forwards the first service message according to the forwarding policy of its own service;
[0147] The first network service is any one of EVPN VPLS and EVPN VXLAN, the second network service is any one of EVPN VPLS and EVPN VXLAN, and the first network service is different from the second network service.
[0148] Optionally, the first network device has established a second tunnel with the second network device, the starting point of the second tunnel is the first network device, and the end point of the second tunnel is the second network device;
[0149] The receiving unit 510 is also used to receive a private network message sent by the virtual machine;
[0150] The device further includes: an acquisition unit (not shown in the figure), configured to acquire a second exit identifier of the second tunnel when it is determined that the outgoing interface for forwarding the private network message is the second tunnel;
[0151] a processing unit (not shown in the figure), configured to encapsulate the second egress identifier in an outer layer of the private network message, and encapsulate the public network tunnel information in an outer layer of the second egress identifier to obtain a second service message;
[0152] The sending unit 520 is further configured to send the second service message to the second network device through the second tunnel.
[0153] Optionally, the sending unit 520 is further used to send a first EVPN routing announcement message to the second network device, where the first EVPN routing announcement message includes the first identifier, a first EVPNHUB flag corresponding to the first network service, and the first exit identifier, so that after the second network device determines that an EVPN HUB service model matching the first identifier has been established locally and the local network service does not match the first EVPN HUB flag, it establishes the first tunnel with itself as the starting point and the first network device as the end point, and associates the first exit identifier and the first EVPN HUB flag with the first tunnel.
[0154] Optionally, the receiving unit 510 is further used to receive a second EVPN route advertisement message sent by the second network device, where the second EVPN route advertisement message includes a second identifier of an EVPN HUB service model locally established by the second network device and a second EVPN HUB flag corresponding to the second network service;
[0155] The apparatus also includes: an establishing unit (not shown in the figure), which is used to establish the second tunnel with the first network device as the starting point and the second network device as the end point if the second identifier matches the first identifier and the second EVPN HUB flag does not match the first EVPN HUB flag.
[0156] Optionally, the second EVPN route advertisement message further includes the second egress identifier;
[0157] The device also includes: an associating unit (not shown in the figure), which is used to associate the second egress identifier, the second EVPN HUB flag and the second tunnel.
[0158] Optionally, when the first network device is a member of a multi-homing member group, the first EVPN route advertisement message further includes an Ethernet segment identifier;
[0159] The Ethernet segment identifier is used to enable the second network device to determine, after receiving multiple first EVPN route advertisement messages with the same Ethernet segment identifier, that an EVPN HUB service model matching each first identifier has been established locally and that the local network service does not match each first EVPN HUB mark, and to establish multiple first tunnels that back up each other with itself as the starting point and each network device with the same Ethernet segment identifier as the end point.
[0160] Optionally, when the second network device is a member of a multi-homing member group, the second EVPN route advertisement message further includes an Ethernet segment identifier;
[0161] The establishing unit (not shown in the figure) is further used for, when the receiving unit receives multiple second EVPN route advertisement messages with the same Ethernet segment identifier, if each second identifier matches the first identifier and each second EVPN HUB flag does not match the first EVPN HUB flag, establishing multiple second tunnels that back up each other with the first network device as a starting point and each second network device that sends a second EVPN route advertisement message with the same Ethernet segment identifier as an end point.
[0162] Therefore, by applying the network interconnection device provided by the present application, the first network device has deployed the first network service. The second network device has established a first tunnel with the first network device. The starting point of the first tunnel is the second network device, and the end point of the first tunnel is the first network device. The second network device has deployed the second network service. Through the first tunnel, the first network device receives the first service message sent by the second network device, and the first service message includes the first exit identifier of the first tunnel. If the first exit identifier belongs to the first identifier of the locally established EVPN HUB service model and the first exit identifier is associated with the first network service, the first network device sends the first service message to the first network service, so that the first network service forwards and processes the first service message according to the forwarding strategy of its own service. Among them, the first network service is any one of EVPN VPLS and EVPN VXLAN, the second network service is any one of EVPN VPLS and EVPN VXLAN, and the first network service is different from the second network service.
[0163] In this way, the EVPN HUB service model built locally is used to establish tunnels between network devices that support different network services. By encapsulating the tunnel exit identifier in the outer layer of the service message, the receiving end can identify the exit identifier and process messages that are different from local network services. This solves the problem of introducing fixed equipment and increasing network costs in the existing network interconnection solutions for multiple types of services. It achieves the purpose of achieving network interconnection for multiple types of services without adding additional equipment to the network.
[0164] Based on the same inventive concept, the embodiment of the present application also provides a network device, such as Figure 6 As shown, it includes a processor 610, a transceiver 620 and a machine-readable storage medium 630, the machine-readable storage medium 630 stores machine-executable instructions that can be executed by the processor 610, and the processor 610 is prompted by the machine-executable instructions to execute the network intercommunication method provided in the embodiment of the present application. Figure 5 The network intercommunication device shown in FIG. Figure 6 The network device hardware structure shown is implemented.
[0165] The computer-readable storage medium 630 may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk storage. Optionally, the computer-readable storage medium 630 may also be at least one storage device located away from the processor 610.
[0166] The processor 610 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, or discrete hardware components.
[0167] In the embodiment of the present application, the processor 610 reads the machine executable instructions stored in the machine readable storage medium 630, and the machine executable instructions enable the processor 610 itself and the transceiver 620 to execute the network intercommunication method described in the aforementioned embodiment of the present application.
[0168] In addition, an embodiment of the present application provides a machine-readable storage medium 630, which stores machine-executable instructions. When called and executed by the processor 610, the machine-executable instructions prompt the processor 610 itself and the calling transceiver 620 to execute the network intercommunication method described in the aforementioned embodiment of the present application.
[0169] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.
[0170] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying any creative work.
[0171] As for the network intercommunication device and the machine-readable storage medium embodiments, since the method contents involved are basically similar to the aforementioned method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0172] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A network intercommunication method, characterized in that: The method is applied to a first network device, the first network device has deployed a first network service, a second network device has established a first tunnel with the first network device, the first tunnel is an Ethernet virtual professional network centralized switching tunnel EHT, the starting point of the first tunnel is the second network device, the end point of the first tunnel is the first network device, and the second network device has deployed a second network service, the method includes: Receiving, through the first tunnel, a first service message sent by the second network device, where the first service message includes a first exit identifier of the first tunnel; If the first egress identifier is associated with a first identifier of a locally established EVPN HUB service model and the first egress identifier is associated with the first network service, sending the first service message to the first network service so that the first network service forwards the first service message according to a forwarding policy of its own service; The first network service is any one of EVPN VPLS and EVPN VXLAN, the second network service is any one of EVPN VPLS and EVPN VXLAN, and the first network service is different from the second network service; Before receiving, through the first tunnel, the first service message sent by the second network device, the method further includes: Sending a first EVPN route advertisement message to the second network device, where the first EVPN route advertisement message includes the first identifier, a first EVPN HUB identifier corresponding to the first network service, and the first egress identifier, so that after the second network device determines that an EVPN HUB service model matching the first identifier has been established locally and the local network service does not match the first EVPN HUB identifier, the second network device takes itself as a starting point and the first network device as an end point, establishes the first tunnel, and associates the first egress identifier and the first EVPN HUB identifier with the first tunnel; When the first network device is a member of a multi-homing member group, the first EVPN route advertisement message further includes an Ethernet segment identifier; The Ethernet segment identifier is used to enable the second network device to determine that an EVPN HUB service model matching each first identifier has been established locally and the local network service does not match each first EVPN HUB mark after receiving multiple first EVPN route advertisement messages with the same Ethernet segment identifier, and to establish multiple first tunnels that back up each other with itself as the starting point and each network device with the same Ethernet segment identifier as the end point; If the first network service determines that the second network service is the EVPN VPLS, the source MAC address included in the first service message is not learned; if the first network service determines that the second network service is the EVPNVXLAN, the source MAC address included in the first service message is not learned; The first network service forwards the first service message according to the forwarding strategy of its own service, specifically including: If the first network service determines that the second network service is the EVPN VPLS, query the local MAC table according to the forwarding rule of the VXLAN service; if the table entry corresponding to the destination MAC address included in the first service message is queried in the local MAC table, forward it according to the outbound interface indicated by the found MAC table entry, otherwise forward it by broadcasting inside the EVPN VXLAN; If the first network service determines that the second network service is the EVPN VXLAN, the local MAC table is queried according to the forwarding rules of the VPLS service; if the table entry corresponding to the destination MAC address included in the first service message is queried in the local MAC table, it is forwarded according to the outbound interface indicated by the found MAC table entry, otherwise it is forwarded by broadcast within the local AC port.
2. The method according to claim 1, characterized in that The first network device has established a second tunnel with the second network device, the second tunnel is an Ethernet virtual private network centralized switching tunnel EHT, the starting point of the second tunnel is the first network device, and the end point of the second tunnel is the second network device, and the method further includes: Receive private network messages sent by the virtual machine; When it is determined that the outbound interface for forwarding the private network message is the second tunnel, obtaining a second egress identifier of the second tunnel; Encapsulating the second egress identifier in an outer layer of the private network message, and encapsulating the public network tunnel information in an outer layer of the second egress identifier, to obtain a second service message; The second service message is sent to the second network device through the second tunnel.
3. The method according to claim 1, characterized in that Before receiving, through the first tunnel, the first service message sent by the second network device, the method further includes: receiving a second EVPN route advertisement message sent by the second network device, where the second EVPN route advertisement message includes a second identifier of an EVPN HUB service model locally established by the second network device and a second EVPN HUB flag corresponding to the second network service; If the second identifier matches the first identifier, and the second EVPN HUB identifier does not match the first EVPN HUB identifier, a second tunnel is established with the first network device as a starting point and the second network device as an end point.
4. The method according to claim 3, characterized in that The second EVPN route advertisement message also includes a second egress identifier; After establishing the second tunnel, the method further includes: Associating the second egress identifier, the second EVPN HUB flag, and the second tunnel.
5. The method according to claim 3, characterized in that: When the second network device is a member of a multi-homing member group, the second EVPN route advertisement message further includes an Ethernet segment identifier; The method further comprises: When multiple second EVPN route advertisement messages with the same Ethernet segment identifier are received, if each second identifier matches the first identifier and each second EVPN HUB flag does not match the first EVPN HUB flag, multiple second tunnels that back up each other are established with the first network device as the starting point and each second network device that sends the second EVPN route advertisement message with the same Ethernet segment identifier as the end point.
6. A network intercommunication device, characterized in that: The apparatus is applied to a first network device, the first network device has deployed a first network service, a second network device has established a first tunnel with the first network device, the first tunnel is an Ethernet virtual private network centralized switching tunnel EHT, the starting point of the first tunnel is the second network device, the end point of the first tunnel is the first network device, and the second network device has deployed a second network service, the apparatus includes: A receiving unit, configured to receive, through the first tunnel, a first service message sent by the second network device, wherein the first service message includes a first exit identifier of the first tunnel; a sending unit, configured to send the first service message to the first network service if the first egress identifier is associated with the first identifier of the locally established EVPN HUB service model and the first egress identifier is associated with the first network service, so that the first network service forwards the first service message according to a forwarding policy of its own service; The first network service is any one of EVPN VPLS and EVPN VXLAN, the second network service is any one of EVPN VPLS and EVPN VXLAN, and the first network service is different from the second network service; Before the receiving unit receives the first service message sent by the second network device through the first tunnel, the sending unit is further used to send a first EVPN route advertisement message to the second network device, where the first EVPN route advertisement message includes the first identifier, a first EVPN HUB flag corresponding to the first network service, and the first egress identifier, so that after the second network device determines that an EVPN HUB service model matching the first identifier has been established locally and the local network service does not match the first EVPN HUB flag, the second network device takes itself as a starting point and the first network device as an end point, establishes the first tunnel, and associates the first egress identifier and the first EVPN HUB flag with the first tunnel; When the first network device is a member of a multi-homing member group, the first EVPN route advertisement message further includes an Ethernet segment identifier; The Ethernet segment identifier is used to enable the second network device to determine that an EVPN HUB service model matching each first identifier has been established locally and the local network service does not match each first EVPN HUB mark after receiving multiple first EVPN route advertisement messages with the same Ethernet segment identifier, and to establish multiple first tunnels that back up each other with itself as the starting point and each network device with the same Ethernet segment identifier as the end point; If the first network service determines that the second network service is the EVPN VPLS, the source MAC address included in the first service message is not learned; if the first network service determines that the second network service is the EVPNVXLAN, the source MAC address included in the first service message is not learned; The first network service forwards the first service message according to the forwarding strategy of its own service, specifically including: If the first network service determines that the second network service is the EVPN VPLS, query the local MAC table according to the forwarding rule of the VXLAN service; if the table entry corresponding to the destination MAC address included in the first service message is queried in the local MAC table, forward it according to the outbound interface indicated by the found MAC table entry, otherwise forward it by broadcasting inside the EVPN VXLAN; If the first network service determines that the second network service is the EVPN VXLAN, the local MAC table is queried according to the forwarding rules of the VPLS service; if the table entry corresponding to the destination MAC address included in the first service message is queried in the local MAC table, it is forwarded according to the outbound interface indicated by the found MAC table entry, otherwise it is forwarded by broadcast within the local AC port.
7. The device according to claim 6, characterized in that The first network device has established a second tunnel with the second network device, the second tunnel is an Ethernet virtual private network centralized switching tunnel EHT, the starting point of the second tunnel is the first network device, and the end point of the second tunnel is the second network device; The receiving unit is also used to receive a private network message sent by the virtual machine; The device further includes: an acquisition unit, configured to acquire a second exit identifier of the second tunnel when it is determined that the outgoing interface for forwarding the private network message is the second tunnel; A processing unit, configured to encapsulate the second egress identifier in an outer layer of the private network message, and encapsulate the public network tunnel information in an outer layer of the second egress identifier to obtain a second service message; The sending unit is further used to send the second service message to the second network device through the second tunnel.
8. The device according to claim 6, characterized in that The receiving unit is further configured to receive a second EVPN route advertisement message sent by the second network device, where the second EVPN route advertisement message includes a second identifier of an EVPN HUB service model locally established by the second network device and a second EVPN HUB flag corresponding to the second network service; The apparatus also includes: an establishing unit, configured to establish a second tunnel with the first network device as a starting point and the second network device as an end point if the second identifier matches the first identifier and the second EVPN HUB flag does not match the first EVPN HUB flag.
9. The device according to claim 8, characterized in that The second EVPN route advertisement message also includes a second egress identifier; The device also includes: an associating unit, configured to associate the second egress identifier, the second EVPN HUB flag, and the second tunnel.
10. The device according to claim 8, characterized in that When the second network device is a member of a multi-homing member group, the second EVPN route advertisement message further includes an Ethernet segment identifier; The establishing unit is further configured to, when the receiving unit receives multiple second EVPN route advertisement messages with the same Ethernet segment identifier, if each second identifier matches the first identifier and each second EVPN HUB flag does not match the first EVPN HUB flag, establish multiple second tunnels that back up each other with the first network device as a starting point and each second network device that sends a second EVPN route advertisement message with the same Ethernet segment identifier as an end point.
Citation Information
Patent Citations
Service isolation method and device, SDN network system and routing equipment
CN111884903A
Method and equipment for transmitting service in network
CN113472622A