Nothing Special   »   [go: up one dir, main page]

CN114650197B - Communication method, device, user plane network element and storage medium - Google Patents

Communication method, device, user plane network element and storage medium Download PDF

Info

Publication number
CN114650197B
CN114650197B CN202210332846.XA CN202210332846A CN114650197B CN 114650197 B CN114650197 B CN 114650197B CN 202210332846 A CN202210332846 A CN 202210332846A CN 114650197 B CN114650197 B CN 114650197B
Authority
CN
China
Prior art keywords
target
tunnel
service message
format
negotiation
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.)
Active
Application number
CN202210332846.XA
Other languages
Chinese (zh)
Other versions
CN114650197A (en
Inventor
刘武文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202210332846.XA priority Critical patent/CN114650197B/en
Publication of CN114650197A publication Critical patent/CN114650197A/en
Application granted granted Critical
Publication of CN114650197B publication Critical patent/CN114650197B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session 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 sent by terminal equipment to a target data network; determining whether a target tunnel for transmitting a first service message exists, which connects a user plane network element and a target network server; if the first service message exists, the first service message is packaged 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

Communication method, device, user plane network element and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a communications method, an apparatus, a user plane network element, and a storage medium.
Background
In industrial internet scenarios, it is generally necessary to construct a tunnel by means of a tunneling protocol for network security, and data transmission is performed through the tunnel. Whereas establishment of a tunnel requires negotiation between a specific client and a server, for example, establishment of a tunnel based on the L2TP protocol requires negotiation between a LAC (L2 TP Access Concentrator ) client and an LNC (L2 TP Network Server, L2TP network server) server to establish an L2TP tunnel between the LAC client and the LNC server, based on which traffic data must be transmitted to the LNC server via the LAC client in a process of using tunnel communication. Obviously, the tunnel communication mode needs special LAC equipment, so that the construction of the network topology of the industrial Internet is complicated, and the cost of the industrial Internet is high.
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 by terminal equipment to a target data network;
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 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 above method, preferably, the determining whether a target tunnel connecting the user plane network element and the target network server exists includes:
searching whether a quick forwarding table corresponding to the first service message exists or not;
and under the condition that the fast forwarding table is searched, if the fast forwarding table records the target tunnel information, determining that the target tunnel exists.
In the above method, preferably, the target tunnel is constructed according to a tunnel negotiation parameter preconfigured in the user plane network element.
In the above method, preferably, constructing the target tunnel according to the tunnel negotiation parameters includes:
transmitting 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 target network server after constructing the target tunnel based on the negotiation parameters, wherein the negotiation result message carries information of the target tunnel;
and storing information of the target tunnel for communication with the target network server through the target tunnel.
The above method, preferably, further comprises:
after the target tunnel is constructed, the corresponding relation between the target tunnel and the target data network is configured.
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 forwarding the first service message in the first format to the target data network through the target tunnel;
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 the session identifier used in the first service message transmission process of the first format and the information of the target tunnel corresponding to the target data network are recorded in the fast forwarding table.
The above method, preferably, further comprises:
obtaining a quintuple in the first service message, and establishing a corresponding relation between the quintuple and the fast forwarding table;
receiving a second service message in a first format sent by the terminal equipment to the target data network, and obtaining a quintuple of the second service message;
if the five-tuple 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 sent by the terminal equipment to the target data network;
a determining module, configured to determine whether a target tunnel for transmitting the first service packet exists, where the target tunnel connects the user plane network element and a target network server;
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 forwards 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, by executing the program, to implement the respective steps of the communication method as set forth in any one of the above.
A readable storage medium having stored thereon a computer program which, when executed by a processor, implements 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, and the user plane network element receives a first service message in a first format sent by the terminal equipment to the target data network; determining whether a target tunnel for transmitting a first service message exists, which connects a user plane network element and a target network server; if the first service message exists, the first service message is packaged 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 system directly establish the tunnel between the user plane network element and the target network server, do not need a specific client to establish the tunnel with the network server, 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 that are needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of an implementation of a communication method provided in an embodiment of the present application;
fig. 2 is a flowchart of one 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 one implementation of constructing a target tunnel according to tunnel negotiation parameters 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 another 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 and in the above drawings, 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 may be interchanged where appropriate such that the embodiments of the present application described herein may be implemented in other sequences than those illustrated herein.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without undue burden, are within the scope of the present application.
The communication method provided by the embodiment of the application is used in a user plane Network element (User Plane Function, UPF), and the user plane Network element is mainly responsible for Data forwarding of a user plane, for example, data forwarding from a user terminal to a Data Network (DN) and 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 according to an embodiment of the present application may include:
step S101: and receiving a first service message in a first format sent by the terminal equipment to the target data network.
When the terminal equipment needs to send a service message (denoted as a first service message) to a target data network (specifically, equipment in the target data network, which can be network equipment or user equipment), the first service message is encapsulated into a message in a first format.
As an example, the first format may be a GTP-U protocol format, or may be other formats.
Step S102: and determining whether a target tunnel connecting the user plane network element and the target network server exists, 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 is capable of performing data interaction with devices (network devices or user devices accessing the target data network, etc.) 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 under the condition that a tunnel capable of transmitting the first service message exists between the user plane network element and the target network server, the first service message is transmitted through the tunnel, so that the security of the transmission of the first service message is improved. Therefore, after receiving the first service message in the first format sent by the terminal device to the target data network, the user plane network element can first query whether a target tunnel for connecting the user plane network element and the target network server exists or not, and can transmit the first service message.
As an example, the user plane network element may establish a target tunnel with a target network server through an 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 message in the first format can be unpacked to obtain an original first service message, and the original first service message is packed into the first service message in the second format.
As an example, the second format may be an L2TP protocol (Layer 2Tunneling Protocol, layer two tunneling 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 message in the second format through the target tunnel, the target network server can forward the first service message in the second format to a network server or user equipment in the target data network.
According to the communication method provided by the embodiment of the application, a user plane network element receives a first service message in a first format sent by terminal equipment to a target data network; determining whether a target tunnel for transmitting a first service message exists, which connects a user plane network element and a target network server; if the first service message exists, the first service message is packaged 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 tunnel is directly established between the user plane network element and the target network server, and the tunnel is no longer required to be established between the specific client (such as LAC client) and the target network server, so that the network structure is simplified, and the cost of the network Internet is reduced.
In an alternative embodiment, a flowchart of an implementation of the determining whether a 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 quick forwarding table corresponding to the first service message exists.
Optionally, the first service packet in the first format may be unpacked to obtain an original first service packet, a quintuple (i.e. a source IP address, a destination IP address, a protocol number, a source port, a destination port) is obtained from the original first service packet, and is recorded as a target quintuple, and according to a preset correspondence table between the quintuple and the fast forwarding table, whether the fast forwarding table corresponding to the target quintuple exists is searched.
If the target five-tuple is not recorded in the corresponding relation table, determining that a quick forwarding table corresponding to the first service message does not exist; if the corresponding relation table records the target five-tuple and the corresponding quick forwarding table, determining that the quick forwarding table corresponding to the first service message exists.
Step S202: under the condition that the fast forwarding table is found, if the fast forwarding table records the target tunnel information, determining that the target tunnel exists.
Under the condition that the fast forwarding table is found, if the fast forwarding table records target tunnel information, such as identification marks of target tunnels, and the like, the existence of the target tunnels is determined; if the tunnel information is not recorded in the fast forwarding table, determining that the target tunnel does not exist, namely, the tunnel is not required to transmit.
In an alternative embodiment, the target tunnel is constructed according to pre-configured tunnel negotiation parameters in the user plane network element.
The tunnel negotiation parameters in the user plane element may be configured by a configurator via a configuration channel (e.g., OAM (Operation Administration and Maintenance) interface) provided by the user plane element. The user plane network element can be configured remotely through a network, or the user plane network element can be configured directly 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 maximum number M of sessions that each tunnel can support, and the like.
Optionally, as shown in fig. 3, a flowchart for implementing the construction of the target tunnel according to the tunnel negotiation parameters provided in the embodiment of the present application 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 message in the second format to the target network server through the N6 interface.
The configuration channel (e.g., an OAM interface) provided by the operator through the user plane element may trigger the user plane element to initiate a process of negotiating with the target network server to establish the tunnel. The operator can remotely operate the user plane network element 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 can 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 constructing the target tunnel based on the negotiation parameters, wherein the negotiation result message carries the 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, wherein the plurality of tunnels comprise the target tunnel, so that the negotiation result message also comprises the information of the target tunnel. The process of establishing a tunnel based on negotiation parameters is not an important point of the present application and will not be described in detail here.
Step S303: the target tunnel information is saved for communication with the target network server through the target tunnel.
After the plurality of tunnels are established, information of all established tunnels is saved, and the information of all established tunnels contains target tunnel information because the established tunnels comprise target tunnels.
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 can also establish the corresponding relation between the target tunnel and the target data network needing to be accessed by using the tunnel (such as the corresponding relation between the identification of the target tunnel and the identification of the target data network) in the UPF through the configuration channel, so that the terminal equipment 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 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 then forward the first service message to the target data network through the target tunnel.
If the fast forwarding table corresponding to the first service message in the first format is not found, the first service message is the first message sent by the terminal device, and at this time, the user plane network element may query a pre-established session information table (for example, a session information table of a PDU session) to determine the identifier of the target data network of the first service message; 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 forwarding table (Forwarding Information Base, FIB) to determine an interface for transmitting the first service message in the second format, and then transmitting 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 is newly populated with 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 the session identifier used in the first service message transmission process of the first format and the information of the target tunnel corresponding to the target data network are recorded in the fast forwarding table.
An initial fast forwarding table can be established first, the initial fast forwarding table records the identifier of a session used in the transmission process of the first service message in the first format, and a target tunnel corresponding to the target data network is determined according to the identifier of the target data network recorded in the 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 an identification of the data network and an identification 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: the identity of the target tunnel, as well as encapsulation information, such as the address assigned by the target network server, primary DNS (DomainName System ) information assigned by the target network server, backup DNS information assigned by the target network server, the address of the target network server, etc.
Unlike conventional fast forwarding tables, tunnel information is added to the fast forwarding tables of the present application.
Further, the communication method provided by the embodiment of the application may further include:
and obtaining the quintuple in the first service message, and establishing the corresponding relation between the quintuple and the quick forwarding table.
Further, the communication method provided by the embodiment of the application may further include:
and receiving a second service message in the first format sent by the terminal equipment to the target data network, and obtaining a quintuple of the second service message.
The second service message in the first format can be unpacked to obtain an original second service message, and the quintuple of the second service message is obtained from the original second service message.
And if the five-tuple 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.
Through the fast forwarding table, the session information table and the corresponding relation between the data network and the tunnel can be not required to be queried, and the second service message can be rapidly packaged in the second format, 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, the embodiment of the present application further provides a communication device, where the communication device is used for a user plane network element, as shown in fig. 4, and is a schematic structural diagram of the communication device provided in the embodiment of the present application, and may include:
a receiving module 401, a determining module 402, an encapsulating module 403 and a transmitting module 404; wherein,,
the receiving module 401 is configured to receive a first service packet in a first format sent by a terminal device to a target data network;
the determining module 402 is configured to determine whether a target tunnel for transmitting the first service packet exists, where the target tunnel connects the user plane network element and a target network server;
the encapsulation module 403 is configured to encapsulate, if the target tunnel exists, the first service packet into a first service packet in a second format that can be transmitted in the target tunnel;
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 sent by a terminal device to a target data network; determining whether a target tunnel for transmitting a first service message exists, which connects a user plane network element and a target network server; if the first service message exists, the first service message is packaged 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 system 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: :
the searching unit is used for searching whether a quick forwarding table corresponding to the first service message exists or not;
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 alternative embodiment, the target tunnel is constructed according to a tunnel negotiation parameter preconfigured in the user plane network element.
In an alternative embodiment, the communication device may further include:
a negotiation module, configured to send a negotiation message in a second format to the target network server according to an address of the target network server in the negotiation parameters, where the negotiation message carries the negotiation parameters; receiving a negotiation result message returned by the target network server after constructing the target tunnel based on the negotiation parameters, wherein the negotiation result message carries information of the target tunnel; and storing information of the target tunnel for communication with the target network server through the target tunnel.
In an alternative 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 alternative embodiment, the communication device may further include:
the fast forwarding table establishing module is used for determining a target tunnel corresponding to a target data network according to the session information table if the fast forwarding table corresponding to the first service message in the first format is not found, so as to convert the first service message in the first format into the first service message in the second format and then forward the first service message in the second format to the target data network through the target tunnel; 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 the session identifier used in the first service message transmission process of the first format and the information of the target tunnel corresponding to the target data network are recorded in the fast forwarding table.
In an alternative embodiment, the fast forwarding table establishment module is further configured to:
obtaining a quintuple in the first service message, and establishing a corresponding relation between the quintuple and the fast forwarding table;
the receiving module 401 is further configured to receive a second service packet in a first format sent by the terminal device to the target data network, and obtain a five-tuple of the second service packet;
the determining module 402 is further configured to determine that the five-tuple of the second service packet has a corresponding relationship with the fast forwarding table.
The encapsulation module 403 is further configured to encapsulate, if the five-tuple of the second service packet has a correspondence with the fast forwarding table, the second service packet into a second service packet in a second format capable of being transmitted in the target tunnel according to the information of the target tunnel in 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.
The following describes a communication device in connection with a specific application scenario, in one scenario, a user terminal device UE communicates with a user plane network element through a radio access network (Radio Access Network, RAN), 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 carrying the reception/transmission of GTP-U messages) and communicates with the 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 an embodiment of the present application 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 (such as an OAM interface) provided by the UPF, including but not limited to: the address of the L2TP server, the negotiation mode, the negotiation password, the maximum number N of tunnels, the number M of maximum sessions that each tunnel can support, and the like.
After the configuration of the tunnel negotiation parameters is completed, the control message interaction module 501 may receive an L2TP function starting instruction through the configuration channel, and respond to the L2TP function starting instruction, the control message interaction module 501 constructs a negotiation message according to the tunnel negotiation parameters, and sends the negotiation message to the second encapsulation/decapsulation module 504.
The second encapsulation/decapsulation module 504 encapsulates the negotiation message into an L2TP format negotiation message, then queries the routing forwarding table FIB to determine an interface (i.e., an N6 interface) for sending the L2TP format negotiation message, and then sends the L2TP format negotiation message through the determined interface, so that the L2TP server receives the L2TP format negotiation message.
After receiving the negotiation message in the L2TP format, the L2TP server performs validity check on the negotiation message, allocates tunnel resources (i.e. establishes a tunnel) based on negotiation parameters in the negotiation message when the check passes, 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 that the negotiation result message in the L2TP format is sent 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 packet according to the header information of the negotiation result packet in the L2TP format, and if so, 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 analyzes the tunnel information from the negotiation result message, and can output prompt information so that a user knows that a tunnel is established, and can also receive a configuration instruction through a configuration interface to construct a corresponding relationship between the tunnel and a target data network (a data network needing to be accessed through the tunnel), and the control message interaction module 501 synchronizes the analyzed tunnel information and the corresponding relationship between the constructed 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 forwarded to the L2TP server by the user plane network element.
When the user terminal UE needs to access the target data network, a session (PDU session) from the user terminal UE to the target data network is first constructed, and session related information is recorded through a session information table, where the session information table in the present application includes 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 a first service packet in GTP-U format (denoted as service packet F) to the target data network, the first encapsulation/decapsulation module 502 of the user plane network element decapsulates the service packet F of GTP-U after receiving the service packet F in GTP-U format, to obtain an 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 the fast forwarding table is the first service packet, the fast forwarding table is not yet established), and can 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 message 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, the fast forwarding table records a session identifier, the fast forwarding module 503 searches a session information table according to the session identifier, obtains information of a corresponding target tunnel according to the identifier of the 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 L2TP format; the method comprises the steps of obtaining corresponding target tunnel information according to the identification of a target data network in a session table, inquiring a routing forwarding table to determine an interface for sending a service message F in an L2TP format, and then sending the service message F in the L2TP format through the determined interface, so that a target network server receives the service message F in the L2TP format through a target tunnel.
After receiving the L2TP format service message (denoted as a feedback service message) sent by the L2TP server through the N6 interface, the user plane network element transmits the L2TP format feedback service message to the second encapsulation/decapsulation module 504 through UDP PORT1701 protocol information in the L2TP format feedback service message.
The second encapsulation/decapsulation module 504 determines that the feedback service message in the L2TP format is a service message according to header information of the feedback service message in the L2TP format, decapsulates the feedback service message in the L2TP format, and sends the feedback service message 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 message, finds corresponding GTP-U header information according to the fast forwarding table, and sends the feedback service message to the first encapsulation/decapsulation module 502.
The first encapsulation/decapsulation module 502 encapsulates the feedback service packet into a feedback service packet in a GTP-U format, and sends the feedback service packet in the GTP-U format to the radio access network RAN through the N3 interface, and the RAN forwards the feedback service packet in the 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 GTP-U format service packet (denoted as service packet NF) to the target data network again, the first encapsulation/decapsulation module 502 of the user plane network element receives the GTPU format service packet NF, decapsulates the GTPU service packet NF to obtain the 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 the five-tuple in the original service message NF, and determines that the target data network corresponds to the target tunnel according to the fast forwarding table; the service message NF is forwarded to the second encapsulation/decapsulation module 504.
The second encapsulation/decapsulation module 504 encapsulates the service packet NF into a service packet NF in the L2TP format; the method comprises the steps of obtaining corresponding target tunnel information according to the identification of a target data network in a session table, inquiring a routing forwarding table to determine an interface for sending a service message NF in an L2TP format, and then sending the service message NF in the L2TP format through the determined interface, so that a target network server receives the service message NF in the L2TP format through a target tunnel.
Corresponding to the method embodiment, the present application further provides a user plane network element, and a schematic structural diagram of the user plane network element is shown in fig. 6, which 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 communication with each other through the communication bus 4.
The processor 1 may be a central processing unit CPU, or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement embodiments of the present application, or the like.
The memory 3 may comprise a high-speed RAM memory, and may also 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, the processor 1 may call the program stored in the memory 3, the program being for:
receiving a first service message in a first format sent by terminal equipment to a target data network;
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 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.
Alternatively, the refinement function and the extension function of the program may be described with reference to the above.
The embodiment of the application also provides a storage medium, which may store a program adapted to be executed by a processor, the program being configured to:
receiving a first service message in a first format sent by terminal equipment to a target data network;
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 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.
Alternatively, the refinement function and the extension function of the program may be described with reference to the 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 solution. 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 this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
It should be understood that in the embodiments of the present application, the claims, the various embodiments, and the features may be combined with each other, so as to solve the foregoing technical problems.
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 may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in 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, random Access Memory), a magnetic disk, or an optical disk, or 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 (8)

1. A communication method for a user plane network element, the method comprising:
receiving a first service message in a first format sent by terminal equipment to a target data network;
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 which can be transmitted in the target tunnel;
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 target tunnel is constructed according to the tunnel negotiation parameters pre-configured in the user plane network element; constructing the target tunnel according to the tunnel negotiation parameters, including: transmitting 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 target network server after constructing the target tunnel based on the negotiation parameters, wherein the negotiation result message carries information of the target tunnel; and storing information of the target tunnel for communication with the target network server through the target tunnel.
2. The method of claim 1, the determining whether a target tunnel exists connecting the user plane network element and a target network server, comprising:
searching whether a quick forwarding table corresponding to the first service message exists or not;
and under the condition that the fast forwarding table is searched, if the fast forwarding table records the target tunnel information, determining that the target tunnel exists.
3. The method of claim 1, further comprising:
after the target tunnel is constructed, the corresponding relation between the target tunnel and the target data network is configured.
4. A method according to claim 3, 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 the 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 forwarding the first service message in the first format to the target data network through the target tunnel;
and establishing a rapid forwarding table based on the target tunnel corresponding to the target data network determined according to the session information table, wherein the rapid forwarding table is recorded with session identifiers used in the first service message transmission process of the first format and the information of the target tunnel corresponding to the target data network.
5. The method of claim 4, further comprising:
obtaining a quintuple in the first service message, and establishing a corresponding relation between the quintuple and the fast forwarding table;
receiving a second service message in a first format sent by the terminal equipment to the target data network, and obtaining a quintuple of the second service message;
if the five-tuple 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.
6. 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 sent by the terminal equipment to the target data network;
a determining module, configured to determine whether a target tunnel for connecting the user plane network element and a target network server exists, where the target tunnel is configured according to a tunnel negotiation parameter preconfigured in the user plane network element;
a negotiation module, configured to send a negotiation message in a second format to the target network server according to an address of the target network server in the negotiation parameters, where the negotiation message carries the negotiation parameters; receiving a negotiation result message returned by the target network server after constructing the target tunnel 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 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 forwards the first service message in the second format to the target data network.
7. A user plane network element comprising:
a memory for storing a program;
a processor for calling and executing the program in the memory, by executing the program, the respective steps of the communication method according to any one of claims 1-5.
8. A readable storage medium having stored thereon a computer program which, when executed by a processor, implements the respective steps of the communication method according to any of claims 1-5.
CN202210332846.XA 2022-03-31 2022-03-31 Communication method, device, user plane network element and storage medium Active CN114650197B (en)

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 CN114650197A (en) 2022-06-21
CN114650197B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114980359B (en) * 2022-07-28 2022-12-27 阿里巴巴(中国)有限公司 Data forwarding method, device, equipment, system and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114126085A (en) * 2022-01-28 2022-03-01 深圳艾灵网络有限公司 Industrial field bus communication method and device, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113595908A (en) * 2018-10-09 2021-11-02 华为技术有限公司 Message transmission method and device
CN111182657B (en) * 2018-11-09 2023-09-22 中兴通讯股份有限公司 Tunnel negotiation establishment method and device
WO2021184271A1 (en) * 2020-03-18 2021-09-23 华为技术有限公司 Message forwarding method and apparatus
CN113595911B (en) * 2021-09-28 2021-12-03 深圳艾灵网络有限公司 Data forwarding method and device, electronic equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114126085A (en) * 2022-01-28 2022-03-01 深圳艾灵网络有限公司 Industrial field bus communication method and device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Intel, Samsung, LG Electronics, MediaTek, Huawei, HiSilicon.S2-1903494 "Correction of UE 5GSM Core Network Capability".3GPP tsg_sa\wg2_arch.2019,(tsgs2_132_xian),全文. *

Also Published As

Publication number Publication date
CN114650197A (en) 2022-06-21

Similar Documents

Publication Publication Date Title
CN110417840B (en) Information processing method and device
JP5050849B2 (en) Remote access system and its IP address assignment method
US11153207B2 (en) Data link layer-based communication method, device, and system
CN114124618B (en) Message transmission method and electronic equipment
CN110324246B (en) Communication method and device
KR20180030023A (en) Network security architecture for cellular internet of things
KR101938623B1 (en) Openflow communication method, system, controller, and service gateway
US11134009B2 (en) Packet processing method and apparatus
CN104022936B (en) A kind of tunnel establishing method and device
CN112583705A (en) Communication method, device and system of hybrid network
KR20180051621A (en) Method, telecommunication network, user equipment, system, program and computer program product for improved handling of at least one communication exchange between a telecommunication network and at least one user equipment
EP3007389B1 (en) Gre tunnel implementation method, access point and gateway
CN114650197B (en) Communication method, device, user plane network element and storage medium
WO2017139921A1 (en) Communication method, apparatus and system based on stream control transmission protocol (sctp)
CN113765800B (en) Method, device, system, equipment and readable storage medium for transmitting message
CN110235417B (en) SDN and message forwarding method and device thereof
CN112804137B (en) Information processing method, apparatus and computer readable storage medium
KR102055911B1 (en) Signaling method for session connection, and apparatus implementing the same method
US10110426B2 (en) Method, apparatus, and system for implementing tunneling processing
CN112583688A (en) Communication method and device of hybrid network
EP3220584A1 (en) Wifi sharing method and system, home gateway and wireless local area network gateway
CN111954200B (en) Message transmission method and device
CN103986637A (en) Error message processing method and tunnel device
JP2016225672A (en) Device and method for packet relay
EP4415325A1 (en) Message processing method, apparatus and system

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