[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN111954200A - Message transmission method and device - Google Patents

Message transmission method and device Download PDF

Info

Publication number
CN111954200A
CN111954200A CN202010756441.XA CN202010756441A CN111954200A CN 111954200 A CN111954200 A CN 111954200A CN 202010756441 A CN202010756441 A CN 202010756441A CN 111954200 A CN111954200 A CN 111954200A
Authority
CN
China
Prior art keywords
message
parameter
party device
access
amf
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010756441.XA
Other languages
Chinese (zh)
Other versions
CN111954200B (en
Inventor
于游洋
舒林
克里斯蒂安·埃雷罗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010756441.XA priority Critical patent/CN111954200B/en
Publication of CN111954200A publication Critical patent/CN111954200A/en
Application granted granted Critical
Publication of CN111954200B publication Critical patent/CN111954200B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/02Processing of mobility data, e.g. registration information at HLR [Home Location Register] or VLR [Visitor Location Register]; Transfer of mobility data, e.g. between HLR, VLR or external networks
    • H04W8/08Mobility data transfer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

消息的传输方法、及设备,其中方法的实现包括:AMF接收来自终端设备的第一消息;所述第一消息中携带发往至少一个第三方设备的第二消息,所述第三方设备为所述终端设备和所述AMF之外的网络设备,所述第一消息中携带第一参数,所述第二消息中携带所述第二参数,所述第一参数用于标识所述第一消息,所述第二参数用于标识所述第二消息;向所述第三方设备发送所述第二消息,所述第二消息中携带所述第二参数。终端设备使用两层的参数分别标识了第一消息和第二消息,那么对于AMF和第三方设备而言,终端设备发送多条与第一消息同类型的消息的情况下,仍然可以区分第一消息和第二消息,因此可以避免造成混乱。

Figure 202010756441

A message transmission method and device, wherein the implementation of the method includes: an AMF receiving a first message from a terminal device; the first message carries a second message sent to at least one third-party device, the third-party device being the the terminal device and the network device other than the AMF, the first message carries the first parameter, the second message carries the second parameter, and the first parameter is used to identify the first message , the second parameter is used to identify the second message; the second message is sent to the third-party device, where the second message carries the second parameter. The terminal device uses two layers of parameters to identify the first message and the second message respectively, so for AMF and third-party devices, when the terminal device sends multiple messages of the same type as the first message, the first message can still be distinguished. message and second message, thus avoiding confusion.

Figure 202010756441

Description

消息的传输方法、及设备Message transmission method and device

技术领域technical field

本发明涉及通信技术领域,特别涉及一种消息的传输方法、及设备。The present invention relates to the field of communication technologies, and in particular, to a message transmission method and device.

背景技术Background technique

为了应对无线宽带技术的挑战,保持第三代合作伙伴计划(Third GenerationPartnership Project,3GPP)网络的领先优势,3GPP标准组制定了下一代移动通信网络架构(Next Generation System),称为第五代移动通信技术(5th-Generation,5G)网络架构。该架构不但支持3GPP标准组定义的无线技术接入5G核心网(5G Core network),而且支持非3GPP(non-3GPP)接入技术通过non-3GPP转换功能(non-3GPP Interworking Function,N3IWF)或下一代接入网关(next Generation packet data Gateway,ngPDG)接入5G核心网。上述3GPP标准组定义的无线技术包括:长期演进(Long Term Evolution,LTE),5G无线接入网络(Radio Access Network,RAN)等。In order to meet the challenges of wireless broadband technology and maintain the leading edge of the Third Generation Partnership Project (3GPP) network, the 3GPP standard group has formulated the next generation mobile communication network architecture (Next Generation System), called the fifth generation mobile communication network. Communication technology (5th-Generation, 5G) network architecture. The architecture not only supports the wireless technologies defined by the 3GPP standards group to access the 5G Core network (5G Core network), but also supports non-3GPP (non-3GPP) access technologies through the non-3GPP Interworking Function (N3IWF) or Next Generation Packet Data Gateway (ngPDG) accesses the 5G core network. The wireless technologies defined by the above-mentioned 3GPP standard group include: Long Term Evolution (Long Term Evolution, LTE), 5G Radio Access Network (Radio Access Network, RAN), and the like.

其中,5G核心网的功能分为用户面功能(User plane function,UPF)和控制面功能(Control plane function,CP)。用户面网元主要负责分组数据包的转发、服务质量(Quality of Service,QoS)控制、计费信息统计等。控制面网元主要负责用户注册认证、移动性管理及向UPF下发数据包转发策略、QoS控制策略等。控制面网元可进一步细分为接入与移动管理功能(Core Access and Mobility Management Function,AMF)与会话管理功能(Session Management Function,SMF)。其中,AMF负责用户接入时的注册流程及用户移动过程中的位置管理。SMF负责用户发起业务时网络侧建立相应的会话连接,为用户提供具体服务,尤其是基于SMF与UPF之间的N4接口向UPF下发数据包转发策略、QoS策略等。Among them, the functions of the 5G core network are divided into a user plane function (UPF) and a control plane function (CP). The user plane network element is mainly responsible for packet data packet forwarding, quality of service (Quality of Service, QoS) control, and charging information statistics. The control plane network element is mainly responsible for user registration and authentication, mobility management, and delivery of data packet forwarding policies and QoS control policies to the UPF. The control plane network elements can be further subdivided into an access and mobility management function (Core Access and Mobility Management Function, AMF) and a session management function (Session Management Function, SMF). Among them, the AMF is responsible for the registration process during user access and the location management during user movement. SMF is responsible for establishing corresponding session connections on the network side when users initiate services to provide users with specific services, especially delivering data packet forwarding policies and QoS policies to UPF based on the N4 interface between SMF and UPF.

相比于4G架构,5G架构的一个重要差别在于接入与移动管理功能AMF与会话管理功能SMF分离。这意味着当用户设备(User Equipment,UE)发起会话时,即UE使用UE与AMF之间的N1接口发送非接入层(Non-Access Stadium,NAS)请求消息,在NAS请求消息中携带会话管理(Session Management,SM)消息,AMF需要将上述SM消息转发给SMF处理。An important difference of the 5G architecture compared to the 4G architecture is the separation of the access and mobility management function AMF from the session management function SMF. This means that when a user equipment (User Equipment, UE) initiates a session, that is, the UE sends a non-access stratum (Non-Access Stadium, NAS) request message using the N1 interface between the UE and the AMF, and the NAS request message carries the session Management (Session Management, SM) message, the AMF needs to forward the above SM message to the SMF for processing.

然而,目前的通信协议机制中没有提供AMF与SMF分别进行区分NAS请求消息和SM消息的方案,导致终端设备发送多条NAS请求消息的情况下,AMF和SMF无法区分这些消息;进一步地,AMF与SMF发送回复消息后,UE侧也无法识别回复消息是针对哪一条NAS请求消息的回复。因此目前的通信协议在UE发送多条NAS请求消息的情况下,会造成混乱。However, the current communication protocol mechanism does not provide a solution for AMF and SMF to distinguish NAS request messages and SM messages respectively, so that when a terminal device sends multiple NAS request messages, AMF and SMF cannot distinguish these messages; further, AMF After sending the reply message with the SMF, the UE side cannot identify which NAS request message the reply message is for. Therefore, the current communication protocol may cause confusion when the UE sends multiple NAS request messages.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供了一种消息的传输方法、及设备,用于在终端设备向AMF发送多条同类型消息的情况下,避免造成混乱。Embodiments of the present invention provide a message transmission method and device, which are used to avoid confusion when a terminal device sends multiple messages of the same type to the AMF.

一方面本发明实施例提供了一种消息的传输方法,包括:On the one hand, an embodiment of the present invention provides a method for transmitting a message, including:

接入及移动管理功能实体AMF接收来自终端设备的第一消息;所述第一消息中携带发往至少一个第三方设备的第二消息,所述第三方设备为所述终端设备和所述AMF之外的网络设备,所述第一消息中携带第一参数,所述第二消息中携带所述第二参数,所述第一参数用于标识所述第一消息,所述第二参数用于标识所述第二消息;The access and mobility management function entity AMF receives a first message from a terminal device; the first message carries a second message sent to at least one third-party device, where the third-party device is the terminal device and the AMF other network devices, the first message carries the first parameter, the second message carries the second parameter, the first parameter is used to identify the first message, and the second parameter is used for identifying the second message;

向所述第三方设备发送所述第二消息,所述第二消息中携带所述第二参数。Send the second message to the third-party device, where the second message carries the second parameter.

在本实施例中,第一消息是终端设备发给AMF的消息,可以携带给第三方设备的第二消息;可以理解的是由于第二消息要发送给第三方设备,那么该第三方设备根据第二消息的类型来确定;由于第二消息的类型可以有很多,因此第三方设备具体是什么本发明实施例可以不予限定。另外,第二消息可以不必只有一条,即使第二消息只有一条也可以发送给多个第三方设备,因此第三方设备不应理解为唯一的一个设备。In this embodiment, the first message is a message sent by the terminal device to the AMF, and can be carried to the second message of the third-party device; it can be understood that since the second message is to be sent to the third-party device, the third-party device will The type of the second message is determined; since there may be many types of the second message, the specific third-party device may not be limited in this embodiment of the present invention. In addition, there is no need to have only one second message, and even if there is only one second message, it can be sent to multiple third-party devices, so the third-party device should not be understood as the only one device.

上述第一参数和第二参数,分别用来在标识第一消息和第二消息;因此,第一参数和第二参数应当不同,并且具有唯一性;网络设备和终端设备,可以通过第一参数和第二参数唯一确定第一消息和第二消息。由于第一参数和第二参数具有唯一性,那么网络设备和终端设备均可以使用这两个参数对第一消息和第二消息进行检索或者称为索引。The above-mentioned first parameter and second parameter are used to identify the first message and the second message respectively; therefore, the first parameter and the second parameter should be different and unique; the network device and the terminal device can pass the first parameter and the second parameter uniquely determine the first message and the second message. Since the first parameter and the second parameter are unique, both the network device and the terminal device can use these two parameters to retrieve or index the first message and the second message.

上述第一消息中携带的第一参数,可以用来关联在相同接入技术上发起的同一个移动管理流程的消息流,即在相同接入技术上发起的同一个移动管理流程的消息流构成一个事务(transaction),例如UE在3GPP接入技术上发起的注册流程,第一消息为注册请求消息,终端和第一网络设备可以用该注册请求消息中的第一参数来关联该注册流程中的注册请求消息与注册响应消息,该注册响应消息包括注册接受消息或注册拒绝消息。可选地,该第一参数具体可以为接入事务标识(Aceess Transaction Identity,ATI),或者为移动事务标识(Mobility Transaction Identity,MTI),或者接入和移动事务标识(Access andMobility Transaction Identity,AMTI),或者5G事务标识(5G Transaction Identity,5GTI),本发明对该第一参数的具体命名不做限定。The first parameter carried in the above-mentioned first message can be used to associate the message flow of the same mobility management process initiated on the same access technology, that is, the message flow of the same mobility management process initiated on the same access technology. A transaction (transaction), such as a registration process initiated by the UE on the 3GPP access technology, the first message is a registration request message, and the terminal and the first network device can use the first parameter in the registration request message to associate the registration process. registration request message and registration response message, the registration response message includes a registration acceptance message or a registration rejection message. Optionally, the first parameter may specifically be an Access Transaction Identity (ATI), or a Mobility Transaction Identity (MTI), or an Access and Mobility Transaction Identity (AMTI) ), or a 5G transaction identity (5G Transaction Identity, 5GTI), the present invention does not limit the specific naming of the first parameter.

在一个可选的实现方式中,还提供了第一消息的回复消息的实现方案,所述方法还包括:In an optional implementation manner, an implementation scheme of the reply message of the first message is also provided, and the method further includes:

在接收到包含所述第二参数的所述第二消息的响应消息后,所述AMF向所述终端设备发送所述第一消息的回复消息,所述回复消息携带所述响应消息,所述回复消息中携带所述第一参数,所述响应消息中携带所述第二参数。After receiving the response message for the second message including the second parameter, the AMF sends a reply message for the first message to the terminal device, where the reply message carries the response message, and the The reply message carries the first parameter, and the response message carries the second parameter.

由于第二参数用于区分第二消息,那么在第二消息的响应消息中可以携带该第二参数,AMF可以将该响应消息放到第一消息的回复消息内,那么到该回复消息到达终端设备后,可以通过该第一参数确定该回复消息是用于上述第一消息,通过该第二参数确定该响应消息是用于响应第二消息。Since the second parameter is used to distinguish the second message, the second parameter can be carried in the response message of the second message, and the AMF can put the response message into the reply message of the first message, and then the reply message reaches the terminal. After the device is installed, it can be determined by the first parameter that the reply message is for the above-mentioned first message, and it can be determined by the second parameter that the response message is used to respond to the second message.

在一个可选的实现方式中,所述第一消息包括:非接入层NAS请求消息,或非接入层NAS传输消息(NAS transport message)。In an optional implementation manner, the first message includes: a non-access stratum NAS request message, or a non-access stratum NAS transport message (NAS transport message).

需要说明的是,基于前述说明,第一消息可以是任意在终端设备和AMF之间传递的消息,只要其中包含了发往第三方设备的消息就满足本发明实施例所涉及要解决技术问题的范畴。因此以上NAS请求消息或NAS传输消息的举例不应理解为对本发明实施例的唯一性限定。It should be noted that, based on the foregoing description, the first message may be any message transmitted between the terminal device and the AMF, as long as it contains a message sent to a third-party device, it satisfies the technical problem to be solved in the embodiment of the present invention. category. Therefore, the above examples of the NAS request message or the NAS transmission message should not be construed as a unique limitation on the embodiments of the present invention.

在一个可选的实现方式中,本发明实施例还提供了,AMF选择第三方设备的具体实现方案,如下:在向所述第三方设备发送所述第二消息之前,所述方法还包括:In an optional implementation manner, this embodiment of the present invention further provides a specific implementation solution for the AMF to select a third-party device, as follows: before sending the second message to the third-party device, the method further includes:

所述AMF基于所述第二消息的类型选择所述第三方设备。The AMF selects the third-party device based on the type of the second message.

在本实施例中,第二消息的类型决定了该第二消息应当发往哪一个设备,因此AMF可以基于该第二消息的类型来选择第三方设备。In this embodiment, the type of the second message determines which device the second message should be sent to, so the AMF can select a third-party device based on the type of the second message.

在一个可选的实现方式中,还提供了不同的第二消息类型对应的第三方设备的几种可能性的举例,如下:所述第二消息包括:会话管理SM消息,所述第三方设备包括:会话管理功能SMF;In an optional implementation manner, an example of several possibilities of the third-party device corresponding to different second message types is also provided, as follows: the second message includes: a session management SM message, the third-party device Including: session management function SMF;

或者,所述第二消息包括:可扩展认证协议EAP消息,所述第三方设备包括:鉴权服务器功能(Authentication Server Function,AUSF);Alternatively, the second message includes: an extensible authentication protocol EAP message, and the third-party device includes: an authentication server function (Authentication Server Function, AUSF);

或者,所述第二消息包括:短消息,所述第三方设备包括:短消息业务功能(ShortMessage Service Function,SMSF)。Or, the second message includes: a short message, and the third-party device includes: a short message service function (ShortMessage Service Function, SMSF).

可以理解的是,基于前文说明的第二消息的类型还可能有很多,因此以上举例不应理解为对本发明实施例的唯一性限定。It can be understood that there may be many types of the second message based on the foregoing description. Therefore, the above examples should not be construed as a unique limitation on the embodiments of the present invention.

在一个可选的实现方式中,还进一步提供了SM消息的类型,所述SM消息包括:In an optional implementation manner, the type of the SM message is further provided, and the SM message includes:

会话建立消息、会话修改消息、或会话删除消息。A session establishment message, a session modification message, or a session deletion message.

SM消息是发往SMF的第二消息,因此该SM消息可以是SMF所能提供的任意功能的消息,以上三种是较为常见的消息举例。The SM message is the second message sent to the SMF, so the SM message can be a message of any function provided by the SMF, and the above three are examples of relatively common messages.

在一个可选的实现方式中,还提供了第一消息携带该第一参数的具体实现方案,所述第一消息中携带第一参数包括:In an optional implementation manner, a specific implementation scheme for carrying the first parameter in the first message is also provided, and the first parameter in the first message includes:

所述第一消息的消息头中携带所述第一参数,或者,所述第一消息的消息体中携带所述第一参数。The first parameter is carried in the message header of the first message, or the first parameter is carried in the message body of the first message.

在本实施例中,消息头也称为消息头部,通常来说是消息的协议头,除消息头以外的其他部分为消息体。In this embodiment, the message header is also called the message header, which is generally the protocol header of the message, and other parts except the message header are the message body.

在一个可选的实现方式中,还提供了第一消息携带第二消息的可选实现方案,如下:所述第一消息中携带发往至少一个第三方设备的第二消息包括:所述第一消息的容器信元中包含所述第二消息。In an optional implementation manner, an optional implementation solution in which the first message carries the second message is also provided, as follows: the first message carrying the second message sent to at least one third-party device includes: the first message The second message is contained in a container information element of a message.

基于第二消息包含在容器信元中,那么该容器信元可以具有容器头和容器体,因此第二参数可以携带在该容器头或者容器体中。Based on the fact that the second message is contained in the container information element, the container information element may have a container header and a container body, so the second parameter may be carried in the container header or the container body.

在一个可选的实现方式中,还提供了第二消息中携带的其他消息的实现方案,如下:所述第二消息携带消息族(message family)类型,所述消息族类型用于确定消息归属的标准组织。In an optional implementation manner, an implementation solution of other messages carried in the second message is also provided, as follows: the second message carries a message family type, and the message family type is used to determine the attribution of the message standards organization.

该消息族类型可以用于告知AMF如何识别第二消息的类型,第二消息的类型在会使用较为简短的例如序号来表示消息的类型,在不同的消息族中不同的序号会表示不同的含义,因此告知消息族类型将使AMF准确识别该第二消息的类型,从而准确确定第三方设备是哪一个。The message family type can be used to tell AMF how to identify the type of the second message. The type of the second message will use a relatively short sequence number to represent the type of the message, and different sequence numbers in different message families will represent different meanings , so informing the message family type will enable the AMF to accurately identify the type of the second message, so as to accurately determine which third-party device is.

在一个可选的实现方式中,还提供了消息族类型的举例如下:所述消息族类型包括:第三代合作伙伴计划3GPP、互联网工程任务组(Internet Engineering Task Force,IETF)电子电气工程师协会(Institute for Electrical and Electronics Engineers,IEEE)、国际电信联盟(International Telecommunication Union,ITU)、欧洲电信标准协会(European Telecommunications Standards Institution,ETSI)、以及国际标准化组织(International Organization for Standardization,ISO)中的至少一个。In an optional implementation manner, an example of a message family type is also provided as follows: the message family type includes: 3rd Generation Partnership Project 3GPP, Internet Engineering Task Force (Internet Engineering Task Force, IETF) Institute of Electrical and Electronic Engineers (Institute for Electrical and Electronics Engineers, IEEE), International Telecommunication Union (International Telecommunication Union, ITU), European Telecommunications Standards Institution (European Telecommunications Standards Institution, ETSI), and International Organization for Standardization (International Organization for Standardization, ISO) at least One.

在一个可选的实现方式中,还提供了终端设备使用不同类型的接入网络的实现方案,具体如下:所述第一消息中还包括:In an optional implementation manner, an implementation solution for the terminal device to use different types of access networks is also provided, which is specifically as follows: the first message further includes:

接入类型参数,所述接入类型参数用于指示接入网络的类型;an access type parameter, where the access type parameter is used to indicate the type of the access network;

所述AMF向所述终端设备发送回复消息包括:The AMF sending a reply message to the terminal device includes:

所述AMF通过所述接入类型参数指示的接入网络向所述终端设备发送所述回复消息。The AMF sends the reply message to the terminal device through the access network indicated by the access type parameter.

在一个可选的实现方式中,还提供了接入类型参数在第一消息中的携带方式,如下:所述第一消息头中携带所述接入类型参数,或者所述第一消息的消息体中携带所述接入类型参数。In an optional implementation manner, a manner of carrying the access type parameter in the first message is also provided, as follows: the first message header carries the access type parameter, or the message of the first message The access type parameter is carried in the body.

在一个可选的实现方式中,还提供了第一参数和第二参数的可选实现方案如下:所述第一参数和所述第二参数中的至少一个为流程事务标识(Procedure TransactionIdentity,PTI)参数。In an optional implementation manner, an optional implementation scheme of the first parameter and the second parameter is also provided as follows: at least one of the first parameter and the second parameter is a process transaction identifier (Procedure TransactionIdentity, PTI )parameter.

二方面本发明实施例还提供了另一种消息的传输方法,包括:In the second aspect, the embodiment of the present invention also provides another method for transmitting a message, including:

终端设备向接入及移动管理功能实体AMF发送第一消息;The terminal device sends a first message to the access and mobility management function entity AMF;

所述第一消息中携带发往至少一个第三方设备的第二消息,所述第三方设备为所述终端设备和所述AMF之外的网络设备,所述第一消息中携带第一参数,所述第二消息中携带所述第二参数,所述第一参数用于标识所述第一消息,所述第二参数用于标识所述第二消息。The first message carries a second message sent to at least one third-party device, where the third-party device is the terminal device and a network device other than the AMF, and the first message carries the first parameter, The second message carries the second parameter, the first parameter is used to identify the first message, and the second parameter is used to identify the second message.

可以理解的是,在终端设备一侧使用了两层的参数进行分别标识第一消息和第二消息,可以让AMF和第三方设备能够区分第一消息和第二消息,那么相应地,在网络侧的AMF和第三方设备返回回复消息的时候也可以使用该两层的参数进行分别标识,使终端设备能够区分上述回复消息是正对哪一个消息的回复。It can be understood that two layers of parameters are used on the terminal device side to identify the first message and the second message respectively, so that the AMF and the third-party device can distinguish the first message and the second message, then correspondingly, on the network When the AMF on the side and the third-party device return the reply message, the parameters of the two layers can also be used for identification respectively, so that the terminal device can distinguish which message the above reply message is replying to.

在一个可选的实现方式中,在终端设备向接入及移动管理功能实体AMF发送第一消息之后,所述方法还包括:In an optional implementation manner, after the terminal device sends the first message to the access and mobility management function entity AMF, the method further includes:

接收来自于所述AMF的回复消息,所述回复消息携带所述响应消息,所述回复消息中携带所述第一参数,所述响应消息中携带所述第二参数;receiving a reply message from the AMF, where the reply message carries the response message, the reply message carries the first parameter, and the response message carries the second parameter;

所述终端设备根据所述回复消息中携带的所述第一参数确定所述回复消息用于回复所述第一消息,根据所述响应消息中携带的第二参数确定所述响应消息用于响应所述第二消息。The terminal device determines that the reply message is used to reply to the first message according to the first parameter carried in the reply message, and determines that the response message is used to reply according to the second parameter carried in the response message the second message.

在一个可选的实现方式中,所述第一消息包括:非接入层NAS请求消息,或非接入层NAS传输消息。In an optional implementation manner, the first message includes: a non-access stratum NAS request message, or a non-access stratum NAS transmission message.

在一个可选的实现方式中,所述第二消息包括:会话管理SM消息,所述第三方设备包括:会话管理功能SMF;In an optional implementation manner, the second message includes: a session management SM message, and the third-party device includes: a session management function SMF;

或者,所述第二消息包括:可扩展认证协议EAP消息,所述第三方设备包括:鉴权服务器功能AUSF;Alternatively, the second message includes: an Extensible Authentication Protocol EAP message, and the third-party device includes: an authentication server function AUSF;

或者,所述第二消息包括:短消息,所述第三方设备包括:短消息业务功能SMSF。Or, the second message includes: a short message, and the third-party device includes: a short message service function SMSF.

在一个可选的实现方式中,所述SM消息包括:In an optional implementation manner, the SM message includes:

会话建立消息、会话修改消息、或会话删除消息。A session establishment message, a session modification message, or a session deletion message.

在一个可选的实现方式中,所述第一消息中携带第一参数包括:In an optional implementation manner, the first parameter carried in the first message includes:

所述第一消息的消息头中携带所述第一参数,或者,所述第一消息的消息体中携带所述第一参数。The first parameter is carried in the message header of the first message, or the first parameter is carried in the message body of the first message.

在一个可选的实现方式中,所述第一消息中携带发往至少一个第三方设备的第二消息包括:所述第一消息的容器信元中包含所述第二消息。In an optional implementation manner, the carrying of the second message sent to at least one third-party device in the first message includes: the container information element of the first message includes the second message.

在一个可选的实现方式中,所述第二消息携带消息族类型,所述消息族类型用于确定消息归属的标准组织。In an optional implementation manner, the second message carries a message family type, and the message family type is used to determine a standard organization to which the message belongs.

在一个可选的实现方式中,所述消息族类型包括:第三代合作伙伴计划3GPP、互联网工程任务组IETF、电子电气工程师协会IEEE、国际电信联盟ITU、欧洲电信标准协会ETSI、以及国际标准化组织ISO中的至少一个。In an optional implementation manner, the message family types include: 3rd Generation Partnership Project 3GPP, Internet Engineering Task Force IETF, Institute of Electrical and Electronic Engineers IEEE, International Telecommunication Union ITU, European Telecommunications Standards Institute ETSI, and International Standardization Organize at least one of the ISOs.

在一个可选的实现方式中,所述第一消息中还包括:In an optional implementation manner, the first message further includes:

接入类型参数,所述接入类型参数用于指示接入网络的类型;an access type parameter, where the access type parameter is used to indicate the type of the access network;

所述接收回复消息包括:The receiving reply message includes:

使用所述接入类型参数指示的接入网络接收所述回复消息。The reply message is received using the access network indicated by the access type parameter.

在一个可选的实现方式中,所述第一消息头中携带所述接入类型参数,或者,所述第一消息的消息体中携带所述接入类型参数。In an optional implementation manner, the first message header carries the access type parameter, or the message body of the first message carries the access type parameter.

在一个可选的实现方式中,其特征在于,所述第一参数和所述第二参数中的至少一个为流程事务标识PTI参数。In an optional implementation manner, at least one of the first parameter and the second parameter is a process transaction identifier PTI parameter.

三方面本发明实施例还提供了一种接入及移动管理功能实体,包括:Three aspects The embodiment of the present invention further provides an access and mobility management functional entity, including:

第一接收单元,用于接收来自终端设备的第一消息;所述第一消息中携带发往至少一个第三方设备的第二消息,所述第三方设备为所述终端设备和所述接入及移动管理功能实体AMF之外的网络设备,所述第一消息中携带第一参数,所述第二消息中携带所述第二参数,所述第一参数用于标识所述第一消息,所述第二参数用于标识所述第二消息;a first receiving unit, configured to receive a first message from a terminal device; the first message carries a second message sent to at least one third-party device, where the third-party device is the terminal device and the access device and a network device other than the mobility management function entity AMF, the first message carries the first parameter, the second message carries the second parameter, and the first parameter is used to identify the first message, the second parameter is used to identify the second message;

第一发送单元,用于向所述第三方设备发送所述第二消息,所述第二消息中携带所述第二参数。A first sending unit, configured to send the second message to the third-party device, where the second message carries the second parameter.

在一个可选的实现方式中,所述接入及移动管理功能实体还包括:In an optional implementation manner, the access and mobility management functional entity further includes:

第二接收单元,接收所述第三方设备返回的包含所述第二参数的所述第二消息的响应消息,所述响应消息中携带所述第二参数;a second receiving unit, receiving a response message of the second message including the second parameter returned by the third-party device, where the response message carries the second parameter;

第二发送单元,用于向所述终端设备发送所述第一消息的回复消息,所述回复消息携带所述响应消息,所述回复消息中携带所述第一参数。A second sending unit, configured to send a reply message of the first message to the terminal device, where the reply message carries the response message, and the reply message carries the first parameter.

在一个可选的实现方式中,所述第一消息包括:非接入层NAS请求消息,或非接入层NAS传输消息。In an optional implementation manner, the first message includes: a non-access stratum NAS request message, or a non-access stratum NAS transmission message.

在一个可选的实现方式中,所述接入及移动管理功能实体还包括:In an optional implementation manner, the access and mobility management functional entity further includes:

设备选择单元,用于在所述第一发送单元向所述第三方设备发送所述第二消息之前,基于所述第二消息的类型选择所述第三方设备。A device selection unit, configured to select the third-party device based on the type of the second message before the first sending unit sends the second message to the third-party device.

在一个可选的实现方式中,所述第二消息包括:会话管理SM消息,所述第三方设备包括:会话管理功能SMF;In an optional implementation manner, the second message includes: a session management SM message, and the third-party device includes: a session management function SMF;

或者,所述第二消息包括:可扩展认证协议EAP消息,所述第三方设备包括:鉴权服务器功能AUSF;Alternatively, the second message includes: an Extensible Authentication Protocol EAP message, and the third-party device includes: an authentication server function AUSF;

或者,所述第二消息包括:短消息,所述第三方设备包括:短消息业务功能SMSF。Or, the second message includes: a short message, and the third-party device includes: a short message service function SMSF.

在一个可选的实现方式中,所述SM消息包括:In an optional implementation manner, the SM message includes:

会话建立消息、会话修改消息、或会话删除消息。A session establishment message, a session modification message, or a session deletion message.

在一个可选的实现方式中,所述第一消息中携带第一参数包括:In an optional implementation manner, the first parameter carried in the first message includes:

所述第一消息的消息头中携带所述第一参数,或者,所述第一消息的消息体中携带所述第一参数。The first parameter is carried in the message header of the first message, or the first parameter is carried in the message body of the first message.

在一个可选的实现方式中,所述第一消息中携带发往至少一个第三方设备的第二消息包括:所述第一消息的容器信元中包含所述第二消息。In an optional implementation manner, the carrying of the second message sent to at least one third-party device in the first message includes: the container information element of the first message includes the second message.

在一个可选的实现方式中,所述第二消息携带消息族类型,所述消息族类型用于确定消息归属的标准组织。In an optional implementation manner, the second message carries a message family type, and the message family type is used to determine a standard organization to which the message belongs.

在一个可选的实现方式中,所述消息族类型包括:第三代合作伙伴计划3GPP、互联网工程任务组IETF电子电气工程师协会IEEE、国际电信联盟ITU、欧洲电信标准协会ETSI、以及国际标准化组织ISO中的至少一个。In an optional implementation manner, the message family types include: 3rd Generation Partnership Project 3GPP, Internet Engineering Task Force IETF Institute of Electrical and Electronic Engineers IEEE, International Telecommunication Union ITU, European Telecommunications Standards Institute ETSI, and International Organization for Standardization At least one of ISO.

在一个可选的实现方式中,所述第一消息中还包括:In an optional implementation manner, the first message further includes:

接入类型参数,所述接入类型参数用于指示接入网络的类型;an access type parameter, where the access type parameter is used to indicate the type of the access network;

所述第二发送单元,用于通过所述接入类型参数指示的接入网络向所述终端设备发送所述回复消息。The second sending unit is configured to send the reply message to the terminal device through the access network indicated by the access type parameter.

在一个可选的实现方式中,所述第一消息头中携带所述接入类型参数,或者所述第一消息的消息体中携带所述接入类型参数。In an optional implementation manner, the first message header carries the access type parameter, or the message body of the first message carries the access type parameter.

在一个可选的实现方式中,所述第一参数和所述第二参数中的至少一个为流程事务标识PTI参数。In an optional implementation manner, at least one of the first parameter and the second parameter identifies a PTI parameter for a process transaction.

四方面本发明实施例还提供了一种终端设备,包括:Four aspects The embodiment of the present invention further provides a terminal device, including:

消息生成单元,用于生成第一消息,所述第一消息中携带发往至少一个第三方设备的第二消息,所述第三方设备为所述终端设备和接入及移动管理功能实体AMF之外的网络设备,所述第一消息中携带第一参数,所述第二消息中携带所述第二参数,所述第一参数用于标识所述第一消息,所述第二参数用于标识所述第二消息;A message generating unit, configured to generate a first message, where the first message carries a second message sent to at least one third-party device, where the third-party device is the one between the terminal device and the access and mobility management function entity AMF; external network equipment, the first message carries the first parameter, the second message carries the second parameter, the first parameter is used to identify the first message, and the second parameter is used to identifying the second message;

发送单元,用于向所述AMF发送所述第一消息。a sending unit, configured to send the first message to the AMF.

在一个可选的实现方式中,所述终端设备还包括:In an optional implementation manner, the terminal device further includes:

接收单元,用于在所述发送单元向所述AMF发送所述第一消息之后,接收来自于所述AMF的回复消息,所述回复消息携带所述响应消息,所述回复消息中携带所述第一参数,所述响应消息中携带所述第二参数;a receiving unit, configured to receive a reply message from the AMF after the sending unit sends the first message to the AMF, where the reply message carries the response message, and the reply message carries the the first parameter, the second parameter is carried in the response message;

消息确认单元,用于根据所述回复消息中携带的所述第一参数确定所述回复消息用于回复所述第一消息,根据所述响应消息中携带的第二参数确定所述响应消息用于响应所述第二消息。A message confirmation unit, configured to determine that the reply message is used to reply to the first message according to the first parameter carried in the reply message, and determine that the reply message is used to reply to the first message according to the second parameter carried in the response message in response to the second message.

在一个可选的实现方式中,所述第一消息中还包括:In an optional implementation manner, the first message further includes:

接入类型参数,所述接入类型参数用于指示接入网络的类型;an access type parameter, where the access type parameter is used to indicate the type of the access network;

所述接收单元,用于使用所述接入类型参数指示的接入网络接收所述回复消息。The receiving unit is configured to use the access network indicated by the access type parameter to receive the reply message.

五方面本发明实施例还提供了一种接入及移动管理功能实体,包括:输入输出设备、处理器以及存储器,在所述存储器中存储有可执行指令,所述处理器在执行所述可执行指令实现前述一方面提供的任意一项所述的方法流程。Five aspects The embodiment of the present invention further provides an access and mobility management functional entity, including: an input and output device, a processor, and a memory, where executable instructions are stored in the memory, and the processor executes the executable instructions. Executing the instruction implements the method process described in any one of the preceding aspects.

六方面本发明实施例还提供了一种终端设备,包括:输入输出设备、处理器以及存储器,在所述存储器中存储有可执行指令,所述处理器在执行所述可执行指令实现前述二方面提供的任意一项所述的方法流程。Sixth aspect An embodiment of the present invention further provides a terminal device, including: an input and output device, a processor, and a memory, where executable instructions are stored in the memory, and the processor implements the foregoing two when executing the executable instructions. The method flow described in any one of the aspects provided.

七方面本发明实施例还提供了一种存储介质,该存储介质中包含可执行指令,在所述可执行指令被执行的情况下,实现前述一方面或者二方面提供的任意一项的方法流程。Seventh aspect The embodiment of the present invention further provides a storage medium, the storage medium contains executable instructions, and when the executable instructions are executed, the method flow of any one of the foregoing aspect or the second aspect is implemented. .

从以上技术方案可以看出,本发明实施例具有以下优点:As can be seen from the above technical solutions, the embodiments of the present invention have the following advantages:

本发明实施例中,终端设备在发给AMF的第一消息中包含了发往第三设备的第二消息,使用两层的参数分别标识了第一消息和第二消息,那么对于AMF和第三方设备而言,终端设备发送多条与第一消息同类型的消息的情况下,仍然可以区分第一消息和第二消息,因此可以避免造成混乱。In this embodiment of the present invention, the first message sent to the AMF by the terminal device includes the second message sent to the third device, and the first message and the second message are respectively identified by two-layer parameters. As far as the third-party device is concerned, when the terminal device sends multiple messages of the same type as the first message, the first message and the second message can still be distinguished, so confusion can be avoided.

附图说明Description of drawings

为了更清楚地说明本发明实施例或背景技术中的技术方案,下面将对本发明实施例或背景技术中所需要使用的附图进行说明。In order to more clearly describe the technical solutions in the embodiments of the present invention or the background technology, the accompanying drawings required in the embodiments or the background technology of the present invention will be described below.

图1为本发明实施例系统结构示意图;1 is a schematic diagram of a system structure according to an embodiment of the present invention;

图2为本发明实施例方法流程示意图;2 is a schematic flowchart of a method according to an embodiment of the present invention;

图3A为本发明实施例NAS消息结构示意图;3A is a schematic diagram of a NAS message structure according to an embodiment of the present invention;

图3B为本发明实施例NAS消息结构示意图;3B is a schematic diagram of a NAS message structure according to an embodiment of the present invention;

图4为本发明实施例方法流程示意图;4 is a schematic flowchart of a method according to an embodiment of the present invention;

图5为本发明实施例方法流程示意图;5 is a schematic flowchart of a method according to an embodiment of the present invention;

图6为本发明实施例AMF结构示意图;6 is a schematic structural diagram of an AMF according to an embodiment of the present invention;

图7为本发明实施例终端设备结构示意图;7 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;

图8为本发明实施例AMF结构示意图;8 is a schematic structural diagram of an AMF according to an embodiment of the present invention;

图9为本发明实施例终端设备结构示意图。FIG. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.

具体实施方式Detailed ways

下面结合本发明实施例中的附图对本发明实施例进行描述。The embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention.

如果图1所示,为5G通信系统的系统举例,在图1中包含:UE、无线接入网(RadioAccess Network,RNA)或者接入网(Access Network,AN)、用户接口功能(User PortFunction,UPF)、数据网络(Data Network,DN)、AMF、SMF、分组控制功能(Packet ControlFunction,PCF)、应用功能(Application Function,AF)、鉴权服务器功能(AuthenticationServer Function,AUSF)、归一化数据管理(Unified Data Management,UDM);分别使用N1~N15接口进行通信。As shown in FIG. 1, it is an example of a 5G communication system, which includes: UE, radio access network (RadioAccess Network, RNA) or access network (Access Network, AN), user interface function (User PortFunction, UPF), Data Network (DN), AMF, SMF, Packet Control Function (PCF), Application Function (AF), Authentication Server Function (AUSF), normalized data Management (Unified Data Management, UDM); respectively use N1 to N15 interfaces for communication.

如图2所示,为本发明实施例的一个方法流程示意图,包括:As shown in FIG. 2, it is a schematic flowchart of a method according to an embodiment of the present invention, including:

201:终端设备向AMF发送第一消息,该第一消息中携带发往至少一个第三方设备的第二消息,第一消息中携带第一参数,第二消息中携带第二参数;201: The terminal device sends a first message to the AMF, where the first message carries a second message sent to at least one third-party device, the first message carries a first parameter, and the second message carries a second parameter;

上述第一参数用于标识所述第一消息,所述第二参数用于标识所述第二消息。第一参数和第二参数具有唯一性,用于区分不同的消息;那么接收到第一消息和第二消息的设备而言,除了区分不同的第一消息和第第二消息外,还可以用来进行索引等其他用途。The above-mentioned first parameter is used to identify the first message, and the second parameter is used to identify the second message. The first parameter and the second parameter are unique and are used to distinguish different messages; then, for the device that receives the first message and the second message, in addition to distinguishing different first messages and second messages, it can also use for indexing and other purposes.

202:AMF接收到上述第一消息后,获得上述第二消息,根据第二消息的消息类型确定第二消息应该发往哪一个第三设备,然后将第二消息发给第三设备,在第二消息中携带上述第二参数;202: After receiving the first message, the AMF obtains the second message, determines to which third device the second message should be sent according to the message type of the second message, and then sends the second message to the third device. The second message carries the above-mentioned second parameter;

203:第三设备执行完第二消息请求的内容后,返回上述第二消息的响应消息,在该响应消息中携带上述第二参数;203: After the third device executes the content of the second message request, it returns a response message of the second message, and the response message carries the second parameter;

204:AMF在接收到上述第二消息的响应消息后,在第一消息的回复消息中携带上述第二消息的响应消息,向终端设备发送上述回复消息。204: After receiving the response message of the second message, the AMF carries the response message of the second message in the reply message of the first message, and sends the reply message to the terminal device.

205:终端设备在接收到上述回复消息后,解析后发现上述第一参数和上述第二参数,那么依据上述第一参数可以确定该回复消息用户回复上述第一消息,依据上述第二参数可以确定该回复消息中的响应消息用于响应第二消息。205: After receiving the reply message, the terminal device parses and finds the first parameter and the second parameter, then it can be determined according to the first parameter that the reply message user replies to the first message, and can be determined according to the second parameter The response message in the reply message is used to respond to the second message.

基于以上说明可知,终端设备在发给AMF的第一消息中包含了发往第三设备的第二消息,使用两层的参数分别标识了第一消息和第二消息,那么对于AMF和第三方设备而言,终端设备发送多条与第一消息同类型的消息的情况下,仍然可以区分第一消息和第二消息,因此可以避免造成混乱。Based on the above description, it can be seen that the first message sent to the AMF by the terminal device includes the second message sent to the third device, and the first message and the second message are respectively identified by two-layer parameters. In terms of equipment, when the terminal equipment sends multiple messages of the same type as the first message, the first message and the second message can still be distinguished, so confusion can be avoided.

作为一个举例,在后续实施例中,将以第一消息为NAS消息,第二消息为SM请求消息作为举例,那么第三方设备将会是SMF;那么对应到图1所示的网络结构,参与本实施例举例的设备包含:UE、AMF以及SMF;三者之间的通信可以参考图1所示系统结构中的端口。As an example, in the following embodiments, the first message is the NAS message and the second message is the SM request message as an example, then the third-party device will be the SMF; then corresponding to the network structure shown in FIG. The device exemplified in this embodiment includes: UE, AMF, and SMF; for communication among the three, reference may be made to the ports in the system structure shown in FIG. 1 .

当UE发出多条NAS消息给AMF,且均携带会话管理(Session Management,SM)请求消息的情况下,AMF与SMF将无法对收到的多条NAS消息进行区分,因此在AMF和SMF侧会发生混乱;相应地,AMF和SMF发送的回复消息,UE侧也将无法识别回复消息是针对之前发送的哪条NAS消息及SM请求消息。When the UE sends multiple NAS messages to the AMF, all of which carry Session Management (SM) request messages, the AMF and SMF will not be able to distinguish the multiple received NAS messages, so the AMF and SMF sides will Confusion occurs; accordingly, for the reply messages sent by AMF and SMF, the UE side will not be able to identify which NAS message and SM request message the reply message is for.

本发明实施例将要解决UE与向AMF发起多个流程的情况下,网络侧的AMF和其他设备对这多个流程的消息进行跟踪和识别问题,并且本发明实施例还可以支持多种类型的消息嵌套和消息路由。在本实施例的举例中,可以支持在NAS消息中携带SM请求消息,还可以进一步扩展支持其他多种类型消息参数,实现基于具体消息类型的消息路由。本发明实施例可以应用于5G系统架构,包括3GPP接入与non-3GPP接入场景;可以适用于任何接入或会话管理流程,以下实施例以会话管理流程为例进行举例说明。本实施例的举例涉及到的网元包括:AMF,SMF,UE,AN等。其中,AN包括3GPP的RAN,或non-3GPP的接入网络,如:非3GPP转换功能(non-3GPP interworking function,N3IWF)、下一代接入网关(next generationpacket data gateway,ngPDG)、或固网接入网关(access Gateway function,AGF)等。The embodiments of the present invention will solve the problem that when the UE initiates multiple processes to the AMF, the AMF and other devices on the network side track and identify the messages of the multiple processes, and the embodiments of the present invention can also support multiple types of Message nesting and message routing. In the example of this embodiment, the SM request message can be supported in the NAS message, and other multiple types of message parameters can be further extended to implement message routing based on specific message types. The embodiments of the present invention can be applied to 5G system architecture, including 3GPP access and non-3GPP access scenarios; can be applied to any access or session management process, and the following embodiments take the session management process as an example for illustration. The network elements involved in the example of this embodiment include: AMF, SMF, UE, AN, and so on. The AN includes a 3GPP RAN, or a non-3GPP access network, such as a non-3GPP interworking function (N3IWF), a next generation packet data gateway (ngPDG), or a fixed network Access Gateway (access Gateway function, AGF), etc.

在本发明实施例中,定义了在NAS消息中包括多层流程索引参数(如:流程事务标识PTI:Procedure Transaction Identity)及容器参数(container)。上述容器参数可以支持多种消息类型,如3GPP定义的会话消息(会话管理Session manager,SM)类型、短消息业务(Short Message Service,SMS)类型,或其他标准组织定义的可扩展认证协议(Extensible Authentication Protocol,EAP)消息类型,动态主机配置协议(DynamicHost Configuration Protocol,DHCP)消息类型等。如下:In the embodiment of the present invention, it is defined that the NAS message includes a multi-layer process index parameter (eg, a process transaction identifier PTI: Procedure Transaction Identity) and a container parameter (container). The above container parameters can support multiple message types, such as the session message (Session manager, SM) type defined by 3GPP, the Short Message Service (Short Message Service, SMS) type, or the Extensible Authentication Protocol (Extensible Authentication Protocol) defined by other standard organizations. Authentication Protocol, EAP) message type, Dynamic Host Configuration Protocol (Dynamic Host Configuration Protocol, DHCP) message type, etc. as follows:

新NAS消息结构简图,如图3A所示:A schematic diagram of the new NAS message structure, as shown in Figure 3A:

在NAS消息中包含:NAS消息头和NAS消息体;其中,在NAS消息头中可以包含,PTI和消息类型(Message type);在NAS消息体中包含信息单元(Information Element,IE),UE标识(Identity,ID),注册类型(registration type)、容器(Container)。The NAS message includes: a NAS message header and a NAS message body; the NAS message header may include, PTI and a message type (Message type); the NAS message body includes an information element (Information Element, IE), the UE identity (Identity, ID), registration type (registration type), container (Container).

其中,容器包含:PTI,协议类型(Protocol type),协议识别码(ProtocolDiscriminator)和容器IE。该容器IE内可以包含第二消息的具体内容。The container includes: PTI, protocol type (Protocol type), protocol identifier (Protocol Discriminator) and container IE. The container IE may contain specific content of the second message.

更具体地,如图3B所示,横向1~8和纵向字节1~m+1,是各部分所占的存储空间。其中第一消息包含安全头类型、协议区分符、扩展的协议区分符、接入和移动事务标识、消息类型...移动管理信元,第二消息的具体内容包含在容器内,容器包括:容器头、PDU会话标识、协议区分符、消息族类型、会话事务标识、消息类型、会话信元;由于第一消息中可以包含发往其他第三方设备的消息,因此可以包含其他移动管理信元。More specifically, as shown in FIG. 3B , horizontal bytes 1 to 8 and vertical bytes 1 to m+1 are the storage spaces occupied by each part. Wherein the first message includes security header type, protocol identifier, extended protocol identifier, access and mobility transaction identifier, message type... mobility management information element, and the specific content of the second message is contained in a container, and the container includes: Container header, PDU session identifier, protocol specifier, message family type, session transaction identifier, message type, session information element; since the first message can contain messages sent to other third-party devices, it can contain other mobility management information elements .

如图4所示,为本发明实施例的其中一个举例,具体如下:As shown in FIG. 4, it is an example of the embodiment of the present invention, and the details are as follows:

401A:UE发起会话建立流程,即:UE向AMF发送NAS请求消息,上述NAS请求消息中包含发送SMF的会话消息(SM消息)。401A: The UE initiates a session establishment process, that is, the UE sends a NAS request message to the AMF, where the NAS request message includes a session message (SM message) for sending SMF.

在本实施例中,不对SM消息类型进行唯一性限定,该SM消息可以为:PDU会话建立请求消息(Session Establishment Request)。In this embodiment, the type of the SM message is not uniquely limited, and the SM message may be: a PDU session establishment request message (Session Establishment Request).

具体的,UE在上述NAS请求消息中设置第一流程索引参数(PTI),如令PTI 1=A1,其中A1为当前未使用的任何数值;在SM消息中设置第二流程索引参数(PTI),如令PTI 2=B1,该B1也为当前未使用的任何数值。Specifically, the UE sets the first process index parameter (PTI) in the above NAS request message, such as PTI 1=A1, where A1 is any value that is not currently used; the second process index parameter (PTI) is set in the SM message , if PTI 2=B1, the B1 is also any value that is not currently used.

其中,第一PTI可有如下几种携带方式:NAS消息头中包括第一流程索引参数,或者,NAS消息体中包括第一流程索引参数。The first PTI may be carried in the following manners: the NAS message header includes the first process index parameter, or the NAS message body includes the first process index parameter.

第二PTI可以有如下几种携带方式:SM消息头中包括第二流程索引参数,或者,SM消息体中包括第二流程索引参数。The second PTI may be carried in the following manners: the SM message header includes the second process index parameter, or the SM message body includes the second process index parameter.

进一步地,为了支持NAS请求消息中携带除SM消息以外的其他消息类型,NAS消息中可以定义容器参数(Container),该容器参数中可以包含协议识别码,进一步地还可以包含协议类型。其中,协议类型用于指示容器中包含的消息是由哪个标准组织定义的,如:将协议类型设置为3GPP协议族、或IETF协议族、或IEEE协议族等。协议识别码用于指示具体的消息类型,如:会话请求消息,会话修改消息等。以SM消息为SM会话建立消息为例,协议类型设置为3GPP协议族,协议识别码设置为PDU会话建立请求消息。以鉴权认证消息为例,协议类型设置为IETF,协议识别码设置为扩展认证协议(Extensible AuthenticationProtocol,EAP)请求消息。Further, in order to support other message types other than the SM message carried in the NAS request message, a container parameter (Container) may be defined in the NAS message, and the container parameter may include a protocol identifier and further include a protocol type. The protocol type is used to indicate which standard organization defines the message contained in the container. For example, the protocol type is set to the 3GPP protocol suite, the IETF protocol suite, or the IEEE protocol suite. The protocol identifier is used to indicate a specific message type, such as a session request message, a session modification message, and so on. Taking the SM message as an SM session establishment message as an example, the protocol type is set to the 3GPP protocol suite, and the protocol identification code is set to the PDU session establishment request message. Taking the authentication message as an example, the protocol type is set to IETF, and the protocol identifier is set to the Extensible Authentication Protocol (EAP) request message.

401B:UE发起另一会话建立流程,即:UE发送另一条NAS请求消息,上述NAS请求消息中也携带SM消息。为了与正在进行的401A中的会话建立流程区分,UE将NAS请求消息中的第一流程索引参数设置为PTI 1=A2,A2不等于A1,A2是未被占用的任何数值。此外,UE将SM消息的第二流程索引参数PTI 2设置为B2。其中PTI的在NAS请求消息和SM消息中的携带方式可以参考前文,在此不再赘述。401B: The UE initiates another session establishment process, that is, the UE sends another NAS request message, and the above NAS request message also carries the SM message. In order to distinguish it from the ongoing session establishment process in 401A, the UE sets the first process index parameter in the NAS request message to PTI 1=A2, A2 is not equal to A1, and A2 is any value that is not occupied. In addition, the UE sets the second process index parameter PTI 2 of the SM message to B2. The carrying manner of the PTI in the NAS request message and the SM message may refer to the foregoing description, which will not be repeated here.

402A:AMF收到UE发送的NAS请求消息,AMF存储第一PTI,并获取容器参数。AMF基于容器参数中的协议类型或协议识别码中的至少一个识别容器中携带的消息类型,如SM消息、或EAP消息等。AMF基于识别出的消息类型选择上述消息的下一跳处理节点。如SM消息的下一跳处理节点是SMF,EAP消息的下一跳处理节点是AUSF。以SM消息为例,AMF将上述SM消息通过N11接口消息发送给SMF,上述SM消息中包含UE设置的第二PTI。在本实施例中AMF会选择(selection)SMF。402A: The AMF receives the NAS request message sent by the UE, and the AMF stores the first PTI and obtains the container parameters. The AMF identifies the message type carried in the container, such as an SM message or an EAP message, based on at least one of the protocol type in the container parameter or the protocol identifier. The AMF selects the next hop processing node for the above message based on the identified message type. For example, the next hop processing node of SM message is SMF, and the next hop processing node of EAP message is AUSF. Taking the SM message as an example, the AMF sends the SM message to the SMF through the N11 interface message, and the SM message includes the second PTI set by the UE. In this embodiment, the AMF will select the SMF.

402B:同402A的处理方式,需要注意的是:AMF存储具有不同值的第一PTI,并转发SM消息给SMF,上述SM消息中包含第二PTI。402B: The same processing method as 402A, it should be noted that: the AMF stores the first PTI with different values, and forwards the SM message to the SMF, where the SM message includes the second PTI.

403:SMF基于SM消息完成会话相关流程,如会话建立流程、会话修改流程、或会话删除流程等。403: The SMF completes a session related process based on the SM message, such as a session establishment process, a session modification process, or a session deletion process, and the like.

404A:SMF通过N11接口发送SM响应消息,上述SM响应消息中含有第二PTI。基于前文SM消息是PDU会话建立请求消息,那么这里SM响应消息为PDU会话建立响应(SessionEstablishment Response)消息。SMF将第二PTI值设置成与之前存储的第二PTI值相同的数值,即PTI 2=B1。404A: The SMF sends an SM response message through the N11 interface, and the SM response message contains the second PTI. Based on the foregoing SM message is a PDU session establishment request message, the SM response message here is a PDU session establishment response (SessionEstablishment Response) message. The SMF sets the second PTI value to the same value as the previously stored second PTI value, ie PTI 2=B1.

404B:同404A的处理方式,需要注意的是:SMF将第二PTI值设置成B2。404B: The same processing method as 404A, it should be noted that: the SMF sets the second PTI value to B2.

405A:AMF从N11接口收到SM响应消息。AMF将上述SM响应消息携带在NAS回复消息中发送给UE。其中,NAS回复消息中包括第一PTI,AMF将上述第一PTI设置成存储的第一PTI值,即PTI 1=A1。405A: AMF receives an SM response message from the N11 interface. The AMF carries the above-mentioned SM response message in the NAS reply message and sends it to the UE. The NAS reply message includes the first PTI, and the AMF sets the first PTI as the stored first PTI value, that is, PTI 1=A1.

在UE一侧,基于NAS消息中包含的第一PTI 1=A1可以确定该NAS回复消息对应到之前发送的具有相同第一PTI值的NAS请求消息。UE基于SM响应消息中包含的第二PTI 2=B1对应之前发送的具有相同第二PTI值的SM消息。On the UE side, based on the first PTI 1=A1 included in the NAS message, it can be determined that the NAS reply message corresponds to the previously sent NAS request message with the same first PTI value. Based on the second PTI 2=B1 included in the SM response message, the UE corresponds to the previously sent SM message with the same second PTI value.

405B:AMF同步骤405A,AMF将第一PTI值设置成A2。UE操作原理同405A,在此不再赘述。405B: AMF is the same as step 405A, AMF sets the first PTI value to A2. The operation principle of the UE is the same as that of 405A, which will not be repeated here.

本实施例支持在NAS消息中携带多层PTI值。UE与网络侧网元基于不同的PTI值分别对各自的消息进行区分,避免因多消息并发导致的消息混乱。此外,本实施例还支持NAS消息中包括SM消息之外的其他消息类型,使得AMF可以基于容器中的消息类型进行消息转发。This embodiment supports carrying multiple layers of PTI values in the NAS message. The UE and the network element on the network side distinguish their respective messages based on different PTI values, so as to avoid message confusion caused by concurrent multiple messages. In addition, this embodiment also supports other message types other than the SM message included in the NAS message, so that the AMF can perform message forwarding based on the message type in the container.

如图5所示,是本发明实施例提供的另一个举例,在本实施例中仍以多会话并发场景为例。与前一实施例的差异在于,本实施例的多会话并发采用不同的接入技术,即3GPP侧与Non-3GPP侧同时触发会话流程。上述non-3GPP接入技术包括无线局域网(WirelessLocal Area Network,WLAN)接入,或固网接入等。As shown in FIG. 5 , it is another example provided by the embodiment of the present invention. In this embodiment, a multi-session concurrent scenario is still used as an example. The difference from the previous embodiment is that the multi-session concurrency in this embodiment adopts different access technologies, that is, the 3GPP side and the Non-3GPP side trigger the session flow at the same time. The above-mentioned non-3GPP access technologies include wireless local area network (Wireless Local Area Network, WLAN) access, or fixed network access, and the like.

501A:UE在3GPP侧发起会话建立流程,即:UE发送NAS请求消息,上述NAS请求消息中包括会话消息(SM消息),同实前一施例401A设置PTI,在此不再赘述。此外,UE在NAS请求消息中还包括接入类型(Access type)指示。UE可以将上述接入类型设置为3GPP接入,或LTE接入、或5G RAN接入等;假定为:RAN。501A: The UE initiates a session establishment process on the 3GPP side, that is, the UE sends a NAS request message, the NAS request message includes a session message (SM message), and the PTI is set as in the previous embodiment 401A, which is not repeated here. In addition, the UE further includes an access type (Access type) indication in the NAS request message. The UE can set the above-mentioned access type as 3GPP access, or LTE access, or 5G RAN access, etc.; it is assumed to be: RAN.

该接入类型参数的携带方式可以如下:在NAS请求消息头中包括接入类型参数,或者,NAS请求消息体中包括接入类型参数。The manner of carrying the access type parameter may be as follows: the access type parameter is included in the header of the NAS request message, or the access type parameter is included in the NAS request message body.

501B:UE在non-3GPP侧发起会话建立流程,即:UE发送NAS请求消息,上述NAS请求消息中包含会话消息(SM消息)。同实前一施例401B设置PTI,在此不再赘述。此外,UE将在NAS请求消息中还包括的接入类型参数设置为non-3GPP接入,或WLAN接入,或固网接入等。501B: The UE initiates a session establishment process on the non-3GPP side, that is, the UE sends a NAS request message, and the above NAS request message includes a session message (SM message). The setting of the PTI is the same as that in the previous embodiment 401B, which is not repeated here. In addition, the UE sets the access type parameter included in the NAS request message to non-3GPP access, WLAN access, or fixed network access, and the like.

502A:在AMF侧的PTI处理前一实施例402A,在此不再赘述。此外,AMF获取并存储NAS请求消息中携带的接入类型参数。AMF存储3GPP的接入类型参数,还可以建立上述NAS请求消息与接入类型的绑定关系。502A: PTI processing on the AMF side is the previous embodiment 402A, which is not repeated here. In addition, the AMF acquires and stores the access type parameter carried in the NAS request message. The AMF stores the access type parameters of the 3GPP, and can also establish the binding relationship between the NAS request message and the access type.

502B:在AMF侧的PTI处理前一实施例402B,在此不再赘述。此外,AMF获取并存储NAS请求消息中携带的接入类型参数。AMF存储non-3GPP的接入类型参数。502B: PTI processing on the AMF side is the previous embodiment 402B, which will not be repeated here. In addition, the AMF acquires and stores the access type parameter carried in the NAS request message. AMF stores non-3GPP access type parameters.

上述502B及其后续步骤与前一实施例原理相同,直到505A中AMF向UE发送回复消息,因此本实施例对此不再赘述。The above-mentioned 502B and its subsequent steps are the same in principle as the previous embodiment, until the AMF sends a reply message to the UE in 505A, so this embodiment will not describe it again.

505A:AMF发送第一条NAS请求消息的回复消息,PTI处理同405A。此外,AMF基于存储的接入类型,将上述NAS请求的回复消息通过上述接入类型对应的接入网络传递给UE。如当接入类型为3GPP时,AMF将NAS回复消息通过N2接口发送给RAN。RAN将收到的上述NAS消息发送给UE。505A: The AMF sends a reply message to the first NAS request message, and the PTI processing is the same as that of 405A. In addition, based on the stored access type, the AMF transmits the reply message of the above-mentioned NAS request to the UE through the access network corresponding to the above-mentioned access type. For example, when the access type is 3GPP, the AMF sends the NAS reply message to the RAN through the N2 interface. The RAN sends the received NAS message to the UE.

505B:AMF发送第二条NAS请求消息的回复消息,PTI处理同405B。此外,当AMF存储的接入类型为non-3GPP时,AMF将NAS回复消息通过N2接口发送给N3IWF。N3IWF将上述NAS消息发送给UE。505B: The AMF sends a reply message for the second NAS request message, and the PTI processing is the same as that of 405B. In addition, when the access type stored by the AMF is non-3GPP, the AMF sends the NAS reply message to the N3IWF through the N2 interface. The N3IWF sends the above NAS message to the UE.

本实施例,在前一实施例的基础上,进一步地解决了当流程在不同接入技术网络并发时,可以使流程一直保持在原接入网络侧中完成。This embodiment, on the basis of the previous embodiment, further solves the problem that when the process is concurrent in different access technology networks, the process can always be completed in the original access network side.

本发明实施例还提供了一种接入及移动管理功能实体,如图6所示,包括:The embodiment of the present invention also provides an access and mobility management functional entity, as shown in FIG. 6 , including:

第一接收单元601,用于接收来自终端设备的第一消息;所述第一消息中携带发往至少一个第三方设备的第二消息,所述第三方设备为所述终端设备和所述接入及移动管理功能实体AMF之外的网络设备,所述第一消息中携带第一参数,所述第二消息中携带所述第二参数,所述第一参数用于标识所述第一消息,所述第二参数用于标识所述第二消息;The first receiving unit 601 is configured to receive a first message from a terminal device; the first message carries a second message sent to at least one third-party device, where the third-party device is the terminal device and the terminal device. A network device other than the inbound and mobility management function entity AMF, the first message carries the first parameter, the second message carries the second parameter, and the first parameter is used to identify the first message , the second parameter is used to identify the second message;

第一发送单元602,用于向所述第三方设备发送所述第二消息,所述第二消息中携带所述第二参数。The first sending unit 602 is configured to send the second message to the third-party device, where the second message carries the second parameter.

需要说明的是,图6作为AMF结构的一个示意性结构图,在本实施例中包含的结构若没有明确指明其包含,不应理解为必然包含的结构。It should be noted that, FIG. 6 is a schematic structural diagram of the AMF structure. If the structures included in this embodiment are not clearly indicated to be included, they should not be construed as necessarily included structures.

在一个可选的实现方式中,如图6所示,所述接入及移动管理功能实体还包括:In an optional implementation manner, as shown in FIG. 6 , the access and mobility management functional entity further includes:

第二接收单元603,接收所述第三方设备返回的包含所述第二参数的所述第二消息的响应消息,所述响应消息中携带所述第二参数;A second receiving unit 603, receiving a response message of the second message including the second parameter returned by the third-party device, where the response message carries the second parameter;

第二发送单元604,用于向所述终端设备发送所述第一消息的回复消息,所述回复消息携带所述响应消息,所述回复消息中携带所述第一参数。The second sending unit 604 is configured to send a reply message of the first message to the terminal device, where the reply message carries the response message, and the reply message carries the first parameter.

在一个可选的实现方式中,所述第一消息包括:非接入层NAS请求消息,或非接入层NAS传输消息。In an optional implementation manner, the first message includes: a non-access stratum NAS request message, or a non-access stratum NAS transmission message.

在一个可选的实现方式中,如图6所示,所述接入及移动管理功能实体还包括:In an optional implementation manner, as shown in FIG. 6 , the access and mobility management functional entity further includes:

设备选择单元605,用于在所述第一发送单元602向所述第三方设备发送所述第二消息之前,基于所述第二消息的类型选择所述第三方设备。A device selection unit 605, configured to select the third-party device based on the type of the second message before the first sending unit 602 sends the second message to the third-party device.

在一个可选的实现方式中,所述第二消息包括:会话管理SM消息,所述第三方设备包括:会话管理功能SMF;In an optional implementation manner, the second message includes: a session management SM message, and the third-party device includes: a session management function SMF;

或者,所述第二消息包括:可扩展认证协议EAP消息,所述第三方设备包括:鉴权服务器功能AUSF;Alternatively, the second message includes: an Extensible Authentication Protocol EAP message, and the third-party device includes: an authentication server function AUSF;

或者,所述第二消息包括:短消息,所述第三方设备包括:短消息业务功能SMSF。Or, the second message includes: a short message, and the third-party device includes: a short message service function SMSF.

在一个可选的实现方式中,所述SM消息包括:In an optional implementation manner, the SM message includes:

会话建立消息、会话修改消息、或会话删除消息。A session establishment message, a session modification message, or a session deletion message.

在一个可选的实现方式中,所述第一消息中携带第一参数包括:In an optional implementation manner, the first parameter carried in the first message includes:

所述第一消息的消息头中携带所述第一参数,或者,所述第一消息的消息体中携带所述第一参数。The first parameter is carried in the message header of the first message, or the first parameter is carried in the message body of the first message.

在一个可选的实现方式中,所述第一消息中携带发往至少一个第三方设备的第二消息包括:所述第一消息的容器信元中包含所述第二消息。In an optional implementation manner, the carrying of the second message sent to at least one third-party device in the first message includes: the container information element of the first message includes the second message.

在一个可选的实现方式中,所述第二消息携带消息族类型,所述消息族类型用于确定消息归属的标准组织。In an optional implementation manner, the second message carries a message family type, and the message family type is used to determine a standard organization to which the message belongs.

在一个可选的实现方式中,所述消息族类型包括:第三代合作伙伴计划3GPP、互联网工程任务组IETF电子电气工程师协会IEEE、国际电信联盟ITU、欧洲电信标准协会ETSI、以及国际标准化组织ISO中的至少一个。In an optional implementation manner, the message family types include: 3rd Generation Partnership Project 3GPP, Internet Engineering Task Force IETF Institute of Electrical and Electronic Engineers IEEE, International Telecommunication Union ITU, European Telecommunications Standards Institute ETSI, and International Organization for Standardization At least one of ISO.

在一个可选的实现方式中,所述第一消息中还包括:In an optional implementation manner, the first message further includes:

接入类型参数,所述接入类型参数用于指示接入网络的类型;an access type parameter, where the access type parameter is used to indicate the type of the access network;

所述第二发送单元604,用于通过所述接入类型参数指示的接入网络向所述终端设备发送所述回复消息。The second sending unit 604 is configured to send the reply message to the terminal device through the access network indicated by the access type parameter.

在一个可选的实现方式中,所述第一消息头中携带所述接入类型参数,或者所述第一消息的消息体中携带所述接入类型参数。In an optional implementation manner, the first message header carries the access type parameter, or the message body of the first message carries the access type parameter.

在一个可选的实现方式中,所述第一参数和所述第二参数中的至少一个为流程事务标识PTI参数。In an optional implementation manner, at least one of the first parameter and the second parameter identifies a PTI parameter for a process transaction.

本发明实施例还提供了一种终端设备,如图7所示,包括:An embodiment of the present invention also provides a terminal device, as shown in FIG. 7 , including:

消息生成单元701,用于生成第一消息,所述第一消息中携带发往至少一个第三方设备的第二消息,所述第三方设备为所述终端设备和接入及移动管理功能实体AMF之外的网络设备,所述第一消息中携带第一参数,所述第二消息中携带所述第二参数,所述第一参数用于标识所述第一消息,所述第二参数用于标识所述第二消息;A message generating unit 701, configured to generate a first message, where the first message carries a second message sent to at least one third-party device, where the third-party device is the terminal device and the access and mobility management function entity AMF other network devices, the first message carries the first parameter, the second message carries the second parameter, the first parameter is used to identify the first message, and the second parameter is used for identifying the second message;

发送单元702,用于向所述AMF发送所述第一消息。A sending unit 702, configured to send the first message to the AMF.

需要说明的是,图7作为终端设备结构的一个示意性结构图,在本实施例中包含的结构若没有明确指明其包含,不应理解为必然包含的结构。It should be noted that, FIG. 7 is a schematic structural diagram of the structure of the terminal device. If the structures included in this embodiment are not clearly indicated to be included, they should not be construed as necessarily included structures.

在一个可选的实现方式中,所述终端设备还包括:In an optional implementation manner, the terminal device further includes:

接收单元703,用于在所述发送单元702向所述AMF发送所述第一消息之后,接收来自于所述AMF的回复消息,所述回复消息携带所述响应消息,所述回复消息中携带所述第一参数,所述响应消息中携带所述第二参数;A receiving unit 703, configured to receive a reply message from the AMF after the sending unit 702 sends the first message to the AMF, where the reply message carries the response message, and the reply message carries the reply message the first parameter, the second parameter is carried in the response message;

消息确认单元704,用于根据所述回复消息中携带的所述第一参数确定所述回复消息用于回复所述第一消息,根据所述响应消息中携带的第二参数确定所述响应消息用于响应所述第二消息。A message confirmation unit 704, configured to determine that the reply message is used to reply to the first message according to the first parameter carried in the reply message, and determine the response message according to the second parameter carried in the response message for responding to the second message.

在一个可选的实现方式中,所述第一消息中还包括:In an optional implementation manner, the first message further includes:

接入类型参数,所述接入类型参数用于指示接入网络的类型;an access type parameter, where the access type parameter is used to indicate the type of the access network;

所述接收单元703,用于使用所述接入类型参数指示的接入网络接收所述回复消息。The receiving unit 703 is configured to receive the reply message by using the access network indicated by the access type parameter.

在终端侧实施例中各参数和消息的更具体的说明可以参考前述方法实施例,在此不再赘述。For more specific descriptions of parameters and messages in the terminal-side embodiment, reference may be made to the foregoing method embodiments, and details are not described herein again.

本发明实施例还提供了一种接入及移动管理功能实体,如图8所示,包括:输入输出设备801、处理器803以及存储器802;The embodiment of the present invention also provides an access and mobility management functional entity, as shown in FIG. 8 , including: an input and output device 801, a processor 803, and a memory 802;

其中存储器802可以用于处理器803执行数据处理所需要的缓存,也可以用于提供发送或者接收到的数据的存储空间需求;The memory 802 can be used for the cache required by the processor 803 to perform data processing, and can also be used to provide storage space requirements for the data sent or received;

上述输入输出设备801、处理器803以及存储器802可以通过总线相互连接。The above-mentioned input/output device 801, the processor 803, and the memory 802 may be connected to each other through a bus.

存储器802包括但不限于是随机存储记忆体(Random Access Memory,RAM)、只读存储器(Read-Only Memory,ROM)、可擦除可编程只读存储器(Erasable ProgrammableRead Only Memory,EPROM)、或便携式只读存储器(Compact Disc Read-Only Memory,CD-ROM),该存储器802用于相关指令及数据。输入输出设备801用于接收和发送数据。The memory 802 includes, but is not limited to, a random access memory (Random Access Memory, RAM), a read only memory (Read-Only Memory, ROM), an erasable programmable read only memory (Erasable Programmable Read Only Memory, EPROM), or a portable Read-only memory (Compact Disc Read-Only Memory, CD-ROM), the memory 802 is used for related instructions and data. Input and output devices 801 are used to receive and transmit data.

处理器803可以是一个或多个中央处理器(Central Processing Unit,CPU),在处理器803是一个CPU的情况下,该CPU可以是单核CPU,也可以是多核CPU。The processor 803 may be one or more central processing units (Central Processing Units, CPUs). When the processor 803 is one CPU, the CPU may be a single-core CPU or a multi-core CPU.

在所述存储器802中存储有可执行指令,所述处理器803在执行所述可执行指令实现前述由AMF执行的任意一项的方法流程。Executable instructions are stored in the memory 802, and the processor 803 executes the executable instructions to implement any one of the foregoing method processes executed by the AMF.

本发明实施例还提供了一种终端设备,如图9所示,包括:输入输出设备901、处理器903以及存储器902;An embodiment of the present invention further provides a terminal device, as shown in FIG. 9 , including: an input and output device 901, a processor 903, and a memory 902;

其中存储器902可以用于处理器903执行数据处理所需要的缓存,也可以用于提供发送或者接收到的数据的存储空间需求;The memory 902 can be used for the cache required by the processor 903 to perform data processing, and can also be used to provide storage space requirements for the data sent or received;

上述输入输出设备901、处理器903以及存储器902可以通过总线相互连接。The above-mentioned input/output device 901, the processor 903, and the memory 902 may be connected to each other through a bus.

存储器902包括但不限于是RAM、ROM、EPROM、或CD-ROM,该存储器902用于相关指令及数据。输入输出设备901用于接收和发送数据。Memory 902 includes, but is not limited to, RAM, ROM, EPROM, or CD-ROM, which is used for related instructions and data. Input and output devices 901 are used to receive and transmit data.

处理器903可以是一个或多个CPU,在处理器903是一个CPU的情况下,该CPU可以是单核CPU,也可以是多核CPU。The processor 903 may be one or more CPUs, and if the processor 903 is one CPU, the CPU may be a single-core CPU or a multi-core CPU.

在所述存储器902中存储有可执行指令,所述处理器903在执行所述可执行指令实现前述由终端设备执行的任意一项的方法流程。Executable instructions are stored in the memory 902, and the processor 903 executes the executable instructions to implement any one of the foregoing method processes executed by the terminal device.

在以上AMF和终端设备的实施例中,输入输出设备可以分别对应到前面实施例中AMF和终端设备的发送单元和接收单元的具体功能,相应的处理器指令输入输出设备所执行的具体内容可以参考前述AMF和终端设备的实现方案,也可以参考方法实施例,在此不再赘述。In the above embodiments of the AMF and the terminal device, the input and output devices may respectively correspond to the specific functions of the sending unit and the receiving unit of the AMF and the terminal device in the previous embodiments, and the specific content executed by the corresponding processor instructing the input and output devices may be With reference to the foregoing implementation solutions of the AMF and the terminal device, reference may also be made to the method embodiments, which will not be repeated here.

本发明实施例还提供了一种存储介质,该存储介质中包含可执行指令,在所述可执行指令被执行的情况下,实现本发明实施例提供的任意一项的方法流程。The embodiment of the present invention further provides a storage medium, the storage medium contains executable instructions, and when the executable instructions are executed, the method process of any one of the embodiments of the present invention is implemented.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关硬件来完成,上述的程序可以存储于一个设备的可读存储介质中,该程序在执行时,包括上述全部或部分步骤,上述的存储介质,如:FLASH、EEPROM等。Those of ordinary skill in the art can understand that all or part of the steps in the method of the above-mentioned embodiments can be completed by instructing the relevant hardware through a program, and the above-mentioned program can be stored in a readable storage medium of a device, and when the program is executed, Including all or part of the above steps, the above storage medium, such as: FLASH, EEPROM, etc.

以上上述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,不同的实施例可以进行组合,以上上述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何组合、修改、等同替换、改进等,均应包含在本发明实施例所公开的范围之内。The above-mentioned specific embodiments further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that different embodiments can be combined. The above-mentioned embodiments are only specific embodiments of the present invention, and It is not intended to limit the protection scope of the present invention, and any combination, modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the scope disclosed by the embodiments of the present invention.

Claims (28)

1.一种消息的传输方法,其特征在于,包括:1. a message transmission method, is characterized in that, comprises: 接入及移动管理功能实体AMF接收来自终端设备的第一消息;所述第一消息中携带发往至少一个第三方设备的第二消息,所述第三方设备为所述终端设备和所述AMF之外的网络设备,所述第一消息中携带第一参数,所述第二消息中携带所述第二参数,所述第一参数用于标识所述第一消息,所述第二参数用于标识所述第二消息;The access and mobility management function entity AMF receives a first message from a terminal device; the first message carries a second message sent to at least one third-party device, where the third-party device is the terminal device and the AMF other network devices, the first message carries the first parameter, the second message carries the second parameter, the first parameter is used to identify the first message, and the second parameter is used for identifying the second message; 所述AMF基于所述第二消息的类型选择所述第三方设备;the AMF selects the third-party device based on the type of the second message; 所述AMF向所述第三方设备发送所述第二消息,所述第二消息中携带所述第二参数;sending, by the AMF, the second message to the third-party device, where the second message carries the second parameter; 所述AMF接收来自所述第三方设备的包含所述第二参数的所述第二消息的响应消息,向所述终端设备发送所述响应消息,所述响应消息中携带所述第二参数,所述第二参数用于所述终端设备确定所述响应消息用于响应第二消息。The AMF receives a response message from the third-party device to the second message containing the second parameter, and sends the response message to the terminal device, where the response message carries the second parameter, The second parameter is used by the terminal device to determine that the response message is for responding to the second message. 2.根据权利要求1所述方法,其特征在于,所述第一消息包括:非接入层NAS请求消息,或非接入层NAS传输消息。2 . The method according to claim 1 , wherein the first message comprises: a non-access stratum NAS request message or a non-access stratum NAS transmission message. 3 . 3.根据权利要求1或2所述方法,其特征在于,所述第二消息包括:会话管理SM消息,所述第三方设备包括:会话管理功能SMF;3. The method according to claim 1 or 2, wherein the second message comprises: a session management SM message, and the third-party device comprises: a session management function SMF; 或者,所述第二消息包括:可扩展认证协议EAP消息,所述第三方设备包括:鉴权服务器功能AUSF;Alternatively, the second message includes: an Extensible Authentication Protocol EAP message, and the third-party device includes: an authentication server function AUSF; 或者,所述第二消息包括:短消息,所述第三方设备包括:短消息业务功能SMSF。Or, the second message includes: a short message, and the third-party device includes: a short message service function SMSF. 4.根据权利要求3所述方法,其特征在于,所述SM消息包括:4. The method according to claim 3, wherein the SM message comprises: 会话建立消息、会话修改消息、或会话删除消息。A session establishment message, a session modification message, or a session deletion message. 5.根据权利要求1或2所述方法,其特征在于,所述第二消息包括:会话管理SM消息,可扩展认证协议EAP消息,或短消息中的至少两个。5. The method according to claim 1 or 2, wherein the second message comprises at least two of a session management SM message, an Extensible Authentication Protocol EAP message, or a short message. 6.根据权利要求1至5任意一项所述方法,其特征在于,所述第一消息中携带第一参数包括:6. The method according to any one of claims 1 to 5, wherein the carrying the first parameter in the first message comprises: 所述第一消息的消息头中携带所述第一参数,或者,所述第一消息的消息体中携带所述第一参数。The first parameter is carried in the message header of the first message, or the first parameter is carried in the message body of the first message. 7.根据权利要求1所述方法,其特征在于,所述第一消息中携带发往至少一个第三方设备的第二消息包括:所述第一消息的容器信元中包含所述第二消息。7 . The method according to claim 1 , wherein carrying the second message sent to at least one third-party device in the first message comprises: a container information element of the first message includes the second message. 8 . . 8.根据权利要求1所述方法,其特征在于,所述第二消息携带消息族类型,所述消息族类型用于确定消息归属的标准组织。8. The method according to claim 1, wherein the second message carries a message family type, and the message family type is used to determine a standard organization to which the message belongs. 9.根据权利要求1至5任意一项所述方法,其特征在于,所述第二参数为流程事务标识PTI参数。9 . The method according to claim 1 , wherein the second parameter is a process transaction identifier (PTI) parameter. 10 . 10.一种消息的传输方法,其特征在于,包括:10. A method for transmitting a message, comprising: 终端设备向接入及移动管理功能实体AMF发送第一消息;The terminal device sends a first message to the access and mobility management function entity AMF; 所述第一消息中携带发往至少一个第三方设备的第二消息,所述第三方设备为所述终端设备和所述AMF之外的网络设备,所述第一消息中携带第一参数,所述第二消息中携带所述第二参数,所述第一参数用于标识所述第一消息,所述第二参数用于标识所述第二消息;The first message carries a second message sent to at least one third-party device, where the third-party device is the terminal device and a network device other than the AMF, and the first message carries the first parameter, The second message carries the second parameter, the first parameter is used to identify the first message, and the second parameter is used to identify the second message; 接收来自于所述AMF的响应消息,所述响应消息中携带所述第二参数;receiving a response message from the AMF, where the response message carries the second parameter; 所述终端设备根据所述响应消息中携带的第二参数确定所述响应消息用于响应所述第二消息。The terminal device determines that the response message is used to respond to the second message according to the second parameter carried in the response message. 11.根据权利要求10所述方法,其特征在于,所述第一消息包括:非接入层NAS请求消息,或非接入层NAS传输消息。The method according to claim 10, wherein the first message comprises: a non-access stratum NAS request message or a non-access stratum NAS transport message. 12.根据权利要求10或11所述方法,其特征在于,所述第二消息包括:会话管理SM消息,所述第三方设备包括:会话管理功能SMF;The method according to claim 10 or 11, wherein the second message comprises: a session management SM message, and the third-party device comprises: a session management function SMF; 或者,所述第二消息包括:可扩展认证协议EAP消息,所述第三方设备包括:鉴权服务器功能AUSF;Alternatively, the second message includes: an Extensible Authentication Protocol EAP message, and the third-party device includes: an authentication server function AUSF; 或者,所述第二消息包括:短消息,所述第三方设备包括:短消息业务功能SMSF。Or, the second message includes: a short message, and the third-party device includes: a short message service function SMSF. 13.根据权利要求10或11所述方法,其特征在于,所述第二消息包括:会话管理SM消息,可扩展认证协议EAP消息,或短消息中的至少两个。13. The method according to claim 10 or 11, wherein the second message comprises at least two of a session management SM message, an Extensible Authentication Protocol EAP message, or a short message. 14.根据权利要求10至13任意一项所述方法,其特征在于,所述第一消息中携带第一参数包括:14. The method according to any one of claims 10 to 13, wherein the carrying the first parameter in the first message comprises: 所述第一消息的消息头中携带所述第一参数,或者,所述第一消息的消息体中携带所述第一参数。The first parameter is carried in the message header of the first message, or the first parameter is carried in the message body of the first message. 15.根据权利要求10至13任意一项所述方法,其特征在于,所述第二参数为流程事务标识PTI参数。15. The method according to any one of claims 10 to 13, wherein the second parameter is a process transaction identifier (PTI) parameter. 16.一种接入及移动管理功能实体,其特征在于,包括:16. An access and mobility management functional entity, characterized by comprising: 第一接收单元,用于接收来自终端设备的第一消息;所述第一消息中携带发往至少一个第三方设备的第二消息,所述第三方设备为所述终端设备和所述接入及移动管理功能实体AMF之外的网络设备,所述第一消息中携带第一参数,所述第二消息中携带所述第二参数,所述第一参数用于标识所述第一消息,所述第二参数用于标识所述第二消息;a first receiving unit, configured to receive a first message from a terminal device; the first message carries a second message sent to at least one third-party device, where the third-party device is the terminal device and the access device and a network device other than the mobility management function entity AMF, the first message carries the first parameter, the second message carries the second parameter, and the first parameter is used to identify the first message, the second parameter is used to identify the second message; 设备选择单元,用于在所述第一发送单元向所述第三方设备发送所述第二消息之前,基于所述第二消息的类型选择所述第三方设备;a device selection unit, configured to select the third-party device based on the type of the second message before the first sending unit sends the second message to the third-party device; 第一发送单元,用于向所述第三方设备发送所述第二消息,所述第二消息中携带所述第二参数;a first sending unit, configured to send the second message to the third-party device, where the second message carries the second parameter; 第二接收单元,接收所述第三方设备返回的包含所述第二参数的所述第二消息的响应消息,所述响应消息中携带所述第二参数;a second receiving unit, receiving a response message of the second message including the second parameter returned by the third-party device, where the response message carries the second parameter; 第二发送单元,用于向所述终端设备发送所述响应消息,所述响应消息中携带所述第二参数,所述第二参数用于所述终端设备确定所述响应消息用于响应第二消息。a second sending unit, configured to send the response message to the terminal device, where the response message carries the second parameter, and the second parameter is used by the terminal device to determine that the response message is used to respond to the first Two news. 17.根据权利要求16所述接入及移动管理功能实体,其特征在于,所述第一消息包括:非接入层NAS请求消息,或非接入层NAS传输消息。The access and mobility management functional entity according to claim 16, wherein the first message comprises: a non-access stratum NAS request message or a non-access stratum NAS transfer message. 18.根据权利要求16或17所述接入及移动管理功能实体,其特征在于,所述第二消息包括:会话管理SM消息,所述第三方设备包括:会话管理功能SMF;The access and mobility management function entity according to claim 16 or 17, wherein the second message comprises: a session management SM message, and the third-party device comprises: a session management function SMF; 或者,所述第二消息包括:可扩展认证协议EAP消息,所述第三方设备包括:鉴权服务器功能AUSF;Alternatively, the second message includes: an Extensible Authentication Protocol EAP message, and the third-party device includes: an authentication server function AUSF; 或者,所述第二消息包括:短消息,所述第三方设备包括:短消息业务功能SMSF。Or, the second message includes: a short message, and the third-party device includes: a short message service function SMSF. 19.根据权利要求16所述接入及移动管理功能实体,其特征在于,所述第一消息中携带发往至少一个第三方设备的第二消息包括:所述第一消息的容器信元中包含所述第二消息。19. The access and mobility management functional entity according to claim 16, wherein the first message carrying the second message sent to at least one third-party device comprises: a container information element in the first message contains the second message. 20.根据权利要求16至19任意一项所述接入及移动管理功能实体,其特征在于,所述第一消息中携带第一参数包括:20. The access and mobility management functional entity according to any one of claims 16 to 19, wherein the first parameter carried in the first message comprises: 所述第一消息的消息头中携带所述第一参数,或者,所述第一消息的消息体中携带所述第一参数。The first parameter is carried in the message header of the first message, or the first parameter is carried in the message body of the first message. 21.根据权利要求16至20任意一项所述接入及移动管理功能实体,其特征在于,所述第二参数为流程事务标识PTI参数。21. The access and mobility management functional entity according to any one of claims 16 to 20, wherein the second parameter is a process transaction identifier (PTI) parameter. 22.一种终端设备,其特征在于,包括:22. A terminal device, comprising: 消息生成单元,用于生成第一消息,所述第一消息中携带发往至少一个第三方设备的第二消息,所述第三方设备为所述终端设备和接入及移动管理功能实体AMF之外的网络设备,所述第一消息中携带第一参数,所述第二消息中携带所述第二参数,所述第一参数用于标识所述第一消息,所述第二参数用于标识所述第二消息;A message generating unit, configured to generate a first message, where the first message carries a second message sent to at least one third-party device, where the third-party device is the one between the terminal device and the access and mobility management function entity AMF; external network equipment, the first message carries the first parameter, the second message carries the second parameter, the first parameter is used to identify the first message, and the second parameter is used to identifying the second message; 发送单元,用于向所述AMF发送所述第一消息;a sending unit, configured to send the first message to the AMF; 接收单元,用于接收来自于所述AMF的响应消息,所述响应消息中携带所述第二参数;a receiving unit, configured to receive a response message from the AMF, where the response message carries the second parameter; 消息确认单元,用于根据所述响应消息中携带的第二参数确定所述响应消息用于响应所述第二消息。A message confirmation unit, configured to determine that the response message is used to respond to the second message according to the second parameter carried in the response message. 23.根据权利要求22所述终端设备,其特征在于,所述第一消息包括:非接入层NAS请求消息,或非接入层NAS传输消息。23. The terminal device according to claim 22, wherein the first message comprises: a non-access stratum NAS request message or a non-access stratum NAS transmission message. 24.根据权利要求22或23所述终端设备,其特征在于,所述第二消息包括:会话管理SM消息,所述第三方设备包括:会话管理功能SMF;24. The terminal device according to claim 22 or 23, wherein the second message comprises: a session management SM message, and the third-party device comprises: a session management function SMF; 或者,所述第二消息包括:可扩展认证协议EAP消息,所述第三方设备包括:鉴权服务器功能AUSF;Alternatively, the second message includes: an Extensible Authentication Protocol EAP message, and the third-party device includes: an authentication server function AUSF; 或者,所述第二消息包括:短消息,所述第三方设备包括:短消息业务功能SMSF。Or, the second message includes: a short message, and the third-party device includes: a short message service function SMSF. 25.根据权利要求22或23所述终端设备,其特征在于,所述第二消息包括:会话管理SM消息,可扩展认证协议EAP消息,或短消息中的至少两个。25. The terminal device according to claim 22 or 23, wherein the second message comprises at least two of a session management SM message, an Extensible Authentication Protocol EAP message, or a short message. 26.根据权利要求22至25任意一项所述终端设备,其特征在于,所述第二参数为流程事务标识PTI参数。26. The terminal device according to any one of claims 22 to 25, wherein the second parameter is a process transaction identifier (PTI) parameter. 27.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得所述计算机执行如权利要求1-9任一项所述的方法。27. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, which, when executed on a computer, cause the computer to perform the execution of any one of claims 1-9. Methods. 28.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得所述计算机执行如权利要求10-15任一项所述的方法。28. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, which, when executed on a computer, cause the computer to perform the execution of any one of claims 10-15 Methods.
CN202010756441.XA 2017-05-04 2017-05-04 Message transmission method and device Active CN111954200B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010756441.XA CN111954200B (en) 2017-05-04 2017-05-04 Message transmission method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710308422.9A CN108809565B (en) 2017-05-04 2017-05-04 Message transmission method and device
CN202010756441.XA CN111954200B (en) 2017-05-04 2017-05-04 Message transmission method and device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201710308422.9A Division CN108809565B (en) 2017-05-04 2017-05-04 Message transmission method and device

Publications (2)

Publication Number Publication Date
CN111954200A true CN111954200A (en) 2020-11-17
CN111954200B CN111954200B (en) 2021-06-01

Family

ID=64016517

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202010756441.XA Active CN111954200B (en) 2017-05-04 2017-05-04 Message transmission method and device
CN201710308422.9A Active CN108809565B (en) 2017-05-04 2017-05-04 Message transmission method and device

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201710308422.9A Active CN108809565B (en) 2017-05-04 2017-05-04 Message transmission method and device

Country Status (2)

Country Link
CN (2) CN111954200B (en)
WO (1) WO2018201816A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2019444187B2 (en) 2019-05-05 2022-07-07 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method and Device for Configuring Terminal Policy, Terminal, Base Station and Storage Medium
CN118679765A (en) * 2022-06-30 2024-09-20 Oppo广东移动通信有限公司 Communication method and communication device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101669377A (en) * 2007-03-22 2010-03-10 艾利森电话股份有限公司 Mobility management (mm) and session management (sm) for sae/lte
WO2013133663A1 (en) * 2012-03-08 2013-09-12 삼성전자 주식회사 Method for controlling service in radio communication system
CN103476028A (en) * 2013-08-30 2013-12-25 大唐移动通信设备有限公司 NAS (Non Access Stratum) message treatment method and device during rollover of NAS COUNT
CN104221406A (en) * 2012-04-10 2014-12-17 株式会社Ntt都科摩 Mobile station and information delivery server
US20150043458A1 (en) * 2012-02-03 2015-02-12 Lg Electronics Inc. Method and apparatus for transmitting periodic channel state information in wireless communication system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101669377A (en) * 2007-03-22 2010-03-10 艾利森电话股份有限公司 Mobility management (mm) and session management (sm) for sae/lte
US20150043458A1 (en) * 2012-02-03 2015-02-12 Lg Electronics Inc. Method and apparatus for transmitting periodic channel state information in wireless communication system
WO2013133663A1 (en) * 2012-03-08 2013-09-12 삼성전자 주식회사 Method for controlling service in radio communication system
CN104221406A (en) * 2012-04-10 2014-12-17 株式会社Ntt都科摩 Mobile station and information delivery server
CN103476028A (en) * 2013-08-30 2013-12-25 大唐移动通信设备有限公司 NAS (Non Access Stratum) message treatment method and device during rollover of NAS COUNT

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
3GPP TECHNICAL SPECIFICATION GROUP SERVICES AND SYSTEM ASPECTS: ""Procedures for the 5G System;Stage 2 (Release 15)"", 《3GPP TS 23.502 V0.2.0》 *
3GPP TECHNICAL SPECIFICATION GROUP SERVICES AND SYSTEM ASPECTS: ""System Architecture for the 5G System;Stage 2(Release 15)"", 《3GPP TS 23.501 V0.3.0》 *

Also Published As

Publication number Publication date
WO2018201816A1 (en) 2018-11-08
CN108809565B (en) 2020-08-14
CN108809565A (en) 2018-11-13
CN111954200B (en) 2021-06-01

Similar Documents

Publication Publication Date Title
US11737045B2 (en) Connection processing method and apparatus in multi-access scenario
US11917498B2 (en) Communication method and communications apparatus
JP5793812B2 (en) Method, network side device, user equipment, and network system for triggering data offload
EP3641365B1 (en) Device access method, device and system
WO2018161796A1 (en) Connection processing method and apparatus in multi-access scenario
TW201935906A (en) Wireless communication method, network device and terminal device
CN110324246B (en) Communication method and device
US11134009B2 (en) Packet processing method and apparatus
US12192879B2 (en) Network access method and communication apparatus
KR20230007473A (en) Slice access method, device and system
KR20230048562A (en) Managing vplmn configuration updates in the ue due to home plmn configuration changes
WO2019201322A1 (en) Communication method and related device
WO2017147772A1 (en) Method of transmitting information and core network access apparatus
US20200275258A1 (en) Communications method and apparatus
US20170155650A1 (en) Method, Device and System for Obtaining Local Domain Name
CN108809565B (en) Message transmission method and device
CN109196895B (en) Message transmission method, device and system
US11109219B2 (en) Mobile terminal, network node server, method and computer program
US11575601B2 (en) Network device and packet processing method using same
EP3869755A1 (en) Control plane network function, user plane network function, and packet processing method using same
WO2023011006A1 (en) Communication method and apparatus, and device
KR102169718B1 (en) Method and Apparatus for Session Group Control for massive machine type communications mMTC
CN111567015B (en) A data transmission method and device, computer storage medium
WO2025036184A1 (en) Dns information processing method and apparatus, address overlapping processing method and apparatus, and communication device
WO2023138547A1 (en) Tunnel information sending method and apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant