WO2023001010A1 - Communication method and device - Google Patents

Communication method and device Download PDF

Info

Publication number
WO2023001010A1
WO2023001010A1 PCT/CN2022/104908 CN2022104908W WO2023001010A1 WO 2023001010 A1 WO2023001010 A1 WO 2023001010A1 CN 2022104908 W CN2022104908 W CN 2022104908W WO 2023001010 A1 WO2023001010 A1 WO 2023001010A1
Authority
WO
WIPO (PCT)
Prior art keywords
access gateway
plane data
address
terminal
teid
Prior art date
Application number
PCT/CN2022/104908
Other languages
French (fr)
Chinese (zh)
Inventor
于游洋
高晓峰
Original Assignee
华为技术有限公司
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
Priority claimed from CN202111094796.8A external-priority patent/CN115701089A/en
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023001010A1 publication Critical patent/WO2023001010A1/en

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

Definitions

  • the present application relates to the technical field of communication, and in particular to a communication method and device.
  • the fifth generation core network (5th generation Core, 5GC) supports access to the third generation partnership project (3rd generation partnership project, 3GPP) network and non-3GPP (non-3GPP) network access.
  • the non-3GPP access technology includes trusted non-3GPP (trusted non-3GPP) access, untrusted non-3GPP (untrusted non-3GPP) access and wired access.
  • the terminal can access the core network by establishing a connection with the non-3GPP access gateway.
  • the access gateway can be a trusted non-3GPP access gateway function (trusted non-3GPP gateway function, TNGF); for untrusted non-3GPP access, the access gateway can be non -3GPP conversion function (non-3GPP interworking function, N3IWF); for wired access, the access gateway may be a wired access gateway function (wireline-access gateway function, W-AGF).
  • trusted non-3GPP gateway function trusted non-3GPP gateway function
  • TNGF trusted non-3GPP gateway function
  • N3IWF non-3GPP interworking function
  • W-AGF wired access gateway function
  • the access gateway receives uplink information from the terminal, and the uplink information may be control plane data or user plane data. If the uplink information is control plane data, the access gateway can send the uplink information to the access and mobility management function (AMF) network element; if the uplink information is user plane data, the access gateway The uplink information needs to be sent to a user plane function (user plane function, UPF) network element. How the access gateway distinguishes whether the uplink information from the terminal is control plane data or user plane data is a problem that needs to be solved.
  • AMF access and mobility management function
  • the purpose of the present application is to provide a communication method and device, the method is used to enable an access gateway to distinguish whether uplink information is control plane data or user plane data.
  • the present application provides a communication method, and the method may be executed by an access gateway or components of the access gateway.
  • the access gateway receives a first data packet from the terminal, the first data packet includes a first IP header, a first GTP-U header and a first payload, and the first IP header includes the access The IP address of the gateway, the first GTP-U header includes the TEID of the access gateway; and, the access gateway according to at least one of the IP address of the access gateway and the TEID of the access gateway , determining that the first payload is control plane data or user plane data.
  • the first payload is encapsulated with a first GTP-U header
  • the first GTP-U header is encapsulated with a first UDP header
  • the first UDP header is encapsulated with a first IP header.
  • control plane data may include control plane messages, such as NAS messages, or other control plane messages except the NAS messages.
  • User plane data may include remote control service data and the like.
  • the access gateway can distinguish the uplink load according to at least one of the TEID of the access gateway included in the GTP-U header encapsulated outside the uplink load and the IP address of the access gateway included in the IP header. It is control plane data or user plane data, and a GTP-U tunnel is established between the access gateway and the terminal. Compared with the IPsec tunnel, it can simplify the process for the terminal to access the core network.
  • the IPsec-based tunnel encapsulation method needs to encapsulate a double-layer IP header outside the user plane data
  • the GTP-U tunnel-based encapsulation method needs to encapsulate a layer of IP header outside the user plane data.
  • the packet header length of the U-tunnel encapsulation method is smaller than that based on the IPsec tunnel encapsulation method, which can reduce the waste of transmission resources, time extension, and high power consumption of equipment caused by too long packet headers.
  • the access gateway determines that the first load is control plane data or user plane data according to at least one of the access gateway's IP address and the access gateway's TEID , which can include one or more of the following:
  • the access gateway determines that the first payload is the control plane data.
  • the access gateway determines that the first payload is the user plane data.
  • the access gateway determines that the first payload is the control plane data.
  • the access gateway determines that the first payload is the user plane data.
  • the access gateway determines that the first load is the control plane data.
  • the access gateway determines that the first load is the user plane data.
  • the access gateway can perform this by combining the TEID in the GTP-U header encapsulated outside the payload with the TEID allocated by the access gateway for the transmission of control plane data and the TEID allocated for transmission of user plane data, and/or, Compare the IP address of the access gateway in the IP header with the IP address allocated by the access gateway for transmitting control plane data and the IP address allocated for transmitting user plane data, so as to flexibly determine whether the load is control plane data or user plane data data.
  • the first GTP-U packet header further includes a message type field
  • the first data packet further includes a first message
  • the first message includes the first payload; in the first When a payload is the control plane data, the message type field is used to indicate the message type of the first message.
  • the GTP-U header can be encapsulated outside the payload, and can also be used as a parameter of the first message, that is, the first message is encapsulated outside the payload, and the GTP-U header is then encapsulated outside the first message.
  • the method may further include: the access gateway sending a first request message to the terminal, the first request message including The TEID of the access gateway and the IP address of the access gateway, wherein the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data; and, the access gateway Receive a first response message from the terminal, where the first response message includes the TEID of the terminal, where the TEID of the terminal is the TEID allocated by the terminal for transmitting the control plane data.
  • the IP address of the access gateway is an IP address allocated by the access gateway for transmitting the control plane data.
  • the interaction between the access gateway and the terminal can send the TEID and IP address allocated for the transmission control plane data to the terminal, so that it can be used later to identify whether the uplink load is control plane data, and to obtain the terminal as the transmission control data.
  • the TEID assigned to the plane data so that the control plane data can be sent to the terminal through the GTP-U tunnel later.
  • the method may further include: the access gateway sending a second request message to the terminal, the second request message including a protocol data unit (PDU) session identifier and the access The TEID of the gateway, wherein the TEID of the access gateway is the TEID allocated by the access gateway for the user plane data of the PDU session; the access gateway receives the second response message from the terminal, and the The second response message includes the TEID of the terminal, where the TEID of the terminal is the TEID allocated by the terminal to the user plane data of the PDU session.
  • PDU protocol data unit
  • the access gateway interacts with the terminal, and can send the TEID allocated for the user plane data of the transmission PDU session to the terminal, so that it can be subsequently used to identify whether the uplink load is the user plane data of the PDU session, and obtain the terminal
  • the second request message further includes the IP address of the access gateway, and the IP address of the access gateway is allocated by the access gateway for the user plane data of the PDU session IP address.
  • the IP address allocated by the access gateway to the user plane data of the PDU session may be the same as or different from the IP address allocated by the access gateway to the control plane data.
  • the access gateway can also allocate an IP address to the user plane data of the PDU session, so as to subsequently identify whether the uplink load is the user plane data of the PDU session.
  • the method may further include: the access gateway receiving an indication from an Access and Mobility Management Function (AMF) network element information, where the indication information is used to indicate that an Internet Security Protocol (IPsec) tunnel does not need to be established between the access gateway and the terminal.
  • AMF Access and Mobility Management Function
  • the access gateway can determine not to establish an IPsec tunnel with the terminal according to the instruction information of the AMF, so as to simplify the process for the terminal to access the core network.
  • the first IP packet header further includes the IP address of the terminal
  • the method may further include: the access gateway according to the IP address of the terminal and the IP address of the terminal The corresponding relationship with the identification information of the terminal determines the identification information of the terminal; the access gateway determines the context information of the terminal according to the identification information of the terminal.
  • the access gateway can determine which terminal the uplink load comes from according to the IP address, as well as the context information of the terminal, so as to determine the control plane network element that establishes the N2 connection with the terminal or the user that establishes the N3 connection with the terminal network element.
  • the method may further include: the access gateway receiving a second message from the access node, where the second message includes the difference between the IP address of the terminal and the identification information of the terminal. Correspondence between.
  • the method may further include: the access gateway sending a second data packet to the terminal, where the second data packet includes a second IP header, a second GTP-U header, and a second Two loads, the second IP header includes the IP address of the access gateway, and the second GTP-U header includes the TEID of the terminal; wherein, when the second load is the control plane data, The TEID of the terminal is the TEID allocated by the terminal for transmitting the control plane data, and/or the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the control plane data; or , when the second load is the user plane data, the TEID of the terminal is the TEID allocated by the terminal for transmitting the user plane data, and/or the IP address of the access gateway is the IP address allocated by the ingress gateway for transmitting user plane data.
  • the method may further include: the access gateway sending a second data packet to the terminal, where the second data packet includes a second IP header, a second GTP-U header, and a second Two loads, the second IP header includes the IP address of the access gateway, and the second GTP-U header includes the TEID of the access gateway; wherein the second load is the control plane data,
  • the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the control plane data
  • the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data.
  • the access gateway can use the TEID allocated by itself for transmitting the control plane data to send the control plane data to the terminal. Further, the terminal can obtain the TEID allocated by the access gateway for transmitting control plane data, and can send the control plane data to the access gateway based on the TEID, so that the UE does not need to allocate the TEID for transmitting control plane data to the UE through an additional message, and can The signaling interaction between the access gateway and the UE is reduced, and the utilization rate of network resources is improved.
  • the present application provides a communication method, and the method may be executed by a terminal or by components of the terminal.
  • the method includes: the terminal receives a second data packet from the access gateway, the second data packet includes a second Internet Protocol (IP) packet header, a second General Packet Radio Service Tunneling Protocol-User Plane (GTP-U) A header and a second load, the second IP header includes the IP address of the access gateway, and the second GTP-U header includes the tunnel endpoint identifier (TEID) of the terminal; and, the terminal according to the At least one of the IP address of the access gateway and the TEID of the terminal determines whether the second load is control plane data or user plane data.
  • IP Internet Protocol
  • GTP-U General Packet Radio Service Tunneling Protocol-User Plane
  • TEID tunnel endpoint identifier
  • the terminal determines that the second load is control plane data or user plane data according to at least one of the IP address of the access gateway and the TEID of the terminal, which may include the following: one or more:
  • the terminal determines that the second payload is the control plane data.
  • the terminal determines that the second payload is the user plane data.
  • the terminal determines that the second payload is the control plane data.
  • the terminal determines that the second payload is the user plane data.
  • the terminal determines that the second payload is the control plane data.
  • the terminal determines that the second payload is the user plane data.
  • the second GTP-U packet header further includes a message type field
  • the second data packet further includes a third message
  • the third message includes the second payload; in the first
  • the message type field is used to indicate the message type of the third message.
  • the method before the terminal receives the second data packet from the access gateway, the method further includes: the terminal receives a first request message from the access gateway, and the first request message Including the TEID of the access gateway and the IP address of the access gateway, wherein the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data; the terminal sends the The access gateway sends a first response message, where the first response message includes the TEID of the terminal, where the TEID of the terminal is the TEID allocated by the terminal for transmitting the control plane data.
  • the method may further include: the terminal receiving a second request message from the access gateway, where the second request message includes a protocol data unit (PDU) session identifier and the access The TEID of the ingress gateway, wherein the TEID of the access gateway is the TEID allocated by the access gateway for the user plane data of the PDU session; the terminal sends a second response message to the access gateway, and the The second response message includes the TEID of the terminal, where the TEID of the terminal is the TEID allocated by the terminal to the user plane data of the PDU session.
  • PDU protocol data unit
  • the second request message further includes the IP address of the access gateway, and the IP address of the access gateway is allocated by the access gateway for the user plane data of the PDU session IP address.
  • the method may further include: the terminal sending a first data packet to the access gateway, where the first data packet includes a first IP header, a first GTP-U header, and a second A payload, the first IP header includes the IP address of the access gateway, and the first GTP-U header includes the TEID of the access gateway; wherein, the first payload is the control plane data
  • the IP address of the access gateway is the IP address assigned by the access gateway for transmitting the control plane data
  • the TEID of the access gateway is the IP address allocated by the access gateway for transmitting the control plane data.
  • the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the user plane data
  • the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the user plane data.
  • the present application provides a communication method, and the method may be executed by a terminal or by components of the terminal.
  • the method includes: the terminal generates a first data packet, the first data packet includes a first Internet Protocol (IP) header, a first General Packet Radio Service Tunneling Protocol-User Plane (GTP-U) and a first load,
  • IP Internet Protocol
  • GTP-U General Packet Radio Service Tunneling Protocol-User Plane
  • the first IP header includes the IP address of the access gateway
  • the first GTP-U header includes the tunnel endpoint identifier (TEID) of the access gateway
  • the first load is control plane data
  • the The IP address of the access gateway is the IP address allocated by the access gateway for transmitting the control plane data
  • the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data
  • the The first load is user plane data
  • the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the user plane data
  • the method may further include: the terminal receiving a second data packet from the access gateway, where the second data packet includes a second IP header, a second GTP-U header, and The second payload, the second IP header includes the IP address of the access gateway, and the second GTP-U header includes the TEID of the access gateway.
  • the method may further include: determining, by the terminal, that the second payload is control plane data according to at least one of the IP address of the access gateway and the TEID of the access gateway. Or it is user plane data; or, the terminal determines that the second load is control plane data or user plane data by analyzing the second load.
  • the terminal determines, according to at least one of the IP address of the access gateway and the TEID of the access gateway, that the second load is control plane data or user plane data, and may Including one or more of the following:
  • the terminal determines that the second payload is the control plane data.
  • the terminal determines that the second payload is the control plane data.
  • the terminal determines that the second payload is the control plane data.
  • the IP address allocated by the access gateway for transmitting the control plane data is the same as the IP address allocated by the access gateway for transmitting the user plane data.
  • the present application provides a communication method, and the method may be executed by an access gateway or components of the access gateway.
  • the method includes: the access gateway receives a first data packet from the terminal, the first data packet includes a first Generic Routing Encapsulation (GRE) protocol header and a first load, and the first GRE protocol header includes a first GRE key word and the first protocol type field; and, the access gateway determines, according to at least one of the first GRE keyword and the first protocol type field, that the first payload is control plane data or user plane data.
  • GRE Generic Routing Encapsulation
  • the access gateway can distinguish whether the uplink payload is control plane data or user plane data according to at least one of the GRE keyword and the protocol type field included in the GRE protocol header encapsulated outside the uplink payload, and The GRE tunnel is established between the access gateway and the terminal. Compared with the IPsec tunnel, the process for the terminal to access the core network can be simplified.
  • the IPsec-based tunnel encapsulation method needs to encapsulate a double-layer IP header outside the user plane data
  • the GRE tunnel-based encapsulation method needs to encapsulate a layer of IP header outside the user plane data, obviously based on the GRE tunnel encapsulation method
  • the header length of the data packet is smaller than that based on the IPsec tunnel encapsulation method, which can reduce the waste of transmission resources, time extension, and high power consumption of the device caused by the excessive length of the packet header.
  • the access gateway determines, according to at least one of the first GRE keyword and the first protocol type field, that the first payload is control plane data or user plane data, Can include one or more of the following:
  • the access gateway determines that the first payload is the control plane data.
  • the access gateway determines that the first payload is the control plane data.
  • the access gateway determines that the first load is the control plane data.
  • the access gateway determines that the first payload is user plane data of the PDU session.
  • PDU protocol data unit
  • the access gateway can compare the GRE keyword in the GRE protocol header encapsulated outside the payload with the keyword and PDU session identifier allocated by the access gateway for the transmission control plane data, and/or analyze the GRE protocol header The protocol type field in , to flexibly determine whether the load is control plane data or user plane data.
  • the method before the access gateway receives the first data packet from the terminal, the method further includes: the access gateway sends a first request message to the terminal, and the first request message includes The Internet Protocol (IP) address of the access gateway and the key allocated by the access gateway for transmitting the control plane data.
  • IP Internet Protocol
  • the access gateway interacts with the terminal, and can send the key assigned for the transmission control plane data to the terminal, so as to be used later to identify whether the uplink load is control plane data.
  • the method before the access gateway receives the first data packet from the terminal, the method further includes: the access gateway receiving indication information from an Access and Mobility Management Function (AMF) network element , the indication information is used to indicate that an Internet Security Protocol (IPsec) tunnel does not need to be established between the access gateway and the terminal.
  • AMF Access and Mobility Management Function
  • IPsec Internet Security Protocol
  • the first data packet further includes a first IP header
  • the first IP header includes the IP address of the terminal
  • the method further includes: the access gateway according to the terminal The IP address of the terminal, and the corresponding relationship between the IP address of the terminal and the identification information of the terminal, determine the identification information of the terminal; the access gateway determines the context of the terminal according to the identification information of the terminal information.
  • the method further includes: the access gateway receiving a second message from the access node, where the second message includes the information between the IP address of the terminal and the identification information of the terminal. corresponding relationship.
  • the method further includes: the access gateway sending a second data packet to the terminal, the second data packet includes a second GRE protocol packet header and a second payload, and the second The GRE protocol packet header includes a second GRE keyword and a second protocol type field; wherein, when the second payload is the control message, the second GRE keyword is for the access gateway to transmit the control plane A keyword for data allocation, and/or the second protocol type field is used to indicate that the second load is the control plane data; or, when the second load is user plane data of a PDU session, the The second GRE key includes the PDU session identifier.
  • the present application provides a communication method, and the method may be executed by a terminal or by components of the terminal.
  • the method includes: the terminal receives a second data packet from the access gateway, the second data packet includes a second Generic Routing Encapsulation (GRE) protocol header and a second load, and the second GRE protocol header includes a second GRE key word and a second protocol type field; and, the terminal determines, according to at least one of the second GRE keyword and the second protocol type field, that the second payload is control plane data or user plane data.
  • GRE Generic Routing Encapsulation
  • the terminal determines that the second payload is control plane data or user plane data according to at least one of the second GRE keyword and the second protocol type field, including the following One or more:
  • the terminal determines that the second payload is the control plane data.
  • the terminal determines that the second payload is the control plane data.
  • the terminal determines that the second payload is the control plane data.
  • the terminal determines that the second payload is user plane data of the PDU session.
  • PDU protocol data unit
  • the method before the terminal receives the second data packet from the access gateway, the method further includes: the terminal receives a first request message from the access gateway, and the first request message including the Internet Protocol (IP) address of the access gateway and the second GRE keyword, wherein the second GRE keyword is a keyword allocated by the access gateway for transmitting the control plane data .
  • IP Internet Protocol
  • the method further includes: the terminal sends a first data packet to the access gateway, the first data packet includes a first GRE protocol header and a first payload, and the first The GRE protocol packet header includes a first GRE keyword and a first protocol type field; wherein, when the first load is the control message, the first GRE keyword is for the access gateway to transmit the control plane A keyword for data allocation, and/or the first protocol type field is used to indicate that the first load is the control plane data; or, when the first load is user plane data of a PDU session, the The first GRE key includes the PDU session identifier.
  • the present application provides a communication method, and the method may be executed by an access gateway, or by components of the access gateway.
  • the method includes: the access gateway receives a first payload from a terminal, wherein the first payload is encapsulated with a first Transmission Control Protocol (TCP) header, or the first payload is encapsulated with a first general routing encapsulation ( GRE) protocol header; the access gateway determines whether the first payload is control plane data or user plane data according to the encapsulation mode of the first payload.
  • TCP Transmission Control Protocol
  • GRE general routing encapsulation
  • different encapsulation methods are used for the control plane data and user plane data, so that the access gateway can distinguish whether the uplink load is control plane data or user plane data according to the encapsulation mode of the received load. data.
  • the access gateway can distinguish whether the uplink load is control plane data or user plane data according to the encapsulation mode of the received load. data.
  • the IPsec-based tunnel encapsulation method needs to encapsulate a double-layer IP header outside the user plane data
  • the GRE tunnel-based encapsulation method (or TCP encapsulation method) needs to encapsulate a layer of IP header outside the user plane data.
  • the header length of the data packet based on the GRE tunnel encapsulation method is smaller than that based on the IPsec tunnel encapsulation method, which can reduce the waste of transmission resources, time extension, and high power consumption of the device caused by the overly long header of the data packet. question.
  • the first TCP header includes the port number allocated by the access gateway for transmitting the control plane data
  • the GRE keyword in the first GRE protocol header includes a protocol data unit (PDU ) session ID.
  • the access gateway determines that the first payload is control plane data or user plane data according to the encapsulation mode of the first payload, which may include one or more of the following:
  • the access gateway determines that the first payload is the control plane data.
  • the access gateway determines that the first payload is user plane data of a PDU session.
  • the access gateway can distinguish whether the load is user plane data or control plane data through the encapsulation mode of the load.
  • the first payload is encapsulated with the first TCP header, which may be: the first payload is encapsulated with a third GRE protocol header, and the third GRE protocol header is encapsulated There is the first TCP packet header.
  • the third GRE protocol packet header includes a third GRE keyword
  • the third GRE keyword is a keyword allocated by an access node to the terminal
  • the method further includes: the The access gateway determines the identification information of the terminal according to the third GRE keyword and the corresponding relationship between the third GRE keyword and the identification information of the terminal; the access gateway determines the identification information of the terminal according to the The identification information of the terminal determines the context information of the terminal.
  • the access gateway can determine which terminal the uplink load comes from and the context information of the terminal according to the GRE keyword in the GRE protocol header encapsulated outside the load, so as to determine the control plane network element that establishes an N2 connection with the terminal Or determine the user plane network element that establishes the N3 connection with the terminal.
  • the method further includes: the access gateway receiving a second message from the access node, the second message including the third GRE keyword and the identification information of the terminal Correspondence between.
  • the access gateway can obtain the GRE key assigned by the access node to the terminal, so as to subsequently use it to determine which terminal the uplink load comes from.
  • the first TCP header is encapsulated with a first Internet Protocol (IP) header
  • the first GRE protocol header is encapsulated with a first IP header
  • the first IP header is including the IP address of the terminal
  • the method further includes: determining, by the access gateway, the Identification information of the terminal; the access gateway determines the context information of the terminal according to the identification information of the terminal.
  • IP Internet Protocol
  • the method further includes: the access gateway receiving a second message from the access node, where the second message includes the information between the IP address of the terminal and the identification information of the terminal. corresponding relationship.
  • the method before the access gateway receives the first load from the terminal, the method further includes: the access gateway sends a first request message to the terminal, the first request message includes the The port number of the access gateway and the IP address of the access gateway, wherein the port number of the access gateway is the port number allocated by the access gateway for transmitting the control plane data, and the access gateway The IP address of is the IP address allocated by the access gateway for transmitting the control plane data.
  • the first request message includes the IP address allocated by the access gateway for transmitting user plane data.
  • the method before the access gateway receives the first load from the terminal, the method further includes: the access gateway receives indication information from an Access and Mobility Management Function (AMF) network element, The indication information is used to indicate that there is no need to establish an Internet Security Protocol (IPsec) tunnel between the access gateway and the terminal.
  • AMF Access and Mobility Management Function
  • the method further includes: the access gateway sending a second payload to the terminal, where the second payload is encapsulated with a second TCP header, or the second payload is encapsulated with A second GRE protocol header; wherein, when the second load is the control plane data, the second load is encapsulated with the second TCP header, and the second TCP header includes the terminal for transmission
  • the port number assigned to the control plane data or, when the second load is the user plane data of the PDU, the second load is encapsulated with a second GRE protocol header, and the GRE in the second GRE protocol header Keyword includes the PDU session identifier.
  • the second payload is encapsulated with the second TCP header, which may be: the second payload is encapsulated with a fourth GRE protocol header, and the fourth GRE protocol header is encapsulated with The second TCP header, wherein the GRE keyword in the fourth GRE protocol header is a keyword assigned by the access node to the terminal.
  • the present application provides a communication method, which may be performed by a terminal or by a component of the terminal, and the method includes: the terminal receives a second payload from an access gateway, wherein the second payload is encapsulated with The second Transmission Control Protocol (TCP) header, or the second load is encapsulated with a second Generic Routing Encapsulation (GRE) protocol header; the terminal determines that the second load is according to the encapsulation mode of the second load Control plane data or user plane data.
  • TCP Transmission Control Protocol
  • GRE Generic Routing Encapsulation
  • the second TCP header includes the port number allocated by the terminal for transmitting the control plane data
  • the GRE keyword in the second GRE protocol header includes a protocol data unit (PDU) session logo.
  • the terminal determines that the second payload is control plane data or user plane data according to the encapsulation manner of the second payload, which may include one or more of the following:
  • the terminal determines that the second payload is the control plane data.
  • the terminal determines that the first payload is user plane data of a PDU session.
  • the second payload is encapsulated with the second TCP header, including: the second payload is encapsulated with a fourth GRE protocol header, and the fourth GRE protocol header is encapsulated with The second TCP header, wherein the GRE keyword in the fourth GRE protocol header is a keyword assigned by the access node to the terminal.
  • the method before the terminal receives the second load from the access gateway, the method further includes: the terminal receives a first request message from the access gateway, and the first request message includes The port number of the access gateway and the IP address of the access gateway, wherein the port number of the access gateway is the port number allocated by the access gateway for transmitting the control plane data, and the access The IP address of the gateway is the IP address allocated by the access gateway for transmitting the control plane data.
  • the first request message further includes an IP address allocated by the access gateway for transmitting user plane data.
  • the method further includes: the terminal sending a first payload to the access gateway, where the first payload is encapsulated with a first TCP header, or the first payload is encapsulated with A first GRE protocol header; wherein, when the first load is the control plane data, the first load is encapsulated with the first TCP header, and the first TCP header includes the access gateway as The port number assigned to transmit the control plane data; or, when the first load is user plane data of a PDU, the first load is encapsulated with a first GRE protocol header, and the first GRE protocol header contains The GRE keyword includes the PDU Session Identifier.
  • the first payload is encapsulated with the first TCP header, which may be: the first payload is encapsulated with a third GRE protocol header, and the third GRE protocol header is encapsulated with The first TCP header, wherein the GRE keyword in the third GRE protocol header is a keyword assigned by the access node to the terminal.
  • the present application provides a communication method, and the method may be executed by an access node or by a component of the access node.
  • the method includes: the access node receives a first payload from a terminal, the first payload is encapsulated with a first transmission control protocol (TCP) header; the access node sends the first payload to an access gateway, wherein The first payload is encapsulated with a third Generic Routing Encapsulation (GRE) protocol header, and the third GRE protocol header is encapsulated with the third TCP header.
  • TCP transmission control protocol
  • GRE Generic Routing Encapsulation
  • the third GRE protocol packet header includes a third GRE keyword
  • the third GRE keyword is a keyword allocated by the access node to the terminal
  • the third GRE keyword is used to determine the Identification information of the terminal.
  • the TCP connection between the UE and the TNGF is disconnected at the access node, that is, a TCP connection is established between the UE and the access node, and the access node then establishes a TCP connection with the TNGF.
  • the access node After the access node receives the first payload from the terminal, it encapsulates the GRE protocol header outside the first payload, and fills in the GRE keyword in the GRE protocol header as the keyword assigned by the access node to the terminal, and then encapsulates the The first payload of is sent to the TNGF to identify which terminal the first payload comes from.
  • the TNGF can determine the identification information of the terminal sending the first payload according to the GRE keyword in the GRE protocol header, and determine the control plane network element that establishes an N2 connection with the terminal based on the identification information of the terminal, or determine the The user plane network element on which the terminal establishes an N3 connection.
  • the method may further include: the access node assigning a third GRE keyword to the terminal; the access node sending a second message to the access gateway, the first The second message includes the correspondence between the third GRE keyword and the identification information of the terminal.
  • the method may further include: the access node sending a second message to the access gateway, where the second message includes the Internet Protocol (IP) address and The correspondence between the identification information of the terminals.
  • IP Internet Protocol
  • the first TCP header is encapsulated with a first IP header, the source address in the first IP header is the IP address of the terminal, and the destination address in the first IP header is is the IP address of the access node;
  • the third TCP header is encapsulated with a third IP header, the source address in the third IP header is the IP address of the access node, and the first IP header The destination address in is the IP address of the access gateway.
  • the present application provides a communication method, and the method may be executed by an access and mobility management function network element, or by components of the access and mobility management function network element.
  • the method includes: the access and mobility management function (AMF) network element, according to at least one of the type of the terminal and the service type of the terminal, determines that there is no need to establish an Internet security protocol (IPsec) between the terminal and the access gateway. ) tunnel; the AMF network element sends indication information to the access gateway, where the indication information is used to indicate that the IPsec tunnel does not need to be established between the terminal and the access gateway.
  • IPsec Internet security protocol
  • the type of the terminal is, for example, a terminal of a smart factory (such as a robot arm, a mobile truck, etc.), an IoT device, or a low-power device.
  • the service type of the terminal is, for example, a remote control service.
  • the AMF determines, according to at least one of the type of the terminal and the service type of the terminal, that there is no need to establish an IPsec tunnel between the terminal and the access gateway, that is, a simplified 5G core network access process can be performed, and the The ingress gateway sends indication information to indicate that the access gateway does not need to establish an IPsec tunnel with the terminal, thereby simplifying the process for the terminal to access the 5G core network, and reducing the waste of transmission resources and time spent due to the IPsec encapsulation method during user plane data transmission.
  • the present application provides a communication device, including a memory, and one or more processors, the memory is coupled to the one or more processors; the memory is used to store computer programs or instructions, when the When the computer program or instruction is executed by the one or more processors, the communication device executes the method described in the above-mentioned first aspect or any design of the first aspect, or causes the communication device to execute the above-mentioned The method described in the fourth aspect or any design of the fourth aspect, or causing the communication device to execute the method described in the sixth aspect or any design of the sixth aspect.
  • the present application provides a communication device, including a memory, and one or more processors, the memory is coupled to the one or more processors; the memory is used to store computer programs or instructions, when When the computer program or instructions are executed by the one or more processors, the communication device executes the method described in the above-mentioned second aspect or any design of the second aspect, or causes the communication device to execute The method described in the above third aspect or any design of the third aspect, or make the communication device execute the method described in the above fifth aspect or any design of the fifth aspect, or make the communication The device executes the method described in the seventh aspect or any one of the designs of the seventh aspect.
  • the present application provides a communication device, including a memory, and one or more processors, the memory is coupled to the one or more processors; the memory is used to store computer programs or instructions, when When the computer program or instructions are executed by the one or more processors, the communication device is made to execute the method described in the eighth aspect or any one of the designs of the eighth aspect.
  • the present application provides a communication device, including a memory, and one or more processors, the memory is coupled to the one or more processors; the memory is used to store computer programs or instructions, when The computer program or instruction, when executed by the one or more processors, causes the communication device to perform the method described in the ninth aspect above.
  • the present application provides a communication device, including a communication unit and a processing unit, and these units or modules can perform the corresponding functions performed by the access gateway in the first aspect or any design example of the first aspect, Or perform the corresponding functions performed by the access gateway in the fourth aspect or any design example of the fourth aspect, or perform the corresponding functions performed by the access gateway in the sixth aspect or any design example of the sixth aspect Features.
  • the present application provides a communication device, including a communication unit and a processing unit. These units or modules can perform the corresponding functions performed by the terminal in any design example of the second aspect or the second aspect, or perform The corresponding function performed by the terminal in the above third aspect or any design example of the third aspect, or perform the corresponding function performed by the terminal in the above fifth aspect or any design example of the fifth aspect, or perform the above first The corresponding functions performed by the terminal in the seventh aspect or any design example of the seventh aspect.
  • the present application provides a communication device, including a communication unit and a processing unit, and these units or modules can perform the corresponding functions performed by the access node in the eighth aspect or any design example of the eighth aspect.
  • the present application provides a communication device, including a communication unit and a processing unit, and these units or modules can perform corresponding functions performed by the access and mobility management functional network element in the ninth aspect.
  • the present application provides a communication system, including the communication device in the tenth aspect and/or the communication device in the eleventh aspect; or including the communication device in the fourteenth aspect and/or the fifteenth aspect in the communication device.
  • the present application provides a communication system, including the communication device in the tenth aspect and/or the communication device in the twelfth aspect; or including the communication device in the fourteenth aspect and/or the sixteenth aspect in the communication device.
  • the present application provides a communication system, including the communication device in the tenth aspect and/or the communication device in the thirteenth aspect; or including the communication device in the fourteenth aspect and/or the seventeenth aspect in the communication device.
  • the present application provides a computer-readable storage medium, in which computer programs or instructions are stored, and when the computer programs or instructions are executed, any one of the above-mentioned first aspect or the first aspect can be realized
  • the present application provides a computer-readable storage medium, in which computer programs or instructions are stored, and when the computer programs or instructions are executed, any one of the above-mentioned second aspect or the second aspect can be realized
  • the present application provides a computer-readable storage medium, in which computer programs or instructions are stored.
  • the computer programs or instructions are executed, any one of the above-mentioned eighth aspect or the eighth aspect can be realized. method described in the project design.
  • the present application provides a computer-readable storage medium, in which a computer program or instruction is stored, and when the computer program or instruction is executed, the method described in the above-mentioned ninth aspect can be realized.
  • the present application provides a terminal device, which can implement the method described in the above-mentioned first aspect or any one of the designs of the first aspect, or implement the above-mentioned fourth aspect or any of the fourth aspects The method described in one design, or implement the method described in the sixth aspect or any design of the sixth aspect.
  • Figure 1a is a schematic diagram of a 5G network architecture based on a service architecture in an embodiment of the present application
  • Figure 1b is a schematic diagram of a 5G network architecture based on a point-to-point interface in an embodiment of the present application
  • Figure 1c is another schematic diagram of the 5G network architecture based on the point-to-point interface in the embodiment of the present application;
  • FIG. 2 is a schematic flow diagram of a communication method provided in an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a method for obtaining an IP address and a TEID for transmitting control plane data provided by an embodiment of the present application;
  • FIG. 4 is a schematic flowchart of a method for obtaining an IP address and a TEID for transmitting user plane data provided by an embodiment of the present application;
  • FIG. 5 is another schematic flowchart of a method for obtaining an IP address and a TEID for transmitting user plane data provided by an embodiment of the present application;
  • FIG. 6 is another schematic flowchart of a communication method provided in an embodiment of the present application.
  • Fig. 7 is a schematic diagram of the GRE protocol header provided by the embodiment of the present application.
  • Fig. 8 is a schematic diagram of the GRE key in the GRE protocol header provided by the embodiment of the present application.
  • FIG. 9 is a schematic flow diagram of a method for obtaining a GRE key used to transmit control plane data provided by an embodiment of the present application.
  • FIG. 10 is another schematic flowchart of the communication method provided by the embodiment of the present application.
  • FIG. 11 is a schematic flow diagram of a method for obtaining a TCP port number for transmitting control plane data provided by an embodiment of the present application
  • FIG. 12 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
  • FIG. 13 is another schematic structural diagram of a communication device provided by an embodiment of the present application.
  • FIG. 14 is another schematic flowchart of the communication method provided by the embodiment of the present application.
  • “Multiple” means two or more, and in view of this, “multiple” can also be understood as “at least two” in the embodiments of the present application.
  • “At least one” can be understood as one or more, such as one, two or more. For example, including at least one means including one, two or more, and does not limit which ones are included. For example, where at least one of A, B, and C is included, then A, B, C, A and B, A and C, B and C, or A and B and C may be included. Similarly, the understanding of descriptions such as “at least one" is similar.
  • At least one of the following or similar expressions refer to any combination of these items, including any combination of single or plural items.
  • at least one of A, B and C includes A, B, C, AB, AC, BC or ABC.
  • And/or describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently.
  • the character "/”, unless otherwise specified, generally indicates that the associated objects before and after are in an "or” relationship.
  • ordinal numerals such as “first”, “second”, “third”, and “fourth” mentioned in the embodiments of this application are used to distinguish multiple objects, and are not used to limit the order of multiple objects , timing, priority or degree of importance, and the descriptions of “first”, “second”, “third”, and “fourth” do not limit that the objects must be different.
  • FIG. 1a it is a schematic diagram of a fifth generation (5th generation, 5G) network architecture based on a service architecture.
  • the 5G network architecture shown in Figure 1a may include three parts, namely a terminal part, a data network (data network, DN) and an operator network part.
  • the functions of some of the network elements are briefly introduced and described below.
  • the operator network may include but not limited to one or more of the following network elements: network slice selection function (network slice selection function, NSSF) network element, authentication server function (authentication server function, AUSF) network element, Network exposure function (NEF) network element, network repository function (NRF) network element, access and mobility management function (access and mobility management function, AMF) network element, policy control function (policy control function (PCF) network element, unified data management (unified data management, UDM) network element, session management function (session management function, SMF) network element, access network (AN) or wireless access network (radioaccess) network, RAN), and user plane function (user plane function, UPF) network elements, etc.
  • the part other than the radio access network part may be referred to as the core network part.
  • the operator network also includes an application function (application function, AF) network element.
  • Terminal device which can be referred to as a terminal for short, is a device with wireless transceiver function, which can be deployed on land, including indoor or outdoor, handheld or vehicle-mounted; it can also be deployed on water (such as ships, etc.); Can be deployed in the air (such as aircraft, balloons and satellites, etc.).
  • the terminal device may be a tablet computer (pad), a computer with a wireless transceiver function, a virtual reality (virtual reality, VR) terminal, an augmented reality (augmented reality, AR) terminal, a wireless terminal in industrial control (industrial control), Wireless terminals in self driving, wireless terminals in remote medical, wireless terminals in smart grid, wireless terminals in transportation safety, smart city ), wireless terminals in smart home (smart home), user equipment (user equipment, UE), terminal equipment adapted to the Internet of Things (Internet of Things, IoT) (such as terminal equipment in smart factories, smart manufacturing industry terminal equipment, etc.), terminal equipment supporting sparklink short-distance communication technology, etc.
  • IoT Internet of Things
  • the above-mentioned terminal can establish a connection with the operator network through an interface provided by the operator network (for example, N1, etc.), and use services such as data and/or voice provided by the operator network.
  • the terminal can also access the DN through the operator network, and use operator services deployed on the DN, and/or services provided by a third party.
  • the above-mentioned third party may be a service party other than the operator's network and the terminal device, and may provide other services such as data and/or voice for the terminal device.
  • the specific form of expression of the above-mentioned third party can be determined according to the actual application scenario, and is not limited here.
  • the RAN is a sub-network of the operator's network and an implementation system between service nodes and terminal equipment in the operator's network.
  • the terminal equipment To access the operator's network, the terminal equipment first passes through the RAN, and then can be connected to the service node of the operator's network through the RAN.
  • a RAN device is a device that provides a wireless communication function for a terminal device, and the RAN device is also called an access network device.
  • RAN equipment includes but is not limited to: next-generation base station (g nodeB, gNB), evolved node B (evolved node B, eNB), radio network controller (radio network controller, RNC), node B (node B, NB), base station controller (base station controller, BSC), base transceiver station (base transceiver station, BTS), home base station (for example, home evolved nodeB, or home node B, HNB), baseband unit (baseBand unit, BBU) , transmission point (transmitting and receiving point, TRP), transmission point (transmitting point, TP), mobile switching center, etc.
  • next-generation base station g nodeB, gNB
  • evolved node B evolved node B
  • eNB evolved node B
  • RNC radio network controller
  • node B node B
  • base station controller base station controller
  • BTS base transceiver station
  • home base station for example, home evolved nodeB, or home node B, HNB
  • the AMF network element mainly performs functions such as mobility management and access authentication/authorization. In addition, it is also responsible for transferring user policies between UE and PCF.
  • the SMF network element mainly performs functions such as session management, execution of control policies issued by the PCF, selection of UPF, and allocation of UE Internet Protocol (internet protocol, IP) addresses.
  • the UPF network element as an interface with the data network, completes functions such as user plane data forwarding, session/flow-based charging statistics, and bandwidth limitation.
  • the UDM network element is mainly responsible for managing subscription data, user access authorization and other functions.
  • the NSSF network element is mainly responsible for managing information related to network slicing.
  • NEF network elements are mainly used to support the opening of capabilities and events.
  • the AF network element mainly transmits the requirements from the application side to the network side, for example, Quality of Service (QoS) requirements or user status event subscription.
  • QoS Quality of Service
  • the AF may be a third-party functional entity, or an application service deployed by an operator, such as an IP Multimedia Subsystem (IP Multimedia Subsystem, IMS) voice call service.
  • IP Multimedia Subsystem IP Multimedia Subsystem, IMS
  • the PCF network element is mainly responsible for policy control functions such as charging for sessions and service data flow levels, QoS bandwidth guarantee, mobility management, and UE policy decision-making.
  • the PCFs connected to AMF and SMF correspond to AM PCF (PCF for Access and Mobility Control) and SM PCF (PCF for Session Management), respectively, which may not be the same PCF entity in the actual deployment scenario.
  • the NRF network element can be used to provide a network element discovery function, and provide network element information corresponding to the network element type based on the request of other network elements.
  • NRF also provides network element management services, such as network element registration, update, de-registration, network element status subscription and push, etc.
  • AUSF network element It is mainly responsible for authenticating users to determine whether users or devices are allowed to access the network.
  • DN is a network outside the operator's network.
  • the operator's network can access multiple DNs, and various services can be deployed on the DN, which can provide data and/or voice services for terminal equipment.
  • DN is a private network of a smart factory.
  • the sensors installed in the workshop of the smart factory can be terminal devices.
  • the control server of the sensor is deployed in the DN, and the control server can provide services for the sensor.
  • the sensor can communicate with the control server, obtain instructions from the control server, and transmit the collected sensor data to the control server according to the instructions.
  • DN is a company's internal office network, and the mobile phone or computer of the company's employees can be a terminal device, and the employee's mobile phone or computer can access information and data resources on the company's internal office network.
  • Nnssf, Nausf, Nnef, Nnrf, Namf, Npcf, Nsmf, Nudm, Naf, N1, N2, N3, N4, and N6 are interface serial numbers.
  • interface serial numbers refer to the meanings defined in the 3GPP standard protocol, and there is no limitation here.
  • the 5G network architecture based on point-to-point interfaces is shown in Figure 1b.
  • the access network includes a 3GPP access network and an untrusted non-3GPP access network.
  • Access devices in the 3GPP access network may be called radio access network (radioaccess network, RAN) devices.
  • An access device in an untrusted non-3GPP access network may be called a non-3GPP interworking function (non-3GPP interworking function, N3IWF) device.
  • the N3IWF equipment may include routers and the like, for example.
  • FIG. 1b it is a schematic diagram of a 5G network architecture based on a point-to-point interface, and the introduction of the functions of the network elements can refer to the introduction of the functions of the corresponding network elements in Figure 1a, and will not be repeated here.
  • the main difference between FIG. 1b and FIG. 1a is that the interfaces between network elements in FIG. 1b are point-to-point interfaces, while the interfaces between network elements in FIG. 1a are service interfaces.
  • N1, N2, N3, N4, N6, N11, NWu, Y1, and Y2 in FIG. 1b are interface serial numbers.
  • interface serial numbers refer to the meanings defined in the 3GPP standard protocol, and there is no limitation here.
  • the 5G core network When the 5G core network supports trusted non-3GPP access, or supports wired network access, or supports trusted non-3GPP and wired network access, its 5G network architecture is similar to Figure 1b.
  • the non-trusted non-3GPP access in Figure 1b may be replaced by a trusted non-3GPP access, and the N3IWF may be replaced by a trusted non-3GPP access gateway (trusted non-3GPP gateway function, TNGF); or, Replace the untrusted non-3GPP access in Figure 1b with wired network access, and replace N3IWF with a wired network access gateway function (W-AGF).
  • TNGF trusted non-3GPP gateway function
  • W-AGF wired network access gateway function
  • FIG. 1c it is a schematic diagram of a 5G network architecture based on a point-to-point interface, and the introduction of the functions of the network elements can refer to the introduction of the corresponding network element functions in Figure 1a, and will not be repeated here.
  • the main difference between FIG. 1c and FIG. 1a is that the interfaces between network elements in FIG. 1c are point-to-point interfaces, while the interfaces between network elements in FIG. 1a are service interfaces.
  • N1, N2, N3, N4, N6, N11, NWu, and Uu in Fig. 1c are interface serial numbers.
  • interface serial numbers refer to the meaning defined in the 3GPP standard agreement, and there is no limitation here.
  • the above-mentioned network element or function may be a network element in a hardware device, or a software function running on dedicated hardware, or a virtualization function instantiated on a platform (for example, a cloud platform).
  • a platform for example, a cloud platform.
  • the foregoing network element or function may be implemented by one device, or jointly implemented by multiple devices, or may be a functional module in one device, which is not specifically limited in this embodiment of the present application.
  • the embodiment of the present application provides a communication method, which can be applied to the non-3GPP access scenario shown in FIG. 1b or FIG. 1c.
  • the access gateway is N3IWF or next generation access gateway (next generation packet data Gateway, ngPDG).
  • the access gateway is TNGF.
  • the access gateway is W-AGF.
  • the access node (also called an access device) between the terminal and the access gateway can be a wireless local area networks access point (WLAN AP), a fixed access network (fixed access network, FAN ) devices, G-nodes (G-nodes), wifi APs, Bluetooth access nodes, switches, or routers that support Starlight short-distance communication.
  • WLAN AP wireless local area networks access point
  • FAN fixed access network
  • G-nodes G-nodes
  • wifi APs G-nodes
  • Bluetooth access nodes switches, or routers that support Starlight short-distance communication.
  • the embodiment of the present application takes a trusted non-3GPP access scenario, that is, the access gateway is TNGF as an example for description.
  • the access and mobility management network elements, unified data management, and user plane network elements in this embodiment of the application can be AMF, UDM, and UPF in Figure 1a, Figure 1b, or Figure 1c, respectively, or they can be future communications such as In the sixth generation (6th generation, 6G) network, the network element having the functions of the above-mentioned AMF, UDM, and UPF is not limited in this embodiment of the present application.
  • 6G sixth generation
  • the embodiments of the present application are described by taking the above-mentioned AMF, UDM, and UPF as an example for the network elements of access and mobility management, unified data management, and user plane, respectively.
  • the terminal is UE as an example for illustration.
  • FIG. 2 shows a schematic flowchart of a communication method provided by an embodiment of the present application. As shown in FIG. 2 , this embodiment introduces the communication method provided by this embodiment from the uplink direction and the downlink direction respectively.
  • tunnel endpoint identifier tunnel endpoint identifier (tunnel endpoint identifier, TEID) allocated by TNGF for the transmission of control plane data is denoted as TNGF TEID_1, and the TEID allocated by TNGF for transmission of user plane data is denoted as TNGF TEID_2,
  • IP Internet protocol
  • the Internet protocol (internet protocol, IP) address allocated by TNGF for transmission control plane data is recorded as TNGF IP address 1
  • the IP address allocated by TNGF for transmission of user plane data is recorded as TNGF IP address 2
  • the UE is designated as transmission control plane data.
  • the TEID allocated for the plane data is denoted as UE TEID_1
  • the TEID allocated by the UE for transmitting user plane data is denoted as UE TEID_2.
  • the payload is encapsulated with a general packet radio service tunnel protocol-user plane (GTP-U) packet header
  • GTP-U packet header is encapsulated with a User Datagram Protocol (User Datagram Protocol) packet header.
  • Datagram Protocol, UDP Datagram Protocol
  • UDP User Datagram Protocol
  • the encapsulation method of the IP packet header encapsulated outside the UDP packet header is denoted as GTP-U/UDP/IP.
  • the first message (or the third message) is encapsulated with a GTP-U header
  • the GTP-U header is encapsulated with a UDP header
  • the UDP header is encapsulated with an IP header as message/GTP- U/UDP/IP.
  • S201 The UE sends a first data packet to the TNGF.
  • the TNGF receives the first data packet.
  • the UE may send the first data packet to the TNGF through the GTP-U tunnel.
  • the first data packet includes a first IP header, a first GTP-U header and a first payload.
  • the first payload is encapsulated with a first GTP-U header
  • the first GTP-U header is encapsulated with a first UDP header
  • the first UDP header is encapsulated with a first IP header.
  • the UE may encapsulate the first GTP-U header outside the first payload, encapsulate the first UDP header outside the first GTP-header, and encapsulate the first IP header outside the first UDP header, to obtain the first data packet , and send the first data packet to the TNGF through the GTP-U tunnel.
  • the load may be control plane data
  • the control plane data includes control plane messages, such as non access stratum (non access stratum, NAS) messages, or other control plane data other than NAS messages exchanged between the UE and the TNGF; It can also be user plane data, such as remote control service data.
  • the first IP packet header includes a destination IP address and a source IP address, and the destination IP address and the source IP address are respectively the IP address of the TNGF and the IP address of the UE.
  • the first GTP-U header includes the TEID of the TNGF.
  • the IP address of TNGF can be the IP address allocated by TNGF for transmitting control plane data (denoted as TNGF IP address 1), or the IP address allocated by TNGF for transmitting user plane data (denoted as TNGF IP address 2).
  • the TEID of the TNGF can be the TEID allocated by the TNGF for the transmission of control plane data (denoted as TNGF TEID_1), or the TEID allocated by the TNGF for the transmission of user plane data (denoted as TNGF TEID_2). At least one of the IP address of the TNGF or the TEID of the TNGF may be used to identify whether the first load is control plane data or user plane data.
  • the TEID of the TNGF is the TEID allocated by the TNGF for transmitting the control plane data.
  • the UE may encapsulate the first payload according to the GTP-U/UDP/IP encapsulation manner, and fill in the TEID in the GTP-U header as TNGF TEID_1 to indicate that the first payload is control plane data.
  • the IP address of the TNGF is an IP address allocated by the TNGF for transmitting the control plane data.
  • the UE may encapsulate the first payload in a GTP-U/UDP/IP encapsulation manner, and fill in the destination IP address in the IP header as TNGF IP address 1, to indicate that the first payload is control plane data.
  • the TEID of TNGF is the TEID allocated by TNGF for transmission of control plane data
  • the IP address of TNGF is the IP address allocated by TNGF for transmission of control plane data.
  • the UE can encapsulate the first payload according to the GTP-U/UDP/IP encapsulation method, fill in the TEID in the GTP-U header as TNGF TEID_1, and fill in the destination IP address in the IP header as TNGF IP Address 1, to indicate that the first payload is control plane data.
  • the TEID of the TNGF is the TEID allocated by the TNGF for transmitting user plane data.
  • the UE may encapsulate the first payload according to the GTP-U/UDP/IP encapsulation manner, and fill in the TEID in the GTP-U packet header as TNGF TEID_2 to indicate that the first payload is user plane data.
  • the IP address of the TNGF is an IP address allocated by the TNGF for transmitting user plane data.
  • the UE may encapsulate the first payload according to the GTP-U/UDP/IP encapsulation method, and fill in the destination IP address in the IP header as TNGF as TNGF IP address 2, to indicate that the first payload is the user plane data.
  • the TEID of TNGF is the TEID allocated by TNGF for transmitting user plane data
  • the IP address of TNGF is the IP address allocated by TNGF for transmitting user plane data.
  • the UE can encapsulate the first payload according to the GTP-U/UDP/IP encapsulation method, fill in the TEID in the GTP-U header as TNGF TEID_2, and fill in the destination IP address in the IP header as TNGF IP Address 2, to indicate that the first payload is user plane data.
  • the IP address allocated by TNGF for transmitting control plane data and the IP address allocated by TNGF for transmitting user plane data can be the same or different, that is, TNGF IP address 1 and TNGF IP address 2 can be the same or different, This embodiment of the present application does not limit it.
  • TNGF assigns the same IP address for transmitting control plane data and user plane data.
  • TNGF allocates an IP address for transmitting control plane data, but does not allocate an IP address for transmitting user plane data.
  • the IP address used for transmitting user plane data is the same as the IP address used for transmitting control plane data.
  • the UE can fill in the destination IP address of the IP header as the IP address allocated by TNGF for the transmission of control plane data or the IP address allocated by TNGF for the transmission of user plane data, and/or, the TEID in the GTP-U header Fill in the TEID allocated by TNGF for transmission of control plane data or the TEID allocated by TNGF for transmission of user plane data to indicate that the first load is control plane data or user plane data.
  • the UE can negotiate with TNGF to obtain the IP address and TEID allocated by TNGF for transmitting control plane data, and the IP address and TEID allocated by TNGF for transmitting user plane data; correspondingly, TNGF can also By negotiating with the UE, the TEID allocated by the UE for transmitting control plane data and the TEID allocated by the UE for transmitting user plane data are acquired.
  • the UE may receive a first request message from the TNGF, where the first request message includes the TEID allocated by the TNGF for transmission of control plane data and the IP address allocated by the TNGF for transmission of control plane data.
  • the UE may send a first response message to the TNGF, where the first response message includes the TEID allocated by the UE for transmitting control plane data.
  • the first request message and the first response message may be an extended authentication protocol (extensible authentication protocol, EAP) message or a 5G notification (5G-notification) message.
  • EAP-request extended authentication request
  • EAP-response extended authentication response
  • both the first request message and the first response message are 5G notification messages.
  • the first request message may also include a differentiated services code point (differentiated services code point, DSCP) used for transmitting control plane data.
  • DSCP differentiated services code point
  • the UE may receive a second request message from the TNGF, where the second request message includes a protocol data unit (protocol data unit, PDU) session identifier and a TEID allocated by the TNGF for transmitting user plane data of the PDU session.
  • the UE may send a second response message to the TNGF, where the second response message includes the TEID allocated by the UE for transmitting the user plane data of the PDU session.
  • PDU protocol data unit
  • Fig. 3 shows a flow chart of a method for acquiring an IP address and a TEID for transmitting control plane data provided by an embodiment of the present application. As shown in Fig. 3, the method may include the following steps.
  • S301 Establish a layer (layer, L)2 connection between the UE and the access node.
  • the UE may establish an L2 connection with the access node through bluetooth, wifi, radio frequency identification (radio frequency identification, RFID) technology, or Xinghuo short-distance communication technology.
  • the access node can be a G-node (G-node), a wifi AP, or a Bluetooth access point that supports Starlight short-distance communication technology.
  • S302 The access node sends an extended authentication request message to the UE.
  • the UE receives the extended authentication request message.
  • the access node may send an extended authentication request message or an identity (identity) message to the UE.
  • the extended authentication request message or the identity message is used to request the identification information of the UE.
  • the identification information of the UE includes at least a network access identifier (network access identifier, NAI) of the UE.
  • NAI network access identifier
  • the NAI includes the UE's device identifier and public land mobile network (public land mobile network, PLMN) information, or includes the UE's device identifier and service provider information, or includes the UE's device identifier, PLMN information and service provider information.
  • the device ID of the UE is recorded as device ID
  • the PLMN information is recorded as PLMN
  • the service provider information is recorded as Service provider name
  • the service provider information can be identified by the Star Alliance.
  • S303 The UE sends an extended authentication response message to the access node.
  • the access node receives the extended authentication response message.
  • the extended authentication response message includes the identification information of the UE.
  • the access node sends the identification information of the UE to the TNGF.
  • the TNGF receives the identification information of the UE.
  • the access node may select the TNGF for the UE according to the UE's identification information. For example, the access node may select the TNGF according to the PLMN information or service provider information included in the NAI, and send the UE's identification information to the TNGF. For example, the access node may send the identification information of the UE to the TNGF through an authentication authorization accounting (authentication authorization accounting, AAA) message.
  • AAA authentication authorization accounting
  • the TNGF sends a 5G start (5G-Start) message to the UE.
  • the UE receives the 5G start message.
  • TNGF can determine that the UE needs to access the 5G core network based on the UE's identification information. For example, if the UE's NAI includes 5G PLMN information, the TNGF determines that the UE needs to access the 5G core network, and sends the extended authentication to the UE.
  • a request message or a 5G start message ( Figure 3 takes the 5G start message as an example).
  • the extended authentication request message or the 5G start message may be used to instruct the UE to start accessing the 5G core network.
  • S306 The UE sends a registration request message (registration request message) to the AMF.
  • the AMF receives the registration request message.
  • the UE initiates a registration process for accessing the 5G core network, for example, the UE sends a registration request message to the AMF through the access node and the TNGF.
  • the registration request message may be a NAS message.
  • the registration request message includes UE type indication information and service type indication information.
  • the UE type indication information can be used to indicate the type of UE, such as indicating that the UE is a UE of a smart factory (such as a robot arm, a mobile truck, etc.); or indicating that the UE is an IoT device; or indicating that the UE is a low-power device, etc.
  • the type of UE is not limited to this.
  • the service type indication information may be used to indicate the service type of the UE, such as indicating that the service type of the UE is a remote control service, etc., and the embodiment of the present application does not limit the service type of the UE to this.
  • the UE sends the registration request message to the AMF through the access node and the TNGF can be understood as: the UE sends the registration request message to the access node, and the access node forwards the registration request message to the TNGF after receiving the registration request message, And forwarded to the AMF by the TNGF, that is, the registration request message is transparently transmitted at the access node and the TNGF.
  • the AMF sends an authentication message to the UDM.
  • the UDM receives the authentication message.
  • the authentication and authentication message is used to perform an authentication and authentication procedure for the UE.
  • S308 An authentication process is performed between the UE and the UDM.
  • the UDM sends the subscription data to the AMF.
  • the AMF receives the subscription data.
  • the UDM can send the subscription data related to the UE to the AMF.
  • the subscription data may include at least one of UE type indication information and service type indication information.
  • the AMF sends indication information to the TNGF.
  • the TNGF receives the indication information.
  • the indication information is used to indicate that there is no need to establish an IPsec tunnel between the UE and the TNGF.
  • the AMF may determine that the UE performs a simplified 5G core network access procedure according to at least one of the UE type indication information and the service type indication information. For example, if the UE is a UE of a smart factory, or an IoT device, or a low-power device, the AMF may determine that the UE performs a simplified 5G core network access process. For another example, if the service type of the UE is a remote control service, the AMF may determine that the UE performs a simplified 5G core network access procedure.
  • the simplified 5G core network access process means that there is no need to establish an IPsec tunnel between the UE and the TNGF.
  • an unencrypted IPsec tunnel is established between UE and TNGF; for an untrusted non-3GPP access scenario, an encrypted IPsec tunnel is established between UE and N3IWF. That is, regardless of the trusted non-3GPP access scenario or the untrusted non-3GPP access scenario, an IPsec tunnel can be established between the UE and its corresponding access gateway.
  • an IPsec tunnel can be established between the UE and its corresponding access gateway.
  • multiple signaling interactions between multiple network elements are required, and the complexity is high.
  • the encapsulation method based on the IPsec tunnel needs to encapsulate a double-layer IP header outside the user plane data, resulting in a longer length of the header of the encapsulated data packet, which consumes more transmission resources, and will Increase the delay required for device encapsulation or decapsulation, thereby increasing the power consumption of the device.
  • the AMF determines that the UE can perform a simplified 5G core network access process according to at least one of the UE type and the UE service type, that is, the IPsec tunnel process does not need to be established, and sends indication information to the TNGF to indicate TNGF does not need to establish an IPsec tunnel with the UE, which can simplify the process of UE accessing the 5G core network, and can reduce the problems of waste of transmission resources, time extension, and high power consumption of equipment caused by IPsec encapsulation in the process of user plane data transmission.
  • the AMF may send an N2 message to the TNGF, where the N2 message includes the indication information, to indicate that the TNGF does not need to establish an IPsec tunnel with the UE.
  • the N2 message may also include information such as a security key.
  • S311 The TNGF sends a first request message to the UE.
  • the UE receives the first request message.
  • the first request message may be an extended authentication request message or a 5G notification message.
  • the first request message includes TNGF IP address 1, TNGF TEID_1 and DSCP.
  • the TNGF determines that there is no need to establish an IPsec tunnel with the UE. Further, the TNGF may determine to establish a GTP-U tunnel with the UE. Specifically, the TNGF allocates the IP address of the TNGF and the TEID of the TNGF to the UE, and carries the IP address of the TNGF and the TEID of the TNGF in an extended authentication request message or a 5G notification message and sends it to the UE.
  • the IP address of TNGF is the IP address (i.e.
  • TNGF IP address 1 that is subsequently used to transmit control plane data
  • the TEID of TNGF is the TEID (i.e. TNGF TEID_1) that is subsequently used to transmit control plane data.
  • the TNGF may also determine the DSCP used for subsequent transmission of control plane data, and carry the DSCP in the extended authentication request message or 5G notification message and send it to the UE.
  • the UE After receiving the extended authentication request message or 5G notification message, the UE stores TNGF IP address 1, TNGF TEID_1 and DSCP, so as to send control plane data to TNGF through the GTP-U tunnel.
  • S312 The UE sends a first response message to the TNGF.
  • the TNGF receives the first response message.
  • the first response message may be an extended authentication response message or a 5G notification message.
  • the first response message includes UE TEID_1.
  • the UE determines to establish a GTP-U tunnel with the TNGF. Specifically, the UE assigns the TEID of the UE to the TNGF, and carries the TEID of the UE in an extended authentication response message or a 5G notification message and sends it to the TNGF.
  • the TEID of the UE is the TEID (that is, UE TEID_1) used for subsequent transmission of control plane data.
  • TNGF stores UE TEID_1, so as to send control plane data to UE through GTP-U tunnel.
  • a GTP-U tunnel can be established between the UE and the TNGF, and information for subsequent control plane data transmission, such as TNGF IP address 1, TNGF TEID_1, UE TEID_1, and DSCP, can be negotiated.
  • the GTP-U tunnel establishment process requires less interactive signaling, which can reduce the complexity of UE access to the 5G core network, and the length of the header of the data packet encapsulated based on the GTP-U encapsulation method is smaller than that based on the Psec encapsulation method, thereby reducing Due to the IPsec encapsulation method, there are problems such as waste of transmission resources, time extension, and high power consumption of equipment.
  • the first response message sent by the UE to the TNGF includes UE TEID_1.
  • UE TEID_1 may not be included in the first response message.
  • the UE TEID_1 may be a pre-configured fixed value. That is, the UE TEID_1 may or may not be included in the first response message, which is not limited in this embodiment of the present application.
  • S313 Perform a dynamic host configuration protocol (dynamic host configuration protocol, DHCP) process between the UE and the access node.
  • DHCP dynamic host configuration protocol
  • the UE sends a configuration request message to the access node, where the configuration request message is used to request the IP address of the UE.
  • the access node configures an IP address for the UE, and sends a configuration response message to the UE, where the configuration response message includes the IP address of the UE.
  • the IP address of the UE may include the IP address obtained by the UE for transmitting control plane data (denoted as UE IP address 1), and the IP address obtained by the UE for transmitting user plane data (denoted as UE IP address 2).
  • the UE may respectively obtain the IP address used for transmitting control plane data and the IP address used for transmitting user plane data through step 313 .
  • the UE IP address 1 and the UE IP address 2 may be the same or different, which is not limited in this embodiment of the present application. For ease of understanding, this embodiment of the present application is described by taking UE IP address 1 and UE IP address 2 being the same as an example.
  • S314 The access node sends a second message to the TNGF.
  • the TNGF receives the second message.
  • the second message includes the correspondence between the IP address of the UE and the identification information of the UE.
  • the second message may be an AAA message.
  • the access node may include the correspondence between the IP address of the UE and the identification information of the UE in the AAA message and send it to the TNGF.
  • the TNGF stores the correspondence between the IP address of the UE and the identification information of the UE. In this way, after the TNGF subsequently receives the uplink information (control plane data or user plane data), it can determine the sender of the uplink information.
  • UE identification information Table 1 shows an example of the correspondence between the IP address of the UE and the identification information of the UE maintained by the TNGF.
  • TNGF establishes connections with three UEs, wherein the identification information of the UE corresponding to IP address 1 is identification information 1, the identification information of the UE corresponding to IP address 2 is identification information 2, and the identification information of the UE corresponding to IP address 3 is The identification information of is identification information 3.
  • Table 1 is used as an example and does not limit the specific realization of the corresponding relationship between the IP address of the UE and the identification information of the UE maintained by the TNGF.
  • step S314 is an optional step, which is indicated by a dotted line in FIG. 3 .
  • the TNGF may also acquire the correspondence between the IP address of the UE and the identification information of the UE in other ways, which is not limited in this embodiment of the present application.
  • S315 The TNGF and the AMF send an N2 connection establishment request message.
  • the AMF receives the N2 connection establishment request message.
  • the N2 connection establishment request message is used to establish the N2 connection between the TNGF and the AMF for the UE.
  • S316 The AMF sends an N2 connection establishment response message to the TNGF.
  • the TNGF receives the N2 connection establishment response message.
  • the N2 connection establishment response message is used to indicate that the establishment of the N2 connection established for the UE is completed.
  • the N2 connection establishment response message may include a registration completed NAS message.
  • the registration completed NAS message is used to indicate that the UE has successfully registered.
  • S317 The TNGF sends a third data packet to the UE.
  • the UE receives the third data packet.
  • TNGF decapsulates the N2 message to obtain the registered NAS message, encapsulates the registered NAS message according to the GTP-U/UDP/IP encapsulation method, obtains the third data packet, and sends the Three data packets are sent to the UE.
  • TNGF encapsulates the GTP-U header outside the registered NAS message, fills the TEID in the GTP-U header as UE TEID_1; encapsulates the UDP header outside the GTP-U header; and encapsulates the IP header outside the UDP header, and Fill in the source IP address and the destination IP address in the IP packet header as the TNGF IP address 1 and the IP address of the UE respectively, to obtain the third data packet.
  • FIG. 4 shows a flow chart of a method for acquiring an IP address and a TEID for transmitting user plane data provided by an embodiment of the present application. As shown in Fig. 4, the method may include the following steps.
  • S401 The UE sends a session establishment request message to the TNGF.
  • the TNGF receives the PDU session establishment request message.
  • the UE initiates a PDU session establishment process, and sends a PDU session establishment request message (PDU session establishment request) to TNGF.
  • PDU session establishment request For example, the UE sends a PDU session establishment request message to the TNGF through the GTP-U tunnel.
  • the PDU session establishment request message is control plane data, and the UE can encapsulate the PDU session establishment request message according to the GTP-U/UDP/IP encapsulation method, obtain the encapsulated data packet, and send the encapsulated data packet to TNGF.
  • the UE encapsulates the GTP-U packet header outside the PDU session establishment request message, fills the TEID in the GTP-U with the TNGF TEID_1 obtained in the aforementioned step S311, encapsulates the PDU packet header outside the GTP-U packet header, and wraps the PDU packet header outside the PDU packet header.
  • the TNGF decapsulates it to obtain a PDU session establishment request message, and sends the PDU session establishment request message to the AMF, that is, executes the content shown in step S402.
  • the UE sends a PDU session establishment request message to the TNGF through the GTP-U tunnel.
  • the PDU session establishment request message is control plane data, and the UE can encapsulate the PDU session establishment request message according to the message/GTP-U/UDP/IP encapsulation method, obtain the encapsulated data packet, and send the encapsulated data packet Send to TNGF.
  • the UE takes the PDU session establishment request message as a parameter of the first message; encapsulates the GTP-U header outside the first message, fills the TEID in the GTP-U with the TNGF TEID_1 obtained in the aforementioned step S311, and uses the GTP-U
  • the message type field in the U header indicates the message type of the first message; then encapsulate the PDU header outside the GTP-U header, and encapsulate the IP header outside the PDU header, and fill in the source IP address and the destination IP address in the IP header respectively Obtain the encapsulated data packet for the IP address of the UE and the TNGF IP address 1 obtained in the aforementioned step S311. Further, after receiving the encapsulated data packet, the TNGF decapsulates it to obtain a PDU session establishment request message, and sends the PDU session establishment request message to the AMF, that is, executes the content shown in step S402.
  • the TNGF sends a PDU session establishment request message to the AMF.
  • the AMF receives the PDU session establishment request message.
  • the AMF network element performs a process of establishing a PDU session.
  • the AMF After the AMF receives the PDU session establishment request message, it can interact with other control plane network elements (such as AMF) and user plane network elements (UPF) to perform the PDU session establishment process.
  • AMF control plane network elements
  • UPF user plane network elements
  • S404 The AMF sends an N2 PDU session establishment request message to the TNGF.
  • TNGF receives the N2 PDU session establishment request message.
  • the N2 PDU session establishment request message includes a PDU session identification (PDU session ID).
  • the N2 PDU session establishment request message may also include a quality of service (quality of service, QoS) parameter related to the PDU session, a NAS message that the PDU session is successfully established, and the like.
  • QoS quality of service
  • S405 The TNGF sends a second request message to the UE.
  • the UE receives the second request message.
  • the second request message includes the PDU session identifier and TNGF TEID_2.
  • the second request message may also include TNGF IP address_2.
  • the TNGF may allocate a TEID of the TNGF to the UE according to the PDU session identifier, and carry the TEID of the TNGF in the second request message and send it to the UE.
  • the TNGF may also assign an IP address of the TNGF to the UE according to the PDU session identifier, and send the IP address of the TNGF to the UE in the second request message.
  • the TEID of TNGF is the TEID (i.e.
  • the UE After receiving the second request message, the UE stores the TNGF TEID_2 and the TNGF IP address 2, so as to subsequently send the user plane data of the PDU session to the TNGF through the GTP-U tunnel.
  • S406 The UE sends a second response message to the TNGF.
  • the TNGF receives the second response message.
  • the second response message includes UE TEID_2.
  • the UE may allocate the TEID of the UE to the TNGF, and carry the TEID of the UE in the second response message and send it to the UE.
  • the TEID of the UE is the TEID (that is, UE TEID_2) that is subsequently used to transmit the user plane data of the PDU session.
  • the TNGF stores the UE TEID_2, so as to subsequently send the user plane data of the PDU session to the UE through the GTP-U tunnel.
  • the second response message may also include the IP address of the UE, and the IP address may be the IP address obtained by the UE in the aforementioned step S313, or the IP address obtained by the UE in other ways. This is not limited.
  • a GTP-U tunnel can be established between the UE and the TNGF, and information for subsequently transmitting user plane data of the PDU session, such as TNGF IP address 2, TNGF TEID_2, and UE TEID_2, can be negotiated.
  • the length of the header of the data packet encapsulated based on the GTP-U encapsulation mode is shorter than that based on the Psec encapsulation mode, which can reduce the problems of waste of transmission resources, time extension, and high power consumption of equipment caused by the IPsec encapsulation mode.
  • the second response message sent by the UE to the TNGF includes UE TEID_2.
  • the second response message may not include UE TEID_2.
  • the UE TEID_2 may be a pre-configured fixed value. That is, the UE TEID_2 may or may not be included in the second response message, which is not limited in this embodiment of the present application.
  • UE TEID_1 and UE TEID_2 may be the same or different, which is not limited in this embodiment of the present application.
  • the TNGF sends a NAS message indicating that the PDU session is established successfully to the UE.
  • the UE receives the NAS message indicating that the PDU session is established successfully.
  • the NAS message that the PDU session is successfully established is control plane data
  • TNGF encapsulates the NAS message that the PDU session is successfully established according to the encapsulation method of GTP-U/UDP/IP, obtains the encapsulated data packet, and converts the encapsulated The data packet is sent to UE.
  • step S407 reference may be made to the description of the aforementioned step S317, which will not be repeated here.
  • the TNGF sends an N2 PDU session establishment response message to the AMF.
  • the AMF receives the N2 PDU session establishment response message.
  • step S408 the AMF interacts with other network elements to continue the process of establishing the PDU session until the establishment of the PDU session is completed, and the implementation process will not be repeated here.
  • one or more PDU sessions can be established between TNGF and UE.
  • the TNGF may allocate multiple TNGF TEID_2 to the multiple PDUs, and the UE may allocate multiple UE TEID_2 to the multiple PDUs.
  • each TNGF TEID_2 in a plurality of TNGF TEID_2 is different, namely TNGF can allocate different TEIDs for different PDU sessions.
  • Multiple UE TEID_2 can be the same or different, that is, the UE can allocate the same TEID or different TEIDs for different PDU sessions.
  • the following description will be made by taking the establishment of a PDU session between the TNGF and the UE as an example.
  • the UE encapsulates the GTP-U header outside the payload.
  • the UE may encapsulate the GTP-U header outside the first message, and the payload is a parameter of the first message (that is, the first message includes the payload).
  • the GTE-U header may also include the first message and a message type (message type) field.
  • the message type field may be used to indicate the message type of the first message. For example, when the load is control plane data, the value of the message type field is the first value; when the load is user plane data, the value of the message type field is the second value, and the message type field can be used to indicate the first value
  • the message type of a message when the load is control plane data, the value of the message type field is the first value; when the load is user plane data, the value of the message type field is the second value, and the message type field can be used to indicate the first value
  • the message type of a message when the load is control plane data, the value of the message type field is the first
  • the message type field is used to indicate that the payload encapsulated in the GTP header is user plane data or control plane data, that is, regardless of the payload encapsulated in the GTP header Whether it is user plane data or control plane data, the message type field remains unchanged.
  • the message type field is used to indicate the message type of the first message encapsulated in the GTP header, the first message includes control plane data, and the control plane data is NAS message and other information on the access side at least one of parameters etc.
  • the message type field ie, the second value
  • the message type field may be used to indicate the message type of the first message.
  • the second value is 256
  • the message type of the first message can be a GTP-U message (GTP-U message); or, the second value is 257, and the message type of the first message can be a GTP-U request message (GTP-U request message); or, the second value is 258, and the message type of the first message may be a GTP-U response message (GTP-U response message), etc.
  • the embodiment of the present application is not limited thereto.
  • the parameters and control plane data between TNGF and UE can be encapsulated in a GTP-U packet header for interaction, which can reduce the number of signaling interactions between TNGF and UE and improve the utilization of network resources.
  • FIG. 5 shows another schematic flow diagram for obtaining an IP address and a TEID for transmitting user plane data.
  • steps 502, S503, S504, and S507 in FIG. 5 are respectively the same as steps S402, S403, S404, and S408 in FIG. 4, the difference is that:
  • S501 The UE sends a GTP-U message to the TNGF.
  • the TNGF receives the GTP-U message.
  • the GTP-U message includes a PDU session establishment request message.
  • the UE initiates the PDU session establishment process, and the UE can encapsulate the PDU session establishment request message according to the encapsulation method in step S401, that is, the PDU session establishment request message is encapsulated in the GTP-U packet header, the GTP-U packet header is encapsulated in the UDP packet header, and the UDP packet header Encapsulated in the IP header.
  • the message type field in the GTP-U header can be 255.
  • the UE may also use the PDU session establishment request message as a parameter of the first message, and encapsulate the first message in a message/GTP-U/UDP/IP encapsulation manner.
  • the first message may be a GTP-U message.
  • the UE encapsulates the PDU session establishment request message in the GTP-U message; encapsulates the GTP-U header outside the GTP-U message, and fills the message type field in the GTP-U header with 256; and then in the GTP-U header Encapsulate the UDP header and encapsulate the IP header outside the UDP header.
  • the message type field in the GTP-U header can be 256.
  • the TEID in the GTP-U header is TNGF TEID_1
  • the destination IP address in the IP header is TNGF IP address 1.
  • the TNGF may determine that the received uplink information is control plane data according to at least one of the TEID in the GTP-U header and the destination IP address in the IP header. Further, when the message type field is 255, TNGF can determine that the content carried by the GTP-U header is control plane data; when the message type field is 256, TNGF can determine that the content carried by the GTP-U header is a GTP-U message , and then the TNGF continues to parse the GTP-U message to obtain control plane data (ie, the PDU session establishment request message).
  • control plane data ie, the PDU session establishment request message
  • S505 The TNGF sends a GTP-U request message to the UE.
  • the UE receives the GTP-U request message.
  • the GTP-U request message includes the NAS message that the PDU session is established successfully, and the TNGF IP address 2 and TNGF TEID_2 used to transmit the user plane data of the PDU.
  • the TNGF may use the NAS message that the PDU session is established successfully as a parameter of the third message, and encapsulate the third message according to the message/GTP-U/UDP/IP encapsulation manner.
  • the third message may be a GTP-U request message.
  • TNGF can encapsulate the NAS message of successful PDU session establishment, TNGF IP address 2 and TNGF TEID_2 in the GTP-U request message; encapsulate the GTP-U packet header outside the GTP-U request message, and wrap the GTP-U packet header in the GTP-U packet header Fill in the message type field as 257; then encapsulate the UDP header outside the GTP-U header, and encapsulate the IP header outside the UDP header.
  • the TEID in the GTP-U header is UE TEID_1
  • the destination IP address in the IP header is TNGF IP address 1.
  • the UE may determine that the received downlink information is control plane data according to at least one of the TEID in the GTP-U header and the source IP address in the IP header.
  • the message type field is 257, and the UE can determine that the content carried by the GTP-U header is a GTP-U request message, and then the UE continues to parse the GTP-U request message to obtain the control plane data (that is, the NAS message that the PDU session is successfully established) and parameters (i.e. TNGF IP address 2 and TNGF TEID_2).
  • S506 The UE sends a GTP-U response message to the TNGF.
  • the TNGF receives the GTP-U response message.
  • the GTP-U response message includes UE TEID_2.
  • the UE may also encapsulate UE TEID_2 in a GTP-U response message, encapsulate the GTP-U response message in a GTP-U header, encapsulate the GTP-U header in a UDP header, and encapsulate the UDP header in an IP header.
  • the message type field in the GTP-U header can be 258.
  • the TEID in the GTP-U header is TNGF TEID_1
  • the destination IP address in the IP header is TNGF IP address 1.
  • the TNGF may determine that the received uplink information is control plane data according to at least one of the TEID in the GTP-U header and the destination IP address in the IP header.
  • the message type field is 258, and TNGF can determine that the content carried by the GTP-U header is a GTP-U response message, and then TNGF continues to parse the GTP-U response message to obtain parameters (ie, UE TEID_2).
  • the UE sends the first data packet to the TNGF through the GTP-U tunnel.
  • the TNGF may execute the contents shown in step S202 to step S204.
  • the TNGF determines whether the first load is control plane data or user plane data according to at least one of the IP address of the TNGF and the TEID of the TNGF. If the TNGF determines that the first payload is user plane data, the TNGF executes the content shown in step S203; if the TNGF determines that the first payload is control plane data, the TNGF executes the content shown in step S204.
  • the TNGF After receiving the first data packet, the TNGF parses it to obtain the IP address of the TNGF, the TEID of the TNGF and the first payload in the first data packet. Further, the TNGF may determine whether the first load is control plane data or user plane data according to at least one of the IP address of the TNGF and the TEID of the TNGF.
  • TNGF can compare the IP address of TNGF in the first data packet with the TNGF IP address 1 in the aforementioned step S311 and the TNGF IP address 2 in the aforementioned step S405, or compare the TNGF in the first data packet
  • the TEID is compared with the TNGF TEID_1 in the aforementioned step S311 and the TNGF TEID_2 in the aforementioned step S405 to determine whether the first load is control plane data or user plane data.
  • TNGF can determine that the first load is control plane data; or, the IP address of TNGF is TNGF IP address 1, then TNGF can determine that the first load is control plane data; or, the TEID of TNGF is TNGF TEID_1, and the IP address of TNGF is TNGF IP address 1, then TNGF can determine that the first load is control plane data.
  • TNGF can determine that the first load is user plane data; or, if the IP address of TNGF is TNGF IP address 2, then TNGF can determine that the first load is user plane data; or, TNGF's TEID is TNGF TEID_2, and the IP address of TNGF is TNGF IP address 2, then TNGF can determine that the first load is user plane data.
  • the first IP packet header includes the IP address of the UE
  • the TNGF can determine the identification information of the UE according to the IP address of the UE and the correspondence between the IP address of the UE and the identification information of the UE, and Determine the context information of the UE according to the identification information of the UE.
  • the UE context information includes UE identification information, UE N2 interface identification, N2 interface information, N3 interface information, and the like.
  • the N2 interface information can be used to determine the control plane network element that establishes the N2 connection for the UE
  • the N3 interface information can be used to determine the user plane network element that establishes the N3 connection for the UE.
  • the first load is control plane data
  • the TNGF can determine the control plane network element that establishes the N2 connection for the UE according to the context information of the UE, and then send the first load to the control plane network element through the N2 connection
  • the TNGF may determine the user plane network element that establishes the N3 connection for the UE according to the context information of the UE, and then send the first load to the user plane network element through the N3 connection
  • Fig. The user plane network element is UPF as an example).
  • S203 The TNGF sends the first payload to the UPF.
  • the UPF receives the first load.
  • the TNGF may send the first payload to the UPF through the N3 connection.
  • the TNGF sends the first payload to the AMF.
  • the AMF receives the first load.
  • the TNGF may send the first payload to the AMF through the N2 connection.
  • Steps S201 to S204 described above describe a specific implementation process for the TNGF to distinguish whether uplink information is control plane data or user plane data in the uplink direction.
  • Steps S205a to S208 a specific implementation process for the UE to distinguish whether downlink information is control plane data or user plane data in the downlink direction is introduced.
  • S205a The UPF sends the second payload to the TNGF.
  • S205b The AMF sends the second payload to the TNGF.
  • the TNGF receives the second load.
  • the second payload may be user plane data or control plane data.
  • the TNGF may receive the second load from the UPF through the N3 connection, as shown in step S205a.
  • the second load is control plane data
  • the TNGF may receive the second load from the control plane network element (the AMF is taken as an example in FIG. 2 ) through the N2 connection, as shown in step S205b.
  • step S205b is an optional step, which is indicated by a dotted line in FIG. 2 .
  • the second load may be control plane data received by the TNGF from other control plane network elements, or may be generated by the TNGF itself.
  • S206 The TNGF generates a second data packet according to the second payload.
  • the second data packet includes a second IP header, a second GTP-U header and a second payload.
  • the second payload is encapsulated with a second GTP-U header
  • the second GTP-U header is encapsulated with a second UDP header
  • the second UDP header is encapsulated with a second IP header.
  • the TNGF may encapsulate the second GTP-U header outside the second payload, encapsulate the second UDP header outside the second GTP- header, and encapsulate the second IP header outside the second UDP header, to obtain the second data packet.
  • the second IP packet header includes a destination IP address and a source IP address, and the destination IP address and the source IP address are respectively the IP address of the UE and the IP address of the TNGF.
  • the second GTP-U header includes the TEID of the UE.
  • the IP address of TNGF can be the IP address allocated by TNGF for transmitting control plane data (denoted as TNGF IP address 1), or the IP address allocated by TNGF for transmitting user plane data (denoted as TNGF IP address 2).
  • the TEID of the UE may be the TEID allocated by the UE for transmission of control plane data (denoted as UE TEID_1), or the TEID allocated by the UE for transmission of user plane data (denoted as UE TEID_2). At least one of the IP address of the TNGF and the TEID of the UE may be used to identify whether the second load is control plane data or user plane data.
  • the TEID of the UE is the TEID allocated by the UE for transmitting the control plane data.
  • the TNGF may encapsulate the second payload according to the GTP-U/UDP/IP encapsulation manner, and fill in the TEID in the GTP-U header as UE TEID_1 to indicate that the second payload is control plane data.
  • the IP address of the TNGF is an IP address allocated by the TNGF for transmitting the control plane data.
  • TNGF can encapsulate the second payload according to the GTP-U/UDP/IP encapsulation method, and fill in the source IP address in the IP packet header as TNGF IP address 1 to indicate that the second payload is control plane data.
  • the TEID of the UE is the TEID allocated by the UE for transmission of the control plane data
  • the IP address of the TNGF is the IP address allocated by the TNGF for transmission of the control plane data.
  • TNGF can encapsulate the second payload according to the GTP-U/UDP/IP encapsulation method, fill in the TEID in the GTP-U header as UE TEID_1, and fill in the source IP address in the IP header as TNGF IP Address 1, to indicate that the second payload is control plane data.
  • the TEID of the UE is the TEID allocated by the UE for transmitting user plane data.
  • the TNGF may encapsulate the second payload according to the GTP-U/UDP/IP encapsulation manner, and fill in the TEID in the GTP-U header as UE TEID_2 to indicate that the second payload is user plane data.
  • the IP address of the TNGF is an IP address allocated by the TNGF for transmitting user plane data.
  • TNGF can encapsulate the second payload according to the encapsulation method of GTP-U/UDP/IP, and fill in the source IP address in the IP packet header as TNGF is TNGF IP address 2, to indicate that the second payload is the user plane data.
  • the TEID of the UE is the TEID allocated by the UE for transmitting user plane data
  • the IP address of the TNGF is the IP address allocated by the TNGF for transmitting user plane data.
  • TNGF can encapsulate the second payload according to the GTP-U/UDP/IP encapsulation method, fill in the TEID in the GTP-U header as UE TEID_2, and fill in the source IP address in the IP header as TNGF IP Address 2, to indicate that the second payload is user plane data.
  • S207 The TNGF sends the second data packet to the UE.
  • the UE receives the second data packet.
  • the TNGF sends the second data packet to the UE through the GTP-U tunnel.
  • the UE determines according to at least one of the IP address of the TNGF and the TEID of the UE that the second load is control plane data or user plane data.
  • the UE After receiving the second data packet, the UE parses it to obtain the IP address of the TNGF, the TEID of the UE, and the second payload in the second data packet. Further, the UE may determine whether the second load is control plane data or user plane data according to at least one of the IP address of the TNGF and the TEID of the UE.
  • the UE can compare the IP address of the TNGF in the second data packet with the TNGF IP address 1 in the aforementioned step S311 and the TNGF IP address 2 in the aforementioned step S405, or compare the IP address of the UE in the second data packet
  • the TEID is compared with the UE TEID_1 in the aforementioned step S312 and the UE TEID_2 in the aforementioned step S406 to determine whether the second load is control plane data or user plane data.
  • the UE can determine that the second load is control plane data; or, the IP address of the TNGF is TNGF IP address 1, then the UE can determine that the second load is control plane data; or, the TEID of the UE is UE TEID_1, and the IP address of TNGF is TNGF IP address 1, then the UE can determine that the second load is control plane data.
  • the UE may determine that the second load is user plane data; or, the IP address of the TNGF is TNGF IP address 2, then the UE may determine that the second load is user plane data; or, the UE's TEID is UE TEID_2, and the IP address of TNGF is TNGF IP address 2, then the UE can determine that the second load is user plane data.
  • FIG. 14 shows a schematic flowchart of a communication method provided by an embodiment of the present application.
  • both the first load and the second load are control plane data.
  • this embodiment introduces the communication method provided by this embodiment from the downlink direction and the uplink direction respectively.
  • the TEID allocated by TNGF for transmission control plane data is recorded as TNGF TEID_1
  • the IP address allocated by TNGF for transmission control plane data is recorded as TNGF IP address 1.
  • the encapsulation method in which the GTP-U header is encapsulated outside the payload, the UDP header is encapsulated outside the GTP-U header, and the IP header is encapsulated outside the UDP header is denoted as GTP-U/UDP/IP.
  • steps S1401-S1410 and S1411-S1414 in this embodiment are respectively the same as steps S301-S310 and S313-S316 in FIG. 3 , the difference is that:
  • S1415 The TNGF generates a second data packet.
  • the second data packet includes a second IP header, a second GTP-U header and a second payload.
  • the second payload is a registration completed NAS message.
  • the registered NAS message is encapsulated with a second GTP-U header
  • the second GTP-U header is encapsulated with a second UDP header
  • the second UDP header is encapsulated with a second IP header.
  • the TNGF decapsulates it to obtain a registered NAS message, and encapsulates the registered NAS message according to the GTP-U/UDP/IP encapsulation mode to obtain a second data packet.
  • TNGF encapsulates the second GTP-U header outside the registered NAS message, encapsulates the second UDP header outside the second GTP-header, and encapsulates the second IP header outside the second UDP header to obtain the second data packet .
  • the second IP packet header includes a destination IP address and a source IP address, and the destination IP address and the source IP address are respectively the IP address of the UE and the IP address of the TNGF.
  • the second GTP-U header includes the TEID of the TNGF.
  • the second payload is a registration completed NAS message, that is, the second payload is control plane data.
  • the IP address of the TNGF is TNGF IP address 1.
  • the TEID of TNGF is TNGF TEID_1.
  • the TNGF parses it to obtain a registration completed NAS message; and, according to the indication information received in step S1410, determines to establish a GTP-U tunnel with the UE, and determines to pass the GTP -
  • the U tunnel sends a NAS message of registration completion to the UE.
  • the TNGF can assign the IP address of the TNGF and the TEID of the TNGF to the UE, fill the IP address of the TNGF and the TEID of the TNGF into the second IP header and the second GTP-U header respectively, and follow the GTP-U/UDP/
  • the IP encapsulation method encapsulates the registered NAS message to obtain the second data packet.
  • the IP address of TNGF allocated by TNGF to UE is the IP address (i.e. TNGF IP address 1) for subsequent transmission of control plane data; TEID (i.e. TNGF TEID_1).
  • the TNGF may also determine the DSCP used for subsequent transmission of control plane data, and carry the DSCP in the second data packet and send it to the UE.
  • the IP address of the UE may include an IP address used to transmit control plane data (denoted as UE IP address 1) and an IP address used to transmit user plane data (denoted as UE IP address 2).
  • UE IP address 1 and the UE IP address 2 may be the same or different, which is not limited in this embodiment of the present application.
  • the IP address of the TNGF may include an IP address used to transmit control plane data (denoted as TNGF IP address 1) and an IP address used to transmit user plane data (denoted as TNGF IP address 2).
  • TNGF IP address 1 and the TNGF IP address 2 may be the same or different, which is not limited in this embodiment of the present application.
  • S1416 The TNGF sends the second data packet to the UE.
  • the UE receives the second data packet.
  • the TNGF sends the second data packet to the UE through the GTP-U tunnel.
  • S1417 The UE stores the TNGF IP address 1 and the TNGF TEID_1.
  • the UE may determine that TNGF IP address 1 is the IP address used to transmit control plane data, and determine that TNGF TEID_1 is the TEID used to transmit control plane data, and store the TNGF IP address 1 and the TNGF TEID_1. For example, after receiving the second data packet, the UE decapsulates it to obtain TNGF IP address 1, TNGF TEID_1 and the second payload. In this embodiment, the second payload is a registration completed NAS message.
  • the UE may determine that TNGF IP address 1 is the IP address used to transmit control plane data according to the NAS message of the registration completion, and determine that TNGF TEID_1 is the TEID used to transmit control plane data, and store the TNGF IP address 1 and the TNGF TEID_1, so that the UE can send control plane data to TNGF through the GTP-U tunnel based on TNGF IP address 1 and TNGF TEID_1.
  • the UE may obtain the DSCP by parsing the second data packet, and store the DSCP, so that the subsequent UE may send control plane data to the TNGF through the GTP-U tunnel based on the DSCP.
  • the TNGF may send a fourth data packet to the UE based on the TNGF IP address 1 and the TNGF TEID_1, where the fourth payload included in the fourth data packet is control plane data.
  • TNGF fills TNGF IP address 1 and TNGF TEID_1 into the IP header and GTP-U header respectively, and encapsulates the fourth load according to the GTP-U/UDP/IP encapsulation method to obtain the fourth data packet, and GTP-U The U tunnel sends the fourth data packet to the TNGF.
  • the UE parses it, and obtains the IP address of the TNGF, the TEID of the TNGF, and the fourth payload in the fourth data packet.
  • the UE may determine whether the fourth load is control plane data or user plane data according to at least one of the IP address of the TNGF and the TEID of the TNGF.
  • the IP address of the TNGF is TNGF IP address 1
  • the TEID of the TNGF is TNGF TEID_1.
  • the UE may determine that the fourth load is control plane data according to TNGF IP address 1, or according to TNGF TEID_1, or according to TNGF IP address 1 and TNGF TEID_1.
  • the UE may also determine whether the fourth payload is control plane data or user plane data by analyzing the fourth payload. That is, for the UE side, the UE can determine whether the fourth load is control plane data or user plane data through at least one of the IP address of the TNGF and the TEID of the TNGF, and can also determine whether the fourth load is control plane data or user plane data by analyzing the fourth load.
  • the user plane data is not limited in this embodiment of the application.
  • the TNGF sends the TNGF IP address 1 and TNGF TEID_1 to the UE through the registered NAS message, so that the UE can obtain the IP address and TEID allocated by the TNGF for the transmission control plane data.
  • TNGF does not need to assign TNGF IP address 1 and TNGF TEID_1 to UE through other messages (such as the extended authentication request message or 5G notification message in step S311), which can reduce the signaling interaction between TNGF and UE, and improve network resources. utilization rate.
  • TNGF can send control plane data to UE through GTP-U tunnel based on TNGF IP address 1 and TNGF TEID_1.
  • the UE sends control plane data to the TNGF through the GTP-U tunnel based on the TNGF IP address 1 and TNGF TEID_1.
  • S1418 The UE sends the first data packet to the TNGF.
  • the TNGF receives the first data packet.
  • the UE may send the first data packet to the TNGF through the GTP-U tunnel.
  • the first data packet includes a first IP header, a first GTP-U header and a first payload.
  • the first payload is control plane data, such as NAS messages (such as a PDU session establishment request, etc.).
  • the first payload is encapsulated with a first GTP-U header
  • the first GTP-U header is encapsulated with a first UDP header
  • the first UDP header is encapsulated with a first IP header.
  • the UE may encapsulate the first GTP-U header outside the first payload, encapsulate the first UDP header outside the first GTP-header, and encapsulate the first IP header outside the first UDP header, to obtain the first data packet , and send the first data packet to the TNGF through the GTP-U tunnel.
  • the first IP packet header includes a destination IP address and a source IP address, and the destination IP address and the source IP address are respectively the IP address of the TNGF and the IP address of the UE.
  • the first GTP-U header includes the TEID of the TNGF.
  • the IP address of TNGF is the IP address (denoted as TNGF IP address 1) that TNGF distributes for transmission control plane data; ). For example, the UE determines that the first payload sent to the TNGF is control plane data.
  • the UE may respectively fill in the first IP header and the first GTP-U header according to the TNGF IP address 1 and TNGF TEID_1 obtained in step S1417, and encapsulate the first load according to the GTP-U/UDP/IP encapsulation method , obtain the first data packet, and send the first data packet to the TNGF.
  • the TNGF determines according to at least one of the TNGF IP address 1 and the TNGF TEID_1 that the first payload is control plane data.
  • the TNGF After receiving the first data packet, the TNGF parses it to obtain the IP address of the TNGF, the TEID of the TNGF and the first load in the first data packet, and determines the first load according to at least one of the IP address of the TNGF and the TEID of the TNGF. Whether the load is control plane data or user plane data.
  • the IP address of the TNGF is TNGF IP address 1
  • the TEID of the TNGF is TNGF TEID_1.
  • the TNGF may determine that the first payload is control plane data according to TNGF IP address 1, or according to TNGF TEID_1, or according to TNGF IP address 1 and TNGF TEID_1.
  • S1420 The TNGF sends the first payload to the AMF.
  • the AMF receives the first load.
  • the TNGF may send the first payload to the AMF through the N2 connection.
  • FIG. 6 shows a schematic flowchart of a communication method provided by an embodiment of the present application. As shown in FIG. 6 , this embodiment introduces the communication method provided by the embodiment of the present application from the uplink direction and the downlink direction respectively.
  • GRE general routing encapsulation
  • S601 The UE sends a first data packet to the TNGF.
  • the TNGF receives the first data packet.
  • the UE may send the first data packet to the TNGF through the GRE tunnel.
  • the first data packet includes a first GRE protocol header and a first payload.
  • a GRE protocol header is encapsulated outside the first payload
  • a first IP header is encapsulated outside the first GRE protocol header.
  • the UE may encapsulate the first GRE protocol header outside the first payload, and encapsulate the first IP header outside the first GRE protocol header to obtain the first data packet, and send the first data packet to the TNGF through the GRE tunnel.
  • the first IP packet header includes a destination IP address and a source IP address, and the destination IP address and the source IP address are respectively the IP address of the TNGF and the IP address of the UE.
  • the first GRE protocol header includes a first GRE key (GRE key) and a first protocol type (protocol type) field.
  • Fig. 7 shows an example diagram of a GRE protocol packet header. As shown in FIG. 7 , the GRE protocol header includes 8 octets.
  • octet 1 of the GRE protocol header includes a check bit, a keyword (key) bit, and a sequence number (sequence number); octet 2 of the GRE protocol header includes a version number (version); octet 3-4 of the GRE protocol header is the protocol Type field; octet 5-8 of the GRE protocol header is the GRE key.
  • the check digit is used to indicate whether the checksum field is inserted into the GRE protocol header. If the check digit value is 0, it means that the GRE protocol header does not have a checksum field; if the check digit value is 1, Indicates that the checksum field is inserted into the header of the GRE protocol.
  • the keyword bit is used to indicate whether a GRE key is inserted in the GRE protocol header. If the keyword bit is 0, it means that the GRE protocol header has no GRE key; if the keyword bit is 1, it means that the GRE protocol header is inserted. Got the GRE key.
  • the first GRE key may be a keyword allocated by TNGF for transmitting control plane data, or the first GRE key includes a PDU session identifier.
  • the first protocol type field may be used to indicate that the first payload is control plane data. At least one of the first GRE key and the first protocol type field may be used to identify whether the first payload is control plane data or user plane data.
  • the first payload is control plane data
  • the first GRE key is a key assigned by TNGF for transmitting control plane data.
  • the UE can encapsulate the first payload according to the GRE/IP encapsulation method, and fill in the GRE key in the GRE protocol packet header as the keyword allocated by TNGF for the transmission control plane data, so as to indicate that the first payload is the control plane data.
  • the first payload is control plane data
  • the first protocol type field is used to indicate that the first payload is control plane data.
  • the UE may encapsulate the first payload in a GRE/IP encapsulation manner, and use the protocol type field in the GRE protocol packet header to indicate that the first payload is control plane data.
  • the protocol type field may be pre-defined, or pre-negotiated between the UE and the TNGF, etc., which is not limited in this embodiment of the present application.
  • the first load is control plane data
  • the first GRE key is a key allocated by TNGF for transmitting control plane data
  • the first protocol type field is used to indicate that the first load is control plane data.
  • the UE can encapsulate the first payload according to the GRE/IP encapsulation method, fill in the GRE key in the GRE protocol header as the keyword allocated by TNGF for the transmission control plane data, and use the protocol type field in the GRE protocol header Indicates that the first payload is control plane data.
  • the first payload is user plane data of a PDU session
  • the first GRE key includes the PDU session identifier.
  • the UE may encapsulate the first payload according to the GRE/IP encapsulation method, and fill in the GRE key in the GRE protocol header as the PDU session identifier, so as to indicate that the first payload is user plane data of the PDU session.
  • Figure 8 shows an example diagram of a GRE key. As shown in Figure 8, the UE can fill in the octet 6 of the GRE key as the PDU session identifier.
  • octet 5 of GRE key includes QoS flow ID (QoS flow ID, QFI), which is used to identify the QoS flow in the PDU session;
  • octet 8 of GRE key includes reflective QoS indicator (reflective QoS indicator, RQI), which is used for data QoS control of packets.
  • the UE can identify whether the first payload is control plane data or user plane data through the GRE key field or the protocol type field in the GRE protocol header.
  • the UE may negotiate with the TNGF to obtain the key allocated by the TNGF for transmitting control plane data.
  • the UE may receive a first request message from the TNGF, where the first request message includes a key allocated by the TNGF for transmitting control plane data.
  • FIG. 9 shows a flow chart of a method for acquiring keywords used for transmitting control plane data provided by an embodiment of the present application. Wherein, steps S901 to S910, S913 to S916 in FIG. 9 are respectively the same as steps S301 to S310, S313 to S316 in FIG. 3, the difference is that:
  • S911 The TNGF sends a first request message to the UE.
  • the UE receives the first request message.
  • the first request message may be an extended authentication request message or a 5G notification message.
  • the first request message includes TNGF IP address 1, GRE key and DSCP for transmitting control plane data.
  • the TNGF determines that there is no need to establish an IPsec tunnel with the UE. Further, the TNGF may determine to establish a GRE tunnel with the UE. Specifically, TNGF allocates TNGF IP address 1, GRE key and DSCP for the UE to transmit control plane data, and carries TNGF IP address 1, GRE key and DSCP in the extended authentication request message (or 5G notification message) sent to the UE.
  • the UE After receiving the extended authentication request message (or 5G notification message), the UE stores TNGF IP address 1, GRE key and DSCP, so as to send control plane data to TNGF through the GRE tunnel.
  • the first request message may also include the TNGF IP address 2 used to transmit user plane data.
  • TNGF can allocate TNGF IP address 2 for transmitting user plane data to UE during the registration process, such as carrying TNGF IP address 2 in the first request message and sending it to UE; or, TNGF can also establish PDU session TNGF IP address 2 for transmitting user plane data is allocated to the UE, as shown in the aforementioned step S405.
  • S912 The UE sends a first response message to the TNGF.
  • the TNGF receives the first response message.
  • the first response message may be an extended authentication response message or a 5G notification message.
  • the UE may send the first response message to the TNGF.
  • S917 The TNGF sends the third data packet to the UE.
  • the UE receives the third data packet.
  • TNGF decapsulates it to obtain the registered NAS message, encapsulates the registered NAS message according to the GRE/IP encapsulation method, obtains the third data packet, and sends the third data packet to UE.
  • TNGF encapsulates the GRE protocol header outside the registered NAS message, and fills in the GRE key in the GRE protocol header as the keyword allocated by TNGF for the transmission control plane data (and/or, using the protocol type field of the GRE protocol header to indicate The GRE protocol header includes control plane data); and encapsulate the IP header outside the GRE protocol header, and fill in the source IP address and the destination IP address in the IP header as TNGF IP address 1 and the IP address of the UE respectively, to obtain the third data Bag.
  • the UE sends the first data packet to the TNGF through the GRE tunnel.
  • the TNGF may execute the contents shown in step S602 to step S604.
  • the TNGF determines whether the first payload is control plane data or user plane data according to at least one of the first GRE key and the first protocol type field. If the TNGF determines that the first payload is user plane data, the TNGF executes the content shown in step S603; if the TNGF determines that the first payload is control plane data, the TNGF executes the content shown in step S604.
  • the TNGF After receiving the first data packet, the TNGF parses it to obtain the first GRE key, the first protocol type field and the first load in the first data packet. Further, the TNGF may determine whether the first payload is control plane data or user plane data according to at least one of the first GRE key and the first protocol type field. For example, the TNGF can determine whether the first load is control plane data by comparing the first GRE key with the GRE key acquired in the aforementioned step S911.
  • TNGF can determine that the first load is control plane data; or, the first protocol type field is used to indicate that the first load is control plane data, then TNGF can determine The first load is control plane data; or, the first GRE key is the GRE key obtained in the aforementioned step S911, and the first protocol type field is used to indicate that the first load is control plane data, then the TNGF can determine that the first load is control plane data. surface data.
  • the first GRE key includes a PDU session identifier, then the TNGF may determine that the first load is user plane data of the PDU session.
  • the first IP packet header includes the IP address of the UE
  • the TNGF can determine the identification information of the UE according to the IP address of the UE and the correspondence between the IP address of the UE and the identification information of the UE, and The context information of the UE is determined according to the identification information of the UE.
  • the description corresponding to the aforementioned step S202 which will not be repeated here.
  • S603 The TNGF sends the first payload to the UPF.
  • the UPF receives the first load.
  • the TNGF may send the first payload to the UPF through the N3 connection.
  • the TNGF sends the first payload to the AMF.
  • the AMF receives the first load.
  • the TNGF may send the first payload to the AMF through the N2 connection.
  • Steps S601 to S604 described above describe the specific implementation process of TNGF distinguishing whether uplink information is control plane data or user plane data in the uplink direction.
  • steps S605a to S608 the specific implementation process of UE distinguishing whether downlink information is control plane data or user plane data in the downlink direction is introduced.
  • S605a The UPF sends the second payload to the TNGF.
  • S605b The AMF sends the second payload to the TNGF.
  • the TNGF receives the second load.
  • step S605a and step S605b for the specific implementation process of step S605a and step S605b, reference may be made to the corresponding descriptions of the foregoing steps S205a and S205b, which will not be repeated here.
  • S606 The TNGF generates a second data packet.
  • the second data packet includes a second GRE protocol header and a second payload.
  • the second payload is encapsulated with a second GRE protocol header
  • the second GRE protocol header is encapsulated with a second IP header.
  • the TNGF may encapsulate the second GRE protocol header outside the second payload, and encapsulate the second IP header outside the second GRE protocol header to obtain the second data packet, and send the second data packet to the UE through the GRE tunnel.
  • the second IP packet header includes a destination IP address and a source IP address, and the destination IP address and the source IP address are respectively the IP address of the UE and the IP address of the TNGF.
  • the second GRE protocol packet header includes a second GRE key and a second protocol type field.
  • the second GRE key may be a keyword allocated by TNGF for transmitting control plane data, or the second GRE key includes a PDU session identifier.
  • the second protocol type field may be used to indicate that the second payload is control plane data. At least one of the second GRE key and the second protocol type field may be used to identify whether the second payload is control plane data or user plane data.
  • the second GRE key is a key allocated by TNGF for transmitting control plane data.
  • TNGF can encapsulate the second payload according to the GRE/IP encapsulation method, and fill in the GRE key in the GRE protocol header as the keyword allocated by TNGF for the transmission control plane data, so as to indicate that the second payload is the control plane data.
  • the second protocol type field is used to indicate that the second payload is control plane data.
  • the TNGF may encapsulate the second payload in a GRE/IP encapsulation manner, and use the protocol type field in the GRE protocol packet header to indicate that the second payload is control plane data.
  • the second GRE key is a key allocated by TNGF for transmitting control plane data
  • the second protocol type field is used to indicate that the second load is control plane data.
  • TNGF can encapsulate the second payload according to the GRE/IP encapsulation method, fill in the GRE key in the GRE protocol header as the keyword allocated by TNGF for the transmission control plane data, and use the protocol type field in the GRE protocol header Indicates that the second payload is control plane data.
  • the second GRE key when the second payload is user plane data of a PDU session, the second GRE key includes the PDU session identifier.
  • the TNGF can encapsulate the second payload according to the GRE/IP encapsulation method, and fill in the GRE key in the GRE protocol header as the PDU session identifier, so as to indicate that the second payload is the user plane data of the PDU session.
  • the TNGF sends the second data packet to the UE.
  • the UE receives the second data packet.
  • the TNGF sends the second data packet to the UE through the GRE tunnel.
  • the UE determines, according to at least one of the second GRE key and the second protocol type field, whether the second payload is control plane data or user plane data.
  • the UE After receiving the second data packet, the UE parses it to obtain the second GRE key, the second protocol type field and the second payload in the second data packet. Further, the UE may determine whether the second payload is control plane data or user plane data according to at least one of the second GRE key and the second protocol type field. For example, the UE may determine whether the first load is control plane data by comparing the second GRE key with the GRE key obtained in the aforementioned step S911.
  • the UE may determine that the second load is control plane data; or, the second protocol type field is used to indicate that the second load is control plane data, then the UE may determine The second load is control plane data; or, the second GRE key is the GRE key obtained in the aforementioned step S911, and the second protocol type field is used to indicate that the second load is control plane data, then the UE may determine that the second load is control plane data. surface data.
  • the second GRE key includes the PDU session identifier, the UE may determine that the second payload is user plane data of the PDU session.
  • FIG. 10 shows a schematic flowchart of a communication method provided by an embodiment of the present application. As shown in FIG. 10 , this embodiment introduces the communication method provided by the embodiment of the present application from the uplink direction and the downlink direction respectively.
  • the payload is encapsulated in the GRE protocol header, and the encapsulation method in which the GRE protocol header is encapsulated in the IP header is denoted as GRE/IP; the payload is encapsulated in the TCP header, and the TCP header is encapsulated in the IP header.
  • the method is recorded as TCP/IP; and the encapsulation method of encapsulating the payload in the GRE protocol header, the GRE protocol header in the TCP header, and the TCP header in the IP header is recorded as GRE/TCP/IP.
  • S1001 The UE sends a first payload to the TNGF.
  • the TNGF receives the first load.
  • the first payload is encapsulated with a first TCP header
  • the first TCP header is encapsulated with a first IP address.
  • the UE may encapsulate the first TCP header outside the first payload, and encapsulate the first IP header outside the first TCP header to obtain the encapsulated first payload, and send the encapsulated first payload to TNGF through the PCT connection. load.
  • the first TCP packet header includes a source port number and a destination port number, and the source port number and the destination port number are respectively the TCP port number of the UE and the TCP port number of the TNGF.
  • the TCP port number of the UE is a port number allocated by the UE for transmitting control plane data.
  • the TCP port number of the TNGF is a port number allocated by the TNGF for transmitting control plane data.
  • the first payload is encapsulated with a first GRE protocol header
  • the first GRE protocol header is encapsulated with a first IP address.
  • the UE may encapsulate the first GRE protocol header outside the first payload, and encapsulate the first IP header outside the first GRE protocol header, obtain the encapsulated first payload, and send the encapsulated first payload to the TNGF through the GRE tunnel.
  • the GRE keyword in the header of the first GRE protocol includes the PDU session identifier.
  • the encapsulation manner of the first payload includes encapsulating the first payload in the first TCP header, or encapsulating the first payload in the first GRE protocol header.
  • the encapsulation manner of the first payload may be used to identify whether the first payload is control plane data or user plane data. For example, when the first payload is control plane data, the first payload is encapsulated with a first TCP header.
  • the UE can encapsulate the first payload according to the TCP ⁇ IP encapsulation method, and fill in the source port number and the destination port number in the TCP packet header as the TCP port number of the UE and the TCP port number of the TNGF respectively, so as to identify the first payload.
  • One load is control plane data.
  • the first payload when the first payload is user plane data, the first payload is encapsulated with a first GRE protocol header.
  • the UE may encapsulate the first payload according to the GRE/IP encapsulation method, and fill in the GRE key in the GRE protocol header as the PDU session identifier, so as to identify that the first payload is the user plane data of the PDU session.
  • a GRE tunnel may be established between the UE and the TNGF, and the GRE tunnel is used to transmit user plane data.
  • the first payload is user plane data of the PDU session, and the UE may send the first data packet to the TNGF through the GRE tunnel.
  • the first payload is encapsulated with a first GRE protocol header, and the GRE key of the first GRE protocol header includes a PDU session identifier.
  • a TCP connection may be established between the UE and the TNGF, and the TCP connection is used to transmit control plane data.
  • the first payload is control plane data
  • the UE may send the first data packet to the TNGF through a TCP connection.
  • the TCP connection can be established between the UE and the TNGF in the following two ways.
  • TCP connection 1 an end-to-end TCP connection is established between the UE and the TNGF, which is denoted as TCP connection 1.
  • the IP address included in the IP header of the data packet transmitted on the TCP connection 1 is the IP address of the UE and the IP address of the TNGF.
  • UE may send a first data packet to TNGF through TCP connection 1, and the source IP address and destination IP address of the first IP header of the first data packet are the IP address of UE and the IP address of TNGF respectively.
  • mode 1 the data packets between the UE and the TNGF are transparently transmitted at the access node.
  • the UE In mode 2, the UE first establishes a TCP connection with the access node, denoted as TCP connection 2; the access node then establishes a TCP connection with the TNGF, denoted as TCP connection 3.
  • the IP address included in the IP header of the data packet transmitted on the TCP connection 2 is the IP address of the UE and the IP address of the access node.
  • the IP address included in the IP header of the data packet transmitted on the TCP connection 3 is the IP address of the access node and the IP address of the TNGF.
  • the UE may send the first payload to the TNGF through TCP connection 2 and TCP connection 3 .
  • the UE encapsulates the TCP header outside the first payload, encapsulates the IP header outside the TCP header, and fills in the source IP address and the destination IP address of the IP header as the IP address of the UE and the IP address of the access node respectively, to obtain the encapsulated
  • the access node receives the encapsulated first payload 1, and analyzes it to obtain the first payload
  • the access node Encapsulate the GRE protocol packet header outside the first load, encapsulate the GRE protocol packet header in the TCP packet header, encapsulate the IP packet header outside the TCP packet header, and fill in the source IP address and the destination IP address of the IP packet header as the IP address of the access node, respectively.
  • the IP address of the TNGF is used to obtain the encapsulated first payload 2 , and the encapsulated first payload 2 is sent to the TNGF through the TCP connection 3 .
  • the GRE key in the header of the GRE protocol is a key assigned by the access node to the UE.
  • the UE When the above method 2 is used to establish a TCP connection between the UE and the TNGF, in the uplink direction, the UE first encapsulates the control plane data according to the TCP/IP encapsulation method, and sends the encapsulated control plane data to the Access node: After receiving the control plane data, the access node encapsulates the control plane data according to the encapsulation method of GRE/TCP/IP, and sends the encapsulated control plane data to TNGF through TCP connection 3 .
  • TNGF In the downlink direction, TNGF first encapsulates the control plane data according to the GRE/TCP/IP encapsulation method, and sends the encapsulated control plane data to the access node through TCP connection 3; after the access node receives the control plane data, The control plane data is encapsulated according to the TCP/IP encapsulation method, and the encapsulated control plane data is sent to the UE through the TCP connection 2.
  • the specific implementation process is similar to that in the uplink direction, and will not be repeated here.
  • the first payload is encapsulated with the first TCP header, which may be: the first payload is encapsulated with the third GRE protocol header, and the third GRE protocol header is encapsulated with the first TCP header. That is, the access node encapsulates the third GRE protocol header outside the first payload, encapsulates the first TCP header outside the third GRE protocol header, and encapsulates the first IP header outside the first TCP header.
  • the GRE key in the third GRE protocol packet header is a keyword allocated by the access node to the UE, and is recorded as the third GRE key.
  • the UE may negotiate with the TNGF to obtain a port number allocated for transmitting control plane data. For example, the UE may receive a first request message from the TNGF, where the first request message includes a port number allocated by the TNGF for transmitting control plane data.
  • FIG. 11 shows a flowchart of a method for acquiring a port number used for transmitting control plane data provided by an embodiment of the present application. Wherein, steps S1101 to S1110, S1113, S1116, and S1117 in FIG. 11 are respectively the same as steps S301 to S310, S313, S315, and S316 in FIG. 3 , the difference is that:
  • S1111 The TNGF sends a first request message to the UE.
  • the UE receives the first request message.
  • the first request message may be an extended authentication request message or a 5G notification message.
  • the first request message includes the TNGF IP address 1 for transmitting control plane data and the TCP port number of the TNGF.
  • the TNGF determines that there is no need to establish an IPsec tunnel with the UE. Further, the TNGF may determine to establish a TCP connection with the UE. Specifically, the TNGF allocates the TNGF IP address 1 and the TCP port number of the TNGF for the UE to transmit control plane data, and carries the TNGF IP address 1 and the TCP port number of the TNGF in the extended authentication request message (or 5G notification message ) to the UE. After receiving the extended authentication request message (or 5G notification message), the UE stores the TNGF IP address 1 and the TCP port number of the TNGF, so as to send control plane data to the TNGF through the TCP connection subsequently.
  • the first request message may also include the TNGF IP address 2 used to transmit user plane data.
  • TNGF can allocate TNGF IP address 2 for transmitting user plane data to UE during the registration process, such as carrying TNGF IP address 2 in the first request message and sending it to UE; or, TNGF can also establish PDU session TNGF IP address 2 for transmitting user plane data is allocated to the UE, as shown in the aforementioned step S405.
  • S1112 The UE sends a first response message to the TNGF.
  • the TNGF receives the first response message.
  • the first response message may be an extended authentication response message or a 5G notification message.
  • the UE may send the first response message to the TNGF.
  • the first response message may include the TCP port number of the UE.
  • S1114 The access node sends a second message to the TNGF.
  • the TNGF receives the second message.
  • the second message includes the correspondence between the IP address of the UE and the identification information of the UE, or the correspondence between the third GRE key and the identification information of the UE, or the correspondence between the IP address of the UE and the identification information of the UE and the corresponding relationship between the third GRE key and the identification information of the UE.
  • the second message may be an AAA message.
  • the access node may assign a GRE key to the UE, record it as the third GRE key, and send the corresponding relationship between the third GRE key and the identification information of the UE to the TNGF in the AAA message. After the TNGF receives the second message, it stores the correspondence between the third GRE key and the identification information of the UE.
  • the corresponding relationship with the identification information of the UE determines the identification information of the UE that sends the uplink information.
  • Table 2 shows an example of the corresponding relationship between the GRE key maintained by the TNGF and the identification information of the UE.
  • TNGF establishes connections with three UEs.
  • the identification information of the UE corresponding to GRE key 1 is identification information 1
  • the identification information of the UE corresponding to GRE key 2 is identification information 2
  • the identification information of the UE corresponding to GRE key 3 is The identification information of is identification information 3.
  • Table 2 is used as an example and does not limit the specific implementation of the corresponding relationship between the GRE key maintained by the TNGF and the identification information of the UE.
  • GRE keys UE's identification information GRE key 1 Identification information 1
  • step S1114 is an optional step, which is indicated by a dotted line in FIG. 11 .
  • the TNGF may also obtain the correspondence between the GRE key and the identification information of the UE in other ways, which is not limited in this embodiment of the present application.
  • the correspondence between the IP address of the UE and the identification information of the UE reported by the access node to the TNGF reference may be made to the content corresponding to the aforementioned step S314, which will not be repeated here.
  • S1115 Establish a TCP connection between the UE and the TNGF.
  • the UE initiates a TCP connection to the TNGF, and a TCP connection is established between the UE and the TNGF, and the TCP connection is used to transmit control plane data.
  • the TCP connection can be established between the UE and the TNGF through the aforementioned two methods, which will not be repeated here.
  • S1118 The UE sends the third payload to the TNGF.
  • the TNGF receives the third load.
  • the UE may send the third payload to the TNGF through the GRE tunnel.
  • the UE may send the third load to the TNGF through TCP connection 1 (or TCP connection 2 and TCP connection 3).
  • the UE may send the third load to the TNGF through TCP connection 1 (or TCP connection 2 and TCP connection 3).
  • TCP connection 1 or TCP connection 2 and TCP connection 3
  • the UE may send the third load to the TNGF through TCP connection 1 (or TCP connection 2 and TCP connection 3).
  • TCP connection 1 or TCP connection 2 and TCP connection 3
  • the third package when the third payload is control plane data, the third package is encapsulated with a TCP header, and the source port number and destination port number of the TCP header are respectively the TCP port number of the UE and the TNGF port number. TCP port number.
  • the TNGF After receiving the encapsulated third payload, the TNGF parses it, obtains the TCP port number of the UE and stores it, so as to send control plane data to the UE through the TCP connection later.
  • the UE sends the first payload to the TNGF.
  • the TNGF may execute the contents shown in step S1102 to step S1104.
  • the TNGF determines whether the first payload is control plane data or user plane data according to the encapsulation manner of the first payload. If the TNGF determines that the first payload is user plane data, then the TNGF executes the content shown in step S1003; if the TNGF determines that the first payload is control plane data, then the TNGF executes the content shown in step S1004.
  • the TNGF After receiving the first data packet, the TNGF parses it to obtain the encapsulation mode of the first payload. Further, the TNGF may determine whether the first payload is control plane data or user plane data according to the encapsulation manner of the first payload. For example, if the first payload is encapsulated with a first TCP header, then TNGF can determine that the first payload is control plane data; or, the first payload is encapsulated with a third GRE protocol header, and the third GRE protocol header is encapsulated in the first TCP header , the TNGF can determine that the first payload is control plane data, wherein the GRE key in the third GRE protocol packet header includes the third GRE key.
  • the TNGF can determine that the first payload is user plane data of the PDU session.
  • the first IP packet header includes the IP address of the UE
  • the TNGF can determine the identification information of the UE according to the IP address of the UE and the correspondence between the IP address of the UE and the identification information of the UE, and The context information of the UE is determined according to the identification information of the UE.
  • the description corresponding to the aforementioned step S202 which will not be repeated here.
  • the first payload is control plane data
  • the first payload is encapsulated in the third GRE protocol header
  • the TNGF receives the first payload of the UE through TCP connection 1 and TCP connection 2
  • the TNGF can According to the GRE key of the third GRE protocol header and the corresponding relationship between the GRE key and the identification information of the UE, the identification information of the UE is determined, and the context information of the UE is determined according to the identification information of the UE.
  • the context information of the UE includes the identification information of the UE, the identification of the N2 interface of the UE, the information of the N2 interface and the information of the N3 interface.
  • the N2 interface information can be used to determine the control plane network element that establishes the N2 connection for the UE.
  • the TNGF can determine the control plane network element that establishes the N2 connection for the UE according to the context information of the UE, and then send the first load to the control plane network element through the N2 connection (Figure 2 takes the control plane network element as an example of AMF) .
  • S1003 The TNGF sends the first payload to the UPF.
  • the UPF receives the first load.
  • the TNGF may send the first payload to the UPF through the N3 connection.
  • the TNGF sends the first payload to the AMF.
  • the AMF receives the first load.
  • the TNGF may send the first payload to the AMF through the N2 connection.
  • steps S1001 to S1004 describe the specific implementation process of TNGF distinguishing uplink information as control plane data or user plane data in the uplink direction.
  • steps S605a to S608 the specific implementation process of UE distinguishing whether downlink information is control plane data or user plane data in the downlink direction is introduced.
  • S1005a The UPF sends the second payload to the TNGF.
  • S1005b The AMF sends the second payload to the TNGF.
  • the TNGF receives the second load.
  • step S1005a and step S1005b for the specific implementation process of step S1005a and step S1005b, reference may be made to the corresponding descriptions of the aforementioned steps S205a and S205b, which will not be repeated here.
  • the TNGF sends the second payload to the UE.
  • the UE receives the second payload.
  • the second payload is encapsulated with a second TCP header.
  • the TNGF can encapsulate the second TCP header outside the second payload, and encapsulate the second IP header outside the second TCP header to obtain the encapsulated second payload, and send the encapsulated second payload to the UE.
  • the second TCP packet header includes a source port number and a destination port number, and the source port number and the destination port number are respectively the TCP port number of the TNGF and the TCP port number of the UE.
  • the second IP packet header includes a source IP address and a destination IP address, and the source address and the destination IP address are respectively the TNGF IP address 1 and the IP address of the UE.
  • the second payload is control plane data
  • the second payload is encapsulated with the fourth GRE protocol header
  • the second payload is encapsulated with the second TCP header.
  • the TNGF may encapsulate the fourth GRE protocol header outside the second payload, encapsulate the second TCP header outside the fourth GRE protocol header, and encapsulate the second IP header outside the second TCP header to obtain the encapsulated second payload , and then send the encapsulated second payload to the access node through the TCP connection 3, and the access node forwards the second payload to the UE.
  • the GRE key of the fourth GRE protocol header includes the third GRE key.
  • the second TCP packet header includes a source port number and a destination port number, and the source port number and the destination port number are respectively the TCP port number of the TNGF and the TCP port number of the UE.
  • the second IP packet header includes a source IP address and a destination IP address, and the source address and the destination IP address are respectively the TNGF IP address 1 and the IP address of the UE.
  • the second payload is encapsulated with a second GRE protocol header.
  • the TNGF may encapsulate the second GRE protocol header outside the second payload, and encapsulate the second IP header outside the second GRE protocol header to obtain the encapsulated second payload, and transmit the encapsulated second payload through the GRE tunnel. sent to the UE.
  • the GRE key in the second GRE protocol header includes the PDU session identifier.
  • the second IP packet header includes a source IP address and a destination IP address, and the source address and the destination IP address are respectively the TNGF IP address 1 and the IP address of the UE.
  • S1007 The UE determines whether the second payload is control plane data or user plane data according to the encapsulation manner of the second payload.
  • the UE After receiving the encapsulated second payload, the UE analyzes it to obtain the encapsulation mode of the second payload. Further, the UE may determine whether the second payload is control plane data or user plane data according to the encapsulation manner of the second payload. For example, if the second payload is encapsulated with the second TCP header, the UE may determine that the second payload is control plane data. For another example, if the second payload is encapsulated with a second GRE protocol header, the UE may determine that the second payload is user plane data.
  • each of the above devices includes a corresponding hardware structure and/or software module for performing each function.
  • the present invention can be realized in the form of hardware or a combination of hardware and computer software in combination with the units and algorithm steps of each example described in the embodiments disclosed herein. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
  • FIG. 12 is a schematic block diagram of a communication device 1200 provided by an embodiment of the present application, including a communication unit 1201 and a processing unit 1202 .
  • the communication unit 1201 is used for communicating with the outside, and may also be called a communication interface, a transceiver unit, or an input or output interface.
  • the processing unit 1202 may read data or instructions in the storage unit, so that the communication device 1200 implements the methods in the foregoing embodiments.
  • the communication device 1200 may be an access gateway or a chip in the access gateway.
  • the communication unit 1201 is configured to receive a first data packet from a terminal, the first data packet includes a first IP header, a first GTP-U header and a first payload, and the first IP header includes the access IP address of the gateway, the first GTP-U packet header includes the TEID of the access gateway.
  • the processing unit 1202 is configured to determine, according to at least one of the IP address of the access gateway and the TEID of the access gateway, whether the first payload is control plane data or user plane data.
  • the processing unit 1202 is configured to perform one or more of the following:
  • the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data, it is determined that the first payload is the control plane data.
  • the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the user plane data, it is determined that the first payload is the user plane data.
  • the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the control plane data
  • the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the user plane data
  • the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data
  • the IP address of the access network is the TEID assigned by the access gateway for transmitting the control plane data
  • the assigned IP address determines that the first payload is the control plane data.
  • the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the user plane data
  • the IP address of the access network is the TEID allocated by the access gateway for transmitting the user plane data
  • the assigned IP address is used to determine that the first load is the user plane data.
  • the first GTP-U packet header further includes a message type field
  • the first data packet further includes a first message
  • the first message includes the first payload; in the When the first payload is the control plane data, the message type field is used to indicate the message type of the first message.
  • the communication unit 1201 before the access gateway receives the first data packet from the terminal, the communication unit 1201 is configured to send a first request message to the terminal, where the first request message includes the TEID of the access gateway and the IP address of the access gateway, wherein the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data.
  • the communication unit 1201 may also be configured to receive a first response message from the terminal, where the first response message includes the TEID of the terminal, and the TEID of the terminal is used by the terminal to transmit the control plane TEID for data allocation.
  • the method may further include: the communication unit 1201 is configured to send a second request message to the terminal, where the second request message includes a protocol data unit (PDU) session identifier and the connection The TEID of the ingress gateway, wherein the TEID of the access gateway is the TEID allocated by the access gateway for the user plane data of the PDU session.
  • the communication unit 1201 may also be configured to receive a second response message from the terminal, where the second response message includes the TEID of the terminal, and the TEID of the terminal is TEID allocated for user plane data.
  • the second request message further includes the IP address of the access gateway, where the IP address of the access gateway is allocated by the access gateway for the user plane data of the PDU session. IP address.
  • the communication unit 1201 before the access gateway receives the first data packet from the terminal, the communication unit 1201 is configured to receive indication information from an access and mobility management functional network element, where the indication information is used to indicate There is no need to establish an Internet security protocol tunnel between the access gateway and the terminal.
  • the first IP packet header further includes the IP address of the terminal
  • the processing unit 1202 is configured to The corresponding relationship between the information determines the identification information of the terminal; and determines the context information of the terminal according to the identification information of the terminal.
  • the communication unit 1201 is configured to receive a second message from the access node, where the second message includes a correspondence between the IP address of the terminal and the identification information of the terminal.
  • the communication unit 1201 is configured to send a second data packet to the terminal, where the second data packet includes a second IP header, a second GTP-U header, and a second payload, and the first The second IP header includes the IP address of the access gateway, and the second GTP-U header includes the TEID of the terminal; wherein, when the second load is the control plane data, the TEID of the terminal is The TEID allocated by the terminal for transmitting the control plane data, and/or the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the control plane data; or, in the second When the load is the user plane data, the TEID of the terminal is the TEID allocated by the terminal for transmitting the user plane data, and/or the IP address of the access gateway is the IP address of the access gateway for transmitting the user plane data.
  • the IP address to which the data is assigned.
  • the communication unit 1201 is further configured to send a second data packet to the terminal, where the second data packet includes a second IP header, a second GTP-U header, and a second payload, and the The second IP header includes the IP address of the access gateway, and the second GTP-U header includes the TEID of the access gateway; wherein, the second load is the control plane data, and the access gateway The IP address of the access gateway is the IP address allocated by the access gateway for transmitting the control plane data, and the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data.
  • the communication unit 1201 is configured to receive a first data packet from a terminal, the first data packet includes a first Generic Routing Encapsulation (GRE) protocol header and a first payload, and the first GRE protocol header includes a first GRE Keyword and first protocol type fields.
  • the processing unit 1202 is configured to determine, according to at least one of the first GRE keyword and the first protocol type field, whether the first payload is control plane data or user plane data.
  • GRE Generic Routing Encapsulation
  • the processing unit 1202 is configured to perform one or more of the following:
  • the access gateway When the first GRE key is a key allocated by the access gateway for transmitting the control plane data, determine that the first payload is the control plane data.
  • the first protocol type field when used to indicate that the first payload is the control plane data, determine that the first payload is the control plane data.
  • the first GRE keyword is a keyword allocated by the access gateway for transmitting the control plane data
  • the first protocol type field is used to indicate that the first payload is the control plane data
  • it is determined that the first load is the control plane data.
  • the first GRE keyword includes a protocol data unit (PDU) session identifier
  • PDU protocol data unit
  • the communication unit 1201 before the access gateway receives the first data packet from the terminal, the communication unit 1201 is configured to send a first request message to the terminal, where the first request message includes the The IP address of the Internet Protocol and the keyword allocated by the access gateway for transmitting the control plane data.
  • the communication unit 1201 before the access gateway receives the first data packet from the terminal, the communication unit 1201 is configured to receive indication information from an access and mobility management functional network element, where the indication information is used to indicate There is no need to establish an Internet security protocol tunnel between the access gateway and the terminal.
  • the first data packet further includes a first IP header
  • the first IP header includes the IP address of the terminal
  • the processing unit 1202 is configured to, according to the IP address of the terminal, and determining the identification information of the terminal according to the correspondence between the IP address of the terminal and the identification information of the terminal; and determining the context information of the terminal according to the identification information of the terminal.
  • the communication unit 1201 is configured to receive a second message from the access node, where the second message includes a correspondence between the IP address of the terminal and the identification information of the terminal.
  • the communication unit 1201 is configured to send a second data packet to the terminal, the second data packet includes a second GRE protocol header and a second payload, and the second GRE protocol header includes a first Two GRE keywords and a second protocol type field; wherein, when the second load is the control message, the second GRE keyword is a keyword allocated by the access gateway for transmitting the control plane data , and/or the second protocol type field is used to indicate that the second load is the control plane data; or, when the second load is user plane data of a PDU session, the second GRE keyword Include the PDU session identifier.
  • the communication unit 1201 is configured to receive the first payload from the terminal, where the first payload is encapsulated with a first Transmission Control Protocol (TCP) header, or the first payload is encapsulated with a first general routing encapsulation (GRE) protocol header.
  • the processing unit 1202 is configured to determine whether the first payload is control plane data or user plane data according to the encapsulation manner of the first payload.
  • the first TCP header includes the port number allocated by the access gateway for transmitting the control plane data
  • the GRE keyword in the first GRE protocol header includes a protocol data unit ( PDU) session identifier.
  • the processing unit 1202 is configured to perform one or more of the following:
  • the first payload is encapsulated with the first TCP header, it is determined that the first payload is the control plane data.
  • the first payload is encapsulated with the first GRE protocol header, it is determined that the first payload is user plane data of a PDU session.
  • the first TCP header is encapsulated outside the first payload, which may be: a third GRE protocol header is encapsulated outside the first payload, and a third GRE protocol header is encapsulated outside the third GRE protocol header. encapsulated in the first TCP header.
  • the third GRE protocol packet header includes a third GRE keyword
  • the third GRE keyword is a keyword allocated by the access node to the terminal
  • the processing unit 1202 is configured to The third GRE keyword, and the corresponding relationship between the third GRE keyword and the identification information of the terminal, determine the identification information of the terminal; and determine the identification information of the terminal according to the identification information of the terminal contextual information.
  • the communication unit 1201 is configured to receive a second message from the access node, where the second message includes a correspondence between the third GRE keyword and the identification information of the terminal.
  • the first TCP header is encapsulated with a first Internet Protocol header
  • the first GRE protocol header is encapsulated with a first IP header
  • the first IP header includes the The IP address of the terminal
  • the processing unit 1202 is configured to determine the identification information of the terminal according to the IP address of the terminal and the correspondence between the IP address of the terminal and the identification information of the terminal; and, according to The identification information of the terminal determines the context information of the terminal.
  • the communication unit 1201 is configured to receive a second message from the access node, where the second message includes a correspondence between the IP address of the terminal and the identification information of the terminal.
  • the communication unit 1201 before the access gateway receives the first load from the terminal, the communication unit 1201 is configured to send a first request message to the terminal, where the first request message includes the port number and the IP address of the access gateway, wherein the port number of the access gateway is the port number allocated by the access gateway for transmitting the control plane data, and the IP address of the access gateway is the The IP address allocated by the access gateway for transmitting the control plane data.
  • the first request message includes the IP address allocated by the access gateway for transmitting user plane data.
  • the communication unit 1201 before the access gateway receives the first load from the terminal, the communication unit 1201 is configured to receive indication information from an access and mobility management functional network element, where the indication information is used to indicate the There is no need to establish an Internet security protocol tunnel between the access gateway and the terminal.
  • the communication unit 1201 is configured to send a second payload to the terminal, where the second payload is encapsulated with a second TCP header, or the second payload is encapsulated with a second GRE protocol header ;
  • the second load is the control plane data
  • the second load is encapsulated with the second TCP header
  • the second TCP header includes the allocation of the terminal for transmitting the control plane data or
  • the second payload is user plane data of a PDU
  • the second payload is encapsulated with a second GRE protocol header
  • the GRE keyword in the second GRE protocol header includes the PDU session identifier.
  • the second payload is encapsulated with the second TCP header, which may be: the second payload is encapsulated with a fourth GRE protocol header, and the fourth GRE protocol header is encapsulated There is the second TCP packet header, wherein the GRE keyword in the fourth GRE protocol packet header is a keyword allocated by the access node to the terminal.
  • the communication device 1200 may be a terminal or a chip in the terminal.
  • the communication unit 1201 is used for the second data packet from the access gateway, the second data packet includes a second Internet Protocol (IP) packet header, a second General Packet Radio Service Tunneling Protocol-User Plane (GTP-U ) packet header and a second load, the second IP packet header includes the IP address of the access gateway, and the second GTP-U packet header includes the tunnel endpoint identifier (TEID) of the terminal or includes the access gateway's Tunnel Endpoint Identifier (TEID).
  • the processing unit 1202 is configured to determine the The second load is control plane data or user plane data.
  • the processing unit 1202 is configured to perform one or more of the following:
  • the TEID of the terminal is the TEID allocated by the terminal for transmitting the control plane data, determine that the second payload is the control plane data.
  • the TEID of the terminal is the TEID allocated by the terminal for transmitting the user plane data, determine that the second payload is the user plane data.
  • the second payload is the control plane data.
  • the second payload is the user plane data.
  • the TEID of the terminal is the TEID allocated by the terminal for transmitting the control plane data
  • the IP address of the access network is the IP address allocated by the access gateway for transmitting the control plane data
  • the TEID of the terminal is the TEID allocated by the terminal for transmitting the user plane data
  • the IP address of the access network is the IP address allocated by the access gateway for transmitting the user plane data
  • the second GTP-U packet header further includes a message type field
  • the second data packet further includes a third message
  • the third message includes the second payload; in the When the second payload is the control plane data, the message type field is used to indicate the message type of the third message.
  • the communication unit 1201 before the terminal receives the second data packet from the access gateway, the communication unit 1201 is configured to receive a first request message from the access gateway, where the first request message includes the The TEID of the access gateway and the IP address of the access gateway, wherein the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data.
  • the communication unit 1201 may also be configured to send a first response message to the access gateway, where the first response message includes the TEID of the terminal, and the TEID of the terminal is used by the terminal to transmit the control The TEID assigned to the surface data.
  • the communication unit 1201 is configured to receive a second request message from the access gateway, where the second request message includes a protocol data unit (PDU) session identifier and the TEID of the access gateway , wherein the TEID of the access gateway is the TEID allocated by the access gateway for the user plane data of the PDU session.
  • the communication unit 1201 may also be configured to send a second response message to the access gateway, where the second response message includes the TEID of the terminal, and the TEID of the terminal is The TEID assigned to the user plane data.
  • PDU protocol data unit
  • the second request message further includes the IP address of the access gateway, where the IP address of the access gateway is allocated by the access gateway for the user plane data of the PDU session. IP address.
  • the communication unit 1201 is configured to send a first data packet to the access gateway, where the first data packet includes a first IP header, a first GTP-U header, and a first payload, so The first IP header includes the IP address of the access gateway, and the first GTP-U header includes the TEID of the access gateway; wherein, when the first load is the control plane data, the The IP address of the access gateway is the IP address allocated by the access gateway for transmitting the control plane data, and/or the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data ; or, when the first load is the user plane data, the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the user plane data, and/or the access gateway The TEID of the gateway is the TEID allocated by the access gateway for transmitting the user plane data.
  • the processing unit 1202 is configured to perform one or more of the following:
  • the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data, it is determined that the second payload is the control plane data.
  • the second payload is the control plane data.
  • the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data
  • the IP address of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data
  • the communication unit 1201 is configured to receive a second data packet from the access gateway, the second data packet includes a second Generic Routing Encapsulation (GRE) protocol header and a second payload, and the second GRE protocol header includes the first Two GRE keywords and a second protocol type field.
  • the processing unit 1202 is configured to determine, according to at least one of the second GRE keyword and the second protocol type field, whether the second payload is control plane data or user plane data.
  • GRE Generic Routing Encapsulation
  • the processing unit 1202 is configured to perform one or more of the following:
  • the second GRE key is a key allocated by the access gateway for transmitting the control plane data
  • the second GRE key is a key allocated by the access gateway for transmitting the control plane data
  • the second protocol type field is used to indicate that the first load is the control plane data
  • the second GRE keyword includes a protocol data unit (PDU) session identifier
  • PDU protocol data unit
  • the communication unit 1201 before the terminal receives the second data packet from the access gateway, the communication unit 1201 is configured to receive a first request message from the access gateway, where the first request message includes the An Internet Protocol (IP) address of the access gateway and the second GRE key, wherein the second GRE key is a key allocated by the access gateway for transmitting the control plane data.
  • IP Internet Protocol
  • the communication unit 1201 is configured to send a first data packet to the access gateway, the first data packet includes a first GRE protocol header and a first payload, and the first GRE protocol header Including a first GRE keyword and a first protocol type field; wherein, when the first payload is the control message, the first GRE keyword is allocated by the access gateway for transmitting the control plane data A keyword, and/or the first protocol type field is used to indicate that the first load is the control plane data; or, when the first load is user plane data of a PDU session, the first GRE Keyword includes the PDU session identifier.
  • the communication unit 1201 is configured to receive the second payload from the access gateway, where the second payload is encapsulated with a second Transmission Control Protocol (TCP) header, or the second payload is encapsulated with a second common Routing Encapsulation (GRE) protocol header.
  • the processing unit 1202 is configured to determine whether the second payload is control plane data or user plane data according to the encapsulation manner of the second payload.
  • the second TCP header includes the port number allocated by the terminal for transmitting the control plane data
  • the GRE keyword in the second GRE protocol header includes a protocol data unit (PDU) Session ID.
  • PDU protocol data unit
  • the processing unit 1202 is configured to perform one or more of the following:
  • the second payload is encapsulated with the second TCP header, it is determined that the second payload is the control plane data.
  • the second payload is encapsulated with the second GRE protocol header, it is determined that the first payload is user plane data of a PDU session.
  • the second payload is encapsulated with the second TCP header, including: the second payload is encapsulated with a fourth GRE protocol header, and the fourth GRE protocol header is encapsulated with The second TCP header, wherein the GRE keyword in the fourth GRE protocol header is a keyword assigned by the access node to the terminal.
  • the communication unit 1201 is configured to receive a first request message from the access gateway, where the first request message includes the The port number of the access gateway and the IP address of the access gateway, wherein the port number of the access gateway is the port number allocated by the access gateway for transmitting the control plane data, and the IP address of the access gateway The address is an IP address allocated by the access gateway for transmitting the control plane data.
  • the first request message further includes an IP address allocated by the access gateway for transmitting user plane data.
  • the communication unit 1201 is configured to send a first payload to the access gateway, where the first payload is encapsulated with a first TCP header, or the first payload is encapsulated with a first GRE A protocol header; wherein, when the first payload is the control plane data, the first payload is encapsulated with the first TCP header, and the first TCP header includes the information for the access gateway to transmit the The port number assigned to the control plane data; or, when the first payload is user plane data of a PDU, the first payload is encapsulated with a first GRE protocol header, and the GRE key in the first GRE protocol header word includes the PDU Session Identifier.
  • the first payload is encapsulated with the first TCP header, which may be: the first payload is encapsulated with a third GRE protocol header, and the third GRE protocol header is encapsulated There is the first TCP header, wherein the GRE key in the third GRE protocol header is a key allocated by the access node to the terminal.
  • the communication device 1200 may also be an access node or a chip in the access node.
  • the communication unit 1201 is configured to receive a first payload from a terminal, the first payload is encapsulated with a first TCP header; and, send the first payload to the access gateway, wherein the first payload is encapsulated with a A third GRE protocol header, where the third TCP header is encapsulated outside the third GRE protocol header.
  • the third GRE protocol packet header includes a third GRE keyword
  • the third GRE keyword is a keyword allocated by the access node to the terminal
  • the third GRE The keyword is used to determine the identification information of the terminal.
  • the processing unit 1202 is configured to assign a third GRE keyword to the terminal; the communication unit 1201 is configured to send a second message to the access gateway, where the second message includes the first Correspondence between the three GRE keywords and the identification information of the terminal.
  • the communication unit 1201 is further configured to send a second message to the access gateway, where the second message includes a correspondence between the IP address of the terminal and the identification information of the terminal .
  • the first TCP header is encapsulated with a first IP header
  • the source address in the first IP header is the IP address of the terminal
  • the destination address in the first IP header is The address is the IP address of the access node
  • the third TCP header is encapsulated with a third IP header, the source address in the third IP header is the IP address of the access node, and the first IP The destination address in the packet header is the IP address of the access gateway.
  • the communication device 1200 may also be an access and mobility management network element or a chip in the access and mobility management network element.
  • the processing unit 1202 is configured to determine that an IPsec tunnel does not need to be established between the terminal and the access gateway according to at least one of the type of the terminal and the service type of the terminal.
  • the communication unit 1201 is configured to send indication information to the access gateway, where the indication information is used to indicate that the IPsec tunnel does not need to be established between the terminal and the access gateway.
  • each unit in the device can be implemented in the form of software called by the processing element; they can also be implemented in the form of hardware; some units can also be implemented in the form of software called by the processing element, and some units can be implemented in the form of hardware.
  • each unit can be a separate processing element, or it can be integrated in a certain chip of the device.
  • it can also be stored in the memory in the form of a program, which is called and executed by a certain processing element of the device.
  • all or part of these units can be integrated together, or implemented independently.
  • the processing element mentioned here may also be a processor, which may be an integrated circuit with signal processing capability.
  • each step of the above method or each unit above may be implemented by an integrated logic circuit of hardware in the processor element or implemented in the form of software called by the processing element.
  • the units in any of the above devices may be one or more integrated circuits configured to implement the above method, for example: one or more specific integrated circuits (application specific integrated circuit, ASIC), or, one or Multiple microprocessors (digital signal processor, DSP), or, one or more field programmable gate arrays (field programmable gate array, FPGA), or a combination of at least two of these integrated circuit forms.
  • ASIC application specific integrated circuit
  • DSP digital signal processor
  • FPGA field programmable gate array
  • the units in the device can be implemented in the form of a processing element scheduler
  • the processing element can be a general-purpose processor, such as a central processing unit (central processing unit, CPU) or other processors that can call programs.
  • CPU central processing unit
  • these units can be integrated together and implemented in the form of a system-on-a-chip (SOC).
  • SOC system-on-a-chip
  • the above communication unit 1201 is an interface circuit of the device for receiving signals from other devices or transmitting signals to other devices.
  • the communication unit 1201 is an interface circuit for the chip to receive signals from other chips or devices, or to send signals to other chips or devices.
  • FIG. 13 it is a schematic diagram of a communication device 1300 provided by an embodiment of the present application, where the communication device 1300 includes a processor 1310 and an interface 1330 .
  • the communication device 1300 may further include a memory 1320 .
  • the interface 1330 is used to communicate with other devices.
  • the interface 1330 may also be a communication module, a transceiver unit, a transceiver, a transceiver module, or a communication circuit.
  • the methods performed by the terminal, the access gateway, or the access node in the above embodiments may be implemented by the processor 1310 calling a program stored in the memory. That is, the terminal, access gateway, or access node may include a processor 1310, and the processor 1310 executes the method performed by the terminal, access gateway, or access node in the foregoing method embodiments by invoking a program in the memory.
  • the processor 1310 here may be an integrated circuit with a signal processing capability, such as a CPU.
  • a terminal, an access gateway, or an access node may be realized by one or more integrated circuits configured to implement the above method. For example, one or more ASICs, or one or more microprocessors DSP, or one or more FPGAs, etc., or a combination of at least two of these integrated circuit forms.
  • the functions/implementation process of the communication unit 1201 and the processing unit 1202 in FIG. 12 can be realized by calling the computer-executable instructions stored in the memory 1320 by the processor 1310 in the communication device 1300 shown in FIG. 13 .
  • the function/implementation process of the processing unit 1202 in FIG. 12 can be realized by the processor 1310 in the communication device 1300 shown in FIG.
  • the function/implementation process can be realized through the interface 1330 in the communication device 1300 shown in FIG. 13 .
  • sequence numbers of the above-mentioned processes do not mean the order of execution, and the order of execution of the processes should be determined by their functions and internal logic, rather than by the embodiments of the present invention.
  • the implementation process constitutes any limitation.
  • the present application also provides a computer-readable storage medium, on which a computer program is stored.
  • a computer program When the computer program is executed by a computer, the functions implemented by the UE, TNGF, access node, or AMF in the foregoing embodiments can be realized.
  • the present application also provides a computer program product, which can implement the functions implemented by the UE, TNGF, access node, or AMF in the foregoing embodiments when the computer program product is executed by a computer.
  • the present application also provides a chip system, the chip system includes at least one processor and an interface circuit, the processor is used to execute instructions and/or data interaction through the interface circuit, so that the device where the chip system is located realizes Functions implemented by UE, TNGF, access node, or AMF in the foregoing embodiments.
  • the system-on-a-chip may consist of chips, or may include chips and other discrete devices.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device including a server, a data center, and the like integrated with one or more available media.
  • the available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (solid state disk, SSD)), etc.
  • the various illustrative logic units and circuits described in the embodiments of the present application can be implemented by a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, Discrete gate or transistor logic, discrete hardware components, or any combination of the above designed to implement or operate the described functions.
  • the general-purpose processor may be a microprocessor, and optionally, the general-purpose processor may also be any conventional processor, controller, microcontroller or state machine.
  • a processor may also be implemented by a combination of computing devices, such as a digital signal processor and a microprocessor, multiple microprocessors, one or more microprocessors combined with a digital signal processor core, or any other similar configuration to accomplish.
  • the steps of the method or algorithm described in the embodiments of the present application may be directly embedded in hardware, a software unit executed by a processor, or a combination of both.
  • the software unit can be stored in random access memory (random access memory, RAM), flash memory, read-only memory (read-only memory, ROM), EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM or notebook In any other form of storage media in the field.
  • the storage medium can be connected to the processor, so that the processor can read information from the storage medium, and can write information to the storage medium.
  • the storage medium can also be integrated into the processor.
  • the processor and storage medium can be provided in an ASIC.
  • the above functions described in this application may be implemented in hardware, software, firmware or any combination of the three. If implemented in software, the functions can be stored on or transmitted over as one or more instructions or code on a computer-readable medium.
  • Computer-readable media includes computer storage media and communication media that facilitate transfer of a computer program from one place to another. Storage media may be any available media that can be accessed by a general purpose or special computer.
  • Such computer-readable media may include, but are not limited to, RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other device that can be used to carry or store instructions or data structures and Other medium of program code in a form readable by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor.
  • any connection is properly defined as a computer-readable medium, for example, if the software is transmitted from a web site, server, or other remote source via a coaxial cable, fiber optic computer, twisted pair, digital subscriber line (DSL) Or transmitted by wireless means such as infrared, wireless and microwave are also included in the definition of computer readable media.
  • DSL digital subscriber line
  • the disk (disk) and disk (disc) include compact disk, laser disk, optical disc, digital versatile disc (digital versatile disc, DVD), floppy disk and Blu-ray disc. Disks usually reproduce data magnetically, while discs usually use Lasers make optical copies of data. Combinations of the above can also be contained on a computer readable medium.
  • Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • a storage media may be any available media that can be accessed by a general purpose or special purpose computer.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A communication method and device, the method comprising: an access gateway receives a first data packet from a terminal, where the first data packet comprises a first IP packet header, a first GTP-U packet header and a first load, the first IP packet header comprises an IP address of the access gateway, and the first GTP-U packet header comprises a TEID of the access gateway; and the access gateway determines whether the first load is control plane data or user plane data according to at least one of the IP address of the access gateway and the TEID of the access gateway. According to the present application, the access gateway can distinguish whether an uplink signal is control plane data or user plane data.

Description

一种通信方法以及装置A communication method and device
相关申请的交叉引用Cross References to Related Applications
本申请要求在2021年07月22日提交中国专利局、申请号为202110831818.8、申请名称为“一种通信方法以及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中;本申请要求在2021年09月17日提交中国专利局、申请号为202111094796.8、申请名称为“一种通信方法以及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202110831818.8 and the application name "A communication method and device" submitted to the China Patent Office on July 22, 2021, the entire contents of which are incorporated in this application by reference; This application claims the priority of a Chinese patent application with application number 202111094796.8 and application title "A Communication Method and Device" submitted to the China Patent Office on September 17, 2021, the entire contents of which are incorporated in this application by reference.
技术领域technical field
本申请涉及通信技术领域,尤其涉及一种通信方法以及装置。The present application relates to the technical field of communication, and in particular to a communication method and device.
背景技术Background technique
第五代核心网(5th generation Core,5GC)支持第三代合作伙伴计划(3rd generation partnership project,3GPP)网络的接入和非3GPP(non-3GPP)网络的接入。non-3GPP接入技术包括受信的non-3GPP(trusted non-3GPP)接入、非受信的non-3GPP(untrusted non-3GPP)接入以及有线接入。终端可以通过与non-3GPP接入网关建立连接,来接入核心网。对于受信的non-3GPP接入,接入网关可以为受信的non-3GPP接入网关功能(trusted non-3GPP gateway function,TNGF);对于非受信的non-3GPP接入,接入网关可以为non-3GPP转换功能(non-3GPP interworking function,N3IWF);对于有线接入,接入网关可以为有线接入网关功能(wireline-access gateway function,W-AGF)。The fifth generation core network (5th generation Core, 5GC) supports access to the third generation partnership project (3rd generation partnership project, 3GPP) network and non-3GPP (non-3GPP) network access. The non-3GPP access technology includes trusted non-3GPP (trusted non-3GPP) access, untrusted non-3GPP (untrusted non-3GPP) access and wired access. The terminal can access the core network by establishing a connection with the non-3GPP access gateway. For trusted non-3GPP access, the access gateway can be a trusted non-3GPP access gateway function (trusted non-3GPP gateway function, TNGF); for untrusted non-3GPP access, the access gateway can be non -3GPP conversion function (non-3GPP interworking function, N3IWF); for wired access, the access gateway may be a wired access gateway function (wireline-access gateway function, W-AGF).
在non-3GPP接入场景中,接入网关接收来自终端的上行信息,该上行信息可以是控制面数据也可以是用户面数据。若上行信息是控制面数据,则接入网关可以将该上行信息发送给接入与移动性管理功能(access and mobility management function,AMF)网元;若上行信息是用户面数据,则接入网关需要将该上行信息发送给用户面功能(user plane function,UPF)网元。接入网关如何区分来自终端的上行信息是控制面数据还是用户面数据,是需要解决的问题。In the non-3GPP access scenario, the access gateway receives uplink information from the terminal, and the uplink information may be control plane data or user plane data. If the uplink information is control plane data, the access gateway can send the uplink information to the access and mobility management function (AMF) network element; if the uplink information is user plane data, the access gateway The uplink information needs to be sent to a user plane function (user plane function, UPF) network element. How the access gateway distinguishes whether the uplink information from the terminal is control plane data or user plane data is a problem that needs to be solved.
发明内容Contents of the invention
本申请的目的在于提供了一种通信方法以及装置,该方法用以使得接入网关区分上行信息是控制面数据或者是用户面数据。The purpose of the present application is to provide a communication method and device, the method is used to enable an access gateway to distinguish whether uplink information is control plane data or user plane data.
第一方面,本申请提供一种通信方法,该方法可以由接入网关执行或者由接入网关的部件执行。该方法中,接入网关接收来自终端的第一数据包,所述第一数据包包括第一IP包头、第一GTP-U包头和第一负荷,所述第一IP包头包括所述接入网关的IP地址,所述第一GTP-U包头包括所述接入网关的TEID;以及,所述接入网关根据所述接入网关的IP地址和所述接入网关的TEID中的至少一个,确定所述第一负荷是控制面数据或者是用户面数据。其中,第一负荷外封装有第一GTP-U包头,第一GTP-U包头外封装有第一UDP包头,第一UDP包头外封装有第一IP包头。In a first aspect, the present application provides a communication method, and the method may be executed by an access gateway or components of the access gateway. In this method, the access gateway receives a first data packet from the terminal, the first data packet includes a first IP header, a first GTP-U header and a first payload, and the first IP header includes the access The IP address of the gateway, the first GTP-U header includes the TEID of the access gateway; and, the access gateway according to at least one of the IP address of the access gateway and the TEID of the access gateway , determining that the first payload is control plane data or user plane data. Wherein, the first payload is encapsulated with a first GTP-U header, the first GTP-U header is encapsulated with a first UDP header, and the first UDP header is encapsulated with a first IP header.
可选的,控制面数据可以包括控制面消息,如NAS消息,或除了NAS消息之外的其它控制面消息。用户面数据可以包括远程控制业务数据等。Optionally, the control plane data may include control plane messages, such as NAS messages, or other control plane messages except the NAS messages. User plane data may include remote control service data and the like.
在上述实施例中,接入网关可以根据上行负荷外封装的GTP-U包头所包括的接入网关的TEID和IP包头所包括的接入网关的IP地址中的至少一个,来区分该上行负荷是控制面数据或者是用户面数据,并且接入网关与终端之间建立的是GTP-U隧道,相较于IPsec隧道而言,可以简化终端接入核心网的流程。另外,在传输用户面数据时,基于IPsec隧道封装方式需要在用户面数据外封装双层IP包头,而基于GTP-U隧道封装方式需要在用户面数据外封装一层IP包头,显然基于GTP-U隧道封装方式的数据包的包头长度要小于基于IPsec隧道封装方式的,可以减少因数据包包头过长所导致的传输资源浪费、时延长、设备功耗大等问题。In the above embodiment, the access gateway can distinguish the uplink load according to at least one of the TEID of the access gateway included in the GTP-U header encapsulated outside the uplink load and the IP address of the access gateway included in the IP header. It is control plane data or user plane data, and a GTP-U tunnel is established between the access gateway and the terminal. Compared with the IPsec tunnel, it can simplify the process for the terminal to access the core network. In addition, when transmitting user plane data, the IPsec-based tunnel encapsulation method needs to encapsulate a double-layer IP header outside the user plane data, while the GTP-U tunnel-based encapsulation method needs to encapsulate a layer of IP header outside the user plane data. The packet header length of the U-tunnel encapsulation method is smaller than that based on the IPsec tunnel encapsulation method, which can reduce the waste of transmission resources, time extension, and high power consumption of equipment caused by too long packet headers.
在一种可能的设计中,所述接入网关根据所述接入网关的IP地址和所述接入网关的TEID中的至少一个,确定所述第一负荷是控制面数据或者是用户面数据,可以包括如下一项或多项:In a possible design, the access gateway determines that the first load is control plane data or user plane data according to at least one of the access gateway's IP address and the access gateway's TEID , which can include one or more of the following:
当所述接入网关的TEID是所述接入网关为传输所述控制面数据分配的TEID时,所述接入网关确定所述第一负荷是所述控制面数据。When the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data, the access gateway determines that the first payload is the control plane data.
或者,当所述接入网关的TEID是所述接入网关为传输所述用户面数据分配的TEID时,所述接入网关确定所述第一负荷是所述用户面数据。Or, when the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the user plane data, the access gateway determines that the first payload is the user plane data.
或者,当所述接入网关的IP地址是所述接入网关为传输所述控制面数据分配的IP地址时,所述接入网关确定所述第一负荷是所述控制面数据。Or, when the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the control plane data, the access gateway determines that the first payload is the control plane data.
或者,当所述接入网关的IP地址是所述接入网关为传输所述用户面数据分配的IP地址时,所述接入网关确定所述第一负荷是所述用户面数据。Or, when the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the user plane data, the access gateway determines that the first payload is the user plane data.
或者,当所述接入网关的TEID是所述接入网关为传输所述控制面数据分配的TEID时,且所述接入网的IP地址是所述接入网关为传输所述控制面数据分配的IP地址,所述接入网关确定所述第一负荷是所述控制面数据。Or, when the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data, and the IP address of the access network is the TEID assigned by the access gateway for transmitting the control plane data The assigned IP address, the access gateway determines that the first load is the control plane data.
或者,当所述接入网关的TEID是所述接入网关为传输所述用户面数据分配的TEID时,且所述接入网的IP地址是所述接入网关为传输所述用户面数据分配的IP地址,所述接入网关确定所述第一负荷是所述用户面数据。Or, when the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the user plane data, and the IP address of the access network is the TEID allocated by the access gateway for transmitting the user plane data The assigned IP address, the access gateway determines that the first load is the user plane data.
通过上述设计,接入网关可以通过将负荷外封装的GTP-U包头中的TEID与接入网关为传输控制面数据分配的TEID、为传输用户面数据分配的TEID进行对此,和/或,将IP包头中的接入网关的IP地址与接入网关为传输控制面数据分配的IP地址、为传输用户面数据分配的IP地址进行对此,来灵活判断该负荷是控制面数据还是用户面数据。Through the above design, the access gateway can perform this by combining the TEID in the GTP-U header encapsulated outside the payload with the TEID allocated by the access gateway for the transmission of control plane data and the TEID allocated for transmission of user plane data, and/or, Compare the IP address of the access gateway in the IP header with the IP address allocated by the access gateway for transmitting control plane data and the IP address allocated for transmitting user plane data, so as to flexibly determine whether the load is control plane data or user plane data data.
在一种可能的设计中,所述第一GTP-U包头还包括消息类型字段,所述第一数据包还包含第一消息,所述第一消息包括所述第一负荷;在所述第一负荷是所述控制面数据时,所述消息类型字段用于指示所述第一消息的消息类型。In a possible design, the first GTP-U packet header further includes a message type field, the first data packet further includes a first message, and the first message includes the first payload; in the first When a payload is the control plane data, the message type field is used to indicate the message type of the first message.
通过上述设计,负荷外可以封装GTP-U包头,也可以作为第一消息的参数,即在负荷外封装第一消息,再在第一消息外封装GTP-U包头。Through the above design, the GTP-U header can be encapsulated outside the payload, and can also be used as a parameter of the first message, that is, the first message is encapsulated outside the payload, and the GTP-U header is then encapsulated outside the first message.
在一种可能的设计中,在接入网关接收来自终端的第一数据包之前,该方法还可以包括:所述接入网关向所述终端发送第一请求消息,所述第一请求消息包括所述接入网关的TEID和所述接入网关的IP地址,其中,所述接入网关的TEID是所述接入网关为传输所述控制面数据分配的TEID;以及,所述接入网关接收来自所述终端的第一响应消息,所 述第一响应消息包括所述终端的TEID,所述终端的TEID是所述终端为传输所述控制面数据分配的TEID。可选的,所述接入网关的IP地址是所述接入网关为传输所述控制面数据分配的IP地址。In a possible design, before the access gateway receives the first data packet from the terminal, the method may further include: the access gateway sending a first request message to the terminal, the first request message including The TEID of the access gateway and the IP address of the access gateway, wherein the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data; and, the access gateway Receive a first response message from the terminal, where the first response message includes the TEID of the terminal, where the TEID of the terminal is the TEID allocated by the terminal for transmitting the control plane data. Optionally, the IP address of the access gateway is an IP address allocated by the access gateway for transmitting the control plane data.
通过上述设计,接入网关与终端之间进行交互,可以将为传输控制面数据分配的TEID、IP地址发送给终端,以便后续用于识别上行负荷是否为控制面数据,以及获取终端为传输控制面数据分配的TEID,以便后续通过GTP-U隧道向终端发送控制面数据。Through the above design, the interaction between the access gateway and the terminal can send the TEID and IP address allocated for the transmission control plane data to the terminal, so that it can be used later to identify whether the uplink load is control plane data, and to obtain the terminal as the transmission control data. The TEID assigned to the plane data, so that the control plane data can be sent to the terminal through the GTP-U tunnel later.
在一种可能的设计中,所述方法还可以包括:所述接入网关向所述终端发送第二请求消息,所述第二请求消息包括协议数据单元(PDU)会话标识和所述接入网关的TEID,其中,所述接入网关的TEID是所述接入网关为所述PDU会话的用户面数据分配的TEID;所述接入网关接收来自所述终端的第二响应消息,所述第二响应消息包括所述终端的TEID,所述终端的TEID是所述终端为所述PDU会话的用户面数据分配的TEID。In a possible design, the method may further include: the access gateway sending a second request message to the terminal, the second request message including a protocol data unit (PDU) session identifier and the access The TEID of the gateway, wherein the TEID of the access gateway is the TEID allocated by the access gateway for the user plane data of the PDU session; the access gateway receives the second response message from the terminal, and the The second response message includes the TEID of the terminal, where the TEID of the terminal is the TEID allocated by the terminal to the user plane data of the PDU session.
通过上述设计,接入网关与终端之间进行交互,可以将为传输PDU会话的用户面数据分配的TEID发送给终端,以便后续用于识别上行负荷是否为PDU会话的用户面数据,以及获取终端为传输PDU会话的用户面数据分配的TEID,以便后续通过GTP-U隧道向终端发送该PDU会话的用户面数据。Through the above design, the access gateway interacts with the terminal, and can send the TEID allocated for the user plane data of the transmission PDU session to the terminal, so that it can be subsequently used to identify whether the uplink load is the user plane data of the PDU session, and obtain the terminal The TEID allocated for transmitting the user plane data of the PDU session, so that the user plane data of the PDU session can be sent to the terminal through the GTP-U tunnel later.
在一种可能的设计中,所述第二请求消息还包括所述接入网关的IP地址,所述接入网关的IP地址是所述接入网关为所述PDU会话的用户面数据分配的IP地址。可选的,接入网关为所述PDU会话的用户面数据分配的IP地址与接入网关为控制面数据分配的IP地址可以相同也可以不同。In a possible design, the second request message further includes the IP address of the access gateway, and the IP address of the access gateway is allocated by the access gateway for the user plane data of the PDU session IP address. Optionally, the IP address allocated by the access gateway to the user plane data of the PDU session may be the same as or different from the IP address allocated by the access gateway to the control plane data.
通过上述设计,接入网关还可以为PDU会话的用户面数据分配IP地址,以便后续用于识别上行负荷是否为该PDU会话的用户面数据。Through the above design, the access gateway can also allocate an IP address to the user plane data of the PDU session, so as to subsequently identify whether the uplink load is the user plane data of the PDU session.
在一种可能的设计中,在接入网关接收来自终端的第一数据包之前,所述方法还可以包括:所述接入网关接收来自接入与移动性管理功能(AMF)网元的指示信息,所述指示信息用于指示所述接入网关与所述终端之间无需建立网际互连安全性协议(IPsec)隧道。In a possible design, before the access gateway receives the first data packet from the terminal, the method may further include: the access gateway receiving an indication from an Access and Mobility Management Function (AMF) network element information, where the indication information is used to indicate that an Internet Security Protocol (IPsec) tunnel does not need to be established between the access gateway and the terminal.
通过上述设计,接入网关可以根据AMF的指示信息确定不与终端建立IPsec隧道,以简化终端接入核心网的流程。Through the above design, the access gateway can determine not to establish an IPsec tunnel with the terminal according to the instruction information of the AMF, so as to simplify the process for the terminal to access the core network.
在一种可能的设计中,所述第一IP包头还包括所述终端的IP地址,所述方法还可以包括:所述接入网关根据所述终端的IP地址、以及所述终端的IP地址与所述终端的标识信息之间的对应关系,确定所述终端的标识信息;所述接入网关根据所述终端的标识信息确定所述终端的上下文信息。In a possible design, the first IP packet header further includes the IP address of the terminal, and the method may further include: the access gateway according to the IP address of the terminal and the IP address of the terminal The corresponding relationship with the identification information of the terminal determines the identification information of the terminal; the access gateway determines the context information of the terminal according to the identification information of the terminal.
通过上述设计,接入网关可以根据IP地址确定上行负荷是来自哪个终端的,以及该终端的上下文信息,以便确定与该终端建立N2连接的控制面网元或确定与该终端建立N3连接的用户面网元。Through the above design, the access gateway can determine which terminal the uplink load comes from according to the IP address, as well as the context information of the terminal, so as to determine the control plane network element that establishes the N2 connection with the terminal or the user that establishes the N3 connection with the terminal network element.
在一种可能的设计中,所述方法还可以包括:所述接入网关接收来自接入节点的第二消息,所述第二消息包括所述终端的IP地址与所述终端的标识信息之间的对应关系。In a possible design, the method may further include: the access gateway receiving a second message from the access node, where the second message includes the difference between the IP address of the terminal and the identification information of the terminal. Correspondence between.
在一种可能的设计中,所述方法还可以包括:所述接入网关向所述终端发送第二数据包,所述第二数据包包括第二IP包头、第二GTP-U包头和第二负荷,所述第二IP包头包括所述接入网关的IP地址,所述第二GTP-U包头包括所述终端的TEID;其中,在所述第二负荷是所述控制面数据时,所述终端的TEID是所述终端为传输所述控制面数据分配的TEID,和/或所述接入网关的IP地址是所述接入网关为传输所述控制面数据分配的IP地址; 或者,在所述第二负荷是所述用户面数据时,所述终端的TEID是所述终端为传输所述用户面数据分配的TEID,和/或所述接入网关的IP地址是所述接入网关为传输用户面数据分配的IP地址。In a possible design, the method may further include: the access gateway sending a second data packet to the terminal, where the second data packet includes a second IP header, a second GTP-U header, and a second Two loads, the second IP header includes the IP address of the access gateway, and the second GTP-U header includes the TEID of the terminal; wherein, when the second load is the control plane data, The TEID of the terminal is the TEID allocated by the terminal for transmitting the control plane data, and/or the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the control plane data; or , when the second load is the user plane data, the TEID of the terminal is the TEID allocated by the terminal for transmitting the user plane data, and/or the IP address of the access gateway is the IP address allocated by the ingress gateway for transmitting user plane data.
在一种可能的设计中,所述方法还可以包括:所述接入网关向所述终端发送第二数据包,所述第二数据包包括第二IP包头、第二GTP-U包头和第二负荷,所述第二IP包头包括所述接入网关的IP地址,所述第二GTP-U包头包括所述接入网关的TEID;其中,所述第二负荷是所述控制面数据,所述接入网关的IP地址是所述接入网关为传输所述控制面数据分配的IP地址,所述接入网关的TEID是所述接入网关为传输所述控制面数据分配的TEID。In a possible design, the method may further include: the access gateway sending a second data packet to the terminal, where the second data packet includes a second IP header, a second GTP-U header, and a second Two loads, the second IP header includes the IP address of the access gateway, and the second GTP-U header includes the TEID of the access gateway; wherein the second load is the control plane data, The IP address of the access gateway is the IP address allocated by the access gateway for transmitting the control plane data, and the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data.
通过上述设计,接入网关可以使用自身为传输控制面数据分配的TEID向终端发送控制面数据。进一步,终端可以获取到接入网关为传输控制面数据所分配的TEID,并可以基于该TEID向接入网关发送控制面数据,这样无需通过额外的消息为UE分配传输控制面数据的TEID,能够减少接入网关与UE之间的信令交互,提高网络资源的利用率。Through the above design, the access gateway can use the TEID allocated by itself for transmitting the control plane data to send the control plane data to the terminal. Further, the terminal can obtain the TEID allocated by the access gateway for transmitting control plane data, and can send the control plane data to the access gateway based on the TEID, so that the UE does not need to allocate the TEID for transmitting control plane data to the UE through an additional message, and can The signaling interaction between the access gateway and the UE is reduced, and the utilization rate of network resources is improved.
第二方面,本申请提供一种通信方法,该方法可以由终端执行或者由终端的部件执行。该方法包括:终端接收来自接入网关的第二数据包,所述第二数据包包括第二网际互连协议(IP)包头、第二通用分组无线业务隧道协议-用户平面(GTP-U)包头和第二负荷,所述第二IP包头包括所述接入网关的IP地址,所述第二GTP-U包头包括所述终端的隧道端点标识(TEID);以及,所述终端根据所述接入网关的IP地址和所述终端的TEID中的至少一个,确定所述第二负荷是控制面数据或者是用户面数据。In a second aspect, the present application provides a communication method, and the method may be executed by a terminal or by components of the terminal. The method includes: the terminal receives a second data packet from the access gateway, the second data packet includes a second Internet Protocol (IP) packet header, a second General Packet Radio Service Tunneling Protocol-User Plane (GTP-U) A header and a second load, the second IP header includes the IP address of the access gateway, and the second GTP-U header includes the tunnel endpoint identifier (TEID) of the terminal; and, the terminal according to the At least one of the IP address of the access gateway and the TEID of the terminal determines whether the second load is control plane data or user plane data.
在一种可能的设计中,所述终端根据所述接入网关的IP地址和所述终端的TEID中的至少一个,确定所述第二负荷是控制面数据或者是用户面数据,可以包括如下一项或多个:In a possible design, the terminal determines that the second load is control plane data or user plane data according to at least one of the IP address of the access gateway and the TEID of the terminal, which may include the following: one or more:
当所述终端的TEID是所述终端为传输所述控制面数据分配的TEID时,所述终端确定所述第二负荷是所述控制面数据。When the TEID of the terminal is the TEID allocated by the terminal for transmitting the control plane data, the terminal determines that the second payload is the control plane data.
或者,当所述终端的TEID是所述终端为传输所述用户面数据分配的TEID时,所述终端确定所述第二负荷是所述用户面数据。Or, when the TEID of the terminal is the TEID allocated by the terminal for transmitting the user plane data, the terminal determines that the second payload is the user plane data.
或者,当所述接入网关的IP地址是所述接入网关为传输所述控制面数据分配的IP地址时,所述终端确定所述第二负荷是所述控制面数据。Or, when the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the control plane data, the terminal determines that the second payload is the control plane data.
或者,当所述接入网关的IP地址是所述接入网关为传输所述用户面数据分配的IP地址时,所述终端确定所述第二负荷是所述用户面数据。Or, when the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the user plane data, the terminal determines that the second payload is the user plane data.
或者,当所述终端的TEID是所述终端为传输所述控制面数据分配的TEID,且所述接入网的IP地址是所述接入网关为传输所述控制面数据分配的IP地址时,所述终端确定所述第二负荷是所述控制面数据。Or, when the TEID of the terminal is the TEID allocated by the terminal for transmitting the control plane data, and the IP address of the access network is the IP address allocated by the access gateway for transmitting the control plane data , the terminal determines that the second payload is the control plane data.
或者,当所述终端的TEID是所述终端为传输所述用户面数据分配的TEID,且所述接入网的IP地址是所述接入网关为传输所述用户面数据分配的IP地址时,所述终端确定所述第二负荷是所述用户面数据。Or, when the TEID of the terminal is the TEID allocated by the terminal for transmitting the user plane data, and the IP address of the access network is the IP address allocated by the access gateway for transmitting the user plane data , the terminal determines that the second payload is the user plane data.
在一种可能的设计中,所述第二GTP-U包头还包括消息类型字段,所述第二数据包还包含第三消息,所述第三消息包括所述第二负荷;在所述第二负荷是所述控制面数据时,所述消息类型字段用于指示所述第三消息的消息类型。In a possible design, the second GTP-U packet header further includes a message type field, and the second data packet further includes a third message, and the third message includes the second payload; in the first When the second payload is the control plane data, the message type field is used to indicate the message type of the third message.
在一种可能的设计中,在终端接收来自接入网关的第二数据包之前,所述方法还包括:所述终端接收来自所述接入网关的第一请求消息,所述第一请求消息包括所述接入网关的 TEID和所述接入网关的IP地址,其中,所述接入网关的TEID是所述接入网关为传输所述控制面数据分配的TEID;所述终端向所述接入网关发送第一响应消息,所述第一响应消息包括所述终端的TEID,所述终端的TEID是所述终端为传输所述控制面数据分配的TEID。In a possible design, before the terminal receives the second data packet from the access gateway, the method further includes: the terminal receives a first request message from the access gateway, and the first request message Including the TEID of the access gateway and the IP address of the access gateway, wherein the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data; the terminal sends the The access gateway sends a first response message, where the first response message includes the TEID of the terminal, where the TEID of the terminal is the TEID allocated by the terminal for transmitting the control plane data.
在一种可能的设计中,所述方法还可以包括:所述终端接收来自所述接入网关的第二请求消息,所述第二请求消息包括协议数据单元(PDU)会话标识和所述接入网关的TEID,其中,所述接入网关的TEID是所述接入网关为所述PDU会话的用户面数据分配的TEID;所述终端向所述接入网关发送第二响应消息,所述第二响应消息包括所述终端的TEID,所述终端的TEID是所述终端为所述PDU会话的用户面数据分配的TEID。In a possible design, the method may further include: the terminal receiving a second request message from the access gateway, where the second request message includes a protocol data unit (PDU) session identifier and the access The TEID of the ingress gateway, wherein the TEID of the access gateway is the TEID allocated by the access gateway for the user plane data of the PDU session; the terminal sends a second response message to the access gateway, and the The second response message includes the TEID of the terminal, where the TEID of the terminal is the TEID allocated by the terminal to the user plane data of the PDU session.
在一种可能的设计中,所述第二请求消息还包括所述接入网关的IP地址,所述接入网关的IP地址是所述接入网关为所述PDU会话的用户面数据分配的IP地址。In a possible design, the second request message further includes the IP address of the access gateway, and the IP address of the access gateway is allocated by the access gateway for the user plane data of the PDU session IP address.
在一种可能的设计中,所述方法还可以包括:所述终端向所述接入网关发送第一数据包,所述第一数据包包括第一IP包头、第一GTP-U包头和第一负荷,所述第一IP包头包括所述接入网关的IP地址,所述第一GTP-U包头包括所述接入网关的TEID;其中,在所述第一负荷是所述控制面数据时,所述接入网关的IP地址是所述接入网关为传输所述控制面数据分配的IP地址,和/或所述接入网关的TEID是所述接入网关为传输所述控制面数据分配的TEID;或者,在所述第一负荷是所述用户面数据时,所述接入网关的IP地址是所述接入网关为传输所述用户面数据分配的IP地址,和/或所述接入网关的TEID是所述接入网关为传输所述用户面数据分配的TEID。In a possible design, the method may further include: the terminal sending a first data packet to the access gateway, where the first data packet includes a first IP header, a first GTP-U header, and a second A payload, the first IP header includes the IP address of the access gateway, and the first GTP-U header includes the TEID of the access gateway; wherein, the first payload is the control plane data In this case, the IP address of the access gateway is the IP address assigned by the access gateway for transmitting the control plane data, and/or the TEID of the access gateway is the IP address allocated by the access gateway for transmitting the control plane data. the TEID allocated by the data; or, when the first load is the user plane data, the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the user plane data, and/or The TEID of the access gateway is the TEID allocated by the access gateway for transmitting the user plane data.
第三方面,本申请提供一种通信方法,该方法可以由终端执行或者由终端的部件执行。该方法包括:终端生成第一数据包,所述第一数据包包括第一网际互连协议(IP)包头、第一通用分组无线业务隧道协议-用户平面(GTP-U)和第一负荷,所述第一IP包头包括接入网关的IP地址,所述第一GTP-U包头包括所述接入网关的隧道端点标识(TEID);其中,所述第一负荷是控制面数据,所述接入网关的IP地址是所述接入网关为传输所述控制面数据分配的IP地址,所述接入网关的TEID是接入网关为传输所述控制面数据分配的TEID;或者,所述第一负荷是用户面数据,所述接入网关的IP地址是所述接入网关为传输所述用户面数据分配的IP地址,所述接入网关的TEID是接入网关为传输所述用户面数据分配的TEID;以及,所述终端向所述接入网关发送第一数据包。In a third aspect, the present application provides a communication method, and the method may be executed by a terminal or by components of the terminal. The method includes: the terminal generates a first data packet, the first data packet includes a first Internet Protocol (IP) header, a first General Packet Radio Service Tunneling Protocol-User Plane (GTP-U) and a first load, The first IP header includes the IP address of the access gateway, and the first GTP-U header includes the tunnel endpoint identifier (TEID) of the access gateway; wherein, the first load is control plane data, and the The IP address of the access gateway is the IP address allocated by the access gateway for transmitting the control plane data, and the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data; or, the The first load is user plane data, the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the user plane data, and the TEID of the access gateway is the IP address allocated by the access gateway for transmitting the user plane data. the TEID assigned to the data; and, the terminal sends the first data packet to the access gateway.
在一种可能的设计中,所述方法还可以包括:所述终端接收来自所述接入网关的第二数据包,所述第二数据包包括第二IP包头、第二GTP-U包头和第二负荷,所述第二IP包头包括所述接入网关的IP地址,所述第二GTP-U包头包括所述接入网关的TEID。In a possible design, the method may further include: the terminal receiving a second data packet from the access gateway, where the second data packet includes a second IP header, a second GTP-U header, and The second payload, the second IP header includes the IP address of the access gateway, and the second GTP-U header includes the TEID of the access gateway.
在一种可能的设计中,所述方法还可以包括:所述终端根据所述接入网关的IP地址和所述接入网关的TEID中的至少一个,确定所述第二负荷是控制面数据或者是用户面数据;或者,所述终端通过解析所述第二负荷,确定所述第二负荷是控制面数据或者是用户面数据。In a possible design, the method may further include: determining, by the terminal, that the second payload is control plane data according to at least one of the IP address of the access gateway and the TEID of the access gateway. Or it is user plane data; or, the terminal determines that the second load is control plane data or user plane data by analyzing the second load.
在一种可能的设计中,所述终端根据所述接入网关的IP地址和所述接入网关的TEID中的至少一个,确定所述第二负荷是控制面数据或者是用户面数据,可以包括如下一项或多项:In a possible design, the terminal determines, according to at least one of the IP address of the access gateway and the TEID of the access gateway, that the second load is control plane data or user plane data, and may Including one or more of the following:
当所述接入网关的TEID是所述接入网关为传输所述控制面数据分配的TEID时,所述终端确定所述第二负荷是所述控制面数据。When the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data, the terminal determines that the second payload is the control plane data.
或者,当所述接入网关的IP地址是所述接入网关为传输所述控制面数据分配的IP地址时,所述终端确定所述第二负荷是所述控制面数据。Or, when the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the control plane data, the terminal determines that the second payload is the control plane data.
或者,当所述接入网关的TEID是所述接入网关为传输所述控制面数据分配的TEID,且所述接入网关的IP地址是所述接入网关为传输所述控制面数据分配的IP地址时,所述终端确定所述第二负荷是所述控制面数据。Or, when the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data, and the IP address of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data When the IP address is , the terminal determines that the second payload is the control plane data.
在一种可能的设计中,所述接入网关为传输所述控制面数据分配的IP地址与所述接入网关为传输所述用户面数据分配的IP地址相同。In a possible design, the IP address allocated by the access gateway for transmitting the control plane data is the same as the IP address allocated by the access gateway for transmitting the user plane data.
第四方面,本申请提供一种通信方法,该方法可以由接入网关执行或者由接入网关的部件执行。该方法包括:接入网关接收来自终端的第一数据包,所述第一数据包包括第一通用路由封装(GRE)协议包头和第一负荷,所述第一GRE协议包头包括第一GRE关键字和第一协议类型字段;以及,所述接入网关根据所述第一GRE关键字和所述第一协议类型字段中的至少一个,确定所述第一负荷是控制面数据或者是用户面数据。In a fourth aspect, the present application provides a communication method, and the method may be executed by an access gateway or components of the access gateway. The method includes: the access gateway receives a first data packet from the terminal, the first data packet includes a first Generic Routing Encapsulation (GRE) protocol header and a first load, and the first GRE protocol header includes a first GRE key word and the first protocol type field; and, the access gateway determines, according to at least one of the first GRE keyword and the first protocol type field, that the first payload is control plane data or user plane data.
在上述实施例中,接入网关可以根据上行负荷外封装的GRE协议包头所包括的GRE关键字和协议类型字段中的至少一个,来区分该上行负荷是控制面数据或者是用户面数据,并且接入网关与终端之间建立的是GRE隧道,相较于IPsec隧道而言,可以简化终端接入核心网的流程。另外,在传输用户面数据时,基于IPsec隧道封装方式需要在用户面数据外封装双层IP包头,而基于GRE隧道封装方式需要在用户面数据外封装一层IP包头,显然基于GRE隧道封装方式的数据包的包头长度要小于基于IPsec隧道封装方式的,可以减少因数据包包头过长所导致的传输资源浪费、时延长、设备功耗大等问题。In the above embodiment, the access gateway can distinguish whether the uplink payload is control plane data or user plane data according to at least one of the GRE keyword and the protocol type field included in the GRE protocol header encapsulated outside the uplink payload, and The GRE tunnel is established between the access gateway and the terminal. Compared with the IPsec tunnel, the process for the terminal to access the core network can be simplified. In addition, when transmitting user plane data, the IPsec-based tunnel encapsulation method needs to encapsulate a double-layer IP header outside the user plane data, while the GRE tunnel-based encapsulation method needs to encapsulate a layer of IP header outside the user plane data, obviously based on the GRE tunnel encapsulation method The header length of the data packet is smaller than that based on the IPsec tunnel encapsulation method, which can reduce the waste of transmission resources, time extension, and high power consumption of the device caused by the excessive length of the packet header.
在一种可能的设计中,所述接入网关根据所述第一GRE关键字和所述第一协议类型字段中的至少一个,确定所述第一负荷是控制面数据或者是用户面数据,可以包括如下一项或多项:In a possible design, the access gateway determines, according to at least one of the first GRE keyword and the first protocol type field, that the first payload is control plane data or user plane data, Can include one or more of the following:
当所述第一GRE关键字是所述接入网关为传输所述控制面数据分配的关键字时,所述接入网关确定所述第一负荷是所述控制面数据。When the first GRE key is a key allocated by the access gateway for transmitting the control plane data, the access gateway determines that the first payload is the control plane data.
或者,当所述第一协议类型字段用于指示所述第一负荷是所述控制面数据时,所述接入网关确定所述第一负荷是所述控制面数据。Or, when the first protocol type field is used to indicate that the first payload is the control plane data, the access gateway determines that the first payload is the control plane data.
或者,当所述第一GRE关键字是所述接入网关为传输所述控制面数据分配的关键字,且所述第一协议类型字段用于指示所述第一负荷是所述控制面数据时,所述接入网关确定所述第一负荷是所述控制面数据。Or, when the first GRE keyword is a keyword allocated by the access gateway for transmitting the control plane data, and the first protocol type field is used to indicate that the first payload is the control plane data , the access gateway determines that the first load is the control plane data.
或者,当所述第一GRE关键字包括协议数据单元(PDU)会话标识时,所述接入网关确定所述第一负荷是所述PDU会话的用户面数据。Or, when the first GRE keyword includes a protocol data unit (PDU) session identifier, the access gateway determines that the first payload is user plane data of the PDU session.
通过上述设计,接入网关可以通过将负荷外封装的GRE协议包头中的GRE关键字与接入网关为传输控制面数据分配的关键字、PDU会话标识进行对比,和/或,解析GRE协议包头中的协议类型字段,来灵活判断该负荷是控制面数据还是用户面数据。Through the above design, the access gateway can compare the GRE keyword in the GRE protocol header encapsulated outside the payload with the keyword and PDU session identifier allocated by the access gateway for the transmission control plane data, and/or analyze the GRE protocol header The protocol type field in , to flexibly determine whether the load is control plane data or user plane data.
在一种可能的设计中,在接入网关接收来自终端的第一数据包之前,所述方法还包括:所述接入网关向所述终端发送第一请求消息,所述第一请求消息包括所述接入网关的网际互连协议(IP)地址以及所述接入网关为传输所述控制面数据分配的关键字。In a possible design, before the access gateway receives the first data packet from the terminal, the method further includes: the access gateway sends a first request message to the terminal, and the first request message includes The Internet Protocol (IP) address of the access gateway and the key allocated by the access gateway for transmitting the control plane data.
通过上述设计,接入网关与终端之间进行交互,可以将为传输控制面数据分配的关键字发送给终端,以便后续用于识别上行负荷是否为控制面数据。Through the above design, the access gateway interacts with the terminal, and can send the key assigned for the transmission control plane data to the terminal, so as to be used later to identify whether the uplink load is control plane data.
在一种可能的设计中,在接入网关接收来自终端的第一数据包之前,所述方法还包括: 所述接入网关接收来自接入与移动性管理功能(AMF)网元的指示信息,所述指示信息用于指示所述接入网关与所述终端之间无需建立网际互连安全性协议(IPsec)隧道。In a possible design, before the access gateway receives the first data packet from the terminal, the method further includes: the access gateway receiving indication information from an Access and Mobility Management Function (AMF) network element , the indication information is used to indicate that an Internet Security Protocol (IPsec) tunnel does not need to be established between the access gateway and the terminal.
在一种可能的设计中,所述第一数据包还包括第一IP包头,所述第一IP包头包括所述终端的IP地址,所述方法还包括:所述接入网关根据所述终端的IP地址、以及所述终端的IP地址与所述终端的标识信息之间的对应关系,确定所述终端的标识信息;所述接入网关根据所述终端的标识信息确定所述终端的上下文信息。In a possible design, the first data packet further includes a first IP header, and the first IP header includes the IP address of the terminal, and the method further includes: the access gateway according to the terminal The IP address of the terminal, and the corresponding relationship between the IP address of the terminal and the identification information of the terminal, determine the identification information of the terminal; the access gateway determines the context of the terminal according to the identification information of the terminal information.
在一种可能的设计中,所述方法还包括:所述接入网关接收来自接入节点的第二消息,所述第二消息包括所述终端的IP地址与所述终端的标识信息之间的对应关系。In a possible design, the method further includes: the access gateway receiving a second message from the access node, where the second message includes the information between the IP address of the terminal and the identification information of the terminal. corresponding relationship.
在一种可能的设计中,所述方法还包括:所述接入网关向所述终端发送第二数据包,所述第二数据包包括第二GRE协议包头和第二负荷,所述第二GRE协议包头包括第二GRE关键字和第二协议类型字段;其中,在所述第二负荷是所述控制消息时,所述第二GRE关键字是所述接入网关为传输所述控制面数据分配的关键字,和/或所述第二协议类型字段用于指示所述第二负荷是所述控制面数据;或者,在所述第二负荷是PDU会话的用户面数据时,所述第二GRE关键字包括所述PDU会话标识。In a possible design, the method further includes: the access gateway sending a second data packet to the terminal, the second data packet includes a second GRE protocol packet header and a second payload, and the second The GRE protocol packet header includes a second GRE keyword and a second protocol type field; wherein, when the second payload is the control message, the second GRE keyword is for the access gateway to transmit the control plane A keyword for data allocation, and/or the second protocol type field is used to indicate that the second load is the control plane data; or, when the second load is user plane data of a PDU session, the The second GRE key includes the PDU session identifier.
第五方面,本申请提供一种通信方法,该方法可以由终端执行或者由终端的部件执行。该方法包括:终端接收来自接入网关的第二数据包,所述第二数据包包括第二通用路由封装(GRE)协议包头和第二负荷,所述第二GRE协议包头包括第二GRE关键字和第二协议类型字段;以及,所述终端根据所述第二GRE关键字和所述第二协议类型字段中的至少一个,确定所述第二负荷是控制面数据或者是用户面数据。In a fifth aspect, the present application provides a communication method, and the method may be executed by a terminal or by components of the terminal. The method includes: the terminal receives a second data packet from the access gateway, the second data packet includes a second Generic Routing Encapsulation (GRE) protocol header and a second load, and the second GRE protocol header includes a second GRE key word and a second protocol type field; and, the terminal determines, according to at least one of the second GRE keyword and the second protocol type field, that the second payload is control plane data or user plane data.
在一种可能的设计中,所述终端根据所述第二GRE关键字和所述第二协议类型字段中的至少一个,确定所述第二负荷是控制面数据或者是用户面数据,包括如下一项或多项:In a possible design, the terminal determines that the second payload is control plane data or user plane data according to at least one of the second GRE keyword and the second protocol type field, including the following One or more:
当所述第二GRE关键字是所述接入网关为传输所述控制面数据分配的关键字时,所述终端确定所述第二负荷是所述控制面数据。When the second GRE key is a key allocated by the access gateway for transmitting the control plane data, the terminal determines that the second payload is the control plane data.
或者,当所述第二协议类型字段用于指示所述第一负荷是所述控制面数据时,所述终端确定所述第二负荷是所述控制面数据。Or, when the second protocol type field is used to indicate that the first payload is the control plane data, the terminal determines that the second payload is the control plane data.
或者,当所述第二GRE关键字是所述接入网关为传输所述控制面数据分配的关键字时,且所述第二协议类型字段用于指示所述第一负荷是所述控制面数据,所述终端确定所述第二负荷是所述控制面数据。Or, when the second GRE key is a key allocated by the access gateway for transmitting the control plane data, and the second protocol type field is used to indicate that the first load is the control plane data, the terminal determines that the second payload is the control plane data.
或者,当所述第二GRE关键字包括协议数据单元(PDU)会话标识时,所述终端确定所述第二负荷是所述PDU会话的用户面数据。Or, when the second GRE keyword includes a protocol data unit (PDU) session identifier, the terminal determines that the second payload is user plane data of the PDU session.
在一种可能的设计中,在终端接收来自接入网关的第二数据包之前,所述方法还包括:所述终端接收来自所述接入网关的第一请求消息,所述第一请求消息包括所述接入网关的网际互连协议(IP)地址以及所述第二GRE关键字,其中,所述第二GRE关键字是所述接入网关为传输所述控制面数据分配的关键字。In a possible design, before the terminal receives the second data packet from the access gateway, the method further includes: the terminal receives a first request message from the access gateway, and the first request message including the Internet Protocol (IP) address of the access gateway and the second GRE keyword, wherein the second GRE keyword is a keyword allocated by the access gateway for transmitting the control plane data .
在一种可能的设计中,所述方法还包括:所述终端向所述接入网关发送第一数据包,所述第一数据包包括第一GRE协议包头和第一负荷,所述第一GRE协议包头包括第一GRE关键字和第一协议类型字段;其中,在所述第一负荷是所述控制消息时,所述第一GRE关键字是所述接入网关为传输所述控制面数据分配的关键字,和/或所述第一协议类型字段用于指示所述第一负荷是所述控制面数据;或者,在所述第一负荷是PDU会话的用户面数据时,所述第一GRE关键字包括所述PDU会话标识。In a possible design, the method further includes: the terminal sends a first data packet to the access gateway, the first data packet includes a first GRE protocol header and a first payload, and the first The GRE protocol packet header includes a first GRE keyword and a first protocol type field; wherein, when the first load is the control message, the first GRE keyword is for the access gateway to transmit the control plane A keyword for data allocation, and/or the first protocol type field is used to indicate that the first load is the control plane data; or, when the first load is user plane data of a PDU session, the The first GRE key includes the PDU session identifier.
第六方面,本申请提供一种通信方法,该方法可以由接入网关执行,或者由接入网关的部件执行。该方法包括:接入网关接收来自终端的第一负荷,其中,所述第一负荷外封装有第一传输控制协议(TCP)包头,或者所述第一负荷外封装有第一通用路由封装(GRE)协议包头;所述接入网关根据所述第一负荷的封装方式,确定所述第一负荷是控制面数据或者是用户面数据。In a sixth aspect, the present application provides a communication method, and the method may be executed by an access gateway, or by components of the access gateway. The method includes: the access gateway receives a first payload from a terminal, wherein the first payload is encapsulated with a first Transmission Control Protocol (TCP) header, or the first payload is encapsulated with a first general routing encapsulation ( GRE) protocol header; the access gateway determines whether the first payload is control plane data or user plane data according to the encapsulation mode of the first payload.
在上述实施例中,针对控制面数据和用户面数据,负荷采用不同的封装方式,这样接入网关就可以根据接收到的负荷的封装方式,来区分该上行负荷是控制面数据或者是用户面数据。无论终端与接入网关之间是建立TCP连接,还是建立GRE隧道,相较于IPsec隧道而言,皆可以简化终端接入核心网的流程,且TCP连接可以提高数据传输的可靠性。并且,在传输用户面数据时,基于IPsec隧道封装方式需要在用户面数据外封装双层IP包头,而基于GRE隧道封装方式(或TCP封装方式)需要在用户面数据外封装一层IP包头,显然基于GRE隧道封装方式(或TCP封装方式)的数据包的包头长度要小于基于IPsec隧道封装方式的,可以减少因数据包包头过长所导致的传输资源浪费、时延长、设备功耗大等问题。In the above embodiments, different encapsulation methods are used for the control plane data and user plane data, so that the access gateway can distinguish whether the uplink load is control plane data or user plane data according to the encapsulation mode of the received load. data. Regardless of whether a TCP connection or a GRE tunnel is established between the terminal and the access gateway, compared with the IPsec tunnel, the process for the terminal to access the core network can be simplified, and the TCP connection can improve the reliability of data transmission. Moreover, when transmitting user plane data, the IPsec-based tunnel encapsulation method needs to encapsulate a double-layer IP header outside the user plane data, while the GRE tunnel-based encapsulation method (or TCP encapsulation method) needs to encapsulate a layer of IP header outside the user plane data. Obviously, the header length of the data packet based on the GRE tunnel encapsulation method (or TCP encapsulation method) is smaller than that based on the IPsec tunnel encapsulation method, which can reduce the waste of transmission resources, time extension, and high power consumption of the device caused by the overly long header of the data packet. question.
在一种可能的设计中,所述第一TCP包头包括所述接入网关为传输所述控制面数据分配的端口号,所述第一GRE协议包头中的GRE关键字包括协议数据单元(PDU)会话标识。In a possible design, the first TCP header includes the port number allocated by the access gateway for transmitting the control plane data, and the GRE keyword in the first GRE protocol header includes a protocol data unit (PDU ) session ID.
在一种可能的设计中,所述接入网关根据所述第一负荷的封装方式,确定所述第一负荷是控制面数据或者是用户面数据,可以包括如下一项或多项:In a possible design, the access gateway determines that the first payload is control plane data or user plane data according to the encapsulation mode of the first payload, which may include one or more of the following:
当所述第一负荷外封装有所述第一TCP包头时,所述接入网关确定所述第一负荷是所述控制面数据。When the first payload is encapsulated with the first TCP header, the access gateway determines that the first payload is the control plane data.
或者,当所述第一负荷外封装有所述第一GRE协议包头时,所述接入网关确定所述第一负荷是PDU会话的用户面数据。Or, when the first payload is encapsulated with the first GRE protocol header, the access gateway determines that the first payload is user plane data of a PDU session.
通过上述设计,接入网关可以通过负荷的封装方式来区分该负荷是用户面数据还是控制面数据。Through the above design, the access gateway can distinguish whether the load is user plane data or control plane data through the encapsulation mode of the load.
在一种可能的设计中,所述第一负荷外封装有所述第一TCP包头中,可以为:所述第一负荷外封装有第三GRE协议包头,所述第三GRE协议包头外封装有所述第一TCP包头中。In a possible design, the first payload is encapsulated with the first TCP header, which may be: the first payload is encapsulated with a third GRE protocol header, and the third GRE protocol header is encapsulated There is the first TCP packet header.
在一种可能的设计中,所述第三GRE协议包头包括第三GRE关键字,所述第三GRE关键字是接入节点为所述终端分配的关键字,所述方法还包括:所述接入网关根据所述第三GRE关键字、以及所述第三GRE关键字与所述终端的标识信息之间的对应关系,确定所述终端的标识信息;所述接入网关根据所述终端的标识信息确定所述终端的上下文信息。In a possible design, the third GRE protocol packet header includes a third GRE keyword, and the third GRE keyword is a keyword allocated by an access node to the terminal, and the method further includes: the The access gateway determines the identification information of the terminal according to the third GRE keyword and the corresponding relationship between the third GRE keyword and the identification information of the terminal; the access gateway determines the identification information of the terminal according to the The identification information of the terminal determines the context information of the terminal.
通过上述设计,接入网关可以根据负荷外封装的GRE协议包头中的GRE关键字确定上行负荷是来自哪个终端的,以及该终端的上下文信息,以便确定与该终端建立N2连接的控制面网元或确定与该终端建立N3连接的用户面网元。Through the above design, the access gateway can determine which terminal the uplink load comes from and the context information of the terminal according to the GRE keyword in the GRE protocol header encapsulated outside the load, so as to determine the control plane network element that establishes an N2 connection with the terminal Or determine the user plane network element that establishes the N3 connection with the terminal.
在一种可能的设计中,所述方法还包括:所述接入网关接收来自接入节点的第二消息,所述第二消息包括所述第三GRE关键字与所述终端的标识信息之间的对应关系。In a possible design, the method further includes: the access gateway receiving a second message from the access node, the second message including the third GRE keyword and the identification information of the terminal Correspondence between.
通过上述设计,接入网关可以获取接入节点为终端分配的GRE关键字,以便后续用于确定上行负荷来自哪个终端。Through the above design, the access gateway can obtain the GRE key assigned by the access node to the terminal, so as to subsequently use it to determine which terminal the uplink load comes from.
在一种可能的设计中,所述第一TCP包头外封装有第一网际互连协议(IP)包头,或 者所述第一GRE协议包头外封装有第一IP包头,所述第一IP包头包括所述终端的IP地址,所述方法还包括:所述接入网关根据所述终端的IP地址、以及所述终端的IP地址与所述终端的标识信息之间的对应关系,确定所述终端的标识信息;所述接入网关根据所述终端的标识信息确定所述终端的上下文信息。In a possible design, the first TCP header is encapsulated with a first Internet Protocol (IP) header, or the first GRE protocol header is encapsulated with a first IP header, and the first IP header is including the IP address of the terminal, and the method further includes: determining, by the access gateway, the Identification information of the terminal; the access gateway determines the context information of the terminal according to the identification information of the terminal.
在一种可能的设计中,所述方法还包括:所述接入网关接收来自接入节点的第二消息,所述第二消息包括所述终端的IP地址与所述终端的标识信息之间的对应关系。In a possible design, the method further includes: the access gateway receiving a second message from the access node, where the second message includes the information between the IP address of the terminal and the identification information of the terminal. corresponding relationship.
在一种可能的设计中,在接入网关接收来自终端的第一负荷之前,所述方法还包括:所述接入网关向所述终端发送第一请求消息,所述第一请求消息包括所述接入网关的端口号以及所述接入网关的IP地址,其中,所述接入网关的端口号是所述接入网关为传输所述控制面数据分配的端口号,所述接入网关的IP地址是所述接入网关为传输所述控制面数据分配的IP地址。In a possible design, before the access gateway receives the first load from the terminal, the method further includes: the access gateway sends a first request message to the terminal, the first request message includes the The port number of the access gateway and the IP address of the access gateway, wherein the port number of the access gateway is the port number allocated by the access gateway for transmitting the control plane data, and the access gateway The IP address of is the IP address allocated by the access gateway for transmitting the control plane data.
在一种可能的设计中,所述第一请求消息包括所述接入网关为传输用户面数据分配的IP地址。In a possible design, the first request message includes the IP address allocated by the access gateway for transmitting user plane data.
在一种可能的设计中,在接入网关接收来自终端的第一负荷之前,所述方法还包括:所述接入网关接收来自接入与移动性管理功能(AMF)网元的指示信息,所述指示信息用于指示所述接入网关与所述终端之间无需建立网际互连安全性协议(IPsec)隧道。In a possible design, before the access gateway receives the first load from the terminal, the method further includes: the access gateway receives indication information from an Access and Mobility Management Function (AMF) network element, The indication information is used to indicate that there is no need to establish an Internet Security Protocol (IPsec) tunnel between the access gateway and the terminal.
在一种可能的设计中,所述方法还包括:所述接入网关向所述终端发送第二负荷,所述第二负荷外封装有第二TCP包头,或者所述第二负荷外封装有第二GRE协议包头;其中,在所述第二负荷是所述控制面数据时,所述第二负荷外封装有所述第二TCP包头,所述第二TCP包头包括所述终端为传输所述控制面数据分配的端口号;或者,在所述第二负荷是PDU的用户面数据时,所述第二负荷外封装有第二GRE协议包头,且所述第二GRE协议包头中的GRE关键字包括所述PDU会话标识。In a possible design, the method further includes: the access gateway sending a second payload to the terminal, where the second payload is encapsulated with a second TCP header, or the second payload is encapsulated with A second GRE protocol header; wherein, when the second load is the control plane data, the second load is encapsulated with the second TCP header, and the second TCP header includes the terminal for transmission The port number assigned to the control plane data; or, when the second load is the user plane data of the PDU, the second load is encapsulated with a second GRE protocol header, and the GRE in the second GRE protocol header Keyword includes the PDU session identifier.
在一种可能的设计中,所述第二负荷外封装有所述第二TCP包头,可以为:所述第二负荷外封装有第四GRE协议包头,所述第四GRE协议包头外封装有所述第二TCP包头,其中,所述第四GRE协议包头中的GRE关键字是接入节点为所述终端分配的关键字。In a possible design, the second payload is encapsulated with the second TCP header, which may be: the second payload is encapsulated with a fourth GRE protocol header, and the fourth GRE protocol header is encapsulated with The second TCP header, wherein the GRE keyword in the fourth GRE protocol header is a keyword assigned by the access node to the terminal.
第七方面,本申请提供一种通信方法,该方法可以由终端执行或者由终端的部件执行,该方法包括:终端接收来自接入网关的第二负荷,其中,所述第二负荷外封装有第二传输控制协议(TCP)包头,或者所述第二负荷外封装有第二通用路由封装(GRE)协议包头;所述终端根据所述第二负荷的封装方式,确定所述第二负荷是控制面数据或者是用户面数据。In a seventh aspect, the present application provides a communication method, which may be performed by a terminal or by a component of the terminal, and the method includes: the terminal receives a second payload from an access gateway, wherein the second payload is encapsulated with The second Transmission Control Protocol (TCP) header, or the second load is encapsulated with a second Generic Routing Encapsulation (GRE) protocol header; the terminal determines that the second load is according to the encapsulation mode of the second load Control plane data or user plane data.
在一种可能的设计中,所述第二TCP包头包括所述终端为传输所述控制面数据分配的端口号,所述第二GRE协议包头中的GRE关键字包括协议数据单元(PDU)会话标识。In a possible design, the second TCP header includes the port number allocated by the terminal for transmitting the control plane data, and the GRE keyword in the second GRE protocol header includes a protocol data unit (PDU) session logo.
在一种可能的设计中,所述终端根据所述第二负荷的封装方式,确定所述第二负荷是控制面数据或者是用户面数据,可以包括如下一项或多项:In a possible design, the terminal determines that the second payload is control plane data or user plane data according to the encapsulation manner of the second payload, which may include one or more of the following:
当所述第二负荷外封装有所述第二TCP包头时,所述终端确定所述第二负荷是所述控制面数据。When the second payload is encapsulated with the second TCP header, the terminal determines that the second payload is the control plane data.
或者,当所述第二负荷外封装有所述第二GRE协议包头时,所述终端确定所述第一负荷是PDU会话的用户面数据。Or, when the second payload is encapsulated with the second GRE protocol header, the terminal determines that the first payload is user plane data of a PDU session.
在一种可能的设计中,所述第二负荷外封装有所述第二TCP包头,包括:所述第二负荷外封装有第四GRE协议包头,所述第四GRE协议包头外封装有所述第二TCP包头,其 中,所述第四GRE协议包头中的GRE关键字是接入节点为所述终端分配的关键字。In a possible design, the second payload is encapsulated with the second TCP header, including: the second payload is encapsulated with a fourth GRE protocol header, and the fourth GRE protocol header is encapsulated with The second TCP header, wherein the GRE keyword in the fourth GRE protocol header is a keyword assigned by the access node to the terminal.
在一种可能的设计中,在终端接收来自接入网关的第二负荷之前,所述方法还包括:所述终端接收来自所述接入网关的第一请求消息,所述第一请求消息包括所述接入网关的端口号以及所述接入网关的IP地址,其中,所述接入网关的端口号是所述接入网关为传输所述控制面数据分配的端口号,所述接入网关的IP地址是所述接入网关为传输所述控制面数据分配的IP地址。In a possible design, before the terminal receives the second load from the access gateway, the method further includes: the terminal receives a first request message from the access gateway, and the first request message includes The port number of the access gateway and the IP address of the access gateway, wherein the port number of the access gateway is the port number allocated by the access gateway for transmitting the control plane data, and the access The IP address of the gateway is the IP address allocated by the access gateway for transmitting the control plane data.
在一种可能的设计中,所述第一请求消息还包括所述接入网关为传输用户面数据分配的IP地址。In a possible design, the first request message further includes an IP address allocated by the access gateway for transmitting user plane data.
在一种可能的设计中,所述方法还包括:所述终端向所述接入网关发送第一负荷,所述第一负荷外封装有第一TCP包头,或者所述第一负荷外封装有第一GRE协议包头;其中,在所述第一负荷是所述控制面数据时,所述第一负荷外封装有所述第一TCP包头,所述第一TCP包头包括所述接入网关为传输所述控制面数据分配的端口号;或者,在所述第一负荷是PDU的用户面数据时,所述第一负荷外封装有第一GRE协议包头,且所述第一GRE协议包头中的GRE关键字包括所述PDU会话标识。In a possible design, the method further includes: the terminal sending a first payload to the access gateway, where the first payload is encapsulated with a first TCP header, or the first payload is encapsulated with A first GRE protocol header; wherein, when the first load is the control plane data, the first load is encapsulated with the first TCP header, and the first TCP header includes the access gateway as The port number assigned to transmit the control plane data; or, when the first load is user plane data of a PDU, the first load is encapsulated with a first GRE protocol header, and the first GRE protocol header contains The GRE keyword includes the PDU Session Identifier.
在一种可能的设计中,所述第一负荷外封装有所述第一TCP包头,可以为:所述第一负荷外封装有第三GRE协议包头,所述第三GRE协议包头外封装有所述第一TCP包头,其中,所述第三GRE协议包头中的GRE关键字是接入节点为所述终端分配的关键字。In a possible design, the first payload is encapsulated with the first TCP header, which may be: the first payload is encapsulated with a third GRE protocol header, and the third GRE protocol header is encapsulated with The first TCP header, wherein the GRE keyword in the third GRE protocol header is a keyword assigned by the access node to the terminal.
第八方面,本申请提供一种通信方法,该方法可以由接入节点执行或者由接入节点的部件执行。该方法包括:接入节点接收来自终端的第一负荷,所述第一负荷外封装有第一传输控制协议(TCP)包头;所述接入节点向接入网关发送所述第一负荷,其中所述第一负荷外封装有第三通用路由封装(GRE)协议包头,所述第三GRE协议包头外封装有所述第三TCP包头。In an eighth aspect, the present application provides a communication method, and the method may be executed by an access node or by a component of the access node. The method includes: the access node receives a first payload from a terminal, the first payload is encapsulated with a first transmission control protocol (TCP) header; the access node sends the first payload to an access gateway, wherein The first payload is encapsulated with a third Generic Routing Encapsulation (GRE) protocol header, and the third GRE protocol header is encapsulated with the third TCP header.
其中,所述第三GRE协议包头包括第三GRE关键字,所述第三GRE关键字是所述接入节点为所述终端分配的关键字,所述第三GRE关键字用于确定所述终端的标识信息。Wherein, the third GRE protocol packet header includes a third GRE keyword, the third GRE keyword is a keyword allocated by the access node to the terminal, and the third GRE keyword is used to determine the Identification information of the terminal.
在上述实施例中,UE与TNGF之间的TCP连接在接入节点处断开,即UE与接入节点之间建立TCP连接,接入节点再与TNGF建立TCP连接。接入节点接收到来自终端的第一负荷后,在第一负荷外封装GRE协议包头,并将GRE协议包头中的GRE关键字填写为接入节点为该终端分配的关键字,然后将封装后的第一负荷发送给TNGF,以标识第一负荷来自哪个终端。这样,TNGF就可以根据该GRE协议包头中的GRE关键字确定发送第一负荷的终端的标识信息,并基于该终端的标识信息确定与该终端建立N2连接的控制面网元、或者确定与该终端建立N3连接的用户面网元。In the above embodiments, the TCP connection between the UE and the TNGF is disconnected at the access node, that is, a TCP connection is established between the UE and the access node, and the access node then establishes a TCP connection with the TNGF. After the access node receives the first payload from the terminal, it encapsulates the GRE protocol header outside the first payload, and fills in the GRE keyword in the GRE protocol header as the keyword assigned by the access node to the terminal, and then encapsulates the The first payload of is sent to the TNGF to identify which terminal the first payload comes from. In this way, the TNGF can determine the identification information of the terminal sending the first payload according to the GRE keyword in the GRE protocol header, and determine the control plane network element that establishes an N2 connection with the terminal based on the identification information of the terminal, or determine the The user plane network element on which the terminal establishes an N3 connection.
在一种可能的设计中,所述方法还可以包括:所述接入节点为所述终端分配第三GRE关键字;所述接入节点向所述接入网关发送第二消息,所述第二消息包括所述第三GRE关键字与所述终端的标识信息之间的对应关系。In a possible design, the method may further include: the access node assigning a third GRE keyword to the terminal; the access node sending a second message to the access gateway, the first The second message includes the correspondence between the third GRE keyword and the identification information of the terminal.
在一种可能的设计中,所述方法还可以包括:所述接入节点向所述接入网关发送第二消息,所述第二消息包括所述终端的网际互连协议(IP)地址与所述终端的标识信息之间的对应关系。In a possible design, the method may further include: the access node sending a second message to the access gateway, where the second message includes the Internet Protocol (IP) address and The correspondence between the identification information of the terminals.
在一种可能的设计中,所述第一TCP包头外封装有第一IP包头,所述第一IP包头中的源地址是所述终端的IP地址,所述第一IP包头中的目的地址是所述接入节点的IP地址;所述第三TCP包头外封装有第三IP包头,所述第三IP包头中的源地址是所述接入节点的 IP地址,所述第一IP包头中的目的地址是所述接入网关的IP地址。In a possible design, the first TCP header is encapsulated with a first IP header, the source address in the first IP header is the IP address of the terminal, and the destination address in the first IP header is is the IP address of the access node; the third TCP header is encapsulated with a third IP header, the source address in the third IP header is the IP address of the access node, and the first IP header The destination address in is the IP address of the access gateway.
第九方面,本申请提供一种通信方法,该方法可以由接入与移动性管理功能网元执行,或者由接入与移动性管理功能网元的部件执行。该方法包括:接入与移动性管理功能(AMF)网元根据终端的类型和终端的业务类型中的至少一个,确定所述终端与接入网关之间无需建立网际互连安全性协议(IPsec)隧道;所述AMF网元向所述接入网关发送指示信息,所述指示信息用于指示所述终端与所述接入网关之间无需建立所述IPsec隧道。In a ninth aspect, the present application provides a communication method, and the method may be executed by an access and mobility management function network element, or by components of the access and mobility management function network element. The method includes: the access and mobility management function (AMF) network element, according to at least one of the type of the terminal and the service type of the terminal, determines that there is no need to establish an Internet security protocol (IPsec) between the terminal and the access gateway. ) tunnel; the AMF network element sends indication information to the access gateway, where the indication information is used to indicate that the IPsec tunnel does not need to be established between the terminal and the access gateway.
其中,终端的类型如为智能工厂的终端(如机械手臂、移动运货车等),oT设备,或者低功耗设备等。终端的业务类型如为远程控制业务等。Wherein, the type of the terminal is, for example, a terminal of a smart factory (such as a robot arm, a mobile truck, etc.), an IoT device, or a low-power device. The service type of the terminal is, for example, a remote control service.
在上述实施例中,AMF根据终端的类型和终端的业务类型中的至少一个,确定该终端与接入网关之间无需建立IPsec隧道,即可以进行简化的5G核心网接入流程,并向接入网关发送指示信息以指示接入网关不需要与终端建立IPsec隧道,从而可以简化终端接入5G核心网的流程,以及能够减少用户面数据传输过程中因IPsec封装方式而导致传输资源浪费、时延长、设备功耗大的问题。In the above embodiments, the AMF determines, according to at least one of the type of the terminal and the service type of the terminal, that there is no need to establish an IPsec tunnel between the terminal and the access gateway, that is, a simplified 5G core network access process can be performed, and the The ingress gateway sends indication information to indicate that the access gateway does not need to establish an IPsec tunnel with the terminal, thereby simplifying the process for the terminal to access the 5G core network, and reducing the waste of transmission resources and time spent due to the IPsec encapsulation method during user plane data transmission. The problems of extension and high power consumption of equipment.
第十方面,本申请提供一种通信装置,包括存储器,以及一个或多个处理器,所述存储器与所述一个或多个处理器耦合;所述存储器用于存储计算机程序或指令,当所述计算机程序或指令被所述一个或多个处理器执行时,使得所述通信装置执行上述第一方面或第一方面的任一项设计中所述的方法,或者使得所述通信装置执行上述第四方面或第四方面的任一项设计中所述的方法,或者使得所述通信装置执行上述第六方面或第六方面的任一项设计中所述的方法。In a tenth aspect, the present application provides a communication device, including a memory, and one or more processors, the memory is coupled to the one or more processors; the memory is used to store computer programs or instructions, when the When the computer program or instruction is executed by the one or more processors, the communication device executes the method described in the above-mentioned first aspect or any design of the first aspect, or causes the communication device to execute the above-mentioned The method described in the fourth aspect or any design of the fourth aspect, or causing the communication device to execute the method described in the sixth aspect or any design of the sixth aspect.
第十一方面,本申请提供一种通信装置,包括存储器,以及一个或多个处理器,所述存储器与所述一个或多个处理器耦合;所述存储器用于存储计算机程序或指令,当所述计算机程序或指令被所述一个或多个处理器执行时,使得所述通信装置执行上述第二方面或第二方面的任一项设计中所述的方法,或者使得所述通信装置执行上述第三方面或第三方面的任一项设计中所述的方法,或者使得所述通信装置执行上述第五方面或第五方面的任一项设计中所述的方法,或者使得所述通信装置执行上述第七方面或第七方面的任一项设计中所述的方法。In an eleventh aspect, the present application provides a communication device, including a memory, and one or more processors, the memory is coupled to the one or more processors; the memory is used to store computer programs or instructions, when When the computer program or instructions are executed by the one or more processors, the communication device executes the method described in the above-mentioned second aspect or any design of the second aspect, or causes the communication device to execute The method described in the above third aspect or any design of the third aspect, or make the communication device execute the method described in the above fifth aspect or any design of the fifth aspect, or make the communication The device executes the method described in the seventh aspect or any one of the designs of the seventh aspect.
第十二方面,本申请提供一种通信装置,包括存储器,以及一个或多个处理器,所述存储器与所述一个或多个处理器耦合;所述存储器用于存储计算机程序或指令,当所述计算机程序或指令被所述一个或多个处理器执行时,使得所述通信装置执行上述第八方面或第八方面的任一项设计中所述的方法。In a twelfth aspect, the present application provides a communication device, including a memory, and one or more processors, the memory is coupled to the one or more processors; the memory is used to store computer programs or instructions, when When the computer program or instructions are executed by the one or more processors, the communication device is made to execute the method described in the eighth aspect or any one of the designs of the eighth aspect.
第十三方面,本申请提供一种通信装置,包括存储器,以及一个或多个处理器,所述存储器与所述一个或多个处理器耦合;所述存储器用于存储计算机程序或指令,当所述计算机程序或指令被所述一个或多个处理器执行时,使得所述通信装置执行上述第九方面中所述的方法。In a thirteenth aspect, the present application provides a communication device, including a memory, and one or more processors, the memory is coupled to the one or more processors; the memory is used to store computer programs or instructions, when The computer program or instruction, when executed by the one or more processors, causes the communication device to perform the method described in the ninth aspect above.
第十四方面,本申请提供一种通信装置,包括通信单元和处理单元,这些单元或模块可以执行上述第一方面或第一方面的任一种设计示例中接入网关所执行的相应功能,或者执行上述第四方面或第四方面的任一种设计示例中接入网关所执行的相应功能,或者执行上述第六方面或第六方面的任一种设计示例中接入网关所执行的相应功能。In a fourteenth aspect, the present application provides a communication device, including a communication unit and a processing unit, and these units or modules can perform the corresponding functions performed by the access gateway in the first aspect or any design example of the first aspect, Or perform the corresponding functions performed by the access gateway in the fourth aspect or any design example of the fourth aspect, or perform the corresponding functions performed by the access gateway in the sixth aspect or any design example of the sixth aspect Features.
第十五方面,本申请提供一种通信装置,包括通信单元和处理单元,这些单元或模块可以执行上述第二方面或第二方面的任一种设计示例中终端所执行的相应功能,或者执行 上述第三方面或第三方面的任一种设计示例中终端所执行的相应功能,或者执行上述第五方面或第五方面的任一种设计示例中终端所执行的相应功能,或者执行上述第七方面或第七方面的任一种设计示例中终端所执行的相应功能。In a fifteenth aspect, the present application provides a communication device, including a communication unit and a processing unit. These units or modules can perform the corresponding functions performed by the terminal in any design example of the second aspect or the second aspect, or perform The corresponding function performed by the terminal in the above third aspect or any design example of the third aspect, or perform the corresponding function performed by the terminal in the above fifth aspect or any design example of the fifth aspect, or perform the above first The corresponding functions performed by the terminal in the seventh aspect or any design example of the seventh aspect.
第十六方面,本申请提供一种通信装置,包括通信单元和处理单元,这些单元或模块可以执行上述第八方面或第八方面的任一种设计示例中接入节点所执行的相应功能。In a sixteenth aspect, the present application provides a communication device, including a communication unit and a processing unit, and these units or modules can perform the corresponding functions performed by the access node in the eighth aspect or any design example of the eighth aspect.
第十七方面,本申请提供一种通信装置,包括通信单元和处理单元,这些单元或模块可以执行上述第九方面中接入与移动性管理功能网元所执行的相应功能。In a seventeenth aspect, the present application provides a communication device, including a communication unit and a processing unit, and these units or modules can perform corresponding functions performed by the access and mobility management functional network element in the ninth aspect.
第十八方面,本申请提供一种通信***,包括第十方面中的通信装置和/或第十一方面中的通信装置;或者包括第十四方面中的通信装置和/或第十五方面中的通信装置。In an eighteenth aspect, the present application provides a communication system, including the communication device in the tenth aspect and/or the communication device in the eleventh aspect; or including the communication device in the fourteenth aspect and/or the fifteenth aspect in the communication device.
第十九方面,本申请提供一种通信***,包括第十方面中的通信装置和/或第十二方面中的通信装置;或者包括第十四方面中的通信装置和/或第十六方面中的通信装置。In a nineteenth aspect, the present application provides a communication system, including the communication device in the tenth aspect and/or the communication device in the twelfth aspect; or including the communication device in the fourteenth aspect and/or the sixteenth aspect in the communication device.
第二十方面,本申请提供一种通信***,包括第十方面中的通信装置和/或第十三方面中的通信装置;或者包括第十四方面中的通信装置和/或第十七方面中的通信装置。In a twentieth aspect, the present application provides a communication system, including the communication device in the tenth aspect and/or the communication device in the thirteenth aspect; or including the communication device in the fourteenth aspect and/or the seventeenth aspect in the communication device.
第二十一方面,本申请提供一种计算机可读存储介质,该存储介质中存储有计算机程序或指令,当计算机程序或指令被执行时,可实现上述第一方面或第一方面的任一项设计中所述的方法,或者实现上述第四方面或第四方面的任一项设计中所述的方法,或者实现上述第六方面或第六方面的任一项设计中所述的方法。In the twenty-first aspect, the present application provides a computer-readable storage medium, in which computer programs or instructions are stored, and when the computer programs or instructions are executed, any one of the above-mentioned first aspect or the first aspect can be realized The method described in the first design, or realize the method described in the fourth aspect or any of the designs of the fourth aspect above, or realize the method described in the sixth aspect or any of the designs of the sixth aspect.
第二十二方面,本申请提供一种计算机可读存储介质,该存储介质中存储有计算机程序或指令,当计算机程序或指令被执行时,可实现上述第二方面或第二方面的任一项设计中所述的方法,或者实现上述第三方面或第三方面的任一项设计中所述的方法,或者实现上述第五方面或第五方面的任一项设计中所述的方法,或者实现上述第七方面或第七方面的任一项设计中所述的方法。In a twenty-second aspect, the present application provides a computer-readable storage medium, in which computer programs or instructions are stored, and when the computer programs or instructions are executed, any one of the above-mentioned second aspect or the second aspect can be realized The method described in the first design, or realize the method described in the above third aspect or any one design of the third aspect, or realize the above fifth aspect or the method described in any one design of the fifth aspect, Or implement the method described in the seventh aspect or any one of the designs of the seventh aspect.
第二十三方面,本申请提供一种计算机可读存储介质,该存储介质中存储有计算机程序或指令,当计算机程序或指令被执行时,可实现上述第八方面或第八方面的任一项设计中所述的方法。In a twenty-third aspect, the present application provides a computer-readable storage medium, in which computer programs or instructions are stored. When the computer programs or instructions are executed, any one of the above-mentioned eighth aspect or the eighth aspect can be realized. method described in the project design.
第二十四方面,本申请提供一种计算机可读存储介质,该存储介质中存储有计算机程序或指令,当计算机程序或指令被执行时,可实现上述第九方面中所述的方法。In a twenty-fourth aspect, the present application provides a computer-readable storage medium, in which a computer program or instruction is stored, and when the computer program or instruction is executed, the method described in the above-mentioned ninth aspect can be realized.
第二十五方面,本申请提供一种终端设备,该终端设备可实现上述第一方面或第一方面的任一项设计中所述的方法,或者实现上述第四方面或第四方面的任一项设计中所述的方法,或者实现上述第六方面或第六方面的任一项设计中所述的方法。In a twenty-fifth aspect, the present application provides a terminal device, which can implement the method described in the above-mentioned first aspect or any one of the designs of the first aspect, or implement the above-mentioned fourth aspect or any of the fourth aspects The method described in one design, or implement the method described in the sixth aspect or any design of the sixth aspect.
附图说明Description of drawings
图1a为本申请实施例中基于服务化架构的5G网络架构示意图;Figure 1a is a schematic diagram of a 5G network architecture based on a service architecture in an embodiment of the present application;
图1b为本申请实施例中基于点对点接口的5G网络架构一个示意图;Figure 1b is a schematic diagram of a 5G network architecture based on a point-to-point interface in an embodiment of the present application;
图1c为本申请实施例中基于点对点接口的5G网络架构又一个示意图;Figure 1c is another schematic diagram of the 5G network architecture based on the point-to-point interface in the embodiment of the present application;
图2为本申请实施例提供的通信方法的一种流程示意图;FIG. 2 is a schematic flow diagram of a communication method provided in an embodiment of the present application;
图3为本申请实施例提供的获取用于传输控制面数据的IP地址和TEID的方法的一种流程示意图;FIG. 3 is a schematic flowchart of a method for obtaining an IP address and a TEID for transmitting control plane data provided by an embodiment of the present application;
图4为本申请实施例提供的获取用于传输用户面数据的IP地址和TEID的方法的一种流程示意图;FIG. 4 is a schematic flowchart of a method for obtaining an IP address and a TEID for transmitting user plane data provided by an embodiment of the present application;
图5为本申请实施例提供的获取用于传输用户面数据的IP地址和TEID的方法的又一种流程示意图;FIG. 5 is another schematic flowchart of a method for obtaining an IP address and a TEID for transmitting user plane data provided by an embodiment of the present application;
图6为本申请实施例提供的通信方法的又一种流程示意图;FIG. 6 is another schematic flowchart of a communication method provided in an embodiment of the present application;
图7为本申请实施例提供的GRE协议包头的一种示意图;Fig. 7 is a schematic diagram of the GRE protocol header provided by the embodiment of the present application;
图8为本申请实施例提供的GRE协议包头中的GRE key的一种示意图;Fig. 8 is a schematic diagram of the GRE key in the GRE protocol header provided by the embodiment of the present application;
图9为本申请实施例提供的获取用于传输控制面数据的GRE key的方法的一种流程示意图;FIG. 9 is a schematic flow diagram of a method for obtaining a GRE key used to transmit control plane data provided by an embodiment of the present application;
图10为本申请实施例提供的通信方法的再一种流程示意图;FIG. 10 is another schematic flowchart of the communication method provided by the embodiment of the present application;
图11为本申请实施例提供的获取用于传输控制面数据的TCP端口号的方法一种流程示意图;FIG. 11 is a schematic flow diagram of a method for obtaining a TCP port number for transmitting control plane data provided by an embodiment of the present application;
图12为本申请实施例提供的通信装置的一种结构示意图;FIG. 12 is a schematic structural diagram of a communication device provided by an embodiment of the present application;
图13为本申请实施例提供的通信装置的又一种结构示意图;FIG. 13 is another schematic structural diagram of a communication device provided by an embodiment of the present application;
图14为本申请实施例提供的通信方法的再一种流程示意图。FIG. 14 is another schematic flowchart of the communication method provided by the embodiment of the present application.
具体实施方式detailed description
为了使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请作进一步地详细描述。方法实施例中的具体操作方法也可以应用于装置实施例或***实施例中。In order to make the purpose, technical solution and advantages of the application clearer, the application will be further described in detail below in conjunction with the accompanying drawings. The specific operation methods in the method embodiments can also be applied to the device embodiments or system embodiments.
本申请实施例中的术语“***”和“网络”可被互换使用。“多个”是指两个或两个以上,鉴于此,本申请实施例中也可以将“多个”理解为“至少两个”。“至少一个”,可理解为一个或多个,例如理解为一个、两个或更多个。例如,包括至少一个,是指包括一个、两个或更多个,而且不限制包括的是哪几个。例如,包括A、B和C中的至少一个,那么包括的可以是A、B、C,A和B,A和C,B和C,或A和B和C。同理,对于“至少一种”等描述的理解,也是类似的。“以下至少一项(个)”或其类似表达,是指这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如“A,B和C中的至少一个”包括A,B,C,AB,AC,BC或ABC。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,字符“/”,如无特殊说明,一般表示前后关联对象是一种“或”的关系。The terms "system" and "network" in the embodiments of the present application may be used interchangeably. "Multiple" means two or more, and in view of this, "multiple" can also be understood as "at least two" in the embodiments of the present application. "At least one" can be understood as one or more, such as one, two or more. For example, including at least one means including one, two or more, and does not limit which ones are included. For example, where at least one of A, B, and C is included, then A, B, C, A and B, A and C, B and C, or A and B and C may be included. Similarly, the understanding of descriptions such as "at least one" is similar. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example "at least one of A, B and C" includes A, B, C, AB, AC, BC or ABC. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently. In addition, the character "/", unless otherwise specified, generally indicates that the associated objects before and after are in an "or" relationship.
除非有特别说明,本申请实施例提及“第一”、“第二”、“第三”、“第四”等序数词用于对多个对象进行区分,不用于限定多个对象的顺序、时序、优先级或者重要程度,并且“第一”、“第二”、“第三”、“第四”的描述也并不限定对象一定不同。Unless otherwise specified, ordinal numerals such as "first", "second", "third", and "fourth" mentioned in the embodiments of this application are used to distinguish multiple objects, and are not used to limit the order of multiple objects , timing, priority or degree of importance, and the descriptions of "first", "second", "third", and "fourth" do not limit that the objects must be different.
如图1a所示,为基于服务化架构的第五代(5th generation,5G)网络架构示意图。图1a所示的5G网络架构中可包括三部分,分别是终端部分、数据网络(data network,DN)和运营商网络部分。下面对其中的部分网元的功能进行简单介绍说明。As shown in FIG. 1a, it is a schematic diagram of a fifth generation (5th generation, 5G) network architecture based on a service architecture. The 5G network architecture shown in Figure 1a may include three parts, namely a terminal part, a data network (data network, DN) and an operator network part. The functions of some of the network elements are briefly introduced and described below.
其中,运营商网络可包括但不限定于以下网元中的一个或多个:网络切片选择功能(network slice selection function,NSSF)网元、鉴权服务器功能(authentication server function,AUSF)网元、网络开放功能(network exposure function,NEF)网元、网络存储功能(network repository function,NRF)网元、接入与移动性管理功能(access and mobility management function,AMF)网元、策略控制功能(policy control function,PCF)网元、统一数据管理(unified data management,UDM)网元、会话管理功能(session management  function,SMF)网元、接入网(access network,AN)或无线接入网(radioaccess network,RAN)、以及用户面功能(user plane function,UPF)网元等。上述运营商网络中,除无线接入网部分之外的部分可以称为核心网络部分。在一种可能的实现方法中,运营商网络中还包括应用功能(application function,AF)网元。Wherein, the operator network may include but not limited to one or more of the following network elements: network slice selection function (network slice selection function, NSSF) network element, authentication server function (authentication server function, AUSF) network element, Network exposure function (NEF) network element, network repository function (NRF) network element, access and mobility management function (access and mobility management function, AMF) network element, policy control function (policy control function (PCF) network element, unified data management (unified data management, UDM) network element, session management function (session management function, SMF) network element, access network (AN) or wireless access network (radioaccess) network, RAN), and user plane function (user plane function, UPF) network elements, etc. In the above operator network, the part other than the radio access network part may be referred to as the core network part. In a possible implementation method, the operator network also includes an application function (application function, AF) network element.
终端设备(terminal device),可简称为终端,是一种具有无线收发功能的设备,可以部署在陆地上,包括室内或室外、手持或车载;也可以部署在水面上(如轮船等);还可以部署在空中(例如飞机、气球和卫星上等)。所述终端设备可以是平板电脑(pad)、带无线收发功能的电脑、虚拟现实(virtual reality,VR)终端、增强现实(augmented reality,AR)终端、工业控制(industrial control)中的无线终端、无人驾驶(self driving)中的无线终端、远程医疗(remote medical)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端、用户设备(user equipment,UE)、适应于物联网(Internet of Things,IoT)的终端设备(如智能工厂的终端设备、智能制造业的终端设备等)、支持星闪(sparklink)短距离通信技术的终端设备等。Terminal device (terminal device), which can be referred to as a terminal for short, is a device with wireless transceiver function, which can be deployed on land, including indoor or outdoor, handheld or vehicle-mounted; it can also be deployed on water (such as ships, etc.); Can be deployed in the air (such as aircraft, balloons and satellites, etc.). The terminal device may be a tablet computer (pad), a computer with a wireless transceiver function, a virtual reality (virtual reality, VR) terminal, an augmented reality (augmented reality, AR) terminal, a wireless terminal in industrial control (industrial control), Wireless terminals in self driving, wireless terminals in remote medical, wireless terminals in smart grid, wireless terminals in transportation safety, smart city ), wireless terminals in smart home (smart home), user equipment (user equipment, UE), terminal equipment adapted to the Internet of Things (Internet of Things, IoT) (such as terminal equipment in smart factories, smart manufacturing industry terminal equipment, etc.), terminal equipment supporting sparklink short-distance communication technology, etc.
上述终端可通过运营商网络提供的接口(例如N1等)与运营商网络建立连接,使用运营商网络提供的数据和/或语音等服务。终端还可通过运营商网络访问DN,使用DN上部署的运营商业务,和/或第三方提供的业务。其中,上述第三方可为运营商网络和终端设备之外的服务方,可为终端设备提供他数据和/或语音等服务。其中,上述第三方的具体表现形式,具体可根据实际应用场景确定,在此不做限制。The above-mentioned terminal can establish a connection with the operator network through an interface provided by the operator network (for example, N1, etc.), and use services such as data and/or voice provided by the operator network. The terminal can also access the DN through the operator network, and use operator services deployed on the DN, and/or services provided by a third party. Wherein, the above-mentioned third party may be a service party other than the operator's network and the terminal device, and may provide other services such as data and/or voice for the terminal device. Among them, the specific form of expression of the above-mentioned third party can be determined according to the actual application scenario, and is not limited here.
RAN是运营商网络的子网络,是运营商网络中业务节点与终端设备之间的实施***。终端设备要接入运营商网络,首先是经过RAN,进而可通过RAN与运营商网络的业务节点连接。RAN设备,是一种为终端设备提供无线通信功能的设备,RAN设备也称为接入网设备。RAN设备包括但不限于:5G中的下一代基站(g nodeB,gNB)、演进型节点B(evolved node B,eNB)、无线网络控制器(radio network controller,RNC)、节点B(node B,NB)、基站控制器(base station controller,BSC)、基站收发台(base transceiver station,BTS)、家庭基站(例如,home evolved nodeB,或home node B,HNB)、基带单元(baseBand unit,BBU)、传输点(transmitting and receiving point,TRP)、发射点(transmitting point,TP)、移动交换中心等。The RAN is a sub-network of the operator's network and an implementation system between service nodes and terminal equipment in the operator's network. To access the operator's network, the terminal equipment first passes through the RAN, and then can be connected to the service node of the operator's network through the RAN. A RAN device is a device that provides a wireless communication function for a terminal device, and the RAN device is also called an access network device. RAN equipment includes but is not limited to: next-generation base station (g nodeB, gNB), evolved node B (evolved node B, eNB), radio network controller (radio network controller, RNC), node B (node B, NB), base station controller (base station controller, BSC), base transceiver station (base transceiver station, BTS), home base station (for example, home evolved nodeB, or home node B, HNB), baseband unit (baseBand unit, BBU) , transmission point (transmitting and receiving point, TRP), transmission point (transmitting point, TP), mobile switching center, etc.
AMF网元,主要进行移动性管理、接入鉴权/授权等功能。此外,还负责在UE与PCF间传递用户策略。The AMF network element mainly performs functions such as mobility management and access authentication/authorization. In addition, it is also responsible for transferring user policies between UE and PCF.
SMF网元,主要进行会话管理、PCF下发控制策略的执行、UPF的选择、UE互联网协议(internet protocol,IP)地址分配等功能。The SMF network element mainly performs functions such as session management, execution of control policies issued by the PCF, selection of UPF, and allocation of UE Internet Protocol (internet protocol, IP) addresses.
UPF网元,作为和数据网络的接口,完成用户面数据转发、基于会话/流级的计费统计,带宽限制等功能。The UPF network element, as an interface with the data network, completes functions such as user plane data forwarding, session/flow-based charging statistics, and bandwidth limitation.
UDM网元,主要负责管理签约数据、用户接入授权等功能。The UDM network element is mainly responsible for managing subscription data, user access authorization and other functions.
NSSF网元,主要负责管理网络切片相关的信息。The NSSF network element is mainly responsible for managing information related to network slicing.
NEF网元,主要用于支持能力和事件的开放。NEF network elements are mainly used to support the opening of capabilities and events.
AF网元,主要传递应用侧对网络侧的需求,例如,服务质量(Quality of Service,QoS)需求或用户状态事件订阅等。AF可以是第三方功能实体,也可以是运营商部署的应用服务,如IP多媒体子***(IP Multimedia Subsystem,IMS)语音呼叫业务。The AF network element mainly transmits the requirements from the application side to the network side, for example, Quality of Service (QoS) requirements or user status event subscription. The AF may be a third-party functional entity, or an application service deployed by an operator, such as an IP Multimedia Subsystem (IP Multimedia Subsystem, IMS) voice call service.
PCF网元,主要负责针对会话、业务数据流级别进行计费、QoS带宽保障及移动性管理、UE策略决策等策略控制功能。该架构中,AMF与SMF所连接的PCF分别对应AM PCF(PCF for Access and Mobility Control)和SM PCF(PCF for Session Management),在实际部署场景中可能不是同一个PCF实体。The PCF network element is mainly responsible for policy control functions such as charging for sessions and service data flow levels, QoS bandwidth guarantee, mobility management, and UE policy decision-making. In this architecture, the PCFs connected to AMF and SMF correspond to AM PCF (PCF for Access and Mobility Control) and SM PCF (PCF for Session Management), respectively, which may not be the same PCF entity in the actual deployment scenario.
NRF网元,可用于提供网元发现功能,基于其他网元的请求,提供网元类型对应的网元信息。NRF还提供网元管理服务,如网元注册、更新、去注册以及网元状态订阅和推送等。The NRF network element can be used to provide a network element discovery function, and provide network element information corresponding to the network element type based on the request of other network elements. NRF also provides network element management services, such as network element registration, update, de-registration, network element status subscription and push, etc.
AUSF网元:主要负责对用户进行鉴权,以确定是否允许用户或设备接入网络。AUSF network element: It is mainly responsible for authenticating users to determine whether users or devices are allowed to access the network.
DN,是位于运营商网络之外的网络,运营商网络可以接入多个DN,DN上可部署多种业务,可为终端设备提供数据和/或语音等服务。例如,DN是某智能工厂的私有网络,智能工厂安装在车间的传感器可为终端设备,DN中部署了传感器的控制服务器,控制服务器可为传感器提供服务。传感器可与控制服务器通信,获取控制服务器的指令,根据指令将采集的传感器数据传送给控制服务器等。又例如,DN是某公司的内部办公网络,该公司员工的手机或者电脑可为终端设备,员工的手机或者电脑可以访问公司内部办公网络上的信息、数据资源等。DN is a network outside the operator's network. The operator's network can access multiple DNs, and various services can be deployed on the DN, which can provide data and/or voice services for terminal equipment. For example, DN is a private network of a smart factory. The sensors installed in the workshop of the smart factory can be terminal devices. The control server of the sensor is deployed in the DN, and the control server can provide services for the sensor. The sensor can communicate with the control server, obtain instructions from the control server, and transmit the collected sensor data to the control server according to the instructions. For another example, DN is a company's internal office network, and the mobile phone or computer of the company's employees can be a terminal device, and the employee's mobile phone or computer can access information and data resources on the company's internal office network.
图1a中Nnssf、Nausf、Nnef、Nnrf、Namf、Npcf、Nsmf、Nudm、Naf、N1、N2、N3、N4、以及N6为接口序列号。这些接口序列号的含义可参见3GPP标准协议中定义的含义,在此不做限制。In Fig. 1a, Nnssf, Nausf, Nnef, Nnrf, Namf, Npcf, Nsmf, Nudm, Naf, N1, N2, N3, N4, and N6 are interface serial numbers. For the meanings of these interface serial numbers, refer to the meanings defined in the 3GPP standard protocol, and there is no limitation here.
当5G核心网支持非受信的non-3GPP接入时,则基于点对点接口的5G网络架构如图1b所示。其中,接入网包括3GPP接入网和非受信的non-3GPP接入网。3GPP接入网中的接入设备可以称为无线接入网(radioaccess network,RAN)设备。非受信的non-3GPP接入网中的接入设备可以称为non-3GPP互通功能(non-3GPP interworking function,N3IWF)设备。N3IWF设备例如可以包括路由器等。When the 5G core network supports untrusted non-3GPP access, the 5G network architecture based on point-to-point interfaces is shown in Figure 1b. Wherein, the access network includes a 3GPP access network and an untrusted non-3GPP access network. Access devices in the 3GPP access network may be called radio access network (radioaccess network, RAN) devices. An access device in an untrusted non-3GPP access network may be called a non-3GPP interworking function (non-3GPP interworking function, N3IWF) device. The N3IWF equipment may include routers and the like, for example.
如图1b所示,为基于点对点接口的5G网络架构示意图,其中的网元的功能的介绍可以参考图1a中对应的网元的功能的介绍,不再赘述。图1b与图1a的主要区别在于:图1b中的各个网元之间的接口是点对点的接口,而图1a中的各个网元之间的接口是服务化的接口。As shown in Figure 1b, it is a schematic diagram of a 5G network architecture based on a point-to-point interface, and the introduction of the functions of the network elements can refer to the introduction of the functions of the corresponding network elements in Figure 1a, and will not be repeated here. The main difference between FIG. 1b and FIG. 1a is that the interfaces between network elements in FIG. 1b are point-to-point interfaces, while the interfaces between network elements in FIG. 1a are service interfaces.
图1b中N1、N2、N3、N4、N6、N11、NWu、Y1、以及Y2为接口序列号。这些接口序列号的含义可参见3GPP标准协议中定义的含义,在此不做限制。N1, N2, N3, N4, N6, N11, NWu, Y1, and Y2 in FIG. 1b are interface serial numbers. For the meanings of these interface serial numbers, refer to the meanings defined in the 3GPP standard protocol, and there is no limitation here.
当5G核心网支持受信的non-3GPP接入,或者支持有线网络接入,或者支持受信的non-3GPP和有线网络接入时,其5G网络架构与图1b类似。可将图1b中的非受信的non-3GPP接入替换为受信的non-3GPP接入,以及将N3IWF替换为受信的non-3GPP接入网关(trusted non-3GPP gateway function,TNGF);或者,将图1b中的非受信的non-3GPP接入替换为有线网络接入,以及将N3IWF替换为有线网络接入网关(wireline access gateway function,W-AGF)。When the 5G core network supports trusted non-3GPP access, or supports wired network access, or supports trusted non-3GPP and wired network access, its 5G network architecture is similar to Figure 1b. The non-trusted non-3GPP access in Figure 1b may be replaced by a trusted non-3GPP access, and the N3IWF may be replaced by a trusted non-3GPP access gateway (trusted non-3GPP gateway function, TNGF); or, Replace the untrusted non-3GPP access in Figure 1b with wired network access, and replace N3IWF with a wired network access gateway function (W-AGF).
如图1c所示,为基于点对点接口的5G网络架构示意图,其中的网元的功能的介绍可以参考图1a中对应的网元的功能的介绍,不再赘述。图1c与图1a的主要区别在于:图1c中的各个网元之间的接口是点对点的接口,而图1a中的各个网元之间的接口是服务化的接口。As shown in Figure 1c, it is a schematic diagram of a 5G network architecture based on a point-to-point interface, and the introduction of the functions of the network elements can refer to the introduction of the corresponding network element functions in Figure 1a, and will not be repeated here. The main difference between FIG. 1c and FIG. 1a is that the interfaces between network elements in FIG. 1c are point-to-point interfaces, while the interfaces between network elements in FIG. 1a are service interfaces.
图1c中N1、N2、N3、N4、N6、N11、NWu、以及Uu为接口序列号。这些接口序列 号的含义可参见3GPP标准协议中定义的含义,在此不做限制。N1, N2, N3, N4, N6, N11, NWu, and Uu in Fig. 1c are interface serial numbers. For the meaning of these interface serial numbers, refer to the meaning defined in the 3GPP standard agreement, and there is no limitation here.
可以理解的是,上述网元或者功能既可以是硬件设备中的网络元件,也可以是在专用硬件上运行软件功能,或者是平台(例如,云平台)上实例化的虚拟化功能。可选的,上述网元或者功能可以由一个设备实现,也可以由多个设备共同实现,还可以是一个设备内的一个功能模块,本申请实施例对此不作具体限定。It can be understood that the above-mentioned network element or function may be a network element in a hardware device, or a software function running on dedicated hardware, or a virtualization function instantiated on a platform (for example, a cloud platform). Optionally, the foregoing network element or function may be implemented by one device, or jointly implemented by multiple devices, or may be a functional module in one device, which is not specifically limited in this embodiment of the present application.
前面介绍了本申请实施例适应的应用场景,接下来结合附图介绍本申请实施例提供的通信方法。The application scenarios to which the embodiments of the present application are adapted are introduced above, and the communication method provided by the embodiments of the present application is described next with reference to the accompanying drawings.
本申请实施例提供一种通信方法,该方法可应用于图1b或图1c所示的non-3GPP接入场景。当本申请实施例提供的通信方法应用于图1b所示的非受信的non-3GPP接入场景时,接入网关为N3IWF或下一代接入网关(next generation packet data Gateway,ngPDG)。当本申请实施例提供的通信方法应用于图1c所示的受信的non-3GPP接入场景时,接入网关为TNGF。当本申请实施例提供的通信方法应用于图1c所示的有线接入场景时,接入网关为W-AGF。终端与接入网关之间的接入节点(又可以称为接入设备)可以为无线本地网络接入节点(wireless local area networks access point,WLAN AP)、固定接入网络(fixed access network,FAN)设备、支持星闪短距离通信的G节点(G-node)、wifi AP、蓝牙接入节点、交换机、或路由器等。为了方便说明,本申请实施例以受信的non-3GPP接入场景,即接入网关为TNGF为例进行说明。The embodiment of the present application provides a communication method, which can be applied to the non-3GPP access scenario shown in FIG. 1b or FIG. 1c. When the communication method provided by the embodiment of the present application is applied to the untrusted non-3GPP access scenario shown in FIG. 1b, the access gateway is N3IWF or next generation access gateway (next generation packet data Gateway, ngPDG). When the communication method provided by the embodiment of the present application is applied to the trusted non-3GPP access scenario shown in FIG. 1c, the access gateway is TNGF. When the communication method provided by the embodiment of the present application is applied to the wired access scenario shown in FIG. 1c, the access gateway is W-AGF. The access node (also called an access device) between the terminal and the access gateway can be a wireless local area networks access point (WLAN AP), a fixed access network (fixed access network, FAN ) devices, G-nodes (G-nodes), wifi APs, Bluetooth access nodes, switches, or routers that support Starlight short-distance communication. For the convenience of description, the embodiment of the present application takes a trusted non-3GPP access scenario, that is, the access gateway is TNGF as an example for description.
另外,本申请实施例中的接入与移动性管理网元、统一数据管理、用户面网元分别可以是图1a、图1b或图1c中的AMF、UDM、UPF,也可以是未来通信如第六代(6th generation,6G)网络中具有上述AMF、UDM、UPF的功能的网元,本申请实施例对此不限定。为方便说明,本申请实施例以接入与移动性管理网元、统一数据管理、用户面网元分别为上述AMF、UDM、UPF为例进行说明。进一步地,本申请中以终端为UE为例进行说明。In addition, the access and mobility management network elements, unified data management, and user plane network elements in this embodiment of the application can be AMF, UDM, and UPF in Figure 1a, Figure 1b, or Figure 1c, respectively, or they can be future communications such as In the sixth generation (6th generation, 6G) network, the network element having the functions of the above-mentioned AMF, UDM, and UPF is not limited in this embodiment of the present application. For the convenience of description, the embodiments of the present application are described by taking the above-mentioned AMF, UDM, and UPF as an example for the network elements of access and mobility management, unified data management, and user plane, respectively. Further, in this application, the terminal is UE as an example for illustration.
实施例一Embodiment one
图2示出了本申请实施例提供的通信方法的流程示意图。如图2所示,本实施例分别从上行方向和下行方向对本实施例提供的通信方法进行介绍。FIG. 2 shows a schematic flowchart of a communication method provided by an embodiment of the present application. As shown in FIG. 2 , this embodiment introduces the communication method provided by this embodiment from the uplink direction and the downlink direction respectively.
需要说明的是,为了便于理解,在下文中将TNGF为传输控制面数据分配的隧道端点标识(tunnel endpoint identifier,TEID)记为TNGF TEID_1,将TNGF为传输用户面数据分配的TEID记为TNGF TEID_2,将TNGF为传输控制面数据分配的网际互连协议(internet protocol,IP)地址记为TNGF IP地址1,将TNGF为传输用户面数据分配的IP地址记为TNGF IP地址2,将UE为传输控制面数据分配的TEID记为UE TEID_1,以及将UE为传输用户面数据分配的TEID记为UE TEID_2。It should be noted that, in order to facilitate understanding, the tunnel endpoint identifier (tunnel endpoint identifier, TEID) allocated by TNGF for the transmission of control plane data is denoted as TNGF TEID_1, and the TEID allocated by TNGF for transmission of user plane data is denoted as TNGF TEID_2, The Internet protocol (internet protocol, IP) address allocated by TNGF for transmission control plane data is recorded as TNGF IP address 1, the IP address allocated by TNGF for transmission of user plane data is recorded as TNGF IP address 2, and the UE is designated as transmission control plane data. The TEID allocated for the plane data is denoted as UE TEID_1, and the TEID allocated by the UE for transmitting user plane data is denoted as UE TEID_2.
为了便于表述,下文中将负荷外封装有通用分组无线业务隧道协议-用户平面(general packet radio service tunnel protocol-user plane,GTP-U)包头,GTP-U包头外封装有用户数据报协议(User Datagram Protocol,UDP)包头,以及该UDP包头外封装有IP包头的封装方式记为GTP-U/UDP/IP。以及,下文中将第一消息(或第三消息)外封装有GTP-U包头,GTP-U包头外封装有UDP包头,以及该UDP包头外封装有IP包头的封装方式记为消息/GTP-U/UDP/IP。For the convenience of expression, in the following, the payload is encapsulated with a general packet radio service tunnel protocol-user plane (GTP-U) packet header, and the GTP-U packet header is encapsulated with a User Datagram Protocol (User Datagram Protocol) packet header. Datagram Protocol, UDP) packet header, and the encapsulation method of the IP packet header encapsulated outside the UDP packet header is denoted as GTP-U/UDP/IP. And, hereinafter, the first message (or the third message) is encapsulated with a GTP-U header, the GTP-U header is encapsulated with a UDP header, and the UDP header is encapsulated with an IP header as message/GTP- U/UDP/IP.
S201:UE向TNGF发送第一数据包。相应的,TNGF接收第一数据包。S201: The UE sends a first data packet to the TNGF. Correspondingly, the TNGF receives the first data packet.
UE可以通过GTP-U隧道向TNGF发送第一数据包。其中,第一数据包包括第一IP包头、第一GTP-U包头以及第一负荷。例如,第一负荷外封装有第一GTP-U包头,第一 GTP-U包头外封装有第一UDP包头,第一UDP包头外封装有第一IP包头。具体的,UE可以将第一负荷外封装第一GTP-U包头,在第一GTP-包头外封装第一UDP包头,以及在该第一UDP包头外封装第一IP包头,得到第一数据包,并通过GTP-U隧道向TNGF发送该第一数据包。其中,负荷可以是控制面数据,控制面数据包括控制面消息,如非接入层(non access stratum,NAS)消息,或UE与TNGF之间交互的除了NAS消息之外的其它控制面数据;也可以是用户面数据,如远程控制业务数据等。The UE may send the first data packet to the TNGF through the GTP-U tunnel. Wherein, the first data packet includes a first IP header, a first GTP-U header and a first payload. For example, the first payload is encapsulated with a first GTP-U header, the first GTP-U header is encapsulated with a first UDP header, and the first UDP header is encapsulated with a first IP header. Specifically, the UE may encapsulate the first GTP-U header outside the first payload, encapsulate the first UDP header outside the first GTP-header, and encapsulate the first IP header outside the first UDP header, to obtain the first data packet , and send the first data packet to the TNGF through the GTP-U tunnel. Wherein, the load may be control plane data, and the control plane data includes control plane messages, such as non access stratum (non access stratum, NAS) messages, or other control plane data other than NAS messages exchanged between the UE and the TNGF; It can also be user plane data, such as remote control service data.
第一IP包头包括目的IP地址和源IP地址,该目的IP地址和源IP地址分别为TNGF的IP地址、UE的IP地址。第一GTP-U包头包括TNGF的TEID。其中,TNGF的IP地址可以是TNGF为传输控制面数据分配的IP地址(记为TNGF IP地址1),或者是TNGF为传输用户面数据分配的IP地址(记为TNGF IP地址2)。TNGF的TEID可以是TNGF为传输控制面数据分配的TEID(记为TNGF TEID_1),或者是TNGF为传输用户面数据分配的TEID(记为TNGF TEID_2)。该TNGF的IP地址或TNGF的TEID中的至少一个可用于标识第一负荷是控制面数据或者是用户面数据。The first IP packet header includes a destination IP address and a source IP address, and the destination IP address and the source IP address are respectively the IP address of the TNGF and the IP address of the UE. The first GTP-U header includes the TEID of the TNGF. Wherein, the IP address of TNGF can be the IP address allocated by TNGF for transmitting control plane data (denoted as TNGF IP address 1), or the IP address allocated by TNGF for transmitting user plane data (denoted as TNGF IP address 2). The TEID of the TNGF can be the TEID allocated by the TNGF for the transmission of control plane data (denoted as TNGF TEID_1), or the TEID allocated by the TNGF for the transmission of user plane data (denoted as TNGF TEID_2). At least one of the IP address of the TNGF or the TEID of the TNGF may be used to identify whether the first load is control plane data or user plane data.
例如,当第一负荷是控制面数据时,TNGF的TEID是TNGF为传输控制面数据分配的TEID。具体的,UE可以按照GTP-U/UDP/IP的封装方式对第一负荷进行封装,并将GTP-U包头中的TEID填写为TNGF TEID_1,以指示该第一负荷为控制面数据。For example, when the first payload is control plane data, the TEID of the TNGF is the TEID allocated by the TNGF for transmitting the control plane data. Specifically, the UE may encapsulate the first payload according to the GTP-U/UDP/IP encapsulation manner, and fill in the TEID in the GTP-U header as TNGF TEID_1 to indicate that the first payload is control plane data.
或者,当第一负荷是控制面数据时,TNGF的IP地址是TNGF为传输控制面数据分配的IP地址。具体的,UE可以按照GTP-U/UDP/IP的封装方式对第一负荷进行封装,并将IP包头中的目的IP地址填写为TNGF IP地址1,以指示该第一负荷为控制面数据。Alternatively, when the first payload is control plane data, the IP address of the TNGF is an IP address allocated by the TNGF for transmitting the control plane data. Specifically, the UE may encapsulate the first payload in a GTP-U/UDP/IP encapsulation manner, and fill in the destination IP address in the IP header as TNGF IP address 1, to indicate that the first payload is control plane data.
或者,当第一负荷是控制面数据时,TNGF的TEID是TNGF为传输控制面数据分配的TEID,且TNGF的IP地址是TNGF为传输控制面数据分配的IP地址。具体的,UE可以按照GTP-U/UDP/IP的封装方式对第一负荷进行封装,并将GTP-U包头中的TEID填写为TNGF TEID_1,以及将IP包头中的目的IP地址填写为TNGF IP地址1,以指示该第一负荷为控制面数据。Or, when the first load is control plane data, the TEID of TNGF is the TEID allocated by TNGF for transmission of control plane data, and the IP address of TNGF is the IP address allocated by TNGF for transmission of control plane data. Specifically, the UE can encapsulate the first payload according to the GTP-U/UDP/IP encapsulation method, fill in the TEID in the GTP-U header as TNGF TEID_1, and fill in the destination IP address in the IP header as TNGF IP Address 1, to indicate that the first payload is control plane data.
又例如,当第一负荷是用户面数据时,TNGF的TEID是TNGF为传输用户面数据分配的TEID。具体的,UE可以按照GTP-U/UDP/IP的封装方式对第一负荷进行封装,并将GTP-U包头中的TEID填写为TNGF TEID_2,以指示该第一负荷为用户面数据。For another example, when the first load is user plane data, the TEID of the TNGF is the TEID allocated by the TNGF for transmitting user plane data. Specifically, the UE may encapsulate the first payload according to the GTP-U/UDP/IP encapsulation manner, and fill in the TEID in the GTP-U packet header as TNGF TEID_2 to indicate that the first payload is user plane data.
或者,当第一负荷是用户面数据时,TNGF的IP地址是TNGF为传输用户面数据分配的IP地址。具体的,UE可以按照GTP-U/UDP/IP的封装方式对第一负荷进行封装,并将IP包头中的目的IP地址填写为TNGF为TNGF IP地址2,以指示该第一负荷为用户面数据。Or, when the first load is user plane data, the IP address of the TNGF is an IP address allocated by the TNGF for transmitting user plane data. Specifically, the UE may encapsulate the first payload according to the GTP-U/UDP/IP encapsulation method, and fill in the destination IP address in the IP header as TNGF as TNGF IP address 2, to indicate that the first payload is the user plane data.
或者,当第一负荷是用户面数据时,TNGF的TEID是TNGF为传输用户面数据分配的TEID,且TNGF的IP地址是TNGF为传输用户面数据分配的IP地址。具体的,UE可以按照GTP-U/UDP/IP的封装方式对第一负荷进行封装,并将GTP-U包头中的TEID填写为TNGF TEID_2,以及将IP包头中的目的IP地址填写为TNGF IP地址2,以指示该第一负荷为用户面数据。Or, when the first load is user plane data, the TEID of TNGF is the TEID allocated by TNGF for transmitting user plane data, and the IP address of TNGF is the IP address allocated by TNGF for transmitting user plane data. Specifically, the UE can encapsulate the first payload according to the GTP-U/UDP/IP encapsulation method, fill in the TEID in the GTP-U header as TNGF TEID_2, and fill in the destination IP address in the IP header as TNGF IP Address 2, to indicate that the first payload is user plane data.
值得注意的是,TNGF为传输控制面数据分配的IP地址与TNGF为传输用户面数据分配的IP地址可以相同,也可以不同,即TNGF IP地址1与TNGF IP地址2可以相同,也可以不同,本申请实施例对此不作限定。例如,TNGF为传输控制面数据和用户面数据分配相同的IP地址。又例如,TNGF为传输控制面数据分配了IP地址,没有为传输用户面 数据分配IP地址,在此场景下,用于传输用户面数据的IP地址与用于传输控制面数据的IP地址相同。It is worth noting that the IP address allocated by TNGF for transmitting control plane data and the IP address allocated by TNGF for transmitting user plane data can be the same or different, that is, TNGF IP address 1 and TNGF IP address 2 can be the same or different, This embodiment of the present application does not limit it. For example, TNGF assigns the same IP address for transmitting control plane data and user plane data. For another example, TNGF allocates an IP address for transmitting control plane data, but does not allocate an IP address for transmitting user plane data. In this scenario, the IP address used for transmitting user plane data is the same as the IP address used for transmitting control plane data.
前述提到,UE可通过将IP包头的目的IP地址填写为TNGF为传输控制面数据分配的IP地址或TNGF为传输用户面数据分配的IP地址,和/或,将GTP-U包头中的TEID填写为TNGF为传输控制面数据分配的TEID或TNGF为传输用户面数据分配的TEID,来指示第一负荷是控制面数据或者是用户面数据。在一种可能的实现方式中,UE可以通过与TNGF协商,获取TNGF为传输控制面数据分配的IP地址、TEID,以及TNGF为传输用户面数据分配的IP地址、TEID;相应的,TNGF也可以通过与UE协商,获取UE为传输控制面数据分配的TEID,以及UE为传输用户面数据分配的TEID。As mentioned above, the UE can fill in the destination IP address of the IP header as the IP address allocated by TNGF for the transmission of control plane data or the IP address allocated by TNGF for the transmission of user plane data, and/or, the TEID in the GTP-U header Fill in the TEID allocated by TNGF for transmission of control plane data or the TEID allocated by TNGF for transmission of user plane data to indicate that the first load is control plane data or user plane data. In a possible implementation, the UE can negotiate with TNGF to obtain the IP address and TEID allocated by TNGF for transmitting control plane data, and the IP address and TEID allocated by TNGF for transmitting user plane data; correspondingly, TNGF can also By negotiating with the UE, the TEID allocated by the UE for transmitting control plane data and the TEID allocated by the UE for transmitting user plane data are acquired.
例如,UE可以接收来自TNGF的第一请求消息,该第一请求消息中包括TNGF为传输控制面数据分配的TEID,以及TNGF为传输控制面数据分配的IP地址。相应的,UE可以向TNGF发送第一响应消息,该第一响应消息中包括UE为传输控制面数据分配的TEID。其中,第一请求消息和第一响应消息可以是扩展的鉴权认证协议(extensible authentication protocol,EAP)消息或者是5G通知(5G-notification)消息。例如,第一请求消息是扩展的鉴权请求(EAP-request)消息,第一响应消息是扩展的鉴权响应(EAP-response)消息。又例如,第一请求消息和第一响应消息皆是5G通知消息。可选的,第一请求消息还可以包括传输控制面数据所使用的差分服务代码点(differentiated services code point,DSCP)。For example, the UE may receive a first request message from the TNGF, where the first request message includes the TEID allocated by the TNGF for transmission of control plane data and the IP address allocated by the TNGF for transmission of control plane data. Correspondingly, the UE may send a first response message to the TNGF, where the first response message includes the TEID allocated by the UE for transmitting control plane data. Wherein, the first request message and the first response message may be an extended authentication protocol (extensible authentication protocol, EAP) message or a 5G notification (5G-notification) message. For example, the first request message is an extended authentication request (EAP-request) message, and the first response message is an extended authentication response (EAP-response) message. For another example, both the first request message and the first response message are 5G notification messages. Optionally, the first request message may also include a differentiated services code point (differentiated services code point, DSCP) used for transmitting control plane data.
又例如,UE可以接收来自TNGF的第二请求消息,第二请求消息包括协议数据单元(protocol data unit,PDU)会话标识以及TNGF为传输该PDU会话的用户面数据分配的TEID。相应的,UE可以向TNGF发送第二响应消息,第二响应消息包括UE为传输该PDU会话的用户面数据分配的TEID。For another example, the UE may receive a second request message from the TNGF, where the second request message includes a protocol data unit (protocol data unit, PDU) session identifier and a TEID allocated by the TNGF for transmitting user plane data of the PDU session. Correspondingly, the UE may send a second response message to the TNGF, where the second response message includes the TEID allocated by the UE for transmitting the user plane data of the PDU session.
下面结合图3介绍UE与TNGF协商用于传输控制面数据的IP地址和TEID的具体实现方式。图3示出了本申请实施例提供的获取用于传输控制面数据的IP地址和TEID的方法的流程图。如图3所示,该方法可以包括如下步骤。The specific implementation manner of negotiating the IP address and TEID for transmitting control plane data between the UE and the TNGF will be introduced below with reference to FIG. 3 . Fig. 3 shows a flow chart of a method for acquiring an IP address and a TEID for transmitting control plane data provided by an embodiment of the present application. As shown in Fig. 3, the method may include the following steps.
S301:UE与接入节点之间建立层(layer,L)2连接。S301: Establish a layer (layer, L)2 connection between the UE and the access node.
例如,UE可以通过蓝牙、wifi、射频识别(radio frequency identification,RFID)技术或星火短距通信技术等与接入节点建立L2连接。其中,接入节点可以为支持星闪短距通信技术的G节点(G-node)、wifi AP、或蓝牙接入点等。For example, the UE may establish an L2 connection with the access node through bluetooth, wifi, radio frequency identification (radio frequency identification, RFID) technology, or Xinghuo short-distance communication technology. Among them, the access node can be a G-node (G-node), a wifi AP, or a Bluetooth access point that supports Starlight short-distance communication technology.
S302:接入节点向UE发送扩展的鉴权请求消息。相应的,UE接收该扩展的鉴权请求消息。S302: The access node sends an extended authentication request message to the UE. Correspondingly, the UE receives the extended authentication request message.
接入节点可以向UE发送扩展的鉴权请求消息或者身份(identity)消息。其中,扩展的鉴权请求消息或身份消息用于请求UE的标识信息。其中,UE的标识信息至少包括UE的网络访问标识符(network access identifier,NAI)。NAI包括UE的设备标识以及公共陆地移动网(public land mobile network,PLMN)信息,或者包括UE的设备标识以及服务提供商信息,或者包括UE的设备标识、PLMN信息以及服务提供商信息。例如,UE的设备标识记为device ID,PLMN信息记为PLMN,服务提供商信息记为Service provider name,则该NAI可表示为:NAI=device [email protected] provider name。可选的,服务提供商信息可以为星闪联盟标识。The access node may send an extended authentication request message or an identity (identity) message to the UE. Wherein, the extended authentication request message or the identity message is used to request the identification information of the UE. Wherein, the identification information of the UE includes at least a network access identifier (network access identifier, NAI) of the UE. The NAI includes the UE's device identifier and public land mobile network (public land mobile network, PLMN) information, or includes the UE's device identifier and service provider information, or includes the UE's device identifier, PLMN information and service provider information. For example, the device ID of the UE is recorded as device ID, the PLMN information is recorded as PLMN, and the service provider information is recorded as Service provider name, then the NAI can be expressed as: NAI=device [email protected] provider name. Optionally, the service provider information can be identified by the Star Alliance.
S303:UE向接入节点发送扩展的鉴权响应消息。相应的,接入节点接收该扩展的鉴权响应消息。其中,扩展的鉴权响应消息包括UE的标识信息。S303: The UE sends an extended authentication response message to the access node. Correspondingly, the access node receives the extended authentication response message. Wherein, the extended authentication response message includes the identification information of the UE.
S304:接入节点向TNGF发送UE的标识信息。相应的,TNGF接收UE的标识信息。S304: The access node sends the identification information of the UE to the TNGF. Correspondingly, the TNGF receives the identification information of the UE.
接入节点可以根据UE的标识信息为UE选择TNGF,例如,接入节点可以根据NAI所包括的PLMN信息或服务提供商信息选择TNGF,并向TNGF发送UE的标识信息。例如,接入节点可以可通过鉴别授权计费(authentication authorization accounting,AAA)消息将UE的标识信息发送给TNGF。The access node may select the TNGF for the UE according to the UE's identification information. For example, the access node may select the TNGF according to the PLMN information or service provider information included in the NAI, and send the UE's identification information to the TNGF. For example, the access node may send the identification information of the UE to the TNGF through an authentication authorization accounting (authentication authorization accounting, AAA) message.
S305:TNGF向UE发送5G开始(5G-Start)消息。相应的,UE接收该5G开始消息。S305: The TNGF sends a 5G start (5G-Start) message to the UE. Correspondingly, the UE receives the 5G start message.
具体的,TNGF可以根据UE的标识信息判断UE需要接入5G核心网,例如UE的NAI中包括5G的PLMN信息,则TNGF确定UE需要接入5G核心网,并向UE发送该扩展的鉴权请求消息或者5G开始消息(图3以5G开始消息为例)。该扩展的鉴权请求消息或5G开始消息可以用于指示UE开始接入5G核心网。Specifically, TNGF can determine that the UE needs to access the 5G core network based on the UE's identification information. For example, if the UE's NAI includes 5G PLMN information, the TNGF determines that the UE needs to access the 5G core network, and sends the extended authentication to the UE. A request message or a 5G start message (Figure 3 takes the 5G start message as an example). The extended authentication request message or the 5G start message may be used to instruct the UE to start accessing the 5G core network.
S306:UE向AMF发送注册请求消息(registration request message)。相应的,AMF接收到该注册请求消息。S306: The UE sends a registration request message (registration request message) to the AMF. Correspondingly, the AMF receives the registration request message.
示例性的,UE发起接入5G核心网的注册流程,如UE通过接入节点、TNGF向AMF发送注册请求消息。其中,该注册请求消息可以为NAS消息。该注册请求消息中包括UE类型指示信息和业务类型指示信息。UE类型指示信息可用于指示UE的类型,如指示UE为智能工厂的UE(如机械手臂、移动运货车等);或者指示UE为IoT设备;或者指示UE为低功耗设备等,本申请实施例对UE的类型并不限定于此。业务类型指示信息可用于指示UE的业务类型,如指示UE的业务类型为远程控制业务等,本申请实施例对UE的业务类型并不限定于此。Exemplarily, the UE initiates a registration process for accessing the 5G core network, for example, the UE sends a registration request message to the AMF through the access node and the TNGF. Wherein, the registration request message may be a NAS message. The registration request message includes UE type indication information and service type indication information. The UE type indication information can be used to indicate the type of UE, such as indicating that the UE is a UE of a smart factory (such as a robot arm, a mobile truck, etc.); or indicating that the UE is an IoT device; or indicating that the UE is a low-power device, etc. For example, the type of UE is not limited to this. The service type indication information may be used to indicate the service type of the UE, such as indicating that the service type of the UE is a remote control service, etc., and the embodiment of the present application does not limit the service type of the UE to this.
需要说明的是,UE通过接入节点、TNGF向AMF发送注册请求消息可以理解为:UE向接入节点发送注册请求消息,接入节点接收到注册请求消息后将该注册请求消息转发给TNGF,并由TNGF转发给AMF,即注册请求消息在接入节点以及TNGF处进行了透传。It should be noted that the UE sends the registration request message to the AMF through the access node and the TNGF can be understood as: the UE sends the registration request message to the access node, and the access node forwards the registration request message to the TNGF after receiving the registration request message, And forwarded to the AMF by the TNGF, that is, the registration request message is transparently transmitted at the access node and the TNGF.
S307:AMF向UDM发送鉴权认证消息。相应的,UDM接收该鉴权认证消息。其中,该鉴权认证消息用于进行对UE的鉴权认证流程。S307: The AMF sends an authentication message to the UDM. Correspondingly, the UDM receives the authentication message. Wherein, the authentication and authentication message is used to perform an authentication and authentication procedure for the UE.
S308:UE与UDM之间进行鉴权认证流程。S308: An authentication process is performed between the UE and the UDM.
S309:UDM向AMF发送签约数据。相应的,AMF接收签约数据。S309: The UDM sends the subscription data to the AMF. Correspondingly, the AMF receives the subscription data.
UE鉴权认证成功之后,UDM可以向将与该UE相关的签约数据发送给AMF。可选的,该签约数据中可以包括UE类型指示信息和业务类型指示信息中的至少一个。After the UE is successfully authenticated, the UDM can send the subscription data related to the UE to the AMF. Optionally, the subscription data may include at least one of UE type indication information and service type indication information.
S310:AMF向TNGF发送指示信息。TNGF接收该指示信息。S310: The AMF sends indication information to the TNGF. The TNGF receives the indication information.
指示信息用于指示UE与TNGF之间无需建立IPsec隧道。具体的,AMF可以根据UE类型指示信息和业务类型指示信息中的至少一个确定UE进行简化的5G核心网接入流程。例如,UE为智能工厂的UE,或者为IoT设备,或者为低功耗设备等,AMF可以确定该UE进行简化的5G核心网接入流程。又例如,UE的业务类型为远程控制业务等,AMF可以确定该UE进行简化的5G核心网接入流程。其中,简化的5G核心网接入流程是指UE与TNGF之间无需建立IPsec隧道。The indication information is used to indicate that there is no need to establish an IPsec tunnel between the UE and the TNGF. Specifically, the AMF may determine that the UE performs a simplified 5G core network access procedure according to at least one of the UE type indication information and the service type indication information. For example, if the UE is a UE of a smart factory, or an IoT device, or a low-power device, the AMF may determine that the UE performs a simplified 5G core network access process. For another example, if the service type of the UE is a remote control service, the AMF may determine that the UE performs a simplified 5G core network access procedure. Among them, the simplified 5G core network access process means that there is no need to establish an IPsec tunnel between the UE and the TNGF.
目前,对于受信的non-3GPP接入场景,UE与TNGF之间建立不加密的IPsec隧道;对于非受信的non-3GPP接入场景,UE与N3IWF之间建立加密的IPsec隧道。即,无论受信的non-3GPP接入场景还是非受信的non-3GPP接入场景,UE与其对应的接入网关之间 皆可以建立IPsec隧道。但是在IPsec隧道建立过程中,需要多个网元之间进行多次信令交互,复杂度高。并且,在基于IPsec隧道传输用户面数据时,基于IPsec隧道封装方式需要在用户面数据外封装双层IP包头,导致封装后的数据包的包头的长度长,需要消耗的传输资源多,并且会增加设备封装或解封装所需的时延,从而增大设备的功耗。在步骤S310中,AMF根据UE的类型和UE的业务类型中的至少一个,确定该UE可以进行简化的5G核心网接入流程,即不需要建立IPsec隧道流程,并向TNGF发送指示信息以指示TNGF不需要与UE建立IPsec隧道,从而可以简化UE接入5G核心网的流程,以及能够减少用户面数据传输过程中因IPsec封装方式而导致传输资源浪费、时延长、设备功耗大的问题。Currently, for a trusted non-3GPP access scenario, an unencrypted IPsec tunnel is established between UE and TNGF; for an untrusted non-3GPP access scenario, an encrypted IPsec tunnel is established between UE and N3IWF. That is, regardless of the trusted non-3GPP access scenario or the untrusted non-3GPP access scenario, an IPsec tunnel can be established between the UE and its corresponding access gateway. However, in the process of establishing an IPsec tunnel, multiple signaling interactions between multiple network elements are required, and the complexity is high. Moreover, when transmitting user plane data based on an IPsec tunnel, the encapsulation method based on the IPsec tunnel needs to encapsulate a double-layer IP header outside the user plane data, resulting in a longer length of the header of the encapsulated data packet, which consumes more transmission resources, and will Increase the delay required for device encapsulation or decapsulation, thereby increasing the power consumption of the device. In step S310, the AMF determines that the UE can perform a simplified 5G core network access process according to at least one of the UE type and the UE service type, that is, the IPsec tunnel process does not need to be established, and sends indication information to the TNGF to indicate TNGF does not need to establish an IPsec tunnel with the UE, which can simplify the process of UE accessing the 5G core network, and can reduce the problems of waste of transmission resources, time extension, and high power consumption of equipment caused by IPsec encapsulation in the process of user plane data transmission.
进一步,AMF可以向TNGF发送N2消息,该N2消息包括该指示信息,以指示TNGF无需与UE建立IPsec隧道。可选的,该N2消息中还可以包括安全密钥等信息。Further, the AMF may send an N2 message to the TNGF, where the N2 message includes the indication information, to indicate that the TNGF does not need to establish an IPsec tunnel with the UE. Optionally, the N2 message may also include information such as a security key.
S311:TNGF向UE发送第一请求消息。相应的,UE接收第一请求消息。S311: The TNGF sends a first request message to the UE. Correspondingly, the UE receives the first request message.
第一请求消息可以是扩展的鉴权请求消息或者5G通知消息。第一请求消息包括TNGF IP地址1、TNGF TEID_1以及DSCP。TNGF接收到指示信息后,确定与UE之间不需要建立IPsec隧道。进一步,TNGF可以确定与UE之间建立GTP-U隧道。具体的,TNGF为UE分配TNGF的IP地址和TNGF的TEID,并将TNGF的IP地址和TNGF的TEID携带在扩展的鉴权请求消息或5G通知消息中发送给UE。其中,在本实施例中,TNGF的IP地址是后续用于传输控制面数据的IP地址(即TNGF IP地址1),TNGF的TEID是后续用于传输控制面数据的TEID(即TNGF TEID_1)。可选的,TNGF还可以确定后续用于传输控制面数据的DSCP,并将DSCP携带在扩展的鉴权请求消息或5G通知消息中发送给UE。UE接收到扩展的鉴权请求消息或5G通知消息后,存储TNGF IP地址1、TNGF TEID_1以及DSCP,以便后续通过GTP-U隧道向TNGF发送控制面数据。The first request message may be an extended authentication request message or a 5G notification message. The first request message includes TNGF IP address 1, TNGF TEID_1 and DSCP. After receiving the indication information, the TNGF determines that there is no need to establish an IPsec tunnel with the UE. Further, the TNGF may determine to establish a GTP-U tunnel with the UE. Specifically, the TNGF allocates the IP address of the TNGF and the TEID of the TNGF to the UE, and carries the IP address of the TNGF and the TEID of the TNGF in an extended authentication request message or a 5G notification message and sends it to the UE. Wherein, in this embodiment, the IP address of TNGF is the IP address (i.e. TNGF IP address 1) that is subsequently used to transmit control plane data, and the TEID of TNGF is the TEID (i.e. TNGF TEID_1) that is subsequently used to transmit control plane data. Optionally, the TNGF may also determine the DSCP used for subsequent transmission of control plane data, and carry the DSCP in the extended authentication request message or 5G notification message and send it to the UE. After receiving the extended authentication request message or 5G notification message, the UE stores TNGF IP address 1, TNGF TEID_1 and DSCP, so as to send control plane data to TNGF through the GTP-U tunnel.
S312:UE向TNGF发送第一响应消息。相应的,TNGF接收第一响应消息。S312: The UE sends a first response message to the TNGF. Correspondingly, the TNGF receives the first response message.
第一响应消息可以为扩展的鉴权响应消息或5G通知消息。第一响应消息包括UE TEID_1。UE接收到第一请求消息后,确定与TNGF之间建立GTP-U隧道。具体的,UE为TNGF分配UE的TEID,并将UE的TEID携带在扩展的鉴权响应消息或5G通知消息中发送给TNGF。其中,在本实施例中,UE的TEID是后续用于传输控制面数据的TEID(即UE TEID_1)。TNGF接收到扩展的鉴权响应消息或5G通知消息后,存储UE TEID_1,以便后续通过GTP-U隧道向UE发送控制面数据。The first response message may be an extended authentication response message or a 5G notification message. The first response message includes UE TEID_1. After receiving the first request message, the UE determines to establish a GTP-U tunnel with the TNGF. Specifically, the UE assigns the TEID of the UE to the TNGF, and carries the TEID of the UE in an extended authentication response message or a 5G notification message and sends it to the TNGF. Wherein, in this embodiment, the TEID of the UE is the TEID (that is, UE TEID_1) used for subsequent transmission of control plane data. After receiving the extended authentication response message or 5G notification message, TNGF stores UE TEID_1, so as to send control plane data to UE through GTP-U tunnel.
通过步骤S311和步骤S312,UE与TNGF之间可以建立GTP-U隧道,并协商后续用于传输控制面数据的信息,如TNGF IP地址1、TNGF TEID_1、UE TEID_1以及DSCP等信息。GTP-U隧道的建立过程的交互信令少,可以减少UE接入5G核心网的复杂度,并且基于GTP-U封装方式封装的数据包的包头的长度小于基于Psec封装方式的,从而可以减少因IPsec封装方式而导致传输资源浪费、时延长、设备功耗大的问题。Through steps S311 and S312, a GTP-U tunnel can be established between the UE and the TNGF, and information for subsequent control plane data transmission, such as TNGF IP address 1, TNGF TEID_1, UE TEID_1, and DSCP, can be negotiated. The GTP-U tunnel establishment process requires less interactive signaling, which can reduce the complexity of UE access to the 5G core network, and the length of the header of the data packet encapsulated based on the GTP-U encapsulation method is smaller than that based on the Psec encapsulation method, thereby reducing Due to the IPsec encapsulation method, there are problems such as waste of transmission resources, time extension, and high power consumption of equipment.
在步骤S312中UE向TNGF发送的第一响应消息中包括UE TEID_1。在另一种可能的实现方法中,该第一响应消息中也可以不包括UE TEID_1。例如,该UE TEID_1可以是预先配置的固定值。即,第一响应消息中可以包括UE TEID_1,也可以不包括UE TEID_1,本申请实施例对此不作限定。In step S312, the first response message sent by the UE to the TNGF includes UE TEID_1. In another possible implementation method, UE TEID_1 may not be included in the first response message. For example, the UE TEID_1 may be a pre-configured fixed value. That is, the UE TEID_1 may or may not be included in the first response message, which is not limited in this embodiment of the present application.
至此,UE与TNGF对用于传输控制面数据的IP地址和TEID协商完成。接下来的步骤S313至步骤S317用于完成对UE的注册。So far, the negotiation between the UE and the TNGF on the IP address and TEID used to transmit the control plane data is completed. The following steps S313 to S317 are used to complete the registration of the UE.
S313:UE与接入节点之间进行动态主机配置协议(dynamic host configuration protocol, DHCP)流程。S313: Perform a dynamic host configuration protocol (dynamic host configuration protocol, DHCP) process between the UE and the access node.
例如,UE向接入节点发送配置请求消息,该配置请求消息用于请求UE的IP地址。接入节点接收到配置请求消息后,为UE配置IP地址,并向UE发送配置响应消息,该配置响应消息包括UE的IP地址。For example, the UE sends a configuration request message to the access node, where the configuration request message is used to request the IP address of the UE. After receiving the configuration request message, the access node configures an IP address for the UE, and sends a configuration response message to the UE, where the configuration response message includes the IP address of the UE.
值得注意的是,UE的IP地址可以包括UE为传输控制面数据获取的IP地址(记为UE IP地址1),以及UE为传输用户面数据获取的IP地址(记为UE IP地址2)。例如,UE可以通过步骤313分别获取用于传输控制面数据的IP地址和用于传输用户面数据的IP地址。其中,UE IP地址1与UE IP地址2可以相同,也可以不同,本申请实施例并对此不作限定。为了便于理解,本申请实施例以UE IP地址1与UE IP地址2相同为例进行描述。It is worth noting that the IP address of the UE may include the IP address obtained by the UE for transmitting control plane data (denoted as UE IP address 1), and the IP address obtained by the UE for transmitting user plane data (denoted as UE IP address 2). For example, the UE may respectively obtain the IP address used for transmitting control plane data and the IP address used for transmitting user plane data through step 313 . Wherein, the UE IP address 1 and the UE IP address 2 may be the same or different, which is not limited in this embodiment of the present application. For ease of understanding, this embodiment of the present application is described by taking UE IP address 1 and UE IP address 2 being the same as an example.
S314:接入节点向TNGF发送第二消息。相应的,TNGF接收第二消息。S314: The access node sends a second message to the TNGF. Correspondingly, the TNGF receives the second message.
其中,第二消息包括UE的IP地址与UE的标识信息之间的对应关系。该第二消息可以为AAA消息。例如,接入节点可以将UE的IP地址与UE的标识信息之间的对应关系携带在AAA消息中发送给TNGF。TNGF接收到第二消息后,存储UE的IP地址与UE的标识信息之间的对应关系,这样,TNGF后续接收到上行信息(控制面数据或用户面数据)后,可以确定发送该上行信息的UE的标识信息。表1示出了TNGF维护的UE的IP地址与UE的标识信息之间的对应关系的一种示例。如表1所示,TNGF与三个UE建立连接,其中,IP地址1对应的UE的标识信息为标识信息1,IP地址2对应的UE的标识信息为标识信息2,IP地址3对应的UE的标识信息为标识信息3。可以理解的是,表1作为一种示例并不对TNGF维护的UE的IP地址与UE的标识信息之间的对应关系的具体实现进行限定。Wherein, the second message includes the correspondence between the IP address of the UE and the identification information of the UE. The second message may be an AAA message. For example, the access node may include the correspondence between the IP address of the UE and the identification information of the UE in the AAA message and send it to the TNGF. After receiving the second message, the TNGF stores the correspondence between the IP address of the UE and the identification information of the UE. In this way, after the TNGF subsequently receives the uplink information (control plane data or user plane data), it can determine the sender of the uplink information. UE identification information. Table 1 shows an example of the correspondence between the IP address of the UE and the identification information of the UE maintained by the TNGF. As shown in Table 1, TNGF establishes connections with three UEs, wherein the identification information of the UE corresponding to IP address 1 is identification information 1, the identification information of the UE corresponding to IP address 2 is identification information 2, and the identification information of the UE corresponding to IP address 3 is The identification information of is identification information 3. It can be understood that Table 1 is used as an example and does not limit the specific realization of the corresponding relationship between the IP address of the UE and the identification information of the UE maintained by the TNGF.
表1Table 1
IP地址IP address UE的标识信息UE's identification information
IP地址1IP address 1 标识信息1 Identification information 1
IP地址2 IP address 2 标识信息2 Identification information 2
IP地址3 IP address 3 标识信息3 Identification information 3
需要说明的是,上述步骤S314为可选步骤,图3中用虚线表示。例如,TNGF还可以通过其它方式获取UE的IP地址与UE的标识信息之间的对应关系,本申请实施例并不限定于此。It should be noted that the above step S314 is an optional step, which is indicated by a dotted line in FIG. 3 . For example, the TNGF may also acquire the correspondence between the IP address of the UE and the identification information of the UE in other ways, which is not limited in this embodiment of the present application.
S315:TNGF与AMF发送N2连接建立请求消息。相应的,AMF接收N2连接建立请求消息。S315: The TNGF and the AMF send an N2 connection establishment request message. Correspondingly, the AMF receives the N2 connection establishment request message.
N2连接建立请求消息用于为UE建立TNGF与AMF之间的N2连接。The N2 connection establishment request message is used to establish the N2 connection between the TNGF and the AMF for the UE.
S316:AMF向TNGF发送N2连接建立响应消息。相应的,TNGF接收N2连接建立响应消息。S316: The AMF sends an N2 connection establishment response message to the TNGF. Correspondingly, the TNGF receives the N2 connection establishment response message.
N2连接建立响应消息用于指示为UE建立的N2连接建立完成。该N2连接建立响应消息可包括注册完成的NAS消息。该注册完成的NAS消息用于指示UE注册成功。The N2 connection establishment response message is used to indicate that the establishment of the N2 connection established for the UE is completed. The N2 connection establishment response message may include a registration completed NAS message. The registration completed NAS message is used to indicate that the UE has successfully registered.
S317:TNGF向UE发送第三数据包。相应的,UE接收第三数据包。S317: The TNGF sends a third data packet to the UE. Correspondingly, the UE receives the third data packet.
TNGF接收到N2连接建立响应消息后,对其解封装得到注册完成的NAS消息,按照GTP-U/UDP/IP封装方式对该注册完成的NAS消息进行封装,得到第三数据包,并将第三数据包发送给UE。具体的,TNGF在注册完成的NAS消息外封装GTP-U包头,将GTP-U 包头中的TEID填写为UE TEID_1;在GTP-U包头外封装UDP包头;以及在UDP包头外封装IP包头,并将IP包头中的源IP地址和目的IP地址分别填写为TNGF IP地址1、UE的IP地址,得到第三数据包。After receiving the N2 connection establishment response message, TNGF decapsulates the N2 message to obtain the registered NAS message, encapsulates the registered NAS message according to the GTP-U/UDP/IP encapsulation method, obtains the third data packet, and sends the Three data packets are sent to the UE. Specifically, TNGF encapsulates the GTP-U header outside the registered NAS message, fills the TEID in the GTP-U header as UE TEID_1; encapsulates the UDP header outside the GTP-U header; and encapsulates the IP header outside the UDP header, and Fill in the source IP address and the destination IP address in the IP packet header as the TNGF IP address 1 and the IP address of the UE respectively, to obtain the third data packet.
至此,UE注册完成。So far, UE registration is completed.
前述介绍了UE与TNGF协商用于传输控制面数据的IP地址和TEID的具体实现方式,接下来结合图4介绍UE与TNGF协商用于传输用户面数据的IP地址和TEID的具体实现方式。图4所示了本申请实施例提供的获取用于传输用户面数据的IP地址和TEID的方法的流程图。如图4所示,该方法可以包括如下步骤。The foregoing describes the specific implementation of the negotiation between the UE and the TNGF for the IP address and TEID used to transmit control plane data. Next, in conjunction with FIG. FIG. 4 shows a flow chart of a method for acquiring an IP address and a TEID for transmitting user plane data provided by an embodiment of the present application. As shown in Fig. 4, the method may include the following steps.
S401:UE向TNGF发送会话建立请求消息。相应的,TNGF接收PDU会话建立请求消息。S401: The UE sends a session establishment request message to the TNGF. Correspondingly, the TNGF receives the PDU session establishment request message.
UE发起PDU会话建立流程,向TNGF发送PDU会话建立请求消息(PDU session establishment request)。例如,UE通过GTP-U隧道向TNGF发送PDU会话建立请求消息。该PDU会话建立请求消息是控制面数据,UE可以按照GTP-U/UDP/IP的封装方式对该PDU会话建立请求消息进行封装,得到封装后的数据包,并将封装后的数据包发送给TNGF。具体的,UE在该PDU会话建立请求消息外封装GTP-U包头,将GTP-U中的TEID填写为前述步骤S311获得的TNGF TEID_1,在GTP-U包头外封装PDU包头,以及在PDU包头外封装IP包头,并将IP包头中的源IP地址以及目标IP地址分别填写为UE的IP地址、前述步骤S311获得的TNGF IP地址1,得到封装后的数据包。进一步,TNGF接收到封装后的数据包后,对其解封装得到PDU会话建立请求消息,并将PDU会话建立请求消息发送给AMF,即执行步骤S402所示的内容。The UE initiates a PDU session establishment process, and sends a PDU session establishment request message (PDU session establishment request) to TNGF. For example, the UE sends a PDU session establishment request message to the TNGF through the GTP-U tunnel. The PDU session establishment request message is control plane data, and the UE can encapsulate the PDU session establishment request message according to the GTP-U/UDP/IP encapsulation method, obtain the encapsulated data packet, and send the encapsulated data packet to TNGF. Specifically, the UE encapsulates the GTP-U packet header outside the PDU session establishment request message, fills the TEID in the GTP-U with the TNGF TEID_1 obtained in the aforementioned step S311, encapsulates the PDU packet header outside the GTP-U packet header, and wraps the PDU packet header outside the PDU packet header. Encapsulate the IP header, and fill in the source IP address and the target IP address in the IP header as the IP address of the UE and the TNGF IP address 1 obtained in the aforementioned step S311 to obtain the encapsulated data packet. Further, after receiving the encapsulated data packet, the TNGF decapsulates it to obtain a PDU session establishment request message, and sends the PDU session establishment request message to the AMF, that is, executes the content shown in step S402.
或者,另一种实现方式是UE通过GTP-U隧道向TNGF发送PDU会话建立请求消息。该PDU会话建立请求消息是控制面数据,UE可以按照消息/GTP-U/UDP/IP的封装方式对该PDU会话建立请求消息进行封装,得到封装后的数据包,并将封装后的数据包发送给TNGF。具体的,UE将该PDU会话建立请求消息作为第一消息的参数;在第一消息外封装GTP-U包头,将GTP-U中的TEID填写为前述步骤S311获得的TNGF TEID_1,以及使用GTP-U包头中的消息类型字段指示第一消息的消息类型;然后在GTP-U包头外封装PDU包头,以及在PDU包头外封装IP包头,并将IP包头中的源IP地址以及目标IP地址分别填写为UE的IP地址、前述步骤S311获得的TNGF IP地址1,得到封装后的数据包。进一步,TNGF接收到封装后的数据包后,对其解封装得到PDU会话建立请求消息,并将PDU会话建立请求消息发送给AMF,即执行步骤S402所示的内容。Alternatively, another implementation manner is that the UE sends a PDU session establishment request message to the TNGF through the GTP-U tunnel. The PDU session establishment request message is control plane data, and the UE can encapsulate the PDU session establishment request message according to the message/GTP-U/UDP/IP encapsulation method, obtain the encapsulated data packet, and send the encapsulated data packet Send to TNGF. Specifically, the UE takes the PDU session establishment request message as a parameter of the first message; encapsulates the GTP-U header outside the first message, fills the TEID in the GTP-U with the TNGF TEID_1 obtained in the aforementioned step S311, and uses the GTP-U The message type field in the U header indicates the message type of the first message; then encapsulate the PDU header outside the GTP-U header, and encapsulate the IP header outside the PDU header, and fill in the source IP address and the destination IP address in the IP header respectively Obtain the encapsulated data packet for the IP address of the UE and the TNGF IP address 1 obtained in the aforementioned step S311. Further, after receiving the encapsulated data packet, the TNGF decapsulates it to obtain a PDU session establishment request message, and sends the PDU session establishment request message to the AMF, that is, executes the content shown in step S402.
S402:TNGF向AMF发送PDU会话建立请求消息。相应的,AMF接收PDU会话建立请求消息。S402: The TNGF sends a PDU session establishment request message to the AMF. Correspondingly, the AMF receives the PDU session establishment request message.
S403:AMF网元进行PDU会话建立流程。S403: The AMF network element performs a process of establishing a PDU session.
AMF接收到PDU会话建立请求消息后,可以通过与其它控制面网元(如AMF)、用户面网元(UPF)交互进行PDU会话建立流程,图4以UPF为例。After the AMF receives the PDU session establishment request message, it can interact with other control plane network elements (such as AMF) and user plane network elements (UPF) to perform the PDU session establishment process. Figure 4 uses UPF as an example.
S404:AMF向TNGF发送N2 PDU会话建立请求消息。相应的,TNGF接收N2 PDU会话建立请求消息。S404: The AMF sends an N2 PDU session establishment request message to the TNGF. Correspondingly, TNGF receives the N2 PDU session establishment request message.
其中,N2 PDU会话建立请求消息包括PDU会话标识(PDU session ID)。可选的,N2 PDU会话建立请求消息还可以包括与PDU会话相关的服务质量(quality of service,QoS) 参数、PDU会话建立成功的NAS消息等。Wherein, the N2 PDU session establishment request message includes a PDU session identification (PDU session ID). Optionally, the N2 PDU session establishment request message may also include a quality of service (quality of service, QoS) parameter related to the PDU session, a NAS message that the PDU session is successfully established, and the like.
S405:TNGF向UE发送第二请求消息。相应的,UE接收第二请求消息。S405: The TNGF sends a second request message to the UE. Correspondingly, the UE receives the second request message.
第二请求消息包括PDU会话标识以及TNGF TEID_2。可选的,该第二请求消息还可以包括TNGF IP地址_2。具体的,TNGF可以根据PDU会话标识为UE分配TNGF的TEID,并将TNGF的TEID携带在第二请求消息中发送给UE。可选的,TNGF还可以根据PDU会话标识为UE分配TNGF的IP地址,并将该TNGF的IP地址携带在第二请求消息中发送给UE。其中,在本实施例中,TNGF的TEID是后续用于传输该PDU会话的用户面数据的TEID(即TNGF TEID_2),TNGF的IP地址是后续用于传输该PDU会话的用户面数据的IP地址(即TNGF IP地址2)。UE接收到第二请求消息后,存储TNGF TEID_2以及TNGF IP地址2,以便后续通过GTP-U隧道向TNGF发送该PDU会话的用户面数据。The second request message includes the PDU session identifier and TNGF TEID_2. Optionally, the second request message may also include TNGF IP address_2. Specifically, the TNGF may allocate a TEID of the TNGF to the UE according to the PDU session identifier, and carry the TEID of the TNGF in the second request message and send it to the UE. Optionally, the TNGF may also assign an IP address of the TNGF to the UE according to the PDU session identifier, and send the IP address of the TNGF to the UE in the second request message. Wherein, in this embodiment, the TEID of TNGF is the TEID (i.e. TNGF TEID_2) that is subsequently used to transmit the user plane data of the PDU session, and the IP address of TNGF is the IP address of the user plane data that is subsequently used to transmit the PDU session (i.e. TNGF IP address 2). After receiving the second request message, the UE stores the TNGF TEID_2 and the TNGF IP address 2, so as to subsequently send the user plane data of the PDU session to the TNGF through the GTP-U tunnel.
S406:UE向TNGF发送第二响应消息。相应的,TNGF接收第二响应消息。S406: The UE sends a second response message to the TNGF. Correspondingly, the TNGF receives the second response message.
第二响应消息包括UE TEID_2。具体的,UE可以为TNGF分配UE的TEID,并将UE的TEID携带在第二响应消息中发送给UE。其中,在本实施例中,UE的TEID是后续用于传输该PDU会话的用户面数据的TEID(即UE TEID_2)。TNGF接收到第二响应消息后,存储UE TEID_2,以便后续通过GTP-U隧道向UE发送该PDU会话的用户面数据。The second response message includes UE TEID_2. Specifically, the UE may allocate the TEID of the UE to the TNGF, and carry the TEID of the UE in the second response message and send it to the UE. Wherein, in this embodiment, the TEID of the UE is the TEID (that is, UE TEID_2) that is subsequently used to transmit the user plane data of the PDU session. After receiving the second response message, the TNGF stores the UE TEID_2, so as to subsequently send the user plane data of the PDU session to the UE through the GTP-U tunnel.
可选的,该第二响应消息中还可以包括UE的IP地址,该IP地址可以是UE在前述步骤S313中获取的IP地址,或者是UE通过其它方式获取的IP地址,本申请实施例对此不作限定。Optionally, the second response message may also include the IP address of the UE, and the IP address may be the IP address obtained by the UE in the aforementioned step S313, or the IP address obtained by the UE in other ways. This is not limited.
通过步骤S405和步骤S406,UE与TNGF之间可以建立GTP-U隧道,并协商后续用于传输PDU会话的用户面数据的信息,如TNGF IP地址2、TNGF TEID_2、以及UE TEID_2等信息。并且,基于GTP-U封装方式封装的数据包的包头的长度小于基于Psec封装方式的,可以减少因IPsec封装方式而导致传输资源浪费、时延长、设备功耗大的问题。Through steps S405 and S406, a GTP-U tunnel can be established between the UE and the TNGF, and information for subsequently transmitting user plane data of the PDU session, such as TNGF IP address 2, TNGF TEID_2, and UE TEID_2, can be negotiated. Moreover, the length of the header of the data packet encapsulated based on the GTP-U encapsulation mode is shorter than that based on the Psec encapsulation mode, which can reduce the problems of waste of transmission resources, time extension, and high power consumption of equipment caused by the IPsec encapsulation mode.
在步骤S406中UE向TNGF发送的第二响应消息中包括UE TEID_2。在另一种可能的实现方法中,该第二响应消息中也可以不包括UE TEID_2。例如,该UE TEID_2可以是预先配置的固定值。即,第二响应消息中可以包括UE TEID_2,也可以不包括UE TEID_2,本申请实施例对此不作限定。另外,UE TEID_1与UE TEID_2可以相同,也可以不同,本申请实施例对此不作限定。In step S406, the second response message sent by the UE to the TNGF includes UE TEID_2. In another possible implementation method, the second response message may not include UE TEID_2. For example, the UE TEID_2 may be a pre-configured fixed value. That is, the UE TEID_2 may or may not be included in the second response message, which is not limited in this embodiment of the present application. In addition, UE TEID_1 and UE TEID_2 may be the same or different, which is not limited in this embodiment of the present application.
S407:TNGF向UE发送PDU会话建立成功的NAS消息。相应的,UE接收PDU会话建立成功的NAS消息。S407: The TNGF sends a NAS message indicating that the PDU session is established successfully to the UE. Correspondingly, the UE receives the NAS message indicating that the PDU session is established successfully.
其中,PDU会话建立成功的NAS消息为控制面数据,TNGF按照GTP-U/UDP/IP的封装方式对该PDU会话建立成功的NAS消息进行封装,得到封装后的数据包,并将封装后的数据包发送给UE。步骤S407的具体实现过程可参考前述步骤S317的描述,这里不再赘述。Among them, the NAS message that the PDU session is successfully established is control plane data, and TNGF encapsulates the NAS message that the PDU session is successfully established according to the encapsulation method of GTP-U/UDP/IP, obtains the encapsulated data packet, and converts the encapsulated The data packet is sent to UE. For the specific implementation process of step S407, reference may be made to the description of the aforementioned step S317, which will not be repeated here.
S408:TNGF向AMF发送N2 PDU会话建立响应消息。相应的,AMF接收N2 PDU会话建立响应消息。S408: The TNGF sends an N2 PDU session establishment response message to the AMF. Correspondingly, the AMF receives the N2 PDU session establishment response message.
在步骤S408之后,AMF与其它网元交互继续进行PDU会话建立流程,直至PDU会话建立完成,其实现过程这里不再赘述。After step S408, the AMF interacts with other network elements to continue the process of establishing the PDU session until the establishment of the PDU session is completed, and the implementation process will not be repeated here.
值得注意的是,TNGF与UE之间可以建立一个或多个PDU会话。当TNGF与UE建立多个PDU会话时,TNGF可以为该多个PDU分配多个TNGF TEID_2,以及UE可以为该多个PDU分配多个UE TEID_2。其中,多个TNGF TEID_2中的每个TNGF TEID_2不 同,即TNGF可以为不同的PDU会话分配不同的TEID。多个UE TEID_2可以相同也可以不同,即UE可以为不同的PDU会话分配相同的TEID或者不同的TEID。为了便于理解本申请实施例,在不作特殊说明的情况下,下文以TNGF与UE之间建立一个PDU会话为例进行描述。It should be noted that one or more PDU sessions can be established between TNGF and UE. When the TNGF establishes multiple PDU sessions with the UE, the TNGF may allocate multiple TNGF TEID_2 to the multiple PDUs, and the UE may allocate multiple UE TEID_2 to the multiple PDUs. Wherein, each TNGF TEID_2 in a plurality of TNGF TEID_2 is different, namely TNGF can allocate different TEIDs for different PDU sessions. Multiple UE TEID_2 can be the same or different, that is, the UE can allocate the same TEID or different TEIDs for different PDU sessions. In order to facilitate the understanding of the embodiment of the present application, without special explanation, the following description will be made by taking the establishment of a PDU session between the TNGF and the UE as an example.
前述介绍了UE在负荷外封装GTP-U包头。在另一种可能的实现方式中,UE可以在第一消息外封装GTP-U包头,负荷是所述第一消息的参数(即第一消息包括该负荷)。具体的,GTE-U包头还可以包括第一消息和消息类型(message type)字段。该message type字段可用于指示第一消息的消息类型。例如,在负荷是控制面数据时,该message type字段的取值为第一值;在负荷是用户面数据时,该message type字段的取值为第二值,该message type字段可用于指示第一消息的消息类型。其中,第一值与第二值可以相同,也可以不同。The foregoing describes that the UE encapsulates the GTP-U header outside the payload. In another possible implementation manner, the UE may encapsulate the GTP-U header outside the first message, and the payload is a parameter of the first message (that is, the first message includes the payload). Specifically, the GTE-U header may also include the first message and a message type (message type) field. The message type field may be used to indicate the message type of the first message. For example, when the load is control plane data, the value of the message type field is the first value; when the load is user plane data, the value of the message type field is the second value, and the message type field can be used to indicate the first value The message type of a message. Wherein, the first value and the second value may be the same or different.
在第一值与第二值相同,如皆取值为255时,该message type字段用于指示GTP包头中封装的负荷是用户面数据,或者是控制面数据,即无论GTP包头中封装的负荷是用户面数据还是控制面数据,该message type字段不变。When the first value is the same as the second value, if both take the value 255, the message type field is used to indicate that the payload encapsulated in the GTP header is user plane data or control plane data, that is, regardless of the payload encapsulated in the GTP header Whether it is user plane data or control plane data, the message type field remains unchanged.
在第一值与第二值不同时,该message type字段用于指示GTP包头所封装的第一消息的消息类型,该第一消息包括控制面数据,控制面数据为NAS消息和接入侧其他参数等中的至少一个。在此情况下,该message type字段(即第二值)可用于指示第一消息的消息类型。例如,第二值为256,该第一消息的消息类型可以是GTP-U消息(GTP-U message);或者,第二值为257,该第一消息的消息类型可以是GTP-U请求消息(GTP-U request message);或者,第二值为258,该第一消息的消息类型可以是GTP-U响应消息(GTP-U response message)等,本申请实施例并不限定于此。通过这种方式,TNGF与UE之间的参数以及控制面数据可以封装在一个GTP-U包头中进行交互,可以减少TNGF与UE之间的信令交互次数,提高网络资源的利用率。When the first value is different from the second value, the message type field is used to indicate the message type of the first message encapsulated in the GTP header, the first message includes control plane data, and the control plane data is NAS message and other information on the access side at least one of parameters etc. In this case, the message type field (ie, the second value) may be used to indicate the message type of the first message. For example, the second value is 256, and the message type of the first message can be a GTP-U message (GTP-U message); or, the second value is 257, and the message type of the first message can be a GTP-U request message (GTP-U request message); or, the second value is 258, and the message type of the first message may be a GTP-U response message (GTP-U response message), etc., and the embodiment of the present application is not limited thereto. In this way, the parameters and control plane data between TNGF and UE can be encapsulated in a GTP-U packet header for interaction, which can reduce the number of signaling interactions between TNGF and UE and improve the utilization of network resources.
以图4所示的流程为例,图5示出了获取用于传输用户面数据的IP地址和TEID的另一种流程示意图。其中,图5中的步骤502、S503、S504、S507分别与图4中的步骤S402、S403、S404、S408对应相同,不同之处在于:Taking the flow shown in FIG. 4 as an example, FIG. 5 shows another schematic flow diagram for obtaining an IP address and a TEID for transmitting user plane data. Wherein, steps 502, S503, S504, and S507 in FIG. 5 are respectively the same as steps S402, S403, S404, and S408 in FIG. 4, the difference is that:
S501:UE向TNGF发送GTP-U消息。相应的,TNGF接收GTP-U消息。S501: The UE sends a GTP-U message to the TNGF. Correspondingly, the TNGF receives the GTP-U message.
GTP-U消息中包括PDU会话建立请求消息。UE发起PDU会话建立流程,UE可以按照步骤S401的封装方式对PDU会话建立请求消息进行封装,即PDU会话建立请求消息封装在GTP-U包头中,GTP-U包头封装在UDP包头中,UDP包头封装在IP包头中。在此情况下,GTP-U包头中的message type字段可以为255。The GTP-U message includes a PDU session establishment request message. The UE initiates the PDU session establishment process, and the UE can encapsulate the PDU session establishment request message according to the encapsulation method in step S401, that is, the PDU session establishment request message is encapsulated in the GTP-U packet header, the GTP-U packet header is encapsulated in the UDP packet header, and the UDP packet header Encapsulated in the IP header. In this case, the message type field in the GTP-U header can be 255.
或者,在本实施例中,UE也可以将PDU会话建立请求消息作为第一消息的参数,并按照消息/GTP-U/UDP/IP的封装方式对第一消息进行封装。其中,第一消息可以为GTP-U消息。具体的,UE将PDU会话建立请求消息封装在GTP-U消息中;在GTP-U消息外封装GTP-U包头,将GTP-U包头中的message type字段填写为256;然后在GTP-U包头外封装UDP包头,以及在UDP包头外封装IP包头。在此情况下,GTP-U包头中的message type字段可以为256。Alternatively, in this embodiment, the UE may also use the PDU session establishment request message as a parameter of the first message, and encapsulate the first message in a message/GTP-U/UDP/IP encapsulation manner. Wherein, the first message may be a GTP-U message. Specifically, the UE encapsulates the PDU session establishment request message in the GTP-U message; encapsulates the GTP-U header outside the GTP-U message, and fills the message type field in the GTP-U header with 256; and then in the GTP-U header Encapsulate the UDP header and encapsulate the IP header outside the UDP header. In this case, the message type field in the GTP-U header can be 256.
其中,GTP-U包头中的TEID为TNGF TEID_1,IP包头中的目的IP地址为TNGF IP地址1。Among them, the TEID in the GTP-U header is TNGF TEID_1, and the destination IP address in the IP header is TNGF IP address 1.
相应的,TNGF可以根据GTP-U包头中的TEID和IP包头中的目的IP地址中的至少一个确定接收到的上行信息为控制面数据。进一步,当message type字段为255时,TNGF可以确定该GTP-U包头携带的内容为控制面数据;当message type字段为256时,TNGF可以确定该GTP-U包头携带的内容为GTP-U消息,然后TNGF继续对GTP-U消息进行解析得到控制面数据(即PDU会话建立请求消息)。Correspondingly, the TNGF may determine that the received uplink information is control plane data according to at least one of the TEID in the GTP-U header and the destination IP address in the IP header. Further, when the message type field is 255, TNGF can determine that the content carried by the GTP-U header is control plane data; when the message type field is 256, TNGF can determine that the content carried by the GTP-U header is a GTP-U message , and then the TNGF continues to parse the GTP-U message to obtain control plane data (ie, the PDU session establishment request message).
S505:TNGF向UE发送GTP-U请求消息。相应的,UE接收GTP-U请求消息。S505: The TNGF sends a GTP-U request message to the UE. Correspondingly, the UE receives the GTP-U request message.
GTP-U请求消息中包括PDU会话建立成功的NAS消息、以及用于传输PDU的用户面数据的TNGF IP地址2、TNGF TEID_2。TNGF可以将PDU会话建立成功的NAS消息作为第三消息的参数,并按照消息/GTP-U/UDP/IP的封装方式对第三消息进行封装。在本实施例中,第三消息可以为GTP-U请求消息。例如,TNGF可以将PDU会话建立成功的NAS消息、TNGF IP地址2和TNGF TEID_2封装在GTP-U请求消息中;在GTP-U请求消息外封装GTP-U包头,并将GTP-U包头中的message type字段填写为257;然后在GTP-U包头外封装UDP包头,以及在UDP包头外封装IP包头。其中,GTP-U包头中的TEID为UE TEID_1,IP包头中的目的IP地址为TNGF IP地址1。The GTP-U request message includes the NAS message that the PDU session is established successfully, and the TNGF IP address 2 and TNGF TEID_2 used to transmit the user plane data of the PDU. The TNGF may use the NAS message that the PDU session is established successfully as a parameter of the third message, and encapsulate the third message according to the message/GTP-U/UDP/IP encapsulation manner. In this embodiment, the third message may be a GTP-U request message. For example, TNGF can encapsulate the NAS message of successful PDU session establishment, TNGF IP address 2 and TNGF TEID_2 in the GTP-U request message; encapsulate the GTP-U packet header outside the GTP-U request message, and wrap the GTP-U packet header in the GTP-U packet header Fill in the message type field as 257; then encapsulate the UDP header outside the GTP-U header, and encapsulate the IP header outside the UDP header. Among them, the TEID in the GTP-U header is UE TEID_1, and the destination IP address in the IP header is TNGF IP address 1.
相应的,UE可以根据GTP-U包头中的TEID和IP包头中的源IP地址中的至少一个确定接收到的下行信息为控制面数据。其中,message type字段为257,UE可以确定GTP-U包头携带的内容为GTP-U请求消息,然后UE继续对GTP-U请求消息进行解析得到控制面数据(即PDU会话建立成功的NAS消息)和参数(即TNGF IP地址2和TNGF TEID_2)。Correspondingly, the UE may determine that the received downlink information is control plane data according to at least one of the TEID in the GTP-U header and the source IP address in the IP header. Among them, the message type field is 257, and the UE can determine that the content carried by the GTP-U header is a GTP-U request message, and then the UE continues to parse the GTP-U request message to obtain the control plane data (that is, the NAS message that the PDU session is successfully established) and parameters (i.e. TNGF IP address 2 and TNGF TEID_2).
S506:UE向TNGF发送GTP-U响应消息。相应的,TNGF接收GTP-U响应消息。S506: The UE sends a GTP-U response message to the TNGF. Correspondingly, the TNGF receives the GTP-U response message.
GTP-U响应消息包括UE TEID_2。UE也可以将UE TEID_2封装在GTP-U响应消息中,将GTP-U响应消息封装在GTP-U包头中,将GTP-U包头封装在UDP包头中,以及将UDP包头封装在IP包头中。在此情况下,GTP-U包头中的message type字段可以为258。其中,GTP-U包头中的TEID为TNGF TEID_1,IP包头中的目的IP地址为TNGF IP地址1。The GTP-U response message includes UE TEID_2. The UE may also encapsulate UE TEID_2 in a GTP-U response message, encapsulate the GTP-U response message in a GTP-U header, encapsulate the GTP-U header in a UDP header, and encapsulate the UDP header in an IP header. In this case, the message type field in the GTP-U header can be 258. Among them, the TEID in the GTP-U header is TNGF TEID_1, and the destination IP address in the IP header is TNGF IP address 1.
相应的,TNGF可以根据GTP-U包头中的TEID和IP包头中的目的IP地址中的至少一个确定接收到的上行信息为控制面数据。其中,message type字段为258,TNGF可以确定该GTP-U包头携带的内容为GTP-U响应消息,然后TNGF继续对GTP-U响应消息进行解析得到参数(即UE TEID_2)。Correspondingly, the TNGF may determine that the received uplink information is control plane data according to at least one of the TEID in the GTP-U header and the destination IP address in the IP header. Wherein, the message type field is 258, and TNGF can determine that the content carried by the GTP-U header is a GTP-U response message, and then TNGF continues to parse the GTP-U response message to obtain parameters (ie, UE TEID_2).
前述介绍了UE通过GTP-U隧道向TNGF发送第一数据包。TNGF接收到第一数据包后,可以执行步骤S202至步骤S204所示的内容。The foregoing describes that the UE sends the first data packet to the TNGF through the GTP-U tunnel. After receiving the first data packet, the TNGF may execute the contents shown in step S202 to step S204.
S202:TNGF根据TNGF的IP地址和TNGF的TEID中的至少一个确定第一负荷是控制面数据还是用户面数据。若TNGF确定第一负荷是用户面数据,则TNGF执行步骤S203所示的内容;若TNGF确定第一负荷是控制面数据,则TNGF执行步骤S204所示的内容。S202: The TNGF determines whether the first load is control plane data or user plane data according to at least one of the IP address of the TNGF and the TEID of the TNGF. If the TNGF determines that the first payload is user plane data, the TNGF executes the content shown in step S203; if the TNGF determines that the first payload is control plane data, the TNGF executes the content shown in step S204.
TNGF接收到第一数据包后,对其解析,得到第一数据包中的TNGF的IP地址、TNGF的TEID以及第一负荷。进一步,TNGF可以根据TNGF的IP地址和TNGF的TEID中的至少一个判断第一负荷是控制面数据还是用户面数据。具体的,TNGF可以通过将第一数据包中的TNGF的IP地址与前述步骤S311中的TNGF IP地址1、以及前述步骤S405中的TNGF IP地址2进行对比,或者将第一数据包中的TNGF TEID与前述步骤S311中的TNGF TEID_1、以及前述步骤S405中的TNGF TEID_2进行对比,来判断第一负荷是控制 面数据还是用户面数据。After receiving the first data packet, the TNGF parses it to obtain the IP address of the TNGF, the TEID of the TNGF and the first payload in the first data packet. Further, the TNGF may determine whether the first load is control plane data or user plane data according to at least one of the IP address of the TNGF and the TEID of the TNGF. Specifically, TNGF can compare the IP address of TNGF in the first data packet with the TNGF IP address 1 in the aforementioned step S311 and the TNGF IP address 2 in the aforementioned step S405, or compare the TNGF in the first data packet The TEID is compared with the TNGF TEID_1 in the aforementioned step S311 and the TNGF TEID_2 in the aforementioned step S405 to determine whether the first load is control plane data or user plane data.
例如,TNGF的TEID是TNGF TEID_1,则TNGF可以确定第一负荷是控制面数据;或者,TNGF的IP地址是TNGF IP地址1,则TNGF可以确定第一负荷是控制面数据;或者,TNGF的TEID是TNGF TEID_1,且TNGF的IP地址是TNGF IP地址1,则TNGF可以确定第一负荷是控制面数据。For example, if the TEID of TNGF is TNGF TEID_1, then TNGF can determine that the first load is control plane data; or, the IP address of TNGF is TNGF IP address 1, then TNGF can determine that the first load is control plane data; or, the TEID of TNGF is TNGF TEID_1, and the IP address of TNGF is TNGF IP address 1, then TNGF can determine that the first load is control plane data.
又例如,TNGF的TEID是TNGF TEID_2,则TNGF可以确定第一负荷是用户面数据;或者,TNGF的IP地址是TNGF IP地址2,则TNGF可以确定第一负荷是用户面数据;或者,TNGF的TEID是TNGF TEID_2,且TNGF的IP地址是TNGF IP地址2,则TNGF可以确定第一负荷是用户面数据。For another example, if the TEID of TNGF is TNGF TEID_2, then TNGF can determine that the first load is user plane data; or, if the IP address of TNGF is TNGF IP address 2, then TNGF can determine that the first load is user plane data; or, TNGF's TEID is TNGF TEID_2, and the IP address of TNGF is TNGF IP address 2, then TNGF can determine that the first load is user plane data.
在一种可能的实现方式中,第一IP包头包括UE的IP地址,TNGF可以根据UE的IP地址、以及UE的IP地址与UE的标识信息之间的对应关系,确定UE的标识信息,以及根据UE的标识信息确定UE的上下文信息。其中,UE的上下文信息包括UE的标识信息、UE的N2接口标识、N2接口信息和N3接口信息等。该N2接口信息可用于确定为该UE建立N2连接的控制面网元,该N3接口信息可用于确定为该UE建立N3连接的用户面网元。例如,第一负荷是控制面数据,TNGF可以根据UE的上下文信息确定为该UE建立N2连接的控制面网元,然后通过N2连接将第一负荷发送给该控制面网元(图2以控制面网元为AMF为例)。又例如,第一负荷是用户面数据,TNGF可以根据UE的上下文信息确定为该UE建立N3连接的用户面网元,然后通过N3连接将第一负荷发送给该用户面网元(图2以用户面网元为UPF为例)。In a possible implementation manner, the first IP packet header includes the IP address of the UE, and the TNGF can determine the identification information of the UE according to the IP address of the UE and the correspondence between the IP address of the UE and the identification information of the UE, and Determine the context information of the UE according to the identification information of the UE. Wherein, the UE context information includes UE identification information, UE N2 interface identification, N2 interface information, N3 interface information, and the like. The N2 interface information can be used to determine the control plane network element that establishes the N2 connection for the UE, and the N3 interface information can be used to determine the user plane network element that establishes the N3 connection for the UE. For example, the first load is control plane data, and the TNGF can determine the control plane network element that establishes the N2 connection for the UE according to the context information of the UE, and then send the first load to the control plane network element through the N2 connection (Fig. The plane NE is AMF as an example). For another example, if the first load is user plane data, the TNGF may determine the user plane network element that establishes the N3 connection for the UE according to the context information of the UE, and then send the first load to the user plane network element through the N3 connection (Fig. The user plane network element is UPF as an example).
S203:TNGF向UPF发送第一负荷。相应的,UPF接收第一负荷。S203: The TNGF sends the first payload to the UPF. Correspondingly, the UPF receives the first load.
在TNGF确定第一负荷是用户面数据之后,TNGF可以通过N3连接将第一负荷发送给UPF。After the TNGF determines that the first payload is user plane data, the TNGF may send the first payload to the UPF through the N3 connection.
S204:TNGF向AMF发送第一负荷。相应的,AMF接收第一负荷。S204: The TNGF sends the first payload to the AMF. Correspondingly, the AMF receives the first load.
在TNGF确定第一负荷是控制面数据之后,TNGF可以通过N2连接将第一负荷发送给AMF。After the TNGF determines that the first payload is control plane data, the TNGF may send the first payload to the AMF through the N2 connection.
上述步骤S201至步骤S204介绍了上行方向上,TNGF区分上行信息是控制面数据或者是用户面数据的具体实现流程。接下来结合步骤S205a至步骤S208介绍下行方向上,UE区分下行信息是控制面数据或者是用户面数据的具体实现流程。Steps S201 to S204 described above describe a specific implementation process for the TNGF to distinguish whether uplink information is control plane data or user plane data in the uplink direction. Next, in combination with steps S205a to S208, a specific implementation process for the UE to distinguish whether downlink information is control plane data or user plane data in the downlink direction is introduced.
S205a:UPF向TNGF发送第二负荷。或者,S205b:AMF向TNGF发送第二负荷。相应的,TNGF接收第二负荷。S205a: The UPF sends the second payload to the TNGF. Or, S205b: The AMF sends the second payload to the TNGF. Correspondingly, the TNGF receives the second load.
其中,第二负荷可以是用户面数据,或者是控制面数据。例如,第二负荷是用户面数据时,TNGF可以通过N3连接接收来自UPF的第二负荷,如步骤S205a所示。又例如,第二负荷是控制面数据,TNGF可以通过N2连接接收来自控制面网元(图2以AMF为例)的第二负荷,如步骤S205b所示。Wherein, the second payload may be user plane data or control plane data. For example, when the second load is user plane data, the TNGF may receive the second load from the UPF through the N3 connection, as shown in step S205a. For another example, the second load is control plane data, and the TNGF may receive the second load from the control plane network element (the AMF is taken as an example in FIG. 2 ) through the N2 connection, as shown in step S205b.
应理解的是,步骤S205b为可选步骤,图2中以虚线表示。例如,在第二负荷是控制面数据时,该第二负荷可以是TNGF接收到的来自其它控制面网元的控制面数据,也可以TNGF自身生成控制面数据。It should be understood that step S205b is an optional step, which is indicated by a dotted line in FIG. 2 . For example, when the second load is control plane data, the second load may be control plane data received by the TNGF from other control plane network elements, or may be generated by the TNGF itself.
S206:TNGF根据第二负荷生成第二数据包。S206: The TNGF generates a second data packet according to the second payload.
第二数据包包括第二IP包头、第二GTP-U包头以及第二负荷。例如,第二负荷外封装有第二GTP-U包头,第二GTP-U包头外封装有第二UDP包头,第二UDP包头外封装 有第二IP包头。具体的,TNGF可以在第二负荷外封装第二GTP-U包头,在第二GTP-包头外封装第二UDP包头,以及在第二UDP包头外封装第二IP包头,得到第二数据包。The second data packet includes a second IP header, a second GTP-U header and a second payload. For example, the second payload is encapsulated with a second GTP-U header, the second GTP-U header is encapsulated with a second UDP header, and the second UDP header is encapsulated with a second IP header. Specifically, the TNGF may encapsulate the second GTP-U header outside the second payload, encapsulate the second UDP header outside the second GTP- header, and encapsulate the second IP header outside the second UDP header, to obtain the second data packet.
第二IP包头包括目的IP地址和源IP地址,该目的IP地址和源IP地址分别为UE的IP地址、TNGF的IP地址。第二GTP-U包头包括UE的TEID。其中,TNGF的IP地址可以是TNGF为传输控制面数据分配的IP地址(记为TNGF IP地址1),或者是TNGF为传输用户面数据分配的IP地址(记为TNGF IP地址2)。UE的TEID可以是UE为传输控制面数据分配的TEID(记为UE TEID_1),或者是UE为传输用户面数据分配的TEID(记为UE TEID_2)。该TNGF的IP地址和UE的TEID中的至少一个可用于标识第二负荷是控制面数据或者是用户面数据。The second IP packet header includes a destination IP address and a source IP address, and the destination IP address and the source IP address are respectively the IP address of the UE and the IP address of the TNGF. The second GTP-U header includes the TEID of the UE. Wherein, the IP address of TNGF can be the IP address allocated by TNGF for transmitting control plane data (denoted as TNGF IP address 1), or the IP address allocated by TNGF for transmitting user plane data (denoted as TNGF IP address 2). The TEID of the UE may be the TEID allocated by the UE for transmission of control plane data (denoted as UE TEID_1), or the TEID allocated by the UE for transmission of user plane data (denoted as UE TEID_2). At least one of the IP address of the TNGF and the TEID of the UE may be used to identify whether the second load is control plane data or user plane data.
例如,当第二负荷是控制面数据时,UE的TEID是UE为传输控制面数据分配的TEID。具体的,TNGF可以按照GTP-U/UDP/IP的封装方式对第二负荷进行封装,并将GTP-U包头中的TEID填写为UE TEID_1,以指示该第二负荷为控制面数据。For example, when the second load is control plane data, the TEID of the UE is the TEID allocated by the UE for transmitting the control plane data. Specifically, the TNGF may encapsulate the second payload according to the GTP-U/UDP/IP encapsulation manner, and fill in the TEID in the GTP-U header as UE TEID_1 to indicate that the second payload is control plane data.
或者,当第二负荷是控制面数据时,TNGF的IP地址是TNGF为传输控制面数据分配的IP地址。具体的,TNGF可以按照GTP-U/UDP/IP的封装方式对第二负荷进行封装,并将IP包头中的源IP地址填写为TNGF IP地址1,以指示该第二负荷为控制面数据。Alternatively, when the second load is control plane data, the IP address of the TNGF is an IP address allocated by the TNGF for transmitting the control plane data. Specifically, TNGF can encapsulate the second payload according to the GTP-U/UDP/IP encapsulation method, and fill in the source IP address in the IP packet header as TNGF IP address 1 to indicate that the second payload is control plane data.
或者,当第二负荷是控制面数据时,UE的TEID是UE为传输控制面数据分配的TEID,且TNGF的IP地址是TNGF为传输控制面数据分配的IP地址。具体的,TNGF可以按照GTP-U/UDP/IP的封装方式对第二负荷进行封装,并将GTP-U包头中的TEID填写为UE TEID_1,以及将IP包头中的源IP地址填写为TNGF IP地址1,以指示该第二负荷为控制面数据。Alternatively, when the second load is control plane data, the TEID of the UE is the TEID allocated by the UE for transmission of the control plane data, and the IP address of the TNGF is the IP address allocated by the TNGF for transmission of the control plane data. Specifically, TNGF can encapsulate the second payload according to the GTP-U/UDP/IP encapsulation method, fill in the TEID in the GTP-U header as UE TEID_1, and fill in the source IP address in the IP header as TNGF IP Address 1, to indicate that the second payload is control plane data.
又例如,当第二负荷是用户面数据时,UE的TEID是UE为传输用户面数据分配的TEID。具体的,TNGF可以按照GTP-U/UDP/IP的封装方式对第二负荷进行封装,并将GTP-U包头中的TEID填写为UE TEID_2,以指示该第二负荷为用户面数据。For another example, when the second load is user plane data, the TEID of the UE is the TEID allocated by the UE for transmitting user plane data. Specifically, the TNGF may encapsulate the second payload according to the GTP-U/UDP/IP encapsulation manner, and fill in the TEID in the GTP-U header as UE TEID_2 to indicate that the second payload is user plane data.
或者,当第二负荷是用户面数据时,TNGF的IP地址是TNGF为传输用户面数据分配的IP地址。具体的,TNGF可以按照GTP-U/UDP/IP的封装方式对第二负荷进行封装,并将IP包头中的源IP地址填写为TNGF为TNGF IP地址2,以指示该第二负荷为用户面数据。Or, when the second load is user plane data, the IP address of the TNGF is an IP address allocated by the TNGF for transmitting user plane data. Specifically, TNGF can encapsulate the second payload according to the encapsulation method of GTP-U/UDP/IP, and fill in the source IP address in the IP packet header as TNGF is TNGF IP address 2, to indicate that the second payload is the user plane data.
或者,当第二负荷是用户面数据时,UE的TEID是UE为传输用户面数据分配的TEID,且TNGF的IP地址是TNGF为传输用户面数据分配的IP地址。具体的,TNGF可以按照GTP-U/UDP/IP的封装方式对第二负荷进行封装,并将GTP-U包头中的TEID填写为UE TEID_2,以及将IP包头中的源IP地址填写为TNGF IP地址2,以指示该第二负荷为用户面数据。Or, when the second load is user plane data, the TEID of the UE is the TEID allocated by the UE for transmitting user plane data, and the IP address of the TNGF is the IP address allocated by the TNGF for transmitting user plane data. Specifically, TNGF can encapsulate the second payload according to the GTP-U/UDP/IP encapsulation method, fill in the TEID in the GTP-U header as UE TEID_2, and fill in the source IP address in the IP header as TNGF IP Address 2, to indicate that the second payload is user plane data.
S207:TNGF向UE发送第二数据包。相应的,UE接收第二数据包。S207: The TNGF sends the second data packet to the UE. Correspondingly, the UE receives the second data packet.
例如,TNGF通过GTP-U隧道向UE发送第二数据包。For example, the TNGF sends the second data packet to the UE through the GTP-U tunnel.
S208:UE根据TNGF的IP地址和UE的TEID中的至少一个确定第二负荷是控制面数据或者是用户面数据。S208: The UE determines according to at least one of the IP address of the TNGF and the TEID of the UE that the second load is control plane data or user plane data.
UE接收到第二数据包后,对其解析,得到第二数据包中的TNGF的IP地址、UE的TEID以及第二负荷。进一步,UE可以根据TNGF的IP地址和UE的TEID中的至少一个判断第二负荷是控制面数据还是用户面数据。具体的,UE可以通过将第二数据包中的TNGF的IP地址与前述步骤S311中的TNGF IP地址1、以及前述步骤S405中的TNGF IP 地址2进行对比,或者将第二数据包中的UE TEID与前述步骤S312中的UE TEID_1、以及前述步骤S406中的UE TEID_2进行对比,来判断第二负荷是控制面数据还是用户面数据。After receiving the second data packet, the UE parses it to obtain the IP address of the TNGF, the TEID of the UE, and the second payload in the second data packet. Further, the UE may determine whether the second load is control plane data or user plane data according to at least one of the IP address of the TNGF and the TEID of the UE. Specifically, the UE can compare the IP address of the TNGF in the second data packet with the TNGF IP address 1 in the aforementioned step S311 and the TNGF IP address 2 in the aforementioned step S405, or compare the IP address of the UE in the second data packet The TEID is compared with the UE TEID_1 in the aforementioned step S312 and the UE TEID_2 in the aforementioned step S406 to determine whether the second load is control plane data or user plane data.
例如,UE的TEID是UE TEID_1,则UE可以确定第二负荷是控制面数据;或者,TNGF的IP地址是TNGF IP地址1,则UE可以确定第二负荷是控制面数据;或者,UE的TEID是UE TEID_1,且TNGF的IP地址是TNGF IP地址1,则UE可以确定第二负荷是控制面数据。For example, if the TEID of the UE is UE TEID_1, the UE can determine that the second load is control plane data; or, the IP address of the TNGF is TNGF IP address 1, then the UE can determine that the second load is control plane data; or, the TEID of the UE is UE TEID_1, and the IP address of TNGF is TNGF IP address 1, then the UE can determine that the second load is control plane data.
又例如,UE的TEID是UE TEID_2,则UE可以确定第二负荷是用户面数据;或者,TNGF的IP地址是TNGF IP地址2,则UE可以确定第二负荷是用户面数据;或者,UE的TEID是UE TEID_2,且TNGF的IP地址是TNGF IP地址2,则UE可以确定第二负荷是用户面数据。For another example, if the TEID of the UE is UE TEID_2, the UE may determine that the second load is user plane data; or, the IP address of the TNGF is TNGF IP address 2, then the UE may determine that the second load is user plane data; or, the UE's TEID is UE TEID_2, and the IP address of TNGF is TNGF IP address 2, then the UE can determine that the second load is user plane data.
实施例二Embodiment two
图14示出了本申请实施例提供的通信方法的流程示意图。在本实施例中第一负荷和第二负荷皆为控制面数据。如图14所示,本实施例分别从下行方向和上行方向对本实施例提供的通信方法进行介绍。FIG. 14 shows a schematic flowchart of a communication method provided by an embodiment of the present application. In this embodiment, both the first load and the second load are control plane data. As shown in FIG. 14 , this embodiment introduces the communication method provided by this embodiment from the downlink direction and the uplink direction respectively.
需要说明的是,为了便于理解,在下文中将TNGF为传输控制面数据分配的TEID记为TNGF TEID_1,将TNGF为传输控制面数据分配的IP地址记为TNGF IP地址1。以及,为了便于表述,下文中将负荷外封装有GTP-U包头,GTP-U包头外封装有UDP包头,以及该UDP包头外封装有IP包头的封装方式记为GTP-U/UDP/IP。It should be noted that, for the sake of easy understanding, the TEID allocated by TNGF for transmission control plane data is recorded as TNGF TEID_1, and the IP address allocated by TNGF for transmission control plane data is recorded as TNGF IP address 1. And, for the convenience of expression, the encapsulation method in which the GTP-U header is encapsulated outside the payload, the UDP header is encapsulated outside the GTP-U header, and the IP header is encapsulated outside the UDP header is denoted as GTP-U/UDP/IP.
其中,本实施例中的步骤S1401-S1410、S1411-S1414分别与图3中的步骤S301-S310、S313-S316对应相同,不同之处在于:Wherein, steps S1401-S1410 and S1411-S1414 in this embodiment are respectively the same as steps S301-S310 and S313-S316 in FIG. 3 , the difference is that:
S1415:TNGF生成第二数据包。S1415: The TNGF generates a second data packet.
第二数据包包括第二IP包头、第二GTP-U包头以及第二负荷。在本实施例中,该第二负荷是注册完成的NAS消息。例如,注册完成的NAS消息外封装有第二GTP-U包头,第二GTP-U包头外封装有第二UDP包头,第二UDP包头外封装有第二IP包头。例如,TNGF接收到N2连接建立响应消息后,对其解封装得到注册完成的NAS消息,按照GTP-U/UDP/IP封装方式对该注册完成的NAS消息进行封装,得到第二数据包。具体的,TNGF在注册完成的NAS消息外封装第二GTP-U包头,在第二GTP-包头外封装第二UDP包头,以及在第二UDP包头外封装第二IP包头,得到第二数据包。The second data packet includes a second IP header, a second GTP-U header and a second payload. In this embodiment, the second payload is a registration completed NAS message. For example, the registered NAS message is encapsulated with a second GTP-U header, the second GTP-U header is encapsulated with a second UDP header, and the second UDP header is encapsulated with a second IP header. For example, after receiving the N2 connection establishment response message, the TNGF decapsulates it to obtain a registered NAS message, and encapsulates the registered NAS message according to the GTP-U/UDP/IP encapsulation mode to obtain a second data packet. Specifically, TNGF encapsulates the second GTP-U header outside the registered NAS message, encapsulates the second UDP header outside the second GTP-header, and encapsulates the second IP header outside the second UDP header to obtain the second data packet .
其中,第二IP包头包括目的IP地址和源IP地址,该目的IP地址和源IP地址分别为UE的IP地址、TNGF的IP地址。第二GTP-U包头包括TNGF的TEID。在本实施例中,第二负荷是注册完成的NAS消息,即第二负荷是控制面数据。该TNGF的IP地址是TNGF IP地址1。以及,TNGF的TEID是TNGF TEID_1。Wherein, the second IP packet header includes a destination IP address and a source IP address, and the destination IP address and the source IP address are respectively the IP address of the UE and the IP address of the TNGF. The second GTP-U header includes the TEID of the TNGF. In this embodiment, the second payload is a registration completed NAS message, that is, the second payload is control plane data. The IP address of the TNGF is TNGF IP address 1. And, the TEID of TNGF is TNGF TEID_1.
示例性的,TNGF接收到N2连接建立响应消息后,对其解析得到注册完成的NAS消息;以及,根据步骤S1410中接收到的指示信息,确定与UE建立GTP-U隧道,并确定通过该GTP-U隧道向UE发送注册完成的NAS消息。具体的,TNGF可以为UE分配TNGF的IP地址和TNGF的TEID,将TNGF的IP地址、TNGF的TEID分别填入第二IP包头、第二GTP-U包头中,并按照GTP-U/UDP/IP封装方式对注册完成的NAS消息进行封装,得到第二数据包。在本实施例中,TNGF为UE分配的TNGF的IP地址是后续用于传输控 制面数据的IP地址(即TNGF IP地址1);TNGF为UE分配的TNGF的TEID是后续用于传输控制面数据的TEID(即TNGF TEID_1)。可选的,TNGF还可以确定后续用于传输控制面数据的DSCP,并将DSCP携带在第二数据包中发送给UE。Exemplarily, after receiving the N2 connection establishment response message, the TNGF parses it to obtain a registration completed NAS message; and, according to the indication information received in step S1410, determines to establish a GTP-U tunnel with the UE, and determines to pass the GTP - The U tunnel sends a NAS message of registration completion to the UE. Specifically, the TNGF can assign the IP address of the TNGF and the TEID of the TNGF to the UE, fill the IP address of the TNGF and the TEID of the TNGF into the second IP header and the second GTP-U header respectively, and follow the GTP-U/UDP/ The IP encapsulation method encapsulates the registered NAS message to obtain the second data packet. In this embodiment, the IP address of TNGF allocated by TNGF to UE is the IP address (i.e. TNGF IP address 1) for subsequent transmission of control plane data; TEID (i.e. TNGF TEID_1). Optionally, the TNGF may also determine the DSCP used for subsequent transmission of control plane data, and carry the DSCP in the second data packet and send it to the UE.
值得注意的是,UE的IP地址可以包括用于传输控制面数据的IP地址(记为UE IP地址1)和用于传输用户面数据的IP地址(记为UE IP地址2)。UE的IP地址的获取的方式可参考前述步骤S313的相关描述,在此不再赘述。其中,UE IP地址1和UE IP地址2可以相同,也可以不同,本申请实施例对此不作限定。It should be noted that the IP address of the UE may include an IP address used to transmit control plane data (denoted as UE IP address 1) and an IP address used to transmit user plane data (denoted as UE IP address 2). For the manner of obtaining the IP address of the UE, reference may be made to the relevant description of the foregoing step S313, and details are not repeated here. Wherein, the UE IP address 1 and the UE IP address 2 may be the same or different, which is not limited in this embodiment of the present application.
类似的,TNGF的IP地址可以包括用于传输控制面数据的IP地址(记为TNGF IP地址1)和用于传输用户面数据的IP地址(记为TNGF IP地址2)。其中,TNGF IP地址1与TNGF IP地址2可以相同,也可以不同,本申请实施例对此不作限定。Similarly, the IP address of the TNGF may include an IP address used to transmit control plane data (denoted as TNGF IP address 1) and an IP address used to transmit user plane data (denoted as TNGF IP address 2). Wherein, the TNGF IP address 1 and the TNGF IP address 2 may be the same or different, which is not limited in this embodiment of the present application.
S1416:TNGF向UE发送第二数据包。相应的,UE接收第二数据包。S1416: The TNGF sends the second data packet to the UE. Correspondingly, the UE receives the second data packet.
例如,TNGF通过GTP-U隧道向UE发送第二数据包。For example, the TNGF sends the second data packet to the UE through the GTP-U tunnel.
S1417:UE存储TNGF IP地址1和TNGF TEID_1。S1417: The UE stores the TNGF IP address 1 and the TNGF TEID_1.
示例性的,UE可以确定TNGF IP地址1是用于传输控制面数据的IP地址,以及确定TNGF TEID_1是用于传输控制面数据的TEID,并存储该TNGF IP地址1和该TNGF TEID_1。例如,UE接收到第二数据包后,对其解封装,得到TNGF IP地址1、TNGF TEID_1以及第二负荷。在本实施例中,第二负荷是注册完成的NAS消息。进一步,UE可以根据该注册完成的NAS消息确定TNGF IP地址1是用于传输控制面数据的IP地址,以及确定TNGF TEID_1是用于传输控制面数据的TEID,并存储该TNGF IP地址1和该TNGF TEID_1,以便UE后续可以基于TNGF IP地址1和TNGF TEID_1,通过GTP-U隧道向TNGF发送控制面数据。可选的,UE解析该第二数据包,还可以得到DSCP,并存储该DSCP,以便后续UE基于DSCP,通过GTP-U隧道向TNGF发送控制面数据。Exemplarily, the UE may determine that TNGF IP address 1 is the IP address used to transmit control plane data, and determine that TNGF TEID_1 is the TEID used to transmit control plane data, and store the TNGF IP address 1 and the TNGF TEID_1. For example, after receiving the second data packet, the UE decapsulates it to obtain TNGF IP address 1, TNGF TEID_1 and the second payload. In this embodiment, the second payload is a registration completed NAS message. Further, the UE may determine that TNGF IP address 1 is the IP address used to transmit control plane data according to the NAS message of the registration completion, and determine that TNGF TEID_1 is the TEID used to transmit control plane data, and store the TNGF IP address 1 and the TNGF TEID_1, so that the UE can send control plane data to TNGF through the GTP-U tunnel based on TNGF IP address 1 and TNGF TEID_1. Optionally, the UE may obtain the DSCP by parsing the second data packet, and store the DSCP, so that the subsequent UE may send control plane data to the TNGF through the GTP-U tunnel based on the DSCP.
在一种可能的实现方式中,在步骤S1417之后,TNGF可以基于TNGF IP地址1和TNGF TEID_1向UE发送第四数据包,该第四数据包所包括的第四负荷是控制面数据。例如,TNGF分别将TNGF IP地址1、TNGF TEID_1填入IP包头、GTP-U包头,并按照GTP-U/UDP/IP封装方式对第四负荷进行封装,得到对第四数据包,以及GTP-U隧道向TNGF发送该第四数据包。In a possible implementation manner, after step S1417, the TNGF may send a fourth data packet to the UE based on the TNGF IP address 1 and the TNGF TEID_1, where the fourth payload included in the fourth data packet is control plane data. For example, TNGF fills TNGF IP address 1 and TNGF TEID_1 into the IP header and GTP-U header respectively, and encapsulates the fourth load according to the GTP-U/UDP/IP encapsulation method to obtain the fourth data packet, and GTP-U The U tunnel sends the fourth data packet to the TNGF.
相应的,UE接收到第四数据包后,对其解析,得到第四数据包中的TNGF的IP地址、TNGF的TEID以及第四负荷。UE可以根据TNGF的IP地址和TNGF的TEID中的至少一个判断第四负荷是控制面数据还是用户面数据。在本实施例中,TNGF的IP地址是TNGF IP地址1,TNGF的TEID是TNGF TEID_1。进一步,UE可以根据TNGF IP地址1,或者根据TNGF TEID_1,或者根据TNGF IP地址1和TNGF TEID_1,确定该第四负荷是控制面数据。Correspondingly, after receiving the fourth data packet, the UE parses it, and obtains the IP address of the TNGF, the TEID of the TNGF, and the fourth payload in the fourth data packet. The UE may determine whether the fourth load is control plane data or user plane data according to at least one of the IP address of the TNGF and the TEID of the TNGF. In this embodiment, the IP address of the TNGF is TNGF IP address 1, and the TEID of the TNGF is TNGF TEID_1. Further, the UE may determine that the fourth load is control plane data according to TNGF IP address 1, or according to TNGF TEID_1, or according to TNGF IP address 1 and TNGF TEID_1.
在另一种可能的实施方式中,UE也可以通过解析第四负荷判断该第四负荷是控制面数据还是用户面数据。即对于UE侧,UE可以通过TNGF的IP地址和TNGF的TEID中的至少一个判断第四负荷是控制面数据还是用户面数据,也可以通过解析第四负荷判断该第四负荷是控制面数据还是用户面数据,本申请实施例对此不作限定。In another possible implementation manner, the UE may also determine whether the fourth payload is control plane data or user plane data by analyzing the fourth payload. That is, for the UE side, the UE can determine whether the fourth load is control plane data or user plane data through at least one of the IP address of the TNGF and the TEID of the TNGF, and can also determine whether the fourth load is control plane data or user plane data by analyzing the fourth load. The user plane data is not limited in this embodiment of the application.
在上述步骤S1414至步骤S1417介绍了下行方向上,TNGF通过注册完成的NAS消息将TNGF IP地址1和TNGF TEID_1发送给UE,以使UE获取到TNGF为传输控制面数据分配的IP地址和TEID。这样,TNGF无需通过其它消息(如步骤S311中的扩展的鉴权请 求消息或者5G通知消息)为UE分配TNGF IP地址1和TNGF TEID_1,能够减少TNGF与UE之间的信令交互,提高网络资源的利用率。在后续通信过程中,TNGF可以基于TNGF IP地址1和TNGF TEID_1,通过GTP-U隧道向UE发送控制面数据。接下来结合步骤S1418至步骤S1420介绍上行方向上,UE基于TNGF IP地址1和TNGF TEID_1,通过GTP-U隧道向TNGF发送控制面数据。In the above step S1414 to step S1417, in the downlink direction, the TNGF sends the TNGF IP address 1 and TNGF TEID_1 to the UE through the registered NAS message, so that the UE can obtain the IP address and TEID allocated by the TNGF for the transmission control plane data. In this way, TNGF does not need to assign TNGF IP address 1 and TNGF TEID_1 to UE through other messages (such as the extended authentication request message or 5G notification message in step S311), which can reduce the signaling interaction between TNGF and UE, and improve network resources. utilization rate. In the subsequent communication process, TNGF can send control plane data to UE through GTP-U tunnel based on TNGF IP address 1 and TNGF TEID_1. Next, in combination with steps S1418 to S1420, it is introduced that in the uplink direction, the UE sends control plane data to the TNGF through the GTP-U tunnel based on the TNGF IP address 1 and TNGF TEID_1.
S1418:UE向TNGF发送第一数据包。相应的,TNGF接收第一数据包。S1418: The UE sends the first data packet to the TNGF. Correspondingly, the TNGF receives the first data packet.
UE可以通过GTP-U隧道向TNGF发送第一数据包。其中,第一数据包包括第一IP包头、第一GTP-U包头以及第一负荷。在本实施例中,第一负荷是控制面数据,如NAS消息(如PDU会话建立请求等)等。例如,第一负荷外封装有第一GTP-U包头,第一GTP-U包头外封装有第一UDP包头,第一UDP包头外封装有第一IP包头。具体的,UE可以将第一负荷外封装第一GTP-U包头,在第一GTP-包头外封装第一UDP包头,以及在该第一UDP包头外封装第一IP包头,得到第一数据包,并通过GTP-U隧道向TNGF发送该第一数据包。The UE may send the first data packet to the TNGF through the GTP-U tunnel. Wherein, the first data packet includes a first IP header, a first GTP-U header and a first payload. In this embodiment, the first payload is control plane data, such as NAS messages (such as a PDU session establishment request, etc.). For example, the first payload is encapsulated with a first GTP-U header, the first GTP-U header is encapsulated with a first UDP header, and the first UDP header is encapsulated with a first IP header. Specifically, the UE may encapsulate the first GTP-U header outside the first payload, encapsulate the first UDP header outside the first GTP-header, and encapsulate the first IP header outside the first UDP header, to obtain the first data packet , and send the first data packet to the TNGF through the GTP-U tunnel.
第一IP包头包括目的IP地址和源IP地址,该目的IP地址和源IP地址分别为TNGF的IP地址、UE的IP地址。第一GTP-U包头包括TNGF的TEID。在本实施例中,TNGF的IP地址是TNGF为传输控制面数据分配的IP地址(记为TNGF IP地址1);以及,TNGF的TEID是TNGF为传输控制面数据分配的TEID(记为TNGF TEID_1)。例如,UE确定向TNGF发送的第一负荷是控制面数据。进一步,UE可以根据步骤S1417中获取的TNGF IP地址1、TNGF TEID_1分别填入第一IP包头、第一GTP-U包头,并按照GTP-U/UDP/IP封装方式对该第一负荷进行封装,得到第一数据包,以及向TNGF发送第一数据包。The first IP packet header includes a destination IP address and a source IP address, and the destination IP address and the source IP address are respectively the IP address of the TNGF and the IP address of the UE. The first GTP-U header includes the TEID of the TNGF. In the present embodiment, the IP address of TNGF is the IP address (denoted as TNGF IP address 1) that TNGF distributes for transmission control plane data; ). For example, the UE determines that the first payload sent to the TNGF is control plane data. Further, the UE may respectively fill in the first IP header and the first GTP-U header according to the TNGF IP address 1 and TNGF TEID_1 obtained in step S1417, and encapsulate the first load according to the GTP-U/UDP/IP encapsulation method , obtain the first data packet, and send the first data packet to the TNGF.
S1419:TNGF根据TNGF IP地址1和TNGF TEID_1中的至少一个确定第一负荷是控制面数据。S1419: The TNGF determines according to at least one of the TNGF IP address 1 and the TNGF TEID_1 that the first payload is control plane data.
TNGF接收到第一数据包后,对其解析,得到第一数据包中的TNGF的IP地址、TNGF的TEID以及第一负荷,并根据TNGF的IP地址和TNGF的TEID中的至少一个确定第一负荷是控制面数据还是用户面数据。在本实施例中,TNGF的IP地址是TNGF IP地址1,TNGF的TEID是TNGF TEID_1。进一步,TNGF可以根据TNGF IP地址1,或者根据TNGF TEID_1,或者根据TNGF IP地址1和TNGF TEID_1,确定该第一负荷是控制面数据。After receiving the first data packet, the TNGF parses it to obtain the IP address of the TNGF, the TEID of the TNGF and the first load in the first data packet, and determines the first load according to at least one of the IP address of the TNGF and the TEID of the TNGF. Whether the load is control plane data or user plane data. In this embodiment, the IP address of the TNGF is TNGF IP address 1, and the TEID of the TNGF is TNGF TEID_1. Further, the TNGF may determine that the first payload is control plane data according to TNGF IP address 1, or according to TNGF TEID_1, or according to TNGF IP address 1 and TNGF TEID_1.
S1420:TNGF向AMF发送第一负荷。相应的,AMF接收第一负荷。S1420: The TNGF sends the first payload to the AMF. Correspondingly, the AMF receives the first load.
在TNGF确定第一负荷是控制面数据之后,TNGF可以通过N2连接将第一负荷发送给AMF。After the TNGF determines that the first payload is control plane data, the TNGF may send the first payload to the AMF through the N2 connection.
实施例三Embodiment three
图6示出了本申请实施例提供的通信方法的流程示意图。如图6所示,本实施例分别从上行方向和下行方向对本申请实施例提供的通信方法进行介绍。FIG. 6 shows a schematic flowchart of a communication method provided by an embodiment of the present application. As shown in FIG. 6 , this embodiment introduces the communication method provided by the embodiment of the present application from the uplink direction and the downlink direction respectively.
为了便于表述,下文中负荷外封装有通用路由封装(general routing encapsulation,GRE)协议包头,该GRE协议包头外封装有IP包头的封装方式记为GRE/IP。For the convenience of expression, in the following, a general routing encapsulation (general routing encapsulation, GRE) protocol header is encapsulated outside the payload, and the encapsulation method in which an IP header is encapsulated outside the GRE protocol header is denoted as GRE/IP.
S601:UE向TNGF发送第一数据包。相应的,TNGF接收第一数据包。S601: The UE sends a first data packet to the TNGF. Correspondingly, the TNGF receives the first data packet.
UE可以通过GRE隧道向TNGF发送第一数据包。其中,第一数据包包括第一GRE协议包头以及第一负荷。例如,第一负荷外封装有GRE协议包头,第一GRE协议包头外封装有第一IP包头。具体的,UE可以在第一负荷外封装第一GRE协议包头,以及在第一 GRE协议包头外封装第一IP包头,得到第一数据包,并通过GRE隧道向TNGF发送该第一数据包。The UE may send the first data packet to the TNGF through the GRE tunnel. Wherein, the first data packet includes a first GRE protocol header and a first payload. For example, a GRE protocol header is encapsulated outside the first payload, and a first IP header is encapsulated outside the first GRE protocol header. Specifically, the UE may encapsulate the first GRE protocol header outside the first payload, and encapsulate the first IP header outside the first GRE protocol header to obtain the first data packet, and send the first data packet to the TNGF through the GRE tunnel.
第一IP包头包括目的IP地址和源IP地址,该目的IP地址和源IP地址分别为TNGF的IP地址、UE的IP地址。第一GRE协议包头包括第一GRE关键字(GRE key)和第一协议类型(protocol type)字段。图7示出了GRE协议包头的一种示例图。如图7所示,GRE协议包头包括8个八位组(octet)。其中,GRE协议包头的octet 1包括检验位、关键字(key)位以及序列号位(sequence number);GRE协议包头的octet 2包括版本号(version);GRE协议包头的octet 3-4是协议类型字段;GRE协议包头的octet 5-8为GRE key。校验位用于表示GRE协议包头是否***了校验和(checksum)字段,如校验位取值为0,表示该GRE协议包头没有***校验和字段;校验位取值为1,则表示该GRE协议包头***了校验和字段。关键字位用于表示GRE协议包头是否***了GRE key,如关键字位取值为0,则表示该GRE协议包头没有***GRE key;关键字位取值为1,则表示该GRE协议包头***了GRE key。The first IP packet header includes a destination IP address and a source IP address, and the destination IP address and the source IP address are respectively the IP address of the TNGF and the IP address of the UE. The first GRE protocol header includes a first GRE key (GRE key) and a first protocol type (protocol type) field. Fig. 7 shows an example diagram of a GRE protocol packet header. As shown in FIG. 7 , the GRE protocol header includes 8 octets. Among them, octet 1 of the GRE protocol header includes a check bit, a keyword (key) bit, and a sequence number (sequence number); octet 2 of the GRE protocol header includes a version number (version); octet 3-4 of the GRE protocol header is the protocol Type field; octet 5-8 of the GRE protocol header is the GRE key. The check digit is used to indicate whether the checksum field is inserted into the GRE protocol header. If the check digit value is 0, it means that the GRE protocol header does not have a checksum field; if the check digit value is 1, Indicates that the checksum field is inserted into the header of the GRE protocol. The keyword bit is used to indicate whether a GRE key is inserted in the GRE protocol header. If the keyword bit is 0, it means that the GRE protocol header has no GRE key; if the keyword bit is 1, it means that the GRE protocol header is inserted. Got the GRE key.
第一GRE key可以是TNGF为传输控制面数据分配的关键字,或者所述第一GRE key包括PDU会话标识。第一协议类型字段可用于指示第一负荷是控制面数据。该第一GRE key和第一协议类型字段中的至少一个可用于标识第一负荷是控制面数据或者是用户面数据。The first GRE key may be a keyword allocated by TNGF for transmitting control plane data, or the first GRE key includes a PDU session identifier. The first protocol type field may be used to indicate that the first payload is control plane data. At least one of the first GRE key and the first protocol type field may be used to identify whether the first payload is control plane data or user plane data.
例如,第一负荷是控制面数据,第一GRE key是TNGF为传输控制面数据分配的关键字。具体的,UE可以按照GRE/IP的封装方式对第一负荷进行封装,并将GRE协议包头中的GRE key填写为TNGF为传输控制面数据分配的关键字,以指示该第一负荷为控制面数据。For example, the first payload is control plane data, and the first GRE key is a key assigned by TNGF for transmitting control plane data. Specifically, the UE can encapsulate the first payload according to the GRE/IP encapsulation method, and fill in the GRE key in the GRE protocol packet header as the keyword allocated by TNGF for the transmission control plane data, so as to indicate that the first payload is the control plane data.
或者,第一负荷是控制面数据,第一协议类型字段用于指示第一负荷是控制面数据。具体的,UE可以按照GRE/IP的封装方式对第一负荷进行封装,并使用GRE协议包头中的协议类型字段指示第一负荷是控制面数据。其中,协议类型字段可以是预先定义的,或者UE与TNGF预先协商的等,本申请实施例对此不作限定。Alternatively, the first payload is control plane data, and the first protocol type field is used to indicate that the first payload is control plane data. Specifically, the UE may encapsulate the first payload in a GRE/IP encapsulation manner, and use the protocol type field in the GRE protocol packet header to indicate that the first payload is control plane data. Wherein, the protocol type field may be pre-defined, or pre-negotiated between the UE and the TNGF, etc., which is not limited in this embodiment of the present application.
或者,第一负荷是控制面数据,第一GRE key是TNGF为传输控制面数据分配的关键字,且第一协议类型字段用于指示第一负荷是控制面数据。具体的,UE可以按照GRE/IP的封装方式对第一负荷进行封装,将GRE协议包头中的GRE key填写为TNGF为传输控制面数据分配的关键字,以及使用GRE协议包头中的协议类型字段指示第一负荷是控制面数据。Alternatively, the first load is control plane data, the first GRE key is a key allocated by TNGF for transmitting control plane data, and the first protocol type field is used to indicate that the first load is control plane data. Specifically, the UE can encapsulate the first payload according to the GRE/IP encapsulation method, fill in the GRE key in the GRE protocol header as the keyword allocated by TNGF for the transmission control plane data, and use the protocol type field in the GRE protocol header Indicates that the first payload is control plane data.
又例如,第一负荷是PDU会话的用户面数据,第一GRE key包括该PDU会话标识。具体的,UE可以按照GRE/IP的封装方式对第一负荷进行封装,并将GRE协议包头中的GRE key填写为PDU会话标识,以指示该第一负荷为该PDU会话的用户面数据。图8示出了GRE key的一种示例图。如图8所示,UE可以将GRE key的octet 6填写为PDU会话标识。另外,GRE key的octet 5包括QoS流标识(QoS flow ID,QFI),用于标识PDU会话中的QoS流;GRE key的octet 8包括反射式QoS标识(reflective QoS indicator,RQI),用于数据包的QoS控制。For another example, the first payload is user plane data of a PDU session, and the first GRE key includes the PDU session identifier. Specifically, the UE may encapsulate the first payload according to the GRE/IP encapsulation method, and fill in the GRE key in the GRE protocol header as the PDU session identifier, so as to indicate that the first payload is user plane data of the PDU session. Figure 8 shows an example diagram of a GRE key. As shown in Figure 8, the UE can fill in the octet 6 of the GRE key as the PDU session identifier. In addition, octet 5 of GRE key includes QoS flow ID (QoS flow ID, QFI), which is used to identify the QoS flow in the PDU session; octet 8 of GRE key includes reflective QoS indicator (reflective QoS indicator, RQI), which is used for data QoS control of packets.
前述提到,UE可通过GRE协议包头中的GRE key字段或协议类型字段来标识第一负荷是控制面数据或者是用户面数据。在一种可能的实现方式中,UE可以通过与TNGF协商,获取TNGF为传输控制面数据分配的关键字。例如,UE可以接收来自TNGF的第一 请求消息,该第一请求消息包括TNGF为传输控制面数据分配的关键字。图9示出了本申请实施例提供的获取用于传输控制面数据的关键字的方法的流程图。其中,图9中的步骤S901至S910、S913至S916分别与图3中的步骤S301至S310、S313至S316对应相同,不同之处在于:As mentioned above, the UE can identify whether the first payload is control plane data or user plane data through the GRE key field or the protocol type field in the GRE protocol header. In a possible implementation manner, the UE may negotiate with the TNGF to obtain the key allocated by the TNGF for transmitting control plane data. For example, the UE may receive a first request message from the TNGF, where the first request message includes a key allocated by the TNGF for transmitting control plane data. FIG. 9 shows a flow chart of a method for acquiring keywords used for transmitting control plane data provided by an embodiment of the present application. Wherein, steps S901 to S910, S913 to S916 in FIG. 9 are respectively the same as steps S301 to S310, S313 to S316 in FIG. 3, the difference is that:
S911:TNGF向UE发送第一请求消息。相应的,UE接收第一请求消息。S911: The TNGF sends a first request message to the UE. Correspondingly, the UE receives the first request message.
第一请求消息可以是扩展的鉴权请求消息或者5G通知消息。第一请求消息包括用于传输控制面数据的TNGF IP地址1、GRE key以及DSCP。TNGF接收到指示信息后,确定与UE之间不需要建立IPsec隧道。进一步,TNGF可以确定与UE之间建立GRE隧道。具体的,TNGF为UE分配用于传输控制面数据的TNGF IP地址1、GRE key以及DSCP,并将TNGF IP地址1、GRE key以及DSCP携带在扩展的鉴权请求消息(或5G通知消息)中发送给UE。UE接收到扩展的鉴权请求消息(或5G通知消息)后,存储TNGF IP地址1、GRE key以及DSCP,以便后续通过GRE隧道向TNGF发送控制面数据。The first request message may be an extended authentication request message or a 5G notification message. The first request message includes TNGF IP address 1, GRE key and DSCP for transmitting control plane data. After receiving the indication information, the TNGF determines that there is no need to establish an IPsec tunnel with the UE. Further, the TNGF may determine to establish a GRE tunnel with the UE. Specifically, TNGF allocates TNGF IP address 1, GRE key and DSCP for the UE to transmit control plane data, and carries TNGF IP address 1, GRE key and DSCP in the extended authentication request message (or 5G notification message) sent to the UE. After receiving the extended authentication request message (or 5G notification message), the UE stores TNGF IP address 1, GRE key and DSCP, so as to send control plane data to TNGF through the GRE tunnel.
可选的,第一请求消息中还可以包括用于传输用户面数据的TNGF IP地址2。例如,TNGF可以在注册流程中为UE分配用于传输用户面数据的TNGF IP地址2,如将TNGF IP地址2携带在第一请求消息中发送给UE,或者,TNGF也可以在PDU会话建立过程中为UE分配用于传输用户面数据的TNGF IP地址2,如前述步骤S405所示。Optionally, the first request message may also include the TNGF IP address 2 used to transmit user plane data. For example, TNGF can allocate TNGF IP address 2 for transmitting user plane data to UE during the registration process, such as carrying TNGF IP address 2 in the first request message and sending it to UE; or, TNGF can also establish PDU session TNGF IP address 2 for transmitting user plane data is allocated to the UE, as shown in the aforementioned step S405.
S912:UE向TNGF发送第一响应消息。相应的,TNGF接收第一响应消息。S912: The UE sends a first response message to the TNGF. Correspondingly, the TNGF receives the first response message.
第一响应消息可以是扩展的鉴权响应消息或者5G通知消息。例如,UE接收到第一请求消息后,可以向TNGF发送第一响应消息。The first response message may be an extended authentication response message or a 5G notification message. For example, after receiving the first request message, the UE may send the first response message to the TNGF.
S917:TNGF向UE发送第三数据包。相应的,UE接收第三数据包。S917: The TNGF sends the third data packet to the UE. Correspondingly, the UE receives the third data packet.
TNGF接收到N2连接建立响应消息后,对其解封装得到注册完成的NAS消息,按照GRE/IP封装方式对该注册完成的NAS消息进行封装,得到第三数据包,并将第三数据包发送给UE。具体的,TNGF在注册完成的NAS消息外封装GRE协议包头,将GRE协议包头中的GRE key填写为TNGF为传输控制面数据分配的关键字(和/或,使用GRE协议包头的协议类型字段指示该GRE协议包头包括控制面数据);以及在GRE协议包头外封装IP包头,并将IP包头中的源IP地址和目的IP地址分别填写为TNGF IP地址1、UE的IP地址,得到第三数据包。After receiving the N2 connection establishment response message, TNGF decapsulates it to obtain the registered NAS message, encapsulates the registered NAS message according to the GRE/IP encapsulation method, obtains the third data packet, and sends the third data packet to UE. Specifically, TNGF encapsulates the GRE protocol header outside the registered NAS message, and fills in the GRE key in the GRE protocol header as the keyword allocated by TNGF for the transmission control plane data (and/or, using the protocol type field of the GRE protocol header to indicate The GRE protocol header includes control plane data); and encapsulate the IP header outside the GRE protocol header, and fill in the source IP address and the destination IP address in the IP header as TNGF IP address 1 and the IP address of the UE respectively, to obtain the third data Bag.
前述介绍了UE通过GRE隧道向TNGF发送第一数据包。TNGF接收到第一数据包后,可以执行步骤S602至步骤S604所示的内容。The foregoing describes that the UE sends the first data packet to the TNGF through the GRE tunnel. After receiving the first data packet, the TNGF may execute the contents shown in step S602 to step S604.
S602:TNGF根据第一GRE key和第一协议类型字段中的至少一个确定第一负荷是控制面数据还是用户面数据。若TNGF确定第一负荷是用户面数据,则TNGF执行步骤S603所示的内容;若TNGF确定第一负荷是控制面数据,则TNGF执行步骤S604所示的内容。S602: The TNGF determines whether the first payload is control plane data or user plane data according to at least one of the first GRE key and the first protocol type field. If the TNGF determines that the first payload is user plane data, the TNGF executes the content shown in step S603; if the TNGF determines that the first payload is control plane data, the TNGF executes the content shown in step S604.
TNGF接收到第一数据包后,对其解析,得到第一数据包中的第一GRE key、第一协议类型字段以及第一负荷。进一步,TNGF可以根据第一GRE key和第一协议类型字段中的至少一个判断第一负荷是控制面数据还是用户面数据。例如,TNGF可以通过将第一GRE key与前述步骤S911中获取的GRE key进行对比,来判断第一负荷是否为控制面数据。After receiving the first data packet, the TNGF parses it to obtain the first GRE key, the first protocol type field and the first load in the first data packet. Further, the TNGF may determine whether the first payload is control plane data or user plane data according to at least one of the first GRE key and the first protocol type field. For example, the TNGF can determine whether the first load is control plane data by comparing the first GRE key with the GRE key acquired in the aforementioned step S911.
例如,第一GRE key是前述步骤S911中获取的GRE key,则TNGF可以确定第一负荷是控制面数据;或者,第一协议类型字段用于指示第一负荷是控制面数据,则TNGF可以确定第一负荷是控制面数据;或者,第一GRE key是前述步骤S911中获取的GRE key,且第一协议类型字段用于指示第一负荷是控制面数据,则TNGF可以确定第一负荷是控制 面数据。又例如,第一GRE key包括PDU会话标识,则TNGF可以确定第一负荷是该PDU会话的用户面数据。For example, if the first GRE key is the GRE key obtained in the aforementioned step S911, then TNGF can determine that the first load is control plane data; or, the first protocol type field is used to indicate that the first load is control plane data, then TNGF can determine The first load is control plane data; or, the first GRE key is the GRE key obtained in the aforementioned step S911, and the first protocol type field is used to indicate that the first load is control plane data, then the TNGF can determine that the first load is control plane data. surface data. For another example, if the first GRE key includes a PDU session identifier, then the TNGF may determine that the first load is user plane data of the PDU session.
在一种可能的实现方式中,第一IP包头包括UE的IP地址,TNGF可以根据UE的IP地址、以及UE的IP地址与UE的标识信息之间的对应关系,确定UE的标识信息,以及根据UE的标识信息确定UE的上下文信息,具体实现过程可参考前述步骤S202对应的描述,这里不再赘述。In a possible implementation manner, the first IP packet header includes the IP address of the UE, and the TNGF can determine the identification information of the UE according to the IP address of the UE and the correspondence between the IP address of the UE and the identification information of the UE, and The context information of the UE is determined according to the identification information of the UE. For a specific implementation process, reference may be made to the description corresponding to the aforementioned step S202, which will not be repeated here.
S603:TNGF向UPF发送第一负荷。相应的,UPF接收第一负荷。S603: The TNGF sends the first payload to the UPF. Correspondingly, the UPF receives the first load.
在TNGF确定第一负荷是用户面数据之后,TNGF可以通过N3连接将第一负荷发送给UPF。After the TNGF determines that the first payload is user plane data, the TNGF may send the first payload to the UPF through the N3 connection.
S604:TNGF向AMF发送第一负荷。相应的,AMF接收第一负荷。S604: The TNGF sends the first payload to the AMF. Correspondingly, the AMF receives the first load.
在TNGF确定第一负荷是用户面数据之后,TNGF可以通过N2连接将第一负荷发送给AMF。After the TNGF determines that the first payload is user plane data, the TNGF may send the first payload to the AMF through the N2 connection.
上述步骤S601至步骤S604介绍了上行方向上,TNGF区分上行信息是控制面数据或者是用户面数据的具体实现流程。接下来结合步骤S605a至步骤S608介绍下行方向上,UE区分下行信息是控制面数据或者是用户面数据的具体实现流程。Steps S601 to S604 described above describe the specific implementation process of TNGF distinguishing whether uplink information is control plane data or user plane data in the uplink direction. Next, in combination with steps S605a to S608, the specific implementation process of UE distinguishing whether downlink information is control plane data or user plane data in the downlink direction is introduced.
S605a:UPF向TNGF发送第二负荷。或者,S605b:AMF向TNGF发送第二负荷。相应的,TNGF接收第二负荷。S605a: The UPF sends the second payload to the TNGF. Or, S605b: The AMF sends the second payload to the TNGF. Correspondingly, the TNGF receives the second load.
其中,步骤S605a和步骤S605b的具体实现过程可参考前述步骤S205a、S205b对应的描述,这里不再赘述。Wherein, for the specific implementation process of step S605a and step S605b, reference may be made to the corresponding descriptions of the foregoing steps S205a and S205b, which will not be repeated here.
S606:TNGF生成第二数据包。S606: The TNGF generates a second data packet.
第二数据包包括第二GRE协议包头以及第二负荷。例如,第二负荷外封装有第二GRE协议包头,第二GRE协议包头外封装有第二IP包头。具体的,TNGF可以在第二负荷封外装第二GRE协议包头,以及在第二GRE协议包头外封装第二IP包头,得到第二数据包,并通过GRE隧道向UE发送该第二数据包。The second data packet includes a second GRE protocol header and a second payload. For example, the second payload is encapsulated with a second GRE protocol header, and the second GRE protocol header is encapsulated with a second IP header. Specifically, the TNGF may encapsulate the second GRE protocol header outside the second payload, and encapsulate the second IP header outside the second GRE protocol header to obtain the second data packet, and send the second data packet to the UE through the GRE tunnel.
第二IP包头包括目的IP地址和源IP地址,该目的IP地址和源IP地址分别为UE的IP地址、TNGF的IP地址。第二GRE协议包头包括第二GRE key和第二协议类型字段。第二GRE key可以是TNGF为传输控制面数据分配的关键字,或者所述第二GRE key包括PDU会话标识。第二协议类型字段可用于指示第二负荷是控制面数据。该第二GRE key和第二协议类型字段中的至少一个可用于标识第二负荷是控制面数据或者是用户面数据。The second IP packet header includes a destination IP address and a source IP address, and the destination IP address and the source IP address are respectively the IP address of the UE and the IP address of the TNGF. The second GRE protocol packet header includes a second GRE key and a second protocol type field. The second GRE key may be a keyword allocated by TNGF for transmitting control plane data, or the second GRE key includes a PDU session identifier. The second protocol type field may be used to indicate that the second payload is control plane data. At least one of the second GRE key and the second protocol type field may be used to identify whether the second payload is control plane data or user plane data.
例如,当第二负荷是控制面数据时,第二GRE key是TNGF为传输控制面数据分配的关键字。具体的,TNGF可以按照GRE/IP的封装方式对第二负荷进行封装,并将GRE协议包头中的GRE key填写为TNGF为传输控制面数据分配的关键字,以指示该第二负荷为控制面数据。For example, when the second payload is control plane data, the second GRE key is a key allocated by TNGF for transmitting control plane data. Specifically, TNGF can encapsulate the second payload according to the GRE/IP encapsulation method, and fill in the GRE key in the GRE protocol header as the keyword allocated by TNGF for the transmission control plane data, so as to indicate that the second payload is the control plane data.
或者,当第二负荷是控制面数据时,第二协议类型字段用于指示第二负荷是控制面数据。具体的,TNGF可以按照GRE/IP的封装方式对第二负荷进行封装,并使用GRE协议包头中的协议类型字段指示第二负荷是控制面数据。Or, when the second payload is control plane data, the second protocol type field is used to indicate that the second payload is control plane data. Specifically, the TNGF may encapsulate the second payload in a GRE/IP encapsulation manner, and use the protocol type field in the GRE protocol packet header to indicate that the second payload is control plane data.
或者,当第二负荷是控制面数据时,第二GRE key是TNGF为传输控制面数据分配的关键字,且第二协议类型字段用于指示第二负荷是控制面数据。具体的,TNGF可以按照GRE/IP的封装方式对第二负荷进行封装,将GRE协议包头中的GRE key填写为TNGF为传输控制面数据分配的关键字,以及使用GRE协议包头中的协议类型字段指示第二负荷 是控制面数据。Or, when the second load is control plane data, the second GRE key is a key allocated by TNGF for transmitting control plane data, and the second protocol type field is used to indicate that the second load is control plane data. Specifically, TNGF can encapsulate the second payload according to the GRE/IP encapsulation method, fill in the GRE key in the GRE protocol header as the keyword allocated by TNGF for the transmission control plane data, and use the protocol type field in the GRE protocol header Indicates that the second payload is control plane data.
又例如,当第二负荷是PDU会话的用户面数据时,第二GRE key包括该PDU会话标识。具体的,TNGF可以按照GRE/IP的封装方式对第二负荷进行封装,并将GRE协议包头中的GRE key填写为PDU会话标识,以指示该第二负荷为该PDU会话的用户面数据。For another example, when the second payload is user plane data of a PDU session, the second GRE key includes the PDU session identifier. Specifically, the TNGF can encapsulate the second payload according to the GRE/IP encapsulation method, and fill in the GRE key in the GRE protocol header as the PDU session identifier, so as to indicate that the second payload is the user plane data of the PDU session.
S607:TNGF向UE发送第二数据包。相应的,UE接收第二数据包。S607: The TNGF sends the second data packet to the UE. Correspondingly, the UE receives the second data packet.
例如,TNGF通过GRE隧道向UE发送第二数据包。For example, the TNGF sends the second data packet to the UE through the GRE tunnel.
S608:UE根据第二GRE key和第二协议类型字段中的至少一个确定第二负荷是控制面数据或者是用户面数据。S608: The UE determines, according to at least one of the second GRE key and the second protocol type field, whether the second payload is control plane data or user plane data.
UE接收到第二数据包后,对其解析,得到第二数据包中的第二GRE key、第二协议类型字段以及第二负荷。进一步,UE可以根据第二GRE key和第二协议类型字段中的至少一个判断第二负荷是控制面数据还是用户面数据。例如,UE可以通过将第二GRE key与前述步骤S911中获取的GRE key,来判断第一负荷是否为控制面数据。After receiving the second data packet, the UE parses it to obtain the second GRE key, the second protocol type field and the second payload in the second data packet. Further, the UE may determine whether the second payload is control plane data or user plane data according to at least one of the second GRE key and the second protocol type field. For example, the UE may determine whether the first load is control plane data by comparing the second GRE key with the GRE key obtained in the aforementioned step S911.
例如,第二GRE key是前述步骤S911中获取的GRE key,则UE可以确定第二负荷是控制面数据;或者,第二协议类型字段用于指示第二负荷是控制面数据,则UE可以确定第二负荷是控制面数据;或者,第二GRE key是前述步骤S911中获取的GRE key,且第二协议类型字段用于指示第二负荷是控制面数据,则UE可以确定第二负荷是控制面数据。又例如,第二GRE key包括PDU会话标识,则UE可以确定第二负荷是该PDU会话的用户面数据。For example, if the second GRE key is the GRE key obtained in the aforementioned step S911, the UE may determine that the second load is control plane data; or, the second protocol type field is used to indicate that the second load is control plane data, then the UE may determine The second load is control plane data; or, the second GRE key is the GRE key obtained in the aforementioned step S911, and the second protocol type field is used to indicate that the second load is control plane data, then the UE may determine that the second load is control plane data. surface data. For another example, if the second GRE key includes the PDU session identifier, the UE may determine that the second payload is user plane data of the PDU session.
实施例四Embodiment four
图10示出了本申请实施例提供的通信方法的流程示意图。如图10所示,本实施例分别从上行方向和下行方向对本申请实施例提供的通信方法进行介绍。FIG. 10 shows a schematic flowchart of a communication method provided by an embodiment of the present application. As shown in FIG. 10 , this embodiment introduces the communication method provided by the embodiment of the present application from the uplink direction and the downlink direction respectively.
为了便于表述,下文中将负荷封装在GRE协议包头中,该GRE协议包头封装在IP包头中的封装方式记为GRE/IP;将负荷封装在TCP包头中,TCP包头封装在IP包头中的封装方式记为TCP/IP;以及将负荷封装在GRE协议包头中,GRE协议包头封装在TCP包头中,TCP包头封装在IP包头中的封装方式记为GRE/TCP/IP。For the convenience of expression, the payload is encapsulated in the GRE protocol header, and the encapsulation method in which the GRE protocol header is encapsulated in the IP header is denoted as GRE/IP; the payload is encapsulated in the TCP header, and the TCP header is encapsulated in the IP header. The method is recorded as TCP/IP; and the encapsulation method of encapsulating the payload in the GRE protocol header, the GRE protocol header in the TCP header, and the TCP header in the IP header is recorded as GRE/TCP/IP.
S1001:UE向TNGF发送第一负荷。相应的,TNGF接收第一负荷。S1001: The UE sends a first payload to the TNGF. Correspondingly, the TNGF receives the first load.
第一负荷外封装有第一TCP包头,第一TCP包头外封装有第一IP地址。例如,UE可以在第一负荷外封装第一TCP包头,以及在该第一TCP包头外封装第一IP包头,得到封装后的第一负荷,并通过PCT连接向TNGF发送该封装后的第一负荷。其中,第一TCP包头包括源端口号和目的端口号,该源端口号和目的端口号分别为UE的TCP端口号、TNGF的TCP端口号。该UE的TCP端口号是UE为传输控制面数据分配的端口号。该TNGF的TCP端口号是TNGF为传输控制面数据分配的端口号。The first payload is encapsulated with a first TCP header, and the first TCP header is encapsulated with a first IP address. For example, the UE may encapsulate the first TCP header outside the first payload, and encapsulate the first IP header outside the first TCP header to obtain the encapsulated first payload, and send the encapsulated first payload to TNGF through the PCT connection. load. Wherein, the first TCP packet header includes a source port number and a destination port number, and the source port number and the destination port number are respectively the TCP port number of the UE and the TCP port number of the TNGF. The TCP port number of the UE is a port number allocated by the UE for transmitting control plane data. The TCP port number of the TNGF is a port number allocated by the TNGF for transmitting control plane data.
或者,第一负荷外封装有第一GRE协议包头,该第一GRE协议包头外封装有第一IP地址。例如,UE可以在第一负荷外封装第一GRE协议包头,以及在该第一GRE协议包头外封装第一IP包头,得到封装后的第一负荷,并通过GRE隧道向TNGF发送该封装后的第一负荷。其中,第一GRE协议包头中的GRE关键字包括PDU会话标识。Alternatively, the first payload is encapsulated with a first GRE protocol header, and the first GRE protocol header is encapsulated with a first IP address. For example, the UE may encapsulate the first GRE protocol header outside the first payload, and encapsulate the first IP header outside the first GRE protocol header, obtain the encapsulated first payload, and send the encapsulated first payload to the TNGF through the GRE tunnel. first load. Wherein, the GRE keyword in the header of the first GRE protocol includes the PDU session identifier.
第一负荷的封装方式包括第一负荷封装在第一TCP包头中,或者包括第一负荷封装在第一GRE协议包头中。该第一负荷的封装方式可用于标识第一负荷是控制面数据或者是用户面数据。例如,当第一负荷是控制面数据时,第一负荷外封装有第一TCP包头。具体 的,UE可以按照TCP\IP的封装方式对第一负荷进行封装,将TCP包头中的源端口号和目的端口号分别填写为UE的TCP端口号、TNGF的TCP端口号,以标识该第一负荷是控制面数据。又例如,当第一负荷是用户面数据时,第一负荷外封装有第一GRE协议包头。具体的,UE可以按照GRE/IP封装方式对第一负荷进行封装,将GRE协议包头中的GRE key填写为PDU会话标识,以标识该第一负荷是该PDU会话的用户面数据。The encapsulation manner of the first payload includes encapsulating the first payload in the first TCP header, or encapsulating the first payload in the first GRE protocol header. The encapsulation manner of the first payload may be used to identify whether the first payload is control plane data or user plane data. For example, when the first payload is control plane data, the first payload is encapsulated with a first TCP header. Specifically, the UE can encapsulate the first payload according to the TCP\IP encapsulation method, and fill in the source port number and the destination port number in the TCP packet header as the TCP port number of the UE and the TCP port number of the TNGF respectively, so as to identify the first payload. One load is control plane data. For another example, when the first payload is user plane data, the first payload is encapsulated with a first GRE protocol header. Specifically, the UE may encapsulate the first payload according to the GRE/IP encapsulation method, and fill in the GRE key in the GRE protocol header as the PDU session identifier, so as to identify that the first payload is the user plane data of the PDU session.
在一种可能的实现方式中,UE与TNGF之间可以建立GRE隧道,该GRE隧道用于传输用户面数据。例如,在步骤1001中,第一负荷是PDU会话的用户面数据,UE可以通过GRE隧道向TNGF发送第一数据包。其中,第一负荷外封装有第一GRE协议包头,第一GRE协议包头的GRE key包括PDU会话标识。In a possible implementation manner, a GRE tunnel may be established between the UE and the TNGF, and the GRE tunnel is used to transmit user plane data. For example, in step 1001, the first payload is user plane data of the PDU session, and the UE may send the first data packet to the TNGF through the GRE tunnel. Wherein, the first payload is encapsulated with a first GRE protocol header, and the GRE key of the first GRE protocol header includes a PDU session identifier.
在另一种可能的实现方式中,UE与TNGF之间可以建立TCP连接,该TCP连接用于传输控制面数据。例如,在步骤1001中,第一负荷是控制面数据,UE可以通过TCP连接向TNGF发送第一数据包。其中,UE与TNGF之间可以通过如下两种方式建立TCP连接。In another possible implementation manner, a TCP connection may be established between the UE and the TNGF, and the TCP connection is used to transmit control plane data. For example, in step 1001, the first payload is control plane data, and the UE may send the first data packet to the TNGF through a TCP connection. Wherein, the TCP connection can be established between the UE and the TNGF in the following two ways.
方式1,UE与TNGF之间建立端到端的TCP连接,记为TCP连接1。In mode 1, an end-to-end TCP connection is established between the UE and the TNGF, which is denoted as TCP connection 1.
其中,在该TCP连接1上传输的数据包中的IP包头包括的IP地址是UE的IP地址和TNGF的IP地址。例如,在步骤1001中,UE可以通过TCP连接1向TNGF发送第一数据包,第一数据包的第一IP包头的源IP地址和目的IP地址分别是UE的IP地址、TNGF的IP地址。在方式1中,UE与TNGF之间的数据包在接入节点处进行了透传。Wherein, the IP address included in the IP header of the data packet transmitted on the TCP connection 1 is the IP address of the UE and the IP address of the TNGF. For example, in step 1001, UE may send a first data packet to TNGF through TCP connection 1, and the source IP address and destination IP address of the first IP header of the first data packet are the IP address of UE and the IP address of TNGF respectively. In mode 1, the data packets between the UE and the TNGF are transparently transmitted at the access node.
方式2,UE先与接入节点之间建立TCP连接,记为TCP连接2;接入节点再与TNGF之间建立TCP连接,记为TCP连接3。In mode 2, the UE first establishes a TCP connection with the access node, denoted as TCP connection 2; the access node then establishes a TCP connection with the TNGF, denoted as TCP connection 3.
其中,在TCP连接2上传输的数据包中的IP包头包括的IP地址是UE的IP地址和接入节点的IP地址。在TCP连接3上传输的数据包中的IP包头包括的IP地址是接入节点的IP地址和TNGF的IP地址。例如,在步骤1001中,UE可以通过TCP连接2和TCP连接3向TNGF发送第一负荷。具体的,UE在第一负荷外封装TCP包头,在TCP包头外封装IP包头,以及将IP包头的源IP地址和目的IP地址分别填写为UE的IP地址、接入节点的IP地址,得到封装后的第一负荷1,并通过TCP连接2将封装后的第一负荷1发送给接入节点;接入节点接收到封装后的第一负荷1,对其解析得到第一负荷;接入节点在第一负荷外封装GRE协议包头,将GRE协议包头封装在TCP包头中,在TCP包头外封装IP包头,以及将IP包头的源IP地址和目的IP地址分别填写为接入节点的IP地址、TNGF的IP地址,得到封装后的第一负荷2,并通过TCP连接3将封装后的第一负荷2发送给TNGF。其中,GRE协议包头的GRE key是接入节点为UE分配的关键字。Wherein, the IP address included in the IP header of the data packet transmitted on the TCP connection 2 is the IP address of the UE and the IP address of the access node. The IP address included in the IP header of the data packet transmitted on the TCP connection 3 is the IP address of the access node and the IP address of the TNGF. For example, in step 1001, the UE may send the first payload to the TNGF through TCP connection 2 and TCP connection 3 . Specifically, the UE encapsulates the TCP header outside the first payload, encapsulates the IP header outside the TCP header, and fills in the source IP address and the destination IP address of the IP header as the IP address of the UE and the IP address of the access node respectively, to obtain the encapsulated After receiving the first payload 1, and sending the encapsulated first payload 1 to the access node through the TCP connection 2; the access node receives the encapsulated first payload 1, and analyzes it to obtain the first payload; the access node Encapsulate the GRE protocol packet header outside the first load, encapsulate the GRE protocol packet header in the TCP packet header, encapsulate the IP packet header outside the TCP packet header, and fill in the source IP address and the destination IP address of the IP packet header as the IP address of the access node, respectively. The IP address of the TNGF is used to obtain the encapsulated first payload 2 , and the encapsulated first payload 2 is sent to the TNGF through the TCP connection 3 . Wherein, the GRE key in the header of the GRE protocol is a key assigned by the access node to the UE.
当UE与TNGF之间采用上述方式2建立TCP连接时,在上行方向上,UE先对控制面数据按照TCP/IP的封装方式进行封装,并将封装后的控制面数据通过TCP连接2发送给接入节点;接入节点接收到控制面数据后,对控制面数据按照GRE/TCP/IP的封装方式进行封装,并将封装后的控制面数据通过TCP连接3发送给TNGF。在下行方向上,TNGF先对控制面数据按照GRE/TCP/IP的封装方式进行封装,并将封装后的控制面数据通过TCP连接3发送给接入节点;接入节点接收到控制面数据后,对控制面数据按照TCP/IP的封装方式进行封装,并将封装后的控制面数据通过TCP连接2发送给UE,其具体实现过程与上行方向类似,这里不再赘述。When the above method 2 is used to establish a TCP connection between the UE and the TNGF, in the uplink direction, the UE first encapsulates the control plane data according to the TCP/IP encapsulation method, and sends the encapsulated control plane data to the Access node: After receiving the control plane data, the access node encapsulates the control plane data according to the encapsulation method of GRE/TCP/IP, and sends the encapsulated control plane data to TNGF through TCP connection 3 . In the downlink direction, TNGF first encapsulates the control plane data according to the GRE/TCP/IP encapsulation method, and sends the encapsulated control plane data to the access node through TCP connection 3; after the access node receives the control plane data, The control plane data is encapsulated according to the TCP/IP encapsulation method, and the encapsulated control plane data is sent to the UE through the TCP connection 2. The specific implementation process is similar to that in the uplink direction, and will not be repeated here.
在UE与TNGF之间采用上述方式2建立TCP连接时,第一负荷外封装有第一TCP包头可以为:第一负荷外封装有第三GRE协议包头,第三GRE协议包头外封装有第一TCP 包头。即,接入节点在第一负荷外封装第三GRE协议包头,在第三GRE协议包头外封装第一TCP包头,并在第一TCP包头外封装第一IP包头。其中,第三GRE协议包头中的GRE key是接入节点为UE分配的关键字,记为第三GRE key。When the above method 2 is used to establish a TCP connection between the UE and the TNGF, the first payload is encapsulated with the first TCP header, which may be: the first payload is encapsulated with the third GRE protocol header, and the third GRE protocol header is encapsulated with the first TCP header. That is, the access node encapsulates the third GRE protocol header outside the first payload, encapsulates the first TCP header outside the third GRE protocol header, and encapsulates the first IP header outside the first TCP header. Wherein, the GRE key in the third GRE protocol packet header is a keyword allocated by the access node to the UE, and is recorded as the third GRE key.
在一种可能的实现方式中,UE可以通过与TNGF协商,获取用于传输控制面数据分配的端口号。例如,UE可以接收来自TNGF的第一请求消息,该第一请求消息包括TNGF为传输控制面数据分配的端口号。图11示出了本申请实施例提供的获取用于传输控制面数据的端口号的方法的流程图。其中,图11中的步骤S1101至S1110、S1113、S1116、S1117分别与图3中的步骤S301至S310、S313、S315、S316对应相同,不同之处在于:In a possible implementation manner, the UE may negotiate with the TNGF to obtain a port number allocated for transmitting control plane data. For example, the UE may receive a first request message from the TNGF, where the first request message includes a port number allocated by the TNGF for transmitting control plane data. FIG. 11 shows a flowchart of a method for acquiring a port number used for transmitting control plane data provided by an embodiment of the present application. Wherein, steps S1101 to S1110, S1113, S1116, and S1117 in FIG. 11 are respectively the same as steps S301 to S310, S313, S315, and S316 in FIG. 3 , the difference is that:
S1111:TNGF向UE发送第一请求消息。相应的,UE接收第一请求消息。S1111: The TNGF sends a first request message to the UE. Correspondingly, the UE receives the first request message.
第一请求消息可以是扩展的鉴权请求消息或者5G通知消息。第一请求消息包括用于传输控制面数据的TNGF IP地址1以及TNGF的TCP端口号。TNGF接收到指示信息后,确定与UE之间不需要建立IPsec隧道。进一步,TNGF可以确定与UE之间建立TCP连接。具体的,TNGF为UE分配用于传输控制面数据的TNGF IP地址1以及TNGF的TCP端口号,并将TNGF IP地址1以及TNGF的TCP端口号携带在扩展的鉴权请求消息(或5G通知消息)中发送给UE。UE接收到扩展的鉴权请求消息(或5G通知消息)后,存储TNGF IP地址1以及TNGF的TCP端口号,以便后续通过TCP连接向TNGF发送控制面数据。The first request message may be an extended authentication request message or a 5G notification message. The first request message includes the TNGF IP address 1 for transmitting control plane data and the TCP port number of the TNGF. After receiving the indication information, the TNGF determines that there is no need to establish an IPsec tunnel with the UE. Further, the TNGF may determine to establish a TCP connection with the UE. Specifically, the TNGF allocates the TNGF IP address 1 and the TCP port number of the TNGF for the UE to transmit control plane data, and carries the TNGF IP address 1 and the TCP port number of the TNGF in the extended authentication request message (or 5G notification message ) to the UE. After receiving the extended authentication request message (or 5G notification message), the UE stores the TNGF IP address 1 and the TCP port number of the TNGF, so as to send control plane data to the TNGF through the TCP connection subsequently.
可选的,第一请求消息中还可以包括用于传输用户面数据的TNGF IP地址2。例如,TNGF可以在注册流程中为UE分配用于传输用户面数据的TNGF IP地址2,如将TNGF IP地址2携带在第一请求消息中发送给UE,或者,TNGF也可以在PDU会话建立过程中为UE分配用于传输用户面数据的TNGF IP地址2,如前述步骤S405所示。Optionally, the first request message may also include the TNGF IP address 2 used to transmit user plane data. For example, TNGF can allocate TNGF IP address 2 for transmitting user plane data to UE during the registration process, such as carrying TNGF IP address 2 in the first request message and sending it to UE; or, TNGF can also establish PDU session TNGF IP address 2 for transmitting user plane data is allocated to the UE, as shown in the aforementioned step S405.
S1112:UE向TNGF发送第一响应消息。相应的,TNGF接收第一响应消息。S1112: The UE sends a first response message to the TNGF. Correspondingly, the TNGF receives the first response message.
第一响应消息可以是扩展的鉴权响应消息或者5G通知消息。例如,UE接收到第一请求消息后,可以向TNGF发送第一响应消息。可选的,第一响应消息可包括UE的TCP端口号。The first response message may be an extended authentication response message or a 5G notification message. For example, after receiving the first request message, the UE may send the first response message to the TNGF. Optionally, the first response message may include the TCP port number of the UE.
S1114:接入节点向TNGF发送第二消息。相应的,TNGF接收第二消息。S1114: The access node sends a second message to the TNGF. Correspondingly, the TNGF receives the second message.
其中,第二消息包括UE的IP地址与UE的标识信息之间的对应关系,或者包括第三GRE key与UE的标识信息之间的对应关系,或者包括UE的IP地址与UE的标识信息之间的对应关系以及第三GRE key与UE的标识信息之间的对应关系。该第二消息可以为AAA消息。例如,接入节点可以为UE分配GRE key,记为第三GRE key,并将第三GRE key与UE的标识信息之间的对应关系携带在AAA消息中发送给TNGF。TNGF接收到第二消息后,存储第三GRE key与UE的标识信息之间的对应关系,这样,当TNGF后续通过TCP连接3接收到上行信息(控制面数据)后,可以根据第三GRE key与UE的标识信息之间的对应关系确定发送该上行信息的UE的标识信息。表2示出了TNGF维护的GRE key与UE的标识信息之间的对应关系的一种示例。如表2所示,TNGF与三个UE建立连接,其中,GRE key 1对应的UE的标识信息为标识信息1,GRE key 2对应的UE的标识信息为标识信息2,GRE key 3对应的UE的标识信息为标识信息3。可以理解的是,表2作为一种示例并不对TNGF维护的GRE key与UE的标识信息之间的对应关系的具体实现进行限定。Wherein, the second message includes the correspondence between the IP address of the UE and the identification information of the UE, or the correspondence between the third GRE key and the identification information of the UE, or the correspondence between the IP address of the UE and the identification information of the UE and the corresponding relationship between the third GRE key and the identification information of the UE. The second message may be an AAA message. For example, the access node may assign a GRE key to the UE, record it as the third GRE key, and send the corresponding relationship between the third GRE key and the identification information of the UE to the TNGF in the AAA message. After the TNGF receives the second message, it stores the correspondence between the third GRE key and the identification information of the UE. In this way, when the TNGF subsequently receives the uplink information (control plane data) through the TCP connection 3, it can use the third GRE key The corresponding relationship with the identification information of the UE determines the identification information of the UE that sends the uplink information. Table 2 shows an example of the corresponding relationship between the GRE key maintained by the TNGF and the identification information of the UE. As shown in Table 2, TNGF establishes connections with three UEs. Among them, the identification information of the UE corresponding to GRE key 1 is identification information 1, the identification information of the UE corresponding to GRE key 2 is identification information 2, and the identification information of the UE corresponding to GRE key 3 is The identification information of is identification information 3. It can be understood that Table 2 is used as an example and does not limit the specific implementation of the corresponding relationship between the GRE key maintained by the TNGF and the identification information of the UE.
表2Table 2
GRE keyGRE keys UE的标识信息UE's identification information
GRE key 1GRE key 1 标识信息1 Identification information 1
GRE key2GRE key2 标识信息2Identification information 2
GRE key 3 GRE key 3 标识信息3 Identification information 3
需要说明的是,上述步骤S1114为可选步骤,图11中用虚线表示。例如,TNGF还可以通过其它方式获取GRE key与UE的标识信息之间的对应关系,本申请实施例并不限定于此。另外,接入节点向TNGF上报UE的IP地址与UE的标识信息之间的对应关系可参考前述步骤S314对应的内容,这里不再赘述。It should be noted that the above step S1114 is an optional step, which is indicated by a dotted line in FIG. 11 . For example, the TNGF may also obtain the correspondence between the GRE key and the identification information of the UE in other ways, which is not limited in this embodiment of the present application. In addition, for the correspondence between the IP address of the UE and the identification information of the UE reported by the access node to the TNGF, reference may be made to the content corresponding to the aforementioned step S314, which will not be repeated here.
S1115:UE与TNGF之间建立TCP连接。S1115: Establish a TCP connection between the UE and the TNGF.
UE发起到TNGF的TCP连接,UE与TNGF之间建立TCP连接,该TCP连接用于传输控制面数据。其中,UE与TNGF之间可以通过前述两者方式建立TCP连接,这里不再赘述。The UE initiates a TCP connection to the TNGF, and a TCP connection is established between the UE and the TNGF, and the TCP connection is used to transmit control plane data. Wherein, the TCP connection can be established between the UE and the TNGF through the aforementioned two methods, which will not be repeated here.
S1118:UE向TNGF发送第三负荷。相应的,TNGF接收第三负荷。S1118: The UE sends the third payload to the TNGF. Correspondingly, the TNGF receives the third load.
在第三负荷是用户面数据时,UE可以通过GRE隧道向TNGF发送该第三负荷,具体实现过程请参考前述步骤S1001的相关描述,这里不再赘述。在第三负荷是控制面数据时,UE可以通过TCP连接1(或TCP连接2和TCP连接3)向TNGF发送该第三负荷,具体实现过程请参考前述步骤S1001的相关描述,这里不再赘述。When the third payload is user plane data, the UE may send the third payload to the TNGF through the GRE tunnel. For the specific implementation process, please refer to the relevant description of the aforementioned step S1001 , which will not be repeated here. When the third load is control plane data, the UE may send the third load to the TNGF through TCP connection 1 (or TCP connection 2 and TCP connection 3). For the specific implementation process, please refer to the relevant description of the aforementioned step S1001, which will not be repeated here. .
在一种可能的实现方式中,当第三负荷是控制面数据时,第三封装外封装有TCP包头欧,该TCP包头的源端口号和目的端口号分别为UE的TCP端口号、TNGF的TCP端口号。TNGF接收到封装后的第三负荷后,对其解析,得到UE的TCP端口号并存储,以便后续通过TCP连接向UE发送控制面数据。In a possible implementation manner, when the third payload is control plane data, the third package is encapsulated with a TCP header, and the source port number and destination port number of the TCP header are respectively the TCP port number of the UE and the TNGF port number. TCP port number. After receiving the encapsulated third payload, the TNGF parses it, obtains the TCP port number of the UE and stores it, so as to send control plane data to the UE through the TCP connection later.
前述介绍了UE向TNGF发送第一负荷。TNGF接收到第一负荷后,可以执行步骤S1102至步骤S1104所示的内容。The foregoing describes that the UE sends the first payload to the TNGF. After receiving the first load, the TNGF may execute the contents shown in step S1102 to step S1104.
S1002:TNGF根据第一负荷的封装方式确定第一负荷是控制面数据还是用户面数据。若TNGF确定第一负荷是用户面数据,则TNGF执行步骤S1003所示的内容;若TNGF确定第一负荷是控制面数据,则TNGF执行步骤S1004所示的内容。S1002: The TNGF determines whether the first payload is control plane data or user plane data according to the encapsulation manner of the first payload. If the TNGF determines that the first payload is user plane data, then the TNGF executes the content shown in step S1003; if the TNGF determines that the first payload is control plane data, then the TNGF executes the content shown in step S1004.
TNGF接收到第一数据包后,对其解析,得到第一负荷的封装方式。进一步,TNGF可以根据第一负荷的封装方式判断第一负荷是控制面数据还是用户面数据。例如,第一负荷外封装有第一TCP包头,则TNGF可以确定第一负荷是控制面数据;或者,第一负荷外封装有第三GRE协议包头,第三GRE协议包头封装在第一TCP包头中,则TNGF可以确定第一负荷是控制面数据,其中,第三GRE协议包头的GRE key包括第三GRE key。又例如,第一负荷外封装有第一GRE协议包头,第一GRE协议包头的GRE key包括PDU会话标识,则TNGF可以确定第一负荷是该PDU会话的用户面数据。After receiving the first data packet, the TNGF parses it to obtain the encapsulation mode of the first payload. Further, the TNGF may determine whether the first payload is control plane data or user plane data according to the encapsulation manner of the first payload. For example, if the first payload is encapsulated with a first TCP header, then TNGF can determine that the first payload is control plane data; or, the first payload is encapsulated with a third GRE protocol header, and the third GRE protocol header is encapsulated in the first TCP header , the TNGF can determine that the first payload is control plane data, wherein the GRE key in the third GRE protocol packet header includes the third GRE key. For another example, if the first payload is encapsulated with a first GRE protocol header, and the GRE key of the first GRE protocol header includes a PDU session identifier, then the TNGF can determine that the first payload is user plane data of the PDU session.
在一种可能的实现方式中,第一IP包头包括UE的IP地址,TNGF可以根据UE的IP地址、以及UE的IP地址与UE的标识信息之间的对应关系,确定UE的标识信息,以及根据UE的标识信息确定UE的上下文信息,具体实现过程可参考前述步骤S202对应的描述,这里不再赘述。In a possible implementation manner, the first IP packet header includes the IP address of the UE, and the TNGF can determine the identification information of the UE according to the IP address of the UE and the correspondence between the IP address of the UE and the identification information of the UE, and The context information of the UE is determined according to the identification information of the UE. For a specific implementation process, reference may be made to the description corresponding to the aforementioned step S202, which will not be repeated here.
在另一种可能的实现方式中,第一负荷是控制面数据,第一负荷外封装有第三GRE协议包头中,即TNGF通过TCP连接1、TCP连接2接收UE的第一负荷,TNGF可以根 据第三GRE协议包头的GRE key、以及GRE key与UE的标识信息之间的对应关系,确定UE的标识信息,以及根据UE的标识信息确定UE的上下文信息。其中,UE的上下文信息包括UE的标识信息、UE的N2接口的标识、N2接口信息以及N3接口信息。该N2接口信息可用于确定为该UE建立N2连接的控制面网元。例如,TNGF可以根据UE的上下文信息确定为该UE建立N2连接的控制面网元,然后通过N2连接将第一负荷发送给该控制面网元(图2以控制面网元为AMF为例)。In another possible implementation, the first payload is control plane data, and the first payload is encapsulated in the third GRE protocol header, that is, the TNGF receives the first payload of the UE through TCP connection 1 and TCP connection 2, and the TNGF can According to the GRE key of the third GRE protocol header and the corresponding relationship between the GRE key and the identification information of the UE, the identification information of the UE is determined, and the context information of the UE is determined according to the identification information of the UE. Wherein, the context information of the UE includes the identification information of the UE, the identification of the N2 interface of the UE, the information of the N2 interface and the information of the N3 interface. The N2 interface information can be used to determine the control plane network element that establishes the N2 connection for the UE. For example, the TNGF can determine the control plane network element that establishes the N2 connection for the UE according to the context information of the UE, and then send the first load to the control plane network element through the N2 connection (Figure 2 takes the control plane network element as an example of AMF) .
S1003:TNGF向UPF发送第一负荷。相应的,UPF接收第一负荷。S1003: The TNGF sends the first payload to the UPF. Correspondingly, the UPF receives the first load.
在TNGF确定第一负荷是用户面数据之后,TNGF可以通过N3连接将第一负荷发送给UPF。After the TNGF determines that the first payload is user plane data, the TNGF may send the first payload to the UPF through the N3 connection.
S1004:TNGF向AMF发送第一负荷。相应的,AMF接收第一负荷。S1004: The TNGF sends the first payload to the AMF. Correspondingly, the AMF receives the first load.
在TNGF确定第一负荷是用户面数据之后,TNGF可以通过N2连接将第一负荷发送给AMF。After the TNGF determines that the first payload is user plane data, the TNGF may send the first payload to the AMF through the N2 connection.
上述步骤S1001至步骤S1004介绍了上行方向上,TNGF区分上行信息是控制面数据或者是用户面数据的具体实现流程。接下来结合步骤S605a至步骤S608介绍下行方向上,UE区分下行信息是控制面数据或者是用户面数据的具体实现流程。The above steps S1001 to S1004 describe the specific implementation process of TNGF distinguishing uplink information as control plane data or user plane data in the uplink direction. Next, in combination with steps S605a to S608, the specific implementation process of UE distinguishing whether downlink information is control plane data or user plane data in the downlink direction is introduced.
S1005a:UPF向TNGF发送第二负荷。或者,S1005b:AMF向TNGF发送第二负荷。相应的,TNGF接收第二负荷。S1005a: The UPF sends the second payload to the TNGF. Or, S1005b: The AMF sends the second payload to the TNGF. Correspondingly, the TNGF receives the second load.
其中,步骤S1005a和步骤S1005b的具体实现过程可参考前述步骤S205a、S205b对应的描述,这里不再赘述。Wherein, for the specific implementation process of step S1005a and step S1005b, reference may be made to the corresponding descriptions of the aforementioned steps S205a and S205b, which will not be repeated here.
S1006:TNGF向UE发送第二负荷。相应的,UE接收第二负荷。S1006: The TNGF sends the second payload to the UE. Correspondingly, the UE receives the second payload.
在第二负荷是控制面数据时,第二负荷外封装有第二TCP包头。例如,TNGF可以在第二负荷外封装第二TCP包头,以及在该第二TCP包头外封装第二IP包头,得到封装后的第二负荷,并通过TCP连接将封装后的第二负荷发送给UE。其中,第二TCP包头包括源端口号和目的端口号,该源端口号和目的端口号分别为TNGF的TCP端口号、UE的TCP端口号。第二IP包头包括源IP地址和目的IP地址,该源地址和目的IP地址分别为TNGF IP地址1、UE的IP地址。When the second payload is control plane data, the second payload is encapsulated with a second TCP header. For example, the TNGF can encapsulate the second TCP header outside the second payload, and encapsulate the second IP header outside the second TCP header to obtain the encapsulated second payload, and send the encapsulated second payload to the UE. Wherein, the second TCP packet header includes a source port number and a destination port number, and the source port number and the destination port number are respectively the TCP port number of the TNGF and the TCP port number of the UE. The second IP packet header includes a source IP address and a destination IP address, and the source address and the destination IP address are respectively the TNGF IP address 1 and the IP address of the UE.
或者,在第二负荷是控制面数据时,第二负荷外封装有第四GRE协议包头,第二负荷外封装有第二TCP包头。例如,TNGF可以在第二负荷外封装第四GRE协议包头,在第四GRE协议包头外封装第二TCP包头,以及在该第二TCP包头外封装第二IP包头,得到封装后的第二负荷,然后通过TCP连接3将封装后的第二负荷发送给接入节点,并由接入节点将第二负荷转发给UE。其中,第四GRE协议包头的GRE key包括第三GRE key。第二TCP包头包括源端口号和目的端口号,该源端口号和目的端口号分别为TNGF的TCP端口号、UE的TCP端口号。第二IP包头包括源IP地址和目的IP地址,该源地址和目的IP地址分别为TNGF IP地址1、UE的IP地址。Or, when the second payload is control plane data, the second payload is encapsulated with the fourth GRE protocol header, and the second payload is encapsulated with the second TCP header. For example, the TNGF may encapsulate the fourth GRE protocol header outside the second payload, encapsulate the second TCP header outside the fourth GRE protocol header, and encapsulate the second IP header outside the second TCP header to obtain the encapsulated second payload , and then send the encapsulated second payload to the access node through the TCP connection 3, and the access node forwards the second payload to the UE. Wherein, the GRE key of the fourth GRE protocol header includes the third GRE key. The second TCP packet header includes a source port number and a destination port number, and the source port number and the destination port number are respectively the TCP port number of the TNGF and the TCP port number of the UE. The second IP packet header includes a source IP address and a destination IP address, and the source address and the destination IP address are respectively the TNGF IP address 1 and the IP address of the UE.
或者,在第二负荷是用户面数据时,第二负荷外封装有第二GRE协议包头。例如,TNGF可以在第二负荷外封装第二GRE协议包头,以及在该第二GRE协议包头外封装第二IP包头,得到封装后的第二负荷,并通过GRE隧道将封装后的第二负荷发送给UE。其中,第二GRE协议包头中的GRE key包括PDU会话标识。第二IP包头包括源IP地址和目的IP地址,该源地址和目的IP地址分别为TNGF IP地址1、UE的IP地址。Or, when the second payload is user plane data, the second payload is encapsulated with a second GRE protocol header. For example, the TNGF may encapsulate the second GRE protocol header outside the second payload, and encapsulate the second IP header outside the second GRE protocol header to obtain the encapsulated second payload, and transmit the encapsulated second payload through the GRE tunnel. sent to the UE. Wherein, the GRE key in the second GRE protocol header includes the PDU session identifier. The second IP packet header includes a source IP address and a destination IP address, and the source address and the destination IP address are respectively the TNGF IP address 1 and the IP address of the UE.
S1007:UE根据第二负荷的封装方式确定第二负荷是控制面数据或者是用户面数据。S1007: The UE determines whether the second payload is control plane data or user plane data according to the encapsulation manner of the second payload.
UE接收到封装后的第二负荷后,对其解析,得到第二负荷的封装方式。进一步,UE可以根据第二负荷的封装方式判断第二负荷是控制面数据或者是用户面数据。例如,第二负荷外封装有第二TCP包头,则UE可以确定第二负荷是控制面数据。又例如,第二负荷外封装有第二GRE协议包头,则UE可以确定第二负荷是用户面数据。After receiving the encapsulated second payload, the UE analyzes it to obtain the encapsulation mode of the second payload. Further, the UE may determine whether the second payload is control plane data or user plane data according to the encapsulation manner of the second payload. For example, if the second payload is encapsulated with the second TCP header, the UE may determine that the second payload is control plane data. For another example, if the second payload is encapsulated with a second GRE protocol header, the UE may determine that the second payload is user plane data.
通过上述对本申请方案的介绍,可以理解的是,上述各设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本发明能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Through the above introduction to the solution of the present application, it can be understood that, in order to realize the above functions, each of the above devices includes a corresponding hardware structure and/or software module for performing each function. Those skilled in the art should easily realize that the present invention can be realized in the form of hardware or a combination of hardware and computer software in combination with the units and algorithm steps of each example described in the embodiments disclosed herein. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
以上结合图1a-图1c,图2至图11详细说明了本申请实施例提供的方法。以下结合图12和图13详细说明本申请实施例提供的装置。应理解,装置实施例的描述与方法实施例的描述可以相互对应。因此,未详细描述的内容可参见上文方法实施例中的描述。The method provided by the embodiment of the present application is described in detail above with reference to FIG. 1a-FIG. 1c and FIG. 2 to FIG. 11 . The device provided by the embodiment of the present application will be described in detail below with reference to FIG. 12 and FIG. 13 . It should be understood that the description of the device embodiment and the description of the method embodiment may correspond to each other. Therefore, for the content that is not described in detail, reference may be made to the description in the above method embodiments.
图12为本申请实施例提供的通信装置1200的示意性框图,包括通信单元1201和处理单元1202。通信单元1201用于与外部通信,还可以称为通信接口、收发单元、或输入或输出接口等。处理单元1202可以读取存储单元中的数据或者指令,使得通信装置1200实现上述实施例中的方法。FIG. 12 is a schematic block diagram of a communication device 1200 provided by an embodiment of the present application, including a communication unit 1201 and a processing unit 1202 . The communication unit 1201 is used for communicating with the outside, and may also be called a communication interface, a transceiver unit, or an input or output interface. The processing unit 1202 may read data or instructions in the storage unit, so that the communication device 1200 implements the methods in the foregoing embodiments.
在一种示例中,通信装置1200可以是接入网关或接入网关中的芯片。In an example, the communication device 1200 may be an access gateway or a chip in the access gateway.
例如,通信单元1201用于接收来自终端的第一数据包,所述第一数据包包括第一IP包头、第一GTP-U包头和第一负荷,所述第一IP包头包括所述接入网关的IP地址,所述第一GTP-U包头包括所述接入网关的TEID。处理单元1202用于根据所述接入网关的IP地址和所述接入网关的TEID中的至少一个,确定所述第一负荷是控制面数据或者是用户面数据。For example, the communication unit 1201 is configured to receive a first data packet from a terminal, the first data packet includes a first IP header, a first GTP-U header and a first payload, and the first IP header includes the access IP address of the gateway, the first GTP-U packet header includes the TEID of the access gateway. The processing unit 1202 is configured to determine, according to at least one of the IP address of the access gateway and the TEID of the access gateway, whether the first payload is control plane data or user plane data.
在一种可能的实现方式中,处理单元1202用于执行如下一项或多项:In a possible implementation, the processing unit 1202 is configured to perform one or more of the following:
当所述接入网关的TEID是所述接入网关为传输所述控制面数据分配的TEID时,确定所述第一负荷是所述控制面数据。When the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data, it is determined that the first payload is the control plane data.
或者,当所述接入网关的TEID是所述接入网关为传输所述用户面数据分配的TEID时,确定所述第一负荷是所述用户面数据。Or, when the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the user plane data, it is determined that the first payload is the user plane data.
或者,当所述接入网关的IP地址是所述接入网关为传输所述控制面数据分配的IP地址时,确定所述第一负荷是所述控制面数据。Or, when the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the control plane data, it is determined that the first payload is the control plane data.
或者,当所述接入网关的IP地址是所述接入网关为传输所述用户面数据分配的IP地址时,确定所述第一负荷是所述用户面数据。Or, when the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the user plane data, it is determined that the first payload is the user plane data.
或者,当所述接入网关的TEID是所述接入网关为传输所述控制面数据分配的TEID时,且所述接入网的IP地址是所述接入网关为传输所述控制面数据分配的IP地址,确定所述第一负荷是所述控制面数据。Or, when the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data, and the IP address of the access network is the TEID assigned by the access gateway for transmitting the control plane data The assigned IP address determines that the first payload is the control plane data.
或者,当所述接入网关的TEID是所述接入网关为传输所述用户面数据分配的TEID时,且所述接入网的IP地址是所述接入网关为传输所述用户面数据分配的IP地址,确定所述第一负荷是所述用户面数据。Or, when the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the user plane data, and the IP address of the access network is the TEID allocated by the access gateway for transmitting the user plane data The assigned IP address is used to determine that the first load is the user plane data.
在一种可能的实现方式中,所述第一GTP-U包头还包括消息类型字段,所述第一数据包还包含第一消息,所述第一消息包括所述第一负荷;在所述第一负荷是所述控制面数据时,所述消息类型字段用于指示所述第一消息的消息类型。In a possible implementation manner, the first GTP-U packet header further includes a message type field, the first data packet further includes a first message, and the first message includes the first payload; in the When the first payload is the control plane data, the message type field is used to indicate the message type of the first message.
在一种可能的实现方式中,在接入网关接收来自终端的第一数据包之前,通信单元1201用于向所述终端发送第一请求消息,所述第一请求消息包括所述接入网关的TEID和所述接入网关的IP地址,其中,所述接入网关的TEID是所述接入网关为传输所述控制面数据分配的TEID。可选的,通信单元1201还可以用于接收来自所述终端的第一响应消息,所述第一响应消息包括所述终端的TEID,所述终端的TEID是所述终端为传输所述控制面数据分配的TEID。In a possible implementation manner, before the access gateway receives the first data packet from the terminal, the communication unit 1201 is configured to send a first request message to the terminal, where the first request message includes the TEID of the access gateway and the IP address of the access gateway, wherein the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data. Optionally, the communication unit 1201 may also be configured to receive a first response message from the terminal, where the first response message includes the TEID of the terminal, and the TEID of the terminal is used by the terminal to transmit the control plane TEID for data allocation.
在一种可能的实现方式中,所述方法还可以包括:通信单元1201用于向所述终端发送第二请求消息,所述第二请求消息包括协议数据单元(PDU)会话标识和所述接入网关的TEID,其中,所述接入网关的TEID是所述接入网关为所述PDU会话的用户面数据分配的TEID。可选的,通信单元1201还可以用于接收来自所述终端的第二响应消息,所述第二响应消息包括所述终端的TEID,所述终端的TEID是所述终端为所述PDU会话的用户面数据分配的TEID。In a possible implementation manner, the method may further include: the communication unit 1201 is configured to send a second request message to the terminal, where the second request message includes a protocol data unit (PDU) session identifier and the connection The TEID of the ingress gateway, wherein the TEID of the access gateway is the TEID allocated by the access gateway for the user plane data of the PDU session. Optionally, the communication unit 1201 may also be configured to receive a second response message from the terminal, where the second response message includes the TEID of the terminal, and the TEID of the terminal is TEID allocated for user plane data.
在一种可能的实现方式中,所述第二请求消息还包括所述接入网关的IP地址,所述接入网关的IP地址是所述接入网关为所述PDU会话的用户面数据分配的IP地址。In a possible implementation manner, the second request message further includes the IP address of the access gateway, where the IP address of the access gateway is allocated by the access gateway for the user plane data of the PDU session. IP address.
在一种可能的实现方式中,在接入网关接收来自终端的第一数据包之前,通信单元1201用于接收来自接入与移动性管理功能网元的指示信息,所述指示信息用于指示所述接入网关与所述终端之间无需建立网际互连安全性协议隧道。In a possible implementation manner, before the access gateway receives the first data packet from the terminal, the communication unit 1201 is configured to receive indication information from an access and mobility management functional network element, where the indication information is used to indicate There is no need to establish an Internet security protocol tunnel between the access gateway and the terminal.
在一种可能的实现方式中,所述第一IP包头还包括所述终端的IP地址,处理单元1202用于根据所述终端的IP地址、以及所述终端的IP地址与所述终端的标识信息之间的对应关系,确定所述终端的标识信息;以及,根据所述终端的标识信息确定所述终端的上下文信息。In a possible implementation manner, the first IP packet header further includes the IP address of the terminal, and the processing unit 1202 is configured to The corresponding relationship between the information determines the identification information of the terminal; and determines the context information of the terminal according to the identification information of the terminal.
在一种可能的实现方式中,通信单元1201用于接收来自接入节点的第二消息,所述第二消息包括所述终端的IP地址与所述终端的标识信息之间的对应关系。In a possible implementation manner, the communication unit 1201 is configured to receive a second message from the access node, where the second message includes a correspondence between the IP address of the terminal and the identification information of the terminal.
在一种可能的实现方式中,通信单元1201用于向所述终端发送第二数据包,所述第二数据包包括第二IP包头、第二GTP-U包头和第二负荷,所述第二IP包头包括所述接入网关的IP地址,所述第二GTP-U包头包括所述终端的TEID;其中,在所述第二负荷是所述控制面数据时,所述终端的TEID是所述终端为传输所述控制面数据分配的TEID,和/或所述接入网关的IP地址是所述接入网关为传输所述控制面数据分配的IP地址;或者,在所述第二负荷是所述用户面数据时,所述终端的TEID是所述终端为传输所述用户面数据分配的TEID,和/或所述接入网关的IP地址是所述接入网关为传输用户面数据分配的IP地址。In a possible implementation manner, the communication unit 1201 is configured to send a second data packet to the terminal, where the second data packet includes a second IP header, a second GTP-U header, and a second payload, and the first The second IP header includes the IP address of the access gateway, and the second GTP-U header includes the TEID of the terminal; wherein, when the second load is the control plane data, the TEID of the terminal is The TEID allocated by the terminal for transmitting the control plane data, and/or the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the control plane data; or, in the second When the load is the user plane data, the TEID of the terminal is the TEID allocated by the terminal for transmitting the user plane data, and/or the IP address of the access gateway is the IP address of the access gateway for transmitting the user plane data. The IP address to which the data is assigned.
在一种可能的实现方式中,通信单元1201进一步用于向所述终端发送第二数据包,所述第二数据包包括第二IP包头、第二GTP-U包头和第二负荷,所述第二IP包头包括所述接入网关的IP地址,所述第二GTP-U包头包括所述接入网关的TEID;其中,所述第二负荷是所述控制面数据,所述接入网关的IP地址是所述接入网关为传输所述控制面数据分配的IP地址,所述接入网关的TEID是所述接入网关为传输所述控制面数据分配的TEID。In a possible implementation manner, the communication unit 1201 is further configured to send a second data packet to the terminal, where the second data packet includes a second IP header, a second GTP-U header, and a second payload, and the The second IP header includes the IP address of the access gateway, and the second GTP-U header includes the TEID of the access gateway; wherein, the second load is the control plane data, and the access gateway The IP address of the access gateway is the IP address allocated by the access gateway for transmitting the control plane data, and the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data.
又例如,通信单元1201用于接收来自终端的第一数据包,所述第一数据包包括第一通用路由封装(GRE)协议包头和第一负荷,所述第一GRE协议包头包括第一GRE关键字和第一协议类型字段。处理单元1202用于根据所述第一GRE关键字和所述第一协议类型字段中的至少一个,确定所述第一负荷是控制面数据或者是用户面数据。For another example, the communication unit 1201 is configured to receive a first data packet from a terminal, the first data packet includes a first Generic Routing Encapsulation (GRE) protocol header and a first payload, and the first GRE protocol header includes a first GRE Keyword and first protocol type fields. The processing unit 1202 is configured to determine, according to at least one of the first GRE keyword and the first protocol type field, whether the first payload is control plane data or user plane data.
在一种可能的实现方式中,处理单元1202用于执行如下一项或多项:In a possible implementation, the processing unit 1202 is configured to perform one or more of the following:
当所述第一GRE关键字是所述接入网关为传输所述控制面数据分配的关键字时,确定所述第一负荷是所述控制面数据。When the first GRE key is a key allocated by the access gateway for transmitting the control plane data, determine that the first payload is the control plane data.
或者,当所述第一协议类型字段用于指示所述第一负荷是所述控制面数据时,确定所述第一负荷是所述控制面数据。Or, when the first protocol type field is used to indicate that the first payload is the control plane data, determine that the first payload is the control plane data.
或者,当所述第一GRE关键字是所述接入网关为传输所述控制面数据分配的关键字,且所述第一协议类型字段用于指示所述第一负荷是所述控制面数据时,确定所述第一负荷是所述控制面数据。Or, when the first GRE keyword is a keyword allocated by the access gateway for transmitting the control plane data, and the first protocol type field is used to indicate that the first payload is the control plane data , it is determined that the first load is the control plane data.
或者,当所述第一GRE关键字包括协议数据单元(PDU)会话标识时,确定所述第一负荷是所述PDU会话的用户面数据。Or, when the first GRE keyword includes a protocol data unit (PDU) session identifier, it is determined that the first payload is user plane data of the PDU session.
在一种可能的实现方式中,在接入网关接收来自终端的第一数据包之前,通信单元1201用于向所述终端发送第一请求消息,所述第一请求消息包括所述接入网关的网际互连协议地址以及所述接入网关为传输所述控制面数据分配的关键字。In a possible implementation manner, before the access gateway receives the first data packet from the terminal, the communication unit 1201 is configured to send a first request message to the terminal, where the first request message includes the The IP address of the Internet Protocol and the keyword allocated by the access gateway for transmitting the control plane data.
在一种可能的实现方式中,在接入网关接收来自终端的第一数据包之前,通信单元1201用于接收来自接入与移动性管理功能网元的指示信息,所述指示信息用于指示所述接入网关与所述终端之间无需建立网际互连安全性协议隧道。In a possible implementation manner, before the access gateway receives the first data packet from the terminal, the communication unit 1201 is configured to receive indication information from an access and mobility management functional network element, where the indication information is used to indicate There is no need to establish an Internet security protocol tunnel between the access gateway and the terminal.
在一种可能的实现方式中,所述第一数据包还包括第一IP包头,所述第一IP包头包括所述终端的IP地址,处理单元1202用于根据所述终端的IP地址、以及所述终端的IP地址与所述终端的标识信息之间的对应关系,确定所述终端的标识信息;以及,根据所述终端的标识信息确定所述终端的上下文信息。In a possible implementation manner, the first data packet further includes a first IP header, and the first IP header includes the IP address of the terminal, and the processing unit 1202 is configured to, according to the IP address of the terminal, and determining the identification information of the terminal according to the correspondence between the IP address of the terminal and the identification information of the terminal; and determining the context information of the terminal according to the identification information of the terminal.
在一种可能的实现方式中,通信单元1201用于接收来自接入节点的第二消息,所述第二消息包括所述终端的IP地址与所述终端的标识信息之间的对应关系。In a possible implementation manner, the communication unit 1201 is configured to receive a second message from the access node, where the second message includes a correspondence between the IP address of the terminal and the identification information of the terminal.
在一种可能的实现方式中,通信单元1201用于向所述终端发送第二数据包,所述第二数据包包括第二GRE协议包头和第二负荷,所述第二GRE协议包头包括第二GRE关键字和第二协议类型字段;其中,在所述第二负荷是所述控制消息时,所述第二GRE关键字是所述接入网关为传输所述控制面数据分配的关键字,和/或所述第二协议类型字段用于指示所述第二负荷是所述控制面数据;或者,在所述第二负荷是PDU会话的用户面数据时,所述第二GRE关键字包括所述PDU会话标识。In a possible implementation manner, the communication unit 1201 is configured to send a second data packet to the terminal, the second data packet includes a second GRE protocol header and a second payload, and the second GRE protocol header includes a first Two GRE keywords and a second protocol type field; wherein, when the second load is the control message, the second GRE keyword is a keyword allocated by the access gateway for transmitting the control plane data , and/or the second protocol type field is used to indicate that the second load is the control plane data; or, when the second load is user plane data of a PDU session, the second GRE keyword Include the PDU session identifier.
再例如,通信单元1201用于接收来自终端的第一负荷,其中,所述第一负荷外封装有第一传输控制协议(TCP)包头,或者所述第一负荷外封装有第一通用路由封装(GRE)协议包头。处理单元1202用于根据所述第一负荷的封装方式,确定所述第一负荷是控制面数据或者是用户面数据。For another example, the communication unit 1201 is configured to receive the first payload from the terminal, where the first payload is encapsulated with a first Transmission Control Protocol (TCP) header, or the first payload is encapsulated with a first general routing encapsulation (GRE) protocol header. The processing unit 1202 is configured to determine whether the first payload is control plane data or user plane data according to the encapsulation manner of the first payload.
在一种可能的实现方式中,所述第一TCP包头包括所述接入网关为传输所述控制面数据分配的端口号,所述第一GRE协议包头中的GRE关键字包括协议数据单元(PDU)会话标识。In a possible implementation manner, the first TCP header includes the port number allocated by the access gateway for transmitting the control plane data, and the GRE keyword in the first GRE protocol header includes a protocol data unit ( PDU) session identifier.
在一种可能的实现方式中,处理单元1202用于执行如下一项或多项:In a possible implementation, the processing unit 1202 is configured to perform one or more of the following:
当所述第一负荷外封装有所述第一TCP包头时,确定所述第一负荷是所述控制面数据。When the first payload is encapsulated with the first TCP header, it is determined that the first payload is the control plane data.
或者,当所述第一负荷外封装有所述第一GRE协议包头时,确定所述第一负荷是PDU会话的用户面数据。Or, when the first payload is encapsulated with the first GRE protocol header, it is determined that the first payload is user plane data of a PDU session.
在一种可能的实现方式中,所述第一负荷外封装有所述第一TCP包头中,可以为:所述第一负荷外封装有第三GRE协议包头,所述第三GRE协议包头外封装有所述第一TCP包头中。In a possible implementation manner, the first TCP header is encapsulated outside the first payload, which may be: a third GRE protocol header is encapsulated outside the first payload, and a third GRE protocol header is encapsulated outside the third GRE protocol header. encapsulated in the first TCP header.
在一种可能的实现方式中,所述第三GRE协议包头包括第三GRE关键字,所述第三GRE关键字是接入节点为所述终端分配的关键字,处理单元1202用于根据所述第三GRE关键字、以及所述第三GRE关键字与所述终端的标识信息之间的对应关系,确定所述终端的标识信息;以及,根据所述终端的标识信息确定所述终端的上下文信息。In a possible implementation manner, the third GRE protocol packet header includes a third GRE keyword, and the third GRE keyword is a keyword allocated by the access node to the terminal, and the processing unit 1202 is configured to The third GRE keyword, and the corresponding relationship between the third GRE keyword and the identification information of the terminal, determine the identification information of the terminal; and determine the identification information of the terminal according to the identification information of the terminal contextual information.
在一种可能的实现方式中,通信单元1201用于接收来自接入节点的第二消息,所述第二消息包括所述第三GRE关键字与所述终端的标识信息之间的对应关系。In a possible implementation manner, the communication unit 1201 is configured to receive a second message from the access node, where the second message includes a correspondence between the third GRE keyword and the identification information of the terminal.
在一种可能的实现方式中,所述第一TCP包头外封装有第一网际互连协议包头,或者所述第一GRE协议包头外封装有第一IP包头,所述第一IP包头包括所述终端的IP地址,处理单元1202用于根据所述终端的IP地址、以及所述终端的IP地址与所述终端的标识信息之间的对应关系,确定所述终端的标识信息;以及,根据所述终端的标识信息确定所述终端的上下文信息。In a possible implementation manner, the first TCP header is encapsulated with a first Internet Protocol header, or the first GRE protocol header is encapsulated with a first IP header, and the first IP header includes the The IP address of the terminal, the processing unit 1202 is configured to determine the identification information of the terminal according to the IP address of the terminal and the correspondence between the IP address of the terminal and the identification information of the terminal; and, according to The identification information of the terminal determines the context information of the terminal.
在一种可能的实现方式中,通信单元1201用于接收来自接入节点的第二消息,所述第二消息包括所述终端的IP地址与所述终端的标识信息之间的对应关系。In a possible implementation manner, the communication unit 1201 is configured to receive a second message from the access node, where the second message includes a correspondence between the IP address of the terminal and the identification information of the terminal.
在一种可能的实现方式中,在接入网关接收来自终端的第一负荷之前,通信单元1201用于向所述终端发送第一请求消息,所述第一请求消息包括所述接入网关的端口号以及所述接入网关的IP地址,其中,所述接入网关的端口号是所述接入网关为传输所述控制面数据分配的端口号,所述接入网关的IP地址是所述接入网关为传输所述控制面数据分配的IP地址。In a possible implementation manner, before the access gateway receives the first load from the terminal, the communication unit 1201 is configured to send a first request message to the terminal, where the first request message includes the port number and the IP address of the access gateway, wherein the port number of the access gateway is the port number allocated by the access gateway for transmitting the control plane data, and the IP address of the access gateway is the The IP address allocated by the access gateway for transmitting the control plane data.
在一种可能的实现方式中,所述第一请求消息包括所述接入网关为传输用户面数据分配的IP地址。In a possible implementation manner, the first request message includes the IP address allocated by the access gateway for transmitting user plane data.
在一种可能的实现方式中,在接入网关接收来自终端的第一负荷之前,通信单元1201用于接收来自接入与移动性管理功能网元的指示信息,所述指示信息用于指示所述接入网关与所述终端之间无需建立网际互连安全性协议隧道。In a possible implementation manner, before the access gateway receives the first load from the terminal, the communication unit 1201 is configured to receive indication information from an access and mobility management functional network element, where the indication information is used to indicate the There is no need to establish an Internet security protocol tunnel between the access gateway and the terminal.
在一种可能的实现方式中,通信单元1201用于向所述终端发送第二负荷,所述第二负荷外封装有第二TCP包头,或者所述第二负荷外封装有第二GRE协议包头;其中,在所述第二负荷是所述控制面数据时,所述第二负荷外封装有所述第二TCP包头,所述第二TCP包头包括所述终端为传输所述控制面数据分配的端口号;或者,在所述第二负荷是PDU的用户面数据时,所述第二负荷外封装有第二GRE协议包头,且所述第二GRE协议包头中的GRE关键字包括所述PDU会话标识。In a possible implementation manner, the communication unit 1201 is configured to send a second payload to the terminal, where the second payload is encapsulated with a second TCP header, or the second payload is encapsulated with a second GRE protocol header ; Wherein, when the second load is the control plane data, the second load is encapsulated with the second TCP header, and the second TCP header includes the allocation of the terminal for transmitting the control plane data or, when the second payload is user plane data of a PDU, the second payload is encapsulated with a second GRE protocol header, and the GRE keyword in the second GRE protocol header includes the PDU session identifier.
在一种可能的实现方式中,所述第二负荷外封装有所述第二TCP包头,可以为:所述第二负荷外封装有第四GRE协议包头,所述第四GRE协议包头外封装有所述第二TCP包头,其中,所述第四GRE协议包头中的GRE关键字是接入节点为所述终端分配的关键字。In a possible implementation manner, the second payload is encapsulated with the second TCP header, which may be: the second payload is encapsulated with a fourth GRE protocol header, and the fourth GRE protocol header is encapsulated There is the second TCP packet header, wherein the GRE keyword in the fourth GRE protocol packet header is a keyword allocated by the access node to the terminal.
在另一个示例中,通信装置1200可以是终端或终端中的芯片。In another example, the communication device 1200 may be a terminal or a chip in the terminal.
例如,通信单元1201用于来自接入网关的第二数据包,所述第二数据包包括第二网际互连协议(IP)包头、第二通用分组无线业务隧道协议-用户平面(GTP-U)包头和第二负荷,所述第二IP包头包括所述接入网关的IP地址,所述第二GTP-U包头包括所述终端的隧道端点标识(TEID)或者包括所述接入网关的隧道端点标识(TEID)。处理单元1202用于根据所述接入网关的IP地址和所述终端的TEID中的至少一个,或者根据所述接入网关的IP地址和所述接入网关的TEID中的至少一个,确定所述第二负荷是控制面数据或者是用户面数据。For example, the communication unit 1201 is used for the second data packet from the access gateway, the second data packet includes a second Internet Protocol (IP) packet header, a second General Packet Radio Service Tunneling Protocol-User Plane (GTP-U ) packet header and a second load, the second IP packet header includes the IP address of the access gateway, and the second GTP-U packet header includes the tunnel endpoint identifier (TEID) of the terminal or includes the access gateway's Tunnel Endpoint Identifier (TEID). The processing unit 1202 is configured to determine the The second load is control plane data or user plane data.
在一种可能的实现方式中,处理单元1202用于执行如下一项或多个:In a possible implementation manner, the processing unit 1202 is configured to perform one or more of the following:
当所述终端的TEID是所述终端为传输所述控制面数据分配的TEID时,确定所述第二负荷是所述控制面数据。When the TEID of the terminal is the TEID allocated by the terminal for transmitting the control plane data, determine that the second payload is the control plane data.
或者,当所述终端的TEID是所述终端为传输所述用户面数据分配的TEID时,确定所述第二负荷是所述用户面数据。Or, when the TEID of the terminal is the TEID allocated by the terminal for transmitting the user plane data, determine that the second payload is the user plane data.
或者,当所述接入网关的IP地址是所述接入网关为传输所述控制面数据分配的IP地址时,确定所述第二负荷是所述控制面数据。Or, when the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the control plane data, it is determined that the second payload is the control plane data.
或者,当所述接入网关的IP地址是所述接入网关为传输所述用户面数据分配的IP地址时,确定所述第二负荷是所述用户面数据。Or, when the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the user plane data, it is determined that the second payload is the user plane data.
或者,当所述终端的TEID是所述终端为传输所述控制面数据分配的TEID,且所述接入网的IP地址是所述接入网关为传输所述控制面数据分配的IP地址时,确定所述第二负荷是所述控制面数据。Or, when the TEID of the terminal is the TEID allocated by the terminal for transmitting the control plane data, and the IP address of the access network is the IP address allocated by the access gateway for transmitting the control plane data , determining that the second load is the control plane data.
或者,当所述终端的TEID是所述终端为传输所述用户面数据分配的TEID,且所述接入网的IP地址是所述接入网关为传输所述用户面数据分配的IP地址时,确定所述第二负荷是所述用户面数据。Or, when the TEID of the terminal is the TEID allocated by the terminal for transmitting the user plane data, and the IP address of the access network is the IP address allocated by the access gateway for transmitting the user plane data , determining that the second payload is the user plane data.
在一种可能的实现方式中,所述第二GTP-U包头还包括消息类型字段,所述第二数据包还包含第三消息,所述第三消息包括所述第二负荷;在所述第二负荷是所述控制面数据时,所述消息类型字段用于指示所述第三消息的消息类型。In a possible implementation manner, the second GTP-U packet header further includes a message type field, the second data packet further includes a third message, and the third message includes the second payload; in the When the second payload is the control plane data, the message type field is used to indicate the message type of the third message.
在一种可能的实现方式中,在终端接收来自接入网关的第二数据包之前,通信单元1201用于接收来自所述接入网关的第一请求消息,所述第一请求消息包括所述接入网关的TEID和所述接入网关的IP地址,其中,所述接入网关的TEID是所述接入网关为传输所述控制面数据分配的TEID。可选的,通信单元1201还可以用于向所述接入网关发送第一响应消息,所述第一响应消息包括所述终端的TEID,所述终端的TEID是所述终端为传输所述控制面数据分配的TEID。In a possible implementation manner, before the terminal receives the second data packet from the access gateway, the communication unit 1201 is configured to receive a first request message from the access gateway, where the first request message includes the The TEID of the access gateway and the IP address of the access gateway, wherein the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data. Optionally, the communication unit 1201 may also be configured to send a first response message to the access gateway, where the first response message includes the TEID of the terminal, and the TEID of the terminal is used by the terminal to transmit the control The TEID assigned to the surface data.
在一种可能的实现方式中,通信单元1201用于接收来自所述接入网关的第二请求消息,所述第二请求消息包括协议数据单元(PDU)会话标识和所述接入网关的TEID,其中,所述接入网关的TEID是所述接入网关为所述PDU会话的用户面数据分配的TEID。可选的,通信单元1201还可以用于向所述接入网关发送第二响应消息,所述第二响应消息包括所述终端的TEID,所述终端的TEID是所述终端为所述PDU会话的用户面数据分配的TEID。In a possible implementation manner, the communication unit 1201 is configured to receive a second request message from the access gateway, where the second request message includes a protocol data unit (PDU) session identifier and the TEID of the access gateway , wherein the TEID of the access gateway is the TEID allocated by the access gateway for the user plane data of the PDU session. Optionally, the communication unit 1201 may also be configured to send a second response message to the access gateway, where the second response message includes the TEID of the terminal, and the TEID of the terminal is The TEID assigned to the user plane data.
在一种可能的实现方式中,所述第二请求消息还包括所述接入网关的IP地址,所述接入网关的IP地址是所述接入网关为所述PDU会话的用户面数据分配的IP地址。In a possible implementation manner, the second request message further includes the IP address of the access gateway, where the IP address of the access gateway is allocated by the access gateway for the user plane data of the PDU session. IP address.
在一种可能的实现方式中,通信单元1201用于向所述接入网关发送第一数据包,所述第一数据包包括第一IP包头、第一GTP-U包头和第一负荷,所述第一IP包头包括所述接入网关的IP地址,所述第一GTP-U包头包括所述接入网关的TEID;其中,在所述第一负荷是所述控制面数据时,所述接入网关的IP地址是所述接入网关为传输所述控制面数据分配的IP地址,和/或所述接入网关的TEID是所述接入网关为传输所述控制面数据分配的TEID;或者,在所述第一负荷是所述用户面数据时,所述接入网关的IP地址是所述接入网关为传输所述用户面数据分配的IP地址,和/或所述接入网关的TEID是所述接入网关为传输所述用户面数据分配的TEID。In a possible implementation manner, the communication unit 1201 is configured to send a first data packet to the access gateway, where the first data packet includes a first IP header, a first GTP-U header, and a first payload, so The first IP header includes the IP address of the access gateway, and the first GTP-U header includes the TEID of the access gateway; wherein, when the first load is the control plane data, the The IP address of the access gateway is the IP address allocated by the access gateway for transmitting the control plane data, and/or the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data ; or, when the first load is the user plane data, the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the user plane data, and/or the access gateway The TEID of the gateway is the TEID allocated by the access gateway for transmitting the user plane data.
在一种可能的实现方式中,处理单元1202用于执行如下一项或多个:In a possible implementation manner, the processing unit 1202 is configured to perform one or more of the following:
当所述接入网关的TEID是所述接入网关为传输所述控制面数据分配的TEID时,确定所述第二负荷是所述控制面数据。When the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data, it is determined that the second payload is the control plane data.
或者,当所述接入网关的IP地址是所述接入网关为传输所述控制面数据分配的IP地址时,确定所述第二负荷是所述控制面数据。Or, when the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the control plane data, it is determined that the second payload is the control plane data.
或者,当所述接入网关的TEID是所述接入网关为传输所述控制面数据分配的TEID,且所述接入网关的IP地址是所述接入网关为传输所述控制面数据分配的IP地址时,确定所述第二负荷是所述控制面数据。Or, when the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data, and the IP address of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data When using the IP address, it is determined that the second payload is the control plane data.
又例如,通信单元1201用于接收来自接入网关的第二数据包,所述第二数据包包括第二通用路由封装(GRE)协议包头和第二负荷,所述第二GRE协议包头包括第二GRE关键字和第二协议类型字段。处理单元1202用于根据所述第二GRE关键字和所述第二协议类型字段中的至少一个,确定所述第二负荷是控制面数据或者是用户面数据。For another example, the communication unit 1201 is configured to receive a second data packet from the access gateway, the second data packet includes a second Generic Routing Encapsulation (GRE) protocol header and a second payload, and the second GRE protocol header includes the first Two GRE keywords and a second protocol type field. The processing unit 1202 is configured to determine, according to at least one of the second GRE keyword and the second protocol type field, whether the second payload is control plane data or user plane data.
在一种可能的实现方式中,处理单元1202用于执行如下一项或多项:In a possible implementation, the processing unit 1202 is configured to perform one or more of the following:
当所述第二GRE关键字是所述接入网关为传输所述控制面数据分配的关键字时,确定所述第二负荷是所述控制面数据。When the second GRE key is a key allocated by the access gateway for transmitting the control plane data, determine that the second payload is the control plane data.
或者,当所述第二协议类型字段用于指示所述第一负荷是所述控制面数据时,确定所述第二负荷是所述控制面数据。Or, when the second protocol type field is used to indicate that the first payload is the control plane data, determine that the second payload is the control plane data.
或者,当所述第二GRE关键字是所述接入网关为传输所述控制面数据分配的关键字时,且所述第二协议类型字段用于指示所述第一负荷是所述控制面数据,确定所述第二负荷是所述控制面数据。Or, when the second GRE key is a key allocated by the access gateway for transmitting the control plane data, and the second protocol type field is used to indicate that the first load is the control plane data, determine that the second load is the control plane data.
或者,当所述第二GRE关键字包括协议数据单元(PDU)会话标识时,确定所述第二负荷是所述PDU会话的用户面数据。Or, when the second GRE keyword includes a protocol data unit (PDU) session identifier, it is determined that the second payload is user plane data of the PDU session.
在一种可能的实现方式中,在终端接收来自接入网关的第二数据包之前,通信单元1201用于接收来自所述接入网关的第一请求消息,所述第一请求消息包括所述接入网关的网际互连协议(IP)地址以及所述第二GRE关键字,其中,所述第二GRE关键字是所述接入网关为传输所述控制面数据分配的关键字。In a possible implementation manner, before the terminal receives the second data packet from the access gateway, the communication unit 1201 is configured to receive a first request message from the access gateway, where the first request message includes the An Internet Protocol (IP) address of the access gateway and the second GRE key, wherein the second GRE key is a key allocated by the access gateway for transmitting the control plane data.
在一种可能的实现方式中,通信单元1201用于向所述接入网关发送第一数据包,所述第一数据包包括第一GRE协议包头和第一负荷,所述第一GRE协议包头包括第一GRE关键字和第一协议类型字段;其中,在所述第一负荷是所述控制消息时,所述第一GRE关键字是所述接入网关为传输所述控制面数据分配的关键字,和/或所述第一协议类型字段用于指示所述第一负荷是所述控制面数据;或者,在所述第一负荷是PDU会话的用户面数据时,所述第一GRE关键字包括所述PDU会话标识。In a possible implementation manner, the communication unit 1201 is configured to send a first data packet to the access gateway, the first data packet includes a first GRE protocol header and a first payload, and the first GRE protocol header Including a first GRE keyword and a first protocol type field; wherein, when the first payload is the control message, the first GRE keyword is allocated by the access gateway for transmitting the control plane data A keyword, and/or the first protocol type field is used to indicate that the first load is the control plane data; or, when the first load is user plane data of a PDU session, the first GRE Keyword includes the PDU session identifier.
再例如,通信单元1201用于接收来自接入网关的第二负荷,其中,所述第二负荷外封装有第二传输控制协议(TCP)包头,或者所述第二负荷外封装有第二通用路由封装(GRE)协议包头。处理单元1202用于根据所述第二负荷的封装方式,确定所述第二负荷是控制面数据或者是用户面数据。For another example, the communication unit 1201 is configured to receive the second payload from the access gateway, where the second payload is encapsulated with a second Transmission Control Protocol (TCP) header, or the second payload is encapsulated with a second common Routing Encapsulation (GRE) protocol header. The processing unit 1202 is configured to determine whether the second payload is control plane data or user plane data according to the encapsulation manner of the second payload.
在一种可能的实现方式中,所述第二TCP包头包括所述终端为传输所述控制面数据分配的端口号,所述第二GRE协议包头中的GRE关键字包括协议数据单元(PDU)会话标识。In a possible implementation, the second TCP header includes the port number allocated by the terminal for transmitting the control plane data, and the GRE keyword in the second GRE protocol header includes a protocol data unit (PDU) Session ID.
在一种可能的实现方式中,处理单元1202用于执行如下一项或多项:In a possible implementation, the processing unit 1202 is configured to perform one or more of the following:
当所述第二负荷外封装有所述第二TCP包头时,确定所述第二负荷是所述控制面数据。When the second payload is encapsulated with the second TCP header, it is determined that the second payload is the control plane data.
或者,当所述第二负荷外封装有所述第二GRE协议包头时,确定所述第一负荷是PDU会话的用户面数据。Or, when the second payload is encapsulated with the second GRE protocol header, it is determined that the first payload is user plane data of a PDU session.
在一种可能的实现方式中,所述第二负荷外封装有所述第二TCP包头,包括:所述第二负荷外封装有第四GRE协议包头,所述第四GRE协议包头外封装有所述第二TCP包头,其中,所述第四GRE协议包头中的GRE关键字是接入节点为所述终端分配的关键字。In a possible implementation manner, the second payload is encapsulated with the second TCP header, including: the second payload is encapsulated with a fourth GRE protocol header, and the fourth GRE protocol header is encapsulated with The second TCP header, wherein the GRE keyword in the fourth GRE protocol header is a keyword assigned by the access node to the terminal.
在一种可能的实现方式中,在终端接收来自接入网关的第二负荷之前,通信单元1201用于接收来自所述接入网关的第一请求消息,所述第一请求消息包括所述接入网关的端口号以及所述接入网关的IP地址,其中,所述接入网关的端口号是所述接入网关为传输所述控制面数据分配的端口号,所述接入网关的IP地址是所述接入网关为传输所述控制面数据分配的IP地址。In a possible implementation manner, before the terminal receives the second load from the access gateway, the communication unit 1201 is configured to receive a first request message from the access gateway, where the first request message includes the The port number of the access gateway and the IP address of the access gateway, wherein the port number of the access gateway is the port number allocated by the access gateway for transmitting the control plane data, and the IP address of the access gateway The address is an IP address allocated by the access gateway for transmitting the control plane data.
在一种可能的实现方式中,所述第一请求消息还包括所述接入网关为传输用户面数据分配的IP地址。In a possible implementation manner, the first request message further includes an IP address allocated by the access gateway for transmitting user plane data.
在一种可能的实现方式中,通信单元1201用于向所述接入网关发送第一负荷,所述第一负荷外封装有第一TCP包头,或者所述第一负荷外封装有第一GRE协议包头;其中,在所述第一负荷是所述控制面数据时,所述第一负荷外封装有所述第一TCP包头,所述第一TCP包头包括所述接入网关为传输所述控制面数据分配的端口号;或者,在所述第一负荷是PDU的用户面数据时,所述第一负荷外封装有第一GRE协议包头,且所述第一GRE协议包头中的GRE关键字包括所述PDU会话标识。In a possible implementation manner, the communication unit 1201 is configured to send a first payload to the access gateway, where the first payload is encapsulated with a first TCP header, or the first payload is encapsulated with a first GRE A protocol header; wherein, when the first payload is the control plane data, the first payload is encapsulated with the first TCP header, and the first TCP header includes the information for the access gateway to transmit the The port number assigned to the control plane data; or, when the first payload is user plane data of a PDU, the first payload is encapsulated with a first GRE protocol header, and the GRE key in the first GRE protocol header word includes the PDU Session Identifier.
在一种可能的实现方式中,所述第一负荷外封装有所述第一TCP包头,可以为:所述第一负荷外封装有第三GRE协议包头,所述第三GRE协议包头外封装有所述第一TCP包头,其中,所述第三GRE协议包头中的GRE关键字是接入节点为所述终端分配的关键字。In a possible implementation manner, the first payload is encapsulated with the first TCP header, which may be: the first payload is encapsulated with a third GRE protocol header, and the third GRE protocol header is encapsulated There is the first TCP header, wherein the GRE key in the third GRE protocol header is a key allocated by the access node to the terminal.
在另一个示例中,通信装置1200还可以是接入节点或接入节点中的芯片。In another example, the communication device 1200 may also be an access node or a chip in the access node.
例如,通信单元1201用于接收来自终端的第一负荷,所述第一负荷外封装有第一TCP包头;以及,向接入网关发送所述第一负荷,其中所述第一负荷外封装有第三GRE协议包头,所述第三GRE协议包头外封装有所述第三TCP包头。For example, the communication unit 1201 is configured to receive a first payload from a terminal, the first payload is encapsulated with a first TCP header; and, send the first payload to the access gateway, wherein the first payload is encapsulated with a A third GRE protocol header, where the third TCP header is encapsulated outside the third GRE protocol header.
在一种可能的实现方式中,所述第三GRE协议包头包括第三GRE关键字,所述第三GRE关键字是所述接入节点为所述终端分配的关键字,所述第三GRE关键字用于确定所述终端的标识信息。In a possible implementation manner, the third GRE protocol packet header includes a third GRE keyword, the third GRE keyword is a keyword allocated by the access node to the terminal, and the third GRE The keyword is used to determine the identification information of the terminal.
在一种可能的实现方式中,处理单元1202用于为所述终端分配第三GRE关键字;通信单元1201用于向所述接入网关发送第二消息,所述第二消息包括所述第三GRE关键字 与所述终端的标识信息之间的对应关系。In a possible implementation manner, the processing unit 1202 is configured to assign a third GRE keyword to the terminal; the communication unit 1201 is configured to send a second message to the access gateway, where the second message includes the first Correspondence between the three GRE keywords and the identification information of the terminal.
在一种可能的实现方式中,通信单元1201进一步用于向所述接入网关发送第二消息,所述第二消息包括所述终端的IP地址与所述终端的标识信息之间的对应关系。In a possible implementation manner, the communication unit 1201 is further configured to send a second message to the access gateway, where the second message includes a correspondence between the IP address of the terminal and the identification information of the terminal .
在一种可能的实现方式中,所述第一TCP包头外封装有第一IP包头,所述第一IP包头中的源地址是所述终端的IP地址,所述第一IP包头中的目的地址是所述接入节点的IP地址;所述第三TCP包头外封装有第三IP包头,所述第三IP包头中的源地址是所述接入节点的IP地址,所述第一IP包头中的目的地址是所述接入网关的IP地址。In a possible implementation, the first TCP header is encapsulated with a first IP header, the source address in the first IP header is the IP address of the terminal, and the destination address in the first IP header is The address is the IP address of the access node; the third TCP header is encapsulated with a third IP header, the source address in the third IP header is the IP address of the access node, and the first IP The destination address in the packet header is the IP address of the access gateway.
在另一个示例中,通信装置1200还可以是接入与移动性管理网元或接入与移动性管理网元中的芯片。In another example, the communication device 1200 may also be an access and mobility management network element or a chip in the access and mobility management network element.
例如,处理单元1202用于根据终端的类型和终端的业务类型中的至少一个,确定所述终端与接入网关之间无需建立IPsec隧道。通信单元1201用于向所述接入网关发送指示信息,所述指示信息用于指示所述终端与所述接入网关之间无需建立所述IPsec隧道。For example, the processing unit 1202 is configured to determine that an IPsec tunnel does not need to be established between the terminal and the access gateway according to at least one of the type of the terminal and the service type of the terminal. The communication unit 1201 is configured to send indication information to the access gateway, where the indication information is used to indicate that the IPsec tunnel does not need to be established between the terminal and the access gateway.
应理解,以上装置中单元的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且装置中的单元可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分单元以软件通过处理元件调用的形式实现,部分单元以硬件的形式实现。例如,各个单元可以为单独设立的处理元件,也可以集成在装置的某一个芯片中实现,此外,也可以以程序的形式存储于存储器中,由装置的某一个处理元件调用并执行该单元的功能。此外这些单元全部或部分可以集成在一起,也可以独立实现。这里所述的处理元件又可以成为处理器,可以是一种具有信号的处理能力的集成电路。在实现过程中,上述方法的各步骤或以上各个单元可以通过处理器元件中的硬件的集成逻辑电路实现或者以软件通过处理元件调用的形式实现。It should be understood that the division of units in the above device is only a division of logical functions, and may be fully or partially integrated into a physical entity or physically separated during actual implementation. And the units in the device can all be implemented in the form of software called by the processing element; they can also be implemented in the form of hardware; some units can also be implemented in the form of software called by the processing element, and some units can be implemented in the form of hardware. For example, each unit can be a separate processing element, or it can be integrated in a certain chip of the device. In addition, it can also be stored in the memory in the form of a program, which is called and executed by a certain processing element of the device. Features. In addition, all or part of these units can be integrated together, or implemented independently. The processing element mentioned here may also be a processor, which may be an integrated circuit with signal processing capability. In the process of implementation, each step of the above method or each unit above may be implemented by an integrated logic circuit of hardware in the processor element or implemented in the form of software called by the processing element.
在一个例子中,以上任一装置中的单元可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(application specific integrated circuit,ASIC),或,一个或多个微处理器(digital singnal processor,DSP),或,一个或者多个现场可编程门阵列(field programmable gate array,FPGA),或这些集成电路形式中至少两种的组合。再如,当装置中的单元可以通过处理元件调度程序的形式实现时,该处理元件可以是通用处理器,例如中央处理器(central processing unit,CPU)或其它可以调用程序的处理器。再如,这些单元可以集成在一起,以片上***(system-on-a-chip,SOC)的形式实现。In one example, the units in any of the above devices may be one or more integrated circuits configured to implement the above method, for example: one or more specific integrated circuits (application specific integrated circuit, ASIC), or, one or Multiple microprocessors (digital signal processor, DSP), or, one or more field programmable gate arrays (field programmable gate array, FPGA), or a combination of at least two of these integrated circuit forms. For another example, when the units in the device can be implemented in the form of a processing element scheduler, the processing element can be a general-purpose processor, such as a central processing unit (central processing unit, CPU) or other processors that can call programs. For another example, these units can be integrated together and implemented in the form of a system-on-a-chip (SOC).
以上通信单元1201是一种该装置的接口电路,用于从其它装置接收信号或向其它装置发送信号。例如,当该装置以芯片的方式实现时,该通信单元1201是该芯片用于从其它芯片或装置接收信号的接口电路、或向其它芯片或装置发送信号的接口电路。The above communication unit 1201 is an interface circuit of the device for receiving signals from other devices or transmitting signals to other devices. For example, when the device is implemented as a chip, the communication unit 1201 is an interface circuit for the chip to receive signals from other chips or devices, or to send signals to other chips or devices.
参考图13,为本申请实施例提供的通信装置1300的示意图,该通信装置1300包括处理器1310和接口1330。可选的,该通信装置1300还可以包括存储器1320。接口1330用于实现与其他设备进行通信。该接口1330还可以是通信模块、收发单元、收发器、收发模块或通信电路等。Referring to FIG. 13 , it is a schematic diagram of a communication device 1300 provided by an embodiment of the present application, where the communication device 1300 includes a processor 1310 and an interface 1330 . Optionally, the communication device 1300 may further include a memory 1320 . The interface 1330 is used to communicate with other devices. The interface 1330 may also be a communication module, a transceiver unit, a transceiver, a transceiver module, or a communication circuit.
以上实施例中终端、接入网关、或接入节点执行的方法可以通过处理器1310调用存储器中存储的程序来实现。即终端、接入网关、或接入节点可以包括处理器1310,该处理器1310通过调用存储器中的程序,以执行上述方法实施例中终端、接入网关、或接入节 点执行的方法。这里的处理器1310可以是一种具有信号的处理能力的集成电路,例如CPU。终端、接入网关、或接入节点可以通过配置成实施以上方法的一个或多个集成电路来实现。例如,一个或多个ASIC,或一个或多个微处理器DSP,或一个或多个FPGA等,或这些集成电路形式中至少两种的组合。The methods performed by the terminal, the access gateway, or the access node in the above embodiments may be implemented by the processor 1310 calling a program stored in the memory. That is, the terminal, access gateway, or access node may include a processor 1310, and the processor 1310 executes the method performed by the terminal, access gateway, or access node in the foregoing method embodiments by invoking a program in the memory. The processor 1310 here may be an integrated circuit with a signal processing capability, such as a CPU. A terminal, an access gateway, or an access node may be realized by one or more integrated circuits configured to implement the above method. For example, one or more ASICs, or one or more microprocessors DSP, or one or more FPGAs, etc., or a combination of at least two of these integrated circuit forms.
具体的,图12中的通信单元1201和处理单元1202的功能/实现过程可以通过图13所示的该通信装置1300中的处理器1310调用存储器1320中存储的计算机可执行指令来实现。或者,图12中的处理单元1202的功能/实现过程可以通过图13所示的该通信装置1300中的处理器1310调用存储器1320中存储的计算机执行指令来实现,图12中的通信单元1201的功能/实现过程可以通过图13中所示的该通信装置1300中的接口1330来实现。Specifically, the functions/implementation process of the communication unit 1201 and the processing unit 1202 in FIG. 12 can be realized by calling the computer-executable instructions stored in the memory 1320 by the processor 1310 in the communication device 1300 shown in FIG. 13 . Alternatively, the function/implementation process of the processing unit 1202 in FIG. 12 can be realized by the processor 1310 in the communication device 1300 shown in FIG. The function/implementation process can be realized through the interface 1330 in the communication device 1300 shown in FIG. 13 .
应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that in various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the order of execution, and the order of execution of the processes should be determined by their functions and internal logic, rather than by the embodiments of the present invention. The implementation process constitutes any limitation.
本申请还提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被计算机执行时可实现上述实施例中UE、TNGF、接入节点、或AMF所实现的功能。The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a computer, the functions implemented by the UE, TNGF, access node, or AMF in the foregoing embodiments can be realized.
本申请还提供了一种计算机程序产品,该计算机程序产品被计算机执行时可实现上述实施例中UE、TNGF、接入节点、或AMF所实现的功能。The present application also provides a computer program product, which can implement the functions implemented by the UE, TNGF, access node, or AMF in the foregoing embodiments when the computer program product is executed by a computer.
本申请还提供了一种芯片***,该芯片***包括至少一个处理器和接口电路,所述处理器用于通过所述接口电路执行指令和/或数据的交互,使得所述芯片***所在的装置实现上述实施例中UE、TNGF、接入节点、或AMF所实现的功能。该芯片***可以由芯片构成,也可以包含芯片和其他分立器件。The present application also provides a chip system, the chip system includes at least one processor and an interface circuit, the processor is used to execute instructions and/or data interaction through the interface circuit, so that the device where the chip system is located realizes Functions implemented by UE, TNGF, access node, or AMF in the foregoing embodiments. The system-on-a-chip may consist of chips, or may include chips and other discrete devices.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的***、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包括一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device including a server, a data center, and the like integrated with one or more available media. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (solid state disk, SSD)), etc.
本申请实施例中所描述的各种说明性的逻辑单元和电路可以通过通用处理器,数字信号处理器,专用集成电路(ASIC),现场可编程门阵列(FPGA)或其它可编程逻辑装置,离散门或晶体管逻辑,离散硬件部件,或上述任何组合的设计来实现或操作所描述的功能。通用处理器可以为微处理器,可选地,该通用处理器也可以为任何传统的处理器、控制器、微控制器或状态机。处理器也可以通过计算装置的组合来实现,例如数字信号处理器和微 处理器,多个微处理器,一个或多个微处理器联合一个数字信号处理器核,或任何其它类似的配置来实现。The various illustrative logic units and circuits described in the embodiments of the present application can be implemented by a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, Discrete gate or transistor logic, discrete hardware components, or any combination of the above designed to implement or operate the described functions. The general-purpose processor may be a microprocessor, and optionally, the general-purpose processor may also be any conventional processor, controller, microcontroller or state machine. A processor may also be implemented by a combination of computing devices, such as a digital signal processor and a microprocessor, multiple microprocessors, one or more microprocessors combined with a digital signal processor core, or any other similar configuration to accomplish.
本申请实施例中所描述的方法或算法的步骤可以直接嵌入硬件、处理器执行的软件单元、或者这两者的结合。软件单元可以存储于随机存取存储器(random access memory,RAM)、闪存、只读存储器(read-only memory,ROM)、EPROM存储器、EEPROM存储器、寄存器、硬盘、可移动磁盘、CD-ROM或本领域中其它任意形式的存储媒介中。示例性地,存储媒介可以与处理器连接,以使得处理器可以从存储媒介中读取信息,并可以向存储媒介存写信息。可选地,存储媒介还可以集成到处理器中。处理器和存储媒介可以设置于ASIC中。The steps of the method or algorithm described in the embodiments of the present application may be directly embedded in hardware, a software unit executed by a processor, or a combination of both. The software unit can be stored in random access memory (random access memory, RAM), flash memory, read-only memory (read-only memory, ROM), EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM or notebook In any other form of storage media in the field. Exemplarily, the storage medium can be connected to the processor, so that the processor can read information from the storage medium, and can write information to the storage medium. Optionally, the storage medium can also be integrated into the processor. The processor and storage medium can be provided in an ASIC.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
在一个或多个示例性的设计中,本申请所描述的上述功能可以在硬件、软件、固件或这三者的任意组合来实现。如果在软件中实现,这些功能可以存储与电脑可读的媒介上,或以一个或多个指令或代码形式传输于电脑可读的媒介上。电脑可读媒介包括电脑存储媒介和便于使得让电脑程序从一个地方转移到其它地方的通信媒介。存储媒介可以是任何通用或特殊电脑可以接入访问的可用媒体。例如,这样的电脑可读媒体可以包括但不限于RAM、ROM、EEPROM、CD-ROM或其它光盘存储、磁盘存储或其它磁性存储装置,或其它任何可以用于承载或存储以指令或数据结构和其它可被通用或特殊电脑、或通用或特殊处理器读取形式的程序代码的媒介。此外,任何连接都可以被适当地定义为电脑可读媒介,例如,如果软件是从一个网站站点、服务器或其它远程资源通过一个同轴电缆、光纤电脑、双绞线、数字用户线(DSL)或以例如红外、无线和微波等无线方式传输的也被包含在所定义的电脑可读媒介中。所述的碟片(disk)和磁盘(disc)包括压缩磁盘、镭射盘、光盘、数字通用光盘(digital versatile disc,DVD)、软盘和蓝光光盘,磁盘通常以磁性复制数据,而碟片通常以激光进行光学复制数据。上述的组合也可以包含在电脑可读媒介中。In one or more exemplary designs, the above functions described in this application may be implemented in hardware, software, firmware or any combination of the three. If implemented in software, the functions can be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes computer storage media and communication media that facilitate transfer of a computer program from one place to another. Storage media may be any available media that can be accessed by a general purpose or special computer. For example, such computer-readable media may include, but are not limited to, RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other device that can be used to carry or store instructions or data structures and Other medium of program code in a form readable by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly defined as a computer-readable medium, for example, if the software is transmitted from a web site, server, or other remote source via a coaxial cable, fiber optic computer, twisted pair, digital subscriber line (DSL) Or transmitted by wireless means such as infrared, wireless and microwave are also included in the definition of computer readable media. The disk (disk) and disk (disc) include compact disk, laser disk, optical disc, digital versatile disc (digital versatile disc, DVD), floppy disk and Blu-ray disc. Disks usually reproduce data magnetically, while discs usually use Lasers make optical copies of data. Combinations of the above can also be contained on a computer readable medium.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should be aware that, in the above one or more examples, the functions described in this application may be implemented by hardware, software, firmware or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
以上所述的具体实施方式,对本申请的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本申请的具体实施方式而已,并不用于限定本申请的保护范围,凡在本申请的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本申请的保护范围之内。本申请说明书的上述描述可以使得本领域技术任何可以利用或实现本申请的内容,任何基于所公开内容的修改都应该被认为是本领域显而易见的,本申请所描述的基本原则可以应用到其它变形中而不偏离本申请的发明本质和范围。因此,本申请所公开的内容不仅仅局限于所描述的实施例和设计,还可以扩展到与本申请原则和所公开的新特征一致的最大范围。The specific implementation manners described above have further described the purpose, technical solutions and beneficial effects of the application in detail. It should be understood that the above descriptions are only specific implementation modes of the application and are not intended to limit the scope of the application. Scope of protection: All modifications, equivalent replacements, improvements, etc. made on the basis of the technical solutions of this application shall be included within the scope of protection of this application. The above description of the specification of this application can make any technology in the art can use or realize the content of this application, any modification based on the disclosed content should be considered obvious in the field, and the basic principles described in this application can be applied to other modifications without departing from the spirit and scope of the invention of this application. Thus, the disclosure of this application is not intended to be limited to the described embodiments and designs, but extends to the widest scope consistent with the principles of this application and the novel features disclosed.
尽管结合具体特征及其实施例对本申请进行了描述,显而易见的,在不脱离本申请的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本申请的示例性说明,且视为已覆盖本申请范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包括这些改动和变型在内。Although the application has been described in conjunction with specific features and embodiments thereof, it will be apparent that various modifications and combinations can be made thereto without departing from the spirit and scope of the application. Accordingly, the specification and drawings are merely illustrative of the application as defined by the appended claims and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of this application. Apparently, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. In this way, if these modifications and variations of the application fall within the scope of the claims of the application and their equivalent technologies, the application also intends to include these modifications and variations.

Claims (34)

  1. 一种通信方法,其特征在于,包括:A communication method, characterized in that, comprising:
    接入网关接收来自终端的第一数据包,所述第一数据包包括第一网际互连协议(IP)包头、第一通用分组无线业务隧道协议-用户平面(GTP-U)包头和第一负荷,所述第一IP包头包括所述接入网关的IP地址,所述第一GTP-U包头包括所述接入网关的隧道端点标识(TEID);The access gateway receives the first data packet from the terminal, and the first data packet includes a first Internet Protocol (IP) packet header, a first General Packet Radio Service Tunneling Protocol-User Plane (GTP-U) packet header, and a first Load, the first IP header includes the IP address of the access gateway, and the first GTP-U header includes the tunnel endpoint identifier (TEID) of the access gateway;
    所述接入网关根据所述接入网关的IP地址和所述接入网关的TEID中的至少一个,确定所述第一负荷是控制面数据或者是用户面数据。The access gateway determines, according to at least one of the IP address of the access gateway and the TEID of the access gateway, that the first load is control plane data or user plane data.
  2. 根据权利要求1所述的方法,其特征在于,所述接入网关根据所述接入网关的IP地址和所述接入网关的TEID中的至少一个,确定所述第一负荷是控制面数据或者是用户面数据,包括:The method according to claim 1, wherein the access gateway determines that the first payload is control plane data according to at least one of the IP address of the access gateway and the TEID of the access gateway Or user plane data, including:
    当所述接入网关的TEID是所述接入网关为传输所述控制面数据分配的TEID时,所述接入网关确定所述第一负荷是所述控制面数据;或者,When the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data, the access gateway determines that the first load is the control plane data; or,
    当所述接入网关的TEID是所述接入网关为传输所述用户面数据分配的TEID时,所述接入网关确定所述第一负荷是所述用户面数据;或者,When the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the user plane data, the access gateway determines that the first load is the user plane data; or,
    当所述接入网关的IP地址是所述接入网关为传输所述控制面数据分配的IP地址时,所述接入网关确定所述第一负荷是所述控制面数据;或者,When the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the control plane data, the access gateway determines that the first payload is the control plane data; or,
    当所述接入网关的IP地址是所述接入网关为传输所述用户面数据分配的IP地址时,所述接入网关确定所述第一负荷是所述用户面数据;或者,When the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the user plane data, the access gateway determines that the first load is the user plane data; or,
    当所述接入网关的TEID是所述接入网关为传输所述控制面数据分配的TEID时,且所述接入网的IP地址是所述接入网关为传输所述控制面数据分配的IP地址,所述接入网关确定所述第一负荷是所述控制面数据;或者,When the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data, and the IP address of the access network is allocated by the access gateway for transmitting the control plane data an IP address, the access gateway determines that the first payload is the control plane data; or,
    当所述接入网关的TEID是所述接入网关为传输所述用户面数据分配的TEID时,且所述接入网的IP地址是所述接入网关为传输所述用户面数据分配的IP地址,所述接入网关确定所述第一负荷是所述用户面数据。When the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the user plane data, and the IP address of the access network is allocated by the access gateway for transmitting the user plane data IP address, the access gateway determines that the first payload is the user plane data.
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一GTP-U包头还包括消息类型字段,所述第一数据包还包含第一消息,所述第一消息包括所述第一负荷;The method according to claim 1 or 2, wherein the first GTP-U packet header further includes a message type field, and the first data packet also includes a first message, and the first message includes the first message a load;
    在所述第一负荷是所述控制面数据时,所述消息类型字段用于指示所述第一消息的消息类型。When the first payload is the control plane data, the message type field is used to indicate the message type of the first message.
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,在接入网关接收来自终端的第一数据包之前,所述方法还包括:The method according to any one of claims 1 to 3, wherein before the access gateway receives the first data packet from the terminal, the method further comprises:
    所述接入网关向所述终端发送第一请求消息,所述第一请求消息包括所述接入网关的TEID和所述接入网关的IP地址,其中,所述接入网关的TEID是所述接入网关为传输所述控制面数据分配的TEID;The access gateway sends a first request message to the terminal, the first request message includes the TEID of the access gateway and the IP address of the access gateway, where the TEID of the access gateway is the The TEID allocated by the access gateway for transmitting the control plane data;
    所述接入网关接收来自所述终端的第一响应消息,所述第一响应消息包括所述终端的TEID,所述终端的TEID是所述终端为传输所述控制面数据分配的TEID。The access gateway receives a first response message from the terminal, where the first response message includes the TEID of the terminal, and the TEID of the terminal is a TEID allocated by the terminal for transmitting the control plane data.
  5. 根据权利要求1至3中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 3, wherein the method further comprises:
    所述接入网关向所述终端发送第二请求消息,所述第二请求消息包括协议数据单元(PDU)会话标识和所述接入网关的TEID,其中,所述接入网关的TEID是所述接入网关 为所述PDU会话的用户面数据分配的TEID;The access gateway sends a second request message to the terminal, the second request message includes a protocol data unit (PDU) session identifier and the TEID of the access gateway, where the TEID of the access gateway is the The TEID allocated by the access gateway to the user plane data of the PDU session;
    所述接入网关接收来自所述终端的第二响应消息,所述第二响应消息包括所述终端的TEID,所述终端的TEID是所述终端为所述PDU会话的用户面数据分配的TEID。The access gateway receives a second response message from the terminal, where the second response message includes the TEID of the terminal, and the TEID of the terminal is the TEID allocated by the terminal to the user plane data of the PDU session .
  6. 根据权利要求5所述的方法,其特征在于,所述第二请求消息还包括所述接入网关的IP地址,所述接入网关的IP地址是所述接入网关为所述PDU会话的用户面数据分配的IP地址。The method according to claim 5, wherein the second request message further includes the IP address of the access gateway, and the IP address of the access gateway is the IP address of the access gateway for the PDU session. IP address allocated for user plane data.
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,在接入网关接收来自终端的第一数据包之前,所述方法还包括:The method according to any one of claims 1 to 6, wherein before the access gateway receives the first data packet from the terminal, the method further comprises:
    所述接入网关接收来自接入与移动性管理功能(AMF)网元的指示信息,所述指示信息用于指示所述接入网关与所述终端之间无需建立网际互连安全性协议(IPsec)隧道。The access gateway receives indication information from an access and mobility management function (AMF) network element, where the indication information is used to indicate that there is no need to establish an Internet security protocol between the access gateway and the terminal ( IPsec) tunnel.
  8. 根据权利要求1至7中任一项所述的方法,其特征在于,所述第一IP包头还包括所述终端的IP地址,所述方法还包括:The method according to any one of claims 1 to 7, wherein the first IP packet header also includes the IP address of the terminal, and the method further includes:
    所述接入网关根据所述终端的IP地址、以及所述终端的IP地址与所述终端的标识信息之间的对应关系,确定所述终端的标识信息;The access gateway determines the identification information of the terminal according to the IP address of the terminal and the correspondence between the IP address of the terminal and the identification information of the terminal;
    所述接入网关根据所述终端的标识信息确定所述终端的上下文信息。The access gateway determines the context information of the terminal according to the identification information of the terminal.
  9. 根据权利要求8所述的方法,其特征在于,所述方法还包括:The method according to claim 8, characterized in that the method further comprises:
    所述接入网关接收来自接入节点的第二消息,所述第二消息包括所述终端的IP地址与所述终端的标识信息之间的对应关系。The access gateway receives the second message from the access node, where the second message includes the correspondence between the IP address of the terminal and the identification information of the terminal.
  10. 根据权利要求1至9中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 9, further comprising:
    所述接入网关向所述终端发送第二数据包,所述第二数据包包括第二IP包头、第二GTP-U包头和第二负荷,所述第二IP包头包括所述接入网关的IP地址,所述第二GTP-U包头包括所述终端的TEID;The access gateway sends a second data packet to the terminal, the second data packet includes a second IP header, a second GTP-U header and a second load, and the second IP header includes the access gateway The IP address of the second GTP-U packet header includes the TEID of the terminal;
    其中,在所述第二负荷是所述控制面数据时,所述终端的TEID是所述终端为传输所述控制面数据分配的TEID,和/或所述接入网关的IP地址是所述接入网关为传输所述控制面数据分配的IP地址;或者,在所述第二负荷是所述用户面数据时,所述终端的TEID是所述终端为传输所述用户面数据分配的TEID,和/或所述接入网关的IP地址是所述接入网关为传输用户面数据分配的IP地址。Wherein, when the second load is the control plane data, the TEID of the terminal is the TEID allocated by the terminal for transmitting the control plane data, and/or the IP address of the access gateway is the An IP address allocated by the access gateway for transmitting the control plane data; or, when the second load is the user plane data, the TEID of the terminal is the TEID allocated by the terminal for transmitting the user plane data , and/or the IP address of the access gateway is an IP address allocated by the access gateway for transmitting user plane data.
  11. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    所述接入网关向所述终端发送第二数据包,所述第二数据包包括第二IP包头、第二GTP-U包头和第二负荷,所述第二IP包头包括所述接入网关的IP地址,所述第二GTP-U包头包括所述接入网关的TEID;其中,所述第二负荷是所述控制面数据,所述接入网关的IP地址是所述接入网关为传输所述控制面数据分配的IP地址,所述接入网关的TEID是所述接入网关为传输所述控制面数据分配的TEID。The access gateway sends a second data packet to the terminal, the second data packet includes a second IP header, a second GTP-U header and a second load, and the second IP header includes the access gateway The IP address of the second GTP-U packet header includes the TEID of the access gateway; wherein, the second load is the control plane data, and the IP address of the access gateway is that the access gateway is The IP address allocated for transmitting the control plane data, and the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data.
  12. 一种通信方法,其特征在于,所述方法包括:A communication method, characterized in that the method comprises:
    终端接收来自接入网关的第二数据包,所述第二数据包包括第二网际互连协议(IP)包头、第二通用分组无线业务隧道协议-用户平面(GTP-U)包头和第二负荷,所述第二IP包头包括所述接入网关的IP地址,所述第二GTP-U包头包括所述终端的隧道端点标识(TEID);The terminal receives the second data packet from the access gateway, the second data packet includes a second Internet Protocol (IP) packet header, a second General Packet Radio Service Tunneling Protocol-User Plane (GTP-U) packet header, and a second load, the second IP header includes the IP address of the access gateway, and the second GTP-U header includes the tunnel endpoint identifier (TEID) of the terminal;
    所述终端根据所述接入网关的IP地址和所述终端的TEID中的至少一个,确定所述第二负荷是控制面数据或者是用户面数据。The terminal determines, according to at least one of the IP address of the access gateway and the TEID of the terminal, that the second load is control plane data or user plane data.
  13. 根据权利要求12所述的方法,其特征在于,所述终端根据所述接入网关的IP地址和所述终端的TEID中的至少一个,确定所述第二负荷是控制面数据或者是用户面数据,包括:The method according to claim 12, wherein the terminal determines that the second load is control plane data or user plane data according to at least one of the IP address of the access gateway and the TEID of the terminal. data, including:
    当所述终端的TEID是所述终端为传输所述控制面数据分配的TEID时,所述终端确定所述第二负荷是所述控制面数据;或者,When the TEID of the terminal is the TEID allocated by the terminal for transmitting the control plane data, the terminal determines that the second load is the control plane data; or,
    当所述终端的TEID是所述终端为传输所述用户面数据分配的TEID时,所述终端确定所述第二负荷是所述用户面数据;或者,When the TEID of the terminal is the TEID allocated by the terminal for transmitting the user plane data, the terminal determines that the second load is the user plane data; or,
    当所述接入网关的IP地址是所述接入网关为传输所述控制面数据分配的IP地址时,所述终端确定所述第二负荷是所述控制面数据;或者,When the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the control plane data, the terminal determines that the second load is the control plane data; or,
    当所述接入网关的IP地址是所述接入网关为传输所述用户面数据分配的IP地址时,所述终端确定所述第二负荷是所述用户面数据;或者,When the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the user plane data, the terminal determines that the second load is the user plane data; or,
    当所述终端的TEID是所述终端为传输所述控制面数据分配的TEID,且所述接入网的IP地址是所述接入网关为传输所述控制面数据分配的IP地址时,所述终端确定所述第二负荷是所述控制面数据;或者,When the TEID of the terminal is the TEID allocated by the terminal for transmitting the control plane data, and the IP address of the access network is the IP address allocated by the access gateway for transmitting the control plane data, the The terminal determines that the second payload is the control plane data; or,
    当所述终端的TEID是所述终端为传输所述用户面数据分配的TEID,且所述接入网的IP地址是所述接入网关为传输所述用户面数据分配的IP地址时,所述终端确定所述第二负荷是所述用户面数据。When the TEID of the terminal is the TEID allocated by the terminal for transmitting the user plane data, and the IP address of the access network is the IP address allocated by the access gateway for transmitting the user plane data, the The terminal determines that the second payload is the user plane data.
  14. 根据权利要求12或13所述的方法,其特征在于,所述第二GTP-U包头还包括消息类型字段,所述第二数据包还包含第三消息,所述第三消息包括所述第二负荷;The method according to claim 12 or 13, wherein the second GTP-U packet header further includes a message type field, and the second data packet further includes a third message, and the third message includes the first two loads;
    在所述第二负荷是所述控制面数据时,所述消息类型字段用于指示所述第三消息的消息类型。When the second payload is the control plane data, the message type field is used to indicate the message type of the third message.
  15. 根据权利要求12至14中任一项所述的方法,其特征在于,在终端接收来自接入网关的第二数据包之前,所述方法还包括:The method according to any one of claims 12 to 14, wherein before the terminal receives the second data packet from the access gateway, the method further comprises:
    所述终端接收来自所述接入网关的第一请求消息,所述第一请求消息包括所述接入网关的TEID和所述接入网关的IP地址,其中,所述接入网关的TEID是所述接入网关为传输所述控制面数据分配的TEID;The terminal receives a first request message from the access gateway, where the first request message includes the TEID of the access gateway and the IP address of the access gateway, where the TEID of the access gateway is The TEID allocated by the access gateway for transmitting the control plane data;
    所述终端向所述接入网关发送第一响应消息,所述第一响应消息包括所述终端的TEID,所述终端的TEID是所述终端为传输所述控制面数据分配的TEID。The terminal sends a first response message to the access gateway, where the first response message includes the TEID of the terminal, and the TEID of the terminal is the TEID allocated by the terminal for transmitting the control plane data.
  16. 根据权利要求12至14中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 12 to 14, further comprising:
    所述终端接收来自所述接入网关的第二请求消息,所述第二请求消息包括协议数据单元(PDU)会话标识和所述接入网关的TEID,其中,所述接入网关的TEID是所述接入网关为所述PDU会话的用户面数据分配的TEID;The terminal receives a second request message from the access gateway, where the second request message includes a protocol data unit (PDU) session identifier and the TEID of the access gateway, where the TEID of the access gateway is The TEID allocated by the access gateway to the user plane data of the PDU session;
    所述终端向所述接入网关发送第二响应消息,所述第二响应消息包括所述终端的TEID,所述终端的TEID是所述终端为所述PDU会话的用户面数据分配的TEID。The terminal sends a second response message to the access gateway, where the second response message includes the TEID of the terminal, where the TEID of the terminal is the TEID allocated by the terminal to the user plane data of the PDU session.
  17. 根据权利要求16所述的方法,其特征在于,所述第二请求消息还包括所述接入网关的IP地址,所述接入网关的IP地址是所述接入网关为所述PDU会话的用户面数据分配的IP地址。The method according to claim 16, wherein the second request message further includes the IP address of the access gateway, and the IP address of the access gateway is the IP address of the access gateway for the PDU session. IP address allocated for user plane data.
  18. 根据权利要求12至17中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 12 to 17, further comprising:
    所述终端向所述接入网关发送第一数据包,所述第一数据包包括第一IP包头、第一GTP-U包头和第一负荷,所述第一IP包头包括所述接入网关的IP地址,所述第一GTP-U 包头包括所述接入网关的TEID;The terminal sends a first data packet to the access gateway, the first data packet includes a first IP header, a first GTP-U header and a first payload, and the first IP header includes the access gateway The IP address of the first GTP-U packet header includes the TEID of the access gateway;
    其中,在所述第一负荷是所述控制面数据时,所述接入网关的IP地址是所述接入网关为传输所述控制面数据分配的IP地址,和/或所述接入网关的TEID是所述接入网关为传输所述控制面数据分配的TEID;或者,在所述第一负荷是所述用户面数据时,所述接入网关的IP地址是所述接入网关为传输所述用户面数据分配的IP地址,和/或所述接入网关的TEID是所述接入网关为传输所述用户面数据分配的TEID。Wherein, when the first load is the control plane data, the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the control plane data, and/or the access gateway The TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data; or, when the first load is the user plane data, the IP address of the access gateway is that the access gateway is The IP address allocated for transmitting the user plane data, and/or the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the user plane data.
  19. 一种通信方法,其特征在于,包括:A communication method, characterized in that, comprising:
    终端生成第一数据包,所述第一数据包包括第一网际互连协议(IP)包头、第一通用分组无线业务隧道协议-用户平面(GTP-U)和第一负荷,所述第一IP包头包括接入网关的IP地址,所述第一GTP-U包头包括所述接入网关的隧道端点标识(TEID);其中,所述第一负荷是控制面数据,所述接入网关的IP地址是所述接入网关为传输所述控制面数据分配的IP地址,所述接入网关的TEID是接入网关为传输所述控制面数据分配的TEID;或者,所述第一负荷是用户面数据,所述接入网关的IP地址是所述接入网关为传输所述用户面数据分配的IP地址,所述接入网关的TEID是接入网关为传输所述用户面数据分配的TEID;The terminal generates a first data packet, the first data packet includes a first Internet Protocol (IP) packet header, a first General Packet Radio Service Tunneling Protocol-User Plane (GTP-U) and a first load, and the first The IP header includes the IP address of the access gateway, and the first GTP-U header includes the tunnel endpoint identifier (TEID) of the access gateway; wherein, the first load is control plane data, and the access gateway's The IP address is the IP address allocated by the access gateway for transmitting the control plane data, and the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data; or, the first load is For user plane data, the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the user plane data, and the TEID of the access gateway is allocated by the access gateway for transmitting the user plane data TEID;
    所述终端向所述接入网关发送第一数据包。The terminal sends a first data packet to the access gateway.
  20. 根据权利要求19所述的方法,其特征在于,所述方法还包括:The method according to claim 19, further comprising:
    所述终端接收来自所述接入网关的第二数据包,所述第二数据包包括第二IP包头、第二GTP-U包头和第二负荷,所述第二IP包头包括所述接入网关的IP地址,所述第二GTP-U包头包括所述接入网关的TEID。The terminal receives a second data packet from the access gateway, the second data packet includes a second IP header, a second GTP-U header, and a second payload, and the second IP header includes the access The IP address of the gateway, and the second GTP-U packet header includes the TEID of the access gateway.
  21. 根据权利要求20所述的方法,其特征在于,所述方法还包括:The method according to claim 20, further comprising:
    所述终端根据所述接入网关的IP地址和所述接入网关的TEID中的至少一个,确定所述第二负荷是控制面数据或者是用户面数据;或者,The terminal determines, according to at least one of the IP address of the access gateway and the TEID of the access gateway, that the second load is control plane data or user plane data; or,
    所述终端通过解析所述第二负荷,确定所述第二负荷是控制面数据或者是用户面数据。The terminal determines whether the second payload is control plane data or user plane data by parsing the second payload.
  22. 根据权利要求21所述的方法,其特征在于,所述终端根据所述接入网关的IP地址和所述接入网关的TEID中的至少一个,确定所述第二负荷是控制面数据或者是用户面数据,包括:The method according to claim 21, wherein the terminal determines, according to at least one of the IP address of the access gateway and the TEID of the access gateway, that the second load is control plane data or User plane data, including:
    当所述接入网关的TEID是所述接入网关为传输所述控制面数据分配的TEID时,所述终端确定所述第二负荷是所述控制面数据;或者,When the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data, the terminal determines that the second load is the control plane data; or,
    当所述接入网关的IP地址是所述接入网关为传输所述控制面数据分配的IP地址时,所述终端确定所述第二负荷是所述控制面数据;或者,When the IP address of the access gateway is the IP address allocated by the access gateway for transmitting the control plane data, the terminal determines that the second load is the control plane data; or,
    当所述接入网关的TEID是所述接入网关为传输所述控制面数据分配的TEID,且所述接入网关的IP地址是所述接入网关为传输所述控制面数据分配的IP地址时,所述终端确定所述第二负荷是所述控制面数据。When the TEID of the access gateway is the TEID allocated by the access gateway for transmitting the control plane data, and the IP address of the access gateway is the IP allocated by the access gateway for transmitting the control plane data address, the terminal determines that the second payload is the control plane data.
  23. 根据权利要求19至22中任一项所述的方法,其特征在于,所述接入网关为传输所述控制面数据分配的IP地址与所述接入网关为传输所述用户面数据分配的IP地址相同。The method according to any one of claims 19 to 22, wherein the IP address allocated by the access gateway for transmitting the control plane data is the same as the IP address allocated by the access gateway for transmitting the user plane data The IP addresses are the same.
  24. 一种通信方法,其特征在于,包括:A communication method, characterized in that, comprising:
    接入网关接收来自终端的第一数据包,所述第一数据包包括第一通用路由封装(GRE)协议包头和第一负荷,所述第一GRE协议包头包括第一GRE关键字和第一协议类型字段;The access gateway receives a first data packet from the terminal, the first data packet includes a first Generic Routing Encapsulation (GRE) protocol header and a first load, and the first GRE protocol header includes a first GRE keyword and a first protocol type field;
    所述接入网关根据所述第一GRE关键字和所述第一协议类型字段中的至少一个,确 定所述第一负荷是控制面数据或者是用户面数据。The access gateway determines that the first payload is control plane data or user plane data according to at least one of the first GRE keyword and the first protocol type field.
  25. 根据权利要求24所述的方法,其特征在于,所述接入网关根据所述第一GRE关键字和所述第一协议类型字段中的至少一个,确定所述第一负荷是控制面数据或者是用户面数据,包括:The method according to claim 24, wherein the access gateway determines, according to at least one of the first GRE keyword and the first protocol type field, that the first load is control plane data or is the user plane data, including:
    当所述第一GRE关键字是所述接入网关为传输所述控制面数据分配的关键字时,所述接入网关确定所述第一负荷是所述控制面数据;或者,When the first GRE keyword is a keyword allocated by the access gateway for transmitting the control plane data, the access gateway determines that the first payload is the control plane data; or,
    当所述第一协议类型字段用于指示所述第一负荷是所述控制面数据时,所述接入网关确定所述第一负荷是所述控制面数据;或者,When the first protocol type field is used to indicate that the first payload is the control plane data, the access gateway determines that the first payload is the control plane data; or,
    当所述第一GRE关键字是所述接入网关为传输所述控制面数据分配的关键字,且所述第一协议类型字段用于指示所述第一负荷是所述控制面数据时,所述接入网关确定所述第一负荷是所述控制面数据;或者,When the first GRE keyword is a keyword allocated by the access gateway for transmitting the control plane data, and the first protocol type field is used to indicate that the first payload is the control plane data, The access gateway determines that the first payload is the control plane data; or,
    当所述第一GRE关键字包括协议数据单元(PDU)会话标识时,所述接入网关确定所述第一负荷是所述PDU会话的用户面数据。When the first GRE key includes a protocol data unit (PDU) session identifier, the access gateway determines that the first payload is user plane data of the PDU session.
  26. 根据权利要求24或25所述的方法,其特征在于,在接入网关接收来自终端的第一数据包之前,所述方法还包括:The method according to claim 24 or 25, wherein before the access gateway receives the first data packet from the terminal, the method further comprises:
    所述接入网关向所述终端发送第一请求消息,所述第一请求消息包括所述接入网关的网际互连协议(IP)地址以及所述接入网关为传输所述控制面数据分配的关键字。The access gateway sends a first request message to the terminal, the first request message includes the Internet Protocol (IP) address of the access gateway and the IP address allocated by the access gateway for transmitting the control plane data. keywords.
  27. 根据权利要求24至26中任一项所述的方法,其特征在于,在接入网关接收来自终端的第一数据包之前,所述方法还包括:The method according to any one of claims 24 to 26, wherein before the access gateway receives the first data packet from the terminal, the method further comprises:
    所述接入网关接收来自接入与移动性管理功能(AMF)网元的指示信息,所述指示信息用于指示所述接入网关与所述终端之间无需建立网际互连安全性协议(IPsec)隧道。The access gateway receives indication information from an access and mobility management function (AMF) network element, where the indication information is used to indicate that there is no need to establish an Internet security protocol between the access gateway and the terminal ( IPsec) tunnel.
  28. 根据权利要求24至27中任一项所述的方法,其特征在于,所述第一数据包还包括第一IP包头,所述第一IP包头包括所述终端的IP地址,所述方法还包括:The method according to any one of claims 24 to 27, wherein the first data packet further includes a first IP header, and the first IP header includes the IP address of the terminal, and the method further includes include:
    所述接入网关根据所述终端的IP地址、以及所述终端的IP地址与所述终端的标识信息之间的对应关系,确定所述终端的标识信息;The access gateway determines the identification information of the terminal according to the IP address of the terminal and the correspondence between the IP address of the terminal and the identification information of the terminal;
    所述接入网关根据所述终端的标识信息确定所述终端的上下文信息。The access gateway determines the context information of the terminal according to the identification information of the terminal.
  29. 根据权利要求28所述的方法,其特征在于,所述方法还包括:The method according to claim 28, further comprising:
    所述接入网关接收来自接入节点的第二消息,所述第二消息包括所述终端的IP地址与所述终端的标识信息之间的对应关系。The access gateway receives the second message from the access node, where the second message includes the correspondence between the IP address of the terminal and the identification information of the terminal.
  30. 根据权利要求24至29中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 24 to 29, further comprising:
    所述接入网关向所述终端发送第二数据包,所述第二数据包包括第二GRE协议包头和第二负荷,所述第二GRE协议包头包括第二GRE关键字和第二协议类型字段;The access gateway sends a second data packet to the terminal, the second data packet includes a second GRE protocol header and a second load, and the second GRE protocol header includes a second GRE keyword and a second protocol type field;
    其中,在所述第二负荷是所述控制消息时,所述第二GRE关键字是所述接入网关为传输所述控制面数据分配的关键字,和/或所述第二协议类型字段用于指示所述第二负荷是所述控制面数据;或者,在所述第二负荷是PDU会话的用户面数据时,所述第二GRE关键字包括所述PDU会话标识。Wherein, when the second payload is the control message, the second GRE keyword is a keyword allocated by the access gateway for transmitting the control plane data, and/or the second protocol type field It is used to indicate that the second payload is the control plane data; or, when the second payload is user plane data of a PDU session, the second GRE keyword includes the PDU session identifier.
  31. 一种通信装置,其特征在于,包括存储器,以及一个或多个处理器,所述存储器与所述一个或多个处理器耦合;A communication device, characterized by comprising a memory, and one or more processors, the memory being coupled to the one or more processors;
    所述存储器用于存储计算机程序或指令,当所述计算机程序或指令被所述一个或多个处理器执行时,使得所述通信装置执行如权利要求1至11中任一项所述的方法,或者使得 所述通信装置执行如权利要求24至30中任一项所述的方法。The memory is used to store computer programs or instructions which, when executed by the one or more processors, cause the communication device to perform the method according to any one of claims 1 to 11 , or causing the communication device to execute the method according to any one of claims 24 to 30.
  32. 一种通信装置,其特征在于,包括存储器,以及一个或多个处理器,所述存储器与所述一个或多个处理器耦合;A communication device, characterized by comprising a memory and one or more processors, the memory being coupled to the one or more processors;
    所述存储器用于存储计算机程序或指令,当所述计算机程序或指令被所述一个或多个处理器执行时,使得所述通信装置执行如权利要求12至18中任一项所述的方法,或者使得所述通信装置执行如权利要求19至23中任一项所述的方法。The memory is used to store computer programs or instructions which, when executed by the one or more processors, cause the communication device to perform the method according to any one of claims 12 to 18 , or causing the communication device to execute the method according to any one of claims 19 to 23.
  33. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得所述计算机执行权利要求1至11中任一项所述的方法,或者使得所述计算机执行权利要求24至30中任一项所述的方法。A computer-readable storage medium, characterized in that instructions are stored in the computer-readable storage medium, and when it is run on a computer, the computer executes the method according to any one of claims 1 to 11 , or causing the computer to execute the method described in any one of claims 24 to 30.
  34. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得所述计算机执行权利要求12至18中任一项所述的方法,或者使得所述计算机执行权利要求19至23中任一项所述的方法。A computer-readable storage medium, characterized in that instructions are stored in the computer-readable storage medium, and when it runs on a computer, the computer executes the method according to any one of claims 12 to 18 , or causing the computer to execute the method described in any one of claims 19 to 23.
PCT/CN2022/104908 2021-07-22 2022-07-11 Communication method and device WO2023001010A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202110831818.8 2021-07-22
CN202110831818 2021-07-22
CN202111094796.8 2021-09-17
CN202111094796.8A CN115701089A (en) 2021-07-22 2021-09-17 Communication method and device

Publications (1)

Publication Number Publication Date
WO2023001010A1 true WO2023001010A1 (en) 2023-01-26

Family

ID=84978872

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/104908 WO2023001010A1 (en) 2021-07-22 2022-07-11 Communication method and device

Country Status (1)

Country Link
WO (1) WO2023001010A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686578A (en) * 2008-09-28 2010-03-31 中兴通讯股份有限公司 Family evolution base station system and access method of wireless device
US20170126618A1 (en) * 2015-11-02 2017-05-04 Cisco Technology, Inc. System and method for providing a change in user equipment packet data network internet protocol address in a split control and user plane evolved packet core architecture
CN106900081A (en) * 2016-08-23 2017-06-27 ***通信有限公司研究院 The method and device of the user face data tunnel transmission of access network node granularity
US20190075046A1 (en) * 2016-04-08 2019-03-07 Intel Corporation User-plane path selection for the edge service
CN113132322A (en) * 2019-12-31 2021-07-16 华为技术有限公司 Communication method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686578A (en) * 2008-09-28 2010-03-31 中兴通讯股份有限公司 Family evolution base station system and access method of wireless device
US20170126618A1 (en) * 2015-11-02 2017-05-04 Cisco Technology, Inc. System and method for providing a change in user equipment packet data network internet protocol address in a split control and user plane evolved packet core architecture
US20190075046A1 (en) * 2016-04-08 2019-03-07 Intel Corporation User-plane path selection for the edge service
CN106900081A (en) * 2016-08-23 2017-06-27 ***通信有限公司研究院 The method and device of the user face data tunnel transmission of access network node granularity
CN113132322A (en) * 2019-12-31 2021-07-16 华为技术有限公司 Communication method and device

Similar Documents

Publication Publication Date Title
US20210250767A1 (en) Systems and methods for accessing a network
US20220360634A1 (en) User plane model for non-3gpp access to fifth generation core network
US20230308853A1 (en) Computing workload management in next generation cellular networks
US9264972B2 (en) Home networking with integrated cellular communication
US11102689B2 (en) Packet data connections in a wireless communication system using a wireless local area network
CN110830356B (en) Method and device for transmitting message
US20230319556A1 (en) Key obtaining method and communication apparatus
US20230171672A1 (en) Route configuration method and apparatus
US20240015630A1 (en) Routing Between Networks Based on Identifiers
WO2019242525A1 (en) Data transmission method, related device and system
WO2021204277A1 (en) Communication method, apparatus and system
WO2023185880A9 (en) Access network device determining method
WO2023001010A1 (en) Communication method and device
WO2021169683A1 (en) Communication method and device
KR102439422B1 (en) Network access methods and devices
WO2012110004A1 (en) Message forwarding method and device based on lte-lan
CN115701089A (en) Communication method and device
WO2023246649A1 (en) Communication method, communication apparatus and communication system
WO2023066207A1 (en) Communication method and apparatus
WO2022068336A1 (en) Routing information updating method, communication apparatus and storage medium
TWI820874B (en) Transmission method and apparatus applied to channel direct link establishment
WO2022022639A1 (en) Communication method and device
WO2023197737A1 (en) Message sending method, pin management method, communication apparatus, and communication system
WO2024012230A1 (en) Communication method and apparatus
WO2023216932A1 (en) Communication method and apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22845175

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE