Terminal access method, device, network equipment, terminal and medium

By setting NTAG in N3IWF, it handles the registration request of terminals without USIM module, selects the adapted AMF based on the AAA server, and converts non-NAS messages into NAS messages, which solves the problem of user terminals being unable to access the 5G core network and realizes USIM-less Successful access and cost reduction of module terminals.

CN114222298BActive Publication Date: 2024-10-08CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111531720.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-14
Publication Date
2024-10-08
Estimated Expiration
2041-12-14

AI Technical Summary

Technical Problem

In the existing technology, user terminals do not have 5G NAS functions and USIM modules, and cannot access the 5G core network through non-3GPP, resulting in access difficulties and high costs.

Method used

Set NTAG through N3IWF, detect non-NAS messages and hand them over to NTAG for processing. Based on the AAA server, select the adapted AMF, convert non-NAS messages into NAS messages, and complete the terminal authentication process to achieve 5G core network connection for terminals without USIM modules. enter.

Benefits of technology

Without the need for new hardware modules, it reduces the difficulty and cost of terminals without USIM modules accessing the 5G core, and enables successful network access for terminals without USIM modules.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114222298B_ABST
    Figure CN114222298B_ABST
Patent Text Reader

Abstract

The present disclosure provides a terminal access method, device, network equipment, terminal and storage medium, which relates to the field of network communication technology. Among them, the terminal access method includes: N3IWF receives a registration request sent by a terminal, and the registration request carries the device certificate of the terminal; detects that the registration request is a non-NAS message, and determines the adapted AMF based on the device certificate; converts the registration request into an initialization registration NAS message, and sends the initialization registration NAS message to AMF; receives the terminal authentication request generated by AMF based on the initialization registration NAS message, and sends the authentication request to the terminal; receives the encrypted authentication data sent by the terminal based on the authentication request; obtains the terminal authentication data after decrypting the encrypted authentication data; generates a NAS authentication message based on the terminal authentication data, and sends the NAS authentication message to AMF. Through the technical solution of the present disclosure, it is realized that a terminal without a USIM module can access the 5G core network through a non-3GPP.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] In the 3GPP (3rd Generation Partnership Project) R15 version of 5G (5th Generation Mobile Communication Technology), support for non-3GPP access to the core network is described, and non-3GPP interworking functions are defined, including the N3IWF (Non-3GPP Inter Working Function) being responsible for "adapting" the access and authentication protocols of the Non 3GPP network to the 5G core network.

[0003] When Non 3GPP is needed to access the 5G core network, the user equipment UE not only needs to have the 5G NAS function, but also needs to have a 3GPP certificate (USIM, Universal User Identity Card). Currently, terminals that do not have the above functions and certificates, such as weak IoT terminals and existing terminals without 5G capabilities, cannot access the 5G core network through Non 3GPP.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] The purpose of the present disclosure is to provide a terminal access method, apparatus, network equipment, terminal and storage medium, which at least to a certain extent overcome the problem that the user terminal in the related technology cannot access the 5G core network through non-3GPP because it does not have a 5GNAS function and a USIM module.

[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0007] According to the first aspect of the present disclosure, a terminal access method is provided, including: a terminal sends a registration request to a non-3GPP interworking function N3IWF, wherein the registration request carries a device certificate of the terminal; receiving an authentication request fed back by the N3IWF based on the registration request and the device certificate; and in response to the authentication request, sending encrypted authentication data to the N3IWF.

[0008] In one embodiment, before sending a registration request to the non-3GPP interworking function N3IWF, it also includes: sending a first IKE SA parameter to the N3IWF; receiving a second IKE SA parameter fed back by the N3IWF based on the first IKE SA parameter, so as to establish an IKE SA with the N3IWF, so as to send the registration request based on the IKE SA.

[0009] In one embodiment, sending the registration request based on the IKE SA specifically includes: sending an IKE AUTH request based on the IKE SA; receiving a registration notification fed back by the N3IWF based on the IKE AUTH request; and sending the registration request based on the registration notification.

[0010] In one embodiment, it also includes: receiving an authentication success response fed back by the N3IWF based on the encrypted authentication data.

[0011] In one embodiment, it also includes: receiving an IPSEC policy proposal message sent by the N3IWF to establish an IPsec SA between the N3IWF and the IPsec policy proposal message, wherein the IPsec SA is used to establish an IPsec tunnel between the N3IWF and the terminal; and receiving a registration success notification sent by the N3IWF based on the IPsec tunnel.

[0012] In one embodiment, it also includes: when the terminal is successfully registered, a heartbeat keep-alive message is sent to the N3IWF based on the IPsec tunnel, so that the N3IWF detects the status of the terminal based on the heartbeat keep-alive message.

[0013] In one embodiment, before the terminal sends a registration request to the non-3GPP interworking function N3IWF, it also includes: pre-preparing the device certificate and the encrypted authentication data.

[0014] According to a second aspect of the present disclosure, a terminal access method is provided, including: an N3IWF receives a registration request sent by a terminal, the registration request carrying a device certificate of the terminal; detects that the registration request is a non-NAS message, and determines an adapted AMF based on the device certificate; converts the registration request into an initialization registration NAS message, and sends the initialization registration NAS message to the AMF; receives an authentication request for the terminal generated by the AMF based on the initialization registration NAS message, and sends the authentication request to the terminal; receives encrypted authentication data sent by the terminal based on the authentication request; obtains terminal authentication data after decrypting the encrypted authentication data; generates a NAS authentication message based on the terminal authentication data, and sends the NAS authentication message to the AMF.

[0015] In one embodiment, the detecting that the registration request is a non-NAS message and determining the adapted AMF based on the device certificate specifically include: detecting that the registration request is the non-NAS message, selecting the AAA server to which the terminal belongs based on the device certificate, and sending the device certificate to the AAA server; receiving the access network parameters of the terminal fed back by the AAA server when the device certificate is verified; and selecting the adapted AMF based on the access network parameters and local policies.

[0016] In one embodiment, the obtaining of the terminal authentication data after decrypting the encrypted authentication data specifically includes: sending the encrypted authentication data to the AAA server; and receiving the terminal authentication data generated by the AAA server by decrypting the encrypted authentication data.

[0017] In one embodiment, before the N3IWF receives the registration request sent by the terminal, it also includes receiving a first IKE SA parameter sent by the terminal; querying a second IKE SA parameter that matches the first IKE SA parameter, and feeding back the second IKE SA parameter to the terminal so that an IKE SA is established between the terminal and the N3IWF to receive the registration request sent by the terminal based on the IKE SA.

[0018] In one embodiment, the receiving the registration request sent by the terminal based on the IKE SA specifically includes: receiving an IKE AUTH request sent by the terminal based on the IKE SA; and sending a registration notification to the terminal in response to the IKE AUTH request, so as to receive the registration request sent by the terminal based on the registration notification.

[0019] In one embodiment, it also includes: receiving a NAS security mode instruction sent by the AMF based on the terminal authentication data; verifying the NAS security mode instruction, establishing an IPsec SA with the AMF, and obtaining a key from the NAS security mode instruction; receiving an initialization context establishment request sent by the AMF based on the IPsec SA; establishing an initialization context with the AMF based on the initialization context establishment request, and sending an authentication success response to the terminal.

[0020] In one embodiment, it also includes: sending an IPSEC policy proposal message to the terminal to establish an IPsec SA with the terminal, wherein the IPsec SA is used to establish an IPsec tunnel between the N3IWF and the terminal based on the key; sending an initialization context establishment response to the AMF; receiving an acceptance registration message sent by the AMF based on the initialization context establishment response; and in response to the acceptance registration message, sending a registration success notification to the terminal based on the IPsec tunnel.

[0021] In one embodiment, the method further includes: receiving a heartbeat keep-alive message sent by the terminal based on the IPsec tunnel; and detecting the state of the terminal based on the heartbeat keep-alive message.

[0022] According to a third aspect of the present disclosure, a terminal access method is provided, including: an AAA server receives a device certificate of a terminal sent by an N3IWF; if the device certificate is verified, the access network parameters of the terminal are fed back to the N3IWF, so that the N3IWF selects an adapted AMF based on the access network parameters and local policies; receives encrypted authentication data of the terminal sent by the N3IWF; decrypts the encrypted authentication data to generate terminal authentication data, and feeds back the terminal authentication data to the N3IWF, so that the N3IWF generates a NAS authentication message based on the terminal authentication data, and sends it to the AMF.

[0023] In one embodiment, it also includes: generating a device certificate of the terminal based on the contract data of the terminal; and encrypting the terminal authentication data based on a private key to obtain the encrypted authentication data; and sending the device certificate and the encrypted authentication data to the contracted terminal.

[0024] According to a fourth aspect of the present disclosure, a terminal access device is provided, including: a first sending module, used for the terminal to send a registration request to a non-3GPP interworking function N3IWF, the registration request carrying the device certificate of the terminal; a first receiving module, used to receive an authentication request fed back by the N3IWF based on the registration request and the device certificate; a second sending module, used to send encrypted authentication data to the N3IWF in response to the authentication request.

[0025] According to a fifth aspect of the present disclosure, a terminal access device is provided, including: a second receiving module, used for N3IWF to receive a registration request sent by a terminal, the registration request carrying a device certificate of the terminal; a determination module, used to detect that the registration request is a non-NAS message, and determine an adapted AMF based on the device certificate; a conversion module, used to convert the registration request into an initialization registration NAS message, and send the initialization registration NAS message to the AMF; a third receiving module, used to receive an authentication request of the terminal generated by the AMF based on the initialization registration NAS message, and send the authentication request to the terminal; a fourth receiving module, used to receive encrypted authentication data sent by the terminal based on the authentication request; an acquisition module, used to acquire terminal authentication data after decrypting the encrypted authentication data; a generation module, using a NAS authentication message generated based on the terminal authentication data, and sending the NAS authentication message to the AMF.

[0026] According to a sixth aspect of the present disclosure, a terminal access device is provided, including: a fifth receiving module, used for an AAA server to receive a device certificate of a terminal sent by an N3IWF; a verification module, used for verifying the device certificate and feeding back the access network parameters of the terminal to the N3IWF, so that the N3IWF selects an adapted AMF based on the access network parameters and local policies; a sixth receiving module, used for receiving encrypted authentication data of the terminal sent by the N3IWF; a decryption module, used for decrypting the encrypted authentication data to generate terminal authentication data, and feeding back the terminal authentication data to the N3IWF, so that the N3IWF generates a NAS authentication message based on the terminal authentication data, and sends it to the AMF.

[0027] According to the seventh aspect of the present disclosure, a terminal device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the terminal access method described in any one of the technical solutions of the first aspect above by executing the executable instructions.

[0028] According to an eighth aspect of the present disclosure, a network device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the terminal access method described in any one of the technical solutions of the second aspect or the third aspect by executing the executable instructions.

[0029] According to a ninth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the terminal access method described above is implemented.

[0030] The terminal access method and device provided by the embodiments of the present disclosure, by setting NTAG in N3IWF, for the registration request sent by the terminal without USIM module, when it is detected that the request is a non-NAS message, it is handed over to NTAG for processing, and NTAG obtains the access parameters for selecting AMF based on the interaction with the AAA server, so that NTAG selects the adapted AMF based on these parameters, and after determining the AMF, converts the non-NAS message into a NAS message, requests AMF registration, and after receiving the feedback from AMF, sends an authentication request to the terminal, so as to further complete the authentication process with AMF based on the encrypted authentication data sent by the terminal, so as to realize the successful network access of the terminal without USIM module, and reduces the difficulty and cost of the terminal without USIM accessing the 5G core under the condition that no new hardware module is added to the terminal.

[0031] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0033] Figure 1 A schematic diagram of a terminal access system in an embodiment of the present disclosure is shown;

[0034] Figure 2 A flow chart of a terminal access method in an embodiment of the present disclosure is shown;

[0035] Figure 3 A flow chart showing another terminal access method in an embodiment of the present disclosure is shown;

[0036] Figure 4 A flowchart of another terminal access method in an embodiment of the present disclosure is shown;

[0037] Figure 5 A flowchart of another terminal access method in an embodiment of the present disclosure is shown;

[0038] Figure 6 A flowchart of another terminal access method in an embodiment of the present disclosure is shown;

[0039] Figure 7 A schematic diagram showing a terminal access device in an embodiment of the present disclosure is shown;

[0040] Figure 8A schematic diagram showing another terminal access device in an embodiment of the present disclosure;

[0041] Fig. 9 A schematic diagram showing another terminal access device in an embodiment of the present disclosure is shown;

[0042] Fig.10 A structural block diagram of a computer device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0043] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0044] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0045] The solution provided by the present application sets NTAG in N3IWF. For the registration request sent by the terminal without USIM module, if it is detected that the request is a non-NAS message, it will be handed over to NTAG for processing. NTAG obtains the access parameters for selecting AMF based on the interaction with the AAA server, so that NTAG selects the adapted AMF based on these parameters, and after determining the AMF, converts the non-NAS message into a NAS message, requests AMF registration, and after receiving the feedback from AMF, sends an authentication request to the terminal, so as to further complete the authentication process with AMF based on the encrypted authentication data sent by the terminal, so as to realize the successful network access of the terminal without USIM module, and reduces the difficulty and cost of the terminal without USIM to access the 5G core under the condition that no new hardware module is added to the terminal.

[0046] For ease of understanding, the nouns (abbreviations) involved in this application are first explained below.

[0047] N3IWF (Non-3GPP InterWorking Function), in the case of untrusted non-3GPP access, the functions of N3IWF include: Supporting the establishment of IPsec tunnels with UE: N3IWF terminates the IKEv2 / IPsec protocol with the UE through NWu, and relays the information required to authenticate the UE and authorize it to access the 5G core network through N2; N2 and N3 terminate at the control plane and user plane of the 5G core network respectively; Relaying uplink and downlink control plane NAS (N1) signaling between UE and AMF; Processing of N2 signaling from SMF (relayed by AMF) is related to PDU (Protocol Data Unit) sessions and QoS; Establishing IPsec security associations (IPsec SAs) to support PDU session traffic; Relaying uplink and downlink user plane packets between UE and UPF; Implementing QoS corresponding to N3 packet markings, considering the QoS requirements associated with such markings received through N2; N3 user plane packet marking in the uplink; According to IETF, RFC 4555, Local Mobility Positioning in Untrusted Non-3GPP Access Networks Using MOBIKE; Support for AMF Selection.

[0048] AAA server: AAA is the abbreviation of three English words: Authentication, Authorization, Accounting. It is a server program that can process user access requests, provide authentication authorization and account services. Its main purpose is to manage user access to network servers and provide services to users with access rights.

[0049] EAP (Extensible Authentication Protocol) is an extensible authentication protocol. EAP-5G: EAP protocol is the abbreviation of the extensible authentication protocol, and its full name is Extensible Authentication Protocol. It is a collection of a series of authentication methods.

[0050] In the following, each step of the terminal access method in this exemplary implementation will be described in more detail with reference to the accompanying drawings and embodiments.

[0051] The terminal access solution according to an embodiment of the present disclosure is applicable to but not limited to terminals without USIM. Figure 1 As shown, the system for performing terminal access includes multiple nodes, each of which is a network function (NF). The network functions of this system include but are not limited to:

[0052] NRF: NF Repository Function.

[0053] PCF: Policy Control function.

[0054] AUSF: Authentication Server Function, which implements 3GPP and non-3GPP access authentication.

[0055] NSSF: Network Slice Selection Function.

[0056] UDR: Unified Data Repository.

[0057] UDM, Unified Data Management, unified data management function, 3GPP AKA authentication, user identification, access authorization, registration, mobility, subscription, SMS management, etc.

[0058] AMF (Core Access and Mobility Management Function) is responsible for terminal equipment access to the core network and mobility management.

[0059] SMF: Session Management Function.

[0060] UPF: User plane function.

[0061] In addition, the AAA server communicates with the UDM, and in step S1, obtains the subscription data of the terminal UE, the subscription data including but not limited to the device certificate and encrypted authentication data.

[0062] In step S2, the AAA server sends the device certificate and encrypted authentication data to the corresponding interrupting UE.

[0063] The WLAN AP is used as non-3GPP access, and the terminal UE is connected to the non-3GPP interworking function (N3IWF) through the WLAN AP to access the 5G core network through the N3IWF.

[0064] Among them, Y1 is the reference point between UE and WLAN AP, and Y2 is the reference point between WLAN AP and N3IWF, which is used for the transmission of NWu traffic.

[0065] Uplink and downlink control plane NAS (N1) signaling is relayed between the UE and AMF over the N1 interface.

[0066] AMF supports the N2 interface and N3IWF, on which non-3GPP access specific information that is not applicable to 3GPP access is applied to achieve network access of the terminal.

[0067] N3IWF is equipped with an IoTAG gateway, namely, the NTAG gateway. The UE and the NTAG gateway are transmitted based on Nwu. Specifically, in step S3, the UE sends relevant information for registration and authentication to the N3IWF, such as device certificates and encrypted authentication data.

[0068] N3IWF can also communicate with the AAA server, and in step S4, request the AAA server to perform operations such as verification of the device certificate and decryption of the encrypted authentication data.

[0069] The NTAG gateway is able to terminate the N1 NAS message of the AMF and, in step S5, convert non-NAS messages such as authentication data into NAS messages to be sent to the AMF.

[0070] There is an N3 interface between UPF and N3IWF, and an N4 interface between UPF and SMF. The N4 session management process is used to control the functions of UPF. SMF can create, update and delete N4 session context in UPF.

[0071] like Figure 2 As shown, according to an embodiment of the present disclosure, a terminal access method is applied to a terminal, and a terminal user signs a 5G service contract with a 5G core network, including:

[0072] The AAA server generates a certificate for the signed UE and uses the private key of the AAA server to encrypt the terminal authentication data to obtain the encrypted authentication data, which is preset in the terminal.

[0073] Step S202: Send a registration request to the non-3GPP interworking function N3IWF, where the registration request carries the device certificate of the terminal.

[0074] Among them, the device certificate is used to verify the legitimacy of the terminal device.

[0075] Step S204: Receive an authentication request from N3IWF based on the registration request and device certificate feedback.

[0076] Step S206: In response to the authentication request, encrypted authentication data is sent to the N3IWF.

[0077] Among them, the encrypted authentication data can specifically be encrypted 5G authentication data.

[0078] In this embodiment, after the terminal signs a contract with the core network, it can obtain the terminal's device certificate and encrypted authentication data from the AAA server, and access the NAS conversion access gateway NTAG of N3IWF based on the TCP protocol. NTAG implements certificate verification and decryption of encrypted authentication data based on interaction with the AAA server, and builds an N1 instance to convert the terminal's authentication, registration and other requests into 5GNAS, thereby realizing interaction with the registration and authentication operations between the N1 interface of AMF. Especially for terminals without USIM modules, access to the 5G core network can be achieved by pre-setting device certificates and encrypted authentication data without adding new hardware modules, thereby reducing the difficulty and cost of terminals without USIM access to the 5G core.

[0079] In one embodiment, before sending a registration request to the non-3GPP interworking function N3IWF, it also includes: sending a first IKE SA parameter to N3IWF; receiving a second IKE SA parameter fed back by N3IWF based on the first IKE SA parameter, so as to establish an IKE SA with N3IWF, so as to send a registration request based on the IKE SA.

[0080] Among them, IKE (Internet Key Exchange) SA refers to IKE security association.

[0081] The IKEv2 protocol consists of a two-phase interaction process. The first phase is called the IKE_SA_INIT exchange, and the second phase is called the IKE_AUTH exchange.

[0082] Specifically, the first IKE SA parameter and the second IKE SA parameter belong to the first stage (called IKE_SA_INIT exchange), and the parameter negotiation of IKE SA is completed in plain text, including negotiating encryption and authentication algorithms, exchanging temporary random numbers and DH exchange. After the IKE_SA_INIT exchange, a shared key material is generated, and all keys of IPSec SA can be derived from this shared key material.

[0083] In this embodiment, the terminal establishes an IKE SA with the N3IWF by initiating an IKEv2 initial exchange with the N3IWF, so that the UE sends an IKE AUTH request, which does not indicate the use of an AUTH message of EAP-5G, to further establish an IPsec SA based on the IKE SA.

[0084] In one embodiment, sending a registration request based on the IKE SA specifically includes: sending an IKE AUTH request based on the IKE SA; receiving a registration notification fed back by the N3IWF based on the IKE AUTH request; and sending a registration request based on the registration notification.

[0085] In the second phase, i.e., IKE_AUTH exchange, identity authentication, authentication of the first two pieces of information, and parameter negotiation of IPSec SA are completed in an encrypted manner. IKEv2 supports RSA signature authentication, pre-shared key authentication, and extended authentication method EAP (Extensible Authentication Protocol). EAP authentication is implemented in IKE as an additional IKE_AUTH exchange. The terminal indicates the need to use EAP authentication by omitting the authentication payload in IKE_AUTH.

[0086] In this embodiment, after establishing IKE SA with N3IWF, in response to the notification of the EAP-Request / 5G-Start data packet to start sending NAS messages, a registration request including a device certificate is sent to N3IWF to ensure the security of the registration request transmission.

[0087] In one embodiment, it also includes: receiving an authentication success response from N3IWF based on the encrypted authentication data feedback.

[0088] In this embodiment, when a successful authentication response is received, it indicates that the terminal is successfully authenticated by the 5G core network to determine that the terminal has the right to access the 5G core network.

[0089] In one embodiment, it also includes: receiving an IPSEC policy proposal message sent by N3IWF to establish an IPsec SA between N3IWF and the IPSEC policy proposal message, wherein the IPsec SA is used to establish an IPsec tunnel between N3IWF and the terminal; and receiving a registration success notification sent by N3IWF based on the IPsec tunnel.

[0090] In this embodiment, by establishing a tunnel mode between N3IWF, N3IWF allocates a tunnel IP address to the terminal, so as to receive a successful registration notification based on a TCP protocol message through the IPsec tunnel, thereby achieving successful access to the 5G core network.

[0091] In one embodiment, it also includes: when the terminal is successfully registered, a heartbeat keep-alive message is sent to the N3IWF based on the IPsec tunnel, so that the N3IWF detects the status of the terminal based on the heartbeat keep-alive message.

[0092] In one embodiment, before the terminal sends a registration request to the non-3GPP interworking function N3IWF, it also includes: a pre-made device certificate and encrypted authentication data.

[0093] like Figure 3 As shown, a terminal access method according to an embodiment of the present disclosure is applied to N3IWF, including:

[0094] Step S302: receiving a registration request sent by a terminal, where the registration request carries a device certificate of the terminal.

[0095] N3IWF is equipped with NAS conversion access gateway NTAG, and the process after receiving the registration request is completed by NTAG.

[0096] Step S304: It is detected that the registration request is a non-NAS message, and the adapted AMF is determined based on the device certificate.

[0097] Among them, NAS message is the direct transmission message of authentication and security mode. Each 5GS NAS message is a standard L3 message defined in 3GPP TS24.007

[11] .

[0098] The adapted AMF is determined based on the device certificate. Specifically, after verifying the legitimacy of the device certificate, the matching access parameters can be obtained, and the adapted AMF can be determined based on the access parameters.

[0099] Step S306: Convert the registration request into an initial registration NAS message, and send the initial registration NAS message to the AMF.

[0100] For terminals that do not have NAS functions, NAS messages cannot be sent directly. Therefore, by setting up the NAS conversion access gateway NTAG, non-NAS messages can be converted into NAS messages and sent to AMF through the N1 interface. Through NAS interaction with AMF, verification of terminal registration and authentication can be achieved.

[0101] Step S308: Receive the terminal authentication request generated by AMF based on the initial registration NAS message, and send the authentication request to the terminal.

[0102] Step S310: receiving encrypted authentication data sent by the terminal based on the authentication request.

[0103] Step S312, obtaining the terminal authentication data after decrypting the encrypted authentication data.

[0104] The encrypted authentication data is sent to the AAA server, and the AAA server decrypts the encrypted authentication data to obtain the terminal authentication data.

[0105] Step S314: Generate a NAS authentication message based on the terminal authentication data and send the NAS authentication message to the AMF.

[0106] Among them, NTAG generates an uplink terminal identity response NAS message based on the decrypted UE authentication data and sends it to AMF as a NAS authentication message.

[0107] In this embodiment, NTAG is set in N3IWF. For the registration request sent by the terminal without USIM module, if it is detected that the request is a non-NAS message, it will be handed over to NTAG for processing. NTAG obtains the access parameters for selecting AMF based on the interaction with the AAA server, so that NTAG selects the adapted AMF based on these parameters. After determining the AMF, the non-NAS message is converted into a NAS message, and the AMF registration is requested. After receiving the feedback from the AMF, an authentication request is sent to the terminal to further complete the authentication process with the AMF based on the encrypted authentication data sent by the terminal, so as to realize the successful network access of the terminal without USIM module. Under the condition that no new hardware module is added to the terminal, the difficulty and cost of the terminal without USIM to access the 5G core are reduced.

[0108] In one embodiment, it is detected that the registration request is a non-NAS message, and the adapted AMF is determined based on the device certificate, specifically including: detecting that the registration request is a non-NAS message, selecting the AAA server to which the terminal belongs based on the device certificate, and sending the device certificate to the AAA server; receiving the access network parameters of the terminal fed back by the AAA server when the device certificate is verified; and selecting the adapted AMF based on the access network parameters and local policies.

[0109] In this embodiment, when NTAG detects that the registration request is not a NAS TCP protocol packet, it selects the affiliated AAA to verify the device certificate according to the device certificate. AAA verifies the device certificate and returns the UE's access network (Access Network) parameters, namely AN parameters, including but not limited to GUAMI (AMF ID), selected PLMN (Public Land Mobile Network) ID, requested NSSAI (network slice) and establishment type, etc.

[0110] Furthermore, N3IWF (NTAG) selects AMF according to the received AN parameters and local policies, and generates an initialization registration NAS message according to the UE's registration request and forwards it to the selected AMF to further connect the terminal to the network based on the AMF.

[0111] In one embodiment, obtaining the terminal authentication data after decrypting the encrypted authentication data specifically includes: sending the encrypted authentication data to an AAA server; and receiving the terminal authentication data generated by decrypting the encrypted authentication data by the AAA server.

[0112] In this embodiment, the information of the terminal's response to the identity request carries encrypted authentication data, and the N3IWF sends the encrypted authentication data to the AAA for decryption, so as to decrypt the encrypted authentication data and obtain the terminal authentication data.

[0113] In one embodiment, before the N3IWF receives the registration request sent by the terminal, it also includes: receiving a first IKE SA parameter sent by the terminal; querying a second IKE SA parameter that matches the first IKE SA parameter, and feeding back the second IKE SA parameter to the terminal, so that an IKE SA is established between the terminal and the N3IWF to receive the registration request sent by the terminal based on the IKE SA.

[0114] In one embodiment, receiving a registration request sent by a terminal based on an IKE SA specifically includes: receiving an IKE AUTH request sent by the terminal based on an IKE SA; and sending a registration notification to the terminal in response to the IKE AUTH request to receive a registration request sent by the terminal based on the registration notification.

[0115] In this embodiment, N3IWF responds to the IKE AUTH request and sends a registration notification to the terminal to receive a data packet including EAP-Request / 5G-Start fed back by the terminal based on the registration notification.

[0116] In one embodiment, it also includes: receiving a NAS security mode instruction sent by AMF based on terminal authentication data; verifying that the NAS security mode instruction is passed, establishing an IPsec SA with AMF, and obtaining a key from the NAS security mode instruction; receiving an initialization context establishment request sent by AMF based on IPsec SA; establishing an initialization context with AMF based on the initialization context establishment request, and sending an authentication success response to the terminal.

[0117] In this embodiment, N3IWF establishes a security mode and initialization context with AMF on behalf of UE, and obtains N3IWF key. If the initialization context is successfully established, N3IWF sends an authentication success response to UE to further establish an IPsec tunnel with the terminal based on Psec SA.

[0118] In one embodiment, it also includes: sending an IPSEC policy proposal message to the terminal to establish an IPsec SA with the terminal, the IPsec SA is used to establish an IPsec tunnel between the N3IWF and the terminal based on a key; sending an initialization context establishment response to the AMF; receiving an acceptance registration information sent by the AMF based on the initialization context establishment response; in response to the acceptance registration information, sending a registration success notification to the terminal based on the IPsec tunnel.

[0119] In this embodiment, a tunnel mode is established between the IPsec SA and the terminal. Since the IKE SA is responsible for the establishment and maintenance of the IPsec SA and plays a control role, the IPsec SA is responsible for specific data stream encryption and a registration success notification is sent to the terminal based on the IPsec tunnel, thereby ensuring the security of terminal access.

[0120] Specifically, a tunnel mode is established between the UE and N3IWF through the public N3IWF key, and a tunnel IP address is allocated to the UE. N3IWF (NTAG) notifies AMF that the UE context has been created by sending an NGAP Initial Context Setup Response. AMF sends a NAS registration acceptance message to N3IWF. N3IWF (NTAG) notifies the UE of successful registration based on a TCP protocol message through an IPsec tunnel.

[0121] In one embodiment, the method further includes: receiving a heartbeat keep-alive message sent by the terminal based on the IPsec tunnel; and detecting the state of the terminal based on the heartbeat keep-alive message.

[0122] In this embodiment, after successful registration, the UE and N3IWF (NTAG) maintain a heartbeat connection based on the established IPsec tunnel to perform UE status detection, which is conducive to ensuring the reliability and security of the detection.

[0123] like Figure 4 As shown, a terminal access method according to an embodiment of the present disclosure is applied to an AAA server, including:

[0124] Step S402: Receive the device certificate of the terminal sent by N3IWF.

[0125] Step S404: If the device certificate is verified, the access network parameters of the terminal are fed back to N3IWF so that N3IWF selects an adapted AMF based on the access network parameters and local policies.

[0126] Step S406, receiving the encrypted authentication data of the terminal sent by N3IWF.

[0127] Step S408: decrypt the encrypted authentication data to generate terminal authentication data, and feed the terminal authentication data back to N3IWF, so that N3IWF generates a NAS authentication message based on the terminal authentication data and sends it to AMF.

[0128] In this embodiment, by storing the verification program of the terminal, the access network parameters matching the device certificate of the terminal, and the key of the terminal authentication data in the AAA server, in the interaction project with the N3IWF, the verification of the legitimacy of the terminal identity, the issuance of AMF related parameters adapted by the terminal, and the decryption of the terminal authentication data are implemented. When the terminal is pre-set to replace the USIM card module with the device certificate and encrypted authentication data, access to the 5G core network can be achieved without adding a new hardware module.

[0129] In one embodiment, it also includes: generating a device certificate of the terminal based on the contract data of the terminal; and encrypting the terminal authentication data based on the private key to obtain encrypted authentication data; and sending the device certificate and the encrypted authentication data to the contracted terminal.

[0130] like Figure 5 As shown, according to an embodiment of the present disclosure, a terminal access method is applied to the interaction between a terminal, an N3IWF, an AAA server and an AMF, including:

[0131] Step S502: The terminal sends a registration request to the non-3GPP interworking function N3IWF, where the registration request carries the device certificate of the terminal.

[0132] Step S504: N3IWF detects that the registration request is a non-NAS message, selects an AAA server to which the terminal belongs based on the device certificate, and sends the device certificate to the AAA server.

[0133] Step S506: The AAA server verifies the device certificate and feeds back the access network parameters of the terminal to the N3IWF.

[0134] Step S508, N3IWF selects an adapted AMF based on access network parameters and local policies, converts the registration request into an initialization registration NAS message, and sends the initialization registration NAS message to the AMF.

[0135] Step S510: AMF generates an authentication request for the terminal based on the initial registration NAS message, sends the authentication request to N3IWF, and N3IWF sends the authentication request to the terminal.

[0136] Step S512: The terminal sends encrypted authentication data to the N3IWF in response to the authentication request.

[0137] In step S514, the N3IWF sends the encrypted authentication data to the AAA server, so that the AAA server decrypts the encrypted authentication data to generate terminal authentication data, and feeds the terminal authentication data back to the N3IWF.

[0138] Step S516: N3IWF generates a NAS authentication message based on the terminal authentication data, and sends the NAS authentication message to the adapted AMF.

[0139] In one embodiment, before the terminal sends a registration request to the non-3GPP interworking function N3IWF, it also includes: the terminal sends a first IKE SA parameter to the N3IWF; the N3IWF queries a second IKE SA parameter that matches the first IKE SA parameter, and feeds back the second IKE SA parameter to the terminal, so that an IKE SA is established between the terminal and the N3IWF, and the terminal sends a registration request based on the IKE SA.

[0140] In one embodiment, the terminal sends a registration request based on the IKE SA, which specifically includes: the terminal sends an IKE AUTH request based on the IKE SA; the N3IWF sends a registration notification to the terminal in response to the IKE AUTH request; and the terminal sends a registration request based on the registration notification.

[0141] In one embodiment, it also includes: AMF sends a NAS security mode instruction to N3IWF in response to the terminal authentication data; N3IWF verifies the NAS security mode instruction, establishes an IPsec SA with AMF, and obtains a key from the NAS security mode instruction; AMF sends an initialization context establishment request to N3IWF based on the IPsec SA; N3IWF establishes an initialization context with AMF based on the initialization context establishment request, and sends an authentication success response to the terminal.

[0142] In one embodiment, it also includes: N3IWF sends an IPSEC policy proposal message to the terminal to establish an IPsec SA with the terminal, and the IPsec SA is used to establish an IPsec tunnel between N3IWF and the terminal based on a key; N3IWF sends an initialization context establishment response to AMF; AMF sends an acceptance registration message to N3IWF based on the initialization context establishment response; N3IWF responds to the acceptance registration message and sends a registration success notification to the terminal based on the IPsec tunnel.

[0143] In one embodiment, the method further includes: when the terminal is successfully registered, a heartbeat keep-alive message is sent to the N3IWF based on the IPsec tunnel; the N3IWF detects the terminal status based on the heartbeat keep-alive message. The UE and the N3IWF (NTAG) maintain a heartbeat connection based on the established IPsec tunnel to perform UE status detection.

[0144] In one embodiment, it also includes: the AAA server generates a device certificate of the terminal based on the contract data of the terminal; and encrypts the terminal authentication data based on the private key to obtain encrypted authentication data, and sends the device certificate and the encrypted authentication data to the signed terminal.

[0145] like Figure 6 As shown, according to an embodiment of the present disclosure, a terminal access method is applied to the interaction between a terminal UE, an N3IWF, an AAA server and an AMF, including:

[0146] Step S602: AAA generates a device certificate and encrypted authentication data for the UE.

[0147] Step S604: The UE presets a device certificate and encrypted authentication data.

[0148] Step S606: UE and N3IWF establish IKE SA.

[0149] Specifically, the UE sends an IKE AUTH request, and there is no AUTH message indicating the use of EAP-5G.

[0150] Step S608, N3IWF sends a registration notification.

[0151] Specifically, N3IWF responds to IKE AUTH, including an EAP-Request / 5G-Start packet that notifies the UE to start sending NAS messages.

[0152] Step S610: UE sends a registration request carrying a device certificate.

[0153] Specifically, the UE sends an IKE AUTH request, including a registration request based on the TCP protocol and a UE certificate.

[0154] Step S612: N3IWF and AAA verify the device certificate.

[0155] Specifically, N3IWF (NTAG) detects the TCP protocol packet of the registration request non-NAS, selects the affiliated AAA verification device certificate according to the UE certificate, AAA verifies the UE certificate, and returns the UE's AN parameters (GUAMI, selected PLMN ID, requested NSSAI and establishment type, etc.), N3IWF (NTAG) selects AMF according to the received AN parameters and local policies.

[0156] Step S614, N3IWF generates an initialization registration NAS message.

[0157] Step S616, N3IWF sends an initial registration NAS message (NAS PDU Registration Request).

[0158] Step S618: AMF sends a terminal authentication request.

[0159] Step S620, N3IWF sends a terminal authentication request.

[0160] Step S622: UE sends encrypted authentication data.

[0161] Step S624: N3IWF and AAA decrypt and encrypt authentication data.

[0162] Step S626, N3IWF generates a NAS authentication message.

[0163] Step S628, N3IWF sends a NAS authentication message.

[0164] Step S630: N3IWF and AMF establish a security mode based on uplink and downlink NAS information.

[0165] Specifically, N3IWF (NTAG) establishes security mode and initialization context with AMF on behalf of UE, and obtains N3IWF key.

[0166] Step S632: AMF sends an initial context establishment request.

[0167] Step S634, N3IWF sends an authentication success response.

[0168] Step S636, N3IWF and UE establish IPsec SA.

[0169] Specifically, IPsec SA establishes a tunnel mode between the UE and N3IWF through the public N3IWF key and allocates a tunnel IP address to the UE.

[0170] Step S638, N3IWF sends an initial context establishment response.

[0171] Specifically, N3IWF (NTAG) notifies AMF that the UE context has been created by sending NGAP Initial Context Setup Response.

[0172] Step S640: AMF sends a registration acceptance message.

[0173] In step S642, N3IWF converts the received registration information into a TCP registration success notification.

[0174] Step S644, N3IWF sends a TCP registration success notification.

[0175] Specifically, N3IWF (NTAG) notifies UE of successful registration based on TCP protocol messages through the IPsec tunnel.

[0176] Step S646: Heartbeat keep-alive detection is performed between N3IWF and UE.

[0177] It should be noted that the above figures are only schematic illustrations of the processes included in the method according to an exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0178] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as a system, method or program product. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as a "circuit", "module" or "system".

[0179] Refer to the following Figure 7 A terminal access device 700 according to this embodiment of the present invention is described below. Figure 7 The terminal access device 700 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0180] The terminal access device 700 is in the form of a hardware module. The components of the terminal access device 700 may include but are not limited to: a first sending module 702, which is used for the terminal to send a registration request to the non-3GPP interworking function N3IWF, and the registration request carries the device certificate of the terminal; a first receiving module 704, which is used to receive an authentication request from the N3IWF based on the registration request and the device certificate feedback; a second sending module 706, which is used to send encrypted authentication data to the N3IWF in response to the authentication request.

[0181] Refer to the following Figure 8 Another terminal access device 800 according to this embodiment of the present invention is described below. Figure 8 The terminal access device 800 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0182] The terminal access device 800 is presented in the form of a hardware module. The components of the terminal access device 800 may include but are not limited to: a second receiving module 802, used for the N3IWF to receive a registration request sent by the terminal, the registration request carrying the device certificate of the terminal; a determination module 804, used to detect that the registration request is a non-NAS message, and determine the adapted AMF based on the device certificate; a conversion module 806, used to convert the registration request into an initialization registration NAS message, and send the initialization registration NAS message to the AMF; a third receiving module 808, used to receive the authentication request of the terminal generated by the AMF based on the initialization registration NAS message, and send the authentication request to the terminal; a fourth receiving module 810, used to receive the encrypted authentication data sent by the terminal based on the authentication request; an acquisition module 812, used to obtain the terminal authentication data after decrypting the encrypted authentication data; a generation module 814, using a NAS authentication message generated based on the terminal authentication data, and sending the NAS authentication message to the AMF.

[0183] Refer to the following Fig. 9Another terminal access device 900 according to this embodiment of the present invention is described below. Fig. 9 The terminal access device 900 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0184] The terminal access device 900 is in the form of a hardware module. The components of the terminal access device 900 may include but are not limited to: a fifth receiving module 902, which is used for the AAA server to receive the device certificate of the terminal sent by the N3IWF; a verification module 904, which is used to verify the device certificate and feedback the access network parameters of the terminal to the N3IWF, so that the N3IWF selects an adapted AMF based on the access network parameters and local policies; a sixth receiving module 906, which is used to receive the encrypted authentication data of the terminal sent by the N3IWF; a decryption module 908, which is used to decrypt the encrypted authentication data to generate the terminal authentication data, and feedback the terminal authentication data to the N3IWF, so that the N3IWF generates a NAS authentication message based on the terminal authentication data and sends it to the AMF.

[0185] like Fig.10 As shown, the terminal UE, N3IWF and AAA server are all electronic devices, and the electronic device 1000 is presented in the form of a general computing device. The components of the electronic device 1000 may include but are not limited to: at least one processing unit 1010, at least one storage unit 1020, and a bus 1030 connecting different system components (including the storage unit 1020 and the processing unit 1010).

[0186] The storage unit stores program codes, which can be executed by the processing unit 1010, so that the processing unit 1010 performs the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification. For example, the processing unit 1010 can perform the following steps: Figure 3 The scheme described in steps S302 to S314 shown in FIG.

[0187] The storage unit 1020 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 10201 and / or a cache storage unit 10202 , and may further include a read-only storage unit (ROM) 10203 .

[0188] The storage unit 1020 may also include a program / utility 10204 having a set (at least one) of program modules 10205, such program modules 10205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0189] Bus 1030 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0190] The electronic device 1000 may also communicate with one or more external devices 1060 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 1000, and / or communicate with any device that enables the electronic device 1000 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 1040. Furthermore, the electronic device 1000 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 1050. As shown, the network adapter 1050 communicates with other modules of the electronic device 1000 via a bus 1030. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 1000, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0191] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0192] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.

[0193] The program product for implementing the above method according to an embodiment of the present invention may adopt a portable compact disk read-only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, apparatus, or device.

[0194] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0195] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0196] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0197] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0198] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0199] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0200] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0201] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.

Claims

1. A terminal access method, characterized in that: Applied to terminals, including: Sending a registration request to a non-3GPP interworking function N3IWF, the registration request carrying the device certificate of the terminal, the device certificate of the terminal being generated by an AAA server based on the subscription data of the terminal, the AAA server being used to provide authentication authorization and account services; Receiving an authentication request from the N3IWF based on the registration request and the device certificate feedback; In response to the authentication request, encrypted authentication data is sent to the N3IWF, where the encrypted authentication data is obtained by the AAA server encrypting the terminal authentication data based on a private key.

2. The terminal access method according to claim 1, characterized in that: Before sending a registration request to the non-3GPP interworking function N3IWF, it also includes: Sending first IKE SA parameters to the N3IWF; Receive the second IKE SA parameter fed back by the N3IWF based on the first IKE SA parameter, establish an IKE SA with the N3IWF, and send the registration request based on the IKE SA.

3. The terminal access method according to claim 2, characterized in that: The sending the registration request based on the IKE SA specifically includes: Sending an IKE AUTH request based on the IKE SA; Receiving a registration notification fed back by the N3IWF based on the IKE AUTH request; The registration request is sent based on the registration notification.

4. The terminal access method according to claim 1, characterized in that: Also includes: Receive a successful authentication response fed back by the N3IWF based on the encrypted authentication data.

5. The terminal access method according to claim 4, characterized in that: Also includes: receiving an IPSEC policy proposal message sent by the N3IWF, so as to establish an IPsec SA between the N3IWF and the N3IWF based on the IPSEC policy proposal message, wherein the IPsec SA is used to establish an IPsec tunnel between the N3IWF and the terminal; Receive a registration success notification sent by the N3IWF based on the IPsec tunnel.

6. The terminal access method according to claim 5, characterized in that: Also includes: The terminal is successfully registered and sends a heartbeat keep-alive message to the N3IWF based on the IPsec tunnel, so that the N3IWF detects the status of the terminal based on the heartbeat keep-alive message.

7. The terminal access method according to any one of claims 1 to 6, characterized in that: Before the terminal sends a registration request to the non-3GPP interworking function N3IWF, the following also includes: The device certificate and the encrypted authentication data are prefabricated.

8. A terminal access method, characterized in that: Applied to N3IWF, including: Receiving a registration request sent by a terminal, the registration request carrying a device certificate of the terminal, the device certificate of the terminal being generated by an AAA server based on contract data of the terminal, the AAA server being used to provide authentication authorization and account services; detecting that the registration request is a non-NAS message, and determining an adapted AMF based on the device certificate; Convert the registration request into an initialization registration NAS message, and send the initialization registration NAS message to the AMF; receiving an authentication request for the terminal generated by the AMF based on the initial registration NAS message, and sending the authentication request to the terminal; Receiving encrypted authentication data sent by the terminal based on the authentication request, the encrypted authentication data being obtained by the AAA server encrypting the terminal authentication data based on a private key; Obtaining the terminal authentication data after decrypting the encrypted authentication data; Generate a NAS authentication message based on the terminal authentication data, and send the NAS authentication message to the AMF.

9. The terminal access method according to claim 8, characterized in that: The detecting that the registration request is a non-NAS message, and determining the adapted AMF based on the device certificate, specifically includes: detecting that the registration request is the non-NAS message, selecting an AAA server to which the terminal belongs based on the device certificate, and sending the device certificate to the AAA server; receiving access network parameters of the terminal fed back by the AAA server when the device certificate is verified successfully; The adapted AMF is selected based on the access network parameters and local policies.

10. The terminal access method according to claim 9, characterized in that: The obtaining of the terminal authentication data after decrypting the encrypted authentication data specifically includes: Sending the encrypted authentication data to the AAA server; The terminal authentication data is received by the AAA server after decrypting the encrypted authentication data.

11. The terminal access method according to claim 8, characterized in that: Before N3IWF receives the registration request sent by the terminal, it also includes: Receiving a first IKE SA parameter sent by the terminal; Query a second IKE SA parameter that matches the first IKE SA parameter, and feed back the second IKE SA parameter to the terminal, so that an IKE SA is established between the terminal and the N3IWF, and receive the registration request sent by the terminal based on the IKE SA.

12. The terminal access method according to claim 11, characterized in that: The receiving the registration request sent by the terminal based on the IKE SA specifically includes: Receiving an IKE AUTH request sent by the terminal based on the IKE SA; In response to the IKE AUTH request, a registration notification is sent to the terminal to receive the registration request sent by the terminal based on the registration notification.

13. The terminal access method according to any one of claims 8 to 12, characterized in that: Also includes: Receiving a NAS security mode instruction sent by the AMF based on the terminal authentication data; The NAS security mode instruction is verified, an IPsec SA is established with the AMF, and a key is obtained from the NAS security mode instruction; Receiving an initialization context establishment request sent by the AMF based on the IPsec SA; Establish an initialization context with the AMF based on the initialization context establishment request, and send an authentication success response to the terminal.

14. The terminal access method according to claim 13, characterized in that: Also includes: Sending an IPSEC policy proposal message to the terminal to establish an IPsec SA with the terminal, wherein the IPsec SA is used to establish an IPsec tunnel between the N3IWF and the terminal based on the key; Sending an initialization context establishment response to the AMF; Receiving registration acceptance information sent by the AMF based on the initialization context establishment response; In response to the acceptance of the registration information, a registration success notification is sent to the terminal based on the IPsec tunnel.

15. The terminal access method according to claim 14, characterized in that: Also includes: Receiving a heartbeat keep-alive message sent by the terminal based on the IPsec tunnel; The state of the terminal is detected based on the heartbeat keep-alive message.

16. A terminal access method, characterized in that: Applicable to AAA servers, including: The AAA server receives the device certificate of the terminal sent by the N3IWF, where the device certificate of the terminal is generated by the AAA server based on the contract data of the terminal, and the AAA server is used to provide authentication authorization and account services; If the device certificate is verified, the access network parameters of the terminal are fed back to the N3IWF, so that the N3IWF selects an adapted AMF based on the access network parameters and local policies; Receiving the encrypted authentication data of the terminal sent by the N3IWF, where the encrypted authentication data is obtained by the AAA server encrypting the terminal authentication data based on a private key; The encrypted authentication data is decrypted to generate terminal authentication data, and the terminal authentication data is fed back to the N3IWF, so that the N3IWF generates a NAS authentication message based on the terminal authentication data and sends it to the AMF.

17. The terminal access method according to claim 16, characterized in that: Also includes: The AAA server generates a device certificate for the terminal based on the contract data of the terminal; as well as Encrypting the terminal authentication data based on a private key to obtain the encrypted authentication data; The device certificate and the encrypted authentication data are sent to the signed terminal.

18. A terminal access device, characterized in that: include: A first sending module is used for the terminal to send a registration request to the non-3GPP interworking function N3IWF, where the registration request carries the device certificate of the terminal, where the device certificate of the terminal is generated by the AAA server based on the subscription data of the terminal, and the AAA server is used to provide verification authorization and account services; A first receiving module is used to receive an authentication request fed back by the N3IWF based on the registration request and the device certificate; The second sending module is used to send encrypted authentication data to the N3IWF in response to the authentication request, where the encrypted authentication data is obtained by encrypting the terminal authentication data by the AAA server based on a private key.

19. A terminal access device, characterized in that: include: A second receiving module, configured for the N3IWF to receive a registration request sent by a terminal, the registration request carrying a device certificate of the terminal, the device certificate of the terminal being generated by an AAA server based on the contract data of the terminal, the AAA server being configured to provide verification authorization and account services; A determination module, configured to detect that the registration request is a non-NAS message, and determine an adapted AMF based on the device certificate; A conversion module, configured to convert the registration request into an initialization registration NAS message, and send the initialization registration NAS message to the AMF; A third receiving module is used to receive an authentication request of the terminal generated by the AMF based on the initial registration NAS message, and send the authentication request to the terminal; A fourth receiving module, configured to receive encrypted authentication data sent by the terminal based on the authentication request, wherein the encrypted authentication data is obtained by encrypting the terminal authentication data by the AAA server based on a private key; An acquisition module, used to acquire terminal authentication data after decrypting the encrypted authentication data; A generation module generates a NAS authentication message based on the terminal authentication data and sends the NAS authentication message to the AMF.

20. A terminal access device, characterized in that: include: A fifth receiving module, used for the AAA server to receive the device certificate of the terminal sent by the N3IWF; A verification module, configured to verify the device certificate and feed back the access network parameters of the terminal to the N3IWF, so that the N3IWF selects an adapted AMF based on the access network parameters and local policies; A sixth receiving module, configured to receive the encrypted authentication data of the terminal sent by the N3IWF; A decryption module is used to decrypt the encrypted authentication data to generate terminal authentication data, and feed the terminal authentication data back to the N3IWF, so that the N3IWF generates a NAS authentication message based on the terminal authentication data and sends it to the AMF.

21. A terminal device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the terminal access method according to any one of claims 1 to 7 by executing the executable instructions.

22. A network device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the terminal access method described in any one of claims 8 to 15 and / or the terminal access method described in claim 16 or 17 by executing the executable instructions.

23. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the terminal access method according to any one of claims 1 to 17 is implemented.