Method and device for bearing IP three-layer VPN by target network, and medium
By receiving and parsing IP packet headers in non-IP networks, determining service tunnels and encapsulating packets, the problem of non-IP networks carrying IP three-layer VPNs is solved, achieving seamless migration and L3VPN function support for the target network.
Patent Information
- Application Number
- CN202410838516.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-11
AI Technical Summary
In the existing technology, non-IP networks do not support the L3VPN function. Especially in scenarios such as video networking, it is difficult to implement IP three-layer VPNs on non-IP networks.
By receiving and parsing IP packet header information, the service tunnel is determined according to the tunnel mapping table, and the IP packet is encapsulated into a target network packet and forwarded to the downlink network device to achieve uplink access to the target network and provide L3VPN functions.
The target network is realized as a network base to support the L3VPN function in IP services, allowing users to migrate seamlessly without affecting the usage habits of target network users.
Smart Images

Figure CN118764338A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a method for a target network to bear an IP three-layer VPN, a network device, an electronic device and a storage medium. Background Art
[0002] Figure 1 It is a structural diagram of a three-layer VPN (Virtual Private Network) in an IP network in the prior art, such as Figure 1 As shown in the figure, L3VPN (Layer 3 Virtual Private Network) in IP network includes:
[0003] Site: Site.
[0004] CE (Customer Edge): User network edge device, with an interface directly connected to the service provider SP (Service Provider) network, the user's VPN site (Site) is connected to the SP network through CE. CE can be a network device or a host. Usually, CE cannot "sense" the existence of VPN and does not need to support MPLS (Multi-Protocol Label Switching).
[0005] PE (Provider Edge): is the edge device of the service provider network, directly connected to the CE. In the MPLS network, the PE device acts as an LSR (Label Switching Router). All processing of MPLS and VPN occurs on the PE, which places high performance requirements on the PE.
[0006] P (Provider): Backbone equipment in the service provider network, not directly connected to the CE. In an MPLS network, the P device acts as an LSR and only needs to process MPLS, not maintain VPN information.
[0007] However, in non-IP networks, L3VPN function is not supported yet. For example, in visual networking, how to realize non-IP network carrying IP Layer 3 VPN has become an important issue that needs to be solved urgently. Summary of the invention
[0008] In view of the above problems, embodiments of the present invention are proposed to provide a method for a target network to carry IP layer 3 VPN, a network device, an electronic device and a storage medium to overcome the above problems or at least partially solve the above problems.
[0009] In order to solve the above problems, firstly, an embodiment of the present invention discloses a method for a target network to bear an IP layer 3 VPN, the method comprising:
[0010] After receiving the IP message, parse the IP message header information corresponding to the IP message;
[0011] Determine the service tunnel based on the acquired IP packet header information and the tunnel mapping table;
[0012] After encapsulating the IP message into a network message corresponding to the target network, the network message is forwarded to the downlink network device corresponding to the service tunnel.
[0013] As in the above method, optionally, the method further comprises:
[0014] Receive and save the mapping rule table from the IP packet header to the target network identifier sent by the server;
[0015] A tunnel mapping table is determined according to the mapping rule table.
[0016] As in the above method, optionally, the receiving and saving of the mapping rule table from the IP packet header to the target network identifier sent by the server includes:
[0017] Receive and save the tunnel configuration table sent by the server;
[0018] Accordingly, determining the tunnel mapping table according to the mapping rule table includes:
[0019] A service tunnel is established according to the tunnel configuration table, and after the service tunnel is established, a tunnel mapping table is determined.
[0020] As in the above method, optionally, the receiving and saving of the mapping rule table from the IP packet header to the target network identifier sent by the server includes:
[0021] Receive and save the IP packet header conversion table and IP packet header local interface mapping table sent by the server;
[0022] Accordingly, the method further comprises:
[0023] After receiving the network message encapsulated as the target network, decapsulating the received network message into an IP message according to the IP message header conversion table;
[0024] The IP message is forwarded according to the IP message header local interface mapping table.
[0025] As the above method, optionally, it also includes:
[0026] Receive VPN service activation notification from the server;
[0027] Determine a target network service interface and an IP network service interface, process the target network message through the target network service interface, and process the IP message through the IP network service interface.
[0028] As the above method, optionally, it also includes:
[0029] Receive VPN service shutdown notification from the server;
[0030] The target network service interface and the IP network service interface are deleted.
[0031] As in the above method, optionally, the target network is a visual network, and the target network identifier is a visual network number.
[0032] In order to solve the above problem, secondly, an embodiment of the present invention discloses a network device, wherein the network device includes:
[0033] A receiving and parsing module, used for parsing the IP message header information corresponding to the IP message after receiving the IP message;
[0034] A tunnel determination module, used to determine the service tunnel according to the acquired IP message header information and the tunnel mapping table;
[0035] The encapsulation and forwarding module is used to encapsulate the IP message into a network message corresponding to the target network, and then forward the network message to the downlink network device corresponding to the service tunnel.
[0036] In order to solve the above problem, in a third aspect, an embodiment of the present invention discloses an electronic device, including:
[0037] one or more processors; and
[0038] One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, enable the electronic device to execute the method for carrying an IP layer-3 VPN on a target network as described in any one of the first aspects above.
[0039] In order to solve the above problem, in a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program that enables a processor to execute the method of carrying an IP layer-3 VPN on a target network as described in any one of the above first aspects.
[0040] The embodiments of the present invention include the following advantages:
[0041] In an embodiment of the present invention, an IP message is encapsulated into a target network message, and matched to a service tunnel according to relevant information of the IP message header, and then the encapsulated message is sent to a target device of the service tunnel, thereby realizing the uplink access to the target network function, providing a forwarding basis for the target network to carry IP Layer 3 VPN, and realizing the target network as a network base to support the L3VPN function in the IP service, which allows users to migrate seamlessly without affecting the user usage habits of the target network. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a structural diagram of a three-layer VPN in an IP network in the prior art;
[0043] Figure 2 It is a flowchart of a method embodiment of a target network carrying IP layer 3 VPN of the present invention;
[0044] Figure 3 It is a schematic diagram of VPN service configuration process in an embodiment of a method for carrying IP layer 3 VPN on a target network of the present invention;
[0045] Figure 4 It is a schematic diagram of a VPN service configuration process in an embodiment of a method for a target network to bear IP layer 3 VPN of the present invention;
[0046] Figure 5 It is a processing flow diagram of an embodiment of a method for a target network to bear IP layer 3 VPN of the present invention;
[0047] Figure 6 It is a diagram of a visual networking application scenario in an embodiment of a method for a target network to bear IP layer 3 VPN of the present invention;
[0048] Figure 7 It is a diagram of a visual networking application scenario in another method embodiment of the target network carrying IP layer 3 VPN of the present invention;
[0049] Figure 8 It is a structural block diagram of a method embodiment of a target network carrying an IP three-layer VPN in the present invention when a visual network carries an IP three-layer VPN;
[0050] Fig. 9 It is a schematic diagram of a processing flow when a target network carries an IP layer 3 VPN in an embodiment of a method for carrying an IP layer 3 VPN of the present invention;
[0051] Fig.10 It is a schematic diagram of data flow when a visual network carries an IP three-layer VPN in an embodiment of a method for a target network to carry an IP three-layer VPN of the present invention;
[0052] Fig.11is a structural block diagram of a network device embodiment of the present invention;
[0053] Fig.12 It is a structural block diagram of an electronic device embodiment of the present invention. DETAILED DESCRIPTION
[0054] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0055] In non-IP networks, the L3VPN function is not currently supported. To solve this problem, in an embodiment of the present invention, the IP message is encapsulated into a target network message, and matched to the service tunnel based on the relevant information of the IP message header, and then the encapsulated message is sent to the target device of the service tunnel, thereby realizing the uplink access to the target network function, providing a forwarding basis for the target network to carry IP Layer 3 VPN, and realizing that the target network supports the L3VPN function in the IP service as a network base, allowing users to migrate seamlessly without affecting the user usage habits of the target network.
[0056] Reference Figure 2 , shows a flowchart of a method embodiment of a target network carrying IP layer 3 VPN of the present invention, which may specifically include the following steps:
[0057] Step S210: After receiving the IP message, parse the IP message header information corresponding to the IP message;
[0058] Specifically, the services accessing the target network can be considered from two aspects: the inbound and outbound services. The inbound service is called the uplink channel, and the corresponding network device is the uplink network device; the outbound service is called the downlink channel, and the corresponding network device is the downlink network device. The uplink channel is to encapsulate the IP message into the target network message, match the target device ID according to the information related to the IP header, and then send the IP message to the network device with the target device ID in the target network. When the uplink network device receives the VPN service IP message, it parses the IP message and obtains the IP message header information.
[0059] Step S220: Determine the service tunnel according to the acquired IP message header information and the tunnel mapping table;
[0060] Specifically, the VPN controller in the server determines the tunnel mapping table of the IP packet header and the target network according to the VPN service configuration and the network device configuration of the target network. The tunnel mapping table may include: source address, destination address, source port, destination port, protocol type, service type, tunnel ID, etc.
[0061] The VPN controller sends the tunnel mapping table to the upstream network device that opens the VPN service in the target network, and the upstream network device receives the tunnel mapping table and stores it locally.
[0062] When the uplink network device receives the VPN service IP message, it parses the IP message header, matches the IP message header with the tunnel mapping table, and queries the tunnel ID corresponding to the IP message header. After querying the tunnel ID, it determines whether it is a valid tunnel ID. If so, the tunnel corresponding to the tunnel ID is used as the service tunnel.
[0063] Step S230: After encapsulating the IP message into a network message corresponding to the target network, forward the network message to the downlink network device corresponding to the service tunnel.
[0064] Specifically, after the uplink network device encapsulates the received IP message into a network message corresponding to the target network, the uplink network device forwards the network message to the downlink network device corresponding to the service tunnel.
[0065] In an embodiment of the present invention, an IP message is encapsulated into a target network message, and matched to a service tunnel according to relevant information of the IP message header, and then the encapsulated message is sent to the target device of the service tunnel, thereby realizing the uplink access to the target network function and providing a forwarding basis for the target network to carry IP Layer 3 VPN.
[0066] In a preferred embodiment of the present invention, the method further comprises:
[0067] Receive and save the mapping rule table from the IP packet header to the target network identifier sent by the server;
[0068] A tunnel mapping table is determined according to the mapping rule table.
[0069] Specifically, in non-IP networks, L3VPN is not currently supported. For example, Visual Networking is a domestic IP-free network solution with independent intellectual property rights. It is an independently developed network transmission protocol and a series of devices that implement the transmission protocol. However, IP L3VPN is not currently supported in Visual Networking, which makes it impossible for IP network devices to access Visual Networking.
[0070] In order to realize the function of non-IP network carrying IP three-layer VPN, the non-IP network is recorded as the target network, and the target network is used as a two-layer switch. The PE devices or CE devices connected to the target network can be interconnected on demand. At the same time, the two-layer switch function is realized inside the target network, so that the target network can carry IP three-layer VPN function.
[0071] First, the server in the target network converts the VPN service configuration into a mapping rule table from the IP packet header to the target network identifier, where the target network identifier refers to the identifier used for communication in the target network, corresponding to the IP address in the IP network, etc. For example, when the target network is a visual network, based on the number mechanism of the visual network, the visual network number is similar to the address in the IP. The number accessed in the visual network identifies the device in the visual network, and communication can be carried out through the number. Therefore, the visual network number can be used as the target network identifier.
[0072] Specifically, the VPN controller in the server can be used to configure and manage L3VPN services, including configurations such as activation, dismantling, address, and routing, and convert VPN service configurations into a mapping rule table from IP packet header to target network number. Activation refers to the activation of VPN services by network devices in the target network, dismantling refers to the closure of VPN services by network devices in the target network, address refers to the VPN address of network devices in the target network, and routing refers to the VPN routing address of network devices in the target network. It should be noted that only network devices that have VPN services activated in the target network can realize the function of carrying IP Layer 3 VPN, and other network devices that have not activated or closed VPN services cannot carry IP Layer 3 VPN functions.
[0073] The server in the target network sends a mapping rule table to a network device that opens a VPN service in the target network, and the network device that opens a VPN service stores the mapping rule table in a local storage module of the network device.
[0074] After receiving the mapping rule table, the network device determines the tunnel mapping table according to the mapping rule table, thereby determining the tunnel for forwarding the VPN message through the tunnel mapping table, thereby realizing the forwarding of the VPN message in the target network.
[0075] In an embodiment of the present invention, the VPN service configuration is converted into a mapping rule table from the IP message header to the target network identifier, and the VPN service is enabled on the network device in the target network. With the mapping rule table, the network device that enables the VPN service can forward the VPN message according to the mapping rule table after receiving the VPN message, thereby enabling the target network to support the L3VPN function in the IP service as a network base, allowing users to migrate seamlessly without affecting the user usage habits of the target network.
[0076] In a preferred embodiment of the present invention, the receiving and saving of the mapping rule table from the IP packet header to the target network identifier sent by the server includes:
[0077] Receive and save the tunnel configuration table sent by the server;
[0078] Accordingly, determining the tunnel mapping table according to the mapping rule table includes:
[0079] A service tunnel is established according to the tunnel configuration table, and after the service tunnel is established, a tunnel mapping table is determined.
[0080] Specifically, the target network is regarded as a layer 2 switch, so that the business of networking and VPN is consistent with the logic in the existing IP. In order to implement such a layer 2 switch inside the target network, in an embodiment of the present invention, the VPN controller in the server analyzes the VPN business configuration and the network device configuration of the target network to determine the tunnel configuration table. For example, the tunnel table may include: tunnel identification (such as tunnel ID), tunnel type, tunnel source device identification (such as tunnel source number), tunnel destination device identification (such as tunnel destination number), tunnel source sub-number, tunnel destination sub-number, etc.
[0081] The VPN controller sends a tunnel configuration table to the network device that has opened the VPN service. After receiving the tunnel configuration table, the network device saves it locally and determines whether it is the tunnel caller based on the received tunnel configuration table. For example, if it is the tunnel source device, it is the caller and initiates the tunnel call to establish a service tunnel with the called party (tunnel destination device) in the target network. After the service tunnel is established, the tunnel mapping table is determined and the VPN message is forwarded in the target network based on the service tunnel.
[0082] In the embodiment of the present invention, a service tunnel is established in the target network through tunnel configuration, the layer 2 switch function inside the target network is realized, and a forwarding basis is provided for the target network to bear IP layer 3 VPN.
[0083] In a preferred embodiment of the present invention, the receiving and saving of the mapping rule table from the IP packet header to the target network identifier sent by the server includes:
[0084] Receive and save the IP packet header conversion table and IP packet header local interface mapping table sent by the server;
[0085] Accordingly, the method further comprises:
[0086] After receiving the network message encapsulated as the target network, decapsulating the received network message into an IP message according to the IP message header conversion table;
[0087] The IP message is forwarded according to the IP message header local interface mapping table.
[0088] Specifically, the VPN controller in the server determines an IP packet header translation table and an IP packet header local interface mapping table according to the VPN service configuration and the network device configuration of the target network. The IP packet header translation table may include a packet translation table, an address translation table and a port translation table.
[0089] The message conversion table includes: source address, destination address, source port, destination port, protocol type, service type, conversion source address;
[0090] The address translation table includes: source address, destination address, source port, destination port, protocol type, service type, and translation destination address;
[0091] The port translation table includes: source address, destination address, source port, destination port, protocol type, service type, and translation destination port.
[0092] The IP packet header local interface mapping table includes: source address, destination address, source port, destination port, protocol type, service type, and local interface ID.
[0093] The VPN controller sends the IP header conversion table and the IP header local interface mapping table to the downstream network device that opens the VPN service in the target network. The downstream network device receives the IP header conversion table and the IP header local interface mapping table and stores them locally.
[0094] After receiving the VPN service network message, the downstream network device decapsulates the received network message into an IP message according to the IP message header conversion table, determines the IP service interface from the IP message header local interface mapping table, and forwards the decapsulated IP message from the IP service interface.
[0095] Figure 3 This is a schematic diagram of VPN service configuration process in an embodiment of a method for carrying IP layer 3 VPN on a target network of the present invention. Figure 4 FIG. 1 is a schematic diagram of a VPN service configuration process in an embodiment of a method for carrying an IP layer 3 VPN on a target network of the present invention. Figure 3 and Figure 4 As shown, the VPN controller performs service activation configuration, manages VPN services, analyzes service configuration and device configuration, extracts the mapping table between IP packet header and tunnel, and sends the tunnel configuration table to the upstream network device and the downstream network device. The network device receives the tunnel configuration table and determines whether it is the tunnel caller. If it is a tunnel call, it establishes a service tunnel with the called party in the target network. The VPN controller sends the tunnel mapping table between the IP packet header and the target network to the upstream network device, and the upstream network device receives the configuration and imports it into the local storage. The VPN controller sends the IP packet header conversion table and the IP packet header local interface mapping table to the downstream network device, and the downstream network device receives the configuration and imports it into the local storage.
[0096] Figure 5 FIG. 1 is a schematic diagram of a process flow of an embodiment of a method for carrying an IP layer 3 VPN on a target network of the present invention. Figure 5As shown, when the uplink network device receives the VPN service IP message sent by the PC (personal computer) through the IP service interface, it parses the IP message header, matches the IP message header with the tunnel mapping table according to the IP message header, and queries the tunnel ID corresponding to the IP message header. After querying the tunnel ID, it determines whether it is a valid tunnel ID. If so, the tunnel corresponding to the tunnel ID is used as the service tunnel, and after encapsulating the received IP message into the network message corresponding to the target network, the network message is sent to the server in the target network through the target network interface.
[0097] The server forwards the encapsulated network message to the downstream network device corresponding to the service tunnel.
[0098] After receiving the VPN service network message through the target network interface, the downstream network device decapsulates the received network message into an IP message according to the IP message header conversion table, and forwards the decapsulated IP message from the IP service interface to other PC ends.
[0099] In the embodiment of the present invention, an IP message is encapsulated into a target network message, and matched to a service tunnel according to relevant information of the IP message header, and then the encapsulated message is sent to a target device of the service tunnel, and the target device decapsulates the network message into an IP message, and forwards the IP message through an interface, thereby realizing the processing of PE or CE equipment accessing the target network and using the switching capability of the target network to perform corresponding forwarding functions on corresponding messages according to VPN services, and constructing a virtual private network based on L3VPN technology based on the target network.
[0100] In a preferred embodiment of the present invention, it also includes:
[0101] Receive VPN service activation notification from the server;
[0102] Determine a target network service interface and an IP network service interface, process the target network message through the target network service interface, and process the IP message through the IP network service interface.
[0103] Specifically, if the network device is required to carry VPN services, the VPN controller sends a VPN service activation notification to the unactivated network device. After receiving the VPN service activation notification, the network device determines the target network service interface and the IP network service interface, processes the target network message through the target network service interface, and processes the IP message through the IP network service interface.
[0104] If the network device is not required to perform VPN services, the VPN controller sends a VPN service closure notification to the enabled network device. After receiving the VPN service closure notification, the network device deletes the target network service interface and the IP network service interface.
[0105] In the embodiment of the present invention, by opening and closing VPN service notifications, the roles of network devices are flexibly switched, so that the network devices can retain their original roles and can also switch into VPN services at any time.
[0106] In a preferred embodiment of the present invention, the target network is a visual network, and the target network identifier is a visual network number.
[0107] Specifically, Figure 6 This is a diagram of a visual networking application scenario in an embodiment of a method for carrying an IP three-layer VPN on a target network of the present invention. Figure 7 This is another method embodiment of the target network carrying IP three-layer VPN of the present invention, as shown in the network application scenario diagram. Figure 6 and Figure 7 As shown, the IP L3VPN function is not currently supported in the visual network, and it is necessary to implement the establishment of site sites in two scenarios. Specifically, the visual network can support PE and CE type devices to access the visual network and carry VPN services.
[0108] Figure 8 1 is a structural block diagram of a method embodiment of a target network carrying an IP three-layer VPN in the present invention, as shown in FIG. Figure 8 As shown, it includes: VPN controller, V2V switching forwarder, uplink executor, and downlink executor. The VPN controller is deployed on the visual network server side in a remote center manner, and the V2V switching forwarder, uplink executor, and downlink executor are deployed on the visual network device side.
[0109] The VPN controller configures and manages the L3VPN services, including activation, disassembly, address, routing, etc., and converts the VPN service configuration into a mapping rule table from IP header to number. The V2V switching forwarder provides a unicast and multicast transmission of VPN messages based on the unicast and multicast encapsulation of the visual network. The upstream executor receives the mapping table of IP header and number from the VPN controller, and encapsulates and forwards according to the mapping table. The downstream executor decapsulates the received message and forwards it through the interface.
[0110] Fig. 9 FIG. 1 is a schematic diagram of a process flow when a target network carries an IP three-layer VPN in an embodiment of a method for carrying an IP three-layer VPN on a target network of the present invention. Fig. 9As shown, the uplink visual networking device receives the uplink message through the local IP service interface, parses the IP header information, matches the IP message header with the tunnel mapping table according to the IP message header information, queries the tunnel ID, and determines whether it is a valid tunnel ID. If valid, the uplink message is encapsulated into a V2V message and forwarded through the tunnel, wherein the tunnel forwarding can be forwarded across the visual networking autonomous domain. The tunnel target device (downlink visual networking device) receives the message, converts the IP message header according to the IP message conversion configuration, decapsulates the message according to the IP message header and the local interface mapping table, and then forwards it through the IP service interface.
[0111] Fig.10 Schematic diagram of data flow when a target network carries an IP three-layer VPN according to an embodiment of the method of the present invention, such as Fig.10 As shown, PC_a and PC_b belong to a VPN site, and the data flow sequence for data communication is 1, 8, 4, 5 for IP packets, and 2, 7, 3, 6 for visual network packets.
[0112] In an embodiment of the present invention, the visual network can support the construction of a virtual private network based on L3VPN technology across autonomous domains in the visual network. The visual network serves as a network base to support L3VPN in IP services, allowing users to migrate seamlessly without affecting user usage habits.
[0113] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0114] Reference Fig.11 , shows a structural block diagram of a network device embodiment of the present invention, which may specifically include the following modules:
[0115] The receiving and parsing module 1110 is used to parse the IP message header information corresponding to the IP message after receiving the IP message;
[0116] The tunnel determination module 1120 is used to determine the service tunnel according to the acquired IP packet header information and the tunnel mapping table;
[0117] The encapsulation and forwarding module 1130 is used to encapsulate the IP message into a network message corresponding to the target network, and then forward the network message to the downlink network device corresponding to the service tunnel.
[0118] In a preferred embodiment of the present invention, it also includes:
[0119] A receiving and saving module is used to receive and save the mapping rule table from the IP message header to the target network identifier sent by the server;
[0120] A tunnel mapping table is determined according to the mapping rule table.
[0121] In a preferred embodiment of the present invention, the receiving and saving module is specifically used for:
[0122] Receive and save the tunnel configuration table sent by the server;
[0123] A service tunnel is established according to the tunnel configuration table, and after the service tunnel is established, a tunnel mapping table is determined.
[0124] In a preferred embodiment of the present invention, the receiving and saving module is specifically used for:
[0125] Receive and save the IP packet header conversion table and IP packet header local interface mapping table sent by the server;
[0126] Correspondingly, the network device further includes a decapsulation and forwarding module, wherein the decapsulation and forwarding module is used to:
[0127] After receiving the network message encapsulated as the target network, decapsulating the received network message into an IP message according to the IP message header conversion table;
[0128] The IP message is forwarded according to the IP message header local interface mapping table.
[0129] In a preferred embodiment of the present invention, a receiving determination module is further included, wherein the receiving determination module is used to:
[0130] Receive VPN service activation notification from the server;
[0131] Determine a target network service interface and an IP network service interface, process the target network message through the target network service interface, and process the IP message through the IP network service interface.
[0132] In a preferred embodiment of the present invention, a receiving and deleting module is further included, wherein the receiving and deleting module is used to:
[0133] Receive VPN service shutdown notification from the server;
[0134] The target network service interface and the IP network service interface are deleted.
[0135] In a preferred embodiment of the present invention, the target network is a visual network, and the target network identifier is a visual network number.
[0136] As for the network device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0137] Reference Fig.12 , shows a structural block diagram of an electronic device embodiment of the present invention, the device includes: a processor 1210, a machine-readable medium 1220 and a bus 1230;
[0138] The processor 1210 and the machine-readable medium 1220 communicate with each other via the bus 1230;
[0139] The processor 1210 is used to call the program instructions in the machine-readable medium 1220 to execute the methods provided by the above-mentioned method embodiments, for example, including: after receiving the IP message, parsing the IP message header information corresponding to the IP message; determining the service tunnel according to the obtained IP message header information and the tunnel mapping table; after encapsulating the IP message into a network message corresponding to the target network, forwarding the network message to the downlink network device corresponding to the service tunnel.
[0140] An embodiment of the present invention discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the methods provided by the above-mentioned method embodiments, for example, including: after receiving an IP message, parsing the IP message header information corresponding to the IP message; determining a service tunnel based on the acquired IP message header information and a tunnel mapping table; after encapsulating the IP message into a network message corresponding to the target network, forwarding the network message to a downlink network device corresponding to the service tunnel.
[0141] An embodiment of the present invention provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions enable the computer to execute the methods provided by the above-mentioned method embodiments, for example, including: after receiving an IP message, parsing the IP message header information corresponding to the IP message; determining the service tunnel according to the acquired IP message header information and the tunnel mapping table; after encapsulating the IP message into a network message corresponding to the target network, forwarding the network message to the downlink network device corresponding to the service tunnel.
[0142] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0143] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0144] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0145] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0146] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0147] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0148] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0149] The method for carrying an IP layer 3 VPN on a target network, a network device, an electronic device and a storage medium provided by the present invention are introduced in detail above. The principle and implementation mode of the present invention are explained by using specific examples herein. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for a person skilled in the art, according to the idea of the present invention, there may be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for a target network to bear IP Layer 3 VPN, characterized in that: The method comprises: After receiving the IP message, parse the IP message header information corresponding to the IP message; Determine the service tunnel based on the acquired IP packet header information and the tunnel mapping table; After encapsulating the IP message into a network message corresponding to the target network, the network message is forwarded to the downlink network device corresponding to the service tunnel.
2. The method according to claim 1, characterized in that The method further comprises: Receive and save the mapping rule table from the IP packet header to the target network identifier sent by the server; A tunnel mapping table is determined according to the mapping rule table.
3. The method according to claim 2, characterized in that The receiving and saving of the mapping rule table from the IP packet header to the target network identifier sent by the server includes: Receive and save the tunnel configuration table sent by the server; Accordingly, determining the tunnel mapping table according to the mapping rule table includes: A service tunnel is established according to the tunnel configuration table, and after the service tunnel is established, a tunnel mapping table is determined.
4. The method according to claim 3, characterized in that The receiving and saving of the mapping rule table from the IP packet header to the target network identifier sent by the server includes: Receive and save the IP packet header conversion table and IP packet header local interface mapping table sent by the server; Accordingly, the method further comprises: After receiving the network message encapsulated as the target network, decapsulating the received network message into an IP message according to the IP message header conversion table; The IP message is forwarded according to the IP message header local interface mapping table.
5. The method according to claim 1, characterized in that Also includes: Receive VPN service activation notification from the server; Determine a target network service interface and an IP network service interface, process the target network message through the target network service interface, and process the IP message through the IP network service interface.
6. The method according to claim 5, characterized in that Also includes: Receive VPN service shutdown notification from the server; The target network service interface and the IP network service interface are deleted.
7. The method according to any one of claims 1 to 6, characterized in that: The target network is a visual network, and the target network identifier is a visual network number.
8. A network device, characterized in that: The network equipment includes: A receiving and parsing module, used for parsing the IP message header information corresponding to the IP message after receiving the IP message; A tunnel determination module, used to determine the service tunnel according to the acquired IP message header information and the tunnel mapping table; The encapsulation and forwarding module is used to encapsulate the IP message into a network message corresponding to the target network, and then forward the network message to the downlink network device corresponding to the service tunnel.
9. An electronic device, characterized in that: include: one or more processors; and One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, cause the instructions to execute the method for carrying IP layer 3 VPN on a target network as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer program stored therein enables the processor to execute the method for carrying IP layer 3 VPN on a target network as claimed in any one of claims 1 to 7.
Citation Information
Cited By
Method, device and equipment for realizing mixed insertion of service board cards of network shunting equipment
CN119402420A
