[go: up one dir, main page]

CN114423074A - A communication method and device - Google Patents

A communication method and device Download PDF

Info

Publication number
CN114423074A
CN114423074A CN202011175696.3A CN202011175696A CN114423074A CN 114423074 A CN114423074 A CN 114423074A CN 202011175696 A CN202011175696 A CN 202011175696A CN 114423074 A CN114423074 A CN 114423074A
Authority
CN
China
Prior art keywords
core network
network device
terminal device
registration
request message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011175696.3A
Other languages
Chinese (zh)
Inventor
朱强华
于游洋
吴问付
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202011175696.3A priority Critical patent/CN114423074A/en
Publication of CN114423074A publication Critical patent/CN114423074A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

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

Abstract

本申请涉及一种通信方法及装置。第一网络内的第一核心网设备接收来自第二核心网设备的第一请求消息,第一请求消息用于第二核心网设备请求为终端设备提供服务,第一请求消息包括初始注册类型和终端设备接入的SNPN的信息。第一核心网设备确定终端设备已通过该SNPN注册到第一网络。第一核心网设备向第二核心网设备发送第一响应消息,第一响应消息包括失败结果指示,或包括终端设备的注册上下文,或包括用于指示终端设备已通过该SNPN注册到第一网络的指示信息。通过本申请实施例提供的方式,减少了终端设备的冗余注册过程,且由于终端设备无需进行本次注册过程,也减少了后续过程中所耗费的资源。

Figure 202011175696

The present application relates to a communication method and device. The first core network device in the first network receives the first request message from the second core network device, the first request message is used by the second core network device to request to provide services for the terminal device, and the first request message includes the initial registration type and Information about the SNPN accessed by the terminal device. The first core network device determines that the terminal device has registered with the first network through the SNPN. The first core network device sends a first response message to the second core network device, where the first response message includes a failure result indication, or includes a registration context of the terminal device, or includes a message indicating that the terminal device has registered with the first network through the SNPN instruction information. The method provided by the embodiment of the present application reduces the redundant registration process of the terminal device, and because the terminal device does not need to perform this registration process, the resources consumed in the subsequent process are also reduced.

Figure 202011175696

Description

一种通信方法及装置A communication method and device

技术领域technical field

本申请涉及通信技术领域,尤其涉及一种通信方法及装置。The present application relates to the field of communication technologies, and in particular, to a communication method and device.

背景技术Background technique

非公共网络(non-public network,NPN)是一种非公用的第五代移动通信技术(the 5th generation,5G)网络,NPN可以依赖公共陆地移动网络(public land mobilenetwork,PLMN)的支持而实现,或者也可以不依赖于PLMN的支持而实现。例如,NPN中的独立SNPN(standalone NPN,SNPN)就可以不依赖于PLMN的支持而实现。Non-public network (NPN) is a non-public fifth generation mobile communication technology (the 5th generation, 5G) network, NPN can rely on the support of public land mobile network (PLMN) to achieve , or can be implemented without relying on PLMN support. For example, an independent SNPN (standalone NPN, SNPN) in the NPN can be implemented without relying on the support of the PLMN.

目前,通过非3GPP互通功能(non-3GPP interworking function,N3IWF)架构,SNPN能够与PLMN互通。例如,终端设备可以注册到SNPN,在SNPN内,终端设备可以选择PLMN内的N3IWF,从而通过N3IWF接入PLMN,再在PLMN内注册,即,终端设备可以通过SNPN接入PLMN的N3IWF,从而完成在PLMN的注册。另外,除了N3IWF架构外,终端设备还可以通过漫游方式实现SNPN与PLMN的互通。例如,在PLMN签约的终端设备可以使用PLMN签约配置选择相应的SNPN,通过接入SNPN注册到PLMN。Currently, the SNPN can communicate with the PLMN through a non-3GPP interworking function (N3IWF) architecture. For example, the terminal device can register to the SNPN, and in the SNPN, the terminal device can select the N3IWF in the PLMN, so as to access the PLMN through the N3IWF, and then register in the PLMN, that is, the terminal device can access the N3IWF of the PLMN through the SNPN, thus completing the Registration with PLMN. In addition, in addition to the N3IWF architecture, the terminal equipment can also realize the intercommunication between the SNPN and the PLMN through roaming. For example, a terminal device subscribed to a PLMN can use the PLMN subscription configuration to select a corresponding SNPN, and register with the PLMN by accessing the SNPN.

可见,终端设备可以通过两种方式注册到PLMN,这就可能存在一种情况,终端设备在接入SNPN时,可以通过漫游方式注册到PLMN后,又通过N3IWF方式注册到PLMN,相当于终端设备通过SNPN在PLMN注册两次。而终端设备通过漫游方式注册到PLMN后,如果再通过其他方式注册到PLMN,是冗余注册过程,而且通过N3IWF方式注册,流程较为复杂,需要耗费较多的资源。It can be seen that the terminal device can register to the PLMN in two ways. There may be a situation. When the terminal device accesses the SNPN, it can register to the PLMN by roaming, and then register to the PLMN by N3IWF, which is equivalent to the terminal device. Register twice with PLMN via SNPN. After the terminal device registers to the PLMN through roaming, if it registers to the PLMN through other methods, it is a redundant registration process, and the registration through the N3IWF method is complicated and requires more resources.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种通信方法及装置,用于节省因终端设备的冗余签约而耗费的资源。Embodiments of the present application provide a communication method and apparatus, which are used to save resources consumed by redundant subscription of terminal equipment.

第一方面,提供第一种通信方法,该方法例如由第一核心网设备执行,或者由能够实现第一核心网设备的功能的芯片执行。在5G系统中,第一核心网设备例如为UDM。该方法包括:第一网络内的第一核心网设备接收来自第二核心网设备的第一请求消息,所述第一请求消息用于所述第二核心网设备请求为终端设备提供服务,所述第一请求消息包括初始注册类型和所述终端设备接入的非公共网络的信息,所述初始注册类型用于指示所述第一请求消息为所述终端设备的初始注册请求,所述第一网络为所述终端设备的归属网络;所述第一核心网设备确定所述终端设备已通过所述非公共网络注册到所述第一网络;所述第一核心网设备向第二核心网设备发送第一响应消息,所述第一响应消息包括失败结果指示,或包括所述终端设备的注册上下文,或包括用于指示所述终端设备已通过所述非公共网络注册到所述第一网络的指示信息。In a first aspect, a first communication method is provided, and the method is, for example, executed by a first core network device, or executed by a chip capable of implementing functions of the first core network device. In the 5G system, the first core network device is, for example, a UDM. The method includes: a first core network device in the first network receives a first request message from a second core network device, where the first request message is used by the second core network device to request to provide a service for a terminal device, and the The first request message includes the initial registration type and the information of the non-public network accessed by the terminal device, the initial registration type is used to indicate that the first request message is an initial registration request of the terminal device, and the first request message is an initial registration request of the terminal device. A network is the home network of the terminal device; the first core network device determines that the terminal device has registered with the first network through the non-public network; the first core network device reports to the second core network The device sends a first response message, where the first response message includes a failure result indication, or includes the registration context of the terminal device, or includes a message indicating that the terminal device has registered to the first through the non-public network Network instructions.

在本申请实施例中,第一网络例如为PLMN,或者为非公共网络,或者也可以是其他网络。非公共网络例如为SNPN。第一核心网设备接收来自终端设备的请求消息,该终端设备请求通过SNPN注册到第一网络。如果确定终端设备已通过该SNPN注册到第一网络,则第一核心网设备会拒绝终端设备的本次注册,或者,第一核心网设备会向第二核心网设备发送终端设备的注册上下文或指示信息,从而第二核心网设备能够拒绝终端设备的本次注册。通过这种方式,减少了终端设备的冗余注册过程,且由于终端设备无需进行本次注册过程,也减少了后续过程中所耗费的资源。In this embodiment of the present application, the first network is, for example, a PLMN, or a non-public network, or other networks. A non-public network is, for example, an SNPN. The first core network device receives the request message from the terminal device, the terminal device requests to register with the first network through the SNPN. If it is determined that the terminal device has registered with the first network through the SNPN, the first core network device will reject the current registration of the terminal device, or the first core network device will send the registration context of the terminal device to the second core network device or indication information, so that the second core network device can reject the current registration of the terminal device. In this way, the redundant registration process of the terminal device is reduced, and since the terminal device does not need to perform this registration process, the resources consumed in the subsequent process are also reduced.

在一种可选的实现方式中,所述非公共网络的信息包括所述非公共网络的标识,和/或,非公共网络接入模式指示。In an optional implementation manner, the information of the non-public network includes an identifier of the non-public network and/or an indication of an access mode of the non-public network.

SNPN的信息例如包括SNPN的标识,或者包括SNPN接入模式指示,或者包括SNPN的标识和SNPN接入模式指示。The SNPN information includes, for example, an SNPN identifier, or an SNPN access mode indication, or an SNPN identifier and an SNPN access mode indication.

在一种可选的实现方式中,所述方法还包括:所述第一核心网设备接收来自第三核心网设备的第二请求消息,所述第二请求消息用于所述第三核心网设备请求为终端设备提供服务,所述第二请求消息包括所述非公共网络的信息;所述第一核心网设备记录所述终端设备的注册上下文,所述终端设备的注册上下文包括所述非公共网络的信息;以及,所述第一核心网设备向所述第三核心网设备发送第二响应消息,所述第二响应消息用于指示所述第三核心网设备成功注册为所述终端设备提供服务。In an optional implementation manner, the method further includes: receiving, by the first core network device, a second request message from a third core network device, where the second request message is used for the third core network device The device requests to provide services for the terminal device, and the second request message includes the information of the non-public network; the first core network device records the registration context of the terminal device, and the registration context of the terminal device includes the non-public network. information of the public network; and, the first core network device sends a second response message to the third core network device, where the second response message is used to indicate that the third core network device is successfully registered as the terminal Equipment provides services.

这是终端设备上次的注册过程,即,通过该次注册,终端设备已注册到了第一网络。在该注册过程中,第一核心网设备可以记录该终端设备的SNPN的信息,从而如果终端设备后续再次通过该SNPN注册到第一网络,第一核心网设备就可以拒绝该终端设备的注册。This is the last registration process of the terminal device, that is, through this registration, the terminal device has been registered to the first network. During the registration process, the first core network device can record the SNPN information of the terminal device, so that if the terminal device subsequently registers to the first network through the SNPN again, the first core network device can reject the registration of the terminal device.

在一种可选的实现方式中,所述第一核心网设备确定所述终端设备已通过所述非公共网络注册到所述第一网络,包括:In an optional implementation manner, the first core network device determining that the terminal device has registered with the first network through the non-public network includes:

所述第一核心网设备根据所述初始注册类型、所述非公共网络的信息和记录的所述终端设备的注册上下文,确定所述终端设备已通过所述非公共网络注册到所述第一网络。The first core network device determines, according to the initial registration type, the information of the non-public network, and the recorded registration context of the terminal device, that the terminal device has registered with the first device through the non-public network. network.

初始注册类型表明该终端设备为首次注册,而第一核心网设备记录了该终端设备上次注册的注册上下文,如果第一请求消息所包括的SNPN的信息对应的SNPN。与第一核心网设备所记录的该终端设备的注册上下文所包括的SNPN的信息对应的SNPN,二者是同一个SNPN,那么第一核心网设备就可以确定终端设备已通过该SNPN注册到了第一网络。通过第一核心网设备的记录,可以使得第一核心网设备能够对该终端设备两次注册的SNPN进行比对,从而拒绝终端设备的双注册。The initial registration type indicates that the terminal device is registered for the first time, and the first core network device records the registration context of the last registration of the terminal device, if the SNPN information included in the first request message corresponds to the SNPN. The SNPN corresponding to the SNPN information included in the registration context of the terminal device recorded by the first core network device is the same SNPN, then the first core network device can determine that the terminal device has registered to the first core network device through the SNPN. a network. Through the records of the first core network device, the first core network device can be enabled to compare the SNPNs registered twice by the terminal device, thereby rejecting the dual registration of the terminal device.

在一种可选的实现方式中,所述第一响应消息还包括原因值,所述原因值用于指示所述终端设备已通过所述非公共网络注册到所述第一网络。In an optional implementation manner, the first response message further includes a cause value, where the cause value is used to indicate that the terminal device has registered with the first network through the non-public network.

第一响应消息如果包括失败结果指示,那么第一响应消息还可以包括原因值,从而使得第二核心网设备明确第一核心网设备为何拒绝本次注册。If the first response message includes a failure result indication, the first response message may further include a cause value, so that the second core network device can clarify why the first core network device rejects this registration.

在一种可选的实现方式中,所述方法还包括:所述第一核心网设备删除所述第二核心网设备对应于所述非公共网络的注册上下文;或,所述第一核心网设备接收来自所述第二核心网设备的第四请求消息,所述第四请求消息用于请求所述第一核心网设备对所述第二核心网设备在所述第一核心网设备中的注册进行去注册,所述第一核心网设备删除所述第二核心网设备对应于所述非公共网络的注册上下文。In an optional implementation manner, the method further includes: deleting, by the first core network device, a registration context of the second core network device corresponding to the non-public network; or, the first core network device The device receives a fourth request message from the second core network device, where the fourth request message is used to request the first core network device to The registration is performed to de-register, and the first core network device deletes the registration context of the second core network device corresponding to the non-public network.

如果是第一核心网设备拒绝终端设备的本次注册,那么第一核心网设备可以自行删除第二核心网设备对应于该SNPN的注册上下文,即,第一核心网设备删除第二核心网设备对应于本次注册的信息。或者,如果是由第二核心网设备拒绝终端设备的本次注册,相当于第一核心网设备没有决策权,那么第二核心网设备可以通过第四请求消息请求第一核心网设备对第二核心网设备在第一核心网设备中的注册进行去注册,则第一核心网设备可以删除第二核心网设备对应于该SNPN的注册上下文。这样,无论第一核心网设备是否能够决策拒绝终端设备的注册,第一核心网设备都能够删除第二核心网设备对应于该SNPN的注册上下文,以节省第一核心网设备的存储空间,也避免第一核心网设备存储错误信息。If the first core network device rejects the current registration of the terminal device, the first core network device may delete the registration context of the second core network device corresponding to the SNPN by itself, that is, the first core network device deletes the second core network device Information corresponding to this registration. Or, if the second core network device rejects the current registration of the terminal device, which means that the first core network device has no decision-making power, then the second core network device can request the first core network device to register the second core network device through the fourth request message. If the registration of the core network device in the first core network device is de-registered, the first core network device may delete the registration context of the second core network device corresponding to the SNPN. In this way, regardless of whether the first core network device can decide to reject the registration of the terminal device, the first core network device can delete the registration context of the second core network device corresponding to the SNPN, so as to save the storage space of the first core network device, and also It is avoided that the first core network device stores erroneous information.

第二方面,提供第二种通信方法,该方法例如由第二核心网设备执行,或者由能够实现第二核心网设备的功能的芯片执行。在5G系统中,第二核心网设备例如为AMF。该方法包括:第一网络内的第二核心网设备通过第一网络设备接收来自终端设备的第三请求消息,所述第三请求消息用于所述终端设备请求注册到所述第一网络,所述第一网络为所述终端设备的归属网络;所述第二核心网设备获得所述终端设备接入的非公共网络的信息;所述第二核心网设备向第一核心网设备发送第一请求消息,所述第一请求消息用于所述第二核心网设备请求为所述终端设备提供服务,所述第一请求消息包括初始注册类型和所述非公共网络的信息,所述初始注册类型用于指示所述第一请求消息为所述终端设备的初始注册请求;所述第二核心网设备接收来自第一核心网设备的第一响应消息,所述第一响应消息包括失败结果指示,或包括所述终端设备的注册上下文,或包括用于指示所述终端设备已通过所述非公共网络注册到所述第一网络的指示信息;所述第二核心网设备发送第三响应消息,所述第三响应消息用于拒绝所述终端设备的注册。In a second aspect, a second communication method is provided, and the method is executed by, for example, a second core network device, or a chip capable of implementing functions of the second core network device. In the 5G system, the second core network device is, for example, an AMF. The method includes: a second core network device in the first network receives a third request message from a terminal device through the first network device, where the third request message is used by the terminal device to request to register with the first network, The first network is the home network of the terminal device; the second core network device obtains information about the non-public network accessed by the terminal device; the second core network device sends the first core network device to the first core network device. a request message, the first request message is used by the second core network device to request to provide services for the terminal device, the first request message includes the initial registration type and the information of the non-public network, the initial The registration type is used to indicate that the first request message is an initial registration request of the terminal device; the second core network device receives a first response message from the first core network device, where the first response message includes a failure result Indicate, or include the registration context of the terminal device, or include indication information for indicating that the terminal device has registered with the first network through the non-public network; the second core network device sends a third response message, the third response message is used to reject the registration of the terminal device.

在一种可选的实现方式中,所述非公共网络的信息包括所述非公共网络的标识,和/或,非公共网络接入模式指示。In an optional implementation manner, the information of the non-public network includes an identifier of the non-public network and/or an indication of an access mode of the non-public network.

在一种可选的实现方式中,所述第二核心网设备获得所述终端设备接入的非公共网络的信息,包括:所述第二核心网设备从所述第三请求消息中获得所述非公共网络的信息;或,所述第二核心网设备接收来自所述第一网络设备的所述非公共网络的信息。第一网络设备例如为N3IWF,或者也可以是其他的网络设备。In an optional implementation manner, the obtaining, by the second core network device, the information of the non-public network accessed by the terminal device includes: obtaining, by the second core network device, the information from the third request message. information of the non-public network; or, the second core network device receives the information of the non-public network from the first network device. The first network device is, for example, the N3IWF, or other network devices.

终端设备可以将SNPN的信息包括在第三请求消息中,第二核心网设备从第三请求消息中就能获得SNPN的信息,获取方式较为简单。或者,也可以由N3IWF确定SNPN的信息并发送给第二核心网设备,则终端设备无需确定SNPN的信息,那么终端设备发送给N3IWF的消息就无需包括SNPN的信息,有助于节省信令开销。The terminal device can include the SNPN information in the third request message, and the second core network device can obtain the SNPN information from the third request message, and the acquisition method is relatively simple. Alternatively, the SNPN information can also be determined by the N3IWF and sent to the second core network device, then the terminal device does not need to determine the SNPN information, then the message sent by the terminal device to the N3IWF does not need to include the SNPN information, which helps save signaling overhead. .

在一种可选的实现方式中,所述第三响应消息还包括原因值,所述原因值用于指示所述终端设备已通过所述非公共网络注册到所述第一网络。In an optional implementation manner, the third response message further includes a cause value, where the cause value is used to indicate that the terminal device has registered with the first network through the non-public network.

在一种可选的实现方式中,所述方法还包括:所述第二核心网设备向所述第一核心网设备发送第四请求消息,所述第四请求消息用于请求所述第一核心网设备对所述第二核心网设备在所述第一核心网设备中的注册进行去注册。In an optional implementation manner, the method further includes: the second core network device sends a fourth request message to the first core network device, where the fourth request message is used to request the first core network device The core network device deregisters the registration of the second core network device in the first core network device.

在一种可选的实现方式中,在所述第二核心网设备发送第三响应消息之前,所述方法还包括:所述第二核心网设备根据所述第一响应消息确定拒绝所述终端设备的注册。In an optional implementation manner, before the second core network device sends the third response message, the method further includes: the second core network device determines to reject the terminal according to the first response message Device registration.

关于第二方面或各种可选的实施方式所带来的技术效果,可参考对于第一方面或相应的实施方式的技术效果的介绍。Regarding the technical effects brought about by the second aspect or various optional embodiments, reference may be made to the introduction to the technical effects of the first aspect or corresponding embodiments.

第三方面,提供第三种通信方法,该方法例如由第一核心网设备执行,或者由能够实现第一核心网设备的功能的芯片执行。在5G系统中,第一核心网设备例如为UDM。该方法包括:第一网络内的第一核心网设备接收来自第二核心网设备的第一请求消息,所述第一请求消息用于所述第二核心网设备请求为终端设备提供服务,且所述第一请求消息还包括移动注册类型和第二非公共网络的信息,所述移动注册类型用于指示所述第一请求消息为终端设备由于移动而触发的注册请求,所述第一网络为所述终端设备的归属网络;所述第一核心网设备向所述第二核心网设备发送第一响应消息,所述第一响应消息用于指示第二核心网设备成功注册为终端设备提供服务。In a third aspect, a third communication method is provided, and the method is performed by, for example, a first core network device, or a chip capable of implementing functions of the first core network device. In the 5G system, the first core network device is, for example, a UDM. The method includes: a first core network device in a first network receives a first request message from a second core network device, where the first request message is used by the second core network device to request to provide a service for a terminal device, and The first request message also includes information about a mobile registration type and a second non-public network, where the mobile registration type is used to indicate that the first request message is a registration request triggered by a terminal device due to movement, and the first network is the home network of the terminal device; the first core network device sends a first response message to the second core network device, where the first response message is used to instruct the second core network device to successfully register to provide the terminal device Serve.

本申请实施例中,允许终端设备在从第一非公共网络移动到第二非公共网络的场景下,第一网络能够接受终端设备通过第二非公共网络在第一网络的注册,使得终端设备能够正常工作。In this embodiment of the present application, in a scenario where a terminal device is allowed to move from a first non-public network to a second non-public network, the first network can accept the terminal device's registration in the first network through the second non-public network, so that the terminal device can be registered in the first network through the second non-public network. works fine.

在一种可选的实现方式中,所述方法还包括:所述第一核心网设备对所述终端设备通过第一非公共网络在所述第一网络的注册进行去注册。In an optional implementation manner, the method further includes: the first core network device deregisters the registration of the terminal device in the first network through the first non-public network.

第一核心网设备由于接受了终端设备通过第二SNPN在第一网络的注册,则可以去注册终端设备通过第一SNPN在第一网络的注册,以避免终端设备在第一网络内注册两次。Since the first core network device has accepted the registration of the terminal device in the first network through the second SNPN, it can deregister the terminal device in the first network through the first SNPN, so as to prevent the terminal device from registering twice in the first network. .

在一种可选的实现方式中,所述第一核心网设备对所述终端设备通过第一非公共网络在所述第一网络的注册进行去注册,包括:所述第一核心网设备删除第三核心网设备对应于所述第一非公共网络的注册上下文;或,所述第一核心网设备接收来自所述第二核心网设备的第二请求消息,所述第二请求消息用于指示对所述终端设备通过第一非公共网络在所述第一网络的注册进行去注册,所述第一核心网设备删除第三核心网设备对应于所述第一非公共网络的注册上下文。In an optional implementation manner, the first core network device deregisters the registration of the terminal device in the first network through the first non-public network, including: deleting the first core network device The third core network device corresponds to the registration context of the first non-public network; or, the first core network device receives a second request message from the second core network device, where the second request message is used for Instructing to de-register the registration of the terminal device in the first network through the first non-public network, and the first core network device deletes the registration context of the third core network device corresponding to the first non-public network.

如果是第一核心网设备确定接受终端设备的本次注册,那么第一核心网设备可以自行删除第三核心网设备对应于第一SNPN的注册上下文,即,第一核心网设备删除第三核心网设备对应于本次注册的信息。或者,如果是由第二核心网设备接受终端设备的本次注册,相当于第一核心网设备没有决策权,那么第二核心网设备可以通过第二请求消息请求第一核心网设备对第三核心网设备在第一网络中的注册进行去注册,则第一核心网设备可以删除第三核心网设备对应于第一SNPN的注册上下文。这样,无论第一核心网设备是否能够决策拒绝终端设备的注册,第一核心网设备都能够删除第三核心网设备对应于第一SNPN的注册上下文,以节省第一核心网设备的存储空间,也避免第一核心网设备存储错误信息,而且也避免了终端设备在第一网络内双注册。If the first core network device determines to accept the current registration of the terminal device, the first core network device can delete the registration context of the third core network device corresponding to the first SNPN by itself, that is, the first core network device deletes the third core network device. The network device corresponds to the information registered this time. Or, if the second core network device accepts the current registration of the terminal device, which means that the first core network device has no decision-making power, then the second core network device can request the first core network device to request the third If the registration of the core network device in the first network is de-registered, the first core network device may delete the registration context of the third core network device corresponding to the first SNPN. In this way, regardless of whether the first core network device can decide to reject the registration of the terminal device, the first core network device can delete the registration context of the third core network device corresponding to the first SNPN, so as to save the storage space of the first core network device, It also prevents the first core network device from storing erroneous information, and also avoids double registration of the terminal device in the first network.

在一种可选的实现方式中,所述第二非公共网络的信息包括所述第二非公共网络的标识,和/或,非公共网络接入模式指示。In an optional implementation manner, the information of the second non-public network includes an identifier of the second non-public network, and/or an indication of an access mode of the non-public network.

第二SNPN的信息例如包括第二SNPN的标识,或者包括第二SNPN接入模式指示,或者包括第二SNPN的标识和第二SNPN接入模式指示。The information of the second SNPN includes, for example, an identifier of the second SNPN, or an access mode indication of the second SNPN, or an identifier of the second SNPN and an access mode indication of the second SNPN.

在一种可选的实现方式中,所述方法还包括:所述第一核心网设备接收来自所述第三核心网设备的第二请求消息,所述第二请求消息用于所述第三核心网设备请求为终端设备提供服务,所述第二请求消息包括所述第一非公共网络的信息;所述第一核心网设备记录所述终端设备的注册上下文,所述终端设备的注册上下文包括所述第一非公共网络的信息;以及,所述第一核心网设备向所述第三核心网设备发送第二响应消息,所述第二响应消息用于指示所述第三核心网设备成功注册为所述终端设备提供服务。In an optional implementation manner, the method further includes: receiving, by the first core network device, a second request message from the third core network device, where the second request message is used for the third The core network device requests to provide services for the terminal device, and the second request message includes the information of the first non-public network; the first core network device records the registration context of the terminal device, the registration context of the terminal device including the information of the first non-public network; and, the first core network device sends a second response message to the third core network device, where the second response message is used to instruct the third core network device Successfully registered to provide services for the terminal device.

这是终端设备上次的注册过程,即,通过该次注册,终端设备是通过第一SNPN注册到了第一网络。在该注册过程中,第一核心网设备可以记录第一SNPN的信息,从而第一核心网设备后续可以确定是否接受终端设备移动后的再次注册。This is the last registration process of the terminal device, that is, through this registration, the terminal device is registered to the first network through the first SNPN. During the registration process, the first core network device can record the information of the first SNPN, so that the first core network device can subsequently determine whether to accept the re-registration after the terminal device moves.

在一种可选的实现方式中,所述第一非公共网络的信息包括所述第一非公共网络的标识,和/或,非公共网络接入模式指示。In an optional implementation manner, the information of the first non-public network includes an identifier of the first non-public network, and/or an indication of an access mode of the non-public network.

第一SNPN的信息例如包括第一SNPN的标识,或者包括第一SNPN接入模式指示,或者包括第一SNPN的标识和第一SNPN接入模式指示。The information of the first SNPN includes, for example, an identifier of the first SNPN, or an access mode indication of the first SNPN, or an identifier of the first SNPN and an access mode indication of the first SNPN.

在一种可选的实现方式中,所述第一响应消息包括所述终端设备的注册上下文。In an optional implementation manner, the first response message includes the registration context of the terminal device.

第一响应消息可以指示PLMN AMF成功注册为该UE提供服务,一种指示方式为隐式指示,例如第一核心网设备在第一响应消息中携带终端设备的注册上下文,终端设备的注册上下文可以隐式指示第二核心网设备成功注册为该终端设备提供服务。或者,另一种指示方式为显式指示,第一核心网设备也可以在第一响应消息中携带指示信息,该指示信息可指示该终端设备已通过第二SNPN注册到第一网络,或者指示第二核心网设备成功注册为该终端设备提供服务。指示信息的信息量较小,能够节省信令开销。The first response message can indicate that the PLMN AMF has successfully registered to provide services for the UE. An indication method is an implicit indication. For example, the first core network device carries the registration context of the terminal device in the first response message, and the registration context of the terminal device can be Implicitly instructs the second core network device to successfully register to provide services for the terminal device. Alternatively, another indication method is an explicit indication. The first core network device may also carry indication information in the first response message, and the indication information may indicate that the terminal device has registered with the first network through the second SNPN, or indicate The second core network device is successfully registered to provide services for the terminal device. The information amount of the indication information is small, which can save signaling overhead.

在一种可选的实现方式中,在所述第一核心网设备向所述第二核心网设备发送第一响应消息之前,还包括:In an optional implementation manner, before the first core network device sends the first response message to the second core network device, the method further includes:

所述第一核心网设备根据所述移动注册类型、所述第二非公共网络的信息和记录的所述终端设备的注册上下文,确定所述第二核心网设备成功注册为终端设备提供服务。The first core network device determines, according to the mobile registration type, the information of the second non-public network, and the recorded registration context of the terminal device, that the second core network device is successfully registered to provide services for the terminal device.

第一核心网设备根据移动注册类型,确定终端设备为移动后的注册。而第二SNPN与终端设备的注册上下文所包括的第一SNPN的信息对应的第一SNPN,二者不是同一个SNPN,第一核心网设备可以确定终端设备是在移动后又通过另一个SNPN注册到第一网络,因此第一核心网设备可以确定第二核心网设备成功注册为终端设备提供服务,这样可以使得终端设备在移动后能够正常工作。The first core network device determines that the terminal device is registered after moving according to the mobile registration type. However, the second SNPN and the first SNPN corresponding to the information of the first SNPN included in the registration context of the terminal device are not the same SNPN. The first core network device can determine that the terminal device is registered through another SNPN after moving. to the first network, so the first core network device can determine that the second core network device has successfully registered to provide services for the terminal device, so that the terminal device can work normally after moving.

第四方面,提供第四种通信方法,该方法例如由第二核心网设备执行,或者由能够实现第二核心网设备的功能的芯片执行。在5G系统中,第二核心网设备例如为AMF。该方法包括:第一网络内的第二核心网设备通过第一网络设备接收来自终端设备的第三请求消息,所述第三请求消息用于所述终端设备请求注册到所述第一网络,所述第三请求消息还包括移动注册类型,所述移动注册类型用于指示所述第三请求消息为所述终端设备由于移动而触发的注册请求,所述第一网络为所述终端设备的归属网络;所述第二核心网设备向第一核心网设备发送第一请求消息,所述第一请求消息用于所述第二核心网设备请求为所述终端设备提供服务,所述第一请求消息包括所述移动注册类型以及第二非公共网络的信息;所述第二核心网设备接收来自所述第一核心网设备的第一响应消息,所述第一响应消息用于指示所述第二核心网设备成功注册为所述终端设备提供服务;所述第二核心网设备向所述终端设备发送第三响应消息,所述第三响应消息用于指示所述终端设备成功注册到所述第一网络。In a fourth aspect, a fourth communication method is provided, and the method is performed by, for example, a second core network device, or a chip capable of implementing functions of the second core network device. In the 5G system, the second core network device is, for example, an AMF. The method includes: a second core network device in the first network receives a third request message from a terminal device through the first network device, where the third request message is used by the terminal device to request to register with the first network, The third request message further includes a mobile registration type, where the mobile registration type is used to indicate that the third request message is a registration request triggered by the terminal device due to movement, and the first network is a registration request of the terminal device. home network; the second core network device sends a first request message to the first core network device, where the first request message is used by the second core network device to request to provide services for the terminal device, the first request message The request message includes the mobile registration type and information of the second non-public network; the second core network device receives a first response message from the first core network device, where the first response message is used to indicate the The second core network device successfully registers to provide services for the terminal device; the second core network device sends a third response message to the terminal device, where the third response message is used to instruct the terminal device to successfully register with the terminal device. Describe the first network.

在一种可选的实现方式中,所述第二非公共网络的信息包括所述第二非公共网络的标识,和/或,非公共网络接入模式指示。In an optional implementation manner, the information of the second non-public network includes an identifier of the second non-public network, and/or an indication of an access mode of the non-public network.

在一种可选的实现方式中,所述第一响应消息包括所述终端设备的注册上下文。In an optional implementation manner, the first response message includes the registration context of the terminal device.

在一种可选的实现方式中,在所述第二核心网设备向所述终端设备发送第三响应消息之前,所述方法还包括:所述第二核心网设备根据所述移动注册类型、所述第二非公共网络的信息和所述终端设备的注册上下文,确定所述终端设备成功注册到所述第一网络。In an optional implementation manner, before the second core network device sends a third response message to the terminal device, the method further includes: the second core network device according to the mobile registration type, The information of the second non-public network and the registration context of the terminal device determine that the terminal device successfully registers with the first network.

在一种可选的实现方式中,所述方法还包括:所述第二核心网设备向所述第一核心网设备发送第二请求消息,所述第二请求消息用于指示对所述终端设备通过第一非公共网络在所述第一网络的注册进行去注册。In an optional implementation manner, the method further includes: the second core network device sends a second request message to the first core network device, where the second request message is used to indicate that the terminal The device is deregistered through the registration of the first non-public network with the first network.

关于第四方面或各种可选的实施方式所带来的技术效果,可参考对于第三方面或相应的实施方式的技术效果的介绍。Regarding the technical effects brought by the fourth aspect or various optional embodiments, reference may be made to the introduction to the technical effects of the third aspect or corresponding embodiments.

第五方面,提供第五种通信方法,该方法例如由第一网络设备执行,或者由能够实现第一网络设备的功能的芯片执行。在5G系统中,第一网络设备例如为N3IWF。该方法包括:第一网络内的第一网络设备接收来自终端设备的第四请求消息,所述第四请求消息用于所述终端设备请求注册到第一网络,所述第一网络为所述终端设备的归属网络;所述第一网络设备确定所述终端设备接入的非公共网络的信息;所述第一网络设备向第二核心网设备发送所述非公共网络的信息。In a fifth aspect, a fifth communication method is provided, and the method is executed by, for example, a first network device, or a chip capable of implementing functions of the first network device. In the 5G system, the first network device is, for example, the N3IWF. The method includes: a first network device in a first network receives a fourth request message from a terminal device, where the fourth request message is used by the terminal device to request to register with a first network, where the first network is the the home network of the terminal device; the first network device determines the information of the non-public network accessed by the terminal device; the first network device sends the information of the non-public network to the second core network device.

可以由N3IWF确定SNPN的信息并发送给第二核心网设备,则终端设备无需确定SNPN的信息,那么终端设备发送给N3IWF的第四请求消息就无需包括SNPN的信息,有助于节省信令开销。The SNPN information can be determined by the N3IWF and sent to the second core network device, then the terminal device does not need to determine the SNPN information, then the fourth request message sent by the terminal device to the N3IWF does not need to include the SNPN information, which helps to save signaling overhead .

在一种可选的实现方式中,所述第一网络设备确定所述终端设备接入的非公共网络的信息,包括:所述第一网络设备根据非公共网络与隧道或IP地址之间的对应关系,确定所述终端设备接入的非公共网络的信息;或,所述第一网络设备根据非公共网络与第一网络设备之间的对应关系,确定所述终端设备接入的非公共网络的信息。In an optional implementation manner, the determining, by the first network device, the information of the non-public network accessed by the terminal device includes: the first network device determining, according to the information between the non-public network and the tunnel or IP address, by the first network device. Corresponding relationship, determine the information of the non-public network accessed by the terminal device; or, the first network device determines the non-public network accessed by the terminal device according to the corresponding relationship between the non-public network and the first network device. network information.

例如,预先配置(或,协议规定)了SNPN与隧道之间的对应关系,或该隧道例如为终端设备与N3IWF之间的隧道,或为SNPN UPF与N3IWF之间的隧道,该对应关系对于终端设备或UPF来说也是已知的,例如SNPN与隧道一一对应。那么UE在发送第四请求消息时,或UPF在转发终端设备的第四请求消息时,可以选择该终端设备接入的SNPN对应的隧道发送,则N3IWF根据接收第四请求消息的隧道,就能确定该终端设备接入的SNPN的信息。又例如,预先配置(或,协议规定)了SNPN与SNPN UPF的IP地址之间的对应关系,例如SNPN与SNPN UPF的IP地址一一对应。那么,N3IWF从SNPN UPF接收第四请求消息时,根据检测到的该SNPNUPF的IP地址,就能确定该第四接入的SNPN的信息。再例如,预先配置(或,协议规定)了SNPN与N3IWF之间的对应关系,该对应关系对于终端设备来说也是已知的,例如SNPN与N3IWF ID一一对应。那么终端设备在发送第四请求消息时,可以选择该终端设备接入的SNPN对应的N3IWF,相应的N3IWF如果接收了来自终端设备的第四请求消息,就能确定该终端设备接入的SNPN是该N3IWF所对应的SNPN。或者,除了如上方式外,N3IWF还可以通过其他方式确定SNPN的信息,本申请实施例不做限制。For example, the corresponding relationship between the SNPN and the tunnel is pre-configured (or stipulated by the protocol), or the tunnel is, for example, the tunnel between the terminal device and the N3IWF, or the tunnel between the SNPN UPF and the N3IWF. It is also known to the device or UPF, eg SNPN corresponds to tunnel one-to-one. Then, when the UE sends the fourth request message, or when the UPF forwards the fourth request message of the terminal device, it can select the tunnel corresponding to the SNPN accessed by the terminal device to send, then the N3IWF can receive the fourth request message according to the tunnel. Determine the information of the SNPN accessed by the terminal device. For another example, the correspondence between the SNPN and the IP addresses of the SNPN UPF is pre-configured (or specified by the protocol), for example, the SNPN and the IP addresses of the SNPN UPF are in one-to-one correspondence. Then, when the N3IWF receives the fourth request message from the SNPN UPF, it can determine the information of the fourth accessed SNPN according to the detected IP address of the SNP NUPF. For another example, the corresponding relationship between the SNPN and the N3IWF is pre-configured (or stipulated by the protocol), and the corresponding relationship is also known to the terminal device, for example, the SNPN and the N3IWF ID have a one-to-one correspondence. Then, when the terminal device sends the fourth request message, it can select the N3IWF corresponding to the SNPN accessed by the terminal device. If the corresponding N3IWF receives the fourth request message from the terminal device, it can determine that the SNPN accessed by the terminal device is The SNPN corresponding to the N3IWF. Alternatively, in addition to the above manner, the N3IWF may also determine the SNPN information in other manners, which are not limited in this embodiment of the present application.

第六方面,提供一种通信装置,该通信装置可以是第一核心网设备、第二核心网设备或第一网络设备,或者该通信装置也可以是芯片。该通信装置具有实现上述第一方面、第二方面、第三方面、第四方面、或第五方面中任意一个方面的各实施例的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a sixth aspect, a communication apparatus is provided. The communication apparatus may be a first core network device, a second core network device or a first network device, or the communication apparatus may also be a chip. The communication device has the function of implementing each embodiment of any one of the first aspect, the second aspect, the third aspect, the fourth aspect, or the fifth aspect. This function can be implemented by hardware or by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions.

第七方面,提供一种通信装置,包括处理器和通信接口。可选的,还可以包括存储器,或者该通信装置也可以不包括存储器,存储器可位于该通信装置外部。该存储器用于存储计算机程序,当该通信装置运行时,该处理器执行该存储器存储的计算机程序,以使该通信装置执行如上述第一方面或第一方面中任一可选的实施方式中由第一核心网设备所执行的方法,或者以使该装置执行如上述第二方面或第二方面中任一可选的实施方式中由第二核心网设备所执行的方法,或者以使该装置执行如上述第三方面或第三方面中任一可选的实施方式中由第一核心网设备所执行的方法,或者以使该装置执行如上述第四方面或第四方面中任一可选的实施方式中由第二核心网设备所述的方法,或者以使该装置执行如上述第五方面或第五方面中任一可选的实施方式中由第一网络设备所述的方法。In a seventh aspect, a communication apparatus is provided, including a processor and a communication interface. Optionally, a memory may also be included, or the communication device may not include a memory, and the memory may be located outside the communication device. The memory is used to store a computer program, and when the communication device runs, the processor executes the computer program stored in the memory, so that the communication device executes the first aspect or any optional implementation manner of the first aspect. The method executed by the first core network device, or to cause the apparatus to execute the method executed by the second core network device in the second aspect or any optional implementation manner of the second aspect, or to cause the device to execute the method. The apparatus executes the method executed by the first core network device in the third aspect or any optional implementation manner of the third aspect, or causes the apparatus to execute the fourth aspect or the fourth aspect. The method described by the second core network device in the selected embodiment, or the apparatus is made to perform the method described by the first network device in any optional embodiment of the fifth aspect or the fifth aspect.

第八方面,提供第一通信系统,所述第一通信系统包括第六方面所述的通信装置(执行第一方面或第一方面的各种可选的实施方式所述的方法)或第七方面所述的通信装置(执行第一方面或第一方面的各种可选的实施方式所述的方法),包括第六方面所述的通信装置(执行第二方面或第二方面的各种可选的实施方式所述的方法)或第七方面所述的通信装置(执行第二方面或第二方面的各种可选的实施方式所述的方法),以及,包括第六方面所述的通信装置(执行第五方面或第五方面的各种可选的实施方式所述的方法)或第七方面所述的通信装置(执行第五方面或第五方面的各种可选的实施方式所述的方法)。In an eighth aspect, a first communication system is provided, where the first communication system includes the communication apparatus described in the sixth aspect (performing the method described in the first aspect or various optional implementation manners of the first aspect) or the seventh aspect The communication apparatus described in the aspect (executing the method described in the first aspect or various optional implementation manners of the first aspect), including the communication apparatus described in the sixth aspect (executing the second aspect or various optional implementation manners of the second aspect) the method described in the optional embodiment) or the communication device described in the seventh aspect (executing the method described in the second aspect or various optional embodiments of the second aspect), and, including the method described in the sixth aspect The communication apparatus described in the fifth aspect (performing the method described in the fifth aspect or various optional implementation manners of the fifth aspect) or the communication apparatus described in the seventh aspect (performing the fifth aspect or various optional implementation manners of the fifth aspect) method described in the method).

第九方面,提供第二通信系统,所述第二通信系统包括第六方面所述的通信装置(执行第三方面或第三方面的各种可选的实施方式所述的方法)或第七方面所述的通信装置(执行第三方面或第三方面的各种可选的实施方式所述的方法),包括第六方面所述的通信装置(执行第四方面或第四方面的各种可选的实施方式所述的方法)或第七方面所述的通信装置(执行第四方面或第四方面的各种可选的实施方式所述的方法),以及,包括第六方面所述的通信装置(执行第五方面或第五方面的各种可选的实施方式所述的方法)或第七方面所述的通信装置(执行第五方面或第五方面的各种可选的实施方式所述的方法)。In a ninth aspect, a second communication system is provided, and the second communication system includes the communication apparatus described in the sixth aspect (performing the method described in the third aspect or various optional implementation manners of the third aspect) or the seventh aspect The communication apparatus described in the aspect (performing the method described in the third aspect or various optional implementation manners of the third aspect), including the communication apparatus described in the sixth aspect (performing the fourth aspect or various optional implementation manners of the fourth aspect) the method described in the optional embodiment) or the communication device described in the seventh aspect (executing the method described in the fourth aspect or various optional embodiments of the fourth aspect), and, including the method described in the sixth aspect The communication apparatus described in the fifth aspect (performing the method described in the fifth aspect or various optional implementation manners of the fifth aspect) or the communication apparatus described in the seventh aspect (performing the fifth aspect or various optional implementation manners of the fifth aspect) method described in the method).

第十方面,提供一种计算机可读存储介质,所述计算机可读存储介质用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述第一方面或任意一种可选的实施方式中所述的方法。In a tenth aspect, a computer-readable storage medium is provided, where the computer-readable storage medium is used to store a computer program, and when the computer program runs on a computer, the computer is made to execute the first aspect or any one of the above The method described in the alternative embodiment.

第十一方面,提供一种计算机可读存储介质,所述计算机可读存储介质用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述第二方面或任意一种可选的实施方式中所述的方法。In an eleventh aspect, a computer-readable storage medium is provided, the computer-readable storage medium is used to store a computer program, and when the computer program is run on a computer, the computer is made to execute the second aspect or any one of the above method described in an alternative embodiment.

第十二方面,提供一种计算机可读存储介质,所述计算机可读存储介质用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述第三方面或任意一种可选的实施方式中所述的方法。In a twelfth aspect, a computer-readable storage medium is provided, the computer-readable storage medium is used to store a computer program, and when the computer program runs on a computer, the computer is made to execute the third aspect or any one of the above method described in an alternative embodiment.

第十三方面,提供一种计算机可读存储介质,所述计算机可读存储介质用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述第四方面或任意一种可选的实施方式中所述的方法。In a thirteenth aspect, a computer-readable storage medium is provided, where the computer-readable storage medium is used to store a computer program, and when the computer program runs on a computer, the computer is made to execute the fourth aspect or any one of the above method described in an alternative embodiment.

第十四方面,提供一种计算机可读存储介质,所述计算机可读存储介质用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述第五方面或任意一种可选的实施方式中所述的方法。In a fourteenth aspect, a computer-readable storage medium is provided, the computer-readable storage medium is used to store a computer program, and when the computer program is run on a computer, the computer is made to execute the fifth aspect or any one of the above method described in an alternative embodiment.

第十五方面,提供一种包含指令的计算机程序产品,所述计算机程序产品用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述第一方面或的任意一种可选的实施方式中所述的方法。A fifteenth aspect provides a computer program product comprising instructions, the computer program product is used to store a computer program, and when the computer program is run on a computer, the computer is made to execute any one of the above-mentioned first aspect or method described in an alternative embodiment.

第十六方面,提供一种包含指令的计算机程序产品,所述计算机程序产品用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述第二方面或的任意一种可选的实施方式中所述的方法。A sixteenth aspect provides a computer program product comprising instructions, the computer program product is used to store a computer program, and when the computer program is run on a computer, the computer is made to execute any one of the above-mentioned second aspect or method described in an alternative embodiment.

第十七方面,提供一种包含指令的计算机程序产品,所述计算机程序产品用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述第三方面或的任意一种可选的实施方式中所述的方法。A seventeenth aspect provides a computer program product comprising instructions, the computer program product is used to store a computer program, when the computer program is run on a computer, the computer is made to execute any one of the third aspect or the above method described in an alternative embodiment.

第十八方面,提供一种包含指令的计算机程序产品,所述计算机程序产品用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述第四方面或的任意一种可选的实施方式中所述的方法。An eighteenth aspect provides a computer program product comprising instructions, the computer program product is used to store a computer program, and when the computer program is run on a computer, the computer is made to execute any one of the fourth aspect or the above method described in an alternative embodiment.

第十九方面,提供一种包含指令的计算机程序产品,所述计算机程序产品用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述第五方面或的任意一种可选的实施方式中所述的方法。A nineteenth aspect provides a computer program product comprising instructions, the computer program product is used to store a computer program, and when the computer program is run on a computer, the computer is made to execute any one of the above-mentioned fifth aspect or method described in an alternative embodiment.

通过本申请实施例提供的方式,减少了终端设备的冗余注册过程,且由于终端设备无需进行本次注册过程,也减少了后续过程中所耗费的资源。The method provided by the embodiment of the present application reduces the redundant registration process of the terminal device, and because the terminal device does not need to perform this registration process, the resources consumed in the subsequent process are also reduced.

附图说明Description of drawings

图1为5G通信系统架构的一种示意图;Fig. 1 is a kind of schematic diagram of 5G communication system architecture;

图2为5G通信系统架构的一种更为详细的示意图;FIG. 2 is a more detailed schematic diagram of the 5G communication system architecture;

图3A为UE接入PNI-NPN的一种示意图;3A is a schematic diagram of UE accessing PNI-NPN;

图3B为UE接入SNPN的一种示意图;Fig. 3B is a kind of schematic diagram of UE accessing SNPN;

图4A为通过N3IWF实现SNPN与PLMN互通的一种示意图;Fig. 4A is a kind of schematic diagram that realizes SNPN and PLMN intercommunication through N3IWF;

图4B为通过漫游架构实现SNPN与PLMN互通的一种示意图;Fig. 4B is a kind of schematic diagram that realizes SNPN and PLMN intercommunication through roaming framework;

图5为PLMN可能支持UE通过不同方式注册的一种示意图;Fig. 5 is a kind of schematic diagram that PLMN may support UE to register through different ways;

图6为本申请实施例提供的第一种通信方法的流程图;6 is a flowchart of a first communication method provided by an embodiment of the present application;

图7为本申请实施例提供的第二种通信方法的流程图;7 is a flowchart of a second communication method provided by an embodiment of the present application;

图8为UE在移动后可能再次注册到PLMN的一种示意图;Fig. 8 is a kind of schematic diagram that UE may register to PLMN again after moving;

图9为本申请实施例提供的第三种通信方法的流程图;9 is a flowchart of a third communication method provided by an embodiment of the present application;

图10为本申请实施例提供的第四种通信方法的流程图;10 is a flowchart of a fourth communication method provided by an embodiment of the present application;

图11为本申请实施例提供的一种装置的示意图;FIG. 11 is a schematic diagram of a device provided by an embodiment of the present application;

图12为本申请实施例提供的又一种装置的示意图。FIG. 12 is a schematic diagram of still another apparatus provided by an embodiment of the present application.

具体实施方式Detailed ways

为了使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施例作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the embodiments of the present application more clear, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.

以下,对本申请实施例中的部分用语进行解释说明,以便于本领域技术人员理解。Hereinafter, some terms in the embodiments of the present application will be explained, so as to facilitate the understanding of those skilled in the art.

本申请实施例中,终端设备是一种具有无线收发功能的设备,可以是固定设备,移动设备、手持设备、穿戴设备、车载设备,或内置于上述设备中的无线装置(例如,通信模块或芯片系统等)。所述终端设备用于连接人,物,机器等,可广泛用于各种场景,例如包括但不限于以下场景:蜂窝通信、设备到设备通信(device-to-device,D2D)、车到一切(vehicleto everything,V2X)、机器到机器/机器类通信(machine-to-machine/machine-typecommunications,M2M/MTC)、物联网(internet of things,IoT)、虚拟现实(virtualreality,VR)、增强现实(augmented reality,AR)、工业控制(industrial control)、无人驾驶(self driving)、远程医疗(remote medical)、智能电网(smart grid)、智能家具、智能办公、智能穿戴、智能交通,智慧城市(smart city)、无人机、机器人等场景的终端设备。所述终端设备有时可称为用户设备(user equipment,UE)、终端、接入站、UE站、远方站、无线通信设备、或用户装置等等,为描述方便,本申请实施例中将终端设备以UE为例进行说明。In this embodiment of the present application, a terminal device is a device with a wireless transceiver function, which may be a fixed device, a mobile device, a handheld device, a wearable device, a vehicle-mounted device, or a wireless device (for example, a communication module or a wireless device) built into the above-mentioned device. system-on-chip, etc.). The terminal device is used to connect people, things, machines, etc., and can be widely used in various scenarios, such as but not limited to the following scenarios: cellular communication, device-to-device communication (device-to-device, D2D), vehicle-to-everything (vehicle to everything, V2X), machine-to-machine/machine-type communications (M2M/MTC), Internet of things (Internet of things, IoT), virtual reality (virtual reality, VR), augmented reality (augmented reality, AR), industrial control (industrial control), unmanned driving (self driving), telemedicine (remote medical), smart grid (smart grid), smart furniture, smart office, smart wear, smart transportation, smart city (smart city), drones, robots and other terminal equipment. The terminal equipment may sometimes be referred to as user equipment (UE), a terminal, an access station, a UE station, a remote station, a wireless communication device, a user equipment, or the like. The device is described by taking the UE as an example.

本申请实施例中的网络设备,例如包括接入网设备,和/或核心网设备。所述接入网设备为具有无线收发功能的设备,用于与所述终端设备进行通信。所述接入网设备包括但不限于上述通信系统中的基站(BTS,Node B,eNodeB/eNB,或gNodeB/gNB)、收发点(transmission reception point,TRP),3GPP后续演进的基站,无线保真(wirelessfidelity,WiFi)系统中的接入节点,无线中继节点,无线回传节点等。所述基站可以是:宏基站,微基站,微微基站,小站,中继站等。多个基站可以支持上述提及的同一种接入技术的网络,也可以支持上述提及的不同接入技术的网络。基站可以包含一个或多个共站或非共站的传输接收点。网络设备还可以是云无线接入网络(cloud radio access network,CRAN)场景下的无线控制器、集中单元(centralized unit,CU),和/或分布单元(distributed unit,DU)。网络设备还可以是服务器,可穿戴设备,或车载设备等。例如,车到一切(vehicle to everything,V2X)技术中的网络设备可以为路侧单元(road sideunit,RSU)。以下对接入网设备以为基站为例进行说明。所述通信系统中的多个网络设备可以为同一类型的基站,也可以为不同类型的基站。基站可以与终端设备进行通信,也可以通过中继站与终端设备进行通信。终端设备可以与不同接入技术中的多个基站进行通信。所述核心网设备用于实现移动管理,数据处理,会话管理,策略和计费等功能。不同接入技术的系统中实现核心网功能的设备名称可以不同,本申请并不对此进行限定。以5G系统为例,所述核心网设备包括:接入和移动管理功能(access and mobility managementfunction,AMF)、统一数据管理(unified data management,UDM)、或用户面功能(userplane function,UPF)等。The network devices in the embodiments of the present application include, for example, access network devices and/or core network devices. The access network device is a device with a wireless transceiver function, and is used to communicate with the terminal device. The access network equipment includes but is not limited to the base station (BTS, Node B, eNodeB/eNB, or gNodeB/gNB), the transmission reception point (TRP), the base station of the subsequent evolution of 3GPP, the wireless Access nodes, wireless relay nodes, wireless backhaul nodes, etc. in a true (wirelessfidelity, WiFi) system. The base station may be: a macro base station, a micro base station, a pico base station, a small base station, a relay station, and the like. Multiple base stations may support the aforementioned networks of the same access technology, or may support the aforementioned networks of different access technologies. A base station may contain one or more co-sited or non-co-sited transmission reception points. The network device may also be a wireless controller, a centralized unit (centralized unit, CU), and/or a distributed unit (distributed unit, DU) in a cloud radio access network (cloud radio access network, CRAN) scenario. The network device can also be a server, a wearable device, or a vehicle-mounted device. For example, a network device in a vehicle to everything (V2X) technology may be a road side unit (RSU). The following description will be given by taking the access network device as a base station as an example. The multiple network devices in the communication system may be base stations of the same type, or may be base stations of different types. The base station can communicate with the terminal equipment, and can also communicate with the terminal equipment through the relay station. A terminal device can communicate with multiple base stations in different access technologies. The core network equipment is used to implement functions such as mobility management, data processing, session management, policy and charging. The names of devices implementing core network functions in systems with different access technologies may be different, which are not limited in this application. Taking the 5G system as an example, the core network equipment includes: access and mobility management function (AMF), unified data management (unified data management, UDM), or user plane function (userplane function, UPF), etc. .

本申请实施例中,用于实现网络设备的功能的装置可以是网络设备,也可以是能够支持网络设备实现该功能的装置,例如芯片系统,该装置可以被安装在网络设备中。在本申请实施例提供的技术方案中,以用于实现网络设备的功能的装置是网络设备为例,描述本申请实施例提供的技术方案。In this embodiment of the present application, the apparatus for implementing the function of the network device may be the network device, or may be an apparatus capable of supporting the network device to implement the function, such as a chip system, and the apparatus may be installed in the network device. In the technical solutions provided by the embodiments of the present application, the technical solutions provided by the embodiments of the present application are described by taking the device for realizing the function of the network device being a network device as an example.

本申请中,对于名词的数目,除非特别说明,表示“单数名词或复数名词”,即"一个或多个”。“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。例如,A/B,表示:A或B。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),表示:a,b,c,a和b,a和c,b和c,或a和b和c,其中a,b,c可以是单个,也可以是多个。In this application, the number of nouns, unless otherwise specified, means "singular nouns or plural nouns", ie "one or more". "At least one" means one or more, and "plurality" means two or more. "And/or", which describes the relationship of the associated objects, indicates that there can be three kinds of relationships, for example, A and/or B, it can indicate that A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the associated objects are an "or" relationship. For example, A/B, means: A or B. "At least one item(s) below" or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one of a, b, or c, means: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, c Can be single or multiple.

当前,UE可接入的移动网络包括2G,3G,4G网络,这些网络为UE的通话业务、视频业务、网页业务等提供业务数据传输的通道。但是,车联网、虚拟现实、移动办公、物联网等新型业务的爆发式发展,要求移动网络提供光纤般的接入速率,“零”时延的使用体验,千亿设备的连接能力,超高流量密度、超高连接数密度和超高移动性等多场景的一致服务,业务及用户感知的智能优化,和超百倍的能效提升和超百倍的比特成本降低,这些都是传统网络的软肋,不能够为未来业务的高速发展保驾护航。Currently, mobile networks accessible to the UE include 2G, 3G, and 4G networks, and these networks provide service data transmission channels for the UE's call service, video service, and web page service. However, the explosive development of new services such as the Internet of Vehicles, virtual reality, mobile office, and the Internet of Things requires mobile networks to provide fiber-like access rates, a "zero" latency experience, and the ability to connect hundreds of billions of devices. Consistent services in multiple scenarios such as traffic density, ultra-high connection density, and ultra-high mobility, intelligent optimization of services and user perception, and over 100 times higher energy efficiency and over 100 times lower bit cost are the weaknesses of traditional networks. It cannot escort the rapid development of future business.

第三代合作伙伴计划(3th generation partnership project,3GPP)标准制定的5G的通信系统架构有四个构成部分,可参考图1。图1包括下一代UE(nextgeneration UE)、下一代(无线)接入网((radio)access network,(R)AN)、下一代核心网(core)以及数据网络(data network)。NextGen(或NG)是下一代(即5G)移动通信系统架构简称,由UE,AN,Core和数据网络构成。其中,UE,AN,Core是构成架构的主要成分,逻辑上它们可以分为用户面和控制面两部分,控制面负责移动网络的管理,用户面负责业务数据的传输。图1中,NG2参考点位于AN控制面和Core控制面之间,NG3参考点位于AN用户面和Core用户面之间,NG6参考点位于Core用户面和数据网络之间。The 5G communication system architecture formulated by the 3rd Generation Partnership Project (3GPP) standard has four components, as shown in Figure 1. FIG. 1 includes a next-generation UE, a next-generation (radio) access network ((R)AN), a next-generation core network (core), and a data network (data network). NextGen (or NG) is the abbreviation of the next generation (ie 5G) mobile communication system architecture, which consists of UE, AN, Core and data network. Among them, UE, AN, and Core are the main components of the architecture. Logically, they can be divided into two parts: the user plane and the control plane. The control plane is responsible for the management of the mobile network, and the user plane is responsible for the transmission of service data. In Figure 1, the NG2 reference point is located between the AN control plane and the Core control plane, the NG3 reference point is located between the AN user plane and the Core user plane, and the NG6 reference point is located between the Core user plane and the data network.

UE是移动用户与网络交互的入口,能够提供基本的计算能力,存储能力,向用户显示业务窗口,接受用户操作输入。NextGen UE会采用新空口技术,与AN建立信号连接,数据连接,从而传输控制信号和业务数据到移动网络。The UE is the portal for mobile users to interact with the network, and can provide basic computing capabilities, storage capabilities, display service windows to users, and accept user operation inputs. The NextGen UE will use the new air interface technology to establish a signal connection and a data connection with the AN, thereby transmitting control signals and service data to the mobile network.

AN类似于传统网络中的基站,部署在靠近UE的位置,为特定区域的授权用户提供入网功能,并能够根据用户的级别,业务的需求等确定不同质量的传输隧道来传输用户数据。AN能够管理自身的资源,合理利用,按需为UE提供接入服务,并负责将控制信号和用户数据在UE和核心网之间转发。The AN is similar to the base station in the traditional network. It is deployed close to the UE to provide network access functions for authorized users in a specific area, and can determine transmission tunnels of different quality to transmit user data according to the user's level and service requirements. The AN can manage its own resources, utilize them reasonably, provide access services for the UE on demand, and is responsible for forwarding control signals and user data between the UE and the core network.

Core可以包括多个网元,这些网元负责维护移动网络的签约数据,管理移动网络的网元,为UE提供会话管理,移动性管理,策略管理,安全认证等功能。在UE附着的时候,为UE提供入网认证;在UE有业务请求时,为UE分配网络资源;在UE移动时,为UE更新网络资源;在UE空闲时,为UE提供快恢复机制;在UE去附着时,为UE释放网络资源;在UE有业务数据时,为UE提供数据路由功能,如转发上行数据到数据网络;或者从数据网络接收UE的下行数据,转发到AN,从而发送给UE。The Core may include multiple network elements, which are responsible for maintaining subscription data of the mobile network, managing the network elements of the mobile network, and providing functions such as session management, mobility management, policy management, and security authentication for the UE. When the UE is attached, it provides network access authentication for the UE; when the UE has a service request, it allocates network resources for the UE; when the UE moves, it updates the network resources for the UE; when the UE is idle, it provides a fast recovery mechanism for the UE; When detaching, it releases network resources for the UE; when the UE has service data, it provides data routing functions for the UE, such as forwarding uplink data to the data network; or receives the downlink data of the UE from the data network, forwards it to the AN, and sends it to the UE .

数据网络是为用户提供业务服务的网络。数据网络可以包括多个应用服务器,应用服务器用于为相应的应用提供服务。应用的客户端一般安装在UE中,应用的服务端(也就是应用服务器)就位于数据网络内。数据网络可以是私有网络,如局域网,或者也可以是不受运营商管控的外部网络,如互联网(internet),还可以是运营商共同部署的专有网络,如提供IP多媒体网络子系统(IP multimedia core network subsystem,IMS)服务的网络。A data network is a network that provides business services to users. The data network may include a plurality of application servers, and the application servers are used to provide services for corresponding applications. The client of the application is generally installed in the UE, and the server of the application (that is, the application server) is located in the data network. The data network can be a private network, such as a local area network, or an external network that is not controlled by operators, such as the Internet, or a private network jointly deployed by operators, such as providing an IP multimedia network subsystem (IP multimedia core network subsystem, IMS) service network.

下面请参考图2,是在图1的基础上对5G网络架构的核心网做了进一步的细化。其中,核心网用户面包括UPF;核心网控制面包括认证服务器功能(authentication serverfunction,AUSF),AMF,会话管理功能(session management function,SMF),网络切片选择功能(network slice selection function,NSSF),网络开放功能(network exposurefunction,NEF),网络功能仓储功能(NF repository function,NRF),UDM,策略控制功能(policy control function,PCF),以及应用功能(application function,AF)等。核心网控制面采用服务化架构,控制面网元之间的交互采用服务调用的方式,来替换传统架构中的点对点通信方式。在服务化架构中,一个控制面网元会向其他控制面网元开放服务,供其他控制面网元调用;在点对点通信中,控制面网元之间通信接口会存在一套特定的消息,只能由接口两端的控制面网元在通信时使用。Please refer to FIG. 2 below, which further refines the core network of the 5G network architecture on the basis of FIG. 1 . The core network user plane includes UPF; the core network control plane includes authentication server function (AUSF), AMF, session management function (SMF), network slice selection function (NSSF), Network exposure function (NEF), NF repository function (NRF), UDM, policy control function (PCF), and application function (AF), etc. The core network control plane adopts a service-oriented architecture, and the interaction between the network elements of the control plane adopts the method of service invocation to replace the point-to-point communication method in the traditional architecture. In the service-based architecture, a control plane network element will open services to other control plane network elements for other control plane network elements to call; in point-to-point communication, there will be a set of specific messages on the communication interface between control plane network elements. It can only be used by the control plane NEs at both ends of the interface during communication.

核心网中的网元的功能介绍如下:The functions of the NEs in the core network are introduced as follows:

UPF,根据SMF的路由规则执行用户数据包转发,如将上行数据发送到DN或其他UPF,将下行数据转发到其他UPF或者RAN。UPF performs user data packet forwarding according to the routing rules of SMF, such as sending uplink data to DN or other UPFs, and forwarding downlink data to other UPFs or RANs.

AUSF,执行UE的安全认证。AUSF, which performs security authentication of the UE.

AMF,UE的接入管理和移动性管理。负责UE的状态维护,UE的可达性管理,非移动性管理(mobility management,MM)非接入层(non-access-stratum,NAS)消息的转发,会话管理(session management,SM)N2消息的转发。AMF, access management and mobility management of UE. Responsible for UE state maintenance, UE reachability management, non-mobility management (MM) and non-access-stratum (NAS) message forwarding, session management (session management, SM) N2 messages 's forwarding.

SMF,UE会话管理,为UE的会话分配资源,释放资源。其中资源包括会话服务质量(quality of service,QoS),会话路径,转发规则等。SMF, UE session management, allocates resources for UE sessions and releases resources. The resources include session quality of service (QoS), session paths, and forwarding rules.

NSSF,为UE选择网络切片。NSSF, selects network slice for UE.

NEF,以北向应用编程接口(application programming interface,API)接口的方式向第三方开放网络功能。NEF opens network functions to third parties in the form of northbound application programming interface (API) interfaces.

NRF,为其他网元提供网络功能实体信息的存储功能和选择功能。NRF provides other network elements with the storage function and selection function of network function entity information.

UDM,用户签约上下文管理。UDM, user subscription context management.

PCF,用户策略管理。PCF, User Policy Management.

AF,应用管理。AF, Application Management.

接下来介绍NPN的概念。Next, the concept of NPN is introduced.

NPN是一种非公用的5G网络,NPN可以依赖PLMN的支持实现,依赖于PLMN的支持而实现的NPN称为公网集成NPN(PNI-NPN,public network integrated NPN);或者,NPN也可以不依赖于PLMN的网络功能实现,不依赖于PLMN的支持而实现的NPN称为SNPN。NPN is a non-public 5G network. NPN can be implemented by relying on the support of PLMN. The NPN implemented by relying on the support of PLMN is called public network integrated NPN (PNI-NPN, public network integrated NPN); or, NPN can also be implemented without The network function implementation that depends on the PLMN, and the NPN that does not depend on the support of the PLMN is called SNPN.

PNI-NPN可以使用PLMN中的网络切片或专有数据网络名称(data network name,DNN)实现。为了阻止非授权UE尝试接入和选择PNI-NPN,PNI-NPN额外使用封闭访问组(closed access group,CAG)功能。一些允许接入PNI-NPN的UE可以被配置可用的CAG ID和CAG指示,该CAG指示可以指示UE只允许通过CAG小区接入5GS,UDM存储的UE的签约数据也会包括该UE可用的CAG ID和CAG指示。CAG小区会广播该小区支持的CAG ID,UE根据接收的CAGID确定该UE是否能够接入该小区。PNI-NPN can be implemented using network slices in PLMN or a proprietary data network name (DNN). In order to prevent unauthorized UEs from attempting to access and select PNI-NPN, PNI-NPN additionally uses a closed access group (CAG) function. Some UEs that are allowed to access PNI-NPN can be configured with available CAG ID and CAG indication. The CAG indication can indicate that the UE is only allowed to access 5GS through the CAG cell, and the UE's subscription data stored in UDM will also include the CAG available to the UE. ID and CAG indication. The CAG cell will broadcast the CAG ID supported by the cell, and the UE determines whether the UE can access the cell according to the received CAGID.

请参考图3A,为UE接入PNI-NPN的示意。图3A包括两个基站,其中的基站A提供的小区是CAG小区,该CAG小区通过系统信息块(system information block,SIB)下发了PLMNID A和CAG ID X。基站B提供的小区不属于PNI-NPN,也就不是CAG小区,该小区通过SIB下发了PLMN ID A,但是未下发CAG ID。例如UE1被配置了CAG ID X,那么UE1能够接入基站A,也能接入基站B。例如UE2被配置了CAG ID X和CAG指示,则UE2能接入基站A,不能接入基站B。例如UE3未被配置CAG ID和CAG指示,即UE3不允许接入PNI-NPN,那么UE3不能接入基站A,但是UE3能够接入基站B。Please refer to FIG. 3A , which is a schematic diagram of UE accessing PNI-NPN. FIG. 3A includes two base stations, wherein the cell provided by base station A is a CAG cell, and the CAG cell delivers PLMNID A and CAG ID X through a system information block (system information block, SIB). The cell provided by the base station B does not belong to the PNI-NPN, that is, it is not a CAG cell. The cell delivers the PLMN ID A through the SIB, but does not deliver the CAG ID. For example, if UE1 is configured with CAG ID X, UE1 can access base station A and base station B as well. For example, if UE2 is configured with CAG ID X and CAG indication, UE2 can access base station A but cannot access base station B. For example, UE3 is not configured with CAG ID and CAG indication, that is, UE3 is not allowed to access PNI-NPN, then UE3 cannot access base station A, but UE3 can access base station B.

SNPN独立部署,不依赖于PLMN网络。SNPN使用PLMN ID+网络标识(networkidentifier,NID)来标识,其中PLMN ID可以是第三方运营商预留的固有值,也可以是部署此SNPN的PLMN运营商的特定值。在SNPN中,属于SNPN的小区广播PLMN ID+NID,UE根据广播信息和为该UE配置的选网信息选择小区,为该UE配置的选网信息可包括PLMN ID+NID。例如,如果UE确定所配置的选网信息与小区广播的PLMN ID和/或NID不相同,UE不会接入该小区。SNPN is deployed independently and does not depend on the PLMN network. The SNPN is identified by PLMN ID+network identifier (NID), where the PLMN ID may be an inherent value reserved by a third-party operator, or may be a specific value of the PLMN operator deploying the SNPN. In the SNPN, a cell belonging to the SNPN broadcasts the PLMN ID+NID, and the UE selects a cell according to the broadcast information and the network selection information configured for the UE. The network selection information configured for the UE may include the PLMN ID+NID. For example, if the UE determines that the configured network selection information is different from the PLMN ID and/or NID broadcast by the cell, the UE will not access the cell.

请参考图3B,为UE接入SNPN的示意。其中,图3B中的非公共网络ID=N,表示该非公共网络的ID为N。例如属于SNPN的基站广播PLMN ID+NID,UE4的选网信息包括该PLMN ID+NID,则UE4能够接入该基站。Please refer to FIG. 3B , which is a schematic diagram of UE accessing the SNPN. Wherein, the non-public network ID=N in FIG. 3B indicates that the ID of the non-public network is N. For example, the base station belonging to the SNPN broadcasts the PLMN ID+NID, and the network selection information of the UE4 includes the PLMN ID+NID, and the UE4 can access the base station.

目前,通过N3IWF架构,SNPN能够与PLMN互通。如图4A所示,UE使用SNPN的私网签约选择SNPN ID,接入SNPN基站,以在SNPN网络进行3GPP注册;UE使用PLMN的公网签约选择PLMN ID,选择PLMN N3IWF,通过SNPN网络中的PDU会话与PLMN N3IWF建立连接,以接入PLMNN3IWF,然后通过N3IWF在PLMN网络进行非3GPP接入方式的注册。在图4A中,SNPN 3GPP接入(SNPN 3GPP access)表示UE在空口通过3GPP技术接入SNPN。PLMN的Nwu(Nwu for PLMN)表示UE使用UE与PLMN的N3IWF之间的Nwu接口接入PLMN。PLMN的N1(N1 for PLMN)是UE与PLMNAMF之间的接口,表示UE使用UE与PLMN AMF之间的N1接口向PLMN AMF发送信息。NPN的N1(N1for NPN)是UE与SNPN AMF之间的接口,表示UE使用UE与SNPN AMF之间的N1接口向SNPN AMF发送信息。Currently, SNPN can communicate with PLMN through N3IWF architecture. As shown in Figure 4A, the UE uses the SNPN private network subscription to select the SNPN ID, and accesses the SNPN base station to perform 3GPP registration in the SNPN network; the UE uses the PLMN public network subscription to select the PLMN ID, select the PLMN N3IWF, and use the SNPN network The PDU session establishes a connection with the PLMN N3IWF to access the PLMNN3IWF, and then performs non-3GPP access registration in the PLMN network through the N3IWF. In FIG. 4A, SNPN 3GPP access (SNPN 3GPP access) means that the UE accesses the SNPN through the 3GPP technology at the air interface. Nwu of PLMN (Nwu for PLMN) means that the UE accesses the PLMN using the Nwu interface between the UE and the N3IWF of the PLMN. N1 (N1 for PLMN) of the PLMN is an interface between the UE and the PLMNAMF, indicating that the UE sends information to the PLMN AMF using the N1 interface between the UE and the PLMN AMF. N1 of NPN (N1 for NPN) is the interface between the UE and the SNPN AMF, indicating that the UE sends information to the SNPN AMF using the N1 interface between the UE and the SNPN AMF.

除了通过N3IWF架构实现SNPN与PLMN的互通外,目前还支持通过漫游架构实现SNPN与PLMN的互通。如图4B所示为漫游架构,UE在PLMN签约,UE在SNPN的覆盖范围内使用PLMN的公网签约选择SNPN ID,并使用公网签约接入SNPN,通过SNPN在PLMN注册,后续可以在SNPN内建立PDU会话。SNPN根据UE的公网签约确定PDU会话的漫游模式,漫游模式例如为本地分流(local break out,LBO)模式或归属地路由(home routed,HR)模式。其中,图4B中位于中间的竖线右边的部分属于PLMN,位于该竖线左边的部分属于SNPN。在这种方式下,UE是通过SNPN在PLMN进行3GPP接入方式的注册。In addition to realizing the intercommunication between SNPN and PLMN through the N3IWF architecture, it also supports the interworking between SNPN and PLMN through the roaming architecture. Figure 4B shows the roaming architecture, the UE subscribes to the PLMN, the UE uses the public network subscription of the SNPN to select the SNPN ID, and uses the public network to subscribe to access the SNPN, and registers in the PLMN through the SNPN. PDU session is established within. The SNPN determines the roaming mode of the PDU session according to the public network subscription of the UE. The roaming mode is, for example, a local break out (LBO) mode or a home routed (HR) mode. The part to the right of the vertical line in the middle in FIG. 4B belongs to the PLMN, and the part to the left of the vertical line belongs to the SNPN. In this way, the UE registers with the 3GPP access mode in the PLMN through the SNPN.

根据上文介绍可知,PLMN可以同时支持通过图4A或图4B的方式与SNPN互通。如图5所示,PLMN1支持使用漫游方式与SNPN1互通,也支持使用N3IWF方式与SNPN1互通。例如,UE使用PLMN1的签约在SNPN1通过漫游方式注册到PLMN1,即图5所示的,UE使用PLMN1的签约,在SNPN1内通过安全边缘保护代理(security edge protection proxy,SEPP)/跨PLMN用户面安全网关(inter PLMN UP security,IPUPS)注册到PLMN1。而后续,UE还可能通过SNPN1使用N3IWF的方式再次注册到PLMN1。而UE通过漫游方式注册到PLMN1后,如果再通过其他方式注册到PLMN1,是冗余注册过程,而且通过N3IWF方式注册,流程较为复杂,需要耗费较多的资源。而且使用N3IWF的方式,不能对UE的业务进行控制,会造成私网资源的浪费,也会对UE的业务访问失去控制。It can be known from the above introduction that the PLMN can support interworking with the SNPN in the manner of FIG. 4A or FIG. 4B at the same time. As shown in Figure 5, PLMN1 supports intercommunication with SNPN1 in roaming mode, and also supports intercommunication with SNPN1 in N3IWF mode. For example, the UE uses the subscription of PLMN1 to register to PLMN1 by roaming in SNPN1, that is, as shown in FIG. 5 , the UE uses the subscription of PLMN1 to pass the security edge protection proxy (SEPP)/cross-PLMN user plane in SNPN1 A security gateway (inter PLMN UP security, IPUPS) registers with PLMN1. In the future, the UE may also register with the PLMN1 again by using the N3IWF through the SNPN1. However, after the UE registers to PLMN1 through roaming, if it registers to PLMN1 through other methods, it is a redundant registration process, and the process of registering through N3IWF is more complicated and requires more resources. Moreover, by using the N3IWF method, it is impossible to control the services of the UE, which will result in waste of private network resources and loss of control over the service access of the UE.

鉴于此,提供本申请实施例的技术方案。在本申请实施例中,第一核心网设备接收来自终端设备的请求消息,该终端设备请求通过SNPN注册到第一网络。如果确定终端设备已通过该SNPN注册到第一网络,则第一核心网设备会拒绝终端设备的本次注册,从而减少了终端设备的冗余注册过程,且由于终端设备无需进行本次注册过程,可以防止UE滥用私网资源或防止UE访问公网业务。In view of this, the technical solutions of the embodiments of the present application are provided. In this embodiment of the present application, the first core network device receives a request message from a terminal device, where the terminal device requests to register with the first network through the SNPN. If it is determined that the terminal device has been registered to the first network through the SNPN, the first core network device will reject the current registration of the terminal device, thereby reducing the redundant registration process of the terminal device, and because the terminal device does not need to perform the current registration process , which can prevent the UE from abusing private network resources or prevent the UE from accessing public network services.

本申请实施例提供的技术方案可以应用于5G系统中,例如NR系统,或者还可以应用于下一代移动通信系统或其他类似的通信系统,具体的不做限制。The technical solutions provided in the embodiments of this application can be applied to a 5G system, such as an NR system, or can also be applied to a next-generation mobile communication system or other similar communication systems, which are not specifically limited.

下面结合附图介绍本申请实施例所提供的方法。The methods provided by the embodiments of the present application are described below with reference to the accompanying drawings.

本申请实施例提供第一种通信方法,请参见图6,为该方法的流程图。需说明的是,在介绍本文的各个实施例时,均以应用于图5所示的网络架构为例。An embodiment of the present application provides a first communication method. Please refer to FIG. 6 , which is a flowchart of the method. It should be noted that, when introducing the various embodiments herein, the application to the network architecture shown in FIG. 5 is taken as an example.

为了便于介绍,在下文将要介绍的各个实施例中,以该方法由网络设备和终端设备执行为例。本文的各个实施例所述的UE为图5所示的网络架构中的UE。本文的各个实施例所述的第一网络为UE的归属网络,例如为图5所示的架构中的PLMN 1,或者第一网络还可能是SNPN,例如为与SNPN1不同的另一个SNPN,本申请的各个实施例主要以第一网络是PLMN为例。本文的各个实施例涉及第一核心网设备、第二核心网设备、第三核心网设备以及第一网络设备,第一核心网设备例如为图5所示的架构中PLMN1内的UDM,可简称为UDM;第二核心网设备例如为图5所示的架构中PLMN1内的AMF,可简称为PLMN AMF;第三核心网设备例如为图5所示的架构中SNPN1内的AMF,可简称为SNPN AMF;第一网络设备例如为图5所示的架构中PLMN1内的N3IWF,可简称为N3IWF。For ease of introduction, in the various embodiments to be introduced below, the method is performed by a network device and a terminal device as an example. The UE described in the various embodiments herein is the UE in the network architecture shown in FIG. 5 . The first network described in the various embodiments herein is the home network of the UE, such as PLMN 1 in the architecture shown in FIG. 5 , or the first network may also be an SNPN, such as another SNPN different from SNPN 1 . Various embodiments of the application mainly take an example that the first network is a PLMN. The various embodiments herein relate to a first core network device, a second core network device, a third core network device, and a first network device. The first core network device is, for example, the UDM in the PLMN1 in the architecture shown in FIG. is UDM; the second core network device is, for example, the AMF in PLMN1 in the architecture shown in FIG. 5 , which can be referred to as PLMN AMF; the third core network device is, for example, the AMF in SNPN1 in the architecture shown in FIG. 5 , which can be referred to as SNPN AMF; the first network device is, for example, the N3IWF in the PLMN1 in the architecture shown in FIG. 5 , which may be referred to as N3IWF for short.

S601、UE向SNPN AMF发送注册请求消息,SNPN AMF接收来自UE的注册请求消息。为了与其他的注册请求消息相区分,例如将该注册请求消息称为注册请求消息1。S601. The UE sends a registration request message to the SNPN AMF, and the SNPN AMF receives the registration request message from the UE. In order to distinguish it from other registration request messages, for example, the registration request message is referred to as registration request message 1 .

在注册请求消息1中,可以包括UE的订阅隐藏标识符(subscription concealedidentifier,SUCI)或订阅永久标识符(subscription permanent identifier,SUPI),还可以包括初始注册类型。初始注册类型可以指示UE的本次注册为首次注册或初始注册。The registration request message 1 may include a subscription concealed identifier (SUCI) or a subscription permanent identifier (SUPI) of the UE, and may also include an initial registration type. The initial registration type may indicate that the current registration of the UE is the first registration or the initial registration.

另外,SNPN RAN还可以向SNPN AMF发送SNPN ID,SNPN AMF从SNPN RAN接收SNPN的标识,SNPN的标识例如为SNPN身份号(ID),或者也可以是其他的用于指示该SNPN的信息。该SNPN就是UE当前所在的SNPN。SNPN ID例如包括PLMN ID和NID。In addition, the SNPN RAN can also send the SNPN ID to the SNPN AMF, and the SNPN AMF receives the SNPN identifier from the SNPN RAN. The SNPN is the SNPN where the UE is currently located. The SNPN ID includes, for example, the PLMN ID and the NID.

S602、SNPN AMF向UDM发送Nudm_UECM_Registration请求消息,UDM接收来自SNPNAMF的Nudm_UECM_Registration请求消息。为了简便,也可以将该Nudm_UECM_Registration请求消息称为注册请求消息2,或者称为第二请求消息。S602. The SNPN AMF sends a Nudm_UECM_Registration request message to the UDM, and the UDM receives the Nudm_UECM_Registration request message from the SNPNAMF. For simplicity, the Nudm_UECM_Registration request message may also be referred to as a registration request message 2, or a second request message.

在注册请求消息2中,可以包括UE的SUPI、初始注册类型、SNPN AMF的ID、以及3GPP接入类型(3GPP access type)。另外,注册请求消息2还可以包括SNPN的信息,SNPN的信息例如包括SNPN的标识,或包括SNPN接入模式(SNPN access mode)指示,或包括SNPN的标识和SNPN接入模式指示。其中,SNPN接入模式指示可以指示该UE启用SNPN接入模式,通过Uu空口接入SNPN。即,SNPN AMF可以将UE当前接入的SNPN的信息发送给UDM。The registration request message 2 may include the SUPI of the UE, the initial registration type, the ID of the SNPN AMF, and the 3GPP access type. In addition, the registration request message 2 may also include SNPN information, for example, the SNPN information includes an SNPN identifier, or an SNPN access mode (SNPN access mode) indication, or an SNPN identifier and an SNPN access mode indication. The SNPN access mode indication may instruct the UE to enable the SNPN access mode and access the SNPN through the Uu air interface. That is, the SNPN AMF can send the information of the SNPN currently accessed by the UE to the UDM.

S603、UDM记录UE的SNPN AMF上下文。S603, the UDM records the SNPN AMF context of the UE.

其中,UE的SNPN AMF上下文,也可以简称为UE的注册上下文。UE的注册上下文就包括SNPN的信息,以及可以包括SNPN AMF的ID和3GPP接入类型等信息。如果UDM检测到UE在其他的SNPN内的非3GPP接入类型的AMF上下文,即,UE是从其他的SNPN移动到当前的SNPN,那么UDM可以对UE在其他的SNPN的非3GPP接入类型的AMF上下文进行去注册,即UDM删除非3GPP接入类型的AMF上下文,或者理解为,UDM可以对UE在其他的SNPN内的注册进行去注册。The SNPN AMF context of the UE may also be referred to as the registration context of the UE for short. The registration context of the UE includes the information of the SNPN, and may include information such as the ID of the SNPN AMF and the 3GPP access type. If the UDM detects that the UE is in an AMF context of a non-3GPP access type within another SNPN, that is, the UE is moving from another SNPN to the current SNPN, the UDM may The AMF context is de-registered, that is, the UDM deletes the AMF context of the non-3GPP access type, or it is understood that the UDM can de-register the registration of the UE in other SNPNs.

S604、UDM向SNPN AMF发送Nudm_UECM_Registration响应消息,SNPN AMF接收来自UDM的Nudm_UECM_Registration响应消息。为了简便,也可以将该Nudm_UECM_Registration响应消息称为注册响应消息2,或者称为注册请求消息2的响应消息,或者称为第二响应消息。注册响应消息2可以指示SNPN AMF成功注册为该UE提供服务。S604. The UDM sends a Nudm_UECM_Registration response message to the SNPN AMF, and the SNPN AMF receives the Nudm_UECM_Registration response message from the UDM. For simplicity, the Nudm_UECM_Registration response message may also be referred to as a registration response message 2, or a response message to the registration request message 2, or a second response message. The registration response message 2 may indicate that the SNPN AMF is successfully registered to serve the UE.

S605、SNPN AMF向UE发送注册响应消息,UE接收来自SNPN AMF的注册响应消息。为了与其他的注册响应消息相区分,例如将该注册响应消息称为注册响应消息1,或者称为注册请求消息1的响应消息。注册响应消息1可以指示该UE成功注册到PLMN。S605, the SNPN AMF sends a registration response message to the UE, and the UE receives the registration response message from the SNPN AMF. In order to distinguish it from other registration response messages, for example, the registration response message is called a registration response message 1, or a response message called a registration request message 1. The registration response message 1 may indicate that the UE is successfully registered with the PLMN.

在执行S601~S605后,UE就通过接入SNPN1以漫游方式注册到了PLMN。UE接收注册响应消息1后,可以在SNPN1建立PDU会话,以执行相应的业务。After performing S601 to S605, the UE registers to the PLMN in a roaming manner by accessing SNPN1. After receiving the registration response message 1, the UE may establish a PDU session in the SNPN1 to perform corresponding services.

S606、UE通过N3IWF向PLMN AMF发送注册请求消息,PLMN AMF通过N3IWF接收来自UE的注册请求消息。该注册请求消息可以用于该UE请求注册到PLMN。可见,UE在通过漫游方式注册到PLMN后,又可以通过SNPN1的PDU会话建立到PLMN N3IWF的连接,然后请求通过N3IWF的方式再次注册到PLMN。S606, the UE sends a registration request message to the PLMN AMF through the N3IWF, and the PLMN AMF receives the registration request message from the UE through the N3IWF. The registration request message may be used for the UE to request registration to the PLMN. It can be seen that after the UE registers to the PLMN through roaming, it can establish a connection to the PLMN N3IWF through the PDU session of SNPN1, and then request to register to the PLMN again through the N3IWF.

其中,UE先通过在SNPN内建立的PDU会话与N3IWF建立IPsec连接,再通过该IPsec连接向N3IWF发送注册请求消息3,N3IWF接收注册请求消息3后,向PLMN AMF发送N2消息,N2消息携带注册请求消息3。例如该N2消息也可以称为第三请求消息,或者称为注册请求消息4。另外,注册请求消息3也可以称为第四请求消息。注册请求消息3可以包括该UE的SUPI或SUCI,以及包括初始注册类型。另外,N2消息还可以包括PLMN ID。The UE first establishes an IPsec connection with the N3IWF through the PDU session established in the SNPN, and then sends a registration request message 3 to the N3IWF through the IPsec connection. After receiving the registration request message 3, the N3IWF sends an N2 message to the PLMN AMF, and the N2 message carries the registration request Request message 3. For example, the N2 message may also be called a third request message, or a registration request message 4 . In addition, the registration request message 3 may also be referred to as a fourth request message. The registration request message 3 may include the SUPI or SUCI of the UE, and the initial registration type. In addition, the N2 message may also include the PLMN ID.

可选的,注册请求消息3还可以包括所述SNPN的信息,则UE通过注册请求消息3就将SNPN的信息发送给了PLMN AMF,无需PLMN AMF再通过其他途径获得SNPN的信息,有利于简化注册过程。Optionally, the registration request message 3 may also include the information of the SNPN, then the UE sends the SNPN information to the PLMN AMF through the registration request message 3, without the need for the PLMN AMF to obtain the SNPN information through other means, which is conducive to simplifying registration process.

或者,注册请求消息3不包括SNPN的信息,PLMN AMF可以从N3IWF获得SNPN的信息。例如,N3IWF确定该UE接入的SNPN的信息,并将SNPN的信息通过N2消息发送给PLMN AMF,从而PLMN AMF接收来自N3IWF的SNPN的信息。通过这种方式,UE无需在注册请求消息3里携带SNPN的信息,可以减小注册请求消息3的信息量。Alternatively, the registration request message 3 does not include the SNPN information, and the PLMN AMF can obtain the SNPN information from the N3IWF. For example, the N3IWF determines the information of the SNPN accessed by the UE, and sends the information of the SNPN to the PLMN AMF through the N2 message, so that the PLMN AMF receives the information of the SNPN from the N3IWF. In this way, the UE does not need to carry the SNPN information in the registration request message 3, and the information amount of the registration request message 3 can be reduced.

N3IWF要确定SNPN的信息,可以有不同的方式。例如,预先配置(或,协议规定)了SNPN与隧道之间的对应关系,或者说,预先配置(或,协议规定)了SNPN ID与隧道之间的对应关系,该隧道例如为UE与N3IWF之间的隧道,或为SNPN UPF与N3IWF之间的隧道,该对应关系对于UE或UPF来说也是已知的,例如SNPN ID与隧道一一对应。那么UE在发送注册请求消息3时,或UPF在转发UE的注册请求消息3时,可以选择该UE接入的SNPN对应的隧道发送,则N3IWF根据接收注册请求消息3的隧道,就能确定该UE接入的SNPN的信息。There are different ways for N3IWF to determine SNPN information. For example, the corresponding relationship between the SNPN and the tunnel is pre-configured (or, the protocol specifies), or the corresponding relationship between the SNPN ID and the tunnel is pre-configured (or, the protocol specifies), such as the tunnel between the UE and the N3IWF. The tunnel between the SNPNs, or the tunnels between the SNPN UPF and the N3IWF, the corresponding relationship is also known to the UE or the UPF, for example, the SNPN IDs correspond to the tunnels one-to-one. Then, when the UE sends the registration request message 3, or when the UPF forwards the registration request message 3 of the UE, it can select the tunnel corresponding to the SNPN accessed by the UE to send, and the N3IWF can determine the tunnel according to the tunnel that receives the registration request message 3. Information about the SNPN accessed by the UE.

又例如,预先配置(或,协议规定)了SNPN与SNPN UPF的IP地址之间的对应关系,或者说,预先配置(或,协议规定)了SNPN ID与SNPN UPF的IP地址之间的对应关系,例如SNPNID与SNPN UPF的IP地址一一对应。那么,N3IWF从SNPN UPF接收注册请求消息3时,根据检测到的该SNPN UPF的IP地址,就能确定该UE接入的SNPN的信息。For another example, the corresponding relationship between the SNPN and the IP addresses of the SNPN UPF is pre-configured (or, the protocol specifies), or in other words, the corresponding relationship between the SNPN ID and the IP address of the SNPN UPF is pre-configured (or, the protocol specifies) , for example, the SNPNID corresponds to the IP address of the SNPN UPF one-to-one. Then, when the N3IWF receives the registration request message 3 from the SNPN UPF, it can determine the information of the SNPN accessed by the UE according to the detected IP address of the SNPN UPF.

再例如,预先配置(或,协议规定)了SNPN与N3IWF之间的对应关系,或者说,预先配置(或,协议规定)了SNPN ID与N3IWF ID之间的对应关系,该对应关系对于UE来说也是已知的,例如SNPN ID与N3IWF ID一一对应。那么UE在发送注册请求消息3时,可以选择该UE接入的SNPN对应的N3IWF,相应的N3IWF如果接收了来自UE的注册请求消息3,就能确定该UE接入的SNPN是该N3IWF所对应的SNPN。For another example, the corresponding relationship between the SNPN and the N3IWF is pre-configured (or, the protocol specifies), or in other words, the corresponding relationship between the SNPN ID and the N3IWF ID is pre-configured (or, the protocol specifies), and the corresponding relationship is used by the UE. It is also known, for example, the SNPN ID corresponds to the N3IWF ID one-to-one. Then, when the UE sends the registration request message 3, it can select the N3IWF corresponding to the SNPN accessed by the UE. If the corresponding N3IWF receives the registration request message 3 from the UE, it can determine that the SNPN accessed by the UE is the corresponding N3IWF. SNPN.

如上几种方式只是示例,N3IWF还可以通过其他方式来确定SNPN的信息,本申请实施例对此不做限制。The above methods are just examples, and the N3IWF may also determine the information of the SNPN through other methods, which are not limited in this embodiment of the present application.

S607、PLMN AMF向UDM发送Nudm_UECM_Registration请求消息,UDM接收来自PLMNAMF的Nudm_UECM_Registration请求消息。为了简便,也可以将该Nudm_UECM_Registration请求消息称为注册请求消息5,或者称为第一请求消息。S607: The PLMN AMF sends a Nudm_UECM_Registration request message to the UDM, and the UDM receives the Nudm_UECM_Registration request message from the PLMNAMF. For simplicity, the Nudm_UECM_Registration request message may also be referred to as a registration request message 5, or a first request message.

注册请求消息5可以用于PLMN AMF请求为该UE提供服务。注册请求消息5可以包括该UE的SUPI、初始注册类型、以及包括PLMN AMF ID和非3GPP接入类型。另外,注册请求消息5还可以包括SNPN的信息,即,PLMN AMF可以将获得的SNPN的信息发送给UDM。The registration request message 5 may be used by the PLMN AMF to request to serve the UE. The registration request message 5 may include the SUPI of the UE, the initial registration type, and include the PLMN AMF ID and the non-3GPP access type. In addition, the registration request message 5 may further include the information of the SNPN, that is, the PLMN AMF may send the obtained information of the SNPN to the UDM.

S608、UDM确定该UE已通过该SNPN注册到该PLMN。S608, the UDM determines that the UE has registered with the PLMN through the SNPN.

UDM可以获得注册请求消息5所包括的SNPN的信息。另外,UDM还可以查询所记录的该UE的注册上下文,即,查询该UE的SNPN AMF上下文。如果该UE的SNPN AMF上下文包括SNPN的信息和初始注册类型,且该SNPN与注册请求消息5所包括的SNPN的信息对应的SNPN是同一个SNPN,则UDM可以确定该UE已通过该SNPN注册到了PLMN。出于避免UE在同一个PLMN进行多次注册的行为,UDM确定拒绝PLMN AMF为UE提供服务的注册请求,即,确定拒绝注册请求消息5所请求的注册。The UDM can obtain the information of the SNPN included in the registration request message 5 . In addition, the UDM may also query the recorded registration context of the UE, that is, query the SNPN AMF context of the UE. If the SNPN AMF context of the UE includes the SNPN information and the initial registration type, and the SNPN and the SNPN corresponding to the SNPN information included in the registration request message 5 are the same SNPN, the UDM can determine that the UE has registered with the SNPN through the SNPN. PLMN. In order to avoid the behavior that the UE performs multiple registrations in the same PLMN, the UDM determines to reject the registration request for the PLMN AMF to serve the UE, that is, determines to reject the registration requested by the registration request message 5 .

S609、UDM向PLMN AMF发送Nudm_UECM_Registration响应消息,PLMN AMF接收来自UDM的Nudm_UECM_Registration响应消息。为了简便,也可以将该Nudm_UECM_Registration响应消息称为注册响应消息3,或者称为注册请求消息5的响应消息,或者称为第一响应消息。S609: The UDM sends a Nudm_UECM_Registration response message to the PLMN AMF, and the PLMN AMF receives the Nudm_UECM_Registration response message from the UDM. For simplicity, the Nudm_UECM_Registration response message may also be referred to as the registration response message 3, or the response message of the registration request message 5, or the first response message.

注册响应消息3可以包括失败结果指示,该失败结果指示可以指示拒绝该PLMNAMF为UE提供服务的注册请求。可选的,注册响应消息3还可以包括原因值,该原因值可以指示拒绝注册的原因,例如该原因值指示的原因为该UE已通过SNPN注册到该PLMN。The registration response message 3 may include a failure result indication, which may indicate that the registration request for the PLMNAMF to serve the UE is rejected. Optionally, the registration response message 3 may further include a cause value, which may indicate a reason for refusing registration, for example, the reason indicated by the cause value is that the UE has registered with the PLMN through the SNPN.

S610、PLMN AMF向UE发送注册拒绝消息,UE接收来自PLMN AMF的注册拒绝消息。该注册拒绝消息也可以称为注册响应消息4,或者称为第三响应消息,或者称为注册请求消息3的响应消息,或者称为注册请求消息4(即,S606中的N2消息)的响应消息。S610: The PLMN AMF sends a registration rejection message to the UE, and the UE receives the registration rejection message from the PLMN AMF. The registration rejection message may also be called a registration response message 4, or a third response message, or a response message called a registration request message 3, or a response to a registration request message 4 (ie, the N2 message in S606). information.

注册拒绝消息可以包括原因值,该原因值指示的原因为该UE已通过SNPN注册到该PLMN。UE接收该注册拒绝消息后,可以不再通过N3IWF的方式请求注册到该PLMN。The registration reject message may include a cause value that indicates the cause that the UE has registered with the PLMN via the SNPN. After the UE receives the registration rejection message, it can no longer request to register with the PLMN by means of the N3IWF.

本申请实施例中,UDM可以记录UE通过SNPN在PLMN进行第一次3GPP注册时该UE接入的SNPN的信息,从而在UE通过SNPN在PLMN第二次进行非3GPP注册时,UDM可以拒绝UE的非3GPP注册,避免UE通过同一个SNPN再次注册到PLMN。由此可以节省UE的第二次注册过程所耗费的资源。而且由于UE无法再通过N3IWF方式注册到PLMN,实现了对UE通过SNPN访问公网业务的控制。In the embodiment of this application, the UDM can record the information of the SNPN that the UE accesses when the UE performs the first 3GPP registration in the PLMN through the SNPN, so that when the UE performs the second non-3GPP registration in the PLMN through the SNPN, the UDM can reject the UE non-3GPP registration to avoid the UE re-registering to the PLMN through the same SNPN. In this way, the resources consumed by the second registration process of the UE can be saved. Moreover, since the UE can no longer register to the PLMN through the N3IWF, the control of the UE accessing the public network service through the SNPN is realized.

下面,本申请实施例提供第二种通信方法,请参见图7,为该方法的流程图。In the following, an embodiment of the present application provides a second communication method. Please refer to FIG. 7 , which is a flowchart of the method.

S701、UE向SNPN AMF发送注册请求消息,SNPN AMF接收来自UE的注册请求消息。为了与其他的注册请求消息相区分,例如将该注册请求消息称为注册请求消息1。S701. The UE sends a registration request message to the SNPN AMF, and the SNPN AMF receives the registration request message from the UE. In order to distinguish it from other registration request messages, for example, the registration request message is referred to as registration request message 1 .

关于S701的更多内容,可参考图6所示的实施例中对于S601的介绍。For more content of S701, reference may be made to the introduction to S601 in the embodiment shown in FIG. 6 .

S702、SNPN AMF向UDM发送Nudm_UECM_Registration请求消息,UDM接收来自SNPNAMF的Nudm_UECM_Registration请求消息。为了简便,也可以将该Nudm_UECM_Registration请求消息称为注册请求消息2,或者称为第二请求消息。S702. The SNPN AMF sends a Nudm_UECM_Registration request message to the UDM, and the UDM receives the Nudm_UECM_Registration request message from the SNPNAMF. For simplicity, the Nudm_UECM_Registration request message may also be referred to as a registration request message 2, or a second request message.

关于S702的更多内容,可参考图6所示的实施例中对于S602的介绍。For more content of S702, reference may be made to the introduction to S602 in the embodiment shown in FIG. 6 .

S703、UDM记录UE的SNPN AMF上下文。S703, the UDM records the SNPN AMF context of the UE.

关于S703的更多内容,可参考图6所示的实施例中对于S603的介绍。For more content of S703, reference may be made to the introduction to S603 in the embodiment shown in FIG. 6 .

S704、UDM向SNPN AMF发送Nudm_UECM_Registration响应消息,SNPN AMF接收来自UDM的Nudm_UECM_Registration响应消息。为了简便,也可以将该Nudm_UECM_Registration响应消息称为注册响应消息2,或者称为注册请求消息2的响应消息,或者称为第二响应消息。注册响应消息2可以指示SNPN AMF成功注册为该UE提供服务。S704, the UDM sends a Nudm_UECM_Registration response message to the SNPN AMF, and the SNPN AMF receives the Nudm_UECM_Registration response message from the UDM. For simplicity, the Nudm_UECM_Registration response message may also be referred to as a registration response message 2, or a response message to the registration request message 2, or a second response message. The registration response message 2 may indicate that the SNPN AMF is successfully registered to serve the UE.

S705、SNPN AMF向UE发送注册响应消息,UE接收来自SNPN AMF的注册响应消息。为了与其他的注册响应消息相区分,例如将该注册响应消息称为注册响应消息1,或者称为注册请求消息1的响应消息。注册响应消息1可以指示该UE成功注册到PLMN。S705, the SNPN AMF sends a registration response message to the UE, and the UE receives the registration response message from the SNPN AMF. In order to distinguish it from other registration response messages, for example, the registration response message is called a registration response message 1, or a response message called a registration request message 1. The registration response message 1 may indicate that the UE is successfully registered with the PLMN.

关于S705的更多内容,可参考图6所示的实施例中对于S605的介绍。For more content of S705, reference may be made to the introduction to S605 in the embodiment shown in FIG. 6 .

S706、UE通过N3IWF向PLMN AMF发送注册请求消息,PLMN AMF通过N3IWF接收来自UE的注册请求消息。该注册请求消息可以用于该UE请求注册到PLMN。可见,UE在通过漫游方式注册到PLMN后,可以通过SNPN1的PDU会话建立到PLMN N3IWF的连接,然后又请求通过N3IWF再次注册到PLMN。S706, the UE sends a registration request message to the PLMN AMF through the N3IWF, and the PLMN AMF receives the registration request message from the UE through the N3IWF. The registration request message may be used for the UE to request registration to the PLMN. It can be seen that after the UE registers to the PLMN through roaming, it can establish a connection to the PLMN N3IWF through the PDU session of SNPN1, and then request to register to the PLMN again through the N3IWF.

其中,UE先通过在SNPN内建立的PDU会话与N3IWF建立IPsec连接,再通过该IPsec连接向N3IWF发送注册请求消息3,N3IWF接收注册请求消息3后,向PLMN AMF发送N2消息,N2消息携带注册请求消息3。例如该N2消息也可以称为第三请求消息,或者称为注册请求消息4。注册请求消息3也可以称为第四请求消息。The UE first establishes an IPsec connection with the N3IWF through the PDU session established in the SNPN, and then sends a registration request message 3 to the N3IWF through the IPsec connection. After receiving the registration request message 3, the N3IWF sends an N2 message to the PLMN AMF, and the N2 message carries the registration request Request message 3. For example, the N2 message may also be called a third request message, or a registration request message 4 . The registration request message 3 may also be referred to as a fourth request message.

关于S706的更多内容,可参考图6所示的实施例中对于S606的介绍。For more content of S706, reference may be made to the introduction to S606 in the embodiment shown in FIG. 6 .

S707、PLMN AMF向UDM发送Nudm_UECM_Registration请求消息,UDM接收来自PLMNAMF的Nudm_UECM_Registration请求消息。为了简便,也可以将该Nudm_UECM_Registration请求消息称为注册请求消息5,或者称为第一请求消息。S707: The PLMN AMF sends a Nudm_UECM_Registration request message to the UDM, and the UDM receives the Nudm_UECM_Registration request message from the PLMNAMF. For simplicity, the Nudm_UECM_Registration request message may also be referred to as a registration request message 5, or a first request message.

关于S707的更多内容,可参考图6所示的实施例中对于S607的介绍。For more content of S707, reference may be made to the introduction to S607 in the embodiment shown in FIG. 6 .

S708、UDM确定该UE已通过该SNPN注册到该PLMN。S708, the UDM determines that the UE has registered with the PLMN through the SNPN.

UDM可以获得注册请求消息5所包括的SNPN的信息。另外,UDM还可以查询所记录的该UE的注册上下文,即,查询该UE的SNPN AMF上下文。如果该UE的SNPN AMF上下文包括SNPN的信息和初始注册类型,且该SNPN与注册请求消息5所包括的SNPN的信息对应的SNPN是同一个SNPN,则UDM可以确定该UE已通过该SNPN注册到了PLMN。The UDM can obtain the information of the SNPN included in the registration request message 5 . In addition, the UDM may also query the recorded registration context of the UE, that is, query the SNPN AMF context of the UE. If the SNPN AMF context of the UE includes the SNPN information and the initial registration type, and the SNPN and the SNPN corresponding to the SNPN information included in the registration request message 5 are the same SNPN, the UDM can determine that the UE has registered with the SNPN through the SNPN. PLMN.

S709、UDM向PLMN AMF发送Nudm_UECM_Registration响应消息,PLMN AMF接收来自UDM的Nudm_UECM_Registration响应消息。为了简便,也可以将该Nudm_UECM_Registration响应消息称为注册响应消息3,或者称为注册请求消息5的响应消息,或者称为第一响应消息。S709: The UDM sends a Nudm_UECM_Registration response message to the PLMN AMF, and the PLMN AMF receives the Nudm_UECM_Registration response message from the UDM. For simplicity, the Nudm_UECM_Registration response message may also be referred to as the registration response message 3, or the response message of the registration request message 5, or the first response message.

注册响应消息3可以通过隐式方式指示该UE已通过该SNPN注册到了当前的PLMN。例如,注册响应消息3包括该UE的注册上下文(即,该UE的SNPN AMF上下文),包括该UE的注册上下文,就相当于隐式指示了该UE已通过该SNPN注册到了PLMN。The registration response message 3 may implicitly indicate that the UE has registered with the current PLMN through the SNPN. For example, the registration response message 3 includes the UE's registration context (ie, the UE's SNPN AMF context), including the UE's registration context, which is equivalent to implicitly indicating that the UE has registered with the PLMN through the SNPN.

或者,注册响应消息3也可以通过显式方式指示该UE已通过SNPN注册到了当前的PLMN。例如,注册响应消息3包括指示信息,该指示信息可指示该UE已通过SNPN注册到该PLMN。相较于该UE的注册上下文来说,指示信息的信息量较小,有助于减小信令开销。Alternatively, the registration response message 3 may also explicitly indicate that the UE has registered with the current PLMN through the SNPN. For example, the registration response message 3 includes indication information, which may indicate that the UE has registered with the PLMN through the SNPN. Compared with the registration context of the UE, the information amount of the indication information is small, which helps to reduce signaling overhead.

S710、PLMN AMF确定拒绝UE的注册请求。S710. The PLMN AMF determines to reject the registration request of the UE.

PLMN AMF接收注册响应消息3后,可以确定拒绝该UE本次的非3GPP注册。例如,PLMN AMF根据SNPN的信息、初始注册类型以及该UE的注册上下文,可以确定拒绝UE的本次注册;或者,如果注册响应消息3包括指示信息,则PLMN AMF可以根据该指示信息确定该UE已通过该SNPN注册到了当前的PLMN,从而拒绝UE的本次注册。After the PLMN AMF receives the registration response message 3, it can determine to reject the current non-3GPP registration of the UE. For example, the PLMN AMF can determine to reject the current registration of the UE according to the SNPN information, the initial registration type and the registration context of the UE; or, if the registration response message 3 includes indication information, the PLMN AMF can determine the UE according to the indication information. The current PLMN has been registered through the SNPN, so the current registration of the UE is rejected.

S711、PLMN AMF向UDM发送Nudm_UECM_DeRegistration请求消息,UDM接收来自PLMN AMF的Nudm_UECM_DeRegistration请求消息。为了简便,也将该Nudm_UECM_DeRegistration请求消息称为去注册请求消息,或者称为第四请求消息。S711. The PLMN AMF sends a Nudm_UECM_DeRegistration request message to the UDM, and the UDM receives the Nudm_UECM_DeRegistration request message from the PLMN AMF. For simplicity, the Nudm_UECM_DeRegistration request message is also referred to as a deregistration request message, or a fourth request message.

去注册请求消息可用于请求UDM对PLMN AMF在UDM中的注册进行去注册。即,PLMNAMF在S707中向UDM发送了注册请求消息5,去注册请求消息就用于对PLMN AMF的该次注册进行去注册。本申请实施例中是由PLMN AMF来决策拒绝UE的注册请求,而不是由UDM来决策拒绝UE的注册请求,则UDM可能不会主动对于PLMN AMF在UDM的注册进行去注册。因此,PLMNAMF如果拒绝UE的注册请求,则PLMN AMF还可以请求UDM对于PLMN AMF在UDM的注册进行去注册。第四请求消息可以包括PLMN ID,PLMN AMF ID,该UE的SUPI,以及包括N3GPP AccessType。The Deregistration Request message may be used to request the UDM to deregister the registration of the PLMN AMF in the UDM. That is, the PLMNAMF sends the registration request message 5 to the UDM in S707, and the de-registration request message is used to de-register the current registration of the PLMN AMF. In the embodiment of the present application, the PLMN AMF decides to reject the UE's registration request, rather than the UDM decides to reject the UE's registration request, and the UDM may not take the initiative to de-register the PLMN AMF's registration in the UDM. Therefore, if the PLMNAMF rejects the registration request of the UE, the PLMN AMF may also request the UDM to de-register the registration of the PLMN AMF in the UDM. The fourth request message may include the PLMN ID, the PLMN AMF ID, the SUPI of the UE, and the N3GPP AccessType.

S712、UDM从UE的上下文中删除PLMN AMF对应于该SNPN的注册上下文。即,UDM对PLMN AMF的该次注册进行去注册。S712, the UDM deletes the registration context of the PLMN AMF corresponding to the SNPN from the context of the UE. That is, the UDM de-registers the current registration of the PLMN AMF.

S713、PLMN AMF向UE发送注册拒绝消息,UE接收来自PLMN AMF的注册拒绝消息。该注册拒绝消息也可以称为注册响应消息4,或者称为第三响应消息,或者称为注册请求消息3的响应消息,或者称为注册请求消息4(即,S706中的N2消息)的响应消息。S713: The PLMN AMF sends a registration rejection message to the UE, and the UE receives the registration rejection message from the PLMN AMF. The registration rejection message may also be called a registration response message 4, or a third response message, or a response message called a registration request message 3, or a response to a registration request message 4 (ie, the N2 message in S706). information.

注册响应消息4可以包括原因值,该原因值指示的原因为该UE已通过SNPN注册到该PLMN。UE接收该注册拒绝消息后,可以不再通过N3IWF的方式请求注册到该PLMN。The registration response message 4 may include a cause value that indicates the cause that the UE has registered with the PLMN through the SNPN. After the UE receives the registration rejection message, it can no longer request to register with the PLMN by means of the N3IWF.

本申请实施例中,UDM可以记录UE通过SNPN在PLMN进行第一次3GPP注册时该UE接入的SNPN的信息,从而在UE通过SNPN在PLMN第二次进行非3GPP注册时,UDM可以将相应的信息发送给PLMN AMF,从而PLMN AMF可以拒绝UE的非3GPP注册,避免UE通过同一个SNPN再次注册到PLMN。由此可以节省UE的第二次注册过程所耗费的资源。而且由于UE无法再通过N3IWF方式注册到PLMN,则实现了对UE通过SNPN访问公网业务的控制。In the embodiment of this application, the UDM can record the information of the SNPN accessed by the UE when the UE performs the first 3GPP registration in the PLMN through the SNPN, so that when the UE performs the second non-3GPP registration in the PLMN through the SNPN, the UDM can record the corresponding SNPN information. The information is sent to the PLMN AMF, so that the PLMN AMF can reject the non-3GPP registration of the UE and prevent the UE from re-registering to the PLMN through the same SNPN. In this way, the resources consumed by the second registration process of the UE can be saved. Moreover, since the UE can no longer register to the PLMN through the N3IWF, the control of the UE accessing the public network service through the SNPN is realized.

接下来,考虑另一个问题。如图8所示,PLMN1支持使用漫游方式与SNPN1互通。例如,UE使用PLMN1的签约在SNPN1通过漫游方式注册到PLMN1。而后续,UE可能发生移动,例如UE移动到了SNPN2。在UE移动到SNPN2后,因为UE也是SNPN2的签约用户,所以UE可以接入SNPN2,并通过N3IWF请求注册到PLMN。此时,如果PLMN因为UE之前已通过SNPN1注册到了PLMN而拒绝UE的本次注册,可能导致UE无法正常工作。因此本申请实施例提出,在UE发生移动的情况下,PLMN不应该拒绝UE的再次注册过程。下面通过相应的实施例来介绍本申请实施例提供的方案。Next, consider another question. As shown in Figure 8, PLMN1 supports interworking with SNPN1 using roaming mode. For example, the UE uses the subscription of PLMN1 to register with PLMN1 in SNPN1 by roaming. Then, the UE may move, for example, the UE moves to SNPN2. After the UE moves to the SNPN2, since the UE is also a subscriber of the SNPN2, the UE can access the SNPN2 and request to register with the PLMN through the N3IWF. At this time, if the PLMN rejects the current registration of the UE because the UE has previously registered to the PLMN through SNPN1, the UE may not work normally. Therefore, the embodiment of the present application proposes that when the UE moves, the PLMN should not reject the re-registration process of the UE. The solutions provided by the embodiments of the present application are described below through corresponding embodiments.

本申请实施例提供第三种通信方法,请参考图9,为该方法的流程图。This embodiment of the present application provides a third communication method. Please refer to FIG. 9 , which is a flowchart of the method.

首先,UE使用PLMN签约,在SNPN1通过漫游方式注册到PLMN,关于这部分内容可参考图6所示的实施例中的S601~S605的相关介绍。在注册之后,UE移动到了第二SNPN,第二SNPN例如为图8所示的SNPN2。First, the UE subscribes using the PLMN, and registers with the PLMN in the SNPN1 by means of roaming. For this part of the content, please refer to the relevant introductions of S601 to S605 in the embodiment shown in FIG. 6 . After registration, the UE moves to the second SNPN, for example, the second SNPN is SNPN2 shown in FIG. 8 .

S901、UE使用SNPN2签约在SNPN2进行注册。关于UE注册到SNPN2的过程不多赘述。S901, the UE uses the SNPN2 subscription to register in the SNPN2. The process of the UE registering with the SNPN2 will not be repeated.

S902、UE在SNPN2建立PDU会话,对此不多赘述。S902, the UE establishes a PDU session in the SNPN2, which is not repeated here.

S903、UE通过N3IWF向PLMN AMF发送注册请求消息,PLMN AMF通过N3IWF接收来自UE的注册请求消息。该注册请求消息可以用于该UE请求注册到PLMN。可见,UE在移动后,又可以在新的SNPN接入,然后请求通过PLMN N3IWF再次注册到PLMN。S903, the UE sends a registration request message to the PLMN AMF through the N3IWF, and the PLMN AMF receives the registration request message from the UE through the N3IWF. The registration request message may be used for the UE to request registration to the PLMN. It can be seen that after the UE moves, it can access the new SNPN again, and then requests to register to the PLMN again through the PLMN N3IWF.

其中,UE先通过在SNPN2内建立的PDU会话与N3IWF建立IPsec连接,再通过该IPsec连接向N3IWF发送注册请求消息3,N3IWF接收注册请求消息3后,向PLMN AMF发送N2消息,N2消息携带注册请求消息3。例如注册请求消息3也可以称为第三请求消息,或者称为注册请求消息4。注册请求消息3可以包括该UE的SUPI或SUCI,以及包括移动注册类型(mobilityregistration type)。另外,N2消息还可以包括PLMN ID。其中,移动注册类型可以指示注册请求消息3为该UE由于移动而触发的注册请求,或者指示本次注册为该UE由于移动而触发的注册。The UE first establishes an IPsec connection with the N3IWF through the PDU session established in SNPN2, and then sends a registration request message 3 to the N3IWF through the IPsec connection. After receiving the registration request message 3, the N3IWF sends an N2 message to the PLMN AMF, and the N2 message carries the registration request Request message 3. For example, the registration request message 3 may also be called the third request message, or the registration request message 4 . The registration request message 3 may include the SUPI or SUCI of the UE, and include the mobility registration type. In addition, the N2 message may also include the PLMN ID. The mobile registration type may indicate that the registration request message 3 is a registration request triggered by the UE's movement, or indicate that the current registration is a registration triggered by the UE's movement.

可选的,注册请求消息3还可以包括SNPN2的信息。则UE通过注册请求消息3就将SNPN2的信息发送给了PLMN AMF,无需PLMN AMF再通过其他途径获得SNPN2的信息,有利于简化注册过程。Optionally, the registration request message 3 may further include information of the SNPN2. Then, the UE sends the SNPN2 information to the PLMN AMF through the registration request message 3, and the PLMN AMF does not need to obtain the SNPN2 information through other channels, which is beneficial to simplify the registration process.

或者,注册请求消息3不包括SNPN2的信息,PLMN AMF可以从N3IWF获得SNPN2的信息。例如,N3IWF确定该UE接入的SNPN2的信息,并将SNPN2的信息通过N2消息发送给PLMNAMF,从而PLMN AMF接收来自N3IWF的SNPN2的信息。通过这种方式,UE无需在注册请求消息3里携带SNPN2的信息,可以减小注册请求消息3的信息量。Alternatively, the registration request message 3 does not include the information of the SNPN2, and the PLMN AMF can obtain the information of the SNPN2 from the N3IWF. For example, the N3IWF determines the information of the SNPN2 accessed by the UE, and sends the information of the SNPN2 to the PLMNAMF through the N2 message, so that the PLMN AMF receives the information of the SNPN2 from the N3IWF. In this way, the UE does not need to carry the information of the SNPN2 in the registration request message 3, and the information amount of the registration request message 3 can be reduced.

关于S903的更多内容,例如N3IWF如何确定SNPN2的信息等,可参考图6所示的实施例中对于S606的介绍。For more content of S903, such as how the N3IWF determines the information of SNPN2, etc., please refer to the introduction to S606 in the embodiment shown in FIG. 6 .

S904、PLMN AMF向UDM发送Nudm_UECM_Registration请求消息,UDM接收来自PLMNAMF的Nudm_UECM_Registration请求消息。为了简便,也可以将该Nudm_UECM_Registration请求消息称为注册请求消息5,或者称为第一请求消息。S904, the PLMN AMF sends a Nudm_UECM_Registration request message to the UDM, and the UDM receives the Nudm_UECM_Registration request message from the PLMNAMF. For simplicity, the Nudm_UECM_Registration request message may also be referred to as a registration request message 5, or a first request message.

注册请求消息5可以用于PLMN AMF请求为该UE提供服务。注册请求消息5可以包括该UE的SUPI,以及包括PLMN AMF ID和非3GPP接入类型。另外,注册请求消息5还可以包括SNPN2的信息和所述移动注册类型。The registration request message 5 may be used by the PLMN AMF to request to serve the UE. The registration request message 5 may include the SUPI of the UE, as well as the PLMN AMF ID and the non-3GPP access type. In addition, the registration request message 5 may further include the information of the SNPN2 and the mobile registration type.

S905、UDM确定接受PLMN AMF为UE提供服务。S905, the UDM determines to accept the PLMN AMF to provide services for the UE.

UDM根据移动注册类型确定该UE是移动后的注册。并且UDM根据SNPN2的信息以及记录的UE的SNPN AMF上下文,确定UE上次是通过SNPN1注册到PLMN,那么UDM确定接受PLMNAMF为UE提供服务。The UDM determines that the UE is registered after moving according to the mobile registration type. And the UDM determines that the UE registered to the PLMN through SNPN1 last time according to the information of SNPN2 and the recorded SNPN AMF context of the UE, then the UDM determines to accept the PLMNAMF to provide services for the UE.

另外,由于UDM接受了该PLMN AMF为UE提供服务,那么UDM可以对该UE通过SNPN1在该PLMN的注册进行去注册,以避免该UE在该PLMN内注册两次。例如,UDM删除SNPN1内的AMF对应于SNPN1的注册上下文,即从UE的上下文中删除SNPN1AMF的上下文信息,从而实现对该UE通过SNPN1在该PLMN的注册进行去注册。In addition, since the UDM accepts the PLMN AMF to provide services for the UE, the UDM can de-register the UE in the PLMN through the SNPN1 to avoid the UE from registering twice in the PLMN. For example, UDM deletes the AMF in SNPN1 corresponding to the registration context of SNPN1, that is, deletes the context information of SNPN1 AMF from the context of the UE, so as to realize de-registration of the UE through the registration of SNPN1 in the PLMN.

S906、UDM向PLMN AMF发送Nudm_UECM_Registration响应消息,PLMN AMF接收来自UDM的Nudm_UECM_Registration响应消息。为了简便,也可以将该Nudm_UECM_Registration响应消息称为注册响应消息3,或者称为注册请求消息5的响应消息,或者称为第一响应消息。第一响应消息可以指示PLMN AMF成功注册为该UE提供服务。S906, the UDM sends a Nudm_UECM_Registration response message to the PLMN AMF, and the PLMN AMF receives the Nudm_UECM_Registration response message from the UDM. For simplicity, the Nudm_UECM_Registration response message may also be referred to as the registration response message 3, or the response message of the registration request message 5, or the first response message. The first response message may indicate that the PLMN AMF is successfully registered to serve the UE.

S907、PLMN AMF向UE发送注册响应消息,UE接收来自PLMN AMF的注册响应消息。该注册响应消息也可以称为注册响应消息4,或者称为第三响应消息,或者称为注册请求消息3的响应消息,或者称为注册请求消息4(即,S903中的N2消息)的响应消息。注册响应消息4可以指示该UE成功注册到PLMN,即,该UE成功通过SNPN2注册到PLMN。S907, the PLMN AMF sends a registration response message to the UE, and the UE receives the registration response message from the PLMN AMF. The registration response message may also be called a registration response message 4, or a third response message, or a response message called a registration request message 3, or a response to a registration request message 4 (ie, the N2 message in S903). information. The registration response message 4 may indicate that the UE is successfully registered with the PLMN, that is, the UE is successfully registered with the PLMN through the SNPN2.

本申请实施例中,允许UE在从SNPN1移动到SNPN2的场景下,PLMN能够接受UE通过SNPN2在PLMN的非3GPP注册,使得UE能够正常工作。而且可以去注册UE通过SNPN1在PLMN的3GPP注册,以避免UE在PLMN内注册两次。In the embodiment of this application, in the scenario where the UE moves from SNPN1 to SNPN2, the PLMN can accept the non-3GPP registration of the UE in the PLMN through SNPN2, so that the UE can work normally. Moreover, it is possible to de-register the UE's 3GPP registration in the PLMN through SNPN1 to avoid the UE registering twice in the PLMN.

接下来,本申请实施例提供第四种通信方法,请参考图10,为该方法的流程图。Next, an embodiment of the present application provides a fourth communication method. Please refer to FIG. 10 , which is a flowchart of the method.

首先,UE UE使用PLMN签约,在SNPN1通过漫游方式注册到PLMN,关于这部分内容可参考图6所示的实施例中的S601~S605的相关介绍。在注册之后,UE移动到了第二SNPN,第二SNPN例如为图8所示的SNPN2。First, the UE UE subscribes to the PLMN, and registers to the PLMN in the SNPN1 by roaming. For this part, please refer to the related introductions of S601 to S605 in the embodiment shown in FIG. 6 . After registration, the UE moves to the second SNPN, for example, the second SNPN is SNPN2 shown in FIG. 8 .

S1001、UE使用SNPN2签约在SNPN2进行注册。关于UE注册到SNPN2的过程不多赘述。S1001, the UE uses the SNPN2 subscription to register in the SNPN2. The process of the UE registering with the SNPN2 will not be repeated.

S1002、UE在SNPN2建立PDU会话,对此不多赘述。S1002 , the UE establishes a PDU session in the SNPN2, which is not repeated here.

S1003、UE通过N3IWF向PLMN AMF发送注册请求消息,PLMN AMF通过N3IWF接收来自UE的注册请求消息。该注册请求消息可以用于该UE请求注册到PLMN。可见,UE在移动后,又可以在新的SNPN接入,然后请求通过PLMN N3IWF再次注册到PLMN。S1003, the UE sends a registration request message to the PLMN AMF through the N3IWF, and the PLMN AMF receives the registration request message from the UE through the N3IWF. The registration request message may be used for the UE to request registration to the PLMN. It can be seen that after the UE moves, it can access the new SNPN again, and then requests to register to the PLMN again through the PLMN N3IWF.

关于S1003的更多内容,可参考图9所示的实施例中对于S903的介绍。For more content of S1003, reference may be made to the introduction to S903 in the embodiment shown in FIG. 9 .

S1004、PLMN AMF向UDM发送Nudm_UECM_Registration请求消息,UDM接收来自PLMNAMF的Nudm_UECM_Registration请求消息。为了简便,也可以将该Nudm_UECM_Registration请求消息称为注册请求消息5,或者称为第一请求消息。S1004, the PLMN AMF sends a Nudm_UECM_Registration request message to the UDM, and the UDM receives the Nudm_UECM_Registration request message from the PLMNAMF. For simplicity, the Nudm_UECM_Registration request message may also be referred to as a registration request message 5, or a first request message.

关于S1004的更多内容,可参考图9所示的实施例中对于S904的介绍。For more content of S1004, reference may be made to the introduction to S904 in the embodiment shown in FIG. 9 .

S1005、UDM向PLMN AMF发送Nudm_UECM_Registration响应消息,PLMN AMF接收来自UDM的Nudm_UECM_Registration响应消息。为了简便,也可以将该Nudm_UECM_Registration响应消息称为注册响应消息3,或者称为注册请求消息5的响应消息,或者称为第一响应消息。第一响应消息可以指示PLMN AMF成功注册为该UE提供服务。UDM根据移动注册类型确定该UE是移动后的注册,并且UDM根据SNPN2的信息以及记录的UE的SNPN AMF上下文,确定UE上次是通过SNPN1注册到PLMN,那么UDM确定接受PLMN AMF为UE提供服务,并且在第一响应消息中携带UE的注册上下文(即,该UE的SNPN AMF上下文),UE的注册上下文可以隐式指示PLMN AMF成功注册为该UE提供服务;或者UDM也可以在第一响应消息中携带指示信息,该指示信息可指示该UE已通过SNPN注册到该PLMN,或者指示PLMN AMF成功注册为该UE提供服务。S1005, the UDM sends a Nudm_UECM_Registration response message to the PLMN AMF, and the PLMN AMF receives the Nudm_UECM_Registration response message from the UDM. For simplicity, the Nudm_UECM_Registration response message may also be referred to as the registration response message 3, or the response message of the registration request message 5, or the first response message. The first response message may indicate that the PLMN AMF is successfully registered to serve the UE. The UDM determines that the UE is registered after moving according to the mobile registration type, and the UDM determines that the UE registered to the PLMN through SNPN1 last time according to the information of SNPN2 and the recorded SNPN AMF context of the UE, then the UDM determines to accept the PLMN AMF to provide services for the UE , and the first response message carries the UE's registration context (that is, the UE's SNPN AMF context), the UE's registration context can implicitly indicate that the PLMN AMF successfully registers to provide services for the UE; or the UDM can also be in the first response. The message carries indication information, which may indicate that the UE has registered with the PLMN through the SNPN, or that the PLMN AMF has successfully registered to provide services for the UE.

S1006、PLMN AMF确定接受该UE本次的注册。S1006, the PLMN AMF determines to accept the current registration of the UE.

PLMN AMF根据移动注册类型确定该UE是移动后的注册。并且,PLMN AMF根据SNPN2的信息、移动注册类型以及第一响应消息中的UE的注册上下文,确定接受UE本次在PLMN的注册。The PLMN AMF determines that the UE is registered after moving according to the mobile registration type. Moreover, the PLMN AMF determines to accept the registration of the UE in the PLMN this time according to the information of the SNPN2, the mobile registration type and the registration context of the UE in the first response message.

S1007、PLMN AMF向UDM发送Nudm_UECM_DeRegistration请求消息,UDM接收来自PLMN AMF的Nudm_UECM_DeRegistration请求消息。为了简便,也将该Nudm_UECM_DeRegistration请求消息称为去注册请求消息,或者称为第二请求消息。S1007. The PLMN AMF sends a Nudm_UECM_DeRegistration request message to the UDM, and the UDM receives the Nudm_UECM_DeRegistration request message from the PLMN AMF. For simplicity, the Nudm_UECM_DeRegistration request message is also referred to as a deregistration request message, or a second request message.

去注册请求消息可以请求(或者说,指示)对该UE通过SNPN1在该PLMN内的注册进行去注册。在图9所示的实施例中,是由UDM确定接受PLMN AMF为接入SNPN2的UE提供服务,因此UDM可以自行对SNPN1 AMF的注册进行去注册,无需PLMN AMF通知。而本申请实施例中是由PLMN AMF来确定接受UE通过接入SNPN2在PLMN的注册,因此也可以由PLMN AMF请求UDM对于SNPN1 AMF的注册进行去注册。去注册请求消息可以包括PLMN ID,PLMN AMF ID,该UE的SUPI,以及3GPP Access Type。The de-registration request message may request (or in other words, indicate) de-registration of the UE's registration in the PLMN through SNPN1. In the embodiment shown in FIG. 9 , the UDM determines to accept the PLMN AMF to provide services for the UE accessing SNPN2, so the UDM can de-register the registration of the SNPN1 AMF by itself without PLMN AMF notification. In the embodiment of the present application, the PLMN AMF determines to accept the registration of the UE in the PLMN by accessing the SNPN2, so the PLMN AMF may also request the UDM to de-register the registration of the SNPN1 AMF. The deregistration request message may include PLMN ID, PLMN AMF ID, SUPI of the UE, and 3GPP Access Type.

S1008、UDM删除SNPN1内的AMF对应于SNPN1的注册上下文。示例性的,UDM从UE的上下文中删除SNPN1 AMF的上下文信息,从而实现对该UE通过SNPN1在该PLMN的注册进行去注册。S1008, the UDM deletes the registration context of the AMF in the SNPN1 corresponding to the SNPN1. Exemplarily, the UDM deletes the context information of the SNPN1 AMF from the context of the UE, thereby realizing de-registration of the UE through the registration of the SNPN1 in the PLMN.

S1009、PLMN AMF向UE发送注册响应消息,UE接收来自PLMN AMF的注册响应消息。该注册响应消息也可以称为注册响应消息4,或者称为第三响应消息,或者称为注册请求消息3的响应消息,或者称为注册请求消息4(即,S1003中的N2消息)的响应消息。注册响应消息4可以指示该UE成功注册到PLMN,即,该UE成功通过SNPN2注册到PLMN。S1009, the PLMN AMF sends a registration response message to the UE, and the UE receives the registration response message from the PLMN AMF. The registration response message may also be called a registration response message 4, or a third response message, or a response message called a registration request message 3, or a response to a registration request message 4 (ie, the N2 message in S1003). information. The registration response message 4 may indicate that the UE is successfully registered with the PLMN, that is, the UE is successfully registered with the PLMN through the SNPN2.

本申请实施例中,允许UE在从SNPN1移动到SNPN2的场景下,PLMN能够接受UE通过SNPN2在PLMN的非3GPP注册,使得UE能够正常工作。而且可以去注册UE通过SNPN1在PLMN的3GPP注册,以避免UE在PLMN内注册两次。In the embodiment of this application, in the scenario where the UE moves from SNPN1 to SNPN2, the PLMN can accept the non-3GPP registration of the UE in the PLMN through SNPN2, so that the UE can work normally. Moreover, it is possible to de-register the UE's 3GPP registration in the PLMN through SNPN1 to avoid the UE registering twice in the PLMN.

基于相同的发明构思,如图11所示,为本申请提供的一种装置示意图,该装置可以是第一核心网设备、第二核心网设备、第一网络设备或芯片。当该装置是第一核心网设备或芯片时,该装置1100可用于执行图6所示的实施例、图7所示的实施例、图9所示的实施例或图10所示的实施例中由PLMN UDM执行的操作。当该装置是第二核心网设备或芯片时,该装置1100可用于执行图6所示的实施例、图7所示的实施例、图9所示的实施例或图10所示的实施例中由PLMN AMF执行的操作。当该装置是第一网络设备或芯片时,该装置1100可用于执行图6所示的实施例、图7所示的实施例、图9所示的实施例或图10所示的实施例中由N3IWF执行的操作。Based on the same inventive concept, as shown in FIG. 11 , which is a schematic diagram of an apparatus provided in the present application, the apparatus may be a first core network device, a second core network device, a first network device or a chip. When the apparatus is the first core network device or chip, the apparatus 1100 can be used to execute the embodiment shown in FIG. 6 , the embodiment shown in FIG. 7 , the embodiment shown in FIG. 9 or the embodiment shown in FIG. 10 Operations performed by PLMN UDM in . When the apparatus is a second core network device or chip, the apparatus 1100 can be used to execute the embodiment shown in FIG. 6 , the embodiment shown in FIG. 7 , the embodiment shown in FIG. 9 or the embodiment shown in FIG. 10 . Operations performed by the PLMN AMF in . When the apparatus is a first network device or chip, the apparatus 1100 can be used to execute the embodiment shown in FIG. 6 , the embodiment shown in FIG. 7 , the embodiment shown in FIG. 9 or the embodiment shown in FIG. 10 . Operations performed by the N3IWF.

该装置1100包括至少一个处理器1101,通信线路1102,以及至少一个通信接口1104。作为一种可选的实施方式,该装置1100还可以包括存储器1103。因为存储器1103不是必须包括的功能模块,而只是可选包括的功能模块,因此在图11中用虚线框表示。The apparatus 1100 includes at least one processor 1101 , a communication line 1102 , and at least one communication interface 1104 . As an optional implementation manner, the apparatus 1100 may further include a memory 1103 . Since the memory 1103 is not an essential function module but an optional function module, it is represented by a dotted box in FIG. 11 .

处理器1101可以包括一个通用中央处理器(central processing unit,CPU),微处理器,特定应用集成电路(application specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。The processor 1101 may include a general-purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the programs of the present application. circuit.

通信线路1102可包括一通路,在上述组件之间传送信息。Communication line 1102 may include a path to communicate information between the components described above.

通信接口1104,使用任何收发器一类的装置,用于与其他设备或通信网络通信,如以太网,无线接入网(radio access network,RAN),无线局域网(wireless local areanetworks,WLAN),有线接入网等。Communication interface 1104, using any transceiver-like device, for communicating with other devices or communication networks, such as Ethernet, radio access networks (RAN), wireless local area networks (WLAN), wired access network, etc.

存储器1103可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compactdisc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器1103可以是独立存在,通过通信线路1102与处理器1101相连接。或者,存储器1103也可以和处理器1101集成在一起。Memory 1103 may be read-only memory (ROM) or other type of static storage device that can store static information and instructions, random access memory (RAM), or other type of static storage device that can store information and instructions It can also be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM), or other optical disk storage, optical disk storage ( including compact discs, laser discs, compact discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or capable of carrying or storing desired program code in the form of instructions or data structures and capable of being stored by a computer any other medium taken, but not limited to this. The memory 1103 may exist independently, and is connected to the processor 1101 through the communication line 1102 . Alternatively, the memory 1103 can also be integrated with the processor 1101 .

其中,存储器1103用于存储执行本申请实施例的计算机执行指令,并由处理器1101来控制执行。处理器1101用于执行存储器1103中存储的计算机执行指令,从而实现本申请上述实施例提供的通信方法。The memory 1103 is used for storing computer-executed instructions for executing the embodiments of the present application, and the execution is controlled by the processor 1101 . The processor 1101 is configured to execute the computer-executed instructions stored in the memory 1103, so as to implement the communication methods provided by the foregoing embodiments of the present application.

可选的,本申请实施例中的计算机执行指令也可以称之为应用程序代码,本申请实施例对此不作具体限定。Optionally, the computer-executed instructions in the embodiment of the present application may also be referred to as application code, which is not specifically limited in the embodiment of the present application.

在具体实现中,作为一种实施例,处理器1101可以包括一个或多个CPU,例如图11中的CPU0和CPU1。In a specific implementation, as an embodiment, the processor 1101 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 11 .

在具体实现中,作为一种实施例,装置1100可以包括多个处理器,例如图11中的处理器1101和处理器1108。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。In a specific implementation, as an embodiment, the apparatus 1100 may include multiple processors, such as the processor 1101 and the processor 1108 in FIG. 11 . Each of these processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).

当图11所示的装置为芯片时,例如可以是第一核心网设备的芯片,或第二核心网设备的芯片,或第一网络设备的芯片,则该芯片包括处理器1101(还可以包括处理器1108)、通信线路1102、存储器1103和通信接口1104。具体地,通信接口1104可以是输入接口、管脚或电路等。存储器1103可以是寄存器、缓存等。处理器1101和处理器1108可以是一个通用的CPU,微处理器,ASIC,或一个或多个用于控制上述任一实施例的通信方法的程序执行的集成电路。When the device shown in FIG. 11 is a chip, for example, it may be the chip of the first core network device, or the chip of the second core network device, or the chip of the first network device, then the chip includes the processor 1101 (which may also include processor 1108), communication line 1102, memory 1103 and communication interface 1104. Specifically, the communication interface 1104 may be an input interface, a pin, a circuit, or the like. The memory 1103 may be a register, a cache, or the like. The processor 1101 and the processor 1108 may be a general-purpose CPU, a microprocessor, an ASIC, or one or more integrated circuits for controlling program execution of the communication method of any of the above-mentioned embodiments.

本申请实施例可以根据上述方法示例对装置进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。比如,在采用对应各个功能划分各个功能模块的情况下,图12示出了一种装置示意图,该装置1200可以是上述实施例中所涉及的第一核心网设备,或者为上述实施例中所涉及的第二核心网设备,或者为上述实施例中所涉及的第一网络设备,或者为第一核心网设备中的芯片,或者为第二核心网设备中的芯片,或者为第一网络设备中的芯片。该装置1200包括发送单元1201、处理单元1202和接收单元1203。In this embodiment of the present application, the device may be divided into functional modules according to the foregoing method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. It should be noted that, the division of modules in the embodiments of the present application is schematic, and is only a logical function division, and there may be other division manners in actual implementation. For example, in the case where each functional module is divided according to each function, FIG. 12 shows a schematic diagram of an apparatus, and the apparatus 1200 may be the first core network device involved in the above embodiment, or the device in the above embodiment. The second core network device involved is either the first network device involved in the above embodiment, or a chip in the first core network device, or a chip in the second core network device, or the first network device in the chip. The apparatus 1200 includes a sending unit 1201 , a processing unit 1202 and a receiving unit 1203 .

在一个实施例中,当装置1200为上述图6所示的实施例或图7所示的实施例的第一核心网设备或第一核心网设备的芯片时,则:In one embodiment, when the apparatus 1200 is the first core network device or the chip of the first core network device of the embodiment shown in FIG. 6 or the embodiment shown in FIG. 7 , then:

接收单元1203,用于接收来自第二核心网设备的第一请求消息,所述第一请求消息用于所述第二核心网设备请求为终端设备提供服务,所述第一请求消息包括初始注册类型和所述终端设备接入的非公共网络的信息,所述初始注册类型用于指示所述第一请求消息为所述终端设备的初始注册请求,装置1200位于第一网络内,所述第一网络为所述终端设备的归属网络;A receiving unit 1203, configured to receive a first request message from the second core network device, where the first request message is used by the second core network device to request to provide services for the terminal device, and the first request message includes initial registration type and information of the non-public network accessed by the terminal device, the initial registration type is used to indicate that the first request message is the initial registration request of the terminal device, the apparatus 1200 is located in the first network, the first request message is a network is the home network of the terminal device;

处理单元1202,用于确定所述终端设备已通过所述非公共网络注册到所述第一网络;a processing unit 1202, configured to determine that the terminal device has registered with the first network through the non-public network;

发送单元1201,用于向第二核心网设备发送第一响应消息,所述第一响应消息包括失败结果指示,或包括所述终端设备的注册上下文,或包括用于指示所述终端设备已通过所述非公共网络注册到所述第一网络的指示信息。The sending unit 1201 is configured to send a first response message to the second core network device, where the first response message includes a failure result indication, or includes a registration context of the terminal device, or includes a message indicating that the terminal device has passed the Indication information that the non-public network is registered with the first network.

作为一种可选的实施方式,所述非公共网络的信息包括所述非公共网络的标识,和/或,非公共网络接入模式指示。As an optional implementation manner, the information of the non-public network includes an identifier of the non-public network and/or an indication of an access mode of the non-public network.

作为一种可选的实施方式,接收单元1203,用于接收来自第三核心网设备的第二请求消息,所述第二请求消息用于所述第三核心网设备请求为终端设备提供服务,所述第二请求消息包括所述非公共网络的信息。处理单元1202,用于记录所述终端设备的注册上下文,所述终端设备的注册上下文包括所述非公共网络的信息,以及,发送单元1201,用于向所述第三核心网设备发送第二响应消息,所述第二响应消息用于指示所述第三核心网设备成功注册为所述终端设备提供服务。As an optional implementation manner, the receiving unit 1203 is configured to receive a second request message from a third core network device, where the second request message is used by the third core network device to request to provide a service for the terminal device, The second request message includes information of the non-public network. The processing unit 1202 is configured to record the registration context of the terminal device, the registration context of the terminal device includes the information of the non-public network, and the sending unit 1201 is configured to send the second core network device to the third core network device. A response message, where the second response message is used to instruct the third core network device to successfully register to provide services for the terminal device.

作为一种可选的实施方式,处理单元1202用于通过如下方式确定所述终端设备已通过所述非公共网络注册到所述第一网络:根据所述初始注册类型、所述非公共网络的信息和记录的所述终端设备的注册上下文,确定所述终端设备已通过所述非公共网络注册到所述第一网络。As an optional implementation manner, the processing unit 1202 is configured to determine that the terminal device has been registered to the first network through the non-public network in the following manner: according to the initial registration type, the The information and the recorded registration context of the terminal device determine that the terminal device has registered with the first network through the non-public network.

作为一种可选的实施方式,所述第一响应消息还包括原因值,所述原因值用于指示所述终端设备已通过所述非公共网络注册到所述第一网络。As an optional implementation manner, the first response message further includes a cause value, where the cause value is used to indicate that the terminal device has registered with the first network through the non-public network.

作为一种可选的实施方式,处理单元1202,还用于删除所述第二核心网设备对应于所述非公共网络的注册上下文;或,接收单元1203,还用于接收来自所述第二核心网设备的第四请求消息,所述第四请求消息用于请求装置1200对所述第二核心网设备在装置1200中的注册进行去注册,以及,处理单元1202,还用于删除所述第二核心网设备对应于所述非公共网络的注册上下文。As an optional implementation manner, the processing unit 1202 is further configured to delete the registration context of the second core network device corresponding to the non-public network; or, the receiving unit 1203 is further configured to receive data from the second core network device. a fourth request message of the core network device, where the fourth request message is used to request the apparatus 1200 to de-register the registration of the second core network device in the apparatus 1200, and the processing unit 1202 is further configured to delete the The second core network device corresponds to the registration context of the non-public network.

在一个实施例中,当装置1200为上述图6所示的实施例或图7所示的实施例的第二核心网设备或第二核心网设备的芯片时,则:In one embodiment, when the apparatus 1200 is the second core network device or the chip of the second core network device of the embodiment shown in FIG. 6 or the embodiment shown in FIG. 7 , then:

接收单元1203,用于通过第一网络设备接收来自终端设备的第三请求消息,所述第三请求消息用于所述终端设备请求注册到所述第一网络,装置1200位于第一网络内,所述第一网络为所述终端设备的归属网络;a receiving unit 1203, configured to receive a third request message from the terminal device through the first network device, where the third request message is used by the terminal device to request to register with the first network, and the apparatus 1200 is located in the first network, the first network is the home network of the terminal device;

处理单元1202,用于获得所述终端设备接入的非公共网络的信息;a processing unit 1202, configured to obtain the information of the non-public network accessed by the terminal device;

发送单元1201,用于向第一核心网设备发送第一请求消息,所述第一请求消息用于装置1200请求为所述终端设备提供服务,所述第一请求消息包括初始注册类型和所述非公共网络的信息,所述初始注册类型用于指示所述第一请求消息为所述终端设备的初始注册请求;A sending unit 1201 is configured to send a first request message to a first core network device, where the first request message is used by the apparatus 1200 to request to provide services for the terminal device, the first request message includes an initial registration type and the non-public network information, the initial registration type is used to indicate that the first request message is an initial registration request of the terminal device;

接收单元1203,还用于接收来自第一核心网设备的第一响应消息,所述第一响应消息包括失败结果指示,或包括所述终端设备的注册上下文,或包括用于指示所述终端设备已通过所述非公共网络注册到所述第一网络的指示信息;The receiving unit 1203 is further configured to receive a first response message from the first core network device, where the first response message includes a failure result indication, or includes a registration context of the terminal device, or includes a message for indicating the terminal device Indication information that has been registered with the first network through the non-public network;

发送单元1201,还用于发送第三响应消息,所述第三响应消息用于拒绝所述终端设备的注册。The sending unit 1201 is further configured to send a third response message, where the third response message is used to reject the registration of the terminal device.

作为一种可选的实施方式,所述非公共网络的信息包括所述非公共网络的标识,和/或,非公共网络接入模式指示。As an optional implementation manner, the information of the non-public network includes an identifier of the non-public network and/or an indication of an access mode of the non-public network.

作为一种可选的实施方式,处理单元1202用于通过如下方式获得所述终端设备接入的非公共网络的信息,包括:从所述第三请求消息中获得所述非公共网络的信息;或,通过接收单元1203接收来自所述第一网络设备的所述非公共网络的信息。As an optional implementation manner, the processing unit 1202 is configured to obtain the information of the non-public network accessed by the terminal device in the following manner, including: obtaining the information of the non-public network from the third request message; Or, the information of the non-public network from the first network device is received by the receiving unit 1203 .

作为一种可选的实施方式,所述第三响应消息还包括原因值,所述原因值用于指示所述终端设备已通过所述非公共网络注册到所述第一网络。As an optional implementation manner, the third response message further includes a cause value, where the cause value is used to indicate that the terminal device has registered with the first network through the non-public network.

作为一种可选的实施方式,发送单元1201,还用于向所述第一核心网设备发送第四请求消息,所述第四请求消息用于请求所述第一核心网设备对装置1200在所述第一核心网设备中的注册进行去注册。As an optional implementation manner, the sending unit 1201 is further configured to send a fourth request message to the first core network device, where the fourth request message is used to request the first core network device to The registration in the first core network device is de-registered.

作为一种可选的实施方式,在发送单元1201发送第三响应消息之前,处理单元1202还用于根据所述第一响应消息确定拒绝所述终端设备的注册。As an optional implementation manner, before the sending unit 1201 sends the third response message, the processing unit 1202 is further configured to determine to reject the registration of the terminal device according to the first response message.

在一个实施例中,当装置1200为上述图9所示的实施例或图10所示的实施例的第一核心网设备或第一核心网设备的芯片时,则:In one embodiment, when the apparatus 1200 is the first core network device or the chip of the first core network device of the embodiment shown in FIG. 9 or the embodiment shown in FIG. 10 , then:

接收单元1203,用于接收来自第二核心网设备的第一请求消息,所述第一请求消息用于所述第二核心网设备请求为终端设备提供服务,且所述第一请求消息还包括移动注册类型和第二非公共网络的信息,所述移动注册类型用于指示所述第一请求消息为终端设备由于移动而触发的注册请求,装置1200位于第一网络内,所述第一网络为所述终端设备的归属网络;A receiving unit 1203, configured to receive a first request message from the second core network device, where the first request message is used by the second core network device to request to provide services for the terminal device, and the first request message further includes The mobile registration type and the information of the second non-public network, the mobile registration type is used to indicate that the first request message is a registration request triggered by the terminal equipment due to movement, the apparatus 1200 is located in the first network, and the first network is the home network of the terminal device;

发送单元1201,用于向所述第二核心网设备发送第一响应消息,所述第一响应消息用于指示第二核心网设备成功注册为终端设备提供服务。The sending unit 1201 is configured to send a first response message to the second core network device, where the first response message is used to instruct the second core network device to successfully register to provide services for the terminal device.

作为一种可选的实施方式,处理单元1202,用于对所述终端设备通过第一非公共网络在所述第一网络的注册进行去注册。As an optional implementation manner, the processing unit 1202 is configured to de-register the registration of the terminal device in the first network through the first non-public network.

作为一种可选的实施方式,处理单元1202用于通过如下方式对所述终端设备通过第一非公共网络在所述第一网络的注册进行去注册:删除第三核心网设备对应于所述第一非公共网络的注册上下文;或,通过接收单元1203接收来自所述第二核心网设备的第二请求消息,所述第二请求消息用于指示对所述终端设备通过第一非公共网络在所述第一网络的注册进行去注册,以及,删除第三核心网设备对应于所述第一非公共网络的注册上下文。As an optional implementation manner, the processing unit 1202 is configured to de-register the registration of the terminal device with the first network through the first non-public network in the following manner: deleting the third core network device corresponding to the the registration context of the first non-public network; or, receiving a second request message from the second core network device through the receiving unit 1203, where the second request message is used to instruct the terminal device to pass the first non-public network De-registration is performed in the registration of the first network, and the registration context of the third core network device corresponding to the first non-public network is deleted.

作为一种可选的实施方式,所述第二非公共网络的信息包括所述第二非公共网络的标识,和/或,非公共网络接入模式指示。As an optional implementation manner, the information of the second non-public network includes an identifier of the second non-public network, and/or an indication of an access mode of the non-public network.

作为一种可选的实施方式,接收单元1203,还用于接收来自所述第三核心网设备的第二请求消息,所述第二请求消息用于所述第三核心网设备请求为终端设备提供服务,所述第二请求消息包括所述第一非公共网络的信息;处理单元1202,还用于记录所述终端设备的注册上下文,所述终端设备的注册上下文包括所述第一非公共网络的信息;以及,发送单元1201,还用于向所述第三核心网设备发送第二响应消息,所述第二响应消息用于指示所述第三核心网设备成功注册为所述终端设备提供服务。As an optional implementation manner, the receiving unit 1203 is further configured to receive a second request message from the third core network device, where the second request message is used for the third core network device to request a terminal device providing a service, the second request message includes information of the first non-public network; the processing unit 1202 is further configured to record a registration context of the terminal device, where the registration context of the terminal device includes the first non-public network network information; and the sending unit 1201 is further configured to send a second response message to the third core network device, where the second response message is used to indicate that the third core network device is successfully registered as the terminal device Provide services.

作为一种可选的实施方式,所述第一非公共网络的信息包括所述第一非公共网络的标识,和/或,非公共网络接入模式指示。As an optional implementation manner, the information of the first non-public network includes an identifier of the first non-public network, and/or an indication of an access mode of the non-public network.

作为一种可选的实施方式,所述第一响应消息包括所述终端设备的注册上下文。As an optional implementation manner, the first response message includes the registration context of the terminal device.

作为一种可选的实施方式,处理单元1202,还用于在发送单元1201向所述第二核心网设备发送第一响应消息之前,根据所述移动注册类型、所述第二非公共网络的信息和记录的所述终端设备的注册上下文,确定所述第二核心网设备成功注册为终端设备提供服务。As an optional implementation manner, the processing unit 1202 is further configured to: before the sending unit 1201 sends the first response message to the second core network device, according to the mobile registration type, the second non-public network The information and the recorded registration context of the terminal device determine that the second core network device is successfully registered to provide services for the terminal device.

在一个实施例中,当装置1200为上述图9所示的实施例或图10所示的实施例的第二核心网设备或第二核心网设备的芯片时,则:In one embodiment, when the apparatus 1200 is the second core network device or the chip of the second core network device of the embodiment shown in FIG. 9 or the embodiment shown in FIG. 10 , then:

接收单元1203,用于通过第一网络设备接收来自终端设备的第三请求消息,所述第三请求消息用于所述终端设备请求注册到所述第一网络,所述第三请求消息还包括移动注册类型,所述移动注册类型用于指示所述第三请求消息为所述终端设备由于移动而触发的注册请求,所述第一网络为所述终端设备的归属网络;A receiving unit 1203, configured to receive a third request message from the terminal device through the first network device, where the third request message is used by the terminal device to request to register with the first network, and the third request message further includes a mobile registration type, where the mobile registration type is used to indicate that the third request message is a registration request triggered by the terminal device due to movement, and the first network is the home network of the terminal device;

发送单元1201,用于向第一核心网设备发送第一请求消息,所述第一请求消息用于装置1200请求为所述终端设备提供服务,所述第一请求消息包括所述移动注册类型以及第二非公共网络的信息;The sending unit 1201 is configured to send a first request message to a first core network device, where the first request message is used by the apparatus 1200 to request to provide a service for the terminal device, the first request message includes the mobile registration type and information on a second non-public network;

接收单元1203,还用于接收来自所述第一核心网设备的第一响应消息,所述第一响应消息用于指示装置1200成功注册为所述终端设备提供服务;The receiving unit 1203 is further configured to receive a first response message from the first core network device, where the first response message is used to instruct the apparatus 1200 to successfully register to provide services for the terminal device;

发送单元1201,还用于向所述终端设备发送第三响应消息,所述第三响应消息用于指示所述终端设备成功注册到所述第一网络。The sending unit 1201 is further configured to send a third response message to the terminal device, where the third response message is used to instruct the terminal device to successfully register with the first network.

作为一种可选的实施方式,所述第二非公共网络的信息包括所述第二非公共网络的标识,和/或,非公共网络接入模式指示。As an optional implementation manner, the information of the second non-public network includes an identifier of the second non-public network, and/or an indication of an access mode of the non-public network.

作为一种可选的实施方式,所述第一响应消息还包括所述终端设备的注册上下文。As an optional implementation manner, the first response message further includes the registration context of the terminal device.

作为一种可选的实施方式,处理单元1202,还用于在发送单元1201向所述终端设备发送第三响应消息之前,根据所述移动注册类型、所述第二非公共网络的信息和所述终端设备的注册上下文,确定所述终端设备成功注册到所述第一网络。As an optional implementation manner, the processing unit 1202 is further configured to, before the sending unit 1201 sends a third response message to the terminal device, according to the mobile registration type, the information of the second non-public network and all The registration context of the terminal device is used to determine that the terminal device is successfully registered with the first network.

作为一种可选的实施方式,发送单元1201,还用于向所述第一核心网设备发送第二请求消息,所述第二请求消息用于指示对所述终端设备通过第一非公共网络在所述第一网络的注册进行去注册。As an optional implementation manner, the sending unit 1201 is further configured to send a second request message to the first core network device, where the second request message is used to instruct the terminal device to pass the first non-public network The registration at the first network is de-registered.

在一个实施例中,当装置1200为上述图6所示的实施例、图7所示的实施例、图9所示的实施例或图10所示的实施例的第一网络设备的芯片时,则:In one embodiment, when the apparatus 1200 is the chip of the first network device of the embodiment shown in FIG. 6 , the embodiment shown in FIG. 7 , the embodiment shown in FIG. 9 , or the embodiment shown in FIG. 10 ,but:

接收单元1203,用于接收来自终端设备的第四请求消息,所述第四请求消息用于所述终端设备请求注册到第一网络,装置1200位于第一网络内,所述第一网络为所述终端设备的归属网络;The receiving unit 1203 is configured to receive a fourth request message from the terminal device, where the fourth request message is used for the terminal device to request to register with the first network, the apparatus 1200 is located in the first network, and the first network is the the home network of the terminal equipment;

处理单元1202,用于确定所述终端设备接入的非公共网络的信息;a processing unit 1202, configured to determine the information of the non-public network accessed by the terminal device;

发送单元1201,用于向第二核心网设备发送所述非公共网络的信息。The sending unit 1201 is configured to send the information of the non-public network to the second core network device.

作为一种可选的实施方式,处理单元1202用于通过如下方式确定所述终端设备接入的非公共网络的信息,根据非公共网络与隧道或IP地址之间的对应关系,确定所述终端设备接入的非公共网络的信息;或,根据非公共网络与第一网络设备之间的对应关系,确定所述终端设备接入的非公共网络的信息。As an optional implementation manner, the processing unit 1202 is configured to determine the information of the non-public network accessed by the terminal device in the following manner, and determine the terminal device according to the corresponding relationship between the non-public network and the tunnel or IP address. information of the non-public network accessed by the device; or, according to the correspondence between the non-public network and the first network device, determine the information of the non-public network accessed by the terminal device.

应理解,该装置1200可以用于实现本申请实施例的方法中由第一核心网设备、第二核心网设备或第一网络设备执行的步骤,相关特征可以参照上文,此处不再赘述。It should be understood that the apparatus 1200 may be used to implement the steps performed by the first core network device, the second core network device, or the first network device in the method of the embodiment of the present application, and the relevant features can be referred to the above, which will not be repeated here. .

具体的,图12中的发送单元1201、接收单元1203以及处理单元1202的功能/实现过程可以通过图11中的处理器1101调用存储器1103中存储的计算机执行指令来实现。或者,图12中的处理单元1202的功能/实现过程可以通过图11中的处理器1101调用存储器1103中存储的计算机执行指令来实现,图12中的发送单元1201和接收单元1203的功能/实现过程可以通过图11中的通信接口1104来实现。Specifically, the functions/implementation process of the sending unit 1201 , the receiving unit 1203 and the processing unit 1202 in FIG. 12 can be implemented by the processor 1101 in FIG. 11 calling the computer execution instructions stored in the memory 1103 . Alternatively, the function/implementation process of the processing unit 1202 in FIG. 12 can be implemented by the processor 1101 in FIG. 11 calling the computer-executed instructions stored in the memory 1103, and the functions/implementation of the sending unit 1201 and the receiving unit 1203 in FIG. 12 The process may be implemented through the communication interface 1104 in FIG. 11 .

可选的,当该装置1100是芯片或电路时,则发送单元1201和接收单元1203的功能/实现过程还可以通过装置1100内的管脚或电路等来实现。可选地,当该装置1100是芯片时,存储器1103可以为芯片内的存储单元,如寄存器、缓存等。当然,当该装置1100是第一核心网设备,如上述实施例中的UDM时,存储器1103也可以是第一核心网设备内的位于芯片外部的存储单元,本申请实施例对此不作具体限定。当该装置1100是第二核心网设备时,存储器1103也可以是第二核心网设备内的位于芯片外部的存储单元,本申请实施例对此不作具体限定。当该装置1100是第一网络设备时,存储器1103也可以是第一网络设备内的位于芯片外部的存储单元,本申请实施例对此不作具体限定。Optionally, when the device 1100 is a chip or a circuit, the functions/implementation process of the sending unit 1201 and the receiving unit 1203 may also be realized by pins or circuits in the device 1100 . Optionally, when the apparatus 1100 is a chip, the memory 1103 may be a storage unit in the chip, such as a register, a cache, and the like. Of course, when the device 1100 is the first core network device, such as the UDM in the above-mentioned embodiment, the memory 1103 may also be a storage unit located outside the chip in the first core network device, which is not specifically limited in this embodiment of the present application . When the apparatus 1100 is the second core network device, the memory 1103 may also be a storage unit located outside the chip in the second core network device, which is not specifically limited in this embodiment of the present application. When the apparatus 1100 is the first network device, the memory 1103 may also be a storage unit located outside the chip in the first network device, which is not specifically limited in this embodiment of the present application.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server, or data center Transmission to another website site, computer, server, or data center is by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media. The usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media (eg, solid state disks (SSDs)), and the like.

本申请实施例中所描述的各种说明性的逻辑单元和电路可以通过通用处理器,数字信号处理器(digital signal processor,DSP),专用集成电路(application specificintegrated circuit,ASIC),现场可编程门阵列(field-programmable gate array,FPGA),或其它可编程逻辑装置,离散门或晶体管逻辑,离散硬件部件,或上述任何组合的设计来实现或操作所描述的功能。通用处理器可以为微处理器,可选地,该通用处理器也可以为任何传统的处理器、控制器、微控制器或状态机。处理器也可以通过计算装置的组合来实现,例如数字信号处理器和微处理器,多个微处理器,一个或多个微处理器联合一个数字信号处理器核,或任何其它类似的配置来实现。The various illustrative logic units and circuits described in the embodiments of this application may be implemented by general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gates A field-programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of the above are designed to implement or operate the described functions. A general-purpose processor may be a microprocessor, or alternatively, the general-purpose processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented by a combination of computing devices, such as a digital signal processor and a microprocessor, multiple microprocessors, one or more microprocessors in combination with a digital signal processor core, or any other similar configuration. accomplish.

本申请实施例中所描述的方法或算法的步骤可以直接嵌入硬件、处理器执行的软件单元、或者这两者的结合。软件单元可以存储于RAM存储器、闪存、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、可移动磁盘、CD-ROM或本领域中其它任意形式的存储媒介中。示例性地,存储媒介可以与处理器连接,以使得处理器可以从存储媒介中读取信息,并可以向存储媒介存写信息。可选地,存储媒介还可以集成到处理器中。处理器和存储媒介可以设置于ASIC中,ASIC可以设置于终端设备中。可选地,处理器和存储媒介也可以设置于终端设备中的不同的部件中。The steps of the method or algorithm described in the embodiments of this application may be directly embedded in hardware, a software unit executed by a processor, or a combination of the two. A software unit may be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art. Illustratively, a storage medium can be coupled to the processor such that the processor can read information from, and write information to, the storage medium. Optionally, the storage medium can also be integrated into the processor. The processor and storage medium may be provided in the ASIC, and the ASIC may be provided in the terminal device. Alternatively, the processor and the storage medium may also be provided in different components in the terminal device.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.

尽管结合具体特征及其实施例对本申请实施例进行了描述,显而易见的,在不脱离本申请实施例的精神和范围的情况下,可对其进行各种修改和组合。相应地,本申请实施例和附图仅仅是所附权利要求所界定的本申请实施例的示例性说明,且视为已覆盖本申请实施例范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本申请实施例进行各种改动和变型而不脱离本申请实施例的范围。这样,倘若本申请实施例的这些修改和变型属于本申请实施例权利要求及其等同技术的范围之内,则本申请实施例也意图包含这些改动和变型在内。Although the embodiments of the present application have been described in conjunction with specific features and embodiments thereof, it will be apparent that various modifications and combinations may be made without departing from the spirit and scope of the embodiments of the present application. Accordingly, the embodiments of the present application and the accompanying drawings are merely exemplary illustrations of the embodiments of the present application defined by the appended claims, and are deemed to have covered any and all modifications, changes, combinations or equivalents within the scope of the embodiments of the present application thing. Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the scope of the embodiments of the present application. In this way, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the embodiments of the present application and their technical equivalents, the embodiments of the present application are also intended to include these modifications and variations.

Claims (29)

1.一种通信方法,其特征在于,包括:1. a communication method, is characterized in that, comprises: 第一网络内的第一核心网设备接收来自第二核心网设备的第一请求消息,所述第一请求消息用于所述第二核心网设备请求为终端设备提供服务,所述第一请求消息包括初始注册类型和所述终端设备接入的非公共网络的信息,所述初始注册类型用于指示所述第一请求消息为所述终端设备的初始注册请求,所述第一网络为所述终端设备的归属网络;The first core network device in the first network receives a first request message from the second core network device, where the first request message is used by the second core network device to request to provide services for the terminal device, and the first request The message includes the initial registration type and information of the non-public network accessed by the terminal device, the initial registration type is used to indicate that the first request message is the initial registration request of the terminal device, and the first network is the the home network of the terminal equipment; 所述第一核心网设备确定所述终端设备已通过所述非公共网络注册到所述第一网络;The first core network device determines that the terminal device has registered with the first network through the non-public network; 所述第一核心网设备向第二核心网设备发送第一响应消息,所述第一响应消息包括失败结果指示,或包括所述终端设备的注册上下文,或包括用于指示所述终端设备已通过所述非公共网络注册到所述第一网络的指示信息。The first core network device sends a first response message to the second core network device, where the first response message includes a failure result indication, or includes the registration context of the terminal device, or includes a message indicating that the terminal device has Indication information for registering with the first network through the non-public network. 2.根据权利要求1所述的方法,其特征在于,所述非公共网络的信息包括所述非公共网络的标识,和/或,非公共网络接入模式指示。2 . The method according to claim 1 , wherein the information of the non-public network comprises an identifier of the non-public network and/or an indication of an access mode of the non-public network. 3 . 3.根据权利要求1或2所述的方法,其特征在于,所述方法还包括:3. The method according to claim 1 or 2, wherein the method further comprises: 所述第一核心网设备接收来自第三核心网设备的第二请求消息,所述第二请求消息用于所述第三核心网设备请求为终端设备提供服务,所述第二请求消息包括所述非公共网络的信息;The first core network device receives a second request message from the third core network device, the second request message is used by the third core network device to request to provide services for the terminal device, and the second request message includes all the information on non-public networks; 所述第一核心网设备记录所述终端设备的注册上下文,所述终端设备的注册上下文包括所述非公共网络的信息;以及,the first core network device records the registration context of the terminal device, where the registration context of the terminal device includes information of the non-public network; and, 所述第一核心网设备向所述第三核心网设备发送第二响应消息,所述第二响应消息用于指示所述第三核心网设备成功注册为所述终端设备提供服务。The first core network device sends a second response message to the third core network device, where the second response message is used to instruct the third core network device to successfully register to provide services for the terminal device. 4.根据权利要求3所述的方法,其特征在于,所述第一核心网设备确定所述终端设备已通过所述非公共网络注册到所述第一网络,包括:4 . The method according to claim 3 , wherein determining, by the first core network device, that the terminal device has registered with the first network through the non-public network, comprising: 4 . 所述第一核心网设备根据所述初始注册类型、所述非公共网络的信息和记录的所述终端设备的注册上下文,确定所述终端设备已通过所述非公共网络注册到所述第一网络。The first core network device determines, according to the initial registration type, the information of the non-public network, and the recorded registration context of the terminal device, that the terminal device has registered with the first device through the non-public network. network. 5.根据权利要求1~4任一项所述的方法,其特征在于,所述第一响应消息还包括原因值,所述原因值用于指示所述终端设备已通过所述非公共网络注册到所述第一网络。The method according to any one of claims 1 to 4, wherein the first response message further comprises a cause value, and the cause value is used to indicate that the terminal device has registered through the non-public network to the first network. 6.根据权利要求1~5任一项所述的方法,其特征在于,所述方法还包括:6. The method according to any one of claims 1 to 5, wherein the method further comprises: 所述第一核心网设备删除所述第二核心网设备对应于所述非公共网络的注册上下文;或,The first core network device deletes the registration context of the second core network device corresponding to the non-public network; or, 所述第一核心网设备接收来自所述第二核心网设备的第四请求消息,所述第四请求消息用于请求所述第一核心网设备对所述第二核心网设备在所述第一核心网设备中的注册进行去注册;The first core network device receives a fourth request message from the second core network device, where the fourth request message is used to request the first core network device to request the second core network device A registration in a core network device is de-registered; 所述第一核心网设备删除所述第二核心网设备对应于所述非公共网络的注册上下文。The first core network device deletes the registration context of the second core network device corresponding to the non-public network. 7.一种通信方法,其特征在于,包括:7. A communication method, characterized in that, comprising: 第一网络内的第二核心网设备通过第一网络设备接收来自终端设备的第三请求消息,所述第三请求消息用于所述终端设备请求注册到所述第一网络,所述第一网络为所述终端设备的归属网络;The second core network device in the first network receives a third request message from the terminal device through the first network device, where the third request message is used by the terminal device to request to register with the first network, and the first The network is the home network of the terminal device; 所述第二核心网设备获得所述终端设备接入的非公共网络的信息;obtaining, by the second core network device, information of the non-public network accessed by the terminal device; 所述第二核心网设备向第一核心网设备发送第一请求消息,所述第一请求消息用于所述第二核心网设备请求为所述终端设备提供服务,所述第一请求消息包括初始注册类型和所述非公共网络的信息,所述初始注册类型用于指示所述第一请求消息为所述终端设备的初始注册请求;The second core network device sends a first request message to the first core network device, where the first request message is used by the second core network device to request to provide services for the terminal device, and the first request message includes an initial registration type and information of the non-public network, where the initial registration type is used to indicate that the first request message is an initial registration request of the terminal device; 所述第二核心网设备接收来自第一核心网设备的第一响应消息,所述第一响应消息包括失败结果指示,或包括所述终端设备的注册上下文,或包括用于指示所述终端设备已通过所述非公共网络注册到所述第一网络的指示信息;The second core network device receives a first response message from the first core network device, where the first response message includes a failure result indication, or includes the registration context of the terminal device, or includes instructions for indicating the terminal device Indication information that has been registered with the first network through the non-public network; 所述第二核心网设备发送第三响应消息,所述第三响应消息用于拒绝所述终端设备的注册。The second core network device sends a third response message, where the third response message is used to reject the registration of the terminal device. 8.根据权利要求7所述的方法,其特征在于,所述非公共网络的信息包括所述非公共网络的标识,和/或,非公共网络接入模式指示。8. The method according to claim 7, wherein the information of the non-public network comprises an identifier of the non-public network, and/or an indication of an access mode of the non-public network. 9.根据权利要求7或8所述的方法,其特征在于,所述第二核心网设备获得所述终端设备接入的非公共网络的信息,包括:9. The method according to claim 7 or 8, wherein the second core network device obtains the information of the non-public network accessed by the terminal device, comprising: 所述第二核心网设备从所述第三请求消息中获得所述非公共网络的信息;或,The second core network device obtains the information of the non-public network from the third request message; or, 所述第二核心网设备接收来自所述第一网络设备的所述非公共网络的信息。The second core network device receives the information of the non-public network from the first network device. 10.根据权利要求7~9任一项所述的方法,其特征在于,所述第三响应消息还包括原因值,所述原因值用于指示所述终端设备已通过所述非公共网络注册到所述第一网络。The method according to any one of claims 7 to 9, wherein the third response message further comprises a cause value, and the cause value is used to indicate that the terminal device has registered through the non-public network to the first network. 11.根据权利要求7~10任一项所述的方法,其特征在于,所述方法还包括:11. The method according to any one of claims 7 to 10, wherein the method further comprises: 所述第二核心网设备向所述第一核心网设备发送第四请求消息,所述第四请求消息用于请求所述第一核心网设备对所述第二核心网设备在所述第一核心网设备中的注册进行去注册。The second core network device sends a fourth request message to the first core network device, where the fourth request message is used to request the first core network device to The registration in the core network device is de-registered. 12.根据权利要求7~11任一项所述的方法,其特征在于,在所述第二核心网设备发送第三响应消息之前,所述方法还包括:The method according to any one of claims 7 to 11, wherein before the second core network device sends the third response message, the method further comprises: 所述第二核心网设备根据所述第一响应消息确定拒绝所述终端设备的注册。The second core network device determines to reject the registration of the terminal device according to the first response message. 13.一种通信方法,其特征在于,包括:13. A communication method, comprising: 第一网络内的第一核心网设备接收来自第二核心网设备的第一请求消息,所述第一请求消息用于所述第二核心网设备请求为终端设备提供服务,且所述第一请求消息还包括移动注册类型和第二非公共网络的信息,所述移动注册类型用于指示所述第一请求消息为终端设备由于移动而触发的注册请求,所述第一网络为所述终端设备的归属网络;The first core network device in the first network receives a first request message from the second core network device, where the first request message is used by the second core network device to request to provide services for the terminal device, and the first request message is The request message also includes information of a mobile registration type and a second non-public network, where the mobile registration type is used to indicate that the first request message is a registration request triggered by a terminal device due to movement, and the first network is the terminal the home network of the device; 所述第一核心网设备向所述第二核心网设备发送第一响应消息,所述第一响应消息用于指示第二核心网设备成功注册为终端设备提供服务。The first core network device sends a first response message to the second core network device, where the first response message is used to instruct the second core network device to successfully register to provide services for the terminal device. 14.根据权利要求13所述的方法,其特征在于,所述方法还包括:14. The method of claim 13, wherein the method further comprises: 所述第一核心网设备对所述终端设备通过第一非公共网络在所述第一网络的注册进行去注册。The first core network device deregisters the registration of the terminal device in the first network through the first non-public network. 15.根据权利要求14所述的方法,其特征在于,所述第一核心网设备对所述终端设备通过第一非公共网络在所述第一网络的注册进行去注册,包括:15 . The method according to claim 14 , wherein the first core network device deregisters the registration of the terminal device in the first network through the first non-public network, comprising: 15 . 所述第一核心网设备删除第三核心网设备对应于所述第一非公共网络的注册上下文;或,The first core network device deletes the registration context of the third core network device corresponding to the first non-public network; or, 所述第一核心网设备接收来自所述第二核心网设备的第二请求消息,所述第二请求消息用于指示对所述终端设备通过第一非公共网络在所述第一网络的注册进行去注册;The first core network device receives a second request message from the second core network device, where the second request message is used to instruct the terminal device to register with the first network through the first non-public network de-register; 所述第一核心网设备删除第三核心网设备对应于所述第一非公共网络的注册上下文。The first core network device deletes the registration context of the third core network device corresponding to the first non-public network. 16.根据权利要求13~15任一项所述的方法,其特征在于,所述第二非公共网络的信息包括所述第二非公共网络的标识,和/或,非公共网络接入模式指示。The method according to any one of claims 13 to 15, wherein the information of the second non-public network comprises an identifier of the second non-public network, and/or a non-public network access mode instruct. 17.根据权利要求14或15所述的方法,其特征在于,所述方法还包括:17. The method according to claim 14 or 15, wherein the method further comprises: 所述第一核心网设备接收来自所述第三核心网设备的第二请求消息,所述第二请求消息用于所述第三核心网设备请求为终端设备提供服务,所述第二请求消息包括所述第一非公共网络的信息;The first core network device receives a second request message from the third core network device, where the second request message is used by the third core network device to request to provide services for the terminal device, and the second request message including information about the first non-public network; 所述第一核心网设备记录所述终端设备的注册上下文,所述终端设备的注册上下文包括所述第一非公共网络的信息;以及,the first core network device records a registration context of the terminal device, where the registration context of the terminal device includes information of the first non-public network; and, 所述第一核心网设备向所述第三核心网设备发送第二响应消息,所述第二响应消息用于指示所述第三核心网设备成功注册为所述终端设备提供服务。The first core network device sends a second response message to the third core network device, where the second response message is used to instruct the third core network device to successfully register to provide services for the terminal device. 18.根据权利要求14、15或17所述的方法,其特征在于,所述第一非公共网络的信息包括所述第一非公共网络的标识,和/或,非公共网络接入模式指示。The method according to claim 14, 15 or 17, wherein the information of the first non-public network comprises an identifier of the first non-public network, and/or an indication of a non-public network access mode . 19.根据权利要求13所述的方法,其特征在于,所述第一响应消息包括所述终端设备的注册上下文。19. The method of claim 13, wherein the first response message includes a registration context of the terminal device. 20.根据权利要求13~19任一项所述的方法,其特征在于,在所述第一核心网设备向所述第二核心网设备发送第一响应消息之前,还包括:The method according to any one of claims 13 to 19, wherein before the first core network device sends the first response message to the second core network device, the method further comprises: 所述第一核心网设备根据所述移动注册类型、所述第二非公共网络的信息和记录的所述终端设备的注册上下文,确定所述第二核心网设备成功注册为终端设备提供服务。The first core network device determines, according to the mobile registration type, the information of the second non-public network, and the recorded registration context of the terminal device, that the second core network device is successfully registered to provide services for the terminal device. 21.一种通信方法,其特征在于,包括:21. A communication method, comprising: 第一网络内的第二核心网设备通过第一网络设备接收来自终端设备的第三请求消息,所述第三请求消息用于所述终端设备请求注册到所述第一网络,所述第三请求消息还包括移动注册类型,所述移动注册类型用于指示所述第三请求消息为所述终端设备由于移动而触发的注册请求,所述第一网络为所述终端设备的归属网络;The second core network device in the first network receives a third request message from the terminal device through the first network device, where the third request message is used by the terminal device to request to register with the first network, the third request message The request message further includes a mobile registration type, where the mobile registration type is used to indicate that the third request message is a registration request triggered by the terminal device due to movement, and the first network is the home network of the terminal device; 所述第二核心网设备向第一核心网设备发送第一请求消息,所述第一请求消息用于所述第二核心网设备请求为所述终端设备提供服务,所述第一请求消息包括所述移动注册类型以及第二非公共网络的信息;The second core network device sends a first request message to the first core network device, where the first request message is used by the second core network device to request to provide services for the terminal device, and the first request message includes the mobile registration type and the information of the second non-public network; 所述第二核心网设备接收来自所述第一核心网设备的第一响应消息,所述第一响应消息用于指示所述第二核心网设备成功注册为所述终端设备提供服务;receiving, by the second core network device, a first response message from the first core network device, where the first response message is used to instruct the second core network device to successfully register to provide services for the terminal device; 所述第二核心网设备向所述终端设备发送第三响应消息,所述第三响应消息用于指示所述终端设备成功注册到所述第一网络。The second core network device sends a third response message to the terminal device, where the third response message is used to instruct the terminal device to successfully register with the first network. 22.根据权利要求21所述的方法,其特征在于,所述第二非公共网络的信息包括所述第二非公共网络的标识,和/或,非公共网络接入模式指示。22. The method according to claim 21, wherein the information of the second non-public network comprises an identifier of the second non-public network, and/or an indication of a non-public network access mode. 23.根据权利要求21或22所述的方法,其特征在于,所述第一响应消息还包括所述终端设备的注册上下文。23. The method according to claim 21 or 22, wherein the first response message further comprises a registration context of the terminal device. 24.根据权利要求23所述的方法,其特征在于,在所述第二核心网设备向所述终端设备发送第三响应消息之前,所述方法还包括:24. The method according to claim 23, wherein before the second core network device sends a third response message to the terminal device, the method further comprises: 所述第二核心网设备根据所述移动注册类型、所述第二非公共网络的信息和所述终端设备的注册上下文,确定所述终端设备成功注册到所述第一网络。The second core network device determines that the terminal device successfully registers with the first network according to the mobile registration type, the information of the second non-public network and the registration context of the terminal device. 25.根据权利要求23或24所述的方法,其特征在于,所述方法还包括:25. The method according to claim 23 or 24, wherein the method further comprises: 所述第二核心网设备向所述第一核心网设备发送第二请求消息,所述第二请求消息用于指示对所述终端设备通过第一非公共网络在所述第一网络的注册进行去注册。The second core network device sends a second request message to the first core network device, where the second request message is used to instruct the terminal device to register with the first network through the first non-public network. to register. 26.一种通信方法,其特征在于,包括:26. A communication method, comprising: 第一网络内的第一网络设备接收来自终端设备的第四请求消息,所述第四请求消息用于所述终端设备请求注册到第一网络,所述第一网络为所述终端设备的归属网络;The first network device in the first network receives a fourth request message from the terminal device, where the fourth request message is used by the terminal device to request to register with the first network, where the first network is the home of the terminal device network; 所述第一网络设备确定所述终端设备接入的非公共网络的信息;The first network device determines the information of the non-public network accessed by the terminal device; 所述第一网络设备向第二核心网设备发送所述非公共网络的信息。The first network device sends the information of the non-public network to the second core network device. 27.根据权利要求26所述的方法,其特征在于,所述第一网络设备确定所述终端设备接入的非公共网络的信息,包括:27. The method according to claim 26, wherein the determining, by the first network device, the information of the non-public network accessed by the terminal device comprises: 所述第一网络设备根据非公共网络与隧道或IP地址之间的对应关系,确定所述终端设备接入的非公共网络的信息;或,The first network device determines the information of the non-public network accessed by the terminal device according to the correspondence between the non-public network and the tunnel or IP address; or, 所述第一网络设备根据非公共网络与第一网络设备之间的对应关系,确定所述终端设备接入的非公共网络的信息。The first network device determines the information of the non-public network accessed by the terminal device according to the correspondence between the non-public network and the first network device. 28.一种通信装置,其特征在于,包括处理器和存储器;所述存储器用于存储一个或多个计算机程序,当所述一个或多个计算机程序被运行时,使得如权利要求1~6中任一项所述的方法被执行,或使得如权利要求7~12中任一项所述的方法被执行,或使得如权利要求13~20中任一项所述的方法被执行,或使得如权利要求21~25中任一项所述的方法被执行,或使得如权利要求26~27中任一项所述的方法被执行。28. A communication device, characterized in that it comprises a processor and a memory; the memory is used to store one or more computer programs, when the one or more computer programs are executed, such that as claimed in claims 1 to 6 The method of any one of the claims is performed, or the method of any one of claims 7 to 12 is performed, or the method of any one of claims 13 to 20 is performed, or A method as claimed in any of claims 21-25 is caused to be performed, or a method as claimed in any of claims 26-27 is caused to be performed. 29.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1~6中任一项所述的方法,或使得所述计算机执行如权利要求7~12中任一项所述的方法,或使得所述计算机执行如权利要求13~20中任一项所述的方法,或使得所述计算机执行如权利要求21~25中任一项所述的方法,或使得所述计算机执行如权利要求26~27中任一项所述的方法。29. A computer-readable storage medium, characterized in that, the computer-readable storage medium is used for storing a computer program, and when the computer program is run on a computer, the computer is made to execute the method according to claims 1 to 6 any one of the methods, or causing the computer to execute the method according to any one of claims 7 to 12, or causing the computer to execute the method according to any one of claims 13 to 20, Or cause the computer to execute the method according to any one of claims 21-25, or cause the computer to execute the method according to any one of claims 26-27.
CN202011175696.3A 2020-10-28 2020-10-28 A communication method and device Pending CN114423074A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011175696.3A CN114423074A (en) 2020-10-28 2020-10-28 A communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011175696.3A CN114423074A (en) 2020-10-28 2020-10-28 A communication method and device

Publications (1)

Publication Number Publication Date
CN114423074A true CN114423074A (en) 2022-04-29

Family

ID=81260660

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011175696.3A Pending CN114423074A (en) 2020-10-28 2020-10-28 A communication method and device

Country Status (1)

Country Link
CN (1) CN114423074A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024036461A1 (en) * 2022-08-15 2024-02-22 北京小米移动软件有限公司 Authentication method and apparatus for access to 3gpp network by means of non-3gpp access network
WO2024119292A1 (en) * 2022-12-05 2024-06-13 华为技术有限公司 Network service method, communication apparatus, and communication system
WO2024120352A1 (en) * 2022-12-08 2024-06-13 维沃移动通信有限公司 Communication method, and terminal and core network function
WO2025010708A1 (en) * 2023-07-13 2025-01-16 北京小米移动软件有限公司 Access management method and apparatus, and communication device, communication system and storage medium
WO2025036144A1 (en) * 2023-08-11 2025-02-20 华为技术有限公司 Communication method, apparatus, and system
WO2025055801A1 (en) * 2023-09-12 2025-03-20 维沃移动通信有限公司 Registration method and apparatus, network information recording method and apparatus, terminal, and network side device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024036461A1 (en) * 2022-08-15 2024-02-22 北京小米移动软件有限公司 Authentication method and apparatus for access to 3gpp network by means of non-3gpp access network
WO2024119292A1 (en) * 2022-12-05 2024-06-13 华为技术有限公司 Network service method, communication apparatus, and communication system
WO2024120352A1 (en) * 2022-12-08 2024-06-13 维沃移动通信有限公司 Communication method, and terminal and core network function
WO2025010708A1 (en) * 2023-07-13 2025-01-16 北京小米移动软件有限公司 Access management method and apparatus, and communication device, communication system and storage medium
WO2025036144A1 (en) * 2023-08-11 2025-02-20 华为技术有限公司 Communication method, apparatus, and system
WO2025055801A1 (en) * 2023-09-12 2025-03-20 维沃移动通信有限公司 Registration method and apparatus, network information recording method and apparatus, terminal, and network side device

Similar Documents

Publication Publication Date Title
CN114423074A (en) A communication method and device
CN111567113B (en) Session establishment method, relay device selection method, registration method and device
US20240284377A1 (en) Method of user equipment (ue), user equipment (ue), method of communication apparatus and communication apparatus
EP3833072B1 (en) Local area network communication management method and apparatus
JP7677467B2 (en) AMF, user equipment, AMF method and user equipment method
US20240323828A1 (en) Method of af apparatus, method of nef apparatus, method of udm apparatus, method of amf apparatus, method of ue, method of pcf apparatus, method of ran node, af apparatus, nef apparatus, udm apparatus, amf apparatus, ue, pcf apparatus and ran node
CN115314973A (en) Wireless communication method and communication device
WO2023068119A1 (en) Method of ue, method of geographically selected amf apparatus, ue, geographically selected amf apparatus, and method of communication terminal
WO2023213177A1 (en) Communication method and apparatus
JP2024529306A (en) Core network node, network node, method for a core network node and method for a network node
WO2021218270A1 (en) Communication method, device and system
US20250234402A1 (en) Communication method, apparatus, and system
US20230232196A1 (en) Data communication method and communication apparatus
KR20220015350A (en) Method and apparatus for supporting network slicing interworking
US20240224147A1 (en) Apparatus and method for inter-plmn handover of home routed session in wireless communication system
EP4422240A1 (en) Method for obtaining security classification result and communication apparatus
WO2023068118A1 (en) Communication apparatus, first communication apparatus, method of communication apparatus, and method of first communication apparatus
WO2023143212A1 (en) Communication method and apparatus
EP4590003A1 (en) Method and apparatus for providing ue policy information in wireless communication system
WO2024117117A1 (en) Method performed by first core network node, method of user equipment, first core network node, and user equipment
WO2023238805A1 (en) Method of communication apparatus and communication apparatus
CN116546564A (en) Communication method and device
WO2025107742A1 (en) Information forwarding method and apparatus
WO2023202503A1 (en) Communication method and apparatus
WO2023197737A1 (en) Message sending method, pin management method, communication apparatus, and communication system

Legal Events

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