Tunnel establishment method and related equipment

The tunnel establishment method leverages APN information to dynamically create dedicated tunnels based on user and application needs, addressing inefficiencies in traditional IP dedicated line setups by ensuring timely and efficient tunnel creation and dismantling.

CN119071269APending Publication Date: 2024-12-03HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311137895.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-06-01
Filing Date
2023-08-31
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

Existing IP dedicated line establishment methods are inefficient in dynamically meeting user and application needs, as they require manual configuration and cannot immediately adapt to varying user demands.

Method used

A tunnel establishment method that utilizes application-aware networking (APN) information to dynamically create dedicated tunnels based on user and application needs, using APN identifiers and tunnel establishment parameters to trigger on-demand tunnel creation.

Benefits of technology

Enables efficient, dynamic establishment and dismantling of dedicated tunnels based on business needs, optimizing resource utilization and reducing manual configuration delays.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071269A_ABST
    Figure CN119071269A_ABST
Patent Text Reader

Abstract

The invention discloses a tunnel establishment method and related equipment, and the method comprises the steps that first equipment can obtain a data message packaged with APN information, obtains tunnel establishment parameters used for establishing a dedicated tunnel based on the APN information, and then establishes the dedicated tunnel based on the tunnel establishment parameters. Since the transmission of the data message is triggered by the service demand of the user and / or the application, that is, the first device does not obtain the data message encapsulated with the APN information when the user and / or the application is idle, the first device is triggered to establish the dedicated tunnel according to the data message carrying the APN information; dedicated tunnel establishment can be triggered under the condition that a user and / or an application have service requirements, so that dynamic on-demand establishment of the dedicated tunnel is realized.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims the priority of the Chinese patent application filed with the State Intellectual Property Office of China on June 1, 2023, with application number 202310645264.1 and application name “A method for dynamically establishing a tunnel based on APN”, the entire contents of which are incorporated by reference in this application. Technical Field

[0002] The embodiments of the present application relate to the field of communications, and in particular to a tunnel establishment method and related equipment. Background Art

[0003] Internet protocol (IP) private line (IP Private Line) refers to a point-to-point network connection that only serves a certain user (for example, an enterprise-level user) and uses the IP protocol for data transmission. It has the characteristics of shortest path interconnection, flexible granularity, and visible service level agreement (SLA). As the digital transformation of enterprises brings about the trend of accelerating enterprise business to the cloud, enterprises are increasingly demanding IP private lines. SLA guarantee, fast activation, and on-demand bandwidth self-service have become the basic demands of enterprises. Changes in enterprise business have put higher requirements on the private lines provided by operators.

[0004] In traditional technology, IP dedicated line can be realized through tunnel technology. For example, the process of establishing IP dedicated line requires manual configuration of tunnel establishment parameters and tail node address information for establishing dedicated tunnel at the head node (i.e., the head node of IP dedicated line). Then, the head node builds a dedicated tunnel based on the tunnel establishment parameters, the address information of the head node and the address information of the tail node. Then, the head node transmits data packets based on the dedicated tunnel.

[0005] However, different users have different requirements for IP dedicated lines. For example, different users may use IP dedicated lines at different times. When a user has a need to use an IP dedicated line, manually configuring tunnel establishment parameters for the user at the head node may not be able to immediately meet the user's need for IP dedicated lines. Therefore, how to dynamically establish IP dedicated lines based on user and / or application needs has become a hot topic in the industry. Summary of the invention

[0006] The present application provides a tunnel establishment method and related equipment, which triggers a head node to establish a dedicated tunnel by a data message carrying application-aware networking (APN) information, thereby dynamically establishing a dedicated tunnel according to business needs.

[0007] In a first aspect, the present application provides a tunnel establishment method, which can be executed by a first device or by a component of the first device (e.g., a processor, a chip, or a chip system). Taking the first device as an example, the first device obtains a data message encapsulated with application-aware network APN information, the APN information includes an APN identifier, and the APN identifier is used to indicate the user and / or application corresponding to the data message; then, the first device obtains tunnel establishment parameters for establishing a dedicated tunnel based on the APN information; then, the first device establishes a dedicated tunnel corresponding to the APN identifier based on the obtained tunnel establishment parameters.

[0008] In the present application, the first device can obtain a data message encapsulated with APN information, obtain tunnel establishment parameters for establishing the dedicated tunnel based on the APN information, and then establish a dedicated tunnel based on the tunnel establishment parameters. Since the transmission of the data message is triggered by the business needs of the user and / or application, that is, the first device will not obtain the data message encapsulated with APN information when the user and / or application is idle, therefore, triggering the first device to establish a dedicated tunnel based on the data message carrying the APN information can trigger the establishment of the dedicated tunnel when the user and / or application has business needs, thereby realizing dynamic on-demand establishment of a dedicated tunnel.

[0009] In a possible implementation, the first device obtains the data packet encapsulated with the application-aware network APN information in a specific manner as follows: the first device receives the data packet encapsulated with the APN information from the second device. The APN information also includes the first indication information for instructing the first device to establish a dedicated tunnel serving the user and / or application.

[0010] In this implementation, the first device can obtain APN information from the received data message, and based on the APN identifier and the first indication information in the APN information, it is learned that the user and / or application indicated by the APN identifier needs to establish a dedicated tunnel, thereby triggering the acquisition of tunnel establishment parameters based on the APN information to establish a dedicated tunnel. Since the transmission of the data message is triggered by the business needs of the user and / or application, that is, the data message carrying the APN information will not be sent when the user and / or application is idle, therefore, triggering the first device to establish a dedicated tunnel based on the data message carrying the APN information can trigger the establishment of a dedicated tunnel when the user and / or application has business needs, thereby realizing dynamic on-demand establishment of a dedicated tunnel.

[0011] In another possible implementation, a specific manner in which the first device obtains the data message encapsulated with the application-aware network APN information is as follows: the first device generates a data message encapsulated with the application-aware network APN information.

[0012] In this implementation, the first device can encapsulate the APN information in the received data message, and obtain the tunnel establishment parameters based on the APN information to establish a dedicated tunnel. Since the transmission of the data message is triggered by the business needs of the user and / or application, that is, the data message will not be sent when the user and / or application is idle, the first device triggers the first device to establish a dedicated tunnel according to the data message, and can trigger the establishment of a dedicated tunnel when the user and / or application has business needs, thereby realizing dynamic on-demand establishment of a dedicated tunnel.

[0013] Specifically, the first device may obtain the tunnel establishment parameters based on the APN information through any of the following implementations:

[0014] In a possible implementation, the tunnel establishment parameters are carried in the APN information, that is, the APN information includes not only the APN identifier and the first indication information, but also the tunnel establishment parameters. After the first device receives the data message encapsulated with the APN information, the first device can parse the APN information to obtain the APN identifier, the first indication information and the tunnel establishment parameters.

[0015] Optionally, if the APN information is encapsulated in the programmable space of the data message in the form of an APN message header, and the tunnel establishment parameters are encapsulated in the network performance requirement parameter field in the APN message header, the first device obtains the tunnel establishment parameters from the network performance requirement parameter field in the APN message header.

[0016] In this implementation, the second device encapsulates the tunnel establishment parameters, the APN identifier, and the first indication information in the APN information. After the first device receives the data message encapsulated with the APN information, it can obtain the tunnel establishment parameters while parsing the data message to obtain the APN identifier and the first indication information. In other words, the first device can obtain the tunnel establishment parameters by parsing the received data message without obtaining the tunnel establishment parameters from other network devices, which is conducive to the first device quickly and efficiently obtaining the tunnel establishment parameters, and further helps to shorten the delay caused by the first device obtaining the tunnel establishment parameters.

[0017] In another possible implementation, the APN information does not carry the tunnel establishment parameter, but carries the index of the tunnel establishment parameter (i.e., the second indication information). At the same time, the first device stores a first correspondence between the second indication information and the tunnel establishment parameter. After the first device receives the data message encapsulated with the APN information, the first device can parse the APN information to obtain the second indication information, and obtain the tunnel establishment parameter corresponding to the second indication information based on the second indication information and the first correspondence.

[0018] In an implementation of this embodiment, the second indication information is an APN identifier, that is, the APN identifier is used as an index of the tunnel establishment parameter. The first corresponding relationship stored in the first device is a corresponding relationship between multiple APN identifiers and multiple tunnel establishment parameters.

[0019] In another implementation of this embodiment, the second indication information is a newly defined bit in the APN intent requirement (Intent) field, that is, at least one bit is selected in the Intent field to represent the index of the tunnel establishment parameter. The first corresponding relationship stored in the first device is the corresponding relationship between multiple index values ​​and multiple tunnel establishment parameters.

[0020] In this embodiment, the second device carries the index of the tunnel establishment parameters in the APN information instead of directly carrying the tunnel establishment parameters. Therefore, it is helpful to save the bit overhead used to encapsulate the tunnel establishment parameters in the data message, that is, shorten the length of the data message, save bandwidth resources, reduce forwarding processing pressure, and improve the transmission rate and efficiency of the data message. In addition, when the user and / or application changes the performance requirements of the dedicated tunnel, the second device can be instructed to modify the index of the tunnel establishment parameters, or modify the type and / or value of the tunnel establishment parameters stored in the first device to update the tunnel establishment parameters used by the first device to establish the dedicated tunnel. It is helpful to improve the flexibility of updating and maintaining tunnel establishment parameters.

[0021] In another possible implementation, an APN control plane connection can be established between the first device and the second device. The second device sends a signaling carrying an APN identifier and tunnel establishment parameters to the first device, and the first device receives the control plane signaling from the second device, and then the first device obtains the tunnel establishment parameters from the control plane signaling. Since the data message encapsulated with APN information that the first device can receive through the data plane carries the APN identifier and the first indication information, and the control plane signaling received through the control plane carries the APN identifier and the tunnel establishment parameters, when the APN identifier obtained through the data plane is consistent with the APN identifier obtained through the control plane, the first device can use the tunnel establishment parameters in the control plane signaling to establish a dedicated tunnel when the establishment of a dedicated tunnel is triggered based on the first indication information.

[0022] In this embodiment, the second device triggers the first device to establish a dedicated tunnel through the data plane, and provides the tunnel establishment parameters for establishing the dedicated tunnel to the first device through the control plane. This is beneficial to saving the bit overhead used to encapsulate the tunnel establishment parameters in the data message, that is, shortening the length of the data message, which is beneficial to saving bandwidth resources, reducing forwarding processing pressure, and improving the transmission rate and efficiency of data messages.

[0023] In addition, in a possible implementation manner, the tunnel establishment parameter includes at least one of the following:

[0024] Effective time information, which is used to indicate the effective time for the dedicated tunnel to serve the user and / or application;

[0025] Bandwidth information, where the bandwidth information is used to indicate the size of bandwidth resources occupied by the dedicated tunnel;

[0026] Service delay information, which is used to indicate the delay requirement of the service corresponding to the data message to be transmitted;

[0027] Jitter information: service delay information is used to indicate the jitter requirement of the service corresponding to the data message to be transmitted;

[0028] The packet loss rate information and service delay information are used to indicate the packet loss rate requirement of the service corresponding to the data message to be transmitted.

[0029] The effective time information is used by the first device to maintain a first timer, and the first timer is used to indicate the survival time of the dedicated tunnel.

[0030] In this embodiment, effective time information is added to the tunnel establishment parameters to maintain the first timer to control the survival time of the dedicated tunnel, which is conducive to triggering the dismantling of the dedicated tunnel when the user and / or application no longer needs to use the dedicated tunnel, thereby realizing the on-demand dismantling of the dedicated tunnel.

[0031] In a possible implementation, the first device establishes a dedicated tunnel based on tunnel establishment parameters, including: the first device obtains address information of the third device based on the data packet; the first device obtains path information based on the address information of the first device, the address information of the third device and the tunnel establishment parameters, and the path information is used to indicate a transmission path for the data packet from the first device to the third device.

[0032] Optionally, the third device is an end node in an application-aware IPv6 network (APN6).

[0033] Optionally, the address information of the third device includes an IP address of the third device and / or a media access control (MAC) address of the third device. The address information of the first device includes an IP address of the first device and / or a MAC address of the first device.

[0034] In one implementation, the first device generates path information. Specifically, the first device generates path information based on the address information of the first device, the address information of the third device, and the tunnel establishment parameters. For example, the first device can know the starting point and the end point of the dedicated tunnel based on the address information of the first device and the address information of the third device, and then the first device selects at least one intermediate node to connect the first device as the starting point and the third device as the end point to obtain the transmission path and generate path information. Among them, the path formed by the at least one intermediate node can meet the constraints of various parameters in the tunnel establishment parameters. For example, meet the bandwidth requirement indicated by the bandwidth information, meet the delay requirement indicated by the service delay information, meet the jitter requirement indicated by the jitter information, or meet the packet loss rate requirement indicated by the packet loss rate.

[0035] In another implementation, the controller generates the path information. Specifically, the first device sends the address information of the first device, the address information of the third device, and the tunnel establishment parameter to the controller; then, the controller generates the path information based on the address information of the first device, the address information of the third device, and the tunnel establishment parameter; then, the first device receives the path information and the APN identifier from the controller.

[0036] In this implementation, it is proposed that the first device obtains the address information of the third device based on the data packet. Compared with the solution of manually configuring the address information of the third device in the prior art, it is beneficial to improve the efficiency of the first device in obtaining path information, and further helps to improve the efficiency of the first device in establishing a dedicated tunnel.

[0037] In a possible implementation, after the first device establishes a dedicated tunnel based on tunnel establishment parameters, the method further includes: the first device starts a first timer, the first timer is used to indicate the survival time of the dedicated tunnel, and the duration of the first timer is equal to the default duration or the duration indicated by the effective time information.

[0038] Further, when the first timer times out, the first device deletes the first forwarding information, the first forwarding information being the forwarding information of the dedicated tunnel; or, within a first time period after the first timer times out, if the first device does not receive a data packet carrying the APN identifier, the first device deletes the first forwarding information. Optionally, the first timer is greater than or equal to the network delay.

[0039] In this implementation, it is proposed that the first device maintains a first timer to record the survival time of the dedicated tunnel after creating the dedicated tunnel, and deletes the first forwarding information after the first timer times out, that is, dismantles the dedicated tunnel. This is conducive to releasing the transmission resources occupied by the dedicated tunnel when the user and / or application no longer uses the dedicated tunnel to transmit data, reducing resource waste and improving resource utilization efficiency.

[0040] In a possible implementation, the method further includes: after the first device deletes the first forwarding information or after the first timer times out, if the first device receives a data packet carrying the APN identifier, the first device forwards the data packet carrying the APN identifier based on the second forwarding information. The second forwarding information is different from the first forwarding information. Optionally, the second forwarding information is used to provide a best-effort forwarding service. It can be understood that the second forwarding information is the forwarding information corresponding to the common tunnel.

[0041] In this implementation, after the first forwarding information becomes invalid, the first device may still receive a data message carrying the APN identifier due to network delay and other reasons. In this case, the first device can forward the data message carrying the APN identifier based on the second forwarding information, that is, the first device switches the dedicated tunnel to a common tunnel to transmit the data message carrying the APN identifier. This is beneficial to avoid user data loss and improve the reliability of data message transmission.

[0042] In a possible implementation, after the first device establishes the dedicated tunnel based on the tunnel establishment parameters, the method further includes: the first device sends third indication information to the second device, where the third indication information is used to indicate that the dedicated tunnel has been successfully established.

[0043] In a possible implementation, the first device generates a data message encapsulated with APN information, including: the first device obtains characteristic information of the data message to be sent, and determines the APN information corresponding to the data message according to the characteristic information; the first device encapsulates the APN information in the data message to be sent.

[0044] Optionally, the first device can determine the user and / or application corresponding to the data message based on the received data message, and encapsulate an APN identifier for the data message based on the user and / or application corresponding to the data message.

[0045] In this implementation, the first device can identify the characteristic information of the received data message, and then encapsulate the APN identifier for the data message based on the characteristic information, which is beneficial for the first device to forward the data message carrying the data based on the APN identifier after establishing a dedicated tunnel, thereby improving the forwarding efficiency of the data message.

[0046] In a possible implementation manner, the first indication information is carried in a tag field in the APN information; or, the first indication information is carried in an APN intention requirement field in the APN information.

[0047] In this implementation, it is proposed to add at least one bit in the existing field of the APN message header in the traditional technology to carry the first indication information. The solution is simple and easy to implement, and can also ensure a high efficiency in transmitting the first indication information.

[0048] In a possible implementation manner, the APN information is encapsulated in an extended message header of Internet protocol version 6 (IPv6).

[0049] Optionally, the IPv6 extended message header includes a hop-by-hop options header, a destination options header, a routing header, etc.

[0050] In this implementation, it is proposed to use the programmable space of the existing IPv6 extension header in the conventional technology to carry the APN information, which can improve the efficiency of carrying the APN information without affecting other fields of the IP message.

[0051] In a second aspect, the present application provides a tunnel establishment method, which can be executed by a second device or by a component of the second device (e.g., a processor, a chip, or a chip system). Taking the second device as an example, the second device encapsulates APN information in a data message to be sent, the APN information includes an APN identifier and first indication information, the APN identifier is used to indicate the user and / or application corresponding to the data message, and the first indication information is used to indicate the establishment of a dedicated tunnel serving the user and / or application; the second device sends a data message encapsulated with the APN information.

[0052] In the present application, the second device can encapsulate the APN information into a data message and send it to the first device, and can notify the first device through the APN identifier and the first indication information in the APN information to trigger the establishment of a dedicated tunnel used by the user and / or application indicated by the APN identifier. Since the transmission of the data message is triggered by the business needs of the user and / or application, that is, the data message carrying the APN information will not be sent when the user and / or application is idle, therefore, by triggering the first device to establish a dedicated tunnel through the data message carrying the APN information, the establishment of the dedicated tunnel can be triggered when the user and / or application has business needs, thereby realizing dynamic on-demand establishment of a dedicated tunnel.

[0053] Optionally, the second device may be a terminal device, a server, a forwarding device such as a switch or a router, or other types of network devices.

[0054] Optionally, the second device may trigger encapsulation of APN information in the data message to be sent through any of the following implementations:

[0055] In a possible implementation, the second device can obtain the demand information for using a dedicated tunnel, and based on the demand information for using a dedicated tunnel, trigger the encapsulation of APN information in the data message to be sent. The demand information for using a dedicated tunnel is used to indicate that the user and / or application has a demand for using a dedicated tunnel. The demand information for using a dedicated tunnel can be input into the second device by the user through a user interface, or can be obtained by the second device from other network elements.

[0056] In an example, the requirement information for using a dedicated tunnel may be fourth indication information input by a user, and the fourth indication information is used to indicate the requirement for using a dedicated tunnel. The second device can trigger encapsulation of the APN information in the data message to be sent based on the received fourth indication information.

[0057] Exemplarily, the second device that encapsulates APN information using this embodiment may be a terminal-side device (eg, a terminal device) or a cloud-side device (eg, a cloud server) in APN6.

[0058] In another possible implementation, the second device can obtain characteristic information of the data packet to be sent, can determine the user and / or application corresponding to the data packet based on the characteristic information, and then can trigger the encapsulation of APN information in the data packet to be sent based on the user and / or application corresponding to the data packet.

[0059] Exemplarily, the second device that encapsulates the APN information using this embodiment may be a network entry device (ie, a network edge device) in APN6.

[0060] Optionally, the characteristic information includes quintuple information and / or service information of the data message.

[0061] In a possible implementation, the APN information further includes a tunnel establishment parameter, which is encapsulated in a network performance requirement parameter field in the APN information; or, the APN information includes second indication information, which is an index of the tunnel establishment parameter.

[0062] In a possible implementation manner, the second indication information is an APN identifier; or, the second indication information is encapsulated in an APN intention requirement field in the APN information.

[0063] In a possible implementation manner, the method further includes: the second device sending a control plane signaling to the first device, where the control plane signaling carries an APN identifier and a tunnel establishment parameter.

[0064] In a possible implementation, the method further includes: the second device receives third indication information from the first device, the third indication information being used to indicate that the dedicated tunnel has been successfully established; based on the third indication information, the second device sends a data packet that does not carry the first indication information.

[0065] After the second device receives the third indication information, the data message sent by the second device to the first device does not carry the first indication information, and further the data message transmitted by the first device through the dedicated tunnel does not carry the first indication information.

[0066] Optionally, after receiving the third indication information, the data message sent by the second device to the first device does not carry the tunnel establishment parameter. For example, the data message sent by the second device does not carry the first indication information and the tunnel establishment parameter.

[0067] Optionally, the intent field of the data message sent by the second device to the first device after receiving the third indication information does not carry the index of the tunnel establishment parameter. For example, the data message sent by the second device does not carry the first indication information and the index of the tunnel establishment parameter.

[0068] In this implementation, since the data message sent by the second device after receiving the third indication information no longer carries information related to establishing a dedicated tunnel (for example, the first indication information, tunnel establishment parameters, or an index of tunnel establishment parameters), the third indication information can also be understood as indicating that the second device does not carry information related to establishing a dedicated tunnel in the data message. Therefore, it is beneficial to save the bit overhead used to encapsulate the information related to establishing a dedicated tunnel (for example, the first indication information, tunnel establishment parameters, or an index of tunnel establishment parameters) in the data message, that is, shorten the length of the data message, which is beneficial to saving bandwidth resources, reducing forwarding processing pressure, and improving the transmission rate and efficiency of data messages.

[0069] In a possible implementation manner, the tunnel establishment parameter includes at least one of the following:

[0070] Effective time information, which is used to indicate the effective time for the dedicated tunnel to serve the user and / or application;

[0071] Bandwidth information, where the bandwidth information is used to indicate the size of bandwidth resources occupied by the dedicated tunnel;

[0072] Service delay information, which is used to indicate the delay requirement of the service corresponding to the data message to be transmitted;

[0073] Jitter information: service delay information is used to indicate the jitter requirement of the service corresponding to the data message to be transmitted;

[0074] The packet loss rate information and service delay information are used to indicate the packet loss rate requirement of the service corresponding to the data message to be transmitted.

[0075] It should be noted that there are many other specific implementations of the embodiments of the present application. Please refer to the specific implementations of the first aspect and their beneficial effects for details, which will not be repeated here.

[0076] In a third aspect, an embodiment of the present application provides a network device, which may be the first device in the aforementioned implementation, or a chip in the first device. The network device may include a processing module and a transceiver module. When the network device is the first device, the processing module may be a processor, and the transceiver module may be a transceiver; the first device may also include a storage module, and the storage module may be a memory; the storage module is used to store instructions, and the processing module executes the instructions stored in the storage module so that the first device executes the first aspect or the method in any one of the implementations of the first aspect. When the network device is a chip in the first device, the processing module may be a processor, and the transceiver module may be an input / output interface, a pin or a circuit, etc.; the processing module executes the instructions stored in the storage module so that the first device executes the first aspect or the method in any one of the implementations of the first aspect. The storage module may be a storage module in the chip (for example, a register, a cache, etc.), or a storage module in the first device located outside the chip (for example, a read-only memory, a random access memory, etc.).

[0077] In a fourth aspect, an embodiment of the present application provides a network device, which may be the second device in the aforementioned implementation, or may be a chip in the second device. The second device may be a source second device or a candidate second device. The network device may include a processing module and a transceiver module. When the network device is a second device, the processing module may be a processor, and the transceiver module may be a transceiver; the second device may also include a storage module, and the storage module may be a memory; the storage module is used to store instructions, and the processing module executes the instructions stored in the storage module so that the source second device executes the method in the first aspect or any one of the implementations of the first aspect; or, so that the candidate second device executes the method in the second aspect or any one of the implementations of the second aspect. When the network device is a chip in the second device, the processing module may be a processor, and the transceiver module may be an input / output interface, a pin or a circuit, etc.; the processing module executes the instructions stored in the storage module so that the source second device executes the method in the first aspect or any one of the implementations of the first aspect; or, so that the candidate second device executes the method in the second aspect or any one of the implementations of the second aspect. The storage module may be a storage module within the chip (eg, a register, a cache, etc.), or a storage module within the second device that is located outside the chip (eg, a read-only memory, a random access memory, etc.).

[0078] In a fifth aspect, the present application provides a network device, which may be an integrated circuit chip. The integrated circuit chip includes a processor. The processor is coupled to a memory, and the memory is used to store a program or instruction. When the program or instruction is executed by the processor, the network device executes the method described in any one of the embodiments of the aforementioned various aspects.

[0079] In a sixth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute a method as described in any one of the aforementioned aspects.

[0080] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a computer, enable the computer to execute a method as described in any one of the embodiments in the foregoing aspects.

[0081] In an eighth aspect, an embodiment of the present application provides a communication system, which includes a first device that executes the aforementioned first aspect and any one of the implementations of the first aspect, and a second device that executes the aforementioned second aspect and any one of the implementations of the second aspect.

[0082] In a ninth aspect, an embodiment of the present application provides a communication system, which includes a first device that executes the aforementioned first aspect and any one of the implementations of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0083] Figure 1 A schematic diagram of the network architecture of APN6 involved in this application;

[0084] Figure 2 A flow chart of the tunnel establishment method provided by this application;

[0085] Figure 3 Another flow chart of the tunnel establishment method provided by the present application;

[0086] Figure 4A An example diagram of the internal structure of an IPv6 message involved in this application;

[0087] Figure 4B This is an example diagram of the APN6 message header involved in this application;

[0088] Figure 4C This is another example diagram of the APN6 message header involved in this application;

[0089] Figure 5 Another flow chart of the tunnel establishment method provided by the present application;

[0090] Figure 6 Another flow chart of the tunnel establishment method provided by the present application;

[0091] Figure 7 Another flow chart of the tunnel establishment method provided by the present application;

[0092] Figure 8 Another flow chart of the tunnel establishment method provided by the present application;

[0093] Fig. 9 A schematic diagram of an embodiment of the device provided in this application;

[0094] Fig.10 An example diagram of the internal structure of the device provided in this application when used as a first device;

[0095] Fig.11 A schematic diagram of another embodiment of the device provided by the present application;

[0096] Fig.12 A schematic diagram of an embodiment of a communication system provided in the present application. DETAILED DESCRIPTION

[0097] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0098] In the various embodiments of the present application, unless otherwise specified or provided for in any logical conflict, the terms and / or descriptions between the different embodiments are consistent and may be referenced to each other, and the technical features in the different embodiments may be combined to form new embodiments according to their inherent logical relationships.

[0099] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0100] It should be understood that the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0101] The tunnel establishment method provided in the present application is applied to APN or application-aware IPv6 networking (APN6). The APN6 can use the programmable space of the IPv6 message to carry application information into the network, so that the network can perceive the application more accurately and provide it with network services with corresponding SLA. For a detailed introduction to APN and APN6, please refer to the Internet Engineering Task Force (IETF) standard documents draft-li-apn-header, draft-li-apn-framework, draft-peng-apn-scope-gap-analysis and draft-li-apn-ipv6-encap, etc., all of which are incorporated herein by reference, as if all were stated, and will not be repeated here.

[0102] like Figure 1 The figure below is a schematic diagram of the APN6 network architecture. The APN6 network architecture mainly includes: end-side / cloud-side devices, network entry devices (also called network edge devices (Edge)), network policy execution devices (for example, head nodes (HeadEnd), middle nodes (Midpoint) and tail nodes (Endpoint)) and controllers (Controller). The following introduces each network element in APN6:

[0103] End-side / cloud-side device: refers to a device that can perceive application information through an application-aware program and then generate a data packet encapsulating the application information. Taking an end-side device as an example, if the end-side device has application-aware capability, the end-side device can encapsulate the application information in an APN message header, and encapsulate the APN message header in the programmable space of the IPv6 message for sending. An end-side device is also called an application end-side device. For example, the end-side device can be a terminal device with an application-aware program installed. A cloud-side device is also called an application cloud-side device. For example, the cloud-side device can be an application-aware cloud server.

[0104] Network entry device: also known as a network edge device, is a device connected to the end-side / cloud-side device, used to forward the data packets sent by the end-side device to the network policy execution device (e.g., the head node), or to forward the data packets from the network policy execution device (e.g., the tail node) to the end-side device or the cloud-side device. When the network entry device has application awareness capabilities, the network entry device can parse the application information based on the received data packets, encapsulate the application information into the data packets, and then forward it to the network policy execution device. For example, the network entry device can encapsulate the application information in the APN message header, and encapsulate the APN message header in the programmable space of the IPv6 message (i.e., the data message described above) for transmission. Exemplarily, the network entry device can be a router or a switch.

[0105] Network policy execution device: includes a head node and a tail node. Optionally, the network policy execution device also includes at least one intermediate node.

[0106] (1) Head node: used to establish a network service path that meets the SLA requirements between the head node and the tail node, and maintain the matching relationship between the inbound traffic and the network service path. For example, after receiving a data packet from the network ingress device, the head node matches and introduces the traffic to a path that meets the requirements. Exemplarily, the head node can be a router or a switch.

[0107] (2) Intermediate node: used to provide network forwarding services to users and / or applications according to the network service path matched by the head node. Exemplarily, the intermediate node may be a router or a switch.

[0108] (3) Tail node: It is the end point of the network service path and is used to forward data packets to the end-side device or the cloud-side device. Exemplarily, the tail node can be a router or a switch.

[0109] Optionally, the network entry device and the head node (or tail node) can be implemented by one network device. For example, Figure 1 The network entry device 1 and the head node shown can be combined into a network device 1, and the network device 1 has the functions of the network entry device 1 and the head node. Figure 1 The network entry device 2 and the tail node shown can be combined into a network device 2, which has the functions of the network entry device 2 and the tail node.

[0110] Controller: used to uniformly plan and maintain APN identities (APN IDs), as well as to maintain the mapping relationship between the application (group) corresponding to the APN identity and the network service policy, and to send the network service policy to the network entry device and the network policy execution device. Exemplarily, for the network entry device, the controller sends the mapping relationship between the application (group) and the APN identity. Exemplarily, for the network policy execution device, the controller sends the mapping relationship between the APN ID carried in the message and the network service policy. Optionally, the controller can also replace the head node to establish a network service path that meets the SLA requirements between the head node and the tail node, and send the network service path to the head node.

[0111] It can be seen from the APN6 network architecture that APN6 can use the programmable space of the IPv6 message to encapsulate the APN message header, and transmit the application information carried by the APN message header (for example, the APN parameter (APN Attribute) mentioned in the standard document) into the network system through the IPv6 message transmission. Therefore, the network equipment in the network system can provide network services based on the application information carried by the APN message header. The present application uses the characteristics of APN6 to provide a tunnel establishment method and related equipment, which is used to trigger the head node to establish a dedicated tunnel through a data message carrying APN information, thereby realizing the dynamic establishment of a dedicated tunnel according to business needs.

[0112] like Figure 2 As shown, a flow chart of the tunnel establishment method provided by the present application is used to show the main flow of the tunnel establishment method provided by the present application. The tunnel establishment method mainly involves a first device and may involve a second device. The first device mainly performs the following steps:

[0113] Step 201: The first device obtains a data message encapsulated with APN information.

[0114] Among them, the APN information includes an APN identifier. The APN identifier is used to indicate the user and / or application corresponding to the data message. Optionally, the APN identifier includes an identifier indicating the application and / or an identifier indicating the user. In one implementation, if the APN identifier only includes an identifier indicating the application, the APN identifier is used to indicate the application corresponding to the data message, that is, the application that generates the data message. Optionally, the data message may transmit data of an application or data of a class of applications (or a group of applications). In another implementation, if the APN identifier only includes an identifier indicating the user, the APN identifier is used to indicate the user corresponding to the data message, that is, the user who generates the data message. Optionally, the data message may transmit data of a user or data of a class of users (or a group of users). In another implementation, if the APN identifier includes an identifier indicating the user and an identifier indicating the application, the APN identifier is used to indicate an application (or a group of applications) of a user (or a group of users) corresponding to the data message, that is, which application (which group of applications) of which user (which group of users) generates the aforementioned data message. Optionally, the data transmitted by the data message may be data of an application of a user, data of an application of a class of users (or a group of users), data of the same application of a group of users, or data of the same group of applications of a group of users. This application is not limited.

[0115] It should be noted that the aforementioned user may be an enterprise user who needs to use an IP dedicated line, or an individual user who needs to use an IP dedicated line, or a user group consisting of at least one individual user who needs to use an IP dedicated line, and this application does not limit this.

[0116] Exemplarily, the identifier indicating the application is an application group identifier (APP-Group-ID), and the identifier indicating the user is a user group identifier (USER-Group-ID). For example, the APN ID includes an application group identifier (APP-Group-ID) and / or a user group identifier (USER-Group-ID). The application group identifier is used to indicate an application group, and an application group includes one or more applications; the user group identifier is used to indicate a user group, and a user group includes one or more users.

[0117] Specifically, the first device may obtain a data message containing the APN information from another device (for example, the second device), or may generate a data message encapsulating the APN information by itself. The following are respectively introduced:

[0118] In a possible implementation, the first device receives a data packet encapsulated with APN information from the second device. For example, the second device encapsulates the APN information in a data packet to be sent, and then the second device sends the data packet encapsulated with the APN information to the first device, so that the first device receives the data packet encapsulated with the APN information from the second device, thereby triggering the first device to perform steps 202 and 203 based on the received data packet encapsulated with the APN information. Exemplarily, the first device may be Figure 1 In the head node of the system shown, the second device may be Figure 1 The end-side device (e.g., terminal device), cloud-side device (e.g., cloud server) or network entry device (i.e., network edge device) in the system shown.

[0119] In this embodiment, the APN information also includes first indication information. The first indication information is used to indicate the establishment of a dedicated tunnel serving users and / or applications, that is, the first indication information is used to indicate the establishment of a dedicated tunnel serving users and / or applications indicated by the APN identifier. It can be understood that the dedicated tunnel is only used to transmit data packets generated by users and / or applications indicated by the APN identifier. For example, if the APN information includes APN ID1 and the first indication information, the first indication information is used to indicate the establishment of a dedicated tunnel corresponding to APN ID1, and the dedicated tunnel corresponding to APN DI1 is only used to transmit data packets carrying the APN ID1, and will not transmit data packets carrying other APN IDs.

[0120] Optionally, the APN information in this embodiment may also include a tunnel establishment parameter or an index of the tunnel establishment parameter (ie, the second indication information). For an explanation of the tunnel establishment parameter and the index of the tunnel establishment parameter (ie, the second indication information), please refer to the following text. Figure 3 The relevant introduction in step 301 in the corresponding embodiment will not be repeated here.

[0121] In another possible implementation, the first device generates a data message encapsulating the APN information. Figure 1 The network device 1 in the system shown, ie, the first device, has the functions of a head node and a network entry device 1 .

[0122] In one implementation of this embodiment, the first device receives a data packet without APN information from a terminal side device, determines based on the data packet without APN information that the user and / or application corresponding to the data packet has a need to use a dedicated tunnel, and then, the first device encapsulates the APN information related to the user and / or application in the received data packet without APN information to obtain a data packet encapsulated with APN information. Please refer to the following for details. Figure 7The relevant introduction in the corresponding embodiment will not be repeated here.

[0123] Step 202: The first device obtains tunnel establishment parameters for establishing a dedicated tunnel based on the APN information.

[0124] The tunnel establishment parameter is a parameter used or referenced by the first device when establishing a dedicated tunnel for the user and / or application indicated by the APN identifier. Optionally, the tunnel establishment parameter includes at least one of the following:

[0125] Effective time information, which is used to indicate the effective time for the dedicated tunnel to serve the user and / or application;

[0126] Bandwidth information, where the bandwidth information is used to indicate the size of bandwidth resources occupied by the dedicated tunnel;

[0127] Service delay information, which is used to indicate the delay requirement of the service corresponding to the data message to be transmitted;

[0128] Jitter information: service delay information is used to indicate the jitter requirement of the service corresponding to the data message to be transmitted;

[0129] The packet loss rate information and service delay information are used to indicate the packet loss rate requirement of the service corresponding to the data message to be transmitted.

[0130] It should be noted that, in actual applications, the tunnel establishment parameters may also include other parameters, which are not listed here one by one.

[0131] When the first device receives a data packet encapsulated with APN information from the second device, for example, when the functions of the network entry device and the head node are separately arranged in two devices, the first device may obtain the tunnel establishment parameters for establishing the dedicated tunnel by any of the following implementations:

[0132] In a possible implementation manner, if the APN information includes a tunnel establishment parameter, the first device parses the tunnel establishment parameter from the APN information. For details, please refer to the relevant introduction of implementation manner 1 in step 303 below, which will not be described in detail here.

[0133] In another possible implementation, if the APN information includes an index of a tunnel establishment parameter (i.e., the second indication information), and the first device stores a first correspondence between the second indication information and the tunnel establishment parameter, then after the first device receives the data packet encapsulated with the APN information, the first device can parse the APN information to obtain the second indication information, and obtain the tunnel establishment parameter corresponding to the second indication information based on the second indication information and the first correspondence. For details, please refer to the relevant introduction of implementation 2 in step 303 below, which will not be repeated here.

[0134] In another possible implementation, if the first device can receive signaling carrying the APN identifier and tunnel establishment parameters from the second device, the first device obtains the tunnel establishment parameters from the control plane signaling. For details, please refer to the relevant introduction of implementation 3 in step 303 below, which will not be repeated here.

[0135] In the case where the first device generates a data packet encapsulating the APN information, for example, the function of the network entry device and the function of the head node are combined into one device. The first device can obtain the tunnel establishment parameters for establishing the dedicated tunnel by the following implementation method:

[0136] In a possible implementation, the first device obtains a tunnel establishment parameter corresponding to the APN identifier and used to establish a dedicated tunnel.

[0137] In one implementation of this embodiment, the first device configures tunnel establishment parameters suitable for the user and / or application corresponding to the APN identifier. For example, the first device stores at least one set of tunnel establishment parameters, and the first device selects a set of tunnel establishment parameters from the at least one set of stored tunnel establishment parameters based on the characteristic information of the user and / or application.

[0138] Please refer to the following text for details Figure 7 The relevant introduction in the corresponding embodiment will not be repeated here.

[0139] Step 203: The first device establishes a dedicated tunnel based on the tunnel establishment parameters.

[0140] Specifically, the first device establishes a dedicated tunnel serving the user and / or application corresponding to the APN identifier between the first device and the third device based on the tunnel establishment parameters.

[0141] In the case where the first device receives a data message encapsulating the APN information from the second device, for example, in the case where the function of the network entry device and the function of the head node are separately arranged in two devices, the first device is Figure 1 The head node in the system shown in FIG. 1 is the third device. Figure 1 The tail node in the system shown is a dedicated tunnel between the head node and the tail node that serves the user and / or application corresponding to the APN identifier. For the specific implementation of establishing the dedicated tunnel, please refer to the relevant description in step 304 below, which will not be repeated here.

[0142] In the case where the first device generates a data message encapsulating the APN information, for example, in the case where the functions of the network entry device and the head node are combined into one device, the first device is Figure 1 The network device 1 in the system shown in FIG. 1 , the third device mentioned above is Figure 1In the network device 2 in the system shown, the dedicated tunnel is a dedicated tunnel between the network device 1 and the network device 2 that serves the user and / or application corresponding to the APN identifier.

[0143] In the present application, the first device can obtain a data message encapsulated with APN information, obtain tunnel establishment parameters for establishing the dedicated tunnel based on the APN information, and then establish a dedicated tunnel based on the tunnel establishment parameters. Since the transmission of the data message is triggered by the business needs of the user and / or application, that is, the first device will not obtain the data message encapsulated with APN information when the user and / or application is idle, therefore, triggering the first device to establish a dedicated tunnel based on the data message carrying the APN information can trigger the establishment of the dedicated tunnel when the user and / or application has business needs, thereby realizing dynamic on-demand establishment of a dedicated tunnel.

[0144] like Figure 3 FIG. 1 is another flow chart of the tunnel establishment method provided by the present application. Figure 3 The embodiment shown mainly involves a first device, a second device and a third device. The first device may be Figure 1 In the head node of the system shown, the second device may be Figure 1 In the system shown, the end-side device (e.g., terminal device), cloud-side device (e.g., cloud server) or network entry device (i.e., network edge device) may be a third device. Figure 1 The tail node in the system shown. In this embodiment, each of the above devices mainly performs the following steps:

[0145] Step 301: The second device encapsulates APN information in a data message to be sent.

[0146] The APN information includes an APN identifier and first indication information. For the introduction of the APN identifier and the first indication information, please refer to the relevant introduction in the above step 201, which will not be repeated here.

[0147] It should be noted that in this embodiment, in addition to the APN identifier and the first indication information, the APN information may also include the following content:

[0148] In a possible implementation, the APN information further includes tunnel establishment parameters. For explanations of the tunnel establishment parameters, please refer to the relevant introduction in the above step 202, which will not be described in detail here.

[0149] In a possible implementation, the APN information includes second indication information. The second indication information is an index of a tunnel establishment parameter, and can also be understood as a version number or template number of the tunnel establishment parameter. An index of a tunnel establishment parameter corresponds to a set of tunnel establishment parameters. A set of tunnel establishment parameters includes at least one of effective time information, bandwidth information, service delay information, jitter information, or packet loss rate information. In one implementation, the second indication information is a newly defined bit or field. For example, the second indication information is a newly defined bit in an APN intent requirement field (for example, an Intent field in an APN message), that is, the index of the tunnel establishment parameter is encapsulated in the APN intent requirement field. In this case, the APN information includes an APN identifier, first indication information, and second indication information. In another implementation, the second indication information is an APN identifier, that is, the APN identifier is used as an index of the tunnel establishment parameter. In this case, the APN information includes an APN identifier (that is, the second indication information) and the first indication information.

[0150] It should be noted that the "APN information" in the "data message encapsulated with APN information" introduced later can be any of the implementation methods described in the previous text, that is, the "data message encapsulated with APN information" can be a data message encapsulated with an APN identifier and the first indication information, or a data message encapsulated with an APN identifier, the first indication information and a tunnel establishment parameter, or a data message encapsulated with an APN identifier, the first indication information and an index of a tunnel establishment parameter. The following text will only introduce the term "data message encapsulated with APN information". In the absence of special examples, the "data message encapsulated with APN information" introduced later can be implemented using any of the aforementioned implementation methods.

[0151] It should also be noted that the second device encapsulates the APN information in a programmable space of the data message to be sent.

[0152] In a possible implementation manner, the data message is an IPv6 message, and the APN information is encapsulated in a programmable space of the IPv6 message.

[0153] Optionally, the programmable space of the IPv6 message may be a programmable space in an extended message header of IPv6, that is, the APN information is encapsulated in an extended message header of IPv6. Figure 4AAs shown, an example of the format of the IPv6 extended message header. The IPv6 extended message header includes a hop-by-hop options header (HBH), a destination options header (DOH), a segment routing header (SRH), etc. The APN information can be encapsulated in the programmable space provided by the extended message headers such as HBH, DOH and SRH.

[0154] In a possible implementation, the APN information is encapsulated in the programmable space of the data message in the form of an APN message (or an APN message header). Figure 4B The figure shows an example of an APN message header. The APN message header mainly includes: APNID type (APN-ID-Type) field, tag (Flags) field, APN parameter type (APN-Para-Type) field, APN identification (APN ID) field, requirement intent (Intent) field and APN parameter (APN-Para) field. Among them, the APN parameter type (APN-Para-Type) field and the APN parameter (APN-Para) field are also called network performance requirement parameter fields. The meanings of the aforementioned fields are shown in Table 1-1 below:

[0155] Table 1-1

[0156]

[0157]

[0158] Depend on Figure 4B As can be seen from Table 1-1, the APN identifier in the APN information is carried in the APN ID field in the APN message header.

[0159] In addition, the first indication information in the APN information can be carried in the Flags field in the APN message header, or in the APN Intent field in the APN message header. The following are introduced respectively:

[0160] In one implementation, the first indication information is carried in the Flags field in the APN message header. For example, a new bit is defined in the Flags field to carry the first indication information. Taking the highest bit in the Flags field as an example, Figure 4CAs shown, Bit 0 (i.e., the most significant bit) in the extended tag field is defined as Dbit (Dynamic tunnel), which is used to indicate whether a dedicated tunnel is established. For example, when the value of the newly defined bit is 1, it indicates that a dedicated tunnel is established; when the value of the newly defined bit is 0, it indicates that a dedicated tunnel is not established. It should be understood that in actual applications, other bits in the tag field can also be used to carry the first indication information, which is not limited here.

[0161] In another implementation, the first indication information is carried in the APN intent requirement (Intent) field in the APN message header. For example, a new bit is defined in the intent requirement field to carry the first indication information. For example, when the value of the newly defined bit is 1, it indicates that a dedicated tunnel is established; when the value of the newly defined bit is 0, it indicates that a dedicated tunnel is not established.

[0162] Optionally, when the APN information includes tunnel establishment parameters, the tunnel establishment parameters are encapsulated in the network performance requirement parameter field in the APN message header. The network performance requirement parameter field refers to the APN parameter type (APN-Para-Type) field and the APN parameter (APN-Para) field. The APN parameter type (APN-Para-Type) field and the APN parameter (APN-Para) field are collectively referred to as the APN parameters (APN Parameters) field. For example, Figure 4B As shown in Table 1-1, the type of the tunnel establishment parameter is encapsulated in the APN-Para-Type field, and the specific value of the tunnel establishment parameter is encapsulated in the APN-Para field. For example, taking the tunnel establishment parameter including the effective time information as an example, the APN-Para-Type field is encapsulated with "Type1" to indicate the tunnel establishment parameter of the effective time information type, and the APN-Para field is encapsulated with "T1" to indicate that the specific value of the effective time information is T1.

[0163] Optionally, when the APN information includes second indication information, if the second indication information is an APN identifier, the second indication information is encapsulated in the APN ID field in the APN message header; if the second indication information is a newly defined bit, the second indication information is a newly defined bit in the Intent field in the APN message header.

[0164] It should be understood that with the development of APN6 technology, other fields may be added to the APN message header, the first indication information may also be encapsulated in other extended fields, and the second indication information may also be encapsulated in other extended fields, which is not limited in this application.

[0165] In addition, it should be noted that the second device is a device that can perceive applications, and the second device can encapsulate application information such as APN information into the data message to be sent. The data message to be sent can be a data message generated by the second device itself, or a data message to be forwarded after being received by the second device. In one example, if the second device is Figure 1 In another example, if the second device is a terminal device (e.g., a terminal device) or a cloud device (e.g., a cloud server) in the system shown, the second device generates a data message. Figure 1 The network entry device (ie, network edge device) in the system shown in the figure, the second device receives the data message from the end-side device (eg, terminal device) or the cloud-side device (eg, cloud server).

[0166] The second device may trigger encapsulating the APN information in the data message to be sent through any of the following implementation modes:

[0167] In a possible implementation, the second device can obtain the demand information for using a dedicated tunnel, and based on the demand information for using the dedicated tunnel, trigger the encapsulation of APN information in the data message to be sent. The demand information for using a dedicated tunnel can be input into the second device by a user through a user interface, or can be obtained by the second device from other network elements. The demand information for using a dedicated tunnel is used to indicate that the user and / or application has a demand for using a dedicated tunnel. The second device can trigger the encapsulation of APN information in the data message to be sent based on the received demand information for using a dedicated tunnel.

[0168] Exemplarily, the second device that encapsulates the APN information using this embodiment may be Figure 1 The terminal device (e.g., terminal device) or cloud device (e.g., cloud server) in the system shown. Please refer to the following for details. Figure 5 Corresponding to the relevant introduction in the embodiment.

[0169] In another possible implementation, the second device can obtain characteristic information of the data packet to be sent, can determine the user and / or application corresponding to the data packet based on the characteristic information, and then can trigger the encapsulation of APN information in the data packet to be sent based on the user and / or application corresponding to the data packet.

[0170] Exemplarily, the second device that encapsulates the APN information using this embodiment may be Figure 1 The network entry device (i.e. network edge device) in the system shown. Please refer to the following for details Figure 6 Corresponding to the relevant introduction in the embodiment.

[0171] Step 302: The second device sends a data message encapsulated with APN information; correspondingly, the first device receives the data message encapsulated with APN information.

[0172] In a possible implementation manner, the first device directly receives the data message encapsulated with the APN information from the second device, that is, the next hop of the data message encapsulated with the APN information sent by the second device is the first device.

[0173] Exemplarily, the second device is Figure 1 In the network entry device (i.e., network edge device) in the system shown, the first device is Figure 1 The head node in the system shown. The network entry device encapsulates the APN information in the data message received from the end-side device (e.g., terminal device) or the cloud-side device (e.g., server), and then the network entry device sends the data message encapsulated with the APN information to the next hop (i.e., the head node).

[0174] In another possible implementation, the data message encapsulated with the APN information sent by the second device reaches the first device after being forwarded by at least one network device, that is, the first device receives the data message encapsulated with the APN information from the second device forwarded by other network devices.

[0175] Exemplarily, the second device is Figure 1 In the system shown, the first device is a terminal device (eg, a terminal device) or a cloud device (eg, a server). Figure 1 The head node in the system shown. After the end-side device (e.g., terminal device) or the cloud-side device (e.g., server) encapsulates the APN information in the data message to be sent, it sends the data message encapsulated with the APN information to the next hop (i.e., the network entry device), and the network entry device then forwards the data message encapsulated with the APN information to the head node.

[0176] It should be noted that in this step, the second device can continuously send one or more data packets encapsulated with APN information, which is conducive to ensuring that the first device can receive the data packets encapsulated with APN information, and further ensure that the first device will not be unable to trigger the process of establishing a dedicated tunnel due to packet loss of the data packets encapsulated with APN information. This is conducive to improving the reliability of the solution.

[0177] In addition, after the first device receives the data message encapsulated with the APN information, the first device can parse the data message to obtain the APN information. Since the APN information includes the APN identifier and the first indication information, the first device can trigger the establishment of a dedicated tunnel for the user and / or application corresponding to the APN identifier based on the APN identifier and the first indication information. Specifically, the first device will first obtain the tunnel establishment parameters, and then establish the dedicated tunnel based on the tunnel establishment parameters. Please refer to the relevant introduction in step 303 and step 304 for details.

[0178] Step 303: The first device obtains tunnel establishment parameters for establishing a dedicated tunnel based on the APN information.

[0179] In this embodiment, the first device not only has the ability to establish a dedicated tunnel based on the tunnel establishment parameters, but also has the ability to obtain the tunnel establishment parameters. The ability to obtain the tunnel establishment parameters refers to the ability to obtain the tunnel establishment parameters based on the APN information, rather than just the ability to receive manually configured tunnel establishment parameters. In other words, in the traditional technology, the first device can only obtain manually configured tunnel establishment parameters, but cannot autonomously obtain tunnel establishment parameters; while in this application, the first device can obtain tunnel establishment parameters based on the APN information.

[0180] Specifically, the first device may obtain the tunnel establishment parameters based on the APN information through any of the following implementations:

[0181] In a possible implementation mode 1, the tunnel establishment parameters are carried in the APN information, that is, the APN information includes not only the APN identifier and the first indication information, but also the tunnel establishment parameters. After the first device receives the data message encapsulated with the APN information, the first device can parse the APN information to obtain the APN identifier, the first indication information and the tunnel establishment parameters.

[0182] Optionally, if the APN information is encapsulated in the programmable space of the data message in the form of an APN message header, and the tunnel establishment parameters are encapsulated in the network performance requirement parameter field in the APN message header, the first device obtains the tunnel establishment parameters from the network performance requirement parameter field in the APN message header. Figure 4B As shown, the network performance requirement parameter field refers to the APN parameter type (APN-Para-Type) field and the APN parameter (APN-Para) field. The type of the tunnel establishment parameter is encapsulated in the APN-Para-Type field, and the specific value of the tunnel establishment parameter is encapsulated in the APN-Para field. The first device parses the APN-Para-Type field to obtain the type of the tunnel establishment parameter, and parses the APN-Para field to obtain the specific value of the tunnel establishment parameter.

[0183] In this implementation, the second device encapsulates the tunnel establishment parameters, the APN identifier, and the first indication information in the APN information. After the first device receives the data message encapsulated with the APN information, it can obtain the tunnel establishment parameters while parsing the data message to obtain the APN identifier and the first indication information. In other words, the first device can obtain the tunnel establishment parameters by parsing the received data message without obtaining the tunnel establishment parameters from other network devices, which is conducive to the first device quickly and efficiently obtaining the tunnel establishment parameters, and further helps to shorten the delay caused by the first device obtaining the tunnel establishment parameters.

[0184] In another possible implementation mode 2, the APN information does not carry the tunnel establishment parameter, but carries the index of the tunnel establishment parameter (i.e., the second indication information). At the same time, the first device stores the first correspondence between the second indication information and the tunnel establishment parameter. After the first device receives the data message encapsulated with the APN information, the first device can parse the APN information to obtain the second indication information, and obtain the tunnel establishment parameter corresponding to the second indication information based on the second indication information and the first correspondence.

[0185] In an implementation of this embodiment, the second indication information is an APN identifier, that is, the APN identifier is used as an index of the tunnel establishment parameter. The first corresponding relationship stored in the first device is a corresponding relationship between multiple APN identifiers and multiple tunnel establishment parameters.

[0186] Exemplarily, if the APN identifier is an APN ID, the first corresponding relationship stored in the first device may be as shown in the following Table 2-1:

[0187] Table 2-1

[0188] Index of tunnel establishment parameters Tunnel establishment parameters APN ID1 Tunnel establishment parameters 1 APN ID2 Tunnel establishment parameters 2 APN ID3 Tunnel establishment parameters 3 APN ID4 Tunnel establishment parameters 4 APN ID5 Tunnel establishment parameters 5

[0189] As shown in Table 2-1, different APN IDs correspond to different tunnel establishment parameters. Optionally, different tunnel establishment parameters refer to different types of tunnel establishment parameters and / or different values ​​of tunnel establishment parameters.

[0190] For ease of understanding, the first correspondence is shown in Table 2-2 as an example for introduction:

[0191] Table 2-2

[0192] Index of tunnel establishment parameters Tunnel establishment parameters APN ID1 Tunnel establishment parameter 1 = {effective time information = T1; bandwidth information = aMHz; service delay information = t1} APN ID2 Tunnel establishment parameter 2 = {effective time information = T2; bandwidth information = bMHz; service delay information = t1} APN ID3 Tunnel establishment parameter 3 = {effective time information = T3; bandwidth information = cMHz; service delay information = t3} APN ID4 Tunnel establishment parameter 4 = {bandwidth information = cMHz; service delay information = t3; jitter information = 10%} APN ID5 Tunnel establishment parameters 5 = {jitter information = 10%; packet loss rate = 5%}

[0193] In the example shown in Table 2-2, the tunnel establishment parameters corresponding to different APN IDs may be of the same type but with different values. In one example, the different values ​​of the tunnel establishment parameters may be different values ​​of some of the tunnel establishment parameters. For example, the tunnel establishment parameters corresponding to APN ID1 and the tunnel establishment parameters corresponding to APN ID2 both include effective time information, bandwidth information, and service delay information, but only the value of the service delay information is the same, the effective time information corresponding to APN ID1 and the effective time information corresponding to APN ID2 have different values, and the bandwidth information corresponding to APN ID1 and the bandwidth information corresponding to APN ID2 have different values. In another example, the different values ​​of the tunnel establishment parameters may also be that the values ​​of the same type of tunnel establishment parameters are all different. For example, the tunnel establishment parameters corresponding to APN ID1 and the tunnel establishment parameters corresponding to APN ID3 both include effective time information, bandwidth information and service delay information, but the effective time information corresponding to APN ID1 and the effective time information corresponding to APN ID3 have different values, the bandwidth information corresponding to APN ID1 and the bandwidth information corresponding to APN ID3 have different values, and the bandwidth information corresponding to APN ID1 and the service delay information corresponding to APN ID3 have different values.

[0194] In addition, the tunnel establishment parameters corresponding to different APN IDs may also be different types of tunnel establishment parameters. In one example, the different types of tunnel establishment parameters may be different types of some of the tunnel establishment parameters. For example, the tunnel establishment parameters corresponding to APN ID1 and the tunnel establishment parameters corresponding to APN ID4 both include bandwidth information and service delay information, but the tunnel establishment parameters corresponding to APN ID1 also include effective time information, and the tunnel establishment parameters corresponding to APN ID4 also include jitter information. In another example, the different types of tunnel establishment parameters may also be different types of all tunnel establishment parameters. For example, the tunnel establishment parameters corresponding to APN ID1 include three types of information, namely effective time information, bandwidth information, and service delay information; while the tunnel establishment parameters corresponding to APN ID4 only include two types of information, namely jitter information and packet loss rate.

[0195] It should be understood that in actual applications, tunnel establishment parameters suitable for the user and / or application may be preconfigured based on the dedicated tunnel usage requirements of the user and / or application.

[0196] In another implementation of this embodiment, the second indication information is a newly defined bit in the APN intent requirement field (for example, the Intent field in the APN message), that is, at least one bit is selected in the Intent field to represent the index of the tunnel establishment parameter. The first correspondence stored in the first device is a correspondence between multiple index values ​​and multiple tunnel establishment parameters.

[0197] Exemplarily, the first corresponding relationship stored in the first device may be as shown in the following Table 2-3:

[0198] Table 2-3

[0199] Index of tunnel establishment parameters Tunnel establishment parameters Index value 1 Tunnel establishment parameters 1 Index value 2 Tunnel establishment parameters 2 Index value 3 Tunnel establishment parameters 3 Index value 4 Tunnel establishment parameters 4

[0200] As can be seen from the example shown in Table 2-3, different index values ​​correspond to different tunnel establishment parameters. Optionally, different tunnel establishment parameters refer to different types of tunnel establishment parameters and / or different values ​​of tunnel establishment parameters. For details, please refer to the relevant introduction of the example shown in Table 2-2, which will not be repeated here.

[0201] In this embodiment, the second device carries the index of the tunnel establishment parameters in the APN information instead of directly carrying the tunnel establishment parameters. Therefore, it is helpful to save the bit overhead used to encapsulate the tunnel establishment parameters in the data message, that is, shorten the length of the data message, save bandwidth resources, reduce forwarding processing pressure, and improve the transmission rate and efficiency of the data message. In addition, when the user and / or application changes the performance requirements of the dedicated tunnel, the second device can be instructed to modify the index of the tunnel establishment parameters, or modify the type and / or value of the tunnel establishment parameters stored in the first device to update the tunnel establishment parameters used by the first device to establish the dedicated tunnel. It is helpful to improve the flexibility of updating and maintaining tunnel establishment parameters.

[0202] In another possible implementation mode 3, an APN control plane connection can be established between the first device and the second device. The second device sends a signaling carrying an APN identifier and tunnel establishment parameters to the first device, and the first device receives the control plane signaling from the second device, and then the first device obtains the tunnel establishment parameters from the control plane signaling. Since the data message encapsulated with APN information that the first device can receive through the data plane carries the APN identifier and the first indication information, and the control plane signaling received through the control plane carries the APN identifier and the tunnel establishment parameters, when the APN identifier obtained through the data plane is consistent with the APN identifier obtained through the control plane, the first device can use the tunnel establishment parameters in the control plane signaling to establish a dedicated tunnel when triggering the establishment of a dedicated tunnel based on the first indication information.

[0203] In this embodiment, the second device triggers the first device to establish a dedicated tunnel through the data plane, and provides the tunnel establishment parameters for establishing the dedicated tunnel to the first device through the control plane. This is beneficial to saving the bit overhead used to encapsulate the tunnel establishment parameters in the data message, that is, shortening the length of the data message, which is beneficial to saving bandwidth resources, reducing forwarding processing pressure, and improving the transmission rate and efficiency of data messages.

[0204] Step 304: The first device establishes a dedicated tunnel based on the tunnel establishment parameters.

[0205] Specifically, the first device establishes a dedicated tunnel serving the user and / or application corresponding to the APN identifier between the first device and the third device based on the tunnel establishment parameters. The third device may be Figure 1 The tail node in the system shown.

[0206] First, the first device can obtain the address information of the third device based on the data message. The address information of the third device includes the IP address of the third device and / or the MAC address of the third device. Exemplarily, the first device parses the destination address field in the IP message header of the data message to obtain the IP address of the third device and / or the MAC address of the third device.

[0207] Then, the first device obtains path information based on the address information of the first device, the address information of the third device, and the tunnel establishment parameters, where the path information is used to indicate the transmission path of the data message from the first device to the third device. The address information of the first device includes the IP address of the first device and / or the MAC address of the first device. Exemplarily, the path information can be used to indicate Figure 1 This section describes the network service path information that meets SLA requirements.

[0208] In one implementation, the first device generates path information. Specifically, the first device generates path information based on the address information of the first device, the address information of the third device, and the tunnel establishment parameters. For example, the first device can know the starting point and the end point of the dedicated tunnel based on the address information of the first device and the address information of the third device, and then the first device selects at least one intermediate node to connect the first device as the starting point and the third device as the end point to obtain the transmission path and generate path information. Among them, the path formed by the at least one intermediate node can meet the constraints of various parameters in the tunnel establishment parameters. For example, meet the bandwidth requirement indicated by the bandwidth information, meet the delay requirement indicated by the service delay information, meet the jitter requirement indicated by the jitter information, or meet the packet loss rate requirement indicated by the packet loss rate.

[0209] In another implementation, the controller generates the path information. Specifically, the first device sends the address information of the first device, the address information of the third device, and the tunnel establishment parameter to the controller; then, the controller generates the path information based on the address information of the first device, the address information of the third device, and the tunnel establishment parameter; then, the first device receives the path information and the APN identifier from the controller.

[0210] Compared with the solution of manually configuring the address information of the third device in the prior art, the first device provided by the present application can obtain the address information of the third device based on the data message, which is conducive to improving the efficiency of the first device in obtaining path information, and further to improving the efficiency of the first device in establishing a dedicated tunnel.

[0211] In addition, the first device will also generate first forwarding information based on the path information. The first forwarding information is the forwarding information of the dedicated tunnel. The first device transmits a data packet through a dedicated tunnel, which can be understood as the first device forwarding the data packet based on the first forwarding information, that is, the first device maintains the matching relationship between the inbound traffic and the network service path based on the first forwarding information. Optionally, the first forwarding information includes an APN identifier and a forwarding path (that is, the forwarding path indicated by the path information). The first device matches the forwarding path for the data packet based on the APN identifier in the received data packet and the APN identifier in the first forwarding information, and then forwards the data packet to the next hop.

[0212] Optionally, after the first device establishes the dedicated tunnel based on the tunnel establishment parameters, the first device executes step 305 and / or step 306. If the first device executes step 306, the first device may also execute step 307. Optionally, the first device may also execute step 308. It should be noted that there is no clear time sequence between step 305 and steps 306 to 308, and step 305 can be executed after step 304.

[0213] Step 305: The first device sends third indication information to the second device; correspondingly, the second device receives the third indication information from the first device.

[0214] In this embodiment, step 305 is an optional step.

[0215] The third indication information is used to indicate that the dedicated tunnel has been successfully established. The first device may transmit the third indication information to the second device via a data plane or via a control plane, which is not limited here.

[0216] After the second device receives the third indication information, the data message sent by the second device to the first device does not carry the first indication information, and further the data message transmitted by the first device through the dedicated tunnel does not carry the first indication information.

[0217] Optionally, if the data packet encapsulated with the APN information sent by the second device in step 302 carries the tunnel establishment parameters, the data packet sent by the second device to the first device after receiving the third indication information does not carry the tunnel establishment parameters. For example, the data packet sent by the second device does not carry the first indication information and the tunnel establishment parameters.

[0218] Optionally, if the intent requirement (Intent) field in the data message encapsulated with the APN information sent by the second device in step 302 carries the index of the tunnel establishment parameter, the intent requirement (Intent) field of the data message sent by the second device to the first device after receiving the third indication information does not carry the index of the tunnel establishment parameter. For example, the data message sent by the second device does not carry the first indication information and the index of the tunnel establishment parameter.

[0219] Exemplarily, after the second device receives the third indication information, the data message sent by the second device to the first device carries only the APN identifier but not other APN information. After the first device receives the data message carrying only the APN identifier, the first device forwards the data message based on the APN identifier. For example, the first device forwards the data message based on the APN identifier and the first forwarding information.

[0220] Since the data message sent by the second device after receiving the third indication information no longer carries information related to establishing a dedicated tunnel (for example, the first indication information, tunnel establishment parameters, or an index of tunnel establishment parameters), the third indication information can also be understood as indicating that the second device does not carry information related to establishing a dedicated tunnel in the data message. Therefore, it is beneficial to save the bit overhead used to encapsulate information related to establishing a dedicated tunnel (for example, the first indication information, tunnel establishment parameters, or an index of tunnel establishment parameters) in the data message, that is, shorten the length of the data message, which is beneficial to saving bandwidth resources, reducing forwarding processing pressure, and improving the transmission rate and efficiency of data messages.

[0221] It should be noted that if the first device does not execute step 305 after executing step 304, and the second device continues to send one or more data packets encapsulated with APN information after executing step 302, then after receiving the data packet encapsulated with APN information, the first device can determine that a dedicated tunnel corresponding to the APN identifier already exists based on the APN identifier in the APN information and the APN identifier corresponding to the existing path information in the first device (or the APN identifier corresponding to the first forwarding information), so that the first device will ignore the information related to establishing a dedicated tunnel in the data packet, that is, the first device does not trigger the establishment of a dedicated tunnel corresponding to the APN identifier. At the same time, the first device forwards the one or more data packets encapsulated with APN information based on the first forwarding information.

[0222] Since, after the first device establishes the dedicated tunnel, if the first device receives a data message encapsulated with APN information again and the APN identifier carried by the data message is the same as the APN identifier corresponding to the established dedicated tunnel, the first device can determine that a dedicated tunnel corresponding to the APN identifier already exists and ignore the APN information in the data message. Therefore, repeated triggering of establishing a dedicated tunnel can be avoided, which is beneficial to saving processing resources of the first device.

[0223] Step 306: The first device starts a first timer.

[0224] In this embodiment, step 306 is an optional step.

[0225] Specifically, after the first device establishes the dedicated tunnel based on the tunnel establishment parameters, the first device starts the first timer. It can also be understood that when the first device obtains the path information, the first device starts the first timer. It can also be understood that when the first device generates the first forwarding information, the first device starts the first timer.

[0226] The first timer is used to indicate the survival time of the dedicated tunnel. Optionally, the duration of the first timer is equal to the default duration or the duration indicated by the effective time information. Exemplarily, if the first device can obtain the effective time information, the first device determines the duration of the first timer based on the duration indicated by the effective time information; if the first device does not obtain the effective time information, the first device determines the duration of the first timer based on the default duration. The default duration can be a factory setting of the first device or a manually pre-configured duration, which is not limited here.

[0227] During the operation of the first timer, the first device may transmit the data message carrying the APN identifier (eg, APN ID) through the dedicated tunnel, that is, forward the data message carrying the APN identifier based on the first forwarding information. If the first timer times out, the first device will execute step 307.

[0228] Step 307: The first device deletes the first forwarding information.

[0229] In this embodiment, step 307 is an optional step.

[0230] In a possible implementation, when the first timer times out, the first device deletes the first forwarding information. It can be understood that the first device immediately removes the dedicated tunnel when the first timer times out. It can be understood that the first device immediately stops providing forwarding services for the dedicated tunnel when the first timer times out.

[0231] In another possible implementation, within the first time period after the first timer times out, if the first device does not receive the data packet carrying the APN identifier, the first device deletes the first forwarding information. Optionally, the first time period is greater than or equal to the network delay. It can be understood that the first device considers the impact of network delay on data packet transmission, tolerates network delay after the first timer times out, and then dismantles the dedicated tunnel, which is conducive to avoiding user data loss and improving the reliability of data transmission.

[0232] Step 308: The first device forwards the data message carrying the APN identifier based on the second forwarding information.

[0233] In this embodiment, step 308 is an optional step. If the first device still receives a data message carrying the APN identifier after deleting the first forwarding information or after the first timer times out, the first device executes step 308; if the first device does not receive a data message carrying the APN identifier after deleting the first forwarding information, the first device does not execute step 308.

[0234] After the first device deletes the first forwarding information or after the first timer times out, if the first device receives a data packet carrying the APN identifier, the first device forwards the data packet carrying the APN identifier based on the second forwarding information. The second forwarding information is different from the first forwarding information. Optionally, the second forwarding information is used to provide a best-effort forwarding service. It can be understood that the second forwarding information is the forwarding information corresponding to the ordinary tunnel.

[0235] After the first forwarding information becomes invalid, the first device may still receive a data message carrying the APN identifier due to network delay and other reasons. In this case, the first device can forward the data message carrying the APN identifier based on the second forwarding information, that is, the first device switches the dedicated tunnel to a common tunnel to transmit the data message carrying the APN identifier. This is conducive to avoiding user data loss and improving the reliability of data message transmission.

[0236] In the present application, the first device can obtain APN information from the received data packet, and based on the APN identifier and the first indication information in the APN information, it can be learned that the user and / or application indicated by the APN identifier needs to establish a dedicated tunnel, thereby triggering the acquisition of tunnel establishment parameters based on the APN information and establishing a dedicated tunnel. Since the transmission of the data packet is triggered by the business needs of the user and / or application, that is, the data packet carrying the APN information will not be sent when the user and / or application is idle, therefore, triggering the first device to establish a dedicated tunnel based on the data packet carrying the APN information can trigger the establishment of a dedicated tunnel when the user and / or application has business needs, thereby realizing dynamic on-demand establishment of a dedicated tunnel. In addition, after establishing the dedicated tunnel, the first device also creates a first timer that reflects the effective time of the dedicated tunnel, and dismantles the dedicated tunnel when the first timer times out. Since the duration of the first timer can be determined based on the effective time information in the tunnel establishment parameters, the effective time information can reflect the duration requirements of the user and / or application for using the dedicated tunnel. Therefore, the first device maintains the first timer and dismantles the dedicated tunnel when the first timer expires. It can trigger the dismantling of the dedicated tunnel when there is no user and / or business demand, thereby realizing dynamic on-demand dismantling of the dedicated tunnel.

[0237] It should be noted that the second device in the aforementioned embodiment may be a terminal device or a network entry device. The tunnel establishment method provided in the present application is further described below by taking the second device as a terminal device as an example:

[0238] like Figure 5 As shown, it is another flow chart of the tunnel establishment method provided by the present application. Taking the first device as the head node, the second device as the terminal device 1, the third device as the tail node, and the final receiving end of the data message as the terminal device 2 as an example, the head node, the terminal device 1, the tail node and the terminal device 2 will perform the following steps:

[0239] Step 501: Terminal device 1 obtains demand information for using a dedicated tunnel.

[0240] The demand information for using a dedicated tunnel is used to indicate that a user and / or an application has a demand for using a dedicated tunnel.

[0241] In a possible implementation, the demand information for using a dedicated tunnel may be an indication of the need to establish a dedicated tunnel input by a user through a user interface provided by the terminal device 1. For example, the demand information for using a dedicated tunnel may be fourth indication information input by a user, and the fourth indication information is used to indicate the need to use a dedicated tunnel. For example, the user interface provided by the terminal device 1 displays an option button for providing a dedicated tunnel service to the user, and when the user has a need to use a dedicated tunnel, the user clicks the option button, and the terminal device 1 can receive the fourth indication information input by the user.

[0242] In another possible implementation, the demand information for using a dedicated tunnel is information received by the terminal device 1 from a network element such as a network management device. For example, if the network management device detects that a user and / or application has a demand for using a dedicated tunnel, the network management device sends the demand information for using a dedicated tunnel to the terminal device 1.

[0243] After the terminal device 1 obtains the requirement information for using the dedicated tunnel, the terminal device 1 executes step 502 .

[0244] Step 502: Terminal device 1 encapsulates APN information in the data message to be sent.

[0245] Among them, the data message to be sent is a data message generated by the application of terminal device 1. Terminal device 1 encapsulates APN information in the data message before sending the data message. Among them, the APN information includes an APN identifier and a first indication information. Optionally, the APN information also includes a tunnel establishment parameter. Optionally, the APN information includes a second indication information. Optionally, the APN information is encapsulated in the programmable space of the data message to be sent. For an introduction to the APN information, please refer to step 201 above, which will not be repeated here.

[0246] Step 503, the terminal device 1 sends a data message encapsulated with the APN information; correspondingly, the head node receives the data message encapsulated with the APN information.

[0247] Because, in APN6, terminal device 1 generally passes through a network entry device (e.g., Figure 5 The network entry device 1 shown is connected to the head node, so the data message encapsulated with the APN information sent by the terminal device 1 will be transmitted to the network entry device 1, and then the network entry device 1 will forward the data message encapsulated with the APN information to the head node.

[0248] Step 504: The head node obtains tunnel establishment parameters for establishing a dedicated tunnel based on the APN information.

[0249] Step 505: The head node establishes a dedicated tunnel between the head node and the tail node based on the tunnel establishment parameters.

[0250] In this embodiment, step 504 to step 505 are similar to the above step 303 to step 304. Please refer to the above description of step 303 to step 304 for details, which will not be repeated here.

[0251] Optionally, after the head node establishes the dedicated tunnel based on the tunnel establishment parameters, the head node executes step 506. Optionally, the head node will also execute steps 507 and 509.

[0252] It should be noted that there is no clear time sequence limitation between step 507 and step 506 , and step 507 can be executed after step 505 .

[0253] Step 506: The head node starts a first timer.

[0254] Specifically, the head node may start the first timer immediately after successfully establishing the dedicated tunnel. The successful establishment of the dedicated tunnel by the head node may refer to the head node obtaining path information, or may refer to the head node generating first forwarding information. The head node may also start the first timer when forwarding a data message carrying the APN identifier based on the first forwarding information. For an explanation of the first timer, please refer to the relevant introduction in the previous step 306, which will not be repeated here.

[0255] After the head node starts the first timer, the first timer continues to run until step 512 .

[0256] Step 507: The head node sends third indication information to the terminal device 1; correspondingly, the terminal device 1 receives the third indication information from the head node.

[0257] Among them, the third indication information is used to indicate that the dedicated tunnel has been successfully established. It can be understood that the third indication information is used to instruct the terminal device 1 not to carry information related to the establishment of the dedicated tunnel (for example, the first indication information, the tunnel establishment parameter or the index of the tunnel establishment parameter) in the data message subsequently sent. For the explanation of the third indication information, please refer to the relevant introduction in the previous step 305, which will not be repeated here.

[0258] Step 508: Terminal device 1 encapsulates only the APN identifier in the data message to be sent.

[0259] Before receiving the third indication information, the terminal device 1 encapsulates the APN information in the data message to be sent, that is, the data message to be sent includes at least the APN identifier and the first indication information, and may also include a tunnel establishment parameter or an index of a tunnel establishment parameter.

[0260] After receiving the third indication information, the terminal device 1 encapsulates the APN identifier in the data message to be sent, but does not encapsulate the first indication information, the tunnel establishment parameters or the index of the tunnel establishment parameters and other information.

[0261] Exemplarily, terminal device 1 continuously generates data packets to transmit service data. During step 502 to step 507, terminal device 1 sends data packets encapsulated with APN information; after step 508, terminal device 1 sends data packets encapsulated with only APN identifier.

[0262] Step 509: Terminal device 1 sends a data message encapsulated with only the APN identifier; correspondingly, the head node receives the data message encapsulated with only the APN identifier.

[0263] In this embodiment, steps 507 to 509 are optional steps.

[0264] Step 510: The head node transmits the data message to the tail node through a dedicated tunnel.

[0265] Specifically, the head node forwards the data message based on the first forwarding information. For example, the first device matches the forwarding path for the data message based on the APN identifier in the received data message and the APN identifier in the first forwarding information, and then forwards the data message to the next hop (for example, an intermediate node). The next hop can discover and learn the first forwarding information, and also forward the data message based on the first forwarding information, and finally forward the data message to the tail node. It should be noted that the data message in this step carries at least the APN identifier. Optionally, the data message in this step includes a data message encapsulated with the APN information and / or a data message encapsulated only with the APN identifier.

[0266] In a possible implementation, if the terminal device 1 executes steps 507 to 509, the data message transmitted by the head node includes a data message encapsulated with the APN information and / or a data message encapsulated with only the APN identifier. For example, if the data message received by the head node is a data message encapsulated with the APN information generated by the terminal device 1 during steps 502 to 507, the head node transmits the data message encapsulated with the APN information to the tail node through a dedicated tunnel; if the data message received by the head node is a data message encapsulated with only the APN identifier generated by the terminal device 1 after step 508, the head node transmits the data message encapsulated with only the APN identifier to the tail node through a dedicated tunnel.

[0267] In another possible implementation, if the terminal device 1 does not execute steps 507 to 509, that is, the terminal device 1 continues to send data packets encapsulated with the APN information, the data packets transmitted by the head node are data packets encapsulated with the APN information.

[0268] In addition, after the tail node receives the data message, the tail node will execute at least one of step 511a, step 511b and step 511c. For example, if the head node transmits a data message encapsulated with APN information to the tail node through a dedicated tunnel, the tail node executes step 511a or step 511b; if the head node transmits a data message encapsulated with only the APN identifier to the tail node through a dedicated tunnel, the tail node executes step 511c.

[0269] Step 511a, the tail node sends a data message stripped of the APN information to the terminal device 2; correspondingly, the terminal device 2 receives the data message not including the APN information.

[0270] Specifically, after receiving the data message encapsulated with the APN information, the egress node strips the APN information carried by the data message. For example, taking the APN information as an APN message header, the egress node strips the APN message header from the received data message.

[0271] Because, in APN6, terminal device 2 generally passes through the network entry device (for example, Figure 5 The network entry device 2 shown is connected to the tail node, so the tail node transmits the data message stripped of the APN information to the network entry device 2, and then the network entry device 2 forwards the data message stripped of the APN information to the terminal device 2.

[0272] Optionally, the network entry device 2 forwards the data message based on the destination IP address in the data message from which the APN information is stripped.

[0273] Step 511b, the tail node sends a data message encapsulated with the APN information to the terminal device 2; correspondingly, the terminal device 2 receives the data message encapsulated with the APN information.

[0274] Specifically, after receiving the data message encapsulated with the APN information, the egress node directly transmits the data message encapsulated with the APN information to the network ingress device 2 , and then the network ingress device 2 forwards the data message stripped of the APN information to the terminal device 2 .

[0275] Step 511c: the tail node sends a data message encapsulated with only the APN identifier to the terminal device 2; correspondingly, the terminal device 2 receives the data message encapsulated with only the APN identifier.

[0276] Specifically, after receiving the data message encapsulated with only the APN identifier, the egress node directly transmits the data message encapsulated with only the APN identifier to the network ingress device 2 , and then the network ingress device 2 forwards the data message stripped of the APN information to the terminal device 2 .

[0277] Step 512: When the first timer times out, the head node removes the dedicated tunnel.

[0278] The head node dismantling the dedicated tunnel can be understood as the head node deleting the first forwarding information. For the explanation of the first forwarding information, please refer to the relevant introduction in the above step 304, which will not be repeated here.

[0279] In a possible implementation manner, when the first timer times out, the head node immediately deletes the first forwarding information, that is, the head node immediately removes the dedicated tunnel when the first timer times out.

[0280] In another possible implementation, within the first time period after the first timer times out, if the head node does not receive the data message carrying the APN identifier, the head node deletes the first forwarding information. Optionally, the first time period is greater than or equal to the network delay. It can be understood that the head node considers the impact of network delay on data message transmission, tolerates network delay after the first timer times out, and then dismantles the dedicated tunnel, which is conducive to improving the reliability of data transmission.

[0281] In another possible implementation, when the first timer times out, the head node starts the second timer. If the head node does not receive a data message carrying the APN identifier before the second timer times out, the head node deletes the first forwarding information when the second timer times out. Optionally, the duration of the second timer is greater than or equal to the network delay. It can be understood that the head node considers the impact of network delay on data message transmission, tolerates network delay after the first timer times out, and then dismantles the dedicated tunnel, which is conducive to improving the reliability of data transmission.

[0282] It should be noted that the data message carrying the APN identifier in step 512 and step 513 may be a data message carrying only the APN identifier, or may be a data message encapsulated with the APN information, which is not limited here.

[0283] Step 513: The head node transmits the data message through a common tunnel.

[0284] In this embodiment, step 513 is an optional step.

[0285] If the head node still receives a data message carrying the APN identifier after the head node dismantles the dedicated tunnel, the head node executes step 513; if the head node does not receive a data message carrying the APN identifier after the head node dismantles the dedicated tunnel, the head node does not execute step 513.

[0286] After the head node dismantles the dedicated tunnel, if the head node receives a data message carrying the APN identifier, the head node transmits the data message carrying the APN identifier through the common tunnel. It can be understood that the head node forwards the data message carrying the APN identifier based on the second forwarding information. For an explanation of the second forwarding information, please refer to the relevant introduction in the previous step 308, which will not be repeated here.

[0287] After the first forwarding information becomes invalid, the head node may still receive data packets carrying the APN identifier due to network delays and other reasons. In this case, the head node can forward the data packets carrying the APN identifier based on the second forwarding information, that is, the head node switches the dedicated tunnel to a common tunnel to transmit the data packets carrying the APN identifier. This is conducive to avoiding data loss and improving the reliability of data packet transmission.

[0288] In this embodiment, the terminal device can encapsulate APN information in the data message to be sent based on the needs of the user, and the head node can obtain the APN information from the received data message, and then the head node can not only learn that the user and / or application indicated by the APN identifier needs to establish a dedicated tunnel based on the APN identifier and the first indication information in the APN information, but also can obtain the tunnel establishment parameters for establishing the dedicated tunnel based on the APN information, and then establish the dedicated tunnel based on the tunnel establishment parameters. Since the transmission of the data message is triggered by the business needs of the user and / or application, that is, the data message carrying the APN information will not be sent when the user and / or application is idle, therefore, triggering the head node to establish a dedicated tunnel based on the data message carrying the APN information can trigger the establishment of the dedicated tunnel when the user and / or application has business needs, thereby realizing dynamic on-demand establishment of the dedicated tunnel. In addition, after establishing the dedicated tunnel, the head node also creates a first timer that reflects the effective time of the dedicated tunnel, and dismantles the dedicated tunnel when the first timer times out. Since the duration of the first timer can be determined based on the effective time information in the tunnel establishment parameters, the effective time information can reflect the duration requirements of the user and / or application for using the dedicated tunnel. Therefore, the head node maintains the first timer and dismantles the dedicated tunnel when the first timer expires. It can trigger the dismantling of the dedicated tunnel when there is no longer any user and / or business demand, thereby realizing dynamic on-demand dismantling of the dedicated tunnel.

[0289] The following further introduces the tunnel establishment method provided by the present application by taking the second device as a network entry device as an example:

[0290] like Figure 6 As shown, it is another flow chart of the tunnel establishment method provided by the present application. Taking the first device as the head node, the second device as the network entry device 1, and the third device as the tail node as an example, the head node, the network entry device 1, and the tail node will perform the following steps:

[0291] Step 601 , terminal device 1 sends a data message to network entry device 1 ; correspondingly, network entry device 1 receives a data message from terminal device 1 .

[0292] The data message is a data message generated by the application without APN information. Since the data message is a message generated when the user using the terminal device 1 has business data transmission, the network entry device 1 can learn from the data message received from the terminal device 1 that there may be a user who has the need to establish a dedicated tunnel. Then, the network entry device 1 will analyze the received data message to determine whether the user who sent the data message has the need to establish a dedicated tunnel. Specifically, the network entry device 1 will execute step 602.

[0293] Step 602: The network entry device 1 obtains characteristic information of the data message to be sent, and determines the user and / or application corresponding to the data message according to the characteristic information.

[0294] The characteristic information of the data message is used to indicate the user and / or application that sent the data message, that is, the information that can reflect which user or which application the data message comes from is the characteristic information.

[0295] In a possible implementation, the characteristic information of the data message is determined by the network entry device 1 analyzing one or more received data messages. For example, the network entry device 1 parses the characteristic information based on the five-tuple information and / or service information in the data message. The five-tuple information includes the source IP address, the destination IP address, the source port number, the destination port number and the protocol number. The service information may be a mapping between dual virtual local area network (VLAN) tags, for example, a mapping between a client-side VLAN (C-VLAN) and a provider-side VLAN (S-VLAN). Exemplarily, the characteristic information may be at least one of a source IP address, a source port number, a differentiated services code point (DSCP) information and a flow label.

[0296] In another possible implementation, the characteristic information of the data message is information received by the network entry device 1 from a network element such as a network management device. For example, if the network management device can obtain the characteristic information of the data message, the network management device sends the characteristic information of the data message to the network entry device 1.

[0297] Then, the network entry device 1 determines the user and / or application corresponding to the data message according to the characteristic information.

[0298] In a possible implementation manner, the network entry device 1 stores preset characteristic information, where the preset characteristic information is used to indicate users and / or applications that are allowed to use the dedicated tunnel, or users and / or applications that have subscribed to the dedicated tunnel service.

[0299] When the characteristic information of the data message received by the network entry device 1 is consistent with the preset characteristic information, the network entry device 1 determines that the user and / or application corresponding to the data message has a demand to establish a dedicated tunnel, thereby triggering the network entry device 1 to execute step 603 .

[0300] Step 603: The network entry device 1 encapsulates the APN information in the data message to be sent.

[0301] The data message to be sent is a data message received by the network entry device 1 from the terminal device 1. The network entry device 1 encapsulates the APN information in the data message before sending the data message. The APN information includes an APN identifier and a first indication information. Optionally, the APN information also includes a tunnel establishment parameter. Optionally, the APN information includes a second indication information. Optionally, the APN information is encapsulated in the programmable space of the data message to be sent. For an introduction to the APN information, please refer to step 201 above, which will not be repeated here.

[0302] Step 604: the network ingress device 1 sends a data message encapsulated with the APN information; correspondingly, the head node receives the data message encapsulated with the APN information.

[0303] Step 605: The head node obtains tunnel establishment parameters for establishing a dedicated tunnel based on the APN information.

[0304] Step 606: The head node establishes a dedicated tunnel between the head node and the tail node based on the tunnel establishment parameters.

[0305] Step 607: The head node starts a first timer.

[0306] In this embodiment, steps 605 to 607 are similar to steps 504 to 506 in the previous text. Please refer to the relevant descriptions of steps 504 to 506 in the previous text for details, which will not be repeated here.

[0307] Step 608: The head node sends third indication information to the network ingress device 1; correspondingly, the network ingress device 1 receives the third indication information from the head node.

[0308] The third indication information is used to indicate that the dedicated tunnel has been successfully established. It can be understood that the third indication information is used to instruct the network entry device 1 not to carry information related to the establishment of the dedicated tunnel (for example, the first indication information, the tunnel establishment parameter or the index of the tunnel establishment parameter) in the data message subsequently sent. For an explanation of the third indication information, please refer to the relevant introduction in the previous step 305, which will not be repeated here.

[0309] Step 609: The network entry device 1 encapsulates only the APN identifier in the data message to be sent.

[0310] Before receiving the third indication information, the network entry device 1 encapsulates the APN information in the data message to be sent, that is, the data message to be sent includes at least the APN identifier and the first indication information, and may also include a tunnel establishment parameter or an index of a tunnel establishment parameter.

[0311] After receiving the third indication information, the network entry device 1 encapsulates the APN identifier in the data message to be sent, but does not encapsulate the first indication information, the tunnel establishment parameter or the index of the tunnel establishment parameter and other information.

[0312] Exemplarily, terminal device 1 will continuously generate data packets to transmit business data, and network entry device 1 can continuously receive data packets from terminal device 1. During step 603 to step 608, network entry device 1 sends data packets encapsulated with APN information; after step 609, network entry device 1 sends data packets encapsulated with only APN identifiers.

[0313] Step 610: The network ingress device 1 sends a data message encapsulated with only the APN identifier; correspondingly, the head node receives the data message encapsulated with only the APN identifier.

[0314] In this embodiment, steps 608 to 610 are optional steps.

[0315] Step 611: The head node transmits the data message to the tail node through a dedicated tunnel.

[0316] Step 612a, the tail node sends a data message stripped of the APN information to the terminal device 2; correspondingly, the terminal device 2 receives the data message not including the APN information.

[0317] Step 612b, the tail node sends a data message encapsulated with the APN information to the terminal device 2; correspondingly, the terminal device 2 receives the data message encapsulated with the APN information.

[0318] Step 612c: the tail node sends a data message encapsulated with only the APN identifier to the terminal device 2; correspondingly, the terminal device 2 receives the data message encapsulated with only the APN identifier.

[0319] Step 613: When the first timer times out, the head node removes the dedicated tunnel.

[0320] Step 614: The head node transmits the data message through a common tunnel.

[0321] In this embodiment, steps 611 to 614 are similar to steps 510 to 513 in the previous text. Please refer to the relevant descriptions of steps 510 to 513 in the previous text for details, which will not be repeated here.

[0322] In this embodiment, the network entry device can obtain the characteristic information of the data message after receiving the data message from the terminal device, and determine the user and / or application corresponding to the data message according to the characteristic information, and then determine whether the user and / or application has the need to use a dedicated tunnel. The head node can obtain the APN information from the received data message, and then the head node can not only know that the user and / or application indicated by the APN identifier needs to establish a dedicated tunnel based on the APN identifier and the first indication information in the APN information, but also can obtain the tunnel establishment parameters for establishing the dedicated tunnel based on the APN information, and then establish the dedicated tunnel based on the tunnel establishment parameters. Since the transmission of the data message is triggered by the business needs of the user and / or application, that is, the data message carrying the APN information will not be sent when the user and / or application is idle, therefore, triggering the head node to establish a dedicated tunnel according to the data message carrying the APN information can trigger the establishment of the dedicated tunnel when the user and / or application has business needs, thereby realizing dynamic on-demand establishment of the dedicated tunnel. In addition, after establishing the dedicated tunnel, the head node also creates a first timer reflecting the effective time of the dedicated tunnel, and removes the dedicated tunnel when the first timer times out. Since the duration of the first timer can be determined based on the effective time information in the tunnel establishment parameters, the effective time information can reflect the duration requirements of the user and / or application for using the dedicated tunnel. Therefore, the head node maintains the first timer and dismantles the dedicated tunnel when the first timer expires. It can trigger the dismantling of the dedicated tunnel when there is no longer any user and / or business demand, thereby realizing dynamic on-demand dismantling of the dedicated tunnel.

[0323] like Figure 7 FIG. 1 is another flow chart of the tunnel establishment method provided by the present application. Figure 7 The embodiment shown mainly relates to a first device and a third device. The first device may be Figure 1 In the system shown, the network device 1, the third device can be Figure 1 The network device 2 in the system shown. In this embodiment, each of the above devices mainly performs the following steps:

[0324] Step 701: The first device encapsulates APN information in a data message to be sent.

[0325] The data message to be sent may be a data message to be forwarded after being received by the first device from other network devices. Figure 1 The end-side device (e.g., terminal device) or cloud-side device (e.g., cloud server) in the system shown receives a data packet, and the first device needs to forward the data packet to a device on the other side of the network after processing the data packet.

[0326] The APN information includes an APN identifier. For an introduction to the APN identifier, please refer to the relevant introduction in the above step 201, which will not be repeated here.

[0327] Optionally, the first device encapsulates the APN identifier in a programmable space of the data message to be sent. Taking the data message as an IPv6 message as an example, the APN identifier is encapsulated in the programmable space of the IPv6 message. Optionally, the programmable space of the IPv6 message can be a programmable space in an extended message header of IPv6, that is, the APN identifier is encapsulated in the extended message header of IPv6. For example, Figure 4A As shown, an example of the format of the IPv6 extended message header. The IPv6 extended message header includes a hop-by-hop options header (HBH), a destination options header (DOH), a segment routing header (SRH), etc. The APN identifier can be encapsulated in the programmable space provided by the extended message headers such as HBH, DOH and SRH.

[0328] In a possible implementation manner, the first device encapsulates an APN message header in the data message to be sent, such as Figure 4B As shown in Table 1-1, the APN identifier is carried in the APN ID field in the APN header. For more information about how the APN identifier is carried in the APN header, see the previous article. Figure 4B The corresponding descriptions are not repeated here.

[0329] In a possible implementation, the first device determines the user and / or application corresponding to the data message based on the received data message, and then the first device allocates an APN identifier to the data message based on the user and / or application corresponding to the data message, and encapsulates the APN identifier in the data message, and the APN identifier is used to indicate the user and / or application corresponding to the data message. It can be understood that the first device encapsulates the APN identifier in the data message to mark the data message that needs to be forwarded through the dedicated tunnel.

[0330] Exemplarily, the first device can obtain characteristic information of the data message to be sent, can determine the user and / or application corresponding to the data message according to the characteristic information, and can then trigger the encapsulation of the APN identifier in the data message to be sent based on the user and / or application corresponding to the data message. Figure 8 The step 802 in the corresponding embodiment is not described in detail here.

[0331] Step 702: The first device obtains tunnel establishment parameters corresponding to the APN information and used to establish a dedicated tunnel.

[0332] The tunnel establishment parameters include at least one of the effective time information, bandwidth information, service delay information, jitter information and packet loss rate information. For the explanation of the aforementioned various tunnel establishment parameters, please refer to the relevant introduction in the previous step 202, which will not be repeated here.

[0333] The effective time information is used by the first device to maintain a first timer, and the first timer is used to indicate the survival time of the dedicated tunnel. Since the effective time information is added to the tunnel establishment parameters to maintain the first timer to control the survival time of the dedicated tunnel, it is beneficial to trigger the removal of the dedicated tunnel when the user and / or application no longer needs to use the dedicated tunnel, thereby realizing the on-demand removal of the dedicated tunnel.

[0334] In a possible implementation, the first device obtains tunnel establishment parameters corresponding to the APN identifier for establishing a dedicated tunnel. Optionally, the first device configures tunnel establishment parameters suitable for the user and / or application corresponding to the APN identifier. For example, the first device stores at least one set of tunnel establishment parameters, and the first device selects a set of tunnel establishment parameters from the at least one set of stored tunnel establishment parameters based on feature information of the user and / or application.

[0335] Optionally, the first device stores a first correspondence between an APN identifier and a tunnel establishment parameter. The first device obtains a tunnel establishment parameter corresponding to the APN identifier based on the APN identifier assigned to the data message and the first correspondence. For an explanation of the first correspondence, please refer to the corresponding examples in Table 2-1 and Table 2-2 above, which will not be repeated here.

[0336] The first device in the conventional technology can only obtain manually configured tunnel establishment parameters, while the first device in the present application can configure tunnel establishment parameters suitable for the user and / or application corresponding to the APN identifier, thereby improving the flexibility of the first device in establishing a dedicated tunnel.

[0337] Step 703: The first device establishes a dedicated tunnel based on the tunnel establishment parameters.

[0338] Specifically, the first device establishes a dedicated tunnel serving the user and / or application corresponding to the APN identifier between the first device and the third device based on the tunnel establishment parameters.

[0339] First, the first device can obtain the address information of the third device based on the data message. The address information of the third device includes the IP address of the third device and / or the MAC address of the third device. Exemplarily, the first device parses the destination address field in the IP message header of the data message to obtain the IP address of the third device and / or the MAC address of the third device.

[0340] Then, the first device obtains path information based on the address information of the first device, the address information of the third device, and the tunnel establishment parameters, where the path information is used to indicate the transmission path of the data message from the first device to the third device. The address information of the first device includes the IP address of the first device and / or the MAC address of the first device. Exemplarily, the path information can be used to indicate Figure 1 This section describes the network service path information that meets SLA requirements.

[0341] In one implementation, the first device generates path information. Specifically, the first device generates path information based on the address information of the first device, the address information of the third device, and the tunnel establishment parameters. For example, the first device can know the starting point and the end point of the dedicated tunnel based on the address information of the first device and the address information of the third device, and then the first device selects at least one intermediate node to connect the first device as the starting point and the third device as the end point to obtain the transmission path and generate path information. Among them, the path formed by the at least one intermediate node can meet the constraints of various parameters in the tunnel establishment parameters. For example, meet the bandwidth requirement indicated by the bandwidth information, meet the delay requirement indicated by the service delay information, meet the jitter requirement indicated by the jitter information, or meet the packet loss rate requirement indicated by the packet loss rate.

[0342] In another implementation, the controller generates the path information. Specifically, the first device sends the address information of the first device, the address information of the third device, and the tunnel establishment parameter to the controller; then, the controller generates the path information based on the address information of the first device, the address information of the third device, and the tunnel establishment parameter; then, the first device receives the path information and the APN identifier from the controller.

[0343] Compared with the solution of manually configuring the address information of the third device in the prior art, the first device provided by the present application can obtain the address information of the third device based on the data message, which is conducive to improving the efficiency of the first device in obtaining path information, and further to improving the efficiency of the first device in establishing a dedicated tunnel.

[0344] In addition, the first device will also generate first forwarding information based on the path information. The first forwarding information is the forwarding information of the dedicated tunnel. The first device transmits a data message through a dedicated tunnel, which can be understood as the first device forwarding the data message corresponding to the user and / or application based on the first forwarding information, that is, the first device forwards the data message encapsulated with the APN identifier based on the first forwarding information.

[0345] Optionally, the first forwarding information includes an APN identifier and a forwarding path (ie, a forwarding path indicated by the path information). The first device matches a forwarding path for the data message based on the APN identifier encapsulated in the data message and the APN identifier in the first forwarding information, and then forwards the data message to the next hop.

[0346] Optionally, after the first device establishes the dedicated tunnel based on the tunnel establishment parameters, the first device executes step 704. If the first device executes step 704, the first device may further execute step 705.

[0347] Step 704: The first device starts a first timer.

[0348] In this embodiment, step 704 is an optional step.

[0349] Specifically, after the first device establishes the dedicated tunnel based on the tunnel establishment parameters, the first device starts the first timer. It can also be understood that when the first device obtains the path information, the first device starts the first timer. It can also be understood that when the first device generates the first forwarding information, the first device starts the first timer.

[0350] The first timer is used to indicate the survival time of the dedicated tunnel. Optionally, the duration of the first timer is equal to the default duration or the duration indicated by the effective time information. Exemplarily, if the first device can obtain the effective time information, the first device determines the duration of the first timer based on the duration indicated by the effective time information; if the first device does not obtain the effective time information, the first device determines the duration of the first timer based on the default duration. The default duration can be a factory setting of the first device or a manually pre-configured duration, which is not limited here.

[0351] During the operation of the first timer, the first device may transmit the data message carrying the APN identifier (eg, APN ID) through the dedicated tunnel, that is, forward the data message carrying the APN identifier based on the first forwarding information. If the first timer times out, the first device will execute step 704.

[0352] Step 705: The first device deletes the first forwarding information.

[0353] In this embodiment, step 705 is an optional step.

[0354] In a possible implementation, when the first timer times out, the first device deletes the first forwarding information. It can be understood that the first device immediately removes the dedicated tunnel when the first timer times out. It can be understood that the first device immediately stops providing forwarding services for the dedicated tunnel when the first timer times out.

[0355] In another possible implementation, if the first device does not receive the data message of the user and / or application within the first time period after the first timer times out, the first device deletes the first forwarding information. Optionally, the first time period is greater than or equal to the network delay. It can be understood that the first device considers the impact of network delay on data message transmission, tolerates network delay after the first timer times out, and then dismantles the dedicated tunnel, which is conducive to avoiding user data loss and improving the reliability of data transmission.

[0356] Step 706: The first device forwards the data message of the user and / or application based on the second forwarding information.

[0357] In this embodiment, step 706 is an optional step. If the first device still receives the data message of the user and / or application after deleting the first forwarding information or after the first timer times out, the first device executes step 706; if the first device does not receive the data message of the user and / or application after deleting the first forwarding information, the first device does not execute step 706.

[0358] After the first device deletes the first forwarding information or after the first timer times out, if the first device receives a data message of the user and / or application, the first device forwards the data message of the user and / or application based on the second forwarding information. The second forwarding information is different from the first forwarding information. Optionally, the second forwarding information is used to provide a best-effort forwarding service. It can be understood that the second forwarding information is the forwarding information corresponding to the ordinary tunnel.

[0359] After the first forwarding information becomes invalid, the first device may still receive the data message of the user and / or application due to network delay and other reasons. In this case, the first device can forward the data message of the user and / or application based on the second forwarding information, that is, the first device switches the dedicated tunnel to a common tunnel to transmit the data message of the user and / or application. This is conducive to avoiding user data loss and improving the reliability of data message transmission.

[0360] In the present application, the first device can determine the user and / or application corresponding to the data message based on the received data message, encapsulate the APN identifier for the data message based on the user and / or application corresponding to the data message, and trigger the acquisition of tunnel establishment parameters to establish a dedicated tunnel used by the user and / or application. Since the transmission of the data message is triggered by the business needs of the user and / or application, that is, the terminal device will not send a data message when the user and / or application is idle, the first device triggers the first device to establish a dedicated tunnel based on the data message, and can trigger the establishment of a dedicated tunnel when the user and / or application has business needs, thereby realizing dynamic on-demand establishment of a dedicated tunnel. In addition, after establishing the dedicated tunnel, the first device also creates a first timer that reflects the effective time of the dedicated tunnel, and dismantles the dedicated tunnel when the first timer times out. Since the duration of the first timer can be determined based on the effective time information in the tunnel establishment parameters, the effective time information can reflect the duration requirements of the user and / or application for using the dedicated tunnel. Therefore, the first device maintains the first timer and dismantles the dedicated tunnel when the first timer expires. It can trigger the dismantling of the dedicated tunnel when there is no user and / or business demand, thereby realizing dynamic on-demand dismantling of the dedicated tunnel.

[0361] The following further introduces the tunnel establishment method provided by the present application by taking the first device as a network device jointly provided by a network entry device and a head node as an example:

[0362] like Figure 8 As shown, it is another flow chart of the tunnel establishment method provided by the present application. Taking the first device as network device 1 and the third device as network device 2 as an example, network device 1 and network device 2 will perform the following steps:

[0363] Step 801 , terminal device 1 sends a data message to network device 1 ; correspondingly, network device 1 receives a data message from terminal device 1 .

[0364] The data message is a data message generated by the application without APN information. Since the data message is generated when the user using the terminal device 1 has business data transmission, the network device 1 can learn from the data message received from the terminal device 1 that there may be a user who has the need to establish a dedicated tunnel. Then, the network device 1 will analyze the received data message to determine whether the user who sent the data message has the need to establish a dedicated tunnel. Specifically, the network device 1 will execute step 802.

[0365] Step 802: The network device 1 obtains characteristic information of the data message to be sent, and determines the user and / or application corresponding to the data message according to the characteristic information.

[0366] The characteristic information of the data message is used to indicate the user and / or application that sent the data message, that is, the information that can reflect which user or which application the data message comes from is the characteristic information.

[0367] In a possible implementation, the characteristic information of the data message is determined by the network device 1 analyzing one or more received data messages. For example, the network device 1 parses the characteristic information based on the five-tuple information and / or service information in the data message. The five-tuple information includes the source IP address, the destination IP address, the source port number, the destination port number and the protocol number. The service information may be a mapping between dual virtual local area network (VLAN) tags, for example, a mapping between a client-side VLAN (C-VLAN) and a provider-side VLAN (S-VLAN). Exemplarily, the characteristic information may be at least one of a source IP address, a source port number, a differentiated services code point (DSCP) information and a flow label.

[0368] In another possible implementation, the characteristic information of the data message is information received by the network device 1 from a network element such as a network management device. For example, if the network management device can obtain the characteristic information of the data message, the network management device sends the characteristic information of the data message to the network device 1.

[0369] Then, the network device 1 determines the user and / or application corresponding to the data message according to the characteristic information.

[0370] In a possible implementation manner, the network device 1 stores preset characteristic information, where the preset characteristic information is used to indicate users and / or applications that are allowed to use the dedicated tunnel, or users and / or applications that have subscribed to the dedicated tunnel service.

[0371] When the characteristic information of the data message received by the network device 1 is consistent with the preset characteristic information, the network device 1 determines that the user and / or application corresponding to the data message has a demand for establishing a dedicated tunnel, thereby triggering the network device 1 to execute step 803 .

[0372] Step 803: Network device 1 encapsulates the APN identifier in the data message to be sent.

[0373] The data message to be sent is a data message received by network device 1 from terminal device 1. Network device 1 encapsulates APN information in the data message before sending the data message. The APN information includes an APN identifier. Optionally, the APN information also includes tunnel establishment parameters. Optionally, the APN information includes second indication information. Optionally, the APN information is encapsulated in the programmable space of the data message to be sent. For an introduction to the APN information, please refer to step 201 above, which will not be repeated here.

[0374] Step 804 , the network device 1 obtains the tunnel establishment parameters corresponding to the APN identifier and used to establish a dedicated tunnel.

[0375] Step 805 , network device 1 establishes a dedicated tunnel between network device 1 and network device 2 based on the tunnel establishment parameters.

[0376] Step 806: Network device 1 starts a first timer.

[0377] In this embodiment, steps 805 to 806 are similar to steps 702 to 704 described above. Please refer to the relevant descriptions of steps 702 to 704 described above for details, which will not be repeated here.

[0378] Step 807: Network device 1 transmits data packets to network device 2 through a dedicated tunnel.

[0379] Specifically, network device 1 forwards the data message based on the first forwarding information. For example, network device 1 matches the forwarding path for the data message based on the APN identifier in the data message, and then forwards the data message to the next hop (for example, an intermediate node). The next hop can discover and learn the first forwarding information, and also forward the data message based on the first forwarding information, and finally forward the data message to network device 2.

[0380] Step 808, network device 2 sends a data message encapsulated with the APN identifier to terminal device 2; correspondingly, terminal device 2 receives the data message encapsulated with the APN identifier.

[0381] Specifically, after network device 2 receives the data message encapsulated with the APN identifier, network device 2 forwards the data message to terminal device 2.

[0382] Step 809: When the first timer times out, network device 1 removes the dedicated tunnel.

[0383] The network device 1 dismantles the dedicated tunnel, which can be understood as the network device 1 deleting the first forwarding information. For the explanation of the first forwarding information, please refer to the relevant introduction in the above step 705, which will not be repeated here.

[0384] In a possible implementation, when the first timer times out, the network device 1 immediately deletes the first forwarding information, that is, the network device 1 immediately removes the dedicated tunnel when the first timer times out.

[0385] In another possible implementation, within the first time period after the first timer times out, if the network device 1 does not receive the data message of the user and / or application (i.e., the data message of the user and / or application corresponding to the APN identifier), the network device 1 deletes the first forwarding information. Optionally, the first time period is greater than or equal to the network delay. It can be understood that the network device 1 considers the impact of the network delay on the data message transmission, tolerates the network delay after the first timer times out, and then dismantles the dedicated tunnel, which is conducive to improving the reliability of data transmission.

[0386] In another possible implementation, when the first timer times out, the network device 1 starts the second timer. If the network device 1 does not receive the data message of the user and / or application before the second timer times out, the head node deletes the first forwarding information when the second timer times out. Optionally, the duration of the second timer is greater than or equal to the network delay. It can be understood that the network device 1 takes into account the impact of network delay on data message transmission, tolerates network delay after the first timer times out, and then dismantles the dedicated tunnel, which is conducive to improving the reliability of data transmission.

[0387] Step 810: Network device 1 transmits data packets through a common tunnel.

[0388] In this embodiment, step 810 is an optional step.

[0389] If network device 1 still receives data packets from the user and / or application after dismantling the dedicated tunnel, network device 1 executes step 810; if network device 1 does not receive data packets from the user and / or application after dismantling the dedicated tunnel, network device 1 does not execute step 810.

[0390] After the network device 1 removes the dedicated tunnel, if the network device 1 receives the data message of the user and / or application, the network device 1 transmits the data message of the user and / or application through the common tunnel. It can be understood that the network device 1 forwards the data message of the user and / or application based on the second forwarding information. For the explanation of the second forwarding information, please refer to the relevant introduction in the previous step 706, which will not be repeated here.

[0391] After the first forwarding information becomes invalid, the network device 1 may still receive data packets carrying the APN identifier due to network delays and other reasons. In this case, the network device 1 can forward the data packets of the user and / or application based on the second forwarding information, that is, the network device 1 switches the dedicated tunnel to a common tunnel to transmit the data packets of the user and / or application. This is conducive to avoiding data loss and improving the reliability of data packet transmission.

[0392] In this implementation, the network device 1 can determine the user and / or application corresponding to the data message based on the received data message, encapsulate the APN identifier for the data message based on the user and / or application corresponding to the data message, and trigger the acquisition of tunnel establishment parameters to establish a dedicated tunnel used by the user and / or application. Since the transmission of the data message is triggered by the business needs of the user and / or application, that is, the terminal device will not send a data message when the user and / or application is idle, the network device 1 triggers the network device 1 to establish a dedicated tunnel based on the data message, and can trigger the establishment of a dedicated tunnel when the user and / or application has business needs, thereby realizing dynamic on-demand establishment of a dedicated tunnel. In addition, after establishing the dedicated tunnel, the network device 1 also creates a first timer that reflects the effective time of the dedicated tunnel, and dismantles the dedicated tunnel when the first timer times out. Since the duration of the first timer can be determined based on the effective time information in the tunnel establishment parameters, the effective time information can reflect the duration requirements of the user and / or application for using the dedicated tunnel. Therefore, the network device 1 maintains the first timer and dismantles the dedicated tunnel when the first timer expires. It can trigger the dismantling of the dedicated tunnel when there is no user and / or business demand, thereby realizing dynamic on-demand dismantling of the dedicated tunnel.

[0393] In addition, if Fig. 9 The present application also provides a device 90, Fig. 9 The schematic diagram of the structure of the device 90 provided in this application. The device 90 may be a switch, a router, a terminal device, a server, or other device that supports the APN6 function. When the device 90 is used to implement the aforementioned Figure 2 , Figure 3 , Figure 5 , Figure 6 , Figure 7 or Figure 8 When the function of the first device (head node or network device 1) in the corresponding method embodiment is implemented, the device 90 may be a network device such as a switch or a router. Figure 3 or Figure 5 When the function of the second device in the corresponding method embodiment is used, the device 90 may be a terminal device such as a terminal device or a cloud device such as a cloud service. Figure 3 or Figure 6When the function of the second device (or network entry device) in the corresponding method embodiment is performed, the device 90 may be a network device such as a switch or a router.

[0394] like Fig. 9 As shown, the device 90 may include a processor 910, a memory 920, and a transceiver 930. The processor 910 is coupled to the memory 920, and the processor 910 is coupled to the transceiver 930.

[0395] Among them, the aforementioned transceiver 930 can also be referred to as a transceiver unit, a transceiver, a transceiver device, etc. Optionally, the device used to implement the receiving function in the transceiver unit can be regarded as a receiving unit, and the device used to implement the sending function in the transceiver unit can be regarded as a sending unit, that is, the transceiver unit includes a receiving unit and a sending unit, and the receiving unit can also be referred to as a receiver, an input port, a receiving circuit, etc., and the sending unit can be referred to as a transmitter, a transmitter, or a transmitting circuit, etc. In the present application, the transceiver 930 can send and receive data packets encapsulated with APN information. For example, when the device 90 executes the method of the second device, the transceiver 930 can send data packets encapsulated with APN information. For example, when the device 90 executes the method of the first device, the transceiver 930 can receive data packets encapsulated with APN information. In addition, after the dedicated tunnel is established, the transceiver 930 can send and receive data packets encapsulated with APN identifiers (for example, data packets encapsulated with only APN identifiers). For example, when the device 90 executes the method of the second device, the transceiver 930 can send a data message encapsulated with an APN identifier. For example, when the device 90 executes the method of the first device, the transceiver 930 can receive a data message encapsulated with an APN identifier, and forward the data message encapsulated with the APN identifier based on the first forwarding information or the second forwarding information. For details, please refer to the relevant introduction in the aforementioned embodiment.

[0396] The processor 910 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. The processor 910 may refer to one processor or may include multiple processors, which is not specifically limited here.

[0397] In addition, the aforementioned memory 920 is mainly used to store software programs and data. The memory 920 may exist independently and be connected to the processor 910. Optionally, the memory 920 may be integrated with the processor 910, for example, integrated into one or more chips. Among them, the memory 920 can store program codes for executing the technical solutions of the embodiments of the present application, and the execution is controlled by the processor 910, and the various types of computer program codes executed can also be regarded as drivers of the processor 910. The memory 920 may include volatile memory (volatile memory), such as random-access memory (random-access memory, RAM); the memory may also include non-volatile memory (non-volatile memory), such as read-only memory (read-only memory, ROM), flash memory (flash memory), hard disk drive (hard disk drive, HDD) or solid-state drive (solid-state drive, SSD); the memory 920 may also include a combination of the above-mentioned types of memory. The memory 920 may refer to one memory or may include multiple memories. Exemplarily, when the device 90 executes the method of the first device, the memory 920 is used to store tunnel establishment parameters such as effective time information, bandwidth information, the second indication information, the first correspondence (i.e., the first correspondence between the second indication information and the tunnel establishment parameters), and other parameters that may be used in the process of establishing a dedicated tunnel. When the device 90 executes the method of the second device, the memory 920 is used to store demand information for using a dedicated tunnel, or to store characteristic information of a data message.

[0398] In one implementation, the memory 920 stores computer-readable instructions, which include multiple software modules, such as a transceiver module 921 and a processing module 922. After executing each software module, the processor 910 can perform corresponding operations according to the instructions of each software module. In this embodiment, the operation performed by a software module actually refers to the operation performed by the processor 910 according to the instructions of the software module.

[0399] Exemplarily, when the device 90 is used to implement the function of the first device, the transceiver module 921 in the device 90 is used to receive a data message encapsulated with application-aware network APN information, the APN information includes an APN identifier and first indication information, the APN identifier is used to indicate the user and / or application corresponding to the data message, and the first indication information is used to instruct the first device to establish a dedicated tunnel serving the user and / or application. The processing module 922 in the device 90 is used to obtain tunnel establishment parameters for establishing a dedicated tunnel based on the APN information; and, establish a dedicated tunnel based on the tunnel establishment parameters. Alternatively, the processing module 922 in the device 90 is used to generate a data message encapsulated with application-aware network APN information, the APN information includes an APN identifier, and the APN identifier is used to indicate the user and / or application corresponding to the data message. The processing module 922 in the device 90 is also used to obtain tunnel establishment parameters for establishing a dedicated tunnel based on the APN information; and, establish a dedicated tunnel based on the tunnel establishment parameters.

[0400] Optionally, the first indication information is carried in a tag field in the APN information; or, the first indication information is carried in an APN intention requirement field in the APN information.

[0401] In a possible implementation, the APN information further includes tunnel establishment parameters, which are encapsulated in a network performance requirement parameter field in the APN information. The processing module 922 is specifically configured to obtain the tunnel establishment parameters from the network performance requirement parameter field in the APN information.

[0402] In a possible implementation, the APN information includes second indication information, the second indication information is an index of a tunnel establishment parameter; the first device stores a first correspondence between the second indication information and the tunnel establishment parameter. The processing module 922 is specifically configured to obtain a tunnel establishment parameter corresponding to the second indication information based on the second indication information and the first correspondence. Optionally, the second indication information is an APN identifier; or, the second indication information is encapsulated in an APN intent requirement field in the APN information.

[0403] In a possible implementation, the processing module 922 is specifically configured to receive control plane signaling from the second device, where the control plane signaling carries an APN identifier and a tunnel establishment parameter.

[0404] Optionally, the tunnel establishment parameters include at least one of the following:

[0405] Effective time information, which is used to indicate the effective time for the dedicated tunnel to serve the user and / or application;

[0406] Bandwidth information, where the bandwidth information is used to indicate the size of bandwidth resources occupied by the dedicated tunnel;

[0407] Service delay information, which is used to indicate the delay requirement of the service corresponding to the data message to be transmitted;

[0408] Jitter information: service delay information is used to indicate the jitter requirement of the service corresponding to the data message to be transmitted;

[0409] The packet loss rate information and service delay information are used to indicate the packet loss rate requirement of the service corresponding to the data message to be transmitted.

[0410] In a possible implementation, the processing module 922 is specifically configured to:

[0411] Acquire address information of a third device based on the data packet; and acquire path information based on the address information of the first device, the address information of the third device and tunnel establishment parameters, wherein the path information is used to indicate a transmission path for transmitting the data packet from the first device to the third device.

[0412] In a possible implementation, the processing module 922 is specifically used to start a first timer, where the first timer is used to indicate the survival time of the dedicated tunnel, and the duration of the first timer is equal to the default duration or the duration indicated by the effective time information.

[0413] In a possible implementation manner, the processing module 922 is further configured to delete the first forwarding information when the first timer times out, where the first forwarding information is the forwarding information of the dedicated tunnel; or,

[0414] The processing module 922 is further configured to delete the first forwarding information within a first time period after the first timer times out and when no data message carrying the APN identifier is received.

[0415] In a possible implementation, the processing module 922 is further configured to forward the data message carrying the APN identifier based on second forwarding information when the first timer times out and a data message carrying the APN identifier is received, where the second forwarding information is different from the first forwarding information.

[0416] In a possible implementation, the processing module 922 is further configured to send third indication information to the second device, where the third indication information is used to indicate that the dedicated tunnel has been successfully established.

[0417] In a possible implementation, the processing module 922 is specifically configured to obtain characteristic information of a data message to be sent, determine APN information corresponding to the data message according to the characteristic information; and encapsulate the APN information in the data message to be sent.

[0418] The rest can be referenced Figure 2 , Figure 3 , Figure 5 , Figure 6 , Figure 7 or Figure 8 The methods and beneficial effects related to the first device (head node or network device 1) in the corresponding embodiment will not be repeated here.

[0419] Exemplarily, when the device 90 is used to implement the function of the second device, the processing module 922 in the device 90 is used to encapsulate the APN information in the data message to be sent, the APN information includes the APN identifier and the first indication information, the APN identifier is used to indicate the user and / or application corresponding to the data message, and the first indication information is used to indicate the establishment of a dedicated tunnel serving the user and / or application. The transceiver module 921 in the device 90 is used to send the data message encapsulated with the APN information.

[0420] In a possible implementation, the processing module 922 is further configured to obtain demand information for using a dedicated tunnel.

[0421] In a possible implementation, the processing module 922 is further configured to obtain characteristic information of the data message to be sent, and determine the user and / or application corresponding to the data message according to the characteristic information. Optionally, the characteristic information includes quintuple information and / or service information of the data message.

[0422] In a possible implementation, the APN information further includes a tunnel establishment parameter, which is encapsulated in a network performance requirement parameter field in the APN information; or, the APN information includes second indication information, which is an index of the tunnel establishment parameter.

[0423] Optionally, the tunnel establishment parameters include at least one of the following:

[0424] Effective time information, which is used to indicate the effective time for the dedicated tunnel to serve the user and / or application;

[0425] Bandwidth information, where the bandwidth information is used to indicate the size of bandwidth resources occupied by the dedicated tunnel;

[0426] Service delay information, which is used to indicate the delay requirement of the service corresponding to the data message to be transmitted;

[0427] Jitter information: service delay information is used to indicate the jitter requirement of the service corresponding to the data message to be transmitted;

[0428] The packet loss rate information and service delay information are used to indicate the packet loss rate requirement of the service corresponding to the data message to be transmitted.

[0429] In a possible implementation manner, the second indication information is an APN identifier; or, the second indication information is encapsulated in an APN intention requirement field in the APN information.

[0430] In a possible implementation, the transceiver module 921 is further configured to send a control plane signaling to the first device, where the control plane signaling carries an APN identifier and a tunnel establishment parameter.

[0431] In a possible implementation, the transceiver module 921 is also used to receive a third indication information from the first device, and the third indication information is used to indicate that the dedicated tunnel has been successfully established; the processing module 922 is also used to generate a data packet that does not carry the first indication information based on the third indication information, and the transceiver module 921 is also used to send a data packet that does not carry the first indication information.

[0432] The rest can be referenced Figure 3 , Figure 5 or Figure 6 The methods and beneficial effects related to the second device (or terminal device, or network entry device) in the corresponding embodiments are not repeated here.

[0433] It should be understood that when the device 90 executes the method of the first device, the computer-readable instructions stored in the memory 920 may also be divided into other multiple software modules. Fig.10As shown, the software modules in the first device include forwarding plane modules such as an APN message header parsing module, a dynamic tunnel management module, and a diversion module; the software modules in the first device also include control plane modules such as a tunnel establishment maintenance module and a communication maintenance module. For example, the APN message header parsing module is used to parse the APN information carried in the received data message, and then obtain the tunnel establishment parameters based on the APN information, and provide the tunnel establishment parameters to the dynamic tunnel management module. The dynamic tunnel management module is used to request the control plane to establish a tunnel according to the tunnel establishment parameters, that is, to request the tunnel establishment maintenance module in the control plane to establish a dedicated tunnel. The tunnel establishment maintenance module can generate path information based on the tunnel establishment parameters and send the path information to the dynamic tunnel management module. In addition, the tunnel establishment maintenance module can also request the network controller to establish a tunnel, so that the network controller returns the path information and the APN identifier, and then the tunnel establishment maintenance module returns the path information to the dynamic tunnel management module. Then, the dynamic tunnel management module sends the first forwarding information to the diversion module, so that the diversion module forwards the data message carrying the APN identifier based on the first forwarding information, that is, forwards the data message carrying the APN identifier through the dedicated tunnel. Optionally, after receiving the path information or generating the first forwarding information based on the path information, the dynamic tunnel management module sends a third indication message to the second device to notify that the dedicated tunnel is successfully established, or the dynamic tunnel management module sends the third indication message to the communication maintenance module of the control plane, so that the communication maintenance module sends the third indication message to the second device. In this embodiment, the operation performed by a software module actually refers to the operation performed by the processor 910 according to the instruction of the software module. Please refer to the above text for details. Figure 3 , Figure 5 or Figure 6 The relevant descriptions and beneficial effects in the corresponding embodiments are not repeated here.

[0434] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.

[0435] In addition, if Fig.11 As shown, the present application also provides a device 110, Fig.11 is a schematic diagram of the structure of the device 110. Figure 2 , Figure 3 , Figure 5 , Figure 6 , Figure 7 or Figure 8 The first device or the second device in the corresponding method embodiment can be based on the Fig.11 The structure of the device 110 shown. Optionally, the device 110 may be a network device such as a switch or a router that supports the APN6 technology.

[0436] like Fig.11 As shown, the device 110 includes: a main control board 1110 and an interface board 1120 .

[0437] Among them, the main control board is also called the main processing unit (MPU) or route processing card. The main control board 1110 is used to control and manage the various components in the device 110, including route calculation, device management, device maintenance, and protocol processing functions. The main control board 1110 includes: a central processing unit 1111 and a memory 1112. In addition, the memory 1112 stores computer-readable instructions, and the computer-readable instructions include multiple software modules, such as a transceiver module and a processing module. It can be understood that the processing module is configured on the main control board 1110, and the forwarding module is configured on the interface board 1120. In addition, the memory 1112 is the same as the above. Fig. 9 The memory 920 in the corresponding embodiment is similar, and please refer to the above description of the memory 920 for details.

[0438] The interface board 1120 is also called a line processing unit (LPU), a line card or a service board. The interface board 1120 is used to provide various service interfaces and implement data packet forwarding. Service interfaces include but are not limited to Ethernet interfaces, POS (Packet over SONET / SDH) interfaces, etc., and Ethernet interfaces are, for example, flexible Ethernet clients (FlexEClients). The interface board 1120 includes: a central processing unit 1121, a network processor 1122, a forwarding table entry memory 1123 and a physical interface card (PIC) 1124.

[0439] The central processing unit 1121 on the interface board 1120 is used to control and manage the interface board 1120 and communicate with the central processing unit 1111 on the main control board 1110 .

[0440] The network processor 1122 is used to implement the forwarding processing of the message. The network processor 1122 can be in the form of a forwarding chip. The forwarding chip can be a network processor (NP). In some embodiments, the forwarding chip can be implemented by an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA). Specifically, the network processor 1122 is used to forward the received message based on the forwarding table stored in the forwarding table entry memory 1123. If the destination address of the message is the address of the device 110, the message is sent to the CPU (such as the central processor 1121) for processing; if the destination address of the message is not the address of the device 110, the next hop and the output interface corresponding to the destination address are found from the forwarding table according to the destination address, and the message is forwarded to the output interface corresponding to the destination address. Among them, the processing of the uplink message may include: processing of the message input interface, forwarding table search; the processing of the downlink message may include: forwarding table search, etc. In some embodiments, the central processor can also perform the function of the forwarding chip, such as implementing software forwarding based on a general-purpose CPU, so that the forwarding chip is not required in the interface board.

[0441] The physical interface card 1124 is used to implement the physical layer docking function, whereby the original traffic enters the interface board 1120, and the processed message is sent out from the physical interface card 1124. The physical interface card 1124, also called a daughter card, can be installed on the interface board 1120, and is responsible for converting the photoelectric signal into a message and forwarding the message to the network processor 1122 for processing after performing a validity check. In some embodiments, the central processor can also perform the functions of the network processor 1122, such as implementing software forwarding based on a general-purpose CPU, so that the network processor 1122 is not required in the physical interface card 1124.

[0442] Optionally, the device 110 includes a plurality of interface boards, for example, the device 110 further includes an interface board 1130, and the interface board 1130 includes: a central processing unit 1131, a network processor 1132, a forwarding table entry memory 1133, and a physical interface card 1134. The functions and implementation methods of the components in the interface board 1130 are the same or similar to those of the interface board 1120, and are not described in detail here.

[0443] Optionally, the device 110 further includes a switching fabric board 1140. The switching fabric board 1140 may also be referred to as a switch fabric unit (SFU). When the device has multiple interface boards (e.g., the interface board 1120 and the interface board 1130), the switching fabric board 1140 is used to complete data exchange between the interface boards. For example, the interface board 1120 and the interface board 1130 may communicate through the switching fabric board 1140.

[0444] The main control board 1110 is coupled to the interface board 1120. For example, the main control board 1110, the interface board 1120, the interface board 1130, and the switching network board 1140 are connected to the system backplane through a system bus to achieve intercommunication. In a possible implementation, an inter-process communication (IPC) channel is established between the main control board 1110 and the interface board 1120, and the main control board 1110 and the interface board 1120 communicate through the IPC channel.

[0445] Logically, the device 110 includes a control plane and a forwarding plane. The control plane includes a main control board 1110 and a central processor 1121. The forwarding plane includes various components that perform forwarding, such as a forwarding table entry memory 1123, a physical interface card 1124, and a network processor 1122. The control plane performs functions such as a router, generates a forwarding table, processes signaling and protocol messages, and configures and maintains the status of the device. The control plane sends the generated forwarding table to the forwarding plane. On the forwarding plane, the network processor 1122 forwards the message received by the physical interface card 1124 based on the forwarding table sent by the control plane. The forwarding table sent by the control plane can be stored in the forwarding table entry memory 1123. In some embodiments, the control plane and the forwarding plane can be completely separated and not on the same device.

[0446] It is worth noting that there may be one or more main control boards, and when there are multiple boards, they may include a primary main control board and a backup main control board. There may be one or more interface boards. The stronger the data processing capability of the network device, the more interface boards are provided. There may also be one or more physical interface cards on the interface board. There may be no switching network board, or there may be one or more switching network boards. When there are multiple switching network boards, they can jointly realize load sharing and redundant backup. In a centralized forwarding architecture, network devices may not need switching network boards, and the interface board is responsible for processing the service data of the entire system. In a distributed forwarding architecture, network devices can have at least one switching network board, which realizes data exchange between multiple interface boards and provides large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of network devices with distributed architecture are greater than those of devices with centralized architecture. Optionally, the network device may have only one board, that is, no switching board, and the functions of the interface board and the main control board are integrated on the board. In this case, the central processor on the interface board and the central processor on the main control board can be combined into one central processor on the board to perform the functions of the two. This type of device has low data exchange and processing capabilities (for example, low-end switches or routers and other network devices). The specific architecture to be adopted depends on the specific networking deployment scenario, and no limitation is made here.

[0447] In addition, if Fig.12 As shown, the present application also provides a communication system 120. The communication system 120 includes a first device 1201. Optionally, the communication system 120 also includes a second device 1202. The first device 1201 is used to perform the above Figure 2 , Figure 3 , Figure 5 , Figure 6 , Figure 7 or Figure 8 The second device 1202 is used to perform the method of the first device in the corresponding method embodiment. Figure 3 , Figure 5 or Figure 6 The method of the second device in the corresponding method embodiment.

[0448] In one implementation, the communication system 120 includes a first device 1201 and a second device 1202. The first device 1202 may be Figure 1 In the head node of the system shown, the second device 1202 may be Figure 1 The end-side device (e.g., terminal device), cloud-side device (e.g., cloud server) or network entry device (i.e., network edge device) in the system shown. Please refer to the previous article for details. Figure 3 , Figure 5 or Figure 6 The relevant introduction in the corresponding method embodiment will not be repeated here.

[0449] In another embodiment, the communication system 120 includes only the first device 1201 but not the second device 1202. The first device 1201 may be Figure 1 The network device 1 in the system shown, that is, the first device 1201 has the functions of a head node and a network entry device 1. For details, please refer to the previous Figure 7 or Figure 8 The relevant introduction in the corresponding method embodiment will not be repeated here.

[0450] In addition, the present application provides a computer program product, which includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. For example, the aforementioned Figure 2 , Figure 3 , Figure 5 , Figure 6 , Figure 7 or Figure 8 For example, the method described above is implemented as follows: Figure 3 , Figure 5 or Figure 6 The method is related to the second device (terminal device or network access device) in the computer. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (for example, coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (for example, infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be stored by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a digital versatile disc (digital versatile disc, DVD)), or a semiconductor medium (for example, a solid state disk (solid state disk, SSD)), etc.

[0451] In addition, the present application also provides a computer-readable storage medium, which stores a computer program, which is executed by a processor to implement the above Figure 2 , Figure 3 , Figure 5 , Figure 6 , Figure 7or Figure 8 The first device-related method in .

[0452] In addition, the present application also provides a computer-readable storage medium, which stores a computer program, which is executed by a processor to implement the above Figure 3 , Figure 5 or Figure 6 A second device-related method in.

[0453] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0454] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0455] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A tunnel establishment method, characterized in that: include: The first device obtains a data message encapsulated with application-aware network APN information, where the APN information includes an APN identifier, and the APN identifier is used to indicate a user and / or application corresponding to the data message; The first device acquires, based on the APN information, a tunnel establishment parameter for establishing the dedicated tunnel; The first device establishes the dedicated tunnel based on the tunnel establishment parameters.

2. The method according to claim 1, characterized in that The APN information also includes the tunnel establishment parameter, and the tunnel establishment parameter is encapsulated in the network performance requirement parameter field in the APN information; The first device acquires, based on the APN information, a tunnel establishment parameter for establishing the dedicated tunnel, including: The first device obtains the tunnel establishment parameter from the network performance requirement parameter field in the APN information.

3. The method according to claim 1, characterized in that: The APN information includes second indication information, where the second indication information is an index of the tunnel establishment parameter; the first device stores a first correspondence between the second indication information and the tunnel establishment parameter; The first device acquires, based on the APN information, a tunnel establishment parameter for establishing the dedicated tunnel, including: The first device obtains a tunnel establishment parameter corresponding to the second indication information based on the second indication information and the first corresponding relationship.

4. The method according to claim 3, characterized in that: The second indication information is the APN identifier; or, the second indication information is encapsulated in an APN intention requirement field in the APN information.

5. The method according to any one of claims 1 to 4, characterized in that: The tunnel establishment parameters include at least one of the following: Effective time information, where the effective time information is used to indicate the effective time length of time that the dedicated tunnel serves the user and / or the application; Bandwidth information, where the bandwidth information is used to indicate the size of bandwidth resources occupied by the dedicated tunnel; Service delay information, where the service delay information is used to indicate the delay requirement of the service corresponding to the data message to be transmitted; Jitter information, wherein the service delay information is used to indicate the jitter requirement of the service corresponding to the data message to be transmitted; Packet loss rate information, the service delay information is used to indicate the packet loss rate requirement of the service corresponding to the data message to be transmitted.

6. The method according to any one of claims 1 to 5, characterized in that The first device establishes the dedicated tunnel based on the tunnel establishment parameter, including: The first device obtains address information of a third device based on the data message; The first device acquires path information based on the address information of the first device, the address information of the third device and the tunnel establishment parameters, where the path information is used to indicate a transmission path for transmitting a data message from the first device to the third device.

7. The method according to any one of claims 1 to 6, characterized in that After the first device establishes the dedicated tunnel based on the tunnel establishment parameter, the method further includes: The first device starts a first timer, where the first timer is used to indicate the survival time of the dedicated tunnel, and the duration of the first timer is equal to a default duration or a duration indicated by the effective time information.

8. The method according to claim 7, characterized in that The method further comprises: When the first timer times out, the first device deletes first forwarding information, where the first forwarding information is forwarding information of the dedicated tunnel; or, If the first device does not receive a data message from the user and / or application within a first time period after the first timer times out, the first device deletes the first forwarding information.

9. The method according to claim 8, characterized in that The method further comprises: After the first timer times out, if the first device receives a data message from the user and / or application, the first device forwards the data message from the user and / or application based on second forwarding information, where the second forwarding information is different from the first forwarding information.

10. The method according to any one of claims 1 to 9, characterized in that The first device obtains a data message encapsulating application-aware network APN information, including: The first device receives the data packet encapsulated with the APN information from the second device, where the APN information also includes first indication information, and the first indication information is used to instruct the first device to establish a dedicated tunnel serving the user and / or application.

11. The method according to claim 10, characterized in that The method further comprises: The first device receives control plane signaling from the second device, where the control plane signaling carries the APN identifier and the tunnel establishment parameter.

12. The method according to claim 10 or 11, characterized in that: After the first device establishes the dedicated tunnel based on the tunnel establishment parameter, the method further includes: The first device sends third indication information to the second device, where the third indication information is used to indicate that the dedicated tunnel has been successfully established.

13. The method according to any one of claims 1 to 9, characterized in that The first device obtains a data message encapsulating application-aware network APN information, including: The first device generates the data message encapsulating the APN information.

14. The method according to claim 13, characterized in that The first device generates the data message encapsulating the APN information, including: The first device obtains characteristic information of a data message to be sent, and determines APN information corresponding to the data message according to the characteristic information; The first device encapsulates the APN information in the data message to be sent.

15. The method according to claim 10, characterized in that The first indication information is carried in a tag field in the APN information; or, the first indication information is carried in an APN intention requirement field in the APN information.

16. The method according to any one of claims 1 to 15, characterized in that The APN information is encapsulated in an extended message header of Internet Protocol version 6 IPv6.

17. A tunnel establishment method, characterized in that: include: The second device encapsulates APN information in a data message to be sent, where the APN information includes an APN identifier and first indication information, where the APN identifier is used to indicate a user and / or application corresponding to the data message, and the first indication information is used to indicate establishment of a dedicated tunnel serving the user and / or application; The second device sends a data message encapsulating the APN information.

18. The method according to claim 17, characterized in that Before the second device encapsulates the APN information in the data message to be sent, the method further includes: The second device obtains fourth indication information input by a user, where the fourth indication information is used to indicate a need to use the dedicated tunnel.

19. The method according to claim 17, characterized in that Before the second device encapsulates the APN information in the data message to be sent, the method further includes: The second device obtains characteristic information of the data message to be sent, and determines the user and / or application corresponding to the data message according to the characteristic information.

20. The method according to claim 19, characterized in that The characteristic information includes quintuple information and / or service information of the data message.

21. The method according to any one of claims 17 to 20, characterized in that The APN information also includes tunnel establishment parameters, which are encapsulated in a network performance requirement parameter field in the APN information; or, the APN information includes second indication information, which is an index of the tunnel establishment parameters.

22. The method according to claim 21, characterized in that The second indication information is the APN identifier; or, the second indication information is encapsulated in an APN intention requirement field in the APN information.

23. The method according to claim 21 or 22, characterized in that The tunnel establishment parameters include at least one of the following: Effective time information, the effective time information is used to indicate the effective time length of time that the dedicated tunnel serves the user and / or application; Bandwidth information, where the bandwidth information is used to indicate the size of bandwidth resources occupied by the dedicated tunnel; Service delay information, where the service delay information is used to indicate the delay requirement of the service corresponding to the data message to be transmitted; Jitter information, wherein the service delay information is used to indicate the jitter requirement of the service corresponding to the data message to be transmitted; Packet loss rate information, the service delay information is used to indicate the packet loss rate requirement of the service corresponding to the data message to be transmitted.

24. The method according to any one of claims 17 to 20, characterized in that The method further comprises: The second device sends a control plane signaling to the first device, where the control plane signaling carries the APN identifier and the tunnel establishment parameter.

25. The method according to any one of claims 17 to 24, characterized in that The method further comprises: The second device receives third indication information from the first device, where the third indication information is used to indicate that the dedicated tunnel has been successfully established; Based on the third indication information, the second device sends a data message of the user and / or application that does not carry the first indication information.

26. The method according to any one of claims 17 to 25, characterized in that The second device is any one of a terminal device, a forwarding device or a server.

27. A first device, characterized in that: including a processor and a memory; wherein the memory stores a computer program; The processor calls the computer program to cause the first device to perform the method according to any one of claims 1 to 16.

28. A second device, characterized in that: including a processor and a memory; wherein the memory stores a computer program; The processor calls the computer program to cause the second device to perform the method according to any one of claims 17 to 26.

29. A communication system, characterized in that: include: A first device for executing the method according to any one of claims 1 to 16, and a second device according to any one of claims 17 to 26.

30. A computer-readable storage medium, characterized in that: Instructions are stored, and when the instructions are executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 26.

31. A computer program product comprising instructions, characterized in that When the method is executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 26.