CN117177218A - Method, device and communication node for realizing network communication between terminals - Google Patents

Method, device and communication node for realizing network communication between terminals Download PDF

Info

Publication number
CN117177218A
CN117177218A CN202310961052.4A CN202310961052A CN117177218A CN 117177218 A CN117177218 A CN 117177218A CN 202310961052 A CN202310961052 A CN 202310961052A CN 117177218 A CN117177218 A CN 117177218A
Authority
CN
China
Prior art keywords
address
terminal
tunnel information
data
base station
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.)
Pending
Application number
CN202310961052.4A
Other languages
Chinese (zh)
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.)
China Telecom Technology Innovation Center
China Telecom Corp Ltd
Original Assignee
China Telecom Technology Innovation Center
China Telecom Corp 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 China Telecom Technology Innovation Center, China Telecom Corp Ltd filed Critical China Telecom Technology Innovation Center
Priority to CN202310961052.4A priority Critical patent/CN117177218A/en
Publication of CN117177218A publication Critical patent/CN117177218A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method, a device and a communication node for realizing network communication between terminals, wherein the method comprises the following steps: after receiving a first data message sent by a first base station, acquiring first service data in the first data message; if the corresponding relation between the terminal IP address and the tunnel information comprises target tunnel information corresponding to the target IP address in the first service data, generating a second data message according to the first service data and the target tunnel information; and sending the second data message to the second base station through a target tunnel corresponding to the target tunnel information, so that the second base station generates a second access message sent to the second terminal according to the first service data in the second data message. By adding the communication node for processing the first data message, the network communication between the two terminals is realized, and the data message does not need to be transmitted to the UPF network element, so that the transmission path of service data is shortened, and the transmission delay in the network communication process is reduced.

Description

Method, device and communication node for realizing network communication between terminals
Technical Field
The present invention relates to the field of network and security technologies, and in particular, to a method, an apparatus, and a communication node for implementing network communication between terminals.
Background
With the continuous emergence of emerging manufacturing, chemical and transportation industries such as intelligent home, intelligent factories, intelligent ports, intelligent chemical industry and the like, the fifth generation mobile communication technology (5th Generation Mobile Communication Technology,5G) is also widely applied to intelligent industrial scenes. In an intelligent industrial scene, demands on communication stability, timeliness, confidentiality and flexibility of terminal deployment between terminal devices are higher and higher.
In the related art, in order to realize Network communication between two terminals, a loop of terminal Data needs to be realized through a user plane function (User Plane Function, UPF) Network element and a Data Network (DN) in a 5G core Network (5 gcore,5 gc), and when two terminals with a relatively short distance in reality perform Network communication, a transmission path of service Data in a Network communication process is long, so that a transmission delay of the Network communication is also long.
Disclosure of Invention
The invention provides a method, a device and a communication node for realizing network communication between terminals, which are used for solving the problem that when two terminals with relatively close distances in reality perform network communication, the transmission delay of the network communication is relatively long due to relatively long transmission paths of service data.
In a first aspect, an embodiment of the present invention provides a method for implementing network communication between terminals, which is applied to a communication node, and includes:
after receiving a first data message sent by a first base station, acquiring first service data in the first data message, wherein the first service data is determined by the first base station according to a first access message generated by the first terminal;
if the corresponding relation between the terminal IP (Internet Protocol ) address and the tunnel information comprises target tunnel information corresponding to a destination IP address in the first service data, generating a second data message according to the first service data and the target tunnel information;
and sending the second data message to a second base station through a target tunnel corresponding to the target tunnel information, so that the second base station generates a second access message sent to a second terminal according to the first service data in the second data message.
In the method for implementing network communication between terminals provided by the embodiment of the invention, under the condition that the correspondence between the terminal IP address and the tunnel information includes the target tunnel information corresponding to the destination IP address in the first service data, generating the second data message according to the first service data and the target tunnel information, wherein the first service data is determined according to the first access message generated by the first terminal, and sending the second data message to the second base station through the target tunnel corresponding to the target tunnel information, so that the second terminal receives the second access message generated by the second base station according to the second data message, thereby implementing network communication between the first terminal and the second terminal. By transmitting the first data message carrying the first service data to the communication node, the communication node generates the second data message according to the first service data and the corresponding relation between the IP address of the terminal and the tunnel information, so as to realize network communication between the first terminal and the second terminal.
In an alternative embodiment, the tunnel information includes a downstream interface IP address and a downstream tunnel endpoint identifier;
and generating a second data message according to the first service data and the target tunnel information, wherein the second data message comprises:
and encapsulating the first service data, the downlink interface IP address and the downlink tunnel endpoint identifier into the second data message.
The method combines the IP address of the downlink interface in the target tunnel information and the endpoint identifier of the downlink tunnel into a header, and encapsulates the first service data and the determined header into a second data message, so that the second data message is a message conforming to the downlink tunnel bearing corresponding to the second terminal, and the second data message can be transmitted in the downlink tunnel.
In an optional implementation manner, the sending the second data packet to the second base station through the target tunnel corresponding to the target tunnel information includes:
and sending the second data message to the second base station through a target tunnel corresponding to the downlink tunnel endpoint identifier in the target tunnel information.
According to the method, the target tunnel is determined in the downlink tunnel according to the downlink tunnel endpoint identifier in the target tunnel information, and the second data message is sent to the second base station through the determined target tunnel. And using the downlink tunnel corresponding to the downlink tunnel endpoint identifier as a target tunnel, thereby realizing the transmission of the second data message.
In an alternative embodiment, the tunnel information further includes an upstream interface IP address and an upstream tunnel endpoint identifier;
the corresponding relation between the IP address of the terminal and the tunnel information is determined by the following modes:
receiving a protocol data unit PDU session establishment request message sent by a terminal through a base station, and sending the PDU session establishment request message to an access and mobility management function AMF network element, so that the AMF generates a PDU session resource setting request message after receiving the PDU session establishment request message;
after receiving the PDU session resource setting request message sent by the AMF network element, acquiring the uplink interface IP address and the uplink tunnel endpoint identifier from the PDU session resource setting request message, and forwarding the PDU session resource setting request message to the base station;
after receiving a PDU (protocol data unit) session resource setting response message sent by the base station, acquiring the downlink interface IP address and the downlink tunnel endpoint identifier from the PDU session resource setting response message, wherein the PDU session resource setting response message is generated after the base station receives the PDU session resource setting request message;
And after receiving second service data sent by the terminal through an uplink tunnel, acquiring a terminal IP address of the terminal in the second service data, and determining the corresponding relation between the terminal IP address and the tunnel information according to the acquired terminal IP address and the tunnel information.
Firstly, after a terminal initiates a PDU session request through a base station, determining an uplink interface IP address and an uplink tunnel endpoint identifier in tunnel information according to a PDU session resource setting request message sent by an AMF network element, and determining a downlink interface IP address and a downlink tunnel endpoint identifier in the tunnel information according to a PDU session resource setting response message sent by the base station, thereby realizing the acquisition of the tunnel information; then, after PDU session establishment is completed, determining the terminal IP address according to the second service data sent by the uplink tunnel to realize terminal IP address acquisition; and finally, determining the corresponding relation between the terminal IP address and the tunnel information according to the acquired terminal IP address and the tunnel information, so that the communication node processes the first data message according to the corresponding relation.
In an alternative embodiment, the method further comprises:
And if the corresponding relation between the terminal IP address and the tunnel information does not comprise the target tunnel information corresponding to the target IP address in the first service data, forwarding the first data message to a user plane function UPF network element so that the UPF network element distributes the received first data message.
Under the condition that the corresponding relation between the terminal IP address and the tunnel information does not comprise the target tunnel information corresponding to the destination IP address in the first service data, the method sends the first data message to the UPF network element so that the UPF network element distributes the first data message to the DN or other networks for processing.
In a second aspect, an embodiment of the present invention provides an apparatus for implementing network communication between terminals, including:
the receiving module is used for acquiring first service data from a first data message after receiving the first data message sent by a first base station, wherein the first service data is determined by the first base station according to a first access message generated by the first terminal;
the processing module is used for generating a second data message according to the first service data and the target tunnel information if the corresponding relation between the terminal Internet Protocol (IP) address and the tunnel information comprises the target tunnel information corresponding to the target IP address in the first service data;
And the sending module is used for sending the second data message to a second base station through a target tunnel corresponding to the target tunnel information, so that the second base station generates a second access message sent to a second terminal according to the first service data in the second data message.
In an alternative embodiment, the tunnel information includes a downstream interface IP address and a downstream tunnel endpoint identifier;
the processing module is specifically configured to encapsulate the first service data, the downlink interface IP address, and the downlink tunnel endpoint identifier into the second data packet.
In an alternative embodiment, the sending module is specifically configured to:
and sending the second data message to the second base station through a target tunnel corresponding to the downlink tunnel endpoint identifier in the target tunnel information.
In an alternative embodiment, the tunnel information further includes an upstream interface IP address and an upstream tunnel endpoint identifier;
the corresponding relation between the IP address of the terminal and the tunnel information is determined by the following modes:
receiving a protocol data unit PDU session establishment request message sent by a terminal through a base station, and sending the PDU session establishment request message to an access and mobility management function AMF network element, so that the AMF generates a PDU session resource setting request message after receiving the PDU session establishment request message;
After receiving the PDU session resource setting request message sent by the AMF network element, acquiring the uplink interface IP address and the uplink tunnel endpoint identifier from the PDU session resource setting request message, and forwarding the PDU session resource setting request message to the base station;
after receiving a PDU (protocol data unit) session resource setting response message sent by the base station, acquiring the downlink interface IP address and the downlink tunnel endpoint identifier from the PDU session resource setting response message, wherein the PDU session resource setting response message is generated after the base station receives the PDU session resource setting request message;
and after receiving second service data sent by the terminal through an uplink tunnel, acquiring a terminal IP address of the terminal in the second service data, and determining the corresponding relation between the terminal IP address and the tunnel information according to the acquired terminal IP address and the tunnel information.
In an alternative embodiment, the processing module is further configured to:
and if the corresponding relation between the terminal IP address and the tunnel information does not comprise the target tunnel information corresponding to the target IP address in the first service data, forwarding the first data message to a user plane function UPF network element so that the UPF network element distributes the received first data message.
In a third aspect, an embodiment of the present invention provides a communication node, including a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the method for implementing network communication between terminals according to any one of the embodiments of the first aspect, when the processor executes the computer program.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium storing computer instructions that, when run on a computer, cause the computer to perform the steps of a method of implementing inter-terminal network communications as described in any of the embodiments of the first aspect above.
The technical effects that may be achieved by the apparatus for implementing network communication between terminals disclosed in the second aspect, the communication node disclosed in the third aspect, and the computer readable storage medium disclosed in the fourth aspect are referred to the above description of the technical effects that may be achieved by the first aspect or the various possible solutions in the first aspect, and the detailed description is not repeated here.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it will be apparent that the drawings in the following description are only some embodiments of the present invention, 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 schematic diagram of a communication system according to an embodiment of the present invention;
fig. 2 is a schematic interaction flow chart for implementing network communication between terminals based on a communication system according to an embodiment of the present invention;
fig. 3a is a schematic structural diagram of first service data according to an embodiment of the present invention;
fig. 3b is a schematic structural diagram of another first service data provided in an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a first data packet according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a second data packet according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another communication system according to an embodiment of the present invention;
fig. 7 is a schematic interaction flow chart for determining a correspondence between a terminal IP address and tunnel information according to an embodiment of the present invention;
FIG. 8 is a schematic complete interaction flow chart for realizing network communication between terminals based on a communication system according to an embodiment of the present invention;
fig. 9 is a schematic flowchart of a method for implementing network communication between terminals according to an embodiment of the present invention;
fig. 10 is a schematic flowchart of a method for determining a correspondence between a terminal IP address and tunnel information according to an embodiment of the present invention;
Fig. 11 is a schematic block diagram of an apparatus for implementing network communication between terminals according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a communication node according to an embodiment of the present invention;
fig. 13 is a schematic diagram of a program product for implementing a method for network communication between terminals according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Also, in the description of the embodiments of the present invention, unless otherwise indicated, "/" means or, for example, a/B may represent a or B; the text "and/or" is merely an association relation describing the associated object, and indicates that three relations may exist, for example, a and/or B may indicate: the three cases where a exists alone, a and B exist together, and B exists alone, and furthermore, in the description of the embodiments of the present invention, "plural" means two or more than two.
The terms "first," "second," and the like, are used below for descriptive purposes only and are not to be construed as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first", "a second", or the like may explicitly or implicitly include one or more such feature, and in the description of embodiments of the invention, unless otherwise indicated, the meaning of "a plurality" is two or more.
The embodiment of the invention provides a method, a device and a communication node for realizing network communication between terminals, which are used for solving the problem that when two terminals with a relatively short distance in reality perform network communication, the transmission delay of the network communication is relatively long due to relatively long transmission paths of service data in the network communication process.
The technical scheme of the invention will be described with reference to the accompanying drawings:
in order to shorten a transmission path of service data sent by a terminal and reduce a transmission delay of network communication between terminals, an embodiment of the present invention provides a communication system, where fig. 1 shows a schematic architecture of the communication system. As shown in fig. 1, the communication system includes: a first terminal 101, a second terminal 102, a first base station 103, a second base station 104, a communication node 105, a user plane function (User Plane Function, UPF) Network element 106, and a Data Network (DN) 107.
In the network architecture, the N6 interface is a reference point between the network element 106 and the DN 107 of the UPF device 205, and is used to transmit data of a user plane, etc.
It should be noted that, in the embodiment of the present invention, the first terminal 101 and the second terminal 102 may be User Equipment (UE), a handheld terminal, a notebook computer, a cellular phone, a smart phone, a tablet computer, a handheld device, an augmented reality (augmented reality, AR) device, a Virtual Reality (VR) device, a machine type communication terminal, or other devices that can access a network, which is not limited in the embodiment of the present invention.
In addition, the first base station 103 and the second base station 104 in the embodiment of the present invention are both 5G base stations, for example, the first base station 103 may be a next generation base station (G-node-B, the next Generation Node B, gNB); in the embodiment of the present invention, a certain air interface technology (e.g., new Radio, NR) may be used between the first terminal 101 and the first base station 103, and a certain air interface technology (e.g., new Radio, NR) may also be used between the second terminal 102 and the second base station 104.
For the communication system shown in fig. 1, inter-terminal network communication can be realized as follows. As shown in fig. 2, a schematic interaction flow chart for implementing network communication between terminals based on a communication system is provided in an embodiment of the present invention, which is as follows:
In step 201, the first terminal 101 sends a first access message to the first base station 103. The first access message is generated by the first terminal 101 and carries first service data.
Step 202, after receiving the first access message sent by the first terminal 101, the first base station 103 analyzes the first access message to obtain first service data.
Optionally, the first service data includes a Payload (Payload) and an IP layer, as shown in fig. 3a, which is a schematic structural diagram of the first service data, and as can be seen from fig. 3a, the IP layer includes a source IP address (Src IP) and a destination IP address (dstep), where the source IP address (Src IP) is an IP address corresponding to the first terminal 101, and the destination IP address (dstep) is an IP address corresponding to the second terminal 102.
Illustratively, assuming that the source IP address (Src IP) is 192.168.1.151 and the destination IP address (dstep) is 192.168.1.083, the first service data is used to characterize network communication between the terminal with IP address 192.168.1.151 and the terminal with IP address 192.168.1.083.
Optionally, the first service data includes a Payload (Payload), an IP layer and a UDP layer, as shown in fig. 3b, which is a schematic structural diagram of the first service data, as can be seen from fig. 3b, the Payload (Payload) includes information to be transmitted, and the IP layer includes a source IP address (Src IP) and a destination IP address (dstep), where the source IP address (Src IP) is an IP address corresponding to the first terminal 101, and the destination IP address (dstep) is an IP address corresponding to the second terminal 102; the UDP layer includes an IP layer including an IP address (Src IP) corresponding to the first terminal 101 and an IP address (Dst IP) corresponding to the second terminal 102, a MAC layer including a MAC address (Src MAC) corresponding to the first terminal 101 and a MAC address (Dst MAC) corresponding to the second terminal 102, and the like.
It should be noted that, in the embodiment of the present invention, the specific composition structure of the first service data is related to the type of the terminal, which is not limited in the embodiment of the present invention.
In step 203, the first base station 103 determines tunnel information corresponding to the source IP address in the first service data in the correspondence between the terminal IP address and the tunnel information, and generates a first data packet according to the determined tunnel information and the first service data.
It should be noted that, the correspondence between the terminal IP address and the tunnel information may be stored in the first base station 103, or may be obtained by the first base station 103 at another device, which is not limited in the embodiment of the present invention.
Optionally, the first data packet in the embodiment of the present invention may be a GTP-U (General Packet Radio Service Tunnelling Protocol-User Plane, general packet radio service tunneling protocol User Plane) data packet; the tunnel information includes an upstream interface IP address, an upstream tunnel endpoint identifier, a downstream interface IP address, and a downstream tunnel endpoint identifier.
In a specific implementation, the first base station 103 searches, according to the first service data, an IP address consistent with the source IP address in the first service data in a correspondence between the terminal IP address and the tunnel information, and uses the tunnel information corresponding to the found IP address as the tunnel information for generating the first data packet. After determining the tunnel information in the correspondence between the terminal IP address and the tunnel information, the first base station 103 combines the uplink interface IP address and the uplink tunnel endpoint identifier (Tunnel Endpoint Identifier, TEID) in the tunnel information into a header, and encapsulates the obtained header and the first service data into a first data packet.
Optionally, in the embodiment of the present invention, the header formed by combining the uplink interface IP address and the uplink tunnel endpoint identifier in the tunnel information is a GTP header.
Optionally, in the embodiment of the present invention, the uplink interface IP address may be a UPF network element side N3 interface IP address, and the uplink tunnel endpoint identifier may be a UPF network element side GTP TEID.
The following embodiments are each described taking as an example that the first service data includes a Payload (Payload) and an IP layer:
as shown in fig. 4, an exemplary structure of a first data packet is shown, and as can be seen from fig. 4, the first data packet includes first service data and a header (GTP), where the first service data includes a Payload (Payload) and an IP layer, and the Payload (Payload) includes information that needs to be transmitted, for example, "halo"; the IP layer includes a source IP address (Src IP) corresponding to the first terminal 101 and a destination IP address (Dst IP) corresponding to the second terminal 102. The header (GTP) comprises tunnel information and a UDP layer, wherein the tunnel information (TEID) comprises an uplink TEID corresponding to the first terminal; the UDP layer comprises an IP layer and a MAC layer, the IP layer comprises an IP address (Src IP) corresponding to the first base station and an IP address (Dst IP) corresponding to the UPF network element, and the MAC layer comprises a MAC address (Src MAC) corresponding to the first base station and a MAC address (Dst MAC) corresponding to the UPF network element.
In step 204, the first base station 103 sends the first data packet to the communication node 105 through the uplink tunnel corresponding to the determined tunnel information.
In a specific implementation, the first base station 103 selects an uplink tunnel according to the determined uplink tunnel endpoint identifier in the tunnel information, and sends the first data packet to the communication node 105 through the selected uplink tunnel.
In step 205, after receiving the first data packet sent by the first base station 103, the communication node 105 parses the first data packet to obtain first service data.
Step 206, the communication node 105 determines that the correspondence between the terminal IP address and the tunnel information includes the target tunnel information corresponding to the destination IP address in the first service data, and generates a second data packet according to the first service data and the target tunnel information;
optionally, the tunnel information includes an uplink interface IP address, an uplink tunnel endpoint identifier, a downlink interface IP address, and a downlink tunnel endpoint identifier.
In a specific implementation, the communication node 105 searches, according to the obtained first service data, an IP address consistent with a destination IP address in the first service data in a correspondence between the terminal IP address and the tunnel information, and takes the tunnel information corresponding to the found IP address as the target tunnel information. After determining the target tunnel information in the correspondence between the terminal IP address and the tunnel information, the communication node 105 encapsulates the first service data, the downlink interface IP address in the target tunnel information, and the downlink tunnel endpoint identifier in the target tunnel information into a second data packet.
Specifically, the communication node 105 combines the downstream interface IP address and the downstream tunnel endpoint identifier in the target tunnel information into a header, and encapsulates the obtained header and the first service data into a second data packet.
Optionally, the second data packet in the embodiment of the present invention may be a GTP-U data packet; the header formed by combining the IP address of the uplink and downlink interfaces in the target tunnel information and the endpoint identifier of the downlink tunnel is a GTP header; the downlink interface IP address may be a second base station side N3 interface IP address, and the downlink tunnel endpoint identifier may be a second base station side GTP TEID.
As shown in fig. 5, an exemplary structure of a second data packet is shown, and as can be seen from fig. 5, the second data packet includes first service data and a header (GTP), where the first service data includes a Payload (Payload) and an IP layer, and the Payload (Payload) includes information that needs to be transmitted, for example, "halo"; the IP layer includes a source IP address (Src IP) corresponding to the first terminal 101 and a destination IP address (Dst IP) corresponding to the second terminal 102. The header (GTP) comprises tunnel information and a UDP layer, wherein the tunnel information (TEID) comprises a downlink TEID corresponding to the second terminal; the UDP layer includes an IP layer, a MAC layer, etc., where the IP layer includes an IP address (Src IP) corresponding to the UPF network element and an IP address (Dst IP) corresponding to the second base station, and the MAC layer includes a MAC address (Src MAC) corresponding to the UPF network element and a MAC address (Dst MAC) corresponding to the second base station.
It should be noted that, the correspondence between the terminal IP address and the tunnel information may be stored in the communication node 105, or may be obtained by the communication node 105 at another device, which is not limited in the embodiment of the present application.
In a specific implementation, the correspondence between the terminal IP address and the tunnel information may be presented in a list, as shown in table 1, which is a correspondence list between the terminal IP address and the tunnel information:
TABLE 1
In step 207, the communication node 105 sends the second data packet to the second base station 104 through the target tunnel corresponding to the target tunnel information.
It should be noted that, in the embodiment of the present application, the first base station 103 and the second base station 104 may be two independent base stations, or may be the same base station, which is not limited in the embodiment of the present application.
In a specific implementation, the communication node 105 determines a target tunnel in the downlink tunnel according to the downlink tunnel endpoint identifier in the target tunnel information, and sends the second data packet to the second base station 104 through the determined target tunnel.
In step 208, after receiving the second data packet sent by the communication node 105, the second base station 104 parses the second data packet to obtain the first service data, and encapsulates the first service data into a second access packet.
Step 209, the second base station 104 sends the second access message to the second terminal 102.
In the method for implementing network communication between terminals provided by the embodiment of the invention, under the condition that the correspondence between the terminal IP address and the tunnel information includes the target tunnel information corresponding to the destination IP address in the first service data, generating the second data message according to the first service data and the target tunnel information, wherein the first service data is determined according to the first access message generated by the first terminal, and sending the second data message to the second base station through the target tunnel corresponding to the target tunnel information, so that the second terminal receives the second access message generated by the second base station according to the second data message, thereby implementing network communication between the first terminal and the second terminal. By transmitting the first data message carrying the first service data to the communication node, the communication node generates the second data message according to the first service data and the corresponding relation between the IP address of the terminal and the tunnel information, so as to realize network communication between the first terminal and the second terminal.
In the above communication system, the communication node 105 is disposed between the base station and the UPF network element 106, and when the data exchange between the first terminal 101 and the second terminal 102 is performed, communication between the uplink tunnel and the downlink tunnel can be implemented only by the communication node 105. Especially in the industrial manufacturing scene of a large number of application 5G networking, the real distance between machines is short, and is limited by the fact that the 5G networking cannot be directly communicated and accessed, so that the transmission distance of service data between two machines is long, and the transmission delay is increased, therefore, the method has wide application prospect in the industrial manufacturing scene of a large number of application 5G networking.
In a specific implementation, the correspondence between the terminal IP address and the tunnel information in the embodiment of the present invention is determined before the network communication is performed between the first terminal 101 and the second terminal 102.
The following specifically describes a procedure for determining a correspondence relationship between a terminal IP address and tunnel information, taking the first terminal 101 as an example:
As shown in fig. 6, a schematic structural diagram of a communication system includes a first terminal 101, a first base station 103, a communication node 105, a UPF network element 106, and an access and mobility management function (Access and Mobility Management Function, AMF) network element 601, where the UPF network element 106 and the AMF network element 601 are all part of a 5gc 600. In the network architecture, the N2 interface is a reference point of the first base station 103 and the AMF network element 601, and is used for sending Non-Access Stratum (NAS) signaling messages and the like; the N3 interface is a reference point between the first base station 103 and the UPF network element 106, and is used for transmitting data of a user plane and the like; the communication node 105 is connected between the first base station 103 and the 5gc 600 for the relay of signaling.
It should be noted that, in the embodiment of the present invention, the communication node 105 may be disposed in any device between the first base station 103 and the 5gc 600, for example, in an embedded device, and the communication node 105 may also be used as an external pendant of the first base station 103, which is not limited in the embodiment of the present invention.
The communication node has low dependence on hardware equipment, can be realized in any logic position between the base station and the 5GC, and has high flexibility of deployment position.
For the communication system in fig. 6, the correspondence between the IP address of the terminal and the tunnel information may be determined, as shown in fig. 7, which is a schematic interaction flow chart for determining the correspondence between the IP address of the terminal and the tunnel information according to an embodiment of the present invention, as follows:
in step 701, the first terminal 101 starts 5G surfing.
In step 702, the first terminal 101 sends a PDU session establishment request message to the first base station 103 after starting 5G internet surfing.
Alternatively, the PDU session establishment request message in the embodiment of the present invention may be PDU Session Establishment Request signaling.
In step 703, after receiving the PDU session establishment request message sent by the first terminal 101, the first base station 103 sends the PDU session establishment request message to the communication node 105.
In step 704, after receiving the PDU session establishment request message sent by the first base station 103, the communication node 105 sends the PDU session establishment request message to the AMF network element 601.
In step 705, after the amf network element 601 receives the PDU session establishment request message sent by the communication node 105, it generates a PDU session resource setting request message.
Alternatively, the PDU session resource setting request message in the embodiment of the present invention may be PDU Session Resource Setup Request signaling.
In step 706, the amf network element 601 sends a PDU session resource setting request message to the communication node 105.
In step 707, after receiving the PDU transmission session resource setting request message sent by the AMF network element 601, the communication node 105 obtains the uplink interface IP address and the uplink tunnel endpoint identifier in the PDU session resource setting request message.
At step 708, the communication node 105 sends a PDU session resource setting request message to the first base station 103.
In step 709, the first base station 103 generates a PDU session resource setting response message after receiving the PDU session resource setting request message sent by the communication node 105.
Alternatively, the PDU session resource setting response message in the embodiment of the present invention may be PDU Session Resource Setup Response signaling.
The first base station 103 sends a PDU session resource setting response message to the communication node 105, step 710.
In step 711, after receiving the PDU session resource setting response message sent by the first base station 103, the communication node 105 obtains the downlink interface IP address and the downlink tunnel endpoint identifier in the PDU session resource setting response message.
At step 712, the communication node 105 sends a PDU session resource setting response message to the AMF network element 601.
In a specific implementation, after the AMF network element 601 receives the PDU session resource setting response message, the PDU session establishment is completed, that is, an uplink tunnel and a downlink tunnel for transmitting data are established between the first terminal 101 and the UPF network element 106.
In step 713, the first terminal 101 sends the second traffic data to the first base station 103.
In a specific implementation, the second service data is service data that the first terminal 101 needs to access to the DN, for example, service data that is sent during an operation of browsing a web page by using the first terminal 101.
In step 714, after receiving the second service data sent by the first terminal 101, the first base station 103 sends the second service data to the communication node 105 through the uplink tunnel.
Step 715, after receiving the second service data sent by the first base station 103, the communication node 105 obtains the terminal IP address of the first terminal 101 from the second service data;
in step 716, the communication node 105 determines the correspondence between the terminal IP address and the tunnel information according to the obtained terminal IP address, the uplink interface IP address, the uplink tunnel endpoint identifier, the downlink interface IP address, and the downlink tunnel endpoint identifier.
In step 717, the communication node 105 sends the second service data to the UPF network element 106 through the uplink tunnel.
Firstly, after a terminal initiates a PDU session request through a base station, determining an uplink interface IP address and an uplink tunnel endpoint identifier in tunnel information according to a PDU session resource setting request message sent by an AMF network element, and determining a downlink interface IP address and a downlink tunnel endpoint identifier in the tunnel information according to a PDU session resource setting response message sent by the base station, thereby realizing the acquisition of the tunnel information; then, after PDU session establishment is completed, determining the terminal IP address according to the second service data sent by the uplink tunnel to realize terminal IP address acquisition; and finally, determining the corresponding relation between the terminal IP address and the tunnel information according to the acquired terminal IP address and the tunnel information, so that the communication node processes the first data message according to the corresponding relation.
For the communication system as in fig. 1, fig. 8 shows a schematic complete interaction flow chart for implementing network communication between terminals based on the communication system, which includes the following steps:
in step 801, the first terminal 101 sends a first access message to the first base station 103. The first access message is generated by the first terminal 101 and carries first service data.
Step 802, after receiving the first access message sent by the first terminal 101, the first base station 103 analyzes the first access message to obtain first service data.
It should be noted that, the first service data is located in a Payload (Payload) portion of the first access packet, where the first service data includes a source IP address and a destination IP address, where the source IP address is an IP address corresponding to the first terminal 101, and the destination IP address is an IP address corresponding to the second terminal 102.
In step 803, the first base station 103 determines tunnel information corresponding to the source IP address in the first service data in the correspondence between the terminal IP address and the tunnel information, and generates a first data packet according to the determined tunnel information and the first service data.
It should be noted that, the correspondence between the terminal IP address and the tunnel information may be stored in the first base station 103, or may be obtained by the first base station 103 at another device, which is not limited in the embodiment of the present invention.
In step 804, the first base station 103 sends the first data packet to the communication node 105 through the uplink tunnel corresponding to the determined tunnel information.
In step 805, after receiving the first data packet sent by the first base station 103, the communication node 105 parses the first data packet to obtain first service data.
Step 806, the communication node 105 determines whether the correspondence between the terminal IP address and the tunnel information includes the destination tunnel information corresponding to the destination IP address in the first service data, and if not, steps 807 to 808 are performed, and if so, steps 809 to 812 are performed.
It should be noted that, the correspondence between the terminal IP address and the tunnel information may be stored in the communication node 105, or may be obtained by the communication node 105 at another device, which is not limited in the embodiment of the present invention.
The communication node 105 sends 807 a first data message to the UPF network element 106.
In step 808, the upf network element 106 performs distribution processing on the first data packet.
In a specific implementation, when the correspondence between the terminal IP address and the tunnel information does not include the target tunnel information corresponding to the destination IP address in the first service data, the first data packet is sent to the UPF network element, so that the UPF network element distributes the first data packet to the DN or other networks for processing.
Step 809, the communication node 105 generates a second data packet according to the first service data and the target tunnel information;
in step 810, the communication node 105 sends the second data packet to the second base station 104 through the target tunnel corresponding to the target tunnel information.
It should be noted that, in the embodiment of the present application, the first base station 103 and the second base station 104 may be two independent base stations, or may be the same base station, which is not limited in the embodiment of the present application.
In step 811, after receiving the second data packet sent by the communication node 105, the second base station 104 parses the second data packet to obtain the first service data, and encapsulates the first service data into the second access packet.
In step 812, the second base station 104 sends a second access message to the second terminal 102.
In the above method, when the correspondence between the terminal IP address and the tunnel information does not include the target tunnel information corresponding to the destination IP address in the first service data, the communication node 105 sends the first data packet to the UPF network element 106, and after receiving the first data packet, the UPF network element 106 distributes the first data packet to the DN 107, so that the DN 107 processes the first data packet to implement network communication between the two terminals. In the method for implementing network communication between terminals provided in the embodiment of the present application, when the correspondence between the terminal IP address and the tunnel information includes the target tunnel information corresponding to the destination IP address in the first service data, the first data packet is directly processed by the communication node 105, and is not required to be transmitted to the UPF network element 106 and the DN 107, because the transmission end point of the service data is limited in the 5G network, that is, the first service data in the first data packet does not enter the DN 107, the probability of interception, theft and tampering by a third party can be effectively reduced, and the privacy and security of the data are improved.
Based on the same conception, the embodiment of the invention also provides a method for realizing network communication between terminals, which is applied to the communication nodes, and because the method is the method in the communication system in the embodiment of the invention, and the principle of solving the problem of the method is similar to that of the system, the implementation of the method can refer to the implementation of the system, and the repetition is omitted.
An embodiment of the present invention provides a method for implementing network communication between terminals, as shown in fig. 9, including:
step S901, after receiving a first data packet sent by a first base station, acquiring first service data in the first data packet, where the first service data is determined by the first base station according to a first access packet generated by a first terminal;
step S902, if the corresponding relation between the terminal Internet protocol IP address and the tunnel information comprises the target tunnel information corresponding to the destination IP address in the first service data, generating a second data message according to the first service data and the target tunnel information;
step S903, if the correspondence between the terminal internet protocol IP address and the tunnel information includes the target tunnel information corresponding to the destination IP address in the first service data, a second data packet is generated according to the first service data and the target tunnel information.
In an alternative embodiment, the tunnel information includes a downstream interface IP address and a downstream tunnel endpoint identifier;
generating a second data message according to the first service data and the target tunnel information, including:
and encapsulating the first service data, the downlink interface IP address and the downlink tunnel endpoint identifier into a second data message.
In an alternative embodiment, the sending the second data packet to the second base station through the target tunnel corresponding to the target tunnel information includes:
and sending the second data message to a second base station through a target tunnel corresponding to the downlink tunnel endpoint identifier in the target tunnel information.
In an alternative embodiment, the tunnel information further includes an upstream interface IP address and an upstream tunnel endpoint identifier;
as shown in fig. 10, the correspondence between the terminal IP address and the tunnel information may be determined by:
step S1001, receiving a protocol data unit PDU session establishment request message sent by a terminal through a base station, and sending the PDU session establishment request message to an access and mobility management function AMF network element, so that the AMF generates a PDU session resource setting request message after receiving the PDU session establishment request message;
Step S1002, after receiving PDU conversation resource setting request message sent by AMF network element, obtaining uplink interface IP address and uplink tunnel endpoint identifier in PDU conversation resource setting request message, and forwarding PDU conversation resource setting request message to base station;
step S1003, after receiving PDU conversation resource setting response information sent by the base station, obtaining a downlink interface IP address and a downlink tunnel endpoint identifier in the PDU conversation resource setting response information, wherein the PDU conversation resource setting response information is generated after the base station receives PDU conversation resource setting request information;
step S1004, after receiving the second service data sent by the terminal through the uplink tunnel, obtaining the terminal IP address of the terminal in the second service data, and determining the corresponding relation between the terminal IP address and the tunnel information according to the obtained terminal IP address and the tunnel information.
In an alternative embodiment, the method further comprises:
if the corresponding relation between the terminal IP address and the tunnel information does not include the target tunnel information corresponding to the destination IP address in the first service data, forwarding the first data message to a user plane function UPF network element so that the UPF network element distributes the received first data message.
Based on the same conception, the embodiment of the present invention provides a device for implementing network communication between terminals, and since the device is the device in the method in the embodiment of the present invention and the principle of the device for solving the problem is similar to that of the method, the implementation of the device can refer to the implementation of the method, and the repetition is omitted.
As shown in fig. 11, the above device includes the following modules:
the receiving module 1101 is configured to obtain first service data in a first data packet after receiving the first data packet sent by the first base station, where the first service data is determined by the first base station according to a first access packet generated by the first terminal;
the processing module 1102 is configured to generate a second data packet according to the first service data and the target tunnel information if the correspondence between the terminal IP address and the tunnel information includes the target tunnel information corresponding to the destination IP address in the first service data;
and the sending module 1103 is configured to send the second data packet to the second base station through a target tunnel corresponding to the target tunnel information, so that the second base station generates a second access packet that is sent to the second terminal according to the first service data in the second data packet.
In an alternative embodiment, the tunnel information includes a downstream interface IP address and a downstream tunnel endpoint identifier;
the processing module 1102 is specifically configured to encapsulate the first service data, the downlink interface IP address, and the downlink tunnel endpoint identifier into a second data packet.
In an alternative embodiment, the sending module 1103 is specifically configured to:
and sending the second data message to a second base station through a target tunnel corresponding to the downlink tunnel endpoint identifier in the target tunnel information.
In an alternative embodiment, the tunnel information further includes an upstream interface IP address and an upstream tunnel endpoint identifier;
the correspondence between the terminal IP address and the tunnel information is determined by:
receiving a protocol data unit PDU session establishment request message sent by a terminal through a base station, and sending the PDU session establishment request message to an access and mobility management function AMF network element, so that the AMF generates a PDU session resource setting request message after receiving the PDU session establishment request message;
after receiving a PDU session resource setting request message sent by an AMF network element, acquiring an uplink interface IP address and an uplink tunnel endpoint identifier in the PDU session resource setting request message, and forwarding the PDU session resource setting request message to a base station;
After receiving a PDU (protocol data unit) session resource setting response message sent by a base station, acquiring a downlink interface IP (Internet protocol) address and a downlink tunnel endpoint identifier from the PDU session resource setting response message, wherein the PDU session resource setting response message is generated after the base station receives a PDU session resource setting request message;
after receiving second service data sent by the terminal through the uplink tunnel, acquiring a terminal IP address of the terminal in the second service data, and determining the corresponding relation between the terminal IP address and the tunnel information according to the acquired terminal IP address and the tunnel information.
In an alternative embodiment, the processing module 1102 is further configured to:
if the corresponding relation between the terminal IP address and the tunnel information does not include the target tunnel information corresponding to the destination IP address in the first service data, forwarding the first data message to a user plane function UPF network element so that the UPF network element distributes the received first data message.
Based on the same conception, the embodiment of the present invention also provides a communication node, and since the communication node is the communication node in the method in the embodiment of the present invention, and the principle of the communication node for solving the problem is similar to that of the method, the implementation of the communication node can refer to the implementation of the method, and the repetition is omitted.
A communication node 120 according to this embodiment of the invention is described below with reference to fig. 12. The communication node 120 shown in fig. 12 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 12, the communication node 120 may be in the form of a general purpose computing device, which may be an embedded network device, for example. The components of communication node 110 may include, but are not limited to: the at least one processor 111, the at least one memory 122 storing instructions executable by the processor 111, a bus 123 connecting the different system components, including the memory 122 and the processor 121, the processor 121 being a processor of a smart device.
In one possible implementation, the processor 121 implements the following steps by executing executable instructions:
after receiving a first data message sent by a first base station, acquiring first service data in the first data message, wherein the first service data is determined by the first base station according to a first access message generated by a first terminal;
if the corresponding relation between the terminal Internet Protocol (IP) address and the tunnel information comprises target tunnel information corresponding to a target IP address in the first service data, generating a second data message according to the first service data and the target tunnel information;
And sending the second data message to the second base station through a target tunnel corresponding to the target tunnel information, so that the second base station generates a second access message sent to the second terminal according to the first service data in the second data message.
Optionally, the tunnel information includes a downlink interface IP address and a downlink tunnel endpoint identifier;
the processor 121 is specifically configured to:
and encapsulating the first service data, the downlink interface IP address and the downlink tunnel endpoint identifier into a second data message.
Optionally, the processor 121 is specifically configured to:
and sending the second data message to a second base station through a target tunnel corresponding to the downlink tunnel endpoint identifier in the target tunnel information.
Optionally, the tunnel information further includes an uplink interface IP address and an uplink tunnel endpoint identifier;
the processor 121 determines the correspondence of the terminal IP address and the tunnel information by:
receiving a protocol data unit PDU session establishment request message sent by a terminal through a base station, and sending the PDU session establishment request message to an access and mobility management function AMF network element, so that the AMF generates a PDU session resource setting request message after receiving the PDU session establishment request message;
After receiving a PDU session resource setting request message sent by an AMF network element, acquiring an uplink interface IP address and an uplink tunnel endpoint identifier in the PDU session resource setting request message, and forwarding the PDU session resource setting request message to a base station;
after receiving a PDU (protocol data unit) session resource setting response message sent by a base station, acquiring a downlink interface IP (Internet protocol) address and a downlink tunnel endpoint identifier from the PDU session resource setting response message, wherein the PDU session resource setting response message is generated after the base station receives a PDU session resource setting request message;
after receiving second service data sent by the terminal through the uplink tunnel, acquiring a terminal IP address of the terminal in the second service data, and determining the corresponding relation between the terminal IP address and the tunnel information according to the acquired terminal IP address and the tunnel information.
Optionally, the processor 121 is specifically configured to:
if the corresponding relation between the terminal IP address and the tunnel information does not include the target tunnel information corresponding to the destination IP address in the first service data, forwarding the first data message to a user plane function UPF network element so that the UPF network element distributes the received first data message.
Bus 123 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, and a local bus using any of a variety of bus architectures.
Memory 122 may include readable media in the form of volatile memory, such as Random Access Memory (RAM) 1221 and/or cache memory 1222, and may further include Read Only Memory (ROM) 1223.
Memory 122 may also include a program/utility 1225 having a set (at least one) of program modules 1224, such program modules 1224 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Communication node 120 may also communicate with one or more external devices 124 (e.g., keyboard, pointing device, etc.), one or more devices that enable a user to interact with communication node 120, and/or any device (e.g., router, modem, etc.) that enables communication node 120 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 125. And, the communication node 120 may also communicate with one or more networks, such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet, through a network adapter 126. As shown, network adapter 126 communicates with other modules of communication node 120 over bus 123. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with communication node 120, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
In some possible embodiments, the aspects of the present invention may also be implemented in the form of a program product, which includes a program code for causing a terminal device to perform the steps of the respective modules in the apparatus for implementing inter-terminal network communication according to the various exemplary embodiments of the present disclosure described in the section of the exemplary method described above, when the program product is run on the terminal device, for example, after receiving a first data packet sent by a first base station, obtaining first service data in the first data packet, where the first service data is determined by the first base station according to a first access packet generated by the first terminal; if the corresponding relation between the terminal Internet Protocol (IP) address and the tunnel information comprises target tunnel information corresponding to a target IP address in the first service data, generating a second data message according to the first service data and the target tunnel information; and sending the second data message to the second base station through a target tunnel corresponding to the target tunnel information, so that the second base station generates a second access message sent to the second terminal according to the first service data in the second data message.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
As shown in fig. 13, a program product 130 of a method of implementing inter-terminal network communication according to an embodiment of the present invention is described, which may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
It should be noted that while several modules or sub-modules of the system are mentioned in the detailed description above, such partitioning is merely exemplary and not mandatory. Indeed, the features and functions of two or more modules described above may be embodied in one module in accordance with embodiments of the present invention. Conversely, the features and functions of one module described above may be further divided into a plurality of modules to be embodied.
Furthermore, while the operations of the various modules of the inventive system are depicted in a particular order in the drawings, this is not required to either imply that the operations must be performed in that particular order or that all of the illustrated operations be performed to achieve desirable results. Additionally or alternatively, certain operations may be omitted, multiple operations combined into one operation execution, and/or one operation decomposed into multiple operation executions.
The present application is described above with reference to block diagrams and/or flowchart illustrations of methods, apparatus (systems) and/or computer program products according to embodiments of the application. It will be understood that one block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, and/or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer and/or other programmable data processing apparatus, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks.
Accordingly, the present application may be embodied in hardware and/or in software (including firmware, resident software, micro-code, etc.). Still further, the present application may take the form of a computer program product on a computer-usable or computer-readable storage medium having computer-usable or computer-readable program code embodied in the medium for use by or in connection with an instruction execution system. In the context of the present application, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

1. A method for implementing network communication between terminals, applied to a communication node, comprising:
after receiving a first data message sent by a first base station, acquiring first service data in the first data message, wherein the first service data is determined by the first base station according to a first access message generated by the first terminal;
if the corresponding relation between the terminal Internet Protocol (IP) address and the tunnel information comprises target tunnel information corresponding to a target IP address in the first service data, generating a second data message according to the first service data and the target tunnel information;
and sending the second data message to a second base station through a target tunnel corresponding to the target tunnel information, so that the second base station generates a second access message sent to a second terminal according to the first service data in the second data message.
2. The method of claim 1, wherein the tunnel information comprises a downstream interface IP address and a downstream tunnel endpoint identifier;
and generating a second data message according to the first service data and the target tunnel information, wherein the second data message comprises:
and encapsulating the first service data, the downlink interface IP address and the downlink tunnel endpoint identifier into the second data message.
3. The method of claim 2, wherein the sending the second data packet to the second base station through the target tunnel corresponding to the target tunnel information comprises:
and sending the second data message to the second base station through a target tunnel corresponding to the downlink tunnel endpoint identifier in the target tunnel information.
4. The method of claim 2, wherein the tunnel information further comprises an upstream interface IP address and an upstream tunnel endpoint identifier;
the corresponding relation between the IP address of the terminal and the tunnel information is determined by the following modes:
receiving a protocol data unit PDU session establishment request message sent by a terminal through a base station, and sending the PDU session establishment request message to an access and mobility management function AMF network element, so that the AMF generates a PDU session resource setting request message after receiving the PDU session establishment request message;
After receiving the PDU session resource setting request message sent by the AMF network element, acquiring the uplink interface IP address and the uplink tunnel endpoint identifier from the PDU session resource setting request message, and forwarding the PDU session resource setting request message to the base station;
after receiving a PDU (protocol data unit) session resource setting response message sent by the base station, acquiring the downlink interface IP address and the downlink tunnel endpoint identifier from the PDU session resource setting response message, wherein the PDU session resource setting response message is generated after the base station receives the PDU session resource setting request message;
and after receiving second service data sent by the terminal through an uplink tunnel, acquiring a terminal IP address of the terminal in the second service data, and determining the corresponding relation between the terminal IP address and the tunnel information according to the acquired terminal IP address and the tunnel information.
5. The method of any one of claims 1-4, further comprising:
and if the corresponding relation between the terminal IP address and the tunnel information does not comprise the target tunnel information corresponding to the target IP address in the first service data, forwarding the first data message to a user plane function UPF network element so that the UPF network element distributes the received first data message.
6. An apparatus for implementing network communication between terminals, comprising:
the receiving module is used for acquiring first service data from a first data message after receiving the first data message sent by a first base station, wherein the first service data is determined by the first base station according to a first access message generated by the first terminal;
the processing module is used for generating a second data message according to the first service data and the target tunnel information if the corresponding relation between the terminal Internet Protocol (IP) address and the tunnel information comprises the target tunnel information corresponding to the target IP address in the first service data;
and the sending module is used for sending the second data message to a second base station through a target tunnel corresponding to the target tunnel information, so that the second base station generates a second access message sent to a second terminal according to the first service data in the second data message.
7. The apparatus of claim 6, wherein the tunnel information comprises a downstream interface IP address and a downstream tunnel endpoint identifier;
the processing module is specifically configured to encapsulate the first service data, the downlink interface IP address, and the downlink tunnel endpoint identifier into the second data packet.
8. The apparatus of claim 6, wherein the processing module is further to:
and if the corresponding relation between the terminal IP address and the tunnel information does not comprise the target tunnel information corresponding to the target IP address in the first service data, forwarding the first data message to a user plane function UPF network element so that the UPF network element distributes the received first data message.
9. A communication node comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of the method of implementing network communication between terminals according to any of claims 1 to 5 when the computer program is executed.
10. A computer-readable storage medium storing computer instructions that, when run on a computer, cause the computer to perform the steps of the method of implementing network communication between terminals as claimed in any one of claims 1 to 5.
CN202310961052.4A 2023-08-01 2023-08-01 Method, device and communication node for realizing network communication between terminals Pending CN117177218A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310961052.4A CN117177218A (en) 2023-08-01 2023-08-01 Method, device and communication node for realizing network communication between terminals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310961052.4A CN117177218A (en) 2023-08-01 2023-08-01 Method, device and communication node for realizing network communication between terminals

Publications (1)

Publication Number Publication Date
CN117177218A true CN117177218A (en) 2023-12-05

Family

ID=88940264

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310961052.4A Pending CN117177218A (en) 2023-08-01 2023-08-01 Method, device and communication node for realizing network communication between terminals

Country Status (1)

Country Link
CN (1) CN117177218A (en)

Similar Documents

Publication Publication Date Title
CN113596191B (en) Data processing method, network element equipment and readable storage medium
US20170085392A1 (en) System, method and apparatus for data communication
US20210377930A1 (en) Data transmission method and apparatus
KR20190132815A (en) Method and apparatus for redundant transmission for ultra reliable services in 5g network system
EP4188029A1 (en) Computing task processing method, communication device and wireless network architecture
CN114244906B (en) Data traffic distribution method, device, equipment and medium
CN104619040A (en) Method and system for quickly connecting WIFI equipment
CN113572864B (en) Data processing method, network element equipment and readable storage medium
CN114727291A (en) Local distribution system, method, device, network equipment and storage medium
CN113841366B (en) Communication method and device
CN113973399A (en) Message forwarding method, device and system
CN113596917B (en) Method and device for processing GTP communication data message based on signaling assistance
WO2017185980A1 (en) Data transmission method and apparatus
EP3813481B1 (en) Information transmission methods and system
CN110401935B (en) NB-IOT (network node B-Internet of things) -based data transmission method and device, communication equipment and storage medium
WO2023072291A1 (en) Multi-hop relay connection establishment method, apparatus, and device, and medium
CN113518475A (en) Communication method, device and system
CN117177218A (en) Method, device and communication node for realizing network communication between terminals
CN114867077B (en) Multi-hop route realization method, device, equipment and storage medium
CN114666846A (en) Communication method and gateway equipment
CN109714258B (en) VDES packet data gateway and implementation method thereof
US10841792B2 (en) Network connection method, method for determining security node, and apparatus
CN114039946A (en) Message transmission method and device, electronic device and storage medium
CN114930769A (en) Method, device and system for local communication
WO2019153295A1 (en) Mobile communication system, method and device

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