CN114650197A - Communication method, communication device, user plane network element and storage medium - Google Patents
Communication method, communication device, user plane network element and storage medium Download PDFInfo
- Publication number
- CN114650197A CN114650197A CN202210332846.XA CN202210332846A CN114650197A CN 114650197 A CN114650197 A CN 114650197A CN 202210332846 A CN202210332846 A CN 202210332846A CN 114650197 A CN114650197 A CN 114650197A
- Authority
- CN
- China
- Prior art keywords
- target
- tunnel
- format
- service message
- user plane
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000004891 communication Methods 0.000 title claims abstract description 53
- 238000000034 method Methods 0.000 title claims abstract description 47
- 238000004806 packaging method and process Methods 0.000 claims abstract description 13
- 238000005538 encapsulation Methods 0.000 claims description 19
- 230000005540 biological transmission Effects 0.000 claims description 9
- 238000004590 computer program Methods 0.000 claims description 2
- 230000003993 interaction Effects 0.000 description 8
- 230000008569 process Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 2
- 238000010276 construction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000005641 tunneling Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/54—Organization of routing tables
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the application discloses a communication method, a communication device, a user plane network element and a storage medium, wherein the user plane network element receives a first service message in a first format, which is sent to a target data network by a terminal device; determining whether a target tunnel which is used for connecting a user plane network element and a target network server and is used for transmitting a first service message exists; if the first service message exists, packaging the first service message into a first service message in a second format which can be transmitted in the target tunnel; and sending the first service message in the second format through the target tunnel so that the target network server forwards the first service message in the second format to the target data network.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a communication method, an apparatus, a user plane network element, and a storage medium.
Background
In an industrial internet scenario, a tunnel is generally required to be constructed by means of a tunneling protocol for network security, and then data transmission is performed through the tunnel. The establishment of the tunnel requires a specific client and a specific Server to perform negotiation, for example, the establishment of the tunnel based on the L2TP protocol requires a client of LAC (L2TP Access Concentrator ) and a Server of LNC (L2TP Network Server, L2TP Network Server) to perform negotiation, so as to establish an L2TP tunnel between the LAC client and the LNC Server, based on which, in the process of using tunnel communication, service data must be sent to the LNC Server through the LAC client. Obviously, the tunnel communication mode needs special LAC equipment, so that the construction of the network topology of the industrial internet is more complicated, and the cost of the industrial internet is higher.
Disclosure of Invention
The application provides a communication method, a communication device, a user plane network element and a storage medium, which comprise the following technical schemes:
a communication method for a user plane network element, the method comprising:
receiving a first service message in a first format sent to a target data network by a terminal device;
determining whether a target tunnel connecting the user plane network element and a target network server exists, wherein the target tunnel can transmit the first service message;
if so, packaging the first service message into a first service message in a second format capable of being transmitted in the target tunnel;
and sending the first service message in the second format through the target tunnel so that the target network server forwards the first service message in the second format to the target data network.
Preferably, the determining whether a target tunnel connecting the user plane network element and the target network server exists includes:
searching whether a fast forwarding table corresponding to the first service message exists or not;
and under the condition of finding the quick forwarding table, if target tunnel information is recorded in the quick forwarding table, determining that the target tunnel exists.
In the method, preferably, the target tunnel is constructed according to a tunnel negotiation parameter pre-configured in the user plane network element.
Preferably, the method for constructing the target tunnel according to the tunnel negotiation parameter includes:
sending a negotiation message in a second format to the target network server according to the address of the target network server in the negotiation parameters, wherein the negotiation message carries the negotiation parameters;
receiving a negotiation result message returned by the network server after the target tunnel is constructed based on the negotiation parameters, wherein the negotiation result message carries information of the target tunnel;
storing information of the target tunnel for communication with the target network server through the target tunnel.
The above method, preferably, further comprises:
and after the target tunnel is constructed, configuring the corresponding relation between the target tunnel and the target data network.
The above method, preferably, further comprises:
if the fast forwarding table corresponding to the first service message in the first format is not found, determining a target tunnel corresponding to a target data network according to a session information table, so as to convert the first service message in the first format into a first service message in a second format and forward the first service message in the second format to the target data network through the target tunnel;
and establishing a fast forwarding table based on the process of determining a target tunnel corresponding to a target data network according to a session information table, wherein the fast forwarding table records a session identifier used in the transmission process of the first service message in the first format and information of the target tunnel corresponding to the target data network.
The above method, preferably, further comprises:
acquiring a five-tuple in the first service message, and establishing a corresponding relation between the five-tuple and the fast forwarding table;
receiving a second service message in a first format sent to the target data network by the terminal equipment, and obtaining a quintuple of the second service message;
if the quintuple of the second service message has a corresponding relation with the fast forwarding table, packaging the second service message into a second service message in a second format which can be transmitted in the target tunnel according to the information of the target tunnel in the fast forwarding table;
and sending the second service message in the second format through the target tunnel so that the target network server forwards the second service message in the second format to the target data network.
A communications apparatus for a user plane network element, the apparatus comprising:
the receiving module is used for receiving a first service message in a first format, which is sent to a target data network by a terminal device;
a determining module, configured to determine whether a target tunnel connecting the user plane network element and a target network server exists, where the target tunnel is used to transmit the first service packet;
the encapsulation module is used for encapsulating the first service message into a first service message in a second format which can be transmitted in the target tunnel if the target tunnel exists;
and the sending module is used for sending the first service message in the second format through the target tunnel so that the target network server can forward the first service message in the second format to the target data network.
A user plane network element, comprising:
a memory for storing a program;
a processor for calling and executing the program in the memory, and implementing the steps of the communication method according to any one of the above items by executing the program.
A readable storage medium, having stored thereon a computer program which, when executed by a processor, carries out the steps of the communication method as claimed in any one of the preceding claims.
According to the scheme, the communication method, the communication device, the user plane network element and the storage medium are provided by the application, wherein the user plane network element receives a first service message in a first format, which is sent to a target data network by a terminal device; determining whether a target tunnel which is used for transmitting the first service message and is used for connecting the user plane network element and the target network server exists or not; if the first service message exists, packaging the first service message into a first service message in a second format which can be transmitted in the target tunnel; and sending the first service message in the second format through the target tunnel so that the target network server forwards the first service message in the second format to the target data network. The method and the device directly establish the tunnel between the user plane network element and the target network server, do not need a specific client and the network server to establish the tunnel, simplify the network structure and reduce the cost of the network Internet.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the embodiments will be briefly described below, and obviously, the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart of an implementation of a communication method according to an embodiment of the present application;
fig. 2 is a flowchart of an implementation of determining whether a target tunnel connecting a user plane network element and a target network server exists according to an embodiment of the present application;
fig. 3 is a flowchart of an implementation of constructing a target tunnel according to a tunnel negotiation parameter according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a communication device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a communication device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a user plane network element according to an embodiment of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in other sequences than described or illustrated herein.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present disclosure.
The communication method provided by the embodiment of the application is used in a User Plane Network element (UPF), and the User Plane Network element is mainly responsible for User Plane Data forwarding, for example, for Data forwarding from a User terminal to a Data Network (DN) and for Data forwarding from the Data Network to the User terminal.
As an example, the user plane network element may be a user plane network element in an industrial internet scenario.
As shown in fig. 1, a flowchart for implementing a communication method provided in an embodiment of the present application may include:
step S101: and receiving a first service message in a first format sent to a target data network by the terminal equipment.
When a terminal device needs to send a service packet (denoted as a first service packet) to a target data network (specifically, a device in the target data network, which may be a network device, or a user device), the first service packet is encapsulated into a packet in a first format.
As an example, the first format may be a GTP-U protocol format, but may also be other formats.
Step S102: and determining whether a target tunnel connecting the user plane network element and the target network server exists or not, wherein the target tunnel can transmit the first service message.
The target network server is a network server on the target data network side, and can perform data interaction with devices (network devices, user devices accessing the target data network, and the like) in the target data network.
In the application, a tunnel can be directly established between the user plane network element and the target network server, and the first service message is transmitted through the tunnel under the condition that the tunnel capable of transmitting the first service message exists between the user plane network element and the target network server, so that the transmission safety of the first service message is improved. Therefore, after receiving the first service packet in the first format sent by the terminal device to the target data network, the user plane network element may first query whether a target tunnel connecting the user plane network element and the target network server exists, and the first service packet can be transmitted.
As an example, the user plane network element may establish the target tunnel with the target network server through the N6 interface.
Step S103: and if the target tunnel exists, packaging the first service message into a first service message in a second format which can be transmitted in the target tunnel.
If the target tunnel exists, the first service packet in the first format may be decapsulated to obtain an original first service packet, and the original first service packet is encapsulated into a first service packet in a second format.
As an example, the second format may be an L2TP Protocol (Layer 2Tunneling Protocol) format.
Step S104: and sending the first service message in the second format through the target tunnel so that the target network server forwards the first service message in the second format to the target data network.
After receiving the first service packet in the second format through the target tunnel, the target network server may forward the first service packet in the second format to a network server or a user equipment in the target data network.
In the communication method provided by the embodiment of the application, a user plane network element receives a first service message in a first format, which is sent to a target data network by a terminal device; determining whether a target tunnel which is used for transmitting the first service message and is used for connecting the user plane network element and the target network server exists or not; if the first service message exists, packaging the first service message into a first service message in a second format which can be transmitted in the target tunnel; and sending the first service message in the second format through the target tunnel so that the target network server forwards the first service message in the second format to the target data network. The method and the device directly establish the tunnel between the user plane network element and the target network server, and do not need to establish the tunnel between a specific client (such as an LAC client) and the target network server, thereby simplifying the network structure and reducing the cost of the network Internet.
In an optional embodiment, an implementation flowchart of the foregoing determining whether the target tunnel connecting the user plane network element and the target network server exists is shown in fig. 2, and may include:
step S201: and searching whether a fast forwarding table corresponding to the first service message exists or not.
Optionally, the first service packet in the first format may be decapsulated to obtain an original first service packet, obtain a five-tuple (i.e., a source IP address, a destination IP address, a protocol number, a source port, and a destination port) from the original first service packet, mark the five-tuple as a target five-tuple, and find whether a fast forwarding table corresponding to the target five-tuple exists according to a preset correspondence table between the five-tuple and the fast forwarding table.
If the corresponding relation table does not record the target five-tuple, determining that a quick forwarding table corresponding to the first service message does not exist; and if the corresponding relation table records the target five-tuple and the corresponding fast forwarding table, determining that the fast forwarding table corresponding to the first service message exists.
Step S202: and under the condition of finding the quick forwarding table, if the target tunnel information is recorded in the quick forwarding table, determining that the target tunnel exists.
Under the condition that the fast forwarding table is found, if target tunnel information, such as an identification mark of a target tunnel, is recorded in the fast forwarding table, the target tunnel is determined to exist; if the tunnel information is not recorded in the fast forwarding table, it is determined that no target tunnel exists, that is, no tunnel is needed for transmission.
In an optional embodiment, the target tunnel is constructed according to a tunnel negotiation parameter pre-configured in the user plane network element.
The tunnel negotiation parameters in the user plane network element may be configured by a configuration person through a configuration channel (such as an oam (operation Administration and maintenance) interface) provided by the user plane network element. The user plane network element can be configured remotely through the network, or the user plane network element can be directly configured without the network.
The tunnel negotiation parameters may include the following information: the address of the target network server, the negotiation mode, the negotiation password, the maximum number N of tunnels, the number M of the maximum sessions which can be supported by each tunnel, and the like.
Optionally, an implementation flowchart for constructing a target tunnel according to a tunnel negotiation parameter provided in the embodiment of the present application is shown in fig. 3, and may include:
step S301: and sending a negotiation message in a second format to the target network server according to the address of the target network server in the negotiation parameters, wherein the negotiation message carries the negotiation parameters.
As an example, the user plane network element may send the negotiation packet in the second format to the target network server through the N6 interface.
The process of negotiating with the target network server to establish the tunnel may be triggered by the user plane network element through a configuration channel (e.g., OAM interface) provided by the user plane network element by a worker. The operator may operate the user plane network element remotely through the network to trigger the user plane network element to start the process of negotiating with the target network server to establish the tunnel, and of course, the operator may also directly operate the user plane network element to trigger the user plane network element to start the process of negotiating with the target network server to establish the tunnel.
Step S302: and receiving a negotiation result message returned by the network server after the network server constructs the target tunnel based on the negotiation parameters, wherein the negotiation result message carries target tunnel information.
After receiving the negotiation message, the network server establishes a plurality of tunnels (i.e., allocates tunnel resources) based on the negotiation parameters, where the plurality of tunnels include the target tunnel, and therefore the negotiation result message also includes information of the target tunnel. The process of establishing a tunnel based on the negotiated parameters is not the focus of the present application and will not be described in detail here.
Step S303: target tunnel information is maintained for communication with the target network server through the target tunnel.
After a plurality of tunnels are established, information of all established tunnels is saved, and the established tunnels comprise target tunnels, so that the information of all established tunnels comprises target tunnel information.
And the user plane network element can realize tunnel communication with the target network server according to the target tunnel information.
After the tunnel is established, the staff may also establish a corresponding relationship between the target tunnel and the target data network that needs to be accessed by using the tunnel (for example, a corresponding relationship between an identifier of the target tunnel and an identifier of the target data network) in the UPF through the configuration channel, so that the terminal device uses the tunnel between the user plane network element and the target network server to communicate with the target data network.
In an optional embodiment, the communication method provided in the embodiment of the present application may further include:
and if the fast forwarding table corresponding to the first service message in the first format is not found, determining a target tunnel corresponding to the target data network according to the session information table, so as to convert the first service message in the first format into the first service message in the second format and forward the first service message in the second format to the target data network through the target tunnel.
If the fast forwarding table corresponding to the first service packet in the first format is not found, which indicates that the first service packet is the first packet sent by the terminal device, at this time, the user plane network element may query a pre-established session information table (e.g., a session information table of a PDU session) to determine an identifier of a target data network of the first service packet; determining a target tunnel corresponding to the target data network according to the corresponding relation between the tunnel and the data network; packaging the first service message into a first service message in a second format; and querying a routing Information Base (FIB) to determine an interface for sending the first service message in the second format, and then sending the first service message in the second format through the determined interface, so that the target network server receives the first service message in the second format through the target tunnel.
The present application adds the identity of the target data network to the session information table. That is, the session information table of the present application newly adds information of the data network.
Based on the process of determining the target tunnel corresponding to the target data network according to the session information table, a fast forwarding table is established, and a session identifier used in the transmission process of the first service message in the first format and information of the target tunnel corresponding to the target data network are recorded in the fast forwarding table.
An initial fast forwarding table may be established first, where an identifier of a session used in a transmission process of a first service packet in a first format is recorded in the initial fast forwarding table, and a target tunnel corresponding to a target data network is determined according to an identifier of the target data network recorded in a session information table indicated by the session identifier. As an example, a target tunnel corresponding to the target data network may be determined according to a correspondence between the identifier of the data network and the identifier of the tunnel.
And adding the information of the target tunnel into the initial fast forwarding table to obtain the fast forwarding table.
The information of the target tunnel is information for establishing a tunnel, and may include, but is not limited to: identification of the target tunnel, and encapsulation information, such as an address assigned by the target web server, primary DNS (domain name System) information assigned by the target web server, backup DNS information assigned by the target web server, an address of the target web server, and the like.
Different from the traditional fast forwarding table, the tunnel information is added in the fast forwarding table.
Further, the communication method provided in the embodiment of the present application may further include:
and acquiring a five-tuple in the first service message, and establishing a corresponding relation between the five-tuple and the fast forwarding table.
Further, the communication method provided in the embodiment of the present application may further include:
and receiving a second service message in the first format sent to the target data network by the terminal equipment, and acquiring a quintuple of the second service message.
The second service packet in the first format may be decapsulated to obtain an original second service packet, and a quintuple of the second service packet is obtained from the original second service packet.
And if the quintuple of the second service message has a corresponding relation with the fast forwarding table, packaging the second service message into a second service message in a second format which can be transmitted in the target tunnel according to the information of the target tunnel in the fast forwarding table.
By the fast forwarding table, the second format of the second service message can be fast packaged without inquiring the session information table and the corresponding relation between the data network and the tunnel, so that the fast forwarding of the service message is realized.
And sending the second service message in the second format through the target tunnel so that the target network server forwards the second service message in the second format to the target data network.
Corresponding to the method embodiment, an embodiment of the present application further provides a communication apparatus, where the communication apparatus is used for a user plane network element, and as shown in fig. 4, a schematic structural diagram of the communication apparatus provided in the embodiment of the present application may include:
a receiving module 401, a determining module 402, an encapsulating module 403 and a sending module 404; wherein,
the receiving module 401 is configured to receive a first service packet in a first format, where the first service packet is sent by a terminal device to a target data network;
the determining module 402 is configured to determine whether a target tunnel, which is used for connecting the user plane network element and a target network server and is used for transmitting the first service packet, exists;
the encapsulating module 403 is configured to encapsulate the first service packet into a first service packet in a second format that can be transmitted in the target tunnel if the target tunnel exists;
the sending module 404 is configured to send the first service packet in the second format through the target tunnel, so that the target network server forwards the first service packet in the second format to the target data network.
The communication device provided by the embodiment of the application receives a first service message in a first format, which is sent to a target data network by a terminal device; determining whether a target tunnel which is used for transmitting the first service message and is used for connecting the user plane network element and the target network server exists or not; if yes, packaging the first service message into a first service message in a second format which can be transmitted in the target tunnel; and sending the first service message in the second format through the target tunnel so that the target network server forwards the first service message in the second format to the target data network. The method and the device directly establish the tunnel between the user plane network element and the target network server, do not need to establish the tunnel between the specific client and the target network server, simplify the network structure and reduce the cost of the network internet.
In an alternative embodiment, the determining module 402 may include: :
a searching unit, configured to search whether a fast forwarding table corresponding to the first service packet exists;
and the determining unit is used for determining that the target tunnel exists if the target tunnel information is recorded in the fast forwarding table under the condition that the fast forwarding table is found.
In an optional embodiment, the target tunnel is constructed according to a tunnel negotiation parameter pre-configured in the user plane network element.
In an optional embodiment, the communication device may further include:
a negotiation module, configured to send a negotiation packet in a second format to the target network server according to the address of the target network server in the negotiation parameter, where the negotiation packet carries the negotiation parameter; receiving a negotiation result message returned by the network server after the target tunnel is constructed based on the negotiation parameters, wherein the negotiation result message carries information of the target tunnel; storing information of the target tunnel for communication with the target network server through the target tunnel.
In an optional embodiment, the communication device may further include:
and the configuration module is used for configuring the corresponding relation between the target tunnel and the target data network after the target tunnel is constructed.
In an optional embodiment, the communication device may further include:
a fast forwarding table establishing module, configured to determine a target tunnel corresponding to a target data network according to a session information table if a fast forwarding table corresponding to the first service packet in the first format is not found, so as to convert the first service packet in the first format into a first service packet in a second format and forward the first service packet to the target data network through the target tunnel; and establishing a fast forwarding table based on a process of determining a target tunnel corresponding to a target data network according to a session information table, wherein the fast forwarding table records a session identifier used in the transmission process of the first service message in the first format and information of the target tunnel corresponding to the target data network.
In an optional embodiment, the fast forwarding table establishing module is further configured to:
acquiring a five-tuple in the first service message, and establishing a corresponding relation between the five-tuple and the fast forwarding table;
the receiving module 401 is further configured to receive a second service packet in the first format, which is sent to the target data network by the terminal device, and obtain a five-tuple of the second service packet;
the determining module 402 is further configured to determine that a five-tuple of the second service packet has a corresponding relationship with the fast forwarding table.
The encapsulating module 403 is further configured to encapsulate the second service packet into a second service packet in a second format that can be transmitted in the target tunnel according to the information of the target tunnel in the fast forwarding table if the five-tuple of the second service packet has a corresponding relationship with the fast forwarding table;
the sending module 404 is further configured to send the second service packet in the second format through the target tunnel, so that the target network server forwards the second service packet in the second format to the target data network.
In a scenario, a user equipment UE communicates with a user plane Network element through a Radio Access Network (RAN), and the user plane Network element accesses a target data Network through an L2TP server, where the user plane Network element communicates with the Radio Access Network through an N3 interface (mainly bearing transmission/reception of GTP-U messages) and communicates with an L2TP server through an N6 interface. As shown in fig. 5, a schematic structural diagram of a communication device in a user plane network element provided in this embodiment may include:
a control message interaction module 501, a first encapsulation/decapsulation module 502, a fast forwarding module 503, and a second encapsulation/decapsulation module 504; wherein,
the control packet interaction module 501 may obtain the input tunnel negotiation parameters through a configuration channel (e.g., OAM interface) provided by the UPF, including but not limited to: address of the L2TP server, negotiation mode, negotiation password, maximum number of tunnels N, and maximum number of sessions M that can be supported per tunnel, etc.
After the tunnel negotiation parameter configuration is completed, the control packet interaction module 501 may receive the L2TP function opening instruction through the configuration channel, respond to the L2TP function opening instruction, and the control packet interaction module 501 constructs a negotiation packet according to the tunnel negotiation parameter and sends the negotiation packet to the second encapsulation/decapsulation module 504.
The second encapsulation/decapsulation module 504 encapsulates the negotiation packet into a negotiation packet in L2TP format, then queries the routing forwarding table FIB to determine an interface (i.e., N6 interface) for sending the negotiation packet in L2TP format, and then sends out the negotiation packet in L2TP format through the determined interface, so that the L2TP server receives the negotiation packet in L2TP format.
After receiving the negotiation message in the L2TP format, the L2TP server performs validity check on the negotiation message, and when the check is passed, allocates tunnel resources (i.e., establishes a tunnel) based on negotiation parameters in the negotiation message, encapsulates the allocated tunnel resource information into a negotiation result message in the L2TP format, and then queries a routing forwarding table FIB to determine to send the negotiation result message in the L2TP format to an N6 interface of the UPF.
The N6 interface transmits the negotiation result message in the L2TP format to the second encapsulation/decapsulation module 504 according to the UDP PORT1701 protocol information in the negotiation result message in the L2TP format.
The second encapsulation/decapsulation module 504 determines whether the negotiation result packet is a negotiation type packet according to the header information of the negotiation result packet in the L2TP format, and if the negotiation result packet is the negotiation type packet, decapsulates the negotiation result packet in the L2TP format, and sends the decapsulated negotiation result packet to the control packet interaction module 501.
The control message interaction module 501 parses out tunnel information from the negotiation result message, and may also output a prompt message so that the user knows that the tunnel is established, and may also receive a configuration instruction through the configuration interface to construct a corresponding relationship between the tunnel and a target data network (a data network that needs to be accessed through the tunnel), and the control message interaction module 501 synchronizes the parsed tunnel information and the constructed corresponding relationship between the tunnel and the target data network to the fast forwarding module 503.
The service message sent by the user terminal UE to the target data network is forwarded to the user plane network element through the radio access network RAN, and is forwarded by the user plane network element to the L2TP server.
When a user terminal UE needs to access a target data network, a session (PDU session) from the user terminal UE to the target data network is established first, and session related information is recorded through a session information table, wherein the session information table in the application comprises a session identifier and a target data network identifier.
After the session is established, the user terminal UE may send a service packet to the target data network through the established session.
When the user terminal UE sends the first service packet (denoted as service packet F) in GTP-U format to the target data network, after receiving the service packet F in GTP-U format, the first encapsulation/decapsulation module 502 of the user plane network element decapsulates the service packet F in GTP-U format to obtain the original service packet F, and sends the original service packet F to the fast forwarding module 503.
The fast forwarding module 503 cannot find a corresponding fast forwarding table according to the five-tuple in the original service packet F (because it is the first service packet, the fast forwarding table is not yet established), and may query a pre-established session information table according to the session identifier to determine the identifier of the target data network; determining a target tunnel corresponding to the target data network according to the corresponding relation between the tunnel and the data network; the service packet F is forwarded to the second encapsulation/decapsulation module 504. The fast forwarding module 503 further establishes a fast forwarding table corresponding to the five-tuple in the service packet F, where a session identifier is recorded in the fast forwarding table, the fast forwarding module 503 finds the session information table according to the session identifier, obtains information of a corresponding target tunnel according to an identifier of a target data network in the session information table, and adds the information of the target tunnel to the fast forwarding table.
The second encapsulation/decapsulation module 504 encapsulates the service packet F into a service packet F in the format of L2 TP; acquiring corresponding target tunnel information according to the identification of the target data network in the session table, then querying a routing forwarding table to determine an interface for sending the service message F in the L2TP format, and then sending the service message F in the L2TP format through the determined interface, so that the target network server receives the service message F in the L2TP format through the target tunnel.
After receiving the service packet (denoted as a feedback service packet) in the L2TP format sent by the L2TP server through the N6 interface, the user plane network element transmits the feedback service packet in the L2TP format to the second encapsulation/decapsulation module 504 through the UDP PORT1701 protocol information in the feedback service packet in the L2TP format.
The second encapsulation/decapsulation module 504 determines that the feedback service packet in the L2TP format is a service packet according to the header information of the feedback service packet in the L2TP format, and decapsulates the feedback service packet in the L2TP format and sends the decapsulated feedback service packet to the fast forwarding module 503.
The fast forwarding module 503 searches the fast forwarding table according to the five-tuple in the feedback service packet, finds the corresponding GTP-U header information according to the fast forwarding table, and sends the feedback service packet to the first encapsulation/decapsulation module 502.
The first encapsulation/decapsulation module 502 encapsulates the feedback service packet into a feedback service packet in GTP-U format and sends the feedback service packet to the radio access network RAN through the N3 interface, and the RAN forwards the feedback service packet in GTP-U format to the user equipment UE.
After the user terminal UE sends the service packet F to the target data network, when sending the service packet (denoted as service packet NF) in GTP-U format to the target data network again, after receiving the service packet NF in GTPU format, the first encapsulation/decapsulation module 502 of the user plane network element decapsulates the service packet NF of GTPU to obtain an original service packet NF, and sends the original service packet NF to the fast forwarding module 503.
The fast forwarding module 503 finds a corresponding fast forwarding table according to a five-tuple in the original service packet NF, and determines a target tunnel corresponding to the target data network according to the fast forwarding table; the service packet NF is forwarded to the second encapsulation/decapsulation module 504.
The second encapsulation/decapsulation module 504 encapsulates the service message NF into a service message NF in the L2TP format; acquiring corresponding target tunnel information according to the identification of the target data network in the session table, then querying a routing forwarding table to determine an interface for sending the service message NF in the L2TP format, and then sending the service message NF in the L2TP format through the determined interface, so that the target network server receives the service message NF in the L2TP format through the target tunnel.
Corresponding to the embodiment of the method, the present application further provides a user plane network element, where a schematic structural diagram of the user plane network element is shown in fig. 6, and the schematic structural diagram may include: at least one processor 1, at least one communication interface 2, at least one memory 3 and at least one communication bus 4.
In the embodiment of the present application, the number of the processor 1, the communication interface 2, the memory 3, and the communication bus 4 is at least one, and the processor 1, the communication interface 2, and the memory 3 complete mutual communication through the communication bus 4.
The processor 1 may be a central processing unit CPU or an application Specific Integrated circuit asic or one or more Integrated circuits configured to implement embodiments of the present application, etc.
The memory 3 may comprise a high-speed RAM memory, and may further comprise a non-volatile memory (non-volatile memory) or the like, such as at least one disk memory.
Wherein the memory 3 stores a program, and the processor 1 may call the program stored in the memory 3, the program being configured to:
receiving a first service message in a first format sent to a target data network by a terminal device;
determining whether a target tunnel connecting the user plane network element and a target network server exists, wherein the target tunnel can transmit the first service message;
if so, packaging the first service message into a first service message in a second format capable of being transmitted in the target tunnel;
and sending the first service message in the second format through the target tunnel so that the target network server forwards the first service message in the second format to the target data network.
Alternatively, the detailed function and the extended function of the program may be as described above.
Embodiments of the present application further provide a storage medium, where a program suitable for execution by a processor may be stored, where the program is configured to:
receiving a first service message in a first format sent to a target data network by a terminal device;
determining whether a target tunnel connecting the user plane network element and a target network server exists, wherein the target tunnel can transmit the first service message;
if so, packaging the first service message into a first service message in a second format capable of being transmitted in the target tunnel;
and sending the first service message in the second format through the target tunnel so that the target network server forwards the first service message in the second format to the target data network.
Alternatively, the detailed function and the extended function of the program may be as described above.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
It should be understood that the technical problems can be solved by combining and combining the features of the embodiments from the claims.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A communication method for a user plane network element, the method comprising:
receiving a first service message in a first format sent to a target data network by a terminal device;
determining whether a target tunnel connecting the user plane network element and a target network server exists, wherein the target tunnel can transmit the first service message;
if so, packaging the first service message into a first service message in a second format capable of being transmitted in the target tunnel;
and sending the first service message in the second format through the target tunnel so that the target network server forwards the first service message in the second format to the target data network.
2. The method of claim 1, the determining whether a target tunnel connecting the user plane network element and a target network server exists, comprising:
searching whether a fast forwarding table corresponding to the first service message exists or not;
and under the condition of finding the quick forwarding table, if target tunnel information is recorded in the quick forwarding table, determining that the target tunnel exists.
3. The method according to claim 1 or 2, wherein the target tunnel is constructed according to a tunnel negotiation parameter pre-configured in the user plane network element.
4. The method of claim 3, constructing the target tunnel according to the tunnel negotiation parameters, comprising:
sending a negotiation message in a second format to the target network server according to the address of the target network server in the negotiation parameters, wherein the negotiation message carries the negotiation parameters;
receiving a negotiation result message returned by the network server after the target tunnel is constructed based on the negotiation parameters, wherein the negotiation result message carries information of the target tunnel;
storing information of the target tunnel for communication with the target network server through the target tunnel.
5. The method of claim 4, further comprising:
and after the target tunnel is constructed, configuring the corresponding relation between the target tunnel and the target data network.
6. The method of claim 5, further comprising:
if the fast forwarding table corresponding to the first service message in the first format is not found, determining a target tunnel corresponding to the target data network according to a session information table, so as to convert the first service message in the first format into a first service message in a second format and forward the first service message in the second format to the target data network through the target tunnel;
and establishing a fast forwarding table based on the target tunnel corresponding to the target data network determined according to the session information table, wherein the fast forwarding table records a session identifier used in the transmission process of the first service message in the first format and information of the target tunnel corresponding to the target data network.
7. The method of claim 6, further comprising:
acquiring a five-tuple in the first service message, and establishing a corresponding relation between the five-tuple and the fast forwarding table;
receiving a second service message in a first format sent to the target data network by the terminal equipment, and obtaining a quintuple of the second service message;
if the quintuple of the second service message has a corresponding relation with the fast forwarding table, packaging the second service message into a second service message in a second format which can be transmitted in the target tunnel according to the information of the target tunnel in the fast forwarding table;
and sending the second service message in the second format through the target tunnel so that the target network server forwards the second service message in the second format to the target data network.
8. A communications apparatus for a user plane network element, the apparatus comprising:
the receiving module is used for receiving a first service message in a first format, which is sent to a target data network by a terminal device;
a determining module, configured to determine whether a target tunnel connecting the user plane network element and a target network server exists, where the target tunnel is used to transmit the first service packet;
the encapsulation module is used for encapsulating the first service message into a first service message in a second format which can be transmitted in the target tunnel if the target tunnel exists;
and the sending module is used for sending the first service message in the second format through the target tunnel so that the target network server can forward the first service message in the second format to the target data network.
9. A user plane network element, comprising:
a memory for storing a program;
a processor for calling and executing the program in the memory, the steps of the communication method according to any one of claims 1-7 being implemented by executing the program.
10. A readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the individual steps of the communication method according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210332846.XA CN114650197B (en) | 2022-03-31 | 2022-03-31 | Communication method, device, user plane network element and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210332846.XA CN114650197B (en) | 2022-03-31 | 2022-03-31 | Communication method, device, user plane network element and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114650197A true CN114650197A (en) | 2022-06-21 |
CN114650197B CN114650197B (en) | 2023-05-23 |
Family
ID=81995474
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210332846.XA Active CN114650197B (en) | 2022-03-31 | 2022-03-31 | Communication method, device, user plane network element and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114650197B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114980359A (en) * | 2022-07-28 | 2022-08-30 | 阿里巴巴(中国)有限公司 | Data forwarding method, device, equipment, system and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111031080A (en) * | 2018-10-09 | 2020-04-17 | 华为技术有限公司 | Message transmission method and device |
CN111182657A (en) * | 2018-11-09 | 2020-05-19 | 中兴通讯股份有限公司 | Tunnel negotiation establishing method and device |
WO2021184271A1 (en) * | 2020-03-18 | 2021-09-23 | 华为技术有限公司 | Message forwarding method and apparatus |
CN113595911A (en) * | 2021-09-28 | 2021-11-02 | 深圳艾灵网络有限公司 | Data forwarding method and device, electronic equipment and storage medium |
CN114126085A (en) * | 2022-01-28 | 2022-03-01 | 深圳艾灵网络有限公司 | Industrial field bus communication method and device, electronic equipment and storage medium |
-
2022
- 2022-03-31 CN CN202210332846.XA patent/CN114650197B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111031080A (en) * | 2018-10-09 | 2020-04-17 | 华为技术有限公司 | Message transmission method and device |
CN111182657A (en) * | 2018-11-09 | 2020-05-19 | 中兴通讯股份有限公司 | Tunnel negotiation establishing method and device |
WO2021184271A1 (en) * | 2020-03-18 | 2021-09-23 | 华为技术有限公司 | Message forwarding method and apparatus |
CN113595911A (en) * | 2021-09-28 | 2021-11-02 | 深圳艾灵网络有限公司 | Data forwarding method and device, electronic equipment and storage medium |
CN114126085A (en) * | 2022-01-28 | 2022-03-01 | 深圳艾灵网络有限公司 | Industrial field bus communication method and device, electronic equipment and storage medium |
Non-Patent Citations (2)
Title |
---|
INTEL, SAMSUNG, LG ELECTRONICS, MEDIATEK, HUAWEI, HISILICON: "S2-1903494 \"Correction of UE 5GSM Core Network Capability\"" * |
ZTE: "S2-1901980", 《3GPP》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114980359A (en) * | 2022-07-28 | 2022-08-30 | 阿里巴巴(中国)有限公司 | Data forwarding method, device, equipment, system and storage medium |
CN114980359B (en) * | 2022-07-28 | 2022-12-27 | 阿里巴巴(中国)有限公司 | Data forwarding method, device, equipment, system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114650197B (en) | 2023-05-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2725829B1 (en) | Common control protocol for wired and wireless nodes | |
CN110417840B (en) | Information processing method and device | |
CN103339901B (en) | Terminal in content guiding network environment and the communication means of intermediate node and terminal and intermediate node | |
US11153207B2 (en) | Data link layer-based communication method, device, and system | |
CN114124618B (en) | Message transmission method and electronic equipment | |
CN101212393B (en) | Medium independent switching message transmission method, system, and device | |
TW201815131A (en) | Data transmission method and network equipment | |
US11134009B2 (en) | Packet processing method and apparatus | |
JPWO2006132142A1 (en) | Remote access system and its IP address assignment method | |
CN106559302A (en) | Single tunnel method for building up, device and system | |
CN104022936A (en) | Method and device for establishing tunnel | |
EP3007389B1 (en) | Gre tunnel implementation method, access point and gateway | |
US20220360526A1 (en) | Routing information publishing method, apparatus, and system | |
CN114650197B (en) | Communication method, device, user plane network element and storage medium | |
EP3220584A1 (en) | Wifi sharing method and system, home gateway and wireless local area network gateway | |
WO2014067065A1 (en) | Method, apparatus and system for implementing tunnel processing | |
JP4885810B2 (en) | Wireless terminal adapter | |
CN114024664B (en) | Secure communication method, related device and system | |
JP5947763B2 (en) | COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM | |
CN113438178B (en) | Message forwarding method and device, computer equipment and storage medium | |
EP4415325A1 (en) | Message processing method, apparatus and system | |
FI121725B (en) | Network-initiated PDP context activation | |
CN107222450A (en) | A kind of network node and realize the method and apparatus communicated between network node | |
CN116743861A (en) | Multicast joining method and related equipment | |
CN117376849A (en) | Network proxy method and system based on short message |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |