Communication method and device, computer equipment and computer readable storage medium

By automatically building and using IPv6-based virtual Ethernet private network tunnels, the complexity of tunnel creation in EVN6 technology is solved, the communication process is automated and simplified, and the flexibility and reliability of the network are improved.

CN119210934APending Publication Date: 2024-12-27CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411169093.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

In the existing IPv6-based Ethernet Virtual Network (EVN6) technology, the creation of tunnels and table entries is mainly through manual static configuration, which leads to complex configuration and error-prone, and requires simplification of the communication process.

Method used

By obtaining the target communication instructions of the communication demander sent by the second PE, a target communication tunnel is constructed based on the tunnel identification corresponding to the first PE and the routing information sent by the second PE, and the tunnel is automatically used when data transmission is required to achieve target communication Automatic establishment and use of tunnels.

Benefits of technology

It simplifies the communication process, improves the automated process of target communication tunnels from establishment to use, reduces network maintenance complexity, reduces unnecessary traffic overhead, and has flexible configuration and real-time perception capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119210934A_ABST
    Figure CN119210934A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication, in particular to a communication method and device, computer equipment and a computer readable storage medium, and the method comprises the steps: obtaining a target communication instruction, sent by a second PE, of a communication demander; under the condition that the communication tunnel which the target communication indication aims at is determined to be the target communication tunnel, the target communication tunnel is adopted to send target data to the second PE, so that the second PE forwards the target data to the communication demand side; wherein the target communication tunnel is a communication tunnel between the first PE and the second PE constructed according to the tunnel identifier corresponding to the first PE and the routing information sent by the second PE.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a communication method, apparatus, computer device and computer-readable storage medium. Background Art

[0002] IPv6-based Ethernet Virtual Network (EVN6) is a new technology that carries multi-site Ethernet virtual private networks in IPv6 networks. This technology directly encapsulates Ethernet data frames in IPv6 data packets, achieving efficient and secure virtual Ethernet communication in IPv6 network environments.

[0003] In EVN6 technology, a tunnel refers to a logical connection path used to encapsulate and transmit Ethernet data frames in an IPv6 network. The source and destination addresses of an IPv6 data packet are synthesized by the IPv6 mapping prefix, the Virtual Ethernet Identification (VEI) and the host MAC address. This address synthesis method ensures the uniqueness and security of the virtual private network.

[0004] Currently, EVN6 tunnel and table creation is mainly achieved through manual static configuration.

[0005] However, although the manual static configuration method is precise and controllable, it is complex and error-prone, so it is in urgent need of improvement. Summary of the invention

[0006] Based on this, it is necessary to provide a communication method, apparatus, computer device and computer-readable storage medium that can simplify the complexity of communication in response to the above technical problems.

[0007] In a first aspect, the present application provides a communication method, which is applied to a first provider edge device PE, and the method includes:

[0008] Obtaining a target communication indication of a communication demander sent by the second PE;

[0009] In the case where it is determined that the communication tunnel targeted by the target communication indication is the target communication tunnel, the target communication tunnel is used to send the target data to the second PE, so that the second PE forwards the target data to the communication demander;

[0010] The target communication tunnel is a communication tunnel between the first PE and the second PE constructed according to the tunnel identifier corresponding to the first PE and the routing information sent by the second PE.

[0011] In one of the embodiments, the routing information includes a tunnel identifier corresponding to the second PE and network information of a private network.

[0012] In one embodiment, the method further comprises:

[0013] Perform consistency verification on the tunnel identifier corresponding to the first PE and the tunnel identifier corresponding to the second PE;

[0014] If the verification is successful, a target communication tunnel between the first PE and the second PE is constructed according to the network information of the private network corresponding to the second PE.

[0015] In one embodiment, building a target communication tunnel between the first PE and the second PE according to network information of a private network corresponding to the second PE includes:

[0016] Determine whether the private network corresponding to the second PE is connectable according to the network information of the private network corresponding to the second PE;

[0017] If the connection is possible, a target communication tunnel between the first PE and the second PE is established.

[0018] In one of the embodiments, the target communication tunnel is a virtual Ethernet private network EVN6 tunnel based on IPv6; the tunnel identifier corresponding to the second PE is a virtual Ethernet identifier VEI; and the network information of the private network corresponding to the second PE is an IPv6 address prefix.

[0019] In one of the embodiments, the target communication indication includes a target communication tunnel identifier, device information and network information corresponding to the communication demander; the device information corresponding to the communication demander is a MAC address; and the network information corresponding to the communication demander is an IPv6 address.

[0020] In one of the embodiments, determining that the communication tunnel targeted by the target communication indication is the target communication tunnel includes:

[0021] If the target communication tunnel identifier included in the target communication indication is consistent with the tunnel identifier corresponding to the target communication tunnel, it is determined that the communication tunnel targeted by the target communication indication is the target communication tunnel.

[0022] In one embodiment, the target communication tunnel is used to send target data to the second PE so that the second PE forwards the target data to the communication demander, including:

[0023] Constructing a destination address corresponding to the communication demander according to the routing information, the tunnel identifier corresponding to the target communication tunnel, and the device information and network information corresponding to the communication demander;

[0024] The target communication tunnel is used to send the target data and the destination address to the second PE, so that the second PE sends the target data to the communication demander according to the destination address.

[0025] In a second aspect, the present application further provides a communication device, which is configured in a first provider edge device PE device and includes:

[0026] An acquisition module, used for acquiring a target communication indication of a communication demander sent by the second PE;

[0027] A transmission module, configured to, when determining that the communication tunnel targeted by the target communication indication is the target communication tunnel, use the target communication tunnel to send target data to the second PE, so that the second PE forwards the target data to the communication demander;

[0028] The target communication tunnel is a communication tunnel between the first PE and the second PE constructed according to the tunnel identifier corresponding to the first PE and the routing information sent by the second PE.

[0029] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0030] Obtaining a target communication indication of a communication demander sent by the second PE;

[0031] In the case where it is determined that the communication tunnel targeted by the target communication indication is the target communication tunnel, the target communication tunnel is used to send the target data to the second PE, so that the second PE forwards the target data to the communication demander;

[0032] The target communication tunnel is a communication tunnel between the first PE and the second PE constructed according to the tunnel identifier corresponding to the first PE and the routing information sent by the second PE.

[0033] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the following steps are implemented:

[0034] Obtaining a target communication indication of a communication demander sent by the second PE;

[0035] In the case where it is determined that the communication tunnel targeted by the target communication indication is the target communication tunnel, the target communication tunnel is used to send the target data to the second PE, so that the second PE forwards the target data to the communication demander;

[0036] The target communication tunnel is a communication tunnel between the first PE and the second PE constructed according to the tunnel identifier corresponding to the first PE and the routing information sent by the second PE.

[0037] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0038] Obtaining a target communication indication of a communication demander sent by the second PE;

[0039] In the case where it is determined that the communication tunnel targeted by the target indication is the target communication tunnel, the target communication tunnel is adopted to send the target data to the second PE, so that the second PE forwards the target data to the communication demander;

[0040] The target communication tunnel is a communication tunnel between the first PE and the second PE constructed according to the tunnel identifier corresponding to the first PE and the routing information sent by the second PE.

[0041] In the above-mentioned communication method, apparatus, computer equipment and computer-readable storage medium, a target communication tunnel is automatically constructed in advance between the first PE and the second PE according to routing information. When data transmission is required, the first PE obtains the target communication indication of the communication demander sent by the second PE, and first uses the target communication tunnel to send target data to the second PE, so that the second PE forwards the target data to the communication demander, thereby realizing the automatic use of the target communication tunnel, improving the automation process of the entire target communication tunnel from establishment to use, and simplifying the communication process. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments of the present application or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in the communication field, other related drawings can be obtained based on these drawings without paying any creative work.

[0043] Figure 1 An application environment diagram of a communication method in an embodiment;

[0044] Figure 2 is a flow chart of a communication method in one embodiment;

[0045] Figure 3 FIG. 1 is a flow chart of a step of sending target data to a second PE in an embodiment;

[0046] Figure 4 is a structural block diagram of a communication device in one embodiment;

[0047] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0049] The communication method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, the application environment includes multiple provider edge devices PE and at least one host, such as Figure 1 The first PE and the second PE shown in the figure are shown in the figure; wherein the host is connected to the second PE, and the communication between the host and the second PE can be carried out through the Ethernet interface, the optical fiber interface, and the wireless interface; in addition, in the EVPN network, the PE devices communicate with each other through the communication tunnel to realize the cross-regional Layer 2 network interconnection; specifically, the communication tunnel is a communication tunnel built based on EVN6 (IPv6-based Ethernet Virtual Network, a virtual Ethernet private network based on IPv6), which refers to a technical mechanism that uses the IPv6 network as the underlying transmission protocol to directly encapsulate the Ethernet data frame in the IPv6 data packet to realize the cross-regional multi-site Ethernet virtual private network interconnection. In EVN6, the construction of the communication tunnel usually does not require additional tunnel protocols (such as GRE, L2TP, etc.), because the IPv6 data packet itself can be used as a tunnel carrier to encapsulate the Ethernet data frame.

[0050] The core feature of the EVN6 communication tunnel is the use of IPv6 network as the underlying transmission protocol, which enables it to fully utilize the advantages of IPv6's rich address space and enhanced security. Through the EVN6 communication tunnel, a logical Layer 2 network connection can be established between sites in different geographical locations to achieve cross-regional transmission of Ethernet traffic. The EVN6 communication tunnel ensures the transparency of Ethernet data frames during transmission, making communication between remote sites just like within the same LAN.

[0051] In EVN6, when the first PE needs to transmit an Ethernet data frame to the remote second PE, it first encapsulates the Ethernet data frame in an IPv6 data packet. This encapsulation process ensures the integrity and transparency of the Ethernet data frame, enabling it to be transmitted on the IPv6 network. The encapsulated IPv6 data packet is then transmitted through the IPv6 network. In this process, the IPv6 network is responsible for routing the data packet from the first PE to the second PE. When the second PE device receives the IPv6 data packet, it decapsulates it, extracts the original Ethernet data frame from it, and passes it to the final host.

[0052] A host can be any device that is connected to a network and needs to communicate with other devices, such as a personal computer, server, smartphone, or other IoT device. In an IPv6 network, each host is assigned a unique IPv6 address for identification and communication on the network.

[0053] like Figure 1 As shown, both the first PE and the second PE include a control plane and a forwarding plane. The control plane includes a BGP EVPN peer and an EVN6 protocol layer; the forwarding plane includes an IPv6 protocol layer.

[0054] Among them, BGP EVPN peer refers to the logical connection between PEs in the EVPN network that exchanges EVPN routing information through the extended Border Gateway Protocol (BGP). These peers use MP-BGP (Multi-Protocol Extended Border Gateway Protocol) to communicate and share network status information such as MAC addresses, IP addresses, and tunnel identifiers to achieve cross-regional Layer 2 network interconnection.

[0055] The EVN6 protocol layer in the control plane is used to build the EVN6 communication tunnel to achieve cross-regional multi-site Ethernet virtual private network interconnection.

[0056] The IPv6 protocol layer in the forwarding plane is used to enable the forwarding plane to process IPv6 packets during packet forwarding. When a host sends an IPv6 packet, the packet first reaches the connected PE (such as the second PE). The forwarding plane of the second PE encapsulates the packet and sends it to the core network based on the routing information and forwarding policy provided by the control plane. In the core network, the packet is forwarded based on the MPLS label or VxLAN encapsulation and finally reaches the destination PE device. The forwarding plane of the destination PE device decapsulates the packet, extracts the original IPv6 packet, and forwards it to the destination host.

[0057] In an exemplary embodiment, Figure 2 As shown, a communication method is provided, which is applied to Figure 1 The application in the first provider edge device PE is taken as an example to illustrate, including the following S202 to S203. Among them:

[0058] S201, obtaining a target communication indication of a communication demander sent by a second PE.

[0059] In the EVPN scenario, the communication demander usually refers to the host. In addition, the target communication indication of the communication demander usually refers to the specific parameters and instructions required to establish a communication connection between the hosts. For example, the target communication indication may include the communication tunnel required for communication between the first PE and the host, the IPv6 address of the host, and the physical address of the host.

[0060] S202: When it is determined that the communication tunnel targeted by the target communication indication is the target communication tunnel, the target communication tunnel is used to send target data to the second PE, so that the second PE forwards the target data to the communication demander.

[0061] The target communication tunnel is the above-mentioned EVN6 tunnel (EVN6 Tunnel); the target communication tunnel specifically refers to the designated communication tunnel constructed between the first PE and the second PE in the above-mentioned scenario.

[0062] Specifically, the first PE can obtain the target communication indication through static configuration; in addition, the first PE can also obtain the target communication indication by running dynamic routing protocols (such as BGP, OSPF, etc.). These protocols allow network devices to automatically exchange routing information and build routing tables based on this information. At this time, the first PE is used as the source address of the target data, the host is used as the destination address of the target data, and the second PE is used to forward the destination data between the first PE and the host.

[0063] In the above communication method, a target communication tunnel is automatically constructed in advance between the first PE and the second PE according to the routing information. When data transmission is required, the first PE obtains the target communication indication of the communication demander sent by the second PE, and first uses the target communication tunnel to send the target data to the second PE, so that the second PE forwards the target data to the communication demander, thereby realizing the automatic use of the target communication tunnel, improving the automation process of the entire target communication tunnel from establishment to use, and simplifying the communication process.

[0064] In an exemplary embodiment, the routing information includes a tunnel identifier corresponding to the second PE and network information of the private network.

[0065] It can be understood that the routing information is used to create a target communication tunnel between the first PE and the second PE; in the EVN6 scenario, the tunnel identifier corresponding to the second PE refers to the virtual Ethernet identifier (VEI): it is used to identify and distinguish different Ethernet virtual private network instances throughout the entire network, and its maximum length is 32 bits.

[0066] In the EVPN6 scenario, the network information of the second PE corresponding to the private network can be an IPv6 address prefix. For example, the routing information is Figure 1 The EVPN Type 12 route in the example above may include the items in Table 1 below:

[0067] Table 1

[0068]

[0069] Among them, Route Distinguisher: This field is the RD (Route Distinguisher) value set in the EVPN instance;

[0070] Virtual Ethernet Identification: This field is the Layer 2 VEI of the EVN6 tunnel carried by this route, i.e., the identifier of the virtual Ethernet private network (i.e., the tunnel identifier of the target communication tunnel);

[0071] IPv6 Mapping Prefix length: This field indicates the length of the IPv6 address mapping prefix of the local site carried in this route.

[0072] IPv6 Mapping Prefix: This field contains the IPv6 address mapping prefix of the local site carried in this route.

[0073] It can be understood that the target communication indication is used to instruct the first PE and the second PE to transmit target data through the target communication tunnel, that is, the target communication indication is constructed during the use of the target communication tunnel.

[0074] In the EVN6 scenario, the target communication indication includes the target communication tunnel identifier, the device information and network information corresponding to the communication demander; the device information corresponding to the communication demander is the MAC address; the network information corresponding to the communication demander is the IPv6 address.

[0075] Exemplarily, the target communication indication is Figure 1 The EVPN Type 13 route in the example above may include the items in Table 2 below:

[0076] Table 2

[0077]

[0078] Among them, Route Distinguisher: This field is the RD (Route Distinguisher) value set in the EVPN instance;

[0079] MAC Address Length: This field indicates the length of the host MAC address carried by this route;

[0080] MAC Address: This field is the host MAC address carried by this route;

[0081] IPv6 Address Length: This field is the mask length of the host IPv6 address carried by this route;

[0082] IPv6 Address: This field is the host IPv6 address carried by this route;

[0083] Virtual Ethernet Identification: This field is the Layer 2 VEI of the EVN6 tunnel carried by this route, that is, the identifier of the virtual Ethernet private network.

[0084] The MAC Address and IPv6 Address are sent by the host to the second PE after going online.

[0085] Correspondingly, the method also includes: verifying the consistency of the tunnel identifier corresponding to the first PE and the tunnel identifier corresponding to the second PE; if the verification is successful, constructing a target communication tunnel between the first PE and the second PE according to the network information of the private network corresponding to the second PE.

[0086] Optionally, when verifying the consistency of the tunnel identifier corresponding to the first PE and the tunnel identifier corresponding to the second PE, the tunnel identifier corresponding to the first PE and the tunnel identifier corresponding to the second PE can be compared. If the comparison result is consistent, it is determined that the verification is successful; if the tunnel identifiers are inconsistent, the second PE device can discard the data packet.

[0087] Specifically, according to the network information of the private network corresponding to the second PE, a target communication tunnel is constructed between the first PE and the second PE, including: according to the network information of the private network corresponding to the second PE, determining whether the private network corresponding to the second PE is connectable; if connectable, constructing the target communication tunnel between the first PE and the second PE.

[0088] Specifically, the first PE checks in the local routing table whether there is a routing entry pointing to the IPv6 prefix corresponding to the second PE; if there is a corresponding entry in the routing table and the next hop is reachable, then the network from the first PE to the target IPv6 prefix should be reachable, that is, the first PE can connect to the second PE through the IPv6 network, that is, it has the communication basis for building the target communication tunnel.

[0089] Optionally, when constructing the target communication tunnel between the first PE and the second PE, it is necessary to synchronously construct control table items of the target communication tunnel. These control table items are usually used to guide the forwarding and processing of data packets to ensure the smooth progress of tunnel communication. Tunnel table items are configured on the first PE and the second PE, including the configuration of the tunnel interface, the specification of the encapsulation protocol, the matching of the tunnel identifier, etc. The tunnel table items should be associated with the routing table items so that the tunnel interface and the encapsulation protocol can be correctly selected when forwarding data packets; illustratively, in this embodiment, the control table items also include a mapping relationship table item consisting of a tunnel identifier VEI, an IPv6 address mapping prefix, a host MAC and an IPv6 address, which is used for the EVN6 control plane to encapsulate and forward Ethernet frames.

[0090] In this embodiment, the above EVN6 communication tunnel (i.e., target communication tunnel) and the target are created in a dynamic manner, so that the tunnel status and control table items can be updated in real time based on configuration, host status, and routing changes, without the need for manual configuration intervention on a large number of EVN6 communication tunnels, and with the characteristics of flexible configuration and real-time perception, effectively reducing the complexity of network maintenance and unnecessary traffic overhead. In addition, the control layer is extended based on the existing mature BGP EVPN, and there is no need to introduce private protocols, making the application of the technical solution extremely scalable and compatible.

[0091] Further, determining that the communication tunnel targeted by the target communication indication is the target communication tunnel includes: if the target communication tunnel identifier included in the target communication indication is consistent with the tunnel identifier corresponding to the target communication tunnel, determining that the communication tunnel targeted by the target communication indication is the target communication tunnel.

[0092] As shown in Table 2 above, the target communication indication includes a tunnel identifier VEI; if the target communication tunnel identifier included in the target communication indication is consistent with the tunnel identifier corresponding to the target communication tunnel, it is determined that the communication tunnel targeted by the target communication indication is the target communication tunnel; if they are inconsistent, the first PE no longer performs subsequent processing.

[0093] Further, such as Figure 3 As shown, the target communication tunnel is used to send target data to the second PE, so that the second PE forwards the target data to the communication demander, including:

[0094] S301, constructing a destination address corresponding to the communication demander according to routing information, a tunnel identifier corresponding to the target communication tunnel, and device information and network information corresponding to the communication demander.

[0095] Exemplarily, the host MAC and IPv6 address (i.e., the device information and network information corresponding to the communication demander) are used to generate the destination address of the target data, the address of the first PE is used as the target data source address, and the target data is encapsulated through EVN6 to form an EVN6 message; the routing information determines the forwarding path of the EVN6 message.

[0096] S302, using the target communication tunnel to send target data and a destination address to the second PE, so that the second PE sends the target data to the communication demander according to the destination address.

[0097] Specifically, after receiving the data packet, the second PE first parses the data packet header to obtain the tunnel identifier. The second PE searches for an entry matching the parsed tunnel identifier in its tunnel table. Once a matching tunnel table entry is found, the second PE decapsulates the data packet and extracts the target data.

[0098] The second PE forwards the data to the communication demander according to the destination address in the data packet.

[0099] In an exemplary embodiment, this embodiment provides a communication method, including a Type 12 routing interaction process and a Type 13 routing interaction process; wherein,

[0100] Type12 routing interaction process includes:

[0101] a1) The second generates an EVPN Type 12 route based on the tunnel identifier of the target communication tunnel configured by the local EVN6 and the IPv6 address mapping prefix information, and sends it to the first PE;

[0102] a2) After receiving the Type 12 route, the first PE parses and extracts the tunnel identifier I and IPv6 address mapping prefix of the target communication tunnel corresponding to the second PE according to the RT of the BGP EVPN instance;

[0103] a3) The first PE determines whether the received tunnel identifier VEI of the target communication tunnel is consistent with the locally stored tunnel identifier. If they are inconsistent, no further processing is performed; if they are consistent, the first PE queries whether the IPv6 address mapping prefix is ​​reachable by route.

[0104] a4) If the IPv6 mapping prefix route is unreachable, no further processing is done; if the route is reachable, an EVN6 tunnel and related entries are created on the local end.

[0105] The Type13 routing interaction process includes:

[0106] b1) After the host comes online, the second PE learns the host's MAC and IPv6 address;

[0107] b2) The second PE generates an EVPN Type 13 route and announces it to the remote neighbor PE.

[0108] b3) The first PE receives the Type 13 route, parses it according to the RT of the BGP EVPN instance, and extracts information such as VEI, host MAC, and IPv6 address;

[0109] b4) The first PE queries whether there is an EVN6 tunnel with the same VEI as the resolved VEI. If not, no processing is performed; if so, a mapping relationship table entry of VEI, IPv6 address mapping prefix, host MAC and IPv6 address is generated, which is used for encapsulation and forwarding of Ethernet frames by the EVN6 control plane.

[0110] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0111] Based on the same inventive concept, the embodiment of the present application also provides a communication device for implementing the communication method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more communication device embodiments provided below can refer to the limitations on the communication method above, and will not be repeated here.

[0112] In an exemplary embodiment, Figure 4 As shown, a communication device is provided, including: an acquisition module 11 and a transmission module 12, wherein:

[0113] An acquisition module 11 is used to acquire a target communication indication of a communication demander sent by a second PE;

[0114] The transmission module 12 is used to send the target data to the second PE by using the target communication tunnel when it is determined that the communication tunnel targeted by the target communication indication is the target communication tunnel, so that the second PE forwards the target data to the communication demander;

[0115] The target communication tunnel is a communication tunnel between the first PE and the second PE constructed according to the tunnel identifier corresponding to the first PE and the routing information sent by the second PE.

[0116] In one of the embodiments, the routing information includes a tunnel identifier corresponding to the second PE and network information of a private network.

[0117] In one of the embodiments, the apparatus further includes a construction module for: performing consistency verification on a tunnel identifier corresponding to the first PE and a tunnel identifier corresponding to the second PE;

[0118] If the verification is successful, a target communication tunnel between the first PE and the second PE is constructed according to the network information of the private network corresponding to the second PE.

[0119] In one of the embodiments, the construction module is further used to: determine whether the private network corresponding to the second PE is connectable according to the network information of the private network corresponding to the second PE;

[0120] If the connection is possible, a target communication tunnel between the first PE and the second PE is established.

[0121] In one of the embodiments, the target communication tunnel is a virtual Ethernet private network EVN6 tunnel based on IPv6; the tunnel identifier corresponding to the second PE is a virtual Ethernet identifier VEI; and the network information of the private network corresponding to the second PE is an IPv6 address prefix.

[0122] In one of the embodiments, the target communication indication includes a target communication tunnel identifier, device information and network information corresponding to the communication demander; the device information corresponding to the communication demander is a MAC address; and the network information corresponding to the communication demander is an IPv6 address.

[0123] In one of the embodiments, the acquisition module 11 is further used to: if the target communication tunnel identifier included in the target communication indication is consistent with the tunnel identifier corresponding to the target communication tunnel, determine that the communication tunnel targeted by the target communication indication is the target communication tunnel.

[0124] In one embodiment, the transmission module 12 is further used to: construct a destination address corresponding to the communication demander according to the routing information, the tunnel identifier corresponding to the target communication tunnel, the device information and network information corresponding to the communication demander;

[0125] The target communication tunnel is used to send the target data and the destination address to the second PE, so that the second PE sends the target data to the communication demander according to the destination address.

[0126] Each module in the above communication device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0127] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 5 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a communication method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0128] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0129] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0130] Obtaining a target communication indication of a communication demander sent by the second PE;

[0131] In the case where it is determined that the communication tunnel targeted by the target communication indication is the target communication tunnel, the target communication tunnel is used to send the target data to the second PE, so that the second PE forwards the target data to the communication demander;

[0132] The target communication tunnel is a communication tunnel between the first PE and the second PE constructed according to the tunnel identifier corresponding to the first PE and the routing information sent by the second PE.

[0133] In one embodiment, the routing information includes a tunnel identifier corresponding to the second PE and network information of a private network.

[0134] In one embodiment, when the processor executes the computer program, the following steps are further implemented: verifying the consistency of the tunnel identifier corresponding to the first PE and the tunnel identifier corresponding to the second PE;

[0135] If the verification is successful, a target communication tunnel between the first PE and the second PE is constructed according to the network information of the private network corresponding to the second PE.

[0136] In one embodiment, when the processor executes the computer program, the following steps are also implemented: determining whether the private network corresponding to the second PE is connectable based on the network information of the private network corresponding to the second PE; if connectable, constructing a target communication tunnel between the first PE and the second PE.

[0137] In one embodiment, the target communication tunnel is a virtual Ethernet private network EVN6 tunnel based on IPv6; the tunnel identifier corresponding to the second PE is a virtual Ethernet identifier VEI; and the network information of the private network corresponding to the second PE is an IPv6 address prefix.

[0138] In one embodiment, the target communication indication includes a target communication tunnel identifier, device information and network information corresponding to the communication demander; the device information corresponding to the communication demander is a MAC address; and the network information corresponding to the communication demander is an IPv6 address.

[0139] In one embodiment, when the processor executes the computer program, the following steps are further implemented: if the target communication tunnel identifier included in the target communication indication is consistent with the tunnel identifier corresponding to the target communication tunnel, it is determined that the communication tunnel targeted by the target communication indication is the target communication tunnel.

[0140] In one embodiment, when the processor executes the computer program, the following steps are also implemented: constructing a destination address corresponding to the communication demander based on routing information, a tunnel identifier corresponding to the target communication tunnel, and device information and network information corresponding to the communication demander; using the target communication tunnel, sending target data and the destination address to the second PE, so that the second PE sends the target data to the communication demander according to the destination address.

[0141] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0142] Obtaining a target communication indication of a communication demander sent by the second PE;

[0143] In the case where it is determined that the communication tunnel targeted by the target communication indication is the target communication tunnel, the target communication tunnel is used to send the target data to the second PE, so that the second PE forwards the target data to the communication demander;

[0144] The target communication tunnel is a communication tunnel between the first PE and the second PE constructed according to the tunnel identifier corresponding to the first PE and the routing information sent by the second PE.

[0145] In one embodiment, the routing information includes a tunnel identifier corresponding to the second PE and network information of a private network.

[0146] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: verifying the consistency of the tunnel identifier corresponding to the first PE and the tunnel identifier corresponding to the second PE;

[0147] If the verification is successful, a target communication tunnel between the first PE and the second PE is constructed according to the network information of the private network corresponding to the second PE.

[0148] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: determining whether the private network corresponding to the second PE is connectable based on the network information of the private network corresponding to the second PE; if connectable, constructing a target communication tunnel between the first PE and the second PE.

[0149] In one embodiment, the target communication tunnel is a virtual Ethernet private network EVN6 tunnel based on IPv6; the tunnel identifier corresponding to the second PE is a virtual Ethernet identifier VEI; and the network information of the private network corresponding to the second PE is an IPv6 address prefix.

[0150] In one embodiment, the target communication indication includes a target communication tunnel identifier, device information and network information corresponding to the communication demander; the device information corresponding to the communication demander is a MAC address; and the network information corresponding to the communication demander is an IPv6 address.

[0151] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: if the target communication tunnel identifier included in the target communication indication is consistent with the tunnel identifier corresponding to the target communication tunnel, it is determined that the communication tunnel targeted by the target communication indication is the target communication tunnel.

[0152] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: constructing a destination address corresponding to the communication demander based on routing information, a tunnel identifier corresponding to the target communication tunnel, and device information and network information corresponding to the communication demander; using the target communication tunnel, sending target data and the destination address to the second PE, so that the second PE sends the target data to the communication demander according to the destination address.

[0153] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0154] Obtaining a target communication indication of a communication demander sent by the second PE;

[0155] In the case where it is determined that the communication tunnel targeted by the target communication indication is the target communication tunnel, the target communication tunnel is used to send the target data to the second PE, so that the second PE forwards the target data to the communication demander;

[0156] The target communication tunnel is a communication tunnel between the first PE and the second PE constructed according to the tunnel identifier corresponding to the first PE and the routing information sent by the second PE.

[0157] In one embodiment, the routing information includes a tunnel identifier corresponding to the second PE and network information of a private network.

[0158] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: verifying the consistency of the tunnel identifier corresponding to the first PE and the tunnel identifier corresponding to the second PE;

[0159] If the verification is successful, a target communication tunnel between the first PE and the second PE is constructed according to the network information of the private network corresponding to the second PE.

[0160] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: determining whether the private network corresponding to the second PE is connectable based on the network information of the private network corresponding to the second PE; if connectable, constructing a target communication tunnel between the first PE and the second PE.

[0161] In one embodiment, the target communication tunnel is a virtual Ethernet private network EVN6 tunnel based on IPv6; the tunnel identifier corresponding to the second PE is a virtual Ethernet identifier VEI; and the network information of the private network corresponding to the second PE is an IPv6 address prefix.

[0162] In one embodiment, the target communication indication includes a target communication tunnel identifier, device information and network information corresponding to the communication demander; the device information corresponding to the communication demander is a MAC address; and the network information corresponding to the communication demander is an IPv6 address.

[0163] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: if the target communication tunnel identifier included in the target communication indication is consistent with the tunnel identifier corresponding to the target communication tunnel, it is determined that the communication tunnel targeted by the target communication indication is the target communication tunnel.

[0164] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: constructing a destination address corresponding to the communication demander based on routing information, a tunnel identifier corresponding to the target communication tunnel, and device information and network information corresponding to the communication demander; using the target communication tunnel, sending target data and the destination address to the second PE, so that the second PE sends the target data to the communication demander according to the destination address.

[0165] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0166] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0167] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A communication method, characterized in that: Applied to a first provider edge device PE, the method comprises: Obtaining a target communication indication of a communication demander sent by the second PE; In the case where it is determined that the communication tunnel targeted by the target communication indication is a target communication tunnel, using the target communication tunnel to send target data to the second PE, so that the second PE forwards the target data to the communication demander; The target communication tunnel is a communication tunnel between the first PE and the second PE constructed according to the tunnel identifier corresponding to the first PE and the routing information sent by the second PE.

2. The method according to claim 1, characterized in that The routing information includes a tunnel identifier corresponding to the second PE and network information of a private network.

3. The method according to claim 2, characterized in that The method further comprises: Performing consistency verification on the tunnel identifier corresponding to the first PE and the tunnel identifier corresponding to the second PE; If the verification is successful, a target communication tunnel between the first PE and the second PE is constructed according to the network information of the private network corresponding to the second PE.

4. The method according to claim 3, characterized in that The step of constructing a target communication tunnel between the first PE and the second PE according to the network information of the dedicated network corresponding to the second PE includes: Determining whether the private network corresponding to the second PE is connectable according to network information of the private network corresponding to the second PE; If the connection is possible, a target communication tunnel between the first PE and the second PE is established.

5. The method according to any one of claims 2 to 4, characterized in that: The target communication tunnel is a virtual Ethernet private network EVN6 tunnel based on IPv6; the tunnel identifier corresponding to the second PE is a virtual Ethernet identifier VEI; and the network information of the private network corresponding to the second PE is an IPv6 address prefix.

6. The method according to any one of claims 2 to 4, characterized in that: The target communication indication includes the target communication tunnel identifier, device information and network information corresponding to the communication demander; the device information corresponding to the communication demander is the MAC address; and the network information corresponding to the communication demander is the IPv6 address.

7. The method according to claim 6, characterized in that The determining that the communication tunnel targeted by the target communication indication is the target communication tunnel includes: If the target communication tunnel identifier included in the target communication indication is consistent with the tunnel identifier corresponding to the target communication tunnel, it is determined that the communication tunnel targeted by the target communication indication is the target communication tunnel.

8. The method according to claim 6, characterized in that The using the target communication tunnel to send the target data to the second PE so that the second PE forwards the target data to the communication demander includes: Constructing a destination address corresponding to the communication demander according to the routing information, the tunnel identifier corresponding to the target communication tunnel, and the device information and network information corresponding to the communication demander; The target communication tunnel is used to send the target data and the destination address to the second PE, so that the second PE sends the target data to the communication demander according to the destination address.

9. A communication device, characterized in that: The device configured in the first provider edge device PE includes: An acquisition module, used to acquire a target communication indication of a communication demander sent by the second PE; a transmission module, configured to, when determining that the communication tunnel targeted by the target communication indication is a target communication tunnel, use the target communication tunnel to send target data to the second PE, so that the second PE forwards the target data to the communication demander; The target communication tunnel is a communication tunnel between the first PE and the second PE constructed according to the tunnel identifier corresponding to the first PE and the routing information sent by the second PE.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Tunnel creating method and device

    CN106453025A

  • An information processing method and apparatus

    CN109067635A

  • Method and equipment for managing VXLAN tunnel under EVPN, and medium

    CN111083034A